Page 38 of 55
King Pigeon Hi-Tech. Co., Ltd.
Ver 1.3
GSM/SMS/GPRS/3G/4G
Cellular IoT Gateway
Mapping Register
Starting Address
2
4E 20H
One address can read 2 bytes. Mapping data type
address range, refer to
Address”]
at manual bottom.
Read Mapping
Register Qty
2
00 0AH
Read input register qty.
16 CRC Verify
2
3D 2FH
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 coil
Range Data Bytes
1
14H
One address can read 2 bytes
Returning Data
20
00 14 00 1E 00
28 00 32 00 4B
00 41 00 0A 00
25 00 14 00 2AH
Returning Data
16 CRC Verify
2
FB 34H
CRC0 CRC1 low byte in front, high behind
Example: Mapping address start from 20000, read 10 address data, then:
Server send:
01 03 4E 20 00 0A D3 2F
01= Device address; 03= Read holding coil; 4E 20=Mapping register starting address, current is Decimal data
20000; 00 0A = Read 10 register value;
D3 2F = 16 Bit CRC verify.
Device answer:
01 03 14 00 14 00 1E 00 28 00 32 00 4B 00 41 00 0A 00 25 00 14 00 2A FB 34
01= Device address; 03= Read holding register; 14= Returning 20 byte; 00 14 00 1E 00 28 00 32 00 4B 00 41 00
0A 00 25 00 14 00 2A = Returning data.
Register Mapping
Address
20000 20001 20002 20003 20004 20005 20006 20007 20008 20009
Value
00 14
00 1E
00 28
00 32
00 4B
00 41
00 0A
00 25
00 14
00 2A
FB 34 = 16 Bit CRC verify.
8.4.4 Modify Data Type Mapping Address Data:
If need to revise slave data which RS485 connected, need to add slave in salve list of configurator. Write
command 16 for mapping, when mapping address value modified, will write to RS485 matched slave address.
If address 20000 mapping slave data type is Signed Int, sort AB.
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 single holding register, function code 06
Mapping Register
Address
2
4E 20H
Address range: 4E 20H-50 1CH. Mapping data type
address range, refer to
Address”]
at manual bottom.