Project example – Lenze VisiWinNet VisiWinNET Smart Benutzerhandbuch
Seite 220

Project example
Defining visualisation recipes
l
220
SHP−VWNS DE/EN 6.1
Typical tasks for the developer in the recipe system are:
Specifying recipe definitions:Here, which variables describe the recipe are specified. In
order to prevent any misunderstanding, please note that this does not concern the values
of variables. These are not specified until the runtime.
Adapting designs, editing recipe values: In principle, the existing command elements that
are tied to the variables in the process can be used.
Adapting designs, managing recipe files: Typical tasks such as loading or saving recipe
values from files usually require a list of the existing recipe files.
The following example illustrates the above steps with reference to a minimum recipe
consisting of two variables.
1. Double−click the Variables
® Channels ® Internal node in Project Explorer.
The table editor for defining variables is opened.
2. Press the [F8] key to define the following three variables:
Properties for process variables
No. Tab/Property
Value
1
General
Alias
w1
Data type
VT_I2
2
General
Alias
w2
Data type
VT_I2
3
General
Alias
Group
Data type
VT_I2
3. In Project Explorer, open the Recipes node.
4. Select the subnode Recipe classes and press [F8] in order to create a new recipe class.
The table editor is opened; "Recipe class1" has been created.
5. In the table editor, right−click in the Variables area and select the New command in
the context menu..
A new recipe element is the opened.
6. In the line of the new recipe element, click the [...] command button.
The "Select variable" dialog is opened. Here, the variables that belong to the recipe
definition are specified.