Use recipes to change or read recipes values for a specific set of variables (recipe definition) on the controller at the same time.
You define the basic settings for recipes, such as location and format, in the “Recipe Manager” object. Insert one or more recipe definitions below this object. A recipe definition is composed of one or more recipes for the contained variable. The recipe consists of specific variable values.
You can save a recipe to a file or write directly from files to the PLC.
Recipes can be loaded via the CODESYS development interface, the visualization element, or the application program.
Using recipes on remote devices
Using recipes on remote devices
The variable values from recipes are transferred automatically to and from another
controller when they are data source variables and a data source exchange is configured.
Reading and writing occurs synchronously. Therefore, CODESYS updates all variables in a recipe at the same time. After reading or writing, you
can use the call g_RecipeManager.LastError
to check whether or not the transfer was successful (g_RecipeManager.LastError = 0
).
-
Calling recipe commands in the CODESYS user interface
-
Calling recipe commands programmatically or in a visualization
-
Special functionality for floating-point numbers
-
Creating a recipe
-
Loading a recipe from a file
-
Recipe management on the controller; memory usage
-
Loading recipe values from the controller