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

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

PIC

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