Update cookies preferences
Promotic

LastTick - property of the PmaTimer object

Description:
Time of last triggering of the onTick event.
Syntax:
Date LastTick
Note:
Property access for read only.
 
If the timer did not trigger the onTick event since application launch not even once, then the property returns the time value 0. The last triggering time and timer period also specifies the next execution.
See also:
- PmaTimer.Period (property)
- PmaTimer.Enabled (property)
Example:
Calculation of next execution based on the last triggering time and timer repeat period (presuming the timer is enabled and has been launched at least once).
JavaScriptVBScriptSelect and copy to clipboard

var oTimer = pMe.Pm("/TestTimer");
var tNextTick = oTimer.LastTick + oTimer.Period / 86400;

History:
Pm8.03.00: Created
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

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