178
1. s to Z-Domain Transfer Function

1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

  • Upload
    others

  • View
    33

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

1. s to Z-Domain Transfer Function

Page 2: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

1. s to Z-Domain Transfer Function

DiscreteZOH

Signals

Page 3: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

1. s to Z-Domain Transfer Function

DiscreteZOH

Signals

1. Get step responseof continuous trans-fer function ys(t).

Page 4: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

1. s to Z-Domain Transfer Function

DiscreteZOH

Signals

1. Get step responseof continuous trans-fer function ys(t).

2. Discretize step re-sponse: ys(nTs).

Page 5: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

1. s to Z-Domain Transfer Function

DiscreteZOH

Signals

1. Get step responseof continuous trans-fer function ys(t).

2. Discretize step re-sponse: ys(nTs).

1. Z-transform the step re-sponse to obtain Ys(z).

Page 6: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

1. s to Z-Domain Transfer Function

DiscreteZOH

Signals

1. Get step responseof continuous trans-fer function ys(t).

2. Discretize step re-sponse: ys(nTs).

1. Z-transform the step re-sponse to obtain Ys(z).

2. Divide the result fromabove by Z-transform of astep, namely, z/(z − 1).

Page 7: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

1. s to Z-Domain Transfer Function

DiscreteZOH

Signals

1. Get step responseof continuous trans-fer function ys(t).

2. Discretize step re-sponse: ys(nTs).

1. Z-transform the step re-sponse to obtain Ys(z).

2. Divide the result fromabove by Z-transform of astep, namely, z/(z − 1).

•Ga(s): Laplace transferfunction

Page 8: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

1. s to Z-Domain Transfer Function

DiscreteZOH

Signals

1. Get step responseof continuous trans-fer function ys(t).

2. Discretize step re-sponse: ys(nTs).

1. Z-transform the step re-sponse to obtain Ys(z).

2. Divide the result fromabove by Z-transform of astep, namely, z/(z − 1).

•Ga(s): Laplace transferfunction

•G(z): Z-transfer function

Page 9: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

1. s to Z-Domain Transfer Function

DiscreteZOH

Signals

1. Get step responseof continuous trans-fer function ys(t).

2. Discretize step re-sponse: ys(nTs).

1. Z-transform the step re-sponse to obtain Ys(z).

2. Divide the result fromabove by Z-transform of astep, namely, z/(z − 1).

•Ga(s): Laplace transferfunction

•G(z): Z-transfer function

G(z) =z − 1

zZ

[L−1Ga(s)

s

]

Page 10: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

1. s to Z-Domain Transfer Function

DiscreteZOH

Signals

1. Get step responseof continuous trans-fer function ys(t).

2. Discretize step re-sponse: ys(nTs).

1. Z-transform the step re-sponse to obtain Ys(z).

2. Divide the result fromabove by Z-transform of astep, namely, z/(z − 1).

•Ga(s): Laplace transferfunction

•G(z): Z-transfer function

G(z) =z − 1

zZ

[L−1Ga(s)

s

]Step Response Equivalence

Page 11: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

1. s to Z-Domain Transfer Function

DiscreteZOH

Signals

1. Get step responseof continuous trans-fer function ys(t).

2. Discretize step re-sponse: ys(nTs).

1. Z-transform the step re-sponse to obtain Ys(z).

2. Divide the result fromabove by Z-transform of astep, namely, z/(z − 1).

•Ga(s): Laplace transferfunction

•G(z): Z-transfer function

G(z) =z − 1

zZ

[L−1Ga(s)

s

]Step Response Equivalence = ZOH Equivalence

Digital Control 1 Kannan M. Moudgalya, Autumn 2007

Page 12: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

2. Important Result from Differentiation

Page 13: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

2. Important Result from Differentiation

Recall

1(n)an↔ z

z − a =∞∑n=0

anz−n,

Differentiating w.r.t. a,

Page 14: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

2. Important Result from Differentiation

Recall

1(n)an↔ z

z − a =∞∑n=0

anz−n,

Differentiating w.r.t. a,

z

