hello,
I'm currently working with a tag in Ignition that has an alarm configured with the condition "Setpoint is 2". This alarm is set to trigger when the tag value goes above the setpoint.
My Requirement:
- When the value crosses above the setpoint, the
alarmActivescript should run once. - When the value returns to normal (i.e., below the setpoint), the
alarmClearedscript should run once.
The Issue:
If I enable the "Any Change" option:
- The
alarmActivescript runs every time the value changes while remaining above the setpoint ā which is not desired. - The
alarmClearedscript does not run when the value drops below the setpoint.
If I disable the "Any Change" option:
- The
alarmActivescript runs only once when the value first exceeds the setpoint. - The
alarmClearedscript works correctly when the value goes back below the setpoint. - However, if the value goes below the setpoint and then rises above it again, the
alarmActivescript does not run again.
My Goal:
- The alarm should activate every time the value crosses above the setpoint.
- It should clear when the value goes below the setpoint.
- The
alarmActiveandalarmClearedscripts should each run once per event, without repeat triggers while the value remains in the same state.
Has anyone successfully configured this behavior? Iād appreciate any guidance or best practices.
