• No results found

1. s to Z-Domain Transfer Function

N/A
N/A
Protected

Academic year: 2021

Share "1. s to Z-Domain Transfer Function"

Copied!
178
0
0

Loading.... (view fulltext now)

Full text

(1)
(2)

1. s to Z-Domain Transfer Function

Discrete ZOH Signals

(3)

1. s to Z-Domain Transfer Function

Discrete ZOH Signals

1. Get

step

response

of continuous

trans-fer function

y

s

(

t

)

.

(4)

1. s to Z-Domain Transfer Function

Discrete ZOH Signals

1. Get

step

response

of continuous

trans-fer function

y

s

(

t

)

.

2. Discretize step

(5)

1. s to Z-Domain Transfer Function

Discrete ZOH Signals

1. Get

step

response

of continuous

trans-fer function

y

s

(

t

)

.

2. Discretize step

re-sponse:

y

s

(

nT

s

)

.

1. Z-transform the step

re-sponse to obtain

Y

s

(

z

)

.

(6)

1. s to Z-Domain Transfer Function

Discrete ZOH Signals

1. Get

step

response

of continuous

trans-fer function

y

s

(

t

)

.

2. Discretize step

re-sponse:

y

s

(

nT

s

)

.

1. Z-transform the step

re-sponse to obtain

Y

s

(

z

)

.

2. Divide the result from

above by Z-transform of a

step, namely,

z/

(

z

1)

.

(7)

1. s to Z-Domain Transfer Function

Discrete ZOH Signals

1. Get

step

response

of continuous

trans-fer function

y

s

(

t

)

.

2. Discretize step

re-sponse:

y

s

(

nT

s

)

.

1. Z-transform the step

re-sponse to obtain

Y

s

(

z

)

.

2. Divide the result from

above by Z-transform of a

step, namely,

z/

(

z

1)

.

G

a

(

s

)

: Laplace transfer

function

(8)

1. s to Z-Domain Transfer Function

Discrete ZOH Signals

1. Get

step

response

of continuous

trans-fer function

y

s

(

t

)

.

2. Discretize step

re-sponse:

y

s

(

nT

s

)

.

1. Z-transform the step

re-sponse to obtain

Y

s

(

z

)

.

2. Divide the result from

above by Z-transform of a

step, namely,

z/

(

z

1)

.

G

a

(

s

)

: Laplace transfer

function

(9)

1. s to Z-Domain Transfer Function

Discrete ZOH Signals

1. Get

step

response

of continuous

trans-fer function

y

s

(

t

)

.

2. Discretize step

re-sponse:

y

s

(

nT

s

)

.

1. Z-transform the step

re-sponse to obtain

Y

s

(

z

)

.

2. Divide the result from

above by Z-transform of a

step, namely,

z/

(

z

1)

.

G

a

(

s

)

: Laplace transfer

function

G

(

z

)

: Z-transfer function

G(z) = z − 1 z Z L−1Ga(s) s
(10)

1. s to Z-Domain Transfer Function

Discrete ZOH Signals

1. Get

step

response

of continuous

trans-fer function

y

s

(

t

)

.

2. Discretize step

re-sponse:

y

s

(

nT

s

)

.

1. Z-transform the step

re-sponse to obtain

Y

s

(

z

)

.

2. Divide the result from

above by Z-transform of a

step, namely,

z/

(

z

1)

.

G

a

(

s

)

: Laplace transfer

function

G

(

z

)

: Z-transfer function

G(z) = z − 1 z Z L−1Ga(s) s
(11)

1. s to Z-Domain Transfer Function

Discrete ZOH Signals

1. Get

step

response

of continuous

trans-fer function

y

s

(

t

)

.

2. Discretize step

re-sponse:

y

s

(

nT

s

)

.

1. Z-transform the step

re-sponse to obtain

Y

s

(

z

)

.

2. Divide the result from

above by Z-transform of a

step, namely,

z/

(

z

1)

.

G

a

(

s

)

: Laplace transfer

function

G

(

z

)

: Z-transfer function

G(z) = z − 1 z Z L−1Ga(s) s

Step Response Equivalence = ZOH Equivalence

(12)
(13)

2. Important Result from Differentiation

Recall

1(

n

)

a

n

z

z

a

=

X

n=0

a

n

z

−n

,

Differentiating w.r.t.

a

,

(14)

2. Important Result from Differentiation

Recall

1(

n

)

a

n

z

z

a

=

X

n=0

a

n

z

−n

,

Differentiating w.r.t.

a

,

z

(

z

a

)

2

=

X

n=0

na

n−1

z

−n
(15)

2. Important Result from Differentiation

Recall

1(

n

)

a

n

z

z

a

=

X

n=0

a

n

z

−n

,

Differentiating w.r.t.

a

,

z

(

z

a

)

2

=

X

n=0

na

n−1

z

−n

na

n−1

1(

n

)

z

(

z

a

)

2
(16)

2. Important Result from Differentiation

Recall

1(

n

)

a

n

z

z

a

=

X

n=0

a

n

z

−n

,

Differentiating w.r.t.

a

,

z

(

z

a

)

2

=

X

n=0

na

n−1

z

−n

na

n−1

1(

n

)

z

(

z

a

)

2

n

(

n

1)

a

n−2

1(

n

)

2

z

(

z

a

)

3
(17)
(18)

3. ZOH Equivalence of 1/s

The step response of

(19)

3. ZOH Equivalence of 1/s

The step response of

(20)

3. ZOH Equivalence of 1/s

The step response of

1

/s

is

1

/s

2

. In time

domain, it is,

(21)

3. ZOH Equivalence of 1/s

The step response of

1

/s

is

1

/s

2

. In time

domain, it is,

y

s

(

t

) =

L

−1

1

(22)

3. ZOH Equivalence of 1/s

The step response of

1

/s

is

1

/s

2

. In time

domain, it is,

y

s

(

t

) =

L

−1

1

(23)

3. ZOH Equivalence of 1/s

The step response of

1

/s

is

1

/s

2

. In time

domain, it is,

y

s

(

t

) =

L

−1

1

s

2

=

t

Sampling it with a

pe-riod of

T

s

,

(24)

3. ZOH Equivalence of 1/s

The step response of

1

/s

is

1

/s

2

. In time

domain, it is,

y

s

(

t

) =

L

−1

1

s

2

=

t

Sampling it with a

pe-riod of

T

s

,

(25)

3. ZOH Equivalence of 1/s

The step response of

1

/s

is

1

/s

2

. In time

domain, it is,

y

s

(

t

) =

L

−1

1

s

2

=

t

Sampling it with a

pe-riod of

T

s

,

(26)

3. ZOH Equivalence of 1/s

The step response of

1

/s

is

1

/s

2

. In time

domain, it is,

y

s

(

t

) =

L

−1

1

s

2

=

t

Sampling it with a

pe-riod of

T

s

,

y

s

(

nT

s

) =

nT

s

Taking Z-transforms

(27)

3. ZOH Equivalence of 1/s

The step response of

1

/s

is

1

/s

2

. In time

domain, it is,

y

s

(

t

) =

L

−1

1

s

2

=

t

Sampling it with a

pe-riod of

T

s

,

y

s

(

nT

s

) =

nT

s

Taking Z-transforms

Y

s

(

z

) =

T

s

z

(28)

3. ZOH Equivalence of 1/s

The step response of

1

/s

is

1

/s

2

. In time

domain, it is,

y

s

(

t

) =

L

−1

1

s

2

=

t

Sampling it with a

pe-riod of

T

s

,

y

s

(

nT

s

) =

nT

s

Taking Z-transforms

Y

s

(

z

) =

T

s

z

(

z

1)

2

Divide by

z/

(

z

1)

,

(29)

3. ZOH Equivalence of 1/s

The step response of

1

/s

is

1

/s

2

. In time

domain, it is,

y

s

(

t

) =

L

−1

1

s

2

=

t

Sampling it with a

pe-riod of

T

s

,

y

s

(

nT

s

) =

nT

s

Taking Z-transforms

Y

s

(

z

) =

T

s

z

(

z

1)

2

Divide by

z/

(

z

1)

, to

get the ZOH equivalent

discrete domain transfer

function

(30)

3. ZOH Equivalence of 1/s

The step response of

1

/s

is

1

/s

2

. In time

domain, it is,

y

s

(

t

) =

L

−1

1

s

2

=

t

Sampling it with a

pe-riod of

T

s

,

y

s

(

nT

s

) =

nT

s

Taking Z-transforms

Y

s

(

z

) =

T

s

z

(

z

1)

2

Divide by

z/

(

z

1)

, to

get the ZOH equivalent

discrete domain transfer

function

G

(

z

) =

T

s

z

1

(31)
(32)

4. ZOH Equivalence of 1/s2

The step response of

(33)

4. ZOH Equivalence of 1/s2

The step response of

(34)

4. ZOH Equivalence of 1/s2

The step response of

1

/s

2

is

1

/s

3

. In time

domain, it is,

(35)

4. ZOH Equivalence of 1/s2

The step response of

1

/s

2

is

1

/s

3

. In time

domain, it is,

y

s

(

t

) =

L

−1

1

(36)

4. ZOH Equivalence of 1/s2

The step response of

1

/s

2

is

1

/s

3

. In time

domain, it is,

y

s

(

t

) =

L

−1

1

s

3

=

1

2

t

2

.

(37)

4. ZOH Equivalence of 1/s2

The step response of

1

/s

2

is

1

/s

3

. In time

domain, it is,

y

s

(

t

) =

L

−1

1

s

3

=

1

2

t

2

.

Sampling it with a

pe-riod of

T

s

,

y

s

(

nT

s

) =

1

(38)

4. ZOH Equivalence of 1/s2

The step response of

1

/s

2

is

1

/s

3

. In time

domain, it is,

y

s

(

t

) =

L

−1

1

s

3

=

1

2

t

2

.

Sampling it with a

pe-riod of

T

s

,

y

s

(

nT

s

) =

1

2

n

2

T

s2
(39)

4. ZOH Equivalence of 1/s2

The step response of

1

/s

2

is

1

/s

3

. In time

domain, it is,

y

s

(

t

) =

L

−1

1

s

3

=

1

2

t

2

.

Sampling it with a

pe-riod of

T

s

,

y

s

(

nT

s

) =

1

2

n

2

T

s2

Take Z-transform

Y

s

(

z

) =

T

s2

z

(

z

+ 1)

2(

z

1)

3
(40)

4. ZOH Equivalence of 1/s2

The step response of

1

/s

2

is

1

/s

3

. In time

domain, it is,

y

s

(

t

) =

L

−1

1

s

3

=

1

2

t

2

.

Sampling it with a

pe-riod of

T

s

,

y

s

(

nT

s

) =

1

2

n

2

T

s2

Take Z-transform

Y

s

(

z

) =

T

s2

z

(

z

+ 1)

2(

z

1)

3

Dividing by

z/

(

z

1)

,

we get

G

(

z

) =

T

s2

(

z

+ 1)

2(

z

1)

2
(41)
(42)

5. ZOH Equivalent First Order Transfer Function Find the ZOH equivalent of K/(τ s + 1).

(43)

5. ZOH Equivalent First Order Transfer Function Find the ZOH equivalent of K/(τ s + 1).

Ys(s) = 1 s K τ s + 1 = K " 1 s − 1 s + τ1 #

(44)

5. ZOH Equivalent First Order Transfer Function Find the ZOH equivalent of K/(τ s + 1).

Ys(s) = 1 s K τ s + 1 = K " 1 s − 1 s + τ1 # ys(t) = K h 1 − e−t/τi , t ≥ 0

(45)

5. ZOH Equivalent First Order Transfer Function Find the ZOH equivalent of K/(τ s + 1).

Ys(s) = 1 s K τ s + 1 = K " 1 s − 1 s + τ1 # ys(t) = K h 1 − e−t/τi , t ≥ 0 ys(nTs) = K h 1 − e−nTs/τi , n ≥ 0

(46)

5. ZOH Equivalent First Order Transfer Function Find the ZOH equivalent of K/(τ s + 1).

Ys(s) = 1 s K τ s + 1 = K " 1 s − 1 s + τ1 # ys(t) = K h 1 − e−t/τi , t ≥ 0 ys(nTs) = K h 1 − e−nTs/τi , n ≥ 0 Ys(z) = K z z − 1 − z z − e−Ts/τ

(47)

5. ZOH Equivalent First Order Transfer Function Find the ZOH equivalent of K/(τ s + 1).

Ys(s) = 1 s K τ s + 1 = K " 1 s − 1 s + τ1 # ys(t) = K h 1 − e−t/τi , t ≥ 0 ys(nTs) = K h 1 − e−nTs/τi , n ≥ 0 Ys(z) = K z z − 1 − z z − e−Ts/τ = Kz(1 − e−Ts/τ) (z − 1)(z − e−Ts/τ)

(48)

5. ZOH Equivalent First Order Transfer Function Find the ZOH equivalent of K/(τ s + 1).

Ys(s) = 1 s K τ s + 1 = K " 1 s − 1 s + τ1 # ys(t) = K h 1 − e−t/τi , t ≥ 0 ys(nTs) = K h 1 − e−nTs/τi , n ≥ 0 Ys(z) = K z z − 1 − z z − e−Ts/τ = Kz(1 − e−Ts/τ) (z − 1)(z − e−Ts/τ) Dividing by z/(z − 1), we get G(z) = K(1 − e−Ts/τ) z − e−Ts/τ

(49)

6. ZOH Equivalent First Order Transfer Function - Example

(50)

6. ZOH Equivalent First Order Transfer Function - Example

Sample at

T

s

= 0

.

5

and find ZOH equivalent

trans. function of

G

a

(

s

) =

10

(51)

6. ZOH Equivalent First Order Transfer Function - Example

Sample at

T

s

= 0

.

5

and find ZOH equivalent

trans. function of

G

a

(

s

) =

10

5

s

+ 1

(52)

6. ZOH Equivalent First Order Transfer Function - Example

Sample at

T

s

= 0

.

5

and find ZOH equivalent

trans. function of

G

a

(

s

) =

10

5

s

+ 1

Scilab Code:

(53)

6. ZOH Equivalent First Order Transfer Function - Example

Sample at

T

s

= 0

.

5

and find ZOH equivalent

trans. function of

G

a

(

s

) =

10

5

s

+ 1

Scilab Code:

Ga = tf(10,[5 1]);

G = ss2tf(dscr(Ga,0.5));

(54)

6. ZOH Equivalent First Order Transfer Function - Example

Sample at

T

s

= 0

.

5

and find ZOH equivalent

trans. function of

G

a

(

s

) =

10

5

s

+ 1

Scilab Code:

Ga = tf(10,[5 1]);

G = ss2tf(dscr(Ga,0.5));

(55)

6. ZOH Equivalent First Order Transfer Function - Example

Sample at

T

s

= 0

.

5

and find ZOH equivalent

trans. function of

G

a

(

s

) =

10

5

s

+ 1

Scilab Code:

Ga = tf(10,[5 1]);

G = ss2tf(dscr(Ga,0.5));

Scilab output is,

G

(

z

) =

0

.

9546

(56)

6. ZOH Equivalent First Order Transfer Function - Example

Sample at

T

s

= 0

.

5

and find ZOH equivalent

trans. function of

G

a

(

s

) =

10

5

s

+ 1

Scilab Code:

Ga = tf(10,[5 1]);

G = ss2tf(dscr(Ga,0.5));

Scilab output is,

G

(

z

) =

0

.

9546

z

0

.

9048

=

10(1

e

−0.1

)

(57)

6. ZOH Equivalent First Order Transfer Function - Example

Sample at

T

s

= 0

.

5

and find ZOH equivalent

trans. function of

G

a

(

s

) =

10

5

s

+ 1

Scilab Code:

Ga = tf(10,[5 1]);

G = ss2tf(dscr(Ga,0.5));

Scilab output is,

G

(

z

) =

0

.

9546

z

0

.

9048

=

10(1

e

−0.1

)

z

e

−0.1

In agreement with the

formula in the previous

slide

(58)
(59)

7. Discrete Integration

u(k)

n u(n)

(60)

7. Discrete Integration

u(k)

n u(n)

u(k−1)

(61)

7. Discrete Integration

u(k)

n u(n)

u(k−1)

y(k) = blue shaded area

(62)

7. Discrete Integration

u(k)

n u(n)

u(k−1)

y(k) = blue shaded area

+ red shaded area

(63)

7. Discrete Integration

u(k)

n u(n)

u(k−1)

y(k) = blue shaded area

+ red shaded area

(64)

7. Discrete Integration

u(k)

n u(n)

u(k−1)

y(k) = blue shaded area

+ red shaded area

y(k) = y(k − 1) + red shaded area

y(k) = y(k − 1) + Ts

(65)

