ICP DAS, ZT-2017 and ZT-2017C AI Series User Manual, Version 1.0.1
Page 115
Copyright © 2012 by ICP DAS Co., Ltd. All Rights Reserved.
6.3.9
15 (0x0F) Writing Multiple Coils
Description
This function code is used to write the digital output value for the ZT-2000 I/O
module.
Request
Byte Description
Length Value
00
Address
1
1 to 247
01
Function Code
1
0x0F
02
~
03
Starting Cchannel
Number
2
See Section 6.3.1 for details
04
~
05
Output Channel
Number
2
0x0001 to 0x0020
06
Byte Count
1
B=(Bit Count + 7)/8
07
Output Value
2
A bit corresponds to a channel. When the bit
is ‘1’, it denotes that the configuration of the
channel that was set is ON or Enable. If the
bit is ‘0’, it denotes that the configuration of
the channel that was set is OFF or Disable.
Response
Byte Description
Length Value
00
Address
1
1 to 247
01
Function Code
1
0x0F
02
~
03
Starting Channel
Number
2
The value is the same as bytes 02 and 03 of
the Request
04
~
05
Input Channel
Number
2
0x0001
~
0x0020
Error Response
Byte Description
Length Value
00
Address
1
1 to 247
01
Function Code
1
0x8F