HTML Web Engine
HTML Web Engine
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
6 Licensing ..................................................................................................................................................... 14
7 Installation ................................................................................................................................................. 14
7.1 IIS Publishing service installation ............................................................................................................. 15
7.1.1 .NET registration on IIS under Windows 7 .................................................................................................. 21
8 Connectors ................................................................................................................................................. 22
8.1 SCADA Runtime Connector ....................................................................................................................... 22
8.2 Service grid connector ................................................................................................................................. 24
8.2.1 zenon variables ...................................................................................................................................................... 24
8.3 Reconnect ......................................................................................................................................................... 25
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].
5 | 71
HTML Web Engine
6 | 71
Required components and their definitions
The HTML Web Engine supports the authentication of a Web Engine client with increased security in
relation to the zenon user authentication and active directory. Login is via entry of the user name and
password.
REGIONAL SETTINGS
The HTML Web Engine supports most common languages, settings, number formats and date
formats.
HTML Web Engine (on page 6) The HTML Web Engine is for the provision of process
screens as an HTML5 web page. The user interface is
called up and displayed on the visualization end
device using a web browser. Neither special software
installation nor a software plug-in are required on the
7 | 71
Required components and their definitions
Components Description
end device. Process data for the visualization is taken
from zenon Runtime.
IIS (on page 15) Publishing Service Services platform of Microsoft for PCs and servers. It
can be used to make documents and files accessible
in the network. The HTML Web Engine uses IIS as a
runtime environment and for the publishing of zenon
process screens. HTTPS is used as a communication
protocol. Deployment (on page 26) is used to instance
the HTML Web Engine on the IIS.
Web browser Web browsers are special computer programs for the
display of documents and data, especially web sites in
the World Wide Web.
zenon Web Engine Deployment Tool (on Provides the HTML Web Engine as a web application
page 26) in IIS and allows the configuration thereof. An existing
HTML Web Engine instance can also be updated or
deleted.
Web engine compiler Generates, from a zenon project, the data that the
HTML Web Engine needs to provide HTML5 content
for the zenon Web Client. When translating this
project data, the HTML Web Engine compiler checks
the project contents and provides information on
non-supported functions or properties. As a result of
the translation process, a file is created that is
provided to the Web Engine.
SCADA Runtime Connector (on page 22) Serves as a communication interface to zenon
Runtime.
%programfiles(x86)%\Common
Files\COPA-DATA\Connectors\zrsConnector.exe
8 | 71
Basic system construction of the HTML Web Engine
Components Description
Service Grid Connector (on page 24) The Service Grid Connector enables the connection of
the HTML Web Engine to the Service Grid
infrastructure. The HTML Web Engine can thus run
outside of a SCADA network.
Attention
Recommendations:
Always operate the whole system configuration in a trusted network area.
Never publish the HTML5 web site in the Internet directly.
In the course of a session, a distinction between two different connection levels is made:
1. Display of visualization pages without process data
2. Display of the visualization pages and display of process data
9 | 71
Basic system construction of the HTML Web Engine
No special tools are required to configure the HTML5 visualization. The screens and functions are
created in the zenon Editor by default.
You can find a list of the supported elements, properties and functions in the Supported
functionalities for HTML visualization (on page 43) chapter.
This is how you use an HTML5-compatible web browser to access the HTML5 visualization from a
visualization end device:
Note: The breakdown of the components is only for simple display. The complete configuration
shown here can be operated in a network or also on any one of the individual computers in any
desired distribution of the components.
Procedure:
1. The operator on Station 4 connects with a standard web browser by entering the web page
URL to the web server on Station 3.
As a result, it gets the visualization pages there from the Web Engine.
2. Process data is only displayed in the HTML5 visualization after successful user authorization.
After a check of the user name and password has been carried out, the connection to zenon
Runtime is established (to Station 2 in the example).
3. The interface between zenon Runtime and Web Engine is formed by the SCADA Runtime
Connector or the Service Grid Connector.
4. The configuration of the HTML5 visualization is derived from a zenon Editor project (on
Station 1 in this case).
10 | 71
Basic system construction of the HTML Web Engine
The project states on Station 2 (zenon Runtime) and Station 3 (Web Engine) should be
identical for this.
With the Web Engine Compiler, the project data is translated for use by the HTML Web
Engine. The necessary steps for the installation of the HTML Web Engine on Station 3 and
the deployment on the Internet Information Server are described in the Deployment of the
web engine (on page 26) chapter.
The file from the Web Engine Compiler is saved in a freely-definable folder. It is read by the
HTML Web Engine from here.
Notes: Provide, for the connection of HTML5 visualization, a dedicated zenon Runtime, in order to
guarantee smooth interaction for process-related procedures. After changes are made in the zenon
project, carry out the compiling process again.
RELEASE SCREENS
Certain screens from the active project can be called up in a web browser by means of the HTML
Web Engine. You determine the screens that are unlocked for display in the web browser for each
screen using the Available in web property.
All screens for which this property has been activated are compiled with the Web Engine Compiler for
the Web Engine and are primarily available for provision in the web browser on the client. Screens
that have not been activated for this property can be used for the zenon Runtime visualization, but
are not available in the web browser.
The following screen types can be used for visualization in the web:
AML
CEL
ETM
Login
HTML
Standard
11 | 71
System requirements
5 System requirements
WEB SERVER
The HTML Web Engine supports the following operating systems:
Windows 7 SP 1
(Professional, Enterprise and Ultimate version, x86 and x64 versions).
Windows 10 SP 0
(Home, Pro, Enterprise, Education, Pro Education, Enterprise LTSB,
Enterprise LTSC, IoT Enterprise, Pro for Workstations)
Note: For operation of the HTML Web Engine, the .NET Framework 4.5 or higher is required.
12 | 71
System requirements
Information
Note the limitation of the number of simultaneous client connections by the
Microsoft IIS.
WEB CLIENT
No special installation is required for the HTML Web Client. It generally works with any web browser
that supports the following technologies:
HTML5
HTML5 Canvas
JavaScript (ECMAScript 5.1)
HTML5 content is processed in the web browser regardless of the operating system. Use of a current
version of one of the following web browsers is recommended:
Windows Internet Explorer from version 11
Microsoft Edge
Mozilla Firefox
Apple Safari
Exception: Does not support playback of audio files.
Google Chrome
CLIENT-SERVER CONNECTIONS
There must be a sufficient data rate available for the connection between web server and HTML
client. With a data rate that is too low, corresponding messages are displayed on the HTML web
client. A data rate that is too low can lead to a session not taking place or having to be canceled. You
can find further information on behavior in the event of a connection failure in the Reconnect (on
page 25) chapter.
Note: When using Windows Server operating systems, the number of simultaneous client
connections is not limited by the Microsoft IIS. When using Windows desktop operating systems, the
possible number of simultaneous connections depend on the version the installed operating system.
13 | 71
Licensing
6 Licensing
The HTML Web Engine must be licensed for each instance. Licensing is carried out using the License
Manager. If there is no license, the HTML Web Engine is started in a time-limited demo mode.
The following expansions are available for the HTML web engine:
Standard: Only read access to the visualization. The HTML Web Client can be used as an
observer.
Pro: Full access to the visualization, read and write.
Information
Note the limitation of the number of simultaneous client connections by the
Microsoft IIS.
Differences between the HTML web engine and zenon Web Server:
The license check is carried out on the basis of instances. Each project corresponds to an
instance.
If a license is invalid, a further license is first searched for. If none is found, a further license
can be searched for using the license search button.
If demo licenses expire, the service must be restarted in order to be able to use the demo
mode. The demo mode is only available if a demo license has been saved.
7 Installation
You need the following installations to operate the HTML Web Engine:
Web Server:
IIS publishing service:
Set up the publishing service in accordance with the instructions in the Install IIS publishing
service (on page 15) chapter.
zenon Web Server.
Install zenon Web Server from the installation medium.
14 | 71
Installation
IIS 7, WINDOWS 7
To activate the IIS publishing service:
1. Press the Windows key + R keyboard shortcut.
The dialog to enter a command for the command processing is opened.
15 | 71
Installation
Note: In the event of subsequent installation or upgrading of the NET framework under Windows 7,
this software must be registered manually in the IIS publishing service. For more details, see the
chapter .NET registration on IIS for Windows 7 (on page 21).
16 | 71
Installation
17 | 71
Installation
WINDOWS 10
To activate the IIS publishing service:
1. Press the Windows key + R keyboard shortcut.
The dialog to enter a command for the command processing is opened.
18 | 71
Installation
19 | 71
Installation
Attention: Do not deactivate any role services that have already been pre-selected by Microsoft.
Note: Use of Windows Server 2012 is recommended, because Windows Server 2008 R2 does not
support WebSocket protocols.
20 | 71
Installation
To do this:
1. Open the Windows command prompt with the as administrator option.
2. Switch to the Microsoft.NET installation directory with the highest version number.
3. Enter command aspnet_regiis -i.
After successful registration, the current Microsoft .NET framework version is available for use
with IIS.
21 | 71
Connectors
4. Ensure that the Application Pool on the IIS in which the HTML Web Engine is operated uses
the current .NET version.
This can be checked and set with the Information Services Manager:
8 Connectors
In order for the HTML Web Engine to be able to query and display data from zenon Runtime,
connection via a connector is needed.
User login is possible for both connectors with the zenon user's login data.
REQUIREMENTS
The SCADA Runtime Connector communicates via the COM interface.
The following must be entered in zenon6.ini:
[VBA]
EIN=1
EVENT=1
22 | 71
Connectors
START
The SCADA Runtime Connector can be started manually or automatically:
Manually:
Start the application in the Startup Tool under Tools. Select, under Available applications
(current folder), the SCADA Runtime Connector entry. Confirm the selection by clicking
on Start.
Start the application directly from the folder %programfiles(x86)%\Common
Files\COPA-DATA\Connectors\zrsConnector.exe
Automatic:
Activate Autostart for the Connector Container in the Startup Tool.
For each HTML Web Engine session, a separate SCADA Runtime Connector session is set up.
The following are transferred in this session:
Variables:
Screen variables that are needed for the current screen display on the HTML client:
For example, variables for displaying variable values or element dynamics. Variables can
be registered and deregistered for a session. Once the user has been authenticated
successfully for an HTML web client, the HTML Web Engine reports a list of variables for
communication and spontaneous updating by means of the SCADA Runtime Connector.
The HTML Web Engine can thus forward value changes to the web clients that are
currently connected.
Permanently-monitored variables, which remain permanently advised (on page 64) and
are required to execute a function in the event of a limit value violation.
Write set value via the SCADA Runtime Connector:
To increase security before a value change, an explicit check of the authenticity is carried
out with zenon Runtime on the basis of the user data of the HTML Web Client. A block or
removal of users by zenon Runtime becomes effective for the writing of set values
immediately.
ENCRYPTED COMMUNICATION
The TCP connection between SCADA Runtime Connector (zrsConnector.exe) and SCADA Runtime
Connector Client (zrsConnCli.dll) can be encrypted with AES.
To use the encrypted communication, issue an encryption password for Runtime and Client.
To do this:
1. In the zenon Startup Tool, enter the password in the Network configuration tab.
This is also saved in zenon6.ini in encrypted form.
Section: [ZRSCONNECTOR]
Entry: ENCRYPTION_PWD
23 | 71
Connectors
2. In the Deployment Tool of the HTML Web Engine, in the Security options window, set the
same password in the Security options (on page 31) tab. This is saved in encrypted form in
web.config in the Encryption_Password setting.
If, during validation, the SCADA Runtime Connector can be reached on the set target computer but
the encryption password does not correspond, the connector test times out. You receive notification
that the password set may be incorrect.
Note: The HTML Web Engine uses the Service Grid Connector to detect if the connection to zenon
has been disconnected. In the event of disconnection, the active HTML Web Engine users are
automatically logged out. In the event of configured redundancy (server/standby), a maintenance
dialog is displayed and the HTML Web Engine attempts to connect to the standby server, which now
becomes the primary server. An error message appears if this is not successful.
Prerequisite: The zenon Runtime whose visualization via the HTML Web Engine is wanted must be
incorporated into the Service Grid infrastructure.
You can find details on the Service Grid in the Service Grid manual.
Tipp Alarme: If not all expected alarms are displayed, check the configuration of the variables for
Service Grid.
To configure variables:
1. Select the desired variable
2. Open the External settings group in the properties.
3. Switch to the Service Grid settings subgroup.
4. Configure the variable for use in the Service Grid.
Configurable properties:
Access permission: Configuration of which access authorizations there are for a variable in
the Service Grid.
Select from drop-down list:
24 | 71
Client authentication for a connection to Runtime
You can find detailed information on variables in zenon in the Variables manual.
8.3 Reconnect
If the connection between Web Engine and Runtime or Service Grid is lost, an attempt is made to
establish the connection again.
After successfully reconnecting, login is automatic if so configured. If the currently-active user session
is also disconnected, an attempt is made to reestablish this too.
Note on Service Grid connector: With network projects for the Web Engine, the addresses of
the server must be entered with their fully-qualified domain name (FQDN). This is because the IDs of
the clients are derived from the computer’s FQDN. If the configured network names and the
computer’s FQDNs are different, the service grid connector cannot correctly detect the status of
zenon Runtime.
Note: Authentication can be carried out by transferring the login data (user name and password) for
a zenon user or an Active Directory user. The user data is validated by zenon Runtime.
25 | 71
Deployment of the Web Engine
Information
Note: The Deployment Tool is automatically installed with the zenon Web
Server. Administrator rights are required for the use of this tool.
26 | 71
Deployment of the Web Engine
Option Description
Deploy Provides a new instance of the HTML Web Engine on the IIS.
The following can be amended for the HTML Web Engine in the following
tab:
Version.
Configuration.
Selection of the connector and its configuration.
Path of the data folder.
Data Directory in which the exported project data (*.webx) is.
Security settings:
User name, password or switch for automatic sign-in.
Note: Not available if no valid Web Engine application is available on the IIS.
If the web engine is to be replaced by a more recent version, use the Change
option.
Note: Not available if no valid Web Engine application is available on the IIS.
27 | 71
Deployment of the Web Engine
The options that are available depend on the option that was selected in the start dialog:
Deploy: New configuration of a HTML Web Engine.
Change: Amendment to an existing HTML Web Engine.
Remove: Removal of an existing HTML Web Engine.
Option Description
28 | 71
Deployment of the Web Engine
Option Description
IIS application name Entry of the desired name for the Web Engine
application
This name will be part of the URL under which the
HTML5 web page will later be reached.
Example: https://Server address/Application name
Data directory Folder from which the Web Engine is to read the
exported project data.
Default folder:
C:\Users\Public\Documents\zenon_Projects\Web
IIS CERTIFICATE
zenon HTML Web Engine communication is always via a secure (HTTPS, port 443) connection.
In this area, you define whether the Deployment Tool uses a self-signed certificate for communication.
If there is not yet a self-signed certificate, it is created by the Deployment Tool. This certificate is
assigned to the IIS.
Note: A security certificate is a mandatory requirement for communication between the zenon Web
Server and zenon Web Client.
Option Description
29 | 71
Deployment of the Web Engine
Option Description
CONNECTOR
Selection of the connector (on page 22) via which the connection is established.
Option Description
Service Grid Connector The connection is established via the Service Grid
connector.
NAVIGATION
Cancel Discards changes and closes the dialog.
30 | 71
Deployment of the Web Engine
Runtime Connector host name or IP Enter the host name or the IP address of the
address computer on which the zenon Runtime and the
SCADA Runtime Connector are installed.
31 | 71
Deployment of the Web Engine
CREDENTIALS
In this area, you define how the authentication of the zenon Web Client is to be carried out.
Option Description
User name and password The zenon web client is authenticated by manual
(recommended) entry of the user name and password.
Automatic login Activate this option if you want the web engine to
automatically establish a connection to zenon
Runtime. The given user data is used for
authentication.
RUNTIME COMMUNICATION
32 | 71
Deployment of the Web Engine
Option Description
with the Encrypt Runtime Connector
communication property. The passwords for
Runtime and the HTML Web Engine must
correspond.
NAVIGATION
Cancel Discards changes and closes the dialog.
33 | 71
Deployment of the Web Engine
CONNECTION SETTINGS
Option Description
Start Service Node Configuration Tool Click on the button to open the Service Node
Configuration Tool. The connection to an
additional Service Hub can thus be configured if
34 | 71
Deployment of the Web Engine
Option Description
the desired Service Hub does not appear in the
drop-down list
CREDENTIALS
In this area, you define how the authentication of the zenon web client is to be carried out.
Option Description
User name and password The zenon web client is authenticated by manual
(recommended) entry of the user name and password.
Automatic login Activate this option if you want the web engine to
automatically establish a connection to zenon
Runtime. The given user data is used for
authentication.
35 | 71
Deployment of the Web Engine
NAVIGATION
Cancel Discards changes and closes the dialog.
Copy the output to the clipboard by clicking on the Copy to clipboard button.
36 | 71
Engineering in the Editor
Copy the output to the clipboard by clicking on the Copy to clipboard button.
Once the procedure has been completed, click on the Finish button to close the Deployment Tool.
Note: When engineering, please take the supported properties, screen elements and functions of the
HTML Web Engine into consideration.
37 | 71
Engineering in the Editor
CREATE PROJECT
For HTML Web Engine visualization with the zenon web server, create a standard zenon project. You
can also use certain resources from a global project for this.
Attention
Only the standard screen type can be used as a start screen for the HTML web
engine. Special screen types are not suitable.
Steps to create the screen using the properties if the screen creation dialog has been deactivated in
the menu bar under Tools, Settings and Use assistant:
1. Create a new screen.
To do this, select the New screen command in the tool bar or in the context menu of the
Screens node.
38 | 71
Engineering in the Editor
d) If necessary, select additional elements in the Elements drop-down list. Place these at the
desired position in the screen.
4. Create a screen switch function.
HTML SCREEN
Insert template Opens the dialog for selecting a template for the screen type.
39 | 71
Engineering in the Editor
AMEND SCREEN
To amend the screen for use with the HTML Web Engine:
1. Activate the Available in web property in the group General for this screen.
2. Note the options for opening external web pages (on page 41).
40 | 71
Engineering in the Editor
Browser window Enter the complete URL of the external web page here, including
https://
Example: https://serveraddress
41 | 71
Engineering in the Editor
Draw the frame for the browser window in the screen. The given website (URL) is displayed in
this frame.
Note: The opening of the embedded display (iFrame) only works if the X-Frame options on the
remote server are configured accordingly. In addition, the address of the embedded web page must
also be available for HTTPS via the HTTPS connection between the HTML Web Engine and HTML web
client.
Note: The calling up of several URLs is supported via script. However some browsers prevent tabs
being called up with their pop-up blocker. In such cases, a dialog appears with the URLs that cannot
be called up. These URLs can be opened manually.
To do this:
1. Create a standard screen.
2. Activate the Available in web property in the group General for this screen.
3. Enter this screen into the project properties in the Graphical design group as Start screen.
Note: You can define any desired start page for the web with an Autostart script.
4. Add simple elements to the screen, for example a Rectangle, Circle or Static text.
5. Ensure that the current project is set as a start project.
6. Export the project for HTML5 visualization.
42 | 71
Engineering in the Editor
The zenon Web Client now has the possibility to carry out authentication by means of entry of the
user data. If authentication is successful, a connection to zenon Runtime is established. As a result of
this, variable values for HTML5 visualization are available, for example.
GENERAL
Functionality Support for
43 | 71
Engineering in the Editor
Archives and variables can also be taken from the Service Grid.
Font types and font lists Selection and display of any desired font lists that are
available on the system.
Note: Selected font types must be available on both the
project configuration computer and on the zenon Web
Client. The steps must be defined in the local project.
Display in Normal font style, italic and bold.
Selection and display of the font in accordance with the
font list.
Online switching of the font list.
Note: The first font list of the zenon project is shown when a
session starts
REPLACE LINKS
Linkings are replaced in the same way as substitution in zenon Runtime.
Attention
Limitation when substituting variables for symbols:
If variable names are only different due to upper case and lower case, several
target variables can be found that meet the criterion during substitution. This is the
case if the Note upper and lower case option is deactivated.
In this case, one of the variables is selected at random in the Editor and Runtime.
This selection cannot be reproduced in the HTML Web Engine.
Hint: When configuring projects, ensure that there are always unique variable names that do not
depend on a distinction between upper case and lower case.
GLOBAL PROJECT
The HTML export takes the use of the following resources from a global project into account:
44 | 71
Engineering in the Editor
Frames
Color Palettes
Language Files
Option Description
45 | 71
Engineering in the Editor
LIST DISPLAYS
Lists are subdivided into pages. A footer for navigation is shown under the list.
List entries can be called up by clicking on the symbols. The number of the list entries shown can be
defined by clicking on the drop-down list.
SORTING IN RUNTIME
Lists in AML and CEL can be shown in sorted form.
To change the sorting of a list, click on the column title.
Clicking switches between:
Ascending
Descending
Standard (as supplied in zenon Runtime)
The behavior of the header, the sorting and the column widths is configured in the zenon Editor in
the project properties.
SORTING OF TEXT
Example:
Alphabetic sorting: 1, 11, 2, 3, 33, 4
Natural sorting: 1, 2, 3, 4, 11, 33
COLUMN LABELING
The Identification and Resources label columns are shown with the labeling Identification and
Resource Label. The language of the texts used in these columns can be switched.
Identification
Resources label
Measuring unit
46 | 71
Engineering in the Editor
Note: Language switching is carried out for each cell individually. If switching takes place in Runtime,
the switching to the new language can take a few seconds.
TIME FORMATS
Date and time in AML and CEL are shown in the localized display of the respective client. In doing so,
the UTC-DateTime is transfered and reformatted on the basis of the settings of the local computer.
You can find further information and examples in the Runtime manual, in the Handling of date and
time chapter.
47 | 71
Engineering in the Editor
48 | 71
Engineering in the Editor
49 | 71
Engineering in the Editor
50 | 71
Engineering in the Editor
AML screen type (on page 45) Display of this type of screen.
Display of dynamic AML lists. Dynamic means that the
data displayed is updated.
CEL screen type (on page 45) Display of this type of screen.
Display of dynamic CEL lists. Dynamic means that the data
displayed is updated.
ETM screen type (on page 55) Display of this type of screen.
Static display of simple line diagrams. Static means the the
data displayed is not updated.
SCREEN ELEMENTS
51 | 71
Engineering in the Editor
Arc of a circle Element-specific display options for display, colors and fill
options. Effects are not supported.
Display dynamics via variables for coloring and position
dynamics.
Segment of a circle Element-specific display options for display, colors and fill
options. Effects are not supported.
Display dynamics via variables for coloring and position
dynamics.
Invert color gradient property.
When selecting color gradient for the Fill pattern property,
the brightness gradient of the fill pattern is shown as
inverted.
52 | 71
Engineering in the Editor
Static text Element-specific display options for display, colors and fill
options. Effects are not supported.
Display dynamics via variables for coloring and position
dynamics.
Combined element Element-specific display options for display, colors and fill
options. Effects are not supported.
Display dynamics via variables for coloring and position
dynamics.
Setting of numerical limit values via the standard dialog.
Switch and push button
53 | 71
Engineering in the Editor
For details, see the Combined element (on page 58) section.
Dynamic text Element-specific display options for display, colors and fill
options. Effects are not supported.
Display dynamics via variables for coloring and position
dynamics.
Display of variable information variable value, Name,
Identification, Resources label, Measuring unit and
Limit value text possible.
Write set value with dialog.
Numeric value Element-specific display options for display, colors and fill
options. Effects are not supported.
Display dynamics via variables for coloring and position
dynamics.
Write set value with dialog, taking into account static
setpoint limits.
Note: The corresponding user level is checked for the
execution of the action.
54 | 71
Engineering in the Editor
Grouping of approved Groups for approved symbol properties are applied and
properties the properties contained therein are applied.
Symbols from the global project are given the prefix (g) when compiling.
Note:
If there is a symbol in the local project that has the same name during export as a symbol in the
global project, the symbol from the local project will be used. For example:
Global project: rotor
Local project: (g)rotor
During export, rotor becomes > (g)rotor in the global project. This name corresponds to (g)rotor
from the local project. Only the symbol from the local project is used.
Archive data
55 | 71
Engineering in the Editor
56 | 71
Engineering in the Editor
Procedure:
The maximum number of variables to be displayed is determined by the width of the
template (in pixels) on which the screen is based.
There is no aggregation if, during an archive query, fewer variables are returned than pixels
are present.
If the number of the archive variables exceeds the column width, average values are
generated.
To do this, the time axis is divided into time ranges.
The archive values that are transferred by Runtime are arranged into the respective time
ranges. The average value within a time range is calculated using the archive values. If there
is no archived value within a time range, this tie range is deleted.
Note: The generation of the average values is not just carried out for numeric values, but
also binary variables.
Unnecessary variables continue to not be taken into account, because these are not required
for the current display. This reduces background calculations, saves computer processing
power and speeds up the switching time.
This happens regardless of the number of archive values and the average value calculation.
To do this, 3 archived values of a variable that are consecutive in terms of time are analyzed.
If all 3 variables have the same value, the average variable is removed.
If, for example, a recorded archive variable has the same value over the queried time period,
only 2 variables (start and end) are displayed.
Note: When generating average values, the trend line is generally shown differently to with raw
values.
57 | 71
Engineering in the Editor
Reference point
Bitmap settings
Position
Write set value Numeric values via write set value dialog and
function.
58 | 71
Engineering in the Editor
Write set value/Numeric value Only the Standard dialog setting is supported for
the Write set value via property.
Not supported:
without dialog
External program
Use screen Keyboard
Screen Keyboard
Pushbutton and Pushbutton On The Reset on exit property is always activated and
also cannot be deactivated.
Text chained
Status selection via variable status and text Selection of status based on appropriate variable
dynamization: status, in addition to variable value:
59 | 71
Engineering in the Editor
Exception: The unacknowledged status bit is not supported. It is always treated as 0 in the HTML
Web Engine.
60 | 71
Engineering in the Editor
11.3.3 Functions
Functions and scripts
Function Support for
Switch palette Online switching of the color palette for graphic display.
61 | 71
Engineering in the Editor
11.3.3.1 Automatic script call when starting a zenon Web Client session
A script can be called up automatically when starting an HTML web client session. A special start page
can thus be prescribed for the web application, for example.
Note: This script is executed whenever a session of an HTML web client starts. The name of the script
must not be changed.
Note: All settings that are required for the use of the URL start function must be set in the project at
the time of compilation for the web.
62 | 71
Engineering in the Editor
2. If the function for the use as a URL start function has been approved, the assigned script is
executed. The execution of the script is carried out individually for this HTML web client
session. If the addressed function does not exist or has not been unlocked, a standard web
page call is made. The session is then set up according to the call without startfunction
argument.
63 | 71
Engineering in the Editor
Attention
Audio files must be available as *.wav files.
EXECUTE FUNCTIONS
The functions for playing audio signals or for starting and stopping a continuous tone can be
executed by
the button linked to the function
a call in a script that is linked to a button
a limit value that calls the respective function in the event of a violation
RULES
The following rules apply for playing audio signals and continuous tones in the HTML Web Engine:
Only one audio file can be played at a time.
Starting an audio signal or a continuous tone may interrupt a different audio file that is
already playing.
Playback length:
Audio signal: The audio file determines the length of the audio signal.
Continuous tone: The call of the Start continuous tone and Stop continuous tone
functions determines the length of the tone.
Several functions can be created and called for different audio signals and continuous tones.
To do this, each one must be linked to a separate button.
If several audio files are gathered in a script, only the last audio file will be played.
Switching between screens does not interrupt the playing of an audio file.
11.3.5 Variables
The following variables are assigned in the HTML Web Engine:
64 | 71
Engineering in the Editor
Attention
Permanently-monitored variables are not identical with the variables for which
the Permanently read variable property was activated in the zenon.
In zenon, this property causes the variable to be assigned to the driver and all
changes on the PLC are always reported to the zenon.
Note:
Permanently-monitored variables are linked independently of the variables of the current
screen.
In this way, variables can be double-linked. This has no effect at the current time. This is
because changes to Permanently-monitored variables values only cause the function to be
called in the event of a limit value violation. This does not occur for changes made to the
values of screen variables.
Switching between different screens causes the variables of the previous screen to be
unadvised and those of the new screen to be linked. Permanently-monitored variables are
not affected by this.
65 | 71
Engineering in the Editor
INITIAL LINK
The initial link of Permanently-monitored variables is established by the user who initially sets up an
HTML Web Engine session. This link is maintained until all HTML Web Engine sessions that use this
link are closed. That means: HTML Web Engine sessions added subsequently can continue to use
Permanently-monitored variables even if the user for whose HTML Web Engine session the link to
Permanently-monitored variables was set up has already logged out.
In the event of disconnection, all variables are unadvised in all HTML Web Engine sessions.
If the connection is reestablished, Permanently-monitored variables is not available until the user has
logged on again.
66 | 71
Compile project for web
Attention
If the Web Engine Compiler is executed several times for different zenon
projects, several Web Engine project files are also saved in the output folder. In
this case, the HTML Web Engine always uses only the project file that comes first
in the alphabet.
67 | 71
Compile project for web
Option Description
Please select the target directory for the Select a folder to save the Web Engine file here.
Web Engine data file Click on the ... button to open the dialog to select a
folder.
Open folder in File Explorer Opens the selected folder in the Windows Explorer.
Open Web Engine Compiler LOG file Opens the LOG file for the Web Engine Compiler.
This contains the messages from the Progress
output window.
68 | 71
Process of an HTML web engine session
Option Description
The HTML 5 content is provided automatically. In doing so, a separate session is created and
administered for each zenon Web Client. The runtime data of zenon Runtime is available as
soon as you have been successfully authenticated as a user. You can read more details about
this in the Client authentication for a connection to Runtime (on page 25).
3. As soon as you leave the web page, the HTML Web Engine session and the connection to
zenon Runtime is disconnected automatically.
Note: The web page is left when the web browser is closed, its tab is closed, view is updated or the
URL is entered again (among other things).
69 | 71
System diagnosis and troubleshooting
Minimum: 0
With negative values, 0 or a missing entry, there is no automatic restart.
The restart must then be carried out manually by clicking on the Restart button.
Maximum: 3600 (= 1 h)
Default: 30
CHECKLISTS
The following checks are recommended for general checking of the system configuration:
HTML Web Engine has been installed on the IIS.
The web engine deployment was carried out without any errors.
The web server is in operation.
Visualization data is generated with the Web Engine Compiler.
There are no errors during the compilation process.
The resultant data of the Web Engine Compiler is ready for access by the Web Engine.
Note: The occurrence of warnings does not influence the ability of the HTML Web
Engine to run in principle. However, there can be limitations to the configured
functionality depending on the type of warning
The versions of Web Engine Compiler and HTML Web Engine are identical.
Note: The data created by the Web Engine Compiler can only be interpreted correctly by
the HTML Web Engine (web application) with the same version number.
70 | 71
System diagnosis and troubleshooting
71 | 71