Docsity

Digital Control Systems-Control Systems-Lecture Handout, Exercises of Control Systems

Toggle sidebar
bg1
T H I R T E E N
Digital Control
Systems
SOLUTIONS TO CASE STUDIES CHALLENGES
Antenna Control: Transient Design via Gain
a. From the answer to the antenna control challenge in Chapter 5, the equivalent forward transfer
function found by neglecting the dynamics of the power amplifier, replacing the pots with unity
gain, and including the integration in the sample-and-hold is
Ge(s) = 0.16
K
s2(s +1.32)
But,
Thus, Ge(z) = 0.16K z - 1
z Gz , or,
Ge(z) = 7.659x10-4K (z+0.95696)
(z-1) (z-0.87634)
b. Draw the root locus and overlay it over the ζ = 0.5 (i.e. 16.3% overshoot) curve.
.
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46

Partial preview of the text

Download Digital Control Systems-Control Systems-Lecture Handout and more Exercises Control Systems in PDF only on Docsity!

T H I R T E E N

Digital Control

Systems

SOLUTIONS TO CASE STUDIES CHALLENGES

Antenna Control: Transient Design via Gain

a. From the answer to the antenna control challenge in Chapter 5, the equivalent forward transfer

function found by neglecting the dynamics of the power amplifier, replacing the pots with unity

gain, and including the integration in the sample-and-hold is

G e (s) =

0.16K

s

2

(s + 1.32)

But,

Thus, G e (z) = 0.16K

z - 1

z G^ z^ , or,

G e (z) = 7.659x10 -4^ K

(z+0.95696)

(z-1) (z-0.87634)

b. Draw the root locus and overlay it over the ζ = 0.5 (i.e. 16.3% overshoot) curve.

.

Solutions to Case Studies Challenges 581

We find that the root locus crosses at approximately 0.93 ± j0.11 with 7.659x10 -4^ K = 8.63x10 -^.

Hence, K = 11.268.

c.

K v =

T

lim

z → 1

( z − 1) Ge ( z ) =

(7.659x10−^4 K)(1.95696)

e (∞) =

K v

d.

Program:

T=0.1; %Input sampling time numf=0.16; %Numerator of F(s) denf=[1 1.32 0 0]; %Denominator of F(s) 'F(s)' %Display label F=tf(numf,denf) %Display F(s) numc=conv([1 0],numf); %Differentiate F(s) to compensate %for c2dm which assumes series zoh denc=denf; %Denominator of continuous system %same as denominator of F(s) C=tf(numc,denc); %Form continuous system, C(s) C=minreal(C,1e-10); %Cancel common poles and zeros D=c2d(C,T,'zoh'); %Convert to z assuming zoh 'F(z)' D=minreal(D,1e-10) %Cancel common poles and zeros and display rlocus(D) pos=(16.3); z=-log(pos/100)/sqrt(pi^2+[log(pos/100)]^2); zgrid(z,0) title(['Root Locus with ' , num2str(pos), ' Percent Overshoot Line']) [K,p]=rlocfind(D) %Allows input by selecting point on %graphic

Computer response:

ans =

F(s)

Transfer function:


s^3 + 1.32 s^

ans =

F(z)

Transfer function: 0.0007659 z + 0.


z^2 - 1.876 z + 0.

Sampling time: 0. Select a point in the graphics window

selected_point =

9.2969e-001 +1.0219e-001i

K =

9.8808e+

Solutions to Case Studies Challenges 583

Gc ( s ) =

94.87( s + 1.32)

( s + 4.606)

. Using a sampling interval of 0.01 s, the Tustin transformation of Gc(s)

is Gc ( z ) =

93.35( z − 0.9869)

( z − 0.955)

93.35 z − 92.

z − 0.

b. Cross multiplying ,

( z - 0.955) X(z) = (93.35 z – 92.12) E(z)

Solving for the highest power of z operating on X(z),

zX(z) = (93.35 z – 92.12) E(z) + 0.955 X(z)

