Modbus, OPC UA and MQTT Integration for Machines and Plants

For automation OEMs, system integrators and plant teams connecting machines to software, EmbedCrest implements Modbus RTU and TCP, OPC UA and MQTT on devices and gateways, so data moves reliably from PLCs, meters and controllers to SCADA, MES and cloud platforms. We also build BACnet interfaces for building systems where agreed.

Technically reviewed by the EmbedCrest engineering teamUpdated

Who this is for

  • Plant Head or Factory Automation Head
  • System Integrator or Automation OEM
  • CTO or VP Engineering at an OEM
  • Building automation product team

Outcomes we work towards

  • Machine data available without replacing controllers
  • Consistent tag naming across machines and sites
  • Secure connections between OT and IT systems
  • Products that integrate with customer plant systems

Plants speak many protocols, and none of them map neatly

A typical plant mixes Modbus RTU meters on RS 485, Modbus TCP devices, PLCs that expose OPC UA or vendor protocols, and IT systems that expect MQTT or REST. Register maps are poorly documented, polling overloads old devices, tag names differ between machines and security is often absent on legacy links. Product OEMs face the reverse problem: customers expect their device to speak the plant's protocol correctly from day one.

Scope

What We Design, Build and Hand Over

  • Modbus RTU and Modbus TCP master and slave implementations on devices and gateways
  • OPC UA server and client development with information models for your equipment
  • MQTT clients with TLS, retained state, buffering and Sparkplug B where required
  • Protocol conversion gateways between fieldbus, OPC UA, MQTT and REST
  • Register and tag mapping, scaling, units and data quality handling
  • BACnet IP and MS/TP interfaces for building products, where agreed
  • Security: certificates, user authentication, network segmentation guidance
  • Interoperability testing with common SCADA, PLC and broker tools
Architecture

Protocol path from machine to platform

Field devices keep their native protocols; an edge layer normalises the data, adds context and publishes it securely to plant and enterprise systems without changing the PLC programme.

  1. Step 1

    Field devices

    Meters, drives, sensors and PLCs on Modbus RTU, Modbus TCP or OPC UA.

  2. Step 2

    Edge gateway

    Polls or subscribes to devices, applies scaling, timestamps and data quality flags.

  3. Step 3

    Information model

    Consistent tag names, units and asset hierarchy shared across machines and sites.

  4. Step 4

    Transport

    OPC UA to SCADA and MQTT with TLS to brokers, buffered when links drop.

  5. Step 5

    Applications

    SCADA, MES, historians, dashboards and analytics consume the normalised data.

Protocol path from machine to platform
Comparison

Modbus vs OPC UA vs MQTT

Modbus vs OPC UA vs MQTT
FactorModbus RTU and TCPOPC UAMQTT
ModelRequest and response, master and slaveClient and server, plus PubSubPublish and subscribe via a broker
Data meaningRaw registers, meaning in documentationRich information model with typesPayload defined by you or Sparkplug B
SecurityNone in classic ModbusBuilt in authentication and encryptionTLS and broker authentication
FootprintVery smallLarger, needs capable devicesSmall client, needs a broker
Best fitMeters, drives, legacy devicesMachine to SCADA and MES integrationEdge to cloud telemetry, many consumers
Use Cases

Where Teams Use This

Legacy PLC and meter data to a dashboard

Gateway polling Modbus meters and PLC registers, mapping them to named tags with units and publishing over MQTT to a dashboard or historian without changing the PLC logic.

OPC UA server for an OEM machine

Embedded OPC UA server exposing machine status, counters and alarms through a structured information model, so end customers can connect the machine to their SCADA or MES.

Building controller with BACnet and Modbus

Building Management System (Building BMS) integration in which a controller reads Modbus energy meters and HVAC devices and exposes them as BACnet objects to the building supervisor.

Multi site telemetry with MQTT

A shared MQTT topic structure and payload format across several plants, with store and forward at each gateway so data survives network outages and arrives in order for reporting.

Process

How the Work Runs

  1. Device and data audit

    List devices, protocols, register maps, network topology and the data each consumer actually needs, including update rates.

  2. Data model design

    Define tag naming, units, asset hierarchy, OPC UA model or MQTT topic structure and security approach.

  3. Implementation

    Build or configure protocol drivers, conversion logic and buffering on the device or gateway, with automated tests.

  4. Interoperability testing

    Test against real devices, PLCs, SCADA clients and brokers, checking polling load, reconnects and data quality.

  5. Commissioning support

    Support site commissioning remotely or with your integrator, then hand over mapping files and documentation.

Deliverables

What You Receive

  • Protocol and device inventory
  • Tag map with units, scaling and update rates
  • OPC UA information model or MQTT topic specification
  • Gateway or device firmware and configuration
  • Interoperability and load test results
  • Security configuration and certificate procedure
  • Commissioning checklist and handover documentation

Have a similar challenge?

Share a short brief; an engineer replies within one business day. How engagements work

Prefer a fixed scope start? Firmware Health and Security Audit

Discuss Your Protocol Integration
FAQ

Questions About Modbus, OPC UA and MQTT

What is the difference between Modbus and OPC UA?

Modbus is a simple request and response protocol that moves raw register values, with meaning defined only in device documentation and no built in security. OPC Unified Architecture (OPC UA) carries structured, typed data with an information model, discovery and built in authentication and encryption. Modbus suits simple devices; OPC UA suits machine to SCADA and MES integration.

Should we use OPC UA or MQTT?

They solve different problems and are often used together. OPC UA is strong for structured machine data and direct integration with SCADA and MES. MQTT, a lightweight publish and subscribe protocol, is strong for sending telemetry from many devices to cloud or enterprise consumers through a broker. Many plants use OPC UA at the machine and MQTT from the edge upward.

Which industrial protocols can be integrated into a factory IoT gateway?

Commonly Modbus RTU and Modbus TCP, OPC UA, MQTT and, depending on hardware and licensing, vendor protocols such as Siemens S7, EtherNet/IP or CNC interfaces. We list only the protocols actually implemented and tested for your project in the SOW. Proprietary protocols require vendor documentation or licensed libraries.

What is BACnet and how is it integrated with Modbus in a building BMS?

BACnet is the building automation protocol standardised as ASHRAE 135 and ISO 16484 5, used by Building Management System (Building BMS) supervisors to read and control HVAC, lighting and metering. Many field devices speak Modbus instead, so a gateway or controller reads Modbus registers and exposes them as BACnet objects with correct units and alarms.

Is Modbus secure enough for connected plants?

Classic Modbus has no authentication or encryption, so it should stay on segmented local networks. Secure designs keep Modbus traffic behind a gateway, and use OPC UA security or MQTT over TLS for links that leave the machine network. Network segmentation, firewall rules and access control around the gateway matter as much as the protocol itself.

Ready to Scope Modbus, OPC UA and MQTT?

Share your product or plant context. An engineer reviews it and replies with questions, a proposed approach and next steps.

Discuss Your Protocol Integration
Discuss Your Protocol Integration