It is currently Thu Jul 31, 2014 7:33 am




Post new topic Reply to topic  [ 7 posts ] 
 Using the Alamr Summary Table I need to sound an audible ala 
Author Message
Cadet
Cadet

Joined: Mon Nov 15, 2010 9:36 am
Posts: 6
Post Using the Alamr Summary Table I need to sound an audible ala
I am using the Alarm Summary Table for my alarms. It works very good. I also sound an alert on the individual Windows when an alarm is active. I need to sound tha alarm on the Alarm Summary Table once an alarm is active not on the individual Windows. In the individual windows I query the "state" of the alarm and based on that, I play the sound player. Works great, just want to have it on the Alarm Summary Window. any ideas?


Tue May 29, 2012 10:57 am
Profile
Moderator
Moderator

Joined: Sun Apr 02, 2006 2:46 pm
Posts: 1982
Location: Sacramento, CA
Post Re: Using the Alamr Summary Table I need to sound an audible ala
Sure you can bind the trigger of the sound player to an expression like this:
Code:
runScript(
"system.alert.queryAlertStatus(activeAndUnacked=1, minSeverity=2).rowCount",
1000
)
That will query the alert status table (internally) for any active and unacknowledged alarms with severity of medium or higher. It runs this every 1 second and gets the number of alarms that meet that critera. You can add more config in the system.alert.queryAlertStatus function. Check out this page in the user manual:

http://www.inductiveautomation.com/support/usermanuals/ignition/system_alert_queryalertstatus.htm

_________________
Travis Cox
Inductive Automation
Technical Support Rep.


Tue May 29, 2012 11:42 am
Profile WWW
Cadet
Cadet

Joined: Mon Nov 15, 2010 9:36 am
Posts: 6
Post Re: Using the Alamr Summary Table I need to sound an audible ala
Thank you Travis, but this is OK if the sound will stay ON until the user acknowledge the alarm, but the application requires the alarm to go OFF when the alarm displays for the first time. Only one time (unique) alarm for each entry. Is there any other property I can check?


Tue May 29, 2012 11:47 am
Profile
General
General

Joined: Tue May 31, 2011 6:27 am
Posts: 313
Location: Minnesota
Post Re: Using the Alamr Summary Table I need to sound an audible ala
And if you only want to play the sound when the alarm summary is showing (I'm assuming you're basing this off the skeleton project with the alarm summary "subwindow", you can rebind the actions of the check button to point to a client tag and the visibility actions to look at that value instead. Check that memory tag instead in Travis's script.

Code:
runScript(
"system.alert.queryAlertStatus(activeAndUnacked=1, minSeverity=2).rowCount and system.tag.getTagValue([Client]\PathToTag)",
1000
)


Tue May 29, 2012 11:51 am
Profile
General
General

Joined: Tue May 31, 2011 6:27 am
Posts: 313
Location: Minnesota
Post Re: Using the Alamr Summary Table I need to sound an audible ala
texaspty wrote:
Thank you Travis, but this is OK if the sound will stay ON until the user acknowledge the alarm, but the application requires the alarm to go OFF when the alarm displays for the first time. Only one time (unique) alarm for each entry. Is there any other property I can check?


Is it possible to set the alarms to autoacknowledge in the alarm settings for your usage scenario?


Tue May 29, 2012 11:52 am
Profile
Cadet
Cadet

Joined: Mon Nov 15, 2010 9:36 am
Posts: 6
Post Re: Using the Alamr Summary Table I need to sound an audible ala
I have to allow the alarm to stay ON until the user acknowledge (sometimes days) but I can only sound the alarm once for the current tag/alert.


Tue May 29, 2012 11:55 am
Profile
Moderator
Moderator

Joined: Sun Apr 02, 2006 2:46 pm
Posts: 1982
Location: Sacramento, CA
Post Re: Using the Alamr Summary Table I need to sound an audible ala
Well, the alert summary table does have a dataset property for the alarms shown in the table. Maybe you can use that to trigger the sound. The only rising edge indication we have is the meta property on each tag called AlertActive. When you try to use a single sound player for multiple tags it can be hard since there is only a single trigger.

_________________
Travis Cox
Inductive Automation
Technical Support Rep.


Tue May 29, 2012 3:59 pm
Profile WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: