Troubleshooting
Why HMI Alarm History Shows Live Embedded Variable Values
Short answer
An alarm-history row stores the variable reference, not the value: the panel redraws each embedded variable with the current reading, so older rows drift as the process changes. Prove it with a noncritical test tag; take event-time values from the alarm export or a controller latch; keep any live number in history text explicitly labeled.
On this page
An alarm-history row reads like a record, but the embedded variable inside the message usually is not one: the project stores a reference to the tag, and the panel resolves it every time the row is drawn. Older rows therefore update to the current reading, and the number you see days later can have nothing to do with the event on that row. The event-time value normally survives in the alarm export; where it does not, a controller-side latch puts it there. Prove the behavior once with a noncritical test tag, take post-mortem values from the export or the latch, and label any number you deliberately leave live.
What the history row actually stores #
An alarm message with an embedded variable carries two different things. The alarm identity and its timestamp are written when the event occurs and never change. The embedded number is normally stored as a reference, so each time the row is drawn the panel reads the tag and paints whatever the tag holds at that moment. That is how a week-old row can carry the correct alarm text and time and still show a value that has nothing to do with the event.
Before you design around it, check whether your tool makes the choice for you. Some engineering tools expose a property on the alarm object that decides how a historical row resolves an embedded variable, and the release notes for your tool version may document changes to exactly this behavior. Open the alarm object's properties and read those notes before you build a workaround.
When the live number is a fault and when it is a design #
A live number is wrong for exactly one job: explaining an event after the fact. While the alarm is active, event time and reading time are nearly the same, so the embedded value looks right and is right; showing the current condition is a legitimate use, the same job as when an older panel shows real-time values over Ethernet. The divergence appears only in history, and it grows with time: the older the row, the further its number sits from the trigger value. If the investigation needs the process value at the moment the alarm set, a live-resolved history row can never supply it once the tag has moved.
Prove it with a test tag #
- Pick a test tag wired to nothing, a spare counter or register, and a trigger bit you set by hand, so the test never forces a real alarm or moves equipment.
- Show that tag in a plain numeric object and confirm it tracks the controller. If it does not, you have a binding or communication fault, not a history-display behavior; the method in Is It the Driver, the Tag or the Screen? separates those before you test the alarm object.
- A counter makes a good test tag because it steps in visible increments; displaying a PLC counter current value with a signed HMI tag gives you the reference object.
- Note the tag value, set the trigger bit, then step the tag through readings far apart from each other.
- Reopen the alarm history and watch the number on the new row while the tag keeps moving.
- Export the same events and compare each recorded value with the note you made at trigger time.
The comparison in the last step is the whole test: the screen tells you how the display resolves the variable, and the export tells you what was captured with the event. Run it once on any project you intend to trust for post-mortem work.
Worked example: a counter test tag stepped through three values #
The inputs: a spare counter in your controller as the test tag, a trigger bit you set by hand, and the engineering tool's CSV export for alarm history. The three readings 0, 100 and 200 counts are example values; any three widely spaced readings work.
The rule in words: a history row that resolves the embedded variable live shows the current tag value, while an event-time record shows the value present when the trigger bit set.
The arithmetic: the trigger sets with the tag at 0 counts; the tag then steps to 100 counts and finally to 200 counts. A live-resolved row now draws 200 counts, a drift of 200 - 0 = 200 counts from the value at the event. The export row for the same event keeps 0 counts, which matches the note from trigger time.
Result: the display resolves the embedded variable live, and the export captured the event-time value. The decision: when the on-screen row equals the current tag while the export row equals the trigger value, the export is your record. Quote trigger values only from it, and treat any history number that differs from the trigger value as a live placeholder.
Where the event-time value comes from #
- The export. Most platforms document one: Studio 5000 View Designer, for example, has a documented event command that exports the alarm history, and on other panels the same job is a script or a scheduled CSV export of the alarm log. Export once, compare against your test note, and the export becomes the record you quote.
- A latch in the controller. On the alarm trigger, move the process value into a register stored with that event: one register per alarm, or an indexed array addressed by event number. The latched value cannot drift, and it can feed a separate tag or the export.
- The tool itself. A property on the alarm object may control how historical rows resolve embedded variables; if your version documents one, it turns the on-screen history into the record without rewiring the project.
Label any live number you keep #
Some projects keep live values in history text on purpose, to show the current condition next to the event. Mark them: put the word live or now into the message text, or give the current value its own column so it cannot be mistaken for the captured one. Keep the alarm's fixed text static so the history still reads as a log, and make sure operators know which number moves.
The decision for each case #
- Screen rows follow the current tag and export rows hold the trigger values: the display resolves live by design and nothing is broken. Take post-mortem values from the export or a latch, and label the live numbers you keep.
- The export also shows the current tag: the capture happens at export time, not event time. Check the tool's export option for storing messages as generated; if there is none, latch in the controller and export the latched tag.
- Even the reference numeric object does not track the controller: a binding or communication fault is in the way. Clear that first with the driver-tag-screen method, then rerun the alarm test.
Questions asked
Why do recent alarm rows still look correct?
The error grows with the time between the event and the moment you read the row. On the day of the fault, event time and reading time are close, so the number looks plausible; a week later the same row shows whatever the tag holds today. Any diagnosis that depends on the value present when the alarm set must come from the export or a controller latch, never from the row on screen.
Can one capture register serve the whole alarm list?
No. A single latch overwritten by every new event holds only the latest alarm's value, so every older row would point at that number and the history would be wrong in a new way. Reserve one register per alarm, or index a small array with the event number, so each row keeps its own captured value.
What should the alarm export contain for a usable record?
At minimum: the event time, the alarm identity and the captured variable values, one row per event, in a format you can open without the engineering tool. CSV is the usual choice. Put the export where the next shift can reach it, because once the on-screen numbers drift, the export is the only record of what the tag read at the event.
Is this a reason to replace the panel?
No. The display, the touch layer and the communication are doing what the project asked: the message holds a variable reference and the terminal resolves it at draw time. The fix lives in the project, through the export, a latch or an alarm-object setting, possibly helped by an engineering-tool update, not in new hardware.