Solving for X(z) ,

X(z) = (93.35 – 92.12 z -1) E(z) + 0.955 z -1 X(z)

Implementing this equation as a flowchart yields the following diagram

c.

Program:

's-plane lead design for Challenge - Lead Comp' clf %Clear graph on screen. 'Uncompensated System' %Display label. numg=0.16; %Generate numerator of G(s). deng=poly([0 -1.32]); %Generate denominator of G(s). 'G(s)' %Display label. G=tf(numg,deng); %Create G(s). Gzpk=zpk(G) %Display G(s). pos=input('Type desired percent overshoot '); %Input desired percent overshoot. z=-log(pos/100)/sqrt(pi^2+[log(pos/100)]^2); %Calculate damping ratio. Tp=input('Type Desired Peak Time '); %Input desired peak time. wn=pi/(Tp*sqrt(1-z^2)); %Evaluate desired natural frequency. b=input('Type Lead Compensator Zero, (s+b). b= '); %Input lead compensator zero. done=1; %Set loop flag.

while done==1 %Start loop for trying lead %compensator pole. a=input('Enter a Test Lead Compensator Pole, (s+a). a = '); %Enter test lead compensator pole. numge=conv(numg,[1 b]); %Generate numerator of Gc(s)G(s). denge=conv([1 a],deng); %Generate denominator of Gc(s)G(s). Ge=tf(numge,denge); %Create Ge(s)=Gc(s)G(s). clf %Clear graph on screen.

584 Chapter 13: Digital Control Systems

rlocus(Ge) %Plot compensated root locus with %test lead compensator pole. axis([-5 2 -8 8]); %Change axes ranges. sgrid(z,wn) %Overlay grid on lead-compensated %root locus. title(['Lead-Compensated Root Locus with ' , num2str(pos),... '% Overshoot Line, Lead Pole at ', num2str(-a),... ' and Required Wn']) %Add title to lead-compensated root %locus. done=input('Are you done? (y=0,n=1) '); %Set loop flag. end %End loop for trying compensator %pole. [K,p]=rlocfind(Ge); %Generate gain, K, and closed-loop %poles, p, for point selected %interactively on the root locus. 'Gc(s)' %Display label. Gc=Ktf([1 b],[1 a]) %Display lead compensator. 'Gc(s)G(s)' %Display label. Ge %Display Gc(s)G(s). 'Closed-loop poles = ' %Display label. p %Display lead-compensated system's %closed-loop poles. f=input('Give pole number that is operating point '); %Choose lead-compensated system %dominant pole. 'Summary of estimated specifications for selected point on lead' 'compensated root locus' %Display label. operatingpoint=p(f) %Display lead-compensated dominant %pole. gain=K %Display lead-compensated gain. estimated_settling_time=4/abs(real(p(f))) %Display lead-compensated settling %time. estimated_peak_time=pi/abs(imag(p(f))) %Display lead-compensated peak time. estimated_percent_overshoot=pos %Display lead-compensated percent %overshoot. estimated_damping_ratio=z %Display lead-compensated damping %ratio. estimated_natural_frequency=sqrt(real(p(f))^2+imag(p(f))^2) %Display lead-compensated natural %frequency. s=tf([1 0],1); %Create transfer function, "s". sGe=sGe; %Create sGe(s) to evaluate Kv. sGe=minreal(sGe); %Cancel common poles and zeros. Kv=dcgain(KsGe) %Display lead-compensated Kv. ess=1/Kv %Display lead-compensated steady- %state error for unit ramp input. 'T(s)' %Display label. T=feedback(KGe,1) %Create and display lead-compensated %T(s). 'Press any key to continue and obtain the lead-compensated step' 'response' %Display label pause step(T) %Plot step response for lead %compensated system. title(['Lead-Compensated System with ' ,num2str(pos),'% Overshoot']) %Add title to step response of PD %compensated system. pause

