OPC UA vs MQTT vs Modbus: Which Protocol Does Your Factory Need in 2026?

Last updated: June 2026 · 12 min read

The Protocol Confusion Is Real

If you've been researching industrial IoT for more than an hour, you've probably encountered three acronyms everywhere: OPC UA, MQTT, and Modbus. Every vendor claims their protocol is "the standard." Every blog post gives different advice. And your factory floor has machines from three different decades that speak none of them natively.

Here's the truth: there is no single best protocol. The right choice depends on what you're connecting, what data you need, and where it's going. This article breaks it down in plain terms — no PhD in automation engineering required.

Modbus: The Reliable Workhorse (Since 1979)

Modbus is the oldest and most widely deployed industrial protocol in the world. If you have any industrial equipment made before 2010, there's a 90% chance it speaks Modbus.

How Modbus Works

Modbus is a simple master-slave (now called client-server) protocol. The master sends a request: "Give me the value at register 40001." The slave responds with the data. That's it. No complex handshaking, no authentication, no encryption.

Modbus Variants

When to Use Modbus

Modbus Limitations

MQTT: The Cloud Messenger

MQTT (Message Queuing Telemetry Transport) was originally designed for oil pipeline monitoring via satellite. Today it's the most popular protocol for IoT cloud connectivity, used by AWS IoT, Azure IoT Hub, Google Cloud IoT, and virtually every IoT platform.

How MQTT Works

MQTT uses a publish/subscribe model. Devices (publishers) send messages to a "topic" on a central broker. Other systems (subscribers) receive messages from topics they've subscribed to. It's like a industrial-grade group chat.

When to Use MQTT

MQTT Limitations

OPC UA: The Enterprise Standard

OPC UA (Open Platform Communications Unified Architecture) is the heavyweight champion of industrial protocols. Developed by the OPC Foundation with input from Siemens, Microsoft, Rockwell, and hundreds of other companies, it's designed to be the universal language for industrial automation.

How OPC UA Works

OPC UA uses a client-server model with a rich information model. Instead of raw register numbers, OPC UA organizes data into a tree of "nodes" with names, types, units, and relationships. A temperature sensor isn't just "register 40012" — it's "Factory/Floor1/Line3/Motor1/Temperature" with a data type, engineering unit, and alarm limits.

When to Use OPC UA

OPC UA Limitations

The Decision Framework: Which Protocol for Your Use Case?

Use Case Best Protocol Why
Connect old PLC to Ethernet Modbus TCP Simple, fast, widely supported
Send sensor data to AWS/Azure MQTT Native cloud support, lightweight
Multi-vendor plant integration OPC UA Unified data model, interoperability
Real-time machine control Modbus RTU/TCP Deterministic, low latency
Edge-to-cloud data pipeline MQTT + OPC UA OPC UA at edge, MQTT to cloud
Simple dashboard (5-10 sensors) Modbus TCP Easiest to set up, lowest cost
MES/ERP bidirectional integration OPC UA Rich data model, methods support

The Real-World Answer: You'll Probably Use Two

In practice, most factories end up using two protocols:

  1. Modbus or OPC UA at the edge — to collect data from machines on the shop floor
  2. MQTT to the cloud — to push that data to dashboards, analytics, and alerting systems

This is exactly what an industrial IoT gateway does. It speaks Modbus/OPC UA on one side (talking to your PLCs, sensors, and CNC machines) and MQTT on the other side (talking to your cloud platform). The gateway handles the translation, buffering, and protocol conversion automatically.

Example setup: A factory with 20 Siemens S7-300 PLCs uses protocol converters to bring them onto Ethernet (Modbus TCP). An edge gateway collects all 20 data streams, normalizes the data, and publishes to Azure IoT Hub via MQTT. Total hardware cost: under $3,000. Time to deploy: 2 days.

What About Combining Them?

Modern edge gateways like the SCAEdge support all three protocols simultaneously:

This "protocol bridge" approach means you don't have to choose one protocol for everything. Use the right tool for each job.

Common Mistakes to Avoid

The Bottom Line

Protocol Complexity Cost Best For
Modbus ⭐ Low $50-300 Local machine communication
MQTT ⭐⭐ Medium $0-500 Cloud connectivity
OPC UA ⭐⭐⭐ High $500-5000 Enterprise integration

The best protocol is the one that solves your specific problem with the least complexity. Start simple, prove the value, then expand.

Not Sure Which Protocol Your Equipment Supports?

Send us your equipment list and we'll recommend the right protocol stack — free, no strings attached.

Get Expert Advice →

Related Articles

FAQ

Q: Can I use OPC UA and MQTT at the same time?
Yes. Most modern edge gateways support both. OPC UA for local MES/SCADA integration, MQTT for cloud dashboards. They complement each other well.
Q: My PLC only speaks Modbus RTU. Can I still send data to the cloud?
Absolutely. A protocol converter or edge gateway translates Modbus RTU to MQTT. The PLC doesn't need to know about MQTT — the gateway handles everything.
Q: Is OPC UA free to use?
The OPC UA core specification is now royalty-free. However, some vendor-specific implementations and SDKs may have licensing costs. Most industrial gateways include OPC UA server functionality at no extra charge.
Q: Which protocol does Azure IoT Hub support?
Azure IoT Hub natively supports MQTT, AMQP, and HTTP. For factory data, the typical approach is: PLC → Modbus/OPC UA → Edge Gateway → MQTT → Azure IoT Hub.
Q: Do I need to replace my existing Modbus devices?
No. Modbus is not going away. Adding a gateway that bridges Modbus to MQTT/OPC UA is far cheaper and safer than replacing working equipment.