Lecture 31 Discrete Time Modelling Process Control Prof. Kannan M. - - PowerPoint PPT Presentation

lecture 31 discrete time modelling
SMART_READER_LITE
LIVE PREVIEW

Lecture 31 Discrete Time Modelling Process Control Prof. Kannan M. - - PowerPoint PPT Presentation

Lecture 31 Discrete Time Modelling Process Control Prof. Kannan M. Moudgalya IIT Bombay Tuesday, 29 Oct. 2013 1/36 Process Control Discrete Time Modelling Outline 1. Motivation for digital control 2. Discrete time signals 3. Impulse and


slide-1
SLIDE 1

Lecture 31 Discrete Time Modelling

Process Control

  • Prof. Kannan M. Moudgalya

IIT Bombay Tuesday, 29 Oct. 2013

1/36 Process Control Discrete Time Modelling

slide-2
SLIDE 2

Outline

  • 1. Motivation for digital control
  • 2. Discrete time signals
  • 3. Impulse and step response models

2/36 Process Control Discrete Time Modelling

slide-3
SLIDE 3

Reference

Kannan M. Moudgalya, “Digital Control”, John Wiley and Sons, Chichester (2007) and New Delhi (2009)

3/36 Process Control Discrete Time Modelling

slide-4
SLIDE 4
  • 1. Motivation for digital control

4/36 Process Control Discrete Time Modelling

slide-5
SLIDE 5

Motivation for digital control

◮ Modern control devices are digital ◮ Examples: display devices, computing

devices, printers, etc.

◮ These do not understand continuous time

values

◮ Work with signals that arrive at discrete

time intervals

5/36 Process Control Discrete Time Modelling

slide-6
SLIDE 6

Analog to Digital (A/D) Conversion

time Actual & Quantized Data Sampled time Data Quantized

◮ produces binary equivalent - batch

process, requires conversion time

◮ digital signal is quantized in value and

discrete in time

6/36 Process Control Discrete Time Modelling

slide-7
SLIDE 7

How fast to sample

◮ Shannon’s sampling theorem gives

minimum sampling rate

◮ Difficult to fulfill the conditions required

by this theorem

◮ For control purposes, we sample it 5 to 10

times the minimum sampling rate

◮ Roughly speaking, keep increasing

sampling rate until the control quality remains the same

◮ Do not want to sample unnecessarily fast

  • computational overheads

7/36 Process Control Discrete Time Modelling

slide-8
SLIDE 8

Control output is in discrete time

◮ (Digital) Controller works with discrete

time signals from the plant

◮ Controller output also comes out in

discrete time

8/36 Process Control Discrete Time Modelling

slide-9
SLIDE 9

Digital to Analog (D/A) Conversion

◮ Sampled signal

Discrete Signals

◮ Real life systems are analog ◮ Cannot work with binary numbers ◮ Need to know values at all times

9/36 Process Control Discrete Time Modelling

slide-10
SLIDE 10

Digital to Analog (D/A) Conversion

◮ The easiest way to handle this to use

Zero Order Hold (ZOH)

Signals

  • Discrete

ZOH

  • ◮ Hold the signal constant during an

interval

◮ ZOH is the most popular hold method

10/36 Process Control Discrete Time Modelling

slide-11
SLIDE 11

Discrete time models

Need to develop discrete time models, and design controllers using them

11/36 Process Control Discrete Time Modelling

slide-12
SLIDE 12

Plant + Digital Controller

12/36 Process Control Discrete Time Modelling

slide-13
SLIDE 13

A Sample Xcos Diagram

y1 y y u1 u u t time e1 e e ZOH Step1 Step num1(s) den1(s) Plant1 num(s) den(s) Plant Sf(z) Rf(z) Feedforward Filter Clock Sb(z) Rb(z) Filter 2 13/36 Process Control Discrete Time Modelling

slide-14
SLIDE 14
  • 2. Discrete time signals

14/36 Process Control Discrete Time Modelling

slide-15
SLIDE 15

Basic Discrete Time Signals - Step

A unit step sequence is defined as

1

☎ ✆ ✝

15/36 Process Control Discrete Time Modelling

slide-16
SLIDE 16

Basic Discrete Time Signals - Step

◮ A unit step sequence is defined as

1

☎ ✆ ✝

◮ {1(n)} =

{. . . , 1(−2), 1(−1), 1(0), 1(1), . . .}:

◮ 1(n) =

  • 1

n ≥ 0 n < 0

◮ {1(n)} = {. . . , 0, 0, 1, 1, . . .} ◮ Takes a value of 1 from the time the

argument becomes zero.

16/36 Process Control Discrete Time Modelling

slide-17
SLIDE 17

MCQ: Step

{1(n)} refers to the following:

  • 1. It refers to the value taken by the step

function at time instant n

  • 2. It defines an infinite sequence for

−∞ < n < ∞

  • 3. How can a number be a function of time?
  • 4. None of the above

Ans: 2

17/36 Process Control Discrete Time Modelling

slide-18
SLIDE 18

Basic Discrete Time Signals - Impulse

◮ Unit impulse sequence or unit sample

sequence is defined as

1

☎ ✆ ✝

◮ {δ(n)} =

{. . . , δ(−2), δ(−1), δ(0), δ(1), . . .}

◮ δ(n) =

  • 1

n = 0 n = 0

◮ {δ(n)} = {. . . , 0, 0, 1, 0, 0, . . .} ◮ Takes a value of 1 at the time the

argument becomes zero.

18/36 Process Control Discrete Time Modelling

slide-19
SLIDE 19

Recall: Impulse

Unit impulse sequence or unit sample sequence is defined as

1

☎ ✆ ✝

19/36 Process Control Discrete Time Modelling

slide-20
SLIDE 20

Arbitrary Sequence Using δ I

{u(n)} = {. . . , u(−2), u(−1), u(0), u(1), u(2), . . .} Split them into individual components: = . . . + {. . . , 0, 0, 0, u(−1), 0, 0, 0, 0, . . .} + {. . . , 0, 0, 0, 0, u(0), 0, 0, 0, . . .} + {. . . , 0, 0, 0, 0, 0, u(1), 0, 0, . . .}

20/36 Process Control Discrete Time Modelling

slide-21
SLIDE 21

Arbitrary Sequence Using δ II

= . . . + u(−1){δ(n + 1)} + u(0){δ(n)} + u(1){δ(n − 1)} {u(n)} =

  • k=−∞

u(k){δ(n − k)} = {u(n)}

slide-22
SLIDE 22
  • 3. Impulse and step response models

22/36 Process Control Discrete Time Modelling

slide-23
SLIDE 23

Impulse Response Models for LTI Systems

Time Invariant System

{g(n)} {δ(n)}

Shift the input.As time invariant, output will also be shifted:

Time Invariant System

{δ(n − k)} {g(n − k)}

{u(n)} =

  • k=−∞

u(k){δ(n − k)} {y(n)} =

  • k=−∞

u(k){g(n − k)}

23/36 Process Control Discrete Time Modelling

slide-24
SLIDE 24

Time Invariance

24/36 Process Control Discrete Time Modelling

slide-25
SLIDE 25

MCQ: Time Invariance

Identify the correct statement:

  • 1. Time invariant systems have no dynamics

associated with them

  • 2. Time invariance refers to the behaviour of

systems at present and future times only

  • 3. Time invariance means that the dynamics

under identical conditions will be the same irrespective of the time of observation

  • 4. None of the above

Ans: 3

25/36 Process Control Discrete Time Modelling

slide-26
SLIDE 26

Impulse Response Models for LTI Systems

{y(n)} =

  • k=−∞

