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.


I believe this page is up to date:
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.



1 Like