CtrlLagDelay (FB)

FUNCTION_BLOCK CtrlLagDelay EXTENDS AbbETrig3

This signal processing function block processes the input signal with Lag algorithm with defined delay cycle.

Transfer Function = U(s)/ E(s) = Gain * [ 1 / (1+ Ti * s ) * e - Ls ]

../../../../../../_images/CtrlLagDelay.PNG
InOut:

Scope

Name

Type

Initial

Comment

Input

In

REAL

0

3: Input of the signal to be processed by CtrlLagDelay function block

Mode

BYTE

1

4: Process mode:
  • 0 = Out = In = Disable Lag Delay Function

  • 1 = Out = Gain*1/(1+Ti*s)*e-Ls*In = Start Lag Delay Function

Kp

REAL

1

4: Propotional gain of CtrlLagDelay function block

Ti

REAL

1

5: Lag time of CtrlLagDelay function block (Unit: Second) 10000>=Ti>= 0.1

DelayCycle

INT

1

6: Delay cycle of CtrlLagDelay function block (600> = DelayCycle >= 0). Delay cycle depends on the cycle time of the task configuration, that is, Delay before integration = Delay cycle * Task cycle time

Output

ErrorID

ERROR_ID

3: Error identifier if an invalid value was applied to an input

Out

REAL

0

4: Input signal In is processed by CtrlLagDelay function block, the manipulated output signal is sent to Out