
CV3100 series and MINI series high performance general purpose inverter instruction manual
9-24
The response massage when forward and decelerate:
Address
1FH
Function
03H
Data volume
(
Byte
)
02H
Fault Number
00H
B1H
CRC CHK Low
D0H
CRC CHK High
32H
RTU mode check code
(
CRC Check
)(
CRC Check
)
Check the code by the end of Address to Data content.
The operation rules are as follows:
:
Step 1: make 16-bit register (CRC register) = FFFFH.
Step 2: Exclusive OR the first 8-bit byte message command with the low bit 16-bit
CRC register, do the Exclusive OR, and save the result into the CRC register
Step 3: MoveRight a CRC register, fill in the high bit at 0.
。
Check the right value, if it is 0, step 3 of the new value into the CRC register,
otherwise the Exclusive OR A001H and CRC register, save the result into the
register of the CRC.
Step 5: Repeat step 3 and 4, the 8-bit all the operations completed.
Step 4: Check the right value, if it is 0, step 3 of the new value into the CRC register,
Step 4: Step 6: Repeat step 2 to 5, removed an 8-bit message command, until
completion of the operation instructions of all messages. Finally, get the value
of the CRC register, which is the CRC checksum. Note that the CRC check
code must be placed in the message exchange check code instructions
The following is written in C language example of CRC generation:
:
unsigned char* data // Message instruction pointer
unsigned char length // Massage command length