How To Improve PID

Post on 14-Jun-2015

3.551 views 2 download

Tags:

description

Presentation given during NIWeek 2008 about basics on PID and tips on how to improve it

Transcript of How To Improve PID

1

2

How to Improve your PID Controller

Javier Gutierrez

LabVIEW Product Marketing

3

Benefits of Advanced Control and Tuning

Model-based

control < 1%

Manual

control

PID is finePID needs

manual tuning

*Sources: Cybosoft and ExperTune

• A poorly tuned control valve costs additional $880/year*

• A bad pH loop incurred chemical waste of $50,000/month*

• A bad kiln temp loop cost $30,000/month*

4

Agenda

• What is PID?

• How to improve performance

Hardware considerations

Upgrade PID Algorithm

Advanced Controllers

• Conclusion

5

Agenda

• What is PID?

• How to improve performance

Hardware considerations

Upgrade PID Algorithm

Advanced Controllers

• Conclusion

6

• Set Point (SP) – Desired control point

• Output (OP) – Controller output

• Process Variable (PV) – Plant/process output

• Error = SP - PV

SP

OP

PV

error

What is PID

7

PID Parameters

• Proportional Drive to setpoint

Error → 0, OP → 0

“Steady-state error”

• Integral Eliminate steady state error

OP proportional to ∫ error

• Derivative Increase response rate

OP proportional to rate of change of error

8

System to control

9

PID Implementation Demo

10

PID Control – Pros and Cons

• Advantages

Proven

Easy to implement

• Disadvantages

Not easy to tune

Not suitable for all systems

• Backlash, friction, and so on

11

Agenda

• What is PID?

• How to improve performance

Hardware considerations

Upgrade PID Algorithm

Advanced Controllers

• Conclusion

12

How to program PID

Windows/Real Time

FPGA

Function Blocks

Control and Simulation

13

Benefits of Higher Loop Rates

14

PID Loop rates

600 Hz

25 kHz

100 kHz

1 MHz

15

Die Casting Machine

Copyright 2007 © EUROelectronics srl – ITALY -

The movement of the aluminium injection plunger controlled in a steady

closed loop at a speed varying from 0 up to 10 m/sec.

16

Agenda

• What is PID?

• How to improve performance

Hardware considerations

Improve PID Algorithm

Advanced Controllers

• Conclusion

17

Upgrade your PID

Disturbances

Non Linear

Time Variant

Feed-forward

Gain Scheduling

Adaptive PID

18

Feed-Forward

• Commonly used to compensate for a

measurable external disturbance before it affects

a controlled variable.

• e.g. product feed rate changes

19

Gain Scheduling

• Used to change gain on real-time depending on

OV.

• Bumpless transfers

20

Adaptive PID

• Mixed of On-Line system identification and

common PID control.

• Can handle time-variant systems

21

Agenda

• What is PID?

• How to improve performance

Hardware considerations

Upgrade PID Algorithm

Advanced Controllers

• Conclusion

22

Advanced Controllers

National Instruments

• Optimal Controllers (LQR, LQG)

• Model Predictive Control (MPC)

• Kalman Filters

• Fuzzy Logic

Third Party Partners

• Neural Networks

• Genetic Algorithms

• Model Free Adaptive

23

How to create an advanced Controller

• Datalogging

• System Identification

• Model Validation

Plant Modeling

• Design

• Simulation

Control Design• Deployment

• Test

Implementation

24

Temp Chamber - Experiment

25

Plant Modeling - Validation

26

MPC Control Design

27

MPC Control Prototype

28

Advanced Controllers

• Pros/Cons

29

Agenda

• What is PID?

• How to improve performance

Hardware considerations

Upgrade PID Algorithm

Advanced Controllers

• Conclusion

30

Conclusions

• PID

• Consider

Upgrading hardware

Enhance PID Algorithm

Upgrading Control Algorithm