IMD SolutionComputing LibraryShop main store

Troubleshooting

Why an On Change tag stores the same value every second

Edge computing and IIoT Published 7 min read By IMD Solution engineering team

Short answer

On Change history writes a row on any change event, and a quality change is an event. An overloaded OPC device flips between Good and Good Overload on successive polls, so a tag on a one-second tag group stores its unchanged value every second. Moving the tags to a slower tag group kept quality Good and stopped the repeats.

On this page
  1. Confirm the rows are real, then split the triggers
  2. Rule out Max Time Between Samples
  3. Read the quality column
  4. Why an overloaded device flips between Good and Good Overload
  5. Move the tags to a slower tag group
  6. Size the group to what the device can answer
  7. The decision
  8. Questions asked

An On Change historian tag that writes row after row with the same value is not storing on the value: it is storing on a quality change. The historian treats a change of OPC quality as a change event, and an overloaded device flips quality between Good and Good Overload on successive polls, so a tag on a one-second tag group adds one identical row each second. Max Time Between Samples is not the cause here: a setting of 0 disables automatic record collection, so it cannot produce rows at all. The fix is to move the affected tags into a tag group the device can sustain; a slower group ended the flips and the repeats.

Confirm the rows are real, then split the triggers #

Before you touch a setting, confirm what is on disk. A query or table binding set to As Stored renders exactly what the historian wrote, so repeated rows there are real records. An interpolated or fixed-interval return mode can draw a point at every poll interval from a single stored row and look identical on screen, so check the return mode first.

With that settled, On Change has exactly two triggers:

  • The value moves by more than the deadband since the last stored record.
  • The quality code changes, for example Good to Good Overload, even when the value is identical.

If every row carries an identical value, the value never crossed the deadband, which leaves quality or a forced periodic record as the trigger. How the historian picks which changed points to keep is covered in How Tag Historian deadband compression picks stored points; a deadband of zero is its own case, described in why a tag historian does not log a zero value.

Rule out Max Time Between Samples #

The first suspect is innocent here. The Ignition User Manual, on its Configuring Tag History and Tag Properties pages for release 8.1, documents that setting Max Time Between Samples to 0 disables automatic record collection and that 0 is the default. A non-zero period forces a record only when no change has been stored within that period, and the property cannot be set below 1000 ms. The manual also states that this heartbeat bypasses the deadband but not the sample rate, so even a set heartbeat cannot write faster than the tag group polls.

With no heartbeat configured, this property writes nothing, and it cannot be the one-row-per-poll driver. Leave it at 0 while you diagnose, because a heartbeat added now would hide the quality problem. Set it after the fix; the decision at the end of this article gives the value.

Read the quality column #

Add the quality column to the history query, or open the tag in the Tag Browser and watch it for a minute. If the value holds flat while the quality text alternates between Good and Good Overload, you have found the writer of those rows. The table separates the remaining patterns:

What the history shows Likely cause Where to confirm
Identical value, a row every poll period, quality alternating between Good and Good Overload The device cannot sustain the group rate; each quality toggle writes a row Quality column of the history query; device diagnostics in the Gateway
Identical value, rows at a fixed long interval, quality constant A non-zero Max Time Between Samples heartbeat The tag's History settings in the Tag Editor
Value looks constant, quality stays Good, rows every poll A float changing below display precision but above the deadband The raw value at full precision; the deadband setting
A point on screen each poll, few rows in the table An interpolated or fixed-interval query return mode The query's return mode and aggregation settings

Why an overloaded device flips between Good and Good Overload #

An OPC server reports Good Overload when it cannot deliver a subscription at the rate requested: the value is usable, but it arrived late. One scan lands on time and reports Good; the next falls behind and reports Good Overload. The toggle repeats for as long as the device runs at capacity, and the historian stores a row on every toggle, because a quality change is a store event.

Both qualities sit in the good class, so no overlay appears and nothing turns red: operators watch a healthy tag while the historian records the flips. The load comes from the group, because every tag in a tag group joins the same poll cycle. Hundreds of history-enabled points at a one-second rate on a device that cannot answer that many reads each second is the standard route to overload, and slow process values rarely justify that rate. Open the device's diagnostics in the Gateway and compare its load figures against the group rate. The same overload shows up as a collector that cannot hold a fast poll, described in Why a 1-second OPC collector poll times out in a historian.

Move the tags to a slower tag group #

