AdCtrlCascade (FB)
FUNCTION_BLOCK AdCtrlCascade
The Function Block AdCtrlCascade is based on the Pidt1 control algorithm and contains several structural enhancements to improve the performance for temperature control.
Several features to improve the behavior of reference input changes, speed up the settling time, mimimize the overshoot and to allow the optimization the controller for disturbance response has been incorporated.
- A summary of the features are as follows:
Deadbeat to speed up the reaction on large reference input changes
Dynamic Feed-Forward with ramp for defined command response
Optional cascade structure to overcome the limitations caused by integrating action of the temperature zones
PT1-Filter to minimize the overshoot on reference input changes
Static Feed-Forward as adaption to environment temperature
- InOut:
Scope
Name
Type
Initial
Comment
Input
EnDeadbeatBOOLFALSE
1: Enable a deadbeat step, after a step change is applied to the setpoint
EnDeadbeatPercentBOOLFALSE
2: Use a ramp at the transition from deadbeat to closed loop control, increases the deadbeat effect as closed loop and deadbeat run in parallel
EnFeedForwardBOOLFALSE
3: Enable a feed forward step after a step change is applied to the setpoint
EnCascadeBOOLFALSE
4: Enable a cascaded control structure
EnFilterBOOLFALSE
5: Enable a filter for setpoint value
EnStepControlBOOL6: The internal setpoint will follow the external setpoint in steps, to reduce overshoot
ResetCtrlBOOLFALSE
7: Reset the controller, control variable will be set to zero.
ActTempREAL0
8: Actual temperature, controlled value
RefTempREAL0
9: Reference temperature, setpoint value
EnvTempREAL0
10: Environment temperature, just valid with KpPre >0
FfDeltaPerCycleREAL0
11: Maximum rate of change for reference temperature per second, creates a dedicated ramp rather then the maximum ramp when EnFeedForward=TRUE
FfTimeRatioREAL1
12: FfTimeRatio >=1, alternative for FfDeltaPerSec, prolonges the shortest possible ramp by the given factor
FfGainREAL0.8
13: 0..1, gain for FeedForward part of controller
DampCascadeREAL1
14: Damping for inner loop, just valid when EnCascade=TRUE
CtrlKpREAL0
15: Control parameter proportional gain
CtrlTiCyclesREAL0
16: Control parameter integration time
CtrlTdCyclesREAL0
17: Control parameter derivative time
CtrlT1CyclesREAL0
18: Control parameter first order delay
KpPreREAL0
19: Gain for a specific offset, applied to the control variable and related to the environment temperature
MaxRefREAL32767
20: Maximum value for the control variable
MinRefREAL0
21: Minimal value for the control variable equals zero means no cooling available or to use on/off cooling
HysOnREAL50
22: Hysteresis used for on/off cooling, used to switch the cooling ON
HysOffREAL0
23: Hysteresis used for on/off cooling, used to switch the cooling OFF
FilterGainREAL0.5
24: Reduce the filter time for setpoint-filter, used time is AdaptTu*FilterGain
CoolFactREAL1
25: Additional gain to be used when cooling is applied, refers to different strength of cooling/heating process
AdaptKsREAL0
26: Value from AdCtrlAdapt Function Block
AdaptTuREAL0
27: Value from AdCtrlAdapt Function Block
AdaptTgREAL0
28: Value from AdCtrlAdapt Function Block
Output
CvREAL0
1: control variable, value for actuator
Structure: