Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
31 views

Control

The document summarizes 10 experiments conducted in a control engineering laboratory. Experiment 1 derives mathematical models and transfer functions of electrical circuits using Kirchhoff's laws and Laplace transforms. It shows how to model circuits in Simulink. Experiment 2 analyzes first-order systems using a passive RC filter circuit as an example. It derives the circuit's transfer function. Experiment 3 examines second-order systems. Later experiments cover state-space representation, steady-state error analysis, root locus and Bode plots, and compensation techniques applied to root locus plots. The experiments aim to analyze system characteristics and responses both mathematically and using Simulink models.

Uploaded by

HuyThai
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Control

The document summarizes 10 experiments conducted in a control engineering laboratory. Experiment 1 derives mathematical models and transfer functions of electrical circuits using Kirchhoff's laws and Laplace transforms. It shows how to model circuits in Simulink. Experiment 2 analyzes first-order systems using a passive RC filter circuit as an example. It derives the circuit's transfer function. Experiment 3 examines second-order systems. Later experiments cover state-space representation, steady-state error analysis, root locus and Bode plots, and compensation techniques applied to root locus plots. The experiments aim to analyze system characteristics and responses both mathematically and using Simulink models.

Uploaded by

HuyThai
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 55

University of Technology

Department of Electrical Engineering


Control Engineering Lab.

CONTROL ENGINEERING
LABORATORY

By

Dr. Abdul. Rh. Humed


M.Sc. Qussay Salim Tawfeeq
M.Sc. Nihad Mohammed Ameen
M.Sc. Waleed H. Habeeb

September 2013

1
Contents

1-Experiment One: Mathematical Model response.

2-Experiment Two: First Order Systems Analysis.

3-Experiment Three: Second Order Systems Analysis.

4-Experiment Four: State Space Representation.

5-Experiment Five: Steady State Error Analysis

6-Experiment Six: Root Locus plot.

7-Experiment Seven: Bode Plot.

8-Experiment Eight: Effect of addition of poles and zeros on the Root-Locus

plot.

9-Experiment Nine: Lead Compensation Techniques Based on the Root-Locus

Approach.

10-Experiment Ten: Lag Compensation Techniques Based on the Root-Locus

Approach.

2
Experiment One

Mathematical Model Response

Object
1-To learn how to derive the transfer function of a linear electric system.
2- To represent the system response on personal computer by using Matlab
and Simulink with the transfer function of the system .

Theory
The transfer function of single input single output dynamic system is defined
as:
G (s) = Υ (s) Χ( s) (1)
Where

Υ ( s ) = laplace transform of the output signal y (t )

Χ( s ) = laplace transform of the input signal x(t )


The block diagram which represents equation (1) is shown in figure (1-1).

X(s) Y(s)
G(s)

Fig (1-1) Transfer Function block diagram.

3
Figure (1-2) shows the block diagram for closed loop control system.

E(s) C(s)
R(s) +
G(s)
-
B(s)

H(s)

Fig. (1-2) Block diagram of closed loop control system.


Where
G(s) is the process (plant) of the system.
H(s) is the feedback measuring unit (transducer).
If the closed loop control system output signal C(s) does not follow the changes of
input reference R(s) the error signal E(s) is indicated, which may be positive or
negative.

Ε ( s ) = R ( s ) − Β( s ) .... (2)
B( s) = C ( s) H ( s) ..... (3)
Substituting for B(s) in (2) from (3) then
Ε( s ) = R ( s ) − C ( s ) Η ( s ) ..... (4)
Where

C ( s ) = Ε( s ) G ( s ) ..... (5)
From (4) and (5) the transfer function becomes
C (s) G (s)
= ..... (6)
R(s) 1 + G (s) Η (s)
4
Note: if we have positive feedback the transfer function becomes
C (s) G (s)
= ..... (7 )
R(s) 1 − G (s) Η (s)

We can find the transfer function of any passive electric circuit by applying
kirckoff's laws, for example to find the transfer function of the (R-L-C) circuit
shown in figure (1-3).

x(t) R L
Ac C y(t)
source

Fig. (1-3): (R-L-C) circuit.


The series connection equation is written as:

ei (t ) = L
di (t ) 1
+ ∫ i (t )dt + R i (t ) ..... (8)
dt C

Where i (t ) is the current in the loop.


By taking Laplace transform and assuming all initial conditions are zero we get:
1
Εi ( s ) = Ls I ( s ) + I (s) + R I (s) ..... (9)
Cs
1
Ε0 (s) = I (s) ..... (10)
Cs

5
From (9) and (10) we get :

E0 ( s )
=
(1 Cs ) I ( s) ...... (11)
Ei ( s ) (Ls + 1 / Cs + R ) I ( s )

E0 (s)
=
1
(12)
Ei ( s) (
LCs 2 + RCs + 1 ) ......

By using Matlab and Simulink the transfer function can performed to


represent the electric circuit and to obtain the system response as shown in figure
(1-4).

mux scope

input G(s)

Fig. (1-4): Matlab and Simulink representation.

6
Electric circuits

x(t)
R = 0.68 KΩ
Ac C = 10µ ⋅ f y(t)
source

1
Τ( s ) =
RCs + 1

Fig. (1-5): (R-C) circuit.

x(t) L = 0.5 Η
A.c R = 0.68 KΩ y(t)
source

1
Τ( s ) =
(L R ) s +1
Fig. (1-6): (L-R) circuit.

7
x(t)
R = 0.68 KΩ L = 0.5 Η
Ac y(t)
C = 10 µ ⋅ f
source

1
T ( s) =
(
LCs 2 + RCs + 1 )
Fig. (1-7): (R-L-C) circuit.

x(t)
R = 0.68 KΩ L = 0.5 Η
A.c y(t)
source R = 0.68 KΩ

1
T ( s) =
(
2 ( L 2 R) s + 1 )
Fig. (1-8): (R-L-R) circuit.
Procedure
U

1- For the transfer functions of figures (1-5), (1-6), (1-7) and (1-8), apply
unit step function x(t) and show the output response y(t) on personal
computer using Matlab and Simulink.
2- Plot the output response y (t).

8
Discussion
1- Derive the transfer function of the electric circuits.
2- Derive the Laplace transform of a test signal :

f (t ) = 3 sin wt
3- For the (R-C) circuit shown in figure (1-5) , plot the output response
y(t) for unit step input e(t) mathematically .

9
Experiment Two
First Order Systems Analysis
Object
U

To study the characteristics of time response of first order control system.

Theory
U

The simplest first order control system can be represented by the passive filter
(R-C) circuit shown in figure (2-1).

x(t) R
A.c C y(t)
source

Fig. (2-1): electric (R-C) circuit.


The transfer function can be obtained as follows:
Step 1:
1
C∫
ei (t ) = R i (t ) + i (t ) dt ..... (1)

Where i (t ) is the current in the loop.


Step 2: Applying Laplace transform assuming that the initial conditions equal to
zero, the equation becomes:
1
Εi (s) = R I (s) + I (s) ..... (2)
Cs
1
E0 ( s) = I (s) ....... (3)
Cs
Step 3: From (2) and (3) the transfer function becomes:

10
E0 ( s ) 1
= ...... (4)
Ei ( s) (RCs + 1)

The analog solution of the first order system can be obtained from the op-amp active
filter, figure (2-2)

C = 0 .1 µ ⋅ f

R = 10 KΩ
V input V output
-
R = 10 KΩ +

Fig. (2-2): op-amp representation.


The system response to a unit step input for a first order control system can be
represented in figure (2-3).

Fig. (2-3): The system response to a unit step input.


11
The block diagram representation for figure (2-2) is as shown in figure (2-4).

R(s) C(s)
k 1/(Ts+1)

Fig (2-4): Block diagram representation.

Where T =RC time constant of the system, k = the gain of op- amp.

By using Matlab and Simulink the transfer function can performed to represent it’s

response as shown in figure (2-5).

mux scope
input k 1/(Ts+1)

Fig. (2-5): Block Diagram in Matlab.

12
Procedure
1- Connect the circuit as shown in figure (2-5), apply unit step function
assuming that the time constant T=1 and the values of k = 0.5, 1, 2
then sketch the system response y (t).

2- Repeat step 1 for an impulse and ramp input.

Discussion
1- From equation (4) find the transient response using Laplace transforms.
2- Why the output for 3 times constant (3T) is not the same for different
cases.
3- Do you observe any relation between the output at one time constant
(T) and the value of gain (k).

13
Experiment Three
Second Order Systems Analysis
Object
U

To study the characteristics of time response of second order control system.


Theory
U

The transient response to unit step for a second order control system can be
represented in figure (3-1).

Fig. (3-1): second order transient response.


Transient response terms are as follows:
tr = rise time (the time to reach 0-100 %, 5-95 % and 10-90 % of the input
signal).
tp = peak time (the time to reach the maximum overshoot).

14
Mp = maximum overshoot.
ts = settling time (the time to reach 5% or 2% of steady state error).

We can find the system parameters by the equations:

−ξ Π / 1−ξ 2 ,
Mp = e tp = ∏ / ω d

3
ts = for 5% E s − s
ξ ωn
4
ts = for 2% E s − s
ξω n

ωd = ωn 1 − ξ 2 , tr =∏ - β / ωd , -1
β = cos ξ

Μp = max imum overshoot ⋅

