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 )]
- InOut:
Scope
Name
Type
Initial
Comment
Input
ModeBYTE1
- 2: process mode:
0— Out =In,
1— Out = Gain*( 1+Td*s)/(1+Ti*s)*In
InREAL0
3: Input of the signal to be processed by CtrlLeadLag function block
KpREAL1
4: Propotional gain of CtrlLeadLag function block.
TdREAL1
5: Lead time of CtrlLeadLag function block (Unit: Second) 10000.0>=Td>=0.1
TiREAL1
6: Lag time of CtrlLeadLag function block (Unit: Second) 10000.0>=Ti>=0.1
Output
ErrorID3: error identifier if an invalid value was applied to an input
OutREAL0
4: Input signal In is processed by CtrlLeadLag function block, the manipulated output signal is sent to out