Acknowledge Wonderware Archestra Alarm Script

Ones_Zeros

Member
Join Date
Feb 2014
Location
at work
Posts
367
Hey
I was needing help with some alarm scripting in Woderware System Platform.
What would be the best way to write a script to auto acknowledge all "Areas" alarms in the Wonderware system platform system?

I was needing an audible alarm, this would alert operator to check the alarms page, but were I have 30+ areas I thought auto acknowledging would be best, but I would like the option for both were the operator has to hit the acknowledge button.

I have this written so far I just added 6 of the areas but I will add the others once I get the script working, the audio works, but it's staying on & not going off.

Can you guys tell me what I'm doing wrong? If possible can you help me with both a script to "auto" acknowledge and were someone has to select the acknowledge button.

This is what I have scripted for the acknowledge button
#AlarmViewerCtrl2.AckAll( "");

This what I have for the alarm scripting
IF
Galaxy:Area1.AlarmUnAckedCnt.Value OR
Galaxy:Area2.AlarmUnAckedCnt.Value OR
Galaxy:Area3.AlarmUnAckedCnt.Value OR
Galaxy:Area4.AlarmUnAckedCnt.Value OR
Galaxy:Area5.AlarmUnAckedCnt.Value OR
Galaxy:Area6.AlarmUnAckedCnt.Value>=1
THEN
PlaySound("c:\sounds\Horn.wav",1);
ENDIF;


Thanks for Helping I do appreciate it
 
Your script should be doing a compare of >=1 for each area, then the OR..
IF (
Galaxy:Area1.AlarmUnAckedCnt.Value>=1 OR
Galaxy:Area2.AlarmUnAckedCnt.Value>=1 OR
...

Hope that makes sense. Its a bit painful typing this on my phone.

See if that works.
 

Similar Topics

Hello, I have been tasked with adding some analog signals for display and alarm setup in some old Schneider Electric HMIGTO HMI-panels. I have...
Replies
4
Views
181
Can anyone share a way to make a button on the HMI that hits the "Ack Page" in an Alarm and Event Summary Window? or better yet - a plc tag...
Replies
5
Views
267
Is there a simple way (VBA or macro language) to acknowledge ONLY the most recent alarm? I upgraded recently all the way from RSVIEW 32 7.60 to...
Replies
4
Views
676
Hi. I want a button to acknowledge selected alarms on a Distributed Alarm Display with InTouch 2023. Simple, right? Nope. This is the...
Replies
2
Views
443
For a project in TIA 17 with S7-1500 plc and WinCC Advanced I need to be able to know the acknowledgement status of a program alarm in the PLC...
Replies
0
Views
539
Back
Top Bottom