7
7
Objectives:
The objectives of this experiment are to:
1. Describe quantitatively the transient response of first order systems.
2. See the effect of the gain and time constant on the transient response
and steady state error.
Time Response:
The time response of a control system consists of two parts: the transient
and the steady-state response as shown in Figure 5.1. By transient
response, we mean that which goes from the initial state to the final state.
By steady-state response, we mean the manner in which the system
output behaves as time approaches infinity.
Transient Response:
One of the most important characterestics of control systems is their
transient response. The transient response is the response of a system as a
function of time. Because the purpose of control systems is to provide a
desired response, the transient response of control systems often must be
adjusted until it is satisfactory. If an open loop control system does not
provide a satisfactory response, then the process must be replaced with a
more suitable process. By constrast, a closed loop system can often be
adjusted to yield the desired response by the adjusting the feedback loop
parameters. In specifying the transient response characteristics of a control
system to a unit-step input, it is common to specify the following:
1. Time Constant (𝝉): is the time required for the response curve to reach
63.2% of its final value in the phase lag, or 36.8 % in the phase lead.
2. Rise Time (𝑻𝒓 ): is the time required for the response to rise from 10% to
90% of its final value.
3. Settling Time (𝑻𝒔 ): is the time required for the response curve to reach
and stay within a range about 2% or 5% of its final value.
Steady State Error (𝒆𝒔𝒔 ):
The steady state error is the difference between the input and the output for
a prescribed test input as time → ∞.
First Order Systems:
The dynamics of many systems of interest to engineers may be represented
by a simple model containing one independent energy storage element. For
example, the braking of an automobile, the discharge of an electronic camera
flash, the flow of fluid from a tank, and the cooling of a cup of coffee may all
be approximated by a first-order differential equation.
(a) (b)
Figure 5.2: First order system lag: (a) RC lag circuit, (b) output step response.
2. First-Order System Lead: may represented by an RC circuit. where
the output on the resistor as shown in Figure 5.3 (a) and the output step
response as shown in Figure 5.3(b). The transfer function is given by:
𝑉𝑜 (𝑠) 𝐾𝑠
=
𝑉𝑖 (𝑠) 𝑠 + 𝑎
(a) (b)
Figure 5.3: First order system lead: (a) RC lead circuit, (b) output step response.
Example 5.1: Consider a first order system has the closed loop transfer
function with the unity feedback:
𝑌(𝑠) 1
=
𝑅(𝑠) 𝜏𝑠 + 1
Solution:
Step Response
1
=1
0.9
=3
0.8
=5
0.7
0.6
Amplitude
0.5
0.4
0.3
0.2
0.1
0
0 5 10 15 20 25 30
Time (sec)
=1
25
20
Input =3
Amplitude
15
=5
10
0
0 5 10 15 20 25 30
Time (sec)
Example 5.2: A tank level control system is shown in Figure 5.6 (a). It is
desired to regulate the level 𝑯 in response to an input change 𝑸𝟏 . The
open loop transfer function is:
∆𝐻 𝑅
𝐺(𝑠) = =
∆𝑄1 𝑅𝐶𝑠 + 1
For closed loop system, a float level sensor and valve may be used. The
valve is controlled so that a reduction in the flow rate ∆𝑸𝟏 , is a
proportional to an increase in head 𝑯. The block diagram of the system
shown in Figure 5.6 (b). Do the following:
1. Write a MATLAB program to obtain the closed loop step response of
the system for K=2, 4, and 10. Assuming: C=1 m2 and R=0.5 sec/m2.
2. Determine the values of time constant, rise time, settling time, and
steady state error for each value of gain.
(a) (b)
Figure 5.6: Tank level system: (a) schematic diagram, (b) block diagram.
Solution:
% 1. To obtain the closed loop step response for K=2,4, and 10 %
s=tf('s');
R=0.5;C=1;
K=[2 4 10];
hold on
for i=1:3
G=K(i)*R/(R*C*s+1);
T=feedback(G,1)
step(T)
xlabel('Time')
ylabel('Height')
title('Step Response')
end
gtext('K=2')
gtext('K=4')
gtext('K=10')
Step Response
0.9
0.8
K=10
0.7
K=4
0.6
0.5
Height
K=2
0.4
0.3
0.2
0.1
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6
Time (sec)
Discuss the effect of the system gain on the time constant and steady state
error.
--------------------------------------------------------------------------------------------
Example 5.3: The transfer function of the 𝑅𝐶 network given in Figure 5.8
is:
𝑌(𝑠) 1
=
𝑅(𝑠) 1 + 𝑅𝐶𝑠
Do the following:
1. Find the step response when 𝑅 = 1𝐾Ω, 5𝐾Ω, 10𝐾Ω, and 𝐶 = 1µf.
2. Record the values of time constant, rise time, settling time, and steady
state error for each case in parts (1) and (2).
Solution:
% 1. To obtain step response of the RC network for R=1KΩ,5KΩ,10KΩ, and C=1µf %
s=tf('s');
C=1*10^-6;
R=[1*10^3 5*10^3 10*10^3];
hold on
for i=1:3
T=1/(1+R(i)*C*s);
step(T)
end
gtext('R=1K ohm')
gtext('R=5K ohm')
gtext('R=10K ohm')
Step Response
R=1K ohm
R=5K ohm
0.8
R=10K ohm
Amplitude
0.6
0.4
0.2
0
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
Time (sec)
Figure 5.9: Step response of the RC network for R=1KΩ, 5KΩ, 10KΩ, and C=1µf.