3  MODBUS STANDARD FUNCTION DETAILS
3.11  Write Multiple Coils (FC: 0FH)
41
3
3.11 Write Multiple Coils (FC: 0FH)
Operation description
Writes values (ON/OFF) to multiple coils.
Request message format (from master to slave)
 • Device data 1 to n
Ensure that the specified number of write points matches the number of bits specified with the number of 
bytes.
For example, when the specified number of write points is 16, set the number of bytes to 2 bytes (= 16 bits).
Response message format (from slave to master)
■ When completed successfully
■ When completed with an error
• The values (ON/OFF) stored in device data 1 to n are written to the coils in the order of lower bit to higher bit of the device data.
• Start coil number: Stores the same value as the start coil number of the request message.
• Number of write points: Stores the same value as the number of write points of the request message.
0FH
(H) (L) (H) (L)
DataFunction code
Number of write pointsStart coil number specification Device data 1Number of bytes
n
Device data n
Number of bytes n
(0000H to FFFFH) (0001H to 07B0H) (01H to F6H)
b0b1b2b3b4b5b6b7
0: OFF
1: ON
Device data 1
Device data n
Bit device storage order
(H) (L) (H) (L)
0FH
Data
Number of write pointsStart coil number
Function code
8FH
Data
Exception code
Function code