I have an opctag that has 4 alarms defined on it, lolo, lo, hi and hihi. I want to bind the output of each of these alarms to a light. I cannot find any individualized parameters for any of these, only some strings that tell me what the highest priority alarm is, etc., but not the status of each individual alarm.
Is there a way I can do this? It seems like a common task.
I have an opctag that has 4 alarms defined on it, lolo, lo, hi and hihi. I want to bind the output of each of these alarms to a light. I cannot find any individualized parameters for any of these, only some strings that tell me what the highest priority alarm is, etc., but not the status of each individual alarm.
Is there a way I can do this? It seems like a common task.
thank you[/quote]
are you using tags for your alarm setpoints? if so this should be pretty easy.
Try doing this in reverse. Create 4 tags with each setpoint and set its expression to check if the alarm is true or false. Then aggregate those alarms into one “alarm tag”, with the following expression
binEnc({[.]LoLo},{[.]Lo},{[.]Hi},{[.]HiHi}})
Then for the alarm settings, add an alarm per bit, set its mode to bit state, and enter the bit index.
We do this on all our projects, and it works with both discrete alarms coming from the PLC, and alarms created by Ignition.
[quote=“downerczx”]I saw that function but have been unsuccessful getting it to work. I’ve tried the alarm name by itself, in quotes, in brackets, etc.
All of our alarming is done in the plc, so we implement it the way I described earlier. From alarms generated in Ignition, isAlarmActive makes more sense.