(z − a)2=∞∑n=0

nan−1z−n

Page 15: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

2. Important Result from Differentiation

Recall

1(n)an↔ z

z − a =∞∑n=0

anz−n,

Differentiating w.r.t. a,

z

(z − a)2=∞∑n=0

nan−1z−n

nan−11(n)↔ z

(z − a)2

Page 16: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

2. Important Result from Differentiation

Recall

1(n)an↔ z

z − a =∞∑n=0

anz−n,

Differentiating w.r.t. a,

z

(z − a)2=∞∑n=0

nan−1z−n

nan−11(n)↔ z

(z − a)2

n(n− 1)an−21(n)↔ 2z

(z − a)3

Digital Control 2 Kannan M. Moudgalya, Autumn 2007

Page 17: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

3. ZOH Equivalence of 1/s

Page 18: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

3. ZOH Equivalence of 1/s

The step response of1/s is

Page 19: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

3. ZOH Equivalence of 1/s

The step response of1/s is 1/s2.

Page 20: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

3. ZOH Equivalence of 1/s

The step response of1/s is 1/s2. In timedomain, it is,

Page 21: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

3. ZOH Equivalence of 1/s

The step response of1/s is 1/s2. In timedomain, it is,

ys(t) = L−1 1

s2

Page 22: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

3. ZOH Equivalence of 1/s

The step response of1/s is 1/s2. In timedomain, it is,

ys(t) = L−1 1

s2= t

Page 23: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

3. ZOH Equivalence of 1/s

The step response of1/s is 1/s2. In timedomain, it is,

ys(t) = L−1 1

s2= t

Sampling it with a pe-riod of Ts,

Page 24: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

3. ZOH Equivalence of 1/s

The step response of1/s is 1/s2. In timedomain, it is,

ys(t) = L−1 1

s2= t

Sampling it with a pe-riod of Ts,

ys(nTs) =

Page 25: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

3. ZOH Equivalence of 1/s

The step response of1/s is 1/s2. In timedomain, it is,

ys(t) = L−1 1

s2= t

Sampling it with a pe-riod of Ts,

ys(nTs) = nTs

Page 26: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

3. ZOH Equivalence of 1/s

The step response of1/s is 1/s2. In timedomain, it is,

ys(t) = L−1 1

s2= t

Sampling it with a pe-riod of Ts,

ys(nTs) = nTs

Taking Z-transforms

Ys(z) =

Page 27: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

3. ZOH Equivalence of 1/s

The step response of1/s is 1/s2. In timedomain, it is,

ys(t) = L−1 1

s2= t

Sampling it with a pe-riod of Ts,

ys(nTs) = nTs

Taking Z-transforms

Ys(z) =Tsz

(z − 1)2

Page 28: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

3. ZOH Equivalence of 1/s

The step response of1/s is 1/s2. In timedomain, it is,

ys(t) = L−1 1

s2= t

Sampling it with a pe-riod of Ts,

ys(nTs) = nTs

Taking Z-transforms

Ys(z) =Tsz

(z − 1)2

Divide by z/(z−1),

Page 29: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

3. ZOH Equivalence of 1/s

The step response of1/s is 1/s2. In timedomain, it is,

ys(t) = L−1 1

s2= t

Sampling it with a pe-riod of Ts,

ys(nTs) = nTs

Taking Z-transforms

Ys(z) =Tsz

(z − 1)2

Divide by z/(z−1), toget the ZOH equivalentdiscrete domain transferfunction

Page 30: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

3. ZOH Equivalence of 1/s

The step response of1/s is 1/s2. In timedomain, it is,

ys(t) = L−1 1

s2= t

Sampling it with a pe-riod of Ts,

ys(nTs) = nTs

Taking Z-transforms

Ys(z) =Tsz

(z − 1)2

Divide by z/(z−1), toget the ZOH equivalentdiscrete domain transferfunction

G(z) =Ts

z − 1

Digital Control 3 Kannan M. Moudgalya, Autumn 2007

Page 31: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

4. ZOH Equivalence of 1/s2

Page 32: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

4. ZOH Equivalence of 1/s2

The step response of1/s2 is

Page 33: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

4. ZOH Equivalence of 1/s2

The step response of1/s2 is 1/s3.

Page 34: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

4. ZOH Equivalence of 1/s2

The step response of1/s2 is 1/s3. In timedomain, it is,

Page 35: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

4. ZOH Equivalence of 1/s2

The step response of1/s2 is 1/s3. In timedomain, it is,

ys(t) = L−1 1

s3=

Page 36: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

4. ZOH Equivalence of 1/s2

The step response of1/s2 is 1/s3. In timedomain, it is,

ys(t) = L−1 1

s3=

1

2t2.

Page 37: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

4. ZOH Equivalence of 1/s2

The step response of1/s2 is 1/s3. In timedomain, it is,

ys(t) = L−1 1

s3=

1

2t2.

Sampling it with a pe-riod of Ts,

ys(nTs) =1

2n2T 2

s

Page 38: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

4. ZOH Equivalence of 1/s2

The step response of1/s2 is 1/s3. In timedomain, it is,

ys(t) = L−1 1

s3=

1

2t2.

Sampling it with a pe-riod of Ts,

ys(nTs) =1

2n2T 2

s

Take Z-transform

Page 39: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

4. ZOH Equivalence of 1/s2

The step response of1/s2 is 1/s3. In timedomain, it is,

ys(t) = L−1 1

s3=

1

2t2.

Sampling it with a pe-riod of Ts,

ys(nTs) =1

2n2T 2

s

Take Z-transform

Ys(z) =T 2s z(z + 1)

2(z − 1)3

Page 40: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

4. ZOH Equivalence of 1/s2

The step response of1/s2 is 1/s3. In timedomain, it is,

ys(t) = L−1 1

s3=

1

2t2.

Sampling it with a pe-riod of Ts,

ys(nTs) =1

2n2T 2

s

Take Z-transform

Ys(z) =T 2s z(z + 1)

2(z − 1)3

Dividing by z/(z− 1),we get

G(z) =T 2s (z + 1)

2(z − 1)2

Digital Control 4 Kannan M. Moudgalya, Autumn 2007

Page 41: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

5. ZOH Equivalent First Order Transfer Function

Page 42: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

5. ZOH Equivalent First Order Transfer Function

Find the ZOH equivalent of K/(τs+ 1).

Page 43: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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τ

]

Page 44: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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

[1− e−t/τ

], t ≥ 0

Page 45: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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

[1− e−t/τ

], t ≥ 0

ys(nTs) = K[1− e−nTs/τ

], n ≥ 0

Page 46: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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

[1− e−t/τ

], t ≥ 0

ys(nTs) = K[1− e−nTs/τ

], n ≥ 0

Ys(z) = K

[z

z − 1− z

z − e−Ts/τ]

Page 47: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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

[1− e−t/τ

], t ≥ 0

ys(nTs) = K[1− e−nTs/τ

], n ≥ 0

Ys(z) = K

[z

z − 1− z

z − e−Ts/τ]

=Kz(1− e−Ts/τ)

(z − 1)(z − e−Ts/τ)

Page 48: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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

[1− e−t/τ

], t ≥ 0

ys(nTs) = K[1− e−nTs/τ

], 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/τ

Digital Control 5 Kannan M. Moudgalya, Autumn 2007

Page 49: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

6. ZOH Equivalent First Order Transfer Function- Example

Page 50: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

6. ZOH Equivalent First Order Transfer Function- Example

Sample at Ts = 0.5and find ZOH equivalenttrans. function of

Ga(s) =10

5s+ 1

Page 51: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

6. ZOH Equivalent First Order Transfer Function- Example

Sample at Ts = 0.5and find ZOH equivalenttrans. function of

Ga(s) =10

5s+ 1

Scilab Code:

Page 52: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

6. ZOH Equivalent First Order Transfer Function- Example

Sample at Ts = 0.5and find ZOH equivalenttrans. function of

Ga(s) =10

5s+ 1

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

Page 53: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

6. ZOH Equivalent First Order Transfer Function- Example

