Use C for a 16-bit counter and DC for a 32-bit counter. The count changes once on each OFF-to-ON transition. A bit contact for the counter address reads its done state, and a ladder RESET coil initializes the current value. C0 through C10 are mapped to board functions on MPINO-8A4R(T)-S, so the examples on this page use C11 and C12.
| Command | Meaning |
|---|---|
| CTU | Increments the current value once whenever the left condition changes from OFF to ON. |
| CTD | Preloads the current value with the set value, then decrements it once on each rising edge of the left condition. |
| CTUD | 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. |