Events - tab of the PmaObject object

The tab serves for the definition of the events algorithms. The algorithm is performed just when the event to which the algorithm is assigned, occurs.
The tab is common to more objects, controlling see Basic control of script editor. The common description is in the PmaObject object.
EventsList of object events.
After choosing the event it can be defined the script that has to be performed after the initialization of this event.
Object events are described in the description of the "Events" tab of the concrete Pma object.
After pressing the F1 key, the help for selected event is opened.
ParametersList of the event parameters.
Parameters of the event are defined in the description of this event (see e.g. PmaRoot.onUserLogoff).
Parameters common to all events:
pMe(Object) Reference to the PmaObject object where the event rises.
pEvent(Object) Reference to the object describing detailed information about the specific event.
If more specific event definition is needed, then this kind of information is available as properties of the pEvent object and these properties is listed in the script editor.
A major portion of the available events do not need any additional information, in such case the pEvent object does not have any properties and therefore it is unsubstantial.
However some events (e.g. the PmaRoot.onKeyPress event) require additional information (e.g. the code of key pressed). In this case this information can be found in the pEvent.Code property.
EditBy clicking the button the edit window for the script can be opened, the window that servers for easy definition of the script (it is the full screen window, cursor coordinates are displayed on the bottom of the window, which is useful for errors detection in the script).
See also:

Pm8.00.08: The "Test" buttons was removed (used for script syntax checking) and also the "Edit" button (for expanding the script editor window to fullscreen). These functions were moved to the local menu in the script editor.
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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