You are on page 1of 31

1.1.

7 Analytical methods
The previous methods showed quite clearly the significant overhead in manpower costs and
potential process disruption through manual tuning A more effective means of controller
tuning i s to use system knowledge transfer f unctions,and formulae f or time responses to
reference and disturbance inputs

Analytical methods based on Zigler Nicholas tuning method

EXAMPLE 1 Ultimate-Cycle Method with a Third-Order Plant

■ Problem
Use the ultimate-cycle method to obtain the gains for (a) P action, (b) PI action, and (c) PID
action. Analyze the unit-step response of each design. The plant is
10
G p (s) =
2s 3 + 12s 2 + 22s + 12
■ Solution
The ultimate-cycle method starts by using proportional action only. The transfer function for P
action with this plant is
C(s) 10K P
= 3
R(s) 2s + 12s 2 + 22s + 12 + 10K P
The characteristic equation is

2s 3 + 12s 2 + 22s + 12 + 10K P = 0 (1)

To apply the ultimate-cycle method, we must first find the ultimate period Pu and the associated
gain K Pu . To do this analytically, we note that sustained oscillations occur when a pair of roots
is purely imaginary and the rest of the roots have negative real parts. To find when this occurs,
set s = jωu , where ωu is the as-yet-unknown frequency of oscillation. Then s 2 = −ωu2 and
s 3 = − jωu3 . Substituting these into the characteristic equation we obtain

−2 jωu3 − 12ωu2 + 22 jωu + 12 + 10K Pu = 0

Collect the real and imaginary parts.

12 + 10K Pu − 12ωu2 + j −2ωu3 + 22ωu = 0

To satisfy this equation, both the real and imaginary terms must be zero. So we obtain two
equations to solve for the two unknowns ωu and K Pu . These are

12 + 10K Pu − 12ωu2 = 0 (2)


−2ωu3 + 22ωu = 0

The latter equation yields the nonoscillatory solution ωu = 0 as well as the one of interest—
namely,

ωu = ± 11 = ±3.317

Substituting this into equation (2), we see that the ultimate gain is K Pu = 12. The ultimate
period is
2π 2π
Pu = = √ = 1.89
ωu 11
For sustained oscillations to occur, as required by the ultimate-cycle method, the third root
must be negative. The first two roots are s1 = jωu and s2 = − jωu . The third root can be
determined from guide 10 of the root locus guides. Dividing equation (1) by 2 gives

s 3 + 6s 2 + 11s + 6 + 5K P = 0

Guide 10 says that the sum of the three roots must be −6. Thus,

+ jωu − jωu + r3 = −6

which gives r3 = −6. Since r3 < 0, the assumption of neutral stability is justified. Thus the
solutions for ωu and K Pu are valid and can be used with Tables to compute the PID gains.
We obtain the following results. For P action, K P = 0.5K Pu = 6. For PI action,
KP
K P = 0.45K Pu = 5.4 TI = 0.83Pu = 1.57 KI = = 3.44
TI
For PID action,
KP
K P = 0.6K Pu = 7.2 TI = 0.5Pu = 0.947 KI = = 7.62
TI

TD = 0.125Pu = 0.236 K D = K P TD = 1.7

The closed-loop transfer function for P action is


C(s) 60
= 3
R(s) 2s + 12s 2 + 22s + 72

For PI action,
C(s) 54s + 34.4
= 4
R(s) 2s + 12s 3 + 22s 2 + 66s + 34.4

For PID action,

C(s) 17s 2 + 72s + 76.2


= 4
R(s) 2s + 12s 3 + 39s 2 + 84s + 76.2

The unit-step responses are shown in Figure 11.4.2. Note the improvement as the control
action is changed from P to PI to PID. First, the steady-state error is eliminated, and then the
oscillations and settling time are reduced.

Note that this analysis uses only proportional control, but the gains for other control
laws can be computed with these results. The power of the method is shown by the
fact that we did not have to solve for the roots of a cubic or quartic equation. Note also
that I action applied to this system would result in a fourth-order system to analyze—a
difficult task—were it not for the Ziegler-Nichols method.
The Ziegler-Nichols methods are used to obtain gain values that are “in the ball-
park.” The engineer can use these values as a starting point for tuning the gains to obtain
improved performance.
Figure 1 Unit-step responses of the
controllers obtained in Example 1.
(a) P action. (b) PI action. (c) PID action.
2 2
1.8 1.8
1.6 1.6
1.4 1.4
1.2 1.2
c(t)

c(t)
1 1
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
0 0
0 5 10 15 0 5 10 15
t t
(a) (b)

2
1.8
1.6
1.4
1.2
c (t )

1
0.8
0.6
0.4
0.2
0
0 5 10 15
t
(c)

EXAMPLE 2 Ultimate-Cycle Method with a Third-Order Plant using rootlocus

■ Problem
Consider the PID controller designed in Example 1. Use the root locus plot to adjust the
gains to reduce the overshoot.
■ Solution
The closed-loop transfer function for PID control of this plant is
C(s) 10K D s 2 + 10K P s + 10K I
= 4
R(s) 2s + 12s 3 + (22 + 10K D )s 2 + (12 + 10K P )s + 10K I
When the controller transfer function is expressed in the form
 
1
G(s) = K P 1+ + TD s
TI s
we can see that changing the proportional gain K P changes the proportional, integral, and
derivative gains by the same factor. For PID action, the Ziegler-Nichols settings give the following
values of K D and K I in terms of K P .
KP KP
K D = TD K P = 0.236K P KI = = = 1.056K P
TI 0.947
Thus, we can express the characteristic equation as
2s 4 + 12s 3 + (22 + 2.36K P )s 2 + (12 + 10K P )s + 10.56K P = 0
and the root locus equation in terms of the parameter K P is
s 2 + 4.24s + 4.47
1 + 1.18K P =0
s(s 3 + 6s 2 + 11s + 6)
Thus the root locus parameter is K = 1.18K P .
The root locus plot is shown in Figure 2. When K P has the value recommended by the
Ziegler-Nichols method, K P = 7.2, the roots are s = −0.77 ± 2.67 j, s = −1.98, and s =
−2.48. The dominant root is marked on the root locus, and has a time constant of τ = 1/0.77
= 1.3 and a small damping ratio of ζ = 0.28. The root locus shows that decreasing K P from 7.2
increases the time constant slightly to τ = 1/0.523 = 1.9 but increases the damping ratio quite
a bit. Thus the system will respond somewhat more slowly, but the overshoot should be greatly
reduced to perhaps none at all.
The root locus shows that we can improve the response by decreasing K P until the dominant
root has a damping ratio of 1. This occurs at the breakaway point (s = −0.523) and requires that
K P = 0.306, K D = TD K P = 0.236(0.306) = 0.070, K I = K P /TI = K P /0.947 = 0.323.
The improved step response, marked “Tuned,” is shown in Figure 4, along with the response
obtained with the Ziegler-Nichols settings, marked “Original.”

Figure 2 Root locus plot 4


for Example 2
3

2
Imaginary Axis

–1

–2

–3

–5 –4 –3 –2 –1 0 1 2 3 4
Real Axis
Figure 4 Unit-step 1.5
responses for Example 2
Original

1
c (t )

Tuned

0.5

0
0 2 4 6 8 10 12
t
Review

I Analysis by Routh 's C ite1ion I r

olved Proble� I
_, �f'Ch/,..,, 1J1. krrnh,, i/J"' .rsna•
O:f � ,IQ Mar �" �
it ,._.�}nQJfy: .tluJ, 4n• t,-,,,t M� fr, &y
"( S,u��n1,� ! 11��//4/;'4.,,_,.
I I

· , : �(:s) • s' ;tJ-- -R.!I �,-.,., : ,._ s' +· z,a; ,. < · � o


1
I
1

I I

J : /g

t ►
j
� . 2.$ ,

i'

.ao ,
I

Tiu. sysk,,,,,, i:J $J:o,J,lc. Y .20J ... I., ls le "> o r;-r < /J.S.
I
O;.n«. Jc> O'
1 '1 • • ,. I "'"
EXAMPLE 3 Ultimate-Cycle Method with Routh analysi creterion

Example
Analytically find the parameters of the PID controller based on Ziegler-Nicholas con-
tinuous cycling Method for the control system below

Figure : Control system

Solution:
Based on limit of stability, ultimate sensitivity method.

Tuning Table:

P: K p = 0.5 K u
Pu
PD : K p = 0.45K u , TI =
1.2
Pu P
PID : K p = 0.6 K u ,TI = , TD = u
2 8
- ::f7 CJ � �J ru-q� C-ks_,vc::__ � u t-c
l,< , f-&-
J
- 9�01-..
Qs) - �

"-!�1
-
r2.{s; S3 + ..2s ')._ +- s -f- r

I + K
� >+2-.s '.)_ +s+1
(
I =---
5 ')....
S +2s +_s+r +k

J�s /k_ c./4__0vc_�,-f h-c
Tl �c__�'-- i:,�_J
_'.)
+s + (/+k)
)._
� -f-)_� D �
s 3
j_ 1 0
3 I
0
2--
__s
<J__
)._ I .-,-IL 0 5' ?- t-Mc 0

S' r i- {L;_
0
I

-s
:;;...- � f-1.<:)
-s
I 1.. t-k
s (1 -KL) s
€)
0

I
').. - ( 1--t-1CJ
=-s-

--s
fuv 'VlA.� vr-L.._,A
/-It(
I D
-r

){__ = -I 'r·v,_ , ct 2..,,w C'-(r·u-J-- """'-- """


_><--'-<--
p,·w. tl = 1. '
ol0p id--- ,:;, � cf_

hsi = )., s 2- -+ I + J,L, -===-- v


--- 2 5 )_ + I+ l
--- ::::- o

_;:) :LS
}-
--r ;i_ - 0

__::,) J' ).. -l- I :::::: 0

• �) s ==- :: FT .=:

� l� ryq�� �
1A.) ==- i yJ (s,

�ol p� of -fk-:::::..
1
.J_ ..--
.__.. j_ re-c (

,L, V<I -P )) t:vv,c_ � �

llf :::. D , £ li;, �<- r[l·· ::;;,


�ol -
/ '-1

-
y
_;)-
� D<f,�l � J--
- Or6
----- I
=- o, > - c>,r�s
fr-
Analytical tuning based on Root locus

Review:
Magnitude criterion

Definition 3 .5.5. The root locus must everywhere satisfy the criterion that
|KG(s)H(s)| = 1

Phase criterion
Definition 3.5.6. The root locus must everywhere satisfy the criterion that

∠KG(s)H(s) = (1 + 2m)π for m∈Z

These criteria are always satisfied and so they will guide the understanding and sketching root
locus and designing with the root locus.

EXAMPLE 2 Ultimate-Cycle Method with a Third-Order Plant using rootlocus

(a) Consider a unity feedback control system shown in Fig. 2. The plant transfer function is
10
Gp (s) =
s(s + 2)(s + 8)

Figure 2: Control system

i. State with reason if a proportional controller can achieve closed loop poles at −2 ±

j2 3. (Show all your working), Also explain how we can control the system with
closed loop poles on the mentioned poles.
ii. Design a proportional derivative controller for the system to achieve closed loop

poles at −2 ± j2 3.
Example 2 i Solution

pb1cs �� � J �
Jw
J .:L"3,

-g

fo ec=-TT �
('
� tt:;_ d �s-, J
y e- c,) �c1_ r StSp r57 4
-2 t.J2V3

vJLit__ft: Ly t-b...r.c.. po� Lb It� U),,._ {-iv.


� T>d-�v
<r
�LJL

� f 0�s � S-uYv\._v vd k.e. K.

- � rlt> tt5
r�
fcl�t-h]'J � p\J;�
r
vve_ �-e..{Cj) �
-- � +J 2 .f:i" (.e_ - L� fa 7 �-f C1._cP_ L.c-/
�+
U"h �

