CtrlLead (FB)

FUNCTION_BLOCK CtrlLead EXTENDS AbbETrig3

Lead signal processing Function Block, process input signal with Lead algorithm.

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

../../../../../../_images/CtrlLead.PNG
InOut:

Scope

Name

Type

Initial

Comment

Input

Mode

BYTE

1

2: Process mode:
  • 0 = Out = In,

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

In

REAL

0

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

Kp

REAL

1

4: Propotional gain of CtrlLead function block

Td

REAL

1

5: Differential time of CtrlLead function block (Unit: Second) 10000.0>=Td>=0.1

Output

ErrorID

ERROR_ID

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

Out

REAL

0

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