Overview – Networking

Select data networking features based on your business needs. Send and receive data through any corporate network securely, with our without the Internet.

Basic Networking can be used directly with any client application without any additional setup.  This configuration can be used when the data server(s) have fixed IP Addresses, registered domain names, or network node names that can be accessed from every remote client.Learn More about Basic Networking

Live Data Cloud Networking is used when the data source services do not have a fixed IP address.  An example would be a laptop or server PC that has a standard Internet connection and you want to access its data over the Internet.Learn More about Live Data Cloud Networking

Network Forwarding is used in corporate networks where you need to redirect / bounce network communications through one or more servers to reach the data source from client applications.  Most commonly to connect industrial networks together with business networks.Learn More about Network Forwarding

One Way Networking is used to transfer data through networks that have communication diodes that only allow one direction of communications.  Most commonly used by our nuclear power customers.Learn More about One Way Networking

Overview – Networking

All features of Open Automation Software including configuration tools and all .NET components support remote connections over your LAN, WAN, VPN, and the Internet.  Visit the OAS IoT Network page for comparison of advantages over typical cloud networks which are push/pull communications.

Visit the Getting Started-Networking page for helpful features like network node aliasing in client applications and how to check if your TCP port is open.

All communications for Open Automation Software uses TCP communicaitons with an encrypted and compressed byte stream. The data that is transported from clients to services only transfers the data that each client has requested.

Once all of the values are transferred only data points with new values are transmitted in the next packet. So if no new data occurs in the service the packet to the requesting client will contain 0 values. The default rate at which clients will try to obtain data from the service is 30 ms. This can be made faster or slower by setting the property Client Packet Rate under Configure-Options of the service.

Every client that is communicating with the service will obtain this value when communications is first established. If a client cannot get a return back from the service the connection will be considered lost immediately.  Both the service and the client will know when the connection is lost and data.

The actual amount of network traffic that is used is at the smallest possible packet size with binary TCP communications to be able to transfer the value, timestamp, and quality for each tag value to each client.

If you have several remote clients need the same data from a remote service a second service can be setup with remote Tags as a data source to the first service, and all of the clients can communicate to the second service. This would be for all read only data to reduce the communications from a data source service from a remote location with low bandwidth. For any points that need to be written this can be done directly from each client to the remote service.

Data Destinations

Deliver your data to almost any application or database.




Data Route

Use OAS Data Route when you need to transfer data from one OAS Tag value to another Tag, MQTT Broker, Azure IoT Data Hub or IoT Edge. The Tags can be local or remote. When a Tag is set as a Destination values will be written to the Data Source defined in that Tag.

View the following video for a demonstration of transferring a value from one tag to another:


Data Logging

You can log data to SQL Server, Oracle, Access, MySQL, PostgreSQL, Cassandra, MongoDB, MariaDB, SQLite, InfluxDB, and CSV files based on event, continuously, time of day, or on data change.

View the following video for a demonstration of setting up Data Logging:


Alarm Logging

You can log alarms to SQL Server, Oracle, Access, mySQL, PostgreSQL, Cassandra, MongoDB, MariaDB, SQLite, and CSV files based on event, continuously, time of day, or on data change.

View the following for a quick tutorial on alarm logging:


Alarm Notification

Send alarms via e-mail SMS Text or Voice to users matching specific filter criteria.

View the following to see how to setup alarm limits in real-time tag configuration:


Excel

The OAS Excel Connector product provides connectivity to Microsoft Excel Workbooks for both read and write functionality.

View the following video to learn a simple setup for read and write functions in Microsoft Excel:


Reports

The OAS Report Product can generate reports for HTML web pages, Acrobat Reader PDF files, Microsoft Word RTF files, Graphic TIF files, text files, or even directly to the default system printer.

View the following to learn how to setup automated reports:


OPC Client

The OPC Client Connector product enables unlimited local and remote OPC Clients to communicate with a licensed OAS Service.

View the following video to learn how to connect third party OPC Clients for both local and Internet connections.:


Azure IoT

View the following video for a complete demonstration of how to send live data to Azure IoT Data Hub:


.NET WPF User Interface

The WPF HMI .NET product provides Human Machine Interface .NET controls and real-time data communications components for Windows Presentation Foundation applications.

View the following video to learn how to create graphic operator interface applications with OPCWPFHMI.NET and Expression Blend:


.NET WinForm User Interface

