Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Counter - property of the PmaTimer object

Description:
The counter that allows to limit the number of next timer runs.
Syntax:
Long Counter
Values:
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).
Note:
Property access for read and write. The limited number of runs can be called by the StartEx method with assigned nCounter parameter.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oTimer = pMe.Pm("/Timer");
var nCounter = oTimer.Counter;
//or
oTimer.Counter = -1;
PROMOTIC 9.0.15 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