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

NameWhat it isAcceptsDefault
destinationWhat the instruction acts ona counterrequired
presetPreseta whole number4
downTagCount down ona tag—

Arguments are positional and this table is generated from the simulator's own instruction registry, so it always matches what the engine accepts.

Related instructions

All ladder logic instructions