Applies To:
  • CitectSCADA 1.00 1.01 1.10 1.11 1.20 2.00 2.01

Summary:
Question: I am using the AlarmComment() function to add comments to the alarm summary page. However, as my plant generates many alarms by the time the operator has typed in a comment, a new alarm has occurred and the comment is attached to the wrong alarm summary. To enter the comment, the operator clicks on the alarm which then displays a form for the operator to enter the text. If a new alarm occurrs before the operator closes the form, the comment will be attached to the wrong alarm. Is there a way to stop the update of the alarm summary while the operator is entering the comment? 

Solution:
The alarm display is updated on the screen by calling the function AlarmDsp(). On the default alarm page, this function is called in the Always Command so that the page will constantly update. You can stop the update of the alarm display by not calling this function while your form is displayed. For example:

INT bStopDisplay;
FUNCTION
AddComment()
   STRING sCom;

   bStopDisplay = TRUE;
   sCom = Input("Alarm", "Enter Alarm Comment", "");
   AlarmComment(sCom);
   bStopDisplay = FALSE;
END

FUNCTION
AlarmDspExt(NT AN, INT nCount, INT nType)
   IF NOT bStopDisplay THEN
      AlarmDsp(AN, nCount, nType);
   END
END

Then replace the call to AlarmDsp with AlarmDspExt(). This will cause the alarm display to pause while the form is being displayed. When the form is closed the alarm will start displaying again.

 

Keywords:
 

Attachments