�5 1� 1),--d-- �d-ts ,hJ 1-t::._ �s (_i,.�t-€_�r� lJ2_ C

- 0, - c;_ -- � (2., +-r) lh , tl

:CC) �8-0� � I ( "-'!_ Jl - /Do - f--cc�C'7 J = '2-� +1) ih" !


-f�
/.?vi�
� C\<:>1.e...J
/u0f du � t te..
6h % vu-st '0 � 5
� v0e_ CC::k L.._ 8-
a�e:v..e_
cq_


tics �'d7i-v� LA,.F\ +{-_
�J��J �.(_y- cv{ OV\.e_ (

- T� ol,ewui, po-{h WM.,, b,e,, � b-y � {µ ole,vw-o-+i.Ne, fe¥1M--'


l,N\.-' � w-r,,vfyo{u,,y
Example 2 ii Solution

\N12_ � V(cJ -h c;J._a_+<--<, � +b-\.-JL r C cc+l� 1-


�> /4._e.-vo � s j s fj +-6.. a i....._5 l.e_ Cv Ir -r�" <f)-, ; I '( (

Drt��� 8; f-t:--d- .S:�sf-tµj

lf� - e; -G: -8-


;i_ 3 (2 � +r) 'cf-i)
r�+
1)

t1i a.are... r-

J Sr�/� G-o lk C -z l

<
'
9i� -
I ?...o -jo -5 o - (?_ � +-< j I <f-o-o

IJ- � ::::::.- D


ifz_ -- .2--4--v
0
� I �o
u
-> e2 6 D
0

L. 6 0 -
----
:;i.13,
�e,Q_ -TC,,,....

z-.2
()

a__J? '-7- == � ( \,0 � s


--
I� �
( o ca--f-"G- l-. '-"} tt..,__
�J
l-l t

-)..
-8
19

EXAMPLE

Process model: P control


Consider the general first-order system with reference and disturbances analysed in previous
sections:

First-order system gain is K and time constant is τ . For now let the controller have only
proportional control, i.e. K(s) = Kp

The closed-loop system response components will be:


   
KKp r τs + 1 d
θo−ref (s) = θo−dist (s) =
τ s + 1 + KKp s τ s + 1 + KKp s
Reference response can be written in time constant form
   
(KKp )/(1 + KKp ) r KCL r
θo−ref (s) = =
(τ /(1 + KKp ))s + 1 s τCL s + 1 s

Disturbance response can also be written in time constant form


   
(τ s + 1)/(1 + KKp ) d Ks (τ s + 1) d
θo−dist (s) = =
(τ /(1 + KKp ))s + 1 s τCL s + 1 s
So the closed-loop time constant is given by
τ
τCL =
1 + KKp

Applying the final value theorem gives the steady state responses to reference and distur-
bance inputs
20
   
KKp r KKp
θo−ref −ss (s) = lim s = r
s→0 τ s + 1 + KKp s 1 + KKp
   
τs + 1 d 1
θo−dist−ss (s) = lim s = d
s→0 τ s + 1 + KKp s 1 + KKp
We can now select a value of Kp which satisfies time constant or steady state response
specifications
Example
It is decided that a controller is required for a process in a chemical works. The open-loop
step response is a 50 C output temperature change for a 100 C input change and the open-
loop time constant is 10 minutes. The only design specification is: Effect closed-loop time
constant of about 3 minutes

Solution
Desired closed-loop time constant,τCL , is 3 minutes. Uncontrolled system time constant τ
is 10 minutes and uncontrolled system gain K is 0.5.

τ 10
τCL = = =3 Therefore Kp = 4.67
(1 + KKp ) (1 + 0.5Kp )
Setting the value of Kp equal to 4.67 fixes the level of the steady-state responses:
   
KKp 0.5 × 4.67
θo−ref −ss = r= r = 0.7r
1 + KKp 1 + (0.5 × 4.67)
   
1 1
θo−dist−ss = d= d = 0.3d
1 + KKp 1 + (0.5 × 4.67)
Therefore the steady state errors will be

eref −ss = r − 0.7r = 0.3r and edist−ss = 0 − 0.3d = −0.3d

EXAMPLE

Process model: PI control


Consider the general first-order system with reference and disturbances analysed in previous
sections:
21

First-order system gain is K and time constant is τ . For now let the controller have only
proportional control, i.e. K(s) = Kp + Ksi

The closed loop response components are:


 
K(Kp s + Ki ) r
θo−ref −ss (s) = 2
τ s + (1 + KKp )s + KKi s
 
(τ s + 1)s d
θo−dist−ss (s) = 2
τ s + (1 + KKp )s + KKi s
Steady state responses to reference and disturbance inputs have zero steady- state error as
shown below
 
K(Kp s + Ki ) r
θo−ref −ss (s) = lim s 2
=r
s→0 τ s + (1 + KKp )s + KKi s
 
(τ s + 1)s d
θo−dist−ss (s) = lim s 2
=0
s→0 τ s + (1 + KKp )s + KKi s
There is a link between overshoot and damping ratio

 
√ −πζ 2
OS(%) = 100 exp (1−ζ )
For 0<ζ<1
If there is a specified overshoot we first calculate
 
OS(%)
LOS = ln )
100
The required damping ratio is then given by
LOS
ζ=p
(π 2 + L2OS )
There is a link between settling time, damping ratio and undamped natural frequency;
3 3
ts (5%) ' therefore ζωn '
ζωn ts (5%)
22
4 4
ts (2%) ' therefore ζωn '
ζωn ts (2%)
So a specification of overshoot and / or settling time can be converted into damping and
natural frequency requirements.

Once we know the required values of ζ and ωn we can calculate the necessary values of Kp
and Ki

The standard second -order system characteristic equation is compared to the closed-loop
system characteristic equation.

s2 + 2ζωn s + ωn2 = 0

1 + KKp KKi
s2 + s+ =0
τ τ
2
2ζωn τ −1 τ ωn
to give Kp = K
and Ki = K

EXAMPLE

Example: PI control
It is decided that a controller is required for a process in a chemical works. The open-loop
step response is a 50 C output temperature change for a 100 C input change and the open-loop
time constant is 10 minutes. The design specifications are:

• No steady-state error in reference tracking mode

• 5% settle time of better than 20 minutes

• and to have only a little overshoot

Solution: PI control
Specification of zero-steady state error means that PI control must be used

5% settle time of 20 minutes gives:

3 3
ζωn ' = = 0.15
ts (5%) 30
23
For little overshoot, choose high damping:

0.15
Fix ζ = 0.9 to give ωn = = 0.169
0.9
Calculate Kp and Ki from ζ and ωn

2ζωn2 (2 × 0.9 × 0.167 × 10) − 1


Kp = = = 4.0
K 0.5

τ ωn2 10 × 0.1672
Ki = = = 0.56
K 0.5

EXAMPLE

Process model: PD control

Example;
The figure below shows a PD controller used for a control system. Determine the value of
τd so that the system will be critically damped. Calculate settling time.

Solution;

(1 + sτd )4
G(s) = and H(s) = 1
s(s + 1.6)
24
C(s) (1 + sτd )4
= 2
R(s) s + (1.65 + 4τd )s + 4
Comparing denominator with standard form

ωn2 = 4 Thus ωn = 2

2ζωn = 1.6 + 4τd but ζ=1 thus τd = 0.6

4 4
Settling Time Ts = = = 2 Sec
ζωn 2 × 1

EXAMPLE

(a) A system with Proportional Derivative controller is shown in Fig. 1. Find the values of
Kp and Kd so that the velocity error constant is 500, and the damping ration is 0.5.

Figure 1: Control system


Solution
1.1.8 PID controllers From the pole plots
As the overall system becomes more complicated it is necessary to examine the position of
the poles in a series of design equations which may be solved to yield the values of which
give the desired system performance Kp , Ki and Kd .

1.1.9 PID controllers issues


Four major issues of concern with the close loop operation with P-I-D controllers are the Inte-
gration Windup and the requirement of providing Bumpless Transfer, sensitivity of derivative
term to noise, sensitivity of derivative term to step changes.

1. Integration Windup: A significant problem with integral action is that when the
error signal is large for a significant period of time. This can occur every time when
there is large change in set point. If there is a sudden large change in set point, the
error will be large and the integrator output in a P-I-D control will build up with time.
As a result, the controller output may exceed the saturation limit of the actuator. This
windup, unless prevented may cause continuous oscillation of the process that is not
desirable.

Prevention of Integration Windup:


The first method uses a switch to break the integral action, whenever the actuator goes
to saturation. This can be illustrated by Fig. 2. Consider schematic arrangement of a
controller shown in the figure.
25

The arrangement can be confirmed to be PI control by solving for u


1 1 + sτ Kp
u = Kp e + u Solving for u u = Kp e = Kp +
1 + sτ sτ sτ
So when the switch is closed, the controller acts as a P-I controller. On the other hand,
if the switch is open, it is a simple P- controller. The switch is activated by the position
of the actuator. If the actuator is operating in the linear range, the switch is closed,
and the controller is in P-I mode. But whenever the actuator is in the saturation mode,
the switch is automatically opened; the controller becomes a P-controller. As a result,
any windup due to the presence of integral mode is avoided.

The second method:

The actuator in the linear range is unity. As a result, when the actuator is operating
in the linear range the error eA is zero, and the controller acts as a PI controller. But
when the actuator is in saturation mode, the error eA is negative for a positive e. This
will reduce the integral action in the overall control loop.

Other anti-windup precautions are:


(i) Closing the I-action only when the error is small (say 5% to 10% of the range),
(ii) Limiting the output of the I-action block.
26
2. Bumpless Transfer: When a controller is switched from manual mode to auto-mode,
it is desired that the input of the process should not change suddenly. But since there
is always a possibility that the decision of the manual mode of control and the auto
mode of control be different, there may be a sudden change in the output of the con-
troller, giving rise to a sudden jerk in the process operation. Special precautions are
taken for bumpless transfer from manual to auto-mode.

Remedies for Bumpless Transfer:


It is quite normal to set up some processes using manual control initially, and once
the process is close to normal operating point, the control is transferred to automatic
mode through auto/manual switch. In such cases, in order to avoid any jerk in the
process the controller output immediately after the changeover should be identical to
the output set in the manual mode. This can be achieved by forcing the integral output
at the instance of transfer to balance the proportional and derivative outputs against the
previous manual output; i.e. Integral output = (previous manual) -(proportional+
derivative) output. Similarly, for automatic to manual transfer, initially the manual
output is set equal to the controller output and the difference is gradually reduced
by incrementing or decrementing the manual output to the final value of the manual
signal and thus effecting a change over.
Another way to transfer from Auto to Manual mode in a bumpless manner, the set
point may be made equal to the present value of the process variable and then slowly
changing the set point to its desired value. The above features can be easily be im-
plemented if a digital computer is used as a controller. This provision eliminates the
chance of the process receiving sudden jolt during transfer.

3. Filtering derivative term:


A drawback with derivative action is that an ideal derivative has very high gain for high
frequency signals. This means that high frequency measurement noise will generate
large variations of the control signal.
In a practical controller with derivative action it is therefore necessary to limit the
high frequency gain of the derivative term. This can be done by implementing the
derivative term as
sKτd
D= Y
1 + sτNd

instead of D = sτdY . The approximation given can be interpreted as the ideal


derivative sτd filtered by a first order system with the time constant τNd . The approx-
imation acts as a derivative for low-frequency signals and as a constant gain for the
27
high frequency signals. The gain, however, is limited toKN . This means that high
frequency measurement noise is amplified at most by a factor KN . Typical values of
N are 8 to 20.

The transfer function from measurement y to controller output u of a PID controller


with the approximate derivative is

4. Set Point Weighting:


It is common for the closed-loop system to track a constant reference input. In this
case, the input is called a setpoint. This being the case, it is often advantageous to
consider an alteration of the overall control law for the sake of this problem. We
noted, for instance, that it is not particularly good to differentiate step changes in the
error signal. Changing the configuration will give basically the same behavior, without
having to do such things. The setpoint weighted PID is thus a generalization of the
PID, and has Z t
ded (t)
u(t) = Kp ep (t) + Ki ei (τ )dτ + Kd
0 dt

Where ep = ap r(t) − y(t), ei (t) = r(t) − y(t) and ed (t) = ad r(t) − y(t)

Where constants ap and ad are as yet undetermined. Each term has a different ”error”
associated with it. Note that when ap = ad = 1 then we the original PID design. Note
also that when r(t) is a piecewise constant signal (only step changes), then for all time
except at actual step locations ṙ(t) = 0 and thus

ded (t) d
= (ad r(t) − y(t)) = −ẏ(t)
dt dt

Which is independent of r(t) and ad


In general , since y is the output of the plant, it will be a smooth function and thus ẏ
will be bounded. It is thus not uncommon to let ad = 0 . This eliminates spikes in the
term Kd dedt
d (t)
without substantially affecting the overall control performance.
The block diagram for set point weighting is as shown below.
28

Fig 4: The Setpoint Weighting Configuration

As we have seen, changing ad doesnt change the overall design. Changing ap , however,
may change the design. The rationale behind ap is that if, for example, ap = 0.5, then
a large step change in r(t) doesnt create such a large control magnitude. However, in
general, ep does not go to zero when y = r. Thus, there is a persistent control applied
even when it is not necessary. The use of this, then is of questionable value. Setting
ap = 1, however, brings us back to the original error.

1.1.10 Implementation of PID controllers


Implementation of PID controlles have evolved from pneumatic types which were slow in
nature. After the development of electronic devices and operational amplifiers, the electronic
controllers started replacing the conventional pneumatic controllers. But with the advent
of the microprocessors and microcontrollers, the focus of development is now towards the
implementation with digital PID controllers. The major advantage of using digital PID
controllers is that the controllers parameter can be programmed easily; as a result, they can
be changed without changing any hardware. Moreover, the same digital computer can be
used for a number of other applications besides generating the control action.

1. Pneumatic Controller:
It has been already mentioned that the early days PID controllers were all pneumatic
type. The advantage of pneumatic controllers is its ruggedness, while its major limi-
tation is its slow response. Besides it requires clean and constant pressure air supply.
The major components of a pneumatic controller are bellows, flapper nozzle amplifier,
air relay and restrictors (valves). The integral and derivative actions are generated by
controlling the passage of air flow through restrictors to the bellows.
A simple scheme for implementation of a pneumatic PI controller is shown in Figures
below.
29
Proportional action

Fig: P Control

The action of this particular controller is direct, since an increase in process variable
signal (pressure) results in an increase in output signal (pressure). Increasing process
variable (PV) pressure attempts to push the right-hand end of the beam up, causing
the baffle to approach the nozzle. This blockage of the nozzle causes the nozzles
pneumatic backpressure to increase, thus increasing the amount of force applied by the
output feedback bellows on the left-hand end of the beam and returning the flapper
(very nearly) to its original position. If we wished to reverse the controllers action,
all we would need to do is swap the pneumatic signal connections between the input
bellows, so that the PV pressure was applied to the upper bellows and the SP pressure
to the lower bellows. Any factor influencing the ratio of input pressure(s) to output
pressure may be exploited as a gain (proportional band) adjustment in this mechanism.
Changing bellows area (either both the PV and SP bellows equally, or the output
bellows by itself) would influence this ratio, as would a change in output bellows
position (such that it pressed against the beam at some difference distance from the
fulcrum point). Moving the fulcrum left or right is also an option for gain control, and
in fact is usually the most convenient to engineer.

Integral action

Interestingly enough, derivative (rate) and integral (reset) control modes are relatively
easy to add to this pneumatic controller mechanism. To add derivative control action,
30
all we need to do is place a restrictor valve between the nozzle tube and the output
feedback bellows, causing the bellows to delay filling or emptying its air pressure over
time:

Fig: PD Control

If any sudden change occurs in PV or SP, the output pressure will saturate before the
output bellows has the opportunity to equalize in pressure with the output signal tube.
Thus, the output pressure spikes with any sudden step change in input: exactly what
we would expect with derivative control action.
If either the PV or the SP ramps over time, the output signal will ramp in direct
proportion (proportional action), but there will also be an added offset of pressure at
the output signal in order to keep air flowing either in or out of the output bellows at
a constant rate to generate the force necessary to balance the changing input signal.
Thus, derivative action causes the output pressure to shift either up or down (depending
on the direction of input change) more than it would with just proportional action alone
in response to a ramping input: exactly what we would expect from a controller with
both proportional and derivative control actions.

Integral action

Integral action requires the addition of a second bellows (a reset bellows, positioned
opposite the output feedback bellows) and another restrictor valve to the mechanism1:
31

Fig: PID Control

This second bellows takes air pressure from the output line and translates it into force
that opposes the original feedback bellows. At first, this may seem counter-productive,
for it nullifies the ability of this mechanism to continuously balance the force generated
by the PV and SP bellows. Indeed, it would render the force-balance system completely
ineffectual if this new reset bellows were allowed to inflate and deflate with no time lag.
However, with a time lag provided by the restriction of the integral adjustment valve
and the volume of the bellows (a sort of pneumatic RC time constant), the nullifying
force of this bellows becomes delayed over time. As this bellows slowly fills (or empties)
with pressurized air from the nozzle, the change in force on the beam causes the regular
output bellows to have to stay ahead of the reset bellows action by constantly filling
(or emptying) at some rate over time.
32
2. Electronic PID Controllers:
Most analog electronic PID controllers utilized operational amplifiers in their designs.
It is relatively easy to construct circuits performing amplification (gain), integration,
differentiation, summation, and other useful control functions with just a few op-amps,
resistors, and capacitors.
The following schematic diagram shows a full PID controller implemented using eight
operational amplifiers, designed to input and output voltage signals representing PV,
SP, and Output:

This controller implements the parallel, or independent PID algorithm, since each
tuning adjustment (P, I, and D) act independently of each other:

3. Digital P-I-D Control:


In the digital control mode, the error signal is first sampled and the controller output
is computed numerically through a digital processor.

Now Controller output for a continuous-type P-I-D controller:


33

The above equation can be discretised at small sampling interval T0 as shown in Fig. 6.

The above algorithm is known as Position algorithm. But the major problem here is
that the error values at all the time instants are to be stored (or at least the second term
of the r.h.s of Eqn. (2) at each instant have to be stored). An alternative approach
known as velocity algorithm can be obtained as follows.

Where
34

The above algorithm is known as Velocity algorithm. The major advantage of this
algorithm is that it is of recursive type. It calculates the incremental output at each
sample instant. As a result, it requires only to store three previous values: e(k), e(k-1)
and e(k-2). Besides it has got several other advantages also those are elaborated below:

Bumpless Transfer: During the transfer from manual to auto mode, it is desired
that the input command to the process should not change suddenly. In Position algo-
rithm, due to the difference between the set point and the output variable, it is always
P
possible that the existing error will wind up and the value of e(k) be large when
the switching from manual to auto mode takes place. This will cause a large change in
the input u(k) in the auto mode. But in the velocity algorithm, this will be prevented,
since it provides only incremental change in input [u(k) − u(k − 1)]. This will lead to
bumpless transfer.

Prevention of Integration Windup: If there is a sudden change in set point, the


P
error will increase continuously to take the value of e(k) in position algorithm to
P
a large value. Afterwards, even if the error reduces to zero, or changes sign, e(k)
will take a large time to come to zero, or change sign, resulting in integration windup.
But in velocity algorithm, as soon as the error changes sign, term corresponding to
the integration Tτio e(k − 1).(in eqn. (4)) will change sign. Thus even if the actuator is
saturated, it will come back to linear range within one sampling period.

Protection against Computer Failure: Another advantage of velocity algorithm


is its ability to protect the process in case of computer failure. In case there is a failure
of the computer, there will be no increment or decrement of the control input, and it
will retain the last value before the computer failure, thus preventing process failure.
However, there are certain pitfalls of velocity algorithm also. In case of presence of
noise in the measurement of the error value at a particular sampling instant, the con-
troller will immediately act, taking it to be a signal. But in position algorithm, the
integration term k−1
P
i=0 e(i) will prevent such a quick action. Some times, a digital filter

with low pass characteristics is used to filter out the unwanted noise before it reaches
the controller input.
APPENDIX Chap 2

Time Domain Specifications


1- The rise time tr is the time it takes the system to
reach the vicinity of its new set point
2- The settling time ts is the time it takes the system
transients to decay
3- The overshoot Mp is the maximum amount the
system overshoot its final value divided by its final
value
4- The peak time tp is the time it takes the system to
reach the maximum overshoot point

π 1.8
tp = tr ≅
ωn 1 − ζ 2
ωn
ζ
−π
1−ζ 2 4.6
Mp =e ts =
ζωn

Steady-state Tracking
K p = lim C(s)G(s) n=0 Position Constant
s →0
K v = lim sC(s)G(s) n =1 Velocity Constant
s →0
K a = lim s 2C(s)G(s) n = 2 Acceleration Constant
s →0

n: Degree of the poles of CG(s) at the origin (the number of


integrators in the loop with unity gain feedback)

• Applying integral control to a plant with no zeros at the


origin makes the system type ≥ I
• All this is true ONLY for unity feedback systems
• Since in Type I systems ess=0 for any CG(s), we say that
the system type is a robust property. 17

You might also like