Events - page of object PmObject

The page serves for the definition of the events algorithms. The algorithm is performed just when the event to which the algorithm is assigned, occurs. Algorithms on this page are written in the text form of the VBScript language syntax. The page is common to more objects, controlling see Basic control of script editor. The common description is in the PmObject object.
Configuration items:
EventsList of object events. After choosing the event it is possible to define the script that has to be performed after the initialization of the event. Object events are described in the description on the concrete Events page of the concrete PROMOTIC object. After pressing the F1 key, the help for selected event is fired.
ParametersList of script parameters. Each parameter represents the assigned value. For example, the value of the parameter pMe is the reference to the PROMOTIC object that owns the Events page where this parameter is defined. Parameters on the Events page are described in the description on the concrete Events page of the concrete PROMOTIC object.
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).
Parameters common to all events:
pMeReference to the PROMOTIC object where the event rises.
pEventA referrence to object describing detailed information about the specific event.

If more specific event definition is needed, then this kind of information is available as pEvent object property and the property 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. PmRoot.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.

PROMOTIC 8.3.21 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice