ICP DAS, ZT-2017 and ZT-2017C AI Series User Manual, Version 1.0.1
Page 112
Copyright © 2012 by ICP DAS Co., Ltd. All Rights Reserved.
6.3.6
04 (0x04) Reading Multiple Input Registers
Description
This function code is used to read the current digital input counter values
from the ZT-2000 I/O module.
Request
Byte Description
Length Value
00
Address
1
1 to 247
01
Function Code
1
0x04
02
~
03
Starting Channel
Number or
Address Mapping
2
See Section 6.3.1 for details
04
~
05
Output Channel
Number or Bit
Count
2
0x0001 to 0x0020
Response
Byte Description
Length Value
00
Address
1
1 to 247
01
Function Code
1
0x04
02
Byte Count
1
Byte Count of the Response
(B=2 * Word Count)
03
~
Register Values
B*2 Register Values
Error Response
Byte Description
Length Value
00
Address
1
1 to 247
01
Function Code
1
0x84
02
Exception Code
1
Refer to the Modbus standard for more
details