← Counters

Batch Counter

easy

Pulses BatchReady every 5 trigger events and tracks the running batch count.

What it teaches

Pulse a 'batch ready' signal every 5 items, and keep track of how many batches have completed. The 'ready' pulse should be one scan wide — a heartbeat, not a hold. A common pattern in packaging and dosing systems.

Parameters

TagDirectionTypeDefaultDescription
In_TriggerInputBOOL0Item trigger event
Out_BatchReadyOutputBOOL0Batch ready signal
Sts_BatchCountOutputDINT0Total completed batches

Required behavior