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 the 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 triggering 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 Double 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 inherits properties, methods and events of the PmaObject object.
Properties and methods of this object:
CounterCounter restricting the number of runs
Emulate()Tick emulation
EnabledEnable/disable the timer
LastTickTime of last triggering of the onTick event
PeriodTimer period in seconds
StartEx()Timer activation with the specified number of runs and the period
Properties and methods inherited from the PmaObject object:
AddEvent()Registers a function into the specified event
GetInfo()Returns the Info object with the specified name
GetOwnedByIndex()Returns the subobject defined by its index
GetOwnedByName()Returns reference to the subobject defined by its name
GetOwnedByType()Array of references to the subobjects
GetOwnedNum()Returns number of subobjects in the object
GetPar()Reading the value of the Pma object parameter (or its parents)
GetPathName()Object name with the path to this object
GetPermission()Returns permission of corresponding operation from object
MethodsAccess to designer's methods of this object
NameObject name (without the path)
ParentReturns reference to the parent Pma object
Pm()Returns reference to the Pma object or to its implementation subobject
RemoveEvent()Unregisters the function in the specified event
RootReturns reference to the root application object PmaRoot
Events of this object:
onTickIs triggered after every timer tick
Events inherited from the PmaObject object:
onStartIs triggered for each object in runtime only once at the beginning
onStopIs triggered for each Pma object in runtime only once at the stop of the application
Configuration tabs:
ObjectGeneral information about the object
EventsDefinition of object events algorithms
TimerDefinition of conditions for starting the periodic process

Pm9.00.00: Object name changed: PmTimer -> PmaTimer
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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