IMD SolutionComputing LibraryShop main store

Troubleshooting

Why Ignition tag history records only every 10 seconds

Edge computing and IIoT Published 6 min read

Short answer

History that lands only every 10 seconds, dropping peaks shorter than that, is the historical scan class at work: in the case traced here the Default Historical scan class sat at a 10-second interval while 1 second was expected. SQL Express, Windows 7 and the hardware were not involved. Read the interval on the tag's assigned scan class, set it to the rate your data needs, and prove the fix with a brief test peak in a history query.

On this page
  1. The scan class sets the record rate
  2. Three rates that look like one fault
  3. Why SQL Express and Windows 7 were innocent
  4. Fix it and prove it
  5. The decision, case by case
  6. Questions asked

Tag history that lands only every 10 seconds, and swallows short peaks whole, is the historical scan class talking: the tags are sampled for storage on a 10-second interval, in the case traced here because the Default Historical scan class sat at 10 seconds when 1 second was expected. SQL Express, Windows 7 and the CPU were all suspected, and none caused it. The fix is one setting; the proof is a controlled test peak in a history query. Here is how to confirm the scan class is at fault, what a 10-second grid does to transients, and the point at which the database finally earns the investigation.

The scan class sets the record rate #

The Tag Historian documentation is unambiguous about where the record rate comes from: the historical scan class determines how often the value on a tag is recorded, and history reuses the same scan classes that govern how often tags are evaluated. Nothing between the tag and the database resamples on its own. If stored values step in 10-second increments, a scan class is sampling every 10 seconds.

That grid has three consequences you can predict before opening anything:

  • A step change waits up to one full interval before it is stored: a change at t = 11 s is recorded at the next sample, t = 20 s, nine seconds late.
  • Two changes less than one interval apart can collapse into a single stored value, because only the value at the sample instant counts.
  • An event shorter than the interval can vanish without a trace: history shows the pre-event value, then the post-event value.

The first two produce exactly the complaint that starts these hunts: history that looks 10 to 20 seconds behind the process, one to two intervals.

Worked example. A tag's history scan class runs at 10 s, so samples fall at 0, 10, 20 and 30 s. A peak runs from 12 s to 16 s, four seconds long. Sample instants inside that window: none. Stored rows for the peak: 0. The record jumps from the old value at 10 s to the new value at 20 s. Set the same scan class to 1 s and the samples inside the window become 12, 13, 14 and 15 s (16 s too, depending on where the falling edge lands): four to five rows that draw the rise and fall. The rule that falls out: to guarantee at least one stored sample of an event, the interval must be at or below the event's duration; to see its shape, at or below one quarter of the duration. For a 4-second peak that means 1 s or faster.

Three rates that look like one fault #

Part of why this takes all day to find is that three independent rates produce symptoms that feel identical at the screen. Keep them apart:

Rate What it controls Symptom when it is the culprit
Device polling when Ignition reads the PLC or Modbus device the live tag value itself is stale
Screen binding what the operator sees live tag changes promptly, screen lags or moves only on refresh
Historical scan class when values are sampled for storage live value fine, history quantized in 10 s steps or peaks missing

A 1-second polling rate says nothing about the history rate: the historian samples on whatever scan class the tag is assigned for storage, however fast the device feeds it. If the screen only moves when you force a page refresh, the binding or subscription is at fault, and trace Ignition Edge MQTT values that only update on refresh walks that side of the problem. Adjusting any one of these rates leaves the other two untouched.

Why SQL Express and Windows 7 were innocent #

The example system: a demo gateway on Windows 7 with SQL Express, a quad-core i7 and 16 GB of RAM, three Modbus devices, Ignition 7.8.2, showing history every 10 to 20 s. The production systems it was measured against: Server 2008 with SQL Standard, about 50 devices at roughly 30 tags each. Run the tag arithmetic: 50 × 30 = 1500 production tags against 3 × 30 = 90 demo tags. The demo carried about 6% of the tag count (90 ÷ 1500) and was the slow one. Resource starvation does not pick the smaller load.

The Express caps quoted during the hunt, one processor and 1 GB of memory for the editions of that era, are real ceilings, but they bound write throughput: rows arrive late, in bursts, or with errors. They cannot align stored values to a tidy 10-second grid, because sampling happens in the gateway before the database is involved. The fingerprint is in the timestamps: values stamped at exact 10-second multiples, correct and complete, are configuration. A starved database gives you delays and gaps around correct sample times, not a slower sample clock.

