10 Tips for Tuning of Pid Looops

38
Technology Training that Works www.idc-online.com/slideshare 10 Tips for: Tuning of PID Loops By Steve Mackay

description

10 Tips for Tuning of Pid Looops

Transcript of 10 Tips for Tuning of Pid Looops

Page 1: 10 Tips for Tuning of Pid Looops

Technology Training that Workswww.idc-online.com/slideshare

10 Tips for:

Tuning of PID LoopsBy

Steve Mackay

Page 2: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Welcome to this webinarThere are at least 3 ways to interact with your presenter today:1. Use the Text tab, near bottom left of your screen.

Type the message in the space next to the “Send” button, then enter or click Send. (Ensure “All” is selected in the drop-down menu under the typing area)

2. Use the Emoticons selection in the text window – choose an emoticon then click send or enter.

3. Talk! Click the Push To Talk button. The button will change to yellow when you are queued, then green to show that your microphone is live.Remember to click it again when you have spoken

This 45 minute session will commence shortly!

RH

Page 3: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Objectives

• Concept of tuning • Ziegler Nichols classical rules • Practical closed and open loop strategies • Cascade loops • Dead time issues

Page 4: 10 Tips for Tuning of Pid Looops

Technology Training that Workswww.idc-online.com/slideshare

Concept of Tuning

Page 5: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

1 - Minimize Integral of error

Objectives of Tuning (1)

Page 6: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

2 - Minimize Amplitude of error squared

Objectives of Tuning (2)

Page 7: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

3 - Minimize wear and tear

4 - No overshoot at Start Up

5 - Minimize effect of known disturbances

Other Aspects of Tuning (3,4,5)

Page 8: 10 Tips for Tuning of Pid Looops

Technology Training that Workswww.idc-online.com/slideshare

Ziegler Nichols and others

Page 9: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Loop Controller and Process

Page 10: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

1. Put controller in manual mode

2. Make a step change to the OP value

3. Observe Reaction Curve

4. Calculate timing constants

Reaction curve

Steps of Open Loop Tuning (Reaction Curve)

Page 11: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

P - Control

PI - Control

PID - Control

OP

N L%

0 9

3

. %

int

OPN L

T L

12

20 5

. %

.int

OPN L

T LT Lder

KC

KC

KC

Reaction Curve Calculations

Page 12: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

• Find critical value of K for continuous oscillations• Do not use I or D - control• Observe critical frequency for 180° phase shift• Stabilize loop by reducing K and ensure that I & D• Control still gives a phase lead

Continuous Cycling - Ziegler & Nichols

Page 13: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

P-only for Continuous Cycling Method

Page 14: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

1. Put controller in P - control only2. P - control on ERR = (SP - PV)3. Controller in Auto4. Step change to SP5. Double value of K until continuous cycling6. Calculate tuning constants

Continuous Cycling Method

Page 15: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

P - Control

PI - Control

PID - Control

K KC U 0 5.

K K

T PC U

U

0 45

12

.

.int

K K

T P

T P

C U

U

derU

0 6

2

8

.

int

Calculation of Tuning Constants

Page 16: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

First Order Lag

Page 17: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

First Order Lag Response Curve

Page 18: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Variation on continuous cycling ....to avoid danger to process ...but damped oscillations are acceptablerequires some subjective evaluation

Damped Cycling Method

Page 19: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Damped Oscillation Decay Ratio

Page 20: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

1. Put controller in P - control2. P - control on ERR = (SP - PV) 3. Controller into Auto4. Double K until oscillations.5. Terminate immediately6. Calculate tuning constants

Steps of Damped Cycling Method

Estimate damping of oscillationConvert P into Pu using diagram

Page 21: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Convert P into Pu using diagram

Estimate damping of oscillation

(d) ... 0.5 acceptable

Page 22: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

PI - Control

PID - Control

T

P Rd dint .

12

R Ppd

u

T

P R

TP R

d d

derd d

int

2

8

K determined by good judgement.....

Calculate Tuning Constants

Page 23: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Tuning for NO Overshoot on Start-up

Variation of continuous cycling method

When no overshoot even for start-up is permitted (manual auto)

Page 24: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Same as for continuous cyclingFormula for PID – control:

K K

T P

T P

C U

U

derU

0 2

3

2

.

int

Formula for NO Overshoot on Start-up

Page 25: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Variation of continuous cycling method

No overshoot during normal modulating controlonly

Tuning for SOME Overshoot on Start-up

Page 26: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Same as for continuous cyclingFormula for PID - control

K K

T P

T P

C U

U

derU

033

2

3

.

int

Formula for Some Overshoot on Start-up

Page 27: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Cascade Control

Page 28: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Single Loop Temperature Control

Page 29: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Two Controller Basic Cascade Control

Page 30: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Tuning of Cascade Loops (cont…)

• Cascade Control - Secondary Controllers– Mainly flow controller– No D - control as mainly stable– K < 1

• Cascade Control - Primary Controllers– Mainly PID controller– Careful stability considerations

Page 31: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Long Process Deadtime in Closed Loop Control & The

Smith Predictor

Page 32: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Process Deadtime

• Difficult problem to overcome long deadtime in feedback control loop

• Especially when deadtime more than 20% of total time taken for PV to settle to its new value after last setpoint change

Page 33: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Example of Process Deadtime

Illustration of a long conveyor system giving an excessive deadtime to the control loop

Page 34: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Overcoming Process Deadtime

• Depends on operating requirements of process

• Easiest solution: de-tune controller to slower response rate so that controller will not over compensate unless deadtime excessively long

• Integral mode of controller very sensitive to deadtime since during period of PV inactivity, integrator ramps output

Page 35: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Level ControlMaintain flow as constant

as possible to downstream equipment

Medium response

Tune as slowly as possible without overfilling or emptyingthe tank

Choice of Tuning Constant (1)

Page 36: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Flow ControlMaintain constant flowAim for fast responseSmall process lag in systemTune for fast as possible

response

Choice of Tuning Constants (2)

Page 37: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Temperature ControlMaintain a steady temperatureMajor process lag and dead time in the systemTune as quickly as possible without causing

oscillations

TCPV

SP

T2

O utlet

Inlet

Choice of Tuning Constants (3)

Page 38: 10 Tips for Tuning of Pid Looops

www.eit.edu.au Technology Training that Workswww.idc-online.com/slideshare

Thank You For Your Interest

If you are interested in further training, please visit:

IDC Technologies Short Courses:Two-day practical courses available to the public:

http://www.idc-online.com/slideshare