Data Type for Alarm Mode and AckMode for Scripting

I’m using a script to add an alarm to many tags. Everything is working well other than the mode and ackmode parameters. I’ve seen references in the manual to setting it as a string and other references in the forum that set it to a integer value however both are not working in my setup. I’m using Ignition 8 if that makes any difference. Below is how I’m setting up my script.

image

I believe this page is up to date: https://docs.inductiveautomation.com/display/DOC80/Tag+Alarm+Properties#TagAlarmProperties-AlarmPropertyReference
Looks like it should be one of "System", "Manual", or "Unused".

My code must have been bombing out on the mode before it got to the ackMode. For the mode we had to pull in the AlarmMode enumeration from the alarming config and then use AlarmMode.Inequality. Once that was working then the “Unused” worked.

Thanks!

image
image

1 Like