Explainers

What is OPC UA? A plain guide for industrial software beginners

OPC UA explained for beginners: the problem it solves, clients, servers and information models, security modes, and how it differs from OPC Classic and Modbus.

By listme.name 6 min read Share

OPC UA (Open Platform Communications Unified Architecture) is a standard for moving data, alarms and commands between industrial devices and software. Many vendors implement the same rules, so equipment and software from different suppliers can exchange information without a custom connection for every pair. The OPC Foundation maintains the standard, which is also published as IEC 62541.

The problem OPC UA solves

A typical plant has PLCs, drives, meters, robots and sensors from several manufacturers. Each one has its own protocol, data layout and naming. If a reporting tool needs the same temperature from ten devices, someone has to write or configure a driver for each device type, and maintain it when firmware changes.

OPC UA puts a common interface in front of that variety. A device or a gateway exposes its data in a standard form, and any client that speaks OPC UA can read it, subscribe to changes or receive alarms without knowing the device's native protocol. In principle, a client built once can work with many servers. In practice, you still need to confirm that each device or gateway supports the parts you need.

Clients, servers and information models

Two roles matter most:

  • A server exposes data and alarms from a device or a system.
  • A client connects to a server to read or write values, subscribe to changes or call methods. An operator screen, a historian and an analytics tool can all be clients.

The data is not just a flat list of tags. OPC UA describes it as an address space of nodes, arranged hierarchically like files and folders, plus an information model that gives each node a type and a meaning. A pump might be an object with child variables for speed, status and temperature, and a method for starting it. The OPC Foundation says the framework can express complex, multi-level structures and extend them.

The standard offers several ways to get data:

  • On-demand reads and writes, limited by access permissions.
  • Subscriptions, where the server sends a value when it changes according to the client's criteria.
  • Events, used for alarms and other notifications.
  • Methods, which let a client call a function on the server.

Publish-subscribe (PubSub) is an alternative for data that many consumers need. Publishers send messages through middleware without knowing who the subscribers are. The OPC Foundation's site also describes more than 150 market-specific companion specifications, which define shared information models for particular industries.

Security modes at a high level

Security is chosen per connection. The standard defines three message security modes:

  • None: no security is applied to messages.
  • Sign: messages are signed but not encrypted. The receiver can check who sent them and that they were not changed, but anyone on the network can still read them.
  • SignAndEncrypt: messages are signed and encrypted.

The standard also has an invalid default value that is always rejected, so that no security is picked by accident.

Certificates identify the applications. Each client and server has an X.509 certificate, and trust lists decide which applications may connect. Users can authenticate with credentials, a certificate or a token, and the standard supports auditing of activity. Sequencing is used to counter replay attacks.

The protection exists, but it is a configuration choice. Because the None mode is part of the standard, a system can run unprotected. When you review a deployment, check which mode each connection uses, which certificates are trusted, and who maintains the trust list. Encryption protects data in transit. It does not protect a device or computer that has already been compromised.

How OPC UA differs from OPC Classic and Modbus

OPC Classic OPC UA Modbus
Foundation Microsoft COM and DCOM, mainly on Windows Platform-independent service architecture, released in 2008 Simple request and response protocol, designed in the late 1970s
Data model Separate specifications for data access, alarms and history One information model with nodes, types and methods Numbered registers and coils, with no standard description of what they mean
Platforms Windows-centric Windows, Linux, macOS, Android, PLCs and microcontrollers Widely implemented on PLCs and field devices

OPC Classic is the older family of specifications: OPC DA for data access, OPC AE for alarms and events, and OPC HDA for historical data. The OPC Foundation says it was built on COM and DCOM. Microsoft moved away from those technologies toward cross-platform, service-oriented designs, so OPC UA was created to cover the same functions elsewhere. The foundation says OPC UA is functionally equivalent to OPC Classic and that wrappers exist to connect the two.

Modbus is much simpler. A client asks a server for register values, and the server replies. That simplicity is why it is everywhere, but Modbus has no standard way to describe what a register means, and the protocol itself provides no protection against unauthorized commands or interception of data. OPC UA adds descriptions, events, subscriptions and security on top of the device connection.

The trade-off is effort. OPC UA is more capable and takes more care to configure, because certificates, endpoints, security policies and trust lists all need attention. Modbus is quick to wire and read, but it carries less information and less protection.

Where gateways and connectivity software fit

Many devices do not speak OPC UA natively. A gateway or connectivity server sits between them and the software that needs their data. It talks to the devices in their native protocols on one side and offers OPC UA, OPC Classic, MQTT or another format on the other.

Kepware is one example of this category. According to Velotic's product page, Kepware Server converts proprietary protocols into open standards such as OPC UA and MQTT. Velotic describes itself as an independent company formed from Kepware, PTC's ThingWorx and GE Vernova's Proficy. The same page says the Kepware Manufacturing Suite packages 100 device drivers with OPC DA and OPC UA. Commercial products like this are usually licensed, so check the vendor's page for current terms and driver coverage before you assume a device is supported.

A gateway replaces many point-to-point connections with one component to buy, configure, secure and maintain. It is useful when many devices must reach many clients. It is extra work when only one device needs to talk to one application.

What this article does not cover

It does not explain how to configure a specific server, how to manage certificates in a particular product, or how to tune performance. The specification and the vendor's documentation cover those details. This article also does not claim that any particular device supports OPC UA. Check that on the device's documentation.

Primary sources used here: the OPC Foundation's OPC UA overview, the OPC Foundation's Classic overview, the definition of MessageSecurityMode in the OPC UA specification, Velotic's Kepware Server page and the Modbus article on Wikipedia.