4
MODBUS(R) STANDARD FUNCTIONS
4.8 Write Single Coil (FC: 05)
4 - 22
1
OVERVIEW
2
SYSTEM
CONFIGURATION
3
SPECIFICATIONS
4
MODBUS(R) STANDARD
FUNCTIONS
5
FUNCTION
6
PRE-OPERATIONAL
PROCEDURES AND
SETTINGS
7
PARAMETER SETTING
8
UTILITY PACKAGE
(GX Configurator-MB)
4.8 Write Single Coil (FC: 05)
Writes a value (ON/OFF) to one coil.
(1) Request message format (Master Slave)
(2) Response message format (Slave Master)
(When completed normally)
The slave returns the request message received from the master without change.
(When completed with an error)
* 1 Exception and error codes are stored in the buffer memory in the case of error completion.
Refer to the following for storage location, confirmation methods, and detailed contents.
Section 11.4
Figure 4.21 Write single coil (Request message)
Figure 4.22 Write single coil (Exception message)
Data
(L) (L)
Function code
Function
code
(05
H)
Coil number
(0000
H to FFFFH)
ON/OFF specification
0000
H : OFF
FF00
H : ON
(H)
(H)
Data
Function code
Function
code
(85
H)
Exception
code*
1