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

LECTURE (3)

Feedback Control Systems


Performance and Characteristics
Assist. Prof. Amr E. Mohamed
Agenda
 Introduction
 Test Input Signals.
 Response of First Order systems.
 Response of Second Order Systems.
 Higher Order Systems Response.
 Steady State Errors of Feedback Control Systems.
 Stability Analysis Using Routh-Hurwitz Method
 Introduction to PID

2
Introduction
 Order of the system:
 Consider a system defined by the transfer function:

C ( s) bm s m  bm1 s m1    b0
T ( s)  
R( s ) ( an s n  an 1 s n 1    a0 )

 The order of this system is n which is defined by the highest power for s in
the denominator.
 Examples:

1st order system 2nd order system 4th order system


C (s) 5 C ( s) 10s C ( s) 10s 2
  2  4
R( s ) 4s  1 R( s ) s  4s  4 R( s) 3s  2s 3  s 2  4s  3
3
Introduction
 The system type Number:
 It is defined as the number of poles at the origin of the open loop transfer function
G(s)H(s).
 Consider the open loop transfer function of a system as :

bm s m  bm1s m1    b0
G( s) H ( s)  c
s (an s n  an 1s n 1    a0 )

 The system of type c and has an order of n+c


 Examples:
50
G( s) H ( s)   System of type 0
( s  1)( s  4)
10s 2  3
G( s) H ( s)  2 4  System of type 2
s (3s  2s 3  s 2  4s  3) 4
Standard Test Signals
δ(t)
 Impulse-Function
 The impulse signal imitate the sudden shock A
characteristic of actual input signal.

A t 0 0 t
u (t )   (t )    U ( s )  A
0 t0
u(t)
 Step-function
 The step signal imitate the sudden change
characteristic of actual input signal. A

A t0 A 0 t
u( t )    U ( s ) 
0 t0 s
5
Standard Test Signals
r(t)
 Ramp-function
 The ramp signal imitate the constant velocity characteristic of
actual input signal.

 At t0 A 0 t
r(t )    U ( s )  2
0 t0 s
p(t)
 Parabolic-function
 The parabolic signal imitate the constant acceleration
characteristic of actual input signal.
 At 2
 t0 A
p(t )   2 t
0
 U ( s )  3 0
 t0 s
6
Relation Between Standard Test Signals
Impulse A t0 d
  (t )  
0 t0
 dt
A t0
 Step u( t )  
0 t0 d
 dt
Ramp  At t0
 r(t )  
0 t0 d
  At 2
dt
Parabolic  t0
 p(t )   2
0 t0

7
Time Response of Control Systems
Time response of a dynamic system is response to an input expressed as
a function of time.

System

 The time response of any system has two components:


 Transient response
 Steady-state response.

c(t )  ctr (t )  css (t )


8
Time Response of Control Systems -3
x 10 Step Response
6

Step Input
5

4
Response

Amplitude
3

0
0 2 4 6 8 10 12 14 16 18 20
Time (sec)

 When the response of the system is changed form rest or equilibrium it takes some
time to settle down.
 Transient response is the response of a system from rest or equilibrium to steady state.
 The response of the system after the transient response is called steady state
response.
9
Time Response of Control Systems
Transient response dependents upon the system poles only and not on
the type of input.

 It is therefore sufficient to analyze the transient response using a step


input.

The steady-state response depends on system dynamics, system type,


and the input quantity.

 It is then examined using different test signals by final value theorem.

10
Response of First Order System
 The Standard form system transfer function G(s) is given by:

C ( s) k
G( s)  
R( s ) T s  1

 Where K is the D.C gain and T is the time constant of the system.
 Time constant is a measure of how quickly a 1st order system responds to a
unit step input.
 D.C Gain of the system is ratio between the input signal and the steady
state value of output.

 The first order system has only one pole at 1/T

11
Unit-Impulse Response of First Order System
 Consider the following 1st order system
K=1 & T=2s
δ(t)

1
R(s ) K C (s )
0
t Ts  1

R( s)  1
K
K
C ( s)  G ( s) R( s)   T
Ts  1 s  1
K t / T T
c(t )  e
T 12
Unit-Step Response of First Order System
u(t)
1 R(s ) K C (s )
t Ts  1
0

