You are on page 1of 25

Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3

Proportional & Integral Controllers


Proportional + Integral (PI) controllers were developed because of
the desirable property that systems with open loop transfer functions
of type 1 or above have zero steady state error with respect to a step
input.
The PI regulator is:
s
K
K
s E
s U
I
P
+
) (
) (
But can be realised easily in the following form:
Ex: assume we wish to apply PI regulator to a type 0 plant:
2 3
1
) (
2
+ +

s s
s G
p
Thus:
s
s G
T
s K OLTF
p
I
P
) (
)
1
( +
I P P
I P
T K sK s s s
T s K
s R
s C
CLTF
+ + + +
+

) 2 3 (
) 1 (
) (
) (
2
+
K
P
I
sT
1
E(s)
U(s)
) (t e
) (t u
R
1
R
2 C
1
+
_
C(s)
E(s) R(s)
+

U(s)
2 3
1
2
+ + s s
)
1
1 (
I
P
sT
K +
1
2
1
1
) (
) (
R
R
sC
S E
s U
+

,
_

+
1 1 2
1
1
R sC R
R
G
c
(s) G
p
(s)
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
Tuning PI Controllers
General approach to tuning:
1. Initially have no integral gain (T
I
large)
2. Increase K
P
until get satisfactory response
3. Start to add in integral (decreasing T
I
) until the steady state error
is removed in satisfactory time
(may need to reduce K
P
if the combination becomes oscillatory)
Anti-windup in I & PI controllers
Under some operating conditions non-linearities in the plant or
controller can stop an Integral controller from removing the steady
state error. If the Integrator output is not limited, then during this
time the total of the integrated (summed) error {K
I
e(t)dt} will
continue to build. Once the restrictions are finally removed,
problems can arise because this built up energy must be removed
before the integral control can act normally this can take a long
time. To avoid this, anti-windup circuits are added that place t
limits on the integral total. These limits are usually placed on the
summed output of the P&I controller as well.
5V
t
u(t)
C(s) E(s) R(s)
+

U(s)
G
p
(s)
R
1
R
2 C
1
+
_ -1
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
PID (three term) Controllers
Proportional action: responds quickly to changes in error deviation.
Integral action: is slower but removes offsets between the plants
output and the reference.
Derivative action: Speeds up the system response by adding in
control action proportional to the rate of change of the feedback
error. Consequently this is susceptible to noise in the error signal,
which limits the derivative gain. When present this allows larger
values of K
P
and K
I
(smaller T
I
) to be used than possible in pure PI
regulators, but large values of derivative gain (K
D
) will cause
instability.
The PID regulator is given by: 1
]
1

+ +

dt
t de
T dt t e
T
t e K t u
D
I
P
) (
) (
1
) ( ) (
Here:
I
P
I
T
K
K
D P D
T K K
) (
) (
) (
) (
2
s D
s N
s
K s K s K
s K
s
K
K
s E
s U
I P D
D
I
P

+ +
+ +
NB: this transfer function is non-proper and is therefore difficult to
realise in practice.
Proper T.F.: Order N(s) Order D(s)
Strictly proper T.F.: Order N(s) < Order D(s)
These are generally easier to realise, and also reduce the
susceptibility of the derivative action to noise.
Error
{e(t)}
t
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
Practical PID controllers
1
]
1

