Qt Modbus

Modbusはリクエスト/リプライ・プロトコルで、ネットワークに1つのModbusクライアントがあり、多くのModbusサーバーがあります。サーバは内部状態だけを制御し、クライアントはデータを読み書きできます。

各 Modbus サーバはデータを格納できる 4 つのテーブルを持っています。

名前フィールドのデータ範囲クライアントの権限
ディスクリート入力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 、書き込み/読み取り操作のハンドルとして作成されます。

© 2025 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.