1
R( s )  U ( s ) 
s
K
C ( s)  G ( s) R( s) 
s Ts  1 K=1 & T= 1.5s
1 T 
C (s)  K   
 s Ts  1 
 Taking Inverse Laplace of above equation

c(t )  K 1  e t / T
 13
Step Response of 1st order System
 System takes five time constants to reach its final value.

14
Unit-Ramp Response of First Order System
Unit Ramp Response

K 10
R(s ) C (s ) Unit Ramp
Ts  1 Ramp Response
8

1
R( s )  2 6
s

c(t)
4
K
C ( s)  2 K=1 & T= 1s
s Ts  1 2
error
 The ramp response is given as 0
0 5 10 15
Time

c(t )  K t  T  Tet / T 
15
Table 3.1 Summary of response of a LTI first order system

input: output:

unite ramp r t   u2 (t ) c(t )  t   1  et / 


d d
dt dt
unite step r t   u(t )  u1 (t ) c(t )  1  e t / 
d d
dt dt
unite impulse r t    (t )  u0 (t ) c(t )  e
1  t /  

16
Second Order Systems
A general second-order system (without zeros) is characterized by the
following transfer function.

n2
G( s)   Open-Loop Transfer Function
s( s  2 n )
C( s ) n2
 2
R( s ) s  2 n s  n2  Closed-Loop Transfer Function
17
Second Order Systems

C ( s)  2
 2 n
R( s ) s  2 n s  n
2

   damping ratio of the second order system, which is a measure of


the degree of resistance to change in the system output.
 n un-damped natural frequency of the second order system, which
is the frequency of oscillation of the system without damping

18
Example#2
Determine the un-damped natural frequency and damping ratio of the
following second order system.
C( s ) 4
 2
R( s ) s  2s  4
Compare the numerator and denominator of the given transfer function
with the general 2nd order transfer function.
C ( s) n2
 2
R( s ) s  2 n s  n2

n2  4  n  2 rad / sec  2 n s  2s


  n  1
s 2  2 n s  n2  s 2  2s  4
   0.5 19
Example#3
 Example 3: For the second order system described by the closed loop
transfer function T(s), n and ξ .
C ( s) 24 6
T ( s)   2  2
R( s) 4s  12s  256 s  3s  64

 Compare with the standard equation we have:

Since n2  64 and 2 n  3 and k n  6

3
 n  8 ,    0.8 and k  0.75
16

20
Second Order Systems - Poles
 The second order system Transfer function is
C ( s) n2
 2
R( s ) s  2 n s  n2
 The characteristic polynomial of a second order system is:
s 2  2 n s  n2  ( s  s1 )( s  s2 )  0
 The closed-loop poles of the system are

 2  n  4   2n  4  2n
2

s1 , s1     n   n   1
2

2
s1   n  n  2  1
s 2   n   n  2  1 21
Response of Second Order Systems
According the value of  , a second-order system can be set into one
of the four categories:
 Case 1: Over damped response (ξ > 1)
 Case 2: Critically damped response (ξ = 1)
 Case 3: Under damped response (0 < ξ <1)
 Case 4: No damped response (ξ = 0)

22
Unit-Step Response of Second Order Systems
 Case 1: Over damped response (ξ > 1)
 The two roots of the characteristic equation s1 and s2 are real and distinct.

s1   n  n  2  1
δ s 2   n   n  2  1

 Example#4: Calculate and plot the output of the system with the following
transfer function:
 Solution: With unit step input, its response is:
2
T ( s)  2
s  3s  2
1 1 2 1
C ( s)  R( s)T ( s)    
s( s 2  3s  2) s s  1 s  2 23
Unit-Step Response of Second Order Systems
 The corresponding time domain output is given by:
1 t 2 t
c(t )  L {C( s)}  [1  2 e  e ]u(t )

output signal

 1

time [sec]
24
Unit-Step Response of Second Order Systems
 Case 2: Critically damped response (ξ = 1)
 The two roots of the characteristic equation s1 and s2 are real and equal.

δ s1, 2   n

 Example#5: Calculate and plot the output of the system with the following
transfer function:
 Solution: With unit step input, its response is:
5s  4
T ( s) 
s 2  4s  4
5s  4 1 1 3
C ( s )  R( s )T ( s )    
s ( s  4 s  4) s s  2 ( s  2) 2
2
25
Unit-Step Response of Second Order Systems
 The corresponding time domain output is given by:

c(t )  L1{C( s)}  [1  e 2t  3 t e 2t ]u(t )


output signal

 1

time [sec]
26
Unit-Step Response of Second Order Systems
 Case 3: Under damped response (ξ < 1)
The two roots of the characteristic equation s1 and s2 are complex conjugates of on another.

s1, 2   n  jn 1   2
δ
s1, 2   n  jd

 Example#6: Calculate and plot the output of the system with the following
transfer function:
 Solution: With unit step input, its response is:

4
T ( s)  2
s  2s  4
4 1 s2
C ( s )  R( s )T ( s )   
s ( s 2  2 s  4) s s 2  2 s  4 27
Unit-Step Response of Second Order Systems
 The corresponding time domain output is given by:
 
 1   n t  1 − 𝜉2
1
c(t )  L {C ( s )}  1  sin(d t   )  u (t ) 𝑤ℎ𝑒𝑟𝑒 𝜃=
2 e 𝜉
 1 
 
output signal

 1

time [sec] 28
Unit-Step Response of Second Order Systems
 Case 4: Undamped response (ξ = 0)
The two roots of the characteristic equation s1 and s2 are imaginary poles.

s1, 2   jn
δ

 Example#7: Calculate and plot the output of the system with the following
transfer function:
 Solution: With unit step input, its response is:

4
T (s)  2
s 4
 c(t )  L1{C ( s )}  1  sin(n t ) u (t )
4 1 s
C ( s)  R( s) T ( s)   
s ( s 2  4) s s 2  2 2 29
The transient response as a function of the damping ratio ξ

  0.5  0
  0.1
  0.6   0.2
  0.7   0.3
  0.4
output signal

 2

  0.8

time [s]
30
Time-Domain Specification
For 0< ξ <1 and ωn > 0, the 2nd order system’s response due to a unit
step input looks like

31
Time-Domain Specification – Delay Time
Delay-Time (Td): The delay (Td) time is the time required for the
response to reach half the final value the very first time.

32
Time-Domain Specification – Rise Time
 Rise-Time (TR): The rise time is the time required for the response to
rise from
 10% to 90% of its final value,  over damped systems
 5% to 95% of its final value,  Critical damped systems
 or 0% to 100% of its final value.  under damped systems

 
tr 
d
  1   2 
  tan 1  n 
  n 
 
33
Time-Domain Specification – Peak Time
Peak Time (Tp): The peak time is the time required for the response to
reach the first (maximum) peak of the overshoot.


tp 
d

34
Time-Domain Specification – Maximum Overshoot
 Maximum Overshoot (MP): is the maximum peak value of the response
curve measured from unity.
 Maximum percent overshoot (P.O): is defined as follows:


( )
MP  e 
1
2

Mp
P.O  x100%
final value


1 2
P.O  e x100%

35
Time-Domain Specification – Rise Time
The settling time (Ts): is the time required for the response curve to
reach and stay within a range about the final value of size specified by
absolute percentage of the final value (usually 2% or 5%).

Settling Time (2%)


4
ts 
 n

Settling Time (5%)


3
ts 
 n
36
Example#7
For the control system shown in Figure, determine k and a that satisfies
the following requirements:
a) Maximum percentage overshoot P.O =10%.
b) The 5% settling time ts = 1 sec.

R(s) k T (s) 1 C (s)


+
- sa s2

 Solution: The closed loop transfer function is given by


 k  1 
  
s  a  s  2 
 
C ( s) k k
  2
R( s )  k  1  ( s  a )( s  2)  k s  s( a  2)  ( 2a  k )
1   
 s  a  s  2  37
Example#7
 The maximum percent overshoot (P.O )is given by:


P.O  e 1 2

10   0.6
100
 For 5%, the settling time ts is given by:
3 3
t   1 n  5
s
 e
 n

a  2  2 n & 2a  k    0.305


2
n

 From these two equations we get a + 2 = 6 then a = 4 and k = 17

38
Higher Order Systems Response
The natural response of higher-order systems consists of a sum of
terms, one term for each characteristic root:
 For each distinct real characteristic root, there is a real exponential term in
the system natural response.
 For each pair of complex conjugate roots, there is a an exponential