+
+ +
) 1 (
1
) 1 (
1
) (
) (
D
D
I
P
T s
sT
sT
K
s E
s U

1. The 1/(1+sT
D
) term acts as an effective low-pass filter on the
P+D regulator to attenuate noise in the derivative block.
2. If = 0 the original PID form is obtained
3. Typically = 0.1 to place the filter as far away from the
derivative action as possible. It is generally impractical to move
the filter further away as the control action (effort) becomes too
much and can-not be realised (supply rail or limiters saturate the
control effort)
4. PD controllers could be realised on their own if the plant does
not require an integrator.
Circuit realisation:
If the filter term is disregarded for K
P
then:

,
_

+
+ +

,
_

+
+ +

,
_

+
D
D P
I
P
P
T s
T sK
sT
K
K
R sC
R sC
R sC C
C
R
R
s E
s U
1 ) 1 (
1
) (
) (
2 2
1 1
3 1 1
2
3
1

,
_

+
+
+
+

2
2
1
1
3
1
1
1
1 1
) (
) (
sC
R
sC
R
R
sC
R
S E
s U

,
_

+
+
+ +
) 1 (
) 1 ( 1
2 2
1 1
1
2
3 1 3
1
R sC
R sC
C
C
R sC R
R
) (t e
) (t u
R
3
+
_
R
2
C
2
R
1
C
1
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
A complete derivation results in:

,
_

+
1
1
1
1
1
]
1

,
_

+
1
]
1

+
+
+

,
_

,
_

+
) 1 (
1
1
1
) (
) (
2 2
1
2
3
1
3
2
1 2
1
2
3
1
3 1
1
2
3
1
R sC
C
C
R
R
R
R
R C
s
C
C
R
R
R sC
C
C
R
R
s E
s U
The Ziegler-Nichols tuning Technique for P, PI & PID controllers
(Golten & Verwer

7.7)
Proportional:
P c
K s G ) (
PI:
1
]
1

+
I
p c
sT
K s G
1
1 ) (
PID:
1
]
1

