The Checksum component calculates checksums and adds it to the telegrams in one direction. In the other direction it checks whether the data is consistent with the checksum provided.
Parameters
-
ChecksumMode
-
Specifies how the checksum is calculated. The ChecksumMode is bit orientated,
bit 0 determines the main mode, 0 stands for an exclusive-or generated checksum, 1 for a summation over the data.
The higher bits determine modifications of the main mode.
If bit 1 is set, 1 is added to the previously calculated checksum.
If bit 2 is set, the bits in the previously calculated checksum are inverted.
If bit 3 is set, the previously calculated checksum is negated.
-
ChecksumWidth
-
Specifies how many bytes are used for the representation of the checksum. If set to 0,
no checksum is calculated.
-
ChecksumStartOffset
-
Specifies how many bytes from the start are ignored for the calculation of the checksum.
-
Direction
-
Specifies in which direction the checksum should be added. If this is set to
0 the checksum is added for telegrams sent and checked/removed for telegrams received.
If this value is set to 1 checksums are added for received telegrams and checked/removed for telegrams sent.
-
Timeout
-
Specifies how long the component waits for the component below to finish the transmission. Units used are
ms.
See Also
AIDA Overview, list of AIDA components