Industrial Protocol

Modbus Cloud: Upload Your PLC Data to the Cloud

How to Connect Your Modbus RTU or TCP Devices to the Cloud? Modbus/MQTT Gateway Architecture, Use Cases in Water, Energy, and Industry.

Quick answer
Connecting Devices Modbus Connecting to the cloud requires a gateway (IoT gateway) that queries devices using Modbus RTU (RS-485) or Modbus TCP (Ethernet), converts the registers into structured messages (JSON/MQTT), and transmits them via an encrypted 4G tunnel to a cloud platform. This Modbus/MQTT bridge is the standard solution for modernizing industrial facilities without replacing existing equipment.

Why Modbus Remains the Dominant Protocol

Introduced in 1979 by Modicon (now Schneider Electric), Modbus is the world’s most widely used industrial protocol. Millions of devices—PLCs, drives, meters, sensors, and controllers—use Modbus. Its simplicity, openness, and robustness have made it a trusted standard for 40 years.

The problem: Modbus was designed for local serial networks (RS-485) or industrial Ethernet, not for the Internet. To utilize this data in the cloud (monitoring, alerts, analytics), you need a Modbus/cloud bridge.

Modbus-to-Cloud Architecture

From the Modbus sensor to the dashboard
  1. Modbus SensorRTURS-485
  2. Eziwan GatewayModbus master
  3. 4G ConnectivityEncrypted VPN
  4. Cloud EziwanMQTT broker
  5. Dashboard & Alertsreal time
SecureVPN · encryptedConnectivity4G LTE · Dual SIMIndustrialRugged · reliableMonitoringCloud · real time

The gateway acts as a Modbus master: it polls each device according to a configurable schedule (every second, every minute, etc.), collects the registers, and publishes them via MQTT to the cloud. It simultaneously manages RS-485 devices (Modbus RTU) and Ethernet devices (Modbus TCP).

Modbus Registers Explained

Register TypeAddressAccessTypical Content
Coil (Coil)1–9999Read/WriteDigital status (ON/OFF): pump, valve, alarm
Digital Input10001–19999Read-onlyDigital input: switch, sensor
Input register30001–39999Read-onlyAnalog measurement: temperature, current
Hold register40001–49999Read/WriteSetpoint, parameter, configurable value

The gateway reads the registers as needed: for example, measurement registers every minute and alarm statuses every 10 seconds. The value is converted to a physical unit (e.g., register 1234 → 123.4 °C with a factor of 0.1).

Use Cases: Modbus to the Cloud by Industry

Water and Sanitation Pumping stations, reservoirs, wastewater treatment plants: flow meter readings (4-byte IEEE 754 floating-point register), tank levels (4–20 mA → register), pump statuses (coils), pressure (Modbus transducer). Alert if pressure is out of range or if a pump is faulty.

Energy Power analyzers (PM500, PM800 Schneider, EM340 Carlo Gavazzi): voltage, current, active/reactive power, energy (kWh), power factor. Data exported to an energy dashboard for monitoring consumption and inter-building billing.

Manufacturing Industry Schneider ATV, Danfoss VLT, and ABB variable-speed drives: motor frequency, current, faults. PLCs: production counters, cycle times, availability rates (TRS/OEE). Data fed into the ERP or MES.

Agriculture / Smart Farming Soil sensors (moisture, temperature, electrical conductivity), weather stations, irrigation controllers: Modbus polling every 15 minutes, data transmission to the cloud, automatic alerts.

Modbus Polling: Configuring the Optimal Frequency

A common pitfall: setting the polling rate too high on a slow RS-485 bus, which can cause devices to freeze. Recommendations:

  • Critical status variables (alarms, faults): every 5–10 seconds.
  • Process measurements (temperature, pressure, flow): every 60 seconds.
  • Energy meters (kWh, meter reading): every 5–15 minutes.
  • Configuration parameters: on demand only.

The Eziwan gateway allows you to configure groups of registers with different polling frequencies.

The Eziwan Approach

The Eziwan Gateway includes a native Modbus RTU client (RS-485 DIN-rail port) and Modbus TCP (Ethernet), a local MQTT broker for edge preprocessing, and a VPN tunnel to the Eziwan Cloud for monitoring and alerts.

Set it up in just a few minutes via the cloud interface: select the registers to read, the polling frequency, and the alert thresholds—without modifying the PLC program.

For more information: Modbus RTU/TCP gateway, RS-485 cloud gateway, and industrial OPC UA cloud.

Frequently Asked Questions

You might also like