Sample at Ts = 0.5and find ZOH equivalenttrans. function of

Ga(s) =10

5s+ 1

Scilab Code:Ga = tf(10,[5 1]);G = ss2tf(dscr(Ga,0.5));

Page 54: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

6. ZOH Equivalent First Order Transfer Function- Example

Sample at Ts = 0.5and find ZOH equivalenttrans. function of

Ga(s) =10

5s+ 1

Scilab Code:Ga = tf(10,[5 1]);G = ss2tf(dscr(Ga,0.5));

Scilab output is,

Page 55: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

6. ZOH Equivalent First Order Transfer Function- Example

Sample at Ts = 0.5and find ZOH equivalenttrans. function of

Ga(s) =10

5s+ 1

Scilab Code:Ga = tf(10,[5 1]);G = ss2tf(dscr(Ga,0.5));

Scilab output is,

G(z) =0.9546

z − 0.9048

Page 56: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

6. ZOH Equivalent First Order Transfer Function- Example

Sample at Ts = 0.5and find ZOH equivalenttrans. function of

Ga(s) =10

5s+ 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

Page 57: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

6. ZOH Equivalent First Order Transfer Function- Example

Sample at Ts = 0.5and find ZOH equivalenttrans. function of

Ga(s) =10

5s+ 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 theformula in the previousslide

Digital Control 6 Kannan M. Moudgalya, Autumn 2007

Page 58: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

7. Discrete Integration

Page 59: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

7. Discrete Integration

u(k)

n

u(n)

u(k − 1)

Page 60: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

7. Discrete Integration

u(k)

n

u(n)

u(k − 1)

y(k) = blue shaded area

Page 61: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

7. Discrete Integration

u(k)

n

u(n)

u(k − 1)

y(k) = blue shaded area

+ red shaded area

Page 62: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

7. Discrete Integration

u(k)

n

u(n)

u(k − 1)

y(k) = blue shaded area

+ red shaded area

y(k) = y(k − 1)

Page 63: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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

Page 64: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)]

Page 65: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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:

Page 66: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

]

Page 67: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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:

Page 68: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

]

Page 69: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

Digital Control 7 Kannan M. Moudgalya, Autumn 2007

Page 70: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

8. Transfer Function for Discrete Integration

Page 71: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

8. Transfer Function for Discrete Integration

Recall from previous slide

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

2(1 + z−1)U(z)

Page 72: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

Page 73: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

Page 74: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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,

Page 75: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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

Page 76: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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!

Page 77: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

Page 78: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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

Digital Control 8 Kannan M. Moudgalya, Autumn 2007

Page 79: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

9. Derivative Mode

Page 80: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

9. Derivative Mode

• Integral Mode:1

s↔ Ts

2

z + 1

z − 1

Page 81: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

9. Derivative Mode

• Integral Mode:1

s↔ Ts

2

z + 1

z − 1

• Derivative Mode: s↔ 2

Ts

z − 1

z + 1

Page 82: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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

Page 83: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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.

Page 84: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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 fractionexpansion, a term of the form

Page 85: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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 fractionexpansion, a term of the form

z

z + 1↔ (−1)n

Page 86: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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 fractionexpansion, a term of the form

z

z + 1↔ (−1)n

• Results in wildly oscillating control effort.

Digital Control 9 Kannan M. Moudgalya, Autumn 2007

Page 87: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

10. Derivative Mode - Other Approximations

Page 88: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

10. Derivative Mode - Other Approximations

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

Page 89: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

10. Derivative Mode - Other Approximations

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

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

Page 90: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

10. Derivative Mode - Other Approximations

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

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

Y (z) = Ts1

1− z−1

Page 91: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

10. Derivative Mode - Other Approximations

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

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

Y (z) = Ts1

1− z−1= Ts

z

z − 1U(z)

Page 92: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

10. Derivative Mode - Other Approximations

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

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

Y (z) = Ts1

1− z−1= Ts

z

z − 1U(z)

1

s↔

Page 93: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

10. Derivative Mode - Other Approximations

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

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

Y (z) = Ts1

