Page 42 of 56
King Pigeon Hi-Tech. Co., Ltd.
Ver 2.3
Industrial Ethernet Remote I/O Module
IoT Data Acquisition Module
01= Device address;
04= Read input register;
00 00=Register starting address, please refer to this device register address for detailed address;
00 10 = Read 16 input register values continuously, that is, 8 AI 32-bit addresses;
F1 C6 = 16 Bit CRC verify.
Device answer:
01 04 20 00 00 04 4C 00 00 08 98 00 00 0C E4 00 00 11 30 00 00 15 7C 00 00 19 C8 00 00 1E 14 00
00 22 60 46 A0
01= Device address;
04= Read input register;
20= Return the number of bytes;
00 00 04 4C 00 00 08 98 00 00 0C E4 00 00 11 30 00 00 15 7C 00 00 19 C8 00 00 1E 14 00 00 22 60=The
returned data is detailed in the following table
:
Types
AI1
AI2
AI3
AI4
AI5
AI6
AI7
AI8
Received
hexadecimal
data
00 00 04
4C
00 00 08
98
00 00 0C
E4
00 00 11
30
00 00 15
7C
00 00 19
C8
00 00 1E
14
00 00 22
60
Converted to
true value
11
22
33
44
55
66
77
88
46 A0 = CRC verify.
If you want to read certain input registers, you only need to modify the "register starting address" and "read
register quantity", and then recalculate the CRC check. The returned data is analyzed as described above.
8.2.5 Read local holding register
Master Send Data Format:
Content
Bytes
Data
(H: HEX)
Description
Device Address
1
01H
01H Device, Range: 1-247, according to setting address
Function Code
1
03H
Read holding register, function code 03
Mapping Register
starting Address
2
00 00H
Register starting address.For detailed address, please
refer to local register address
Number of read
registers
2
00 23H
A total of 35 16-bit addresses are read
16 CRC Verify
2
04 13H
CRC0 CRC1 low byte in front, high behind
Receiver Return Data Format:
Content
Bytes
Data
(H: HEX)
Description
Device Address
1
01H
01H Device, according to the data Master send
Function Code
1
03H
Read holding register
Return the number
of bytes
1
46H
Return data length