Delta ASDA-A3 Series User Manual page 875

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 with the content 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 the CRC register.
Step 3: check the least significant bit (LSB) of the CRC register. If the bit is 0, shift the register
one bit to the right. If the bit is 1, shift the register one bit to the right and perform (CRC
register) XOR (A001H). Repeat this step 8 times.
Step 4: repeat steps 2 and 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 byte of the CRC value in the command message,
and then the high byte. For example, if the result of CRC calculation is 3794H, put 94H in the
message and then 37H as shown in the following table.
9-12
ADR
CMD
Start Data Address
Data Quantity
(in words)
CRC (Check Low)
CRC (Check High)
01H
03H
01H (High)
01H (Low)
00H (High)
02H (Low)
94H (Low)
37H (High)
ASDA-A3

Advertisement

Table of Contents
loading

This manual is also suitable for:

A3-lA3-mA3-fA3-e

Table of Contents