1− z−1= Ts

z

z − 1U(z)

1

s↔ Ts

z

z − 1

Page 94: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

10. Derivative Mode - Other Approximations

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

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

Y (z) = Ts1

1− z−1= Ts

z

z − 1U(z)

1

s↔ Ts

z

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

Page 95: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

10. Derivative Mode - Other Approximations

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

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

Y (z) = Ts1

1− z−1= Ts

z

z − 1U(z)

1

s↔ Ts

z

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

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

Page 96: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

10. Derivative Mode - Other Approximations

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

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

Y (z) = Ts1

1− z−1= Ts

z

z − 1U(z)

1

s↔ Ts

z

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

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

Y (z) = Tsz−1

1− z−1U(z)

Page 97: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

10. Derivative Mode - Other Approximations

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

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

Y (z) = Ts1

1− z−1= Ts

z

z − 1U(z)

1

s↔ Ts

z

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

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

Y (z) = Tsz−1

1− z−1U(z) =

Ts

z − 1U(z)

Page 98: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

10. Derivative Mode - Other Approximations

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

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

Y (z) = Ts1

1− z−1= Ts

z

z − 1U(z)

1

s↔ Ts

z

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

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

Y (z) = Tsz−1

1− z−1U(z) =

Ts

z − 1U(z)

1

s↔

Page 99: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

10. Derivative Mode - Other Approximations

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

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

Y (z) = Ts1

1− z−1= Ts

z

z − 1U(z)

1

s↔ Ts

z

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

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

Y (z) = Tsz−1

1− z−1U(z) =

Ts

z − 1U(z)

1

s↔ Ts

z − 1

Page 100: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

10. Derivative Mode - Other Approximations

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

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

Y (z) = Ts1

1− z−1= Ts

z

z − 1U(z)

1

s↔ Ts

z

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

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

Y (z) = Tsz−1

1− z−1U(z) =

Ts

z − 1U(z)

1

s↔ Ts

z − 1Both derivative modes are high pass,

Page 101: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

10. Derivative Mode - Other Approximations

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

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

Y (z) = Ts1

1− z−1= Ts

z

z − 1U(z)

1

s↔ Ts

z

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

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

Y (z) = Tsz−1

1− z−1U(z) =

Ts

z − 1U(z)

1

s↔ Ts

z − 1Both derivative modes are high pass, no oscillations,

Page 102: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

10. Derivative Mode - Other Approximations

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

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

Y (z) = Ts1

1− z−1= Ts

z

z − 1U(z)

1

s↔ Ts

z

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

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

Y (z) = Tsz−1

1− z−1U(z) =

Ts

z − 1U(z)

1

s↔ Ts

z − 1Both derivative modes are high pass, no oscillations, same gainsDigital Control 10 Kannan M. Moudgalya, Autumn 2007

Page 103: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

11. PID Controller

Page 104: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

11. PID Controller

Proportional Mode: Most popular control mode.

Page 105: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

11. PID Controller

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

Page 106: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

11. PID Controller

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

• Decreased steady state offset

Page 107: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

11. PID Controller

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

• Decreased steady state offset and increased oscillations

Page 108: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

11. PID Controller

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

• Decreased steady state offset and increased oscillations

Integral Mode: Used to remove steady state offset.

Page 109: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

11. PID Controller

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

• Decreased steady state offset and increased oscillations

Integral Mode: Used to remove steady state offset. Increasein integral mode generally results in

Page 110: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

11. PID Controller

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

• Decreased steady state offset and increased oscillations

Integral Mode: Used to remove steady state offset. Increasein integral mode generally results in

• Zero steady state offset

Page 111: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

11. PID Controller

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

• Decreased steady state offset and increased oscillations

Integral Mode: Used to remove steady state offset. Increasein integral mode generally results in

• Zero steady state offset

• Increased oscillations

Page 112: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

11. PID Controller

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

• Decreased steady state offset and increased oscillations

Integral Mode: Used to remove steady state offset. Increasein integral mode generally results in

• Zero steady state offset

• Increased oscillations

