Simply Modbus logo
← Previous: Read Registers FC03

Modbus Write Single Register (FC06)

Function Code 06

Request

This command is writing the contents of analog output holding register # 40002
to the slave device with address 17.

11 06 0001 0003 9A9B

11: The SlaveID (11 hex = address 17 )
06: The Function Code 6 (Preset Single Register)
0001: The Data Address of the register.
             ( 0001 hex = 1 , + 40001 offset = register #40002 )
0003: The value to write
9A9B: The CRC (cyclic redundancy check) for error checking.

Response

The normal response is an echo of the query, returned after the register contents have been written.

11 06 0001 0003 9A9B

11: The SlaveID (11 hex = address 17 )
06: The Function Code 6 (Preset Single Register)
0001: The Data Address of the register. (# 40002 - 40001 = 1 )
0003: The value written
9A9B: The CRC (cyclic redundancy check) for error checking.