Docsity

11 Problems with Solutions - Laboratory | ECE 5320, Study notes of Mechatronics

Partial preview of the text

Download 11 Problems with Solutions - Laboratory | ECE 5320 and more Study notes Mechatronics in PDF only on Docsity!

c)

Yq (z) − 0. 5 z−^1 Yq (z) + 0. 64 z−^2 Yq (z) = z−^1 Uq (z) (7) z^2 Yq (z) − 0. 5 zYq(z) + 0. 64 Yq(z) = zUq(z) (8)

And the transfer function is

Hqc(z) =

Yq (z) Uq (z)

z z^2 − 0. 5 z + 0. 64

Problem 12.3. The step response y[k] of a given system with transfer function Hq (z) can be computed from

Yq (z) = Hq (z)

z z − 1

A partial fraction expansion is then used and known inverse Z-transforms for simple fractions are applied. Alternatively, a symbolic math. package, such as Maple V can be used. We thus have that

z − 0. 5 z(z + 0.5)(z − 1)

z^2

z(z − 0 .5) (z − 1)(z + 0.5)

=⇒ y[k] =

[

(− 0 .5)k−^2 +

]

μ[k − 2]

(11)

For the inversion of

z^2 (z − 1)(z^2 − 0. 5 z + 1)

z z − 1

z(z − 1) z^2 − 0. 5 z + 1

it is worthwhile to have in mind that

Z [sin(αk + β)] = sin(β) z(z − cos(α) + cot(β) sin(α)) z^2 − 2 z cos(α) + 1

Here cos(α) = 0. 25 and thus α = 1.32 [rad], and

cos(α) − cot(β) sin(α) = 1 =⇒ cot(β) = −

=⇒ β = − 0 .91 [rad] (14)

Thus, for this system the unit step response is given by

y[k] =

μ[k] + 0.84 sin(1. 32 k − 0 .91) (15)

For the third system we have that

z (z − 1)(z − 0 .6)^2

z z − 1

z (z − 0 .6)^2

z − 0. 6

=⇒ y[k] =

[

(0.6)^2 +

k(0.6)^2

]

μ[k] (17)

For the last case we have that

Yq (z) =

(z + 1)z (z − 1)(z^2 − 0. 4 z + 0.64)

z z − 1

z(z + 0.02) z^2 − 0. 4 z + 0. 64

It is also worthwhile to recall that

Z

[

ρk^ sin(αk + β)

]

= sin(β) z(z − ρ cos(α) + ρ cot(β) sin(α)) z^2 − 2 ρz cos(α) + ρ^2

We then compare the second fraction in (18) with (19), from where we obtain cos(β) = 0. 25 and

− cos(α) + cot(β) sin(α) = 0.025 =⇒ cot(β) = 0.284 =⇒ β = 1.296 [rad] (20)

Thus

y[k] =

[

sin(β)

sin(kα + β)

]

μ[k] = [1. 613 − 1 .676 sin(1. 32 k + 1.29)]μ[k]

(21)

Problem 12.4. In this problem

[GGh 0 ]q (z) =

Bq (z) Aq (z)

Bq (z) = z

[

1 − cos(1.6∆)e−^1 .2∆^ − 0 .75 sin(1.6∆)e−^1 .2∆

]

  • e−^2 .4∆^ + 0.75 sin(1.6∆)e−^1 .2∆^ − cos(1.6∆)e−^1 .2∆^ (24) Aq (z) = z^2 − 2 ze−^1 .2∆^ cos(1.6∆) + e−^2 .4∆^ (25)

For [GGh 0 ]q (z) to have only one pole, a pole-zero cancellation is required. Since there is only one zero, and this is real, it is necessary that the sampling period ∆ is chosen so that the poles are also real. This is only possible if cos(1.6∆) = ± 1 , since then there are double poles located at ± e−^1 .2∆. This is equivalent to choose

∆ = ±κ π

  1. 6

