Explainer
What decides Modbus TCP polling speed to a CLICK PLC
Short answer
Treat the configured Modbus TCP poll period as a request target, not a measurement rate. The transducer's update time, the CLICK's scan, one register range per request and the log writer set the real ceiling: about 100 ms is a reasonable production target for building-voltage trending, a one-point 25 ms test through one switch hop is only a stability check, and mirroring coils into a contiguous holding-register block cuts requests per cycle.
On this page
- What decides how fast you can poll a CLICK PLC over Modbus TCP?
- Why doesn't the poll period you set equal the update rate you get?
- How many registers can one Modbus TCP request read?
- How much time does the PLC's own scan add to a response?
- Why is the measuring transducer the real ceiling on meaningful updates?
- How do you cut the request count in each poll cycle?
- How do request count and response time set the cycle time?
- What does a 25 ms one-point test actually prove?
- What poll period should you set in production?
- Questions asked
Treat the poll period you configure as a request target, not the rate at which new measurements arrive. A Modbus TCP client offers one request per period; what actually lands in the historian is decided by the slowest link in the chain — the transducer's update time, the CLICK's scan, the switch hop, the client's sequential request queue and the database writer. The protocol itself adds a hard shape: one request reads one contiguous register range, at most 125 registers. For building-voltage trending through a CLICK, a 100 ms period is a reasonable production target; a one-point 25 ms test through a single switch hop proves that the test survived, not a supported maximum. This page walks the chain in the order the limits hit, and ends with the period to set and the way to prove it.
What decides how fast you can poll a CLICK PLC over Modbus TCP? #
The slowest link in the chain decides it, not the period you type: the transducer's update time, the CLICK's scan, each switch hop, the client's request queue and the log writer, and for building-voltage trending a 100 ms period is a reasonable production target.
Follow the chain in the order the limits arrive. The transducer converts line voltage into a signal the CLICK's analog input can read, and it refreshes that signal at its own pace. The CLICK serves each request around its scan. The switch forwards frames in microseconds, so one clean hop is rarely the constraint. The client — Mango or any Modbus TCP master — holds a request queue and works it one request at a time. The historian writes whatever arrives.
Modbus TCP is the right transport for a speed question: serial RTU adds character timing and forced silent gaps between frames, and a heavier protocol such as BACnet/IP adds object overhead without making a slow transducer produce fresh values faster. Find the slowest link by measurement rather than assumption; the rest of this page takes the chain link by link.
Why doesn't the poll period you set equal the update rate you get? #
The period is a request target, not a guarantee: the client offers one request each period, and the update rate you actually get is whatever survives the sequential request queue, each response's round trip and scan time, and the writer behind the client.
The period is one setting on one data source: it says when the client may offer the next request, and every stage after the offer adds its own delay. Separate register ranges are worked sequentially, so a map spread over many ranges stretches the cycle even at a fixed period — the queue behavior behind that, and what parallel clients change, is the subject of why parallel Modbus TCP clients beat one sequential poller. Every package hides the same setting in its driver; how Rapid SCADA Modbus TCP configures its poll period shows one driver's version of it.
A millisecond-resolution timestamp on a stored value says when the client handled the value, not that the measurement is a millisecond fresh. A 1 ms period buys connection churn and database load, not data.
How many registers can one Modbus TCP request read? #
One request returns at most 125 holding registers: the response PDU is capped at 253 bytes, the function code and byte count use 2 of them, and 251 remaining bytes hold 125 registers of 2 bytes each — 126 would not fit.
That ceiling is protocol-wide, identical on every vendor's stack, so treat it as a planning constant rather than a tuning knob. One read can carry a wide contiguous block: 125 single-register integers, or 62 floats at two registers each with a register to spare. Client drivers put caps of their own on top — on one SCADA driver the per-request maximum defaults to the protocol ceiling, and field reports put the largest block that passes cleanly at 123 registers — so when a big block read fails, shorten the request by two registers before you suspect the wire. Size planned blocks a little inside the ceiling and the limit never surfaces again.
How much time does the PLC's own scan add to a response? #
A scan-driven PLC serves an incoming request at a scan boundary, and the original Modbus/TCP specification put that answer window at 20-200 ms for scan-behaving devices, so budget the period at twice the worst round trip you measure, not the best one.
Ethernet arrival is fast; service is not instantaneous. A compact PLC answers when its operating system and scan give the communications handler a turn, so the round trip you see is roughly switch forwarding plus driver handling plus scan service. That 20-200 ms window described scan-behaving devices of its era, not a modern compact PLC idling on a switched link — an idle unit is usually far quicker — but the figure that matters is the worst case with the full point list, other traffic and a retry in play, and that worst case you measure, not estimate.
Example: the end-to-end worst reading under real load is 30 ms; doubling it sets a 60 ms floor for the period, and the production target clears that floor with margin to spare. If no measurement exists yet, measuring PLC to SCADA command response time end to end gives the method.
Why is the measuring transducer the real ceiling on meaningful updates? #
The transducer converting line voltage into the CLICK's analog input updates its output on its own response time, so polling faster than that returns repeated samples; its documented update time, not the period, sets the floor for new meaningful values.
A transducer is a measuring system with a bandwidth of its own: Hall-effect and fluxgate families, for example, track changes at different speeds, and the datasheet's response or update time is the number to bring to this decision. Poll faster than that and the log fills with the same sample repeatedly — the trend looks busy and no new information arrived.
Do the cycle arithmetic before blaming the PLC. A 60 Hz supply completes a cycle in 1/60 s = 16.7 ms, so a half-cycle sag lasts about 8.3 ms, and no poll chain built from a PLC, a switch and a historian can be relied on to land a sample inside that window. Decision: if operations must catch and time-stamp sags at that scale, event detection belongs in a power-quality meter at the input, with the CLICK and the historian handling supervisory trending; if the target is slower fluctuations — load swings, loose contacts, sags of several cycles — the transducer and the production target already cover it.
One safety note, since the measurand is mains: the transducer's rating, isolation, fusing and wiring belong to the panel design, and no poll period changes that.
How do you cut the request count in each poll cycle? #
Modbus carries one starting address and one count in each request, so grouping adjacent values and mirroring discrete coils into a contiguous holding-register block turn a scattered map of 6 ranges into 2 requests, and the arithmetic below shows what that saves.
Inventory every point by data type and address, then group. Analog values in adjacent registers travel together in one request — reading PLC tag arrays in one block request shows the block pattern at scale. A 32-bit float spans two consecutive registers and its word order is a classic trap; reading a CLICK PLC float over Modbus TCP in an HMI walks that layout through.
Coils cannot merge into a holding-register read, so copy the discrete states into a contiguous holding-register block inside the PLC program and refresh the whole block in one scan, so the client never reads a half-old map — keep the acquisition block deliberate the way an S7-300 example of keeping read parameters in contiguous ranges shows it. Never stretch a read across undocumented addresses to inflate one transaction: build the block on purpose, document every word of it, and keep local control independent of the historian so a lost SCADA link stops nothing at the machine.
How do request count and response time set the cycle time? #
Multiply requests per cycle by the round trip each one takes: with 2 requests at an illustrative 6 ms each, one cycle moves data for 12 ms, which is 12% of the production target and 48% of the one-point test period.
The percentages are illustrative — they assume a local switched link and a 6 ms round trip that is an example figure, not a CLICK specification; measure your own round trip before trusting them. The worked example: the map holds three analog values in adjacent holding registers, one request, and twelve discrete states mirrored into one contiguous block, a second request — two requests per cycle.
At an illustrative 6 ms per request, one cycle moves data for 2 × 6 ms = 12 ms. Against a 100 ms period that is 12 ÷ 100 = 12% busy, which leaves room for one retry and for someone else's traffic on the switch. The same fifteen points scattered over six ranges cost 6 × 6 ms = 36 ms, or 36% of the period, before anything goes wrong at all. At the one-point test period, 12 ms is 48%, and a single retransmission consumes the rest — which is exactly why short periods and scattered maps do not mix.
What does a 25 ms one-point test actually prove? #
It proves the small test survived: one reported CLICK installation polled a single point every 25 ms — 40 requests per second — through one switch hop for ten minutes with no client-side errors, and nothing beyond that interval should be concluded.
What it rules out is gross fault: wrong addressing, a broken driver setup, an unstable connection. What it does not establish is a maximum supported rate, because everything that loads a production system is absent — the full point list, other traffic on the switch, retries, months of historian writes. The same install planned a 250 ms production period, which is a sane landing spot for building-voltage monitoring.
Treat a result like it as permission to scale the test, not as a rating. Add register ranges in increments, and at each step compare the configured period with the stored timestamp deltas, watch the error counters, note samples identical to the one before them, and check the write backlog before moving on.
What poll period should you set in production? #
Set 250 ms when four updates per second cover the process, move to 100 ms for fluctuation trending once the transducer and the measured worst round trip allow it, and treat anything below 25 ms as a load test with the full point list.
Order the decision by constraint, not ambition. First the transducer: if its update time is slower than the cadence the process needs, no period helps — fix the measurement or accept repeated samples. Second the round trip: the period must clear the doubled worst-case figure from the scan section. Third the process need: if the comfortable target's cadence describes the fluctuations you care about, stop there; reserve the faster target for trending whose shortest event of interest demands it. Fourth the writer: when communication is clean but storage falls behind, raise the historian's batch settings together and watch the backlog — a slower period is not the fix.
Fifth, give the client a home that suits the duty: a Modbus TCP historian or gateway running unattended in the cabinet next to the CLICK is precisely the job an industrial mini PC is built for. Set the period in that order and the number you type finally describes the data you get.
Questions asked
Is Modbus TCP faster than Modbus RTU for polling a CLICK PLC?
For a speed question, yes. TCP over switched Ethernet carries no serial character timing, no turnaround delay and no forced silent gap between frames, so the round trip is scan service plus network time only. The chain rules still bind: one register range per request, the transducer's own update time and the historian's write rate cap meaningful data on any transport.
What is the difference between the poll period and the response timeout?
The period says how often the client offers a request; the timeout says how long it waits for the response before declaring an error and retrying. A period shorter than the worst round trip turns slow responses into a stream of timeouts that make a healthy link look broken. Set the timeout above the worst response you measure and the period at or beyond twice that figure.
What should change in Mango when the period gets short?
Raise the NoSQL store's small batch insert size and small batch insert delay together, then judge by the write backlog and the stored timestamps rather than the configured period. If stored values repeat sample after sample, the client is polling faster than the transducer refreshes, and a still shorter period only fills the database with duplicates.
Where should the timestamp of a voltage event come from?
From the device that sees the event. The historian's millisecond stamp marks when the client handled the value, and the scan, the queue and the switch all sit between that moment and the event itself. A power-quality meter stamps at the input, and a PLC can latch a fast event into a register the moment it occurs, so that latch time travels with the data. Stamp at the edge whenever event time matters more than poll cadence.