Industrial protocols: Modbus, OPC UA and MQTT

Most integration problems are protocol problems in disguise: a register address that is off by one, a 32-bit value with its words swapped, an OPC UA endpoint that rejects an untrusted certificate, an MQTT session that loses data on reconnect. These guides explain how Modbus, OPC UA and MQTT actually behave on the wire, and how to choose and validate them before commissioning.

Start here

A suggested reading order.

  1. Modbus TCP vs Modbus RTU: Choosing the Right Protocol for Your Line

    Both protocols move register data between controllers, but they differ in transport, latency, and wiring. A practical comparison for retrofit and greenfield projects.

    Industrial protocols · 2 min
  2. OPC UA vs MQTT: When to Use Each in an Industrial Architecture

    OPC UA and MQTT solve different problems. This guide maps each protocol to the architecture where it earns its place.

    Industrial protocols · 2 min
  3. Modbus addressing and function codes: why 40001 is register 0

    A reference-style guide to Modbus data tables, 0-based versus 1-based addresses, the common function codes and exception responses, with the classic off-by-one trap explained.

    Industrial protocols · 3 min

Related tools

Try what you read.

PDF resources

Guides and worksheets to bring to a meeting.

All resources

Validate a Modbus register map before commissioning

A practical sequence for checking offsets, signedness, byte order and scaling before register values reach a dashboard.

2 pages · 169 KB

Every article on this topic

Open in the article list

Common questions

Modbus, OPC UA or MQTT?

They suit different jobs: Modbus for simple device access, OPC UA for client/server communication with an information model and security, and MQTT for lightweight publish/subscribe data distribution. Many projects use them together.

Why are my Modbus register addresses off by one?

Documentation may use 1-based (40001) or 0-based addresses, while the frame carries a 0-based offset. Our register addressing article explains the details.

Other topics

Planning an IT/OT project?

Describe your machine, data flow or production goal in a few sentences and the ASP Dijital team will reply by email.

Contact ASP Dijital