7. Discrete Integration

u(k)

n u(n)

u(k−1)

y(k) = blue shaded area

+ red shaded area

y(k) = y(k − 1) + red shaded area

y(k) = y(k − 1) + Ts

2 [u(k) + u(k − 1)] Take Z-transform:

(66)

7. Discrete Integration

u(k)

n u(n)

u(k−1)

y(k) = blue shaded area

+ red shaded area

y(k) = y(k − 1) + red shaded area

y(k) = y(k − 1) + Ts 2 [u(k) + u(k − 1)] Take Z-transform: Y (z) = z−1Y (z) + Ts 2 U(z) + z−1U(z)

(67)

7. Discrete Integration

u(k)

n u(n)

u(k−1)

y(k) = blue shaded area

+ red shaded area

y(k) = y(k − 1) + red shaded area

y(k) = y(k − 1) + Ts 2 [u(k) + u(k − 1)] Take Z-transform: Y (z) = z−1Y (z) + Ts 2 U(z) + z−1U(z)

(68)

7. Discrete Integration

u(k)

n u(n)

u(k−1)

y(k) = blue shaded area

+ red shaded area

y(k) = y(k − 1) + red shaded area

y(k) = y(k − 1) + Ts 2 [u(k) + u(k − 1)] Take Z-transform: Y (z) = z−1Y (z) + Ts 2 U(z) + z−1U(z)

Bring all Y to left side: Y (z) − z−1Y (z) = Ts

2

(69)

7. Discrete Integration

u(k)

n u(n)

u(k−1)

y(k) = blue shaded area

+ red shaded area

y(k) = y(k − 1) + red shaded area

y(k) = y(k − 1) + Ts 2 [u(k) + u(k − 1)] Take Z-transform: Y (z) = z−1Y (z) + Ts 2 U(z) + z−1U(z)

Bring all Y to left side: Y (z) − z−1Y (z) = Ts 2 U(z) + z−1U(z) (1 − z−1)Y (z) = Ts 2 (1 + z−1)U(z)

(70)
(71)

8. Transfer Function for Discrete Integration Recall from previous slide

(1 − z−1)Y (z) = Ts

(72)

8. Transfer Function for Discrete Integration Recall from previous slide

(1 − z−1)Y (z) = Ts 2 (1 + z−1)U(z) Y (z) = Ts 2 1 + z−1 1 − z−1U(z)

(73)

8. Transfer Function for Discrete Integration Recall from previous slide

(1 − z−1)Y (z) = Ts 2 (1 + z−1)U(z) Y (z) = Ts 2 1 + z−1 1 − z−1U(z) = Ts 2 z + 1 z − 1U(z)

(74)

8. Transfer Function for Discrete Integration Recall from previous slide

(1 − z−1)Y (z) = Ts 2 (1 + z−1)U(z) Y (z) = Ts 2 1 + z−1 1 − z−1U(z) = Ts 2 z + 1 z − 1U(z) Integrator has a transfer function,

(75)

8. Transfer Function for Discrete Integration Recall from previous slide

(1 − z−1)Y (z) = Ts 2 (1 + z−1)U(z) Y (z) = Ts 2 1 + z−1 1 − z−1U(z) = Ts 2 z + 1 z − 1U(z) Integrator has a transfer function,

GI(z) = Ts 2

z + 1 z − 1

(76)

8. Transfer Function for Discrete Integration Recall from previous slide

(1 − z−1)Y (z) = Ts 2 (1 + z−1)U(z) Y (z) = Ts 2 1 + z−1 1 − z−1U(z) = Ts 2 z + 1 z − 1U(z) Integrator has a transfer function,

GI(z) = Ts 2

z + 1 z − 1 A low pass filter!

(77)

8. Transfer Function for Discrete Integration Recall from previous slide

(1 − z−1)Y (z) = Ts 2 (1 + z−1)U(z) Y (z) = Ts 2 1 + z−1 1 − z−1U(z) = Ts 2 z + 1 z − 1U(z) Integrator has a transfer function,

GI(z) = Ts 2

z + 1 z − 1 A low pass filter!

× Im(z)

(78)

8. Transfer Function for Discrete Integration Recall from previous slide

(1 − z−1)Y (z) = Ts 2 (1 + z−1)U(z) Y (z) = Ts 2 1 + z−1 1 − z−1U(z) = Ts 2 z + 1 z − 1U(z) Integrator has a transfer function,

GI(z) = Ts 2

z + 1 z − 1 A low pass filter!

× Im(z) Re(z) 1 s ↔ Ts 2 z + 1 z − 1

(79)
(80)

9. Derivative Mode • Integral Mode: 1 s ↔ Ts 2 z + 1 z − 1

(81)

9. Derivative Mode • Integral Mode: 1 s ↔ Ts 2 z + 1 z − 1 • Derivative Mode: s ↔ 2 Ts z − 1 z + 1

(82)

9. Derivative Mode • Integral Mode: 1 s ↔ Ts 2 z + 1 z − 1 • Derivative Mode: s ↔ 2 Ts z − 1 z + 1

(83)

9. Derivative Mode • Integral Mode: 1 s ↔ Ts 2 z + 1 z − 1 • Derivative Mode: s ↔ 2 Ts z − 1 z + 1

• High pass filter

(84)

9. Derivative Mode • Integral Mode: 1 s ↔ Ts 2 z + 1 z − 1 • Derivative Mode: s ↔ 2 Ts z − 1 z + 1

• High pass filter

• Has a pole at z = −1. Hence produces in partial fraction expansion, a term of the form

(85)

9. Derivative Mode • Integral Mode: 1 s ↔ Ts 2 z + 1 z − 1 • Derivative Mode: s ↔ 2 Ts z − 1 z + 1

