[DLY_I] Delay for integer value

Function block DLY_I delays the input signal according to the delay time and provides it at the output.

DLY_I delays the input signal according to the delay time and provides it at the output.

Out(t) = ln(t-Dly)

Functioning

DLY_I writes each new input value [In] to its buffer. The input value is new, if the input value changes from the last saved input value. After the delay [Dly] expires, this input value is provided at the output. The last input value remains pending at the output until the next delayed input value is provided.

Multiple new input values

Multiple new input values arriving within the delay time are saved in sequence in the buffer (ring buffer). If the buffer is full (max. 100 values), the oldest saved input value is provided even if the delay time has yet to expire. This forced output occurs max. in the cycle time. No values are lost. The forced output is displayed [Sta]=1.

info

The initial value [Init] on the output is provided until the first delayed input value is provided.

Pins

Input

Description

Data type

Default value
Value range

In

Input

Integer

0

Dly

Delay

Time by which a new input value is displayed.
This parameter can be interconnected to permit simultaneous delay parameterization of multiple DLY_xxx function blocks.

Time

0 ms

0s…120s

0ms: No delay
1…999ms: Delay = 1s
1…120s: Delay in steps of 1 second

Init

Initialization

Initialization value until the first delayed input is provided.

Integer

0

 

Output

Description

Data type

Default value
Value range

Out

Output

Integer

0

Valid

Valid

Boolean

0

0 - No input value provided, [Out] = [Init].
1 - Normal function.

Sta

State

Boolean

0

0 - Normal function.
1 - Delay time violated. In extreme cases, the saved input values are provided in cycles.

Application

DLY_I allows for cascaded control of blinds motors to prevent electrical peaks when starting up simultaneously.