Count Up/Down Counter
Category: Counter Box Functions
While the left condition is ON, a rising edge on the up input adds one and a rising edge on the down input subtracts one. If both rise in the same scan, the value does not change.
Syntax: CTUD C11 M0 M1 3
| Run condition | Before | Command entered | Expected result |
|---|---|---|---|
| Left condition ON | C11=0 | CTUD C11 M0 M1 3 | M0 ×2, M1 ×1 → C11=1 |