hello, I am trying to make a counter of active alarms filtering by associated data, I have this counter by folders.
runScript("system.alert.queryAlertStatus(" +
"activeAndAcked=" + toInt({Root Container.Alarms.activeAndAcked}) + "," +
"activeAndUnacked=" + toInt({Root Container.Alarms.activeAndUnacked}) + "," +
"clearAndAcked=" + toInt({Root Container.Alarms.clearAndAcked}) + "," +
"clearAndUnacked=" + toInt({Root Container.Alarms.clearAndUnacked}) + "," +
"path='---'" + ").rowCount", 1000)
in the alarm status table I filtered by group, I would like to be able to join the filter and the counter
group = alarmEvent.get("Group")
if group == "Group A":
return True
return False
Thank you
Copy and paste the code, we can't see anything here.
And make sure to enclose it in triple backquotes so that it's interpreted as code and keeps its formatting.
```
code
```
That said, what version of ignition are you using ?
I recommend you explain what you are ultimately trying to do. If you are just wanting a count of alarms for a specific path, that is relatively easy and there are many posts on this forum already about it.
I would like to have a way of knowing if any PLC tag in a particular process area has an active alarm so that I can show in the HMI which areas have or do not have an active alarm. This could be used in a process overview display to show several process areas, and those with active alarms could have blinking red or something like that.
I think I would have to make use of the system.alarm.queryStatus function in a Python script. If tags for each process area are in separate folders, I could us…
I am trying to display a number of alarms that are active. However, I am trying to display certain alarms. I have the alarms that I am wanting to display in a group called “Spray Status”. Is there a way to display how many alarms are active in that group?
I would like to be able to unite the filter and the counter.
I already updated it and I’m using version 7.8
That’s an old and, I believe, unsupported version. I have no idea what’s possible or not in 7.8…