The OPC .NET WinForm HMI .NET product provides Human Machine Interface (HMI) .NET controls and real-time data communications components. The product includes the Windows Services to read and write OPC Items and Tag Parameters and process data to unlimited local and remote applications developed with the OPC Controls components.

View the following video to learn how to create classic WinForm HMI applications using OPCWindowsHMI.NET:


.NET Trend

The OAS .NET Trend product provides real-time trending for WinForm and WPF applications and historical trending when combined with the product feature OAS Data Log.

View the following video to learn how to add a trend window to WPF or WinForm application for local and remote connections:


.NET Alarm

The OAS Alarm .NET product provides the features of viewing real-time and historical alarms on unlimited local and remote systems, alarm logging, alarm notification, and alarm statistics.

View the following video to learnh how to add alarm windows to WPF and WinForm applications for local and remote connections:


Smart Client Deployment

Applications developed with 100% managed components can be executed on remote systems without installing the application itself on the remote systems. This makes application updates extremely simple and provides a better user experience than web applications provide.

View the following video for an overview of Smart Client HMI applications and how they work:


Trend and Alarm Dashboard

View the following video to learn how how to use the Trend and Alarm Historian container. Pre-built application to run locally and remotely:


One Click HMI

Automatically setup Tags, Alarm Limits, Data Logging, Trending, Alarming, and HMI Smart Client in one step:


Web User Interface

The OAS Web HMI provides a flexible, platform-independent way to integrate with Open Automation Software Servers.

View the following video for a demonstration of Web HMI for live data using HTML5, CSS, Javascript, JQuery, and JSON:


Web Alarm

The Alarm Control allows you to retrieve and interact with real time and historical alarms from the OPC Server.

View the following video for a demonstration of HTML5 Web Alarm window for live and historical alarms:


Web Trend

Web Trend allows you to retrieve and interact with real time and historical trend data from the OAS Server.


IOS and Android User Interface

Build iOS, Android, Windows Phone and Universal Windows Platform (UWP) apps in a familiar .NET environment – all with a single shared code base.

View the following video to learn how to create iOS and Android Native Apps for live data read and write access:


Data Sources

CHOOSE DATA SOURCES

OAS connects to all commonly used industrial and business data sources. Select a data source to learn more about its setup:

  1. Configure Allen Bradley Driver Interface
  2. Configure Tags
    OAS provides multiple ways to configure tags including:

  1. Configure AWS IoT Driver Interface
  2. Configure Tags
  1. Configure Siemens Driver Interface
  2. Configure Tags
    OAS provides multiple ways to configure tags including:

  1. Configure Modbus Driver Interface
  2. Configure Tags
    OAS provides multiple ways to configure tags including:

  1. Configure MQTT Driver Interface
  2. Configure Tags
    OAS provides multiple ways to configure tags including:

  1. Configure MTConnect Driver Interface
  2. Configure Tags
    OAS provides multiple ways to configure tags including:

  1. Configure Sparkplug B Driver Interface
  2. Configure Tags
    OAS provides multiple ways to configure tags including:

  1. Configure OPC UA Driver Interface
  2. Configure Tags
    OAS provides multiple ways to configure tags including:

Connect to OPC Clients like WinCC Cimplicity, RS View etc. by making OAS tags available as OPC items. Sample client Add OPC items from OPC Server Our OPC server makes OPC items to connect to

Connect OAS local and remote tags to OPC UA Clients.

Use the OAS Excel Tag Browser application to browse OAS tags and enable OAS read / write values from/to an Excel workbook

Use the Configure Recipes interface to configure data transfer from databases to OAS data sources. The data target can be from local or remote OAS Services of Tag Parameter Values. Execution can be continuous or event driven from a Tag Parameter value, or at a specific time of day.  The database providers can be SQL Server, Access, Oracle, mySQL, PostgreSQL, InfluxDB, MongoDB, MariaDB, SQLite, and more.

Add real-time read data to a C#, C++, or Visual Basic.NET WPF, WinForm, or Windows Service application. It is a very powerful method to make any data from a .NET application become a realtime data source.

Read local and remote data from the Open Automation Software realtime database tags where the data source is a web application or web service. You can make use of the OAS products Web HMI, Web Trend, Web Alarm or for greater control use the OAS REST API or the HTTP API.

Create cross platform communication drivers to deploy locally or remotely with custom configuration and optional automated setup.

Data Sources are configured using the the OAS Configuration Manager

Data Sources Overview

Modbus Data Source

If your data source is a Modbus slave device with either Ethernet or Serial physical interface with Modbus TCP, Modbus RTU, or Modbus ASCII protocol use Configure-Drivers and Configure-Tags to setup communications to the devices.

Refer to Getting Started Modbus under System Configuration-Tags for a quick guide on how to set it up.

Allen Bradley Data Source

If your data source is an Allen Bradley controller use Configure-Drivers and Configure-Tags to setup communications to the devices.
Refer to Getting Started Allen Bradley under System Configuration-Tags for a quick guide on how to set it up.

Siemens Data Source

If your data source is a Siemens controller use Configure-Drivers and Configure-Tags to setup communications to the devices.
Refer to Getting Started Siemens under System Configuration-Tags for a quick guide on how to set it up.

MQTT Data Source

If your data source is MQTT use Configure-Drivers and Configure-Tags to setup communications to the devices.
Refer to Getting Started MQTT under System Configuration-Tags for a quick guide on how to set it up.

Sparkplug B Data Source

If your data source is a Sparkplug B Edge of Network Node use Configure-Drivers and Configure-Tags to setup communications to the devices.
Refer to Getting Started Sparkplug B Host App under System Configuration-Tags for a quick guide on how to set it up.

Note: OAS can also act as an Edge of Network Node as a data destination to publish data to a Host and receive Metric values with a NCMD or DCMD command.

MTConnect Data Source

If your data source is MTConnect use Configure-Drivers and Configure-Tags to setup communications to the devices.  The MTConnect driver will automatically generate OAS Tags based on the MTConnect device information received from the Live Data Url.

Refer to  Getting Started MTConnect under System Configuration-Tags for a quick guide on how to set it up.

OPC Server Data Source

If your data source is an OPC Server use Configure-Tags to define a Tag with a Data Source of OPC Item or you can use DirectOPC from the database.
For a detailed presentation of connecting to OPC Servers view the following video:

View Getting Started OPC Server and also the reference for Tags in this help file.

OPC UA Server Data Source

If your data source is an OPC UA Server use Configurat-Drivers and Configure-Tags to define a Tag with a Data Source of OPC UA.

View Getting Started OPC UA Server and also the reference for Tags in this help file.

OPC Clients Data Source

If your data will be coming directly from an OPC Client you can implement the OPC Client Connector product feature which supports local and remote OPC Clients without DCOM.
View the following 4 minute video on OPC Client Connector:

View the OPC Client Connector Quick Start and reference on OPC Client Connector in this help file.

OPC UA Clients Data Source

If your data will be coming directly from an OPC UA Client you can implement the OPC Client Connector product feature which supports local and remote OPC UA Clients to connect to local and remote OAS Tags.
View the Getting Started – OPC UA Client reference.

Microsoft Excel Data Source

You can use Microsoft Excel as a data source for Open Automation Software with the product feature OAS Excel Connector.
View the following video on  OAS Excel Connector:

View Getting Started OAS Excel Connector and reference on OAS Excel Connector in this help file.

Databases Data Source

You can use SQL Server, Oracle, Access, and MySQL as a data source for Open Automation Software with the product feature Recipe.NET.
View the following 27 minute video on Recipe.NET:

View the Getting Started Recipe.NET and reference on Recipe.NET in this help file.

.NET Applications Data Source

By implementing a Windows Service, WinForm application, HTML application and WPF application as a data source the type data to be able to share with Open Automation Software is almost unlimited. This is implemented with the data component from OPC .NET WinForm HMI .NET.

Universal Driver Interface

Create your own driver for OAS that can be deployed either locally or remotely, even for cross platform support.
See the UDI Technical Overview for an introduction and follow the Create a Driver help topic for step by step instructions.
For an overview of a UDI example view the following video:

Calculations

How to setup math equations and logic as a Data Source with the built Calculation engine for all products.

View the Getting Started – Calculations reference guide.

Data Route – Data Transfer

How to setup automated data transfer from one source to another locally or over on your LAN, WAN, and Internet.

View the Getting Started – Data Route reference on how to define targets from source tags.

HTML Web Application

OAS communicates with HTML-based applications using JSON over HTTP/S.

API Access

OAS provides the following API access for integrating with custom clients and for full programmatic access to live and historical data:

  • REST API – The OAS REST API exposes functionality for reading and writing real-time and historical Tag Data, Trend Data, and Alarms. Additionally, the API can be used for managing OAS Server configurations.
  • HTTP API – Make HTTP calls using JSON data structures

