Zenon Web Server
Zenon Web Server
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
3 zenon Web Server, Web Server Pro and Web Server Pro Light ..................................................... 5
3.1 Licensing...............................................................................................................................................................6
3.2 Example of configuration with zenon Web Server:..............................................................................7
3.3 Required components and their definitions...........................................................................................9
3.3.1 Publishing service installation .......................................................................................................................... 10
3.3.2 zenon Web Server Installation ......................................................................................................................... 11
3.3.3 zenon Web Client Installation .......................................................................................................................... 20
3.4 Project configuration .................................................................................................................................... 36
3.4.1 General limitations................................................................................................................................................ 37
3.4.2 Encryption of the communication in the network. .................................................................................. 39
3.5 IPv6 ...................................................................................................................................................................... 41
3.6 Redundancy operation ................................................................................................................................ 42
3.7 HTTP Tunneling .............................................................................................................................................. 42
3.7.1 Procedure with HTTP connection ................................................................................................................... 44
3.8 Supported web browsers: ........................................................................................................................... 45
3.9 Folder for Runtime files ............................................................................................................................... 45
3.10 VSTA and VBA with zenon Web Client, zenon Web Server and zenon Web Server Pro .... 46
3.11 Monitor resolution and monitor management .................................................................................. 47
3.12 zenon Web Server - Implementaiton in the internet environment ............................................ 48
3.13 Error treatment ............................................................................................................................................... 49
3.13.1 Error 101 ................................................................................................................................................................... 49
3.13.2 ActiveX control failed to load ........................................................................................................................... 50
3.13.3 ActiveX control not installed correctly .......................................................................................................... 51
3.13.4 Exceptional zenon Web Client error in Internet Explorer 8 or higher .............................................. 51
3.13.5 HTTP error messages ........................................................................................................................................... 52
3.13.6 Init Runtime Error .................................................................................................................................................. 56
3.13.7 Keyboards in Firefox ............................................................................................................................................ 56
3.13.8 Max. clients .............................................................................................................................................................. 57
3.13.9 Behavior of the zenon Web Client in the event of a loss in connection ......................................... 57
Welcome to COPA-DATA help
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].
zenon Web Server, Web Server Pro and Web Server Pro Light constitute the complete scope of
functions of a zenon visualization. A web browser plug-in required for this can be installed
automatically the first time the web client is started.
4 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
The HTML Web Engine provides zenon visualization content in the HTML5 web standard. Selected
functionalities can be applied.
Note: When the zenon web server is restarted, all connected zenon web clients lose the connection.
The zenon Web Clients will automatically reconnect after the set timeout.
5 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
The Primary Server that zenon Web Client connects to must be the same computer on which
zenon Web Server Pro Light runs.
Note: Projects with redundancy cannot be executed with the zenon Web Server Pro Light.
Maximum 3 clients.
No support for encrypted network traffic. It does not start or it ends itself with encrypted
communication.
HTTP tunneling is not supported.
Projects must run on the same computer as the "server". Projects that run on this computer
as a client are not supported.
Multiple projects are supported if all projects run locally as a server.
Note: zenon Web Server is supplied as a 32-bit application up to zenon 7.10. From version 7.11
onwards, it has also been available as a 64-bit application.
3.1 Licensing
For licensing, follow the procedure to manage licenses in the Licensing manual.
Number of possible parallel zenon Web Client connections (Concurrent Use License)
Note: zenon Web Server runs in demo mode without a valid license.
In doing so, the following restrictions apply:
the zenon Web Server can only be started manually
The duration that the program can run for is limited to 30 minutes
The number of possible clients is limited to 2
Information
The following dynamic text elements can be used without a license for zenon
Web Server Pro am zenon Web Client:
User name
Password
Signature
6 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
For Windows CE, there is zenon Web Server Pro Light built into Runtime available - Runtime must be
started in order for zenon Web Server Pro Light to run. This is limited in functionality due to the
platform.
Information
The zenon Web Server must have a valid license.
If this is not the case, start it in demo mode.
7 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
1. PC1: Install zenon Web Client (on page 20) and the web browser (on page 45) on this
computer.
2. PC2: Install the publishing service (on page 10) and zenon Web Server (on page 11) on this
computer.
Note: The term Publishing Service in this manual refers to the IIS Publishing Service. If the IIS
Publishing Service is installed on the computer, the home page for the zenon Web Client is
configured automatically.
You can also use alternative publishing services or entirely do without the publishing service.
The configurations needed in this case can be found in the Publishing Service (on page 10)
chapter.
3. PC3: The following must exist on this computer:
8 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Note: When using zenon Web Server Pro Light, this must be installed on the computer on which
Runtime is running. This is PC3 in our example.
The Runtime project on PC3 requires the following basic settings (on page 36) in the project
properties for Network in the zenon Editor:
Network active: Activate by clicking the checkbox.
Server 1: Enter the name of the computer with the Runtime.
DISPLAY RUNTIME
Primary Server (on page 7) The server on which Runtime, the Editor and the project is
running and to which a client connects via the zenon Web
Server.
zenon Web Server (on page 5) Forwards data packets from the Primary Server via the
zenon Web Server to the zenon Web Client. Also handles
licensing. Cannot write values.
zenon Web Server Pro (on page Allows active user actions with zenon Supervisor.
5) Starting and operation with Windows CE is subject to
certain limitations.
zenon Web Server Pro Light (on Allows active user actions with zenon Operator and zenon
page 5) Supervisor.
Publishing service (on page 10) For publishing documents, such as HTML pages, via the
9 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Description
Components
HTTP protocol.
zenon Web Client (on page 20) The zenon Web Client is a program that runs in a standard
web browser and displays a project. It connects to a
Primary Server using a zenon Web Server. It shows the
project of the Primary Server, just as a normal client would
do. Only difference: With the zenon Web Client the project
is displayed in a browser.
Web browser (on page 45) Web browsers are special computer programs for the
display of web sites in the World Wide Web or the general
display of documents and data. Source:
http://de.wikipedia.org/wiki/Webbrowser
Administrator rights are required for installation or configuration of zenon Web Server, zenon Web
Client and the publishing service.
Note: No administrator rights are required for normal operation. The normal user rights are
sufficient.
10 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
If the services have been activated successfully, you will find the following folder in the root folder:
\inetpub\wwwroot
Info
If the zenon Web Server was already installed before the publishing service, or if
a different publishing service is used, the folder created during installation of the
zenon Web Server C:\Program Files (x86) \COPA-DATA\zenonWebserver\zenon
must be moved manually to C:\inetpub\wwwroot or to the root folder of the
alternative publishing service.
Note: The publishing service provides easier access to the configuration files for the web browser.
However if the configuration files are accessible locally or in the network, the publishing service
need not be used at all.
11 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Hint: If the zenon Web Server is to be contactable from outside, it is strongly recommended that a
VPN connection is used and the zenon Web Server and the computer with the publishing service is
placed in a DMZ.
It is recommended that the zenon Web Server is installed on the same computer on which you have
activated and installed the publishing service.
To do this:
1. Start the installation from the installation medium.
2. Follow the instructions given to you by the installation wizard.
3. Restart the computer
The zenon folder is automatically created in the wwwroot folder of the IIS publishing service. This
folder contains, among other things, some important configuration files that must be installed. For
example, global_vars.js. is an important file You must amend some settings in this file. Read more
about this in the zenon Web Server configuration (on page 12) chapter.
12 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Note: In normal operation, zenon Web Server is automatically started with the computer as a
Windows service. If it has been stopped or if you have been assigned a new license via the License
Manager, it must be restarted manually. If there is no valid license, the Web Server is not started as a
service but in demo mode via the dialog.
13 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Option Description
Possible versions:
zenon Web Server
zenon Web Server Pro
zenon Web Server Pro Light
14 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Option Description
license
not installed:
Web Server not registered as a service or
installation error
Max. number of clients: Maximum number of clients that are permitted to connect
to the Web Server. The number is defined by the license.
Two clients are licensed for 30 minutes in demo mode.
Default:0
Default: inactive
License ínformation Shows information about the license currently being used.
If used: demo license / education & training license
Licensed product versions
Serial number
Expiry time / duration of use
License errors Shows information about errors for the licenses found.
15 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
There is no start dialog for Windows CE. zenon Web Server is already integrated into Runtime.
To start zenon Web Server under Windows CE, the following must be the case:
The Network active property must be activated in the project,
Runtime must have been started,
zenon Web Server must be licensed
Information
No publishing service is installed with Runtime and the integrated Web Server.
However any desired publishing service can be used on a Windows computer
with the corresponding configuration files.
Amend the content of this file in a text editor. You can also find notes on the required content in the
comments text.
CONTENT OF GLOBAL_VARS.JS:
// Please enter here the string name of your project and make sure that it is identical with the project
name in the Editor.
// Please enter here the computer name, on which the zenon Runtime is installed and on which it is
actively running
// Please enter here the computer name, on which you have installed the zenon Web Server
16 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
// Please enter here an optional initial function to be executed when the Web Client connects to its
server. Defaultvalue = "Init"
// Optional: Please enable the zoom feature (This step will stretch the project resolution to the size of
the Web Client control) OFF = "0" / ON = "1"
// Optional: Please enable HTTP tunnelling feature: 0 = inactive (available on Web Client version 7.00
and higher)
// Optional: Set the window style for stand alone start of the web client (not used in embedded
mode)
// posible values:
//Optional: Folder for the runtime files (NO absolute path; folder. Name will be inserted between
"[WEB_PROJECT_PATH] from zenon6.ini (Default = %temp%\zenWebCli)" and project name)
function GetStartUrl(){
17 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
PARAMETER
Parameter Description
RUNTIMESERVER = Denotes the target computer on which Runtime for the project runs.
Single-user project:
var RUNTIMESERVER = "SERVERNAME";
Network project (on page 30):
var RUNTIMESERVER = "Runtime server; Runtime server2”
Note: Runtime server = Server 1; Runtime server2 = Server
2;
The name must correspond with the server name in the project
configuration.
Note: The IP address must not be used here. There must be naming
resolution between the computer with the zenon Web Server and the
Primary Server in the network in both directions. A ping to the
computer name must work in both directions.
RuntimeFilesFolder Subpath. Is inserted between the path and the project name when
the project file path is set up. The path is read from the zenon6.ini file
or set to %temp%\zenWebCli by default.
WEBSERVER= Denotes the target computer on which zenon Web Server was
installed.
18 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Parameter Description
ZOOM= Defines if the project can be zoomed in or out of in the browser view.
Default:0: OFF
For example:
19 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Parameter Description
display problems.
for example:
var VERSION = "7,60,0,0";
This must always be the same or higher than the version of zenon
Runtime.
var HTTP= Defines type of communication and allows communication via HTTP.
If this property is deactivated, communication is via TCP/IP.
Default:0: inactive
Note: You can find further information in the HTTP tunneling (on
page 42) chapter in this manual.
20 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Note: zenon Web Client primarily consists of an ActiveX control. This provides the information in a
browser exactly as in a normal Runtime client. The connection to the Runtime server is implemented
with zenon Web Server. zenon Web Client logs errors in the local Diagnosis Server. The Diagnosis
Server is also installed when zenon Web Client is installed.
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.
With the zenon Web Client, you access different versions of Runtime, along the lines of Runtime
compatibility. The version number of the zenon Web Client must be the same or higher than the
Runtime version.
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.
21 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
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.
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.
Information
It is best to always use the zenon Web Client with the highest Service Pack
number within a version.
22 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
REQUIREMENTS
Requirements for the zenon Web Client Starter:
Installed zenon Web Client Starter: Is also installed during the installation of the zenon Web
Client.
Any desired browser
5. zenon Web Client Starter shows zenon Web Client in accordance with the link arguments
3. zenon Web Client Startershows zenon Web Client according to the arguments sent.
SYNTAX
The following are not permitted for project name, computer name (Runtime server, web server,
Runtime standby, web standby) and name of the init function:
Character Is used for
23 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
The characters period (.), hyphen (-) and underscore (_) are permitted if they are not at the start of a
name.
ARGUMENTS
Argument Description
RegSrv Register zenon Web Client Starter for the ScadaWebClient web protocol.
Conditions:
Must not have a value.
Can only be combined with Silent.
Is only permitted for CLI calls.
UnregSrv Deregister zenon Web Client Starter for the ScadaWebClient protocol.
Conditions:
Must not have a value.
Can only be combined with Silent.
Is only permitted for CLI calls.
24 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Argument Description
Default:TRUE
RuntimeFilesFolder Subpath. Is inserted between the path and the project name when the
project file path is set up. The path is read from the zenon6.ini file or set
to %temp%\zenWebCli by default.
Default: 0
Default: 0
InitFunction Name of function that is to be executed when the zenon Web Client is
executed. Is only used to start the zenon Web Client.
25 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Argument Description
Zoom Flag of whether the size of the zenon Web Client is amended to the
available space. Is only used to start the zenon Web Client.
Default:FALSE
UseHTTP Flag of whether the zenon Web Client uses HTTP tunneling.
Is only used to start the zenon Web Client.
Default: FALSE
WindowStyle Style of the window in which the zenon Web Client is displayed. Is only
used to start the zenon Web Client.
Corresponds to the possible values of the Runtime title project property
in the zenon Editor.
Possible values:
Default: Corresponds to Title with system, min. and max. button.
26 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Argument Description
NotClosable: Corresponds to Title with min. and max. button.
NotResizable: Corresponds to Title with system menu.
TitleOnly: Corresponds to Title without buttons.
FullScreen: Corresponds to No title (complete screen).
If the version is lower than the one set here, an error message is shown.
Syntax for values: [32-bit unsigned int].[32-bit unsigned int].[32-bit
unsigned int].[32-bit unsigned int]
Instead of a period (.), a comma (,) can also be used.
EXAMPLES
27 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Registration without message window and with diversion into a file (overwriting):
zenWebClientStarter.exe –RegSrv –Slient > C:\Temp\Log.txt
Deregistration without message window and with diversion into a file (appended):
zenWebClientStarter.exe –UnregSrv –Slient >> C:\Temp\Log.txt
zenon Web Client Starts with message window with init function and HTTP tunneling:
zenWebClientStarter.exe –Project THE_PROJECT –Server RuntimeServer.Domain
–WebServer WebServer.Domain –InitFunction TheFunction –UseHTTP 1
zenon Web Client Starts with message window in full-screen mode:
zenWebClientStarter.exe –Project THE_PROJECT –Server RuntimeServer.Domain
–WebServer WebServer.Domain –WindowStyle FullScreen
URL SYNTAX
Quote marks at the start and end are removed by the zenon Web Client Starter.
Examples:
Without quote marks, without protocol, separator unescaped:
Project=THE_PROJECT&Server=RuntimeServer.Domain&WebServer=WebServer.Domain&
WindowStyle=FullScreen
Without quote marks, without protocol, separator escaped:
Project=THE_PROJECT&Server=RuntimeServer.Domain&WebServer=WebServer
.Domain&InitFunction=TheFunction&UseHTTP=1
Without quote marks, with protocol, separator escaped:
ScadaWebClient:Project=THE_PROJECT&Server=RuntimeServer.Domain&WebSe
rver=WebServer.Domain&Zoom=1
With quote marks, with protocol, separator escaped:
28 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
„ScadaWebClient:Project=THE_PROJECT&Server=RuntimeServer.Domain&WebS
erver=WebServer.Domain&ScrollV=50&ScrollH=50"
29 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
3. Select the desired language in the Language for Editor and Runtime drop-down list.
Information
You can get further information for the language setting in the Startup Tool in
the Tools manual in the General chapter.
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.
You can find details on configuration in the configuration of global_vars.js (on page 16) chapter.
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.
30 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
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 (on page 4) manual in
the configuration of global_vars.js (on page 16) chapter.
Requirements:
JavaScript must be activated in the browser.
The zenon Web Client must also be installed locally on the computer on which the web
browser is executed.
Recommendation: Switch, before the project entry page (init.htm) (on page 32), to a start page
(index.htm) (on page 33), that allows the download of the zenon Web Client. This start page contains
hyperlinks:
31 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
3.3.3.5.1 Example of project start page init.htm for TCP and HTTP
On the project entry page (on page 33), a browser check verifies which browser the zenon Web
Client uses. Depending on the result, the zenon Web Client is started or an error message is given.
The start page (on page 33) calls up three scripts in order to check the browser used and either to
establish a connection to Runtime or to issue an error message:
global_vars.js (on page 16): Defines values of transfer parameters to start the zenon Web
Client
browsercheck.js (on page 34): Checks the version of the browser
initcode.js (on page 35): Defines functions that are used to start the zenon Web Client
Note: The settings only differ for connections using TCP and HTTP in terms of the UseHTTP entry.
32 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
3.3.3.6 index.htm
The page index.htm is the start page for our example. It starts by default in English and can be
switched to other languages directly on the page on the top right.
3.3.3.7 init.htm
The init.htm file checks the browser being used and then either starts the project or gives an error
message.
33 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
3. If it is a supported browser, the appropriate function to include the zenon Web Client from
initcode.js (on page 35) is executed.
EXAMPLE:
<html>
<head>
<title></title>
</head>
<BODY scroll="no" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" BGCOLOR=#FFFFFF>
<script language="javascript" type="text/javascript" src="global_vars.js"></script>
<script language="javascript" type="text/javascript" src="browsercheck.js"></script>
<script language="javascript" type="text/javascript" src="initcode.js"></script>
<script language="JavaScript" type="text/javascript">
switch(browsercheck()) {
case "IEXPLORER":
runIexplorer(PROJECTNAME,RUNTIMESERVER,WEBSERVER,INITFUNCTION,ZOOM,VERSION);
break;
case "NPAPI":
runNPAPI(PROJECTNAME,RUNTIMESERVER,WEBSERVER,INITFUNCTION,ZOOM,VERSION);
break;
case "UNSUPPORTED_BROWSER":
alert(navigator.appName + ' : ' + navigator.appVersion + ' is not supported!');
break;
default:
alert("invalid parameter");
break;
}
</script>
</html>
3.3.3.8 browsercheck.js
This JavaScript finds out which browser the zenon Web Client wants to start and gives the result back
to init.htm (on page 33).
function browsercheck(){
var UserAgent = navigator.userAgent;
34 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
if(fWin32)
{
//Win32-Browser
if(fMSIE)
{
//Internet Explorer --> use ActiveX-Control
return "IEXPLORER";
}
}
//Non-Win32-Browser or not supported Browser (Opera, ...)
return "UNSUPPORTED_BROWSER";
}
3.3.3.9 initcode.js
This JavaScript requires the <object> entry to start the zenon web client.
Script:
function runIexplorer(PROJECTNAME,RUNTIMESERVER,WEBSERVER,INITFUNCTION,ZOOM,VERSION,HTTP) {
document.write ('<object');
document.write (' id="CD_IClient1"');
document.write (' classid="clsid:2A3BC66B-03D7-11D4-991A-080009ABB492"');
document.write (' codebase="npzenWebCli.dll#version=' +VERSION+ '"');
document.write (' width=100%');
document.write (' height=100%');
document.write ('>');
document.write (' <PARAM NAME="Project" VALUE="' +PROJECTNAME+ '">');
document.write (' <PARAM NAME="Server" VALUE="' +RUNTIMESERVER+ '">');
document.write (' <PARAM NAME="WebServer" VALUE="' +WEBSERVER+ '">');
document.write (' <PARAM NAME="Load" VALUE="-1">');
document.write (' <PARAM NAME="ScrollV" VALUE="0">');
document.write (' <PARAM NAME="Scrollh" VALUE="0">');
document.write (' <PARAM NAME="InitFunction" VALUE="' +INITFUNCTION+ '">');
document.write (' <PARAM NAME="Zoom" VALUE="' +ZOOM+ '">');
document.write (' <PARAM NAME="UseHTTP" VALUE="' +HTTP + '">');
document.write (' <PARAM NAME="RuntimeFilesFolder" VALUE="' +RUNTIMEFILESFOLDER+ '">');
35 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
document.write ('</object>');
}
Attention
The configuration for Server 1 and Server 2 must correspond in the project and
zenon Web Server. The information must not overlap under any circumstances.
That means: Server 1 in the project must not correspond to Server 2 on the
zenon web server and vice versa.
36 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Attention
DEP must be turned off completely as the browser process cannot be excepted
explicitly. This is not recommended due to security issues.
To deactivate DEP:
run the command line with administrative rights
execute the following command:
bcdedit.exe/set {current} nx AlwaysOff
37 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
ADAM/ADLDS: The zenon Web Client needs a physical connection to the zenon Web Server
(plus an open port) and to the ADAM/ADLDS server
Screens:
The screen of type Archive revision is not available.
Print:
Before the first printing on the zenon Web Client the function Select printer has to be
executed. Here the printers for the client can be defined. These settings are saved in the
zenon6.ini so that this procedure does not have to be executed again for each new print
job.
IPA:
The Industrial Performance Analyzer (IPA) module is only available on zenon Web Clients in
an intranet, because no connection can be made to the database via the internet. If there is
an intranet connection, the database authorizations have to be set accordingly, so that a
remote computer can access the database as a zenon Web Client.
Menus
On the zenon Web Client Main menus are not displayed.
Monitor administration:
The Monitor Administration works only with limited functionality. The zenon Web Client can
only be operated with one monitor.
PFS:
The Production & Facility Scheduler (PFS) is only available in versions 6.01 or higher.
Status information:
The status information, which is displayed by pressing the right mouse button, is not
available.
Process Recorder:
Replay is not available.
Project simulation:
Project simulation is not supported.
Keyboard combinations:
The key combinations on buttons like e.g. F3 are not available.
VBA:
VBA is only available if VBA has been installed on the zenon Web Client manually. For
detailed information, please contact zenon Support.
Note: Message boxes of VBA macros are not shown in the zenon Web Client if Internet
Explorer is used as a web browser.
38 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
VSTA: zenon Web Server and zenon Web Client support different versions of VSTA.
In general, zenon Web Client supports VSTA, with the exception of:
Debugging
Display VSTA editor function
Compiling
For details, see the VSTA with zenon Web Client, zenon Web Server and zenon Web Server
Pro (on page 46) chapters.
It is not possible to start and stop a zenon Logic Runtime in a project that is operated from
the zenon Web Client.
The zenon Web Server for CE is licensed via the Remote Licensing.
39 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Information
You can get further information for the network configuration in the Startup
Tool in the Tools manual in the Network Configuration chapter.
40 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
3.5 IPv6
As of zenon version 7.00 you can use IPv6 in the network.
Information
With IPv6, more users and devices can communicate via the Internet in that they
use greater numbers to create IP addresses. With IPv4, each IP address is
32- bits long, as a result of which 4.3 billion unique addresses can be formed.
Example for an IPv4 address:
172.16.254.1
For comparison: IPv6 addresses are 128- bits long, which allows formation of
approximately 340 sextillion (3,4e+38) unique IP addresses. Example of an IPv6
address:
2001:db8:ffff:1:201:02ff:fe03:0405
However IPv6 offers other advantages for network traffic. In most cases,
computers and programs recognize IPv6-compatible networks and use the
corresponding advantages without the user having to do anything more. IPv6
also frees other network problems that can occur due to the limited addressing
area of IPv4. Example: IPv6 reduces the necessity of network address translations
(NAT), a service that allows several clients to use a joint IP address, but which
does not always work reliably.
The zenon network allows the choice of using IPv6 or IPv4. Dual operation is not possible. The setting
is made via:
Network configuration in the Startup Tool
or
in zenon6.ini
The following components are not affected by the setting; they always use IPv4:
Driver communication with the PLCs
Protocol communication in the Process Gateway plug-ins
Workbench and Runtime communication in zenon Logic
41 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
DIAGNOSIS VIEWER
The Diagnosis Server also works with Diagnosis Clients which addresses via IPv6 addresses. For this
the format of the log file has been adapted. The Diagnosis Viewer only reads the new format of the
log files. If files from older zenon versions are opened (or vice versa), the IP address of the Diagnosis
Client is not displayed correctly.
Attention
An automatic switch back - as with the Primary Server - is not carried out. zenon
Web Client remains connected to the Standby zenon Web Server until:
zenon Web Client is restarted or
The Standby zenon Web Server is stopped or fails
Then the zenon Web Client tries to connect with the first zenon Web Server
defined as standard.
If only one zenon web server is used, it is strongly recommended that this is not operated on the
Primary Server or the standby server. If this computer fails, the zenon web server will also fail.
42 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Note: Each change to the port number in zenon6.ini on the computer on which the zenon Web
Server is running must also be created accordingly on all computers configured with zenon Web
Client. Furthermore, the HTTP port may need to be configured manually on the computer with the
zenon Web Server in the Windows Firewall, as an exceptional port for incoming connections.
PROCEDURE:
The zenon Web Client sends its messages for the Runtime server to the zenon Web Server via HTTP
POST. This forwards it to the assigned connection to the Runtime server via TCP. The Runtime server
sends its messages for the zenon Web Client via TCP to the zenon Web Server, which buffers them.
The buffer of a connection is emptied by the zenon Web Client via a HTTP GET requests. If no
message is available for a connection, the client waits for a configurable time (POLLING_INTERVALL
entry in zenon6.ini with a set default of 2 seconds).
For details, see the Procedure for HTTP connection (on page 44) chapter.
ERROR MESSAGES:
If the HTTP connection is active, network-specific messages are sometimes shown in the Diagnosis
Viewer instead of HTTP-specific messages. For example, if a connection is made or disconnected or in
the event of an HTTP error.
43 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
1. The user starts the browser and opens the project entry page (on page 33).
2. The project entry page induces the browser to start the zenon Web Client with the
pre-defined HTTP tunneling configuration.
3. The zenon Web Client makes 3 HTTP connections (control, data and file synchronization
connection) to the zenon Web Server:
a) A connection ID is requested by the zenon Web Client.
b) The zenon Web Server sends a free connection ID if one is available. The ID sent is
entered into the list of connection IDs issued. This happens so that no ID can be issued
twice and to transfer the HTTP connection to a TCP connection.
c) The network init packet is sent to the zenon Web Server via the HTTP connection.
d) The zenon Web Server checks to evaluate if this zenon Web Client is already in the list of
active clients. If the client is new, a check is made to see if the maximum number of
clients has already been reached. If the client connection can be accepted, a TCP
connection is made in Runtime and the Init packet is forwarded. The accepted client
connection and the server connection that has been made are mapped to each other
until the connection has ended: Data from the client connection is forwarded via the
server connection and vice versa.
44 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
4. Data exchange:
a) The zenon Web Server works as a protocol translator between TCP and HTTP and
buffers the messages.
b) Data from Runtime for the zenon Web Client is buffered on the server. The zenon Web
Client calls this up by means of GET requests.
c) Data from the zenon Web Client for Runtime is sent from the zenon Web Client by
means of a POST request and forwarded to Runtime by the zenon Web Server.
5. If the zenon Web Client is ended in the browser (the browser is closed or the project entry
page is left), all connections are disconnected by the zenon Web Client.
a) The zenon Web Client sends a network-end package to the zenon Web Server. The
zenon Web Server forwards this to the Runtime, ends the connection and clears the
occupied resources (working memory, ports, connection ID …).
b) When the client is cleaning up, an additional HTTP end packet is sent to the zenon Web
Server, to ensure that the connection ID was removed from the list.
Attention: The 64-bit version of Internet Explorer 11 does not support ActiveX and therefore cannot
be used as a zenon Web Client.
%Temp% signifies the temporary file folder under Windows. This is saved individually for each user
and can be changed under System control-> System -> Advanced system settings-> Environment
variables.
Note: The %Temp% folder is user-dependent. Each Windows user thus loads the Runtime files from
the Primary computer.
Attention
When using Microsoft Internet Explorer in secure mode the Runtime files are
saved in the %Temp%\Low folder.
You can define any desired folder as the storage location for the Runtime files with the zenon6.ini
entry:
45 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
3.10 VSTA and VBA with zenon Web Client, zenon Web Server
and zenon Web Server Pro
Note: VBA is supported by zenon in zenon Web Server and zenon Web Server Pro. However for
security reasons, we recommend that you switch to VSTA. You can find out further information on
VBA in the macro list.
VSTA is supported by zenon with different versions of zenon Web Server und zenon Web Server Pro
(on page 5).
Function zenon Web Client with zenon Web zenon Web Client with
Server Standard zenon Web Server Pro
VSTA events + +
INSTALLATION:
For the use of VSTA
The following applications must be present on the system or installed manually:
Microsoft Visual Studio Tools for Applications 2.0 (VSTA 2.0)
Microsoft .NET Framework 3.5
46 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Both programs are on the installation medium for zenon Web Server or zenon 8.20.
VSTAIntegration.dll must be in the zenon program folder.
This is installed automatically when zenon is installed.
INI ENTRIES:
The following entries must be set in zenon6.ini:
[VSTA]
ON=1
CSHARP=1
[VBA]
EIN=1
EVENT=1
Important for configuration: The automatic adaptation of the resolution to the client cannot be
used for web use. For this reason, the screen size must be set accordingly during configuration.
zenon Web Client uses the screen size set for the project as standard: Project properties ->
Graphical design -> Monitor administration -> Click on the ... button -> Tab General - Screen
resolution.
The resolution can be scaled using the zenon Web Client setting. For details, see Configuration of the
example page chapter.
47 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
With the help of the zoom property, zenon Web Client can be zoomed to the size of an ActiveX
element.
For example:
Monitor resolution on zenon Web Client PC: 1024x768 pixel
Screen size in monitor administration: 800 x 600.
Information
If you want to use the multi-project administration on the zenon Web Client, the
screen size has to be the same for all projects!
On a multi-monitor system, the process screens are opened as defined in the profile, on different real
monitors. When using a zenon Web Client, these are then outside of the visible area, but can be
reached by scrolling.
Recommendation: Configure the monitor profile in such a way that all monitors are on Main
monitor mapped; you then have access to all monitors.
Information
The standard profile is always loaded by default on the zenon Web Client.
However, you can stipulate a different monitor profile using the
SCREENPROFILE= entry in zenon6.ini.
48 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Port 1102 on the firewall must be open for incoming packages, so that a zenon Web
Client can access a zenon Web Server and therefore access a Primary Server.
NAT (Network Address Transformation) must run on the gateway station. NAT
transforms the internal LAN address to the address of the gateway station. If, for
example, somebody surfs inside the LAN, it always looks as if the gateway station were
sending the requests from outside.
Static IP address for zenon Web Server:
The firewall on the gateway station has to be configured in such a way that all incoming
packages for port 1102 are automatically sent to the station with the zenon Web Server.
That means: This station must have a static IP address.
The project entry page has to be adapted so that zenon Web Client knows which station to
access in the internet: The amendment is made in global_vars.js or, for older versions, in
project_A_X.html (X stands for the language version, such as G for German) :
For Web Server VALUE= WEB-SERVERNAME, the computer name of the gateway station
(the station visible from the Internet) and not the computer name of the real zenon Web
Server has to be entered. The real zenon Web Server is not visible from the internet. The
gateway station then automatically forwards the requests from the zenon Web Client to
port 1102, then automatically to the real zenon Web Server.
49 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Error message:
Error 101
Project XXX has been edited with version XXX and cannot be opened here
Solution:
a) Uninstall all zenon Web Clients.
b) Restart the computer
c) Reinstall the zenon Web Client
If the browser displays an Init Runtime Error, there are several possible reasons for that:
The most probable cause: The browser's security settings prevent the correct execution of the ActiveX
control.
50 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
If the browser only displays an X instead of Runtime after calling up the project start page, then
the ActiveX Control for the zenon Web Client has not been installed correctly
and/or
The wrong version (on page 21) of zenon Web Client is installed
ERROR
The zenon Web Client is ended with an exceptional error if VSTA or VBA is executed in the project in
the project.
REASON
Microsoft Internet Explorer has a setting for memory protection from version 8. If this is active,
executing VBA leads to an exceptional error and Internet Explorer ends. VSTA always activates VBA
too.
SOLUTION
Deactivate the memory protection in Internet Explorer under:
51 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
NetSrv Error Do Send HTTP ERRORS The HTTP Web Server has responded to an HTTP
failed! POST request with an error.
HTTP-Status: [HTTP-Status]
NetSrv Error Do Send HTTP ERRORS The HTTP POST request failed (e.g. timeout).
failed!
NetSrv Error Do Send HTTP ERRORS An error occurred when saving a message in the
Server failed! Data buffer to the HTTP Web Server. The error occurred in
Management Class Error! the data management class.
NetSrv Error Do Send HTTP ERRORS An error occurred when saving a message in the
Server failed! buffer to the HTTP Web Server. The error occurred in
the buffer list.
NetSrv Error Do Recv HTTP ERRORS The HTTP Web Server has responded to an HTTP GET
failed! HTTP-Status: request with an error.
[HTTP-Status]
NetSrv Error Do Recv HTTP ERRORS The HTTP Get request failed (e.g. timeout).
failed!
NetSrv Error Do Recv HTTP ERRORS An error occurred when reading a message in the
Server failed! Data buffer to the HTTP Web Server. The error occurred in
Management Class Error! the data management class.
NetSrv Error Do Recv HTTP ERRORS The packet read from the buffer list is too large for
Server failed! Buffer Too Small! the data buffer.
NetSrv Error Do Recv HTTP ERRORS An error occurred when copying data from the buffer
Server failed! Error While list.
Copying Data Into Buffer!
Error Out Of Memory While ERRORS Creation of a memory area was not possible when
Adding Data to HTTP GET compiling an HTTP response at the HTTP Web Server.
Response
Error On Adding Data to HTTP ERRORS An error occurred when copying data from the buffer
GET Response list in the HTTP response.
HTTP Send Get Response ERRORS Sending of a response to an HTTP GET request has
52 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Error Out Of Memory While ERRORS Creation of a memory area was not possible when
Receiving Data from HTTP reading off an HTTP POST response at the HTTP Web
POST Server.
Error on Receiving Data from ERRORS Reading off data from the HTTP-POST request has
HTTP POST [Status] failed. The status code is a system error code (can be
looked up in the MSDN library).
Error Data Block Of HTTP Post ERRORS The data from the request received exceeds the
Request Too Large defined maximum packet size.
HTTP Send Post Response ERRORS Sending of a response to an HTTP POST request has
Failed: [Status] failed. The status code is a system error code (can be
looked up in the MSDN library).
Error Out Of Memory While ERRORS Creation of a memory area was not possible when
Parsing HTTP Request forwarding an HTTP response to the relevant thread.
Memory Error on Creating ERRORS Creation of a memory area when creating the HTTP
Receive Buffer receipt buffer was not possible.
Error on Creating HTTP ERRORS Creation of events for the receipt of HTTP requests
Request Event has failed.
Error While Waiting For HTTP ERRORS An error occurred when waiting for an HTTP request.
Request: [Status] --> Exiting The status code is a system error code (can be looked
Listening Thread up in the MSDN library).
Unexpected Result While ERRORS Waiting for an HTTP request provides an unexpected
Waiting For HTTP Request: result. The status code is a system error code (can be
[Status] --> Exiting Listening looked up in the MSDN library).
Thread
HTTP-Request Without ID ERRORS The connection ID was not present in the HTTP
Received request.
Error: Closing HTTP Connection ERRORS An attempt was made to close a connection that does
ID [ID] Could Not Be Resolved not exist or was already closed. This error is less
critical because the request to delete the connection
ID when clearing connection resources can be made
more than once after it has ended.
53 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
HTTP-Request With ERRORS The connection ID in the HTTP request does not have
Incompatible ID Format the expected format.
Received
Could Not Assign New HTTP ID ERRORS A new connection could not be accepted because
Because The Map Is Full there is no more space in the connection list. The list
contains space for over 4.2 billion connections, so this
message should therefore never appear.
Error During HTTP-Accept ERRORS An error occurred when accepting the HTTP
connection.
Error On Sending HTTP ID: ERRORS The sending of an HTTP response with the connection
[Status] ID for the new client connection has failed. The status
code is a system error code (can be looked up in the
MSDN library).
Error: HTTP Connection ID [ID] ERRORS The connection ID of the HTTP request cannot be
Could Not Be Resolved resolved.
Error: HTTP Request Could Not ERRORS The HTTP request could not be forwarded to the
Be Assigned To The Socket relevant thread.
Unsupported HTTP-Request ERRORS An unsupported HTTP request was received. GET and
Received POST requests are supported.
Error While Receiving HTTP ERRORS An error occurred when receiving an HTTP request.
Request: [Status] --> Exiting
Listening Thread
Removing HTTP Connection ID DEBUG The connection was closed and the ID was removed
[ID] From The Map! from the list.
Removing Non-Active HTTP DEBUG The connection ID was removed from the list because
Connection ID [ID] From The the connection is inactive. A connection is then active
Map! if no HTTP requests have been received for 5 minutes.
Such a connection should really already be removed
54 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Error While Waiting for HTTP ERRORS The thread to check the connection ID established an
Connection Map Check error when waiting for the next cycle and is ended.
[Status]! The status code is a system error code (can be looked
up in the MSDN library).
NetSrv Accept HTTP Client ERRORS The thread to respond to HTTP requests could not be
Socket Error On Starting HTTP started.
Reply Thread
NetSrv Info Accept HTTP Client DEBUG The HTTP connection has been accepted successfully.
IP:[IP-Adressr]:[Port] Ok
NetSrv Memory Error Do Recv ERRORS An error has occurred because too little memory is
HTTP failed! available when receiving data via HTTP tunneling.
Connect: HTTP Error ERRORS The HTTP Web Server has responded to a connection
ID request with an error.
Connect: ID-Data did not have ERRORS The connection ID provided by the HTTP Web Server
the expected Format does not have the expected format.
Connect: Server denied HTTP ID ERRORS The HTTP Web Server has rejected the granting of a
connection ID.
HttpCreateHttpHandle Failed ERRORS The HTTP request list could not be created
HttpAddUrl Failed ERRORS The server could not enter list mode
55 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
If the browser displays an Init Runtime Error, there are several possible reasons for that:
Runtime is not active on Runtime Server
SERVER NAME in Globalvars.js (on page 16) is spelled or defined incorrectly (always use
capital letters).
PROJECT NAME in Globalvars.js (on page 16) is spelled or defined incorrectly (always use
capital letters).
The naming resolution between the zenon Web Server and the Primary Server is not present
in the network.
The zenon Web Server is not started.
You may find notes on the causes of errors in the zenNetErr.txt file. This logs network information.
56 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
Attention
Individually adapted screens of type Keyboard may under certain circumstances
not work properly with the Mozilla Firefox browser.
Reason: Mozilla Firefox loads new windows in the background without putting
the focus on them. Depending on the project configuration,
individually-adapted keyboard screens are closed as soon as they are no longer
in focus.
More clients than are licensed (on page 6) are attempting to connect to the zenon Web Server.
The connection configurations are gone through in this sequence (from the start again once the end
has been reached):
57 | 58
zenon Web Server, Web Server Pro and Web Server Pro Light
If a Standby zenon Web Server has been configured but cannot be contacted, the following happens
if the Primary Server comes back:
1. The zenon Web Client is currently in connection configuration 2 and loses the connection
because the Primary Server takes over the process management again.
2. The zenon Web Client attempts to connect with connection configuration 3 again, but times
out because the Standby zenon Web Server cannot be reached.
3. The zenon Web Client attempts to connect with connection configuration 4 again, but times
out because the Standby zenon Web Server cannot be reached.
4. The zenon Web Client attempts to connect again with connection configuration 1, which
works. The <CD_PRODUCTNAME Web> Client is online again.
In the event of a failed connection, the zenon Web Client cannot establish whether it is the zenon
Web Server (or the Standby zenon Web Server) or the Primary Server (or Standby Server) that cannot
be contacted, which is why these four connection possibilities must be gone through.
58 | 58