Qt 모드버스

모드버스는 네트워크에 하나의 모드버스 클라이언트가 있고 다수의 모드버스 서버를 가질 수 있는 요청/응답 프로토콜입니다. 서버는 자체 내부 상태만 제어할 수 있으며 클라이언트는 서버에서 데이터를 읽고 쓸 수 있습니다.

각 Modbus 서버에는 데이터를 저장할 수 있는 4개의 테이블이 있습니다.

이름한 필드의 데이터 범위클라이언트에 대한 권한
이산 입력0-1읽기
코일0-1읽기/쓰기
입력 레지스터0-65535 (0xFFFF)읽기
홀딩 레지스터0-65535 (0xffff)읽기/쓰기

모드버스 API는 모드버스 장치에 액세스하기 위한 몇 가지 공통 API를 제공합니다:

  • QModbusDevice 클라이언트 및 서버와의 공통 기능을 위한 API를 제공합니다.
  • QModbusClient 모드버스 클라이언트에 직접 액세스하기 위한 API를 제공합니다.
  • QModbusServer 모드버스 서버에 직접 액세스하기 위한 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.