The OAS HMI Wizard provides an easy way to generate HTML code for inclusion in your web-based HMI or SCADA application.
NOTE: If you want to visualize your data in a desktop or mobile browser with zero programming, you may be interested in the OAS Open UIEngine . The UIEngine is a robust no-code web application and HMI builder for developing rich user interfaces in a browser-based development environment. See the UIEngine Documentation to learn more.
The OAS HMI Wizard is also self-hosted on your own OAS installation at http://localhost:58725/app/wizard/. Use this self-hosted wizard to prototype update from your own tags.
View the following video to see how to use the Web HMI Wizard to automatically create HTML code to provide live data.
00:00 – Introduction
00:26 – Methods for Using OAS Web HMI Product
00:32 – Programmatic Method
01:00 – Web HMI Code Wizard
01:26 – What is the Web HMI Code Wizard?
02:09 – Code Wizard closer look
07:38 – HTML Element View
08:59 – HTML Attribute list
09:34 – Tag Text
13:55 – Other HTML Attributes
15:05 – More Information
To use the wizard:
Locate in the left hand pane the parameter your require code for.
Fill in the parameter values e.g tag name, client side event etc. The HTML code sample updates as you enter values.
Select the HTML element you wish to output (top of right hand pane).
Copy the code snippet and paste into your HTML page.
The following content will get you started with Web HMI, building your own web user interfaces with real time data.
NOTE: If you want to visualize your data in a desktop or mobile browser with zero programming, you may be interested in the OAS Open UIEngine . The UIEngine is a robust no-code web application and HMI builder for developing rich user interfaces in a browser-based development environment. See the UIEngine Documentation to learn more.
View the following video to see how to use Web HMI to create user interfaces.
00:00 – Introduction
00:07 – What’s HMI?
00:54 – Open Standards
01:03 – Web HMI utilizes a direct line of communication
01:23 – What can be built with Web HMI?
02:51 – Setting Up the server
02:57 – First Step – Registering a listener on the server
03:40 – Configure Tags
04:25 – Writing Code
05:47 – Text Editor
06:07 – HTML attributes
14:12 – Develop Same Functionality Programmatically
18:30 – More Information
Step 1
Configure Web Services within the OAS Platform. For instructions on how to accomplish this as well as optionally using SSL for secure communications, see the following article: Configuring OAS Web Services
Step 2
Create a project directory. (Example C:\myWebHMI)
Step 3
Copy the 4 supplied files from C:\Program Files\Open Automation Software\OAS\HTML_HMI, js and css subdirectories to your project directory keeping the directory structure just the same.
In the web page set the serverURL to the IP Address, Network Node Name, or registered domain name of the Linux or Windows devices where the OAS Engine located.
serverURL: 'http://192.168.0.1:58725'
Specify the tag names in the HTML code as local tags. The web browser can be run locally or remotely, it will communicate to the server specified in the serverURL as a relative path for the tag values. In this example the tags would be running on the same server as 192.168.0.1 and the content in the page would reference the tag as local even if the client browsers are running on remote devices.
Local Tag
myGroup.myTag.Value
If the tag is located on a different system than the serverURL or you want to host data from multiple OAS Engines use the Remote Tag Access syntax.
NOTE: To be able to set a value (write to it) it must first be setup to read in the web application.
Open Automation Software provides a tool for automatically creating the HTML code to read and write to Open Automation Software Tags using the HTML HMI Wizard.
For installing and configuring the Open Automation Software Server, please refer to the product documentation. To configure a web page to communicate with the server, you must include:
jQuery v1.8.3 or later, found at jquery.com and is also distributed with the OAS Web HMI product
The OAS Web HMI Script Library
The OAS Web HMI Stylesheet, which is used for styling modal dialogs and can be modified to fit your web design
A small block of Javascript containing an authentication token and URL location of the Open Automation Software Server – configuration options will be detailed below
NOTE: As of v2.6.0 of the Web HMI script library, object and attribute names have been changed to avoid confusion with OPC protocols and standards. The new object names are as follows:
OPC_config is now OAS_config
Top level OPC class used for calls such as OPC.authenticate is now OAS
Markup attributes are no longer prefixed opc-tag-, and are now oas-tag-.
Script libraries are backward-compatible, so existing code with “OPC” nomenclature will still function with no issues
To check your current script version, open an application using Web HMI in your browser, open a debug console and execute the command: OPC.version
The following is an example of a properly configured, minimal HTML page:
Of course, this example does not contain any bindings to OAS Server Tags, but contains all elements necessary to connect to a server located at http://localhost:58725 using an authentication token of7e61b230-481d-4551-b24b-ba9046e3d8f2.
NOTE: If you want to visualize your data in a desktop or mobile browser with zero programming, you may be interested in the OAS Open UIEngine . The UIEngine is a robust no-code web application and HMI builder for developing rich user interfaces in a browser-based development environment. See the UIEngine Documentation to learn more.
For programmatic custom applications, Web HMI is an SDK for embedding real time OAS data in your own application code using Javascript.
OAS Web HMI provides a flexible, platform-independent way to integrate with Open Automation Software Servers.
“Controls” themselves are simply existing HTML elements marked up with attributes that are parsed at runtime, so you are free to use any web technology that you prefer, including (but not limited to) ASP.NET or .NET MVC, JSP, PHP, Ruby on Rails, or even static HTML with JavaScript.
Compatible with front end frameworks such as Angular and VueJS.