The verdict, reached by setting the scan class to 1 s and watching the peaks appear: the historian had never sampled the transients. SQL Express stored everything it was ever given.

Fix it and prove it #

  1. Open the historian configuration for an affected tag and note the historical scan class it is assigned to; here, Default Historical.
  2. Read that scan class's interval. It shows 10 s. Set 1 s: at or below one quarter of the 4-second peaks, it guarantees several stored samples of each event.
  3. Save the change, let the tag run, and compare the live tag against a history query over the same time range.
  4. Prove it with a controlled peak: force a test value for about 4 s, then query the window. Expect roughly four to five stored samples spanning the event, where the old interval could store none.
  5. Cover the flat-line case too: if a shutdown still plots as an ordinary flat trend, check the Tag History Gateway settings, where stale-data detection tracks scan class executions so a flat value and a dead system no longer look the same.
  6. Budget the rows before you leave: a tag that changes continuously goes from 60 ÷ 10 = 6 rows per minute to 60 ÷ 1 = 60 rows per minute, ten times the volume. Cut Ignition Tag Historian growth before compressing the table when the database starts climbing.

The decision, case by case #

  • Live value steps promptly, history moves in 10-second increments or misses short peaks. It is the scan class interval. Set it to what the events require and prove it with a test peak. In the case traced here, that one setting, 10 s to 1 s, was the entire fault.
  • The live value itself is stale. The historian is innocent; it can only store what the tag delivers. Work on device polling, the driver or the tag configuration.
  • Interval right, live value right, rows still late or absent. Now the database path has earned the investigation: connectivity, write errors, and the edition caps if Express is in use. When history stops entirely while live data stays good, work through why Ignition historian tags stopped recording but live data is good.
  • Live tag fine, only the screen lags. Binding or subscription, not history.

Check the scan class first. Above, it ended a hunt through the operating system, the database edition and the processor, and it usually will for you too.

Questions asked

Is SQL Express usable for the Ignition Tag Historian at all?

Yes. The Tag Historian module is built to store time-series data in a SQL database, and Express is one. Its edition caps, one processor and 1 GB of memory in that era, bound how fast it absorbs writes, not when values are sampled. Sites run historians on Express at modest tag counts; the sampling cadence still comes entirely from the historical scan class.

What historical interval do I need to catch a peak of a known length?

Set the interval at or below the event's duration to guarantee at least one stored sample, and at or below one quarter of the duration to see its shape. A 3-second pressure spike needs a 3-second interval or faster for a single point, and 0.75 seconds or faster to draw the rise and fall. Longer events relax the requirement proportionally.

Will faster Modbus polling fix 10-second history?

No. Polling and history sampling are independent rates. With 1-second polling feeding a 10-second historical scan class, the historian considers one of every ten polled values for storage; the other nine never reach the database at all. When the live value already changes at the rate you expect, speed up the scan class, not the device.

Does moving history from 10 seconds to 1 second overload the gateway?

Not the gateway, the database. Sampling is cheap; the cost is rows. A tag that changes continuously goes from 6 rows per minute to 60, ten times the storage and write volume, while steady tags add far fewer rows. If only a handful of tags are fast, run two scan classes instead of raising every tag: 1 second for the fast ones, 10 seconds for slow process values.

Keep reading

  • Troubleshooting

    Why Edge historian gaps look like held values centrally

    The single _exempt_ row in sqlth_sce and the empty sqlth_scinfo are designed behavior: the Edge Historian neither tracks nor validates scan classes, locally or over sync, so an outage queries as a held last value on the central gateway. Add a PLC-sourced heartbeat tag, detect holes in its rows as outage windows, and subtract them from runtime totals - a weekend outage otherwise overstated runtime by 16 hours.

    Edge computing and IIoT

  • Troubleshooting

    Why DB Table Historian is missing on Ignition 8.0

    The DB Table Historian provider type does not exist in any Ignition 8.0.x gateway, regardless of module or license state: the type ships with the 8.1 line. The same configuration that lacks it on v8.0.2 shows it and populates MySQL on v8.1.4, so the fix is upgrading the gateway to 8.1.x and creating the provider on the existing connection.

    Edge computing and IIoT

  • Troubleshooting

    Why Ignition historian tags stopped recording but live data is good

    Correct live values, an executing historical scan class and a valid database connection prove acquisition only. Set Timestamp Source to System so Max Time Between Records of 10 seconds forces samples against the gateway clock, then read the Store and Forward queue direction and the database's own insert errors. Zero stored rows against a timed minimum count means the write path, not the tag, has failed.

    Edge computing and IIoT