sinusoidal term in the system natural response.
 Repeated roots give additional terms involving power of time times the
exponential.

39
Higher Order Systems Response
 Example#8: Analyze the system with the following transfer function:
 8 s2  5  8 s2  5
T ( s)  4 
s  9 s  37 s  81 s  52 ( s  1)( s  4)( s 2  4 s  13)
3 2

Solution: With unit step input, apply the partial fraction, its response is
given by:
1 k1 k2 k3 k 4 s  k5
C ( s)  T ( s)    
s s s  1 s  4 ( s  2) 2  (3) 2

 The corresponding time domain output is given by:

t 4 t 2 t
c (t )  k1  k 2 e  k3 e  Ae cos(3t   )
40
Higher Order Systems Response
 Example#9: Analyze the system with the following T.F
 7s 3  6s 2  9s  23
T ( s) 
( s  1)( s  4)( s 2  4s  13)( s 2  8s  17)
Solution: With unit step input, apply the partial fraction, its response is
given by:
1 k k k k s  k5 k s  k7
C ( s)  T ( s)  1  2  3  2 4  26
s s s  1 s  3 s  4s  13 s  8s  17
 The corresponding time domain output is given by:
   n1 t   n 2 t
1 1
1 1

c(t )  k1  k 2 e  k3 e  A1 e cos(d 1t  1 )  A2 e
t  3t
cos(d 2t   2 )
1 12 1 2
2
 Where the natural frequencies and damping ratios are given by:
n1  13  3.6rad / sec,  1

4
2n1
 0.55 and n 2  17  4.12rad / sec,  2

8
2n 2
 0.97
41
The s-Plane Root Location and The Transient Response

42
Example#10
Consider the system shown in following figure, where damping ratio is
0.6 and natural undamped frequency is 5 rad/sec. Obtain the rise time tr,
peak time tp, maximum overshoot Mp, and settling time 2% and 5%
criterion ts when the system is subjected to a unit-step input.

 Solution:
 ξ = 0.6 and ωn = 5 rad/sec

43
Example#10
 Rise Time:

   1   2
tr     tan1( n )  0.93 rad
d  n
3.141   3.141  0.93
tr  tr   0.55s
2 
n 1   5 1  0.6 2

 Peak Time:
 3.141
tp   tp   0.785s
d 4

44
Example#10
 Settling Time (2%):
4 4
ts  ts   1.33s
 n  0.6  5
 Settling Time (5%):
3 3
ts   ts   1s
 n 0.6  5
 Maximum Overshoot:
 3.1410.6
 
1 2
Mp  e e 10.62
 0.095


1 2
P.O  e  100  9.5% 45
Example#11
For the system shown in Figure, determine the values of gain K and
velocity-feedback constant Kh so that the maximum overshoot in the
unit-step response is 0.2 and the peak time is 1 sec. With these values of
K and Kh, obtain the rise time and settling time. Assume that J=1 kg-m2
and B=1 N-m/rad/sec.

46
Example#11

47
Example#11

Since J  1 kgm 2 and B  1 Nm/rad/sec


C( s ) K
 2
R( s ) s  (1  KK h )s  K

 Comparing above T.F with general 2nd order T.F


C( s ) n2
 2
R( s ) s  2 n s  n2

(1  KK h )
n  K  
2 K
48
Example#11
(1  KK h )
n  K  
2 K
 Maximum overshoot is 0.2.  The peak time is 1 sec

