{"docs":[{"id":185,"title":"Modbus, OPC UA and MQTT: Connecting Industrial Equipment to the Cloud","heading":"Modbus, OPC UA and MQTT: Connecting Industrial Equipment to the Cloud","subheading":null,"category":"Industrial IoT","body":{"root":{"type":"root","children":[{"type":"heading","tag":"h3","version":1,"children":[{"type":"text","text":"A common architecture","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"An edge gateway polls Modbus devices and reads OPC UA servers on the plant network, converts raw values into named, scaled tags with units and timestamps, and publishes them over MQTT with TLS. The plant keeps its existing protocols, and the only external link is one encrypted session opened from inside.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"OPC UA already carries an information model, security and certificates, so it can serve as the semantic layer, and its PubSub specification can run over MQTT. For plain MQTT, the Eclipse Sparkplug specification defines topics, payload encoding and device state, avoiding a new naming scheme per project.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"tags":"Industrial IoT, Modbus, OPC UA, MQTT","cardCta":{"label":null,"link":null},"pageCta":{"label":"Talk to AAVICO engineering","link":"/contact"},"excerpt":"Most industrial equipment already speaks a protocol. Getting its data to the cloud means choosing how to read it, model it and move it securely.","featuredImage":null,"type":"Blog","readTime":"3 min read","publishedAt":"2026-11-15T15:32:00.000Z","heroImage":null,"introText":"Factory equipment is rarely designed with the cloud in mind. A typical site has PLCs, drives and meters speaking Modbus, newer machines offering OPC UA, and a growing number of systems publishing over MQTT. Connecting them is less about any one protocol than how the three fit together: what reads the equipment, what gives the data meaning, and what carries it off site. This article covers each role.","metrics":[{"id":"modbus-opc-ua-and-mqtt-connecting-industrial-equ-metric-1","value":"502","label":"The TCP port registered for Modbus TCP. Modbus RTU runs over serial lines, usually RS-485.","icon":null},{"id":"modbus-opc-ua-and-mqtt-connecting-industrial-equ-metric-2","value":"16-bit","label":"The size of a Modbus register. Larger values and floats span two or more registers.","icon":null},{"id":"modbus-opc-ua-and-mqtt-connecting-industrial-equ-metric-3","value":"4840","label":"The port registered for OPC UA over its binary TCP protocol.","icon":null},{"id":"modbus-opc-ua-and-mqtt-connecting-industrial-equ-metric-4","value":"IEC 62541","label":"The international standard series that defines OPC UA.","icon":null}],"gallery":[],"challenge":{"root":{"type":"root","children":[{"type":"paragraph","version":1,"children":[{"type":"text","text":"Modbus is simple and everywhere, but it carries only numbers at addresses. Whether holding register 40010 is a temperature in tenths of a degree or a fault code lives in a manual, and word order for 32-bit values differs between vendors. Classic Modbus has no authentication or encryption.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Sending raw register values to the cloud moves the problem rather than solving it. Every consumer then needs the device map, and a firmware change on one machine silently corrupts downstream dashboards.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"blockquote":{"quote":"Read with the protocol the machine speaks, model the data once at the edge, and publish it with meaning attached.","author":"","role":"AAVICO Engineering"},"supportImage1":null,"deliverables":{"root":{"type":"root","children":[{"type":"paragraph","version":1,"children":[{"type":"text","text":"Survey the equipment: protocol, physical interface, register map or OPC UA address space, and how often each value is really needed.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Define the tag model once: names, units, scaling, data types and quality flags, and map every source to it at the gateway.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Agree network security with site IT and OT staff: segmentation, outbound-only connections and certificate management for OPC UA and MQTT.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"results":[{"id":"modbus-opc-ua-and-mqtt-connecting-industrial-equ-result-1","title":"Meaningful Data","description":"Cloud systems receive named, scaled values rather than raw register numbers."},{"id":"modbus-opc-ua-and-mqtt-connecting-industrial-equ-result-2","title":"Plant Safety","description":"Control networks stay segmented, with no inbound connections from outside."},{"id":"modbus-opc-ua-and-mqtt-connecting-industrial-equ-result-3","title":"Scalability","description":"New machines are added by mapping them to the existing tag model."},{"id":"modbus-opc-ua-and-mqtt-connecting-industrial-equ-result-4","title":"Vendor Neutrality","description":"Open protocols keep data usable across equipment brands and platforms."}],"lookingAhead":{"root":{"type":"root","children":[{"type":"paragraph","version":1,"children":[{"type":"text","text":"Poll Modbus devices only as fast as the data changes. Many serial devices respond slowly, and aggressive polling on a shared RS-485 bus delays everything on it.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Where equipment supports it, prefer OPC UA to Modbus. It carries data types, units and structure that otherwise must be documented by hand.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"supportImage2":null,"testimonial":{"quote":null,"author":null,"role":null,"photo":null},"challengesSolved":[{"id":"modbus-opc-ua-and-mqtt-connecting-industrial-equ-challenge-1","title":"Register maps that live only in a manual","description":null,"icon":null},{"id":"modbus-opc-ua-and-mqtt-connecting-industrial-equ-challenge-2","title":"Inbound connections into the control network","description":null,"icon":null},{"id":"modbus-opc-ua-and-mqtt-connecting-industrial-equ-challenge-3","title":"Scaled values misread downstream","description":null,"icon":null},{"id":"modbus-opc-ua-and-mqtt-connecting-industrial-equ-challenge-4","title":"A serial bus overloaded by polling","description":null,"icon":null}],"relatedPosts":[],"contactUs":{"show":true},"updatedAt":"2026-11-15T17:32:32.682Z","createdAt":"2026-11-15T17:32:32.682Z"}],"hasNextPage":false,"hasPrevPage":false,"limit":10,"nextPage":null,"page":1,"pagingCounter":1,"prevPage":null,"totalDocs":1,"totalPages":1}