Description

Functions as an event counter.

Function

Each time the input signal is in the state of Counter up, the output count value increases by 1. When the count value is equal to Pre-set Value, the trigger signal outputs 1. When Reset is equal to 1, reset the event counter to start counting events from zero.

Input

PIN

Description

Counter up

BOOL, rising edge pulse trigger signal.

Reset

BOOL, signal of resetting the event counter to zero. Use short pulses when in use.

Pre-set Value

FLOAT, preset count value.

Output

PIN

Description

Q

Optional; when the count value reaches the preset value, this signal becomes 1.

CurrentValue

Optional; current count value.

Example 1

Water pump start-stop count.

Example 2

Turn on Indicator1 for five seconds every 10 times the water pump is activated.

Example 3

Hotel room chandelier control: If the primary switch is closed, pressing the self-reset chandelier switch turns on/off the chandelier; if the primary switch is open, the chandelier turns off immediately with no possibility to be switched on again.