---
title: "What is OPC UA? A guide for manufacturing"
description: "OPC UA is the open standard machines and software use to exchange data, with meaning and security built in. How it works and how it compares to MQTT."
url: https://heisenware.com/blog/opc-ua-the-standard-for-data-communication-in-manufacturing
lang: en
---

# What is OPC UA? A guide for manufacturing

By Gerrit Meyer, 2025-02-26

OPC UA (Open Platform Communications Unified Architecture) is the open standard that machines, controllers and software in manufacturing use to exchange data. A controller with an OPC UA server offers its values in a structured model. Each value comes with its meaning. The number 1450 arrives as "spindle speed of machine 7, in revolutions per minute". Any OPC UA client can find those values, read them and subscribe to changes. Where allowed, it can also write back. Encryption and certificates are part of the standard.

This guide is for the people who have to get machine data into software: MES engineers, plant IT, OT and automation engineers. It is based on episode 17 of our German podcast Einfach Komplex, in which Dr. Burkhard Heisen and Gerrit Meyer take OPC UA apart: its object model, companion specifications, data types, namespaces and how it compares to MQTT.

## What OPC UA is

OPC UA is maintained by the OPC Foundation, a consortium of automation companies, and published as the international standard IEC 62541. It replaced OPC Classic, also called OPC DA (Data Access), which was tied to Windows. OPC UA runs on any operating system, from an embedded controller to a Linux server.

Two things make it more than a protocol:

- **An information model.** Machines, sensors and their parts are described as objects with properties, methods and events, and every value has a data type. A client does not have to guess what a number means.
- **A transport with security built in.** Messages can be signed and encrypted, and client and server identify each other by certificate.

## How it works

OPC UA follows a client and server model. The server usually runs on the machine's controller or on an industrial PC next to it. The client is the software that wants the data: an MES, a SCADA system, a dashboard or an app.

A typical connection takes four steps:

1. **Connect.** The client opens the server's endpoint, for example `opc.tcp://192.168.10.20:4840`, and agrees on a security mode: None, Sign, or SignAndEncrypt.
2. **Browse.** The client walks through the server's address space, a tree of nodes. Each node has an ID such as `ns=2;s=Spindle.Speed`, where `ns` names the namespace the node belongs to. This is how a client discovers what a machine offers without a manual.
3. **Subscribe.** Instead of asking every second, the client monitors the nodes it needs. The server reports when a value changes.
4. **Act.** The client can write a value, for example an order number, or call a method the machine offers.

A concrete example: a milling machine's controller exposes its state, the running program and the spindle speed. An Andon app subscribes to the state node. When the state changes to stopped, the app turns the machine red on the screen at the line and emails the shift lead.

### Companion specifications

Every machine builder can model its data differently. Companion specifications fix that for whole device types. They define a standard information model, for example for CNC machines or robots, so a client can read machines from different builders the same way. Where a machine follows one, connecting it is mostly configuration. Where it does not, someone maps the builder's model once.

## OPC UA and MQTT

The two are often presented as rivals. In practice they complement each other.

| | OPC UA | MQTT |
| --- | --- | --- |
| Pattern | Client asks or subscribes, server answers | Devices publish to a broker, others subscribe |
| Meaning of the data | Information model with types and structure | Whatever the sender puts into the message |
| Discovery | Clients browse the address space | Topics must be known in advance |
| Typical place | Machines and controllers | From many devices to central systems or the cloud |
| Weight | Heavier, more to configure | Light and simple |

A common pattern: OPC UA on the shop floor, where the machines are, and MQTT to carry the data from there to central systems or the cloud.

## What to check before you connect

- **Is an OPC UA server available?** Many current controllers have one, sometimes as a licensed option that must be switched on. Older machines often have none. Then their own protocol helps, such as Siemens S7 or Modbus, or a simple digital signal for running or stopped.
- **Certificates.** With Sign or SignAndEncrypt, client and server must trust each other's certificates. Decide who accepts certificates on the machine side before the first test.
- **Security mode None.** It is convenient for a first test and sends everything unencrypted. Do not leave it that way.
- **Network.** The client must reach the server, and machine networks are often separated from the office network on purpose. Decide early where the client runs.
- **Writing.** Reading is harmless, writing changes the machine. Agree which values software may write, and keep control loops in the PLC.

## How Heisenware connects to OPC UA

If you program a client yourself, open source libraries do the protocol work. The episode mentions node-opcua by Etienne Rossignon. What remains is everything around it: certificates, reconnects, storing values, the screen, and running all of it every day.

Heisenware is an industrial application platform. Manufacturers use it to build real industrial software by prompt, with OPC UA as one way in to the machines. Like every connector, the OPC UA connector is tested and maintained by Heisenware.

- **OPC UA client.** The connector browses a server, reads and writes values, monitors nodes, calls methods and transfers files. It supports None, Sign and SignAndEncrypt, with self-signed certificates or your own certificate authority.
- **OPC UA server.** Heisenware can also run its own OPC UA server with an information model you define, so an app can offer data to other systems.
- **Heidenhain controls.** A dedicated connector handles the certificate exchange automatically.
- **Machines in a separate network.** An agent in your own network runs the connector next to the machines and uses an outbound-initiated connection. No inbound firewall rule, no VPN.
- **Machines without OPC UA.** Connectors for Siemens S7, Allen-Bradley, Modbus and more.

You describe the app, for example "show which machines are stopped and email the shift lead when one stops", and the Assistant builds it, with simulated data until the machine is connected. The connection to the real machine always runs through the tested connector. The AI writes no code for it. In the app's logic, anyone can see where each value comes from.

Read more about [machine data collection with Heisenware](https://heisenware.com/solutions/machine-data-collection) or [how Heisenware works](https://heisenware.com/#build).

## Questions

### Is OPC UA a protocol?

Partly. OPC UA defines both the transport, how messages travel, and the information model, what the data means. That is why its name contains the word architecture.

### What is the difference between OPC UA and OPC DA?

OPC DA belongs to OPC Classic, the older standard that was tied to Windows. OPC UA is platform independent, object oriented and has security built in. New projects use OPC UA.

### Do I need OPC UA to collect machine data?

No. OPC UA is the best choice where the controller supports it. Older machines can be connected through their own protocol, such as Siemens S7 or Modbus, or through a digital signal.

### Is OPC UA secure?

It can be. Signing, encryption and certificates are built into the standard. A server set to security mode None sends plain text, so the security depends on how it is configured.
