IMD SolutionComputing LibraryShop main store

How-to

Ignition historian deadband threshold timing test

Edge computing and IIoT Published 6 min read

Short answer

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.

On this page
  1. Why stored points cannot answer the question
  2. Record the question and the settings first
  3. Run the parallel capture
  4. Compute both durations with one rule
  5. Worked example: a hidden five-second excursion
  6. The decision for each case
  7. What the test cannot show
  8. Questions asked

Deadband compression in the Ignition Tag Historian is lossy. Two different stretches of the same analog signal can leave identical stored points while giving different answers to "how long was it above the limit?", so a threshold-timing question cannot be settled from stored history alone. The test that settles it is a short parallel capture: log one analog tag's acquired values upstream of the history deadband, retrieve the points the historian kept for the same window, and compute the exceedance duration from both records with identical rules. The worked example below shows a 2 °C absolute deadband hiding a 5 s excursion above an 80.5 °C threshold. The decision rule: error inside your stated limit keeps the settings; error outside it narrows the deadband or moves the question to a Boolean tag.

Why stored points cannot answer the question #

For analog tags, the Tag Historian documentation describes the deadband as a compression threshold: a new point is kept when the value has moved more than the deadband away from the last stored point, in an algorithm similar to other historian packages. The tag's mode, analog or discrete, decides how the deadband applies to values and how retrieval interpolates between them, and the deadband mode is absolute by default, meaning the deadband is a change expressed in the tag's own engineering units.

Between two stored points the signal is free to wander anywhere inside one deadband of the last stored value without leaving a trace. That freedom is exactly where threshold questions break: a wander a little above the limit and back fits inside the band and vanishes. A history query then adds interpretation on top of an already reduced record — interpolation draws a crossing between stored neighbors and cannot conjure an excursion that was never stored.

Record the question and the settings first #

Write the question in computable form before touching any data:

  • the threshold and its engineering units (80.5 °C in the example);
  • strictly greater than, or greater-or-equal;
  • cumulative time above, longest continuous time above, or a yes/no on a required duration;
  • the allowed timing error in seconds — the acceptance limit the comparison is judged against.

Record the active history settings at the same time: sampling mode, deadband mode and value, any minimum and maximum sample timing, scaling, and the tag's analog or discrete mode. The sample timing settings can delay or force stored points and change what the record can hide, so they belong in the record of the test.

Run the parallel capture #

  1. Pick one analog tag whose threshold question someone actually has to answer, and fix the acceptance limit before looking at any data.
  2. Save the current history settings and note any change made while the capture runs.
  3. Log the reference upstream of the retention decision: a gateway script or driver log writing timestamp, value and quality to its own table at the tag's scan rate. Verify this path applies no deadband of its own.
  4. If you would rather keep everything in the historian, log a twin of the tag with the deadband removed at a 1 s rate beside the production tag — one historian can hold two logging intervals for exactly this kind of comparison. Record the twin's settings too.
  5. Run for one full production cycle and until the reference holds at least ten threshold crossings; a window with two or three crossings never challenges the settings.
  6. Retrieve the stored points raw — stored timestamps and values, no resampling, no aggregation — and check how your retrieval method interpolates against the documentation for your installed version.
  7. Align the two windows: same clock and timestamp origin, duplicates removed, gaps flagged, and the window boundaries included so the start and end of the interval can be judged.

Compute both durations with one rule #

  1. Resample both records to the reference's acquisition interval, 1 s in the example, by linear interpolation, so the sparse stored points and the dense reference are judged on the same grid.
  2. Count the seconds strictly above the threshold: cumulative time above = count × interval.
  3. Longest continuous time above = the longest run of consecutive above-threshold seconds, with any flagged gap breaking the run. Never bridge a gap as continuous good data.
  4. Error = reference duration − stored duration, compared against the acceptance limit. Run the production report's own query separately as a third result, because that is the number people actually see.

Worked example: a hidden five-second excursion #

Illustrative inputs chosen to show the failure; they are not a plant measurement.

Question: cumulative time above 80.5 °C, strictly greater, acceptance limit 2 s. Settings: absolute deadband 2.0 °C, reference captured at 1 s.

