11
Attention
External UDFBs from other straton projects are not part of the straton project and therefore
not available in zenon.
3.5.1
Create O and M variables in straton
All variables created in the straton Workbench can be marked as O&M (operating and monitoring)
variables:
Local program variables
Global variables
Retain variables (=remanent variables)
Array variables
Structure variables
UDFB instances (User Defined Function Block)
Attention
We recommend that when using UDFB instances as O&M variables to administrate only
one straton project in a zenon project.
If two or more straton projects are administrated in zenon, the as O&M marked UDFBs
appear as structure data types.
Attention
A soon as a straton variable is declared as an O&M variable, you must avoid editing
straton variables in the Workbench as text!
This leads to the loss of variable declarations.
In order to do this the following steps are necessary:
12
(Refer to the online help of the straton Workbench for the exact steps to create a variable in straton.)
1.
Right click on a variable in the variable list.
2.
Select Properties from the context menu.
3.
Activate checkbox Embed symbol in the following dialog.
4.
Change the profile in the combo box from
None
to
STRATON (*Operating and Monitoring
for zenon*)
.
5.
Click on OK.
Now the O&M variable has been entered in the zenon variable list. The O&M variable is displayed with a
prefix in zenon. The prefix has the following structure:
//
You can set the profile and the flag directly in the variable list of straton. Thus you do not have to open
the context menu and the dialog.
13
Mark the line Properties of the corresponding variable. Press
Ctrl+F12
. Thus the profile straton is
displayed in this line. In addition you must activate the checkbox for embedding the symbol via double
click or
Enter
in column Symb..
Attention
The checkbox Embed symbol must be activated. Variables for which this checkbox is not
active are not able to communicate with zenon using the STARTON32 driver and will not
supply any values.
The additional attributes Identification_and_Description'>Identification and Description of a variable are also displayed in
zenon when you select the profile STRATON (*Operating and Monitoring for zenon*). In zenon the
contents of identification and description can be found in the variable properties Identification and
Resource label.
If arrays or structure variables are marked with the profile STRATON (*Operating and Monitoring for
zenon*), they are also displayed in the variable list in zenon. You must however activate the desired
elements of the variable.
UDFB instances which are marked with profile STRATON (*Operating and Monitoring for zenon*), they
are not automatically available in zenon. In case you want them to be available, you must activate this
functionality manually with the help of the following entry in file K5DBK.INI. In file K5DBK.INI scroll to
section [XS] and enter
ShareUDFBDatatype=1
.
If you deactivate this entry, existing UDFB data types in a project are still modified. However no new
UDFBs are created.
straton IO variables can be used zenon if in the straton Workbench they:
have a
profile
14
have an alias name; this name is used in zenon instead of
%IX0.0
(board type, board index, bit
number)
An alias is necessary if the straton profile is used and property Embed symbol was activated. In this
case the variable is also available in zenon (Editor and Runtime).
IO variables cannot be renamed in zenon.
IO variables for straton IO cards cannot be created in zenon.
The data type of IO variables should not be changed in zenon: Changes are not adopted in the
straton Workbench.
Changes to the hardware IO declaration should always be carried out in straton. In
zenon no new
variable for the straton32 driver can be created as hardware I/O variable for straton.
3.5.2
Create O and M variables in zenon
O&M (operating and monitoring) variables for the soft PLC straton can also be declared in zenon. In
order to do this create a variable in zenon as usual: