Table of Contents

CTUD Box Function

Count Up/Down Counter

Category: Counter Box Functions

Behavior

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 and Arguments

Syntax: CTUD C11 M0 M1 3

Behavior Example

Run condition Before Command entered Expected result
Left condition ON C11=0 CTUD C11 M0 M1 3 M0 ×2, M1 ×1 → C11=1

CTUD input, current value, and done state

Cautions

Box Functions in the Same Category