8 / 11
data requested by hosts has no limit, but cannot exceed the defined address range.
The following example shows how to read a measured insulation resistance value from No.01 slave
computer, with the address of the value of 0008H.
The host computer sends
Send
message
The slave computer
returns
Return
message
Address code
01H
Address code
01H
Function code
03H
Function code
03H
Start address
High byte
00H
Bytes
02H
Low byte
08H
Register
data
High byte
00H
Number of
registers
High byte
00H
Low byte
50H
Low byte
01H
CRC check
code
Low byte
B8H
CRC check
code
Low byte
05H
High byte
78H
High byte
C8H
8.2.2 Function code 10H: Write the registers
The function code 10H allows the user to change the contents of multiple registers, which can write
the time and date in this meter. The host can write up to 16 (32 bytes) data at a time.
The following example shows a preset address of 01 with an installation date and time of 12:00,
Friday, December 1, 2009.
The host computer sends
Send
message
The slave computer
returns
Return
message
Address code
01H
Address code
01H
Function code
10H
Function code
10H
Start address
High byte
00H
Start address
High byte
00H
Low byte
04H
Low byte
04H
Number of
registers
High byte
00H
Number of
registers
High byte
00H
Low byte
03H
Low byte
03H
Number of registers
06H
CRC check
code
Low byte
C1H
0004H data
High byte
09H
High byte
C9H
Low byte
0CH
0005H data
High byte
01H
Low byte
05H
0006H data
High byte
0CH
Low byte
00H
CRC check
code
Low byte
A3H
High byte
30H
Note: The above data is for reference only, see address table for register definition