CtrlPidParallel (FB)
FUNCTION_BLOCK CtrlPidParallel EXTENDS AbbLConC3
This function block performs as a PID Controller with parallel control algorithm and differential filter function.
Transfer Function = U(s) / E(s) = Kp + (1 / Ti * s) + Td * s / (1 + Td/Kd * s)
- InOut:
Scope
Name
Type
Initial
Comment
Input
SpREAL0
2: Set Point of PID controller
PvREAL0
3: Process Variable of PID controller
KpREAL1
4: Propotional gain of PID controller
TiREAL20
5: Integral time for I factor of PID controller (Unit: Second), 10000>=Ti >= 0.1
TdREAL10
6: Differential time for D factor of PID controller (Unit: Second), 10000>=Td>=0
KdREAL1
7: Differential Propotional gain for D factor of PID controller, Kd > 0, to avoid division by 0 error.
FfOffsetREAL0
8: Feed forward offset for Output Manipulated Variable Out
DeadbandREAL0
9: Dead band of Error Variable, DeadBand >= 0.
ManualOnBOOLFALSE
10: Turn on manual mode to output manipulated variable manually
OutManualREAL0
11: Manual value for the output Manipulated variable
DirectActionBOOLFALSE
12: Direct Action mode selection for PID controller: FALSE- direct action (Ev = Sp-Pv), TRUE-reverse action( Ev := Pv- Sp)
OutMaxREAL100
13: Maximum limit of Output Manipulated Variable
OutMinREAL-100
14: Minimum limit of Output Manipulated Variable
Output
ErrorID3: Error identifier if an invalid value was applied to an input
SpReachedBOOLFALSE
4: Controlling state of the PID controller, SpReached=TRUE means process variable (Pv) reaches set point (Sp)
OutREAL0
5: Output manipulated Variable, Output of the PID controller
EvREAL0
6: Error Variable of the set point and the process variable
OutPREAL0
7: Proportional item of the Output manipulated variable
OutIREAL0
8: Integral item of the Output manipulated variable
OutDREAL0
9: Differential item of the Output manipulated variable
MaxAlarmBOOLFALSE
10: Maximum alarm of the Output manipulated variable
MinAlarmBOOLFALSE
11: Minimum alarm of the Output manipulated variable