Documente Academic
Documente Profesional
Documente Cultură
Question 1: (5 marks)
Draw the block diagram of a basic digital control system. Show clearly all blocks
and all signals (continuous and discrete).
Computer
Note: In the above figure, the plant includes the actuator and the sensor blocks
Philadelphia University Student Name:
Faculty of Engineering Student Number:
Question 2: (5 marks)
Draw the flow chart for a discrete PI controller:
T
u (k ) u (k 1) K 1 e(k ) e(k 1)
TI
Start
Set values
K (gain), T (sampling time), Ti (Integral time)
Initialize
u(-1)=0, e(-1)=0
Set Reference Vector r
k=0
k=k+1
Read
y(k)
e(k)=r(k)-y(k)
Output
u(k)
Philadelphia University Student Name:
Faculty of Engineering Student Number:
Question 3: (8 marks)
Consider the following difference equation
u (k ) 3u (k 1) 4u (k 2) e(k ) 2e(k 1)
U ( z ) 3 z 1U ( z ) 4 z 2U ( z ) E ( z ) 2 z 2U ( z )
U ( z) 1 2 z 1 z 2 2z
H ( z) H ( z ) 2
E ( z ) 1 3 z 1 4 z 2 z 3z 4
b) If the input is a unit step, what would U(z) be?
1 k 0
e(k ) 1(k )
0 k 0
ek z
1
E( z) k
E ( z ) z k E ( z )
k k 0 1 z 1
1 2 z 1 1
U ( z) H ( z) E( z)
1 3z 1 4 z 2 1 z 1
Or,
z 2 2 z z
U ( z ) 2
z 3 z 4 z 1
c) Calculate the impulse response for k=0,..,3
s j
0 2 0 3.75
G 0 1.857
3.75
G (0)
0 1(0 2 3(0) 2) 4
s 2 s 3.75 s2
G s s lim 3 lim 3 0
s s 4 s 2 5s 2 s s
zero at
Root Locus 1+1.9j
2
1.5
at -2 pole at -1
0
-0.5
-1
zero at
-1.5 1-1.9j
-2
-3.5 -3 -2.5 -2 -1.5 -1 -0.5 0 0.5
Real Axis
Philadelphia University Student Name:
Faculty of Engineering Student Number:
Use the bode plot below to answer parts c and d
Bode Diagram
10
0
Magnitude (dB)
Mag. dB
-10
Mag. = -10 dB
-20
-30
360
270
Phase = 180
Phase (deg)
180
90
Phase
0
-90
-2 -1 0 1
10 10 10 10
Frequency (rad/sec)
c) If the input is u (t ) 10 sin5t 20 what would the output be?
The input signal has a frequency of 5 rad/sec. Then, use the bode plots
to find the magnitude and phase.
d) For the closed loop system, for what range of k will the plant be stable?
+ + k G(s)
Here, we need to find the GM. From the bode plot, the find the frequency that
crosses the 180 in the phase plot and extend the line to find the magnitude which
is -10 dB. Then, 20 log x = -10 dB x = 0.3162 Then, k = 1/x k = 3.16