4 - 10 4 - 10
MELSEC-Q
4 MODBUS
R
STANDARD FUNCTIONS
4.3.5 Write single coil (FC: 05)
Writes a value (ON/OFF) to one coil.
Number of accessible devices with one message
1 point
(1) Request message format (Master Slave)
Coil number
Data
ON/OFF specification
(H)
(L)
(H)
(L)
Function code
Function code
(0000
H
to FFFF
H
)
0000
H
: OFF
FF00
H
: ON
(05
H
)
(2) Response message format (Slave Master)
(When completed normally)
The slave returns the request message received from the master as it is.
(When completed with an error)
Data
Function code
Function code
(85
H
)
Exception
code*
: When completed with an error, the exception code and error code are stored
into the buffer memory.
Refer to Section 11.3 for the storage location, confirmation method and more
details.