Counter instructions Chapter 11
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015 273
CTUD counts (integers) from 0 up to a given value, 1 by 1, or from a given value
down to 0 (1 by 1).
Arguments
Parameter Parameter type Data type Description
CU Input BOOL Up-counting (when CU is a rising edge).
CD Input BOOL Down-counting (when CD is a rising edge).
RESET Input BOOL Reset dominant command.
(CV = 0 when RESET is TRUE).
LOAD Input BOOL Load command (CV = PV when LOAD is TRUE).
PV Input DINT Programmed maximum value.
QU Output BOOL Overflow: TRUE when CV >= PV.
QD Output BOOL Underflow: TRUE when CV <= 0.
CV Output DINT Counter result.