OPC UA is the most widely used standard for exchanging data between machines, controllers and software in industrial automation. Where older interfaces only moved raw values, OPC UA also describes what those values mean, who may read them and how they are protected. That combination of transport, data model and security is why OPC UA is often called the backbone of Industry 4.0 communication.
- Full name: OPC Unified Architecture (OPC stands for Open Platform Communications)
- Developed by: the OPC Foundation, first specification released in 2008
- International standard: IEC 62541
- Communication models: client-server and publish-subscribe (PubSub)
- Key features: information model, built-in security, platform independence, companion specifications
What is OPC UA?
OPC UA is an industrial communication protocol with a service-oriented architecture and an information modeling framework for industrial systems. You will also see the spelling OPC-UA; both refer to the same standard. An OPC UA server runs on a device or software application and exposes its data in a structured address space. An OPC UA client, for example a SCADA system, an MES or an edge application, connects to the server, browses the address space and reads, writes or subscribes to values. Because the specification defines both the services and the data model, any OPC UA client can work with any OPC UA server, regardless of vendor or operating system.
In simple terms: OPC UA is a common language plus a secure telephone line between machines and software. The language defines how a temperature, a motor state or an alarm is described. The line makes sure only authorized partners can listen and talk.
What does OPC stand for, and what is the difference between OPC and OPC UA?
OPC originally stood for OLE for Process Control. The first OPC specifications from the 1990s, today called OPC Classic, included OPC DA (Data Access), OPC HDA (Historical Data Access) and OPC A&E (Alarms and Events). They were based on Microsoft’s COM and DCOM technology and therefore tied to Windows. DCOM was hard to configure across networks and firewalls, and each specification covered only one type of data.
In OPC Classic, an OPC server provided data to OPC clients via DCOM, and each data type needed its own server. The OPC Foundation developed OPC UA to replace these limitations. The name now stands for Open Platform Communications Unified Architecture. OPC UA unifies data access, historical data, alarms and methods in one framework, runs on any operating system from small embedded devices to cloud servers, and does not depend on DCOM. OPC Classic servers can still be connected through wrappers and gateways, which helps in brownfield plants.
How does OPC UA work? The OPC UA architecture
The OPC UA architecture rests on three pillars, and the OPC UA specification describes each of them in its own part.
The information model and address space
Every OPC UA server organizes its data as nodes in an address space: objects, variables, methods and the references between them. A node has a type, so a client does not just see “value 87.3” but knows that it is the temperature of motor 2 in degrees Celsius, with limits and an engineering unit. This information model is what sets OPC UA apart from a pure data transfer protocol.
Services and transport
The OPC UA protocol defines standardized services that clients use to browse, read, write, subscribe and call methods. The most common transport is the binary OPC UA TCP protocol on port 4840. HTTPS and WebSockets are also defined. OPC UA runs over standard Ethernet and IP networks, and in combination with Time-Sensitive Networking (TSN) it can deliver deterministic real-time communication.
Built-in security
Security is part of the specification, not an add-on. Every OPC UA application has its own X.509 certificate, which OPC UA uses to authenticate applications, supports user authentication, and signs and encrypts messages. Operators can choose the security policy per connection. Correctly configured, OPC UA meets the requirements of industrial security standards such as IEC 62443, which matters for OT security and the Cyber Resilience Act.
OPC UA client and server
The client-server model is the classic way to use OPC UA. Client software connects to the server, establishes a secure session and works with the address space. A server can serve many clients, and an OPC UA application can act as client and server at the same time, for example an edge gateway that collects data from several machines and offers it to the cloud. Typical OPC UA servers run in PLCs, drives, robot controllers, SCADA systems and almost every modern control system. Typical OPC UA clients are HMIs, historians, MES, analytics tools and engineering software. Many devices now ship with a built-in OPC UA server, so connecting a new machine often means configuring, not programming. This is the most common protocol used in industrial automation to standardize access to machine data.
OPC UA PubSub
Client-server works well for one-to-one connections, but it reaches its limits when one device has to send data to many receivers or when data needs to flow to the cloud. For these cases, the OPC Foundation added publish-subscribe to the specification. With OPC UA PubSub, a publisher sends messages without knowing who receives them, and subscribers listen to the data they need.
PubSub supports two kinds of transport. Brokerless, it sends UADP messages via UDP multicast in the local network, suitable for fast controller-to-controller communication. Broker-based, it sends messages through a broker such as MQTT, typically encoded as JSON, which makes OPC UA data easy to consume by cloud and IT applications. The information model stays the same in both cases.
The Open Industry 4.0 Alliance builds on exactly this combination. Its Open Edge Computing (OEC) compliance requires a security-enabled data bus based on MQTT and data exchange between applications based on MQTT and OPC UA PubSub. The OI4 message format uses OPC UA PubSub semantics, and asset information follows OPC’s VendorNameplate model.
Companion specifications: OPC UA for specific industries
The base specification defines how to model data, but not what a robot or a machine tool should look like. Companion specifications fill this gap. Industry associations and the OPC Foundation define standardized information models for device types and domains, for example for machine tools (the umati initiative), robotics, machine vision, packaging, process instruments, auto-ID devices and plastics machinery. A client that understands a companion specification can work with every compliant device of that type without custom mapping. There is also a companion specification that maps the Asset Administration Shell to OPC UA.
What is OPC UA used for?
OPC UA is used wherever industrial data must move between systems from different vendors:
- vertical integration from sensors and PLCs to SCADA, MES and ERP
- machine-to-machine communication between controllers and production cells
- data access for analytics, condition monitoring and energy management
- connecting edge devices and cloud platforms in the industrial internet of things
- remote I/O and field-level communication, increasingly with OPC UA FX (Field eXchange)
In the OI4 software-defined automation project, members integrated OPC UA-based remote I/O instead of traditional fieldbuses in a Kubernetes-based demonstrator. In the energy monitoring project, OPC UA is one of the protocols evaluated to collect energy data from machines of different ages and vendors.
Benefits and features of OPC UA
OPC UA enables vendor-independent data exchange, and OPC UA provides the security and semantics that older protocols lacked. The main features of OPC UA:
- Interoperability: one standard instead of proprietary drivers for every device
- Semantics: data arrives with its meaning, not as anonymous values
- Security by design: authentication, signing and encryption in the protocol
- Platform independence: from embedded devices to cloud servers
- Scalability: client-server for local access, PubSub for one-to-many and cloud
- Future-proofing: an open IEC standard maintained by a broad industry foundation
OPC UA, MQTT and the Asset Administration Shell
OPC UA is often compared with MQTT, but the two are not alternatives in every case. MQTT is a lightweight transport without a built-in data model. OPC UA brings the model and can use MQTT as one of its transports through PubSub. The Asset Administration Shell adds the lifecycle view: it describes everything about an asset, from nameplate to documentation, while OPC UA delivers the live operational data. Read MQTT vs OPC UA for a detailed comparison.
The future of OPC UA
Each new version of OPC UA has added features, and three developments stand out. OPC UA FX extends the standard to the field level and to controller-to-controller communication, with TSN for determinism. PubSub over MQTT makes OPC UA data a natural input for cloud and data platforms. And the growing number of companion specifications turns OPC UA from a protocol into a library of standardized machine descriptions. Together with the AAS and software-defined automation, OPC UA is becoming part of an open, multi-vendor automation stack.
Frequently asked questions
Can you explain OPC UA in a simple way?
OPC UA is a standard way for machines and software to talk to each other. It defines how data is described, so everyone understands it, and how it is transmitted securely, so only authorized partners can access it.
Does OPC UA run over Ethernet?
Yes. OPC UA is independent of the physical network, but in practice it runs over standard Ethernet and TCP/IP. With Time-Sensitive Networking it can also provide deterministic real-time communication.
Is OPC UA secure?
OPC UA includes authentication with certificates, user management, signing and encryption. It is secure when these functions are configured correctly, which should be part of every commissioning checklist.
Can OPC UA work over the internet?
Yes, via HTTPS and WebSockets or through PubSub with an MQTT broker. For connections across company networks, operators usually combine OPC UA security with VPNs or reverse connections that avoid opening inbound firewall ports.
Which port does OPC UA use?
The default port for OPC UA over TCP is 4840. Vendors and operators can configure other ports.
