IMD SolutionComputing LibraryShop main store

Explainer

How Tag Historian deadband compression picks stored points

Edge computing and IIoT Published 6 min read

Short answer

Ignition Tag Historian compresses analog history with a modified sliding window: the first value is stored, each later value proposes limits one deadband above and below itself, only the inside proposal tightens the band, and when a value exits, the last in-band value is written. In the manual's five-point run, point 1 and point 4 are stored; point 4 is written when point 5 breaches.

On this page
  1. The rule the window follows
  2. Why neighboring differences do not decide storage
  3. Tracing five temperature readings through a 2.0 °C deadband
  4. Max time and deadband style complete the decision
  5. Checking your own history against the rule
  6. Questions asked

Ignition's Tag Historian compresses analog history with a modified sliding-window algorithm: the first value of a window is stored, every later value proposes a lower limit one deadband below itself and an upper limit one deadband above itself, only a proposal inside the existing band takes effect, and when a value finally falls outside, the historian writes the last in-band value — not the one that broke out. In the five-point run the Ignition user manual uses to teach this, point 1 is stored and point 4 is stored when point 5 breaches; points 2 and 3 only tightened the limits. Once you can trace that band, a sparse history stops looking like a fault.

The rule the window follows #

The Configuring Tag History chapter of the Ignition user manual — the 8.1 and 8.3 editions carry the same description — calls the method a modified sliding window and teaches it with five raw points on one line and the compressed result on the other. Read as a procedure, it does four things:

  • Stores the first value. Point 1 opens the window and goes straight to history.
  • Forms the initial limits from the next value. Point 2 sets a lower limit one deadband below itself and an upper limit one deadband above itself — the manual's L1 and U1.
  • Tightens only. Each later value proposes its own pair, one deadband below and one deadband above itself. A proposal takes effect only where it lies inside the current band: point 3 pulls the upper limit down to U2 because its lower proposal falls outside L1 and is ignored, and point 4 pushes the lower limit up to L3 because its upper proposal is capped by U2. The band narrows and never widens.
  • Stores on exit. When point 5 falls outside the limits, the historian writes point 4, the last value still inside, restarts the window there, and re-examines point 5 as the next point of the new sequence.

Two consequences follow. The row written at an exit is the value before the breakout, never the breakout itself. And no single difference between neighboring samples decides anything — the band built up since the last store decides.

Why neighboring differences do not decide storage #

The intuitive model — write a row whenever the value moves more than the deadband — fails in both directions. A move smaller than the deadband can force a store, because earlier values may already have pulled a limit close to the current value. The same-sized move can vanish completely, because tightening a limit is not storing. What the mechanism actually guarantees is narrow: values inside the band are not written, and the row appears at the exit carrying the previous in-band value. Storage density therefore depends on the shape of the whole sequence since the last store, which is why two tags with identical deadband settings can end up with very different row counts.

Tracing five temperature readings through a 2.0 °C deadband #

Inputs, and where each comes from. The steps are the documented sliding-window sequence from the manual's five-point run. The deadband, 2.0 °C, is an example setting for a temperature tag. The five consecutive samples — 50.0, 51.0, 50.0, 51.5 and 53.0 °C — are example values chosen so every branch fires once: one upper-limit tightening, one lower-limit tightening, one exit.

The rule in words. Store the first value. Let the next value create the band at itself plus and minus the deadband. Replace a limit only when a later proposal sits inside the band. At the first value outside the band, store the last in-band value and restart.

The arithmetic.

  • Point 1, 50.0 °C: stored; the window opens.
  • Point 2, 51.0 °C: initial limits L1 = 51.0 - 2.0 = 49.0 °C and U1 = 51.0 + 2.0 = 53.0 °C.
  • Point 3, 50.0 °C: proposes 48.0 °C, below L1, rejected; proposes 52.0 °C, inside, adopted. The upper limit becomes U2 = 52.0 °C and the band runs from 49.0 to 52.0 °C.
  • Point 4, 51.5 °C: proposes 49.5 °C, above the current lower limit, adopted as L3; proposes 53.5 °C, above U2, rejected. The band runs from 49.5 to 52.0 °C.
  • Point 5, 53.0 °C: above U2, so outside. The historian writes the last in-band value, point 4 at 51.5 °C, restarts the window there, and treats point 5 as the next point of the new sequence — the new initial limits form around it and it is not written now.