Derivative Mode: Mainly used for prediction purposes.

Page 113: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

11. PID Controller

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

• Decreased steady state offset and increased oscillations

Integral Mode: Used to remove steady state offset. Increasein integral mode generally results in

• Zero steady state offset

• Increased oscillations

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

Page 114: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

11. PID Controller

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

• Decreased steady state offset and increased oscillations

Integral Mode: Used to remove steady state offset. Increasein integral mode generally results in

• Zero steady state offset

• Increased oscillations

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

• Decreased oscillations and improved stability

Page 115: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

11. PID Controller

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

• Decreased steady state offset and increased oscillations

Integral Mode: Used to remove steady state offset. Increasein integral mode generally results in

• Zero steady state offset

• Increased oscillations

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

• Decreased oscillations and improved stability

• Sensitive to noise

Page 116: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

11. PID Controller

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

• Decreased steady state offset and increased oscillations

Integral Mode: Used to remove steady state offset. Increasein integral mode generally results in

• Zero steady state offset

• Increased oscillations

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

• Decreased oscillations and improved stability

• Sensitive to noise

The most popular controller in industry.Digital Control 11 Kannan M. Moudgalya, Autumn 2007

Page 117: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

12. PID Controller - Basic Design

Page 118: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

12. PID Controller - Basic Design

Let input to controller by E(z)

Page 119: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

12. PID Controller - Basic Design

Let input to controller by E(z) and output from it be U(z).

Page 120: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

12. PID Controller - Basic Design

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

Page 121: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

12. PID Controller - Basic Design

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

Page 122: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

12. PID Controller - Basic Design

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

Page 123: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

12. PID Controller - Basic Design

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

u(t) = K

[e(t) +

1

τi

∫ t

0

e(t)dt+ τdde(t)

dt

]

Page 124: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

12. PID Controller - Basic Design

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

u(t) = K

[e(t) +

1

τi

∫ t

0

e(t)dt+ τdde(t)

dt

]U(s) = K(1 +

1

τis+ τds)E(s)

Page 125: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

12. PID Controller - Basic Design

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

u(t) = K

[e(t) +

1

τi

∫ t

0

e(t)dt+ τdde(t)

dt

]U(s) = K(1 +

1

τis+ τds)E(s)

U(s)4=Sc(s)

Rc(s)E(s)

Page 126: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

12. PID Controller - Basic Design

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

u(t) = K

