.7 Quiz Solutions Problem : a H(s) = s a a) Calculate the zero order hold equivalent H eq (z). H eq (z) = z z G(s) Z{ } s G(s) a Z{ } = Z{ s s(s a ) } G(s) A B Z{ } = Z{ + } s s(s + a) s(s a) G(s) a a Z{ } = Z{ + } s s(s + a) s(s a) Using Transform in Table B. of FPW, we have: Z{ G (s) z( e } = (z s )( z at e ) at ) (z at z( e ) )( z e at ) G(s) z( e at )(z e at ) + z( e at )(z e at ) Z{ } = s (z )(z e at )(z e at ) z z( e at )(z e at ) + z( e at )(z e at ) H eq (z) = z (z )(z e at )(z e at ) ( e at )(z e at ) + ( e at )(z e at ) H eq (z) = (z e at )(z e at ) at e at )z e at e at H eq (z) = ( e (z e at )(z e at ) H eq (z) = (e at + e at )z + e at + e at (z e at )(z e at )
b) Show that for. 8 4 (z + ) a = 4, T =.sec, H eq (z) = z.6z + H eq (z) = (e.4 + e.4 )z + e.4 + e.4 (z e.4 )(z e.4 ) 8 4 (z + ) H eq (z) = z.6z + The answer matches, as expected. The poles map closely to z = e st due to the fact that the sampling frequency is significantly higher than the frequency of the poles. st e =.48 = p z st e =.968 = p z Pole Zero Map.8.6.4...4.6.8.5.5.5 Figure : Pole Zero Map of Plant
c) The DC value of the transfer function is -, so the magnitude is with a phase of -8. This result can be found by plugging in z =. This discrete DC gain agrees with the continuous time DC gain, as both are -. The high frequency gain is, as if z =, then the numerator goes to. The poles near z= can both be treated as if they were at z=.968 for the purposes of the magnitude plot. Because of this, the magnitude plot starts off with a flat slope, and the slope turns to - at the pole frequency. The value of the magnitude at the breakpoint is -3db. The plot continues with this - slope until the zero is approached, at which the magnitude decreases sharply towards. The two poles wind up contributing 8 of phase to the system for low frequencies and 36 of phase at high frequencies. The zero is approached at an angle nearly perpendicular to the real axis, so it contributes 9 at high frequencies. Other interesting points such as the π frequency point can be observed. At π rad/sample, each pole contributes 35 of phase while the zero contributes 45. The magnitude that that point is 8 4. Connecting these points, we can form a reasonable Bode plot. Magnitude 5 5 5 3 Phase( ) 5 3 3 Figure : Bode Plot of Plant 3
d) There are no values of G that can stabilize the system. The poles break away from the real axis outside of the unit circle, and proceed to circle around the zero in a circular arch of radius. They break back into the real axis, but even at high gains, one pole continues to remain unstable. Root Locus.5.5.5.5 3.5 3.5.5.5.5.5 Figure 3: Root Locus of Proportional Controller + Plant 4
e) The Nyquist contour can be developed using the unit circle, and thus the same data points as described in the Bode plot construction. In Figure 4, three points are indicated. These exist at frequencies of, π, and π. The Nyquist contour will first be drawn for G = and generalized afterwards. At DC, the magnitude was already found to be with a phase of 8. At π, the magnitude was found to be 8 4 with a phase of 5. Finally, at π, the magnitude is due to the presence of the zero, and the phase is 8 8 +9 = 7..8 Pole Zero Map A=(,),B=(,),C=(,).6.4...4.6.8.5.5.5 Figure 4: Pole Zero Map of Plant and Useful Points for Nyquist 5
Using the presented points, a Nyquist plot can be constructed. Figure 5: Nyquist Plot The loop that is created is a clockwise loop. We can normalize the system by observing the encirclements of the G point. Because of the unstable looptransmission pole, our goal is to produce a counterclockwise encirclement of the point. However, this is never achieved. For small G, there is no encirclement G at all, so Z=N+P=+=. For large G, there is a clockwise encirclement, and Z=N+P=+=. 6
f) Design a lead compensator for the system of the form G(z) = K(z α) z The lead pole has already been set at the origin. The location of the zero has to be determined. One possibility is to place the zero near the pole at z=.968. This will greatly offset the phase contribution of that pole. Pole Zero Map.8.6.4...4.6.8.5.5.5 Figure 6: PZ Map with Lead with Zero at z=.95 A suitable location for the crossover can be estimated from the pole-zero plots. For both cases, at very small frequencies (Ω << ), the pole at the origin and the zero at - have very little effect. For our approximation, the poles and zero near z = appear as a single pole near z =. Let s test some approximate points. At Ω = π/, the phase is 35 9 + 45 = 8. There is not enough phase margin at this point. At Ω = π/4, the phase is 45 +.5 = 35. The phase margin is approximately 45, so that frequency will suffice. All that is left to do is solve for the gain necessary at that frequency. The gain can quickly be approximated. The gain introduced by the lead compensator is K( α). Putting aside the K term, the lead compensator has already contributed α =.4 to the gain. With the design of the lead compensator, the zero nearly cancels the pole near the origin, so it appears as if there were only one pole near the origin in total. The pole outside of the unit circle can be treated as if it were at z=.96 for magnitude calculations. Thus there is a breakpoint at Ω =.4, and the following rad asymptote has a slope of -. At the desired crossover frequency, Ω =.8 sample, 7
Pole Zero Map.8.6.4...4.6.8.5.5.5 Figure 7: PZ Map with Lead with Zero at z=.97 Magnitude 5 Phase( ) 5 5 5 3 3 3 Figure 8: Bode Plot of Compensated System, K= the - slope has resulted in a gain of. These two gains result in a gain of =. K = 5. 5 5 8
5 Magnitude 5 Phase( ) 3 5 5 3 3 Figure 9: Bode Plot of Compensated System, K=5 The design is stable until the frequency Ω = π is reached. The difference in gain between this frequency and Ω = π is about, due to the - slope. Thus the system 4 is stable until a gain of approximately K = is used. g) As previously solved for, the poles cross the unit circle with a gain of, and they cross at ±i. 9
.5 Root Locus.5.5.5 5 4 3 Figure : Root Locus of Compensated System