6
-72
Error Check
Errors during communications are detected using CRC-16 (cyclic redundancy check, checksum method).
The result of the checksum calculation is stored in a data-word (16 bit), which starting value is FFFH. The
value of this word is manipulated using Exclusive OR- and SHIFT operations together with the data package
that should be sent (slave address, function code, data) and the fixed value A001H. At the end of the calcula-
tion the data-word contains the checksum value.
The checksum is calculated in the following way:
1. The starting value of the 16 Bit data-word, that is used for the calculation, has to be set to FFFFH.
2. An Exclusive OR operation has to be performed with the starting value and the slave address.
3. The result has to be shifted to the right until the overflow bit becomes 1.
4. When this bit becomes 1, an Esclusive OR operation with the result of step 3 and the fix value A001H has
to be performed.
5. After 8 shift operations (every time when the overflow bit becomes 1, an Exclusive OR like in step 4 has to
be done), perform an Exclusive OR operation with the result of the former operations and the next data
package (8 bit function code). Again the result of this operation has to be shifted 8 times and if needed it
has to be interconnected with the fix value A001H using an Exclusive OR operation.
6. The same steps have to be performed with the data, first with the higher byte and then with the lower byte
until all data are proceeded.
7. The result of these operations is the checksum. It consists of a high and a low byte.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание E7 Drive
Страница 3: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 19: ...XVIII Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 37: ...1 18 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 75: ...3 12 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 87: ...4 12 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 265: ...7 18 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 287: ...10 12 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 288: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...