Appendix
A - 5
(2) CRC check
The error check field based on the CRC system is included in the message frame in RTU mode. The target of CRC
calculation is all messages (Device No., Function code, Data).
The CRC code is 16-bit data generated to the block of any data length of a 8-bit unit, which is calculated by
generation polynomial of CRC-16(X
16
+X
15
+X
2
+1).
CRC = CRC XOR Target data
CRC = Shift CRC to the right (1bit)
bit which
overflowed by shift
High byte and the Low byte
of CRC are swapped.
Target data is shifted by 1 byte.
Figure A.3 Calculation procedure of CRC-16
Ex ) The calculation method is explained using 2 bytes of data (0x0207) .