Explainer
Why parallel Modbus TCP clients beat one sequential poller
Short answer
Give each Modbus TCP slave its own client on the PLC and start every next request from the previous completion. A reported bench test held about 85 updates per second per client at a 10-register read, and raising the payload from 1 to 100 registers only dropped the rate to about 80 per second, because transaction count and scan scheduling — not register count — set the polling speed.
On this page
- Why does one sequential Modbus TCP poller fall behind?
- How much speed do parallel Modbus TCP clients add?
- How much does register count change polling speed?
- How do you lay out one client per slave in the PLC?
- Example: can seven parallel clients meet a 25 ms service goal?
- When does one client per slave not help?
- What else sets the ceiling on update rate?
- Which Modbus TCP polling layout should you choose?
- Questions asked
When several Modbus TCP devices update too slowly, the fix is usually transaction layout, not a faster controller. One client services its slaves strictly one after another, so every device's update interval is the sum of all the others. Give each slave its own client and start each next request from the previous completion, and the transactions run side by side instead of in a queue. In a reported bench test, that layout sustained roughly 85 updates per second per slave on a 10-register read, and growing the payload a hundredfold barely moved the rate. This article walks through why the queue forms, what the bench measured, how to structure the client logic, when the parallel trick fails, and how to choose between the layouts from your own service requirement.
Why does one sequential Modbus TCP poller fall behind? #
A single client runs its transactions strictly one after another, so seven slaves at about 12 ms per read transaction — the measured figure used throughout this article — leave each device waiting roughly 7 × 12 = 84 ms between updates.
The transaction does not end when the scan that started it ends: the request travels through the client driver, the Ethernet link, the slave's processing and the response path before the data lands in controller memory. Serialized layouts therefore commonly budget several scans of scheduling latency per read or write — a planning estimate to check against your own scan time, not a documented rate. A request re-fired every scan does not shorten the transaction in progress either; it piles up overlapping requests or exception codes. The queue is the layout's fault, and no timer setting removes it.
Keep three intervals separate whenever you talk about polling speed:
- Transaction time — from issuing one request to its response, or a terminal error, landing back in the controller.
- Update interval — time between consecutive successful updates for one device.
- Service cycle — all the reads and writes one device must complete per pass.
The bench test behind this article measured a transaction time; the application goal it had to meet was an update interval per device. Mixing the two is how polling projects end up faster on paper and no quicker on the floor.
How much speed do parallel Modbus TCP clients add? #
In the reported bench test, seven dedicated clients each sustained about 85 updates per second — one read of 10 holding registers roughly every 12 ms — for roughly 595 completed transactions per second across all seven.
What the test was: one controller acted as the client, a second acted as the slave, the two sat on a private bench link, and each client ran exactly one read transaction at a time — no writes, no third-party devices, no other traffic. Read the numbers as a demonstration of what the layout unlocks, not as a datasheet entry for any product: the aggregate followed the client count, and the same seven transactions pushed through one client would have stacked into the round-robin described above.
Why the rate holds: nothing in Modbus TCP forces one client to finish with slave 1 before starting on slave 7. Separate client sessions are independent conversations, and the slave side works each connection on its own. The wire was never the constraint — a minimal read exchange is a few hundred bytes, microseconds of link time — the constraint was serialization inside one client.
One distinction to keep straight: parallel sessions multiplex conversations over the one Ethernet port you already have; they do not add a second physical network. The difference matters when you size a controller, and it is laid out in how a PLC runs two Modbus networks at the same time.
How much does register count change polling speed? #
Barely at all in the tested range: the same client moved about 86 transactions per second with 1 register per read and about 80 with 100 registers, so a hundredfold jump in payload cost roughly 7 percent of the rate.
Every transaction carries fixed baggage — connection handling, protocol framing, scheduling, and the round trip itself — and at small payloads that baggage dominates the transfer. That is why the old advice still stands under parallel clients: exchange the largest useful contiguous block per transaction. The parallel win comes from running fewer queues, not from shrinking the transactions inside them.
Size the blocks from your application data. Nine integers plus a status word fit one 10-register read; split into nine single-register requests, the same data costs nine transactions and nine queue slots on a shared poller. Map commands, diagnostics and parameters into contiguous ranges next to the process data, then count transactions per pass — that count times your measured transaction time predicts the service interval far better than the register total does.
How do you lay out one client per slave in the PLC? #
Create one client device per slave address, give each its own state machine or rung, and start the next request only from the previous transaction's completion flag — never from a scan-triggered timer that re-fires while a transaction is still open.
The working rules that fall out of the bench numbers:
- One active transaction per client. Grant a second only if your client device's documentation explicitly supports independent concurrent transactions.
- Completion-driven sequencing. The done flag starts the next request and stamps the completion time, so you can trend the longest interval per device rather than judge from averages.
- Ordered writes. On most client devices a write queues behind the pending read on the same session; slot critical writes where the sequence leaves room — the same completion-driven trick used to speed up Modbus RTU writes behind polled reads.
- A measured per-client gap only where a device needs one. If one target demands breathing room, give that client a minimum gap sized from its documented turnaround behavior — not a global delay that taxes every device.
- Per-client timeout and failure counter. A slow or dead device then alarms itself instead of dragging the whole schedule.
Check the timeout defaults while you are in there: many platforms ship generous Modbus timeouts, and one dead slave then costs its client the full timeout on every attempt. Set the value from your devices' documented response behavior and alarm after a few consecutive failures.
Example: can seven parallel clients meet a 25 ms service goal? #
Seven parallel clients meet it: each slave sees a fresh read roughly every 12 ms, so both the 25 ms preferred cadence and the 250 ms worst-case bound pass, while one sequential client instead delivers 84 ms intervals and fails only the tighter goal.
The case: seven devices, each holding nine integers the controller reads every pass; the requirement is every device updated at least once per 0.250 s, with 0.025 s as the preferred cadence; one 10-register read covers each device's exchange.
Required service rate per device:
- Worst-case bound: 1 / 0.250 s = 4 service cycles per second.
- Preferred cadence: 1 / 0.025 s = 40 service cycles per second.
Parallel layout, one client per device:
- Interval per device equals one transaction time — under half the preferred cadence, so it passes with better than 2× margin.
- Aggregate demand at the preferred cadence: 40 cycles/s × 7 devices = 280 transactions/s, against a measured aggregate near 595 — about 53 percent headroom.
Sequential layout, one shared client:
- Round-robin interval per device: 7 × 12 ms = 84 ms.
- Against the worst-case bound: 1 / 0.084 s ≈ 11.9 cycles/s, comfortably above the 4 required — it passes.
- Against the preferred cadence: 11.9 cycles/s is far below the 40 required, and the client delivers only 7 / 0.084 s ≈ 83 transactions/s against the 280 demanded — it fails.
Decision: at the worst-case bound, either layout clears it with room to spare — take the parallel layout anyway, because a dead slave then stalls only its own client. At the preferred cadence, one client per slave is mandatory, and the margin is measured in single transactions, so prove it on the real devices before promising the number.
One more count before promising a cadence: the bench ran reads only. If each pass also writes a command word to every device, demand doubles to 560 transactions/s against that near-595 measured aggregate — roughly 6 percent of headroom, which retries and scan jitter will eat. Plan from the longest observed completion interval, not the average.
When does one client per slave not help? #
Parallel clients stop helping wherever the transactions queue up again anyway: behind a serial gateway, through one bridge or route serving many slaves, or on a slave that accepts only a couple of TCP sessions — the queue just moves to the shared link.
Gateway-fronted serial devices. If the TCP target is a gateway front-ending serial slaves, every parallel client collapses into one serial queue at the gateway. Pacing there obeys serial rules — inter-frame gaps, per-device turnaround — because a serial slave needs time to empty its buffer and build the reply before the next frame arrives; reported commissioning cases needed delays of tens of milliseconds between polls before responses came back reliably. That serial-side arithmetic is its own article: why Modbus RTU drive polling on one serial port is slow.
One route, many slaves. If the client reaches several TCP slaves through a single bridge or routed path, the path serializes them no matter how the logic is laid out. That topology, and how one client still reaches every device through it, is covered in how one MSG route reaches multiple Modbus TCP slaves.
Software slaves and protocol hosts. If one target is a Modbus server running as software next to the controller — a simulator, a historian front end, a protocol converter host — that job needs its own computer in the cabinet, and an industrial mini PC is built for exactly that seat.
Count the sessions. Every client opens one TCP connection on its target, and targets document a limit on simultaneous connections. Exceed it and the extra connections are refused — which looks like a communications fault, not a design limit.
What else sets the ceiling on update rate? #
Four things dominate once the layout is right: PLC scan time and scheduling latency, each slave's own response time, network load on shared links, and timeout settings that cost a client its full timeout on every dead poll.
Measure the right thing. A transaction spans PLC logic, the client driver, the Ethernet link, the slave's processing and the response path, so scan counts cannot tell you which part is slow. Trend completed updates per client and the longest interval between completions; plan from that longest interval, because it already contains scan jitter, slow responses, contention, exception handling and retries.
Change one variable at a time. Shorten timeouts toward your devices' documented response behavior, confirm the path is switched end to end rather than hubbed, and re-measure. A faster CPU or a faster link cannot un-serialize a queue; it only shortens each frame's travel.
One safety note, and one only: when polled values drive outputs, a timed-out slave's data is stale, and the machine must take those outputs to the state your risk assessment defines. Writes into output registers from outside the control program deserve the same discipline described in safe Modbus writes to PLC output registers from SCADA.
Which Modbus TCP polling layout should you choose? #
Pick the layout from two numbers: the required service interval per device and the measured transaction time; a dedicated client per slave clears any requirement shorter than slave count × transaction time, and one shared client is fine whenever that product still beats the requirement with margin.
The decisions, case by case:
- Requirement comfortably above slave count × transaction time — the 0.250 s case above: one client is enough, though the parallel layout still buys fault isolation, since a dead slave stalls only its own client.
- Requirement below that product — the 0.025 s cadence: one client per slave, then verify aggregate demand against measured capacity before you commit the schedule.
- Slaves behind a serial gateway, a routed bridge, or a target with a tight connection limit: parallel TCP clients add nothing; budget the shared link instead.
- Demand that leaves less headroom than a typical retry costs: re-cut the data into larger contiguous blocks, drop transactions per pass, or split clients across a second interface — a second physical network, not merely more sessions on the existing one.
Commit on numbers you measured on your own devices: transaction time, longest completion interval, required service interval. The bench tells you the first layout to test — one client per slave — and the arithmetic above tells you whether it passes.
Questions asked
How many Modbus TCP clients can one slave accept?
Treat every client as one TCP connection on the target and check the slave's documented limit for simultaneous connections before you assign one client per device. Drives and compact gateways commonly allow only a handful, and excess connections are refused in a way that looks like a communications fault rather than a design limit. If the limit is below your device count, poll through one client or front the group with a gateway that gives each client its own port.
Do Modbus RTU slaves still need a delay between polls?
Yes on the serial side, and it is a different problem from the TCP layout. A serial slave needs time to empty its receive buffer and build the reply before the next frame arrives, and one reported commissioning case needed a 100 ms gap between polls before responses came back reliably. Over Modbus TCP with completion-driven sequencing there is no fixed delay to add; pace serial devices behind a gateway from the serial side's documented turnaround, not from the TCP logic.
What happens when one slave stops answering?
With one client per slave the failure is contained: that client alone burns its timeout and retries while the other clients keep their cadence — the fault-isolation argument for the parallel layout. With a single shared poller, every device waits behind the dead slave's timeout on every pass. Set timeouts from your devices' documented response behavior rather than the often generous defaults, and alarm after a few consecutive failures instead of retrying forever.
Will a faster PLC or a faster Ethernet link fix slow polling?
Not while the layout is serialized: the bottleneck is the queue, so a faster link only moves each frame sooner while devices still wait behind each other. Fix the layout first. If every slave has a client and measurements still miss the requirement, the levers left are larger contiguous blocks per transaction, fewer transactions per pass, or splitting the clients across a second interface — a second physical network, not merely more sessions on the existing one.