TIMER – Multipurpose timer

Block SymbolLicensing group: STANDARD
PIC

Function Description
The TIMER block either generates an output pulse of the given width pt (in seconds) or filters narrow pulses in the U input signal whose width is less than pt seconds. The operation mode is determined by the mode parameter.

The graph illustrates the behaviour of the block in individual modes for pt = 3:

PIC

The timer can be paused by the HLD input. The R1 input resets the timer. The reset signal overpowers the U input.

Inputs

U

Trigger of the timer

Bool

HLD

Timer hold

Bool

R1

Block reset (R1 = on)

Bool

Outputs

Q

Timer output

Bool

et

Elapsed time [s]

Double (F64)

rt

Remaining time [s]

Double (F64)

Parameters

mode

Timer mode  1

Long (I32)

1 ....

Pulse – an output pulse of the length pt is generated upon rising edge at the U input. All input pulses during the generation of the output pulse are ignored.

2 ....

Delayed ON – the input signal U is copied to the Q output, but the start of the pulse is delayed by pt seconds. Any pulse shorter than pt is does not pass through the block.

3 ....

Delayed OFF – the input signal U is copied to the Q output, but the end of the pulse is delayed by pt seconds. If the break between two pulses is shorter than pt, the output remains on for the whole time.

4 ....

Delayed change – the Q output is set to the value of the U input no sooner than the input remains unchanged for pt seconds

pt

Timer interval [s]  1.0

Double (F64)

2023 © REX Controls s.r.o., www.rexygen.com