IMD SolutionComputing LibraryShop main store

Troubleshooting

Why a slow tag blanks the Easy Chart after bad quality

Edge computing and IIoT Published 6 min read

Short answer

The pen is empty because the historian stopped writing, not because of a quality fault: after the tag recovered, its slow value settled back inside the Analog deadband corridor, so the last Good row aged out of the chart range. Set Max Time Between Samples to at most half of the smallest span users can select, and every window keeps a usable row.

On this page
  1. Read the chart state before changing anything
  2. Why the recovery to Good was never stored
  3. What will not bound the gap
  4. Sizing the limit for a 15 minute shortest chart range
  5. Set the limit on the tag
  6. Confirm the pen stays populated
  7. Questions asked

The chart is not blank because of a quality fault. It is blank because the historian stopped storing rows: the drop to Unknown forced a sample, the tag then recovered to Good, and its slow value settled back inside the deadband corridor, so nothing newer exists in the database. With Ignore Bad Quality Data on, the chart discards the Unknown row, stretches the last Good row to the current time, and empties the moment that row is older than the selected range. The fix is on the tag, not the chart: set Max Time Between Samples to at most half of the smallest span users can select, and the pen can no longer age out of a window.

Read the chart state before changing anything #

What the operator sees What is in the database Where the fault lives
Line ends at the last value, Ignore Bad Quality Data off The newest stored row is the quality 600 point (legacy Unknown); nothing newer exists Tag history storage
Line runs flat to the current time, Ignore Bad Quality Data on The chart drops the 600 row and extends the last Good row to now Chart filter acting on a storage gap
Pen empty at the shortest range, populated at longer ranges No usable row falls inside the short window Storage gap longer than the selected span
Pen empty at every range Nothing reaches the pen at any zoom Pen binding or tag path

The first three rows are one storage problem seen at three zoom levels. Rebinding the pen, editing the tag path or restarting the client changes none of them. The fourth row is a different fault: when an Easy Chart pen shows no historian data at every range, work the binding and the query before touching history storage.

Ignore Bad Quality Data means "only report Good-quality data". It is not an instruction to plot the newest value whatever its quality. Before drawing, the chart removes every stored row whose quality is not Good, then extends the last row it kept to the current time. With the filter on, that anchor is the last Good row, which is why the line runs flat to now and then vanishes once the anchor slides out of the window.

Why the recovery to Good was never stored #

The drop to Unknown forced a sample, and that is the row the database ended with. After the tag recovered, its value came back at essentially the same level. Under the Analog deadband style, the historian commits a row only when a new value breaks the corridor around the last stored point, or when a time limit forces one. A slow signal that has recovered sits inside the corridor indefinitely, so with no limit configured the gap is unbounded. The compression is doing its job; the storage cadence simply has no ceiling until you give it one.

One documented detail matters for sizing: the time limit bypasses the deadband but not the sample rate, so a forced write lands at the first sample after the limit expires.

If your symptom runs the other way, with rows stored but hidden from trends only while quality is bad, storage is healthy and the query is dropping them; that is the case where a bad quality update hides Historian values.

What will not bound the gap #

  • Turning Ignore Bad Quality Data off changes which row ends the line and puts the Unknown point on screen; the pen still empties once that row is older than the window.
  • Tightening the deadband stores more noise on moving signals, but a flat signal stays inside any corridor and still writes nothing.
  • Switching the deadband style away from Analog changes the compression profile; an unchanged value triggers no write under any style.
  • Raising the smallest chart range hides the symptom only when some limit already exists, and it takes the short zoom away from the operators.

Only Max Time Between Samples puts a ceiling on the gap, so that is the setting to size.

Sizing the limit for a 15 minute shortest chart range #

This is the case that prompted the check: the pen drew at long ranges and went empty at the operators' shortest zoom.

Inputs:

  • S, the smallest span users can select, including preset range buttons and the minimum zoom: 15 minutes, from the reported symptom.
  • Deadband style on the tag: Analog.
  • Documented floor on the setting: Max Time Between Samples cannot be less than 1000 ms.

Rule in words: choose G, the Max Time Between Samples, at most half of S, not merely below it. Because a forced write waits for the next sample, the real gap is G plus one sample period. At half the span, any sample period shorter than the remaining half still leaves a usable row inside every window, and a lone non-Good row cannot empty the pen while the filter is on.