Reference record: 80.6 °C at 10:00:12, 80.8 at 10:00:13, 80.9 at 10:00:14, 80.7 at 10:00:15, 80.6 at 10:00:16, 80.4 at 10:00:17.

Above-threshold seconds: 10:00:12 through 10:00:16 = 5 samples × 1 s = 5 s.

Stored record: 79.2 °C at 10:00:10, then 79.0 °C at 10:01:40. The peak sits 80.9 − 79.2 = 1.7 °C above the last stored point, inside the 2.0 °C deadband, so nothing between was kept. Both neighbors are below 80.5 °C, so the interpolated line never crosses it.

Stored duration: 0 s. Error: 5 s − 0 s = 5 s against a 2 s limit: fail.

The excursion hid because it stayed within one deadband of the last stored point. From 79.2 °C the value must move 80.5 − 79.2 = 1.3 °C to cross the threshold; any deadband below that stores the crossing, and a deadband below 1.7 °C stores the peak. Set the deadband to 0.5 °C, re-run the capture, and confirm the error drops inside 2 s.

The decision for each case #

  • Both durations inside the acceptance limit: keep the settings and archive both records plus the settings as the baseline for that tag. Keep the archive past the history's own pruning horizon, which is set by the historian pruning and retention settings.
  • Reporting tag, error outside the limit: narrow the deadband below the smallest rise the report must catch — below 1.3 °C for the crossing, below 1.7 °C for the peak in the example — accept the extra stored points, and re-test.
  • Decision or compliance tag, error outside the limit: stop deriving the answer from compressed analog points. Evaluate the comparison as a Boolean every scan and store the Boolean, the approach covered for logging an analog signal as a Boolean; transitions then land at scan resolution.
  • This test checks a defined historical calculation only; a limit that protects people or equipment belongs in the control system, not in trend fidelity.

What the test cannot show #

The reference is sampled too. An excursion shorter than the acquisition interval can hide from a 1 s capture exactly as it hides from the historian, so the comparison proves fidelity down to the reference interval and no further; no history setting repairs an upstream sampling limit.

When the plant window holds too few crossings, replay a synthetic signal through the same configuration — controlled crossings and noise at several amplitudes — to exercise the boundary cases. That supplements the process capture and never replaces it, because a synthetic signal cannot tell you how your process actually behaves.

Questions asked

Why not change the query interpolation instead of the history settings?

Interpolation only chooses where a crossing is drawn between two stored neighbors. When both neighbors sit below the threshold, linear interpolation and a stepwise hold both return zero time above it, so no query mode recovers an excursion that was never stored. Change the history settings or the storage path; the query layer is not where the information can be restored.

Can a gateway script writing to its own database table serve as the reference?

Yes. Any store that records timestamp, value and quality before history evaluation qualifies. Write its own scan rate into the test record, because that capture is a sampled observation too, and keep it on storage independent of the historian so one failed disk or table cannot take both records at once.

Does a deadband of zero guarantee every value is stored?

No. Removing change suppression still leaves the tag's evaluation rate and any configured maximum sample timing, so an excursion shorter than the acquisition interval stays invisible whatever the deadband is. The reference capture's interval, not the deadband, then sets the finest resolution the comparison can prove.

Does analog versus discrete mode change how I run the test?

Run the capture with the tag in the mode it actually uses in production. The documented mode setting decides how the deadband applies to values and how retrieval interpolates between them, so a discrete-mode tag holds values stepwise and its duration counts land on sample boundaries. Apply the same calculation rule to both records either way.

Keep reading

  • How-to

    Setting historian pruning and retention for Ignition tag history

    Prune tag history on the history provider, not with the transaction group's delete setting: in the Gateway's tag history configuration, enable data pruning and set a retention period in days. At 250 MB per day of growth, 30 days of retention holds about 7.5 GB and a full year about 91 GB. Deadband and Max Time Between Samples decide most of the daily rate, and QC records from transaction groups keep growing on a separate budget.

    Edge computing and IIoT

  • 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

    Move an Ignition historian database with pre-copied partitions

    Yes, the drop-and-restore plan works, but the safer route pre-copies the whole database to the new server and moves only the sqlth_* metadata and the partitions still being written at cutover. Store-and-forward buffers history writes through the switch, so downtime is a delta copy and the history never has a hole.

    Edge computing and IIoT