TIMER – Multipurpose timer

Block SymbolLicensing group: STANDARD
Qt SVG Document Exported by REXYGEN Studio U HLD R1 Q et rt TIMER

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. Supported modes are:

  • 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.

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

image/svg+xml0 2 3 4 5 7 9 10 11 13 14 15 mode 4 mode 3 mode 2 mode 1 U time [s]

The timer can be paused by the HLD input. The R1 input resets the timer. The reset signal overpowers the U input, similarly to the RS block.

This block propagates the signal quality. More information can be found in the 1.4 section.

Input

U

Trigger of the timer

Bool

HLD

Timer hold

Bool

R1

Timer reset

Bool

Parameter

mode

Timer mode  1

Long (I32)

1 ....

Pulse generator

2 ....

Delayed ON

3 ....

Delayed OFF

4 ....

Delayed change

pt

Timer interval [s]  1.0

Double (F64)

Output

Q

Timer output

Bool

et

Elapsed time [s]

Double (F64)

rt

Remaining time [s]

Double (F64)

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