This document details the GB/T standard for the Modbus protocol, covering its scope, functional codes, and communication framework for client/server…
This document describes the GB/T standard for the Modbus protocol, an application layer message transmission protocol used for client/server communication between devices connected to various types of buses or networks. It defines the protocol's structure, including the Protocol Data Unit (PDU) and Application Data Unit (ADU), and explains how the protocol operates over different physical layers such as serial links (RS232, RS485) and Ethernet (TCP/IP).
The standard categorizes Modbus function codes into three types: public, user-defined, and reserved. It provides detailed descriptions of specific function codes, such as reading coils, reading input registers, and writing multiple registers, along with the corresponding request and response formats. The document also outlines the data model, distinguishing between discrete inputs, coils, input registers, and holding registers. This manual is written in Chinese.
The protocol allows reading up to 2000 continuous coil states in a single request.
The maximum size for a Modbus PDU on a serial link is 253 bytes.
Valid function code values range from decimal 1 to 255.