Professional Documents
Culture Documents
1 Dept.of ECE,MITE,Moodabidri
Contents
Time Response of feedback control systems
Standard test signals
Unit step response of First and Second order Systems.
Time response specifications
Time response specifications of second order systems
steady state errors and error constants.
Introduction to PI, PD and PID Controllers (excluding
design).
2 Dept.of ECE,MITE,Moodabidri
Lesson Plan
S.N DATE TOPIC DATE REMARKS
PLANNED ENGAGED
1.1 Time Response of feedback control systems
1.2 Standard test signals
1.3 Unit step response of First order Systems
3 Dept.of ECE,MITE,Moodabidri
Motivation
4 Dept.of ECE,MITE,Moodabidri
Time Domain Analysis
5 Dept.of ECE,MITE,Moodabidri
8 Dept.of ECE,MITE,Moodabidri
9 Dept.of ECE,MITE,Moodabidri
10 Dept.of ECE,MITE,Moodabidri
11 Dept.of ECE,MITE,Moodabidri
12 Dept.of ECE,MITE,Moodabidri
13 Dept.of ECE,MITE,Moodabidri
14 Dept.of ECE,MITE,Moodabidri
15 Dept.of ECE,MITE,Moodabidri
16 Dept.of ECE,MITE,Moodabidri
17 Dept.of ECE,MITE,Moodabidri
18 Dept.of ECE,MITE,Moodabidri
19 Dept.of ECE,MITE,Moodabidri
20 Dept.of ECE,MITE,Moodabidri
21 Dept.of ECE,MITE,Moodabidri
22 Dept.of ECE,MITE,Moodabidri
Contd..
23 Dept.of ECE,MITE,Moodabidri
Contd..
24 Dept.of ECE,MITE,Moodabidri
Contd..
25 Dept.of ECE,MITE,Moodabidri
26 Dept.of ECE,MITE,Moodabidri
Contd..
27 Dept.of ECE,MITE,Moodabidri
Contd..
28 Dept.of ECE,MITE,Moodabidri
Contd..
29 Dept.of ECE,MITE,Moodabidri
Contd..
30 Dept.of ECE,MITE,Moodabidri
Contd..
31 Dept.of ECE,MITE,Moodabidri
32 Dept.of ECE,MITE,Moodabidri
Time-domain Specifications: Motivation
33 Dept.of ECE,MITE,Moodabidri
Time-domain Specifications
Delay time 𝒕d: –Time required for the response to reach 50% of the final value at first instance
𝑡d=(1+0.7𝜁)/𝜔𝑛
Rise time 𝒕𝒓:
–Time required for the response to rise from 10% to 90% of the final value for
overdamped systems and 0 to 100% of the final value for underdamped systems, at first instance
Peak time 𝒕𝒑: –Time required for the response to reach the peak value of time response
Peak overshoot 𝑴𝒑: –It is the normalised difference between the peak value of time response and
the steady state value
M p = ymax − yss ;
Settling time 𝒕𝒔: –Time required for the response to reach and stay within a specified tolerance
band of its final value or steady state value
–Usually the tolerance band is 2% or 5%
Note: 𝑡𝑝 and 𝑀𝑝 are not defined for overdamped and critically damped systems
34 Dept.of ECE,MITE,Moodabidri
Time-domain Specifications
1. Steady-state value: yss
Mp
2. Maximum overshoot: Percent overshoot = 100%
yss
M p = ymax − yss ;
ymax
3. Peak time: tp Mp error band
Is there overshoot in
the time response of a 0.1
first-order system?
Dept.of ECE,MITE,Moodabidri tr ts
35 tp
1. Rise Time
−n tr
ee− wntr sin( t + ) = 0
y (tr ) = 1, that is, 1 − sin( wdd trr + ) = 1
1 − 22
− t
1−
e n r
0, d tr + = n (n = 0, 1, 2, )
1− 2
− −
tr = =
tr is the time needed for d n 1 − 2
the response to reach the
steady-state value for For a given wn, ζ ↓ ,tr ↓ ;
the first
36
time,
Dept.of so n=1.
ECE,MITE,Moodabidri For a given ζ,wn↑,tr ↓ .
−nt
e dy (t )
y (t ) = 1 − sin(d t + ),0< 1 =0
1− 2 dt
dy (t ) 2n
2 . Peak time =( + n 1 − 2 )e− n t sin d t
dt 1− 2
n
= e− n t sin d=0
t
1− 2
sin d t p = 0 d t p = n (n = 0, 1, 2, )
tp is the time needed for
d t p = t p = =
the response to reach the d n 1 − 2
maximum value for the
first time, so n=1. For a given wn, ζ ↓ ,tp ↓ ;
For a given ζ,wn↑,tp ↓ .
37 Dept.of ECE,MITE,Moodabidri
−nt
sin(d t + ),0< 1 t p = w =
e
y (t ) = 1 −
1− 2 d wn 1 − 2
y (t p ) − y ()
3. Overshoot % = 100%
− wn t p y ( )
e
y (t p ) = 1 − sin( + ) Im
1− 2
d
sin( + ) = − sin = − 1 − 2 n
− Re
− / 1− 2
y (t p ) = 1 + e −d
Suppose that y () = 1 1− 2
= arctan
− / 1− 2
Thus % = e 100%
e− n t
sin( 1 − 2 nts + ) 0.05 or 0.02
1− 2
39 Dept.of ECE,MITE,Moodabidri
− −
tr = =
d n 1 − 2 For a given n
tr t p
tp = =
d n 1 − 2
%
can be calculated by the requirement
% = e − / 1− 2
100% on the overshoot %. [0.4,0.8].
3 n ts
ts ( = 5%)
n Once is determined,n can be
4 determined based on the requirement
ts ( = 2%)
40
Dept.ofnECE,MITE,Moodabidri on error band %.
41 Dept.of ECE,MITE,Moodabidri
42 Dept.of ECE,MITE,Moodabidri
Error and steady-state error
Open-loop control system Closed-loop control system
R(s) E (s) Y (s)
R(s) Y (s) G( s )
G( s )
r (t ) y (t ) r (t ) e (t ) y (t )
Error: e(t ) = r (t ) − y (t )
Steady-state error: ess = lim e(t )
t →
= lim[1 − G ( s )] 1 1
s →0
= lim =
s →0 1 + G ( s ) 1 + G (0)
= 1 − G (0)
44 Dept.of ECE,MITE,Moodabidri
Feedback has the effect to reduce steady-state error.
The forward-path transfer function G(s) can be
formulated as
ν is the order of
k ( s + 1) ( 22 s 2 + 21 2 s + 1)
G ( s) = v 1 the pole of G(s) at
s (T1s + 1) (T22 s 2 + 2 2T2 s + 1) s=0
k
= v
G0 ( s ) when s → 0, G0 ( s) → 1
s
System Type: the order of the pole of G(s) at s=0.
When ν=0,1,2, the system is called type 0, type 1, type 2; k is called open-
loop gain.
1
E (s) = R( s)
1 + G ( s)
1
ess = lim sE ( s ) = lim s R( s )
s →0 s →0 k
Dept.of ECE,MITE,Moodabidri
1 + G0 ( s)
45 s 45
46 Dept.of ECE,MITE,Moodabidri
47 Dept.of ECE,MITE,Moodabidri
R(s) 5K A C(s)
- s ( s + 34.5)
48 Dept.of ECE,MITE,Moodabidri
48
Solution: The closed-loop transfer function is
G( s) 5K A
( s) = = 2
1 + G ( s ) s + 34.5s + 5K A
1000
K A = 200, ( s ) =
s 2 + 34.5s + 1000
tp = = 0.12(sec)
n 1 − 2
3
ts = 0.174(sec)
n
− / 1− 2
% = e 100% = 13%
50 Dept.of ECE,MITE,Moodabidri
K A = 1500
If K A = 200, then n = 34.5(rad / s); = 0.545
t p = 0.12( s), ts = 0.174( s), % = 13%
Thus, the greater the KA, the less theξ,the greater the
wn, the less the tp, the greater theб%, while the settling
time ts has no change. 1
K A = 13.5 Overdamped
t s 3T = 1.46(sec)
1
= n ( − 2 − 1)
T
The settling time is greater than previous cases,
although the response has no overshoot, the transition
process is very slow, the curves are as follows:
52 Dept.of ECE,MITE,Moodabidri
52
c (t )
= 0.2( K A = 1500 )
1.4
1.2
1.0
0.8
0.6
= 2.1( K A = 13.5)
0.4 = 0.545( K A = 200)
0.2
0 2 4 6 8 10 12 14 16 18 wn t
Note: When KA increases, tp decreases, tr decreases,
the speed of response increases, meanwhile, the overshoot
increases. Therefore, to improve the dynamic performance
indexes of system, we adopt PD-control or velocity
53feedback control,namely, PD compensation 。
Dept.of ECE,MITE,Moodabidri
53
54 Dept.of ECE,MITE,Moodabidri
55 Dept.of ECE,MITE,Moodabidri
1
ess = lim sE ( s ) = lim s R( s)
s →0 s →0 k
1 + 0 G0 ( s)
ν=0, type 0 system s
Step input: Steady-
1
1 ess = state error
r (t ) = 1(t ) R ( s ) = 1+ k exists and
s
is finite.
Ramp input:
1 ess = Unstable
r (t ) = t R( s) = 2
s
Parabolic input:
1 1
r (t ) = t 2 R( s ) = 3
ess = Unstable
2 s
56 Dept.of ECE,MITE,Moodabidri
56
1
ess = lim sE ( s) = lim s R( s)
s →0 s →0 k
1 + 1 G0 ( s)
ν=1, type 1 system s
Step input: 1
ess = =0 No steady-
1
r (t ) = 1(t ) R ( s ) =
s
1+ state error
Ramp input: 1
1 ess = Steady-state
r (t ) = t R( s ) = 2 k error exists
s
Parabolic input:
ess = Unstable
1 1
r (t ) = t 2 R( s ) = 3
2 s
1
ess = lim sE ( s ) = lim s R( s )
s →0 s →0 k
1 + 2 G0 ( s)
ν=2, type 2 system s
Step input: 1
1 ess = =0 No steady-
r (t ) = 1(t ) R ( s ) = 1+ state error
s
Ramp input:
1 ess = 0 No steady-
r (t ) = t R( s ) = 2 state error
s
1
Parabolic input: ess = Steady-state
1 1 k error exists
r (t ) = t 2 R( s ) = 3
2 s
59 Dept.of ECE,MITE,Moodabidri
59
Type of
System
Error
constants
Steady-state error ess
j k p k v k a r (t ) = R0 1(t ) r (t ) = V0t r (t ) = A0t 2 2
R0
0 k 0 0
1+ k
V0
Ⅰ k 0 0
k
A0
Ⅱ k 0 0
k
Summary of steady-state error and error constants
for unit-feedback
60
systems (H(s)=1)
Dept.of ECE,MITE,Moodabidri
60
61 Dept.of ECE,MITE,Moodabidri
62 Dept.of ECE,MITE,Moodabidri
63 Dept.of ECE,MITE,Moodabidri
Example 1
Consider a first-order system with the following parameters.
Time constant = 0.1s ; DC gain K = 20
The problem is to determine the unit impulse response of a
system that has these parameters.
K 20 − t /0.1
Solution. y (t ) = e−t = e = 200e −10t
0.1
K 20
G (s) = =
s + 1 0.1s + 1
>> num=20;
>> den=[0.1 1];
>> impulse(num,den)
64 Dept.of ECE,MITE,Moodabidri
Example 2 Below is the impulse response of a system -
i.e. the response to a unit impulse.
CouldDept.of
65 you compute the parameters of the system?
ECE,MITE,Moodabidri
at t = 0, y (0) = 20
So we can get
K
= 20 (2) With (2) and (3), we have
y (2) = 20e−2/ = 8
How to get K ?
Pick up a point on the response curve: e −2/ = 0.4
Solving the equation yields:
66 Dept.of K
y (2) e −2 = 8
= ECE,MITE,Moodabidri (3) 2.2sec K = 20 = 44
Example 3 Consider a first-order system with the following
parameters.
Time constant = 0.1s ; DC gain K = 20
The problem is to determine the unit step response of a
system that has these parameters.
Solution.
Using the general form of the unit-step response of first –order systems
y (t ) = K (1 − e −t / )
67 Dept.of ECE,MITE,Moodabidri
If we keep = 0.1s
but change K,
what will
happen?
68 Dept.of ECE,MITE,Moodabidri
Time constant = 0.1s ;
DC gain K = 20 → 16 → 10 → 4
69 Dept.of ECE,MITE,Moodabidri
DC gain K = 20
Time constant = 0.1s → 0.2s → 0.3s → 0.5s
Note: the time constant reflects the system inertia. The smaller is the
is and the quicker is the response, vice versa.
Dept.of ECE,MITE,Moodabidri
system inertia, the shorter
70
Two important properties of the unit-step response of a
first-order system:
a) The time constant can be used to calculate the
system output
experiment methods
t = , y ( ) = 0.632 y () = 63.3% final value; -- estimate the
time constant
t = 2 , y (2 ) = 0.865 y () = 86.5% final value;
--judge whether a
t = 3 , y (3 ) = 0.950 y () = 95.0% final value; system is first-
order or not
t = 4 , y (4 ) = 0.982 y () = 98.2% final value;
y (t )
y ( )
y (t ) = K (1 − e −t / )
0.632 y ()
1
slope =
0 t
72 Dept.of ECE,MITE,Moodabidri
Controllers
73
cs1567
Introduction
Suppose you have a system that needs to be controlled
Your software gives commands, the system responds to it
Turn x degrees to the right
Move forward 15 wheel rotations
Can you always trust your commands will be executed
accurately?
74 cs1567
Problem example
overshoot Ripple
setpoint
75 cs1567
measured quantity
76 cs1567
PID stands for: P (Proportional)
I (Integral)
D (Derivative)
On-off control
For some systems, on-off signaling is sufficient
For example, a thermostat, when the heater is either on
or off, and early cruise-control systems
Could do airflow or speed control also
More modern systems do it
Depending on the frequency of control, overhead of on-
off, etc, this could cause overshoots and undershoots
(ripples)
Oscillation is a common behavior in control systems
Need to avoid it at all costs… well, almost all costs
78 cs1567
Proportional control
79 cs1567
80 cs1567
Integral control
There may still be error in the PD controller
For example, the output is close to setpoint
P is very small and so is the error, discretization of signal will provide no
change in the P controller
D controller will not change signal, unless there is change in output
Take the sum of the errors over time, even if they’re
small, they’ll eventually add up
I * sum_over_time (setpoint — output)
Again the main problem is the value of I
Can we let sum grow to infinity?
81 cs1567
Summary
Different types of controllers
PID hardest task is tuning
82 cs1567
At the end of this lesson, the student should be
able to:
Write the input-output relationship of a P-I-D controller
Explain the improvement of transient response in closed loop
with P-controller
Explain the presence of offset in presence of simple P-controller
Define Proportional Band
Explain the elimination of steady state error with Integral
Control.
Define the error transfer function and compute steady state error
Explain the advantages of P-I controller over simple P and I
actions
Explain the effect of P-D controller
Recommend a suitable controller configuration for a particular
process.
83 Dept.of ECE,MITE,Moodabidri