Customize Alarm/SoE summary state texts

Hi,

is it possible to customize the alarm/summary state texts that are shown in active alarm or SoE pages ({State,80}, {SumState,100}) individually for alarms?

It actually only shows "ON" and "OFF".

We would like to show an individual status text items for each alarm here:

  • "Automatic", "Fault", "Exceeded" or "Unlocked" instead of "ON"
  • "Manual", "OK", "Limit OK", or "Locked" instead of "OFF"

The individual status texts could be stored in the "CUSTOM1" and "CUSTOM2" fields, but it is possible to configure the active alarm or SoE page to show {CUSTOM1} as status for the "ON" events and show {CUSTOM2} as status for the "OFF" events?

Thanks.

Parents
  • This, and many more things, can be achieved by following these steps:
    1. Place the alarm list animation numbers (or cicode objects) outside of the viewable area of the page.
    2. Build your custom alarm line using AlarmGetDsp() function calls.

    For example if your alarm list starts at AN1000, then for showing the summary state of the first alarm line you could use AlarmGetDsp(1000, "SumState"). If you want to customize this state text, you could write a cicode wrapper function:

    STRING FUNCTION MySumText(STRING sState, STRING sOn, STRING sOff)
    SELECT CASE sState
    CASE "ON" RETURN sOn;
    CASE "OFF" RETURN sOff;
    END SELECT
    END

    And call this function from your custom alarm line (a text object on the page):

    MySumText(AlarmGetDsp(1000, "SumState"), AlarmGetDsp(1000, "CUSTOM1"), AlarmGetDsp(1000, "CUSTOM2"))

    Just remember to keep this wrapper function non-blocking. It cannot contain statements that take too much time, like TagRead or FOR /WHILE loops, etc.

  • Thanks for the quick respponce, but is this applicable to the SA AlarmList object?

  • No, this only applies to classic alarm lists (actual, summary, or SOE).

    In your case, you could use an unused CUSTOM field of the alarm record to store the category text (at design time).

Reply Children