MASTER YOUR CASTLE with your new build or reno project
Enter competition

How to acknowledge alarms automatically in Vijeo Citect during runtime.

FA11611

22/12/2012

In order to acknowledge alarms automatically in the Vijeo Citect dring runtime put all the alarms that need to be automatically acknowledged in the same category. Then use the following Cicode script to acknowledge all the alarms of this category.

Note:
You could have this function run every 30seconds for example.

Cicode Script:

/* Acknowledge all unacknowledged (Type 1) alarms of the specified alarm category. */
 
FUNCTION AutoAccept(INT Category)
INT Current;
INT Next;
Current=AlarmFirstCatRec(Category,1);
WHILE Current<>-1 DO
   Next=AlarmNextCatRec(Current,Category,1);
   AlarmAckRec(Current);
   Current=Next;
   END
END