Page 48 of 56
King Pigeon Hi-Tech. Co., Ltd.
Ver 2.3
Industrial Ethernet Remote I/O Module
IoT Data Acquisition Module
Device Address
1
01H
01H Device, according to the data Master send
Function Code
1
05H
Write a single holding coil, use function code 05
Bit register address
1
00 64H
For 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
Example: Rewrite the state value of Bit mapping address 100, rewritten to 1, then:
Server send:
01 05 00 64 FF 00 CD E5
01= Device address;
05= Write a single holding coil;
00 64=Mapped address to be written;
FF 00 = written 1;
8D EE = 16 Bit CRC verify.
Device answer:
01 05 00 64 FF 00 CD E5
01= Device address;
05= Write a single holding coil;
00 64= Mapped address to be written;
FF 00 = written 1.
8D EE = 16 Bit CRC verify.
If you need to rewrite more than one, please read Modbus protocol 15 function code.
8.3.3Read 16-bit mapped address data
Master Send 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
Mapping register
starting address
2
00 64H
For address correspondence, please refer to the
mapping register address
Read the number of
mapped registers
2
00 0AH
Number of read registers
16 CRC Verify
2
84 12H
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
14H
Return data length