• High pass filter

• Has a pole at z = −1. Hence produces in partial fraction expansion, a term of the form

z

(86)

9. Derivative Mode • Integral Mode: 1 s ↔ Ts 2 z + 1 z − 1 • Derivative Mode: s ↔ 2 Ts z − 1 z + 1

• High pass filter

• Has a pole at z = −1. Hence produces in partial fraction expansion, a term of the form

z

z + 1 ↔ (−1)n

• Results in wildly oscillating control effort.

(87)
(88)

10. Derivative Mode - Other Approximations

(89)

10. Derivative Mode - Other Approximations

Backward difference: y(k) = y(k − 1) + Tsu(k)

(90)

10. Derivative Mode - Other Approximations

Backward difference: y(k) = y(k − 1) + Tsu(k)

(1 − z−1)Y (z) = TsU(z) Y (z) = Ts 1

(91)

10. Derivative Mode - Other Approximations

Backward difference: y(k) = y(k − 1) + Tsu(k)

(1 − z−1)Y (z) = TsU(z) Y (z) = Ts 1

1 − z−1 = Ts

z

(92)

10. Derivative Mode - Other Approximations

Backward difference: y(k) = y(k − 1) + Tsu(k)

(1 − z−1)Y (z) = TsU(z) Y (z) = Ts 1 1 − z−1 = Ts z z − 1U(z) 1 s ↔

(93)

10. Derivative Mode - Other Approximations

Backward difference: y(k) = y(k − 1) + Tsu(k)

(1 − z−1)Y (z) = TsU(z) Y (z) = Ts 1 1 − z−1 = Ts z z − 1U(z) 1 s ↔ Ts z z − 1

(94)

10. Derivative Mode - Other Approximations

Backward difference: y(k) = y(k − 1) + Tsu(k)

(1 − z−1)Y (z) = TsU(z) Y (z) = Ts 1 1 − z−1 = Ts z z − 1U(z) 1 s ↔ Ts z z − 1

(95)

10. Derivative Mode - Other Approximations

Backward difference: y(k) = y(k − 1) + Tsu(k)

(1 − z−1)Y (z) = TsU(z) Y (z) = Ts 1 1 − z−1 = Ts z z − 1U(z) 1 s ↔ Ts z z − 1

Forward difference: y(k) = y(k − 1) + Tsu(k − 1)

(96)

10. Derivative Mode - Other Approximations

Backward difference: y(k) = y(k − 1) + Tsu(k)

(1 − z−1)Y (z) = TsU(z) Y (z) = Ts 1 1 − z−1 = Ts z z − 1U(z) 1 s ↔ Ts z z − 1

Forward difference: y(k) = y(k − 1) + Tsu(k − 1)

(1 − z−1)Y (z) = Tsz−1U(z) Y (z) = Ts z

−1

(97)

10. Derivative Mode - Other Approximations

Backward difference: y(k) = y(k − 1) + Tsu(k)

(1 − z−1)Y (z) = TsU(z) Y (z) = Ts 1 1 − z−1 = Ts z z − 1U(z) 1 s ↔ Ts z z − 1

Forward difference: y(k) = y(k − 1) + Tsu(k − 1)

(1 − z−1)Y (z) = Tsz−1U(z) Y (z) = Ts z −1 1 − z−1U(z) = Ts z − 1U(z)

(98)

10. Derivative Mode - Other Approximations

Backward difference: y(k) = y(k − 1) + Tsu(k)

(1 − z−1)Y (z) = TsU(z) Y (z) = Ts 1 1 − z−1 = Ts z z − 1U(z) 1 s ↔ Ts z z − 1

Forward difference: y(k) = y(k − 1) + Tsu(k − 1)

(1 − z−1)Y (z) = Tsz−1U(z) Y (z) = Ts z −1 1 − z−1U(z) = Ts z − 1U(z) 1 s ↔

(99)

10. Derivative Mode - Other Approximations

Backward difference: y(k) = y(k − 1) + Tsu(k)

(1 − z−1)Y (z) = TsU(z) Y (z) = Ts 1 1 − z−1 = Ts z z − 1U(z) 1 s ↔ Ts z z − 1

Forward difference: y(k) = y(k − 1) + Tsu(k − 1)

(1 − z−1)Y (z) = Tsz−1U(z) Y (z) = Ts z −1 1 − z−1U(z) = Ts z − 1U(z) 1 s ↔ Ts z − 1

(100)

10. Derivative Mode - Other Approximations

Backward difference: y(k) = y(k − 1) + Tsu(k)

(1 − z−1)Y (z) = TsU(z) Y (z) = Ts 1 1 − z−1 = Ts z z − 1U(z) 1 s ↔ Ts z z − 1

Forward difference: y(k) = y(k − 1) + Tsu(k − 1)

(1 − z−1)Y (z) = Tsz−1U(z) Y (z) = Ts z −1 1 − z−1U(z) = Ts z − 1U(z) 1 s ↔ Ts z − 1 Both derivative modes are high pass,

(101)

10. Derivative Mode - Other Approximations

Backward difference: y(k) = y(k − 1) + Tsu(k)

(1 − z−1)Y (z) = TsU(z) Y (z) = Ts 1 1 − z−1 = Ts z z − 1U(z) 1 s ↔ Ts z z − 1

Forward difference: y(k) = y(k − 1) + Tsu(k − 1)

(1 − z−1)Y (z) = Tsz−1U(z) Y (z) = Ts z −1 1 − z−1U(z) = Ts z − 1U(z) 1 s ↔ Ts z − 1

(102)

10. Derivative Mode - Other Approximations

Backward difference: y(k) = y(k − 1) + Tsu(k)

