← Counters

Count Up Down

easy

Bidirectional counter tracking a running balance.

What it teaches

A counter that goes both ways — up and down. Useful for tracking running balances like 'how many parts are currently in the bin'.

Parameters

TagDirectionTypeDefaultDescription
In_UpInputBOOL0—
In_DownInputBOOL0—
Sts_CountOutputDINT0Current accumulated count

Required behavior