8
1.4 Modbus-RTU Protocol
The flow meter protocol supports the following two-function codes of the Modbus:
Function Code
Performance Data
0x03
Read register
0x06
Write single register
1)
Modbus Protocol function code 0x03 usage.
The host sends out the read register information frame format:
Slave Address
Operation
Function Code
First Address
Register
Register Number
Verify Code
1 byte
1 byte
2 bytes
2 bytes
2 bytes
0x01~0xF7
0x03
0x0000~0xFFFF
0x0000~0x7D
CRC(Verify)
The slave returns the data frame format:
Slave Address
Read Operation
Function Code
Number of Data
Bytes
Data Bytes
Verify Code
1 byte
1 byte
1 byte
N*x2 byte
2 byte
0x01~0xF7
0x03
2xN*
N*x2
CRC(Verify)
N*
=
data register number
2)
Modbus Protocol function code 0x06 usage.
The host sends a command to write a single register information frame format (performance code 0x06):
Slave Address
Operation
Function Code
Register Address
Register Data
Verify Code
1 byte
1 byte
2 bytes
2 bytes
2 bytes
0x01~0xF7
0x06
0x0000~0xFFFF
0x0000~0xFFFF
CRC(Verify)
The slave returns the data frame format (performance code 0x06):
Slave Address
Operation
Function Code
Register Address
Register Data
Verify Code
1 byte
1 byte
2 bytes
2 bytes
2 bytes