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
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 Type | Address | Access | Typical Content |
|---|---|---|---|
| Coil (Coil) | 1–9999 | Read/Write | Digital status (ON/OFF): pump, valve, alarm |
| Digital Input | 10001–19999 | Read-only | Digital input: switch, sensor |
| Input register | 30001–39999 | Read-only | Analog measurement: temperature, current |
| Hold register | 40001–49999 | Read/Write | Setpoint, 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.