Up-Down Counter

INFORMATION

The counter output is AQ, which with each pulse on the input C, will either increment or decrement depending on the value of the Dir input. You can define the start value of AQ with the parameter SV.

In addition this program block allows you to turn the Q output on and off using the parameters Von and Voff. As soon as AQ is equal or greater to Von then Q will be on, and as soon as the value of AQ is less than or equal to Voff then Q will go off.

A pulse on the input R will reset to the start value, SV parameter, again.

Up Down Counter

OVERVIEW

INPUTS

CCounter inputConnect an inpulse here to count the pulses on the input.
DirCounter directionWhen Dir = 0, AQ incremements, when Dir = 1, AQ decrements.
RResetResets AQ to the start value, defined by parameter SV.

PARAMETERS

SVStart valueValue from which the counter AQ starts.
VonOn valueValue at which the Q output will turn on if more than or equal to Von.
VoffOff valueValue at which the Q output will be off if less than or equal to Voff.

OUTPUTS

QDigital outputOn when AQ is more than or equal to Von, off when AQ is less than or equal to Voff.
AQCounter readingHere the current count is output.