Specifications
75
Schneider Electric
The Modbus Protocol (continued)
Algorithm for generating CRC16
+ exclusive OR
n = number of data bits
POLY = polynomial for generating CRC 16 = 1010 0000 0000 0001
(generating polynomial = 1 + x
2
+ x
15
+ x
16
)
In CRC 16, the LSB is transmitted first.
E52396
FFFF CRC 16
CRC 16
byte
CRC 16
n = 0
shift CRC 16 right
carry
CRC 16 poly CRC 16
n = n + 1
n > 7
next byte
message finished
end
yesno
no
no
yes
yes
Guide to Integration
Modbus / Jbus