Simply Modbus logo

 


Home

About
MODBUS

fc01
fc02
fc03
fc04
fc05
fc06
fc15
fc16
ASCII
TCP
exceptions

About
Enron
MODBUS


RTU Master

RTU Slave

TCP Client

Download

Purchase

Contact

 

Preset Single Register (FC=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 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.

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 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.

Home FAQ Enron Download Purchase Contact

Copyright © 2015 Simply Modbus. All rights reserved