SA Project- Alarm Page Column Fields

Hi,

How can we customize the Active Alarm Page in SA project? 

Would like to show other Columns and pre-set the width as it is always appearing to to small and fixed when opening the alarm page. 

As an example I would like to show the ITEM column  (used in the Historical events ) on the Active Alarm page, and increase the default width of columns TAG and NAME.

Thanks,

Regards

Rune

  • i think i may have found the answer to this. in the page DefaultAlarm_HD1080 the page entry event uses the function
    AlarmPage_Init(....) . apparently it can take 4 arguments. one of them is format.
    which means you can specify a format. so in Parameters activity, create a new format under section name "Format"
    i did a trial with this example format {PriorityAndState,24}{OnDate,90}{OnTime,90}{Type,90}{Name,220}{Desc,300}{Area,10}
    you can tailor the format as long as the format is recognised. (see Alarm_Display_Fields.html)
    then in the pageentry of the DefaultAlarm_HD1080 specify the name of the format in the 4th argument.
    eg. AlarmPage_Init(AlarmPage_GetDefaultParameters("HD1080"), "HD1080",0,"ActiveAlarms")
    where ActiveAlarms is the name of the new format. save, compile and run
    hopefully that helps
  • Item is there by default on the Active Alarm page.

    But how to customize:

    Close Ignatious, but you can skip a few steps.

    The Active Alarm page supports the default format of "Alarm"
    The Historical Alarms page supports the default format of "SOE"

    And these can be overridden.

    So in Citect Studio:
    1. Go to Setup > Parameters
    2. Add a parameter:

    Section Name = FORMAT
    Name = Alarm
    Value = {PriorityAndState,25}{OnDate,80}{OnTime,90}{Name,250}{State,40}{Cluster,70}{Equipment,220}{Item,160}{UserName,100}{Comment,250}{Category,60}

    Save, Compile and Run


    The above format is the default for the Active Alarm Display.
  • talking about alarm format... i setup the format to show area. but its just returning a number. i created a label to specify the area and used that label in the digital alarm activity area field. i was hoping to get the actual text and not the number. is there a way to return the plain text?
  • Thanks Bradley for your quick response!

    In my example_sa project the default format is not like you describe, see my print screen below.

    If I add as you describe there is no difference in the format view of Active Alarms page. 

    If I follow the additional step described by Ignatious, adding the Format name to the AlarmPage_Init function, then it works. 

    What do we conclude from this, is there a mismatch somewhere? 

    My version is 8.10 Update [Dec 11, 2018)[0]

    Rune

  • Ignatius, Thanks for taking the time to respond!
    Most Appreciated, Your suggestion works. I do have some follow up to Bradley's response that are of interest.

    Rune
  • The nature of labels is that they are substituted after compilation and the runtime has no knowledge of the label names.

    I reckon the easiest way is to copy the label name in your alarm (dbf) to one of the Custom1..8 fields. These fields are not substituting labels.
    On you alarm format, you then add {Custom1,80} and to Adjust the header title you can use the ini:

    Section Name = Alarmheading
    Name = Custom1
    Value = AreaAsString
  • Rune,
    The format of your active alarm page looks like it is using the shelved alarm page's format.
    Something might be off there, if I follow Bradley's steps it changes the columns on display in the active alarm page.

    You could dump the kernel for the client process and check in the kernel.dat the actually loaded [Format]Alarm parameter values (last section of kernel.dat dump.
  • Erik,

    This from the kernel.dat file:

    [FORMAT] ALARM= {Date,100}{Time,74}{Tag,136}{Name,177}{State,73}{Comment,97}{Disableenddate,111}{Disableendtime,112}{Disablecomment,113}
    [FORMAT] INFOALARM_HD1080= {PriorityandState,24}{OnTime,90}{Item,100}{Name,240}

    Setup->Paramteres is set with:
    Section Name = FORMAT
    Name = Alarm
    Value = {PriorityAndState,25}{OnDate,80}{OnTime,90}{Name,250}{State,40}{Cluster,70}{Equipment,220}{Item,160}{UserName,100}{Comment,250}{Category,60}

    Rune
  • Rune,

    This seems to suggest you have configured another format in the ini 9and the display is correct based on the parameter value loaded in runtime).
    Can you check what is in the citect.ini you use or in the profile?

    The precedence is that ini wins over anything configured in the params.dbf in project (see the help Parameters > About Parameters > Parameter Precedence).
  • correct Erik,

    the ini had a Format section which seems to be set to the default. remove it and it uses the value in the parameter.dbf.
    Thanks.