ωd = damping of natural frequency ⋅

ω n = natural frequency ⋅

ξ = damping ratio ⋅
Figure (3-2) shows the block diagram of closed loop second order system

R(s) E(s) C(s)


+ ωn 2
- s + 2ξωn s
2

Fig. (3-2): block diagram of second order control system.

15
The equation becomes:

C (s) G (s)
=
R(s) 1 + G (s) H (s)

ωn 2
G (s) = 2
s + 2ξω n s
Η ( s) = 1
C (s) ωn 2

= 2
R( s) s + 2 ξ ω n s + ω n 2
By using Matlab and Simulink the block diagram representation can take the form:

m
ωn 2
u scope
input
+ s + 2ξω n s
2 x
-

Fig. (3-3): Block diagram in Matlab.

The practical circuit of the second order control system can represented using two
integrators and summing circuit with a feedback with a unity gain connected to the
summing circuit throw a variable resistance as shown in figure (3-4).

16
C = 0.1 µ ⋅ f

R = 100 KΩ
Vout -

R = 15 KΩ
R = 100 KΩ C = 0.1 µ ⋅ f

Vin R = 100 KΩ
- -
R = 100 KΩ
+
R =100 KΩ +

R = 33 KΩ
R =15 KΩ
-

Fig. (3-4): practical circuit of the second order control system.

Procedure
1- Using Matlab and Simulink connect the circuit shown in figure (3-3),
show the unit step response y (t) on personal computer for the values:

ωn = 2 and ξ = 0, 0.3 , 0.7 , 1


Then sketch the system response.
2- Repeat step 1 for the values: ξ = 0.7 and ω n = 0.5 , 1 , 4 , 10

Discussion
1- For the values ξ = 0.7 and ω n = 2 find the rise time, peak
time, settling time, and the maximum peak values.
2- Do you observe any relation between the system damping ratio and the
system settling time.
3- According to your measurements suggest the relationship between the
peak overshoot and the damping ratio.

17
Experiment Four
State Space Representation

Object
U U

To represent a modern complex systems using first order differential equation


of state space analysis.

Theory
U

The modern trend in engineering control systems is toward greater complexity


due to the requirements of complex tasks and good accuracy. Modern complex
systems may have many inputs and many outputs linear or nonlinear systems, to
analyze such systems it is essential to reduce the complexity of the mathematical
expressions
State-space representation of differential equation used to analysis and
design of multi-input multi-output, linear or non-linear, time-variant or time-
invariant systems. This new approach is based on the concept of state; so we must
define the state variable, state vector and state space.

State Variable: the state variable of a dynamic system are the smallest set of
variables which determines the state of the dynamic system, if (n-variables) are
needed to completely describe the behavior of the dynamic system then the variables
x1 (t ) , x 2 (t ) , .......x n (t ) are a set of state variables.

State Vector: if (n-state variables) are needed to completely describe the behavior
of a given system, then the (n-state variables) can be considered to be a component
of a state vector X (t).

18
State Space: if the (n-dimensional space) whose coordinates axis consist of the axis

x1 axis, x 2 axis, .......x n axis is called a state space.


System design in modern control theory can:
•Enables the engineer to design an optimal control system.
•Design multiple-input and multiple-output systems, which may be linear or non-
linear system.
•Enables the engineer to include initial conditions in the design.

For the ordinary differential equation of n-order we can find the state space
representation by obtaining the algebraic equation and the output equation, which is
a set of the first-order differential equation.
Consider the system defined by

y n + a1 y n−1 + ...... + an−1 y '+ an y = u (1)


We can find the state space representation by assuming that

x1 = y
x2 = y '
. . .
xn = y n −1

Then the equation can be written as

x1' = x2
x2' = x3
. . .
xn' −1 = xn
xn' = − an x1 − . . . − a1 xn + u

19
Then the algebraic equation of the first-order differential equation can be written as:

(2)
'
X = A x+B u .....

Where

 
0 1 0. . .0 
 
 x1 ,    0 
 ,
 x2 
0 0 1. . . 0  0 
   
.    . 
X = .  and A = . . . B= 
'
 and
  . 
 
. 
0 0 0 . . .1  0 
   
x ,    1 
 n  

− a n − a n −1 − a n − 2 ... − a1 
 

The output equation for the first order differential equation can be written as:

y=C x ..... (3)


Where

 x1 
x 
 2 
x = . 
 
. 
 xn 
 
and

C = [1 0. . .0 ]

20
Consider the R-L-C circuit

R L
v(t)
Ac C vc(t)
source

Fig. (4-1): R-L-C circuit.

In vector-matrix notation, we have:

dvc
C =i
dt
di
L + R i + vc = v
dt

 −R −1
  L1 
