![background image](http://html1.mh-extra.com/html/icp-das-usa/ins-316/ins-316_user-manual_3554946052.webp)
iNS-316 User Manual
Copyright
©
2022 ICP DAS CO., Ltd. All Rights Reserved.
- 52 -
7.2.7 15(0x0F) Force Multiple Coils (Write DO values)
This function code is used to set the status of multiple coils or to write multiple Digital Output
values for the iNS-316
[Request]
Byte
Description
Size
Value
00
Net ID (Station Number)
1 Byte
1 to 247
01
Function Code
1 Byte
0x0F
02-03
Starting
DO Address
2 Byte
Byte 02 = high byte
Byte 03 = Low byte
04-05
Output Value
2 Byte
Byte 04 = high byte
Byte 05 = Low byte
06
Byte count
1 Byte
n = (7)/8
07
Output value
n Byte
A bit corresponds to a channel. A value
of 1 for a bit denotes that the channel is
ON, while a value of denotes that the
channel is OFF.
n= 1; Byte 07 = data bit 7 to 0
n= 2; Byte 08 = data bit 15 to 8
.......
n= m; Byte m+6 = data bit (8m-1) to 8
(m-1)
[Response]
Byte
Description
Size
Value
00
Net ID (Station Number)
1 Byte
1 to 247
01
Function Code
1 Byte
0x0F
02-03
DO Address
2 Byte
The value is the same as Bytes 02-05 of the
Request
04-05
Output Value
2 Byte
[Error Response]
Byte
Description
Size
Value
00
Net ID (Station Number)
1 Byte
1 to 247
01
Function Code
1 Byte
0x8F
02
Exception Code
1 Byte
Refer to the Modbus Standard
Specifications for more details