Professional Documents
Culture Documents
Veysel Gazi
Lecture 5: System Time-
Response Characteristics
Outline
• System Time Response
• System Characteristic Equation
• Mapping the s-Plane into the z-Plane
• Closed-loop z-plane poles and the system
transient response
• Steady-State Accuracy
• Simulation of continuous-time and discrete-
time systems
Example
Consider the system:
R(s) + X(s) X*(s) 1 − e −Ts X (s) 4 Y(s)
T=0.1 s s+2
−
r =
0.6666
-0.6666
p =
1.0000
0.4562
k =
[]
Example
SettlingMax (after risen) = Steady State
102% Steady State
Peak = Steady State
98% Steady State 90%
>> T = 0.1;
Gs = tf([4],[1 2]); SettlingMin (after risen)
Gz = c2d(Gs,T);
Tz = feedback(Gz,1);
step(Tz) RiseTime
stepinfo(Tz)
RiseTime: 0.2000
SettlingTime: 0.5000
SettlingMin: 0.6034
SettlingMax: 0.6667
Overshoot: 0
Undershoot: 0 10%
Peak: 0.6667
PeakTime: 4.6000
SettlingTime
Example
Consider the continuous time system:
R(s) + X(s) 4 Y(s)
s+2
Calculate its transfer function: −
4
G p (s)
= s+2 =
Y ( s) 4
=
R( s) 1 + G p ( s) 1+
4 s+6
s+2
Calculate its step response:
4 4 1 0.667 0.667
Yc ( s ) = R( s) = = −
s+6 s+6 s s s+6
yc (t ) = 0.667(1 − e −6t ) [ yc (t )]ss = 0.667
or (Final Value Th.) lim yc (t ) = lim sYc ( s ) = 0.667
t → s →0
The same steady state for the continuous and the discrete
systems.
Observations
Compare the results: yc (t ) = 0.667(1 − e −6t ) Continuous
y (kT ) = 0.667 1 − (0.4562) k Discrete
kT y(kT) yc(t)
0 0 0
0.1 0.363 0.300
0.2 0.528 0.466
If the sampling frequency
0.3 0.603 0.557 is increased (sampling
0.4 0.639 0.606 period is decreased), the
0.5 0.654 0.634 discrete time response will
0.6 0.661 0.648 approach the continuous
time case.
1.0 0.666 0.665
Example
Find y(t) for discrete system.
R *( s ) 1
Y ( s ) = G ( s ) X *( s ) X *( s ) = R ( z ) =
1 + G *( s ) 1 − z −1
R *( s ) 1 − e −Ts 4 R( z )
Y (s) = G (s) = s s + 2 1 + G ( z )
1 + G *( s ) z =eTs
4 (1 − z −1 ) 1
= −1 = Y ( s ) 1 + G ( z )
+ − +
1
s ( s 2) (1 z )(1 G ( z )) z =eTs z =eTs
2 2 1 z − 0.8187
Y1 ( s ) = − = = 1 − 0.363 z −1 − 0.165 z −2 −
s s+2 1 + G ( z ) z − 0.0465
−2 t 1 −Ts −2Ts
y1 (t ) = 2(1 − e ) 1 + G ( z ) = 1 − 0.363e − 0.165 y −
z =eTs
y (t ) = −1
Y (s)(1 − 0.363e
1
−Ts
− 0.165e −2Ts − )
= 2(1 − e −2t )u (t ) − 0.363(2)(1 − e −2(t −T ) )u (t − T ) − 0.165(2)(1 − e −2( t − 2T ) )u (t − 2T ) −
Example
Continuous: yc (t ) = 0.667(1 − e −6t )
dc gain:
The dc gain of a stable system may be obtained
from the closed-loop transfer function.
Example
0.3625
G( z) = from before
z − 0.8187
A) For sampled systems, the final value to the step input is:
G( z)
dc gain = lim y ( nT ) = ( z −1)Y ( z ) = ( z −1) R( z )
n→ z =1 1+ G ( z )
z =1
G( z) z zG ( z )
= ( z −1) =
1 + G ( z ) z − 1 z =1 1 + G ( z )
z =1
G (1) 2
= = = 0.667
1 + G (1) 1 + 2
G (s)
dc gain = lim y (t ) = lim sY ( s) = lim s R( s)
t → s →0 s →0 1 + G ( s)
G (s) 1 G (0) 2
= lim s = = = 0.667
s →0 1 + G ( s ) s 1 + G (0) 1 + 2
We have the same steady state (dc gain) for both the
discrete and continuous systems. Either may be evaluated
using the final value theorem, or by simply evaluating the
closed loop transfer function at dc (s = 0 or z = 1).
Example
Calculate the step response for the following second order,
underdamped system
R(s) + X(s) X*(s) 1 − e−Ts X ( s) 1 Y(s)
−
T = 1.0 s s ( s + 1)
z −1 1 z − 1 z[(1 − 1 + e −1 ) z + (1 − e −1 − e −1 ]
G( z) = s 2 ( s + 1) = z −1
z T =1 ( z − 1) 2
( z − e )
0.368 z + 0.264
= 2
z − 1.368 z + 0.632
G( z) z (0.36 z + 0.204)
Y ( z) = R( z ) =
1 + G( z) ( z − 1)( z 2 − z + 0.632)
Example
z (0.368 z + 0.264)
Y ( z) = = 0.368 z −1 +1.00 z −2 +1.40 z −3
( z − 1) ( z 2 − z + 0.632)
+1.40 z −4 +1.15 z −5 + 0.90 z −6 + 0.80 z −7 + 0.87 z −8
+ 0.99 z −9 +1.08 z −10 +1.08 z −11 +1.00 z −12 + 0.98 z −13
+
y(t)
Y (s) 2n
=
R ( s ) s 2 + 2n s + 2n
− / 1− 2
Percent Overshoot = e 100
Characteristic Equation
An important step is to define and analyze the characteristic
equation of the system. A typical expression of a transfer
function of a closed-loop control system is the following:
m
K ( z − zi )
G( z) i =1
Gcl ( z ) = =
1 + GH ( z ) n
( z − pi )
i =1
where zi and pj are the zeros and poles of the closed-loop
system.
The output of the system can be written as
m
K ( z − zi )
G( z) i =1
Y ( z ) = Gcl ( z ) R ( z ) = R( z ) = R( z )
1 + GH ( z ) n
( z − pi )
i =1
Characteristic Equation
The system response typically has two types of terms:
k1 z kn z
Y ( z) = + + + YR ( z )
z − p1 z − pn
Comes from R(z)
Comes from 1+GH(z)
The transient response terms (first n terms) contain the
poles of the system, which are independent of the input.
The second group depends on the forcing function (i.e., the
system input).
The equation 1+ GH ( z )
is called the characteristic equation of the system and
includes the poles of the transfer function.
−1 ki z
Originates from the characteristic
Then = ki ( pi ) equation, and gives the character
k
z − pi of the transient response.
Characteristic Equation
Consider
s-Plane z-Plane
jw Im z
r = e2T
r = e1T
0
s2 s1 s 1
Re z
s-Plane z-Plane
jw
Im z
ws / 2 w 2T
w 2
w 1
w1T
0 s 1 Re z
The jω axis between ωs/2 and –ωs/2 maps to the unit circle.
s1 s
Radial line
Logarithmic
spiral
Mapping the s-Plane into the z-Plane
Mapping the s-Plane into the z-Plane
Consider the case in the figure with
s-plane poles at s = j .
Such poles result in a system
transient-response term of the
form Aet cos(t + ) .
In the z-plane:
z = e sT = eT e jT = eT (T ) = r ()
s = j
−nT n T 1 − 2 =
e =r
nT = − ln r
=
−ln r
1− 2
z1 z1 = e −2T / r τ/T θ° Td / T
0.999 999.5 10° 36
−T /
| z1 |= e 0.99 99.5 20° 18
0.95 19.5 30° 12
Sinusoidal period, Td: 0.9 9.5 45° 8
T = 1 fs Td = 1 f >5 0.8 4.48 60° 6
0.7 2.80 90° 4
2T 0.6 1.96 120° 3
= T = (2f )T =
Td 0.4 1.09 180° 2
ans = ans =
0.9948+ 0.0199i 0.9323+ 0.1890i
0.9948- 0.0199i 0.9323- 0.1890i
z −1 i =1
( z − 1) R( z ) z 1
ess (k ) = lim = lim =
z →1
1 + G( z) z →1 1 + G ( z ) 1 + lim G ( z )
z →1
1 1 1
N = 0, K p = K dc , ess (k ) = = =
1 + lim G ( z ) 1 + K p 1 + K dc
z →1
N 1, K p → , ess (k ) → 0
Steady-State Accuracy
m
RAMP: K ( z − zi )
Tz G( z) = i =1
R( z ) = r (k ) = k
p
Let ( z − 1) ( z − z j )
N
( z - 1) 2 i =1
( z − 1) R( z ) ( z − 1) T z
ess (k ) = lim =
z →1
lim
z →1
1 + G ( z ) ( z − 1) 2
(1 + G ( z ))
T T 1
= lim = =
z →1 ( z − 1) + ( z − 1)G ( z ) lim( z − 1)G ( z ) K v
z →1
1
Velocity - error constant K v = lim ( ( z − 1)G ( z ) )
T z →1
Three cases : If N = 0, K v = 0, ess (k ) →
K dc 1 T
N = 1, Kv = , ess (k ) = =
T K v K dc
N 2, Kv → , ess (k ) → 0
Steady-State Accuracy
PARABOLIC : m
K ( z − zi )
T 2 z ( z + 1) k2 G( z) = i =1
R( z ) = r (k ) =
p
, ( z − 1) ( z − z j )
N
2( z − 1)3 2 i =1
( z − 1) R( z ) ( z − 1)T 2 z ( z + 1)
ess (k ) = lim = lim
z →1
1 + G ( z ) z →1 2( z − 1) 3 (1 + G ( z ))
T2 1
= =
lim ( ( z − 1) 2 G ( z ) ) K a
z →1
Acceleration-error constant: K a =
T
1
lim
2 z →1 ( ( z − 1) 2
G( z) )
Three cases:
N 1, K a = 0, ess (k ) →
K dc 1 T2
N = 2, Ka = 2 , ess (k ) = =
T K a K dc
N 3, K a → , ess (k ) → 0
m
Steady-State Accuracy
( z − zi )
G( z) = K p We evaluate the steady-state error
( z − 1) ( z − z j )
coefficients from the open-loop G(z) in
N
K dc = ( z − 1) N G ( z ) |z =1 factored form.
m
m
(1 − zi ) K (1 − zi )
=K Type 0 : K p = p
= K dc
(1 − z j )
p
(1 − z j )
Kv = Ka = 0
K p = lim G ( z )
z →1 m
−
Type I : K p = lim G ( z ) = lim →
K (1 zi )
z →1
( z − 1) (1 − z )
1
lim ( ( z − 1)G ( z ) )
p
Kv = z →1
T z →1 j
K a = 2 lim ( ( z − 1) 2 G ( z ) )
1 m
−
K v = lim ( z − 1) = K dc
1 K (1 z )
T z →1 i
T z →1 ( z − 1)
p
(1 − z )
T
1 j
ess = (step)
1+ K p Ka = 0
1 Type II : K p = K v =
ess = (ramp)
Kv m
−
K a = 2 lim ( z − 1) = K dc
1 2 K (1 zi )
1
ess = (parabolic) T z →1 p T 2
( z − 1) (1 − z j )
2
Ka
Example
D(z) = 1
R E Y
T
1− e −Ts
K + + D(z) G(s)
G (s) = s ( s + 1) -
s
z − 1 1 K ( z − 1) z ( e −T
+ T − 1) z + (1 − e −T
− Te −T
)
G( z) = K =
z s ( s + 1)
2
z ( z − 1) 2 ( z − e −T )
K (e −T + T − 1) z + (1 − e −T − Te −T )
= −T
Type I system
( z − 1)( z − e )
1 1
K p = lim G ( z ) = For a step input ess = = =0
z →1 1+ K p
1 K (e −T + T − 1) z + (1 − e −T − Te −T )
K v = lim ( z − 1)G ( z ) = lim −T
=K
z →1 T z →1 T (z − e )
1 1
For a ramp input ess = =
Kv K
Example
R T
E 1
_____ Y
+ + D(z) ZOH s+1
–
1− e −Ts
1 D(z) = 1
G (s) = ( s + 1)
s Design specification ess(ramp) <= 0.01
z −1 1 ( z − 1) z (1 − e −T ) (1 − e −T )
G( z) = s ( s + 1) = z ( z − 1)( z − e −T ) = ( z − e −T )
z
1 1
Type 0 system K v = 0 ess (ramp) = = =
Kv 0
To achieve ess (ramp) 0.01 → there must be a pole @ z = 1 Must be a
type I system
KI z (KI + KP ) z − KP
Introduce D( z ) = + KP = (PI compensator )
z −1 z −1
1 (K + KP )z − KP (1 − e −T )
K v = lim ( z − 1) D( z )G ( z ) = lim( z − 1) I ( z − e −T )
z →1 T z →1 T ( z − 1)
(K + KP ) − KP (1 − e −T ) K I
= I (1 − e −T ) = T ( D( z )G ( z ) → Type I system )
T
Example
Type I system, with a ramp input:
1 T
ess (ramp ) = = 0.01 K I 100T
Kv K I