Hardware manual

12 Modbus
2-253
Chap.2
FC6 Write single register
Writing to a single Holding Register (HR)
(Request)
Byte 7 FC (Function code) = 06 (HEX)
Byte 8-9 Reference No.
Byte 10-11 Write data
(Normal response)
Byte 7 FC (Function code) = 06 (HEX)
Byte 8-9 Reference No.
Byte 10-11 Write data
(Abnormal response)
Byte 7 FC (Function code)=86 (HEX)
Byte 8 Exception code 01 or 02
(Example)
Writing to HR400001. The write value is 1234 (HEX).
06 00 00 12 34 => 06 00 00 12 34