31
Linear Control Systems Lectures #5 - PID Controller Guillaume Drion Academic year 2018-2019 1

Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Linear Control Systems Lectures #5 - PID Controller

Guillaume Drion Academic year 2018-2019

1

Page 2: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Outline

PID controller: general form

Effects of the proportional, integral and derivative actions

PID tuning

Integrator windup and setpoint weighting

2

Page 3: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

A simple controller to control complex systems: PID

Closing the loop: the controller signal enters in the input

SYSTEMInput Output

CONTROLLER

Classical controller: Proportional-Integral-Derivative (PID)where is an error measure between a reference and the output of the system.

3

Page 4: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

The classical controller: PID controller

PID stands for Proportional-Integral-Derivative.

4

Page 5: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

The classical controller: PID controller

Proportional term: considers the current value of the error .

5

Page 6: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

The classical controller: PID controller

Integral term: considers the past values of the error .

6

Page 7: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

The classical controller: PID controller

Derivative term: “predicts” the future values of the error .

7

Page 8: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

The classical controller: PID controller

Derivative term: “predicts” the future values of the error .

8

!! Most PID controllers do not use derivative action !!

Page 9: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

PID controller design: shaping the feedback gains

Controller design: shaping the loop gains to improve the static and dynamic performances of the controller.

9

Page 10: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Two types of PID controllers

Controller design: shaping the loop gains to improve the static and dynamic performances of the controller.

10

In (a), P, I and D act on control error. In (b), I acts on control error, and P and D act on systems output.

Page 11: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Outline

PID controller: general form

Effects of the proportional, integral and derivative actions

PID tuning

Integrator windup and setpoint weighting

11

Page 12: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

PID controller with error feedback

The two forms encountered in control systems:

12

Ti = integral time constant, Td = derivative time constant.

Page 13: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

PID controller design: pure proportional feedback

Pure proportional feedback: steady-state error! Indeed:

13

For a pure proportional feedback at steady-state, the error is given by

The error goes to zero as kp goes to infinity, but increasing kp will eventually destabilize the closed-loop system (gain margin).

Page 14: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

PID controller design: pure proportional feedback

Pure proportional feedback: steady-state error! Indeed:

14

For a pure proportional feedback at steady-state, the error is given by

To avoid steady-state error, we can use a feedforward term:

with

uff us called reset in the PID literature, and has to be adjusted manually.

Page 15: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

PID controller design: derivative action

Derivative action: predictive and anticipatory action.

15

If is increased, system responses is damped. But derivative action amplifies high frequencies (hence reduces noise rejection). kd

Derivative action should be used with a filter (= lead compensator):

Cd(s) =kds

1 + sTf

Page 16: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

PID controller design: integral action

Integral action: no steady-state error.

16

Page 17: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

PID controller design

17

Page 18: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Outline

PID controller: general form

Effects of the proportional, integral and derivative actions

PID tuning

Integrator windup and setpoint weighting

18

Page 19: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Ziegler-Nichol’s tuning

Feedback gains are extracted from the dynamical response of the open-loop process.

Two methods: a time-domain method and a frequency-domain method

19

Page 20: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Ziegler-Nichol’s tuning - time-domain method

Feedback gains are extracted from the step response of the process.

20

is an approximation of the time delay of the system. is the steepest slope of the step response.⌧a/⌧

Page 21: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Ziegler-Nichol’s tuning - frequency-domain method

Start with zero gain, and increase proportional gain until systems start to oscillate.

= critical proportional gain, = period of oscillation, .

21

!c =2⇡

TcTckc

Page 22: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Ziegler-Nichol’s tuning - Improvements

Time-domain method: characterize the step response by , and in the model

22

T⌧K

Page 23: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Outline

PID controller: general form

Effects of the proportional, integral and derivative actions

PID tuning

Integrator windup and setpoint weighting

23

Page 24: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Integrator windup

If the control variable saturates (i.e. reaches the actuator limits), there will be a residual error that will be continuously integrated by the controller. The integral term will build up, and eventually become very large.

24

The control signal will then remain saturated even when the error changes, and it may take a long time before the integrator and the controller output come inside the saturation range.

Integrator windup

Page 25: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Integrator windup

25

Page 26: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Anti-windup

Anti-windup: avoiding error integration while in saturation

26

Page 27: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Integrator windup

27

Page 28: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Integrator windup

If the control variable saturates (i.e. reaches the actuator limits), there will be a residual error that will be continuously integrated by the controller. The integral term will build up, and eventually become very large.

28

Page 29: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Setpoint weighting

When there is an abrupt change in the reference, the proportional and derivative actions can become very big and lead to a large initial peak.

29

To reduce this peak, we can only “show a fraction of the reference” to the proportional and derivative controllers:

Setpoint (or reference) weight ( ) Setpoint (or reference) weight ( )

No setpoint weight on the integral action! This would lead to systematic steady-state error.

2 [0, 1] 2 [0, 1]

Page 30: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

Setpoint weighting

30

Page 31: Linear Control Systems Lectures #5 - PID Controllerguilldrion/Files/SYST0003-2018-19-Lectu… · PID controller design: derivative action Derivative action: predictive and anticipatory

The classical controller: PID controller

PID stands for Proportional-Integral-Derivative.

31