Applies To:
  • CitectSCADA 3.00

Summary:
When you are setting a variable you may wish to have the operator confirm the operation. 

Solution:
Following is a Cicode function that will allow you to set a variable and prompt the operator to confirm.

INT
FUNCTION
TagWriteConfirm(STRING sTAG, INT value, INT offset = 0)
   INT error;

   error = Message("Confirm Write", sTag + " = " + IntToStr(value + offset), 1);
   IF error = 0 THEN
      TagWrite(sTag, value, offset);
   END
   RETURN error;
END

The usage of the function is as per TagWrite() in the Design Guide.


Keywords:
 

Attachments