tp 
d
3.141
1

 n 1   2
)  ln0.2
1 2
ln( e
3.141
n 
1  0.456 2

n  3.53
49
Example#11
n  3.96

(1  KK h )
n  K  
2 K

3.53  K 0.456  2 12.5  (1  12.5K h )

3.532  K K h  0.178

K  12.5

50
Example#11

n  3.96

  3 4
tr  ts  ts 
n 1   2  n  n

tr  0.65s t s  1.86s t s  2.48s

51
Example#12
When the system shown in Figure(a) is subjected to a unit-step input,
the system output responds as shown in Figure(b). Determine the values
of a and c from the response curve.

a
s( cs  1)

52
Example#13
 For the RLC shown in Fig. 3.17, determine the natural frequency n and
the damping ratio ξ for the transfer function T(s)= X(s) / F(s), if M = 1
kg, b= 4 Ns/m and k = 10 N/m. x(t )
 Solution: K
 The D.E for this system is given by: f (t )
2
M
d x(t ) dx(t )
M 2
 f v  Kx(t )  f (t )
dt dt fv
 The closed loop transfer function is given by Fig. 3.15 RLC network

X (s) 1 1/ m
 
F ( s) M s  f v s  k
2 fv k
s
2
 S 
m m
 Then
1 fv 2
n   10 rad / sec and 2  n   
k/m m 10 53
Example#14
 For the RLC shown in Fig. 3.16, determine the natural frequency n and
the damping ratio ξ for the transfer function T(s)= I(s) / E(s).
 Solution:
 The closed loop transfer function is given by
I (s) 1 Cs
 
LC s  RCS  1
2
E ( s ) R  Ls  1
CS
1 Fig. 3.15 RLC network
s
I (s) L

E (s) R 1
 
2
s L LC s

 Then
1 R R C
n  and 2  n   
LC L 2 L 54
Example#15
 Figure (a) shows a mechanical vibratory system. When 2 lb of force
(step input) is applied to the system, the mass oscillates, as shown in
Figure (b). Determine m, b, and k of the system from this response
curve.

55
Example#16
Given the system shown in following figure, find J and D to yield 20%
overshoot and a settling time of 2 seconds for a step input of torque T(t).

56
Example#16

57
Example#16

58
Steady-State Error

59
Steady-state error
Steady-state error
 Consider the feedback control system shown in Fig. 3.16.
R(s) E (s) C (s)
G(s)

Fig. 3.16
H (s)

 The closed loop transfer function is given by:


C (s) G (s)
T (s)  
R( s) 1  G ( s) H ( s)
 The system error is equal to:
G( s ) H ( s ) 1
E ( s )  R( s )  C ( s ) H ( s )  R( s )  R( s )  R( s )
1  G( s ) H ( s ) 1  G( s ) H ( s )
 By application of final value theorem the steady state error is:
sR( s)
ess  lim e(t )  lim sE( s)  lim
t  s 0 s 0 1  G ( s ) H ( s )
Static Error Constants
 Static Position Error Constant Kp  [Step-error]
1
K p  lim G( s ) H ( s) ess 
s0 1 Kp

 Static Velocity Error Constant Kv  [Ramp-error]


1
K v  lim sG( s) H ( s) ess 
s 0
Kv
 Static Acceleration Error Constant Ka  [Parabolic-error]

1
K a  lim s G( s) H ( s)
2 ess 
s 0 Ka
Summary of steady-state errors
Input step input ramp input acc. input
t2
r (t )  1 r (t )  t r (t ) 
Type # 2

1
type 0
system  
1 K p
type 1
system 0 1 
Kv
type 2 1
system 0 0
Ka
Example
Find the steady state error of the system shown in Fig. 3.17, when the
reference input r(t) is:
a) δ(t) b) u(t) c) t u(t)

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


s4
2 Fig. 3.17
s 1

 Solution:
 The steady state error is given by
1
ess  lim sE( s)  lim
s 0 s 0 1  G ( s ) H ( s )
R( s )
Example (Cont.)
(a) For r (t )   ( t )
1
ess  lim s
s 0 5 2
.1  0
1
s  4 s 1
(b) For r ( t )  u( t )
( s  4)( s  1) 1 4
ess  lim
s 0
s . 
( s  4)( s  1)  10 s 14

(c) For r (t )  t u ( t )

( s  4)( s  1) 1
ess  lim s
s 0
. 2 
( s  4)( s  1)  10 s
Example
Find the steady state error of the system shown in Fig. 3.18, when the
reference input r(t) is:
a) δ(t) b) u(t) c) t u(t)

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


s ( s  4)
Fig. 3.18

 Solution:
 The steady state error is given by
1
ess  lim sE( s)  lim
s 0 s 0 1  G ( s ) H ( s )
R( s )
Example (Cont.)
(a) For r (t )   ( t )
s ( s  4)
ess  lim s
s 0 s( s  4)  10
.1  0

(b) For r ( t )  u( t )
s ( s  4) 1
ess  lim s
s 0
. 0
s( s  4)  10 s