.NET Application Data Source

The .NET Data Connector product can be implemented to turn your .NET code variables into live data for the OAS Engine. The WriteTags method is used to pass in an array of tag name, array of values to write, and optionally timestamps to maintain 100 nanosecond resolution to the final destination from the OAS Engine.

The OASData.dll assembly is a .NET Standard 2.0 assembly which enables read and write access to all OAS Engines running locally or remotely.

Applications can target the following frameworks.

  • .NET 5
  • .NET Core 2.o or greater
  • .NET Framework 4.61 or greater
  • Xamarin.iOS 10.14 or greater
  • Xamarin.Android 8.0 or greater
  • UWP 1.0.0.16299 or greater

The same access can also be provided in the legacy assemblies for Framework 4.6 or less using the legacy assembly OPCSystemsDataConnector.dll.

The OAS Example Service Code is a working example of reading and writing tags synchronously and asynchronously.  This includes example projects for both C# and VB for .NET Core Console App to run on all operating systems including…

  • Linux
  • Windows
  • Mac
  • Android
  • iOS

There is also C# and VB projects to run as a Windows Service.  The code examples in all 4 projects are the same to show adding tags programmatically and the asynchronous and synchronous methods for reading and writing data.

Refer to .NET Realtime Data Access for details on all methods supported

Visualization – .NET Application

The OAS .NET products provide Human Machine Interface .NET controls and real-time data communications components for Windows Presentation Foundation (WPF) and WinForm applications.

HMI applications can be developed using Microsoft Visual Studio 2010 (or later), Xamarin or Microsoft Blend.

  • WPF HMIAdd visualization to a C#, or Visual Basic.NET application using WPF
  • Winform HMI Add visualization to a C#, or Visual Basic.NET application using WinForm
  • .NET Trend Add real-time trending for WinForm and WPF applications and historical trending when combined with the product feature OAS Data Log
  • .NET Alarm View real-time and historical alarms for WinForm and WPF applications
  • Realtime Data Access – Programmatic Reference write local and remote data of the Open Automation Software realtime database tags

More:

Visualization – HTML Web Application

OAS communicates with HTML-based applications using JSON over HTTP/S. Creating applications is straightforward – code a custom interface then add OAS Javascript libraries and OAS specific code.

  •  Web HMI – create user interfaces to display and interact with real time server data, enabling a whole range of applications on any device with a web browser.
  • Web Trend – add real time animated charting to display server tag values on any device with a web browser.
  • Web Alarm – retrieve and interact with real time and historical alarms from the server.

API Access

OAS provides the following API access for integrating with custom clients and for full programmatic access to live and historical data:

  • REST API – The OAS REST API exposes functionality for reading and writing real-time and historical Tag Data, Trend Data, and Alarms. Additionally, the API can be used for managing OAS Server configurations.
  • HTTP API – Make HTTP calls using JSON data structures

More:

Getting Started – CANBus

Open Automation Software Tags can be defined to connect directly to devices using the CANBus standard using OAS built in CANBus Driver Interfaces.

The following steps can be used to setup direct communications with controllers using the CANBus standard.

Step 1

Getting Started-Tags 1Start Configure OAS application from the program group Open Automation Software.

Step 2

Select Configure-License and verify that CANBus is one of the available Drivers in the lower left of the form.  If you do not CANBus driver available contact support@oasiot.com to update your license.

Getting Started Modbus 1

Note: You will need to be running Open Automation Software Version 8.0.0.10 or greater to support direct CANBus communications.  You can download the latest version here.

Step 3

Select Configure-Drivers.

Getting Started Modbus 2

Step 4

Select localhost or the remote service you wish to modify with the Select button to the right of the Network Node list.

Getting Started Modbus 3

Note: Optionally select the Live Data Cloud node if you are hosting CANBus data over the Internet with a standard Internet connection.

Step 5

Enter a meaningful Driver Interface Name that you will refer to this physical connection when defining Tags with a CANBus Data Source.

Define the properties for the desired physical connection.

Note: You may need to Set Default Network Adapter for Driver Interfaces of the operating system.

Note: Set the Driver to CANBus.

Step 6

Select the Add button in the lower part of the form to add the Driver Interface as an available selection when defining Tags in the next step.

Getting Started Modbus 6

