CtrlLeadLag (FB)

FUNCTION_BLOCK CtrlLeadLag EXTENDS AbbETrig3

Lead and Lag signal processing function block, process input signal with both Lead and Lad algorithm.

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

../../../../../../_images/CtrlLeadLag.PNG
InOut:

Scope

Name

Type

Initial

Comment

Input

Mode

BYTE

1

2: process mode:
  • 0— Out =In,

  • 1— Out = Gain*( 1+Td*s)/(1+Ti*s)*In

In

REAL

0

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

Kp

REAL

1

4: Propotional gain of CtrlLeadLag function block.

Td

REAL

1

5: Lead time of CtrlLeadLag function block (Unit: Second) 10000.0>=Td>=0.1

Ti

REAL

1

6: Lag time of CtrlLeadLag 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 CtrlLeadLag function block, the manipulated output signal is sent to out