Man Eng Mov11.6 Web Client
Man Eng Mov11.6 Web Client
Man Eng Mov11.6 Web Client
Web Client
Table Of Contents
1. WEB CLIENT ................................................................ 1
1.1. INTRODUCTION TO THE WEB CLIENT ............................................... 1
1.2. GENERAL CONCEPTS ................................................................. 2
1.3. SUPPORTED SYSTEMS ................................................................ 5
1.4. LICENCE POLICY ...................................................................... 6
1.5. WEB CLIENT RESTRICTIONS ........................................................ 6
1.6. TIPS ................................................................................... 8
1.7. WEB CLIENT APPLET JAVA ........................................................ 10
1.7.1. Design.........................................................................................................10
1.8. HISTORICALS ....................................................................... 10
1.9. ALARM MANAGEMENT .............................................................. 10
1.10. THE GRAPHICS .................................................................... 10
1.11. CREATING WEB CLIENT PAGES .................................................. 12
1.12. TRENDS ............................................................................ 14
1.13. GENERAL INFORMATION.......................................................... 15
1.13.1. IIS (Internet Information Services) .............................................................16
1.14. SETTING CLIENT AS READ ONLY ................................................ 20
1.15. RECIPES ........................................................................... 20
1.15.1. Server Access ............................................................................................20
1.16. BROWSER ACCESSING ........................................................... 20
1.17. ACCESSING WITHOUT A BROWSER .............................................. 21
1.18. ACCESSING BY MOBILE PHONE .................................................. 22
1.19. AUTHENTICATION ................................................................. 23
1.20. WEB CLIENT HTML5 ............................................................ 24
1.21. OVERVIEW ......................................................................... 24
1.22. WEB CLIENT ACCESS VIA HTTP AND HTTPS PROTOCOLS ................... 24
1.23. QUICK GUIDE ..................................................................... 25
1.24. SOUND MANAGEMENT FOR PROJECT ALARMS .................................. 26
1.25. ACCESSING FROM SMARTPHONE OR TABLET ................................... 26
1.26. HTML5 PROPERTIES ............................................................. 26
1. Web Client
Web Architecture
The Movicon Web Client© lets you visualize or control your automation system from any client
station within a local or geographical network. The Movicon Web Client© is based on two types of
architecture: the Java Thin Client by means of the Java Applet that uses Web Services
communications and HTML5 by means of the Server Websocket integreted in Movicon.
The Web Client solution has been designed by Progea offering the advantage of not needing you
to install or configure a thing on the Server. This will save you from carrying out complicated
installation procedures while at the same time ensuring clients with multi-userness, bidirectionality
and security. You can use the Java Runtime engine on the Client side to run the Jave Applet
directly and there is no need to install additional modules for HTML5 Clients.
If you use the Java Applet technology, you will be able to use a Web Server on the Server side
(e.g. Windows 32/64 bit include IIS - Internet Information Services), to consent Web
Clients access by using Browsers that support the Java technology (e.g. Internet Explorer
supports the NPAPI architecture, which is technology needed to run Java applets) with complete
transparency when the applet is automatically downloaded upon accessing for the first time.
If you use the HTML5 technology, you won't need to install any third party Web
Servers. However, the Browsers must be able to support the "Canvas" elements (Note: Internet
Explorer does not support HTML5).
If the Server is a station based on the WinCE platform, Clients will be able to access by means of
using the Java Applet directly or by starting up the applet using the Java Machine with a Browser
1
that supports Java (support to the NPAPI architecture) by means of configuring the Web Server
which is available in the Windows CE image.
The Server stations used within your plant system can therefore be SCADA stations based on
Movicon for Win32 versions and HMI stations based on Movicon for WinCE versions.
Movicon Web Client© is very light and can be run with any browser in any operation system as it
supports multi-platform JAVA and HTML5.
When using HTML pages, the Movicon Web Client© will permit you to visualize your production
process from anywhere in the world using a normal browser with the benefit of drastically reducing
costs without excluding any potentiality.
Movicon Web Client© has been designed to connect to the IP address of any Movicon Server
station by simply using the Internet or Intranet architectures.
The innovative advantages of Movicon Web Client© will allow you to monitor and optimise your
productivity, no matter where your plant is situated, at a low cost. You will be able to visualize
and control your automation system or machine and beat system licensing, development and
maintenance costs. Any changes made to the Server project are immediately available to all
Clients. Movicon Web Client© is based on the most modern Information Technology (IT) to
visualize and interact with Movicon® server applications. JAVA, XML, SOAP, Web Services and
Websocket form the basis of Progea's Web Client technology.
Multi-platform Solutions
Movicon Web Client© is based on Java technology (J2SE e J2ME) and HTML5. This means that Movicon
Web Client can be run in any browser in any platform used. Accessing your plant's data can be done
not just with the Microsoft platfrom but also from Linux, Linus, Unix and Palm stations or any other
"Java-Enabled" and HTML5 compliant platform.
In addition, the Movicon Web Client is available for iOS and Android platforms in mobile phones and
tablet!
Movicon Web Client cannot be currently run on the WinCE Platform due to
tests showing that the Java Runtime Machine available for WinCE is not
reliable. Furthermore, the WinCE platform does no tcurrently have a HTML5
compatible system browser.
Movicon Web Client offers the possibility to access plant system data using the
Internet/Intranet architectures.
The advantages you get when using Movicon Web Client are:
2
The advantage of centralizing information, which will be processed and managed by the server, is that
it can be distributed to the various clients. The Web Client technology allows the client to access the
server without needing local installation, and to display information for plant monitoring and
interactivity. The Web Client does not process anything locally by consenting access from even the
most limited devices, such as PDA or JavaPhones mobile phones.
This technology, even though very advantageous for certain aspects, does have a few functionality
restrictions where the client side is concerned.
This must be kept in mind when planning Movicon applications in order to avoid using those functions
on the server which are not available on the client.
It can actually be specified in the project's General Properties, in editing mode, whether the project is
to be managed by the Web Client or not. It would be helpful for the programmer during the editing
phase not to have the unsupported and not available system functions on the client side.
Any Movicon project can be accessed via Web Client. If functions not supported on the Client side are
used, this will not influence the client's accessibility to the project in any way. The unsupported
functions will simply not be accessible or visible on the client side. To avoid that any of this happens
you should select the Platform-client in the configuration of the project's properties. By
doing this the programmer can plan only what the Client platform is capable of supporting.
Tip: when having to plan exclusively for clients, make sure you select the option
relating to the client type desired. When platform multi-selecting, Movicon will
assume that you intend to also plan for different platforms, then the editor will be
always predisposed for the most complete platform.
Whatever happens Web Client will ignore the functions not supported, therefore the project,
even when created for Windows 32/64 bit, will be run by the client device.
1. Client/Server Architecture
2. Web Client Architecture
In this paragraph we will analyze the differences between the two solutions, where the user can have
one or more Server stations on both which can be accessed by one or more Client stations.
Client/Server Architecture
The Client settings will be based on the locally run Movicon application with this type of architecture.
This means that the Client must be installed with the Movicon runtime engine, which put into execution
the applied project run locally.
This project can be distributed, or in other words it can provide local resources (eg. Tags Database)
or provide decentralized resources on other stations (for example, it might be a "tagless" project, which
is a project without local variables, but with direct access to variables or other databases).
In any case, we are talking about one Client station which processes a Movicon project locally, which
is connected in net to other stations (Server or Client) to share information.
3
The Client's potentialities are increased with this architecture where it is capable of processing
information locally, creating local alarms, take decisions, record historical files locally or in distributed
mode, etc, etc,. There are not limits to the techniques of the Client's potentiality.
The only snag is that you need to install and license Movicon on each Client station.
4
Before project planning
Before planning your project for a "Web Client" device you should consider that projects are usually
created with the capacity and possibilities of the Client device, being used, in mind.
The Web technology has advantages but at the same time it also has some restrictions which must be
taken into account on all sides. Based on the technique requirements on the client side, you will need
to decide whether to use the Web Client technology or the traditional technology of the Movicon
Client/Server.
We therefore it would be to your best interest to carefully consider the suggestions made in this guide.
Clients in Mobile Telephony architectures using Apps and HTML5 (iOS, Android):
- SmartPhones
- Tablets
For any further details on the type of device you are using or if you need to run a compatibility test,
please contact Progea or your local dealer.
5
1.4. Licence Policy
One of the advantages of using the Web Client technology is that there is no licence required for the
Client. The licence resides only on the server, and always refers to the number of Client users
connected at the same time.
License Management
When purchasing the license for Movicon, the user can order Web Client function for the runtime
license (typically Server, but can be a Client runtime license), by specifying the number of users
connectable at the same time (the number of Users should concord with the list in force).
The maximum number of Web users which can be acquired has been fixed at 100 by Progea: this
means 100 users connected to the server at the same time. This is a trading limit and in order to
manage up to 100 connections at the same time you need a server with an adequate calculation
potentiality to cope with this kind of capacity which is quite rare to find. Nevertheless this trading limit
can be changed on client request.
• Server licences are referred to the "Contemporary Users". For example, if a Movicon runtime
license enabled nr. 1 Web Client User, this means that an unlimited number of users can access
the plant but only one user at a time can access it, and not more than one at the same time
• The server provides an automatic Web Client disconnection after a certain inactivity time has
elapsed (time can be set), freeing access for others
The Movicon CE runtime license provides a maximum limit of two users, which is
the capacity limit of a server based on Windows CE.
When a Web Client fails to connect to a Server for license reasons (no Web client users enabled on
license), the following message will appear on the Web client:
"No more licenses available on the server ! Please try later or contact your server
administrator"
WinCE support
On the Windows CE platform, you can not use the System Browser to run HTLM5
pages because it does not have support for "Canvas" elements. It is still possible to
verify the support of the third-party Browser HTML5.
Graphical Restrictions
6
Moving Animations
Value Editing (Edit Box
locale)
Touch Screen Commands
Hot Regions
3D Look buttons
Menu
Accelerators
Embedded Screens
Alarm Windows
Historical Log Windows
Modal/Frame Windows
Auto-adaption to screen resolution
ActiveX in screens -
• Modal Windows/Frame: The Web Client does not support modal window
management, on the Client side. Therefore any modal windows or frame window on
the Server will be displayed with a full screen on the Client
• Script Dialog Boxes: are not supported on the Client side. You need to keep this
mind when planning your project
• System Windows (eg. NumericPad for Touch Screens): not supported on Client
When using Windows CE as Web Server, please consider the platform's limitations
described in topic on Movicon "Limitations" for Windows CE.
Alarm Restrictions
The Web Client allows the displaying of alarms and actions carried out to them. The only restrictions
are those concerning the notification and statistical analysis management due to the fact that Web
Client does not process anything locally and remain the task of the server.
DataLogger/Recipe/Report Restrictions
The Data Loggers are run on the Server. The Web client only consents access for viewing the historical
files, as predisposed on the Server.
It needs to be pointed out that when using a tradition Client Runtime architecture,
it is technically possible to execute Data Logger recordings on the Client as well
when the Client is capable of processing a local project.
7
DB Trace For Viewing Only
Recipes
Crystal Report Engine
In addition to this you must take into account, while in project developing mode, that the
actions which have gone into effect, by means of codes on the user interface, may differ on
the Client side. For example, the Web Client does not support the displaying of VBA Script
Dialog Boxes.
The "UIInterface" interface is also actually loaded for those objects and screens which are
displayed in a WebClient session. This allows some of the commands, such as
OpenSynotpic, OperSynopticEx, OpenSynopticParameter, OpenSynopticModal,
ExecuteCommand to be managed from the WebClient. However, it is important to take in
to account that some of these methods interact with the Server's UI. In order not to block
these methods, which may be needed, the project developer should not recall certain
functions when dealing with WebClient sessions. In addition to this, these methods only
have meaning when used in the screen's internal due to the fact that there are no links
between a script executed as resource and a WebClient session.
IL Logic Restrictions
The IL Logic is run on the Server only.
Password Restrictions
The passwords are also managed on the Web Client side. The system will request Log on based on
the restrictions setup by the project developer on the Server. The Server will record all the accesses
on Log, by indicating the user and the Web Client station connected.
New user password entries are not supported on the Web Client side
1.6. Tips
This section will supply you with a series of tips to be kept into consideration before you start
developing projects for Server projects which are to be managed by remote through the Web Client.
Movicon is a platform which allows you plan projects for both plants and small HMI
devices. However, it is left to the project planner's discretion to take into account
the hardware features (processor potentiality, memory capacity) of the Client
device being used and that they are adequate for the user on the Client side.
In the world of Web Clients there are many ways in which you can access by using
various device types, with differing hardware features, working together in a
heterogeneous environment (eg. from normal PCs to mobile phone systems).
However you many find that same Movicon project can be run from the Web Client
side with satisfactory performances on one device but and with unsatisfactory
performances on another.
In addition to this, you need to remember that the performances on the Client also
depend on the band capacity available. A Web Client connection with a Server on
GPRS with a 9600 baud rate will give performances very different to that of a
connection on a local network with 100Mb!!
Graphics
In general you should take into consideration the restrictions stipulated in this manual. As a good rule
of the thumb, it would be best to provide the Web Client with "light" screens, without any complex
animations or functionalities, based on the Client's capacity and the band provided for the connection.
It is also important to consider the graphic resolution used on the server compared with those of the
Clients'.
8
Finally, you should remember the Modal/Frame window types not supported by Clients which include
the script dialog boxes.
Alarms
The alarms are fully supported on the Web Client side. You only need to remember that you can not
get 'Help' on the Client and to use adapted fonts and short texts when space on the Client is graphically
little.
Historical Log
The alarm historicals (Log) are fully supported on the Web Client side. You only need to remember
that any filters and queries have to be managed appropriated and that you cannot not get statistical
reports on the Client.
Trends
The project historicals (Trends) are fully supported for viewing on the Web Client side. You only need
to remember that any filters and queries have to be appropriately managed and the you cannot get
statistical reports on the Client.
Reports
The reports are not supported. However, you can use the advances Crystal Report functions which
allow produced report distribution via Web. In order to do this, pleas refer to the Crystal Report product
documentation.
Touch Screens
Movicon Web Client does not support modal windows, therefore all the commands which need to be
typed out on virtual Alph and NumPad system windows are not supported. If the Web Client is a
keyboard device (touch screen only), you will need to provide graphic objects (meters, sliders, etc,)
for entering data.
Passwords
Passwords are also managed on the Web Client side. A system window, dedicated for this purpose, is
used for entering your User name and password (does not support touch screens).
New User Passwords cannot be entered or changed on the Web client side.
If asked to enter user name and password as authentication when connecting to the Server with a
Web Client, means that the User managment has been enabled in the Server project. When
authentication is not accepted by the Server (even when user name and password are correct), or in
cases where authentication is still requested even when the User management has been disabled in
the Server project, the reasons for this may be:
• The Server project license has not been enabled with WebClient users (WebClient Users = 0)
• The Server project contains child projects with the "Network Server" option enabled and the
same parent project TCP port is in listening mode
• No Web Server has been installed (such as Internet Information Services) or the virtual
directory has not been published correctly and does not consent access to the Web Client
After the first authentication, if an object needs to be used but has a higher password
access level to the one of the user logged in, instead or requesting a new login the
user will simply be banned from interacting with that object. Therefore it will be
necessary to request access to the Server with a user level equal to the one
requested by the object. This can be done by simply restarting the Web client
session, i.e. by refreshing the html page (or by using the "Log in as different User…"
command if using a Midlet).
9
<!-- <td><span id="screenname" /></td> -->
1.8. Historicals
Historical displays are supported by the Web Client. The server will record the historical files by means
of the ODBC on Relational DBs. The Web Client will be able to access the historicals (Historical Log,
DB Trace, Data Loggers) by means of using the "Log Window" provided by Movicon.
The displayed data will be contained in files, represented in table forms in the appropriated windows.
The historical files are:
• Historical Log
• DB Trace
• Data Logger
Access to the project's historicals via Web Client should be done by using the
appropriate display window objects predisposed in the Server project for this purpose.
In cases where the Web Client is needed to produce filters, analysis, queries, etc, the server should
be preset appropriately for these purposes. In short, the Server project must manage (through VBA
scripts) access to files and manage queries. The Web Client will be able to run these scripts, whose
results should be managed in the appropriate Movicon window objects.
Example: If you also wish to filter the log file for a certain time period on the Client side: the project
developer should predispose the composition of the access query to the Log file, making sure that the
vectorial objects are used for the user interface with the operator. The query parameters will then be
used by one script, for example started from a push-button, which determines the filter in the "Log
Window". The Log Window will also be available on the Web Client.
• The commands needed for creating reports on the historicals (Crystal Report Engine) are not
supported on the Client
Graphic Resolutions
When the sizing the window on the Web Client side, the screens allocated on the Server side will resize
with the sizes requested by the WebClient without controlling any max limits. This might cause
10
problems for other platforms, especially WinCE where memory is limited and for Windows 32/64 bit,
risking memory saturation on the on Server when left uncontrolled. Therefore, four properties have
been added to each screen allowing users to choose maximum screen sizes on Web Client side and
sizes of dispatched packets. By keeping packets sized with low values, they will be small and therefore
optimal enough for reduced broadbands when dispatched.
• Max WebClient Width: this property is used for setting the maximum screen width size when
displayed on the WebClient. No size limit will be imposed when left at zero
• Max WebClient Height: this property is used for setting the maximum screen height size
when displayed on the WebClient. No size limit will be imposed when left at zero
• Max WebClient Packet Width: this property is used for setting the maximum width size of
packets dispatched to the WebClient. No size limit will be imposed when left at zero
• Max WebClient Packet Height: this property is used for setting the maximum height size of
packets dispatched to the WebClient. No size limit will be imposed when left at zero
Movicon Web Client fits the graphics to the size of the video screen, but if sizes, much bigger than
those of the device, are used the graphics will lose their quality.
We advice you to keep to the video screen resolution or the screen sizes as near to those of the
device's.
Windows
The Client can have access to the server's screens, whether pointing to the corresponding HTML pages
(created in the programming phase), or by using the change page commands in the project.
However, the following points must be considered:
• Modal Windows: Web Client does not support the modal or frame window management on
the client side. Therefore any modal windows on the Server will be displayed at full screen size
on the Client
• Script Dialog Boxes:are not supported on the Client side. You need to keep this in mind
when designing your project
• System Windows (eg. NumericPad for Touch Screens): not supported on the Client
Change Page
All the screen change page commands are also available on the Client. As a consequence the Client
user can use all the buttons needed for navigating (total or part of, according to those predisposed by
the programmer) from the start page.
The performances inherent to the change page on the Client side may depend on different factors. In
general, the change page time is influenced by:
To get the best out of the performance you need to distribute information in the best way possible by
dividing it on more screens.
Using images
Image usage usually require you to memory resources and a quantity of data to upload onto the Client.
The Client will take longer to open when pages with very big background images are being used in
function with the band quantity available on the net.
Movicon, however, only transmits the part of the image which changes in order to optimize the traffic
of graphic information as much as possible.
11
1.11. Creating Web Client pages
The Movicon Web Client technology permits access to plant information, residing on the Movicon
Server, through a normal internet browser, or through JavaPhones mobile phones.
The browser should point to a HMTL page, appropriately preset and created in automatic, based on
one or more screens existing in the Movicon project.
Therefore the project screen desired for the HTML needs to be singled out. Just select the screen
desired from the Movicon design environment, then use the "Create Web HTML page..." Wizard
command from the Project Window's command panel or use the "Create a WebClientX html page
based on this Screen" command made available when right clicking on the screen name.
When executing this command a window will display for setting the size of the screen in the browser.
It would be best to select the size (Width, Height) in pixels in function with the client stations which
have access to the plant. You can however enable the "Full Screen" option. This will allow you to have
a html page which resizes the applet according to the sizes of the window in the internet browser.
You can also select the "Low Band Network" box, in cases where the access connection to the server
has a low band to allow Movicon to optimize as much as possible the Web Server management to
improve performances.
When confirming the above actions a window will display for enabling the creation of a virtual directory
for the Web Server:
When confirming the virtual directory creation the following window will appear if you are using
Windows XP only and not Windows 10/8/7:
12
This window is the operating system's and is the same one that appears when running an application
using the "Run as... " command. By doing this, the application will be run using the user specified and
not the one active in the operating system at that current moment. Then select the user with which
the directory must be created making sure the user has administrator rights.
CAUTION! You must disable the 'Protect my computer and data from
unauthorized program activity' option if you want Movicon to create the
directory automatically. If you leave this option checked the directory will not get
created and you will need to do it manually using the IIS. This is due to the fact that
the application is run with user right restrictions making it impossible to create the
virtual directory. Therefore, the option is left unchecked or checked specifying the user
with which to run the application by selecting the "The following user:" option.
Once confirming this operation, Movicon will ask you if you want to run a test.
When receiving confirmation of the executed procedure, Movicon will ask whether you would like to
run a test.
When answering with YES, the project will automatically run and the system's default browser will
open with URL specified in function with the local path for pointing to the screen (HTML page) created.
When answering with NO, the demo can be done at another time.
At this point, if the browser access to the screen page has been verified as working correctly, it will be
possible to point to the same HTML page from any other browser by substituting the "Http:\\localhost"
with the IP address or the name of the server acknowledged on the net.
Parameter File
In the HTML page loaded from the browser you can also set the parameter file, in the "Synoptic"
parameter, to be used for opening the specified screen. This file is inserted after the screen name
followed by a semi-colon.
Example:
...
<PARAM NAME = "Synoptic" VALUE = "ScreenMotors;Motor1.movpar">
13
...
The parameter file extension is optional and the one for default for that resource type will be used.
Screen colors
In the HTML page loaded from the browser you can set the number of colors in the "NumColors"
parameter that the Server is to manage for refreshing the page on the Web Client.
Example:
...
<PARAM NAME = "NumColors" VALUE = "0">
...
0: the "Screen Colors type" setting is used and which is defined in the properties of the screens
which are loaded
1: the use of black and white is forced. This consents to greatly reducing data traffic in the
communication channels used for the Web Client. This however will degrade graphic quality
a bit
Example:
...
<PARAM NAME = "UserName" VALUE = "Movicon">
<PARAM NAME = "Password" VALUE = "111111">
...
Status Bar
In cases where heavy pages are being loaded, a progress bar will show above the status bar showing
the user which loading operations have not yet terminated. This bar can be hidden by setting
the "ShowStatusBar" attribute to "false" in the html page:
Example:
...
<PARAM NAME = "ShowStatusBar" VALUE = "false">
PlaySoundOnAlarm
The "PlaySoundOnAlarm"parameter shows as a check box in the dialog window used by Movicon when
a html page is published in IIS for asking user whether to activate alarm sound (default "true") on
Web Client. For further information refer to the part relating to the "Webclient" in the "Alarm Sound
Management" section.
Example:
...
<PARAM NAME = "PlaySoundOnAlarm" VALUE = "true">
...
FileToPlayOnAlarm
When opting to set the "FileToPlayOnAlarm" parameter you can actually customize the alarm sound
(this parameter must however be inserted manually). For further information refer to the part relating
to the "Webclient" in the "Alarm Sound Management" section.
Example:
...
<PARAM NAME = "FileToPlayOnAlarm" VALUE = "tada.wav">
1.12. Trends
The Web Client supports Trends displays. The Web Client displays the Trend Window object and the
curves contained in it, whether as real-time values or as historical values.
14
The server samples and records trend data. The historical files are managed through the Data Logger
ODBC on Relational DBs. The Web Client can get access to the historicals (Historical Log, DB Trace,
Data Loggers) by using the command objects provided by Movicon.
The server can be purposely setup in cases where the Web Client has to produce filters, analysis or
queries on the Trend. In short, the Server project should manage (by means of VBA scripts) access
to files and manage queries. The Web Client will be able to run these scripts, whose results should be
managed in the appropriate Movicon vectorial window objects.
Example: If you wish to filter the Trend file for a certain time period on the Web Client side as well:
the project developer must predispose the access query composition to the Log file, making sure that
the vectorial objects, for the user interface with the operator, are used. The query parameters will
then be used by one script, for example push-button, to start the filter on the "Log window". The Log
window contents will then also be available on the Web Client.
In general, the project designer who develops the Server Project with Web Client access, must consider
the following guide lines:
1. The Server processes the information for its Clients, always guaranteeing priority to local
executions in respect to those by remote management
2. The hardware resource for the Server must always be proportioned to the amount of resources
to be put into use for both the application being run and by the quantity of Clients which can
connect at the same time
3. The quantity and complexity of the screen graphic information which can be accessed via Web
Client must be in proportion to the Client's capacity
4. You need to consider that the Client can access to screen pages not necessarily displayed on
the Server
5. The security on the Client side depends on the preset project configuration on the Server
6. Each Client user has independent and autonomous access to the Server, whether form other
Clients and Servers
7. In cases where the Servers is based on Window CE, you should always consider the resources
provided on the Server, which are generally scarce in number. We suggest you keep this in
mind when creating screen pages which can be accessed via Web
8. Access to the Server via Movicon Web Client technology is also possible on stations without the
Web Server
Web Server
Generally, a typical plant configuration provides a Server based on Windows 32/64 bit. These operating
systems have an Internet Information Services (IIS), which is a web server installed on the Operating
System.
This type of configuration does not require any configuring by the project designer, whether on the
Client side or on the Server side. Movicon actually has a command for creating the HTML page and for
configuring the Web Server IIS appropriately.
In addition to this, your system can be customized by using other kinds of Web Servers which are not
IIS (eg. Apache). In this case, it is the system administrator's job to configure the chosen Web Server
15
so that the Clients can upload the Applet when needed and that the browsers can use the Applet
correctly.
If the Server is not equipped with the Web Server services, you can access to the server by launching
the Movicon Web Client Applet without using a browser if the Client has been installed with the Java
Virtual Machine (JVM). In this case, you just have to execute the right command line for launching the
Applet. In addition to this, you can use the Applet within a self created application, by using a language
or a platform capable of manipulating a Java applet.
You can get further details from the appropriate chapters included in this manual.
Folder Paths
By using the project's "Project Paths" you can setup the project's working folders.
Normally, the Java Applet and the screen HTML pages reside in the Project folder's "Resources" folder.
3. Now select the "Home Directory" tab from the "Default Web Site" properties and enable the
"Read" item.
16
4. Select the "Directory Security" tab and click on the "Edit" button from the "Anonymous access
and Authentication control" group to open the "Authentication Methods" dialog window below
and set as follows:
17
5. Select the "Documents" tab from the "Default Web Site Properties". When enabling the "Enable
Default Document" property, the IIS may not be able to find the screen's html page, therefore
insert the list then move the name of screen's html page to be opened to the top.
6. Close the "Default Web Site" property window, stop the service execution using the "Stop"
command from the "Action" menu and the restart it using the "Start" command from the
"Action" menu.
The screenshot below shows which Windows components must be installed in 7 (IIS 7.5):
18
19
1.14. Setting Client as Read Only
Movicon allows you to generate HTML page automatically, to let the user access to the server through
a Web Browser, offering by default the full interoperability for settings data and commands, even
through the browser. Of course, the sever can be configured to require the User Log On to enabling
commands.
• Furthermore is possible to setting the Web Interface in order to let the user to Read
Only the information, without the capabilities to set commands independently from
the User Log On.
To obtain this, you have to modify the Java Applet parameters for the Web Client within the HTML
code related to the screen access via web, as generated automatically by Movicon on the server.
By modifying the default value "true" with the "false" value instead, even for single
parameter, you will obtain the disabling of the mouse command from the Web Client
interface, creating a "Read-Only" web client interface.
1.15. Recipes
The Recipe management (Data Logger/Recipes) is fully supported on the Web Client side.
The recipes are effectively managed and filed on the Server, however the recipe user interface, being
completely vectorial, is also fully supported on the Web Client side.
The Web Client user can therefore insert, change or cancel plant production recipes according the how
the Server screens have been predisposed.
http://<ServerIPAddress>/<VirtualDirectory>/<SynopticName>.html
The browser will display a screen page using the graphic resolution which was setup when the HTML
page was created during the programming phase on the Server side.
The browser will display the HTML page, which was created and configured by Movicon on the server
in programming mode. Any access errors may be due to:
1. The Server is not available: the address or the path are not correct or have changed
2. The server is not available: Movicon is not running on the Server
3. Access forbidden: The Client does not have the appropriate access rights needed for
connecting to the Server (WebClient Users = 0 in license settings) or the maximum number
of clients connected at the same time has been exceeded
20
4. Web Server has not been configured properly: more than likely that the Web Server's
configuration parameters have been changed, for which we suggest you recreate the HTML
page automatically from the Movicon Server: the configuration will be restored
If you have a server based on Windows CE, you will need to configure the web server on the device.
In order to do this you should refer to the device documentation supplied by its manufacturers.
http://<ServerIPAddress>/WebAdmin/
When the Server is based on Windows CE, you need to pay special attention to the
hardware resources available on the device. The amount of resources being used
on the server is in proportion to the number of Web clients connected. To avoid
problems due to resource scarcity, Movicon CE will reduce the maximum number
of Web Client users, at the same, time to two.
When using Windows CE you need to create the html file before exporting the
project to the device. In this way the project download will also copy the html and
the applet java files on the CE device. The html file is created by using the
appropriated commands found on the menu which appears after double-clicking
the mouse on the screen, in the 'Project Explorer' window.
1. Copy the Movicion Web Client applet file to the Client is not available. The file in question is:
MovWebClientX.jar
This file is found in the Movicon installation folder or on the installation DVD.
2. Launch Movicon Web Client using a command line by means of Windows "Start - Run" or by using
the operating system's DOS command prompt available in the Client, or by using a ".bat" file (or a link
to it) with the following command line:
Where:
• Server: Movicon Server PC name or IP address. This parameter is used by the applet to know
which Server it must connect to. If not given the appliet will display an input box at startup to
enter the Server's name orIP address.
• Screen: name of the screen to display when the applet is opened. If no parameter is provided,
the applet will display the screen set as the server project's startup screen.
• Width: Width in pixels of the window that is opened on "java" command. This parameter is
optional.
• Height: Height in pixels of the window that is oened on "Java" command. This parameter is
optional.
21
• Port: TCP port number that Server will use in listening mode and set in the Networking transport
properties. This parameter optional. If not provided the "12233" default port will be used
instead.
Example:
or
or
The "java" command is only acknowledged when the Jave Runtime installation folder
path has been inserted in the variable within the ambient of the Windows "Path"
ambient. Otherwise the whole java executable path will have to be specified. For
instance, in a Windows 7 operating system the command line might result as:
Internet access has already been configured on some telephones, but if this is not the case just contact
your telephone dealer and ask for advice on how to do so. In certain cases an sms for auto-configuring
the connection is sent directly by the dealer.
At this point you should load and install the Web Client's midlet on your phone:
1. connect to the internet and download the midlet from the www.progea.com\midlet.htm
2. once loaded you will be asked to install the application. The following message will also appear:
"Movicon WebClient is nota reliable application. Do you want to continue?". Confirm and
continue with the installation procedures
Once installation has terminated the "WebClient" icon will appear on the mobile phone's application
page with which you can launch the application. The WebClient application must be configured with
the address of the Server to connect to. by using the "Settings" menu item you can insert the Server's
setting and also a list of Servers to select from when connecting. To add a Server to the list just fill in
the displayed fields. The main field that need configuring are:
• Configuration Name: this is the name given to the Server to identify it on the list for
selecting. This name can be chosen as pleased
• Server Name or Address: this is the Server's IP address or url to connect to. For example,
"Server1.Project.it" or "192.168.0.48"
• Server Port: this is the network port used by the Server whose default value for Movicon is
12233
Once the Server's parameters have been inserted, it will be possible to save the values and add the
server to the list using the "Add" command from the menu. When you wish to change the parameters
22
of a Server already on the list, you must first select the Server, change the parameters and the use
the "Save" command from the menu. There is also a "Remove" command on the menu for deleting
Servers from the list.
At this point it just remains to execute the WebClient connection using the "Connect" command. You
will be asked to select a Server from the list to connect to. After having selected and confirmed a
Server, you may have to execute the " "Connect" command again. If your telephone is not connected
to a WiFi network, you will be asked which access point to use. Select the one you normally use for
connecting to internet. Once WebClient is connected to the Server you can open screens, set variables,
etc., by using the commands provided.
Take note! No Server Screen will appear when the WebClient connects to it. Instead you will
be provided with a menu with a list of commands to be executed among which you will find
one to open the different screens.
According to tests carried out by Progea it has been discovered that not all the access points
on the telephone (usually there are more than one) allow you to access the Server properly.
Normally the email access point is the most reliable one to use in order to get a good
connection response.
The "Get my Variable List" command in the midlet which generates a list of project variables
is not available if the RealTimeDB contains Structure or/and Array type variables. In this case
the command will return an error. However, you can still obtain array or structure variable
values by selecting name or member name directly from the "Select Variable" menu (i.e.
"_SysVar_:ActTimeString" o "myArray001[0]").
1.19. Authentication
Web Client access to the Movicon Server may require users to Log On according to how the project
was configured on the Server side.
The password for web client connection may be requested but may not be accepted for the
following reasons:
1. The Server does not have its WebClient option enabled on the runtime license
2. The Server has child projects with their "Network Server" enabled using the same TCP
port for listening as used by the parent project
3. The IIS has not been installed in the server's operating system (Windows Professional
version)
All Web Client accesses with log on will be recorded in the Server's system Log to identify the users
connected.
After access has been gained and the user needs to interact with an object
which has a password level higher than theirs, the user will not be requested to
login again but will be banned from using object. Therefore it will be necessary to
carry out Server access authentication procedures again but with a user that has a
higher level to gain interaction access with this object. In order to do this, you will
have to restart the Web Client session by, for example, doing a html page refresh
( or by using the "Log in as a different User..." command if using a Midlet).
23
1.20. Web Client HTML5
1.21. Overview
As a cross-platform software, Movicon has a built-in Web Server based on the Websocket technology
that permits you to access your supervision system by means of using a HTML5 Web Client session.
Any Browser supporting the HTML5 canvas elements can be used to start a Web session by connecting
to the Movicon Server using the Web Socket communication protocol to communicate. Once
the "WebClient.html" HTML page residing in the Movicon installation path's "WebClientPages"
folder has been loaded, a Java Script is run and which connects to the Movicon Web Server. All the
computational part is done on the Server side, being Movicon, because the BMP images used in Screens
or the section of Screens that need to be updated are transferred from the Server to the Web Client.
The Movicon's built-in Web Server responds to port 8080 for default and sends the "WebClient.html"
HTML page that then establishes a WebSocket connection using Java Script in port 8088 (default).
Both the TCP/IP ports are parameterized by means of using the Project's Networking resource's
"WebSocket Server" options.
Unlike the Web Client functionality based on the Java Applet technology, there is no need to install a
Web Server and configure a Virtual Folder on the Movicon Server side and install a Java Virtual Machine
in Client machines run as Web Clients. A condition that is necessary to Java Applet Web Clients.
For more information about the limitations of the HTML5 Web Client see the general chapter "web
client limitations"
You can set the ‘Web Server Port’ (default '8080') with
any value but you will need to make sure that the value
you set does not come into conflict with other
applications running in the system that use the same
port value.
1. Get a valid SSL Certificate issued by a CA entity, for example a .CRT file together with the .KEY
Private Key file, and convert the .CRT file into a ".DER" file (using a dedicated tool) .
2. Activate the "Secure Websocket" option in the "Networking - Websocket Server" properties
3. Click the "Create Certificate" button to generate the "WebCfg.xml" file in the Project Folder
4. Edit the "WebCfg.xml" file setting the paths to reach the "* .DER" and "* .KEY" Certificates
files
5. Web Client side open the page using, for example, the address: https: // url_site: 8080
24
where "URL_SITE" is the URL address which has been used to ask the CA for the SSL Certificate and
8080 is the value of the Default TCP port set in the Project's "Networking - Server Websocket"
property.
Basically, the moment in which the Web Client accesses in Https mode to the site, this happens:
• To start a local Web Client HTTPS session, open the Browser and enter this
address://localhost:8080
• To start a Web Client session from a machine in net, make sure that the Movicon Server
machine is reachable over the net (check for Firewall, Antivirus, etc) then open the Browser
and enter this address: https://<Nome_Server>:8080,where <Server_Name> is the Windows
name of the machine where the Movicon Server is installed.
NB: to disable the State Bar set the parameter with the
'0' valore': "?/B=0"
3.To start the Web Client session from a machine in the network, make sure that the Movicon Server
machine is reachable over the net (check for Firewall, Antivirus, etc) open the Browser and enter this
address: http://<Server_Name>:8080/?B=1, where <Server_Name> is the Windows name of the
machine where the Movicon Server is installed.
4. If you wish to open a screen which is not the one set for default, enter the name of the desired
screen in the Browser's Address Bar using the following syntax:
http://localhost:8080/ScreenName?B=1
or
http://localhost:8080/ScreenName/?B=1
25
or
https://localhost:8080/ScreenName?B=1
where"ScreenName" is the name of the screen to be displayed on the Web Client page.
In the browser, the sound reproduction follows the same logic used by the Movicon sound reproduction
(see topic "Sound Management for Project Alarms" ).
Disabling or enabling the sound in Movicon projects will not have any influence on the disabling or
enabling of Alarm sounds in the Web Client execution instance and viceversa.
For example:
"http://localhost:8080/screen2/?B=1"
26
27
M O V I C O N 1 1
Movicon™ is a trademark of Progea, related to the HMI/SCADA platform entirely developed and produced
by Progea. © 2016 All Rights reserved.
No part of this document or of the program may be reproduced or transmitted in any form
without the express written permission of Progea.
Information in this document is subject to change without notice and is not binding in any way for the
company producing it.
28