Jump to content

Component: CRC (Calculation): Difference between revisions

From Flowcode Help
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..."
 
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
 
(3 intermediate revisions by the same user not shown)
Line 31: Line 31:


===CRC16===
===CRC16===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CRC16'''
| width="90%" class="mtx-class-macrohead" | '''CRC16'''
|-
|-
| colspan="2" | Enter databytes and data count. The checksum will be retuened as a byte  
| colspan="2" | Enter databytes and data count. The checksum will be retuened as a byte  
Line 55: Line 55:


===CRC16_Array===
===CRC16_Array===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CRC16_Array'''
| width="90%" class="mtx-class-macrohead" | '''CRC16_Array'''
|-
|-
| colspan="2" | Enter databytes and data count. The checksum will be retuened as an unsigned integer 
| colspan="2" | Enter databytes and data count. The checksum will be retuened as an unsigned integer 
Line 79: Line 79:


===CRC8===
===CRC8===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CRC8'''
| width="90%" class="mtx-class-macrohead" | '''CRC8'''
|-
|-
| colspan="2" | Enter databytes and data count. The checksum will be retuened as a byte  
| colspan="2" | Enter databytes and data count. The checksum will be retuened as a byte  
Line 103: Line 103:


===CRC8_Array===
===CRC8_Array===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CRC8_Array'''
| width="90%" class="mtx-class-macrohead" | '''CRC8_Array'''
|-
|-
| colspan="2" | Enter databytes and data count. The checksum will be retuened as a byte  
| colspan="2" | Enter databytes and data count. The checksum will be retuened as a byte  
Line 127: Line 127:


===ClearChecksumValue===
===ClearChecksumValue===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearChecksumValue'''
| width="90%" class="mtx-class-macrohead" | '''ClearChecksumValue'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 141: Line 141:


===compareChecksum===
===compareChecksum===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''compareChecksum'''
| width="90%" class="mtx-class-macrohead" | '''compareChecksum'''
|-
|-
| colspan="2" | Compare generated checksum uisng CRC8 or CRC16  macros. 0 = match, 1 = don't match 
| colspan="2" | Compare generated checksum uisng CRC8 or CRC16  macros. 0 = match, 1 = don't match 
Line 161: Line 161:
==Property reference==
==Property reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
|-
|-

Latest revision as of 14:22, 13 July 2026

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

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


CRC16_Array

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


CRC8

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


CRC8_Array

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


ClearChecksumValue

ClearChecksumValue
 
- VOID Return


compareChecksum

compareChecksum
Compare generated checksum uisng CRC8 or CRC16 macros. 0 = match, 1 = don't match 
- UINT Checksum
 
- BOOL Return


Property reference

Properties
CRC Type
 
CRC Size
 
Poly
 
Initial Value
 
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