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.
OPC UA SCADA driver
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
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.
Test connection opens a throwaway session with the saved settings, closes it and reports the latency in milliseconds. It gives up after 15 seconds.
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.
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
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.
The quality of a value is mapped from the OPC UA status code, and the timestamp is the server's own.
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.
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.
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.
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
| Setting | What it does | Default |
|---|---|---|
| Endpoint URL | The server's endpoint, such as opc.tcp://host:4840. Required. | None |
| Security | none sends no message security. secure picks the most secure endpoint the server offers. | none |
| Trust the server's certificate | Accept a certificate nobody has trusted yet. Otherwise move it from the rejected folder to the trusted one. | Off |
| Username and password | The 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
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
Other ways in
Tell us about your plant and what you run today, or what you want to build on it. We answer in plain language.