Delta ASDA-A3 Series User Manual page 479

Hide thumbs Also See for ASDA-A3 Series:
Table of Contents

Advertisement

MODBUS Communication
CRC (RTU mode):
To calculate the CRC value:
9
Step 1: Load a 16-bit register of FFFFH, which is called the ‟CRC" register.
Step 2: (The low byte of the CRC register) XOR (The first byte of the command), and save the
result in CRC register.
Step 3: Check the least significant bit (LSB) of the CRC register. If the bit is 0, right move one bit;
If the bit is 1, then right move one bit and (CRC register) XOR (A001H). Repeat this step
8 times.
Step 4: Repeat the procedure from step 2 and step 3 until all bytes have been processed. The
content of the CRC register is the CRC value.
After calculating the CRC value, fill in the low word of the CRC value in the command
message, and then the high word. For example, if the result of CRC calculation is 3794H,
put 94H in the low word and put 37H in the high word as shown below:
9-12
ARD
CMD
Start Data Address
Data Number (In words)
CRC Check Low
CRC Check High
01H
03H
01H (High)
01H (Low)
00H (High)
02H (Low)
94H (Low)
37H (High)
Revision December, 2017
ASDA-A3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents