Qt Modbus

Modbus 是一种请求/应答协议,在其网络中只有一个 Modbus 客户端,可能有多个 Modbus 服务器。服务器只能控制自己的内部状态,客户端可以读写其中的数据。

每个 Modbus 服务器有四个表,可以存储数据。

名称字段中的数据范围客户端权限
离散输入0-1读取
线圈0-1读/写
输入寄存器0-65535 (0xffff)读取
保持寄存器0-65535 (0xffff)读/写

Modbus API 提供了一些访问 Modbus 设备的通用 API:

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