Qt Modbus

Modbusは、ネットワーク内に1つのModbusクライアントが存在し、複数のModbusサーバーが存在し得るリクエスト/レスポンス型プロトコルです。サーバーは自身の内部状態のみを制御でき、クライアントはそれらのデータを読み書きできます。

各 Modbus サーバーには、データを格納できる 4 つのテーブルがあります。

名前1 つのフィールド内のデータ範囲クライアントに対するアクセス権限
離散入力0~1読み取り
コイル0~1読み取り/書き込み
入力レジスタ0~65535 (0xffff)読み取り
保持レジスタ0~65535 (0xffff)読み取り/書き込み

Modbus API は、Modbus デバイスにアクセスするための共通 API を提供します。

  • QModbusDevice クライアントおよびサーバーの共通機能のための API を提供します。
  • QModbusClient Modbus クライアントへの直接アクセス用の API を提供します。
  • QModbusServer Modbus サーバーへの直接アクセスを行うための API を提供します。
  • QModbusDataUnit データ値を表します。
  • QModbusReply QModbusClient によって、書き込み/読み取り操作用のハンドルとして作成されます。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.