Counter Down
Decrements down to zero from 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 decrements while EN is 'true' and PV is greater than zero.

ctd

@/ctd

Counter Down
Decrements down to zero from 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 decrements while EN is 'true' and PV is greater than zero.

CDboolean

Boolean Input - needs to be set TRUE for counting down

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
Needs to be greater than zero.

TICKpulse

Pulse per decrementation

Qboolean

Output - is set true after counter reached PV

DONEpulse

Pulse when done

CVnumber

Counter Value - current count