07 Descriptions of Parameter Settings | REG2000
7-19
CRC
CHK
High
5CH
06H: single write, write single data to a register.
(
The system can write up to 20 sets of data
simultaneously.)
For example, writing data 6000 (1770H) to register 0100H. The Power Regenerative Unit address
is 01H.
ASCII mode:
Inquiry message string format
Response message string format
STX ‘:’
STX ‘:’
Address
‘0’
Address
‘0’
‘1’
‘1’
Function
‘0’
Function
‘0’
‘6’
‘6’
Data address
‘0’
Data address
‘0’
‘1’
‘1’
‘0’
‘0’
‘0’
‘0’
Data content
‘1’
Data content
‘1’
‘7’
‘7’
‘7’
‘7’
‘0’
‘0’
LRC Check
‘7’
LRC Check
‘7’
‘1’
‘1’
END
CR
END
CR
LF
LF
RTU mode:
Inquiry message string format
Response message string format
Address 01H
Address 01H
Function 06H
Function 06H
Data address
01H
Data address
01H
00H
00H
Data content
17H
Data content
17H
70H
70H
CRC CHK Low
CRC CHK High
86H CRC CHK Low
CRC CHK High
86H
22H
22H
10H: write multiple registers (write multiple data to registers).Checksum in ASCII mode (LRC
Check)
Checksum (LRC Check) is the sum from Address to Data Content. For example, the checksum of
the inquiry message above: 01H + 03H + 21H + 02H + 00H + 02H = 29H, and then take the 2’s
complement = D7H.
Checksum in RTU mode (CRC Check)
Checksum starts from Address and ends at Data content. The calculation is shown below.
Step 1: Set the 16-bit register (CRC register) = FFFFH.
Step 2: Exclusive OR the first 8-bit byte message and the low bit 16-bit CRC register,
create Exclusive OR, and store the results in CRC register.
Step 3: Shift one CRC register to the right, and fill in 0 high bit position.
Step 4: Check the shifted value. If it is 0, store the new value from Step 3 in the CRC register;
otherwise, Exclusive OR A001H and the CRC register store the results in the CRC