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.
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.
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
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.
Step 1
Field devices
Meters, drives, sensors and PLCs on Modbus RTU, Modbus TCP or OPC UA.
Step 2
Edge gateway
Polls or subscribes to devices, applies scaling, timestamps and data quality flags.
Step 3
Information model
Consistent tag names, units and asset hierarchy shared across machines and sites.
Step 4
Transport
OPC UA to SCADA and MQTT with TLS to brokers, buffered when links drop.
Step 5
Applications
SCADA, MES, historians, dashboards and analytics consume the normalised data.
Modbus vs OPC UA vs MQTT
| Factor | Modbus RTU and TCP | OPC UA | MQTT |
|---|---|---|---|
| Model | Request and response, master and slave | Client and server, plus PubSub | Publish and subscribe via a broker |
| Data meaning | Raw registers, meaning in documentation | Rich information model with types | Payload defined by you or Sparkplug B |
| Security | None in classic Modbus | Built in authentication and encryption | TLS and broker authentication |
| Footprint | Very small | Larger, needs capable devices | Small client, needs a broker |
| Best fit | Meters, drives, legacy devices | Machine to SCADA and MES integration | Edge to cloud telemetry, many consumers |
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.
How the Work Runs
Device and data audit
List devices, protocols, register maps, network topology and the data each consumer actually needs, including update rates.
Data model design
Define tag naming, units, asset hierarchy, OPC UA model or MQTT topic structure and security approach.
Implementation
Build or configure protocol drivers, conversion logic and buffering on the device or gateway, with automated tests.
Interoperability testing
Test against real devices, PLCs, SCADA clients and brokers, checking polling load, reconnects and data quality.
Commissioning support
Support site commissioning remotely or with your integrator, then hand over mapping files and documentation.
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
Related Case Studies
Smart Manufacturing IoT Platform for an Auto Parts Maker
STM32H7 edge nodes with TinyML connect legacy CNC machines over OPC UA and Modbus RTU to AWS IoT Greengrass dashboards for an auto parts maker.
Industrial Predictive Maintenance System with Edge AI
Jetson Orin Nano edge modules analyze vibration and current signatures on CNC machines and motors, with Modbus TCP shutdowns and Azure IoT Hub analytics.
Firmware Modernization for Legacy Industrial Control Systems
Legacy PIC assembly PLC firmware migrated to STM32F4 and FreeRTOS across product variants, adding Ethernet, TLS 1.3, secure boot and HIL equivalence testing.
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
Related Pages
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