Promotic
Login logon

Example of alarm control in the script

The example shows usage of methods SetState, Inactivate and Activate

- This example is functional for the Web.
- Located in the Pma object tree: /Examples/Alarms.


The example contains a single panel (PmaPanel object) with several PmgButton objects. These buttons contain a script in the onButtonUp event. These use the SetAlarm panel method to activate the alarm with corresponding texts obtained in method parameters. Or use the SetInactive panel method to execute Inactivate method of this item, or set the state of this item by the SetState method.

In order to make alarm state changes visible, the workspace is divided by the PmaWorkspace object to panel section (with controls) and alarm states viewer section.
PROMOTIC 9.0.32 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.Update cookies preferences