[Intouch] How to check whether an alarm from priority 1 apears

Karolewsky

Member
Join Date
Jan 2012
Location
Poland
Posts
7
Hi All,
I have to make a beep sound when an alarm from priority 1 appears. I will use Playsound() function, but I face the problem of how to get the information whether any alarm from priority 1 appears. Do You know how could I get that information in Intouch. I use Intouch 10.1. Thanks in advance

Best regards
Karol
 
Yes, this is an old post but I was looking for precisely this earlier today and finding the solution took a while.

Create the below QuickFunction, call it from the 'WhileShowing' window script of the alarmViewerBar window and test the return value to call Playsound():

DIM HighPriorityAlm AS DISCRETE;
DIM NumOfAlms AS INTEGER;

NumOfAlms = #AlarmViewerBar.UnackAlarms;

IF NumOfAlms > 0 THEN
DIM Index AS INTEGER;
DIM NewAlmPriority AS MESSAGE;

FOR Index = 0 TO NumOfAlms
NewAlmPriority = #AlarmViewerBar.GetItem(Index, "Priority");

IF NewAlmPriority == "1" THEN
HighPriorityAlm = 1;
EXIT FOR;
ENDIF;
NEXT;
ENDIF;

RETURN HighPriorityAlm;
 
Last edited:

Similar Topics

Hey guys, I'm trying to write a script that auto-restarts Win-911 if it crashes. I've gotten that to work, but the problem is that my client has...
Replies
3
Views
3,429
Hi all, I'm trying to check the health of the main and failover servers in a Terminal Services Intouch installation. There are 2 servers, each...
Replies
0
Views
1,950
Hey all. Ive got a screen where an operator is going to scan in with a bar code reader 140 serials. They click the position a serial goes in (it...
Replies
13
Views
5,253
Hello, AVEVA OI system drivers such as ABCIP and MBTCP provide a discrete register called $SYS$STATUS, which can be tied to a Discrete tag in...
Replies
0
Views
33
Hi all. Weird thing happening. I do a "set" from a button for a command (direct Discrete Value, no script), waiting for the L82 PLC to set it...
Replies
1
Views
64
Back
Top Bottom