pid controller design,tuning and troubleshooting
DESCRIPTION
Lecture notes on how to design, tune and trouble shoot a proportion integral derivative controller.TRANSCRIPT
![Page 1: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/1.jpg)
PID Controller Design, Tuning and Troubleshooting
![Page 2: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/2.jpg)
Disturbance responses for a close loop system
Disturbance responses for nine combinations of the controller gain and integral time for a first order + time delay simple close loop system.
Aggressive response
Aggr
essiv
e re
spon
se
![Page 3: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/3.jpg)
Performance criteria for closed-loop systemsIdeal performance criteria
β’ The close loop system MUST be stableβ’ Effect of disturbances are minimized,
providing good disturbance rejection.β’ Rapid and smooth response to the set
point changesβ’ Steady state error (offset) is eliminatedβ’ No excessive controlβ’ Control is robust. Insensitive to changes in
process conditions and to inaccuracies in the process model.
Performance
Robustness
![Page 4: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/4.jpg)
Performance criteria for closed-loop systemsPerformanc
e Robust
Kc -> lowI -> large
Reasonable degree of model inaccuracy
Wide range of conditions
Smooth responses
Rapid response to changes
![Page 5: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/5.jpg)
PID Controller settings
Techniques
β’ Direct Synthesis method (DS).β’ Internal Model Control method
(IMC).β’ Controller tuning relationsβ’ Frequency response techniquesβ’ Computer simulationβ’ On-line tuning after control system is
installed.
Computer simulation
![Page 6: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/6.jpg)
Model Based Design MethodsDirect Synthesis Method π
π π π=
πΎππΊππΊπ£πΊπ
1+πΊππΊππΊπ£πΊπ
πΊβπΊππΊπ£πΊπ πΊπ=πΎπ
ππ π π
=πΊππΊ1+πΊππΊ
What is ?
πΊπ=1πΊ ( π /π π π
1βπ /π π π)
![Page 7: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/7.jpg)
Model Based Design Methods
Lets see some options for
πΊπ=1πΊ ( π /π π π
1βπ /π π π)
A desired transfer function is used to make the problem simpler.
πΊπ=1~πΊ ( (π /π π π )π
1β (π /π π π )π )
( ππ π π )π=
1ππ π +1
πΊπ=1~πΊ
1ππ π is the desired closed-loop time constant
Direct Synthesis Method
![Page 8: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/8.jpg)
Model Based Design Methods
Lest see some options for
( ππ π π )π=
πβππ ππ π +1
πΊπ=1~πΊ
πβπ π
ππ π +1βπβπ π is a term to include the time
delay
Direct Synthesis Method
πΊπ=1~πΊ
πβπ π
(ππ+π ) π
![Page 9: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/9.jpg)
Model Based Design MethodsDirect Synthesis Method
Lets derive controllers for two important process models
First Order Plus Time Delay Model
πΊ=~πΊ=
πΎπβππ π π +1
πΊπ=1~πΊ
πβπ π
(ππ+π ) π
πΊπ=1
πΎ πβπ π π π +1
πβπ π
(ππ+π )π
πΊπ=πΎ π(1+ 1ππΌ π )
πΎ π=1πΎ
ππ+ππ
,ππ=π
![Page 10: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/10.jpg)
Model Based Design MethodsDirect Synthesis Method
Lets derive controllers for two important process models
Second Order Plus Time Delay Model
πΊ=~πΊ=
πΎπβπ π
(π1π +1 ) (π2π +1 )
πΊπ=1~πΊ
πβπ π
(ππ+π ) π
πΊπ=πΎ π (1+ 1π πΌ π
+ππ·π )
πΎ π=1πΎπ1+π2π+ππ
π πΌ=π1+π 2 ππ·=π1π2π1+π2
![Page 11: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/11.jpg)
Model Based Design MethodsDirect Synthesis Method
Example: Use DS method to calculate the PID controller settings for the process. Consider three values of the desired closed loop time constant
πΊπ=πΎ π(1+ 1π πΌ π
+ππ·π )
πΎ π=1πΎπ1+π2π+ππ
π πΌ=π1+π 2
ππ·=π1π2π1+π2
πΊ=2πβ π
(10π +1 ) (5 π +1 )πΊβπΊππΊπ£πΊπ
πΊπ=1~πΊ
πβπ π
(ππ+π ) π
![Page 12: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/12.jpg)
Model Based Design MethodsDirect Synthesis Method
Example: Use DS method to calculate the PID controller settings for the process. Consider three values of the desired closed loop time constant
πΊ=2πβ π
(10π +1 ) (5 π +1 )
3.75 1.88 0.682
15 (1/15)* 15 (1/15)* 15 (1/15)*
3.33 3.33 3.33
=3.75=1.88
=0.682
![Page 13: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/13.jpg)
Model Based Design MethodsDirect Synthesis Method : The problem with this method is that we need to guess
If the system can be simulated by then
1. and
![Page 14: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/14.jpg)
Model Based Design Methods
πΊπ=πΎ π (1+ 1π πΌ π
+ππ·π )
![Page 15: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/15.jpg)
ON-Line Controller TuningZiegler and Nichols (1942). Paper βContinuous cycling methodβ this is a trial and error method
1. After process reaches steady state, eliminate the integral and derivative control actions. and (large value).
2. Set to a small value. Then set the controller in automatic.
3. Introduce an small set point change. Gradually increase until a sustained oscillation with constant amplitude occurs. This value of is called Ultimate gain. The period of the oscillation is the ultimate period,
4. Use the table to calculate 5. Evaluate the system by introducing a small set point
change. You may need fine tunning. Lower
Zeigler-NicholsP 0.5 --- ---
PI 0.45 ---
PID 0.6
πΊπΆ=πΎ π (1+ 1π πΌ
1π +π π·π )
![Page 16: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/16.jpg)
ON-Line Controller TuningUse the Ziegler and Nichols method to tune the following system
![Page 17: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/17.jpg)
ON-Line Controller TuningUse the Ziegler and Nichols method to tune the following system
1. After process reaches steady state, eliminate the integral and derivative control actions.
![Page 18: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/18.jpg)
ON-Line Controller TuningUse the Ziegler and Nichols method to tune the following system
2. Set to a small value. Then set the controller in automatic.
3. Introduce an small set point change. Gradually increase until a sustained oscillation with constant amplitude occurs. This value of is called Ultimate gain. The period of the oscillation is the ultimate period,
.0
πΎ ππ’=10
![Page 19: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/19.jpg)
ON-Line Controller TuningUse the Ziegler and Nichols method to tune the following system
4. Use the table to calculate
Zeigler-NicholsP 0.5 --- ---
PI 0.45 ---
PID 0.6
π πΌ=0.5ππ·=1/8
πΊπΆ=πΎ π (1+ 1π πΌ
1π +π π·π )
![Page 20: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/20.jpg)
ON-Line Controller TuningUse the Ziegler and Nichols method to tune the following system
5. Tune the controller trial and error if it is necessary
πΊπΆ=πΎ π (1+ 1π πΌ
1π +π π·π )
![Page 21: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/21.jpg)
ON-Line Controller TuningDisadvantages
1. It is time consuming.2. There are many applications where this system do not
work as expected. In case of a chemical reaction it may cause a βrunawayβ.
3. It is not applicable to unstable systems.4. For first and second order models the ultimate gain do
not exist.
![Page 22: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/22.jpg)
ON-Line Controller TuningProcess Reaction Curve Method
1. After process reaches steady state2. Place the system in manual mode3. Adjust the controller out put signal to the values that
were working in automatic mode.4. Wait for steady state5. Introduce an step change in set point.6. Record the response of the variable as shown in the
plot.7. Return the controller to the initial values.8. Calculate the new set up of the parameters according
to the table.
Zeigler-NicholsP --- ---
PI ---
PID 0.5
![Page 23: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/23.jpg)
Model Based Design MethodsTuning with Matlab
Example:
πΊ=2πβ π
(10π +1 ) (5 π +1 )
![Page 24: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/24.jpg)
Model Based Design MethodsTuning with Matlab
Example:
πΊ=2πβ π
(10π +1 ) (5 π +1 )
![Page 25: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/25.jpg)
Model Based Design MethodsTuning with Matlab
Example:
πΊ=2πβ π
(10π +1 ) (5 π +1 )
![Page 26: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/26.jpg)
WorkshopNow you have time to solve the following question
![Page 27: PID Controller Design,Tuning and Troubleshooting](https://reader038.vdocuments.us/reader038/viewer/2022102612/563db83b550346aa9a91cc18/html5/thumbnails/27.jpg)
WorkshopUse the Ziegler and Nichols method and the curve response method to tune the proportional, proportional integral and PID controlled systems indicated below. Compare your results with the tuning results calculated by using Matlab.
πΊ=2
(π +2 ) (0.18 π 2+0.6 π +1 )
πΊ=2πβ 2π
(10π +1 ) (5 π +1 )