Professional Documents
Culture Documents
DCS Controller Tuning
DCS Controller Tuning
• Process Dynamics
• Feedback Control
• Controller Tuning Procedure
• Initial Tuning from Design Data
• Stable Processes
• Unstable Processes
– Ramp Processes
• First Order
– Process Heaters
– Flash Drums
– Flow Controllers
• Second Order / Higher Order
– Distillation Columns
– Feed / Effluent Exchangers
Defined by 3 Parameters
• Process Gain - Kp
– Change in Process Variable (% of Scale) Steady State
per 1% Change in Controller Output
• Dead Time - (Theta)
– Elapsed Time Before Process Reacts to Change in
Controller Output
• First Order Time Constant - (Tau)
– Time for Process to Reach 63.2% of its Steady State
Process Gain
Process Variable
(Controlled Variable)
X
Controller Output (Manipulated Variable)
Time
Process Variable
(Controlled Variable)
X
Controller Output (Manipulated Variable)
Time
Kp x 63.2%
1%
X
Controller Output (Manipulated Variable)
Time
STONE & WEBSTER
First Order Dynamics
Steady
State
Kp
Kp (1 - e-1)
Y Yo
X
Controller Output (Manipulated Variable)
Time
STONE & WEBSTER
First Order Dynamics
dy
Ay C 0 (1)
dt
A, C Constant
t -
y y0 Kp x 1- e (2)
IF, Kp 1, x 1, then
a) for t y y0
b) for t y y0 1 - e1 y0 0.632
c) for t y y0 1
STONE & WEBSTER
Second Order and Higher Order Dynamics
1st Order
Approximation
dy
SLOPE Kr
dt
Y
X Controller Output
(Manipulated Variable)
0 Time
dy
C 0 (1)
dt
C Constant
y y0 Kr t (2) STONE & WEBSTER
Ramp Process Dynamics
Defined by 2 Parameters
• Process Gain - Kr
– Change of Slope of Process Variable
(% of Scale/Minute)
(per 1% Change in Controller Output)
• Dead Time -
II
TUNING PARAMETERS
INFLOW
I 1. CONTROLLER GAIN, K
AFFECTS RATIO OF:
DISTURBANCE
FLOW
OUTFLOW
[ SLOPE OF OUTFLOW LINE
UNIT INFLOW DISTURBANCE ]
2. RESET TIME, T
SETPOINT
LEVEL
+5
+4
+3
+2
+1
0
1.5 0.75
+2
+1
0
OP% 2%
3.5
Kp 1.75 0 1 2 3 4
2.0
1.5min TIME
0.75min STONE & WEBSTER
Identifying Process Dynamics
1) Determine Whether Process is Stable or Unstable
2) Conduct Response Test
a) Put Controller in Manual
b) Make Small Change in Controller Output
c) Use Trend Recorder to Plot Change in Process
Variable
d) Move Controller Output Back to Original Position
3) Calculate Model Parameters
a) Kp, , for Stable Process
b) Kr, , for Ramp Processes
• Feedback Control
Process
Variable
Process
STONE & WEBSTER
On/Off Control
On
Off
Gap
PV Setpoint
Gap
Time
• Size of gap is only tuning parameter.
• Small adjustments impossible without frequently switching on/off.
• Air cooler is a common refinery example of on/off control.
• Sump pump another example. STONE & WEBSTER
Objectives of Proportional Control
entered by operator.
PB = Proportional Band
Decrease PB to Speed Up Action
100
Kc
PB STONE & WEBSTER
Proportional Control
Effect of Tuning Constant on Control Action
Kc=2.0
Kc=4.0
Kc=6.0
Kc=8.0
Kc=10.0
Process
Variable
Setpoint
Input
Disturbance
+4%
+3%
+2%
+1%
Error 0 SP
-1%
-2%
+3
+2
+1
OP% 0
-1
Time
STONE & WEBSTER
Proportional Control Example
a)T = 0: E = +2
Controller Output
OP
Time
• Change in controller output proportional to change in error.
• Proportional-only controller stops moving when error is constant.
• Proportional-only controllers have steady-state offset.
Process
Variable
#2
Process
Variable
#1
Controller
Output
0 1 2 3 4 5 6 7 8
Time STONE & WEBSTER
Proportional Control - Dead Time
Process Variable #1
Dead Time = 0.0
Input Disturbance at Time T=0
PV #1 SP
Low Kc
PV #1 SP
Average Kc
PV #1 SP
High Kc
Input
Disturbance
0 1 2 3 4 5 6 7
STONE & WEBSTER
Proportional Control - Dead Time
Process Variable #3
Dead Time = 2.0
Input Disturbance at Time T=0
PV #3 Low Kc
SP
PV #3 SP
Avg Kc
PV #3 High Kc
SP
Input
Disturbance
0 1 2 3 4 5 6 7 8
Time
Question: Why does PV #3 tend to oscillate
as the controller gain is increased? STONE & WEBSTER
Objectives of Integral Control
Setpoint
1
TI
R
STONE & WEBSTER
Integral Control
Error = SP-PV (% Scale)
PV
Input
Disturbance
OP
Time
+2%
+1%
ERROR 0
-1%
-2%
+20
+16
+12
+8
OP% +4
0
0 1 2 3 4 5 6 7
TIME
Question: The process variable changes direction at T=3 and begins to return to setpoint. Why does the controller output continue to increase?
TI
Kc Controller Gain
TI Integral (Reset) Time
Both Both
Proportional
Prop. Action
Action
PV
Controller
Output
Input
Disturbance
• Eliminate Swinging
FC
PV (PV x 0.632) PV
(% Scale)
Output
%
1 2
Kc = x Controller Gain
Kp 2 3
[PB = Proportional Band = 100/Kc]
TI = + (0.5)
Tuning
Reset Time (Minutes)
Formula
1
R = = Re peats/ Min
TI
TC
TC
Slower
Fast
TC
Slowest
STONE & WEBSTER
Controller Tuning - Temperature Controllers
• Use Same Response Test and Tuning Formula as Flow Controller
• Allow Response Test to Run to Completion
(Sometimes more than 1/2 Hour for Columns)
• Use Trend System for Additional Data
PV
20 40 60 80 100 120
Time (Minutes)
STONE & WEBSTER
Controller Tuning - Temperature Controllers
Bypass Controllers
• Fastest of all Temperature Controllers
• Can be One or Two-Valve System
• Rangeability and Windup can be Problems
1)
TC
2)
TC
a) b)
LC LC
c) d)
BFW
PC
STM DRUM
LC
LC
Setpoint Change
A) Flow Controller B) Level Controller
SP
SP
PV
PV
OP
OP
Time Time
STONE & WEBSTER
Controller Tuning Level Controller
1 1
Kc Speed Factor
Kr 2
Speed Factor 1
<0.5
SLOPE: LEVEL
LEVEL MINUTE
CONTROLLER
OUTPUT
0 5 10 15 20 25 30
PROCESS GAIN: KR = LEVEL
MINUTE
CTR . OUTPUT STONE & WEBSTER
Effect of Magnitude of Inflow Disturbance
SLOPE OF OUTFLOW = 2 / 1 = 2
II
TWO UNIT INFLOW SLOPE OF OUTFLOW
=2/2=1
DISTURBANCE INFLOW DISTURBANCE
FLOW
OUTFLOW
HIGH LIMIT
HIGH LIMIT
ONE UNIT INFLOW 70 %
DISTURBANCE
OUTFLOW
TIME
STONE & WEBSTER
Level Control Tuning, Example Problem
FT
26.0 tons / hr
9700 mm, T - T
0 tons / hr
1 1
Kc Speed Factor
Kr 2 1
0.5< Speed Factor <0.8
STONE & WEBSTER
Cascade Control
• Why Use Cascade Control?
• To Reject Measurable Disturbances That Have Faster
Dynamics Than The Primary Controller
EXAMPLE
LC
PI
FC
A.) B.)
PRIMARY
(MASTER)
LC
SECONDARY
(SLAVE)
FC
TC
FC
FUEL
Requirements
FC TI
FEED
FC FC
FUEL
AIR (DEPENDENT)
(INDEPENDENT)
MANIPULATED CONTROLED
VARIABLES VARIABLES
PROCESS TEMPERATURE
AIR FLOW
EXCESS OXYGEN
PROCESS EXCESS
TEMP. OXYGEN
FC TI
HOT
FEED
FC
COLD
FEED
FC FC
FUEL
AIR
(DEPENDENT)
(INDEPENDENT) CONTROLED
MANIPULATED VARIABLES
VARIABLES
OUTLET TEMPERATURE
FUEL FLOW FLUE GAS EXCESS O2
AIR FLOW
HOT FEED FLOW TOTAL FEED
STONE & WEBSTER
COLD FEED FLOW
Constrained System
AI
O2
TI TI
FC
FEED
FC FC
FUEL
AIR DEGREES OF FREEDOM =
(INDEPENDENT) (DEPENDENT)
MANIPULATED CONTROLED
VARIABLES VARIABLES
FUEL FLOW PROCESS OUTLET TEMPERATURE
AIR FLOW FLUE GAS EXCESS O2
TUBE METAL TEMPERATURE
STONE & WEBSTER
Multivariable Controller Calculation
• Calculation of Current Error
Ej = (SP-PV) j for Each Controlled Variable (j)
• Calculation of Predicted Future Error
Ej (Future)
• Flow Controllers
• Temperature Controllers
• Level Controllers
• Pressure Controllers
• Kc ~ 0.5 / Kp
• Reset time depends on system
inventory
– About 2 - 3 min for once through
exchanger
– About 5 - 7 min for tower bottoms
– About 10 min for large recirculated
system