+ All Categories
Home > Documents > Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low...

Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low...

Date post: 20-Jul-2020
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
43
Systems Engineering/Process Control L2 Process models Step-response models The PID controller Reading: Systems Engineering and Process Control: 2.1–2.5 1/43
Transcript
Page 1: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Systems Engineering/Process Control L2

◮ Process models

◮ Step-response models

◮ The PID controller

Reading: Systems Engineering and Process Control: 2.1–2.5

1 / 43

Page 2: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Process models

We will primarily work with processes that are described by

continuous (as opposed to discrete – FX),

linear (as opposed to nonlinear – F3, F5),

time invariant (as opposed to time varying),

dynamic (as opposed to static)

systems

2 / 43

Page 3: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Static vs dynamic systems

x

u ySystem

Static system: y(t) = f(

u(t))

◮ Output y right now depends only on input u right now

◮ New equilibrium is found instantaneously after input changes

Dynamic system: y(t) = f(

u[0, t], x(0))

◮ Output y(t) depends on all old inputs u[0, t] and the system initial state x(0)

◮ For (stable) dynamical systems, there is a lag before a new equilibrium is

reached after an input change

3 / 43

Page 4: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Static or dynamic system?

x

u y

System

System Input (u) Output (y) S/D

Shower Temperature knob Water temperature D

Lamp Light switch Light S

Lamp Dimmer Light S

Water tank Inflow and outflow Water level D

Cruise control Throttle Speed D

4 / 43

Page 5: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Time invariant vs time varying systems

x

u y

System

Time invariant system: The system dynamics does not change over time

Input delayed by τ time units[ output delayed by τ time units:

5 / 43

Page 6: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Examples of time invariant/varying systems

Time varying systems:

◮ Lamp with switch and timer: Different response depending on time

◮ Rockets: Decreasing fuel amount[ system dynamics change

Time invariant systems:

◮ Lamp with switch without timer

◮ Water tank with inflows and outflows

◮ Cruise control in the car

6 / 43

Page 7: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Process models used in course

Step-response model (L2)

State-space model (L3)

Transfer function (L4)

Frequency-response function (L8)

x= f (x, u)

y=�(x, u)

Process

G(s)

G(iω)

u(t) y(t)

U(s) Y (s)

7 / 43

Page 8: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Step-response experiment

A simple method to learn the process dynamics

Process

u y

◮ Wait until process is in equilibrium

◮ Change input u with a step of size ∆u

◮ Record and analyze output y

(We assume here one input and one output)

8 / 43

Page 9: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Step-response example

63 %

ab

L T

∆y

∆u

Mätsignal

Styrsignal

0 %

100 %

◮ Dead time = L

◮ Time constant = T

◮ Static gain = Kp = ∆y/∆u

◮ Overshoot = a/∆y

◮ Damping = 1− b/a

9 / 43

Page 10: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Step-response for integrating process

∆y

∆u

Mätsignal

Styrsignal

L

◮ Dead time = L

◮ Velocity gain = Kv = ∆y/(∆u · L)

10 / 43

Page 11: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Step-response for some different process types

Integrerande

Dödtid

Enkapacitiv Flerkapacitiv

Oscillativ

Omvänt svar

11 / 43

Page 12: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Single-capacitive processes

Enkapacitiv

Example: RC circuit

R

C yu

100%

63%

RC time

12 / 43

Page 13: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Single-capacitive processes

Example: Continuously stirred tank (CST) with constant flow

Tin = u

T

T = y

cin = u

c

c = y

Tin

u= PT

T = y

13 / 43

Page 14: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Multi-capacitive processes

Flerkapacitiv

Example: Tin = u

T1

T1

T2

T2 = y

CSTR, R → P

cR,in = u

cR cP

cP = y

14 / 43

Page 15: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Integrating processes

Integrerande

Example:

LT

qin = u

h = y

qut

TT

P = u

T = y

15 / 43

Page 16: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Oscillatory processes

Oscillativ

Example: Mechanical system with little damping

k

d

m

0

y

F = u

16 / 43

Page 17: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Dead time processes

Dödtid

Example:

cin = u cut = yv

17 / 43

Page 18: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Inverse response processes

Omvänt svar

Examples:

◮ Parallel parking with car

◮ Input: steering wheel angle

◮ Measurement: (smallest) distance from front wheel to curb

◮ Bus turn

◮ Input: steering wheel angle

◮ Measurement: (smallest) distance from back of bus to curb

18 / 43

Page 19: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

The standard feedback loop

r e yu

Σ Controller Process

−1

◮ Objective: measurement signal y should follow setpoint (reference) r

◮ Controller computes input u from control error e = r− y

19 / 43

Page 20: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Simple feedback controllers

◮ On/off-controller

◮ The simplest feedback controller

◮ PID-controller

◮ The most common controller in industry

◮ P = proportional

◮ I = integral

◮ D = derivative

20 / 43

Page 21: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Example: Oven

∑r = 200○C ue y

Controller Oven

−1

◮ y = measured temperature (output/measurement signal)

◮ r = desired temperature (setpoint/reference)

◮ u = heating effect (0 ≤ u ≤ 1) (control signal/input)

21 / 43

Page 22: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

On/off-control

u(t) =

{

umax, if e(t) > 0 (i.e., y(t) < r(t))

umin, if e(t) < 0 (i.e., y(t) > r(t))

umax

umin

u

e

22 / 43

Page 23: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Simulation of oven with on/off-control

40 60 80 100 120 140 160 180 200120

140

160

180

200

220

40 60 80 100 120 140 160 180 200−0.5

0

0.5

1

1.5

Measure

ment,

setp

oin

tC

ontr

olsig

nal

Time

23 / 43

Page 24: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Drawbacks with on/off-control

◮ Oscillations

◮ Wear on actuators

◮ Works only for processes with:

◮ simple dynamics

◮ low performance requirements

24 / 43

Page 25: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

P-control

◮ Use proportional (to control error) control:

u(t) = u0 + K e(t)

◮ K = proportional gain

◮ (Simplest control structure except on/off)

25 / 43

Page 26: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Simulation of oven with P-control (u0 = 0)

40 60 80 100 120 140 160 180 200120

140

160

180

200

220

40 60 80 100 120 140 160 180 200−0.5

0

0.5

1

1.5

Measure

ment,

setp

oin

tC

ontr

olsig

nal

Time

◮ Stationary control error (at stationarity y(t) ,= r(t))

26 / 43

Page 27: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Mini problem

Approximately what K -value is used in previous slide?

27 / 43

Page 28: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Stationary error with P-control

The stationary error when using a P controller is:

e =u− u0

K

Two ways to eliminate stationary error (i.e., get e = 0):

◮ Let K →∞

◮ Select u0 such that e = 0 in stationarity (difficult to find such u0)

28 / 43

Page 29: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Simulation of P-control with increased K

40 60 80 100 120 140 160 180 200120

140

160

180

200

220

40 60 80 100 120 140 160 180 200−0.5

0

0.5

1

1.5

Measure

ment,

setp

oin

tC

ontr

olsig

nal

◮ Faster control but more oscillations

29 / 43

Page 30: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

PI-control

◮ Are there other ways to remove stationary errors?

◮ Update u0 automatically: Replace the constant term u0 with integral part:

u(t) = K

(

e(t) +1

Ti

∫ t

0

e(τ )dτ

)

◮ Ti = integral time

(Note: The PI-controller is a dynamical system in itself!)

30 / 43

Page 31: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Simulation of oven with PI-control

40 60 80 100 120 140 160 180 200120

140

160

180

200

220

40 60 80 100 120 140 160 180 200−0.5

0

0.5

1

1.5

Measure

ment,

setp

oin

tC

ontr

olsig

nal

Time

◮ Control error goes asymptotically towards zero

◮ Can prove that stationary error is always zero when using PI-control

(provided closed loop system is stable)

31 / 43

Page 32: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Simulation of oven with decreased Ti

40 60 80 100 120 140 160 180 200120

140

160

180

200

220

40 60 80 100 120 140 160 180 200−0.5

0

0.5

1

1.5

Measure

ment,

setp

oin

tC

ontr

olsig

nal

Time

◮ More integral action

◮ Faster control but more oscillations

32 / 43

Page 33: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Prediction

A PI-controller does not predict future errors

The same control signal is obtained in both of the following cases:

e

t tid

I

P

e

t tid

I

P

Want something that can react on predicted future errors

33 / 43

Page 34: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

PID-control

This can be achieved by adding a derivative (D) part to the PI controller:

u(t) = K

(

e(t) +1

Ti

∫ t

0

e(τ )dτ + Td

de(t)

dt

)

◮ Td = derivative time

The derivative part tries to estimate the error change in Td time units:

e(t+ Td) − e(t) ( +Td

de(t)

dt

34 / 43

Page 35: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Simulation of oven with PID-control

40 60 80 100 120 140 160 180 200120

140

160

180

200

220

40 60 80 100 120 140 160 180 200−0.5

0

0.5

1

1.5

Measure

ment,

setp

oin

tC

ontr

olsig

nal

◮ Fast and well damped response, no stationary error

35 / 43

Page 36: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Summary of PID

Past

Present

Future

Control error

Timet t+ Td

The parameters to set: K , Ti, Td

36 / 43

Page 37: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Laboration 1 – Empirical PID-control

PID

Pump

Control of water level in upper/lower tank

◮ Open-loop and closed-loop control

◮ Manual and automatic control

◮ Empirical setting of K , Ti, Td

37 / 43

Page 38: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

Controller type selection

◮ (On/off-controller)

◮ P-controller

◮ PD-controller

◮ PI-controller

◮ PID-controller

◮ I-controller

38 / 43

Page 39: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

P-controller

Is good enough in some cases:

◮ Control of single-capacitive and integrating processes

◮ big K gives small stationary error; no problems with stability

◮ Level control in buffer tanks

◮ small K as long as tank is not almost empty or almost full

◮ As controller in inner loop in cascade control structure (F9)

39 / 43

Page 40: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

PD-controller

Suitable in some cases:

◮ Control of some multi-capacitive processes, e.g., slow temperature

processes

◮ Big K and Td requires measurements with little noise

40 / 43

Page 41: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

PI-controller

The most common choice of controller

◮ Eliminates stationary errors

◮ With cautious settings (small K big Ti) it works on all stable processes

including dead time processes and processes with inverted response

41 / 43

Page 42: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

PID-controller

◮ Can give improved performance compared to PI-controller, especially for

multi-capacitive and integrating-capacitive processes

◮ K can be increased and Ti decreased compared to PI-control

◮ Derivative part is sensitive to measurement noise

42 / 43

Page 43: Systems Engineering/Process Control L2€¦ · Works only for processes with: simple dynamics low performance requirements 24/43. P-control Use proportional (to control error) control:

I-controller

A pure I-controller is given by

u(t) = ki

∫ t

0

e(τ )dτ

◮ ki = integral gain

Can be used for static processes or single-capacitive processes to eliminate

stationary errors

43 / 43


Recommended