Troubleshooting
Why AVEVA Historian stores one-second cyclic tags as deltas
Short answer
With the Storage Engine, a one-second cyclic frequency only filters which collected values qualify for storage; the stored representation stays delta-based, and the SuiteLink link to IDAS never delivers an unchanged value-and-quality pair to store. For a one-second report, use cyclic retrieval at one-second resolution; for a true stored observation every second, the source path must transmit duplicates.
On this page
- What the one-second cyclic setting does now
- Why a steady value stores nothing new
- Why wwRetrievalMode = 'Full' changed nothing
- Report rows or stored observations: pick by what the timestamp must prove
- Checklist: pinning the gap to one layer
- What one hour of a steady one-second tag produces
- Questions asked
Your one-second cyclic frequency is doing its job; the history is still change-only because two other layers decide what gets written. The Storage Engine treats cyclic as a preprocessing filter over the values that arrive, and stores what passes in a change-oriented, delta form. Below it, the SuiteLink link from the IOServer sends nothing when value and quality are both unchanged, so the IDAS acquisition layer receives no observation for those seconds and storage has nothing to record. Decide what the one second must prove: a report row every second is delivered by cyclic retrieval at one-second resolution, while a genuinely stored observation every second requires a source path that transmits duplicates — no retrieval setting can manufacture it.
What the one-second cyclic setting does now #
The documented meaning of cyclic storage has not changed: only the values that occur at a specified time interval are stored. What changed is the layer beneath it. The classic storage system that preceded the Storage Engine kept separate cyclic and delta mechanisms; the Storage Engine folded the two into a single change-oriented store. The cyclic frequency — the analog storage type the historian driver documentation names TagStorageType, storing on a time interval — now works as a preprocessing layer that decides which arriving values qualify, while the internal representation stays delta. The engine revisits each incoming topic at least once per processing interval, so the filter runs continuously, but it can only filter values that actually arrive. A one-second frequency that receives one value in an hour stores one value in an hour.
Why a steady value stores nothing new #
The path is IOServer to SuiteLink to IDAS to the Storage Engine, and the second hop sets the rule: SuiteLink does not transmit a duplicate when both value and quality are unchanged. While the controller keeps scanning and the screen keeps displaying the number, IDAS receives no new pair, so there is no incoming observation to store. Sparse history on a steady tag is the signature of that suppression, not of a stopped scan or a broken binding. The same transport rule is behind the readback behavior seen with calculated tags written to AVEVA Historian over SuiteLink, so it surfaces as surprises elsewhere on this link too.
Why wwRetrievalMode = 'Full' changed nothing #
Adding AND wwRetrievalMode = 'Full' after the WHERE clause switches the query from its default Delta selection to Full: it returns every stored record instead of a change-filtered view. That is all it does. It does not reach the IOServer, the SuiteLink link, IDAS or the storage configuration, so when it was tried on exactly this symptom the history stayed change-only — the expected outcome, because retrieval selects among records that exist and cannot synthesize records for seconds in which no observation arrived. Retrieval mode and output resolution are separate settings, and what actually decides historian data retrieval speed sits further down the stack than the WHERE clause.
Report rows or stored observations: pick by what the timestamp must prove #
- One row per second in a report or trend: use cyclic retrieval with a one-second resolution in the historical client or query. The output lands on a regular grid, each row carrying the stored value that applies at that second.
- A stored observation every second, as audit or sequence evidence: retrieval cannot do this on a change-driven SuiteLink path. Move acquisition to an interface that republishes on a time basis — a driver or connector that sends the value each second regardless of change — so IDAS receives a new pair to store.
- Both: change the acquisition path for the observations, and keep cyclic retrieval for the report.
One caution belongs here: a one-second report built from held values will happily cover an hour of dead communications, so mark periods without valid acquisition in the report instead of presenting held values as observations.
Checklist: pinning the gap to one layer #
- Write down which outcome the one second buys — an output row or a stored observation — before changing anything.
- Confirm the historian tag is bound to the IOServer item you intend; a wrong binding produces the same sparse history.
- Over a steady stretch, query one window with Full retrieval and count rows against value-and-quality changes: zero rows for zero changes confirms suppression, not failure.
- Introduce one approved test change and follow it through IOServer, storage and query with its timestamp and quality intact.
- Read quality beside value at every step: a quality transition crosses SuiteLink on its own and can store a record while the number never moves — the same rule behind why a bad quality update hides Historian values.
What one hour of a steady one-second tag produces #
Inputs, each with its source:
- Cyclic storage frequency: 1 second, from the tag's logging configuration as set in this case.
- Analysis window: 3600 s (one hour) with value and quality held constant — the condition that triggers suppression.
- Second pass: one value change at 1800 s, the midpoint.
- Storage rule: one delta record per new value-and-quality pair that IDAS receives.
- Report rule: cyclic retrieval at one-second resolution — one output row per second of window.
Rule in words: stored records equal the number of new pairs received in the window; report rows equal the window length divided by the resolution.
Arithmetic:
- Held constant for the hour: new pairs = 0, so stored records = 0 and Full retrieval returns 0 rows.
- Report rows = 3600 s ÷ 1 s per row = 3600 rows, every one of them the held value from the last change before the window.
- With one change at 1800 s: stored records = 1; report rows unchanged at 3600 s ÷ 1 s per row = 3600.
The decision: 3600 report rows from 1 stored record is the correct, healthy output of this architecture, so a row-per-second requirement is already met by cyclic retrieval at one-second resolution. The moment the requirement is a stored observation per second, the threshold is crossed at zero unchanged seconds — anything above that stores nothing new on this path, and the acquisition path, not the query, is what must change.
Questions asked
Does adding wwRetrievalMode = 'Full' to the query make Historian store every second?
No. Full retrieval only changes what the query returns: the complete set of stored records instead of the default Delta selection. It acts after storage, on records that already exist. In the case described it was applied and the history stayed change-only, which is the expected result when the IOServer link has not delivered any new value-and-quality pair for storage to record.
Why does the screen hold a steady value while the trend shows nothing new?
The display keeps showing the last value it received, and that value stays valid while nothing new arrives. SuiteLink has simply not sent another update, because value and quality are unchanged. A steady screen proves the display path works; it says nothing about how many fresh observations have reached the historian's acquisition layer.
Is the one-second cyclic frequency being ignored?
No. With the Storage Engine the cyclic setting still runs: the engine revisits each incoming topic at least once per processing interval, and the cyclic frequency filters which arriving values qualify for storage. What it cannot do is manufacture an observation for seconds in which the source link delivered nothing, because storage only records what acquisition receives.
Can a quality change create a stored record while the value stays constant?
Yes. SuiteLink suppresses an update only when both value and quality are unchanged. A quality transition on its own crosses the link and can be stored as a new record even though the number never moved. Read value and quality together when counting updates, not value changes alone.
What does it take to get a genuine stored observation every second?
An acquisition path that transmits duplicates: a source interface, driver or connector that republishes the value on a one-second time basis instead of only on change, so IDAS receives a new value-and-quality pair each second. No combination of retrieval mode, output resolution or cyclic storage settings on a change-driven SuiteLink link can produce it.