AdCtrlPidt1 (FB)
FUNCTION_BLOCK AdCtrlPidt1
- The Pid controller changes its output Y (control variable) until input X (controlled variable) is equal to input W (command variable). The block is used AdCtrlCascade function Block. It does the basic Pid control including
Anti wind-up for integrating part
Limitation for Cv
Bumpless setting of Cv to InitCV
First order filter for derivative part
All times are scaled to cycles, block requires to be called in a cyclic PLC task
Additional pre-Filter for DT1-Component available is also available within the block
- InOut:
Scope
Name
Type
Initial
Comment
Input
SpREAL0
1: Command variable (set point)
PvREAL0
2: ProcessValue, Actual Value
KpREAL0
3: Proportional coefficient, specified as a percentage value (100% =1).
TiCyclesREAL0
4: Integral action time scaled to the PLC cycle time
TdCyclesREAL0
5: Derivative action time scaled to the PLC cycle time
T1CyclesREAL0
6: Returning time scaled to the PLC cycle time (Filter Time).
MaxCvREAL0
7: High limit for the control variable Cv
MinCvREAL0
8: Low limit for the control variable Cv
SetBOOLFALSE
9: Enable for setting Cv to InitCV, COntroller is stpped otherwise
InitCvREAL0
10:Initial value for the control variable Cv
ResetBOOLFALSE
11:Reset of the control variable Cv to 0, controller is stopped.
Output
CvREAL0
1: Output for the control variable Control Value
StateMaxBOOLFALSE
2: High limit has been reached
StateMinBOOLFALSE
3: Low limit has been reached
Structure: