OPC DA/HDA CONNECTOR

Prerequisite

● A Braincube IoT Server
● The application OPC DA/HDA install (see appsmanager)
● An OPC DA/HDA server protocol available and working
● A Windows machine with version Windows 8/Windows Server 2016 and ulterior

The node settings

1) Basic infrastructure

First of all, check where your OPC DA Server is allocated.
If the OPC DA Server is installed in the same machine of the wrapper agent, it will have a COM connection.
Otherwise, if the OPC DA Server is installed in a remote machine, it will have a DCOM connection.

Pay attention to your COM/DCOM configurations. It will be essential for a good connection.

imagem_1_opc_da

2) Download the OPC DA/HDA node from Apps Manager

Once the application OPC DA/HDA installed you will find new nodes in your node palette:

imagem2opcda

The OPCDA_in is designed to help you read data from an OPC DA Server.
You can easily drag and drop this node from the palette to your dataflow and start working with it. The first thing to do is to set up the node:
Download the Wrapper Agent

Double click on the node and choose “Add new wrapper” in “Wrapper List” for new installation.

imagem3opcda

Then, download the installation file

imagem4opcda

3) Install the Wrapper Agent (as administrator)

imagem5opcda

4) Connect the Wrapper Agent

imagem6opcda

5) Configure the OPC Server

Fill the parameters of the OPC Server.
Type in “Apply” then “Update”

imagem7opcda

6) Finish the node configuration

imagem8opcda

7) Configure the tag list

imagem9opcda

HDA node options

When you install the application OPC DA/HDA you will also have an option to extract data using OPC HDA, standing for Historical Data Access. This will be done using another node, the OPC HDA node. It is quite the same configuration except that you will be able to specify a timeframe you want to extract using a function node:

Capture%20d%E2%80%99e%CC%81cran%202023-08-23%20a%CC%80%2011.45.25

In the OPC HDA node you will find two way to extract data:

  • Standard: All data points will be extracted as is.
  • Processed: You can chose how to extract your data, how to aggregate it. For example if your sensors transmit one point every seconds but you want only one point per minute you can select Processed > End > *60000

Capture%20d%E2%80%99e%CC%81cran%202023-08-23%20a%CC%80%2011.45.54

Example

You can find an example of how we implement an OPC DA Server extraction just below:

imagem10opcda

This flow is composed of :

inject: this node trigger the extraction, we chose to set up this node in "interval mode" to trigger the extraction automatically every XX secondes

OPCDA_in: this node is the one we worked on during this article, it connects to an OPCDA Server and extract some data

Change node: this node is only for put at the payload the timestamp

braincubeTransfert: this node upload data to your Braincube Environment

Multiple Extraction configuration

Each extraction is viewed as a unique association like <configuration , taglist> .

Therefore , in order to extract multiple set of tags from different nodes containing a different taglist you must:

  • add new OPC configuration in the wrapper even if the configuraiton is identical.
Here below we would like to setup 2 extractions for different set of taggroup:

Screenshot%202023-11-03%20at%2011.35.27

We therefore need to make 2 configuration of OPC DA (even if it reaches the same server).

-OPC server 1
Screenshot%202023-11-03%20at%2011.32.39

-OPC Server 2
Screenshot%202023-11-03%20at%2011.32.54

Again the taglists in each node are not the same.

-Tag list of group1
Screenshot%202023-11-03%20at%2011.33.03

-Tag list of group2
Screenshot%202023-11-03%20at%2011.33.14

Was this article helpful?

Powered by Zendesk