i .   L L
 i   
 . =   vc  +   [v]
v   1 0
   0
C  

i 
y = [ 0 1 ]  
 
vc 
 

21
Example: Consider the system defined by
''' '' '

y + 6 y + 11 y + 6 y = 6u

Where (y) is the output and (u) is the input of the system

Solution:

let
x1 = y
x2 = y '
x3 = y ''
we can obtain
x1' = x2
x2' = x3
x3' = −6 x1 − 11 x2 − 6 x3 + 6 u

The output equation and the state equation can be written as

 x '1  0 1 0  x1  0
 '     x  + 0 [u ]
  
x 2 = 0 0 1  2  
 x '3  − 6 − 11 − 6   x3  6
   
 x1 
y = 1 0 0 x 
   2
 x3 

22
By using Matlab and Simulink the transfer function of the system can perform
to represent the system response on personal computer as shown in figure (4-2).

x ' = Ax + Bu
y = Cx
m
u scope
6
input s 3
+ 6 s 2
+ 11 s + 6 x

Fig. (4-2): Matlab and Simulink representation.

Procedure
1. Connect the circuit of figure (4-2) and apply a unit step input signal.

2. Plot the output system response y (t ) .

Discussion
1. Derive the transfer function of the (R-L-R) circuit, and then find the state
space representation of the circuit.

2. Find the output y (t ) for the system represented by transfer function shown
in figure (4-2) analytically and compare with the simulated result.
(Assuming all initial conditions is zero)

23
Experiment Five
Steady State Error Analysis

Object
1-To show how to classify the steady state error according to the type of the system.
2-To show the ability of control system to follow step, ramp and parabolic inputs.

Theory
The Steady-State error in controlled system indicates the goodness of the
controller Figure (5-1) shows the block diagram for closed loop control system.

R(s) E(s) C(s)


+ G(s)
-
B(s)

H(s)

Fig. (5-1): Block Diagram for closed loop control system.

If the closed loop control system output signal C(s) does not follow the changes of
input reference R(s) the error signal E(s) is indicated.
Ε ( s ) = R ( s ) − Β( s ) ... (1)
B( s) = C ( s) H ( s) ... (2)
Substituting for B(s) in (1) from (2) then

Ε( s ) = R ( s ) − C ( s ) Η ( s ) .... (3)
Where

C ( s ) = Ε( s ) G ( s ) .... (4)

24
From (3) and (4) the transfer function becomes
C (s) G (s)
= ... (5)
R(s) 1 + G (s) Η (s)
Then we can find that
E (s) 1
= ... (6)
R( s) 1 + G ( s) Η ( s)

Table (5-1): shows the steady state error in terms of gain K.


Step input Ramp input Acceleration
R (t)=1 R (t) =t R (t) =t^2

Type 0 system 1/ (1+k) Infinity Infinity

Type 1 system 0 1/Kv Infinity

Type 2 system 0 0 1/Ka

The error coefficient Kp, Kv, Ka describes the ability of the system to reduce
or eliminate the Steady-State error. Therefore they are indicative of steady state
performance.
By using Matlab and Simulink the transfer function can performed to
represent the system response to step input in personal computer as shown in figure
(5-2) for type zero, figure (5-3) for type one and figure (5-4) for type two.

25
m
input u scope
x
1
+- S +1

Fig. (5-2): Matlab and Simulink representation.

m
input u scope
x
1 1
+- S S +1

Fig. (5-3): Matlab and Simulink representation.

m
input u scope
x
1 1
+-
S2 S +1

Fig. (5-4): Matlab and Simulink representation.

26
Procedure
1- For the block diagram of figures (5-2), (5-3) and (5-4) show the output
response y (t) for a unit step input on personal computer using Matlab
and Simulink.
2- Repeat step 1 for a ramp input.

Discussion
1. Derive the transfer function of figures (5-2), (5-3) and (5-4).
2. Find the steady state error using Laplace transform for a unit step,
and ramp input.
3. Compare the results obtained with the simulated results.

27
Experiment Six
Root Locus plot

Object
1-To locate the closed loop poles in s-plane.
2-To investigate the closed loop system stability.

Theory
A root loci plot is simply a plot of the zeros and the poles values on a graph
with real and imaginary coordinates. The root locus is a curve of the location of the
poles of a transfer function as some parameter is varied.
Such a plot shows clearly the contribution of each open loop pole or zero to
the locations of the closed loop poles. This method is very powerful graphical
technique for investigating the effects of the variation of a system parameter on the
locations of the closed loop poles. The closed loop poles are the roots of the
characteristic equation of the system while the locus of the roots as the gain varies
from zero to infinity.
From the design viewpoint, in some systems simple gain adjustment can
move the closed loop poles to the desired locations. Root loci are completed to
select the best parameter value for stability. A normal interpretation of improving
stability is when the real part of a pole is further left of the imaginary axis.
A control system is often developed into an equation as shown below
Y (s) N (s)
= = F (s) (1)
U ( s) D( s)
K ⋅ (s − z1 )(s − z 2 ) ⋅ ⋅ ⋅ ⋅(s − z m )
F ( s) = (2)
(s − p1 )(s − p 2 )(s − p3 ) ⋅ ⋅ ⋅ ⋅(s − p n )

28
N ( s ) = (s − z1 )(s − z 2 ) ⋅ ⋅ ⋅ ⋅(s − z m ) (3)
D(s ) = (s − p1 )(s − p 2 )(s − p3 ) ⋅ ⋅ ⋅ ⋅(s − p n ) (4)
where n>m
F (s) = 0 when s = z 1 , z 2 ⋅ ⋅ ⋅ ⋅z m
F (s) = ∞ when s = p1 , p 2 , p 3 ⋅ ⋅ ⋅ ⋅ p n

A typical feedback system is shown in figure (6-1).

R(s) E(s) C(s)


+ K G(s)
-
Y(s)

H(s)

Fig. (6-1): block diagram of feedback control system.

The open-loop transfer function between the input R(s) and the measured output
Y(s) is:

T ( s) = K ⋅ G ( s) H ( s) ... (5)
The closed-loop transfer function is:

K ⋅ G(s)
C ( s)
= ... (6)
R( s) 1 + K ⋅ G ( s) H ( s)
C (s)
if =∞ then K ⋅ G ( S ) H ( S ) = −1
R( s)

29
It can be written as:

K =
1
.... (7 )
G (s) H (s)
θ = ∠KG ( s ) H ( s ) = odd multiples of 180... (8)
The complex numbers in polar form have the following properties:

Z1 Z1
Z1 ⋅ Z 2 = Z1 ⋅ Z 2 and =
Z2 Z2
Z 
∠(Z 1 ⋅ Z 2 ) = ∠Z 1 + ∠Z 2 and ∠  1  = ∠Z 1 − ∠Z 2
Z2 

Example 1
For a closed loop system

1
G (s) = , H (s) = 1
s ( s + 2)
The root locus plot can be obtained from the closed loop characteristic equation:

s 2 + 2s + K = 0

The root of the characteristic equation:

s = −1 ± 1− K
when K = 0 the poles at s = 0 , s = −2
when K = 1 the poles at s = −1
when K = ∞ s = −1 ± j∞

30
The relevant root locus is as shown in figure (6-2).

Fig.(6-2): The relevant root locus.

The system is stable for all values of K ≥ 0.

Example 2
For a closed loop system

2s
G ( s) = , H (s) = 1
s2 +1
The root locus plot can be obtained from the closed loop characteristic equation:

s 2 + 2K s + 1 = 0

31
The root of the characteristic equation:

s = −K ± K 2 −1
when K = 0 the poles at s=+j , s=−j
when K = 1 the poles at s = −1
when K = ∞ s = −∞ s=0

The relevant root locus is as shown in figure (6-3)

Fig.(6-3): The relevant root locus.

The system has the best stability point at K = 1, at values below this root loci moves
towards the instability boundary.

Procedure
Using MATLAB and SIMULINK to draw the root locus diagram for the
following transfer function:

s+2
G (s ) =
(3s + 1)(2 s + 1)

32
Use the instruction:

num = [1 2] ;
den = conv ( [3 1], [2 1] ) ;
rlocus (num, den);

Discussion

1. What is the type and order of the system?


2. From the simulated result obtained is the system stable.
3. Draw the theoretical (asymptotic only) polar plot of the open loop
system and compare it with the simulated result.
4- What are the advantages of root locus method?

33
Experiment Seven
Bode Plot
Object
1-To study the frequency response analysis by using bode plot algorithm.
2-To investigate the closed loop system stability using open loop transfer function.

Theory
The frequency response is the steady state response of a system to a
sinusoidal input; the category is the plot of the magnitude of the output in db versus
frequency using logarithmic scale, and the phase shift versus frequency as in figure
(7-1).

Fiq. (7-1): Bode plot

34
The frequency response characteristics of the system can be obtained directly from
the sinusoidal transfer function in which "s" is replaced by "jw", where "w" is the
frequency.
Consider the linear time invariant system shown in figure (7-2) where the
transfer function is G(s) and the input is a sinusoidal and it is given by x (t) and the
output is y (t) :

X(s) Y(s)
T(s)

Fig. (7-2): linear time invariant system.

i / p = X sin (ωt )
o / p = y sin (ωt + φ )
Shows G (jw) is complex quantity and it can be written as:

G ( j ω ) = G ( j ω ) e jφ

G ( jw) = 20 log (Re ) 2 + (Im) 2

imaginary part of G ( jω )
φ = ∠G ( jω ) = tan −1[ ]
real part of G ( jω )

e j (wt +φ ) − e − j (wt +φ )
y (t ) = X G ( jω )
2j
y (t ) = X G ( jω ) sin (ωt + φ )

35
The amplitude and phase shift ratio of the output to the input is given by:

y ( jω )
G ( jω ) =
X ( jω )
y ( jω )
∠G ( jω ) = ∠
X ( jω )
To completely characterize a linear system in the frequency domain we must specify
both the amplitude ratio and the phase angle as function of frequency.
Example

10(s + 4 )
G (s ) =
(s )(s + 2)(s + 5)(s + 10)
For the open loop transfer function:

Find the closed loop frequency response.

Solution:
Replace (s) by (jw)

10( jw + 4)
G ( jw) =
( jw)( jw + 2)( jw + 5)( jw + 10)

Find the overall gain

 jw 
0.4 + 1
G ( jw) =  4 
( jw) jw + 1 jw + 1 jw + 1
 2  5  10 

36
Then plot of the magnitude of the output versus frequency and the phase shift versus
frequency using semi-log paper.

G ( jw) = 20 log 0.4 + 20 log


jw jw jw jw
+ 1 − 20 log jw − 20 log + 1 − 20 log + 1 − 20 log +1
4 2 5 10

w w w w
∠G ( jw) = 0 + tan −1 − 90 − tan −1 − tan −1 − tan −1
4 2 5 10

Figure (7-3) shows the closed loop frequency response.

Fig. (7-3): closed loop frequency response.


Example
Find the steady state response for the system where the open loop transfer function
is given by:
G (s ) =
64
( s 2 + 8s + 64)
37
64 1
=
(s + 8s + 64
2
)  w  w
2

1 + 2ζ  j  +  j 
 wn   wn 
1
Mr = ; wr = wn 1 − 2ζ 2
2 2
 w2   w 
1 − 2  +  2ζ 
 w 
 n   wn 
ω
2 ξ
ωn
φ = − tan −1
ω2
1−
ωn 2
Figure (7-4) shows the closed loop frequency response.

Fig. (7-4) closed loop frequency response.

38
Procedure
Using Mat lab and Semolina to draw the bode diagram for the following
transfer function:
s+2
G (s )H (s ) =
s( s + 1)( s 2 + 6s + 8)

Use the instruction:

num = [1 2] ;
den = conv ( [1 1 0], [1 6 8] ) ;
bode(num, den);

Discussion
1. From the values of G.M. and the P.M. Is the system stable?
2. Draw the theoretical (asymptotic only) bode plot of the open
loop system and compare it with the simulated result.
3. What are the advantages of frequency response method?

39
Experiment Eight
Effects of the Addition of Poles and Zeros
on the Root-Locus plot

Object :
To study the adding effects of the poles and zeros on the resultant output
root-locus shaping .and to study their effects on the time response.

Theory :
The root-locus method is a graphical method for determining the locations of
all closed-loop poles from knowledge of the locations of the open-loop poles and
zeros as some parameter (usually the gain) is varied from zero to infinity. The
method yields a clear indication of the effects of parameter adjustment.
In practice, the root-locus plot of a system may indicate that the desired
performance cannot be achieved just by the adjustment of gain. In fact, in some
cases, the system may not be stable for all values of gain. Then it is necessary to
reshape the root loci to meet the performance specifications.
In designing a control system, if other than a gain adjustment is required, we
must modify the original root loci by inserting a suitable compensator. Once the
effects on the root locus of the addition of poles and/or zeros are fully understood,
we can readily determine the locations of the pole(s) and zero(s) of the compensator
that will reshape the root locus as desired. In essence, in the design by the root-locus
method, the root loci of the system are reshaped through the use of a compensator so
that a pair of dominant closed-loop poles can be placed at the desired location.
(Often, the damping ratio and un - damped natural frequency of a pair of dominant
closed-loop poles are specified).

Effects of the Addition of Poles:


The addition of a pole to the open-loop transfer function has the effect of
pulling the root locus to the right, tending to lower the system’s relative stability and
to slow down the settling of the response Figure (8-1) shows examples of root loci
illustrating the effects of the addition of a pole to a single-pole system and the
addition of two poles to a single-pole system.

40
Figure (8-1)
Procedure:
1. For the open loop transfer function G(s) = 4 / s ( s + 2) , plot the root locus by
using the following program:
clear
num=[4];
den=[1 2 0];
rlocus(num,den);

Root Locus

0.6

0.4

0.2
Imaginary Axis

-0.2

-0.4

-0.6

-0.8
-2.5 -2 -1.5 -1 -0.5 0
Real Axis

41
2. And then, we have to see output response (closed loop system with unity
feedback ) for the unit step with using the following program :
clear
num=[4];
den=[1 2 4];
t=0:0.05:20;
c=step(num,den,t);
plot(t,c);
grid on;

1.4

1.2

0.8

0.6

0.4

0.2

0
0 2 4 6 8 10

3. Repeat steps ( 1 and 2) with adding a single real pole s = - 10 .


4. Repeat steps ( 1 and 2) with adding a single real pole s = - 6
5. Repeat steps ( 1 and 2) with adding a single real pole s = - 1
6. Compare the resultant shapes of the root locus with the actual system
on the same graphical paper.
Discussion:
• Discuss the effect of adding a pole on the root locus shape, through the
relative stability.
• Discuss the effect of adding a pole on time response, through the speed
• Response, overshoot ….etc.

42
Effects of the Addition of Zeros:
The addition of a zero to the open-loop transfer function has the effect of
pulling the root locus to the left, tending to make the system more stable and to
speed up the settling of the response. (Physically, the addition of a zero in the feed-
forward transfer function means the addition of derivative control to the system. The
effect of such control is to introduce a degree of anticipation into the system and
speed up the transient response.)
Figure (8-2)(a) shows the root loci for a system that is stable for small gain
but unstable for large gain .
Figures (8-2)(b), (c), and (d) show root-locus plots for the system when a
zero is added to the open-loop transfer function. Notice that when a zero is added to
the system of Figure (8-2)(a), it becomes stable for all values of gain.

Figure (8-2)
(a) Root-locus plot of a three-pole system; (b), (c), and (d) root-locus
plots showing effects of addition of a zero to the three-pole system.

43
Procedure:

1. For the open loop transfer function G(s) = 4 / s ( s^2 + 5*s + 6) , plot
the root locus by using the following program :
clear
num=[4];
den=[1 5 6 0];
rlocus(num,den);

Root Locus
6

2
Imaginary Axis

-2

-4

-6
-10 -8 -6 -4 -2 0 2
Real Axis

2. And then, we have to see output response (closed loop system with
unity feedback ) for the unit step with using the following program
clear
num=[4];
den=[1 5 6 4];
t=0:0.05:20;
c=step(num,den,t);
plot(t,c);
grid on;

44
1.4

1.2

0.8

0.6

0.4

0.2

0
0 2 4 6 8 10

3 . Repeat steps ( 1 and 2 ) with adding a single real zero s = - 4 .


4 . Repeat steps ( 1 and 2 ) with adding a single real zero s = -2.5
5 . Repeat steps ( 1 and 2 ) with adding a single real zero s = -1 .
6 . Compare the resultant shapes of the root locus with the actual system on
the same graphical paper.

Discussion:
1. Discuss the effect of adding a zero on the root locus shape, through the
relative stability.
2. Discuss the effect of adding a zero on time response, through the speed
response , overshoot ….etc.

45
Experiment Nine
Lead Compensation Techniques Based on
the Root-Locus Approach

Object:
To study and design the Lead Compensator using Root-Locus.

Theory:
The root-locus approach to design is very powerful when the specifications
are given in terms of time-domain quantities, such as the damping ratio and un
damped natural frequency of the desired dominant closed-loop poles, maximum
overshoot, rise time, and settling time.
Consider a design problem in which the original system either is unstable for
all values of gain or is stable but has undesirable transient-response characteristics.
In such a case, the reshaping of the root locus is necessary in the broad
neighborhood of the jω axis and the origin in order that the dominant closed-loop
poles be at desired locations in the complex plane. This problem may be solved by
inserting an appropriate lead compensator in cascade with the feed forward transfer
function shown in figure (9-1).

9-1:
Figure (9-1)

Once, a compensator has been designed, check to see whether all performance
specifications have been met. If the compensated system does not meet the
performance specifications, then repeat the design procedure by adjusting the
compensator pole and zero until all such specifications are met.

46
Lead Compensators:
There are many ways to realize continuous-time (or analog) lead
compensators, such as electronic networks using operational amplifiers and
electrical RC networks; Figure (9-2) shows an electronic circuit using operational
amplifiers.

Figure (9-2)
The transfer function for this circuit was obtained as follows:

( 1 – 1)

47
This network has a gain of Kc α = R2 R4 / ( R1 R3 )

From Equation (1-1), we see that this network


is a lead network if R1 C1 > R2 C2 or α < 1
is a lag network if R1 C1 < R2 C2

The pole-zero configurations of this net work when R1 C1 > R2 C2


and R1 C1 < R2 C2 are shown in Figure (9-3)(a) and (b), respectively.

Lead network Lag network

Figure (9-3)

Procedure:
1. For the original system below, find the root locus with grid property :

48
Root Locus
10
0.84 0.72 0.6 0.46 0.3 0.16
8
Radial lines ofconstant
6 0.92 damping ratio ( Zeta )
4
0.98
Imaginary Axis

2
12 10 8 6 4 2
0

-2
0.98
-4

-6 0.92

-8
0.84 0.72 0.6 0.46 0.3 0.16
-10
-10 -5 0
Real Axis

2. Use the transfer function of the lead compensator

using a value α = 0.1 .

3. For three selected values ( T = 4 / 3 , T = 1 , T = 2 / 3) of zero position


( s = -1/T ), a three compensator will be made ,Plot the root locus for each
compensated open loop system ( using grid property of the root locus) .

4. Let the required damping ratio( ζ= 0.45) , find the dominant complex
roots, natural frequency, settling time and maximum overshoot by using
direct searching on root locus plots with using the following table:

49
Open Undamped
Dominant freq, for 2%
Compensator Loop
complex roots gain ωn Mp % ts (sec.)
K’ ( rad/sec)

Uncompensated

Zero at T=4/3
s+0.75
s+7.5
Zero at T=1
s+1
s+10
Zero at T=2/3
s+1.5
s+15

5. Simulate (using Simulink) the time response (unit step input) for the
uncompensated system and the three cases of lead compensation on the
one screen of the oscilloscope, using open loop gain for each case.

Discussion:
1. For which purpose the lead compensator is used.
2. Discuss the effect of zeros position on the shapes of the root locus.
3. Discuss the effect of zeros position on the time responses.

50
Experiment Ten

Lag Compensation Techniques Based on


the Root-Locus Approach

Object:
To study and design the Lag Compensator using Root-Locus.

Theory:

Consider the problem of finding a suitable compensation network for the case
where the system exhibits satisfactory transient-response characteristics but
unsatisfactory steady-state characteristics. Compensation in this case essentially
consists of increasing the open- loop gain without appreciably changing the
transient-response characteristics. This means that the root locus in the
neighborhood of the dominant closed-loop poles should not be changed
appreciably , but the open-loop gain should be increased as much as needed. This
can be accomplished if a lag compensator is put in cascade with the given
feedforward transfer function as shown in Figure ( 10-1) .

10-1

Electronic Lag Compensator Using Operational Amplifiers. The configuration


of the electronic lag compensator using operational amplifiers is the same as that for
the lead compensator as shown in Figure (10-2).

51
Figure (10-2)

since we talking about lag compensator , therefore R1 C1 < R2 C2


is essential condition for the design.

52
Lag compensator design

To avoid an appreciable change in the root loci, the angle contribution of the
lag net work should be limited to a small amount, say 5°. To assure this, we place
the pole and zero of the lag network relatively close together and near the origin of
the s plane. Then the closed-loop poles of the compensated system will be shifted
only slightly from their original locations. Hence, the transient-response
characteristics will be changed only slightly.

Procedure of design:

1. For the original system below, find the root locus with grid property:

Root Locus
10
0.84 0.72 0.6 0.46 0.3 0.16
8
Radial lines ofconstant
6 0.92 damping ratio ( Zeta )
4
0.98
Imaginary Axis

2
12 10 8 6 4 2
0

-2
0.98
-4
5. Use the transfer function of the lag compensator Gc(s) :
-6 0.92

-8
0.84 0.72 0.6 0.46 0.3 0.16
-10
-10 -5 0
Real Axis

53
.

2. Use the transfer function of the lag compensator

Gc(s) = K β β>1

using a value β = 10 .

3. For three selected values ( T = 4 , T = 5 , T = 10 ) of poles position


( s = -1 / β T ), a three compensator will be made ,Plot the root locus for each
compensated open loop system ( using grid property of the root locus) .

4. Let the required damping ratio( ζ= 0.45) , find the dominant complex roots,
natural frequency, settling time and maximum overshoot by using direct
searching on root locus plots with using the following table:

54
Open Undamped
Dominant freq, for 2%
Compensator Loop
complex roots gain ωn Mp % ts (sec.)
K’ ( rad/sec)

Uncompensated

poles at T=4
s+0.25
s+0.025
poles at T=5
s+0.2
s+0.02
poles at T=10
s+0.1
s+0.01

5. Simulate (using Simulink) the time response (ramp input) for the
uncompensated system and the three cases of lag compensation on the one
screen of the oscilloscope, using open loop gain for each case.

Discussion
1. For which purpose the lag compensator is used.
2. Discuss the effect of poles position on the shapes of the root locus.
3. Discuss the effect of poles position on the time responses.

55

You might also like