I need to set (clear) a ‘PLC bit’/OPC tag(s) when alarms are acknowledged in an Alarm Status Table.
There is the onAcknowledge extension function in scripting that looks like the perfect place to do so.
How is the ‘alarms’ parameter used for this function, or does someone have some sample code to help get started to pull the alarm tag information out for the alarm acknowledged? I’m not finding anything.
(In other words, a bit transitions from 0 to 1, triggers an alarm that is set for the tag, the alarm gets acknowledged, this same bit needs to get set back to 0. Currently it stays active/acknowledged, we need to clear it in some circumstances). Thanks much.