72
M_T08_EN_B
Functions
If failed, the machine waits for a new data transmission.
The data acquisition has succeeded when the checksum received is equal to the checksum calculated or when
the checksum is not used.
The checksum is added at the end of the message. It is represented by 2 consecutive characters (0 to F, in
hexadecimal mode).
The emitter calculates the checksum based on the useful data in the transmitted message.
The receiver also calculates the checksum based on the useful data transmitted, and compares this new
checksum to the one received.
The checksum is calculated using an "exclusive Or" (XOR) between all the characters contained in the useful
part of the message.
• Emission checksum = "character 1 emitted" XOR "character 2 emitted" XOR... "character n emitted"
• Receiving checksum = "character 1 received" XOR "character 2 received" XOR..."character n received"
Example
Given the message "ABCD":
Checksum calculation: 65 XOR 66 XOR 67 XOR 68
Calculation Characters Decimal Binary Result
A 65 01000001
XOR B 66 01000010
00000011
XOR C 67 01000011
01000000
XOR D 68 01000100
00000100
The result of the message ABCD is: 00000100 in binary, or 04 in hexadecimal mode. The emitter sends the
message ABCD04.