
Page 44 of 56
King Pigeon Hi-Tech. Co., Ltd.
Ver 2.3
Industrial Ethernet Remote I/O Module
IoT Data Acquisition Module
hexadeci
mal data
00
3D
04
05
06
07
Converted
to true
value
0
0
7838781
333333
4
5
6
7
Types
DIN8Pul
se count
DIN9Pulse
count
DIN10Pulse
count
DIN11Pulse
count
DIN12Puls
e count
Received
hexadeci
mal data
00 00 00
08
00 00 00
09
00 00 00
0A
00 00 00 0B
00 00 00
0C
Converted
to true
value
8
9
10
11
12
F6 9D = CRC verify.
If you want to read certain holding 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.6 Control the local holding register
1) Control a single holding register of this device
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
06H
Write a single holding register, use function code 06
DO register address
2
00 00H
Register address
Action performed
2
00 64H
Set execution data as needed
16 CRC Verify
2
88 21H
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
06H
Write a single holding register, use function code 06
DO register address
1
00 00H
Register address
Action performed
2
00 64H
Executed data
16 CRC Verify
2
88 21H
CRC0 CRC1 low byte in front, high behind
Example: Control AO1 output value to 100, then:
Server send:
01 06 00 00 00 64 88 21
01= Device address;