4 Modbus protocol description
4.6.4 Write one word
Instruction
Response
Example
22
In the write word function, the data blocks for instruction and response
are identical.
Slave
Function
address
0x06
1 byte
1 byte
Slave
Function
address
0x06
1 byte
1 byte
Set the variable "External Binary In 1" (Modbus address 0x1638) to 1.
For the addresses please refer to Chapter 7.2 Modbus addresses of important
device and process data, Page 47.
Instruction:
01
06
1638
Response (as instruction):
01
06
1638
Word address
2 byte
Word address
2 byte
0001
CD8F
0001
CD8F
Word value
Checksum
CRC16
2 byte
2 byte
Word value
Checksum
CRC16
2 byte
2 byte