[e(t) +

1

τi

∫ t

0

e(t)dt+ τdde(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.

Page 127: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

12. PID Controller - Basic Design

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

u(t) = K

[e(t) +

1

τi

∫ t

0

e(t)dt+ τdde(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:

Page 128: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

12. PID Controller - Basic Design

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

u(t) = K

[e(t) +

1

τi

∫ t

0

e(t)dt+ τdde(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 + τdsN

)e(t)

Page 129: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

12. PID Controller - Basic Design

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

u(t) = K

[e(t) +

1

τi

∫ t

0

e(t)dt+ τdde(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 + τdsN

)e(t)

N is a large number, of the order of 100.Digital Control 12 Kannan M. Moudgalya, Autumn 2007

Page 130: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

13. Reaction Curve Method - Ziegler Nichols Tun-ing

Page 131: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

13. Reaction Curve Method - Ziegler Nichols Tun-ing

• Applicable only to stable systems

Page 132: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

13. Reaction Curve Method - Ziegler Nichols Tun-ing

• Applicable only to stable systems

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

Page 133: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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),

Page 134: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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

Page 135: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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, afterit starts responding (τ )

Page 136: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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, afterit starts responding (τ )

R = K/τ

L τ

K

Digital Control 13 Kannan M. Moudgalya, Autumn 2007

Page 137: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

14. Reaction Curve Method - Ziegler Nichols Tun-ing

Page 138: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

14. Reaction Curve Method - Ziegler Nichols Tun-ing

R = K/τ

L τ

K

Page 139: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

14. Reaction Curve Method - Ziegler Nichols Tun-ing

R = K/τ

L τ

K

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

τ.

Page 140: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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:

Page 141: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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 τdP 1/RLPI 0.9/RL 3LPID 1.2/RL 2L 0.5L

Page 142: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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 τdP 1/RLPI 0.9/RL 3LPID 1.2/RL 2L 0.5L

Consistent units should be usedDigital Control 14 Kannan M. Moudgalya, Autumn 2007

Page 143: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

15. Stability Method - Ziegler Nichols Tuning

Page 144: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

15. Stability Method - Ziegler Nichols Tuning

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

Page 145: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

15. Stability Method - Ziegler Nichols Tuning

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

• Close the loop with a proportional controller

Page 146: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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 systembecomes unstable

Page 147: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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 systembecomes unstable

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

Page 148: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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 systembecomes 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:

Page 149: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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 systembecomes 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 τdP 0.5Ku

PI 0.45Ku Pu/1.2PID 0.6Ku Pu/2 Pu/8

Page 150: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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 systembecomes 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 τdP 0.5Ku

PI 0.45Ku Pu/1.2PID 0.6Ku Pu/2 Pu/8

Consistent units should be usedDigital Control 15 Kannan M. Moudgalya, Autumn 2007

Page 151: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

16. Design Procedure

Page 152: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

16. Design Procedure

A common procedure to design discrete PID controller:

Page 153: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

16. Design Procedure

A common procedure to design discrete PID controller:

• Tune continuous PID controller by any popular technique

Page 154: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

16. Design Procedure

A common procedure to design discrete PID controller:

• Tune continuous PID controller by any popular technique

• Get continuous PID settings

Page 155: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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

Page 156: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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

Digital Control 16 Kannan M. Moudgalya, Autumn 2007

Page 157: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

17. 2-DOF Controller

Page 158: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

17. 2-DOF Controller

yTc

Rc

G =B

A

Sc

Rc

r u

Page 159: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

17. 2-DOF Controller

yTc

Rc

G =B

A

Sc

Rc

r u

u =Tc

Rc

r − Sc

Rc

y

Page 160: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

17. 2-DOF Controller

yTc

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.

Page 161: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

17. 2-DOF Controller

yTc

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/ARc

r

Page 162: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

17. 2-DOF Controller

yTc

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/ARc

r =BTc

ARc +BScr

Page 163: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

17. 2-DOF Controller

yTc

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/ARc

r =BTc

ARc +BScr

Error e, given by r − y is given by

Page 164: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

17. 2-DOF Controller

yTc

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/ARc

r =BTc

ARc +BScr

Error e, given by r − y is given by

e =

(1− BTc

ARc +BSc

)r

Page 165: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

17. 2-DOF Controller

yTc

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/ARc

r =BTc

ARc +BScr

Error e, given by r − y is given by

e =

(1− BTc

ARc +BSc

)r =

ARc +BSc −BTcARc +BSc

r

Digital Control 17 Kannan M. Moudgalya, Autumn 2007

Page 166: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

18. Offset-Free Tracking of Steps with Integral

Page 167: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

Page 168: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

limn→∞ e(n) =

Page 169: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

limn→∞ e(n) = lim

z→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

Page 170: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

limn→∞ e(n) = lim

z→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,

Page 171: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

limn→∞ e(n) = lim

z→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:

Page 172: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

limn→∞ e(n) = lim

z→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(∞) =

Page 173: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

limn→∞ e(n) = lim

z→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

Page 174: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

limn→∞ e(n) = lim

z→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)

Page 175: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

limn→∞ e(n) = lim

z→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:

Page 176: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

limn→∞ e(n) = lim

z→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

Page 177: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

limn→∞ e(n) = lim

z→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 = ScTc = Sc(1)

Page 178: 1. s to Z-Domain Transfer Function - Moudgalyamoudgalya.org/digital-slides/s-z-conv-1.pdf1. s to Z-Domain Transfer Function Discrete ZOH 1.SignalsGet step response of continuous trans-fer

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)

limn→∞ e(n) = lim

z→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 = ScTc = Sc(1)

Tc(1) = Sc(1)Digital Control 18 Kannan M. Moudgalya, Autumn 2007