Modbus Slave (RTU Mode)
Function Code 06: Write data register, one word
■
Commands
PT slave
Function
address
code
06 hex
1 byte
1 byte
■
Responses
PT slave
Function
address
code
06 hex
1 byte
1 byte
Data register
Data register
address,
address,
upper byte
lower byte
1 byte
1 byte
Data register
Data register
address,
address,
upper byte
lower byte
1 byte
1 byte
Item
PT slave address Specify the slave address of the PT to which to send the message.
Function code
Data register
address
Write data
Error check
The response will contain the same message as the command.
Write data,
Write data,
upper byte
lower byte
1 byte
1 byte
Write data,
Write data,
upper byte
lower byte
1 byte
1 byte
For slave address 20, specify 14 hex.
Specify 06 hex.
Specify the data register address to write in hexadecimal.
For GDT510, specify 01 hex, FE hex.
Send the value to write with the upper byte first, followed by the
lower byte. To write 1234 hex, specify 12 hex, 34 hex.
The CRC-16 values are sent and received.
Section 11-1
Error check,
Error check,
upper byte
lower byte
1 byte
1 byte
Error check,
Error check,
upper byte
lower byte
1 byte
1 byte
Function
105