Hello.
I'd like to ack an alarm tag when an operator selects a reason (in this case, DowntimeCode, for the alarm to be active.
I've been using \AlarmManager\Ack(MyAlarm); as per the documentation to attempt the ack. This is my first crack at using \AlarmManager\ but I hope to use it a lot.
My testing "AckAlm.src" script is as such:
(
DowntimeCode; {Selected Reason for Downtime}
OptAlarm; {Alarm Tag to be the trigger}
)
AlarmAck [
If Watch(0, DowntimeCode);
[
\AlarmManager\Ack(OptAlarm);
Return(1);
]
]
I can see through the source debugger that once I select a DowntimeCode from a dropdown list that the script does run, but the alarm stays Unack'd.
From my Calc Tag:
Data Type: Analog
Calculation Expression:
\AlmAck([DowntimeCode], [OptAlarm]\Root)
Any suggestions on what I'm missing? I have tried with and without \Root on the expression and a number of variations on the code itself (. and \ notation, \code\AlarmManager...\Root, and such).
Thank you.
Hello.
I'd like to ack an alarm tag when an operator selects a reason (in this case, DowntimeCode, for the alarm to be active.
I've been using \AlarmManager\Ack(MyAlarm); as per the documentation to attempt the ack. This is my first crack at using \AlarmManager\ but I hope to use it a lot.
My testing "AckAlm.src" script is as such:
````
(
DowntimeCode; {Selected Reason for Downtime}
OptAlarm; {Alarm Tag to be the trigger}
)
AlarmAck [
If Watch(0, DowntimeCode);
[
\AlarmManager\Ack(OptAlarm);
Return(1);
]
]
````
I can see through the source debugger that once I select a DowntimeCode from a dropdown list that the script does run, but the alarm stays Unack'd.
**From my Calc Tag:**
Data Type: Analog
**Calculation Expression:**
````
\AlmAck([DowntimeCode], [OptAlarm]\Root)
````
Any suggestions on what I'm missing? I have tried with and without \Root on the expression and a number of variations on the code itself (. and \ notation, \code\AlarmManager...\Root, and such).
Thank you.