Network
Network
Network
v.8.20
© 2020 Ing. Punzenberger COPA-DATA GmbH
Distribution and/or reproduction of this document or parts thereof in any form are permitted solely
with the written permission of the company COPA-DATA. Technical data is only used for product
description and are not guaranteed properties in the legal sense. Subject to change, technical or
otherwise.
Contents
2 Network ........................................................................................................................................................ 7
4 Requirements ............................................................................................................................................ 14
4.1 Time synchronization in the network ..................................................................................................... 19
4.1.1 Time synchronization in the WAN.................................................................................................................. 21
9 Redundancy ............................................................................................................................................... 80
9.1 Types of redundancy .................................................................................................................................... 82
9.1.1 Software redundancy........................................................................................................................................... 82
9.1.2 Hardware redundancy ......................................................................................................................................... 85
9.2 Redundancy modes ...................................................................................................................................... 87
9.2.1 Redundancy in a rated network ...................................................................................................................... 89
9.3 Configuration of seamless redundancy...............................................................................................100
9.4 Setting up the Standby Server ................................................................................................................102
9.5 Special setups in the communication between Primary Server and Standby Server.........103
9.6 Integrated rating methods for redundancy switching...................................................................105
9.7 zenon circular redundancy .......................................................................................................................105
9.8 Redundancy Management Tool .............................................................................................................107
GENERAL HELP
If you cannot find any information you require in this help chapter or can think of anything that you
would like added, please send an email to [email protected].
PROJECT SUPPORT
You can receive support for any real project you may have from our customer service team, which
you can contact via email at [email protected].
2 Network
zenon networks can be set up quickly and securely.
7 | 187
Network
Creation of redundant systems (see redundancy (on page 80), circular redundancy (on page
105))
Redundancy switching with integrated rating methods
Creation of distributed systems (see multi-project administration (on page 31))
Use of zenon Web Server and zenon Web Client for access using the web browser.
Use of zenon in a terminal server environment (on page 63)
Use of strong encryption (on page 48)
Concurrent work on a project from several computers (see distributed engineering)
The integrated topology administration (on page 70) creates interrelationships for the individual
projects in the process, with the attendant computers in graphical form. A testing routine checks the
configured structure to see that it is complete and that there are no configuration errors.
With the network nodes function, zenon also checks to see if the selected network topology can work.
Information
With network projects, note the roles (on page 10) (Primary Server, Standby
Server or Client) in which modules and functions (on page 158) can be
administered and executed.
8 | 187
Network
Information
You can find further information in the zenon Web Server manual.
With a Data Concentrator license, the connection of a client to a Primary Server or Standby Server is
not possible! This licensing is primarily for zenon Analyzer use. A connection query from a client to a
server is always rejected by the server. The values are not updated on the client. The configured
standby server can connect to the server. This guarantees that redundancy also works with a Data
Concentrator license.
RUNTIME COMPATIBILITY:
zenon Runtime is backwards compatible in the network and as a standalone.
That means:
The Runtime can always load projects from older version and interpret and display these
projects in accordance with their version.
Even if Runtime, the server and standby all have a higher version number, they can load
projects from older versions and interpret and display this version accordingly.
Mixed operation is possible.
With multi-project administration, projects from different versions can be loaded and run at
the same time.
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 enables Runtime systems to work together in the zenon network, as
well as zenon web clients.
In doing so, the following applies: The version of the client Runtime must be the same or higher than
the version of the server Runtime.
For example:
A 8.20 client can work together with a 8.10 server.
A 8.00 client can no longer work together with a 8.10 server. In this case, the client Runtime
must be updated to version 8.10 or higher.
9 | 187
Roles of computers
6.21 SP1
6.22 SP0
6.22 SP1
6.50 SP0
6.51 SP0
7.00 SP0
7.10 SP0
7.11 SP0
7.20 SP0
7.20 SP0[current Build-No.]
7.50 SP0
7.60 SP0
8.00 SP0
8.10 SP0
8.20 SP0
Due to the multi-project administration, projects from different versions can be loaded. For example,
the integration project can have version 8.20, a sub project version 8.10 and another sub project
version 7.60.
3 Roles of computers
With zenon, it is possible to create diverse network topologies. Starting with the simple client-server
model through to comprehensive multi-hierarchical models.
IT-specific terms such as Server and Client are also used in zenon. However, in order to achieve
unique identification of the individual components for complex multi-hierarchical structures with
various computers and projects involved, we always speak of roles in zenon. Roles are always to be
considered from the point of view of a project.
zenon Runtime can, on one computer, start one or more projects, depending on the project
configuration (see also multi-project administration (on page 31)). In doing so, the computer on which
Runtime is started assumes one of the following roles for the respective projects:
Primary Server
Standby Server
10 | 187
Roles of computers
Client
Info
If, in the course of this documentation, we speak of Primary Server, Standby
Server or Client, the role that the computer takes for the project is always meant.
3.1 Terminology
The following terms are used for the role description in the zenon network:
Parameter Description
Server: Computer with connection to the PLC. The server takes on the
administration of process and project data exclusively. Communication is
checked by means of a watchdog (on page 19).
In the event of a server failure, the Standby Server undertakes its tasks,
provided a standby was defined. As soon as the server is ready again, it
automatically takes on its tasks and synchronizes all data.
Standby Server: Takes on, in redundant systems, the role of the server, if this fails. It acts like a
client in the network, but al saves all data like the server. In the event of
hardware redundancy, the standby communicates with the redundant PLC
both ways.
The standby works with an internal buffer. Data loss during the downtime
between server failure and the standby taking on the server role is thus
avoided.
Clients: Each computer on which Runtime is started is a client. Clients connect to the
server to receive process data or to send this.
Information
Server and client are not defined in relation to a computer, but in relation to a
project.
If the names of the Server or Standby Server are changed, these cannot be
reloaded. They are only updated by restarting Runtime.
11 | 187
Roles of computers
Information
You can find detailed information on this in the Multi-Project Administration (on
page 31) chapter.
12 | 187
Roles of computers
If Computer 1 fails, Computer 2 is the new Primary Server for Project A. All Clients
automatically connect to Computer 2.
Information
You can find detailed information on this in the Redundancy (on page 25)
chapter.
Information
Multi-hierarchical projects can also be executed without a network on
standalone computers.
EXAMPLES
MULTI-CLIENT MODEL
Computer 1 is the Primary Server for Project A.
Computer 2 is the Primary Server for Project B.
Project I runs on Computer 3 (integration project) as a standalone project and starts Projects
A and B.
Computer 3 is a Client for both of these projects.
MULTI-SERVER MODEL
Project I runs on Computer 1 (integration project) as a standalone project and starts Projects
A and B.
Computer 1 is the Primary Server for both of these projects.
Project I runs on Computer 2 (integration project) as a standalone project and starts Projects
A and B.
Computer 2 is a Client for both of these projects.
Computer 3 is the Client for Project A.
Computer 4 is the Client for Project A.
13 | 187
Requirements
MULTI-CLIENT-MULTI-SERVER MODEL
Project I runs on Computer 1 (integration project) as a standalone project and starts Projects
A, B, C and D.
Computer 1 is the Primary Server for projects A and B.
Computer 1 is the Client for projects C and D.
Project I runs on Computer 2 (integration project) as a standalone project and starts Projects
A, B, C and D.
Computer 2 is the Client for projects A and B.
Computer 2 is the Primary Server for projects C and D.
Project I runs on Computer 3 (integration project) as a standalone project and starts Projects
A, B, C and D.
Computer 3 is the Client for projects A, B, C and D.
Information
You can find detailed information on this in the Multi-Project Administration (on
page 31) chapter.
4 Requirements
A basic requirement for using zenon is a functional Windows network.
GENERAL
The following prerequisites are necessary:
TCP/IP as the network protocol
Functional naming, can be chosen as DNS, WINS or local HOST files.
Free TCP Port 1100:
If a network project is loaded, zenon Runtime automatically starts the zenNetSrv network
service. This service opens port 1100. This must therefore be contactable remotely and must
not be blocked by a firewall.
14 | 187
Requirements
Info
zenon networks work with all supported operating systems.
The zenon network allows the choice of using IPv4 or IPv6. Dual operation is not possible. The setting
is made via:
Network configurationin the Startup Tool
or
zenon6.ini
The following components are not affected by the setting; they always use IPv4:
Driver communication with the PLCs
Protocol communication via process gateways
Workbench and Runtime communication in zenon Logic
Attention
IPv6 only works with zenon version 7.00 onwards. If IPv6 is used, no versions
prior to zenon version 7.00 can be started.
PORTS USED
For communication within zenon, only TCP ports are used; no UDP ports are used.
15 | 187
Requirements
Port numbers can be amended individually by means of the Listening ports tab in the Startup Tool. In
this case, the measuring range must be adapted manually!
Information
You can find further information in the Tools manual, in the Startup Tool
chapter.
STANDARD PORTS
ZENON
Application Standard port
DB Service 1103
zenAdminSrv.exe 50777
zenLicTransfer 50784
(License Transfer Service)
16 | 187
Requirements
ZENON LOGIC
Application Standard port
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
and 9001 etc. 7000 - 7010
9000 - 9010
ZENON ANALYZER
Application Standard port
ZAMS 50781
DRIVERS
Application Standard port
SERVICE GRID
Application Standard port
17 | 187
Requirements
NAME RESOLUTION
3. If the name resolution is correct, you receive the IP address of the computer with Runtime as
the answer; otherwise you receive an error message
TCP PORTS
Attention
The Telnet command is not part of the Windows operating system and must be
installed separately. You can find instructions for this in the operating system
help pages (search for: Telnet).
18 | 187
Requirements
In a topology with several Primary Servers (such as circular redundancy (on page 105)), it is
recommended that time synchronization is implemented by means of an external time service (such
as DCF77) or Windows resources. In this case, the automatic time synchronization in zenon must be
deactivated.
Attention
If the time difference between the server and the client is more than 5 seconds,
no more files are synchronized.
If the time synchronization is to be turned on or off manually, the following entry in zenon6.ini must
be amended:
[Netz]
TIMESYNCH=1 -> automatic time synchronization active (default)
TIMESYNCH=0 -> automatic time synchronization inactive
Information
Watchdog
When using the default setting of 30 seconds for the Network communication
timeout property in the Startup Tool, the network service (zenNetSrv.exe) of
each client sends a Watchdog to the network service (zenNetSrv.exe) of the
Primary Server every 10 seconds during online operation. If the Primary Server
19 | 187
Requirements
responds to at least one of the three watchdogs within the 30 seconds, the client
assumes that the network connection is working.
Configuration in zenon6.ini:
[Netz]
NET_TIMEOUT_MSEC=30000
For external synchronization using Windows, enter the following command with the respective
necessary arguments in the console for command processing: NET TIME [\\computer name |
/DOMAIN[:domain name] : /RTSDOMAIN[:domain name]] [/SET] [/YES]
Argument Description
20 | 187
Requirements
Argument Description
/YES Displays the current server time and synchronizes this with
the local computer without a further request or
confirmation.
Example
NET TIME \\Server /SET /YES
Select a timeout time in the WAN that only initiates the establishment of a connection at the desired
interval.
However, note: The longer the timeout, the later server failures are detected. For example, if you
select 64800 as the time for the timeout, the timeout time is 18 hours. A connection is made every 6
hours and a watchdog is sent. A server failure would thus only be noticed after around 18 hours.
Information
If no entry for the timeout is defined in zenon6.ini, the standard timeout of 30
seconds is used when Runtime is started.
21 | 187
zenon network - Setting up
This would lead to a permanent connection establishment in the WAN network. This behavior can
lead to entries in zenon6.ini being amended:
1. Open zenon6.ini.
2. Go to the section
[NETZ]
3. Create or edit the entry
NET_CONNECTWAIT_MSEC=30000
This defines the value for a reconnect in milliseconds.
Maximum value: Timeout time
4. Create or edit the entry
NET_CONNECTCOUNT=
This defines the number of repetitions for a reconnect per cycle.
The default is 0 repetitions, this means 1 attempt at reconnection.
TOPOLOGIES
zenon supports several network topologies:
Client server network (on page 24):
The same project runs on the server and all clients.
Multi-server network:
A client can access different servers and thus display the data of different projects at the
same time.
Multi-client-multi-server model:
All clients and servers communicate with each other. Other projects can be accessed from
each project.
22 | 187
zenon network - Setting up
3. Use the Server 1 property to define the computer that takes on the server role in the project
Note: The IP address is not sufficient; the name of the computer must be entered.
If necessary, you still configure the following in this section:
Standby Server (on page 102): Server 2 property:
Redundancy (on page 80): Redundancy type property:
Termination message: Defines if, when Runtime is ended on a server, the clients are
informed 70 seconds in advance.
Operating authorization (on page 142): If active operations are to be executed at the same
time on just one station.
Attention
Issue of a name for Server 1 and Server 2:
The computer name must be entered.
The entry of an IP address is not permitted.
localhost must not be used.
23 | 187
zenon network - Setting up
To set up the Client-Server model, the following must be the case in the project:
The Network active property must be activated
The name of the computer that is to be the Primary Server is to be entered in the Server 1
property
Recommendation: Select the most powerful computer in the network as the Primary Server.
In the zenon Client-Server model:
Only the Primary Server has a direct connection to the PLC
The Primary Server administers all process data (such as online data, archive data, alarms,
recipes, etc.)
The Primary Server administers all project data (such as screens, functions, defined variables,
etc.)
Each other computer starts as a Client in the network
Each client establishes the connection to the Primary Server when Runtime is started,
synchronizes the project data and
24 | 187
zenon network - Setting up
Information
The Client-Server model is fully supported under Windows CE. Windows CE
devices can be used as Primary Servers or as a Client.
5.1.1 Redundancy
Redundant SCADA servers are used, if 100% process control and data safety is demanded, even when
the server fails.
You achieve this fail safety by defining a second server, a so-called Standby Server, along with the
project server. This standby automatically recognized a server failure If the Primary Server fails, the
Standby Server takes on the complete functionality of the server.
Note: The HTML Web Engine can react to the redundancy switching of zenon Runtime and the use
the data from the current primary Runtime. This is only possible in conjunction with the Service Grid
Connector however.
In order to avoid data loss in the time between the server failure and the detection of the failure, the
standby always buffers all data. This data buffering also takes place if the Standby Server is not the
Primary Server. After a server failure this buffer is merged with the last data from the server and the
new incoming data, so no data can be lost. The control system thus guarantees seamless redundancy.
Depending on the configuration of the Redundancy mode property, the original server is started
either as a Server or as a Standby after restarting.
Redundancy mode Description
Dominant The original Server (Server 1) takes on the role of Server again after
been synced. Server 2 is downgraded to the Standby.
Rated Depending on the configured rating (on page 90), the original serve
either as a Server or as a Standby after restarting.
You can find detailed information on this in the Redundancy modes (on page 87) chapter in this
manual.
25 | 187
zenon network - Setting up
Info
If the standby is running, when the server is started, the server copies all
Runtime data from the standby. If you made any changes in the project data,
while the server was offline and you have only updated them on the (not
running) server, these changes will be overwritten, when the server copies the
data from the standby.
In this case you have to update the standby before starting the server; or you
close the standby when starting the server. As soon as it is restarted the standby
then will get the new data from the (running) server.
Hardware Both the PLC and the control system are redundant.
redundancy
You can find detailed information on this in the Redundancy (on page 80) chapter in this manual.
26 | 187
zenon network - Setting up
Attention
Issue of a name for Server 1 and Server 2:
The computer name must be entered.
The entry of an IP address is not permitted.
localhost must not be used.
If the development computer on which you created the project is also the Primary Server,
configuration is now complete.
If the development computer is not the desired server, transfer your project configuration to the
desired computer. The data can be transferred by means of Remote Transport or the network
topology.
Information
You can find further information on this in the administer and check network
topology (on page 70) chapter or in the Remote Transport manual.
Information
You can find further information on this in the administer and check network
topology (on page 70) chapter or in the Remote Transport manual.
27 | 187
zenon network - Setting up
Information
Find out more information in the chapter Remote Transport.
Information
You can find detailed information on this in the Network topology (on page 70)
chapter.
28 | 187
zenon network - Setting up
6. Activate the check box for the Load project from Runtime server option.
29 | 187
zenon network - Setting up
Attention
Repeat this process for each client.
In the event of a redundant zenon network configuration, the issuing of roles for the primary server
and the standby server depends on the Redundancy mode set. In doing so, the role of the
configured Server 1 and Server 2 computers can change over time in the Runtime, depending on
the configuration of the Redundancy mode and the current evaluation (for Redundancy mode
evaluated).
You should therefore always enter both servers for the configuration in the Runtime Server dialog.
The server names are separated from one another by a semicolon (;). Empty spaces for the server
names are permitted.
The sequence of the servers entered corresponds to the sequence of configuration. The Runtime
client does not start if the computer names do not correspond.
If the project configuration of Server 1 or Server 2 is changed, this change is discovered when
reloading on the client. In Runtime, a dialog is displayed that informs you of the amended server
configuration and forces the client to be restarted.
30 | 187
zenon network - Setting up
Ensure that the new Runtime files are transferred to the client again if necessary.
The transfer from the Primary Server to the Clients (such as a value change from a driver) is
spontaneous and event-triggered (such as calling up a zenon Extended Trend screen, which needs
archive data from a Primary Server).
31 | 187
zenon network - Setting up
Several projects in one workspace can be edited in the Editor at the same time
Several projects can be started in Runtime at the same time and thus variables, functions,
archives etc. from other projects can be accessed directly throughout the projects
Information
Multi-project administration is not available under zenon Operator. Here, only
one project and a global project per workspace can be created and
administered in the Editor. Runtime can only start one project.
STRUCTURE
An integration project that is loaded in Runtime as a start project is required.
zenon creates a multi-hierarchical project tree, at the top of which is the integration project.
Multi-project administration makes it possible to place the projects in a logical connection to one
another.
Information
Configure and check the topology with the zenon network topology (on page
70).
32 | 187
zenon network - Setting up
The project that is highest in the hierarchy is the integration project. All other projects are subordinate
to this project. The data from individual projects is available throughout all projects in the project
structure.
Note: Please note the recommendations for monitor configuration during configuration.
33 | 187
zenon network - Setting up
EXAMPLE
Three projects are used in this example:
Integration project IPRO
Productive project PRO1
Productive project PRO2
34 | 187
zenon network - Setting up
5. PRO1 and PRO2 are now displayed in the Project Manager as branches of the IPRO
Information
In order for elements of sub projects, such as screens, variables or functions to
be able to be selected, the Keep project in the memory function (in the project
context menu) must be activated.
35 | 187
zenon network - Setting up
Info
In order to transfer the integration project and both sub projects to a Client via
Remote Transport, 3 Remote Transport processes are necessary (a process for
each project).
Network topology (on page 70) is preferred here, because all projects can also
be transferred to several computers at the same time.
ADDITIONAL INFORMATION
For details of network topology, read the Administering and checking network topology (on
page 70) chapter.
You can find the configuration of the computer with an example for automatic transfer of
sub projects in the Configuration of computers in the network (on page 76) section.
You can find details for data transfer in the Remote Transport manual.
Attention
During configuration, note the roles in which the modules and functions are
executed (Primary Server, Standby Server, Client). You can find a list of the
possible configurations here: Behavior of modules in the network (on page 158).
36 | 187
zenon network - Setting up
connection, archiving, etc.). If the integration project is used as a start project, all sub projects are
automatically started in Runtime.
In an integration project, you can for example create central Alarm Message Lists or Chronological
Event lists for all subordinate projects with a few mouse clicks. This allows the alarms of all sub
projects in the Alarm Message List of the integration project to be displayed in chronological order.
Attention
When designing the multi-project administration, ensure that the navigation (on
page 37) works.
Information
These must be editable in order to be able to delete subprojects. For example, a
subproject that has been created with an earlier editor version than the
integration project can only be deleted after conversion.
37 | 187
zenon network - Setting up
3. Select PRO1.
4. Select the start screen of PRO1 and close the dialog with OK.
5. Repeat points 1 to 4 for PRO2.
6. Add two text buttons with the text PRO1 and PRO2 to the navigation screen.
7. Link the two text buttons to each of the functions that have been created.
Attention
zenon does not check in the Editor to see if the network structure in Runtime
actually allows access to the selected project/screen.
For example, in the Editor, screen switching to a screen in the integration project
can be created in the PRO1 project. This switching only works in Runtime if the
integration project has also been started. This screen switching will not work on
a computer on which the PRO1 project (start project) has been started.
38 | 187
zenon network - Setting up
VARIABLE EXAMPLE
1. Open the start screen of the IPRO.
2. Add a new counter value dynamic element.
3. The variable selection dialog now opens.
4. Here, you can select not just variables from the IPRO. To select a variable from a different
project:
a) In the left list area of the project, select a project from the tree view of the workspace.
The variables of the selected project are shown in the main area.
b) Select the desired variable with a mouse click.
5. Select a variable from PRO1 or PRO2.
39 | 187
zenon network - Setting up
Attention
zenon does not check in the Editor to see if the network structure in Runtime
actually allows access to the selected project and its variables/functions.
For example, in the Editor, in project PRO1, a variable from the integration
project can be selected. This connection only works in Runtime if the integration
project has also been started. This connection will not work on a computer on
which only project PRO1 has been started (start project).
5.2.3.1.3 Archives
Values of variables of different projects of the workspace can be recorded in an archive. The values
recorded in this way can be filtered, displayed in list form or trend form, and they can be printed or
exported just like data from normal archives.
EXAMPLE OF ARCHIVE
1. In the project IPRO open the node Historian.
2. Create a new archive named BA - BASIS.
3. Open the context menu of RECIPE1 and select Add variable.
4. The dialog for selecting variables is opened
5. Here, you can select not just variables from the IPRO. To select variables from other projects:
40 | 187
zenon network - Setting up
a) In the left list area of the project, select a project from the tree view of the workspace.
The variables of the selected project are shown in the main area.
b) Select the desired variable with a mouse click.
6. Select variables from PRO1 and PRO2.
7. The project name is written in front of the variable name in the archive variable list.
Attention
zenon does not check in the Editor to see if the network structure in Runtime
actually allows access to the selected project and its variables.
For example, in the Editor, in project PRO1, a variable from the integration
project can be selected. This connection only works in Runtime if the integration
project has also been started. This connection will not work on a computer on
which only project PRO1 has been started (start project).
After the selection of variables has been concluded, a warning dialog indicates that seamless
recording is guaranteed under all circumstances.
41 | 187
zenon network - Setting up
EXAMPLE
The project PRO1 is executed redundantly; one computer is the Primary Server, a second
computer is the Standby Server.
The same applies for the PRO2 project.
The integration project with the subordinate projects PRO1 and PRO2 is started on a third
computer. This is the client for all sub projects.
If variables of the projects PRO1 and PRO2 are now archived in the integration project, then the
computer receives the data in relation to the network from the respective Primary Server of PRO1 and
PRO2.
If, for example, the Primary Server of PRO1 fails, for the time period until the Standby Server of PRO1
has taken over the Server role, there would be alternative values in the archive for variables from
PRO1.
Note: The Standby buffer of seamless redundancy only saves variables of the project for which the
computer has been configured as one of the two servers.
Solution: In order to ensure recording without interruptions, the archiving must be local in a
redundantly-executed subproject.
5.2.3.1.4Recipes
You can write values to variables from different projects of the workspace in a recipe.
RECIPE EXAMPLE
1. In the project IPRO open the node Recipes.
2. Create, under Standard recipe recipes a new recipe with the name Recipe 1.
3. Open the context menu of Recipe 1 and select Add variable.
42 | 187
zenon network - Setting up
5. Here, you can select not just variables from the IPRO. To select variables from other projects:
a) In the left list area of the project, select a project from the tree view of the workspace.
The variables of the selected project are shown in the main area.
b) Select the desired variable with a mouse click.
c) Select variables from PRO1 and PRO2.
d) The name of the respective project is also placed in front of the variable name in variable
list of the recipe.
Attention
zenon does not check in the Editor to see if the network structure in Runtime
actually allows access to the selected project and its variables.
For example, in the Editor, in project PRO1, a variable from the integration
project can be selected. This connection only works in Runtime if the integration
project has also been started. This connection will not work on a computer on
which only project PRO1 has been started (start project).
43 | 187
zenon network - Setting up
AML example
1. Create an AML screen.
2. Add control elements to the screen via Control elements -> Add templates.
3. Create a function Screen switch for this screen.
4. The filter dialog for alarm lists is opened.
5. Open the Project tab.
6. Select the projects that are to be displayed in the AML of the IPRO.
(Multiple selection button Ctrl key plus a mouse click.)
44 | 187
zenon network - Setting up
45 | 187
zenon network - Setting up
The following conditions must be met in order to be able to use horizontal transparency in the
Runtime:
The integration project (on page 36) must be defined as the start project.
The integration project must have the necessary navigation.
Licensing: All variables and drivers of all running projects must be licensed.
Pay particular attention to the total quantity and special drivers.
EXAMPLE
Several terminals belong to one machine. Each has its own visualization project. With the help of
horizontal transparency, it is possible to show and operate, on each terminal, its own project and all
other projects. This way the entire machine can be monitored and operated from each terminal.
46 | 187
zenon network - Setting up
In this case, the reloading process can be optimized in order to prevent all Clients being reloaded at
the same time. You undertake the project configuration of this in project.ini.
Possible INI entries for the optimization of the reloading process of clients in the zenon network:
RELOADDELAY_SEC
CLIENT
When reloading, a random delay in seconds is calculated for each client, which is between 0 and
the selected value. 0 means no delay (standard action). The selected value has no influence on
standalone projects, the Primary Server or the Standby Server.
Note: This entry should only be set in very large projects with a noticeable delay when reloading.
The standard settings provide better performance in normal projects.
47 | 187
Strong encryption of network communication
CLIENT1=WKS001,10
Attention: the consecutive numbering of the clients must be continuously consecutive. If there are,
for example, entries for CLIENT0, CLIENT1, CLIENT2, CLIENT3 and CLIENT5, only the entries for the
following clients are taken into account: Client0, Client1, Client2 and Client3. The reload delay for
Client5 is not taken into account.
Information
For clients that do not have a CLIENTx entry, the random reload delay, as given
in the RELOADDELAY_SECentry, is applicable.
The reloading is only carried out in this case if these elements are closed again.
If encryption is active, communication between the Primary Server, Standby Server, Clients and zenon
Web Clients is in encrypted form; the zenon Web Server only forwards data packets and is not
affected by encryption.
Information
Network communication was also encrypted in earlier versions of zenon. The
method has changed with version 7. The term "encryption" in conjunction with
zenon 7 or later always means strong encryption.
48 | 187
Strong encryption of network communication
6.1 Basics
Encryption for zenon Runtime is available from version 7.00. It is not possible to communicate with
earlier versions of zenon if encryption is switched on. Encryption does not impair any zenon
functionality.
If encryption is activated on a computer, it always applies for the projects of this computer
with the Network active property active.
Information
AES 192 from Microsoft
(https://msdn.microsoft.com/en-us/magazine/cc164055.aspx) is used as the
encryption algorithm for network communication.
COMPATIBILITY
Encryption is not compatible with versions prior to zenon 7.00 SP0. That means:
System 1 System 2 Communicatio
n
49 | 187
Strong encryption of network communication
Errors (on page 57) are logged in the Diagnosis Viewer's LOG file.
EXAMPLE
The following illustration shows an example of a network with Primary Server, Standby Server, two
clients, one zenon Web Server and two Web Clients. All devices are running zenon 7.00 SP0. The
devices are configured as follows:
Encryption is activated on the Primary Server using the Startup Tool (on page 52).
Encryption is also activated on the Standby Server and client A via Remote Transport (on
page 54) when Runtime files are transferred.
Client B and Web Client B still communicate without encryption.
On Web Client A, encryption is activated on the server using the Startup Tool (on page 52).
Because the zenon Web Server does not evaluate the data packets, but instead forwards
these on immediately, it does not require encryption. In theory, it can also have an older
version, and the Web Clients can nevertheless create encrypted connections.
50 | 187
Strong encryption of network communication
As soon as encryption via Remote Transport or the Startup Tool configuration on client B and via
Encrypt network communication on Web Client B is activated, these connections can also make
connections to the Primary Server.
51 | 187
Strong encryption of network communication
Hint
For quick, easy activation of the encryption, it is recommended that the
configuration is carried our on a computer using Remote Transport (on page
54).
52 | 187
Strong encryption of network communication
CONNECTOR ENCRYPTION
In order to activate the encryption for the SCADA Runtime Connector zenon or zenon Analyzer, the
HTML web engine or for the Runtime remote driver, configure the Encrypt Runtime connector
communication group of properties.
53 | 187
Strong encryption of network communication
2. Enter the connection password or create one, if none has been set
3. Activate the Configure encryption of network communication checkbox
4. Click on OK.
The dialog for encryption of network communication is opened
54 | 187
Strong encryption of network communication
6. Issue a password (for criteria, see the network password encryption (on page 55) section.)
To quickly transfer the local configuration to other computers, the local password can first be
read via Read local configuration.
7. Confirm the dialog by clicking on the OK button.
If the password entered does not correspond to these requirements, an error message is shown:
55 | 187
Strong encryption of network communication
If, when configuring, the confirmation password is entered incorrectly, this is shown with an error
message:
56 | 187
Strong encryption of network communication
Are the required (operating system) functions available (primarily relevant for CE terminals)?
Non-existent functions lead to Runtime not being able to start.
If the service provider or one of the algorithms is not available, an error message (on page
57) is written to the log file when Runtime is started.
Errors (on page 57) are logged in the Diagnosis Viewer's log file.
NO CONNECTION
If a client has been configured with an incorrect encryption password (not the same as the password
on the Primary Server) then this is evident from the following events:
The Client is offline, although the Primary Server can be reached by pinging.
The Primary Server writes error messages to the LOG file:
SysMod Error: Serialize in Object Project: [project name] Modul: [module number]
or:
NET Error During Decryption [Error number]
These messages are always in English. Messages from Runtime itself are in the respective language
that has been set.
Error message Description
The password has to be entered in both When configuring the encryption, the user has left one of the two
text boxes! input fields (Password or Password confirmation) empty.
57 | 187
Strong encryption of network communication
The passwords you typed do not match. The content of the input field for password confirmation is
Please retype the password in both different to the content of the input field for the password.
boxes.
The network password does not fullfill The password entered does not meet the password criteria. The
the password criterias! password criteria are displayed in the error message.
Password criterias:
- Minimum length = 8
- Maximum length = 20
- At least one character of the latin
charset
- At least one number
- No spaces
The network password could not be An error occurred when encrypting the network password.
encrypted!
The network encryption configuration in When opening the Network configuration tab, it was established
the file zenon6.ini is invalid. that the zenon6.ini file does not contain a valid configuration for
the network encryption. A new configuration must be entered.
Please enter a new configuration.
The network encryption password in The password read in from the zenon6.ini file is invalid and
zenon6.ini is invalid. must be reentered.
The password for network encryption is Message when Runtime starts if the password cannot be verified.
invalid and must be entered again!
REMOTE TRANSPORT
The following error messages are given by Remote Transport as a pop-up when the remote
computer is encrypted.
Error message Description
For configuring the network encryption, An attempt was made to configure remote encryption without
the Remote Transport connection must securing the Remote Transport connection by means of a
be protected with a password! password.
You must enter the password in both When configuring the encryption, the user has left one of the two
input fields! input fields (Password or Password confirmation) empty.
The password confirmation does not The content of the input field for password confirmation is
match the password! different to the content of the input field for the password.
The password entered does not The password entered does not fulfill the password criteria. The
58 | 187
Strong encryption of network communication
Password criteria:
At least 8 characters
Maximum 20 characters
At least one letter
At least one number
No spaces
An error occurred when encrypting the An error occurred when encrypting the password. If this error
password! occurs during configuration via Remote Transport, a more
detailed error message is written to the log.
An error occurred when decrypting the The password stored in zenon6.ini cannot be decrypted. If this
network password from zeon6.ini. error occurs during configuration via Remote Transport, a more
detailed error message is written to the log.
The encryption configuration in The password read off from zenon6.ini is invalid. The password
zenon6.ini is not valid and must be must be entered again.
reentered.
The server reports an error when ERROR The remote zenSysSrv reports an error when
compiling the data for the encryption compiling the information for the encryption
configuration. of the password for network encryption. The
adapter information cannot be read off.
*** Configure the encryption of the This message is at the start of the conclusion
network communication at the target message after encryption has been
system. configured on a remote device via Remote
Transport. After this, there is a message in
relation to the success of the remote
configuration.
The server reports an error when the ERROR The remote zenSysSrv reports an error when
encryption configuration is changed. the encryption configuration is saved to the
remote device. The configuration was not
saved.
59 | 187
Strong encryption of network communication
The configuration was successfully MESSAG The remote zenSysSrv reports that the
saved on the server. E encryption configuration was successfully
saved.
The version of the remote zenSysSrv is ERROR An attempt was made to configure the
too low. The encryption cannot be encryption on a remote device, which has a
configured. zenSysSrv from a version prior to version
7.00 SP0. Encryption is only available from
zenon version 7.00 SP0; an earlier version of
zenSysSrv cannot therefore configure this.
NET Error During Acquiring ERRORS The creation of a service provider for encryption
Cryptography Context [Error-ID] was unsuccessful.
NET Error During Creating Hash ERRORS The creation of a hash value was unsuccessful.
[Error-ID]
NET Error During Using Hash ERRORS The processing of a hash value was unsuccessful.
[Error-ID]
NET Error During Destroying ERRORS The release of a hash value that is no longer
Hash [Error-ID] required was unsuccessful.
NET Error During Deriving Key ERRORS The creation of a key for symmetrical encryption
[Error-ID] was unsuccessful.
NET Error During Configuring ERRORS The setting of parameters for symmetrical
Key [Error-ID] encryption was unsuccessful.
NET Error Cryptography Not ERRORS An encryption or decryption function was called
Initialized! up but initialization of the required parameters
(service provider, key) was unsuccessful.
NET Error Invalid Pointer passed! ERRORS An encryption or decryption function was given
invalid parameters.
60 | 187
Strong encryption of network communication
NET Error Message Length Must ERRORS The encryption function was called up with an
Not Be 0! empty message.
NET Error During Buffer Length ERRORS The calculation of required buffer size for
Calaulation [Error-ID] encryption was unsuccessful.
NET Error Buffer Length Must ERRORS The buffer for encryption or decryption has not
Not Be 0! been created.
NET Error: Encryption Is Required ERRORS Encryption is active and a decrypted message
And Project [Projekt] Received was received. The message is discarded in this
Plaintext Network Message case.
NET Error: Encryption Is Not ERRORS Encryption is not active and an encrypted
Supported And Project [Projekt] message was received. The message is
Received Encrypted Network discarded in this case.
Message
NET Cryptography Successfully DEBUG The parameters required for encryption and
Initialized decryption were initialized successfully. The
parameters are initialized when Runtime is
started.
NET Uninitializing Cryptography DEBUG The parameters required for encryption and
decryption were released. This happens when
Runtime is ended. If the log connection is
separated before release, the message does not
appear in the Diagnosis Viewer
NET Error During Buffer Size ERRORS An error occurred when the necessary buffer
Calculation [Error ID] size for compiling information for encrypting or
decrypting the network password was calculated.
NET Error During Buffer Size ERRORS The computer does not have a network adapter.
Calculation: No Adapters For this reason, the network password cannot be
encrypted or decrypted.
NET Error During Adapter Info ERRORS An error occurred when the adapter information
Query [Error ID] for encrypting or decrypting the network
password was read off.
61 | 187
Strong encryption of network communication
NET Error Passwort Not Properly ERRORS The hex dump of the encrypted password is in
Formatted an invalid format.
NET Error During Decrypting ERRORS An error occurred when decrypting the network
Password [Error ID] password.
NET Error During Encrypting ERRORS An error occurred when encrypting the network
Password [Error ID] password.
NET Error Password Could Not ERRORS The password for network encryption could not
Be Decrypted be decrypted.
NET Password successfully DEBUG The password for network encryption has been
loaded loaded successfully.
Error During Buffer Size ERRORS An error occurred when the necessary buffer
Calculation [Error ID] size for compiling information for encrypting or
decrypting the network password for the
configuration of Remote Transport was
calculated.
Error During Buffer Size ERRORS The computer does not have a network adapter.
Calculation: No Adapters For this reason, the network password cannot be
encrypted or decrypted and thus not set via
Remote Transport (it must therefore be
connected via COM). The use of network
encryption on a computer without a network
adapter makes no sense however.
Error During Adapter Info Query ERRORS An error occurred when the adapter information
[Error ID] for encrypting or decrypting the network
password for configuration via Remote Transport
62 | 187
zenon on the Terminal Server
NET Error During Decrypting ERRORS The password is no longer valid, because the
Password: The Password is
initial data for computer-dependent encryption
Invalid!
has changed.
Limitations:
The Editor cannot run on a terminal server.
Project simulation is not available for clients at the terminal server.
zenon Logic is not available for clients at the terminal server.
63 | 187
zenon on the Terminal Server
Information
Keep in mind that the name of the terminal client is resolved. That means: The
name of the device that initiates the terminal connection is the name of the
Clients for the zenon network.
Attention: Ensure that all corresponding ports have been unlocked when using a
firewall.
Terminal server solutions are offered by several manufacturers. All tests with zenon were carried out
using the Windows terminal server (Windows Remote Desktop Services).
Attention
When using zenon with a terminal server, it must be licensed with a Network
dongle.
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.
Info
Not all software is compatible with terminal servers.
64 | 187
zenon on the Terminal Server
ADVANTAGES
Only one computer (the terminal server) has to be maintained.
Clients do not have to be very powerful (Thin Clients).
Clients can have different operating systems (Windows, Windows CE, Linux, Unix, MacOS,
iOS, Android etc.).
High degree of data security, because no data is saved on the Client.
DISADVANTAGES
All started programs of all instances run on one computer (the terminal server).
This:
must have sufficient computing power for all started programs.
must have sufficient RAM for all started programs.
All interfaces have to be shared. E.g. network adapters, COM ports, parallel ports.
The network load can be high with an appropriate number of Clients (such as transfer of
graphic data).
The screen resolution is defined by the client started first. If screens in different resolutions
are to be used, this can be implemented on the terminal server by means of an entry in the
zenon6.ini (SERIALIZE=1). All screens are then calculated again for the client, which further
increases the necessary performance for the terminal server.
65 | 187
zenon on the Terminal Server
SCHEMATIC DISPLAY
Computers Description
66 | 187
zenon on the Terminal Server
Information
The following parameters are automatically set with registration via the Startup
Tool:
INI entries:
[TERMINAL]
CLIENT=1
[DEFAULT]
SERIALIZE=1
Registration of ZenSysSrv.exe as a service
Deregistration of ZenDBSrv.exe
GENERAL SETTINGS
1. Registration
Register the use on the terminal server via the zenon Startup Tool.
Alternatively, you can configure the corresponding INI entries manually.
zenon6.ini entry:
The following entry must be added in zenon6.ini on the terminal server. On the Primary
Runtime server no settings are needed.
[TERMINAL]
CLIENT=1
1: The Runtime can be started several times, and all settings for the terminal server operation
are automatically set by the Runtime.
0: Runtime can only be started once per terminal server session. Operation on the terminal
server is not possible. (standard setting)
2. Automatic adjustment of the screen resolution
Per default the first client at the terminal server defines the screen resolution. This setting can
be amended on the terminal server with the following entry in zenon6.ini:
[DEFAULT]
SERIALIZE=1
0: Screen resolution individual, all screens are recalculated for each client
1: The first client started sets the screen resolution.
67 | 187
zenon on the Terminal Server
3. Transfer
The transport service (ZenSysSrv.exe) must be registered and started as a Windows service,
not as a standard EXE file. This setting is automatically set when registering via the Startup
Tool, but can also be set manually.
Manual setting:
a) Start the program from the command line interface with the -service option.
For example: C:\Programs (x86)\COPA-DATA\zenon820\zenSysSrv.exe -service
b) Then start the Windows Service Manager. The service will be started automatically during
every computer restart.
Note: The setup always registers the transport service as a standard EXE. Therefore the
transport service must be re-registered as a Windows service after every reinstallation.
4. Runtime folder
All users must have write access to the Runtime folder. All Windows users (Windows users:
All) in Windows Explorer must have complete access to the Runtime folder and all its
subfolders.
Attention
If TERMINAL= 1 is set, the project simulation is no longer available.
After synchronizing the Runtime files, the console client writes the reloadindicator.tmp file to the
directory that contains project.ini file of the program . The session clients at the terminal server check
every 10 seconds whether this file is available. If it exists and its file time stamp is newer than the date
of the last reload, a session client reloads automatically.
68 | 187
zenon on the Terminal Server
[TERMINAL]
CLIENT=1
CLIENT_NO_FILE_ALIGN=1
[DEFAULT]
SERIALIZE=1
Information
You can get further information in the configuration files manual in the Terminal
server [TERMINAL] chapter.
All connected stations always see one and Each connected station has its own desktop - an
the same desktop. If e.g. one user starts a own instance. Only it sees what happens there.
program, all see the same program, the Mouse actions and keyboard inputs only affect this
same mouse cursor, the same keyboard one instance.
input, etc.
Information
You can also find further information in the zenon Remote Desktop manual
69 | 187
Administering and checking network topology
70 | 187
Administering and checking network topology
Parameter Description
Project name Is defined in the project tree tab and cannot be changed here.
Network active Displays whether the network option is active for this project. The
setting can be changed via the Network active property.
Yes
project is a network project
No
project is not a network project
Server 1 Displays the Primary Server defined for this project. The setting can
be changed via the context menu, the symbol in the toolbar or the
Server 1 property.
Server 2 Displays the Standby Server defined for this project. The setting can
be changed via the context menu, the symbol in the toolbar or the
Server 2 property.
Property Description
Set computer as Primary Defines the computer highlighted in the computer list (on
Server page 73) as the Primary Server for the project highlighted in
the tree.
Set computer as Standby Defines the computer highlighted in the computer list (on
71 | 187
Administering and checking network topology
Property Description
Server page 73) as the Standby Server for the project highlighted in
the tree.
Delete Primary Server Deletes the Primary Server defined for the highlighted
project.
Delete Standby Server Deletes the Standby Server defined for the highlighted
project.
Parameter Description
72 | 187
Administering and checking network topology
Parameter Description
Primary Server Name of the computer that acts as a Primary Server in the
Runtime.
Standby Server Name of the computer that acts as a Standby Server in the
Runtime.
Result of test Shows detailed error messages (on page 77) for topology test.
The cells can be sorted and filtered. The column width can be amended with a right mouse click.
Parameter Description
73 | 187
Administering and checking network topology
Parameter Description
Start project The start project assigned to the computer Can be changed by:
Click in the cell:
Select from drop-down list.
Note: This is only possible for pre-existing entries.
Set start project entry in the context menu or the toolbar
Sets the project selected in the topology tree (on page 70)
as the start project.
Start project property.
Start project Runtime folder Folder for project files on the target computer. The files of the
start project are saved in this folder. All other projects relating to
this correspond to the structure of the Runtime folder set up on
the local computer.
For example:
Start project Runtime folder: C:\Projecs\Top = location where
start project is stored.
Sub projects are stored in C:\Projects\.
Hint: Use the project name as folder name in order to create the
same structure as on the engineering computer automatically.
74 | 187
Administering and checking network topology
Parameter Description
Detailed error messages (on page 77) are displayed in the result
tree.
Entry Description
Add computer... Opens the Configure computer dialog (on page 76) in
the network.
Edit computer... Opens the dialog to configure the computer (on page
76) in the network for these computers.
Set start project Sets the project selected in the topology tree (on page
70) as the start project.
Copy Runtime files from all projects on Copies all projects valid for the selected computer to
the computer the target computer. The result is displayed in the
output window.
75 | 187
Administering and checking network topology
Parameter Description
Computer name Clicking on the ... button opens the dialog to select a computer from the
list of computers that are currently available in the network.
Note: If many computers are available in the network, it can take some
time to call up the dialog.
All projects that are currently available in the workspace are displayed.
Start project Folder for project files on the target computer. The files of the start project
Runtime folder: are saved in this folder. All other projects relating to this correspond to the
structure of the Runtime folder set up on the local computer.
Hint: Use the project name as folder name in order to create the same
structure as on the engineering computer automatically.
For example:
Project name = I-Project
at Start project Runtime folder enter: C:\Projects\I_Project
The sub projects in relation to this path are stored at
C:\Projects\Projektname, for example:
The project name is SubProject1, then the Runtime folder for this is
C:\Projects\SubProject1.
Requirement:
The Runtime folders are left at their default settings and the projects were
created at one file level.
If this is not the case, it may be the case that subprojects cannot be copied,
because the relative folder cannot be created from the start project.
Example:
76 | 187
Administering and checking network topology
Parameter Description
The integration project has the following set up as a Runtime folder:
C:\Workspace\Projects\I_Project. The sub project has the following set up
as a Runtime folder: C:\Subproject. The start project Runtime folder is set
to C:\Project. The sub project cannot be transferred, because the relative
folder would be..\..\Project. This does not work, because the Runtime
folder for the sub project would be below C:\.
Solution: Set the Runtime folder project property correctly. It is best to do
it so that the Runtime folder is at the same level for all projects.
CLOSE DIALOG
Options Description
OK Applies settings and closes the dialog.
77 | 187
Administering and checking network topology
NOT TESTED:
Is a client only updated on one path by the Primary Server or do several paths exist?
CLIENT TO SERVER
Does the client reach its Primary Server via the Primary Server's chain?
Was a computer that routes switched to its Standby Server?
Info: The server must also be able to be reached by the client via the project's Standby Server
that routes.
ERROR MESSAGE
Errors that are recognized during the topology test are displayed in the result tree (on page 72) in the
test result column.
Error Reason Solution
The computer is entered as Server and Standby Server Define different computers as
a server and standby! must be different computers. Server and Standby Server.
The project is not started The project is not loaded on Adapt topology or start project for
on computer [name]! the computer stated. The the computer or deactivate the
However it is necessary project is however routed via Routing active property.
because higher hierarchic this.
levels need access to it.
Circular access to the The routing path from the Adapt topology or start project for
server: The computer client to server goes around the computer or deactivate the
[name] redirects to the in a circle. The computer that Routing active property.
client [name]! acts as a node redirects to
the client.
Circular access to the The routing path from the Adapt topology or start project for
standby: The computer client to the standby goes the computer or deactivate the
[name] redirects to the around in a circle. The Routing active property.
client [name]! computer that acts as a node
redirects to the client.
78 | 187
Administering and checking network topology
The computer [name] is Computer is missing in the list Add computer to topology.
not included in the list of of computers for the
computers topology.
Not checked because there No check could be made out Rectify other errors so that the
is critical error in the for this computer because check can also check this computer.
topology there was a critical error.
Circular access path: The routing path from the Adapt topology or start project for
[computer names] client its the server/standby the computer or deactivate the
goes around in a circle. Routing active property.
Structure:
The first computer is always
the client. The separator
between the computer
names indicates whether the
following computer is a
server or standby.
> identifies the
following computer as
a server.
"+" labels the following
computer as a
standby.
For example:
Computer1+Computer2 >
Computer3
Circular access path exists The server is found according Adapt topology or start project for
from server to client! to the node when searching the computer or deactivate the
for the client computer. Routing active property.
The server (name) cannot The path is not closed from Adapt topology or start project for
reach this client! the stated server to the client. the computer or deactivate the
The client is included in the Routing active property.
client list on the server but is
not updated. (The blue dots
do not disappear on the
79 | 187
Redundancy
9 Redundancy
Redundancy in zenon ensures that processes are not interrupted even in the event of a failure of the
Primary Server and that no data is lost. The term used in zenon is seamless redundancy.
Seamless redundancy means that the time period between the failure of the Primary Server and
detection of the failure is protected from data loss. This is implemented as follows:
1. The Standby Server buffers all data.
2. The Standby Server detects the failure of the Primary Server and automatically takes on the
complete functionality thereof.
3. The standby server adds the data from the buffer to the corresponding modules (AML, CEL,
archives).
This redundancy also means the online data snychronization of Runtime files. The project status of the
current Primary Server applies automatically for all connected Clients and the Standby Server.
The standby server and the connected Clients automatically synchronize the online data. This ensures
that:
all computers have the same project status;
the Standby Server always saves a copy of a functioning project status.
In the event of a sudden power failure for the Primary Server, files may be damaged, for
example, due to them not being saved correctly on the hard drive. The Standby Server
automatically takes on the role of the Primary Server with buffered, undamaged files. If the
failed server is restarted, it always begins in the role of the Standby Server and thus the
online data synchronization of its files is restored.
Information
Project changes must be manually updated on the current Primary Server and
not on the Standby Server.
The server that is started second in the network takes on the project status of
the Primary Server. This also applies for the dominant network when starting
Server 1 while Server 2 is already performing the role of the Primary Server.
Which additional files will be synchronized between the Primary Server and the Standby Server is also
configured in remote transport.
80 | 187
Redundancy
Example: A controller has two IP addresses and the driver is primarily to use one of the IP
addresses - which differs depending on whether the driver was started on Server 1 or Server 2.
This is possible if the driver is used which stores these addresses in a configuration file. After the initial
transfers of different configurations to Server 1 and Server 2, you can deactivate the
\zenon\custom\drivers entry in the project properties under general/remote transport. This prevents
the configuration file of the driver of the Primary Server from overwriting the configuration file of the
Standby Server during online data synchronization.
CIRCULAR REDUNDANCY
zenon circular redundancy (on page 105) is a special form of redundancy that allows seamless
redundancy for several projects with a low amount of hardware being used and very simple
eingineering.
Info
If only one controller is available which offers only one communication channel,
the Stop at the Standby Server option in the general settings of the driver
configuration can be activated. The driver is thus stopped at the Standby Server
and only started again at the upgrade.
As client
Connection to Server 1 and Server 2 is possible.
The client connects to the Standby Server if the Primary Server fails.
Several instances of a driver are supported (because it is started on the Primary Server
and/or the Standby Server).
All variables of all drivers are displayed and can be written.
81 | 187
Redundancy
As Standby Server
Redundancy with zenon Operator (licensed for Server 1 and Server 2) is not supported.
If Runtime is started with an Operator license as a Standby Server, there is an undefined
status.
As a data server
More than one instance of a driver can be started. However, only one of the instances can
send values to Runtime. zenon Operator thus behaves along the lines of a CE panel on which
only one driver can be started for technical reasons.
BEHAVIOR IN OPERATION
In normal operation, both computers communicate with the controller; in doing so:
The Primary Server communicates with the controller in two directions (read and write)
The Standby communicates with the controller as read only
82 | 187
Redundancy
83 | 187
Redundancy
3. Enter the IP address of the secondary controller into the driver configuration at Server 2
instead of the the IP address of the primary controller.
4. Deactivate the transfer of the driver files in the project settings for remote transport.
It is thus ensured that the configuration at Server 2 is not overwritten by the configuration of
Server 1.
BEHAVIOR IN OPERATION
In normal operation:
The Primary Server communicates both ways with the first controller
The Standby Server communicates read only with the second controller
The integrity of the data is ensured by means of a data sync in zenon
If the Primary Server fails, the Standby Server takes over its role and communicates on a two-way
basis with the secondary controller.
If the server that has failed is started again, it takes over, depending on the selected redundancy
mode (on page 87), either the role of the Primary Server again or that of the Standby Server.
If the first controller fails, redundancy switching is not carried out automatically.
84 | 187
Redundancy
In normal operation:
The Primary Server communicates both ways with the first controller
The Standby Server communicates both ways with the second controller
85 | 187
Redundancy
If the controller connected to the Primary Server fails (initially Server 1), redundancy switching is not
carried out automatically.
86 | 187
Redundancy
If, during ongoing operation, the controller of the Primary Server fails (Variable A gets the status
INVALID), redundancy switching to Server 2 is carried out.
If the PLC on the original Standby Server (Server 2) fails, redundancy switching to Server 1 is carried
out.
87 | 187
Redundancy
Rated
Non-dominant
1. The Primary Server fails.
2. The original Primary Server goes online again.
In doing so:
a) It connects to the current Primary Server
b) It synchronizes all data
c) It becomes the Standby Server itself
3. The current Primary Server remains the Primary Server.
4. All Clients retain the connection to this.
Rated
With rated redundancy, the roles of Primary Server and Standby Server are given on the basis of an
evaluation matrix.
In doing so:
1. both computers each carry out a rating calculation on the basis of configured rating criteria.
2. The computer that has the higher rating becomes the Primary Server
3. There is no exchange of roles if the evaluation calculation for both servers results in the same
value.
4. Alarms and CEL entries are written by the Primary Server
5. The clients connect to the Primary Server
88 | 187
Redundancy
This rating can be freely configured and can include different criteria. Each criterion is assigned rating
points - the weighting. The sum of the weighting points decides on the respective server role.
Information
If one of the two servers, regardless of which role they are currently in, loses the
connection to a different server (due to a hardware or network failure, for
example), it automatically upgrades itself to the Primary Server.
Attention
If, in a rated network, server redundancy switching is triggered due to a rating,
there is no guarantee that pending functions in the queue of the old Primary
Server have also actually been processed successfully before switching.
Reason
During redundancy switching in rated networks, both servers take on the role of
the Primary Server for a short time. In this time period, Server 1 and Server 2
synchronize their data. The time period of this status depends on the network
load and can be between 200 and 500 milliseconds.
TIME SYNCHRONIZATION
Recommendation: With a rated network, always deactivate the time synchronization of Server 1
and Server 2 through the zenon network.
To do this:
Deactivate the automatic time synchronization in zenon.
89 | 187
Redundancy
Activate external time synchronization on Server 1 and Server 2 by means of the operating
system.
Information
You can find detailed information on this in the Time synchronization in the
network (on page 19) chapter.
90 | 187
Redundancy
Local variables: For information on resources of the PC. For example, with system driver
variables from the [HW resources] theme.
Internal variables with the Local setting for the Calculation property.
Attention: Evaluations that are based on the variables of the math driver, or on variables whose
drivers have been stopped on the standby server, always only have an effect on the current primary
server.
Math variables and process variables whose drivers have been stopped on the standby server never
update the evaluation on the standby server. For these variables, the weighting calculated in the
evaluation contains the last value from the time when this server still acted as the primary server.
Option Description
Name of the variable List of the variables that can be used for the rating.
91 | 187
Redundancy
Option Description
Comparison) are counted up.
Input range: 0 - 1000
Default: 100
Drop-down list:
Not used
No comparison to the weighting is carried out.
Only status OK /value OK
A check to see if there is a valid value. As soon as
there is a value without the status INVALID, the
value of the weighting is used for the overall
evaluation.
Note: It allows a check to see whether there is a
connection to the controller - using any desired
variable that the PLC provides.
Values from limit are OK
Values that are greater than or equal to the limit
that has been entered use the value of the rating
in the overall evaluation.
Values up to limit are OK
Values that are less than or equal to the limit that
has been entered use the value of the rating in
the overall evaluation.
Default: 0
92 | 187
Redundancy
Option Description
Note: Multiple selection is possible.
Reset filtering Removes the filter criteria.
CLOSE DIALOG
Options Description
OK Applies settings and closes the dialog.
Example
A variable is configured in the rating dialog with the following settings:
Weighting: 50
Comparison: Values from limit are OK
Limit: 50
Set the value of the variable to 55. The condition becomes true as a result and
the weighting of 50 is added to the result of the [Network] Rating result for
Server 1 system variable.
As long as the value of this second variable = < 10, the weighting is added to
the system variable. If the value of the second variable is 5 for example, the
[network] rating result for Server 1 is 80. This is also applicable if the previously
described variable is true.
93 | 187
Redundancy
SWITCHING DELAY
The Switching delay [s] is the time (tolerance time) in which value changes of the rating result do
not trigger a regrading of the server. In doing so, short peaks or a brief failure do not lead to an
immediate server change.
Note: A further improvement of the rating result during the configured switching delay does not
reset the timer.
Example
If a Switching delay [s] of 30 seconds is configured, the rating on the current
Standby Server must be at least 30 seconds better than that of the Primary
Server in order to trigger regrading.
After successful regrading, the timers of Dead time after switching [s] and Switching delay [s]
switching delay can run at the same time; both must have expired in order to trigger a regrading.
DOWN TIME
This setting prevents resetting on the basis of the Primary server during the configured time.
Example
If the rating of the current Standby Server - after the last regrading within the set
down time - is higher than that of the current server, there is not another
regrading until this time expires. The start of the time period is the time in which
the role swap of the server is completed.
If the rating increases within the down time of the Standby to more than that of
the Server, but it goes down again to below or the level as the rating of the
server before it expires, there is no regrading.
If a Hysteresis is configured, a check is made before redundancy switching to see whether the rating
results between the two computers (Server 1 and Server 2) correspond to the configured rating
points. The switching is triggered once the value has been reached.
94 | 187
Redundancy
Example
Server 1 is Primary Server.
If the rating changes from Server 2 to 99, nothing happens; if the value reaches
100, a regrading is triggered.
In this example, the switching of the two servers is triggered by a higher rating of the Server 2.
Once the reason for switching has occurred, the delay time is waited.
Server 2 then becomes the Primary Server.
Although Server 1 could take on the role of the Primary Server again, the delay time is
waited for before Server 1 takes on the role of the Primary Server.
Server 2 takes on the role of the Primary Server once the difference of the rating system
variables is higher than the hysteresis of the delay time. After switching, the counting of the
configured Dead time after switching is activated.
Server 2 takes on the role of the Standby Server at the time at which the difference is higher
than the hysteresis again, once the switching delay time has expired.
95 | 187
Redundancy
Note: The role exchange of the two servers is visualized in the graphics by the respective vertical
dashed line.
96 | 187
Redundancy
3. Add this variable in the dialog for the redundancy rating (on page 90).
Information
To calculate the redundancy rating, the status of values from the buffer of the
Standby Server is used. This is an exceptional case because the status of the
Primary Server is always used for other evaluations.
97 | 187
Redundancy
LOG SendData Project:RATED_NET Debug As above, the target is Server2 and the
To:W7X64 Modul:10 Prior:0 source is Server1
Class:CD_CSrv1SystemDaten
LOG ReceiveData Project:RATED_NET To:S Debug As above, the target is Server and the source
Modul:10 Class:CD_CSrv2SystemDaten is Server1
ReqId: Request ID
98 | 187
Redundancy
Server received system data. Prj:RATED_NET ExpRoleTxt: Role expected by Server2 for
client:WKS053-W7X64 Server 1 as text.
99 | 187
Redundancy
Manual role switch for project %s denied. WARNINGS Manual redundancy switching cannot be
carried out because a regrading is already
active.
Current evaluated server1 role: %s(%i) DEBUG A manual redundancy switch is carried out.
Performing manual role switch. Server 1 must switch its role according to the
message.
100 | 187
Redundancy
101 | 187
Redundancy
Find out more information in the chapter Redundancy modes (on page 87).
Info
Project changes need only be entered on the Primary Server; the standby server
and the connected clients automatically synchronize online data. This ensures
that the project status is the same on all computers.
You can find details on the combination of zenon redundancy and zenon Logic redundancy in the
zenon Logic Runtime manual).
Information
Servers from different domains are permitted!
In this case, configure the server name including the domain name.
e.g.: terminal_01.mydomain.net
The size of the standby buffer depends on the project configuration. In doing so, four thirds of the
configured network timeout is always buffered.
102 | 187
Redundancy
The project configuration of this network timeout is configured in the zenon6.ini file in the [Netz]
area with the NET_TIMEOUT_MSEC= entry. In doing so, all data is saved in the buffer on the
standby server.
In addition, this INI entry determines the time period that the standby server waits before it
upgrades itself to the primary server.
If, during the time in which Runtime is stopped on the original Primary Server, you make changes to
the project and introduce these before synchronizing on this (stopped) computer, these changes are
overwritten again as soon as the original Primary Server gets the data from the current Primary Server
(the original Standby Server).
To prevent this: Introduce the amended data onto the Primary Server (configured Standby Server)
as well, before starting the original (configured) Primary Server.
The following changes are only accepted after the Primary Server has restarted:
Change of the Redundancy mode.
Changes in the Server 1 properties or Server 2 in the Network properties group.
103 | 187
Redundancy
Attention
In this case, reloading the project in Runtime is not sufficient to apply the
necessary changes! To accept all changes, restart the Primary Server.
In exceptional cases, it may happen that both computers are the Primary Server. The cause of this can
be, for example, a loss of network connection due to a switch failure, a disconnected network cable
etc. In this case, the communication between the Primary Server, Standby Server and Clients depends
on the error screen.
If, with this setup, the error screen is resolved and both servers communicate with each other again
(at this time), then the original (configured) server has data sovereignty. That means: The standby
server's more recent data could be overwritten.
To prevent this:
1. Always check the role distribution with the [Network] Current Primary Server system variable:
You will see the role that Runtime has and discover duplicate Primary Servers.
2. End zenon Runtime on the Primary Server that lost the network connection.
3. Set up the network connection again.
4. Restart zenon Runtime on this computer.
5. Runtime then starts the project with the computer as a Standby Server, updates its data and
only then switches back to the Primary Server role.
Hint: Monitor the network connection with the Redundancy Management Tool (on page 107).
Attention
PNG graphics files cannot be overwritten if they are currently being displayed in
Runtime.
Background: The Runtime protects opened .png files. This prevents these being
overwritten.
This also applies for the reloading of amended Runtime files. The Runtime sync
in the network does not work for a *.png screen if this is switched on a zenon
computer that is involved in the process (standby server, client).
104 | 187
Redundancy
Two computers are normally required for each redundant project: one computer as the Primary
Server and one computer as the Standby Server. 3 projects would thus require 6 computers. Just
three computers are sufficient for implementing three projects with zenon circular redundancy.
Another computer is added for each further project. zenon combines multi-project administration (on
page 31) with seamless redundancy (on page 80).
105 | 187
Redundancy
Computer 1 is the Primary Server for Project A and Standby Server for Project B.
Computer 2 is the Primary Server for Project B and Standby Server for Project C.
Computer 3 is the Primary Server for Project C and Standby Server for Project A.
The circle is closed!
Each computer can be a Client for the other projects at the same time.
Expense: 3 computers and 3 Runtime licenses
Info
An integration project (on page 36) is needed to start more than one project on
a computer.
Normally you would need six computers and six Runtime licenses in this example. zenon circular
redundancy is of course not limited to three projects, but can connect as many projects as desired in
a circle. The fact that the computers can also be clients for other projects allows easy implementation
of a low-cost, fail-safe, highly-available production line.
106 | 187
Redundancy
Recommendation: In this case, deactivate the zenon time synchronization and carry out external
time synchronization. You can find instructions for this in Time synchronization in the network (on
page 19).
Direct start of the zenon_redman.exe file from the zenon program folder
After the start, the Redundancy Management Tool is also displayed as a symbol in the right area of
the Windows task bar. A double click on the symbol opens the configuration dialog:
107 | 187
Redundancy
STATUS
SETTINGS
Runtime Shutdown Delay Setting of the delay time before ending Runtime, in
seconds. In this period of time, the operator can
cancel the closing of the Runtime.
Default:10 s
108 | 187
Redundancy
INI FILE
During the configuration via the dialog, the RedMan.ini file is created in the
%ProgramData%\COPA-DATA\System path.
It contains the following entries:
Parameter Description
The Redundancy Management Tool can also be started via the command line interface.
Possible parameters:
ADAPTER=[Name]
Defines the network adapter which should be monitored.
DELAY=[Seconds]
Defines the waiting time after a connection loss.
Maximum value: 2147483647. Values greater than this are interpreted as 0.
HELP,?
Displays help about the command line parameters.
Information
During the configuration via command line interface:
these settings are taken over directly
the configuration is deactivated in the dialog
109 | 187
Redundancy
IN THE RUNTIME
During the Runtime, the Redundancy Management Tool continuously monitors the network
connection. If the connection is canceled, the Redundancy Management Tool shows a warning
message. The Runtime is ended after the configured delay time.
As soon as the connection is available again, the Redundancy Management Tool restarts the Runtime.
Click on the Cancel button to halt the countdown and prevent the closing of the Runtime. If the
connection is reestablished, the dialog is displayed again when the connection fails again. The user
can cancel again or let the tool close the Runtime.
Information
The current status of the connection and Runtime is also always displayed in the
configuration dialog.
ERROR HANDLING
ERROR MESSAGE
110 | 187
COPA-DATA PRP
Network link '%s' down for '%u' seconds. Error Network connection failed: The Runtime
zenon Runtime will be terminated. is closed.
Network link '%s' is up. Restarting zenon Information Network connection available again: The
Runtime now. Runtime is restarted
10 COPA-DATA PRP
zenon supports the Parallel Redundancy Protocol (PRP) for hardware-redundant communication in an
Ethernet network. The protocol is standardized in IEC 62439-3.
Every PRP node, a Dual Attached Node (DAN), is bound to two networks, here LAN A and LAN B. As
PRP is a Layer-2 protocol, the protocol of the two networks must be identical on the MAC level.
Therefore, this basically means that there must be no direct connection between the LANs.
If one of the networks fails (e.g. if a cable is removed for one of the networks), this has no influence
on the other one. The communication between PRP nodes remains seamless as long as one of the
LANs is connected.
111 | 187
COPA-DATA PRP
The PRP communication is established directly on the OSI Layer 2 level, thus making it applicable for
TCP, UDP, Ethernet Multicast (e.g. GOOSE) etc. Its use is independent of the zenon Editor and the
zenon Runtime. No special configurations are required in zenon, and the use of PRP is “transparent”
for <CD_PRODUKTNAME> modules, drivers, process gateways etc. The settings are only made in the
components of the operating system.
To use the protocol, the computer must have two network cards and be configured accordingly. You
need the following for the use of PRP:
COPA-DATA PRP driver network service (for the network cards of the computer).
PRP configuration and diagnosis tool application.
You can find this on the installation medium. You can find a detailed description of the required
configuration steps in this manual in the installation and configuration (on page 113) chapter.
Attention
Windows 10 operating system: Versions earlier than Windows 10 version 1607
are not supported.
Note: In the Parallel Redundancy Protocol (PRP), the original Ethernet frames are supplemented by
additional information (on OSI Layer 2), which is different in LAN A and LAN B. The non-PRP nodes
(devices that do not support PRP) can be connected to the PRP network via a Redundancy Box
(RedBox).
Attention:
A direct Ethernet connection - between a PRP and a non-PRP node of the communication
network - will lead to errors in the Ethernet communication.
Changing the assignment of network cards to LAN A and LAN B (or in the cabling) will lead
the PRP communication to fail in all the PRP nodes.
GENERAL
The PRP solution of COPA-DATA integrates both the (CDPrpFlt.sys) kernel driver as well as a system
component - the network bridge. The network bridge (Network Bridge) is an integral part of the
Windows operating system and thus dependent on the operating system version and the installed
Windows updates. This solution entails increased dependency on the network drivers that the
operating system uses: Firstly on network adapters and secondly on additional installed protocols or
filter drivers.
112 | 187
COPA-DATA PRP
Additional driver software and network software from third-party manufacturers can lead to
compatibility problems with the PRP protocol. Uninstall this software if PRP problems occur during
communication. In the operating system, the list of the installed drivers can be displayed and
managed by means of the system property in the Network and Internet properties group. Installed
programs are displayed in the Programs system properties group and can be uninstalled there.
Perform a Windows update too, in order to ensure that the operating system is up to date.
Attention: Owing to described dependencies, there is no guarantee that the PRP solution works for
every combination of operating system and network card type and/or additional third-party
components. In the worst case, there can be an incompatibility between the network card driver and
the COPA-DATA PRP implementation, which can only be solved technically by switching to a different
adapter type (a different network card).
Attention
PRP communication is only supported within a redundant network. In doing so,
two physical networks can be connected via PRP.
The cards configured for PRP can only be used in a PRP communication network. All other network
cards of the computer can still be used for normal communication via Ethernet.
113 | 187
COPA-DATA PRP
NOTE:
Note:
Administrator rights on the computer are required for installation.
The system must be restarted for the installation.
Note the instructions for the respective steps.
The packet sync of the network service supports networks up to 100 Mbit.
The PRP files can only be updated with a zenon main version or a service pack.
Build versions are not in a position to do this.
Attention
Ensure that you carry out the configuration steps in the given sequence.
NETWORK ADAPTER 1
114 | 187
COPA-DATA PRP
115 | 187
COPA-DATA PRP
NETWORK ADAPTER 2
Attention
Ensure that
the same MAC address is used on both network adapters;
this MAC address begins with 0A;
And it is not used by any other computer in the local network.
116 | 187
COPA-DATA PRP
117 | 187
COPA-DATA PRP
118 | 187
COPA-DATA PRP
119 | 187
COPA-DATA PRP
120 | 187
COPA-DATA PRP
Confirm the Windows request for confirmation by clicking on the Install button.
Attention: It may then be necessary to restart your computer.
Note: This request for confirmation is not shown if you have already activated the "...
always trust" box when installing zenon program components earlier.
13. After successful installation (and restarting the computer) the service is visible in the
properties window of the network adapter in the list of elements used.
14. Ensure that the LAN connection and the network service COPA-DATA PRP driver are
activated using the checkbox.
Attention
Ensure that use in the active system is not jeopardized by the required restart.
121 | 187
COPA-DATA PRP
PRP CONFIGURATION
1. Start the program called PRPCfgDiag.exe.
You can find this software on your computer in the following folder: C:\Program Files
(x86)\Common Files\COPA-DATA\STARTUP.
The PRP Configuration and Diagnostics dialog is opened.
Note: The PRP Configuration and Diagnostics Tool is only available in English. You can find a
detailed description of the PRP Configuration and Diagnostics Tools in the PRP configuration
and diagnosis tool (on page 123).
2. Click on the Configuration button.
The dialog for the selection of the network adapter is opened.
Note: The content of the drop-down list is based on the system settings.
3. Select the network adapter for LAN_A and LAN_B from the drop-down list.
Note: Ensure that for all PRP-compatible devices in the Ethernet network, the references
between the physical network and LAN_A or LAN_B are configured the same. The plugs of
the cables for LAN A and LAN B must not be mixed up.
4. Confirm the assignment with OK.
5. End the configuration by clicking on the Exit button.
After these steps, the entire communication of this network adapter is carried out using the PRP
protocol. This means that all applications on the computer that access the Ethernet via this interface
122 | 187
COPA-DATA PRP
(TCP, UDP etc.) communicate with the support of PRP. No additional engineering is required in the
applications; the use of PRP is “transparent” for them.
Attention
If the PRP communication does not function, make sure that all the System
requirements (on page 112) and the Hardware requirement (on page 113) are
met.
You can also delete the network bridge, restart the computer (don’t forget
Windows Updates) and carefully repeat all the configuration steps down to the
last detail.
REQUIREMENTS
The PRP Configuration and Diagnostic Tool needs the following for operation or configuration:
123 | 187
COPA-DATA PRP
Two network adapters that are combined into a bridge in the system settings.
Note: In this bridge, only the two network adapters that are used for PRP communication
can be configured. Other network adapters must not be included in this bridge.
The CDPrpFlt driver must be installed in the operating system.
Information
You can find information on the installation and necessary preparations in the
system settings in the installation and configuration (on page 113) chapter.
10.4.1 Statistics
The data flow is visualized in the Statistics dialog. The setting is displayed separately for both LAN
adapters.
The flow of data is always recorded, even if the tool is not open.
124 | 187
COPA-DATA PRP
Parameter Description
Active
PRP-Supervision frames are received
correctly for the respective (LAN_A or
LAN_B).
Inactive
No PRP Supervision frames are received
within the past two seconds. There is no
PRP station in the network or there is an
error.
10.4.2 Configuration
The following is carried out in the Configuration dialog:
Network adapter is assigned by means of a drop-down list.
The content of the drop-down list is based on the network settings.
You can find further information in the installation and configuration (on page 113) chapter.
The multicast MAC address is visualized
Error messages from the network adapter configuration are visualized in an output window
125 | 187
COPA-DATA PRP
Attention
The computer must be restarted after changes to the configuration have been
made.
LAN_A/LAN_B Multicast MAC Multicast MAC address for PRP Supervision frames.
This address for the communication in the network
is preset and cannot be changed.
126 | 187
Settings in zenon Editor for Service Grid
Parameters Description
dialog (on page 124).
Attention: In the PRP communication network, the original Ethernet frames are supplemented by
additional information (on OSI Layer 2), which is different in LAN A and LAN B. Mixing up the
assignment of network cards (or cables) to LAN A and LAN B leads to errors in the Ethernet
communication throughout the entire PRP network.
Attention
This configuration enables the transfer of data from zenon to zenon Analyzer.
You configure the connection of the zenon Runtime to the Service Grid:
For zenon 810, with the Service Node Configuration Tool.
For zenon 8.20 or higher, with the Execute Service Grid Gateway property
and the Service Node Configuration Tool.
To configure the connection from the zenon Editor to the Service Hub:
1. Highlight the project.
2. Go to the Network node in the properties.
3. Go to the Service Grid area.
4. In the Service Hub property, select the desired type of connection to the Service Hub from
the drop-down list:
<No service hub selected>: No connection to a service hub is established. Existing
connections are separated in the zenon Editor.
127 | 187
Settings in zenon Editor for Service Grid
<Apply from the global project>: The service hub configured in the global project is used.
The setting is taken from the global project and entered. If there is no global project or
no service hub has been configured there, no entry is created for this project.
<configured service hubs>: List of all available connections.
The selected connection is entered in the project.ini when the Runtime files are created.
Attention
Do not use the Service Grid Gateway at the same time as the Service Grid
Runtime Add-In.
Service Grid Gateway: For zenon 8.20 or higher. Is displayed as zenon Runtime.
128 | 187
Settings in zenon Editor for Service Grid
If the project is reloaded in the Runtime, the connection is closed before reloading and restarted after
reloading.
Alarm administration:
Publish current alarms (from ring buffer)
Publish current alarms (AML)
Set alarm causes
Set alarm comments
Acknowledge alarms
129 | 187
Settings in zenon Editor for Service Grid
Attention
In order for elements to be published or changes to be made (set cause/comment,
acknowledgment), one of these conditions must be applicable:
The variable to which they refer is visible for the Service Grid
It is a system event
Note: In order to use zenon variables in Service Grid, they must be configuredfor it, using the
Service Grid settings/Access permission property.
Required information:
Archive identification
Start time (date and time in UTC)
End time (date and time in UTC)
List of the variables that are needed for the data.
RULES
The following is applicable for queries:
If the start time is greater than or not equal to the end time, the request will fail. A
corresponding error message is given.
The response contains data for all variables that are contained in the archive and that contain
at least one data set for the given time range.
130 | 187
Settings in zenon Editor for Service Grid
131 | 187
Metadata Synchronizer
12 Metadata Synchronizer
The Metadata Synchronizer sends metadata from zenon to a zenon Analyzer metadata database.
In contrast to the Analyzer Export Wizard, the Metadata Synchronizer is implemented in zenon and
zenon Analyzer directly. This results in many benefits, most of all:
The transfer runs much more quickly.
Increased stability and tolerance of errors.
Version independence starting from zenon 8.10 and zenon Analyzer 3.30.
DATA TRANSFER
The Metadata Synchronizer transfers from zenon to zenon Analyzer:
Alarm/event classes and alarm groups
Users
Equipment models
Network:
If the Network property is active, engineering for Server 1 and Server 2.
Projects
Project contents:
Variables
Archives
Shifts
Status texts
Efficiency class models
Sankey models
Waterfall models
132 | 187
Metadata Synchronizer
Note: Objects that have been created by ZAMS or the Metadata Editor are not changed.
12.1 Configuration
To transfer data for zenon Analyzer in the Service Grid:
1. Ensure that a valid connection has been selected in the zenon Editor for the Service Hub
project property in the Network/Service Grid node.
2. Navigate to the Metadata Synchronizer node in the project properties.
3. Select a Analyzer Server.
click on the ... button to open the dialog to select an Analyzer server (on page 134).
4. To do this, select a Metadata database.
Click on the ... button to open the dialog to select and configure a database (on page 135).
5. Optional: Test the configuration by clicking on the ... button in the Test connection
property.
133 | 187
Metadata Synchronizer
Option Description
134 | 187
Metadata Synchronizer
Option Description
135 | 187
Metadata Synchronizer
12.2 Execution
The Metadata Synchronizer can be executed and stopped.
The Metadata Synchronizer is started. Metadata is collated and transferred to the configured
database.
The actions and the result are displayed in the output window.
SYNCHRONIZATION RULES
VISUAL NAME
Behavior when synchronizing the Metadata Editor and the Metadata Synchronizer:
1. A variable does not exist in the Metadata database:
Visual name in the zenon Editor is empty: The variable name is entered as the Visual
name in the Metadata database.
Visual name in the zenon Editor is configured: The Visual name in the zenon Editor is
entered as the Visual name in the Metadata database.
2. A variable already exists in the Metadata database and the visual name corresponds with the
variable name:
Visual name in the zenon Editor is empty: The variable name is entered as the Visual
name in the Metadata database.
Visual name in the zenon Editor is configured: The Visual name in the zenon Editor is
entered as the Visual name in the Metadata database.
3. A variable already exists in the Metadata database and the visual name does not correspond
with the variable name:
Visual name in the zenon Editor is empty: The visual name in the Metadata database
remains unchanged.
136 | 187
Metadata Synchronizer
Visual name in the zenon Editor is configured: The Visual name in the zenon Editor is
entered as the Visual name in the Metadata database. Visual names changed in the
Metadata Editor are overwritten.
The name in the zenon Editor is always used as the visual name for projects. When updating renamed
projects (if the Visual name property remains empty), the zenon Analyzer overwrites none of the
changes made with the Metadata Editor.
DESCRIPTIONS
If descriptions for objects applied from the Metadata Synchronizer from zenon are empty, the
descriptions present in the database remain unchanged.
This applies for:
Equipment groups
Alarm/Event class
Alarm/event groups
Users
Projects
Archives
Variables (Identification is used)
NORMALISATION
Data for efficiency classes must be normalised for use in the zenon Analyzer. Data from the zenon
Editor are never normalised. Normalisation can only be configured in the Metadata Editor.
During synchronization, the Metadata Synchronizer checks whether the efficiency class model already
exists in the Metadata database:
efficiency class model is not present: no normalisation is present. This must be configured in
the Metadata Editor.
Efficiency class model is present: The normalisation present in the Metadata database
remains unchanged.
Sankey diagrams and waterfall models are validated after checking the variables and before sending
the data.
In doing so, the following applies:
Connections in Sankey diagrams may only use variables that are contained in project,
archive, variable and compression during synchronization.
137 | 187
Metadata Synchronizer
Waterfall models may only use variables that are contained in project and variable, but not
archives during synchronization. For waterfall charts, it is sufficient if the variable is contained
in any archive.
VARIABLES
All variables are checked before synchronization to see if they have to be synchronized. A variable is
only synchronized if it meets at least one of these conditions:
The variable has an assigned reaction matrix:
In addition to the default entry, this reaction matrix contains at least one other entry that
generates the alarms (AML) or events (CEL).
The variable does not have an assigned reaction matrix:
It has at least one activated limit value that generates an alarm (AML) or an event (CEL).
The variable is contained in at least one archive.
VALIDATION
Entries from zenon are largely validated before transfer. Errors are corrected. If correction is not
possible, the respective object is excluded from synchronization. Warnings are displayed in the
respective output window - zenon Editor or Service Node Status - for each validation error.
138 | 187
Routing
Variables
Waterfall models
REQUIREMENTS
EXAMPLES
During validation, the consequences for validation errors depend on the objects.
The same name, for example:
Archives with the same name: A character sequence is added to the names in order to
ensure that the name only occurs once.
Variables or equipment groups with the same name: These are precluded by the
synchronization.
13 Routing
It is strongly recommended that the Routing active project is no longer used for a current project
configuration. This property is deactivated by default if the zenon network is reconfigured.
PROCEDURE
For routing, the packets of subordinate projects are sent to the first client project (FCP) in the branch.
The computer acts as node computer and can route packets. Thereby all network packets from the
outside use this computer. However, this setting can lead to bottlenecks and influences the possible
network topology. It is only worthwhile using it in special network setups, e.g. for slow WAN networks
or routed networks.
Example:
If, in a setup consisting of several computers, not all computers can reach the others, a
computer can act as a router.
Technical implementation:
The Server 1 and the Server 2 of the subordinate projects are amended on that of the ECP;
this is the Server 1/Server 2 active in Runtime.
139 | 187
Routing
Note: Points 2 and 4 are only carried out if routing is active on these computers.
Information
The Server and Standby need not correspond to what has been configured on
the client computers, otherwise they may change themselves depending on the
topology of the respective computer.
140 | 187
Routing
A network service connection is labeled as a client connection if it is made to the server or standby
handling the process by a client. This is recognizable in that there is a connection to port 1100 on the
target computer.
Attention
It is not guaranteed that a pure client computer added to a functional, defined
topology will work. It is possible that some projects cannot be reached by the
server due to routing on client computers in particular.
13.2 Compatibility
141 | 187
Operating authorization in the network
WITHOUT ROUTING
If the Routing active property is not active for the start project on the computer, routing does not
take place. Each project then connects directly to the corresponding computer, where it is the server.
The computer is then not a node and packets are also not routed from here.
WITH ROUTING
Exception:
A project that is a server or standby on the computer remains a server or standby, even if the
superordinate project uses another server or standby.
In this case:
Both actions are executed
The value that was entered last overwrites all previous ones
To prevent this, configure a check of who can execute which actions using operating authorizations.
Information
Operating authorizations for projects without a network can be implemented by
evaluating a binary variable for the project property Operation lock. For details,
see the Operating authorizations chapter in the Project administration and
workspace manual.
142 | 187
Operating authorization in the network
The following zenon elements support Operating authorization in the network, both for global
operating authorizations as well as for operating authorizations via equipment model:
Clock
Universal slider
Dynamic text
Bar display
Pointer instrument
Numeric value
Switch
In addition, the global operating authorization needs a corresponding operating authorization for
each write access to Runtime.
PROCEDURE
The following is applicable if the Operating authorization in the network property is engineered:
Authorization must be obtained if active operation takes place.
If operation is locked by another computer, a dialog is opened on the computer that is
locking it.
The user who is locking it can release the authorization or keep it locked.
If there is no response, the authorization is released after a pre-set timeout.
If an interruption in the network connection is recognized, then the authorization for this
computer is reset.
Information
The processes of the operating authorizations create corresponding entries in
the CEL.
143 | 187
Operating authorization in the network
Information
The system variables are only applicable for the global operating authorization.
The Operating authorization via equipment modeling is used for the visualization
in Runtime of variables linked to the equipment group directly.
You can find further information in the Equipment modeling manual in the
Engineering in the Editor chapter.
Attention
The Operating authorization via equipment modeling is not available for the
Batch Control module.
144 | 187
Operating authorization in the network
Engineer one or more functions for fetching and releasing operating authorizations in the
Runtime.
If the operating authorization is controlled by means of the equipment model, variables must be
linked to the corresponding equipment group.
You can find further information in the Equipment modeling manual in the Operating authorization
via equipment model chapter.
145 | 187
Operating authorization in the network
Approve authorization:
Approve authorization or explicit request
GET AUTHORIZATION
1. Create a new function.
2. Select the Network function in the Operating authorization in the network group.
3. The selection dialog for authorizations in the network is opened.
4. Select Get.
If this function is executed in Runtime, the authorization can be obtained from the user's own station.
APPROVE AUTHORIZATION
1. Create a new function.
2. Select the Network function in the Operating authorization in the network group.
3. The selection dialog for authorizations in the network is opened.
4. Select Approve.
Information
You can find further information in the Creating operating authorization
functions in the network (on page 154) chapter.
146 | 187
Operating authorization in the network
EXAMPLE
If there is no operating authorization, a set value should be written to a variable:
1. The set value is not sent to the hardware when the button is clicked on.
2. Instead, a dialog opens informing you that you do not have the authorization for this project.
3. Click on the Obtain the operating authorization button that has been configured.
147 | 187
Operating authorization in the network
If authorization is blocked:
A dialog to unlock the operating authorization is opened on the computer that is blocking.
Possible unlocking options by the user of the blocking computer:
Yes: Operating authorization is passed over to the other computer.
No reaction: The time defined in the Timeout for operating authorization [s] property
runs down as a countdown. At 00:00, the action defined in the Action for promt
timeout property takes place. The operating authorization is then automatically released
or denied.
148 | 187
Operating authorization in the network
The reloading is only carried out in this case if these elements are closed again.
Token no longer exists Project The group with the guid <guid> has been removed
for group guid <guid> DEBUG on reloading.
Token reserved for Project Message on the Server or Standby Server by means
group <group> for DEBUG of the issue of a token:
host <host> with id The token for the <group> group for <host>
<id> computer under ID <id> has been reserved.
Token denied for host Project Message on the server that the token query for the
<host> DEBUG <host> host has been rejected.
149 | 187
Operating authorization in the network
Token reservation lifted Project Reservation for the <group> with the <id> has been
for <group> for id DEBUG withdrawn.
<id>
Background: Reservation no longer necessary,
because the token can be issued directly.
LOG SendData NET Network message from the server to the standby
Project:<project> DEBUG server for the synchronization of the reservation.
To:<host> Modul:8
Prior:1
Class:CEqTokenRemov
eReservationMsg
LOG ReceiveData NET Network message on the Standby Server for the
Project:<project> DEBUG synchronization of the reservation.
From:<server>
To:<host> Modul:8
Prior:1
Class:CEqTokenRemov
eReservationMsg
Token reservation lifted Project The reservation has been withdrawn, because it has
due to timeout Debug existed for too long.
Standby received 1 Project Existing reservations have been transferred from the
token reservations DEBUG server to the starting Standby.
150 | 187
Operating authorization in the network
SendData Net
Project:<Projekt> To:C DEBUG
Modul:8 Prior:1 States that the server has sent a ReleaseMessage to
Class:CEqReleaseToken all clients
Msg
SendData Net On the client, the confirmation that it (the client) still
Project:MANYMODULS DEBUG exists has been sent to the server.
151 | 187
zenon functions in the network
Redundancy switch
a) in redundancy mode: Dominant (on page 155)
b) in redundancy mode: Non-dominant
c) in redundancy mode: Rated
In general, the location of execution (on page 164) must be noted when using functions in the
network. For some functions, the location of execution can be freely configured; this is fixed for
others.
Parameter Description
152 | 187
zenon functions in the network
Parameter Description
computer.
Show this dialog in the Runtime Selection of whether the dialog is shown in
Runtime.
Active: Dialog is displayed in Runtime
Settings can be edited before execution.
Inactive: Dialog is not offered in Runtime.
The settings configured in the Editor are
applied.
153 | 187
zenon functions in the network
CLOSE DIALOG
Options Description
OK Applies settings and closes the dialog.
ENGINEERING
154 | 187
zenon functions in the network
The function is available for all redundancy modes (zenon Editor Redundancy mode property):
Non-dominant
Dominant
Rated
Note: The redundancy switching function is only available if the Network active property has been
activated.
APPLICATION EXAMPLES
Attention
This function is not suitable for testing redundancy, as the behavior differs from
that of a server failure.
SWITCHING DELAY
Some zenon modules can delay redundancy switching. For example, a command that is running
delays redundancy switching.
Please note the module descriptions in the Behavior of zenon modules in the network (on page 158)
in this manual in relation to this.
155 | 187
zenon functions in the network
ENGINEERING
Hint
Configure a separate redundancy switching function for each switching
direction.
SWITCHING DIRECTION
Option Description
156 | 187
zenon functions in the network
Option Description
Instead, a possible switching for the suppression
time configured in the properties field is prevented
for the configured duration.
If the suppression time is 0, the switching is
possible again immediately.
SUPPRESSION TIME
Option Description
NAVIGATION
Option Description
157 | 187
Behavior of zenon modules in the network
Option Description
Information
You can find further information in the Switching delay, down time and
hysteresis (on page 94) chapter in this manual.
ALARMING
The alarming is administered on the Primary Server. The Primary Server answers requests for alarming
from the clients. Changes are synchronized between the Primary Server and Standby Server.
Information
If the Standby Server takes on the role of the Primary Server after the failure of
the previous Primary Server, the missing data in the AML, CEL and archives is
filled. The missing data comes from the internal buffer of the Standby Server.
This buffer is supplied with values by drivers.
In a rated network, no new CEL entries are created for regrading due to the rating.
158 | 187
Behavior of zenon modules in the network
Hint
In order to log the ratings in the CEL, create a system driver variable "[Network]
Rating Result of Server 1" or "[Network] Rating result of Server 2":
Select, in the Workspace, in the Variables node, the New variable... entry
Select SYSDRV - driver for system variables as a driver.
In the Variables of the system driver dialog, select the Network entry in the
Theme entry.
Select [Network] Rating Result of Server 1 and [Network] Rating Result of
Server 2 and add these to the list of system driver variable to be created by
clicking on the Add button.
Create a numerical reaction matrix, activate the "Treat each change of
value as new limit violation" and set the "In Chronological Event List"
option
Link this newly-created reaction matrix to the two variables.
16.2 Historian
Archiving is carried out on the Primary Server.
The Primary Server synchronizes the archive data with the Standby Server and responds to requests
from the Clients (such as calling up an Extended Trend). screen).
Information
If the Standby Server takes on the role of the Primary Server after the failure of
the previous Primary Server, the missing data in the AML, CEL and archives is
filled. The missing data comes from the internal buffer of the Standby Server.
This buffer is supplied with values by drivers.
REDUNDANCY SWITCHING
With redundancy switching, there may be a delay in switching by the zenon Historian module.
If variables from a different project are archived in an archive, the starting behavior of Runtime in the
zenon network changes. In this case, the archives are only started once all projects have been loaded.
As a result, it is ensured that all variables to be archived are detected before the archiving starts and
that the computer takes on the role of the Primary Server.
159 | 187
Behavior of zenon modules in the network
Example
zenon Runtime is started on a computer that has been configured as Server 1
or Server 2 during project setup.
Runtime starts in the role of the Standby Server.
All projects are loaded.
The archiving is compared.
These steps are carried out regardless of the current role or evaluation of the
computer.
Only once these steps have been completed is redundancy switching carried out
- if necessary.
Attention
Module Batch Control does not support redundancy. There is no
synchronization between Standby Server. When the Server breaks down, the
executed Batch recipes are not continued on the Standby! Recipes can also be
started whilst the configured Server 2 is the primary server.
ALLOCATION
The forcing of allocations can be carried out from the Server or Client.
FUNCTIONS
Functions are always carried out at the Server.
160 | 187
Behavior of zenon modules in the network
PHASES
Editing phases in the master recipe:
Edit mode: Changes a done locally at the Client.
If during the editing the recipe is saved on another computer in the network, the current
configuration is lost. An appropriate message is displayed and the editing dialog is
closed. The new data from the server are displayed.
Test mode: Changes a done at the Server.
Control recipe: Changes a done at the Server.
If a recipe is saved in the network, all Clients using this recipe are updated.
If a recipe is opened on a client, the current version on the server is always displayed, even if
it has not yet been saved there.
If a recipe is deleted on a computer, a message is displayed on all computer on which the
recipe is opened that the recipe has been deleted.
MODE
The mode (automatic, semi-automatic, manual) can be switched by the server and the client.
Jumps in the recipe and step-by-step progress of a recipe can be done from Server and
Client.
RELOAD
Changes made to the recipes on the client that have not been saved can be overwritten when
reloading.
RECIPES
Recipes can be started and controlled by the zenon server and by zenon clients.
If parameters in a recipe are changed whilst the recipe is saved on a different zenon client,
the change to the parameters is refused and not carried out.
A master recipe can be changed on the zenon client whilst it switches to test mode on the
zenon server and is sent to the zenon client. The changes that were last saved are
transferred. This means: If the zenon client saves last, the recipe is switched to editing mode
again. If the zenon server saves last, the change to the zenon clients is discarded and the
recipe is in test mode.
If a communication error occurs when deleting a recipe or an operation template, the
deletion is refused with an error message.
161 | 187
Behavior of zenon modules in the network
WEB CLIENT
With a standard web client:
The settings for grid and color can be changed
No recipes can be created or edited
The size of the editing area cannot be changed
In the toolbar, all symbols that are not permitted are deactivated; it is not possible to select
the corresponding objects.
If changes to user administration are made on a client in Runtime, the complete user list is sent from
the client to the Primary Server.
Info
This means that all computers must be in the corresponding infrastructure (such
as Active Directory domains when Active Directory users are used); it is not
sufficient that only the Primary Server is in the Active Directory domains with the
corresponding users.
16.5 Files
Lists for the files of all modules are created when data is exchanged between the Primary Server and
the Standby Server. The Primary Server monitors these lists for changes. Changes that are detected
are transferred to the Standby Server.
162 | 187
Behavior of zenon modules in the network
Attention
The Primary Server does not react to watchdogs that are sent by the Standby
Server when lists are created. Note this when stipulating the time for the network
timeout.
With Remote Transport, all files required for the project are transferred to the target system.
Standard
All files that are in the project's Runtime folder (...\RT\FILES\zenon\system\).
These files determine the appearance and behavior of the project and are transferred as
standard:
Info
Files with the following suffixes are not transferred by default:
.hot
.ho
.ret
.re
Optional
In addition, all files that are embedded into the project must be transferred. They are selected using
the Active checkbox of the Remote Transport settings. These files are in the following subfolders of
the project folder:
\zenon\custom\graphics: for graphics
\zenon\custom\lists: for language tables
\zenon\custom\media: for all media files
\zenon\custom\reports: for the reports of the Report Generator
\zenon\custom\help: for help files
\zenon\custom\additional: for additional files
\zenon\custom\rdlc: for Report Viewer files
\zenon\custom\drivers: for drivers
\straton: for zenon Logic
163 | 187
Behavior of zenon modules in the network
Recommendation: Project basis path, graphics, language tables, report tables and media
files are always transferred.
The following are transferred from the basis path by default: The files project.ini, Projekt.vba,
monitor.mon and the Projekt folder.
As a default zenon always uses relative paths and not absolute paths, so that the files can
easily be found on the target system.
For the files that can be transferred optionally, the original paths should be used (empty field
under target), so that zenon can find them on the target system.
GLOBAL PROJECT
If there is a global project in the workspace, this is automatically transferred. No additional settings
need to be made. Always all files necessary for the global project will be transported.
Attention
If the time difference between the server and the client is more than 5 seconds,
no more files are synchronized.
16.7 Functions
For functions that are used in the network:
The place of execution can be freely configured in some cases
The place of execution is stipulated in some cases
Information
Scripts combine several functions. The place of execution then depends on the
settings of the Execute script function. This setting overwrites the settings of the
individual functions.
164 | 187
Behavior of zenon modules in the network
Key:
Adjustable: Behavior can be configured
+: Yes
-: No
O: Default
If not adjustable, O identifies the place of execution:
Active computer
Primary Server
Standby Server
Client
Delete alarms - O O
Acknowledge alarms - O O
165 | 187
Behavior of zenon modules in the network
Activate/deactivate Alarm - O O
Message List, alarm/event
groups/classes
Export AML + O
Export CEL + O
Select printer + O
Switch palette + O
Open help + O
166 | 187
Behavior of zenon modules in the network
Activate/deactivate project - O
simulation
Exit Runtime + O
Language switch + O
Archive: Stop - O O
Index archive - O
Archive: Start - O O
Export archives - O
Change user + O
Logout + O
167 | 187
Behavior of zenon modules in the network
Change password - O
Screens
Close screen + O
Screen switch + O
Move focus - O
Show menu + O
Assign monitor + O
Runtime profiles + O
Close frame + O
Acknowledge short-circuit + O
168 | 187
Behavior of zenon modules in the network
Group/class/area/equipment - O
suppressed
Send a Message - O
Redundancy switch - O
Report Generator
Standard Recipe - O
Script: execute + O
169 | 187
Behavior of zenon modules in the network
Export data - O
HD administration active - O O
HD administration inactive - O O
HD administration inactive/active - O O
Driver commands - O
170 | 187
Behavior of zenon modules in the network
File operations + O
Window to foreground - O
Print screenshot + O
Start program + O
The place of execution can however be defined otherwise when this is called up via the function (on
page 164).
PCE
PCE is always executed on the server in the network. On standalone computers in standalone
projects.
171 | 187
Behavior of zenon modules in the network
The use of variables in rated networks is also taken into account. The property name of the place of
usage is stated as the element name. This is either "event variable" or "evaluations".
Information
You can find out further information in the cross-reference list manual.
EDITOR
If the file is modified in the zenon Editor, transferred to the Primary Server and reloaded, it is
automatically distributed to the other computers in the network.
RUNTIME
If the file is amended in Runtime, the changes are only saved on a temporary basis and replaced the
next time a reload takes place or when Runtime is restarted.
16.12 Recipes
The execution of recipes is different for standard recipes and the RGM.
STANDARD RECIPES
Standard recipes are managed on the Primary Server and on the Standby Server.
172 | 187
Behavior of zenon modules in the network
If a standard recipe is changed by a user in Runtime, the client requests the full recipe list from the
Primary Server. In the event of changes, the recipe list is sent back to the Primary Server.
Information
This list is not identical to the file rezepturen.cmp
If a recipe is changed and executed in Runtime on the client, it is executed with the new values. When
closing the standard recipe, you are given the option to save the changes.
RECIPEGROUP MANAGER
When the Recipegroup Manager screen is loaded on the client, a list of all recipe names is requested
by the Primary Server. As soon as a recipe is selected, it is loaded by the Primary Server.
173 | 187
Behavior of zenon modules in the network
LOG ENTRY
Entry Level Description
The sequence (mrid:<id1>, ERRO The command sequence cannot be started because
crid:<id2>)<name> could not RS there is a redundancy switch pending.
be started, because a
redundancy switch is pending.
In the event that, when switching the Primary Server, there are still command sequences running on
the "new" Standby Server, these are canceled on the Standby. This can only occur if both servers in
the network were no longer connected (due to a network failure for example) and are now connected
again. In this case, the change to the command sequence is not transferred to the Primary Server.
This means that, if there is a connection and command sequences that are now canceled on the
Standby have already been opened on the Primary Server, these continue to be considered as
running. It can only be restarted again once this command sequence has been closed on Server 1
and Server 2.
If the command sequence screen is opened on the Client when neither Server 1 nor Server 2 are
contactable, the command sequences editor on the Client is not available. The command sequence
editor remains empty. An error text is displayed in zenon Runtime instead of the command sequence
image.
174 | 187
Behavior of zenon modules in the network
ERROR DIALOG
16.14 Scripts
Scripts combine several functions. The place of execution depends on the settings of the Script:
execute function. This setting overwrites the settings of the individual functions.
175 | 187
Behavior of zenon modules in the network
If the client loses the connection to the server, the Context List is emptied on the client and the screen
elements are grayed out for editing. Linked entries in the Alarm Message List are shown with the text
<Alarm cause does not exist>.
As soon as there is a connection to the server, the Context List is shown and the screen elements are
released for editing.
DRIVER
Drivers are executed on the Primary Server and Standby Server.
176 | 187
Behavior of zenon modules in the network
Information
Driver object type internal variables are only available for the driver for internal
variables(INTERN).
For example: A color change is displayed on the client. The alarm is triggered on the server however.
The entry in the CEL is only made on the server.
177 | 187
Behavior of zenon modules in the network
This ensures that regrading only takes place if all process variables have a valid value.
Information
The regarding delay is only supported by very few drivers, such as the Siemens
AK-Treiber for example
You can find out whether a regrading delay is supported in the respective
documentation of the driver.
LOG MESSAGES
Parameters Level Description
Redundancy Switch confirmed for Debug Confirmation that the Primary Server
project <Project name> module:VAR can be switched.
sequenceNo: <SequenceNo>
Redundancy Switch delayed for project Debug Delay activated for regrading.
<Project name> module:VAR sequence
id: <SequenceNo>
Sample driver gave startup okay Debug Delay time on the driver expired.
178 | 187
Behavior of zenon modules in the network
You should therefore configure both servers for the zenon Web Server. To do this, in the
global_vars.js configuration file, change the line with the entry RUNTIMESERVER= and enter both
computers there.
In doing so, the sequence should conform to the configuration in the zenon Editor.
If the server names configured in the Editor do not correspond to the server names of global_vars.js,
the zenon Web Client will not start.
179 | 187
Behavior of zenon modules in the network
If the configuration of the server is amended for a running system in zenon, the "Runtime is busy
dialog will be shown in the zenon Web Client.
After a project synchronization, the currently-running and the actual project configuration will be
shown in a further dialog. In this case, the browser window must be closed by the user and the zenon
Web Client must be restarted.
Attention
If the project configuration of Server 1 andServer 2 is changed in the zenon
Editor, the global_vars.js file must also be amended accordingly.
You can find further information in the zenon web server manual in the
configuration of global_vars.js chapter.
16.19 Allocations
Allocations are always executed on the Primary Server.
Attention
This is relevant to local internal variables most of all. These are not executed on
the Standby Server or on Clients!
180 | 187
Network messages from the system driver
[Network] Current Primary STRING Computer name of the current Primary Server
Server If the name was acquired from the host file, it will be
the name used there. With DNS, this is the Fully
lokal Qualified Domain Name.
[Network] Current Standby STRING Computer name of the server which is currently not
Server handling processes.
If the name was acquired from the host file, this is the
lokal name entered there. With DNS, this is the Fully
Qualified Domain Name.
[Network] operating STRING Shows the name of the computer that has the
authorization: Computer that authorization for the currently loaded project.
has it
[Network] Evaluation result of UDINT In the event of changes to a variable from the
Server 1 evaluation matrix, this value is written to the
corresponding system driver variable for Server 1 and
Server 2 after calculation of the new result of the
181 | 187
Network messages from the system driver
[Network] Evaluation result of UDINT In the event of changes to a variable from the
Server 2 evaluation matrix, this value is written to the
corresponding system driver variable for Server 1 and
Server 2 after calculation of the new result of the
evaluation. The values are equal to one another
(server <-> standby), so that the current value is
always displayed on both sides. However, after the
other side has a failure, this value remains for the
attendant variable and only updates itself once it
reconnects.
[Network] Names of STRING xxx Delivers the names of the clients currently
connected clients connected to the server. The standby server, if there is
one, is also included.
[Network] Primary Server <-> BOOL A binary variable that takes the value 1 (for a short
Standby Server in data sync time) when the system performs a redundancy switch
between server and standby server.
0 = no file sync
1 = file sync active
[Network] Primary Server BOOL Indicates that the connection to the process handling
broke down server was lost.
Depending on the network position of the computer,
lokal this means:
182 | 187
Network messages from the system driver
[Network] Primary Server shut BOOL Indicates the regular stop of the process handling
down server.
The value changes to TRUE if the Primary Server was
lokal stopped properly. FALSE if there is a process handling
server in the net.
183 | 187
Network messages from the system driver
[Network] DINT Shows the type of the local computer in the network.
Standalone/Primary
Server/Standby Server/Client
-1 = Standalone
0 = Client
1 = Primary Server
2 = Standby Server
[Network] Standby Server BOOL Changes to TRUE if the connection to the currently
broke down non-process handling server is terminated
unexpectedly. If there is a connection, the value is
FALSE.
[Network] Standby Server BOOL Is TRUE on the process handling server, if the
shut down non-process handling server was stopped properly
and if there is no connection anymore. Changes to
FALSE if the non-process handling server has
registered at the process handling server.
184 | 187
Network messages from the system driver
[Network] Standby Server BOOL Is TRUE if the non-Primary Server has signed into
started the Primary Server, the file sync was carried out and
the connection between the two computers is active.
[Network] Timeout [ms] UDINT Shows the timeout in milliseconds for the zenon
network as configured in the project configuration.
[Network] Switch from BOOL A binary variable that takes on the value 1 if the server
Primary Server to Standby becomes the standby server during a redundancy
Server switch.
0= registered server is available as server in the
network.
1 = registered server is available as standby
server in the network.
[Network] Switch from BOOL A binary variable that takes on the value 1 if the
Standby Server to Primary standby server becomes the server during a
185 | 187
Visualization of the connection in zenon Runtime
This property is activated for all zenon screen elements by default. Additional project configuration
steps are thus not necessary. The network status is, if the connection is interrupted, visualized with a
blue dot in zenon Runtime.
186 | 187
Visualization of the connection in zenon Runtime
The primary server has no communication to the standby server and the Read from
Standby Server only variable property has been activated. You can find this property in
the Addressing variable properties group.
The client has no communication to both servers. In this case, communication to the
configured Server 1 AND Server 2 is interrupted.
With redundancy switching during the time of switching. This time period is very short.
Note: Data does not get lost as a result.
187 | 187