Type element
Defines the CRC calculation algorithm.
Type
Parent
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
- Byteoffset
- CRC (with groupbytes and off attributes if specified)
- Mod
- Totaloffset (added or ‘OR’-ed, depending on the ‘OR TOTALOFFSET’ option)
- Ones complement