プリセットシングルレジスタ (FC=06)

要求

このコマンドは、レジスタ#40002を保持しているアナログ出力の内容をアドレス17のスレーブデバイスに書き込んでいます。

11 06 0001 0003 9A9B

11: The Slave Address (11 hex = address17 )
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.

応答

通常の応答はクエリのエコーであり、レジスタの内容が書き込まれた後に返されます。

11 06 0001 0003 9A9B

11: The Slave Address (11 hex = address17 )
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.