Skip to content

OPC UA SCADA driver

Connect an OPC UA server and see its values.

The OPC UA driver keeps a session open to each server, subscribes to the nodes your tags use and writes values back. It comes with the core.

How you connect it

From an OPC UA server to live values.

  1. Add the server

    Under Connections, add an OPC UA server with its endpoint URL, such as opc.tcp://host:4840. Choose Security none or secure, and give a username and password if the server asks for them.

  2. Test the connection

    Test connection opens a throwaway session with the saved settings, closes it and reports the latency in milliseconds. It gives up after 15 seconds.

  3. Browse the address space

    Browse starts at the Objects folder and shows objects and variables. Each variable shows its live value, so you can see what you are about to bind.

  4. Make the tags

    Tick the variables you want and create the tags together. They are named after the nodes and bound to this server. A variable that already has a tag shows its path instead of a box, so none is made twice.

What it does

What the OPC UA driver does for you.

Subscriptions, not polling

Values arrive through one subscription per server with a publishing interval of 1,000 ms. Each tag is one monitored item. The driver never polls the server.

Quality and time as the server gave them

The quality of a value is mapped from the OPC UA status code, and the timestamp is the server's own.

Writes go back to the equipment

A write reads the node's declared data type, converts the value and writes it. The server's status code decides whether it worked, and a refusal is shown with the reason.

Structures become tag types

A variable that holds a structure is read as a JSON object. The dashboard can make a tag type from a structure or from a device object, so its variables become the members of one type you reuse for each instance.

Security you can read

With Security set to secure, the driver does not fall back to plain text when a server offers only an unsecured endpoint: the connection fails instead. Server certificates are checked against a trusted folder.

The link is a tag too

Each connection publishes its state, address, tag count and last error as tags with history, so you can trend a link and alarm when it drops.

Settings

What you set, and what it starts as.

The settings of an OPC UA connection
SettingWhat it doesDefault
Endpoint URLThe server's endpoint, such as opc.tcp://host:4840. Required.None
Securitynone sends no message security. secure picks the most secure endpoint the server offers.none
Trust the server's certificateAccept a certificate nobody has trusted yet. Otherwise move it from the rejected folder to the trusted one.Off
Username and passwordThe identity sent when the session is created. Empty means anonymous. The password is stored encrypted and never returned by the API.Empty

What has been tried

As far as it has been tested, and no further.

OPC UA

The driver has read a Siemens S7-1500. Nothing else has been tried. Decoding of structured values is implemented but has not been checked against a real server.

The driver comes with the core.

Questions

Questions people ask.

Which OPC UA servers does Scadex work with?

The driver is built on the OPC Foundation's own software. It has read one real server, a Siemens S7-1500. Other servers have not been tried yet, so use Test connection and Browse on yours before you rely on it.

Does it poll my PLC?

No. It subscribes to the nodes your tags are bound to, and the server sends what changes. The publishing and sampling intervals are 1,000 ms and are not configurable.

Can I write values to the equipment?

Yes, by writing to a tag. The driver converts the value to the node's declared data type and the server's answer decides whether it worked. A write needs the server to be connected.

Is the connection secure?

With Security set to secure, the driver uses the most secure endpoint the server offers and fails rather than falling back to plain text. Server certificates are checked against a trusted folder, and an administrator or engineer can trust one from the connection's page.

What happens when the connection drops?

Every bound tag turns bad and keeps its last value. The driver retries every 5 seconds, and the tags recover when the session is back.

Other ways in

Connect more than one kind of equipment.

Interested in learning more?

Tell us about your plant and what you run today, or what you want to build on it. We answer in plain language.