Counter Up
Increments up to a given value PV and resets itself after reaching PV.
Current count is transferrd to CV.
Clock frequency can be set via FR.
Counter only increments while EN is 'true' and PV is greater than zero.
ctu
@/ctu
Counter Up
Increments up to a given value PV and resets itself after reaching PV.
Current count is transferrd to CV.
Clock frequency can be set via FR.
Counter only increments while EN is 'true' and PV is greater than zero.
CUboolean
Boolean Input - needs to be set TRUE for counting up
IVALnumber
Tick interval in seconds.
Frequency for counting - standard value 1Hz
Rpulse
Reset - resets the counter
PVnumber
number of pulses to be counted - resets counter when reached
TICKpulse
Pulse per incrementation
Qboolean
Output - is set true after counter reached PV
DONEpulse
Pulse when done
CVnumber
Counter Value - current count
To use the node in your project you should have the tobias/plc 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.