+
+
+
D
D
I
P c
T s
sT
sT
K s G
1 . 0 1
1 1
) (
1. Set T
D
= 0 & T
I
=
2. Increase K
P
until the system just starts to oscillate (K
P
= K
PO
).
The frequency of oscillation here is
c
and the period is
T
O
=2/
c
.
Set controller gains as:
Type
K
P
T
I
T
D
P
PI
PID
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
Notes:
1. Even though first and second order systems cannot in principle
fully oscillate, practical systems always contain transport delays
and non-linearities that make them oscillate if the loop gain is
high.
2. A disadvantage with the Z-N technique is that it really needs to
be performed in real-time in the actual plant. In some cases it
may be undesirable to have the plant/process oscillate even for
tuning purposes.
Example of a practical PD Controller
Rate Feedback with the DC Servo Drive
If we place a tachometer on the servo drive, this will output a voltage
proportional to the mechanical speed
m
. This can be feed back to
the regulator.
As
m
= d/dt, feeding back some measure of the
m
term is like
feeding back the derivative (hence termed rate feedback)
K
C(s) =
E(s) R(s) =
ref
+

U(s)
) 1 (

+ s
K
m
s
1

m
K

Tacho Feedback
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
What effect does this have on our performance specs?
Eg: damping?
Consider the inner loop as a non-unity feedback control system then:
resulting in the following system:

m m
m
ref
KK K KK s s
KK
s R
s C
+ + +

) 1 ( ) (
) (
2
if K

= 0 then the original transfer function arises.


Here:

m n
KK
and
m
m
KK
K KK


2
1+

As opposed to simple proportional control, K can be increased to


give improved response times (larger
n
), while maintaining good
damping by increasing K

.
C(s) =
E(s) R(s) =
ref
+

) 1 ( K KK s
KK
m
m
+ + s
1
m
K
E(s) R(s)
+
U(s)
) 1 (

+ s
K
m

m
K

Tacho Feedback
) 1 (
1
) 1 (

+
+
+

s
K KK
s
KK
m
m
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
ROOT LOCUS
Root locus: is a plot of the paths of the characteristic equation for a
closed loop system (CLTF poles) in the complex plane as a function
of various loop gains.
Plotting Techniques
1. Determine the OLTF of the system.
clearly the OLTF; G(s)H(s) affects the system poles.
In general form G(s)H(s) =
KN s
D s
( )
( )
N(s) is a polynomial in s of order "W"
D(s) is a polynomial in s of order "N"
N is also the order of the characteristic equation
K is called the loop sensitivity if the transfer function is
written so that the coefficients of the highest powers in s
in both the numerator and denominator are unity.
2. Factorise G(s)H(s) into the form (s+a) where a maybe complex.
K
K
) )( (
) (
) ( ) (
2 1
1
p s p s
z s K
s H s G
+ +
+

H(s)
C(s)
E(s) R(s)
G
P
(s)
+

G
c
(s)
) ( ) ( 1
) (
s H s G
s G
CLTF
+

Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
3. The characteristic equation is:
0 ) ( ) ( 1 + s H s G
so that the roots of this equation must satisfy the expression:
1
) )( (
) (
) ( ) (
2 1
1

+ +
+

K
K
p s p s
z s K
s H s G
Because G(s)H(s) is a complex quantity, the above condition
{G(s)H(s) = 1} is in fact a composite of two conditions which
both must be valid.
i. A magnitude condition
1 ) ( ) ( s H s G
(i)
ii. An angle condition
) 2 1 ( ) ( ) ( h s H s G +
(ii)
where h=0, t1, t2,
These conditions can be investigated graphically by plotting all of
the poles and zeros of the OLTF in the complex plane and noting
that each of the terms (s+z
1
),(s+z
2
),...,(s+p
1
),(s+p
2
)... are vectors
terminating at an arbitary point s in the complex plane.
For s to be a point on the root loci it must satisfy both conditions:
Ex:
) )( (
) (
) ( ) (
3 2
1
p s p s s
z s K
s H s G
+ +
+

similar to Ex fig 7.6


(DAzzo & Houpis Linear Control System Analysis & Design)
j

-p
3
-p
2
-z
1
s
-p
1
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
using (i) we have:
1
3 2
1

+ +
+
p s p s s
z s K

1
3 2
z s
p s p s s
K
+
+ +

using (ii) we have:


3 2 1 1
180 t
o
Further examples:
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
Qualitative analysis
How do zeros and higher order poles in the OLTF (G(s)H(s)) affect
the root locus plot?
In order to answer this we'll first try to obtain a conceptual feel for
the effects of additional zeros and poles on simple and more complex
systems by looking at the following root locus plots.
Observations
1. The addition of a zero to the OLTF - pulls the root locus to the
left. This tends to enable poles to be selected that result in stable
faster response times (ie, the settling time is smaller).
2. The addition of a pole to the OLTF - pulls the root locus to the
right so that slower response times are possible, but the new root
locus paths may cross over into the RHP so that K must be
bounded to avoid instability.
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
Ex fig 7.4
(DAzzo & Houpis Linear Control System Analysis & Design)
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
Ex fig 7.5
(DAzzo & Houpis Linear Control System Analysis & Design)
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
Root Locus Plotting Rules
The following eight rules enable fast sketches of root locus to be
accomplished that:
- are a useful check for computer generated plots.
- enable a qualitative idea of the system performance.
1. Number of branches of the Root Locus
The number of branches (root loci paths) equals the number of
poles of the OLTF (N).
2. Real Axis Locus Values
Applying the angle condition to any search path along the real axis:
If the total number of real poles and zeros (in the OLTF) to the
right of a search point s on the real axis is odd, this point lies on the
root locus.
Note:
(i) The angular contribution of complex conjugate pairs (poles and zeros) to
such a point is 360

, and can therefore be ignored.


(ii) A point satisfying this condition may be part of more than one branch.
3. Root Locus Start and End Points

W
h
h
N
c
c
z s
p s
K
1
1
when: s = p
c
, K = 0, and when: s = z
h
, K = .
also since for proper systems: N W, then: (NW) poles must exist
such that their root locus branches do not finish on a zero, but rather
go to infinity (s) as K, (this is equivalent to the effect of a
zero).
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
The starting points (K=0) are the poles of the OLTF locus path.
The ending points (K=) are either zeros of the OLTF or points at
s
=
that are considered equivalent zeros of multiplicity (N-W)).
4. Asymptotes of Locus as s approaches Infinity
N-W branches of the root locus have straight line asymptotes (as
s
)
emulating from a single point whose angles (w.r.t the real
axis) are given by:
) (
) 2 1 (
W N
h

h=0,t1, t2
Proof:
1 lim ) ( ) ( lim


W N
s s
s
K
s H s G
must satisfy the magnitude and angle condition, hence:
) 2 1 ( ) ( ) ( h s K s H s G
W N
+

) 2 1 ( ) ( h s W N +
where
s
As N and W are constants for a given OLTF then as
s
(irrespective of magnitude) the angle constant. Thus the
branches are asymptotic to straight lines.
Examples:
(i) (N-W) = 1

j
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
(ii) (N-W) = 2
(iii) (N-W) = 3
(iv) (N-W) = 4
5. Real Axis Intercept of the Asymptotes
The asymptotes intersect at a point
o
on the real axis
) ( ) ( ) (
1 1
0
W N z p
W
h
h
N
c
c

1
]
1

