Digital Counter

This function block counts signals on one of the digital inputs (IN1 or IN2).

If a positive going edge is detected on the input port, the internal counter is increased by one. The value of this counter is provided at output Count. The input Reset can be used to reset the counter to 0.

The inputs IN1 and IN2 can parallel be used as digital inputs and “quick counters”.

Parameters

The parameter dialog can be used to select the specific digital input port.

Signals

Name I/O Type(s) Function
Reset I BIT Reset input
Count O WORD Counter

Visualization

The name of the digital input port is shown in the header of the symbol.