The short answer
OPC UA
OPC UA, IEC 62541, is a platform-independent standard for exchanging data between control systems and everything above them. A server exposes an address space of typed nodes, a client browses it, reads and writes values, subscribes to changes, and receives alarms and history, all over a secured channel with certificates for both ends. It replaced OPC Classic, which depended on Windows DCOM, and it is the usual answer to how SCADA, historians, and enterprise systems reach controller data without a vendor driver for each.
Key points
- A server publishes an address space; a client browses, reads, writes, and subscribes. Both sides are software, not a protocol on a wire.
- Security is built in: certificates identify both ends, and sessions can be signed and encrypted.
- Subscriptions deliver changes at a publishing interval, which is efficient; polling every value is not.
- It is an integration protocol, not an I/O protocol. Controllers still talk to their I/O by other means.
- Every server has limits on sessions, subscriptions, and monitored items, and every client should be configured within them.
From Classic to UA
OPC Classic, from the 1990s, gave SCADA a standard way to read controller data through a vendor server, and it tied that to Microsoft COM and DCOM. DCOM across a network meant Windows security configuration that nobody got right, firewalls that could not be used, and no path to anything that was not Windows. OPC UA was written to keep the idea and drop the dependency: a defined information model, a defined set of services, its own transport, and security as a first-class part of the design.
The information model
A UA server exposes an address space: a graph of nodes, each with a type, attributes, and references to other nodes. A tag is a variable node with a value, a data type, and a timestamp. A piece of equipment can be an object node with variables and methods under it. Types can be defined, so that every pump in a plant exposes the same structure, and companion specifications define standard models for drives, instruments, and whole industries.
A client discovers what is there by browsing, which is the difference in practice: connecting to a UA server and seeing the controller tags with their names, types, and engineering units, instead of configuring register addresses one by one from a spreadsheet.
What a client does
- Read and write
- Values, with their status and timestamp. A write is refused if the client lacks permission or the node is read-only.
- Subscribe
- The client creates a subscription with a publishing interval and adds monitored items with sampling intervals and deadbands. The server sends what changed. This is how a SCADA host watches ten thousand tags without polling ten thousand tags.
- Alarms and conditions
- A defined model for alarm states, acknowledgment, and shelving, so an alarm raised in the controller appears with the same semantics in every client.
- Historical access
- Reading past values and aggregates from a server that stores them, which is how a historian can be a UA server to the systems above it.
- Methods
- Calling a function the server exposes, with arguments and a result, for things that are actions rather than values.
Security
Every UA application has a certificate, and a connection is established only when each end trusts the other’s certificate, either explicitly in a trust list or through a certificate authority. The session can then be signed, so messages cannot be altered, and encrypted, so they cannot be read. User authentication is layered on top: anonymous, username and password, or a user certificate, each mapped to permissions on the server. The first time a client connects, its certificate appears in the server’s rejected list, and an administrator moves it to trusted. That step is where most first connections stall, and it is doing exactly what it should.
Where it fits
UA is the connection between the control layer and the layers above it: SCADA to controllers that embed a UA server, historians to SCADA, MES and analytics to historians, and, through a gateway or a data diode, the enterprise to a read-only view of the plant. It is not an I/O protocol; a controller talks to its remote racks and drives by EtherNet/IP, PROFINET, or Modbus, and exposes the result through UA. Many modern controllers embed a UA server directly; older ones are served by a gateway that speaks their native protocol on one side and UA on the other.
| Transport | Port by convention | Use |
|---|---|---|
| opc.tcp, binary encoding | 4840 | Plant floor to SCADA and historian; the efficient default |
| HTTPS | 443 | Across boundaries where only web ports are open |
| PubSub over MQTT or UDP | Varies | Publishing to many consumers, cloud and analytics; newer and less uniformly supported |
Limits and load
A UA server in a controller shares the processor with the control program. It has limits on sessions, subscriptions, monitored items, and sampling rate, and a client that asks for ten thousand items at a 100 ms sampling interval will either be refused or will slow the scan. Configure the client within the server limits, set sampling intervals from what the data actually needs, and use deadbands on monitored items so that noise does not become traffic. The server diagnostics show the load, and they should be checked after any new client is added.
Frequently asked questions
- Is OPC UA a replacement for Modbus or EtherNet/IP?
- No. Those are how controllers talk to devices and each other. OPC UA is how software above the controllers reads and writes their data with a common model and built-in security. A plant uses both.
- Why will my client not connect to the server?
- Almost always certificates. The server has not trusted the client certificate, or the client has not trusted the server’s, or the security policy the client asked for is not enabled on the server. Look in the rejected certificates folder on each side.
- What is the difference between polling and subscribing?
- Polling reads every value at an interval whether it changed or not. A subscription asks the server to send only what changed, at a publishing interval, with sampling and deadband per item. Subscriptions scale; polling does not.
- Does OPC UA work across a firewall?
- Yes. It uses a single defined port, 4840 by convention for the binary transport, and can also use HTTPS, so a firewall rule can permit exactly the connection needed. That is one of the main reasons it replaced OPC Classic.
Related topics
- What Is SCADA?Supervisory control and data acquisition: the layer that collects data from controllers across a system, presents it to operators, records it, and lets them intervene.
- Protocol GatewaysProtocol converters between a controller and devices that do not speak its language: what a gateway does, the common pairings in water and wastewater, the mapping table that is the whole configuration, the failure modes a gateway adds, and when to use a native interface instead.
- EtherNet/IPHow EtherNet/IP moves control data: CIP over standard Ethernet, implicit I/O connections on a requested packet interval, explicit messaging, producer and consumer tags, and what the network has to provide.
- The Purdue ModelThe reference architecture most segmentation designs still start from: what each level contains, where the DMZ goes, and how it maps to a water utility.
- OT Security vs IT SecurityWhy the familiar security priorities invert on a plant floor, and what that changes about patching, scanning, authentication, and incident response.
- Modbus RTUSerial Modbus over RS-485: function codes, register addressing, the off-by-one that catches everyone, and the physical layer details that decide whether a bus is stable.
Direct contact
Have a controls question?
Reach Eric Sullivan directly about anything on this site, a controls or automation topic, or one of his personal projects.