(1 − z−1)Y (z) = TsU(z) Y (z) = Ts 1 1 − z−1 = Ts z z − 1U(z) 1 s ↔ Ts z z − 1

Forward difference: y(k) = y(k − 1) + Tsu(k − 1)

(1 − z−1)Y (z) = Tsz−1U(z) Y (z) = Ts z −1 1 − z−1U(z) = Ts z − 1U(z) 1 s ↔ Ts z − 1

Both derivative modes are high pass, no oscillations, same gains

(103)
(104)

11. PID Controller

(105)

11. PID Controller

Proportional Mode: Most popular control mode. Increase in proportional mode generally results in

(106)

11. PID Controller

Proportional Mode: Most popular control mode. Increase in proportional mode generally results in

(107)

11. PID Controller

Proportional Mode: Most popular control mode. Increase in proportional mode generally results in

(108)

11. PID Controller

Proportional Mode: Most popular control mode. Increase in proportional mode generally results in

• Decreased steady state offset and increased oscillations Integral Mode: Used to remove steady state offset.

(109)

11. PID Controller

Proportional Mode: Most popular control mode. Increase in proportional mode generally results in

• Decreased steady state offset and increased oscillations Integral Mode: Used to remove steady state offset. Increase

(110)

11. PID Controller

Proportional Mode: Most popular control mode. Increase in proportional mode generally results in

• Decreased steady state offset and increased oscillations Integral Mode: Used to remove steady state offset. Increase

in integral mode generally results in

(111)

11. PID Controller

Proportional Mode: Most popular control mode. Increase in proportional mode generally results in

• Decreased steady state offset and increased oscillations Integral Mode: Used to remove steady state offset. Increase

in integral mode generally results in

• Zero steady state offset

(112)

11. PID Controller

Proportional Mode: Most popular control mode. Increase in proportional mode generally results in

• Decreased steady state offset and increased oscillations Integral Mode: Used to remove steady state offset. Increase

in integral mode generally results in

• Zero steady state offset

• Increased oscillations

(113)

11. PID Controller

Proportional Mode: Most popular control mode. Increase in proportional mode generally results in

• Decreased steady state offset and increased oscillations Integral Mode: Used to remove steady state offset. Increase

in integral mode generally results in

• Zero steady state offset

• Increased oscillations

Derivative Mode: Mainly used for prediction purposes. Increase in derivative mode generally results in

(114)

11. PID Controller

Proportional Mode: Most popular control mode. Increase in proportional mode generally results in

• Decreased steady state offset and increased oscillations Integral Mode: Used to remove steady state offset. Increase

in integral mode generally results in

• Zero steady state offset

• Increased oscillations

Derivative Mode: Mainly used for prediction purposes. Increase in derivative mode generally results in

(115)

11. PID Controller

Proportional Mode: Most popular control mode. Increase in proportional mode generally results in

• Decreased steady state offset and increased oscillations Integral Mode: Used to remove steady state offset. Increase

in integral mode generally results in

• Zero steady state offset

• Increased oscillations

Derivative Mode: Mainly used for prediction purposes. Increase in derivative mode generally results in

• Decreased oscillations and improved stability

(116)

11. PID Controller

Proportional Mode: Most popular control mode. Increase in proportional mode generally results in

• Decreased steady state offset and increased oscillations Integral Mode: Used to remove steady state offset. Increase

in integral mode generally results in

• Zero steady state offset

• Increased oscillations

Derivative Mode: Mainly used for prediction purposes. Increase in derivative mode generally results in

• Decreased oscillations and improved stability

• Sensitive to noise

The most popular controller in industry.

(117)
(118)

12. PID Controller - Basic Design Let input to controller by E(z)

(119)

12. PID Controller - Basic Design

(120)

12. PID Controller - Basic Design

Let input to controller by E(z) and output from it be U(z). If gain is K,

(121)

12. PID Controller - Basic Design

Let input to controller by E(z) and output from it be U(z). If gain is K, τi is integral time

(122)

12. PID Controller - Basic Design

Let input to controller by E(z) and output from it be U(z). If gain is K, τi is integral time and τd is derivative time,

(123)

12. PID Controller - Basic Design

Let input to controller by E(z) and output from it be U(z). If gain is K, τi is integral time and τd is derivative time,

u(t) = K e(t) + 1 τi Z t 0 e(t)dt + τd de(t) dt

(124)

12. PID Controller - Basic Design

Let input to controller by E(z) and output from it be U(z). If gain is K, τi is integral time and τd is derivative time,

u(t) = K e(t) + 1 τi Z t 0 e(t)dt + τd de(t) dt U(s) = K(1 + 1 τis + τds)E(s)

(125)

12. PID Controller - Basic Design

Let input to controller by E(z) and output from it be U(z). If gain is K, τi is integral time and τd is derivative time,

u(t) = K e(t) + 1 τi Z t 0 e(t)dt + τd de(t) dt U(s) = K(1 + 1 τis + τds)E(s) U(s) =4 Sc(s) Rc(s)E(s)

(126)

12. PID Controller - Basic Design

Let input to controller by E(z) and output from it be U(z). If gain is K, τi is integral time and τd is derivative time,

u(t) = K e(t) + 1 τi Z t 0 e(t)dt + τd de(t) dt U(s) = K(1 + 1 τis + τds)E(s) U(s) =4 Sc(s) Rc(s)E(s)

(127)

12. PID Controller - Basic Design

Let input to controller by E(z) and output from it be U(z). If gain is K, τi is integral time and τd is derivative time,

u(t) = K e(t) + 1 τi Z t 0 e(t)dt + τd de(t) dt U(s) = K(1 + 1 τis + τds)E(s) U(s) =4 Sc(s) Rc(s)E(s)

