Skip to main content

OPC UA Connections

An OPC UA connection defines how the system connects to an industrial OPC UA server (for example a PLC, a SCADA system or an IoT gateway) to collect meter readings automatically. Each connection contains the server endpoint, the security and timing settings of the session, and the node bindings that map OPC UA nodes to meters.

When a connection is enabled, the system opens a session to the server and writes each value received from a bound node as a new reading of the related meter, with the OPC UA source. These readings are evaluated against the meter's work order triggers in the same way as manual readings. See Meters.

Connections are defined per tenant and are applied at runtime: adding, changing, disabling or deleting a connection takes effect without restarting the application.

Purposes of OPC UA Connections​

  • Collecting meter values directly from machines and control systems without manual entry.
  • Starting condition-based maintenance automatically from real-time machine data.
  • Managing server addresses, security settings and node mappings from a single screen.
  • Temporarily stopping data collection from a server without deleting its configuration.

OPC UA Connection Operations​

The OPC UA connection listing and registration pages provide standard functions such as exporting to Excel, filtering, and customizing field visibility. These functionalities are detailed under General System Usage.

The OPC UA Connections list shows the name, endpoint URL and enabled status of each connection and can be filtered by name and endpoint URL, with Edit and Delete actions.

OPC UA Connection Definition Page​

This page is used to create a new connection or edit an existing one. It is organized in the following sections.

Connection:

  • Name: A descriptive name for the connection, for example "Line 1 PLC". Required, maximum 256 characters.
  • Endpoint URL: The address of the OPC UA server, for example opc.tcp://plc01:4840. Required, maximum 512 characters. The same endpoint can be defined only once per tenant.
  • Enabled: When selected, the system opens and keeps a session to the server. Disabled connections are not opened; their configuration is kept.
  • Ingest Mode: How values are collected from the server.
    • Subscription: The server pushes value changes to the system (monitored items). Publishing and sampling intervals apply.
    • Polling: The system reads the bound nodes periodically. The polling interval applies.
  • Username: The user name for servers that require user authentication. Optional, maximum 256 characters.
  • Password: The password for the user name. The password is stored encrypted and is never displayed again. When editing, leave it empty to keep the current password; enter a new value to replace it.
  • Has Password: Read-only indicator showing whether a password is stored for the connection.

Security:

  • Security Policy: The OPC UA security policy used for the session: None, Basic128Rsa15, Basic256, Basic256Sha256, Aes128Sha256RsaOaep or Aes256Sha256RsaPss. Required.
  • Security Mode: The message security mode: None, Sign, or Sign & Encrypt. Required.
  • Auto-Accept Untrusted Certificates: When selected, server certificates that are not trusted are accepted automatically. Intended only for test and development environments; the host may ignore this setting outside development.
  • Ingest Bad-Quality Readings: By default, values that the server reports with bad quality are rejected. When selected, they are still recorded (with the Bad quality).
  • Application Certificate Subject: The subject name of the client application certificate used for the secure session. Optional, maximum 512 characters.
  • PKI Store Path: The path of the certificate (PKI) store used by the client. Optional, maximum 512 characters.

Intervals & Timeouts: All values must be at least 1.

  • Publishing Interval (ms): How often the server sends notifications in Subscription mode. Default 1000.
  • Sampling Interval (ms): How often the server samples the bound nodes in Subscription mode. Default 1000.
  • Polling Interval (s): How often the nodes are read in Polling mode. Shown only when the ingest mode is Polling. Default 5.
  • Session Timeout (ms): The session timeout requested from the server. Default 60000.
  • Keep-Alive Interval (ms): The interval used to check that the session is still alive. Default 5000.
  • Reconnect Delay (s): The waiting time before reconnecting after the connection is lost. Default 5.

Node Bindings: Each row binds one OPC UA node to one meter. Rows are added with the Add button and can be edited or deleted.

  • Node ID: The OPC UA node identifier, for example ns=2;s=Line1.Temperature. Required.
  • Meter: The meter that receives the values of the node. Required.
  • Asset: The asset of the meter. Optional; leave it empty if the meter is defined for a location.

How Readings Are Collected​

  • Only enabled connections are opened. A global system setting (OPC UA Ingest Enabled) can also stop all OPC UA sessions for every tenant without deleting connection data.
  • Each value received from a bound node is recorded as a reading of the bound meter with the OPC UA source and the quality reported by the server (Good, Uncertain or Bad).
  • Bad-quality values are rejected unless Ingest Bad-Quality Readings is selected.
  • Readings received through OPC UA cannot be edited by users.
  • The system also keeps the last successful connection time and the last connection error of each connection for monitoring.

Authorization and Access Control​

Topics related to authorization and access control are detailed under User Management and Authorization.

  • OPC UA Connections: View connections.
  • Create an OPC UA Connection: Create new connections.
  • Update an OPC UA Connection: Edit connections and their node bindings.
  • Delete an OPC UA Connection: Delete connections.
  • OPC UA Connection Batch Operations: Export and other bulk operations.
  • Design an OPC UA Connection: Customize the connection pages.

Warnings and Error Messages​

  • A connection is already defined for this endpoint address: The same endpoint URL cannot be used in more than one connection.
  • Mandatory Fields: Name, endpoint URL, security policy, security mode and ingest mode must be filled; each node binding needs a node ID and a meter.
  • Minimum Values: Interval and timeout values must be at least 1.

User Tips and Best Practices​

  • Use secure settings in production: Prefer a signed and encrypted security mode with a modern policy such as Basic256Sha256 or the Aes policies. Avoid the None policy and certificate auto-accept outside test environments.
  • Prefer Subscription for frequently changing values: Subscription sends only changes and reduces load; use Polling for servers that do not support subscriptions well.
  • Do not set intervals too low: Very short intervals produce many readings and many trigger evaluations. Choose intervals that match how quickly the measured value really changes.
  • Disable instead of deleting: Clear Enabled to stop collecting data temporarily (for example during maintenance of the PLC) without losing the node bindings.
  • Check meters first: Define the meters (with their asset or location and measurement unit) before creating node bindings.

Frequently Asked Questions​

Do I need to restart the system after changing a connection?​

No. Connections are reloaded at runtime; changes take effect automatically.

Why is my password field empty when I edit a connection?​

The password is stored encrypted and is never sent back to the screen. The Has Password indicator shows whether one is stored. Leave the field empty to keep it.

Why are some values from the server not recorded?​

Values with bad quality are rejected unless Ingest Bad-Quality Readings is selected. Also check that the connection is enabled and that the node ID is bound to the correct meter.

Can one connection feed several meters?​

Yes. Add one node binding for each node/meter pair.