1. Home
  2. Knowledge base

OPC UA and Modbus: two ways to read machine data

Two widely used protocols for getting data out of machines, and when you will come across each. Plus: what if a machine has neither?

Productiehal met een rij CNC-machines

Anyone who wants to collect machine data soon comes across two names: OPC UA and Modbus. Both are ways of getting data out of a control system, but they differ greatly in age, capabilities and security.

Modbus

Modbus has existed since the late 1970s and is still widespread. It is simple: data sits in numbered registers, and a reading device requests those registers. Modbus exists as a serial variant (Modbus RTU) and over the network (Modbus TCP).

That simplicity is also its limitation. A register is just a number; what it means has to come from the machine’s documentation. And the protocol itself has no security, so the network around it must be well shielded.

OPC UA

OPC UA is a more modern, platform-independent protocol. Data has a name, a type and a structure, so you don’t have to guess what a value means. OPC UA also supports encryption and authentication with certificates.

You will mainly find OPC UA on newer machines and controls. It takes more effort to set up, but delivers more usable and more secure data.

And if a machine has neither?

Many machines in practice are older than both standards, or have their own interface. Then you can often see a lot with simple signals, such as a running signal, a counter or the state of a signal light. That already measures downtime and production, enough to get started with OEE and downtime analysis.

Which one do you choose?

Usually you don’t choose yourself: the machine determines what is possible. A good approach looks at what is available per machine and brings everything together in one platform, so you don’t maintain a separate connection for every machine. We look at which connection fits best per machine. See also Securely accessing machine data.

Further reading

More from the knowledge base

See your own machines in FactoryNebula

In a personal demo we show how the platform works for your production, and what it takes to start with one machine.