If integral mode is present, Rc(0) = 0.

(128)

12. PID Controller - Basic Design

Let input to controller by E(z) and output from it be U(z). If gain is K, τi is integral time and τd is derivative time,

u(t) = K e(t) + 1 τi Z t 0 e(t)dt + τd de(t) dt U(s) = K(1 + 1 τis + τds)E(s) U(s) =4 Sc(s) Rc(s)E(s)

If integral mode is present, Rc(0) = 0.

Filtered derivative mode:

u(t) = K 1 + 1 τis + τds 1 + τds N ! e(t)

(129)

12. PID Controller - Basic Design

Let input to controller by E(z) and output from it be U(z). If gain is K, τi is integral time and τd is derivative time,

u(t) = K e(t) + 1 τi Z t 0 e(t)dt + τd de(t) dt U(s) = K(1 + 1 τis + τds)E(s) U(s) =4 Sc(s) Rc(s)E(s)

If integral mode is present, Rc(0) = 0.

Filtered derivative mode:

u(t) = K 1 + 1 τis + τds 1 + τds N ! e(t) N is a large number, of the order of 100.

(130)

13. Reaction Curve Method - Ziegler Nichols Tun-ing

(131)

13. Reaction Curve Method - Ziegler Nichols Tun-ing

(132)

13. Reaction Curve Method - Ziegler Nichols Tun-ing

• Applicable only to stable systems

(133)

13. Reaction Curve Method - Ziegler Nichols Tun-ing

• Applicable only to stable systems

• Give a unit step input to a stable system and get

(134)

13. Reaction Curve Method - Ziegler Nichols Tun-ing

• Applicable only to stable systems

• Give a unit step input to a stable system and get

1. the time lag after which the system starts responding (L), 2. the steady state gain (K) and

(135)

13. Reaction Curve Method - Ziegler Nichols Tun-ing

• Applicable only to stable systems

• Give a unit step input to a stable system and get

1. the time lag after which the system starts responding (L), 2. the steady state gain (K) and

3. the time the output takes to reach the steady state, after it starts responding (τ)

(136)

13. Reaction Curve Method - Ziegler Nichols Tun-ing

• Applicable only to stable systems

• Give a unit step input to a stable system and get

1. the time lag after which the system starts responding (L), 2. the steady state gain (K) and

3. the time the output takes to reach the steady state, after it starts responding (τ)

R=K/τ

L τ K

(137)

14. Reaction Curve Method - Ziegler Nichols Tun-ing

(138)

14. Reaction Curve Method - Ziegler Nichols Tun-ing

R=K/τ

L τ K

(139)

14. Reaction Curve Method - Ziegler Nichols Tun-ing

R=K/τ

L τ K

• Let the slope of the response be calculated as R = K τ .

(140)

14. Reaction Curve Method - Ziegler Nichols Tun-ing

R=K/τ

L τ K

• Let the slope of the response be calculated as R = K τ . Then the PID settings are given below:

(141)

14. Reaction Curve Method - Ziegler Nichols Tun-ing

R=K/τ

L τ K

• Let the slope of the response be calculated as R = K τ . Then the PID settings are given below:

Kp τi τd P 1/RL

PI 0.9/RL 3L

(142)

14. Reaction Curve Method - Ziegler Nichols Tun-ing

R=K/τ

L τ K

• Let the slope of the response be calculated as R = K τ . Then the PID settings are given below:

Kp τi τd P 1/RL

PI 0.9/RL 3L

PID 1.2/RL 2L 0.5L

Consistent units should be used

(143)
(144)

15. Stability Method - Ziegler Nichols Tuning

(145)

15. Stability Method - Ziegler Nichols Tuning

Another way of finding the PID tuning parameters is as follows.

(146)

15. Stability Method - Ziegler Nichols Tuning

Another way of finding the PID tuning parameters is as follows.

• Close the loop with a proportional controller

• Gain of controller is increased until the closed loop system becomes unstable

(147)

15. Stability Method - Ziegler Nichols Tuning

Another way of finding the PID tuning parameters is as follows.

• Close the loop with a proportional controller

• Gain of controller is increased until the closed loop system becomes unstable

• At the verge of instability, note down the gain of the controller (Ku) and the period of oscillation (Pu)

(148)

15. Stability Method - Ziegler Nichols Tuning

Another way of finding the PID tuning parameters is as follows.

• Close the loop with a proportional controller

• Gain of controller is increased until the closed loop system becomes unstable

• At the verge of instability, note down the gain of the controller (Ku) and the period of oscillation (Pu)

(149)

15. Stability Method - Ziegler Nichols Tuning

Another way of finding the PID tuning parameters is as follows.

• Close the loop with a proportional controller

• Gain of controller is increased until the closed loop system becomes unstable

• At the verge of instability, note down the gain of the controller (Ku) and the period of oscillation (Pu)

• PID settings are given below:

Kp τi τd

P 0.5Ku

PI 0.45Ku Pu/1.2

(150)

15. Stability Method - Ziegler Nichols Tuning

Another way of finding the PID tuning parameters is as follows.

• Close the loop with a proportional controller

• Gain of controller is increased until the closed loop system becomes unstable

• At the verge of instability, note down the gain of the controller (Ku) and the period of oscillation (Pu)

• PID settings are given below:

Kp τi τd

P 0.5Ku

PI 0.45Ku Pu/1.2

PID 0.6Ku Pu/2 Pu/8

Consistent units should be used

(151)
(152)

16. Design Procedure

(153)

16. Design Procedure

A common procedure to design discrete PID controller:

(154)

16. Design Procedure

A common procedure to design discrete PID controller:

• Tune continuous PID controller by any popular technique

(155)

16. Design Procedure

