Zenon Manual: Runtime
Zenon Manual: Runtime
Runtime
v.7.60
©2017 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
3
9.1 Configuration of zenon Logic Runtime ...................................................................................................... 44
9.2 Configuration in the Startup Tool ............................................................................................................. 45
9.3 Remote Transport ..................................................................................................................................... 46
9.4 Procedure .................................................................................................................................................. 47
4
Welcome to COPA-DATA help
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]
(mailto:[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] (mailto:[email protected]).
If you find that you need other modules or licenses, our staff will be happy to help you. Email
[email protected] (mailto:[email protected]).
2. Runtime
Runtime is software that supports graphic display possibilities for HMI/SCADA projects.
5
Runtime
License information
The zenon Runtime must be licensed. The license is calculated according to the used TAGs
or IOs. For details about licensing see chapter Licensing.
It offers:
Process display,
Archiving of data such as messages and process values,
Integrated alarm message list,
Recipes,
Multi-Touch and much more.
Attention
Note when configuring the project:
For the optimal display of zenon in 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 from zenon 7.10. Projects can run on both
versions. You can read details on compatibility with versions of zenon 7.10 in the Project conversion
manual, in the 64-bit version (on page 7) 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.
Only one instance of zenon Runtime can be started on a computer at any time. This applies regardless of
whether Runtime is started as an EXE file, a zenon Web Client or as Runtime Control (OCX).
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.
6
32 and 64-bit version
On 64-bit 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.
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.
No zenon 5.50 projects can be converted with the 64-bit editor. These must be converted beforehand
with the 32-bit Editor.
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
7
Putting Runtime into operation
#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)
32-bit and 64-bit declares for API calls: http://www.jkp-ads.com/articles/apideclarations.as
(http://www.jkp-ads.com/articles/apideclarations.as)p
The following components are also only available as 32-bit versions on 64-bit computers:
Some programs, such as SIC.exe and DiagViewer.exe
Licensing
Process Gateway
Startup Tool
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.
8
Putting Runtime into operation
or
Get the project from the server on the Runtime device.
Create a Client using the network topology.
If Runtime is not yet installed on the device, it must first be installed. You can read how this works in the
zenon standard installation chapter.
A license is required after installation in order to put it into operation. The license information is on a
license form, which is enclosed with the device or the installation medium.
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.
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.
You can get a detailed overview of supported operating systems and the required software and
hardware in the installation and updates manual.
The following minimum requirements must be met when using DirectX hardware or DirectX
software:
9
Putting Runtime into operation
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
Graphics card: DirectX 11 mainstream graphics card. Dedicated DirectX 11 AMD or nVidia
high-end graphics card
(DirectX hardware only) When an integrated graphics
chip is used in particular, it is possible,
depending on the driver used, that
there are impairments to the display
quality.
Graphics memory: 1 GB VRAM 2 GB VRAM
(DirectX hardware only)
The size that is actually
needed depends on the number of
screens called up and the
elements displayed.
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.
If the system does not support DirectX 11.1, it automatically switches to
Windows Enhanced.
The current DirectX- Runtime must be installed. For zenon it is installed
together with the setup. For the zenon Web Client it must be installed manually.
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.
10
Putting Runtime into operation
Folder Path
Program folder 32-bit system:
%Program Files%\COPA-DATA\zenon7xxx
64-bit system:
%Program Files%\COPA-DATA\zenon7xxx
%Program Files (x86)%\COPA-DATA\zenon7xxx
Program data folder, %ProgramData%\COPA-DATA\zenon7xxx
e.g. global symbols, print
templates, log files etc.
RUNTIME FOLDER
The Editor creates Runtime files in the Runtime folder, or they are transferred to this folder with the
help of Remote Transport. When creating a project, you must define the Runtime folder. Later it can be
changed in the project properties. With Remote Transport, the Runtime folder is defined in Remote
Transport settings.
DATA FOLDER
The Runtime saves all data files that were created at runtime like 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).
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.
11
Putting Runtime into operation
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) .
zenon and zenon Logic need certain communication ports for the communication in the network. If
these ports are occupied by other programs like e.g. an already installed SQL server, the communication
of zenon can be disturbed. Many ports in zenon can be changed using the Startup Tool or properties in
the Editor.
12
Putting Runtime into operation
13
Putting Runtime into operation
However zenon needs a range of services and operations that could categorize anti-virus programs as
potentially dangerous.
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...
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.
zenon uses a number of ports. Any firewall that is present must allow communication via these ports.
These must be enabled in the firewall if applicable.
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 Goal TCP-port
Network service zenNetSrv.exe Runtime communication. 1100
Port numbers can be amended individually by means of the Listening ports tab in the Startup Tool.
Note in this case that all devices affected must be amended.
14
Putting Runtime into operation
zenon Logic
Assigned port for zenon Logic or straton 1200 - 1210
depends on the project and service. 4500 - 4510
E.g.: First zenon Logic project occupies 1200 7000 - 7010
and 9000, second project 1201 and 9001 etc.
9000 - 9010
zenon Analyzer
Administration Service 50777
Analyzer Connector Service 50778
Analyzer License Service 50779
ZAMS 50781
Drivers
Driver Simulation 6000 - 6020
Process Gateway OPC Server 135
Process Gateway SNMP 161
Process Gateway Modbus 502
Process Gateway IEC60870-5 104 slave 2402
Process Gateway DEC 5555
15
Putting Runtime into operation
zenon drivers that communicate by means of Ethernet use TCP and thus need authorizations in
the firewall in this case, regardless of the port used.
One of the requirements for putting Runtime into operation is that setup has been completed
successfully. It is also important to have a valid license.
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.
16
Putting Runtime into operation
Remote connection Minimum requirements: Dial-up modem with 9600 1 Mbit/s full duplex.
(optional) Bit/s.
WAN connection Any desired connection via router, e.g. per ISDN or
(optional) DSL Data transfer is slower in a WAN than in a local
network for technical reasons. Be sure to check the
possible data transfer rates of your WAN technology
already at the time when you create the project.
Message Control Please refer to chapter Message Control for the
(optional): requirements.
17
Putting Runtime into 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
with click in button Enter standard folders for Windows and zenon are displayed
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 installtion 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
18
Putting Runtime into operation
VSTA + + - -
OPC-Core Components (up to 6.22 SP1) + + - -
Wibu key Dongle Software 6.0 x86/x64 + + - -
COPA-DATA Multiple Network Protocol + + - +
Driver x86/x64
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.
19
Putting Runtime into operation
Object Path
ZENON LOGIC
Paths for zenon Logic are created analogous to the zenon paths.
If the Runtime is not licensed, it can be used in demo mode for 30 days. Licensing (soft licensing or
dongle licensing) is possible at anytime by entering a valid serial number and activation number.
Licensing is only effective once zenon has been restarted.
From the 41st start or the 31st day in demo mode, the zenon Runtime only runs for 10 minutes.
This restriction does not exist under Windows CE. Runtime always runs for 30 minutes in demo mode
under Windows CE.
The minimum requirements relate to an installation of Runtime adapted to the Windows Embedded
Standard 7 SP1 operating system with platform update. The hardware must be accordingly more
powerful for extensive projects.
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.
20
Putting Runtime into operation
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.
The minimum requirements are based on a complete installation of the Runtime for Windows CE. The
hardware must be accordingly more powerful for extensive projects.
Hardware Minimum requirement Recommended
CPU At least 400 MHz 1 GHz
RAM memory 64 MB 1024 MB for
Windows CE 6.0.
Storage medium 64 MB free harddrive space. 256 MB free
harddrive space or
Permanent recordable remanent storage medium for
more.
project data
Network connection For standard Client/Server projects: 10 Mbit/s full
duplex.
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.
21
Uninstalling Runtime
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 7.60 programs.
5. Click on Uninstall.
6. Follow the uninstall wizard.
Install the Runtime to the CE device with the entry CE Runtime Update-Programs (under menu Option).
22
Runtime for Windows CE
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.
The Windows CE Runtime requires the existence of certain system files. In case one of these files is
missing, the operating system sends an error message during Runtime start, that one or various
components have not been found. The following system files are required:
23
Runtime for Windows CE
File Description
mfc90u.dll Necessary for the Runtime. On startup, an error message pops up if this file
does not exist.
msvcr90.dll Necessary for the Runtime. On startup, an error message pops up if this file
does not exist.
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 (Process
JSCRIPT.dll 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 that the file is available on the CE device and Toolhelp is
available in SDK.
Core OS -> Display Based Device ->Core OS Services -> Debugging Tools -> Toolhelp
API. Thus the Toolhelp.dll is part of the image.
Always use the most up-to-date Servicepack of the Platform Builder.
File toolhelp.dll is not used for Windows CE 6 and should not be used with CE 6.
24
Runtime for Windows CE
If you are transferring/installing Runtime for the first time, note the information in the Manual
installation and Runtime update (on page 32) chapter. (on page 32)
CONFIGURE CONNECTION
You can configure the connections to the Windows CE device in the tab Connection.
25
Runtime for Windows CE
Parameters Description
Serial Settings for serial connection with Windows CE device,
you have to select a port.
TCP/IP Settings for TCP/IP-connection to the Windows CE device.
Adress IP address.
Name Computer name
Syssrvce.exe starts with these settings Settings for starting syssrvce.exe.
Serial Active:: serial connection selected, port must be
selected.
TCP/IP Active: TCP/IP-connection selected.
Connection with MS ActiveSync Settings for connection via MS ActiveSync
Use MS ActiveSync for initial transport of Active: syssrvce.exe is transferred during the first
syssrvce.exe transport via MS ActiveSync.
Destination folder Target folder.
Help Opens online-help
26
Runtime for Windows CE
27
Runtime for Windows CE
Parameters Description
Files to update Files to be transferred.
HMI Runtime Active: Transfers zenon files to the target device.
Default: active
PLC Runtime Active: Transfers zenon Logic files to the target device.
Default: Inactive
OS system files Active: Transfers necessary files for the OS.
Default: active
Update zenon6.ini Transfers zenon6.ini to the target device. This way,
the license information of the target device is also
changed.
Options
SELECT VERSION
Select the correct version in the tab Versions if it wasn´t automatically recognized.
28
Runtime for Windows CE
29
Runtime for Windows CE
Parameters 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.
START UPDATE
To establish a connection:
30
Runtime for Windows CE
31
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:
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 must contain the
the following entry in the UpdateCE.ini in section [SOURCES_FILES_GENERAL] (exists per
default):
zenVNCSrvCE.exe
zenVNCCfgCE.exe
Installation and update are also possible without remote transport and ActiveSync. You have to copy the
needed files manually on a storage card for the CE device. You have to know CE version and processor
type.
32
Supported protocols
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)
zenon6.ini (Configuration file)
Cd_tooCE.dll (Help DLL)
ZenNetSrvCE.dll (Network)
CDHelper.dll (Help DLL)
One of the following language dlls: RChineCE.dll, RCzechCE.dll, REngliCE.dll, RFrancCE.dll,
RGermaCE.dll, RItaliCE.dll, RRussiCE.dll, RSpaniCE.dll (the selected language is stipulated in
the zenon6.ini file.)
syssrvce.exe (Transport service and Diagnosis Server)
atl90.dll (System file, possibly part of the operating system)
Further files, for example the driver or the remote desktop software (zenVNCCfgCE.exe and
zenVNCSrvCE.exe), are optional.
7. Supported protocols
Runtime communicates with all possible controllers using drivers. The drivers support a number of
protocols.
AVAILABLE DRIVERS:
33
Supported protocols
34
Supported protocols
35
Supported protocols
36
Supported protocols
37
Starting the Runtime
38
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.
Information
When switching Runtime to the foreground with the Window to foreground function, the
Runtime window is defined as the upper window.
Note the following special cases:
The DIALOGKBD keyboard cannot be called up in this situation.
Other keyboards can be used.
The alarm status line is covered by the Runtime 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.
39
Starting the Runtime
If you have created a project, you can start this in different ways.
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.
Runtime thus starts automatically the next time you log on.
40
Starting the Runtime
Keyblock Runtime Start is a program with which zenon Runtime runs as a Shell. In doing so, zenon
Runtime is started, but all Windows system tasks are blocked. Keyboard shortcuts such as Windows key
or Ctrl+Alt+Del no longer have an effect. User can no longer access the operating system but only
work on the zenon user interface.
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.
The blocking of the Windows key can be circumvented. You should therefore block the Windows
key using the corresponding entry in the Startup Tool
License information
Part of the standard license of the Editor and Runtime.
When using dongles for licensing, the Codemeter service must be ready before zenon Runtime starts. To
amend the start time, you can configure a start delay for zenon Runtime.
Stipulate a start delay of at least 30 seconds in the zenon6.ini file for zenon.
To do this:
1. Open the zenon6.ini file with a text editor.
2. Navigate to the [DEFAULT] area
3. Enter the desired delay for STARTDELAY= .
Example:
[DEFAULT]
STARTDELAY= 30000
41
Starting Runtime as a service
Information
You can findzenon6.ini in the following path:
%ProgramData%\COPA-DATA\System\
REGISTER 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.
42
Starting Runtime as a service
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.
43
Starting Runtime as a service
INTERACTIVE ACCESS
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.
If zenon is running as a service, the user interface of the integrated zenon Logic Runtime is not available.
To make changes to the configuration of zenon Logic Runtime, Runtime must be started normally.
1. You can connect to the panel on which Runtime is to run via remote transport and enter the license
for Runtime there.
44
Starting Runtime as a service
You can define how several programs are to be started by the service in the Startup Tool. To start an
existing zenon Runtime as a service:
1. Open the zenon Startup Tool.
2. Click Application.
3. Select Options.
4. The dialog with the settings is opened.
5. Go to the Service startup tab.
45
Starting Runtime as a service
In its standard settings, zenon Remote Transport runs in the context of a logged-in user. In this
configuration, it can neither start Runtime as a service nor reload or stop it.
If zenSysSrv is started with zenStartupMgr, it can no longer be started by logged-in users. To avoid this,
remove it from the registry manually.
zenSysSrvup to Windows 8:
4. Click on Deactivate.
5. Restart the computer
46
Starting Runtime as a service
If a zenon version is re-registered via the Startup Tool, the entry is recreated and must be
removed manually again.
9.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 option Use Windows NT integrated security activated
If zenStartupMgr is started under a dedicated Windows user, no interaction with the desktop is
possible.
The password of a dedicated user can 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
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.
47
Runtime as ActiveX control
Attention
Modal dialogs must never be called up via VBA or VSTA, because there is no possibility to
close these again through user interaction.
Attention
Runtime ActiveX Control only supports soft licenses. Licensing via Wibukey or
CodeMeter is not possible.
48
Operating during 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 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.
11.1 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:
49
Operating during Runtime
Parameters Description
Switch to spontaneous value Display spontaneous value (value from PLC) if substitute value
was displayed before or the value was turned off.
Modify on-change value Write new spontaneous value to the PLC
(default)
Switching and modes. Spontaneous Combination of the two commands above
value
Switch to alternate value Display substitute value (value from variable definition), if
spontaneous value was displayed before
Modify alternate value Set new substitute value for variable
Switching and modes. Alternate value Combination of the two commands above
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.
Setting of binary status - LOW (0)
- HIGH (1)
50
Operating during Runtime
Parameters Description
Switch to spontaneous value Display spontaneous value (value from PLC) if substitute value
was displayed before or the value was turned off.
Modify on-change value Write new spontaneous value to the PLC.
(default)
Switching and modes. Spontaneous Combination of the two commands above.
value
Switch to alternate value Display substitute value (value from variable definition),if
spontaneous value was displayed before.
Modify alternate value Set new substitute value for variable
Switching and modes. Alternate value Combination of the two commands above.
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.
Value New numerical value (within defined measuring range).
51
Operating during Runtime
Parameters Description
Switch to spontaneous value Display spontaneous value (value from PLC) if substitute value
was displayed before or the value was turned off.
Modify on-change value Write new spontaneous value to the PLC
(default)
Switching and modes. Spontaneous Combination of the two commands above
value
Switch to alternate value Display substitute value (value from variable definition), if
spontaneous value was displayed before
Modify alternate value Set new substitute value for variable
Switching and modes. Alternate value Combination of the two commands above
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.
Text New text
LASSO
Dynamic elements which are linked with a variable or function can be pre-selected with the lasso in the
Runtime and can be used for VBA events.
52
Operating during Runtime
11.2 Touch
With zenon, touch screens can also be operated with Multi-Touch gestures. You can obtain an example
project from your zenon consultant.
With Windows 8 gestures, interaction can be configured in many areas via Multi-Touch via
properties with no additional programing necessary.
Multi-Touch gestures for zooming and scrolling are suitable for navigation on touch panels in the
worldview. For this a screen of type Worldview overview is not necessary. The navigation can be
implemented with:
Windows 7 touch gestures (on page 54)
Windows 8 touch gestures (on page 55)
RULES
Move: If a screen in a container is not a worldview, it accepts the settings of the faceplate
screen.
53
Operating during Runtime
MOVE THE FRAME OR BORDER WITH THE MOUSE IF THE SCREEN IS A W ORLDVIEW AND THE
SAME SIZE OR SMALLER THAN THE FRAME:
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.
To be able to use Multi-Touch gestures under Windows 7 to navigate in the worldview, you must:
activate them via property Multi-Touch for zoom and scroll
or implement them via VBA/VSTA
ZOOM AND SCROLL VIA PROPERTY MULTI-TOUCH FOR ZOOM AND SCROLL
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.
54
Operating during Runtime
To implement zooming and scrolling via VBA/VSTA Events, property Multi-Touch for zoom and scroll
must not be active.
Style
SetZoomAndPos(float ZoomX, float ZoomY, int ZoomLevel, int CursorX, int CursorY, int
PosX, int PosY, int PosMode):
ZoomX, ZoomY and ZoomLevel can never be used simultaneously. Either you enter a
ZoomLevel or a zoom factor for x and y axis.
55
Operating during Runtime
2. Deactivate, for the screen in the Frame group, the 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.
You can use the keyboard also for the complete navigation and operation in the Runtime. In doing so,
the focus is first set to a frame; within the frame, you can navigate with the arrow keys and instigate an
action with the Enter key. The following functions (on page 56) are used for control:
Set focus to frame
Take focus away from frame
Move focus
Activate input to the element with the focus
The order in which the elements are selected is defined via the allocation of index numbers (on page 61)
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.3.1 Functions
This function sets the focus to a defined frame when operating the keys in Runtime.
56
Operating during Runtime
In the frame selection dialog, frames can be selected for the execution of functions, from:
Current project
Subprojects
All projects in the workspace with the Keep project in memory option active
57
Operating during Runtime
Parameters 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
Frames window Selection of a frame.
If several frames are selected, the frame at the top of the list is used to
execute the function.
No selection Removes selection and closes dialog.
OK Applies settings and closes the dialog.
Cancel Discards all changes and closes the dialog.
Help Opens online help.
If a frame is displayed on a monitor several times, then the focus is switched in the reverse of the
switching sequence each time the functions of the focus are executed. If, for example, with a frame that
is called up several times, the screens Screen1, Screen2 and Screen3 are open and then the focus is set
to this frame, the focus goes to the last screen opened, Screen3. When the Set focus to frame function
is called up again, the focus is set to Screen2 etc.
MOVE FOCUS
This function set the focus on a particular element in runtime with keyboard operation and can
therefore be used to navigate within a frame.
58
Operating during Runtime
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.
This function activates the element that is being focused on in the frame selected.
This function takes the focus from the current frame in runtime. To continue operating the keyboard,
the focus must be set to a frame again.
Windows keyboard shortcuts can be blocked for online operation. The block is configured in the Editor.
It is also possible to block all system keys for Runtime.
To block Windows keyboard shortcuts, activate the Lock system keys property in the Interaction area of
the project properties.
59
Operating during Runtime
Locked are:
Key combination effect
Alt + Esc Switches to the next application.
Alt + Tab Switches between open applications.
Direction: forwards.
Alt + Shift + Tab Switches between open applications. Direction: backwards.
Ctrl + Tab Switches to the next window within the application. Can be assigned
application-specifically.
Ctrl + Esc Calls up Start menu.
60
Operating during Runtime
Attention
The Lock system keys property is not available for CE projects.
You define the sequence for the actuation of the elements in a screen with the project configuration in
the zenon Editor:
1. Open the screen.
2. Right-click an empty area.
3. Select Shift order for focus from the context menu.
4. Select from the drop-down list Order for left/right or Order for up/down.
5. Each element in the screen is displayed with a number in the top left corner.
6. Click on the element which should be selected first.
7. the number of the element changes to 1.
8. click on all other elements in the order you want them to be selected:
Elements which have already been defined change the background color of the number.
Elements which cannot be selected with the help of the keyboard in the Runtime (property
Focus is set to the element inactive) are displayed with a red number.
If you click on an element while holding Ctrl, 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.
61
Operating during Runtime
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.
Frames can be switched to fixed or relatively defined positions in Runtime. In this way, keyboard screens
or pop-up screens can be positioned exactly where the mouse pointer or the element to be switched is
located. Frames can be switched in runtime:
at an absolute position
relative to the mouse position
relative to element
Absolute and relative positions are defined in the properties of the frame in the zenon Editor.
Windows always take their screen position from the template. If pop up screens are planned and moved
whilst the program is running, the pop up screen is moved back to the planned position the next time
the screen switching function is activated. Using the Keep position and size on reopening property, the
template can be set to keep its position as long as it is open, regardless of screen switches. If the
property is active:
If a screen is opened in Runtime in a manually-moved frame, its position and size are also
retained if the screen is switched.
If another screen is opened in the in the same template, its position and size are retained. This
also applies for a substituted call.
With this, a different position position for a template can be used on each client, because the local
position is always saved.
62
Operating during Runtime
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 would stand over the screen border, it is automatically
positioned at the screen border. This also applies to multi-monitor management, where screen would
rise into the neighboring monitor.
Attention
Relative positioning only works when called up directly by the user, not with
automated functions or via VBA.
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. If the frame cannot be switched off 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:
63
Operating during Runtime
Property Value
Reference point element vertical bottom
top
Reference point element horizontal Left
Right
Vertical movement in pixels Enter the desired movement
Horizontal movement in pixels Enter the desired movement
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 screen.
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
Reference point frame vertical top
bottom
centered
Horizontal frame reference point Left
Right
centered
64
Operating during Runtime
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
Reference point element: left/centered
In Runtime, the popup screen will appear on the right side of the button, centered to 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
The size with which a screen is called up in Runtime and the permitted changes in size are configured
with the properties of the Position group.
65
Operating during Runtime
Property Description
Width (maximum) [pixels]: Defines the maximum width.
Height (maximum) [pixels]: Defines the maximum height.
Limitation Minimum: Defines limits for minimum. Possible values:
Without. No limitation
If a different value is selected, the selected limit in Runtime is
displayed with a dotted line in the frame window.
Width: Width limitation.
Height. Height limitation.
Relative: Limitation to a percentage value of the set screen size.
The corresponding values are defined with the Value (Opening size)
property.
Default: Frame size
MOVE
Moving always relates to the monitors defined in the monitor administration. These settings are not
supported under Windows CE.
66
Operating during 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:
67
Operating during Runtime
68
Operating during Runtime
Information
Touch boxes can be configured like lists:
AML/CEL/time filter
Edit User
User Groups List
Not all elements can be configured with touch boxes. For example, there is no
header and there is only one column.
The appearance and behavior of the configurable lists in Runtime can be preconfigured in the
Editor using the properties of the Representation group.
The behavior of headers in 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 Runtime.
Show filter row: Controls whether the filter line is displayed in Runtime.
Disable sorting: Controls the possibility of sorting table columns in Runtime with a click on the
header.
Freeze column location: Controls the possibility to amend or move the width of table columns in
Runtime with mouse actions.
Deactivate context menu: Activates or deactivates the context menu for the header.
BEHAVIOR IN RUNTIME
EDIT CELLS
You have the following possibilities for editing cells in the configurable list type lists:
Double click on the entry
Click in the cell, immediately followed by a second click (slow double click)
69
Operating during 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 Runtime.
70
Runtime files
In Runtime, messages in relation to data export and user actions can be displayed for certain events.
You configure these in the Editor.
To show messages:
1. Open the project properties for Runtime settings.
2. Configure the properties of the Runtime messages for group.
a) Data export: Shows the result of a data export that has been triggered using the Export data
function.
b) Replace files: Shows whether a data export will overwrite a file.
c) Incorrect input: Allows Runtime messages for user actions to be switched on or off for:
- User locked
- Invalid user name
- Invalid password
- System locked
- System unlocked
- Your account was locked!
- Write set value
d) Insufficient authorization: Allows Runtime messages to be switched on or off for insufficient
authorizations.
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,
71
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 data is stored in the Runtime folder. This is defined in the Editor under General, in the
properties window.
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.
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 at runtime like 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).
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.
72
Runtime files
The zenon Runtime is backward compatible. The Runtime can always load projects from older version
and interpret and display these projects in accordance with their version.
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. A mixed operation is also possible. This means:
With the multi-project administration projects from different versions can be loaded and run at the
same time.
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.
Due to the multi-project administration projects from different versions can be loaded. For example the
Integration project can have version 7.60, a sub project version 7.50 and another sub project version
6.51. Mixed operation also works in the network. With this different versions can also be started with
the zenon Web Client.
If, from version 7.00 a different graphics quality to Windows Basic is set for a project (including
the corresponding setting for the Create Runtime files for option), Runtime up to zenon version 6.51
loads the Windows extended graphics quality. If the Windows basic graphics quality is set, this is
retained.
73
Runtime files
Runtime files for Batch Control up to and including version 7.00 SP0
are not compatible with subsequent versions. Versions from version 7.10 and later are compatible.
For compatibility with version 7.20, there is an additional possible selection - "Most recent version" -
available. This can be selected with the 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.
Please note that, to use the most recent build, you must have zenon 7.20 installed on your computer.
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 recent respective build for both zenon 7.50 and 7.20.
With the zenon Editor, Runtime files can be created for different versions of Runtime. The Runtime
version therefore does not need to correspond to the Editor version. This backward compatibility is
particularly suited for use of mixed systems. For example: A project that was planned with the editor for
version 7.60 can also be started with Runtime 6.20 SP4.
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 Runtime.
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.
74
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.
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 he logs out
: Profile LAST is not saved:
for user System
a temporary login without writing permission
To each zenon user a start profile (on page 78) can be allocated during log in.
75
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
Saving Runtime profiles which do not match these conditions can lead to errors in the
Runtime.
In order to create a profile in the Runtime you must engineer a respective function (on page 76):
Save profile: saves the current profile as it was defined in the function
Profile administration (on page 78): opens the administration of the profiles for saving, loading,
allocating and administrating profiles
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.
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.
In order to load, save and administrate profiles in the Runtime, you engineer a function in the Editor and
assigned it to a button:
select New Function
76
Runtime profiles
77
Runtime profiles
Property Action
Open administration dialog in the Opens the dialog for administrating (on page 78), creating, saving
Runtime and loading profiles in the Runtime.
Load profile Loads the profile defined in the dialog in the Runtime:
Default Loads the profile DEFAULT.
It was selected as the standard profile by the user from all existing
profiles.
Last Loads the profile LAST.
It was automatically written to the folder of the user at log out.
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.
Default Saves the current profile as DEFAULT.
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.
Profiles can be allocated in the Editor and in the Runtime. In the Runtime you can create and save them.
IN THE EDITOR
78
Runtime profiles
in the dialog for creating a new user with the property Runtime profile which is loaded after log in:
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 76) Runtime profiles with property Open
administration dialog in the Runtime.
79
Runtime profiles
80
Runtime profiles
Property Action
Logged in user User who is currently logged in to the system.
User whose profiles are administrated User whose profiles are displayed and can be
administrated.
Profiles List of the available profile.
Profile name Name of the profile.
Last modified Date and time of the last modification.
Rename Opens the selected profile name in order to rename it.
Delete Deletes the selected profile after a confirmation message.
Copy Copies the selected profile to the user System. At this
the name can be changed. Profiles at user System
are available for all users which are not logged in.
Save profile Opens the dialog for assigning a profile name and saving
the profile under this name. The following characters are
forbidden: Space and the special characters / | \ : *
? ! " < > $
Load profile Loads the selected profile.
Close Closes the dialog.
KEYBOARD SHORTCUTS
Key Action
F5 Updates the profiles' list.
At unexpected events in the zenon network such as the loss of server or standby the
contents of the list are automatically updated.
Esc Closes the dialog.
Enter Loads the selected profile.
Ins Saves the current state of the new profile.
F2 Makes it possible to change the name of the selected profile.
Del Deletes the selected profile after a confirmation message.
The profile data are stored differently depending on their use in the Runtime:
81
Filter profiles
To be able to use filter profiles, the following control elements must be configured:
Control element Description
Filter profiles Profile administration in Runtime.
Profile selection Selection of a saved profile from a drop-down list.
Save Clicking on the button in the Runtime saves the filter settings as a
profile.
The name can be a maximum of 31 characters long and must
only contain valid characters.
Prohibited are: ! \ / : * ? < > | ""
Delete Clicking on button in Runtime deletes the selected profile.
82
Filter profiles
You can transfer filter profiles to other projects and other computers with the control elements for
import and export.
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 81) the XML file with the desired profiles at the Runtime computer if it is another
computer as the export computer
2. start the Runtime
83
Handling of date and time
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.
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.
Example:
84
Handling of date and time
Country Local
time
Alaska UTC -9
Australia, Queensland UTC
+10
Bulgaria UTC +2
United Kingdom UTC
Korea UTC +9
Central Europe (CET) UTC +1
Central Europe (CET) Daylight Saving Time UTC +2
Saudi Arabia UTC +3
USA East coast UTC -5
United Arabic Emirates UTC +4
Engineered date and time mean different date and time depending on the execution location of the
Runtime.
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.
If the time zone is switched in the operating system, this change is automatically applied in zenon
Runtime.
Hint
The time zone of the computer can be evaluated with the [system information]
summer/winter time system driver variable.
The time difference with UTC on the computer can be evaluated with the [system
information] time offset to UTC system driver variable.
85
Handling of date and time
The following is applicable for the switch to daylight saving time or standard time:
You must use the automatic Windows time amendment of the computer.
Do not switch the time manually!
Manual changes can cause problems with relevant times indicated for zenon, for example for
save times of archives, time control, etc.
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
86