(c) For r (t )  t u ( t )
s ( s  4) 1 4
ess  lim s
s 0
. 2 
s( s  4)  10 s 10
Example
 For the system shown in Fig. 3.19, determine:
a) The system type number
b) Static position error constant Kp
c) Static velocity error constant Kv
d) ess, when r(t) is: u(t) and t u(t)

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


s( s  5)
Fig. 3.19
2
s3
Solution:
Example (Cont.)
a) The open loop transfer function is given by
20
G( s) H ( s)  Then the system is type number =1
s( s  5)( s  3))

b) static position error constant Kp


20
Kp  lim G( s ) H ( s )  lim s 
s 0 s 0 s( s  5)( s  3)
c) Static velocity error constant Kv
20s 20
Kv  lim sG( s) H ( s)  lim 
s 0 s0 s( s  5)( s  5) 15
d) ess, when r(t) is: u(t) and t u(t)
1 1 15
ess ( step )  1   0 e ss
( ramp)  
kp k v
20
Routh-Hurwitz criterion

70
The Concept of Stability
 A stable system is a dynamic system with a bounded response to a bounded
input.
 Consider the closed loop transfer function of a system as :

bm s m  bm1 s m1    b0 N ( s)
T ( s)  n 1

an s  an 1 s    a0
n
( s )
 The characteristic equation or polynomial of the system which is given by:

( s)  Q( s)  an s n  an 1s n 1    a0
 For the system described by T(s) to be stable, the root of the characteristic equation
must lie in the left half plane.
 The Routh-Hurwitz criteria or test is a numerical procedure for determining the
number of right half-plane (RHP) and imaginary axis roots of the characteristic
polynomial.
The Routh-Hurwitz Method Stability Criteria
 The method requires two steps:
 Step #1: Generate a date table called a Routh table as follows:
 Consider the characteristic equation which is given by:

(s)  Q(s)  a4 s 4  a3 s 3  a2 s 2  a1s  a0

Rules for Routh table creation


 Any row of the Routh table can be
multiplied by a positive constant without
changing the values of the rows below.
 To avoid the division by zero, an epsilon is
assigned to replace the zero in the first
column.

Table 3.3 Initial layout for Routh table


The Routh-Hurwitz Method Stability Criteria
 Further rows of the schedule are then completed as follows:

Table 3.4 Completed Routh table


The Routh-Hurwitz Method Stability Criteria
 Step #2: Interpret the Routh table to tell how many closed-loop system poles are in
the:
 left half-plane
 right half-plane.
 The number of roots of the polynomial that are in the right half-plane is equal to the
number of sign changes in the first column.
 Notes:
 1- If the coefficients of the characteristic equation have differing algebraic, there is at
least one RHP root. For Example:
(s)  Q(s)  7s 5  5s 4  3s 3  2s 2  s  10
• Has definitely one or more RHP roots.
 2- If one or more of the coefficients of the characteristic equation have zero value, there are
imaginary or RHP roots or both. For Example:
(s)  Q(s)  s 6  3s 5  2s 4  8s 2  3s  17
• has imaginary axis roots indicated by missing s3 term.
Example
For the system shown in Fig. 3.20, determine T(s) and then apply the
Routh-Hurwitz Method to check the its Stability .

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


( s  2)(s  3)(s  5)
Fig. 3.20

 Solution: :
 Step #1: Find the system closed loop transfer function T(s)

1000
G( s) ( s  2)( s  3)( s  5) 1000
T ( s)    3
1  G( s) H ( s) 1  1000 s  10 s  31s  1030
2

( s  2)( s  3)( s  5)
Example (Cont.)
 Therefore, the characteristic equation is given by:
( s )  s 3  10s 2  31s  1030
 Step #2: Generate the Routh table as follows:

Divide by 10

 Step #3: Since. There are two sign changes in the left column.
• therefore, the system is unstable and has two roots in the right hand side.
Example
 Apply the Routh-Hurwitz Method to determine the stability of a the closed
loop system whose transfer function is given by:
10
T ( s)  5
3s  5s 4  6s 3  3s 2  2s  1
 Solution: Generate the Routh table as follows:

There are two sign changes in the left


column, therefore, the system has two
RHP roots and hence it is unstable
Example
 Apply the Routh-Hurwitz Method to determine the values of K that make the system
stable.
s 5  13s 4  54s 3  82s 2  (60  K )s  3K  0
 Solution: Generate the Routh table as follows:
