Skip to content

· 2 min read · Updated

Modbus, OPC UA and MQTT compared: industrial communication protocols for IIoT

Modbus talks to devices, OPC UA models machine data, MQTT moves data to the cloud. How the three protocols fit together in an IIoT project.

Modbus, OPC UA and MQTT compared: industrial communication protocols for IIoT

Most industrial IoT projects use more than one protocol. Modbus is still the language of countless devices, OPC UA structures machine data securely, and MQTT moves data efficiently to servers and the cloud. An industrial IoT gateway connects them.

Key takeaways

  • Modbus (RTU/TCP): simple, widely supported, register-based, no built-in security.
  • OPC UA: information models, built-in security, client/server and pub/sub – the standard for machine-to-machine data.
  • MQTT: lightweight publish/subscribe for many devices and unreliable networks; ideal for the cloud.
  • A typical chain is Modbus/OPC UA at the machine → gateway → MQTT to the cloud.

Comparison

ModbusOPC UAMQTT
ModelRequest/response, registersClient/server and pub/sub, object modelPublish/subscribe via broker
Data structureRaw registersTyped, self-describingFree payload (often JSON)
SecurityNone built inEncryption, certificates, usersTLS and broker authentication
Typical placeSensors, drives, metersPLCs, machines, MESEdge to cloud, dashboards

How an IoT gateway connects them

The gateway polls Modbus devices over RS-485 or Ethernet, reads PLC data via OPC UA, converts and filters the values, and publishes them via MQTT to a broker or cloud platform. It also buffers data during network outages. Read the step-by-step guide connect your machines to the cloud.

Choosing a protocol

  • Existing meters and drives: keep Modbus at the device level.
  • New machines and MES integration: use OPC UA.
  • Many sites, cellular links, cloud analytics: send data with MQTT.

Explore our embedded systems and IoT gateways or describe your architecture.

Frequently Asked Questions

Is MQTT replacing OPC UA?

No. They solve different problems: OPC UA describes and secures machine data, MQTT transports messages efficiently. OPC UA can even use MQTT as its transport (OPC UA PubSub over MQTT).

Is Modbus still used?

Yes. Modbus RTU and Modbus TCP remain among the most widely used protocols for meters, drives and sensors because they are simple and supported almost everywhere.

Do I need a gateway if my PLC supports OPC UA?

Not always, but a gateway is useful to collect data from several sources, buffer it during outages and send it securely to the cloud without exposing the PLC.

From the Blog

Contact us on WhatsApp