Qt Modbus
Modbus는 네트워크 내에 하나의 Modbus 클라이언트가 있고 여러 개의 Modbus 서버가 존재할 수 있는 요청/응답 프로토콜입니다. 서버는 자체 내부 상태만 제어할 수 있으며, 클라이언트는 해당 서버의 데이터를 읽고 쓸 수 있습니다.
각 Modbus 서버에는 데이터를 저장할 수 있는 네 개의 테이블이 있습니다.
| 이름 | 하나의 필드에 있는 데이터 범위 | 클라이언트에 대한 권한 |
|---|---|---|
| 이산 입력 | 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.