u(k){g(n − k)} {g(n)} = {1, 2, 3}, {u(n)} = {4, 5, 6} g, u start at n = 0. They are zero for n < 0. y(0) = u(0)g(0) = 4 y(1) = u(0)g(1) + u(1)g(0) = 13 y(2) = u(0)g(2) + u(1)g(1) + u(2)g(0) = 28 y(3) = u(1)g(2) + u(2)g(1) = 27 y(4) = u(2)g(2) = 18 All other terms that don’t appear above are 0

26/36 Process Control Discrete Time Modelling

slide-27
SLIDE 27

Importance of Impulse Response Models

{y(n)} =

  • k=−∞

u(k){g(n − k)} Comparing term by term y(n) =

  • k=−∞

u(k)g(n − k)

◮ Impulse response has all information

about LTI system

◮ Given impulse response, can determine

  • utput due to any arbitrary input

27/36 Process Control Discrete Time Modelling

slide-28
SLIDE 28

MCQ: Impulse response model

Impulse response model is

  • 1. a sequence that takes a value of one at

n = 0 and zero elsewhere

  • 2. the output of an LTI system at rest as a

function of impulse response

  • 3. the input to be applied to get impulse

function at the output port

  • 4. None of the above

Ans: 2

28/36 Process Control Discrete Time Modelling

slide-29
SLIDE 29

Step Response, Impulse Response

The unit step response of an LTI system at zero initial state {s(n)} is the output when {u(n)} = {1(n)}: {s(n)} =

  • k=−∞

1(k){g(n − k)} Apply the meaning of 1(k): =

  • k=0

{g(n − k)}

◮ This shows that the step response is the

sum of impulse response.

29/36 Process Control Discrete Time Modelling

slide-30
SLIDE 30

Relation between Step and Impulse Responses

◮ We can also get impulse response from

step response.

30/36 Process Control Discrete Time Modelling

slide-31
SLIDE 31

Relation between Step and Impulse Signals

1

☎ ✆ ✝

1

☎ ✆ ✝

{δ(n)} = {1(n)} − {1(n − 1)}

31/36 Process Control Discrete Time Modelling

slide-32
SLIDE 32

Relation: Step and Impulse Responses

◮ We can also get impulse response from

step response.

◮ {δ(n)} = {1(n)} − {1(n − 1)} ◮ Using linearity and time invariance

properties,

◮ {g(n)} = {s(n)} − {s(n − 1)} ◮ Can show that

{y(n)} = [{u(n)} − {u(n − 1)}] ∗ {s(n)}

◮ This can be written as

{y(n)} = {△u(n)} ∗ {s(n)}

◮ Compare: {y(n)} = {u(n)} ∗ {g(n)}

32/36 Process Control Discrete Time Modelling

slide-33
SLIDE 33

Superposition Principle

◮ Output y = yu + yx

Sum of output due to input only and output due to nonzero initial condition only.

33/36 Process Control Discrete Time Modelling

slide-34
SLIDE 34

Sneak preview into DMC modelling

◮ Let s(0) = 0, and a bias term b; it is for

modelling errors, noise, etc. Don’t know b

◮ ˆ

y(k+1) = yx(k+1)+s(1)∆u(k)+b(k+1)

◮ ˆ

y(k + 2) = yx(k + 2) + s(2)∆u(k) +s(1)∆u(k + 1) + b(k + 2)

◮ .

. .

◮ ˆ

y(k + Nu + 1) = yx(k + Nu + 1) + s(Nu + 1)∆u(k) + · · · + s(1)∆u(k + Nu) + b(k + Nu + 1)

◮ Nu is control horizon, i.e., we apply

control effort up to k + Nu and keep it constant afterwards

◮ i.e., ∆u(k + m) = 0, for all m > Nu

34/36 Process Control Discrete Time Modelling

slide-35
SLIDE 35

What we Learnt Today

◮ Motivation for digital control ◮ Discrete time signals ◮ Zero Order Hold ◮ Convolution ◮ Expression for output using impulse and

step responses

35/36 Process Control Discrete Time Modelling

slide-36
SLIDE 36

Thank you

36/36 Process Control Discrete Time Modelling