GN-9371_2_3 User Manual
Page 90 of (110)
G-series GN-9371_2_3 PIO Rev. 1.02.docx
A.3.8 (0x0F) Write Multiple Coils
This function code is used to force each coil in a sequence of coils to either ON or OFF in a remote device.
The Request PDU specifies the coil references to be forced. Coils are addressed starting at zero. A logical '1'
in a bit position of the field requests the corresponding output to be ON. A logical '0' requests it to be OFF.
The normal response returns the function code, starting address, and quantity of coils forced.
•
Request
Field name
Example
RTU
Start of Frame
-
t1-t2-t3
Slave Address
0x07
0x07
Function Code
0x0F
0x0F
Starting Address Hi
0x10
0x10
Starting Address Lo
0x00
0x00
Quantity of Outputs Hi
0x00
0x00
Quantity of Outputs Lo
0x0A
0x0A
Byte Count
0x02
0x02
Output Value #0
0x55
0x55
Output Value #1
0x01
0x01
Error Check (CRC/LRC)
-
0x21, 0XC9
End of Frame
-
t1-t2-t3
•
Response
Field name
Example
RTU
Start of Frame
-
t1-t2-t3
Slave Address
0x07
0x07
Function Code
0x0F
0x0F
Starting Address Hi
0x10
0x10
Starting Address Lo
0x00
0x00
Quantity of Outputs Hi
0x00
0x00
Quantity of Outputs Lo
0x0A
0x0A
Error Check (CRC/LRC)
-
0xD1, 0x6A
End of Frame
-
t1-t2-t3
-
In case of address 0x1015~0x1000 output bit value: 00000000_00000000 changes to 00000001_01010101.