Docsity

Approximation of Continuous-Time Controllers with Discrete-Time Equivalents, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
Design by approximation
Approach:
A transfer function, C(s), can be realised with integrators, gains, and summation blocks.
C(s) = y(s)
u(s)=1
s3+a2s2+a1s+a0
.
is equivalent to:
−a0
1/s
−a1
1/s
−a2
1/s l
+
l
+
l
+
ttt
-6
- - 6
- -
6
u(s)y(s)
Now replace the integrators (1/s blocks) with a discrete-time approximation to integration.
Roy Smith: ECE 147b 4: 2
Design by approximation
Approximating C(s)with C(z)
P(s)C(s)
C(z)
P(z)
Approximation
of C(s) with C(z)
Model P(s), and
sample/hold as
P(z)
Continuous-time
design
Discrete-time
design
•Design a continuous-time controller, C(s), for P(s).
•Approximate C(s) with a discrete-time controller, C(z).
(Franklin & Powell refer to this procedure as “emulation.”)
Roy Smith: ECE 147b 4: 1
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Approximation of Continuous-Time Controllers with Discrete-Time Equivalents and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Design by approximation Approach:

A transfer function, C(s), can be realised with integrators, gains, and summation blocks.

C(s) = y u((ss)) = (^) s (^3) + a 2 s (^2 1) + a 1 s + a 0.

is equivalent to:

−a 0

1 /s

−a 1

1 /s

−a 2

1 /s +l

+^ l +^ l

 t  t  t  

  • 6
      • 6

6

y(s) u(s)

Now replace the integrators (1/s blocks) with a discrete-time approximation to integration.

Design by approximation Approximating C(s) with C(z)

P ( s ) C ( s )

P ( z )^ C ( z )

Modelsample/hold as P ( z ) P ( s ), and Approximationof C ( s ) with C ( z )

Continuous-timedesign

Discrete-timedesign

  • Design a continuous-time controller, C(s), for P (s).
  • Approximate C(s) with a discrete-time controller, C(z).

(Franklin & Powell refer to this procedure as “emulation.”) Roy Smith: ECE 147b 4 : 1

Forward difference approximation Forward difference approximation:

yf (kT + T ) = yf (kT ) + T x(kT ).

By taking z-transforms, zyf (z) = yf (z) + T x(z), or, yf (z) x(z) =^

T

z − 1. kT kT+T

t

x(t) x(kT+T)

x(kT) yf (kT+T)

- yf (kT)

So, the approximation is: (^1) s ≈ (^) z T− 1.

This is equivalent to the substitution: s = z^ − T 1.

This approximation is also known as an Euler approximation.

Approximations to integration Integration:

y(s) (^1) /s  x(s)

y(t) = y(0) +

∫ (^) t 0 x(τ^ )^ dτ, The output, y(t), over a single sample period of T seconds, is given by y(kT + T ) = y(kT ) +

∫ (^) kT +T kT^ x(τ^ )^ dτ.^ kT^ kT+T

t

x(t) x(kT+T)

x(kT) y(kT+T)- y(kT)

Objective: Find a discrete-time approximation, F (z), to the input-output relationship of the integrator.

Find F (z) ≈ 1 /s, then, s ≈ F −^1 (z), and C(z) = C(s) |s=F − (^1) (z).

 F (z) y(z) x(z)

Roy Smith: ECE 147b 4 : 3

Properties of the approximations Controller stability: Forward difference/Euler approximation:

s = z^ − T 1.

This maps the left half s-plane onto the region shown. Imaginary Imaginary

Real (^) Real

-1 1

Mapping viaforward s- plane (^) differenceapproximation z- plane

This maps to more than just the unit disk. Controllers, C(s), with high frequency or lightly damped poles will give unstable C(z).

Properties of the approximations Properties: Controller order: The forward, backward and trapezoidal approximations all preserve the order of the controller. If C(s) is an nth order transfer function, the C(z) is also nth order with any of these approximations. It is possible to derive higher order approximations to integration (quadratic or higher order polynomial fits). These will make the order of C(z) greater than C(s).

Stability: Two issues:

  • Controller stability: If C(s) is stable, is C(z) stable?
  • Closed-loop stability: If (^) 1 + P (^1 s)C(s) is stable, is (^) 1 + P (^1 z)C(z) stable?

To investigate controller stability we have to look more closely at how the approximations map the s-plane to the z-plane.

Roy Smith: ECE 147b 4 : 7

Properties of the approximations Controller stability: Trapezoidal/Bilinear/Tustin approximation:

s = T^2 z z^ −+ 1^1 ,

This maps the left half s-plane onto the region shown. Imaginary Imaginary

Real (^) Real

-1^1

Mapping viaTustin/bilinear approximation

s- plane z- plane

This maps to the entire right-half plane exactly onto the unit disk. So C(s) is stable ⇐⇒ C(z) is stable. This is why this approximation is the most commonly used.

Properties of the approximations Controller stability: Backward difference approximation:

s = z^ T z−^1 ,

This maps the left half s-plane onto the region shown. Imaginary Imaginary

Real (^) Real

-1 1

Mapping viabackward s- plane (^) differenceapproximation z- plane

This maps to the inside of the unit disk. So stable C(s) imples stable C(z). C(z) cannot have lightly damped poles, even if C(s) had lightly damped poles.

Roy Smith: ECE 147b 4 : 9

Properties of the approximations Frequency distortion (Bilinear approximation) Ω = T^2 tan−^1 (ωT /2).

Continuous frequency (ω): [rad/sec]

Discrete frequency (Ω): [rad/sec]

Ω = ω T −π

π

−3π/ T − 2 π/ T −π/ T^ π/ T 2 π/ T 3π/ T

Tustin/bilinear transform

The line Ω = ωT is the equivalent sampled frequency mapping.

Properties of the approximations Frequency distortion: Bilinear approximation Bilinear approximation maps all continuous frequencies (ω) from 0 to j∞ to discrete frequencies (ejΩT^ ) with Ω from 0 to π/T. In particular, s = j∞ maps to z = ejπ^ = −1. Sampling would map frequencies via ω = Ω, so z = −1 would correspond to a continuous frequency ω = jπ/T.

Substituting s = jω and z = ejΩT^ into s = T^2 z z^ −+ 1^1 , gives,

jω = (^) T^2 (1^ −^ e

−jΩT (^) ) 1 + e−jΩT = (^) T^2 j cos(Ω^ sin(ΩT /T /2)2) = (^) T^2 j tan(ΩT /2),

which implies that the distortion is given by Ω = T^2 tan−^1 (ωT /2).

Roy Smith: ECE 147b 4 : 13

Prewarping Example revisited Choose a prewarping frequency: ω 0 = 50 rad/sec. Prewarped bilinear/Tustin: Cz(z) = C(s) |s=α z z−+1 1 which gives C(j50) = Cz(ej^50 T^ ).

101 102

100

101

Frequency [rad/sec]

-100 101 102

0

50

100

Frequency [rad/sec]

Phase (degrees)

Magnitude

Prewarpingfrequency

Prewarpingfrequency

C(j ω )

C(j ω )

Bilinear with prewarping

Bilinear with prewarping

Bilinear

Bilinear

C( e j ω T)

C( e j ω T)

C( e j ω T)

C( e j ω T)

Prewarping Reducing the distortion: prewarping

The transformation s = α ((zz + 1)−^ 1) , maps Re {s} < 0 to |z| < 1.

α is a degree of freedom that can be exploited to modify the frequency distortion. Prewarping: Select α to make C(jω 0 ) = Cz^ (ejω^0 T^ ). This makes C(s) = Cz(z) at DC and at s = jω 0 (ω 0 is the prewarping frequency). To solve for α,

jω 0 = α(e

jω 0 T (^) − 1) (ejω^0 T^ + 1) =^ jα^ tan(ω^0 T /2), which implies that α = (^) tan(ωω 00 T /2).

Roy Smith: ECE 147b 4 : 15