3-7
IM 34M06P15-03E 2nd Edition: Jan. 31, 2012-00
3.7 Write Multiple Coils ($0F)
Writes the value (either 1 or 0) to multiple coils.
The amount of devices that can be accessed with a single request is 1,968 points.
Request Format (Master => Slave)
Response Format (Slave => Master)
(At Normal Completion)
F030107.VSD
・・・
Bit Device Storage Order
- Stored in coil from lower => higher-level bit order.
bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
Device Data 1
Device Data n
0 : OFF
1 : ON
Function
Code
Data
$0F
1-byte
Starting Coil Nos.
($0000 to $FFFF)
Write Points
($0001 to $07B0)
Write
Length n
($01 to $F6)
Device
Data
Device
Data
n
・・・
2-byte 2-byte
1-byte 1-byte 1-byte
Function
Code
Data
$0F
1-byte
Data
$8F
1-byte 1-byte
Error Code
Function
Code
Starting Coil Nos.
(Same Value as Request)
Write Points
(Same Value as Request)
2-byte2-byte
(At Faulty Completion)
Writing is performed by dividing into multiple scans if the write points are 16 m (multiples
of 16).