system.tag.editAlarmConfig

Hi Community,

As the user manual said system.tag.editAlarmConfig - Ignition User Manual 7.9 - Ignition Documentation

It's possible to edit an alarm configuration. In my case, the alarm to edit is associate to an member of an UDT instance (platform 7.9.8 ignition).

My alarm has the property 'enabled' and 'priority' overrides and 'display path' has an expression defined in UDT definition.

#CASE1

Build a list of tag paths

tagPaths = ["Tanks/Tank_1/level_PV""]

Build a dictionary of alarms

alarmConfig = {"Alarm":[["priority","Value",None]]}

#Edit the alarm configuration.
system.tag.editAlarmConfig(tagPaths, alarmConfig)

In this Case 1, this update only remove the override of 'priority' and 'enable' stay override and 'display path' is steal the same (That's correct)

#CASE2

Build a list of tag paths

tagPaths = ["Tanks/Tank_1/level_PV""]

Build a dictionary of alarms

alarmConfig = {"Alarm":[["priority","Value","Critical"]]}

#Edit the alarm configuration.
system.tag.editAlarmConfig(tagPaths, alarmConfig)

In this Case 2, this update create a basic alarm and erase all overrides and UDT expressions (That's very strange)

I would like just erase 'priority' override and if my UDT 'priority' definition isn't what i want just override the 'priority' property.

Thanks for your reply