entc 395 lecture 7a. today 4 pid control –overview –definitions –open loop response 4 example...

19
ENTC 395 Lecture 7a

Upload: jocelyn-ferguson

Post on 19-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

ENTC 395

Lecture 7a

Page 2: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

Today

PID control– Overview– Definitions– Open loop response

Example – SIMULINK implementation

Page 3: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

Reading

Last time Laplace TransformsAppendix F.1-F.4

Today: Handout - Control Theory

Next time: Handout - Control Theory

Page 4: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

Control Systems

Plant: A system to be controlled

Controller: Provides the excitation for the plant, controls the overall system behavior

Page 5: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

Controller: Inputs and Outputs

R: Desired operating point

Y: Actual operating point

e: Error signal = R-Y

u: Correction signal

Page 6: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

dt

tdeKdtteKteKtu DIp

)()()()(

PID Controllers

KP = Proportional gain

KI = Integral gain

KD = Derivative gain

Controller response may be a function of three components of the error signal

Page 7: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

PID Controller Transfer Function

KP = Proportional gain

KI = Integral gain

KD = Derivative gain

In s space the transfer function looks like this:

DIP sKKs

Kse

su

1

)(

)(

Page 8: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

Parameter Effects

The effect of the Ks on a system are summarized below. Actual relations are more complex. Ks are not independent.

CL RESPONSE RISE TIME OVERSHOOTSETTLING

TIME S-S ERROR

Kp Decrease Increase Small Change Decrease

Ki Decrease Increase Increase Eliminate

Kd Small Change Decrease Decrease Small Change

Page 9: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

Example

Our old friend the spring mass damper system

kbsmssF

sX

sFsXkbsms

Fkxxbxm

xmFxbkx

xmF

2

2

1

)(

)(

)()(

Page 10: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

Example

Our old friend the spring mass damper system

M = 1kg

b = 10 N.s/m

k = 20 N/m

F(t) = 1(Step input)

Page 11: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

Example

The goal of this example is to demonstrate how KP, KI and KD modifies the system response.

Goals: Fast rise time

Minimum overshoot

No steady-state error

Page 12: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

Example -- Open loop response

The open loop response is simply the response of the system with no controller in the loop.

Model of a spring, mass, damper systemOpen loop response

20

k

10

b

Sum

Scope

s

1

Integrator1s

1

IntegratorF(t)

1

1/m

Page 13: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

Example -- Open loop response

For a step input of 20 N the mass moves 1.0 m

x=F/k

x=20N/20(N/m)

x=20m

Page 14: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

Example -- Proportional Control

Change problem add an active proportional controller

Page 15: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

Example -- Proportional Control

Change problem add an active proportional controller

Response now changes also

Page 16: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

Example -- PD Control

Change active proportional controller

add KD

Response now changes also

Page 17: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

Example -- PD Control- Response

Change active proportional controller

add KD

Response now changes also

Page 18: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

Example -- PID Control

Change to active PID

controller

Page 19: ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation

Example -- PID Control ResponseChange to active PID

controller