
Page 37 of 56
King Pigeon Hi-Tech. Co., Ltd.
Ver 2.3
Industrial Ethernet Remote I/O Module
IoT Data Acquisition Module
Read Register Qty
2
00 10H
Number of reads
16 CRC Verify
2
79 C6H
CRC0 CRC1 low byte in front, high byte in 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
02H
Read holding coil
Return Byte Length
1
02H
Return Data Length
Returning Data
2
03 90H
Returned input coil status
16CRC Verify
2
B9 24H
CRC0 CRC1 low byte in front, high behind
Example: Query 16 DIN data of this device at the same time, then:
Server send:
01 02 00 00 00 10 79 C6
01= Device address;
0
2
= Query DIN status command;
00
0
0=DIN
starting
address;
00
10
= Continuously read 16 DIN states;
BD D9= CRC verify.
Device answer:
01 02 02 03 90 B9 24
01= Device address;
0
2
= Query DIN status command;
02= Return Byte Length;
03 90
= DIN status, each bit represents a DIN status, 0 represents open, 1 represents closed; the first byte 03H
is converted into binary: 0000 0011, corresponding to DIN1-DIN8 status from low to high; the second byte
90H is converted into binary: 1001 0000, corresponding to
DIN8
DIN7
DIN6
DIN5
DIN4
DIN3
DIN2
DIN1
0
0
0
0
0
0
1
1
open
open
open
open
open
open
closed
closed
DIN16
DIN15
DIN14
DIN13
DIN12
DIN11
DIN10
DIN9
1
0
0
1
0
0
0
0
closed
open
open
closed
open
open
open
open
B9 24
=CRC verify.
If you want to query certain DIN statuses, you only need to change the "register
starting
address" and "read
register number", recalculate the CRC check, and the returned data is analyzed as described above.
8.2.2
Read this device holding coil
Master Send Data Format:
Content
Bytes
Data
(H: HEX)
Description
Device Address
1
01H
01H Device, Range: 1-247, according to setting address