Note: If you need to define several Driver Interfaces you can use the CSV Export and CSV Import on the toolbar in the upper right together with Microsoft Excel.

Step 7

Select Configure-Tags.

Getting Started Modbus 7

Select localhost or the remote service you wish to modify with the Select button to the right of the Network Node list.

Getting Started Modbus 3

Note: Optionally select the Live Data Cloud node if you are hosting Modbus data over the Internet with a standard Internet connection.

Step 8

Select to Add a Tag.

Note: You can also add organizational Groups as many levels deep as you prefer and add tags to groups.  To do this first add a Group to the root level, then right click on the Group in the right window to add additional Groups or Tags.

Getting Started-Tags 8

Step 9

Change the Data Source Tag property to CANBus.

Step 10

Select the correct Driver Interface from the Driver Interface pull down list.

Step 11

Specify the desired Polling Rate for the Tag.

Specify the Address of the variable to read and write to.

Step 12

To define multiple tags use the CSV Export and CSV Import on the toolbar in the upper right together with Microsoft Excel.

Note: You can also programmatically define Tags using the free to use OPC Systems component as demonstrated in the Form FormConfigureCSV in the WinForm Example Code application that installs with Open Automation Software in the Program Group Open Automation Software.  This component can be used in any .NET application includes Web Services, Windows Services, WPF Applications, and ASP.NET or .NET MVC Web Applications.

Step 13

Select the Save button on the toolbar at the top.

Getting Started-Tags 19

Step 14

Create a directory on the local C: drive with the name OPCSystemsDemo.

Save the file DemoTags.tags in the directory C:OPCSystemsDemo.

Getting Started-Tags 20

Step 15

Under Configure – Options set the Default Tag Configuration File so when the computer restarts the tag file will automatically be loaded.

Getting Started – REST API

The following guide demonstrates how to connect to the OAS REST API.

To see how to use the OAS Platform with an external REST API view the Moving Data to an External REST API Use Case.

  • 00:00 – Introduction
  • 00:12 – What is REST API?
  • 00:48 – What CRUD stands for?
  • 00:52 – Database Terms for CRUD
  • 01:00 – HTTP Parallel Methods
  • 01:11 – Examples – Resources URLs
  • 03:29 – What JSON stands for?
  • 04:01 – Example – Difference between XML – JSON
  • 04:22 – When to use OAS REST API
  • 05:21 – REST Client Example Code
  • 06:03 – Before using REST API
  • 08:55 – REST Client Sample Code
  • 10:03 – JavaScript
  • 11:10 – Set HTTP Status
  • 11:35 – Add Virtual Directory
  • 12:12 – Sample Rest API Client
  • 13:14 – Create a Tag List to Monitor
  • 15:30 – Visual Studio
  • 17:45 – Postman Application
  • 21:08 – More Information

Step 1

To use the OAS REST API you must make sure that the OAS HTTP service is listening on the correct port. This is done within the OAS Configuration application.

Open the OAS Configuration application and select Configure > Options, then select the network node (localhost if working on the local machine) and click Select.

Under the Networking tab, locate the field for REST API/WebHMI Port Number. The default is 58725 but can be changed. If you are accessing the server from a remote client, you will also need to make sure your machine and/or company firewalls allow TCP traffic on the selected port.

Using SSL with REST API is fully supported.
Read more about Configuring OAS to use SSL for Web and REST API products.

REST API Network Settings

NOTE: Making any changes to the port numbers in this section of the configuration app will temporarily restart server processes and may cause a brief interruption in data processing.


Step 2

Install Postman

Navigate to http://restapi.openautomationsoftware.com to open the REST API online documentation.

This documentation illustrates all of the operations available to any REST API client and can be tested using the Postman application client.  In the upper right corner of the documentation, you will see a button to Run in Postman, which will install the API documentation into the Postman client for direct execution against any OAS server.  Additionally, the documentation can be configured to display code samples in multiple languages including cURL, jQuery, and NodeJS. Feel free to browse the documentation at any time and to refer back to it while developing your applications.

Clicking Run in Postman will pop up a dialog box to import the REST API into an existing installation of Postman, or you can choose to install the app for the first time. Postman is available for Windows and Mac desktops as well as in a Chrome extension.


Step 3

Test your API installation

Once installed and the API has been downloaded into the app, you will see the following interface, with all operations on the left, organized identically to the online documentation:

The first operation to execute is the Authenticate call, which will generate a REST API session and returns a clientid and token to be used in all subsequent calls to the OAS server.

In the list of operations, expand and select Authenticate and you will see the following on the right side of the app:

This shows that the Authenticate operation is executed as an HTTP POST against the /authenticate URL appended to the base {{url}}. This base URL is defined in your Environment here. Select Manage Environments to add new fields:

Add your server to the Environments list

Click ADD to create a new Environment which will hold environment variables:

Add a name for your environment, then add a key of url with a value of http://localhost:58725/OASREST/v2 and click ADD to create the new environment. You can also use your OAS server’s IP address instead of localhost, if you are connecting to it from a remote workstation.

Next, return to execute the the Authenticate operation.

Now under the Environments dropdown, select your new Environment. You should see the {{url}} turn orange, indicating that the environment variable is being used.

You can now click SEND to execute the post against your server. If successful, you should see a response body similar to the one below, containing the clientid and token fields.

You can then use these fields in the header of all other operations using the Postman app to test your server.


Step 4

Accessing Tag Values

Once authenticated, you are now able to use the clientid and token in HTTP headers to make calls to configure Tags, access real time and historical Tag data, and even real time and historical Alarm and Trend data. When referencing Tags in any call, you it is assumed that you are accessing them on the OAS server being called in the REST API. However, you can also access remote Tags on any OAS server networked with the target server. Read more about the proper syntax for accessing Tags and Tag Variables.


Remote Access

OAS servers can communicate with each other and pass along tag data. This allows for distributed network load as well as placing OAS servers behind firewalls so they cannot be accessed directly. This allows you to securely issue REST API calls against one server and read/write data within a remote OAS server that cannot be reached directly from the REST API client. This same concept applies whether you are calling the OAS REST API or using the .NET Data Connector for programmatic Tag access and configuration.

  • Main OAS Engine : the server handling the REST API calls
  • Remote OAS Engine : the server housing the tag data or configuration you would like to access

REST API URL

Set the url to OAS Engine that the REST API will be hosted from. This is the URL to the Main OAS Engine whether you are accessing tag data on the Main OAS Engine or on a Remote OAS Engine.

Localhost URL : will only work when accessing the Main OAS Engine on the same machine as the client.

http://localhost:58725/OASREST/v2

Explicit URL : use the IP Address or domain name of the Main OAS Engine, allowing you to access it from a remote client. This will also work on the same machine and is the best option for code flexibility.

http://192.168.0.1:58725/OASREST/v2

Tag Access

Main OAS Engine Tag – accessing tag data on the Main OAS Engine only requires referencing the tag path.

{
    "tags": [
      {"path":"TagName.Value"}
    ]
}

Remote OAS Engine Tag – To monitor real time data from Remote OAS Engines reference the tag path in the form \\<Remote OAS address>\<Tag Path>. Note in the example below that backslash characters are escaped within strings, changing \ to \\ and \\ to \\\\.

Basic Networking – Static IP or domain name

{
    "tags": [
      {"path":"\\\\192.168.0.2\\TagName.Value"},
      {"path":"\\\\192.168.0.3\\TagName.Value"},
      {"path":"\\\\myserver.com\\TagName.Value"}
    ]
}

Live Data Cloud Networking – Dynamic IP
Once you have registered named Live Data Cloud nodes on an OAS server, you can reference them in the form RemoteSCADAHosting.<Node Name>.<Tag Path>.

{
    "tags": [
      {"path":"RemoteSCADAHosting.LiveDataCloudNode01.TagName.Value"},
      {"path":"RemoteSCADAHosting.LiveDataCloudNode02.TagName.Value"},
      {"path":"RemoteSCADAHosting.LiveDataCloudNode03.TagName.Value"}
    ]
}

Remote Configuration Calls

To execute REST API Tag Configuration calls against Remote OAS Engines, you can use the networknode parameter to reference a static IP or domain name, or the ldc parameter to reference a Live Data Cloud node name. The example below demonstrates calls to the CSV Tag configuration calls using each of these methods.

Basic Networking – Static IP or domain name

http://192.168.0.1:58725/OASREST/v2/csvtags?columns=Tag,Value - Data Type,Value - Value,Last Column&networknode=192.168.0.2

Live Data Cloud Networking – Dynamic IP

http://192.168.0.1:58725/OASREST/v2/csvtags?columns=Tag,Value - Data Type,Value - Value,Last Column&ldc=LiveDataCloudNode01

