Edge gateway mounted in a control cabinet next to a CNC machine, with labelled industrial network cables

What OPC UA is and what edge computing does

OPC UA (IEC 62541) is the open standard that lets machines from different vendors expose their data in one common format, with data types, names and built-in security. Edge computing is the computer installed close to the machine that collects this data, filters it, converts protocols and only then sends what matters to the MES, the ERP or the cloud.

Together they solve the usual problem: every machine speaks its own protocol, every system wants its own format, and the integrator rewrites the same interface on each project. With OPC UA at the machine and an edge node in the middle, integration becomes configuration instead of custom programming.

Advertisement

Visual map: machine, gateway, edge and cloud

The map shows the four layers, the path of the data and the volume calculation from the worked example below.

OPC UA AND EDGE: MACHINE TO CLOUD
Visual map 258: OPC UA and Edge Computing: Connecting Machines to Systems. Click the map to see it full size.Download the map as PNG

The 4 integration layers

LayerRoleExample
MachineGenerates the signal and runs the controlPLC, CNC, drive, sensor
GatewayTranslates a legacy protocol to OPC UAModbus, PROFINET or EtherNet/IP to OPC UA
EdgeCollects, filters, aggregates, buffers and publishesIndustrial PC running an OPC UA server and client
Cloud / serversStores history, analyses, joins with business dataMES, ERP, data lake

Many new machines ship with an embedded OPC UA server and the gateway disappears. On older machines the gateway is what brings them into an IIoT architecture without replacing the controller.

How OPC UA organises data

Worked example: how much data reaches the cloud

Illustrative example: 40 machines, 25 variables each, sampled at 1 Hz, with 50 bytes per value (headers included).

Rate = machines × variables × samples/s × bytes = 40 × 25 × 1 × 50 = 50,000 B/s

StrategyRatePer dayPer 30 days
Everything to the cloud (1,000 variables at 1 Hz)50 kB/s (400 kbit/s)4.32 GB129.6 GB
Edge with deadband (8% passes)4 kB/s345.6 MB10.37 GB
Edge with events and aggregates (1% of raw)0.5 kB/s43.2 MB1.30 GB

Sending raw data would take 20% of a 2 Mbit/s link (0.4 ÷ 2) for telemetry alone. With filtering at the edge, volume drops 92% with the deadband and 99% in the events scenario. The 8% and 1% figures are assumptions of the example: measure your own process before sizing anything.

Advertisement

What the edge node should do

Step by step: connecting the first line

  1. Pick one use case with an owner, for example automatic production and downtime logging.
  2. List the minimum variables and the sampling interval of each. Fewer variables, more value.
  3. Check machine by machine whether there is a native OPC UA server or a gateway is needed.
  4. Separate the machine network (OT) from the corporate network (IT) with a firewall and a demilitarised zone.
  5. Install the certificate of each application and disable the unsecured mode.
  6. Configure subscriptions with deadband and validate with one week of data against manual logging.
  7. Publish to the production dashboard and only then roll out to the remaining machines.

With clean history in place, the natural next steps are predictive maintenance and the digital twin. For the bigger picture, see Industry 4.0 on the shop floor.

Common mistakes and limitations

Frequently asked questions

Does OPC UA replace Modbus or PROFINET?

No. They stay on the fieldbus. OPC UA sits above, standardising data access for supervision and business systems.

Do I need edge if the machine already has OPC UA?

Usually yes, to filter, buffer, add context and protect the network. With few machines and low volume, a direct client may be enough.

What is the difference between edge and cloud?

Edge processes close to the machine, with low latency and offline operation. The cloud holds history and analytics across several plants.

Is OPC UA secure?

It has authentication, certificates and encryption, but it only protects when configured. Avoid the None mode.

Which port does OPC UA use?

The conventional opc.tcp port is 4840, but each server can use another. Open only what is needed on the firewall.

Do OPC UA and MQTT compete?

Not necessarily. OPC UA describes the data and MQTT can carry it in PubSub mode.

Advertisement

Sources

  1. IEC 62541. OPC Unified Architecture (series of standards).
  2. MAHNKE, W.; LEITNER, S.-H.; DAMM, M. OPC Unified Architecture. Berlin: Springer, 2009.
  3. OPC Foundation. OPC UA specifications, including Part 14 (PubSub).

Keep studying: trusted sources and links

Save this address: Manufatura Enxuta is your school for lean manufacturing. Come back whenever you need to study, with a complete article, a visual map and trusted sources. Follow one of the learning paths or check the A–Z glossary.

Want to measure what really matters?

Download the free e-book on performance indicators and track the losses in your operation.

Download the e-book
Photo of Vagner Soares

About the author

Vagner Soares

Lean Manufacturing & Behavioral Management Specialist

Over 20 years in the automotive and metalworking industries (GM and Dana), Lean Manufacturing practitioner since 2006. SENAI instructor and mentor in Brazil’s Brasil Mais Produtivo program, delivering consulting, training and audits for 50+ companies, combining quality, productivity and people development.