Page 41 of 56
King Pigeon Hi-Tech. Co., Ltd.
Ver 2.3
Industrial Ethernet Remote I/O Module
IoT Data Acquisition Module
closed
open
closed
open
closed
open
closed
open
5D 0F = CRC verify.
Device answer:
01 0F 00 00 00 10 54 07
01= Device address;
05= Write a single holding coil;
00 00= DO1 register starting address;
00 10 = 16 DO performed actions.
54 07 = CRC verify.
8.2.4 Read native input 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
04H
Read input register, function code 04
Mapping Register
starting Address
2
00 00H
Register starting address, every 2 16-bit addresses
corresponds to 1 32-bit register
Number of read
registers
2
00 10H
A total of 16 16-bit addresses are read, and every 2
16-bit addresses are combined into a 32-bit address, a
total of 8 32-bit addresses, that is, the number of AIs is
8
16 CRC Verify
2
F1 C6H
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
04H
Read input register
Return the number
of bytes
1
20H
Return data length
Return data
32
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 60H
Return AI data, AI data is 32-bit signed integer, sorted
as ABCD, true value = register value/100.
16 CRC Verify
2
46 A0H
CRC0 CRC1 low byte in front, high behind
Example:Query 8 AIs of this device at the same time, then:
Server send:
01 04 00 00 00 10 F1 C6