s5 1 54 60  K
s4 13 82 3K
s3 47.7 60  0.769K 0

s2 65.6  0.212K 3K 0 65.6  0.212K  0


 K  309
s 1 3940  105K  0.163K 2 0 0 3940  105K  0.163K 2  0
65.6  0.212K
 K  35
s0 3K 0 0 K0

Then the values of k that makes the system stable are 0  K  35


Example
Apply the Routh-Hurwitz Method to check the stability of a system whose
characteristic equation is given by:
( s)  s5  2 s4  3 s3  6 s2  5s  3
 Step #1: Generate the Routh table as follows:
Table 3.6The Routh table
Note:
To avoid the division by
zero, an epsilon is
assigned to replace the
zero in the first column.
Example (Cont.)
 Step #2: Interpret the Routh table to tell how many closed-loop system poles are in
the right half-plane. To begin the interpretation, we must assume a sign, positive or
negative, for the quantity ε as illustrated in Routh table.

Table 3.6 The Routh table

Step #3: Interpret the Routh table to tell how many closed-loop system poles are in
the right half-plane There are two sign changes in the left column, therefore, Q(s)
has two RHP roots and hence it is unstable.
Introduction to PID Control

81
Introduction
 This introduction will show you the characteristics of the each of proportional
(P), the integral (I), and the derivative (D) controls, and how to use them to
obtain a desired response.
 In this tutorial, we will consider the following unity feedback system:

 Plant: A system to be controlled


 Controller: Provides the excitation for the plant; Designed to control the
overall system behavior
The PID controller
 The transfer function of the PID controller looks like the following:
𝑲𝑰
𝑮𝒄 𝒔 = 𝑲𝒑 + 𝑲𝑫 𝒔 +
𝒔
 Kp = Proportional gain
 KI = Integral gain
 Kd = Derivative gain
The PID controller
 First, let's take a look at how the PID controller works in a closed-loop system using the
schematic shown above. The variable [E(s)] represents the tracking error, the difference
between the desired input value [R(s)] and the actual output [C(s)].
 This error signal (e) will be sent to the PID controller, and the controller computes both the
derivative and the integral of this error signal.
 The signal [U(s)] just past the controller is now equal to the proportional gain (Kp) times
the magnitude of the error plus the integral gain (Ki) times the integral of the error plus
the derivative gain (Kd) times the derivative of the error.
𝒅 𝒆(𝒕)
𝒖 𝒕 = 𝑲𝒑 𝒆(𝒕) + 𝑲𝑰 𝒆 𝒕 . 𝒅𝒕 + 𝑲𝑫
𝒅𝒕
 This signal (u) will be sent to the plant, and the new output will be obtained. This new
output will be sent back to the sensor again to find the new error signal (e). The controller
takes this new error signal and computes its derivative and its integral again.
 This process goes on and on.
The characteristics of P, I, and D controllers
 A proportional controller (Kp) will have the effect of reducing the rise time and will
reduce ,but never eliminate, the steady-state error.
 An integral control (Ki) will have the effect of eliminating the steady-state error, but it
may make the transient response worse.
 A derivative control (Kd) will have the effect of increasing the stability of the system,
reducing the overshoot, and improving the transient response.
 Effects of each of controllers Kp, Kd, and Ki on a closed-loop system are summarized
in the table shown below.

Steady-State
RISE TIME OVERSHOOT SETTLING TIME
Response
Kp Decrease Increase Small Change Decrease
Ki Decrease Increase Increase Eliminate
Kd Small Change Decrease Decrease Small Change
Example Problem
 Suppose we have a simple mass, spring, and damper problem.
 The modeling equation of this system is x(t )
d 2 x(t ) dx(t ) K
M 2
 fv  Kx(t )  f (t )
dt dt f (t )
𝑋(𝑠) 1 M
=
𝐹(𝑠) 𝑀 𝑠 2 + 𝑓𝑣 𝑠 + 𝐾

 Let fv
 M = 1kg
 fv = 10 N.s/m
 k = 20 N/m
 F(s) = 1 = unit step

𝑋(𝑠) 1
= 2
𝐹(𝑠) 𝑠 + 10 𝑠 + 20
Open-loop step response
 Let's first view the open-loop step response.

 Create a new m-file and add in the following code:


>> num=1;
>> den=[1 10 20];
>> step (num,den)
Running this m-file in the Matlab command window should give you the
plot shown below.
Open-loop step response
 The DC gain of the plant transfer function is
1/20, so 0.05 is the final value of the output to
an unit step input. This corresponds to the
steady-state error of 0.95, quite large indeed.
 Furthermore, the rise time is about one second,
and the settling time is about 1.5 seconds.
 Let's design a controller that will reduce the rise
time, reduce the settling time, and eliminates
the steady-state error.
Closed Loop with P-Controller

 The closed-loop T.F is


𝐶(𝑠) 𝐾𝑝
= 2
𝑅(𝑠) 𝑠 + 10 𝑠 + (20 + 𝐾𝑝 )
 Let the proportional gain (Kp) equals 300 and change the m-file to the
following:
>> Kp = 300;
>> num = [Kp];
>> den = [1 10 20+Kp];
>> t = 0 : 0.01 : 2 ;
>> step (num,den,t)
Closed Loop with P-Controller
 Running this m-file in the Matlab command window should gives you the
following plot.

 The plot shows that the proportional


controller reduced both the rise time
and the steady-state error, increased
the overshoot, and decreased the
settling time by small amount.
Closed Loop with PD-Controller

 The closed-loop T.F is


𝐶(𝑠) 𝐾𝑝 + 𝐾𝐷 𝑆
= 2
𝑅(𝑠) 𝑠 + 10 + 𝐾𝐷 𝑠 + (20 + 𝐾𝑝 )
 Let Kp equals 300 and Kd equals 10, then change the m-file to the following:
>> Kp = 300; KD = 10;
>> num = [KD Kp];
>> den = [1 10+KD 20+Kp];
>> t = 0 : 0.01 : 2 ;
>> step (num,den,t)
Closed Loop with PD-Controller
 Running this m-file in the Matlab command window should gives you the
following plot.

 The plot shows that the derivative


controller reduced both the overshoot
and the settling time, and had small
effect on the rise time and the steady-
state error.
Closed Loop with PI-Controller

 The closed-loop T.F is


𝐶(𝑠) 𝐾𝑝 𝑠 + 𝐾𝐼
= 3
𝑅(𝑠) 𝑠 + 10 𝑠 2 + 20 + 𝐾𝑝 𝑠 + 𝐾𝐼
 Let Kp equals 300 and Ki equals 70, then change the m-file to the following:
>> Kp = 300; KI = 70;
>> num = [Kp KI];
>> den = [1 10 20+Kp KI];
>> t = 0 : 0.01 : 2 ;
>> step (num,den,t)
Closed Loop with PI-Controller
 Running this m-file in the Matlab command window should gives you the
following plot.

 We have reduced the proportional gain


(Kp) because the integral controller also
reduces the rise time and increases the
overshoot as the proportional controller
does (double effect). The above response
shows that the integral controller
eliminated the steady-state error.
Closed Loop with PID-Controller

 The closed-loop T.F is


𝐶(𝑠) 𝐾𝐷 𝑠 2 + 𝐾𝑝 𝑠 + 𝐾𝐼
= 3
𝑅(𝑠) 𝑠 + (10 + 𝐾𝐷 )𝑠 2 + 20 + 𝐾𝑝 𝑠 + 𝐾𝐼
 Let Kp equals 350, Kd equals 50 and Ki equals 300, then change the m-file to
the following:
>> Kp = 350; KI = 300; KD = 50;
>> num = [KD Kp KI];
>> den = [1 10+ KD 20+Kp KI];
>> t = 0 : 0.01 : 2 ;
>> step (num,den,t)
Closed Loop with PID-Controller
 Running this m-file in the Matlab command window should gives you the
following plot.

 Now, we have obtained the system with no


overshoot, fast rise time, and no steady-
state error.
General tips for designing a PID controller

 When you are designing a PID controller for a given system, follow the
steps shown below to obtain a desired response.
1) Obtain an open-loop response and determine what needs to be improved

2) Add a proportional control to improve the rise time

3) Add a derivative control to improve the overshoot

4) Add an integral control to eliminate the steady-state error

5) Adjust each of Kp, Ki, and Kd until you obtain a desired overall response.
98

You might also like