'z-plane conversion for Challenge - Lead Comp' clf %Clear graph. 'Gc(s) in polynomial form' %Print label. Gcs=Gc %Create Gc(s) in polynomial form. 'Gc(s) in polynomial form' %Print label.

586 Chapter 13: Digital Control Systems

Gc(s)

Transfer function: 93.43 s + 123.


s + 4.

ans =

Gc(s)G(s)

Transfer function: 0.16 s + 0.


s^3 + 5.926 s^2 + 6.08 s

ans =

Closed-loop poles =

p =

-2.3030 + 3.1056i -2.3030 - 3.1056i -1.

Give pole number that is operating point 1

ans =

Summary of estimated specifications for selected point on lead

ans =

compensated root locus

operatingpoint =

-2.3030 + 3.1056i

gain =

estimated_settling_time =

estimated_peak_time =

estimated_percent_overshoot =

10

Solutions to Case Studies Challenges 587

estimated_damping_ratio =

estimated_natural_frequency =

Kv =

ess =

ans =

T(s)

Transfer function: 14.95 s + 19.


s^3 + 5.926 s^2 + 21.03 s + 19.

ans =

Press any key to continue and obtain the lead-compensated step

ans =

response

ans =

z-plane conversion for Challenge - Lead Comp

ans =

Gc(s) in polynomial form

Transfer function: 93.43 s + 123.


s + 4.

ans =

Gc(s) in polynomial form

Zero/pole/gain: 93.4281 (s+1.32)


Solutions to Case Studies Challenges 589

7.9649e-006 (z+0.9956)

(z-1) (z-0.9869)

Sampling time: 0.

ans =

ans =

Ge(z) = Gc(z)Gp(z) in factored form

Zero/pole/gain: 0.0007322 (z+0.9956) (z-0.9869)


(z-1) (z-0.9869) (z-0.955)

Sampling time: 0.

ans =

z-

Transfer function: z - 1

Sampling time: 0.

ans =

(z-1)Ge(z)

Zero/pole/gain: 0.0007322 (z+0.9956)


(z-0.955)

Sampling time: 0.

ans =

Kv =

Transfer function: 0.0007322 z^2 + 6.387e-006 z - 0.


z^3 - 2.941 z^2 + 2.884 z - 0.

Sampling time: 0.

590 Chapter 13: Digital Control Systems

592 Chapter 13: Digital Control Systems

ANSWERS TO REVIEW QUESTIONS

1. (1) Supervisory functions external to the loop; (2) controller functions in the loop

2. (1) Control of multiple loops by the same hardware; (2) modifications made with software, not

hardware; (3) more noise immunity (4) large gains usually not required

3. Quantization error; conversion time

4. An ideal sampler followed by a sample-and-hold

5. z = esT

6. The value of the time waveform only at the sampling instants

7. Partial fraction expansion; division to yield power series

8. Partial fraction

9. Division to yield power series

10. The input must be sampled; the output must be either sampled or thought of as sampled.

11. c(t) is c*(t) = c(kT), i.e. the output only at the sampling instants.

12. No; the waveform is only valid at the sampling instants. Instability may be apparent if one could only

see between the sampling instants. The roots of the denominator of G(z) must be checked to see that they

are within the unit circle.

13. A sample-and-hold must be present between the cascaded systems.

14. Inside the unit circle

15. Raible table; Jury's stability test

16. z=+

17. There is no difference.

18. Map the point back to the s-plane. Since z = esT^ , s = (1/T) ln z. Thus, σ = (1/T) ln (Re z), and

ω = (1/T) ln (Im z).

19. Determine the point on the s-plane and use z = e sT^. Thus, Re z = eσT cos ω, and Im z = eσT sin ω.

20. Use the techniques described in Chapters 9 and 11 and then convert the design to a digital compensator

using the Tustin transformation.

21. Both compensators yield the same output at the sampling instants.

SOLUTIONS TO PROBLEMS

a. f(t) = e-at^ ; f *(t) = (^) ∑

