IMD SolutionComputing LibraryShop main store

Troubleshooting

Why a 1-second OPC collector poll times out in a historian

Edge computing and IIoT Published 6 min read

Short answer

A historian OPC collector that survives 30-second polls but times out at 1 second almost always has a workload or latency limit, not a broken tag. Keep the path unchanged, poll a small tag set at the fast interval, then add tags in groups: failure that follows group count is cumulative scan workload, failure on any small set is response time, and each case has a different fix.

On this page
  1. Why does the historian only collect when the poll is longer than 30 seconds?
  2. Where is the timeout actually coming from?
  3. How do I test whether tag count or poll interval is the limit?
  4. What do the two test outcomes mean?
  5. How much read work fits inside a 1-second poll?
  6. What keeps a 1-second poll running without timeouts?
  7. How do you verify the fix before trusting the archive?
  8. Questions asked

A historian's OPC collector that collects at a 30-second poll but times out at 1 second is telling you the read workload no longer fits inside the poll period. The timeout names where the symptom appears, not the layer that limits it. The decision path is short: keep the communication path untouched, prove that a small tag set collects at the fast poll, then add tags in groups until the timeout returns. Failure that follows group count is cumulative scan workload; failure even on a small set is response time on the OPC server or the path behind it. The worked example below shows the arithmetic that separates the two, and each case ends in a different fix.

Why does the historian only collect when the poll is longer than 30 seconds? #

Because at a 1 second poll the collector cannot finish reading every tag before the next cycle is due, while a 30 second poll gives the same read workload thirty times more time, so the timeout marks where the schedule stops fitting. The poll period is a deadline, not a speed setting. A collector that reads tags one after another must finish its whole list before the next cycle opens; when the list takes longer than the deadline, the queue grows, the collector reports a timeout, and the archive only ever fills on the long intervals. Nothing in that pattern points at a single bad tag. It points at total scan time versus period.

Where is the timeout actually coming from? #

The timeout message names the collector that reported it, not the layer that caused the delay, so before changing any setting decide whether the collector's own read timer, the OPC server, or the controller path behind it is the slow party. Read the exact timeout text in the collector diagnostics and note its timestamp and the tags it names. Three layers can hold the answer: the collector's read timer, the OPC server's response time, and the device path behind the server. An OPC UA collector adds a fourth, because its session and channel carry their own timeouts that must outlast the server's worst response; a mistuned session timeout there cascades into frozen clients and archive gaps, which the page on why an OPC UA secure channel times out on an S7-1200 examines on one controller family. If the collector reads stored history rather than current values, remember that an OPC HDA server is permitted to return fewer results than requested or to hand back a continuation point, so a history read can stall even on a healthy connection.

How do I test whether tag count or poll interval is the limit? #

Keep the communication path untouched, poll a small group of five to ten tags at 1 second, then add tags in equal groups until the timeout returns; failure that arrives with group count is workload, failure even on the small set is latency.

  1. Record the exact timeout text, its timestamp and the affected tags from the collector diagnostics before touching any setting.
  2. Poll five to ten tags you can confirm are readable, at the fast interval, over the same path the production collector uses.
  3. If the small set collects cleanly, add tags in fixed groups, for example 50 per step, and note the group where the timeout returns.
  4. If even the small set times out, stop changing tag counts: the limit is response time in the server or device path.
  5. Change one variable per run, either interval, tag count or path, so each result has exactly one cause.

What do the two test outcomes mean? #

Two outcomes are possible, and each points at a different layer: a workload limit that grows with tag count, or a fixed response-time limit that fails regardless of how few tags you poll. The table turns each result into a decision.

Test result Limiting layer Fix that holds the fast poll
Small set passes; timeout returns as groups grow Cumulative read workload Subscriptions instead of repeated reads, or split the set across collectors
Even the small set fails Response time on the server or device path Server and device diagnostics, timeout configuration on the failing hop
Full set passes on the test path but not in production A difference between the two paths, not workload Compare versions, routing and settings between the paths

How much read work fits inside a 1-second poll? #

Scan work has to fit inside the poll period, and the arithmetic decides it: at the example rates below, 400 tags at 20 milliseconds per read take 8 seconds, which fits a 30 second poll and cannot fit 1 second.

