pid controller design,tuning and troubleshooting

27
PID Controller Design, Tuning and Troubleshooting

Upload: mbalireitu

Post on 10-Feb-2016

44 views

Category:

Documents


7 download

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

PID Controller Design, Tuning and Troubleshooting

Page 2: PID Controller Design,Tuning and Troubleshooting

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

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

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

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

Model Based Design MethodsDirect Synthesis Method π‘Œ

π‘Œ 𝑠𝑝=

πΎπ‘šπΊπ‘πΊπ‘£πΊπ‘

1+πΊπ‘šπΊπ‘πΊπ‘£πΊπ‘

πΊβ‰œπΊπ‘πΊπ‘£πΊπ‘ πΊπ‘š=πΎπ‘š

π‘Œπ‘Œ 𝑠𝑝

=𝐺𝑐𝐺1+𝐺𝑐𝐺

What is ?

𝐺𝑐=1𝐺 ( π‘Œ /π‘Œ 𝑠𝑝

1βˆ’π‘Œ /π‘Œ 𝑠𝑝)

Page 7: PID Controller Design,Tuning and Troubleshooting

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

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

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

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

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

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

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

Model Based Design Methods

𝐺𝑐=𝐾 𝑐 (1+ 1𝜏 𝐼 𝑠

+πœπ·π‘ )

Page 15: PID Controller Design,Tuning and Troubleshooting

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

ON-Line Controller TuningUse the Ziegler and Nichols method to tune the following system

Page 17: PID Controller Design,Tuning and Troubleshooting

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

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

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

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

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

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

Model Based Design MethodsTuning with Matlab

Example:

𝐺=2π‘’βˆ’ 𝑠

(10𝑠+1 ) (5 𝑠+1 )

Page 24: PID Controller Design,Tuning and Troubleshooting

Model Based Design MethodsTuning with Matlab

Example:

𝐺=2π‘’βˆ’ 𝑠

(10𝑠+1 ) (5 𝑠+1 )

Page 25: PID Controller Design,Tuning and Troubleshooting

Model Based Design MethodsTuning with Matlab

Example:

𝐺=2π‘’βˆ’ 𝑠

(10𝑠+1 ) (5 𝑠+1 )

Page 26: PID Controller Design,Tuning and Troubleshooting

WorkshopNow you have time to solve the following question

Page 27: PID Controller Design,Tuning and Troubleshooting

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 )