Counter - property of the PmaTimer object

The counter that allows to limit the number of next timer runs.
Long Counter
Counter > 0 - Value greater than 0 means the number of next timer runs. Each timer run automatically decreases the value of the counter by 1.
Counter = 0 - Value equal to 0 means that the timer will not be started.
Counter = -1 - Value equal to -1 means that the number of timer runs is unlimited (default).
Property access for read and write.
The limited number of runs can be called by the StartEx method with assigned nCounter parameter.
JavaScriptVBScriptSelect and copy to clipboard

var oTimer = pMe.Pm("/Timer");
var nCounter = oTimer.Counter;
// or
oTimer.Counter = -1;
PROMOTIC 9.0.21 SCADA system documentation - MICROSYS, spol. s r.o.

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