CtrlLag (FB)

FUNCTION_BLOCK CtrlLag EXTENDS AbbETrig3

This function block processes the input signal with the first order lag algorithm.

Transfer Function = U(s)/ E(s) = Kp * [ 1 / (1+ Ti * s ) ]

../../../../../../_images/CtrlLag.PNG
InOut:

Scope

Name

Type

Initial

Comment

Input

Mode

BYTE

1

2: Process mode:
  • 0 = Out = In = Disable Lag Function

  • 1 = Out = Kp*1/(1+Ti*s)*In = Start Lag Function

In

REAL

0

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

Kp

REAL

1

4: Propotional gain of CtrlLag function block

Ti

REAL

1

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

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 CtrlLag function block, the manipulated output signal is sent to Out