Explainer
Why wireless does not replace Modbus RS485 wiring for cloud OPC UA
Short answer
Wireless replaces the cable between areas, never the serial wiring at the device. Every Modbus RS485 device needs a wired segment that ends at a local gateway, which polls the devices and serves OPC UA to the cloud client. Size each segment by the 32-unit-load driver budget and by scan time, then open a TCP 4840 path for the cloud client.

On this page
A plant full of Modbus RS485 devices cannot go wireless by pointing one antenna at the floor. RS485 is a copper electrical interface, not an IP transport: a device that only has a serial port must be polled over a wired segment by a Modbus client, and wireless becomes useful only from the gateway outward, where the traffic is ordinary IP. The workable architecture for a cloud OPC UA application is one wired RS485 segment per area, a local gateway that polls that segment and serves OPC UA, and a single wireless or routed IP hop from each gateway to the cloud. This article gives the two numbers that size the serial side — the unit-load electrical budget and the scan-time arithmetic — plus the connection rules that decide how the cloud client reaches the gateway.
RS485 is a wire specification, and the device only answers on copper #
TIA/EIA-485-A, the standard behind the RS485 name, defines a differential electrical signal on a twisted pair: voltage levels, common-mode range, and how much load a driver can work into. It defines no connector, no protocol and no radio. A Modbus RS485 device exposes screw terminals for that twisted pair and spends its life answering a serial master's frames, so the first hop from every device is always copper: a multidrop bus with the devices daisy-chained, both extreme ends terminated with a resistor equal to the cable's characteristic impedance (120 Ω for the twisted pair normally used), and the far end of the bus on a serial port of a local gateway. From that serial port outward the path is IP, and IP can ride wireless, fiber or plant Ethernet while the devices never notice a difference.
How many devices one segment may carry #
TIA/EIA-485-A models each receiver input as a number of unit loads and requires a driver to work into 32 unit loads; with legacy transceivers presenting one unit load each, that is the origin of the familiar 32-device figure. Modern transceivers are commonly rated at 1/8 unit load, so 256 of them add up to one driver's load and fit a single segment electrically. Two more ceilings sit on top: Modbus RTU slave addresses run from 1 to 247, with 0 kept for broadcast, and the protocol permits exactly one master per segment — the write-up of why Modbus RTU requires one master on each serial segment shows what two masters on one bus actually break. Take each device's unit-load rating from its documentation and charge every device against its own segment's budget.
The arithmetic for a 120-device plant #
Electrical capacity is rarely the binding limit; scan time usually is. The worked example polls 12 holding registers per device, an example block size: a larger block scales the byte count, and the arithmetic transfers with it.
| Transceiver class | Load per device | Devices per segment | Segments for this plant |
|---|---|---|---|
| Legacy | 1 unit load | 32 | 4 |
| Fractional | 1/8 unit load | 256 | 1 electrically; scan time decides |
Electrical check for this plant: 120 fractional-unit-load devices present 120 × 1/8 = 15 unit loads, inside one segment's budget, while legacy transceivers force the four-segment split.
Scan-time example, with the example inputs stated: 9600 baud, 8 data bits, even parity, 1 stop bit, so every byte carries 11 bits and takes 11 bits ÷ 9600 bit/s = 1.15 ms. A read of 12 holding registers puts 8 bytes on the wire for the request and 29 bytes for the response, so the frames cost 37 × 1.15 ms ≈ 43 ms. Add the two 3.5-character silent intervals between frames, 7 character times ≈ 8 ms, and an assumed 5 ms slave turnaround, an example value to take from the device's manual: about 56 ms per device.
One master scanning the whole plant then needs 120 × 56 ms ≈ 6.7 s per complete scan, and that interval, not radio bandwidth, is the data freshness the cloud will see. Splitting into four segments of 30 devices puts each master at 30 × 56 ms ≈ 1.7 s. The read sequencing behind such a split is laid out in how to poll many Modbus RTU slaves from one serial master, and the reason one busy serial port feels slow, covered in why Modbus RTU drive polling on one serial port is slow, is exactly this byte-time arithmetic.
Where the wireless link belongs #
Wireless enters above the gateways, never below them. Each gateway gets one uplink — a Wi-Fi bridge, a private radio, a cellular router — and that link carries only IP. The volume is modest: the example plant moves a few dozen bytes per device every couple of seconds, so uplink sizing is about coverage and reliability rather than throughput. Survey radio coverage at the actual gateway mounting points, because roof metal and moving machinery are what kill industrial links. When the alternative is a long RS485 run, take the short run plus the radio hop: a stretched serial segment accumulates reflections and loses noise margin, every added meter is a shared fault, and the IP hop is transparent to Modbus timing. The same split comes out of the analysis of whether wireless SWAS analyzers can replace wired DCS inputs: wireless replaces the trunk, never the device-side connection.
Which side opens the OPC UA connection #
OPC UA is client–server, and the client always opens the TCP session to the server; the default endpoint port registered for OPC UA is 4840. A cloud analytics application is the client, so the gateway must run the OPC UA server and the plant must admit that one inbound session: behind a NAT firewall that is a port forward of TCP 4840 to the gateway's address, for example 192.168.1.10, or a site-to-site VPN that routes the cloud client to it. Whatever implements the two roles — an open-source bridge such as modbusua or a commercial UA Modbus gateway — needs one serial port per segment plus the uplink, and an industrial mini PC is the host class built for that pairing in the cabinet.
Keep the gateway on its own network segment with only its OPC UA port open to it, require a signed and encrypted security policy with exchanged application certificates, and never the None policy on an internet-facing endpoint. Leave OPC DA out of a gateway design: it rides on Windows COM/DCOM, so an application that supports both should be pointed at the UA server. When the cloud client will not connect, the fault is almost always direction or routing rather than Modbus, and troubleshooting an S7-1500 OPC UA client that cannot connect works the same questions in the same order.
What the cloud sees when a poll fails #
When a device stops answering, the gateway must publish the failure instead of freezing the last reading as good. The OPC UA data-access status model keeps "communication to the data source has failed" separate from staleness precisely so a dashboard can tell a broken link from an old value: mark the failed item with the communication-failure status and hold its source timestamp at the last successful read. Configure the failure per device, so one dead slave does not drag its whole segment down with it. The acceptance test is physical: disconnect one device, confirm that its items go bad in the cloud within one scan interval while the rest of the segment keeps updating, then reconnect it and confirm recovery.
The decision, case by case #
- Devices that only speak Modbus on serial ports stay wired: no radio terminates in RS485 terminals, so every device joins a copper segment that ends at a local gateway with a serial port.
- Size each segment electrically by charging every device's unit-load rating against one driver's budget — 32 legacy devices or 256 fractional-unit-load devices — then re-check by scan time, which usually binds first.
- For the example plant: four segments of 30 devices at 9600 baud scan in about 1.7 s each, while one master over everything needs about 6.7 s; choose the split by the freshness the analytics need.
- Wireless runs from each gateway's uplink outward and carries IP only.
- The cloud application is the OPC UA client and the gateway is the server: open that single inbound path with a port forward or VPN on the gateway's endpoint port, under a signed and encrypted security policy.
- Failed polls publish the communication-failure status per device with the last good timestamp; nothing in the cloud ever reads a frozen value marked good.
Questions asked
Can any part of the serial side go over radio?
No radio terminates in an RS485 terminal block: the device answers a Modbus client over copper, so the bus from each device to its local gateway stays wired. Serial-over-radio extenders exist, but they stretch the segment's response timing and put a failure point at every device on the bus. The reliable split is copper to the gateway and IP, wireless included, from the gateway outward.
How many devices can share one RS485 segment?
The electrical budget is 32 unit loads per driver: legacy transceivers present one unit load each, so 32 devices, while transceivers rated at 1/8 unit load count an eighth each and 256 fit. The Modbus serial address range runs from 1 to 247, with 0 kept for broadcast. If a device's documentation states no fractional rating, charge it as a full unit load.
Can the gateway push the data out instead of letting the cloud connect in?
OPC UA has no server-push role: the client opens the TCP session to the server, and an application that receives data through OPC UA is the client. If the plant forbids inbound sessions entirely, the practical paths are a VPN that carries the cloud client to the gateway, or a small collector inside the plant that hosts the server role where the cloud can reach it. Reversing the roles works only if the cloud side can itself host an OPC UA server.
What does the cloud show when one device stops answering?
Its items take the communication-failure status, with the source timestamp still showing the last successful read, while the rest of the segment keeps updating. That is why the failure must be configured per device: a gateway that marks a whole segment bad on one dead slave hides thirty healthy devices behind one fault. Alarm on the status change in the cloud, not on the value.
Can one gateway poll all four segments?
Yes, if it has one physical serial port per segment. Modbus RTU allows one master per segment, and several masters can live in one enclosure as separate ports or runtimes; bridging two segments onto one port would put two masters on each bus and collide the addresses. Multiple ports also contain faults: a shorted segment silences only its own devices while the others keep scanning.
Is raising the baud rate an alternative to splitting into segments?
The frame-byte part of the example scales inversely with rate: at 115200 baud the 43 ms of frame bytes drops twelvefold, so each device costs far less per read. The silent intervals and turnaround shrink less neatly, every device on the segment must support the chosen rate, and a faster edge on a long line is less forgiving of cable quality and stubs. Splitting into segments also divides the device count per master, so it scales further.