Context Mimic Example - Alarm Management

The following mimic may be used to acknowledge, mask and unmask any alarm displayed in one of three alarm animations supporting the Context mimic feature.

  1. Create a mimic named CTXALARM. The Popup Behavior attribute must be enabled. The width and height should be approximately 100 and 120 respectively. The other attributes are at the discretion of the developer.
  2. In Draw mode add three text strings - Acknowledge, Mask and Un-mask. Give each of the text strings the Button attribute.
  3. Apply Run Macro animation (SCADA Basic) to each of the text strings. The following instructions should be used.

 

For the Acknowledge button

ALARM("ACK", "#V");

 

For the Mask button

ALARM("MASK", "#V");

 

For the Unmask button

ALARM("UNMASK", "#V");

Note the use of the substitution string #V in the field where an alarm variable name would normally be entered.

  1. Save the mimic.
  2. From the Preferences sub-menu on the Configure menu, select the Context Mimics to open the Context Windows dialog. ClosedShow picture
  3. Select the Alarm Animations tick box.
  4. Enter the name of the mimic just created in the corresponding drop-down list box.
  5. Confirm the configuration by selecting the OK command button.

ClosedShow picture

  1. Click the mouse button on any of the supported animations to display the mimic CTXALARM. By default, the right mouse button is used.
  2. The corresponding alarm may be acknowledged, masked or unmasked from the mimic.
  3. The mimic will be closed automatically as soon as focus is lost.