Object PmaTimer (Timer)

The object watches the time period expiration. The onTick event is triggered with the certain period. The object is suitable first of all for periodic execution of a script or its execution in the daytime. It is possible to perform event larger functionality as for example the late execution of the script (see StartEx method). It is better to perform the more common way of time control by the PmaSequencer object.
No other Pma objects can be created in this object.

This object can be created in objects: PmaRoot, PmaFolder, PmaPrototype. Multiple objects of this type can be created in such objects.

Periods of calling the onTick event can be changed on an ongoing basis (see Period property) or disabled on an ongoing basis (see Enabled property).

The period is entered in seconds but as it is of the Single type, it is possible to enter the time unit smaller than 1 second. The object is linked to the computer time that "ticks" with the maximum period of 10 ms (i.e. 0.01 second). But practically such short periods cannot be used in this object. It is also recommended not to use very small value because it puts higher performance load in the application.

This object adopts properties and methods of object PmaObject.
Properties and methods:
Counter Counter restricting the number of runs
Emulate Tick emulation
Enabled Enable/disable the timer
LastTick Time of last execution of the onTick event
Period Timer period in seconds
StartEx Timer activation with the specified number of runs and the period
onTick Is triggered after every timer tick
Configuration windows:
Object General information about the object
Content Content of the object in the XML form
Events Definition of object events algorithms
Timer Definition of conditions for starting the periodic process

Pm9.00.00: Object name changed: PmTimer -> PmaTimer
PROMOTIC 9.0.8 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