k=

e-akTδ(t-kT) ; F *(s) = (^) ∑

k=

e-akT^ e-kTs^ = 1 + e-aT^ e-Ts^ + e-a2T^ e-2Ts^ +... Thus,

F(z) = 1 + e-aT^ z-1^ + e-a2T^ z-2^ +... = 1 + x -1^ + x -2^ +... where x = e-aT^ z-^.

Solutions to Problems 593

But, F(z) =

1 - x -^

1 - e-aT^ z-^

z

z - e-aT^

b. f(t) = u(t); f *(t) = ∑

k=

δ(t-kT) ; F *(s) = (^) ∑

k=

e-kT^ s^ = 1 + e-Ts^ + e-2Ts^ +...

Thus, F(z) = 1 + z-1^ + z-2^ +.. Since

1 - z-^

= 1 + z-1^ + z-2^ + z-3^ , F(z) = (^) ∑

k=

z-k^ =

1 - z-^

z

z - 1.

c. f(t) = t^2 e-at^ ; f *(t) = (^) ∑

k=

(kT) 2 e-akTδ(t-kT) ; F *(s) = T (^2) ∑

k=

k 2 e-akT^ e-kTs

= T^2 ∑

k=

k 2 (e-(s+a)T^ ) k^ = T^2 ∑

k=

k 2 x k^ = T^2 (x + 4x 2 + 9x 3 + 16x 4 +... ) , where x = e- (s+a)T^.

Let s 1 = x + 4x 2 + 9x 3 + 16x 4 +... Thus, xs 1 = x 2 + 4x 3 + 9x 4 + 16x 5 +...

Let s 2 = s 1 - xs 1 = x + 3x 2 + 5x 3 + 7x 4 +.. .Thus, xs 2 = x 2 + 4x 3 + 9x 4 + 16x 3 +...

Let s 3 = s 2 - xs 2 = x + 2x 2 + 2x 3 + 2x 4 +... Thus xs 3 = x 2 + 2x 3 + 2x 4 + 2x 3 +...

Let s 4 = s 3 - xs 3 = x + x 2.

Solving for s3,

s 3 =

x + x 2

1 - x

and

s 2 =

s 3

1 - x =

x + x 2

(1 - x) 2

and

s 1 =

s 2

1 - x =

x + x 2

(1 - x) 3

Thus

F*(s) = T 2 s 1 = T^2

x + x 2

(1 - x) 3

= T^2

(e-(s+a)T^ + e-2(s+a)T^ )

(1 - e-(s+a)T^ ) 3

T 2 [z−^1 e−aT^ + z−^2 e−2aT^ ] T 2 ze −aT^ [z + e−^ aT^ ]

z

− 3