A common procedure to design discrete PID controller:

• Tune continuous PID controller by any popular technique

• Get continuous PID settings

• Discretize using the method discussed now or the ZOH equiv-alent method discussed earlier

(156)

16. Design Procedure

A common procedure to design discrete PID controller:

• Tune continuous PID controller by any popular technique

• Get continuous PID settings

• Discretize using the method discussed now or the ZOH equiv-alent method discussed earlier

• Direct digital design techniques

(157)
(158)

17. 2-DOF Controller y Tc Rc G = B A Sc Rc r u −

(159)

17. 2-DOF Controller y Tc Rc G = B A Sc Rc r u − u = Tc Rc r − Sc Rc y

(160)

17. 2-DOF Controller y Tc Rc G = B A Sc Rc r u − u = Tc Rc r − Sc Rc y

(161)

17. 2-DOF Controller y Tc Rc G = B A Sc Rc r u − u = Tc Rc r − Sc Rc y

It is easy to arrive at the following relation between r and y. y = Tc

Rc

B/A

(162)

17. 2-DOF Controller y Tc Rc G = B A Sc Rc r u − u = Tc Rc r − Sc Rc y

It is easy to arrive at the following relation between r and y. y = Tc Rc B/A 1 + BSc/ARcr = BTc ARc + BScr

(163)

17. 2-DOF Controller y Tc Rc G = B A Sc Rc r u − u = Tc Rc r − Sc Rc y

It is easy to arrive at the following relation between r and y. y = Tc Rc B/A 1 + BSc/ARcr = BTc ARc + BScr Error e, given by r − y is given by

(164)

17. 2-DOF Controller y Tc Rc G = B A Sc Rc r u − u = Tc Rc r − Sc Rc y

It is easy to arrive at the following relation between r and y. y = Tc Rc B/A 1 + BSc/ARcr = BTc ARc + BScr Error e, given by r − y is given by

e = 1 − BTc ARc + BSc r

(165)

17. 2-DOF Controller y Tc Rc G = B A Sc Rc r u − u = Tc Rc r − Sc Rc y

It is easy to arrive at the following relation between r and y. y = Tc Rc B/A 1 + BSc/ARcr = BTc ARc + BScr Error e, given by r − y is given by

e = 1 − BTc ARc + BSc r = ARc + BSc − BTc ARc + BSc r

(166)
(167)

18. Offset-Free Tracking of Steps with Integral

E(z) = A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z)

(168)

18. Offset-Free Tracking of Steps with Integral

E(z) = A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z)

A(z)Rc(z) + B(z)Sc(z) R(z)

lim

(169)

18. Offset-Free Tracking of Steps with Integral E(z) = A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) R(z) lim n→∞e(n) = limz→1 z − 1 z A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) z z − 1

(170)

18. Offset-Free Tracking of Steps with Integral E(z) = A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) R(z) lim n→∞e(n) = limz→1 z − 1 z A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) z z − 1

(171)

18. Offset-Free Tracking of Steps with Integral E(z) = A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) R(z) lim n→∞e(n) = limz→1 z − 1 z A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) z z − 1

(172)

18. Offset-Free Tracking of Steps with Integral E(z) = A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) R(z) lim n→∞e(n) = limz→1 z − 1 z A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) z z − 1

Because the controller has an integral action, Rc(1) = 0: e(∞) =

(173)

18. Offset-Free Tracking of Steps with Integral E(z) = A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) R(z) lim n→∞e(n) = limz→1 z − 1 z A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) z z − 1

Because the controller has an integral action, Rc(1) = 0: e(∞) = Sc(z) − Tc(z) Sc(z) z=1

(174)

18. Offset-Free Tracking of Steps with Integral E(z) = A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) R(z) lim n→∞e(n) = limz→1 z − 1 z A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) z z − 1

Because the controller has an integral action, Rc(1) = 0: e(∞) = Sc(z) − Tc(z) Sc(z) z=1 = Sc(1) − Tc(1) Sc(1)

(175)

18. Offset-Free Tracking of Steps with Integral E(z) = A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) R(z) lim n→∞e(n) = limz→1 z − 1 z A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) z z − 1

Because the controller has an integral action, Rc(1) = 0: e(∞) = Sc(z) − Tc(z) Sc(z) z=1 = Sc(1) − Tc(1) Sc(1)

(176)

18. Offset-Free Tracking of Steps with Integral E(z) = A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) R(z) lim n→∞e(n) = limz→1 z − 1 z A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) z z − 1

Because the controller has an integral action, Rc(1) = 0: e(∞) = Sc(z) − Tc(z) Sc(z) z=1 = Sc(1) − Tc(1) Sc(1)

This condition can be satisfied if one of the following is met: Tc = Sc

(177)

18. Offset-Free Tracking of Steps with Integral E(z) = A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) R(z) lim n→∞e(n) = limz→1 z − 1 z A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) z z − 1

Because the controller has an integral action, Rc(1) = 0: e(∞) = Sc(z) − Tc(z) Sc(z) z=1 = Sc(1) − Tc(1) Sc(1)

This condition can be satisfied if one of the following is met: Tc = Sc

(178)

18. Offset-Free Tracking of Steps with Integral E(z) = A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) R(z) lim n→∞e(n) = limz→1 z − 1 z A(z)Rc(z) + B(z)Sc(z) − B(z)Tc(z) A(z)Rc(z) + B(z)Sc(z) z z − 1

Because the controller has an integral action, Rc(1) = 0: e(∞) = Sc(z) − Tc(z) Sc(z) z=1 = Sc(1) − Tc(1) Sc(1)

This condition can be satisfied if one of the following is met: Tc = Sc

Tc = Sc(1) Tc(1) = Sc(1)

References

Related documents