Arithmetic:

  • G = S / 2 = 15 min / 2 = 7.5 min = 450 s = 450,000 ms.
  • Floor check: 450,000 ms sits far above the 1,000 ms minimum, so the value is accepted.
  • Storage bound: 1440 min per day divided by 7.5 min = 192 rows per tag per day for a flat signal.
  • Margin: S minus G leaves the other half of the span for the sample period to land in.

Result: enter 450,000 ms as Max Time Between Samples on the tag. The flat tag then stores 192 rows a day where it previously stored nothing.

Decision: every selectable span of 15 minutes or longer now holds a stored row, so the pen stays populated at any zoom the operators have. Keep the rule as a standing threshold: the limit stays at or below half of the shortest selectable span, and it is halved again whenever a shorter range is added.

Set the limit on the tag #

  1. Collect every Easy Chart that trends the tag, operator screens, engineering screens and ad hoc charts alike, and note the shortest span each one allows, including preset range buttons and zoom limits. The smallest of those is S.
  2. Compute G = S / 2. Anything strictly below S keeps one row per window only if the sample period is negligible, so the half is the safe choice.
  3. In the Designer, open the tag editor, go to the tag's History properties and confirm the deadband style is Analog.
  4. Set Max Time Between Samples to G and save.
  5. For tags built from a UDT, set the value on the UDT definition so every instance inherits it, then check that no instance overrides it back to an unset limit, which would restore the unbounded gap on that instance.

Confirm the pen stays populated #

  1. Query raw history for the tag over the last few hours with no aggregation and confirm no two consecutive timestamps are further apart than G.
  2. Confirm the newest row carries Good quality.
  3. On a test tag, break the data source so quality drops to Unknown, restore it, and confirm a Good row lands within G of the recovery.
  4. Open the chart at its shortest range with Ignore Bad Quality Data on and confirm the pen draws and extends to the current time.
  5. Leave the chart at that range for longer than twice G while the signal stays flat; the pen must not disappear.

Questions asked

Does Max Time Between Samples backfill the gap already in history?

No. The setting only affects writes made after the tag is saved. The blank window clears within G of saving, when the first forced sample lands, but the older hole stays in the tables until retention prunes it. Nothing set on the chart or the tag rewrites rows that were never stored.

How much extra storage does a short Max Time Between Samples cost?

For a flat signal the forced sample writes at most 1440 divided by G rows per tag per day, with G in minutes, which is the 192 rows of the worked example. Moving tags are barely affected: their deadband writes already run faster than the limit, so the forced sample rarely fires. Size G against the chart spans, not against disk.

The pen is empty even on a month-long range. Is this the same fault?

No. An aging gap empties the short ranges first and leaves long ones populated. A pen empty at every range points upstream of storage: a broken tag path, a pen pointed at the wrong tag, or a tag that never stored at all. Check the pen binding and query raw history for that tag before changing Max Time Between Samples.

Should operators keep Ignore Bad Quality Data switched on?

Yes, once the gap is bounded. A Good row now always lands within G, so one Unknown point can no longer empty the pen, and operators are spared quality excursions on the trend. Leave the filter off on engineering screens, where the Unknown points are wanted for diagnosis. Both settings behave, because both always have a usable row inside the window.

Keep reading

  • Troubleshooting

    Fix historian silent data gaps with a registry value

    The data is stored; the retrieval view of it is stale. On the Historian server, create the DWORD32 value UseFileCacheForRetrieval set to 0 under HKLM\SOFTWARE\ArchestrA\Historian\Programs\aahStorage, then refresh the trend, with no reboot required. Confirm the fix by loading a previously blank window before running any manual query.

    Edge computing and IIoT

  • 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

    Historian trend empty: PLC tag collection troubleshooting

    A live PLC value proves nothing about what the historian stored. Work one known, changing tag through four boundaries — controller to data server, server to collector, collector to point, point to chart — and with a 2 s update rate, a 1% deadband on a 200 in span and a 24 in/h fill, a 20 min window must show about 4 stored events. Zero events means the collector; four events with a flat chart means the display.

    Edge computing and IIoT

When a historian web client chart auto-refreshes itself