counter(loop)

koadrobot/aritmatics/counter(loop)

Count from start to stop with step at each IVAL millisec. When RST pulse is received reset clock and start (again). If use START is greater than STOP for decresing. STEP is converted to pozitive always. At end of the counting loop (to reach STOP), LOOP pulse transmit. Count again. If Last Inc/Dec bigger/smaller then STOP, STOP value transmit.
counter(loop)
@/counter(loop)
Count from start to stop with step at each IVAL millisec. When RST pulse is received reset clock and start (again). If use START is greater than STOP for decresing. STEP is converted to pozitive always. At end of the counting loop (to reach STOP), LOOP pulse transmit. Count again. If Last Inc/Dec bigger/smaller then STOP, STOP value transmit.
ENboolean
Is the clock enabled, i.e. produces ticks? At the moment when set to true, starts counting from scratch.
STEPnumber
Value to increment or decrement on each INC. Step is absolute. If (Stop > Start) then increment. If (Stop < Start) then decrement.
STARTnumber
Start Value to count.
STOPnumber
Stop Value to count.
IVALnumber
Tick interval in seconds
RSTpulse
Resets the counting value to start.
counter(loop)
SUM
TICK
LOOP
EN
STEP
START
STOP
IVAL
RST
LOOPpulse
Fires on each for-count complete.
TICKpulse
Fires on each for-count.
SUMnumber
The counting value.
To use the node in your project you should have the koadrobot/aritmatics library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.