Page 47 of 56
King Pigeon Hi-Tech. Co., Ltd.
Ver 2.3
Industrial Ethernet Remote I/O Module
IoT Data Acquisition Module
Return Data
2
73 01H
Return Bit status
16 CRC Verify
2
5D 0CH
CRC0 CRC1 low byte in front, high behind
Example: starting from address 100, read the value of 10 Bit mapping data,then:
Server send:
01 01 00 64 00 0A FD D2
01= Device address;
01= Read hold coil;
00 64=Read data starting from the starting address 100;
00 0A = Continuously read 10 bit status;
FD D2 = CRC verify.
Device answer:
01 01 02 73 01 5D 0C
01= Device address;
01= Read hold coil;
02= Return Byte Length;
73 01= The returned DO status data, each bit represents a DO status, 0 represents open, 1 represents closed;
the first byte 05H is converted into binary: 0000 0101, corresponding to DO1-DO8 status from low to high; second
The byte C3H converted into binary is: 1100 0011, corresponding to the state of DO9-DO16 from low to high;
Register map address
invalid invalid
invalid
invalid
invalid
invalid
109 108
value
0
0
0
0
0
0
0
1
Register map address
107
106
105
104
103
102
101 100
value
0
1
1
1
0
0
1
1
Address values higher than 10 bits are considered invalid values.
5D 0C = CRC verify.
8.3.2Rewrite the bit mapping address data
If you want to control the status of the holding coil connected to the slave, you must configure the instruction
mapping for adding slave 01 function code. After the mapping address value is changed, the corresponding slave
address data will be written.
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
05H
Write a single holding coil, use function code 05
Bit register starting
address
2
00 64H
Initial addressFor address correspondence, please refer
to the mapping register address
Value written
2
FF 00H
This value is: FF 00H or 00 00H, FF 00H means written 1,
00 00H means written 0.
16 CRC Verify
2
CD E5H
CRC0 CRC1 low byte in front, high behind
Receiver Return Data Format:
Content
Bytes
Data
(H: HEX)
Description