FUNCTION_BLOCK RecipeManCommands
The methods of the RecipeManCommands function block allow the programmatic management of recipes.
The application creates recipe files automatically on the PLC with the names <recipe>.<recipe definition>.txtrecipe.
These are used as a buffer when reading and writing recipe variables. The "Save recipe changes to recipe files automatically" option in the Recipe Manager - "General" tab affects access to these files.
When the recipe command is called, the application accesses the recipe files internally. This can take a few milliseconds depending on the device type. The calls are not executed in a task with time monitoring or in a predefined time frame (real-time sensitive).
If the "Save recipe changes to recipe files automatically" option is activated, then the recipes of the definition in CODESYS and the implicit recipe files on the PLC are kept the same automatically. Changing recipes also leads to file access.
Deactivate this option if the application controls the saving of files programmatically.
Refer to the sample project "Recipe Management" in CODESYS Store for more information about this topic.