Proportional & Integral Controllers: S K K S E S U
Proportional & Integral Controllers: S K K S E S U
U (s) K
The PI regulator is: = KP + I
E (s) s
1
G p (s) =
s 2 + 3s + 2
Gc(s) Gp(s)
R(s) E(s) 1 U(s) 1 C(s)
+ K P (1 + )
sTI s + 3s + 2
2
Thus:
1 G p (s)
OLTF = K P ( s + )
TI s
C (s) K P ( s + 1 TI )
CLTF = =
R( s) s( s + 3s + 2) + sK P + K P TI
2
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 (TI large)
2. Increase KP until get satisfactory response
3. Start to add in integral (decreasing TI) until the steady state error
is removed in satisfactory time
(may need to reduce KP if the combination becomes oscillatory)
u(t)
5V
t
C1 R2
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 KP and KI (smaller TI) to be used than possible in pure PI
regulators, but large values of derivative gain (KD) will cause
instability.
Error
{e(t)}
1 de(t )
The PID regulator is given by: u (t ) = K P e(t ) + ∫ e(t )dt + TD
TI dt
KP
Here: KI = K D = K P TD
TI
U (s) KI K D s 2 + K P s + K I N ( s)
= KP + + KDs = =
E (s) s s D( s)
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
Practical PID controllers
U ( s) 1 1
= KP + (1 + sTD )
E ( s) sTI (1 + sαTD )
Circuit realisation:
C2 1 1
R2 R1 C1 R1 + R1 +
= −
U (s) sC sC1
e(t) 1
+
R3
_ u (t ) E ( S ) R 1
3 R2 +
+ sC 2
R 1 C (1 + sC1R1 )
= − 1 + + 2
R3 sC1 R3 C1 (1 + sC2 R2 )
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
A complete derivation results in:
R
C2 R1 1 + 2
1 + s R3
R1 C2
+
U (s) R C 1 R3 C1
= − 1 + 2 +
E (s) 3
R C1 R C (1 + sC2 R2 )
sC R 1 + 2
1 3 R3 C1
Proportional: Gc ( s ) = K P
1
PI: Gc ( s) = K p 1 +
sTI
1 1 + sTD
PID: Gc ( s ) = K P +
sTI 1 + s0.1TD
1. Set TD = 0 & TI = ∞
2. Increase KP until the system just starts to oscillate (KP = KPO).
The frequency of oscillation here is ωc and the period is
TO=2π/ωc.
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.
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:
C ( s) θ KK m τ
= = 2
R( s ) θ ref s + s (1 + KK m K ω ) τ + KK m τ
1 + KK m K ω
Here: ω n = KK m τ and ζ =
2 τKK m
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
ROOT LOCUS
Plotting Techniques
1. Determine the OLTF of the system.
R(s) E(s)
+ Gc(s) GP(s) C(s)
−
H(s)
G ( s)
CLTF =
1 + G ( s) H ( s)
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
3. The characteristic equation is: 1 + G (s) H ( s) = 0
so that the roots of this equation must satisfy the expression:
K ( s + z1 ) K
G( s) H ( s) = = −1
( s + p1 )( s + p2 ) K
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
K ( s + z1 )
G (s) H (s) =
s ( s + p2 )( s + p3 )
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
using (i) we have:
K s + z1 s s + p2 s + p3
=1 K=
s s + p2 s + p3 ⇒ s + z1
using (ii) we have:
± 180 o = ϕ 1 − φ1 − φ 2 − φ 3
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
(D’Azzo & 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
(D’Azzo & 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
∏ s− p c
K= c =1
W
∏ s−z
h =1
h
also since for proper systems: N ≥ W, then: (N−W) 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)).
Proof:
K
lim G ( s ) H ( s ) = lim N −W
= −1
s →∞ s →∞ s
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
jω
(iii) (N-W) = 3 jω
jω
(iv) (N-W) = 4
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.
Ex fig 7.11 σ
(D’Azzo & Houpis “Linear Control System Analysis & Design”)
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.
K
σ
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:
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:
W N
∑ ∠z − ∑ p
c =1
c
h =1
h = ϕ 1 + ϕ 2 + K − φ1 − φ 2 − φ 3 − K = (1 + 2 h)π
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”.
( s + z1 )
Ex: Given G( s) H ( s) =
s( s + p 2 )(s + a − jb)( s + a + jb)
jω
-p3
-p4
8. The Imaginary Axis Crossing Point
“Place s = jωc in the characteristic equation and solve for ωc.”
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:
K K (1 + jωTa 2π )
G ( jω ) H ( j ω ) = G ( jω ) H ( jω ) =
(1 + jωT1 2π )(1 + jωT2 2π ) jω (1 + jωT1 2π )
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
Polar/Nyquist: 90° 90°
−1 0° −1 0°
±180° ±180°
−90° −90°
Type 2:
Bode: (Example)
K2
G ( jω ) H ( jω ) =
( jω ) 2 (1 + jωTa )
Ex Fig 8.10
(D’Azzo & Houpis “Linear Control System Analysis & Design”)
(stable) (unstable)
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 ( ∫ f ( z)dz = j 2π ∑ residues ).
c
Since B(s) cannot have any zeros (poles of CLTF) in the RHP for
system stability, the requirement for stability is:
Z Rb = PRb − N R = 0
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:
K K
G ( s) H (s) = CLTF =
s 2 (1 + sT ) s 2 (1 + sT ) + K
s 2 (1 + sT ) + K
B( s) = 1 + G ( s ) H ( s ) = =0
s 2 (1 + sT )
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).
±180° −1 0°
NR =
from (1): PR(OLTF)= 0,
thus: PR(CLTF)= 0 −
−90°
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3
Type 2 examples
k (1 + jωTa )
G ( jω ) H ( jω ) =
( jω ) (1 + jωT1 )(1 + jωT2 )
2
where T a > T1 + T2 + T3
Ex Fig 8.33
(D’Azzo & 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
(D’Azzo & 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.
Created by Dr Grant Covic for paper: Systems and Control 1998: Document 2 of 3