3-5
IM 34M06P15-03E 2nd Edition: Jan. 31, 2012-00
3.5 Write Single Coil ($05)
Writes the value (either 1 or 0) to a single coil.
The amount of devices that can be accessed with a single request is one point.
Request Format (Master => Slave)
F030105.VSD
Function Code
Data
$05
1-byte 2-byte 2-byte
Coil Nos.
($0000 to $FFFF)
Specified Value
1:$FF00
0:$0000
Response Format (Slave => Master)
(At Normal Completion)
(At Faulty Completion)
Function Code
Data
$85
1-byte
Error Code
1-byte
Function Code
Data
$05
1-byte
2-byte
2-byte
Coil Nos.
(Same Value as Request)
Specified Value
(Same Value as Request)
The slave returns the request received from the master with no change.