Up and down counter

Depending on the configuration of the input Dir, an internal value is counted up or down through an input pulse. The output is set when the configured count value is reached.

With every status change at the input Cnt from Lo to Hi, the internal counter is increased (Dir = Lo) or decreased (Dir = Hi) by one unit. If the internal counter is equal or larger compared to the specified value, the output Q is set to Hi. You can use the reset input R to reset the internal count value and the output to Lo. As long as R=Hi, also the output is Lo and the pulses at input Cnt are not counted.

Adjustable parameters

Designation Range Default value
Counter 0 ... 9999 5