(z − e

−aT

3 =^

(z − e

− aT

3

d. f(t) = cos( ω kT ); f*(t) = cos( ω kT ) δ( t − kT ); F*(s) = k = 0

∑

∞ − kTs cos( ω kT ) e k = 0

∞ ∑

( e j^ ω kT^ + e −^ j^ ω kT^ ) e − kTs

k = 0 2

∑

( e ) +

k = 0

T ( s − j ω ) − k

∞ ∑ ( e^ )

T ( s + j ω ) − k

But,

Solutions to Problems 595

ans =

F(z)

z

/ z
exp(-a T) |--------- - 1| \exp(-a T) / ans =

(b)

ans =

f(kT)

1 ans =

F(z)

z

z - 1 ans =

(c)

ans =

f(kT)

2 2 n T exp(-a n T) ans =

F(z)

2 T z exp(-a T) (z + exp(-a T))


3 (z - exp(-a T)) ans =

(d)

ans =

f(kT)

cos(w n T) ans =

F(z)

(z - cos(w T)) z

2 z - 2 z cos(w T) + 1

596 Chapter 13: Digital Control Systems

a.

F ( z ) =

z ( z + 3)( z + 5)

( z − 0.4)( z − 0.6)( z − 0.8)

F ( z )

z

z − 0.

z − 0.

z − 0.

F ( z ) =

229.5 z

z − 0.

504 z

z − 0.

275.5 z

z − 0.

f ( kT ) = 229.5(0.4)

k

k

k

, k = 0, 1, 2, 3,...

b.

F ( z ) =

( z + 0.2)( z + 0.4)

( z − 0.1)( z − 0.5)( z − 0.9)

F ( z )

z

z

z − 0.

z − 0.

z − 0.

F ( z ) = −1.778 +

4.6875 z

z − 0.

7.875 z

z − 0.

4.9653 z

z − 0.

f ( kT ) = 4.6875(0.1)

k

k

k

, k = 1 ,2, 3,...

c.

2

2

z z z

F z

z z z z

F z z z z

z z z z z

z z z z z

z z z

F z

z z z

38.1633(0.7) 72(0.5) 60(0.2) for 2,3, 4,

=1 for 1

=0 for 0

k k k

z

F k

k

k

Program:

'(a)' syms z k F=vpa(z(z+3)(z+5)/((z-0.4)(z-0.6)(z-0.8)),4); pretty(F) f=vpa(iztrans(F),4); pretty(f) '(b)' syms z k F=vpa((z+0.2)(z+0.4)/((z-0.1)(z-0.5)*(z-0.9)),4); pretty(F)

598 Chapter 13: Digital Control Systems

a.

Instant Value k Value

B

b.

  • Solutions to Case Studies Challenges
  • 1 9.8 1 9.
  • 2 31.6 2 31.
  • 3 46.88 3 46.
  • 4 53.4016 4 53.
  • 5 53.43488 5 53.
  • 6 49.64608 6 49.
  • 7 44.043776 7 44.
  • 8 37.90637056 8 37.
  • 9 31.95798733 9 31.
  • 10 26.5581568 10 26.
  • 11 21.84639857 11 21.
  • 12 17.83896791 12 17.
  • 13 14.48905384 13 14.
  • 14 11.72227881 14 11.
  • 15 9.456567702 15 9.
  • 16 7.612550239 16 7.
  • 17 6.118437551 17 6.
  • 18 4.911796342 18 4.
  • 19 3.939668009 19 3.
  • 20 3.15787423 20 3.
  • 21 2.529983782 21 2.
  • 22 2.026197867 22 2.
  • 23 1.622284879 23 1.
  • 24 1.298623886 24 1.
  • 25 1.039376712 25 1.
  • 26 0.831787937 26 0.
  • 27 0.665602292 27 0.
  • 28 0.532584999 28 0.
  • 29 0.4261299 29 0.
  • 30 0.34094106 30 0.
  • Solutions to Problems
  • 1 1 1 1. Instant Value k Value
  • 2 2.1 2 2.
  • 3 2.64 3 2.
  • 4 2.766 4 2.
  • 5 2.6859 5 2.
  • 6 2.51571 6 2.
  • 7 2.313354 7 2.
  • 8 2.1066276 8 2.
  • 9 1.90826949 9 1.
  • 10 1.723594881 10 1.
  • 11 1.554311564 11 1.
  • 12 1.400418494 12 1.
  • 13 1.261145687 13 1.
  • 14 1.13541564 14 1.
  • 15 1.022066337 15 1.
  • 16 0.919955834 16 0.
  • 17 0.828008315 17 0.
  • 18 0.745231516 18 0.
  • 19 0.670720381 19 0.
  • 20 0.603654351 20 0.
  • 21 0.54329192 21 0.
  • 22 0.48896423 22 0.
  • 23 0.440068558 23 0.
  • 24 0.396062078 24 0.
  • 25 0.356456058 25 0.
  • 26 0.320810546 26 0.
  • 27 0.288729538 27 0.
  • 28 0.259856608 28 0.
  • 29 0.233870959 29 0.
  • 30 0.210483869 30 0.
  • 31 0.189435485 31 0.