Remote Security

Because your authentication call is always against the Main OAS Engine, that same credential will be passed to any networked OAS Engine when referencing remote Tags. So it is critical to make sure the same credential (username/password) exists on all networked OAS Engines and has been granted the appropriate access level for the command being executed.

Getting Started OPC UA

OAS is both an OPC UA Client and OPC UA Server.

Open Automation Software Tags can be defined to connect to OPC UA Servers with the built in OPC UA Driver Interface.

If you want interface OAS with an OPC UA Client please see the Getting Started OPC UA Client guide.

The following steps can be used to setup communications with OPC UA Servers.

Step 1

OASStart Configure OAS application from the program group Open Automation Software.

Step 2

Select Configure-License and verify that OPCUA is one of the available Drivers in the lower left of the form. If you do not see the OPCUA driver update your Open Automation Software to the latest version.

OPC UA License

Note: You will need to be running Open Automation Software Version 10.0.0.12 or greater to support OPC UA communications. You can download the latest version from our Open Automation Software Download page.

Step 3

Select Configure-Drivers.

Configure Drivers

Step 4

Select localhost or the remote service you wish to modify with the Select button to the right of the Network Node list.

Network Node

Note: Optionally select the Live Data Cloud node if you are hosting OPC UA data over the Internet with a standard Internet connection.

Step 5

Enter a meaningful Driver Interface Name that you will refer to this physical connection when defining Tags with an OPCUA Data Source.

Define the properties for the connection to the OPC UA server.

OPCUA Driver Configuration

Set the Driver to OPC UA.

Note: If you enable security the certificate path is C:\ProgramData\OpenAutomationSoftware\pki on Windows and /ConfigFiles/pki/ on Linux.

Optionally define a secondary failover server if the primary server fails with the property Enable Failover.


If both the primary and secondary servers are offline the Return to Online settings determines the retry frequency.

View Driver Interface Failover for more information and and video demonstrating communications failover.

Step 6

Select the Add button in the lower part of the form to add the Driver Interface as an available selection when defining Tags in the next step.

Add Driver

Note: If you need to define several Driver Interfaces you can use the CSV Export and CSV Import on the toolbar in the upper right together with Microsoft Excel.

Step 7

Select Configure-Tags.

Menu Configure Tags

Select localhost or the remote service you wish to modify with the Select button to the right of the Network Node list.

Network Node

Note: Optionally select the Live Data Cloud node if you are hosting OPC UA data over the Internet with a standard Internet connection.

Step 8

Select to Add a Tag.

Note: You can also add organizational Groups as many levels deep as you prefer and add tags to groups.  To do this first add a Group to the Tags Group at root level, then right click on the Group in the right window to add additional Groups or Tags.

Add Group

Step 9

Change the Data Source Tag property to OPCUA.

Data Source OPCUA

Step 10

If you have more than one OPC UA Server defined in the Driver Interfaces select the desired Driver Interface.

OPCUA Driver Select

Step 11

Specify the desired Polling Rate for the Tag.
Use the Browse button to browse the OPC UA Server for the IdType, NodeId, Namespace, and Data Type or manually set them.

OPC UA Driver Configuration

Browse OPC UA Server

Note: If you are unable to connect to the OPC UA Server due to a certificate security error go to C:\ProgramData\OpenAutomationSoftware\pki\ on Windows or the pki sub-directory where the OAS Engine is located on Linux and copy the files in the rejected\certs directory to trusted\certs.

You can also enter the domain name in the Domain Name Override when Use Security is enabled.

Step 12

To define multiple tags use one of the following optional methods.

  • Use One Click OPC UA to automatically create tags from all OPC UA Nodes from a selected OPC Server or branch within an OPC Server. Then selectively delete the groups and tags that are not required.
  • Use CSV Export and CSV Import on the toolbar in the upper right together with Microsoft Excel to add or modify tags.
  • Programmatically define Tags using the free to use OASConfig component with the TagCSVImport method.
  • Programmatically define Tags with the OAS REST API.

Step 13

Select the Save button on the toolbar at the top.

Save

Step 14

Create a directory on the local C: drive on Windows or sub folder on Linux with the name OASDemo.

Save the file DemoTags.tags in the directory C:\OASDemo.

Save Tags

Step 15

Under Configure – Options set the Default Tag Configuration File so when the computer restarts the tag file will automatically be loaded.