counter(max-tsec)

koadrobot/logic/counter(max-tsec)

Count with step at each Tsec second When RST pulse is received counting start (again). When IDX reach MAX counting reset clock and start (again) and END pulse transmit.
counter(max-tsec)
@/counter(max-tsec)
Count with step at each Tsec second When RST pulse is received counting start (again). When IDX reach MAX counting reset clock and start (again) and END pulse 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.
MAXnumber
Max idx to count.
Tsecnumber
Tick interval in second.
RSTpulse
Resets the counting value to start.
counter(max-tsec)
SUM
IDX
END
EN
STEP
MAX
Tsec
RST
ENDpulse
Fires on IDX reach MAX.
IDXnumber
The counting index value.
SUMnumber
The counting value.
To use the node in your project you should have the koadrobot/logic 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.

Tabular tests

ENRSTSTARTSTOPSTEPSUMTICKLOOP__time(ms)IVAL
trueno-pulse0310no-pulseno-pulse1000.1
trueno-pulse0311pulseno-pulse2000.1
trueno-pulse0312pulseno-pulse3000.1
trueno-pulse0313no-pulsepulse4000.1
trueno-pulse0313no-pulseno-pulse5000.1
truepulse0310pulseno-pulse6000.1