RuntimeCounter

Used to calculate an expiration time. When the configured time is over, the output becomes TRUE.

The output defines if the time is expired or not, TRUE means expired while FALSE means not expired.

The output cannot be TRUE if the val input is FALSE.

If val input is TRUE, this block holds the output to a FALSE state for a defined amount of time.

If val input is FALSE, the output state is set to FALSE and the expiration time is reset.

The amount of time before the output TRUE state expires is defined either by maxOnTime or maxOnTimeDuration.

If set, maxOnTime wins over maxOnTimeDuration.

Input:

val (boolean)

maxOnTime (number)

maxOnTimeDuration (duration)

Output:

result (boolean)