This function block counts 0 and 1 edges (one edge per loop) at the inputs.
If the Reset input in on HIGH, the counter is set back to 0. If the counter over- or underflows, the carry of the counter is set for one cycle time.
|Up counting input
|Down counting input
This function block is used to count slow binary events (the pulse interval must be longer than the program cycle).