8-13
Chapter 8. Modbus Communication Function
One data record write command (06H)
z
Instruction message
This is a command to write one data record to the specified address. The following
is a sample write instruction message.
Example: 01A0H is written to word address 1501W (05DDH).
Modbus/ASCII
3AH 30H 31H 30H 36H 30H 35H 44H 44H 30H 31H 41H 30H 37H 36H 0DH 0AH
: 0 1 0 6 0 5 D D 0 1 A 0 7 6 CR LF
(1) (2) (3) (4) (5) (6) (7)
(1) Start of the message
(2) Station address
(3) Write command (06H)
(4) Word address
(5) Write data
(6) Checksum (LRC)
(7) Delimiter
Modbus/RTU
01H 06H 05H DDH 01H A0H 18H D4H
(1) (2) (3) (4) (5)
(1) Station address
(2) Write command (06H)
(3) Word address
(4) Write data
(5) Checksum (CRC)
z
Response message
The format of a response message for normal termination is the same as that of the
instruction message.
Note
• The format of a response message for abnormal termination is the same as that of
the read command.