17
2 Protocol description
2.8 Checksum (CRC16)
The checksum (CRC16) serves to recognize transmission errors. If an error is
identified during evaluation, the device concerned does not respond.
Calculation
scheme
Example Data request: Read two words, starting at address 0x00CE
(CRC16 = 0x92A5)
Response: (CRC16 = 0xF5AD)
CRC = 0xFFFF
CRC = CRC XOR ByteOfMessage
For (1 to 8)
CRC = SHR(CRC)
if (flag shifted right = 1)
then else
CRC = CRC XOR
0xA001
while (not all ByteOfMessage processed);
The low byte of the check sum is the first to be transmitted, then the
high byte.
07 03 00 CE 00 02 A5 92
CRC16
07 03 04 00 00 41 C8 AD F5
Wo rd 1 Wo rd 2 CRC 16