Recipe backup and restore
Using RecipeBackupDuration attribute user can decide to use recipe backup feature offered by Beckhoff.TwinCAT.HMI.Plastic.RecipeHelper. This feature allows the package to back up temporary recipe changes made by the in form of JSON files on the system.
If RecipeBackupDuration attribute is set to 10, the recipe backup function will create a new file after 10 minutes delay since last change by the user. The file name includes last activated recipe name and backup time stamp.
Backup operation works in a ring buffer format. Any backup older than 72 hours will be deleted.
The user can see the list of backup files using a File Explorer control. All backup files are stored in a folder ‘RecipeBackup’ inside the project directory. To list these files on file explorer control set ‘//RecipeBackup’ as root attribute value.
To activate recipes inside any backup file the user can use ActivateBackupRecipe function, the function requires a file name of the backup file as an input parameter.