
9.3 Modbus Description Example (e.g.: Function Code 03H)
The following description uses Turbidity/SS reading 0035H as an example. If the
Turbidity/SS measured value is 25.10 NTU, confirm that the host and sub-machine
communication format settings are correct. The host sends request commands
according to the left column of the table below, then receives a corresponding response
from the sub-machine according to the right column. This example shows the function
code 03H as transmission data format; for other function codes, the same logic applies.
ASCII Mode:
Request
Response
Message Framing
Hex
Message Framing
Hex
ID, Address
01 ID, Address
01
Function code
03 Function code
03
Starting Address Hi
00 Byte Count
04
Starting Address Lo
35 Register value Hi
CC
No. of Registers Hi
00 Register value Lo
CD
No. of Registers Lo
02 Register value Hi
41
LRC
C5 Register value Lo
C8
LRC
56
RTU Mode:
Request
Response
Message Framing
Hex
Message Framing
Hex
ID, Address
01 ID, Address
01
Function code
03 Function code
03
Starting Address Hi
00 Byte Count
04
Starting Address Lo
35 Register value Hi
CC
No. of Registers Hi
00 Register value Lo
CD
No. of Registers Lo
02 Register value Hi
41
CRC Check Lo
0D Register value Lo
C8
CRC Check Hi
45 CRC Check Lo
65
CRC Check Hi
5A
Note: FLOAT is a 32-bit IEEE 754 format. The above table is divided into two 16-bit
register data transfers. The back 16-bit register (CC CD) is transferred first, followed
by the front 16-bit register (41 C8). Every 16-bit format is high-bit in the front and
low-bit in the post. For example, if the Turbidity/SS reading is now 25.10 NTU, the
16-bit of FLOAT data (hexadecimal) is 41 C8 CC CD. However, the transmission
order will be CC CD 41 C8.
57