DataSetCRC and FileCRC outputs
Outputs for the checksums (CRCs) the function block has calculated over the data set (file section) and the file, respectively, after writing and sealing the recipe file.
All checksums are inserted into the recipe file, as follows:- 4 bytes checksum calculated over each data set is inserted at the end of the corresponding data set.
- 4 bytes checksum calculated over the file header and all DataSetCRCs in the file sections is inserted at the penultimate position in the recipe file.
Further Info
Further information are provided in the topic "Recipe Files: Background Information and File Structure". |
Data type: SAFEDWORD
Initial value: 0
Connection: If required, the outputs can be connected to a safety-related variable of the SAFEDWORD data type, for example, to further process them in the safety application or to display it in an HMI application.
Write down these checksums in the project documentation. You can use it follows:
To ensure that the correct file/data set is read, the SF_RecipeRead function block can perform a configurable checksum validation before reading data from the recipe file. For that purpose, apply each checksum value to the appropriate CRC input of the
SF_RecipeRead FB and activate the verification.
Refer to the help chapter "SF_RecipeRead function block" for details.