Counters (output instruction)
CTUD instruction
Counts up on its own rung and down on a second bit, for a running total that can go both ways.
CTUD(counter, preset, downTag)Arguments
| Name | What it is | Accepts | Default |
|---|---|---|---|
| destination | What the instruction acts on | a counter | required |
| preset | Preset | a whole number | 4 |
| downTag | Count down on | a tag | — |
Arguments are positional and this table is generated from the simulator's own instruction registry, so it always matches what the engine accepts.
