
AT381x User's Guide
90
11.
Modbus
(
RTU
)
Protocol
This chapter include the following information:
Data format – About the Modbus communication format.
Function
Variable Area
Function Code
11.1
Data Format
We follow the Modbus (RTU) communication protocol, the instrument will respond to
commands of the host computer and return the standard response frame.
Reference
:
You can contact our sales department to get the communication test tool, which has
Modbus communication debugging method. It contains CRC-16 calculator and floating
point numbers into Modbus floating point format.
11.1.1
Command Frame
Figure 11-1
Modbus Command Frame
Table 11-1
Command Frame Description
At least 3.5 character time squelch interval is requested
Station address
1 byte
Modbus can support 00~0x63 stations
Designated as 00 when unified broadcast
In instruments that do not have an optional RS485, the default
station address is 0x01
Function code
1 byte
0x03: Read multiple registers
0x04: =03H, not used
0x06: Write to a single register, can use 10H instead
0x08: Echo test (used only for debugging)
0x10: Write to multiple registers
Data
Specify register address, quantity, and content
CRC-16
2 bytes, low in front
Cyclic Redundancy Check
Calculate all data from the station address to the end of the data to