
5.4.3
Write register (correct)
The master requests to write the set value of slave (ID 01 hex) output voltage (start
address 00 00 hex) 100V. Below is the query frame.
Field name
Hex value Descriptions
ID
01
The slave ID
Function code
10
Write into the slave register
Byte count
04
The byte count of the Iset is 4 bytes
Start address (hi)
00
The start address of the output voltage
Start address (lo)
00
Data
42
The register data type of the output voltage is
general fraction
Convert the output voltage 100V into the register
data 42 C8 00 00 hex
Data
C8
Data
00
Data
00
CRC check (lo)
D6
The CRC value after checking 01 10 04 00 00 42 C8 00
00 hex
CRC check (hi)
2A
Example: Setting voltage 100V.
01
10
04
0000
42C80000
D62A
The 4 bytes data refer to 5.3.4 section
Below is the response frame sent by the slave.
Field name
Hex value Descriptions
ID
01
The slave ID
Function code
10
Write into the slave register
Frame status
00
Frame format correct
Byte count
00
The byte count of the requested data is 0 byte
CRC check (lo)
00
The CRC value after checking 01 10 00 00 hex
CRC check (hi)
1D
Correct response :
01
10
00
00
001D
The 4 bytes frame status refer to 5.3.1 section