I am trying to create a latched alarm with the following behaviour
When a Float value is below a setpoint the alarm will latch on,
when the float value returns above the setpoint the alarm with remain on until a reset button is pressed by the user.
I have a fairly clumsy way of doing this with 3 tags per alarm, ie. a boolean alarm condition tag, a boolean alarm tag and a boolean reset tag. The alarm tag has the following expression behind it
switch({[.]AlarmCondition},1,1,
switch({[.]AlarmReset}, 1 , 0 , {[.]Alarm}))
I was just wondering if anyone could see a simpler way of achieving this ( with less tags required )?