Result. Five raw samples produced two rows: 50.0 °C and 51.5 °C. Points 2 and 3 survive only as the limits they left behind. The exit is the instructive part: point 5 broke out with a rise of just 1.5 °C from point 4, because the dip at point 3 had already pulled the upper limit down to 52.0 °C.

Decision. A historian that traces like this is doing its documented job, so keep the configuration. Commit to the sizing rule it exposes: any change up to the deadband's size can be absorbed without a stored point — the dip from point 2 to point 3 never reached the database — so the deadband belongs below the smallest change the trend must show. If that 1.0 °C dip has to be visible, set the deadband below 1.0 °C; if it does not, keep the current setting and accept that sub-deadband wobble is smoothed away.

Max time and deadband style complete the decision #

The sliding window is only the value-driven half of storage. Max time closes the window on schedule: a signal that never leaves the band is still written when the max-time interval elapses, which is why a flat tag produces sparse periodic rows instead of none, and how deadband and max time decide whether a zero value is logged walks through that case. The window described here is also the analog path only: the deadband style setting decides how change is judged per data type, and Auto versus Discrete deadband style changes when Double tag values reach storage.

Checking your own history against the rule #

Trace before you touch anything:

  1. Collect the live values and the stored rows for the same short interval.
  2. Anchor at the first stored row and rebuild the band: initial limits at the next value plus and minus the deadband, then tighten only the proposals that sit inside.
  3. Mark the first value outside the band; the stored row should be the value immediately before it.
  4. If the rows land exactly there, compression explains the sparse history — leave the tag, the driver and the controller alone. If rows are missing where the band never exited, or a stored value matches no raw sample, the problem sits upstream of compression: check acquisition and the storage path first, then the deadband.

An Ignition historian deadband threshold timing test shows that live-versus-stored comparison in practice.

Questions asked

Is the value that breaks out of the band ever stored?

Not at the moment it breaks out. The historian writes the last in-band value and restarts the window, so the breakout value enters history only later, when a subsequent exit makes it the last in-band value or the max-time interval stores it. Its timestamp can therefore be missing from the trend even though the tag was scanning normally the whole time.

Does compression change the live tag or what operators see?

No. Compression acts only on what the historian writes. The tag keeps updating at its scan rate and clients read the live value as usual; only the database rows are reduced. A correct live value next to a sparse history is expected behavior, not a driver, binding or controller fault.

Is compressed history lossless?

No. Values that only tightened a limit are gone once the window closes, and no query can reconstruct them. The stored points are the entire record, which is why the deadband should be sized from the smallest change the trend must show rather than from a storage target. If raw fidelity matters, log the uncompressed stream somewhere else in parallel.

Where is the deadband configured, and does changing it rewrite old rows?

Per tag, in the Tag Editor's history configuration, alongside the max-time setting. The new value applies to data stored after the change; rows already written keep the points the old deadband selected. Comparing the trend before and after the change is the honest way to verify the new setting.

Does a wider deadband always store fewer points?

For the same value sequence, yes. Every limit the window can form sits one deadband away from a value, so widening the deadband pushes the limits outward and exits arrive later or never. Max-time stores are untouched, so on a tag that sits flat the row count does not change at all.

Keep reading

  • Troubleshooting

    Cut Ignition Tag Historian growth before compressing the table

    A 75 GB Tag Historian table after 2.5 months is a sampling problem, not a compression problem. Raise analog deadbands above instrument noise, set a minimum time between samples, then shorten partitions to about a week and enable pruning. Compressing the existing table changes none of the growth rate.

    Edge computing and IIoT

  • How-to

    Get the last N stored records from an Ignition tag history query

    A positive returnSize in system.tag.queryTagHistory splits the window into that many time buckets and aggregates each one, so it never yields the newest N stored events. Query raw history with no fixed return size and noInterpolation=True over a bounded window ending at a fixed cutoff, count rows, and step back through earlier windows until you reach N.

    Edge computing and IIoT

  • How-to

    Ignition historian deadband threshold timing test

    Historian deadband compression is lossy: two signals can leave the same stored points yet differ in time above a threshold. Capture one analog tag upstream of the deadband, compute the exceedance duration from both records with identical rules, and accept the settings only when the error stays inside your stated limit. The worked example hides a 5 s excursion under a 2 °C deadband.

    Edge computing and IIoT