Component: CRC (Calculation)

From Flowcode Help
Revision as of 14:13, 22 October 2025 by Wiki bot (talk | contribs) (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix Ltd |- | width="20%" style="color:gray;" | Version | 1.0 |- | width="20%" style="color:gray...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Author Matrix Ltd
Version 1.0
Category Calculation


CRC component

Proforms CRC error checking using sum or division methods.

Version information

Library Version, Component Version, Date, Author, Info
1, 1.0, 30-09-24, MW, Component created

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Macro reference

CRC16

Fc9-comp-macro.png CRC16
Enter databytes and data count. The checksum will be retuened as a byte  
Fc9-u8-icon.png - BYTE Data
 
Fc9-u8-icon.png - BYTE DataLength
Actual Data length is only required if using Final XOR Value greater than 0. If not then Data length can be 0 
Fc9-u16-icon.png - UINT Return


CRC16_Array

Fc9-comp-macro.png CRC16_Array
Enter databytes and data count. The checksum will be retuened as an unsigned integer 
Fc9-u8-icon.png - BYTE Data
 
Fc9-u8-icon.png - BYTE DataLength
Max data lenght (2 - 20) 
Fc9-u16-icon.png - UINT Return


CRC8

Fc9-comp-macro.png CRC8
Enter databytes and data count. The checksum will be retuened as a byte  
Fc9-u8-icon.png - BYTE Data
 
Fc9-u8-icon.png - BYTE DataLength
Actual Data length is only required if using Final XOR Value greater than 0. If not then Data length can be 0 
Fc9-u8-icon.png - BYTE Return


CRC8_Array

Fc9-comp-macro.png CRC8_Array
Enter databytes and data count. The checksum will be retuened as a byte  
Fc9-u8-icon.png - BYTE Data
 
Fc9-u8-icon.png - BYTE DataLength
Max data length (2 - 20) 
Fc9-u8-icon.png - BYTE Return


ClearChecksumValue

Fc9-comp-macro.png ClearChecksumValue
 
Fc9-void-icon.png - VOID Return


compareChecksum

Fc9-comp-macro.png compareChecksum
Compare generated checksum uisng CRC8 or CRC16 macros. 0 = match, 1 = don't match 
Fc9-u16-icon.png - UINT Checksum
 
Fc9-bool-icon.png - BOOL Return


Property reference

Fc9-prop-icon.png Properties
Fc9-type-16-icon.png CRC Type
 
Fc9-type-16-icon.png CRC Size
 
Fc9-type-21-icon.png Poly
 
Fc9-type-21-icon.png Initial Value
 
Fc9-type-21-icon.png Final XOR Value
 

Component Source Code

Please click here to download the component source project: FC_Comp_Source_CRC.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_CRC.fcfx