← All exercises

Count Up

easy

Up-counter that fires a done signal when count reaches 10.

What it teaches

Count how many times something happens. The counter ticks up only on the moment a signal turns on (not while it's held), so each press counts once. A 'done' signal fires when the count reaches a preset target.

Inputs and outputs

TagTypeDefaultDescription
In_CountBOOLCount input pulse
In_ResetBOOLReset signal
Sts_DoneBOOLDone flag

Required behavior