Take an illustrative measurement from the collector's cycle diagnostics: an average device response of 20 milliseconds per tag, a set of 400 tags, and a collector read timeout set to 5 seconds.

  • Sequential full scan: 400 tags multiplied by 20 ms gives 8,000 ms, that is 8 seconds per cycle.
  • Timeout check: a 5,000 ms read timer divided by 20 ms per tag allows 250 tags; above 250, cycles abort, below it they complete, which matches a collector that only runs on long intervals.
  • Poll check: an 8-second scan inside the fast period is impossible by a factor of eight; inside a 30 second period it completes with 22 seconds to spare.
  • Fast-poll requirement: the scan must stay under 1,000 ms, and 1,000 divided by 20 allows 50 tags per collector at that response time.

These are example numbers. Measure the response on your own path with the collector's scan-time or cycle diagnostics, then redo the two divisions; the smaller of the two results is the tag budget per collector.

What keeps a 1-second poll running without timeouts? #

When the limit is workload, cut the reads per cycle rather than the archive requirement: subscribe to changes instead of re-reading, split the tag set across more than one collector, and keep the collector's timeout above its measured full-scan time.

  • Convert repeated individual reads to a subscription: an OPC DA group at an update rate, or an OPC UA subscription with a publishing interval, delivers changed values on schedule instead of queuing hundreds of one-off reads.
  • Split the tag set across two or more collectors on separate connections; halving the set halves the scan each one owes per cycle.
  • Check whether the tags must come through the historian collector at all; if they only feed periodic reports, the choice between a historian and a plain OPC tag server for reports may remove the fast-poll requirement entirely.
  • Leave the collector timeout above its measured full-scan time so a slow but completing cycle is logged as data, not aborted as a fault.

How do you verify the fix before trusting the archive? #

Accept the configuration only when the complete tag set archives continuously at 1 second for at least one full production shift, with stored timestamps advancing one sample per second per tag and no new timeout entries in the collector log. A connection that holds while values skip has its own pattern, and the case of a historian that logs memory tags but not OPC tag changes shows why: the collector can look healthy while the archived series sits still. Compare the stored values against the live process value, not against the tag status, and count stored samples over a known period against what the interval promises. If samples lag, re-run the group test; the budget from the worked example is the number the production tag count must stay under.

Questions asked

Should I raise the collector timeout to stop the errors?

No. A larger timeout only silences the message while the archive still misses samples, because the scan still cannot finish inside the poll period. Raise it once, as a diagnostic, to see whether a delayed cycle eventually completes, and record how long that cycle took; that measured time is what you engineer against.

Does the same arithmetic apply to an OPC UA collector?

Partly. OPC UA subscriptions deliver changed values on a publishing interval instead of answering one read after another, so the sequential scan division does not apply. What still applies is that the session and channel timeouts must exceed the server's worst-case response, and that a history read may legally return fewer results or a continuation point.

What evidence should I take to vendor support?

The exact collector and historian versions, the OPC server name and version, the full timeout text with timestamps, the poll interval, the tag count at which failure begins, and the two test results: the small set that passed and the smallest set that failed. With those, support can tell workload from latency without repeating your tests.

How long should I watch the archive before trusting it?

At least one full production shift with the complete tag set enabled. Confirm that each tag stores about one sample per second of live process time, that values track the process rather than repeating a stale number, and that the collector log shows no new timeout entries after the change.

Keep reading

  • Troubleshooting

    Backfill late and out-of-order data into Canary collectors

    Canary's SQL and MQTT collectors both insert historical samples that arrive out of time order, so late data after an outage lands at its correct timestamp; only the OPC DA and OPC UA collectors refuse inserts. Confirm a backfill by opening the affected window in the historian files and looking for samples marked Added with Good quality, and set the MQTT Collector's Reordering Queue Size above its default 0 when messages arrive out of sequence.

    Edge computing and IIoT

  • How-to

    Connecting a Yokogawa ExaOPC server to Canary Historian

    Yes. Canary Historian's OPC client collector reads tags straight from ExaOPC, Yokogawa's OPC server for CENTUM, over DA or UA with no custom driver. Run the DA collector on the ExaOPC host or a same-domain host: cross-host DCOM is where these links break.

    Edge computing and IIoT

  • How-to

    Expose only approved Ignition tags to an external historian

    No — on Ignition 8.1 an authenticated OPC UA client browses everything, and the gateway will not run a second UA server. Republish only the approved tags through a separate server such as Node-RED with the Ignition Node-RED module, firewall Ignition's own endpoint, or move to 8.3 role-based access.

    Edge computing and IIoT

Node-RED writes to InfluxDB on another PC time out