Positioning module UVE8112, IMD10
Description of the drive module
The checksum is formed on the basis of the 1 ... n data bytes (not the ASCII characters). It has to be
taken into account that the control character is of no importance for the forming of the checksum.
This only concerns the “pure” data bytes that are to be transferred. The checksum also has to be
converted into ASCII characters again, before it is sent. This transfer protocol is applicable for both
directions of transfer, i.e. both for the reading and the writing process.
Conversion of the data bytes into ASCII signs: e.g. 0x3F = '3' and 'F' (0x33 and 0x46).
Checksum = - ( (Byte1 + Byte2 + ... + Byte_n) mod 256 ) or
= - ( Division remainder of ((Byte1 + Byte2 + ... + Byte_n) : 256))
In the following, example 2 is used to show why a checksum of 0x10 (hexadecimal number) is
created.
C
2F 60 60 00 01
10
CR
The control character ‚C’ and Carriage-Return ‚
CR
’ are not taken into account for the calculation.
Checksum
=
- (0x2F + 0x60 + 0x60 + 0x00 + 0x01)
(hexadecimal number)
=
- (47 + 96 + 96 + 0 + 1)
(decimal number)
=
-
240
(decimal
number)
=
- Division remainder of (240 : 256)
(decimal number)
=
-240
(decimal
number)
=
0xFF10
(hexadecimal
number)
=
0x10
(hexadecimal
number)
The two characters 1 and 0 for the last byte 0x10 of 0xFF10 are transferred as the checksum before
the carriage return.
25
Содержание IMD1
Страница 1: ...DC servo positioning module with CanOpen interface UVE8112 IMD10 www isel com ...
Страница 66: ...DcSetup programme Positioning module UVE8112 IMD10 66 ...
Страница 113: ...Positioning module UVE8112 IMD10 Appendix 113 Appendix UVE8112 package dimensions ...
Страница 114: ...Appendix Positioning module UVE8112 IMD10 114 IMD10 package dimensions ...