Page 43 of 55
King Pigeon Hi-Tech. Co., Ltd.
Ver 1.3
GSM/SMS/GPRS/3G/4G
Cellular IoT Gateway
Boolean Mapping
Register Address
2
00 40H
Range: 00 40H-00 7FH, address refer to ["
Slave
Mapping Register Address
”] at manual bottom
Write value
2
FF 00H
This value: FF 00H or 00 00H, FF 00H stands for write 1;
00 00H stands for write 0
Receiver Return Data Format:
Content
Bytes
Data
(H: HEX)
Description
Transaction ID
2
00 00H
Identification of Modbus requests/responses
transactions
Protocol Identifier
2
00 00H
00 00: Modbus protocol
Data Length
2
00 06H
The length of subsequent data
Device Address
1
01H
01H Device, according to the data Master send
Function Code
1
05H
Write single holding coil
Boolean Mapping
Register Address
2
00 40H
Range: 00 40H-00 7FH, address refer to ["
Slave
Mapping Register Address
”] at manual bottom
Write value
2
FF 00H
This value: FF 00H or 00 00H. FF 00H stands for write
1,00 00H stands for write 0.
Example: Modify Boolean mapping address 64 status, modify to 1, then:
Server send:
00 00 00 00 00 06 01 05 00 40 FF 00
00 00= Transaction ID; 00 00 = Protocol Identifier,00 00 stands for Modbus protocol; 00 06 = The length of
subsequent data; 01= Device address; 05= Write holding coil; 00 40=The mapping address which need to
revise; FF 00 = Write 1;
Device answer:
00 02 00 00 00 06 01 05 00 40 FF 00
00 00= Transaction ID; 00 00 = Protocol Identifier,00 00 stands for Modbus protocol; 00 06 = The length of
subsequent data;01= Device address; 05= Write holding coil; 00 40= The mapping address which need to write;
FF 00= Write 1;
If need multiple modify, pls check function 15 of Modbus protocol.
8.5.3 Read Data Type Mapping Address Data
Master Send Data Format:
Content
Bytes
Data
(H: HEX)
Description
Transaction ID
2
00 00H
Identification of Modbus requests/responses
transactions
Protocol Identifier
2
00 00H
00 00: Modbus protocol
Data Length
2
00 06H
The length of subsequent data
Device Address
1
01H
01H Device, Range: 1-247, according to setting address
Function Code
1
03H
Read holding register, function code 03
Mapping Register
Starting Address
2
4E 20H
One address can read 2 bytes. Mapping data type
address range, refer to
Address”]
at manual bottom.