Enron Modbus Write Boolean Variable (FC05)
Function Code 05
Request
This command is writing the contents of boolean variable # 1073 to ON
to the slave device with address 17.
11 05 0431 FF00 DE55
11: The SlaveID
(11 hex = address 17 )
05: The Function Code (Force Single Boolean)
0431: The Data Address of the boolean
variable. (0431 hex =
1073 )
FF00: The status to write (
FF00 = ON,
0000 = OFF )
DE55
: The CRC (cyclic redundancy check) for error checking.
Response
The normal response is an echo of the query, returned after the boolean has been written.
11 05 0431 FF00 DE55
11: The SlaveID
(11 hex = address 17 )
05: The Function Code (Force Single Boolean)
0431: The Data Address of the boolean
variable.. (0431 hex =
1073 )
FF00: The status written (
FF00 = ON,
0000 = OFF )
DE55
: The CRC (cyclic redundancy check) for error checking.