The poll rate belongs to the tag group, not to the tag, and groups are configured per Tag Provider. In the Designer:

  1. Open the Tag Browser for the provider that holds the affected tags and open its tag group configuration.
  2. Create a group dedicated to slow historical points and set its rate to 10000 ms, or to whatever rate your process actually needs.
  3. Multi-select the affected tags and switch their Tag Group property to the new group in one edit.
  4. Save the project so the Gateway applies the rate on the next scan cycle.
  5. Watch the tag quality for several cycles: it should hold Good with no Good Overload transitions, and the device diagnostics should show the overload cleared.

In the reported case the integer tags moved out of the overloaded group, quality stayed Good, and the repeated rows stopped.

A slower group costs you anything that starts and returns inside a single poll period, because no scan lands inside the event. Choose the rate from the fastest change you must capture, not from habit. If a screen genuinely needs the fast rate, keep the fast group for the displayed tags alone and move only the history-only points; what a ten-second rate does to your records is covered in Why Ignition tag history records only every 10 seconds.

Size the group to what the device can answer #

Worked example, with example numbers: the device capacity below is an illustration, so take the real figure from your device's documentation. Suppose a PLC sustains 300 subscription reads each second and 450 history-enabled tags sit in the fast group. Demand at the one-second group rate is 450 tags × 1 poll/s = 450 reads/s, which is 450 ÷ 300 × 100 = 150% of capacity, so the server runs overloaded and quality toggles on successive scans. Every toggle is a stored row, so one toggling tag writes 86,400 rows a day (24 × 60 × 60 polls a day) carrying no new information. Move the same 450 tags into the 10000 ms group from the fix above and demand falls to a tenth, 450 × 0.1 = 45 reads/s, which is 45 ÷ 300 × 100 = 15% of capacity: headroom that keeps quality at Good.

The decision #

Decide by the pattern in front of you:

  • Quality alternates between Good and Good Overload while the value holds: the device cannot sustain the group rate. Move the history-enabled points into a group at the rate the data justifies, then confirm in the device diagnostics that the overload is gone.
  • Operator screens need the fast rate: keep the displayed tags in the fast group, move history-only points to the slow group, and re-check the diagnostics after the tag count drops.
  • Rows arrive at a fixed long interval with constant quality: a heartbeat is doing its job, not a fault.
  • The value looks constant but quality stays clean: read the raw value at full precision and check the deadband before blaming quality.

Once the overload is cleared, set Max Time Between Samples to a heartbeat so quiet periods still leave a record; one hour (3600000 ms) suits slow process points, and the manual floor for the property is 1000 ms. The reported case ended exactly this way: quality steady at Good, identical-value rows gone.

Questions asked

What quality code counts as Good?

Good is OPC quality code 192 in the Ignition manual. Anything that is not Good shows an overlay on the tag and should not be trusted for logic. Good Overload is different: the value is still usable, but the server delivered it late, and it sits in the good class, so it raises no overlay while it still triggers a history record.

Can a float tag fake this symptom without any quality change?

Yes. If the value moves by less than the displayed precision but by more than the deadband, the historian stores real change rows while the screen shows the same number. Integer tags cannot do this, which is why the reported case pointed straight at quality.

What does a slower tag group cost me?

A change that starts and ends inside one poll period is never sampled. On a ten-second group, a spike that lasts five seconds can be missed entirely, because no scan lands inside it. Pick the rate from the fastest event you must capture, and keep the points that genuinely need fast display in the fast group.

Does a large deadband stop quality-triggered rows?

No. The deadband only gates value changes: a new sample inside the deadband is not stored. A quality change is a separate trigger, so it stores even when the value has not moved and the deadband is large. That is why a deadband will not silence Good Overload toggles; only a sustainable tag group rate stops them.

Which Ignition version does this apply to?

The reported case ran release 8.1.45 and cleared completely after the tags moved to the slower group. The rules behind it are documented for release 8.1 in the Ignition User Manual: On Change storage reacts to value and quality changes, and Max Time Between Samples of 0 disables automatic collection. Check the Configuring Tag History page for your exact release before you rely on a default.

Keep reading

  • How-to

    How to log Ignition tags every 15 minutes to a database

    To capture Ignition tag values on a strict 15-minute schedule, use a scheduled SQL Bridge transaction group that inserts a snapshot row into a database table, then point the report's query at that table. The tag historian is deadband-driven and stores asynchronously, so it cannot be set to one fixed 15-minute timestamp.

    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

  • Troubleshooting

    Why an Ignition historian string tag stores duplicate rows

    On Change in the Ignition tag historian fires on quality changes as well as value changes. When quality leaves 192 Good and returns inside the minimum time between samples, the intermediate transition is dropped and the next eligible write stores a row that looks like a duplicate. Set minimum time to 0 on one test tag and compare the value and dataintegrity columns to confirm.

    Edge computing and IIoT