eWON.biz
Knowledge Base

Latest changes
eWON wiki > eWON Support > Knowledge Base > Questions and Answers > How to create a Global Alarm

How to create a Global Alarm

From $1

Table of contents

 

Request

"Is there a way to check if ANY alarms are active? So that one does not have to check the alarmstatus for every tag.
The goal is to activate an output no matter what alarm is active."

 

Solution

There is no immediate solution to your request like a "Global Alarm Status".

I think the easiest way is to monitor the rt_alm.txt file (equivalent to the "Alarm Summary" page) and if it's not empty, that means alarm(s) is(are) present(s).

This could be done by script with the following:

test_Alarms:
  CLOSE 1
  OPEN "exp:$dtAR" FOR TEXT INPUT AS 1
  A$ = GET 1
  B$ = GET 1
  CLOSE 1
  IF B$<>"" THEN
    PRINT "GLOBAL ALARM is present"
  ELSE
    PRINT "No global alarm"
  ENDIF
END

Every GET (in text) on exportBlocDescriptor reads one line, then if the second line is not empty, that means "global alarm".

Now, put the right action when alarm occurs, call the test every x seconds (and don't forget to handle your global action only one time).