Creating Recipes

Movicon offers a "DataLogger/Recipe" resource which allows you to create Recipe objects on database to manage recipes and their recorded data on archive files, and to use the graphical screen features for UI.

The recipe file management is completely automatic and object orientated.

 

To create a recipe, do as follows:

 

 

Defining the Variables

First, if not already done so, create the necessary variables in the project. In addition to the recipe process variables (Set Points), you should also create the variables that determine how the recipe is to function.

These variables should at least be:

 

  1. Index Variable

  2. Variable for the Save command

  3. Variable for the Activate command

  4. Variable for the Delete command

 

 

Creating the Recipe object

Once you have defined the variables, you will now need to select the project's "Data Logger & Recipe" resource and use the "New Recipe" command to create a new recipe in the project.  The new recipe object will be added to the resource's tree structure.

After having created the Recipe object use the "New Column" command to  add  columns in correspondence with  to the process variables (Set Points). You can also drag the variables from the Recipe with the  drag & Drop technique.

 

 

Configuring the Recipe object

Once you have inserted the new Recipe object and created its data structure, you will need to configure how the recipe functions. Select the Recipe object and access its  "Recipe Execution Properties". Here you will be able to assign  the variables for the Save, Activate and Delete commands. There are also other operating command types available and of which are described in the section on the Recipe Execution Properties.

 

The recipe Save, Delete, and Move Next commands can be executed by using the appropriate variables that can be  associated to the recipe  ("Recipe Execution Properties"), and by using the appropriate commands from the object Command List ("Report Commands"). If you use the  "Report Commands", you will not need to create any variables.

 

 

Creating Recipe screens

When you have finished configuring your recipe, the next and last thing to do is to set its graphical interface.  This graphical interface is built with a screen containing recipe objects which display and and interact with the recipe's values.

Movicon has a very simple but powerful command which allows you to automatically create the recipe screen with one simple click using a wizard.  All you have to do is select the Recipe object and use the "Create Recipe Editor" command. Movicon will automatically create a screen containing all the graphical controls and objects that the selected recipe needs. All the graphical objects will automatically link to the recipe's variables and the operating commands, leaving you nothing else to do but run the project.

The wizard will create a screen with the following components:

 

 

The "Activate", "Save", "Delete" and "Read" buttons will be set as "ON-OFF" type and automatically associated with the Recipe's execution variables if specified in the "Recipe Execution Properties". If these variables have not been specified, "Command Execution" type buttons will be created and associated to the corresponding  " Report - Recipes Commands" (Activate, Save, etc.).

The "Import" and "Export" buttons will be set as "Command Execution" type and associated with the corresponding " Report - Recipes Commands" (Import and Export).

 

Below is an example of a simple recipe graphic:

 

 

 

 

See Also