Up-down-counter
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.
Signals
| Name | I/O | Type(s) | Function |
|---|---|---|---|
| vz | I | BIT | Up counting input |
| rz | I | BIT | Down counting input |
| c | I | BIT | Reset |
| iz | O | WORD | Counter |
| ue | O | BIT | Carry signal |
Comment
This function block is used to count slow binary events (the pulse interval must be longer than the program cycle).