Alarms and events

Configure a control module to perform a customized alarm roll-up

The Alarm Unit dynamo (HP_Alarms) shows alarm count information. This dynamo can be configured to perform alarm roll-ups in modules matching the normal breakdown of Area > Unit > Equipment Module > Module or in modules that do now match the normal breakdown of Area > Unit > Equipment Module > Module.

The steps below show how to configure a control module to perform a customized alarm roll-up.

  1. Open the module in Control Studio.
  2. Add a CALC block to the module.
  3. Add these parameters at the module level:
    Parameter Description
    PRI Represents the module's highest alarm's priority.
    CUALM Represents whether the module's highest alarm is a new alarm.
    NALM Represents the highest alarm's current state.
    COUNT Counts the total number of annunciated alarms.

    That is, it counts all alarms that are Active/Unacknowledged, Active/Acknowledged, and Inactive/Unacknowledged.

  4. Add the following code to the module:
    Pn := 255;
    Cn := 0;
    Nn := 0;
    Count := 0;
    
    Pt := '//MODULE/ALARMS[1].PRI';
    Ct := '//MODULE/ALARMS[1].CUALM';
    Nt := '//MODULE/ALARMS[1].NALM';
    IF ((Nt > Nn) OR (Ct * (Cn - 1) < 0) OR ((Nt = Nn) AND ((Ct != 0)=(Cn != 0)) AND (Pt > Pn))) THEN
    Pn := Pt;
    Cn := Ct;
    Nn := Nt;
    Count := Count + 1;
    ELSE
    IF (Nt > 0) OR (Ct > 0) THEN
    Count := Count + 1;
    END_IF;
    END_IF;
    
    
    '^/PRI' := Pn;
    '^/CUALM' := Cn;
    '^/COUNT' := Count;
    '^/NALM' := Nn;
    
    1. Replace MODULE with the module name.
  5. If you want additional modules included in the alarm roll-up, duplicate the following code for each module:
    Pt := '//MODULE/ALARMS[1].PRI';
    Ct := '//MODULE/ALARMS[1].CUALM';
    Nt := '//MODULE/ALARMS[1].NALM';
    IF ((Nt > Nn) OR (Ct * (Cn - 1) < 0) OR ((Nt = Nn) AND ((Ct != 0)=(Cn != 0)) AND (Pt > Pn))) THEN
    Pn := Pt;
    Cn := Ct;
    Nn := Nt;
    Count := Count + 1;
    ELSE
    IF (Nt > 0) OR (Ct > 0) THEN
    Count := Count + 1;
    END_IF;
    END_IF;
    1. Replace each MODULE with the appropriate module name.
  6. Save the module.
  7. In DeltaV Operate Configure, open the HP_Alarms' Dynamo Properties dialog.
  8. Select the Custom radio button.
  9. Browse to the module's PRI, NALM, CUALM, and COUNT parameters.
  10. Click OK to save the changes and close the dialog.