Ch.16 Controller Design
Ch.16 Controller Design
Control System Technology 1 Controller Design Control System Technology 2 Controller Design
Objectives
To give an entry-level ability to discuss controller design, tune a
controller, complete a computer-aided Bode design of a controller,
and design simple compensation networks
After completing this chapter, you will be able to
[Link] the ultimate cycle method for tuning a controller
[Link] the process reaction method for tuning a controller
16. Controller Design [Link] self-tuning adaptive controllers
[Link] a computer-aided Bode design of a 𝑃𝐼𝐷 controller
[Link] compensation networks that will improve the response
of the control system
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
Control System Technology 3 Controller Design Control System Technology 4 Controller Design
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
Control System Technology 5 Controller Design Control System Technology 6 Controller Design
𝐾𝐷 𝑠 𝐾𝐷 𝑠
Closed-loop feedback control using a PID controller Closed-loop feedback control using a PID controller
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
1
12/11/2021
Control System Technology 7 Controller Design Control System Technology 8 Controller Design
measured value, %
portion of curve
oscillation 𝑃𝑢 = 12𝑚𝑖𝑛
effective delay
∆𝐶𝑚
Then 𝐾𝑃 = 0.6𝐺𝑢 = 0.6 × 2.2 = 1.32 in minutes
2.0 2.0
𝐾𝐼 = = = 0.167𝑚𝑖𝑛−1 𝐿 ∆𝑡
𝑃𝑢 12 original value
time, minute 𝑡
𝑃𝑢 12 step input output response
𝐾𝐷 = = = 1.5𝑚𝑖𝑛
8 8 A first-order lag plus dead-time model of the process is derived from the graph with the
Proportional Integral Derivative Controller: 𝐾𝑃 = 0.6𝐺𝑢 , 𝐾𝐼 = 2.0/𝑃𝑢, 𝐾𝐷 = 𝑃𝑢 /8 dead time equal to 𝐿 and the first-order time constant equal to ∆𝑡
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
Control System Technology 9 Controller Design Control System Technology 10 Controller Design
Control System Technology 11 Controller Design Control System Technology 12 Controller Design
2
12/11/2021
Control System Technology 13 Controller Design Control System Technology 14 Controller Design
measured value, %
portion of curve reaction curve → 𝑃𝐼𝐷 values
maintain the quarter amplitude decay criteria for all are determined
effective delay
production rates, also ∆𝐶𝑚
in minutes Some algorithms also provide
• make an independent adjustment in the gain based on the 𝐿 a continuous update: process
value of the setpoint original value model is continuously updated,
∆𝑡 𝑡
time, minute then 𝑃𝐼𝐷 values accordingly
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
Control System Technology 15 Controller Design Control System Technology 16 Controller Design
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
Control System Technology 17 Controller Design Control System Technology 18 Controller Design
3
12/11/2021
Control System Technology 19 Controller Design Control System Technology 20 Controller Design
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
Control System Technology 21 Controller Design Control System Technology 22 Controller Design
Control System Technology 23 Controller Design Control System Technology 24 Controller Design
4
12/11/2021
Control System Technology 25 Controller Design Control System Technology 26 Controller Design
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
Control System Technology 27 Controller Design Control System Technology 28 Controller Design
blending and
concentration
heating tank
analyzer
(mixer not shown)
𝐿2
temperature
𝐿
controller
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
Control System Technology 29 Controller Design Control System Technology 30 Controller Design
§[Link] Design of A Three-Loop Control System §[Link] Design of A Three-Loop Control System
Concentration control loop: manipulate the syrup input flow rate to Level control loop: manipulate the water input flow rate to maintain
maintain the desired concentration of syrup in the finished product the level of liquid in the blending tank
syrup level syrup level
controller controller
level level
water sensor water sensor
𝐿2
temperature temperature
𝐿 𝐿
controller controller
The blending and heating process The blending and heating process
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
5
12/11/2021
Control System Technology 31 Controller Design Control System Technology 32 Controller Design
§[Link] Design of A Three-Loop Control System §[Link] Design of A Three-Loop Control System
Temperature control loop: manipulate the flow rate of the heating Blending and Heating Process Specifications
fluid to maintain the temperature of the liquid in the blending tank [Link] [Link] Measuring
Production rate: 2.5 × 10−4 𝑚3/𝑠 Transmitter
Composition: 900 water + 10% syrup Model: 1𝑠𝑡 order lag + dead time
syrup level
controller Density, 𝜌: 1005𝑘𝑔/𝑚3 Time constant, 𝜏1 : 200𝑠
Viscosity, 𝜇: 0.1𝑃𝑎. 𝑠 Dead-time delay, 𝑡𝑑1: 15𝑠
level Specific heat, 𝐻ℎ : 4170𝐽/𝑘𝑔 0𝐾 Gain: 1 (%output/%input)
water sensor
[Link] Tank [Link] Measuring Transmitter
heating fluid concentration Diameter, 𝐷: 0.75𝑚 Model: 1𝑠𝑡 order lag + dead time
controller
Height: 1𝑚 Time constant, 𝜏2 : 2𝑠
blending and
Operating level, ℎ: 0.75𝑚 Dead-time delay, 𝑡𝑑2: 0.5𝑠
concentration
heating tank
analyzer
Product temp.: 600 𝐶 Gain: 1 (%output/%input)
(mixer not shown)
Heating fluid temp.: 1000 𝐶
Film coef., ℎ𝑓 = ℎ𝑜 : 1349𝑊/𝑚2 0𝐾
𝐿2
temperature
[Link] Measuring
𝐿
controller Outlet pipe diameter: 0.0351𝑚 Transmitter
Distance from outlet Model: Over-damped 2𝑛𝑑 order lag + dead time
product to bottling line
Temperature to temp. probe: 0.26𝑚 Time constant, 𝜏3 : 50𝑠
measuring transmitter 𝜏4 : 240𝑠
Wall thickness: 0.01𝑚
The blending and heating process Wall material: steel Gain: 1 (%output/%input)
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
Control System Technology 33 Controller Design Control System Technology 34 Controller Design
§[Link] Design of A Three-Loop Control System §[Link] Design of A Three-Loop Control System
Blending and Heating Process Specifications - Ex.16.4 Design a PID controller for the concentration control
[Link] Valves [Link] Measuring loop in the blending (water and syrup) and heating process
Model: underdamped 2𝑛𝑑order lag Model (𝜏5 ): 1𝑠𝑡 order lag
Water valve, 𝜔01 : 10.2𝑟𝑎𝑑/𝑠 Gain (𝐺): 1 (%output/%input) Solution
ζ1: 0.75
Gain: 5 (%output/%input) [Link] Process
[Link] the concentration process time constant, 𝜏5
Syrup valve, 𝜔02 : 2.4𝑟𝑎𝑑/𝑠 Model: Integral (nonregulating) Liquid volume 𝑉 = area × operating height
ζ2 : 0.90 𝐹𝑆𝑖𝑛 : 0.01𝑚3 /𝑠
Gain: 31.25 (%output/%input) 𝐹𝑆𝑜𝑢𝑡 : 1𝑚 𝜋𝐷2 ℎ 𝜋 × 0.752 × 0.75
21.6𝑟𝑎𝑑/𝑠
= = = 0.3313𝑚3
Heating valve,𝜔03 : 4 4
ζ3 : 0.8 [Link] Process −4 3
Gain: 8 (%output/%input) Model (𝜏6 ,𝑡𝑑3): 1𝑠𝑡 order lag Liquid flow rate 𝑄 = 2.5 × 10 𝑚 /𝑠
Gain (𝐺): 1 (%output/%input) 𝑉 0.3313
𝜏5 = = = 1325𝑠
𝑄 2.5 × 10−4
[Link] the syrup control valve TF coefficients
2ζ2 2 × 0.9 1 1
𝐵 1 = = = 0.75 𝐵 2 = 2 = = 0.1736
𝜔02 2.4 𝜔02 2.42
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
Control System Technology 35 Controller Design Control System Technology 36 Controller Design
§[Link] Design of A Three-Loop Control System §[Link] Design of A Three-Loop Control System
[Link] the overall TF of the measuring transmitter, - Ex.16.5 Design a PID controller for the temperature control
process, and control valve loop in the blending and heating process
𝑒 −15𝑠 1 31.25 Solution
𝑇𝐹 = × ×
1 + 200𝑠 1 + 1325𝑠 1 + 0.75𝑠 + 0.1736𝑠 2 [Link] the thermal process time constant, 𝜏6
[Link]: This is the same TF as the blending system in Ex.16.3. Thermal resistance (from the program THERMRES)
The following summary was obtained from a run of DESIGN ℎ1 = ℎ0 = 1349𝑊/𝑚2 0𝐾
(see Ex.16.3)
𝜋𝐷2 𝐷 0.75
Design Summary 𝐴= + 𝜋𝐷ℎ = 𝜋𝐷 = 𝜋 × 0.75 × = 2.209𝑚2
Proportional gain: 1.85 4 4+ℎ 4 + 0.75
Integral action rate: 2000𝑠 −1 𝑥 = 0.01𝑚
Derivative action time constant: 106𝑠
Derivative limiter: 0.100 𝐾 = 45𝑊/𝑚 0𝐾
M (−180): −9.3𝑑𝐵 From THEMERES: 𝑅𝑇 = 7.718 × 10−4 0𝐾/𝑊
ANGLE (ODB): −1400
Gain margin: 9.3𝑑𝐵
Phase margin: 400
Frequency limit: 3 × 10−2𝑟𝑎𝑑/𝑠
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
6
12/11/2021
Control System Technology 37 Controller Design Control System Technology 38 Controller Design
§[Link] Design of A Three-Loop Control System §[Link] Design of A Three-Loop Control System
Thermal capacitance [Link] the overall TF of the measuring transmitter,
𝐶 = 𝑚𝐻ℎ process, and control valve
𝜌ℎ𝜋𝐷2 1005 × 0.75 × 𝜋 × 0.752 1
𝑚= = = 333𝑘𝑔 𝑇𝐹 = ×
4 4 1 + 290𝑠 + 12.000𝑠 2
𝐶 = 333 × 4170 = 1.389 × 106 𝐽/ 0𝐾 𝑒 −𝑠 8
×
𝜏6 = 𝑅𝐶 = 7.71 × 10−4 × 1.389 × 106 = 1070𝑠 1 + 1070𝑠 1 + 0.0741𝑠 + 0.00214𝑠 2
[Link] the thermal dead-time lag, 𝑡𝑑3 [Link] following summary was obtained from a run of DESIGN
Design Summary
𝑄 2.5 × 10−4 Proportional gain: 2.33
Outlet flow rate = 𝑈 = = = 0.258𝑚/𝑠 0.001𝑠 −1
𝐴 0.03512 𝜋/4 Integral action rate:
Derivative action time constant: 197𝑠
distance 0.26 Derivative limiter: 0.100
Dead time lag = 𝑡𝑑3 = = = 1𝑠
velocity 0.258 M (−180): −12.7𝑑𝐵
ANGLE (ODB): −1400
c. Determine the temperature measuring transmitter TF Gain margin: 12.7𝑑𝐵
2ζ3 2 × 0.8 1 1 Phase margin: 400
𝐵 1 = = = 0.0741 𝐵 2 = 2 = = 0.00214 Frequency limit: 1.6 × 10−2𝑟𝑎𝑑/𝑠
𝜔03 21.6 𝜔03 21.62
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
Control System Technology 39 Controller Design Control System Technology 40 Controller Design
§[Link] Design of A Three-Loop Control System §[Link] Design of A Three-Loop Control System
- Ex.16.6 Design a PID controller for the level control loop in the [Link] the overall TF of the measuring transmitter,
blending and heating process process, and control valve
Solution 𝑒 −0.5𝑠 1 5
𝑇𝐹 = × ×
[Link] the level process integral action time constant 1 + 2𝑠 442𝑠 1 + 0.147𝑠 + 0.00961𝑠 2
𝜋𝐷2 𝜋 × 0.752 [Link] following summary was obtained from a run of DESIGN
𝐴= = = 0.4418 Design Summary
4 4 Proportional gain: 74.4
𝐹𝑆𝑜𝑢𝑡 1 Integral action rate: 1𝑠 −1
𝑇1 = 𝐴 = 0.4418 = 442𝑠 Derivative action time constant: 2.43𝑠
𝐹𝑆𝑖𝑛 0.001
Derivative limiter: 0.100
[Link] the water control valve TF coefficients M (−180): −6.0𝑑𝐵
2ζ1 2 × 0.75 ANGLE (ODB): −134.80
𝐵 1 = = = 0.147 Gain margin: 6.0𝑑𝐵
𝜔01 10.2 Phase margin: 450
1 1 Frequency limit: 1.3𝑟𝑎𝑑/𝑠
𝐵 2 = 2 = = 0.00961
𝜔01 10.22
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
Control System Technology 41 Controller Design Control System Technology 42 Controller Design
7
12/11/2021
Control System Technology 43 Controller Design Control System Technology 44 Controller Design
Gain (dB)
Gain (dB)
Gain (dB)
Gain (dB)
Gain (dB)
Gain (dB)
Gain (dB)
20 20 −20 −20 20 20 −20 −20
0 0 −40 −40 0 0 −40 −40
0 90 0 0 0 90 0 0
phase phase phase phase phase phase
phase phase
−90 0 −90 −90 −90 0 −90 −90
0.1 1 10 1 1 0.1 1 10 1 1 0.1 1 10 1 1 0.1 1 10 1 1
𝑇1 𝑇1 𝑇1 𝑇𝑙𝑒𝑎𝑑 𝑇𝑙𝑎𝑔 𝑇𝑙𝑎𝑔 𝑇𝑙𝑎𝑔 𝑇𝑙𝑎𝑔 𝑇𝑙𝑎𝑔 𝑇𝑙𝑒𝑎𝑑 𝑇1 𝑇1 𝑇1 𝑇𝑙𝑒𝑎𝑑 𝑇𝑙𝑎𝑔 𝑇𝑙𝑎𝑔 𝑇𝑙𝑎𝑔 𝑇𝑙𝑎𝑔 𝑇𝑙𝑎𝑔 𝑇𝑙𝑒𝑎𝑑
An integration-lead A lead-lag A lag compensation A lag-lead An integration-lead A lead-lag A lag compensation A lag-lead
compensation networkcompensation network network compensation network compensation networkcompensation network network compensation network
Straight-line Bode diagrams of four compensation networks. Observe Straight-line Bode diagrams of four compensation networks. Observe
the similarity between network (a) and the integral mode, between network (b) the similarity between network (a) and the integral mode, between network (b)
and the derivative mode, and between network (c) and a low-pass filter and the derivative mode, and between network (c) and a low-pass filter
Control System Technology 45 Controller Design Control System Technology 46 Controller Design
Gain (dB)
Gain (dB)
Gain (dB)
Gain (dB)
Gain (dB)
Gain (dB)
Gain (dB)
20 20 −20 −20 20 20 −20 −20
0 0 −40 −40 0 0 −40 −40
0 90 0 0 0 90 0 0
phase phase phase phase phase phase
phase phase
−90 0 −90 −90 −90 0 −90 −90
0.1 1 10 1 1 0.1 1 10 1 1 0.1 1 10 1 1 0.1 1 10 1 1
𝑇1 𝑇1 𝑇1 𝑇𝑙𝑒𝑎𝑑 𝑇𝑙𝑎𝑔 𝑇𝑙𝑎𝑔 𝑇𝑙𝑎𝑔 𝑇𝑙𝑎𝑔 𝑇𝑙𝑎𝑔 𝑇𝑙𝑒𝑎𝑑 𝑇1 𝑇1 𝑇1 𝑇𝑙𝑒𝑎𝑑 𝑇𝑙𝑎𝑔 𝑇𝑙𝑎𝑔 𝑇𝑙𝑎𝑔 𝑇𝑙𝑎𝑔 𝑇𝑙𝑎𝑔 𝑇𝑙𝑒𝑎𝑑
An integration-lead A lead-lag A lag compensation A lag-lead An integration-lead A lead-lag A lag compensation A lag-lead
compensation networkcompensation network network compensation network compensation networkcompensation network network compensation network
Straight-line Bode diagrams of four compensation networks. Observe Straight-line Bode diagrams of four compensation networks. Observe
the similarity between network (a) and the integral mode, between network (b) the similarity between network (a) and the integral mode, between network (b)
and the derivative mode, and between network (c) and a low-pass filter and the derivative mode, and between network (c) and a low-pass filter
Control System Technology 47 Controller Design Control System Technology 48 Controller Design
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien