Chapter_7

Download as pdf or txt
Download as pdf or txt
You are on page 1of 48

Feedback Controllers

Chapter 7

Figure 7.1 Schematic diagram for a stirred-tank blending


system. 1
Chapter 7

2
Basic Control Modes
Next we consider the three basic control modes starting with the
simplest mode, proportional control.

Proportional Control
Chapter 7

In feedback control, the objective is to reduce the error signal to


zero where
e  t   ysp  t   ym  t  (7-1)
and
e t   error signal
ysp  t   set point
ym  t   measured value of the controlled variable
(or equivalent signal from the sensor/transmitter)

3
Although Eq. 7-1 indicates that the set point can be time-varying,
in many process control problems it is kept constant for long
periods of time.
For proportional control, the controller output is proportional to
the error signal,
Chapter 7

p  t   p  Kc e  t  (7-2)
where:

p  t   controller output
p  bias (steady-state) value
K c  controller gain (usually dimensionless)

4
Chapter 7

5
The key concepts behind proportional control are the following:
p  t   p  Kc e  t  (7-2)
1. The controller gain can be adjusted to make the controller
output changes as sensitive as desired to deviations between
set point and controlled variable;
2. The sign of Kc can be chosen to make the controller output
Chapter 7

increase (or decrease) as the error signal increases.

For proportional controllers, bias p can be adjusted, a procedure


referred to as manual reset.
The controller output equals p when the error is zero. p is adjusted so that the controller
output, and consequently the manipulated variable, are at their nominal steady-state
values when the error is zero.

Some controllers have a proportional band setting instead of a


controller gain. The proportional band PB (in %) is defined as
100%
PB @ (7-3)
Kc 6
In order to derive the transfer function for an ideal proportional
controller (without saturation limits), define a deviation variable
p  t  as p  t   p  Kc e  t  (7-2)
p  t  @p  t   p (7-4)

Then Eq. 8-2 can be written as


p  t   K c e  t 
Chapter 7

(8-5)

The transfer function for proportional-only control:


P  s 
 Kc (7-6)
E s

NOTE: An inherent disadvantage of proportional-only control is


that a steady-state error occurs after a set-point change or a
sustained disturbance.

7
Integral Control
For integral control action, the controller output depends on the
integral of the error signal over time,
1
p t   p  0 e t *dt *
t
(7-7)
τI
Chapter 7

where τ I , an adjustable parameter referred to as the integral time


or reset time, has units of time.

Integral control action is widely used because it provides an


important practical advantage, the elimination of offset.
Consequently, integral control action is normally used in
conjunction with proportional control as the proportional-integral
(PI) controller:
 1 
p  t   p  Kc  e  t   0 e t * dt * 
t
(7-8)
 τI
8
The corresponding transfer function for the PI controller in
Eq. 7-8 is given by

P  s   1   τI s 1 
 K c 1    Kc   (7-9)
E s  τ I 
s τ
 I  s
Chapter 7

Some commercial controllers are calibrated in terms of 1/ τ I


(repeats per minute) rather than τ I (minutes, or minutes per
repeat).

Reset Windup

• An inherent disadvantage of integral control action is a


phenomenon known as reset windup or integral windup.
• Recall that the integral mode causes the controller output to
change as long as e(t*) ≠ 0 in Eq. 7-8.
9
• When a sustained error occurs, the integral term becomes
quite large and the controller output eventually saturates.
• Further buildup of the integral term while the controller is
saturated is referred to as reset windup or integral windup.
Chapter 7

Figure 7.7

Derivative Control
The function of derivative control action is to anticipate the future
behavior of the error signal by considering its rate of change.

• The anticipatory strategy used by the experienced operator can


be incorporated in automatic controllers by making the
controller output proportional to the rate of change of the error
signal or the controlled variable.
10
• Thus, for ideal derivative action,

de  t 
p t   p  τD (7-10)
dt
where τ D , the derivative time, has units of time.
For example, an ideal PD controller has the transfer function:
Chapter 7

P  s 
 K c 1  τ D s  (7-11)
E s

• By providing anticipatory control action, the derivative mode


tends to stabilize the controlled process.
• Unfortunately, the ideal proportional-derivative control
algorithm in Eq. 7-10 is physically unrealizable because it
cannot be implemented exactly.
11
• For analog controllers, the transfer function in (7-11) can be
approximated by

P  s   τDs 
 Kc 1   (7-12)
E s  ατ D s  1 
Chapter 7

where the constant α typically has a value between 0.05 and


0.2, with 0.1 being a common choice.
• In Eq. 7-12 the derivative term includes a derivative mode
filter (also called a derivative filter) that reduces the sensitivity
of the control calculations to high-frequency noise in the
measurement.

12
Proportional-Integral-Derivative (PID) Control
Now we consider the combination of the proportional, integral,
and derivative control modes as a PID controller.
• Many variations of PID control are used in practice.
• Next, we consider the three most common forms.
Chapter 7

Parallel Form of PID Control


The parallel form of the PID control algorithm (without a
derivative filter) is given by

 1 de  t  
p  t   p  K c e  t   0 e t * dt *  τ D dt 
t
(7-13)
 τI 13
The corresponding transfer function is:

P  s   1 
 K c 1   τDs (7-14)
E s  τI s 

Series Form of PID Control


Chapter 7

Historically, it was convenient to construct early analog


controllers (both electronic and pneumatic) so that a PI element
and a PD element operated in series.
Commercial versions of the series-form controller have a
derivative filter that is applied to either the derivative term, as in
Eq. 7-12, or to the PD term, as in Eq. 7-15:

P  s   τ I s  1  τ D s  1 
 Kc    (7-15)
E s τ
 I  Ds ατ s  1  14
Expanded Form of PID Control
In addition to the well-known series and parallel forms, the
expanded form of PID control in Eq. 7-16 is sometimes used:
de  t 
p  t   p  K c e  t   K I  e  t * dt *  K D
t
(7-16)
0 dt
Chapter 7

15
16
Chapter 7

17
Digital PID Controller
 t n 1 D 
pn  p  Kc en   ek   en  en 1 
  I k 1 t 

where,
Chapter 7

t = the sampling period (the time between


successive samples of the controlled variable)
p n = controller output at the nth sampling
instant, n=1,2,…
e n = error at the nth sampling unit

velocity form - see Equation (7-19)

(pd)- incremental change

18
Controller Comparison

P -Simplest controller to tune (Kc).


-Offset with sustained disturbance or set point
Chapter 7

change.
PI -More complicated to tune (Kc, I) .
-Better performance than P
-No offset
-Most popular FB controller
PID -Most complicated to tune (Kc, I, D) .
-Better performance than PI
-No offset
-Derivative action may be affected by noise

19
Chapter 7

20
General Feedback Control Loop

D(s)

Gd(s)

Ysp(s) E(s) C(s) U(s) Y(s)


+- Gc(s) Ga(s) Gp(s) ++

Ys(s)
Gs(s)
D(s)

Gd(s)

Ysp(s) E(s) C(s) U(s) Y(s)


+- Gc(s) Ga(s) Gp(s) ++

Ys(s)
Gs(s)

22
Closed Loop Transfer Functions

• From the general feedback control loop and using


the properties of transfer functions, the following
expressions can be derived:

Y ( s) G p ( s) Ga ( s) Gc ( s)

Ysp ( s) G p ( s) Ga ( s) Gc ( s) Gs ( s)  1

Y ( s) Gd ( s)

D( s) G p ( s) Ga ( s) Gc ( s) Gs ( s)  1
Characteristic Equation

• Since setpoint tracking and disturbance rejection


have the same denominator for their closed loop
transfer functions, this indicates that both setpoint
tracking and disturbance rejection have the same
general dynamic behavior.
• The roots of the denominator determine the
dynamic characteristics of the closed loop process.
• The characteristic equation is given by:

G p (s) Ga (s) Gc (s) Gs (s)  1  0


Definition of Terms

• e(t)- the error from setpoint [e(t)=ysp-ys].


• Kc- the controller gain is a tuning parameter
and largely determines the controller
aggressiveness.
• I- the reset time is a tuning parameter and
determines the amount of integral action.
• D- the derivative time is a tuning
parameter and determines the amount of
derivative action.
Features of PID Controllers
Elimination of Derivative and Proportional Kick

• One disadvantage of the previous PID controllers is that a


Chapter 7

sudden change in set point (and hence the error, e) will cause the
derivative term momentarily to become very large and thus
provide a derivative kick to the final control element.

26
• This sudden change is undesirable and can be avoided by basing
the derivative action on the measurement, ym, rather than on the
error signal, e.
• We illustrate the elimination of derivative kick by considering
the parallel form of PID control in Eq. 7-13.
 de  t  
• Replacing de/dt by –dym/dt gives p  t   p  K c e  t  
1
0 e t * dt *  τ D
Chapter 7

t
 (7-13)
 τI dt 

 1 dym  t  
p  t   p  K c e  t   0 e t * dt * τ D dt 
t
(7-17)
 τI

Reverse or Direct Action

• The controller gain can be made either negative or positive.


27
• For proportional control, when Kc > 0, the controller output p(t)
increases as its input signal ym(t) decreases, as can be seen by
combining Eqs. 7-2 and 7-1:

p  t   p  Kc  ysp  t   ym  t  (7-22)

• This controller is an example of a reverse-acting controller.


Chapter 7

• When Kc < 0, the controller is said to be direct acting because


the controller output (p(t)) increases as ym increases.
• Equations 7-2 through 7-16 describe how controllers perform
during the automatic mode of operation.
• However, in certain situations the plant operator may decide to
override the automatic mode and adjust the controller output
manually.

28
Chapter 7

Figure 7.11 Reverse


and direct-acting
proportional
controllers. (a) reverse
acting (Kc > 0. (b)
direct acting (Kc < 0)

29
Level Control Example
• Process gain is
positive because
when flow is
increased, the level
Fin
LT LC increases.
L • If the final control
Fout
element is direct
acting, use reverse
acting PID.
• For reverse acting
final control element,
use direct acting PID.
Level Control Example
• Process gain is negative
because when flow out
Fin is increased, the level
LT LC decreases.
L • If the final control
Fout element is direct acting,
use direct acting PID.
• For reverse acting final
control use reverse
acting PID controller.
Automatic and Manual Control Modes
• Automatic Mode
Controller output, p(t), depends on e(t), controller
constants, and type of controller used.
( PI vs. PID etc.)
Chapter 7

 Manual Mode
Controller output, p(t), is adjusted manually.
 Manual Mode is very useful when unusual
conditions exist:
plant start-up
plant shut-down
emergencies
• Percentage of controllers "on manual” ??
(30% in 2001, Honeywell survey)

32
On-Off Controllers

• Simple

Chapter 7

Cheap
• Used in residential heating and domestic refrigerators
• Limited use in process control due to continuous
cycling of controlled variable  excessive wear
on control valve.

33
On-Off Controllers (continued)
Synonyms:
“two-position” or “bang-bang” controllers.
Chapter 7

Controller output has two possible values.

34
Practical case (dead band)
Chapter 7

35
Proportional-Integral (PI) Control

 1
t

p( t )  p  K c e( t )   e( t )dt 
 
 I 0 

• Response to unit step change in e:


Chapter 7

Figure 7.6. Response of proportional-integral controller to


unit step change in e(t).
36
• Integral action eliminates steady-state error
(i.e., offset) Why??? e  0  p is changing with
time until e = 0, where p reaches steady state.
• Transfer function for PI control P(s)  1 
 K c 1  
E(s)   Is 
Chapter 7

Figure 7.7

ysp

37
 Some controllers are calibrated in 1/I
("repeats per minute") instead of I .

 For PI controllers, p is not adjustable.


Chapter 7

Derivative Control Action


 Ideal derivative action
de
p( t )  p   D
dt
 Used to improve dynamic response of the
controlled variable
 Derivative kick (use db/dt )

38
PID Controller
 Ideal controller

• Transfer function (ideal)


 t
de 
Chapter 7

1
p( t )  p  K c e( t )   e( t)dt  D 
 I 0 dt 
P(s)  1 
 K c 1    Ds 
E(s)   Is 
 Transfer function (actual)
P(s)   Is  1  Ds  1 
 K c   
E(s)  Is  Ds  1 
α = small number (0.05 to 0.20) lead / lag units

39
Typical Response of Feedback Control Systems
Consider response of a controlled system after a
sustained disturbance occurs (e.g., step change in
the disturbance variable)
Chapter 7

Figure 7.12. Typical process responses with feedback control.

40
Figure 7.13.
Proportional control:
y effect of controller
gain.
Chapter 7

Figure 7.15. PID


control: effect of
derivative time.

41
y y
Chapter 7

Figure 7.14. PI control: (a) effect of reset time (b) effect of


controller gain.

42
Summary of the Characteristics of the Most
Commonly Used Controller Modes
1. Two Position:
Inexpensive.
Extremely simple.
Chapter 7

2. Proportional:
Simple.
Inherently stable when properly tuned.
Easy to tune.
Experiences offset at steady state.
3. Proportional plus integral:
No offset.
Better dynamic response than reset alone.
Possibilities exist for instability due to lag
introduced.

43
4. Proportional plus derivative:
Stable.
Less offset than proportional alone (use of
higher gain possible).
Chapter 7

Reduces lags, i.e., more rapid response.


5. Proportional plus reset plus rate:
Most complex
Rapid response
No offset.
Difficult to tune.
Best control if properly tuned.

44
Position and Velocity Algorithms for Digital PID
Control
A straight forward way of deriving a digital version of the parallel
form of the PID controller (Eq. 7-13) is to replace the integral and
derivative terms by finite difference approximations,
Chapter 7

7-13
k
0 e  t * dt   e j t
t
(7-24)
j 1

de ek  ek 1
 (7-25)
dt t
where:

t = the sampling period (the time between successive


measurements of the controlled variable)
ek = error at the kth sampling instant for k = 1, 2, …
45
There are two alternative forms of the digital PID control
equation, the position form and the velocity form. Substituting (7-
24) and (7-25) into (7-13), gives the position form,

7-13
 
Chapter 7

t k D
pk  p  K c ek   e j   ek  ek 1  (7-26)
 1 j 1 t 

Where pk is the controller output at the kth sampling instant. The


other symbols in Eq. 7-26 have the same meaning as in Eq. 7-13.
Equation 7-26 is referred to as the position form of the PID
control algorithm because the actual value of the controller output
is calculated.
46
In the velocity form, the change in controller output is
calculated. The velocity form can be derived by writing the
position form of (7-26) for the (k-1) sampling instant:
 t k D  Position form of
pk  p  K c ek   e j   ek  ek 1  (7-26)
 1 j 1 t  PID
(K-1) sampling time
Chapter 7

(7-27)

Note that the summation still begins at j = 1 because it is assumed


that the process is at the desired steady state for
j  0 and thus ej = 0 for j  0. Subtracting (7-27) from (7-26)
gives the velocity form of the digital PID algorithm:
 t D 
pk  pk  pk 1  K c  ek  ek 1   ek   ek  2ek 1  ek 2 
 I t 
(7-28) 47
The velocity form has three advantages over the position form:

1. It inherently contains anti-reset windup because the


summation of errors is not explicitly calculated.
2. This output is expressed in a form, pk, that can be utilized
Chapter 7

directly by some final control elements, such as a control


valve driven by a pulsed stepping motor.
3. For the velocity algorithm, transferring the controller from
manual to automatic mode does not require any initialization
of the output ( p in Eq. 7-26). However, the control valve (or
other final control element) should be placed in the
appropriate position prior to the transfer.

48

You might also like