4 Modbus protocol description
22
4.6.4 Write one word
In the write word function, the data blocks for instruction and response
are identical.
Instruction
Response
Example 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:
Response (as instruction):
Slave
address
Function
0x06
Word address Word value Checksum
CRC16
1 byte 1 byte 2 byte 2 byte 2 byte
Slave
address
Function
0x06
Word address Word value Checksum
CRC16
1 byte 1 byte 2 byte 2 byte 2 byte
01 06 1638 0001 CD8F
01 06 1638 0001 CD8F