Applies To:
  • CitectSCADA 5.xx
  • CitectHMI 5.xx

Summary:
The alarm summary page needs to be filtered on several categories and displayed using Cicode. The PageSummary function displays a blank Alarm Summary page when used with one or more alarm categories.  

Solution:
There is currently a problem with the PageSummary function. An alternative method is to use the AlarmSetQuery function. This allows the summary page to be filtered on a group of alarm categories.

An expression such as the following may be used to call the AlarmSetQuery function:

AlarmSetQuery(-1,"GroupSummary",sGroupName)

The user-defined function (as listed below) checks the alarm category for each alarm against the specified group. A value of true is returned if the category is in the group.

INT
Function
GroupSummary(INT nRID, INT nVer, STRING sAlmGrp)

    INT hGrp
    INT nAlmCat

    nAlmCat = AlarmGetFieldRec(nRID,"Category")
    tracemsg(nAlmCat)
    hGrp = GrpOpen(sAlmGrp,0)

    If GrpIn(hGrp,nAlmCat) Then
        GrpClose(hGrp)
        Return True
    Else
        GrpClose(hGrp)
        Return False
    End

End

 

Keywords:
 

Attachments