Shenzhen Hpmont Technology Co., Ltd.
Appendix B Communication Protocol
HD3N-L Series User Manual V1.0
- 79
-
3.
Protocol Function
Supported Function
Supported Function
Code
Instructions
To read function and status parameter
0x03
To rewrite single function or control parameter
0x06
Not saved at power off
0x41
Saved at power off
To rewrite numbers of function or control parameters
0x43
Saved at power off
To Read Function and Status Parameters
Function code 0x03, command frame and response frame are in below table (take RTU as an example).
Command
Frame
Address
Code
Starting Register
Address
No. of Register
CRC/LRC
Checking
Data frame
bytes
1
1
2
2
2/1
Value or range
0 - 247
0x03
0x0000 - 0xFFFF
0x0001 - 0x0004
Command
Frame
Address
Code
Starting Register
Address
No. of Register
CRC/LRC
Checking
Data frame
bytes
1
1
1
2 * no. of
registers
2/1
Value or range
1 - 247
0x03
2 * no. of
registers
To Rewrite Single Function or Control Parameter
Function code 0x06 (save at power off) or 0x41 (not save at power off), command frame and response
frame are in below table (take RTU as an example).
Command
Frame
Address
Code
Register address Register content
CRC/LRC
checking
Data frame
bytes
1
1
2
2
2/1
Value or range
0 - 247
0x06, 0x41
0x0000 - 0xFFFF
0x0000 - 0xFFFF
Command
Frame
Address
Code
Register address Register content
CRC/LRC
checking
Data frame
bytes
1
1
2
2
2/1
Value or range
1 - 247
0x06, 0x41
0x0000 - 0xFFFF
0x0000 - 0xFFFF
B