Standard Recipes
Standard Recipes
Standard recipes
v.8.20
© 2020 Ing. Punzenberger COPA-DATA GmbH
Distribution and/or reproduction of this document or parts thereof in any form are permitted solely
with the written permission of the company COPA-DATA. Technical data is only used for product
description and are not guaranteed properties in the legal sense. Subject to change, technical or
otherwise.
Contents
2 Standard Recipes........................................................................................................................................ 4
GENERAL HELP
If you cannot find any information you require in this help chapter or can think of anything that you
would like added, please send an email to [email protected].
PROJECT SUPPORT
You can receive support for any real project you may have from our customer service team, which
you can contact via email at [email protected].
2 Standard Recipes
Recipes collect set values and commands in a list that are executed in the Runtime by means of a
function.
Recipes can be engineered either in the Editor or in the Runtime (with the help of screen Recipe
standard).
A collection of several recipes is created and administrated with the help of the Recipegroup
Manager.
4 | 30
Engineering in the Editor
Editor profile Opens the drop-down list with predefined editor profiles.
New Recipe Creates a new recipe in the list and opens the name for
editing.
Editor profile Opens the drop-down list in which you can allocate an Editor
profile.
TOOLBAR
New Recipe Creates a new recipe in the list and opens the name for
editing.
Create standard function Opens the dialog for selecting a recipe and an action and
creates a suitable function. The action is documented in the
output window.
5 | 30
Engineering in the Editor
Jump back to starting Jumps back to the initial position in the zenon Editor.
element
Note: Only available in the context menu if a jump to the
current position has been made from another position with the
Linked elements context menu entry.
Paste Pastes the content from the clipboard. If an entry with the
same name already exists, the content is pasted as "Copy of".
Move down Moves the entry down one place in the recipe list.
Change set value Activates cell Set value in order to insert a value.
New Recipe Creates a new recipe in the list and opens the name for
editing.
Create standard function Opens the dialog for selecting a recipe and for the definition of
the desired action
6 | 30
Engineering in the Editor
Paste Pastes the content from the clipboard. If an entry with the
same name already exists, the content is pasted as "Copy of".
Change set value Opens the cell with the set value in order to change it.
7 | 30
Engineering in the Editor
ENGINEERING
Steps to create the screen using the properties if the screen creation dialog has been deactivated in
the menu bar under Tools, Settings and Use assistant:
1. Create a new screen.
To do this, select the New screen command in the tool bar or in the context menu of the
Screens node.
8 | 30
Engineering in the Editor
CONTROL ELEMENTS
Control element Description
Insert template Opens the dialog for selecting a template for the screen type.
WINDOW
9 | 30
Engineering in the Editor
The control element displays the progress bar from bottom to top
or from left to right depending on the location and form of the
element.
RECIPE FUNCTIONS
Read values from PLC The values of the variables of the selected recipe are read from
the process and entered into the table. Changes have to be
saved!
Change set value Change the value of the selected variable in the recipe A decimal
value can be entered with a colon as well as with a point, the
decimal point will automatically be changed to a point.
10 | 30
Engineering in the Editor
Write recipe The values of the variables of the selected recipe are written to
the process as displayed in the table.
Add variable ... Add a variable to the selected recipe It is also possible to use
variables of other loaded projects.
NAVIGATION
SYNCHRONOUS WRITING:
If property Write synchronously is active, the control element writing progress is displayed if a
recipe is written to the control until the writing confirmation arrived at the recipe module. It does not
matter whether the writing confirmation is positive or negative. If you want to react to a negative
writing confirmation, you can do this with the help of a reaction matrix.
Information
Buttons can be protected with password and authorization level. For details see
the Operation in the Runtime (on page 19) chapter.
11 | 30
Engineering in the Editor
Attention
String variable cannot be written to the PLC with a standard recipe. For string
variables use the Recipegroup Manager.
Variables are selected in the dialog 'Filter: Variable selection' selected. The variables are applied either
by double clicking them or by clicking button Add. Multi-select is possible. Varialbes from loaded sub
projects can be used. All variables added to a recipe must not be read-only. If you reconfigure
variables (i.e. change the norming), the set value to be written in the recipe is also amended
accordingly.
Information
A decimal value can be entered with a colon as well as with a point, the decimal
point will automatically be changed to a point.
12 | 30
Engineering in the Editor
SORTING VARIABLES
You can arrange variables any way you like:
Select the variable that you want to change the sequence of and choose one of the following actions:
In the context menu, select the corresponding entry Move up or Move down
Move the variables by dragging & dropping
Alternatively, you can already arrange the order of the variables when linking in the variable selection
dialog, with the arrow keys in the dialog.
Change set value Activates cell Set value and highlights the current
set value.
13 | 30
Engineering in the Editor
The variable '_LASTRECIPE' includes the name of the last executed standard recipe.
This allows to realize a recipe administration, as this variable at any time offers information, which
recipe is active at the moment.
The variable '_LASTNEWRECIPE' includes the name of the last created standard recipe.
The variables "_LASTRECIPE" and "_LASTNEWRECIPE" can be based on any driver and must be
writeable.
Attention
Exceptions:
The Variable “_LASTRECIPE” cannot be realized with the Standard System Driver.
The Variable “_LASTRECIPE” cannot be realized with the Standard System Driver.
14 | 30
Engineering in the Editor
Information
This status combination are active until the next value change is triggered. Then both states are set to
0 until the writing action is finished. For evaluation the following bit combination must be requested in
the reaction matrix:
WR-ACK, WR-SUC
Result:
WR-ACK 1, WR-SUC 1: Writing action successful.
WR-ACK 1, WR-SUC 0: Writing action not successful.
Attention
The mechanism only shows, that the writing action was successful (or not
successful) to the PLC. This does not mean, that the value has indeed been
changed in the PLC, since the PLC can reset/overwrite the value immediately.
(For example for writing the outputs or the transient bits which are only set for a
short time.)
MODULES
This mechanism can be used in the following modules:
function Write set value: Activate option Wait for writing confirmation in the configuration
dialog of the function.
Standard recipes (on page 14): Activate property Write synchronously.
ENTRY IN CEL
You can find the following properties in the project properties under Chronological Event List:
Function Write set value
For the entry in the CEL you must activate property Function Write set value in node
Chronological Event List in the project settings. After this the positive or negative response
the execution of the function is written to the CEL.
Log set value for set value changes only
15 | 30
Engineering in the Editor
If the function is activated, there is no entry in the CEL if the same value is placed again or
received. Only value changes are logged. The execution of the property does not depend on
the Old and new value variable setting.
Text on set value change
Allows the creation of free text for the display of the new value. You can find information on
the necessary requirements and the use of placeholders in the Use of placeholders for
changes to a set value.
Text on set value change (old/new value)
Allows the creation of free text for the display of the old value and the new value. You can
find information on the necessary requirements and the use of placeholders in the Use of
placeholders for changes to a set value.
If a recipe or a recipe group is saved again or duplicated under another name, the process is
depicted in the corresponding CEL entry.
Note: This information is relevant when a recipe or recipe group has been copied and saved again.
Changes can easily be retraced via the CEL entry.
For the entry in the CEL a system driver variable is used which is set to 1 when a recipe is written
successfully. A global variable is evaluated on the Server, a local variable on every Client in order to
determine when the recipe executed last was written completely.
With this variables a CEL entry can be created via limit value or reaction matrix. The query is carried
out via a multi analog or a multi binary reaction matrix.
16 | 30
Function screen switch standard recipe
Parameter Description
Show this dialog in the Runtime active: This dialog is displayed in the Runtime when
switching screens. The selected recipe can be
changed.
17 | 30
Function screen switch standard recipe
Parameter Description
Parameter Description
18 | 30
Operation in the Runtime
Single recipe direct (on page 20) Direct despatch of the activated recipe
Single recipe with offline dialog Changing of the parameters of the activated recipe
(on page 20)
Single recipe with online dialog Selection of a recipe and changing of its parameters
(on page 20)
By using the function Recipe single with offline dialog (on page 20) the recipe mask is opened.
Release variable Temporary deletion of the selected variable from the recipe
(permanently deleted if recipe is saved).
A decimal value can be entered with a colon as well as with a point, the
decimal point will automatically be changed to a point.
Attention: If this element does not exist in the screen, the recipes in
19 | 30
Operation in the Runtime
Parameter Description
the list element are displayed read-only.
By using the function Recipe single with online dialog (on page 20), the recipe and the parameters of
the recipe can be selected and changed. The recipe selection is opened. The operation is similar to
the parametrization in the Editor with the exception that recipes cannot be deleted.
Information
You can find more information on amended Runtime files in the Runtime changeable files chapter.
When the standard function is created from the context menu in the detail view, zenon automatically
creates a function Standard recipe for the selected recipe.
20 | 30
Operation in the Runtime
Give the recipe as a transfer parameter. This function is configured via a dialog.
Give the recipe as a transfer parameter. This function is configured via a dialog.
Only the set value setting of the recipe is activated during online operation.
21 | 30
Operation in the Runtime
Parameter Description
Give the recipe as the transfer parameter. This function is configured via an input dialog.
22 | 30
Operation in the Runtime
In order to prevent changes to the recipe entries and at the same time permit selection of the
individual recipes during online operation, make an entry in the zenon6.ini file.
[FUNKTIONEN]
23 | 30
Operation in the Runtime
RECIPE SELECTION
Parameter Description
Recipe name from The name of the recipe that should be read or written is given by the
variable selected variable.
24 | 30
Operation in the Runtime
ACTION TO BE EXECUTED
Parameter Description
Send values The values of the variables of the selected recipe are written to the PLC.
Read values The values of the variables of the selected recipe are read from the PLC
and replace the current values in the recipe.
Copy recipe The source recipe creates a copy of itself with the name of the target
recipe. The name of the duplicated recipe is not stored in the variable
_LASTNEWRECIPE.
Show this dialog in Offer dialog in the Runtime in order to change settings.
the Runtime
25 | 30
Operation in the Runtime
COPY RECIPE
Parameter Description
Select target recipe Selection of an existing recipe, which should be overwritten with the
data of the source recipe.
New Recipe A new recipe is created according to the standard syntax. With this
gaps in the recipe order are filled up automatically.
(Generate name)
Example: Recipe_0 and Recipe_2 already exist. Duplicating the first
time creates a recipe with the name Recipe_1. Duplicating a second
time creates a recipe with the name Recipe_3.
Target recipe from The name of the target recipe is defined by the contents of a string
variable variable.
Note: If the string variable of the target recipe does not contain text,
a recipe name is given automatically.
26 | 30
Operation in the Runtime
EXPORT RECIPE
Parameter Description
Define file name Click on the ... button to open the dialog to select a folder and give it
a name.
File name from The name of the file is defined by the contents of a string variable.
variable
IMPORT RECIPE
Parameter Description
Define file name Click on the ... button to open the dialog to select a folder and a file.
27 | 30
Operation in the Runtime
Parameter Description
variable
If a recipe written, this variable contains the result of the writing operation.
VALUES
WRITE RECIPE
6 Timeout occurred
8 Writing was not carried out because the recipe contains invalid values
Note: If the network functionality is active in the project, the system driver variable Standar
recipe/RGM recipe completely written (local) is relevant for the function executed on the local
computer.
Information
28 | 30
Operation in the Runtime
Writing means writing to the driver. The driver then transfers the recipe to the
control. That means:
Write synchronously property inactive: Value 1 for Standard recipe/RGM
recipe written completely does not mean that the values are available in the
PLC. They are only written to the driver.
Write synchronously property active: The value change take place when all
values on the control are topical.
RECIPE IN PROGRESS
-1 is being executed
3 chancel by user
During
reading (system driver variable: Standard recipe/RGM recipe reading all values finished
Exporting/Importing and
Saving
29 | 30
Operation in the Runtime
of a recipe via screen specific function - the following values are available:
Valu Result
e
1 read successfully
30 | 30