Associated Data for Alarm Configuration

I would like to reorganize the way how we inform our maintenance department about current alarms in Ignition. For that reason I need on every alarm point the following three associated data parameters:

  • contactEmergency
  • contactTechnician
  • alarmMessage

It looks like the following:

How can I achieve that these three parameters are always present (only the name of the parameter without a value) when I add an alarm to a tag? I want to avoid to add them each time manually, because of the following reasons:

  • it costs time and is boring to enter them every time
  • typos can lead to the situation that an alarm is not correctly forwarded to a technician
  • if alarm points are not entered regularly the developer might not known the exact spelling of the parameters.

Here is an example script to get you started.

nameOfAlarm = "Alarm"
tagPath = "Test"

associatedDataList = \

for associatedDataName in associatedDataList:
	system.tag.editTag(tagPath = tagPath, alarmConfig = {nameOfAlarm:[[associatedDataName,"Value",""]]})

OK, good idea to use scripting functions. I guess instead of system.tag.editTag the method system.tag.editAlarmConfig should be used to change the alarm of a tag.

I would like to use the Tag Browser from the Ignition Designer. Is it possible to retrieve the path or object of the currently selected tag to execute a piece of code as suggested above on the selected tag? Probably with a client event script I could execute the code to add the information to the selected tag.

Use the Tag Browse Tree component docs and you can get a dataset of selected paths

1 Like

Understand, that would work. If I am not wrong it means to implement an extra window in an ignition project to be able to add the associated data for the selected tags. Unfortunately the tags cannot be directly enhanced in the Ignition Designer isn’t it? Does anybody know a solution just to use the Ignition Designer?

You could try exporting the tags as XML making your changes using a text editor and then import the edited XML file.