14-9
Chapter 14
RS485 Communication
14.3.5
Error check
• To check errors in Modbus-RTU, use CRC (Cyclic
Redundancy Check).
• To generate a CRC code, use the generating polynomial
for CRC-16 (X
16
+X
15
+X
2
+1).
Example of procedure for calculating CRC-16.
• CRC codes are16 bits data generated for a block with
arbitrary data length in 8-bit unit.
CRC-16 calculation
CRC*1=FFFFh
Hi
Lo
CRC register (2 bytes)
CRC*1
Target data
Swapping high bytes and
low bytes in CRC*1.
Finished.
CRC*1= CRC*1 XOR target data
Shift by 8 bits
CRC*1= Shift CRC*1 by 1 bit to the
A bit shifted out
CRC*1= CRC*1 XOR A001h
Yes
Calculation of the
target data is
finished.
Finished
There is a remaining bit.
0
1
Shift as much as 1 byte for the target data.
Summary of Contents for SJ Series
Page 39: ...5 4 Chapter 5 Included Items Memo ...
Page 55: ...6 16 Chapter 6 Installation Memo ...
Page 91: ...7 36 Chapter 7 Wire Connection and Optional Devices Memo ...
Page 135: ...9 40 Chapter 9 Operating Instructions Memo ...
Page 145: ...10 10 Chapter 10 Test Run Memo ...
Page 159: ...12 2 6 Chapter 12 Inverter Functions Memo ...
Page 169: ...12 3 10 Chapter 12 Inverter Functions Memo ...
Page 195: ...12 5 8 Chapter 12 Inverter Functions Memo ...
Page 217: ...12 8 12 Chapter 12 Inverter Function Memo ...
Page 287: ...12 10 32 Chapter 12 Inverter Functions Memo ...
Page 303: ...12 11 16 Chapter 12 Inverter Functions Memo ...
Page 349: ...12 15 8 Chapter 12 Inverter Function Memo ...
Page 395: ...12 17 34 Chapter 12 Inverter Functions Memo ...
Page 397: ...12 18 2 Chapter 12 Inverter Functions Memo ...
Page 415: ...12 19 18 Chapter 12 Inverter Function Memo ...
Page 581: ...15 10 Chapter 15 Optional Cassettes Memo ...
Page 591: ...16 10 Chapter 16 ProDriveNext EzSQ Memo ...
Page 642: ...18 49 Chapter 18 Tips FAQ Troubleshooting Memo ...
Page 650: ...19 8 Chapter 19 Maintenance and Inspection Memo ...
Page 781: ...Appendix 1 70 Appendix 1 List of Parameters Memo ...