Most industrial IoT projects do not fail at the sensor. They fail at the gateway, because the gateway is where three different worlds meet: a fieldbus designed in 1995, a cloud API designed last year, and an operations team that wants none of it to change how the line runs.
This guide covers the protocol reality, the edge processing decisions, and the data volume arithmetic that decides the recurring cost.
Protocol reality on the factory floor
Expect a mixture, not a standard. A typical plant has:
- Modbus RTU / TCP — meters, drives, older PLCs. Simple, universally supported, no type information, so register maps are documentation you must obtain.
- PROFINET / EtherNet/IP — modern PLC-to-IO and PLC-to-drive. Real-time, but usually not routable outside the cell without a gateway.
- OPC UA — the sane choice for PLC-to-IT, with structured data and security. Support varies by PLC generation.
- MQTT — the usual uplink protocol to a platform, because it survives intermittent connectivity.
- Vendor serial protocols — older machines, often undocumented. Budget reverse-engineering time or a protocol converter.
Choose a gateway that speaks at least two of these natively and can run a script for the rest. A gateway that requires a cloud round trip to translate a register is the wrong architecture.
What belongs at the edge
Push everything to the cloud and you pay for bandwidth, storage and latency you do not need. The three functions that belong on the gateway:
- Deadband filtering — only transmit when a value changes beyond a threshold. A temperature holding at 22.4 °C does not need a sample every second.
- Aggregation — compute min, max, average and count per interval locally, and send four numbers instead of 3,600.
- Store and forward — buffer locally during a network outage and replay when it returns. Without this, every WAN blip becomes a data gap that invalidates a report.
Alarm evaluation is a borderline case: local evaluation gives faster response and keeps working offline; central evaluation is easier to change. For safety-adjacent alarms, keep evaluation in the PLC and let the gateway only report.
Data volume arithmetic
| Approach | Samples per tag per day | Relative uplink volume |
|---|---|---|
| Raw, 1 s polling | 86,400 | 100 % |
| Raw, 10 s polling | 8,640 | 10 % |
| Deadband 1 % | Depends on process | 2 – 10 % |
| 1-minute aggregates | 1,440 | ~1.7 % |
Two hundred tags at 1 second raw is about 17 million samples a day. The same tags with deadband and one-minute aggregation produce under a million. That is the difference between a viable project and one that gets switched off after the first invoice.
Security boundary
The gateway sits between OT and IT, which makes it the most attacked device on the network. Requirements: no direct inbound internet access, outbound-only connections to the platform, certificate-based authentication rather than shared keys, a local firewall rule set, and firmware updates that can be applied without stopping the line.
Segment it: a gateway should sit in a DMZ between the cell network and the plant network, not on the office VLAN.
Frequently asked questions
Can one gateway serve a whole plant? Only for low-volume telemetry. For hundreds of tags at sub-second rates, use several gateways per area.
Do I need OPC UA if the PLC supports Modbus? Modbus is faster to implement and weaker on structure and security. For new work, OPC UA is the better choice.
What happens when the network is down? Nothing, if the gateway buffers locally. Specify the buffer depth in days, not megabytes.
Is Wi-Fi acceptable for a gateway uplink? For non-critical telemetry, yes. For anything that must not be lost, use wired Ethernet or a cellular router with a local buffer.
For the hardware, see the industrial automation and control series, the PLC programmable controller, the remote IO module and the industrial PLC HMI touch screen.



