Hi
I was planning on using the enable property for hiding the alarm based on some logic -but this seems not practical because the alarm appears in the alarmlist whenever it is re-enabled.
-What would be the best practice to disable an alarm based on some condition -other than using the .Enabled property?
-Or am I missing something?
Is there any workaround?
-Would it be possible to somehow detect the transition to .Enabled == True in order to automatically acknowledge the alarm?
to reproduce:
- Make sure the alarm condition is false
- Observe how it is not listed in the alarmlist
- Disable the alarm
- Enable the alarm
- Observe how the alarm now appears as cleared, Unacknowledged
I was investigating a little deeper and found some interesting deviation between the result after a tag restart and an alarm enable:
Tag restart: Alarm.IsAcked = True
Alarm enable: Alarm.IsAcked = False
Tag restart:
Alarm enable
Is this intentional? Or would it make sense to initiate a just-enabled-alarm to .IsAcked = True?
(Ignition 8.1.35)
j.