I am working with alarms and I try to show on the display path the current setpoint of the alarm, which is binded to a variable. But I dont get the latest value.
If my alarm condition is (above setpoint) and setpoint = 200.
Tag = 100
The alarm goes ON when i change the setpoint to 75, but in my display path I see the value 200 instead of the 75.
Can someone help me with this?
You're trying to display the current setpoint value in the Display Path of an alarm by binding it to a tag (e.g., {[.]bromineSP}
). However, when the alarm is triggered, the display still shows the previous setpoint (e.g., 200), not the updated value (e.g., 75).
**Why This Happens:
The Display Path
expression is evaluated when the alarm is created, not at the moment it is triggered. So if you're referencing a tag directly (like {[.]bromineSP}
), it may show an outdated value because it doesn't update dynamically with the alarm event.
Solution: Use Associated Data
To capture and display the actual value at the time of the alarm event, you need to use Associated Data.
Steps:
- Go to the Associated Data section of your alarm configuration.
- Add a new entry:
- Name:
SP
- Value:
{[.]bromineSP}
- Modify the Display Path to:
"Value: " + {[.]brominePump} + ", Setpoint: " + {AlarmEventData.SP}
Thanks for the response, It makes completely sense. But for some reason this is not working. I dont know if its because I am making the alarm config through the UDT I am using
I made my associated data and called setpointTest, but the value isnt being updated when the alarm gets activated