GatewayModbusMQTTOPC UAIndustrial IoT

Gateway Protocols: Modbus, MQTT, OPC UA, BACnet — Which Device Connects How?

SolarTools Mühendislik Ekibi4 min read

Key Takeaways

  • A gateway reads field devices and carries their data to the cloud.
  • Most energy devices speak Modbus RTU (RS-485) or Modbus TCP.
  • PLCs use OPC UA, Siemens S7 and Beckhoff ADS.
  • MQTT suits sensors and third-party gateways.
  • SolarTools Gateway reads all of these protocols on a single device.

The first technical question in any monitoring project is: "Can our field devices connect to the system?" The answer depends on which protocol each device speaks and whether the gateway supports it. This post explains what an industrial gateway does, covers the common protocols and shows which device connects with which, in one table.

What Is a Gateway?

A gateway is the bridge between field devices and the cloud platform. An energy analyzer, PLC, inverter or sensor each speaks its own language. The gateway reads these devices on the local network or an RS-485 line. It converts the data into one format and sends it to the platform over a secure connection. If the internet drops, it buffers the data and sends it when the link returns.

For the concepts in more detail, see what are an IoT gateway and connector.

Which Device Uses Which Protocol?

ProtocolTypical deviceConnection
Modbus RTUEnergy analyzer, power factor relay, sensorRS-485 serial line
Modbus TCPInverter, analyzer, PLCEthernet
Modbus RTU BridgeSerial devices + RS-485/Ethernet converterTCP via converter
OPC UAPLC, SCADA and automation serversEthernet
Siemens S7S7-300/400/1200/1500 PLCEthernet
Beckhoff ADSTwinCAT PLCEthernet
MQTTIoT sensors, third-party gatewaysInternet / local broker
BACnetBuilding automation, HVACEthernet
SNMPUPS, PDU, network devicesEthernet
IEC 62056-21 (Mode C)Electricity meter (optical port)Optical probe
REST / SocketWeb services, custom devicesHTTP, TCP/UDP

Modbus: The Common Language of the Field

Most energy devices speak Modbus. The RTU variant runs on an RS-485 line, with up to 247 addresses on one line. The TCP variant carries the same data over Ethernet. If you have a serial device but the line is far from the gateway, an RS-485/Ethernet converter goes in between. The gateway then reads it in "RTU Bridge" mode.

Knowing which value sits in which register is the longest part of setup. Ready-made device templates and automatic Modbus scanning shorten it. For the analyzer side, see energy analyzers and Modbus.

MQTT: Sensors and Third-Party Gateways

MQTT is a lightweight, message-based protocol. It suits battery-powered sensors and cellular modems. If another brand of gateway is already on site, you do not need to remove it. It publishes data over MQTT and the platform reads that stream.

OPC UA, S7 and ADS: The PLC World

Production data in a factory usually lives in the PLC. OPC UA is a secure, vendor-neutral standard. Siemens S7 and Beckhoff ADS talk to those PLCs directly. For details, see moving PLC data to the cloud.

5 Questions When Choosing a Gateway

  1. 1Can one device read every protocol on site? A separate box per protocol means more maintenance.
  2. 2Do you need a site visit to add a device? Settings should be sent remotely from a web interface.
  3. 3Is data lost when the internet drops? Local buffering is a must.
  4. 4Does it work with your existing gateway? Third-party devices should be accepted over MQTT.
  5. 5Are there ready-made device templates? Writing a register map from scratch can take days.

SolarTools Gateway

SolarTools Gateway reads every protocol in the table above on a single device. Connection settings are made in the portal and sent to the gateway remotely. Modbus scanning plus OPC UA and ADS tag browsing make adding a device a matter of minutes. See the data logger page for hardware and the pricing page for cost. Sign-up is free; you can start on the Free plan with up to 5 devices.

Frequently Asked Questions

What is a gateway?

A gateway is hardware or software that bridges field devices and a cloud platform. It reads devices in their own protocols, converts the data into one format and sends it to the platform over a secure connection.

Can one gateway read several protocols at once?

Yes. SolarTools Gateway can read, for example, a Modbus line, a Siemens S7 PLC and an MQTT stream at the same time. Each protocol is defined as a separate connector.

We already have another brand of gateway. Do we need to replace it?

No. If the existing gateway can publish data over MQTT, it connects to the platform. SolarTools Gateway is added only for protocols it does not support.

Explore More

Browse our other solutions and resources to accelerate your energy journey.

Ücretsiz Dene

SolarTools Mühendislik Ekibi

This article was prepared by the SolarTools technical content team and reflects current industry standards in energy management and IoT.

Try the Platform for Free

Free plan · No credit card required · Start now