The TriggerCounter has one simple task to perform: it counts every incoming trigger and upon a predefined number it reacts and sends the number from its Counter output. After the output it sent, it resets the counter and starts over again.
Although a simple mechanism, this is very handy in many situations where you need to react upon a repetitive sequence of events. Maybe something special should happen when the front door has opened 3 times? Maybe you want to alter the output of a TwilightCalendar and make things happen every second sunrise?
The example illustrated below shows how the TriggerCounter is used to count severe delays when pinging servers. The TriggerCounter makes sure that we don’t react upon a single error but takes action when it happens several times.