; ∀κ ∈ N (26)

In this case there is one zero located at e−^1 .2∆^ (or at −e−^1 .2∆) which cancels one of the poles.

12.7.1 Using the MATLAB command d2c, with ∆ = 0.5 [s] we obtain

Go(s) =

  1. 1275 s + 4. 4892 s^2 + 3. 6652 s + 1. 4365

12.7.2 We have seen in Problem 12.4 that a pole zero cancellation may arise for particular choices of the sampling frequency. This happens because the sampling frequency is a sub-multiple of half the period of an oscillatory mode (including a damped oscillatory mode). We can thus imagine a situation where one of the poles in Hoq (z), say the one located at z = 0. 8 was originally a double pole which was cancelled by a zero. This could have happened if the continuous time plant had a damped oscillatory mode of the form eln(0.8)t^ cos(ωot + α), and the sampling period were chosen such that ωo = κωs, with κ ∈ N. It can also happen that the phase and frequency in an oscillatory mode in y(t) (Figure 12.6) (when u[k] = δK [k]) are such that by choosing a suitable sampling frequency only a constant value is observed.

Problem 12.8. We consider first the case when ∆ = 1 [s]. In this case, the plant time delay is exactly one sampling period, then it will translate in a pole at the origin, i.e.

Hoq (z) =

1 .25(1 − e−^0.^8 ) z(z − e−^0.^8 )

When ∆ = 0.75 [s], the delay is larger than a sampling period. We can apply the definition of the Z-transform, i.e.

Hoq (z) =

z − 1 z

Z

[

L

[

e−s s(s + 1)

]∣

t=0. 75 k

]

z − 1 z

Z

[

(1 − e−^0 .8(0.^75 k−1))μ(0. 75 k − 1)

]

As k is an integer, the above equation is different from zero only for k ≥ 2 and it can then be translated into

Hoq (z) = 1. 25

z − 1 z

Z

[

(1 − e−^0.^4 e−^0 .6(k−2))μ[k − 2]

]

z − 1 z

[

z(z − 1)

e−^0.^4 z(z − e−^0.^6 )

]

(1 − e−^0.^4 )z + (e−^0.^4 − e−^0.^6 ) z^2 (z − e−^0.^6 )

Problem 12.9. We first recall that the stability region in the γ plane is given by

|γ∆ + 1| < 1 (40)

12.9.1 We observe that the system has poles at γ = − 0. 1 and at γ = − 0. 8. Considering ∆ = 3. 5 , the first pole is stable, because it satisfies (40); how- ever, the second one does not satisfy (40), hence the system is unstable.

12.9.2 To obtain the Z-transform transfer function, we simply use the relation- ship γ = (z − 1)/∆ = (z − 1)/ 3. 5. This yields

Gq (z) = 3. 5

z + 0. 75 (z − 0 .65)(z + 1.4)

Note that this expression confirms the instability of the system because there is a pole outside the unit circle.

12.9.3 If ∆ = 1. 5 , then, both poles are stable, hence the system is stable.

The Z-transform transfer function is obtained using the relationship γ = (z − 1)/∆ = (z − 1)/ 1. 5. We then obtain

Gq (z) = 1. 5

z − 0. 25 (z + 0.2)(z − 0 .92)

Which, as expected, is stable.

Problem 12.10. The frequency responses of both filters are shown in Figure

10 −2^10 −1^100 101

−

−

−

−

0

20

Frequency [rad/s]

Magnitudes [dB] |H(jω)|

|Hδ((ejω∆−1)/∆)|

ωs 2 ωs

Figure 1: Frequency responses

12.10.1 The filter frequency responses in Figure 1 show that both filters have similar frequency response for low frequencies (roughly up to the cutoff frequency 1 [rad/s]). However, as the frequency increases, the responses drift apart. The analogue filter frequency response decays monotonically. However the digital filter, as expected, exhibits a periodic frequency re- sponse.