Table of Contents

Type element

Defines the CRC calculation algorithm.

Type

EnumParamCRCType

Parent

CRC

Attributes

Name Type Required Description
byteoffset int Allows to add an offset to every single byte of the CRC.
groupbytes string Specifies the number of bytes on which to perform the operation.
mod unsignedInt Specifies that a modulo operation has to be performed on the CRC after it has been calculated.
off int Specifies an offset value to be added to the calculated CRC.
options string Specifies additional options, separated by semicolons (”;”).
totaloffset unsignedInt Specifies an offset value to be added to the CRC after it has been calculated.

Remarks

One of the following values can be specified:

  • 2COMP
  • CODAN
  • CRC
  • CRC-CCITT
  • CRC-16
  • EXOR
  • FLETCHER
  • LSB AFTER SUBTRACT
  • LSB AFTER SUM
  • MODBUS
  • RCDS
  • REST
  • SUBTRACT
  • SUM

Internal calculation sequence

  1. Byteoffset
  2. CRC (with groupbytes and off attributes if specified)
  3. Mod
  4. Totaloffset (added or ‘OR’-ed, depending on the ‘OR TOTALOFFSET’ option)
  5. Ones complement