← All exercises

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'.

Inputs and outputs

TagTypeDefaultDescription
In_UpBOOL
In_DownBOOL
Sts_CountDINTCurrent accumulated count

Required behavior