j
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
6. Breakaway Point on the Real Axis
In many instances root loci must breakaway from the real axis (ie,
become complex) in order to reach the end points (K= ). If these
loci return to the real axis at some later stage there will also be a
break-in point.
Plotting the loop sensitivity (K) against the real axis demonstrates
when these conditions arise.
Examples: If a locus exists on the real axis between:
(i) two poles: the locus starts at K=0 and as K increases must
breakaway in order to finish on either a zero or a point of
infinity (both with K=).
Ex fig 7.11
(DAzzo & Houpis Linear Control System Analysis & Design)
(ii) two zeros or a zero & a point of infinity: 2 branches must
break-in from the complex region between them so as to
terminate at these end points.

K
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
(iii)a pole and a zero: either pairs of breakaway and break-in points
occur, or none at all.
Breakaway and break-in points can be identified as follows.
For any point on the root locus:
G(s)H(s) = KN(s)/D(s) = -1
hence
K = -D(s)/N(s)
so that
d(K)/ds = 0
gives the minimum & maximum value of K with varying s.
Only answers with pure real values are of interest (s) and these
must satisfy rule 2.
Ex:

K
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
7. Complex Pole (or Zero) Angle of Departure
The angle condition can be used to determine the direction that a
locus branch leaves a complex pole, or enters a complex zero.
Recall that:
) 2 1 (
3 2 1 2 1
1 1
h p z
N
h
h
W
c
c
+ + +


K K
A test point is chosen very close to, but not exactly on, the complex
root of interest (r) so that all angles between the remaining roots
and this test point are equivalent to the angles measured between
these roots and r.
Ex: Given
) )( )( (
) (
) ( ) (
2
1
jb a s jb a s p s s
z s
s H s G
+ + + +
+

Thus to find the angle of departure for complex pole P


3
(-a+jb):
( )
o
180
4 3 2 1 1
+ + +
8. The Imaginary Axis Crossing Point
Place s j
c
in the characteristic equation and solve for
c
.

j
-z
1
-p
2 -p
1
-p
3
-p
4
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
Control in the Frequency Domain
Bode and Polar Plots of Type 0-2 Transfer Functions
Type 0: Type 1:
Bode:
) 2 1 )( 2 1 (
) ( ) (
2 1


T j T j
K
j H j G
+ +

) 2 1 (
) 2 1 (
) ( ) (
1



T j j
T j K
j H j G
a
+
+

K=10, T
1
=2/10, T
2
=2/100 K=100, T
a
=2/100, T
1
=2/10
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
Polar/Nyquist:
Type 2:
Bode: (Example)
Ex Fig 8.10
(DAzzo & Houpis Linear Control System Analysis & Design)
Polar: (Additional examples of typical type 2 polar plots)
(stable) (unstable)
Ex Fig 8.16, 8.18
(DAzzo & Houpis Linear Control System Analysis & Design)
90

90

t180
1 0

90

t180
1
90

) 1 ( ) (
) ( ) (
2
2
a
T j j
K
j H j G


+

Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
Nyquist Stability in the Frequency domain
The Nyquist criterion applied to a CLTF states that:
For stability; none of the roots of the characteristic equation must
lie on or to the right of the imaginary axis in the s-plane.
This rule can be translated into the frequency domain using
Cauchies Theorem with a closed loop contour c incorporating the
whole RHP (

c
residues j dz z f 2 ) ( ).
In practice this rule must applied to the solution of the CLTFs
characteristic equation. Thus if:
0 ) ( ) ( 1 ) ( + s H s G s B
Any zero of B(s) inside the RHP will create a +2 rotation, while
any pole of B(s) will create a 2 rotation. The total number of
rotations of the poles and zeros are respectively: P
Rb
, Z
Rb
.
There will be a net number of rotations related to the number of
poles and zeros of B(s) inside the RHP. N
R
= Z
Rb
+ P
Rb
.
Since B(s) cannot have any zeros (poles of CLTF) in the RHP for
system stability, the requirement for stability is:
0
R Rb Rb
N P Z
However, the poles of B(s) are simply the poles of the OLTF, while
the zeros of B(s) are the poles of the CLTF.
Proof by example:
) 1 (
) ( ) (
2
sT s
K
s H s G
+

K sT s
K
CLTF
+ +

) 1 (
2
0
) 1 (
) 1 (
) ( ) ( 1 ) (
2
2

+
+ +
+
sT s
K sT s
s H s G s B
So that our new stability rule can be rewritten as:
0
) ( ) (

R OLTF R CLTF R
N P P
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
In the frequency domain this test for stability only requires a plot of
B(j) as " < < +" and we need to determine the net number of
rotations about the origin (B(j)=0).
Alternatively since B(j ) 1 = G(j )H(j ), we can plot G(j )H(j )
and look at the net rotations about the 1 point:
Type 0 system stability.
Given: G j H j
k
j T j T j T
( ) ( )
( )( )( )

+ + + 1 1 1
1 2 3
... (1)
plotting this results in:
N is determined by noting the direction of increasing at intersections of an
arbitrary radial line from 1 with the plot of G(j)H(j).
A Condition on the Nyquist Stability Theorem
A simple condition, necessary for valid application of the Nyquist
Theorem requires that:
The contour integral c must never pass through any poles or
zeros of B(s).
In systems Type 1, stable poles lie at the origin. Thus the path of
the contour in the s-plane must be modified so that it does not pass
through the origin. This is accomplished by taking an infinitely
small detour around the origin in the s-plane from j0 +j0.
N
R
=
from (1): P
R(OLTF)
0,
thus: P
R(CLTF)
0
1
t180

90

90

Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
The effect of this in the frequency domain on a type n system is to
add n infinitely large cw semi-circles to the Nyquist plot connecting
the j0 and +j0 points.
Proof:
The modification to the contour se
j
(-90<<90) is a ccw semi-circle
with infinitely small radius . For a type n system near the origin as
s0:


jn
n n j n
j
e
K
e
K
j
K
s H s G


) ( ) (
) ( ) ( lim
0
A type 1 example
G j H j
k
j j T j T
( ) ( )
( )( )

+ + 1 1
1 2
Ex Fig 8.27, 8.29, 8.30
(DAzzo & Houpis Linear Control System Analysis & Design)
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
Type 2 examples
G j H j
k j T
j j T j T
a
( ) ( )
( )
( ) ( )( )


+
+ +
1
1 1
2
1 2
where T T T T
a
> + +
1 2 3
Ex Fig 8.33
(DAzzo & Houpis Linear Control System Analysis & Design)
Conditionally stable systems can also arise where both increases and
decreases in k will cause instability (as shown below)
Ex Fig 8.34
(DAzzo & Houpis Linear Control System Analysis & Design)
Final notes:
Only the positive part of G(j)H(j) for 0<<+ need be plotted
since the polar plots are symmetrical about the real axis.
If the curve of G(j)H(j) passes through -1, Nyquist fails to tell us
anything since this is equivalent to zeros on the Imaginary axis,
however this also means the CL system will have a term which
produces sustained oscillations. This condition is considered
unstable.

You might also like