Zenon Manual: Runtime
Zenon Manual: Runtime
Runtime
v.8.10
© 2019 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 qualities in the legal sense. Subject to change, technical or otherwise.
Contents
2 Runtime......................................................................................................................................................... 5
14 Filter profiles.............................................................................................................................................. 75
14.1 Export and import filter profiles ...............................................................................................................76
ZENON VIDEO-TUTORIALS
You can find practical examples for project configuration with zenon in our YouTube channel
(https://www.copadata.com/tutorial_menu). The tutorials are grouped according to topics and give an
initial insight into working with different zenon modules. All tutorials are available in English.
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 Support Team, who you can
contact via email at [email protected].
2 Runtime
Runtime is software that includes and supports graphic display possibilities for HMI/SCADA projects.
Process display
Archiving of data such as messages and process values
Integrated alarm message list
Recipes
Multi-Touch
5 | 78
32bit and 64bit version
Attention
Note when configuring the project:
For the optimal display of zenon in the Runtime, the standard setting
(corresponds to 100%) is recommended for the Windows display. Higher
values can lead to graphic elements, symbols, texts, etc. not being
displayed correctly.
Windows themes can overlay elements in Runtime. Ensure, when
configuring a project, that there is an appropriate distance from the
elements to the screen edge.
Runtime is available as a 32-bit version and a 64-bit version starting with zenon 7.10. Projects can run
on both versions. Details on compatibility with versions before zenon 7.10 can be read in the Project
conversion manual, in the 64-bit version (on page 6) chapter. The Runtime is available as zenon
Supervisor and as zenon Operator for Embedded operating systems. The versions differ in their
functionalities. For details see Restrictions for zenon Operator.
Exception: On the terminal server or terminal client, one instance of Runtime per user can be started
as an EXE file, as a zenon Web Client or as Runtime Control (OCX). Only 1 instance can run at any time
within a user context.
On 64bit systems, all services present in 64-bit are registered and used in the 64-bit version. Editor and
Runtime can be started alternately. Projects can be executed in both Editors and in both Runtimes.
Components such as, for example, zenon Logic Runtime, zenon Logic Workbench, drivers, Process
Gateway and other tools are always only used in the 32-bit version.
6 | 78
32bit and 64bit version
GENERAL LIMITATIONS
The basic limitation of only 64-bit DLLs being able to be loaded in 64-bit processes also means that
there are certain limitations when operating zenon. This mostly affects external components that are
loaded in the Editor or Runtime. DLLs that are loaded using VBA/VSTA code and ActiveX controls are
directly affected. These DLLs must be present as a 64-bit version for use in the 64-bit Editor or Runtime.
ActiveX controls supplied by COPA-DATA are always available in 32-bit and 64-bit versions.
RGM LIMITATION
The Access database is no longer supported in the RGM. In order to be able to use MS Access data
from previous versions under 64-bit, the project must first be converted in the 32-bit Editor. The
DataSource property is no longer available from version 7.10. For details, see the Converting
Recipegroup Manager database chapter.
VBA
VBA was converted to VBA version 7.1. Therefore VBA is also available in zenon 64-bit. If, in the VBA
code, Windows API or other imported DLL functions are accessed, these calls must be adapted to
64-bit. In general, the following applies: A VBA file created for a 32-bit version cannot be used without
changes in a 64--bit version.
There are some defines/functions available in VBA in order to write 32-bit and 64-bit compatible code.
For example:
#if Win64 then
Declare PtrSafe Function MyMathFunc Lib "User32" (ByVal N As LongLong) As LongLong
#else
Declare Function MyMathFunc Lib "User32" (ByVal N As Long) As Long
#end if
#if VBA7 then
Declare PtrSafe Sub MessageBeep Lib "User32" (ByVal N AS Long)
#else
Declare Sub MessageBeep Lib "User32" (ByVal N AS Long)
#end if
You can also obtain some useful notes on the porting of VBA 32-bit code to VBA 64-bit from Microsoft:
Microsoft Office 2010, notes on porting: http://msdn.microsoft.com/en-us/library/ee691831.aspx
(http://msdn.microsoft.com/en-us/library/ee691831.aspx)
7 | 78
Putting Runtime into operation
Windows CE
Drivers
zenon Logic Runtime and Workbench
To do this:
Save your project files on an external data medium.
Use Drag&Drop or Copy&Paste to transfer these to your Runtime device.
or
Get the project from the server on the Runtime device.
Create a Client using the network topology.
A license is required after installation in order to put it into operation. The license is transferred with the
License Manager.
Note: The hard drive of the device you are operating may stop working after many years of use in a
harsh industrial environment. To avoid loss of data, it may be a good idea to ensure that there is a
redundant environment, such as working with both a Server and a Standby Server.
8 | 78
Putting Runtime into operation
4.1 Installation
For the installation of zenon Runtime, start the installation process from your zenon installation medium.
This process automatically starts when the zenon installation medium is connected and guides you
through the whole installation. Alternatively, it is possible to start the installation by executing
START.exe in the root directory of your zenon installation medium.
Information
You can find further information in the installation and updates manual in the
zenon standard installation chapter.
Note: For extensive projects or several projects loaded at the same time you will need accordingly
faster/stronger hardware. The minimum requirements can increase as a result of this.
Parameter Minimum requirements Recommended
CPU: Single core with SSE2 support. Quad Core or more cores
9 | 78
Putting Runtime into operation
Driver graphics card: The graphics card manufacturer's most recent driver.
(DirectX hardware
only)
Operating system: DirectX hardware and DirectX software only works on operating systems
that support DirectX11.1.
You can check the DirectX hardware compatibility of the graphics card and the driver with the Windows
operating system tool dxdiag.exe.
Up to Windows 7: Check the DDI version value under Display. The value 11 for example means
DirectX 11.
From Windows 8: All supported versions of DirectX are displayed in the Display tab under Feature
Levels. For example, DirectX 11 is displayed as 11.0.
The zenon program files are copied to a folder which can be defined during the installation.
Additionally the installation asks for a folder for the SQL databases of the projects. The storage medium
for project archiving (SQL, screens etc.) must have enough free space, because all current and future
project data is stored there.
Folder Path
64-bit system:
%Program Files%\COPA-DATA\zenon7xxx
10 | 78
Putting Runtime into operation
Folder Path
RUNTIME FOLDER
The Editor creates the Runtime files in the Runtime folder, or they are transferred to this folder by means
of Remote Transport. The Runtime folder is created or updated when compiling a project in the Editor.
The parameters for this folder can be set in the zenon Editor with the Runtime folder project property.
With remote transfer, the Runtime folder is defined in Remote Transport settings.
DATA FOLDER
The Runtime saves all data files that were created in Runtime such as alarm files, archive files etc. in the
data folder. The data folder is created as a subfolder of the Runtime folder by default. The folder is
automatically assigned the name of the computer the Runtime is running on. You can change this save
location in the project properties (General/Data folder).
Hint: Never set the data folder to a removable device such as an USB stick or a network device. It is
recommended that the data is recorded locally and backed up externally.
Attention
If the defined path does not exist or is not available, no more data is written
from the Runtime. This means a complete loss of data. The Runtime can still be
operated but must be restarted as soon as the path is available again. The
availability of the folder can be checked via system driver variable Runtime
folder not available (SYSDRV.chm::/25965.htm) .
11 | 78
Putting Runtime into operation
of zenon can be disturbed. Many ports in zenon can be changed using the Startup Tool or properties in
the Editor.
12 | 78
Putting Runtime into operation
Examples of this:
Communication with CodeMeter --> USB dongle
Loading VBA or VSTA code
Embedding ActiveX elements in screens
Frequent file access, for example for archiving, CEL, AML...
Note: There are compatibility problems with Ahnlabs V3 virus scanner. If zenon refuses to start with an
error message, put V3 into Game-Mode or uninstall V3.
13 | 78
Putting Runtime into operation
PORTS USED
For communication within zenon, only TCP ports are used; no UDP ports are used. zenon requires the
following ports in a network:
Service File Exercise TCP-por
t
Port numbers can be amended individually via the Listening ports tab in the Startup Tool. In this case,
the measuring range must be adapted manually!
Furthermore, zenon and zenon Analyzer services use a range of default ports:
Application Standard port
zenon
DB Service 1103
zenAdminSrv.exe 50777
zenLicTransfer 50784
(License Transfer Service)
14 | 78
Putting Runtime into operation
Assigned port for zenon Logic or straton depends on the project and 1200 - 1210
service.
4500 - 4510
E.g.: First zenon Logic project used 1200 and 9000, second project 1201
7000 - 7010
and 9001 etc.
9000 - 9010
zenon Analyzer
ZAMS 50781
Drivers
15 | 78
Putting Runtime into operation
Note: zenon drivers that communicate by means of Ethernet use TCP and thus might need
authorizations in the firewall depending on the port used.
The minimum requirements are listed in the following table. These are based on a complete
installation of Runtime. For extensive projects or several projects loaded at the same time you will
need accordingly faster/stronger hardware. The minimum requirements can increase as a result of
this.
Hardware Minimum requirements Recommended
RAM memory Windows 7/8: from 512 MB. Windows 7/8: 4096
MB
Note: Projects with big amounts of data,
Network projects, multiple projects
simultaneously and projects in redundance
mode need more memory.
16 | 78
Putting Runtime into operation
Network 64 kBits/s for standard Client/Server projects. 100 Mbits/s full duplex
connection for standard
100 Mbit/s full duplex for redundant
(optional) Client/Server projects.
operation.
Info
You can display many default paths with the help of the set command:
start the command line (enter cmd in the Windows start area)
enter command set
Press the Enter key to display standard folders for Windows and zenon
17 | 78
Putting Runtime into operation
Note: As absolute paths differ in different operating system, the paths are displayed as Windows
environment variable in this chapter. For example %ProgramData% instead of C:\ProgramData.
SETUP
During setup, paths are set for required software from third-party providers, as well as the zenon
Runtime folder.
The setup needs administrator rights. This is also true for changing the installation paths.
REQUIREMENTS
The installation paths of the required third-party software match the standard paths of the respective
manufacturer and cannot be changed during setup.
The additional software packages that need to be installed depend on the type of installation:
zenon Editor
zenon Runtime
zenon Web Client
zenon Logic Runtime
18 | 78
Putting Runtime into operation
ZENON RUNTIME
zenon Runtime uses the path that is set in zenon6.ini for projects. This path can be set using the Startup
Tool as well as using Remote Transport from a zenon editor.
Object Path
ZENON LOGIC
Paths for zenon Logic are created analogous to the zenon paths.
Note: From the 31st day in demo mode, zenon Runtime only runs for 10 minutes.
19 | 78
Putting Runtime into operation
This table only states the figures that are different to the standard installation. The other parameters
correspond to the figures described in the Hardware requirements for Runtime chapter.
Hardware Minimum requirement Recomme
nded
Attention: If you log historical data (e.g. Archive data or Alarm-/CEL-Data), you need sufficient
harddrive space or you have to make sure during engineering that the historical data is evacuated or
deleted.
20 | 78
Uninstalling Runtime
Attention
Windows CE is no longer supported from version 7.50. zenon CE version 7.20 is
installed. To use this, the Runtime files for version 7.20 must be created.
5 Uninstalling Runtime
To uninstall Runtime:
1. Open the Control Panel.
2. Click on Programs.
3. Click on Programs and Features.
4. Select the zenon 8.10 programs.
5. Click on Uninstall.
6. Follow the uninstall wizard.
ZennetsrvCE.dll The control system netservice for Windows CE. Necessary for network
projects.
zenon6.ini Text file with settings for the Runtime like e.g. start project, language of
the Runtime, etc.
21 | 78
Runtime for Windows CE
Install the Runtime to the CE device with the entry CE Runtime Update-Programs (under menu Tools).
Attention
Windows CE is no longer supported from version 7.50. zenon CE version 7.20 is
installed. To use this, the Runtime files for version 7.20 must be created.
Info
The following is true for a connection to Windows CE 6.0 with CX1000, Profibus
or SYCONuni: Make sure that the file CDMemDrv.dll has been transferred to the
device. CDMemDrv.dll is a Windows CE device driver. The DLL is available for
x86 and for ARMV4I.
Additionally there are a number of other drivers for hardware communication. If the processor type of
the CE device is recognized by the editor, the Remote Transport automatically transports the drivers
used in the project to the CE device. The manner or the number of transferred files is displayed in the
Output Window of the Editor.
These files always have to be compatible with the according CE version and with the according
processor type. Mixing files from different CE versions or even service packs can lead to failures and
unwanted side effects, and is thus is not permitted.
Info
When starting zenonrce.exe, the file syssrvce.exe is also executed. Thus it is
guaranteed that a TCP connection can also be established. Long delays are
avoided and only one file is necessary for the autostart functionality.
22 | 78
Runtime for Windows CE
atl90.dll Not necessary for starting the Runtime but for the use of drivers with
network connections or the use of zenon in a network. If this file does
not exist, the device will not work as a client or TCP/IP driver
connections will not work.
IMGDECMP.dll Not necessary for starting the Runtime but necessary for displaying
Transparency if Alpha Blending is not integrated in the operating
system.
Animation of GIF files is not possible with Windows CE.
VBSCRIPT.dll + Not necessary for starting the Runtime. This file is needed for the PCE
JSCRIPT.dll (Process Control Engine).
Some of these system files are installed together with the installation of zenon for CE and can be
transferred to the CE device using the UpdateCE Tool. All these system files should be integrated in the
operating system image of the CE device by the manufacturer.
Attention
For manufactures of Windows CE OS-images:
CE versions older than 6.0 need the file toolhelp.dll. Activate the following
option in Platform Manager in order for the file to be available on the CE device
and for Toolhelp to also be available in SDK.Core OS -> Display Based Device
->Core OS Services -> Debugging Tools -> Toolhelp API. Thus the
Toolhelp.dll is part of the image.
Hint: Always use the most up-to-date Servicepack of the Platform Builder.
Note: The toolhelp.dll is not required for Windows CE 6 and should not be
used with CE 6.
23 | 78
Runtime for Windows CE
Note: If you are transferring/installing Runtime for the first time, note the information in the Manual
installation and Runtime update (on page 30) chapter. (on page 30)
CONFIGURE CONNECTION
You can configure the connections to the Windows CE device in the tab Connection.
24 | 78
Runtime for Windows CE
Parameter Description
Adress IP address.
Use MS ActiveSync for initial transport Active: syssrvce.exe is transferred during the first
of syssrvce.exe transport via MS ActiveSync.
25 | 78
Runtime for Windows CE
Parameter Description
Default: active
Default: inactive
Default: active
Options
Default: English
26 | 78
Runtime for Windows CE
Parameter Description
Remove all Removes all drivers from the list of selected drivers.
SELECT VERSION
Select the correct version in the tab Versions if it wasn´t automatically recognized.
27 | 78
Runtime for Windows CE
Parameter Description
WinCE version Version of the target device Windows CE OS. Click the button to
open a drop-down list for selection.
Source path Path to the folder that contains the files. Click the button ... and a
dialog opens to select a folder.
Exit Closes the update CE-tool and reminds you before to save
unsaved changes.
START UPDATE
To establish a connection:
1. Click on the button Start on the tab Update.
28 | 78
Runtime for Windows CE
If the transfer cannot be initiated because files are missing, an error message with a list of
missing files pops up:
29 | 78
Runtime for Windows CE
If you get the error message The current update was not completed, the update was interrupted
or not executed properly.
Information
If you want to replace zenVNCServer.exe via update, it is terminated and
restarted after the update. For this the file zenVNCSrvCE.exe in the
It is mandatory to copy the following files from the according folder for the correct platform to a storage
card for the CE device:
zenonRCE.exe (Runtime)
LogCliLibCE.dll (Diagnose-DLL)
ZenNetSrvCE.dll (Network)
Further files, for example the driver or the remote desktop software (zenVNCCfgCE.exe and
zenVNCSrvCE.exe), are optional.
30 | 78
Starting the Runtime
DIENST ZENADMINSRV
The zenAdminSrv service must be started to start the Runtime. If the service is not available, you will
receive an error message accordingly.
When starting via Windows Autostart, zenon attempts to start Runtime until the service is available or
you end the error message by clicking on the Cancel button.
The size of the Runtime window when Runtime is started is configured for the local computer in the
zenon Editor.
Carry out the following steps for this configuration:
1. Select the Workspace in the zenon Editor.
2. Click on the Local Runtime size property group.
3. Enter the values for Runtime window width [pixel].
4. Enter the values for Runtime window height [pixel].
The Runtime can be moved behind other running programs with the help of function Window to the
background. With function Window to foreground it is moved to the foreground.
31 | 78
Starting the Runtime
Information
When switching Runtime to the foreground with the Window to foreground
function, the Runtime window is defined as the upper window.
You have the following options to get the alarm status line back to the
foreground:
Activate the symbol keys (deactivate Lock system keys project property)
and get the alarm status line back to the foreground with Alt+Tab.
Activate the Windows task bar and click on the Status window.
Move Runtime to the background again.
Restart the Runtime.
Note: It is a requirement that the project generated is first transferred to the target system if the
configuration computer is not also the target system.
32 | 78
Starting the Runtime
Runtime thus starts automatically the next time you log on.
If the zenon Runtime is configured as a Terminal Server, the Runtime can be started several times with
different start projects.
Project path The project path points at any project that should
be performed in Runtime.
Project name The desired project name under which the project
33 | 78
Starting the Runtime
Parameter Description
should be started. The name can be assigned
freely. This is necessary because the project name
is not part of the project data.
Note: The use of the argument /Project has a higher priority than the entries VBF30 and
DEFANWENDUNG30 in the zenon6.inifile.
Note: If zenrt32.exe is called with the argument /Project="”, the Runtime Server dialog appears when
starting Runtime to select a startup project.
The precondition for this is that the project properties are set Runtime title to No title (full screen). Then
zenon runs in full screen mode and the Runtime cannot be minimized.
Note also the information provided in the Protect Runtime files chapter.
Note: The blocking of the Windows key can be circumvented. You should therefore block the Windows
key using the corresponding entry in the Startup Tool
Note: In doing so, note that this start delay can only be configured in the zenon6.ini file. There is no
possibility to set the parameters of this in a graphical user interface.
To do this:
1. Open the zenon6.ini file with a text editor.
2. Navigate to the [DEFAULT] area
3. Create a new STARTDELAY= entry
34 | 78
Starting Runtime as a service
Example:
[DEFAULT]
STARTDELAY= 30000
Information
You can findzenon6.ini in the following path:
%ProgramData%\COPA-DATA\System\
Attention: If Runtime is started using the zenStartupMgr, it can no longer be stopped or restarted by
users.
REGISTER SERVICE
To register zenStartupMgr.exe as a service:
1. Open the command line.
2. You can navigate to the location of the zenStartupMgr.exe file.
For native 32-bit OS: %ProgramFiles\Common Files\COPA-DATA\zenStartupMgr
For 64-bit OS:
64-bit folder: %ProgramFiles\Common Files\COPA-DATA\zenStartupMgr
32-bit folder: %ProgramFiles\Common Files\COPA-DATA\zenStartupMgr
35 | 78
Starting Runtime as a service
Windows as an operating system limits the number of windows that can be created due to its fixed,
reserved desktop memory, depending on the version and possible interaction with the desktop.
Version/action Interactive Desktop Non-Interactive Desktop
zenon drivers each need several windows. The number of drivers that can be used can be influenced
using the Allow data exchange between service and desktop option in the properties of the service.
Inactive:
A maximum of 20 drivers can be started.
Active:
As many drivers as there are in a Runtime started as a user process can be started.
To activate the Allow data exchange between service and desktop option:
1. Open the Windows Service Manager.
2. Open the properties of the zenStartupMgr service.
3. Go to the Login tab.
36 | 78
Starting Runtime as a service
on to the computer is notified if the zenon Runtime as a service opens an additional window,
for example in the event of a new alarm and active status line.
Note Windows 8/Server 2012: In order for the service to be able to be started, the entry
must be set correctly in the Windows registry:
a) Go to the entry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows.
b) Open or create the DWORD value NoInteractiveServices.
c) Set the decimal value of 1 to 0.
5. To stop Runtime messages being displayed on the desktop:
Deactivate the Detection of inactive services service.
INTERACTIVE ACCESS
If it is possible to interactively access the process, then:
1. Activate the Allow data exchange between service and desktop option in the service.
2. Activate the Detection of interactive services service.
Note: This type of access is not suitable for use for the actual operation of Runtime. Services are
intended as program instances that run in the background that are not operated by means of a user
interface. If operations on the Runtime Server are to be carried out, Runtime must be started as an
application. If Runtime is to run on the Server as a service, operation of Runtime can be carried out from
a zenon Client.
If zenon Runtime is started as a service and this is nevertheless to have a graphic user interface (GUI),
this is implemented by the operating system by means of the Secure Desktop (detection of interactive
services) system service.
Access to the Runtime user interface via the Windows system service has been subject to several
restrictions since the Vista/Server 2008 version for security reasons. Above all:
The interactive desktop is automatically ended after one minute of inactivity and the windows
login screen is displayed.
Display of DirectX effects, such as glow or shadowing for elements is not possible.
Multi-monitor operation is not possible.
37 | 78
Starting Runtime as a service
38 | 78
Starting Runtime as a service
zenSysSrv Up to Windows 8:
39 | 78
Starting Runtime as a service
4. Click on Deactivate.
5. Restart the computer
Attention: If a zenon version is re-registered via the Startup Tool, the entry is recreated and must be
removed manually again.
8.4 Procedure
If the zenStartupMrg service is started, then it starts all processes entered in the Startup Tool
consecutively as child processes. If the service is ended, it ends all processes it has sent in reverse order.
RIGHTS
All processes started by zenStartupMrg run under the user under which the service is started by the
system. This is generally the local system account. Only resources that can access the local system
account can be used.
The following are thus generally not reachable:
Network drives
Network printers
Databases with the activated option Use Windows NT integrated security
If zenStartupMgr is started under a dedicated Windows user, no interaction with the desktop is possible.
Attention: The password of a dedicated user must not neither be changed nor expire. Otherwise the
service will no longer start.
SECURE DESKTOP
Secure Desktop can be used to interactively access a process that has a user interface and is executed in
a system context. The following must be the case for this:
In the zenStartupMgr service, the option Allow data exchange between service and desktop
must be activated
The system service Detection of interactive services must be started
Note: This type of access is not suitable for use for the actual operation of Runtime. Services are
intended as program instances that run in the background that are not operated by means of a user
interface. If operations on the Runtime Server are to be carried out, Runtime must be started as an
application. If Runtime is to run on the Server as a service, operation of Runtime can be carried out from
a zenon Client.
40 | 78
Reloading Runtime
Attention
Modal dialogs must never be called up via VBA or VSTA, because there is no
possibility to close these again through user interaction.
9 Reloading Runtime
If the project configuration in amended in the Editor, Runtime can reload the amended files in ongoing
operation. System-related changes are excluded from this. These generally require Runtime to be
restarted.
To reload data:
1. Select the symbol for Create amended Runtime files or use Remote Transport.
2. Click on the button with the Reload project online function in Runtime.
This must already be configured and present.
Runtime loads the amended data.
The reloading is only carried out in this case if these elements are closed again.
41 | 78
Operation in the Runtime
TYPES OF OPERATION
Runtime can be operated with a mouse as well as with a keyboard or touch screen. For mouse or touch
operation, you can primarily use buttons, status buttons, switches and invisible buttons in your project.
The possibility of mouse operation of a screen object is signaled by a change in the cursor symbol. The
arrow as a mouse pointer becomes a hand symbol.
Information
The switching time of screens in the Runtime depends on the number of linked
variables. Only once all variables have been successfully signed in can the screen
be operated.
If many variables are operated, this can slow the switching time. In this case, a
progress bar is shown, which displays the loading progress.
42 | 78
Operation in the Runtime
Dialogs are then displayed in the selected font type and font size in the Runtime.
11.2 Mouse
Clicking on a dynamic element opens (depending on the setting of the dynamic element) the standard
dialog for setpoint input. Depending on the data type of the variable the following dialogs are opened:
Switch to spontaneous value Display spontaneous value (value from PLC) if substitute
value was displayed before or the value was turned off.
Switch to alternate value Display substitute value (value from variable definition),
if spontaneous value was displayed before
Switch off spontaneous value Turn off connection to the PLC for this value by setting
status bit OFF (bit 20).
Switch on spontaneous value Resume connection to the PLC for this value by
resetting bit OFF.
43 | 78
Operation in the Runtime
Switch to spontaneous value Display spontaneous value (value from PLC) if substitute
value was displayed before or the value was turned off.
Switch to alternate value Display substitute value (value from variable definition),if
spontaneous value was displayed before.
Switch off spontaneous value Turn off connection to the PLC for this value by setting
status bit OFF (bit 20).
Switch on spontaneous value Resume connection to the PLC for this value by resetting
bit OFF.
Switch to spontaneous value Display spontaneous value (value from PLC) if substitute
value was displayed before or the value was turned off.
44 | 78
Operation in the Runtime
Parameter Description
Switch to alternate value Display substitute value (value from variable definition),
if spontaneous value was displayed before
Switch off spontaneous value Turn off connection to the PLC for this value by setting
status bit OFF (bit 20).
Switch on spontaneous value Resume connection to the PLC for this value by
resetting bit OFF.
LASSO
Dynamic elements that are linked to a variable or function can be pre-selected with the lasso in the
Runtime and can therefore be used for VBA events.
There are several methods for selecting elements available in the Runtime:
Select elements: Left-click on a free area and move lasso over the screen elements while
holding the mouse button pressed.
Extend selection: Ctrl+mouse click on an element in order to select/deselect it in addition to
the other elements already selected
Add elements: While spanning the lasso, press and hold the Control key to add elements to
the existing selection.
Cancel selection: Spanning a lasso which does not contain elements.
45 | 78
Operation in the Runtime
11.3 Touch
With zenon, touch screens can also be operated with Multi-Touch gestures. You can obtain an example
project from your zenon consultant.
Note: With Windows 8 gestures, interaction can be configured in many areas via Multi-Touch via
properties with no additional programing necessary.
RULES
Move: If a screen in a container is not a worldview, it accepts the settings of the faceplate
screen.
MOVE THE FRAME OR BORDER WITH THE MOUSE IF THE SCREEN IS A WORLDVIEW AND THE
SAME SIZE OR SMALLER THAN THE FRAME:
With the right mouse button: No reaction.
46 | 78
Operation in the Runtime
PROJECT CONVERSION
Values for Move horizontally and Move vertically when converting from an earlier version to zenon
7.20:
Screen is bigger than the frame: Move.
Screen is the same size or smaller than the frame: No reaction.
ZOOM AND SCROLL VIA PROPERTY MULTI-TOUCH FOR ZOOM AND SCROLL
To use Multi-Touch without VBA/VSTA:
1. In the project properties in the Interaction node for the Recognition property, activate
Windows 7.
2. Deactivate property Use screen size from frame in node Frame at the properties of the
screen
3. Activate property Multi-Touch for zoom and scroll in node Interaction at the properties of
the screen
With this you can scroll and zoom in the screen with touch operation using Multi-Touch gestures. With
this VBA/VSTA for zooming and scrolling is deactivated.
47 | 78
Operation in the Runtime
Attention: ZoomX, ZoomY and ZoomLevel can never be used simultaneously. Either you enter a
ZoomLevel or a zoom factor for x and y axis.
48 | 78
Operation in the Runtime
2. Deactivate, for the screen in the Frame group, the Use screen size from frame property and
define the screen size as larger than the frame.
3. navigate to group Interaction in the screen properties.
4. Configure the properties for Zoomen and Verschieben.
For the move gesture, you can define the direction - horizontal, vertical or both. To do this, use the
Horizontal verschieben and Vertikal verschieben properties.
The order in which the elements are selected is defined via the allocation of index numbers (on page 53)
to the elements of a screen. This definition of the navigation order also works with symbols.
The keyboard operation can also be carried out with freely allocated shortcuts such as Ctrl+M. The
shortcuts can be assigned to each operation element at the property Key combination.
11.4.1 Functions
For engineering the keyboard operation use the following functions:
49 | 78
Operation in the Runtime
a) Open the dialog for Move sequence for focus (on page 53) with Sequence for left/right.
b) Define the element that should be triggered first.
Parameter Description
Project tree window Displays all projects in the workspace. Frames can be selected from
the current project and from all projects with the Keep project in
memory option active.
If several frames are selected, the frame at the top of the list is
used to execute the function.
50 | 78
Operation in the Runtime
Parameter Description
MOVE FOCUS
This function set the focus on a particular element in the Runtime with keyboard operation and can
therefore be used to navigate within a frame.
Property Action
Direction Define the direction in which the focus should be moved. The following
defined sequence applies in the editor in the context menu or under
Edit/change focus sequence...
on the element Definition of the element for the focus. Enter the object name of the
element.
51 | 78
Operation in the Runtime
Direction: forwards.
Ctrl + Tab Switches to the next window within the application. Can be
assigned application-specifically.
52 | 78
Operation in the Runtime
Attention
The Lock system keys property is not available for CE projects.
53 | 78
Operation in the Runtime
Elements that cannot be selected using the keyboard in the Runtime (Focus is set to the
element property inactive) are displayed with red figures.
If you click on an element while holding the Control key, the numbering starts with the
index number of this element.
Information
In the properties of the elements the position is displayed via the properties
Focus position left/right and Focus position top/bottom. These properties
are for information only. The index values of the position cannot be changed
there.
SYMBOLS
An index can also be assigned to symbols. During compiling the Runtime files, the symbol is disjointed
and its elements are inserted. Thereby the order for selecting the elements which was defined in the
symbol is taken into consideration.
Example
There are three elements in this screen: the numerical value Z, the button B and
the symbol VS. The symbol from the project library receives the three numerical
values: N1, N2 and N3.
Absolute and relative positions are defined in the properties of the frame in the zenon Editor.
54 | 78
Operation in the Runtime
With this, a different position position for a template can be used on each client, because the local
position is always saved.
ABSOLUTE POSITIONING
The frame is always switched at fixed, pre-defined coordinates. A fixed screen position is always used for
all screens that are loaded automatically by the system, e.g. by the time control or a limit value violation.
RELATIVE POSITIONING
Relative positioning is especially suited to loading pop-ups, keyboard screens or command processing
screens. This is possible for all screen switches, set value inputs with freely defined keyboard screens,
and command processing screens that are started manually by the user. It does not matter whether the
action was triggered by a screen switch function, a set value function or directly via an element. Relative
positioning is available for:
dynamic elements to which you can allocate a function
dynamic elements that can be used to send a set value (buttons, combined elements)
Main and Context Menus
execute the screen-specific function in the Alarm Message List screen
Relative positioning also works for nested function calls, i.e. when screen switching or the setting of
values are triggered by a script. If the screen were to go beyond the edge of the monitor, it is
automatically positioned at the edge of the monitor. This also applies to multi-monitor management, so
that it cannot protrude into the adjacent monitor.
Attention
Relative positioning only works when called up directly by the user, not with
automated functions or via VBA.
55 | 78
Operation in the Runtime
Positions the reference point of the frame relative to the element from which the screen switch was
initiated (e.g. a button or a combined element). The frame's reference point is then always placed on the
element's calculated reference point in the Runtime. If the frame cannot be switched on in this position
because the screen would then be outside the visible screen area, the alternative reference points are
used.
First define a reference point for your frame and then the preferred position in the element. The
following settings are available:
Property Value
ALTERNATIVE POSITION
Define an alternative position for the reference point of the frame and the reference point at the
element. Proceed with the definition of the alternative positions in the same way as with the definition of
the favored positions. The alternative position is used when the frame cannot be placed at the favored
position.
The screen is displayed depending on the position of the mouse pointer. If the reference point is at the
top left side, the frame will be loaded to the bottom right side of the reference point. If the screen
cannot be displayed completely at the configured position, the position will be moved until the
complete screen is inside the displayed area of the monitor.
Define the frame's reference point above the two properties, vertical reference point and horizontal
reference point. The reference point is marked on the frame with a red dot. The following settings are
available:
Property Value
56 | 78
Operation in the Runtime
Property Value
Example
you have a button at the right border of the screen and try to position a popup
window on its right side:
Reference point element: right/centered
Frame reference point: left/centered
In the Runtime, the pop-up window will appear to the right of the button,
centered in the middle of the button. The popup window will not cover the
button.
You use the same frame also for a button on the left screen border. There may
not be enough room on the right side to completely display the popup screen.
The alternative configured position will therefore be used. For this, you place the
alternative reference point for the element on: left/centered
the frame's alternative reference point on right/centered
57 | 78
Operation in the Runtime
Property Description
Width: Width limitation.
Height. Height limitation.
Relative: Limitation to a percentage value of the set screen
size.
Default: Without
Opening size: Defines the size with which a screen based on this frame is called
up in the Runtime:
Frame size. Size as defined in Width (maximum)
[pixels] and Height (maximum) [pixels].
If a different value is selected, the size in the Runtime is
displayed with a dotted line in the frame window.
Width [px]. Width as defined in Value (Opening size),
height is amended accordingly.
Height [px]. Size as defined in Value (Opening size), width
is amended accordingly.
Relative [%]. The size defined in Width (maximum)
[pixels] and Height (maximum) [pixels] is amended to
the percentage value defined in Value (Opening size).
MOVE
Moving always relates to the monitors defined in the monitor administration. These settings are not
supported under Windows CE.
58 | 78
Operation in the Runtime
The limit is only effective if the frame is already within the defined limit when it is opened. If the moving
of a frame is not limited, it can - with Multi-Touch gestures for example - be moved beyond the visible
area.
Information
The moving of frames is most of all envisaged for full-screen operation. The
Runtime application itself should not be moved to a different screen. If Runtime
is moved, this can lead to limitations when moving.
ZOOM
The limits also apply for zooming. If a limit is reached when zooming, an attempt is made to continue
zooming in the free space. In doing so, the side ratio is retained.
When moving and zooming, the frames act as follows, depending on the settings made:
59 | 78
Operation in the Runtime
Active Directory:
List in the Active Directory window (but not: tree)
AML
AML filter/CEL filter/time filter:
Lots: Archive selection
Lots: Lot selection
Batch:
List of master recipes
Control Recipes List
Tag List 1
Tag List 2
Command Processing
List of all interlockings of the action
User list:
User List
CEL
Extended Trend:
Expanded curve list
Message Control:
Message queue
Process Recorder
RGM:
Recipe list and recipe value table (but not: CE recipe value table)
Shift Management
Text lists
60 | 78
Operation in the Runtime
Information
Touch boxes can be configured like lists:
AML/CEL/time filter
Edit User
User Groups List
Note: Not all elements can be configured with touch boxes. For example, there
is no header and there is only one column.
Exception: Command input - the list of all interlockings is pre-configured in the list configuration
property of the command input.
The behavior of headers in the Runtime is now defined in the Editor by means of the properties of the
Header group:
Show header:
Controls whether the header is displayed in the Runtime.
Show filter row:
Controls whether the filter line is displayed in the Runtime.
Disable sorting:
Controls the possibility of sorting table columns in the Runtime with a click on the header.
Freeze column location:
Controls the possibility to amend or move the width of table columns in the Runtime with
mouse actions.
Deactivate context menu:
Activates or deactivates the context menu for the header.
EDIT CELLS
You have the following possibilities for editing cells in the configurable list type lists:
61 | 78
Operation in the Runtime
Depending on the screen type, there may also be a button available to activate editing.
COLOR COLUMNS
In configurable lists, the text color and background color of each column can be defined individually. To
do this, configure the User-defined colors area in the screen switching function of the respective screen,
in the Format columns tab.
SHOW FOCUS
In configurable lists, the respective focus can be signalized by means of different text and background
colors. The cell, column or line that is in focus is emphasized in bold. These colors are configured in the
Selection colors for the object lists project properties in the Graphical design node.
RESPONSE VARIABLES
Configurable lists can be linked to a BOOL response variable. These signalize if something has been
selected in the list in the Runtime.
62 | 78
Runtime files
12 Runtime files
RUNTIME FILES
Runtime files are files that are created by the editor that are read and interpreted by Runtime. Some
Runtime files are modified by Runtime, for example:
Standard Recipes,
63 | 78
Runtime files
The Runtime files are stored in the Runtime folder. This is defined in the Editor under General, in the
properties window.
RUNTIME DATA
All data that is created and administered by Runtime, such as data from:
The alarm message list,
The Chronological Event List
The Historian etc.
This also includes data that is created by the Editor (Runtime files) and that can be amended by
Runtime, such as data from:
Standard Recipes,
Recipegroup Manager,
User administration, etc.
The Runtime files are stored in the Runtime folder. This Runtime folder is configured in the Editor in the
General project properties group in the Runtime folder property.
RUNTIME FOLDER
The Runtime files of the project are saved in this folder. The path is entered into zenon6.ini when the
start project is set. The Runtime folder can be amended in the project properties. In the Runtime folder,
there is the subfolder RT and a subfolder with the name of the computer. In the RT folder, there are all
Runtime files that are created by the Editor. In the Computer name folder, there are all data files that are
created in Runtime.
Note: Ensure that there is sufficient memory where the Runtime data is, because there can be much
data, due to archiving, AML, CEL etc.
DATA FOLDER
The Runtime saves all data files that were created in the Runtime, such as alarm files, archive files etc. in
the data folder. The data folder is created as a subfolder of the Runtime folder by default. The folder is
automatically assigned the name of the computer the Runtime is running on. This save location can be
amended in the project properties (General/Data folder).
Hint: Never set the data folder to a removable device such as an USB stick or a network device. It is
recommended that the data is recorded locally and backed up externally.
64 | 78
Runtime files
Note: Projects from version 6.20 SP4 on can be started directly without being converted first. Projects
with a lower version number must be converted beforehand.
ONLINE COMPATIBILITY
The Runtime online compatibility makes interoperability of Runtime systems (also via zenon Web Clients)
in the zenon network possible even if the version of the client Runtime is higher than the version of the
server Runtime.
65 | 78
Runtime files
8.10 SP0
Due to the multi-project administration, projects from different versions can be loaded. For example, the
integration project can have version 8.00, a subproject version 7.60, and another subproject version
6.51.Mixed operation also works in the network. With this different versions can also be started with the
zenon Web Client.
Note: Starting with version 7.00 if in the editor a different graphics quality than Windows Basic is set
for a project (including the corresponding setting for the option Create Runtime files for), Runtime up
to zenon version 6.51 loads the Windows extended graphics quality. If the Windows basic graphics quality
is set, this is retained.
Attention: Server and Standby Server must have the same version.
Note for Batch Control module: Runtime files for Batch Control up to and including version 7.00
SP0 are not compatible with subsequent versions. Compatible from version 7.10 onward.
For compatibility with version 7.20, there is an additional possible selection "Most recent version"
available. This can be selected with the entry 7.20 SP0 + [most recent build no.] in the drop-down list.
With this selection, the Runtime files for the current build of version 7.20 are provided. Functionality that
has since been incorporated into version 7.20 after the official release of 7.20 is thus supported. This is
applicable most of all for enhancements to drivers that are now supported with this option. In order to
use it, you must have the most recent build of zenon 7.20 installed on your computer.
Note: The 7.20 SP0 selection compiles the Runtime files - as before - to the default settings of 7.20
SP0.Ensure that you use the most up-to-date build for zenon 7.50 as well as 7.20.
Attention
If, in a project with a later version of the Editor, properties are shown that are
not available in the earlier version, these are not available. This can lead to
unwanted results in the Runtime. When creating Runtime files for older versions,
check for changed project configurations, in particular the driver configurations.
66 | 78
Runtime profiles
Attention: In order to ensure consistency of Runtime files, all Runtime files must be newly created each
time this property is changed. The configurations for all drivers are converted. Settings that do not exist
in the respective version are set to the default setting.
Solution:
1. Navigate to the folder: %AppData%\Microsoft\FORMS.
2. Delete the file zenone32.box.
3. This file is created new automatically by the zenon.
13 Runtime profiles
A Runtime profile is a reproducible optical snapshot of the screen in the Runtime including information
about:
Screen pattern (succession and position)
Monitor assignment
Filter
67 | 78
Runtime profiles
Every zenon user has an own folder in which he can administrate his profiles. Administrators can see
and edit all profiles of all users and copy them to user System. From user account System all users can
load Runtime profiles. It serves as an exchange account for Runtime profiles.
Note: Only administrators can copy to and manage profiles in user account System. All other users can
only manage their own profiles and load the profiles of user System.
PREDEFINED PROFILES
Besides the individual profiles there are two pre-defined Runtime profiles:
DEFAULT: created by the user and selected as standard profile
LAST: is automatically saved to the folder of the user when they log out
Exception: The LAST profile is not saved:
for user System
a temporary login without writing permission
To each zenon user a start profile (on page 71) can be allocated during log in.
68 | 78
Runtime profiles
Attention
Profiles can only be saved correctly at the Server if all projects are available at
the Server:
from which screens are called up at the Client
which call up screens with a screen switch function
The saving of Runtime profiles that do not correspond to these conditions can
lead to errors in the Runtime.
When loading a profile, the same state as when the profile was saved is restored. The screen structure
including all filters as it was when the profile was saved is restored.
Attention: If there are screen switch functions defined at the properties of a screen for functions Start
function or End function - such as (Screen switch, Index screen or Screen back ), they are not carried
out! All other function types are carried out again.
If a script is called up in the two functions, the complete script and all screen switching functions therein
are executed. Therefore it can happen that the screen structure after loading the profile does not match
the screen structure when saving the profile.
A similar behavior displays variable 'Screen active' variable: If a limit value which contains a screen
switch function is carried out in the variable, the function is carried out and may affect the display in an
undesired way.
69 | 78
Runtime profiles
Property Action
Open administration dialog in Opens the dialog for administering (on page 71), creating,
the Runtime saving and loading profiles in the Runtime.
Load profile Loads the profile defined in the dialog in the Runtime:
70 | 78
Runtime profiles
Property Action
existing profiles.
Freely defined name Loads the profile with the name which was defined in the
dialog. If the profile does not exist, the current profile is
kept.
Name from variable Loads the profile whose name was generated from the
defined variable.
Save profile Saves the profile which was defined in the dialog.
Freely defined name Saves the profile with the name which was defined in the
dialog.
Name from variable Saves the profile under the name which was created from
the variable defined in the dialog.
IN THE EDITOR
Users are assigned Runtime profiles in the Editor:
71 | 78
Runtime profiles
In the dialog when creating a new user with the login profile property:
72 | 78
Runtime profiles
IN THE RUNTIME
In the Runtime you can save, load, allocate and administrate profiles with the help of the profile
administration. For this you must engineer function (on page 69) Runtime profiles with property Open
administration dialog in the Runtime.
Property Action
User whose profiles are administrated User whose profiles are displayed and can be
administrated.
Save profile Opens the dialog for assigning a profile name and
73 | 78
Runtime profiles
Property Action
saving the profile under this name. The following
characters are forbidden: Space and the special
characters / | \ : * ? ! " < > $
KEYBOARD SHORTCUTS
Key Action
At unexpected events in the zenon network such as the loss of server or standby
the contents of the list are automatically updated.
Client Data are stored on the server and are requested and changed
interactively.
Standby Data are stored on the server and are requested and changed
interactively and are synchronized locally.
74 | 78
Filter profiles
14 Filter profiles
Filter profiles are filter settings that the user can save and call up in Runtime in relation to a certain
screen.
To be able to use filter profiles, the following control elements must be configured:
Control element Description
75 | 78
Filter profiles
To export profiles:
1. create the control elements for import and export in the screen:
Control elements -> Filter profiles -> Import or Export
2. start the Runtime
3. open the screen
4. create the desired profiles
5. save the profiles
6. export the profiles:
these are saved in an XML file and can be imported at the same screen type in another project
To import profiles:
1. save (on page 74) the XML file with the desired profiles at the Runtime computer if it is another
computer as the export computer
2. start the Runtime
3. open the screen
4. import the profiles
Information
At the import all existing profiles are deleted. The profile active at the time is not
changed.
XML files can only be imported in the screen type in which they were created. If
you try to import profiles of other screen types, the import is canceled and an
error message is displayed.
76 | 78
Handling of date and time
Exceptions:
the IPA writes historic data in local time as "datetime" in the database
The zenon Read time from variable and Write time to variable functions do not save times
but take over the local time formatted as string from the control or writes it to the control
UTC
UTC means Coordinated Universal Time. The time unit is second. UTC is the uniform basis for the
international time determination and is made available to the public via time senders and other time
services. Dependent on the time zone certain time periods must be added or subtracted to or from
UTC. This time period can vary one hour because of the day light saving time.
Examples:
Country Local
time
Alaska UTC -9
Bulgaria UTC +2
Korea UTC +9
77 | 78
Handling of date and time
For example: In the Editor you engineer in the PFS for the execution of a function in time zone UTC +1
the local time 14:00 o' clock. After transferring the files to a Runtime in tiem zone UTC +10, the function is
carried out at 23:00 o' clock.
Hint
The time zone of the computer can be evaluated with the [system information]
summer/winter time system driver variable.
The time difference of the time on the local computer to UTC can be evaluated
with the [system information] time offset to UTC system driver variable.
You configure the action of the Scheduler and Production & Facility Scheduler for time switching in the
settings of this module:
Scheduler time switching
Production & Facility Scheduler time switching
78 | 78