Docsity

Transfer Function to State Space - Lecture Slides | MEM 255, Study notes of Mechanical Engineering

Partial preview of the text

Download Transfer Function to State Space - Lecture Slides | MEM 255 and more Study notes Mechanical Engineering in PDF only on Docsity!

MEM 255 Introduction to ControlSystems:

Transfer function to state space Harry G. Kwatny Department of Mechanical Engineering &Mechanics Drexel University

Outline •^ Problem definition: transfer function tostate space •^ Companion form^ ƒ^ Two methods^ ƒ^ Example^ •

Hand calculation • MATLAB

•^ Diagonal Form

Companion Form^ ( )^

(^

( )^ )

(^

(^11)

1 0 (^11)

1 0 1

1

1

1 0

1

1 0

(^ )^

(^ 1)^

(^ )^

(^ 1)

1

1 0

1

1 0

Consider the input-output relation:We need to repla

m^

m m^ m n^

n n n^

n^

m^

m

n^

m^ m

n^

n^

m^

m

n^

m^

m

b s^ b

s^

b s^ b

Y^ s^

U^ s

s^ a^

s^

a s^ a

s^ a^

s^

a s^ a^

Y^ s^

b s^ b

s^

b s^ b^

U^ s

y^ a^

y^

a y^ a y

b u^

b^ u^

b u^ b u

− − − − −^

−

−^

−

−^

−

−^

−

+^

+^ +^

=^ +^

+^ +^

+^

+^ +^

+^

=^

+^

+^ +^

+^

+^ +^

+^ =^

+^

+^ +^

"^

^

"^

ce this^

-order differential equation by a system

of first order equations in the form:

thn

x^ Ax^

Bu

y^ Cx^

=^ + Du =^ +

Method A, 1

1 1 1

0 1 n^ ns a^ s^ n − a s^ a +^ +^ +−

+"

1 1 1

0 m^ mb s b^ s^ m m − b s^ b +^ +^ +−

+"

u^

z^

y

(^ )^

(^ 1) 1

1 0 (^ )^

(^ 1) 1

1 0

1 2 1

(^ 1) 1 The output

can be obtained from Consider th Now, introduce the

e auxiliary system

definiti n

: o s

n^

n n m mm m n a^ z n n

a z^ a z

u y y^ b z^

b^ z^

b z^ b z

x^ z x^ x^

z x^

z z x

−+ +^ +− − − − −

+^

=

=^

+^

+^ +^

= =^ = =^ =

" " ^  # 

Method A, 3^ (^

)^

(^

)^

[^ ]

0

0

2 0

1 1 1

0 1

0

0

0

0

0 ,

0

0 0

1

(^01) ,

n^

n^ n^

n n^

n

n

A^

b

a b^ b a

a^ a b^ b a

C^

D^ b − −

− −

⎡^

⎤^

⎡ ⎤

⎢^

⎥^

⎢ ⎥

⎢^

⎥^

⎢ ⎥

⎢^

⎥^

⎢ ⎥

=^

=

⎢^

⎥^

⎢ ⎥

⎢^

⎥^

⎢ ⎥

⎢^

⎥^

⎢ ⎥

−^

−^

−^

⎣ ⎦

⎣^

⎦

=^

=

⎡^

⎤

−⎣

⎦ − " %^ %

%^

#^

#^ %

%^

%^

" "^ " "^ "

"

Method B, 1

1 2

1

1 2 1

(^21)

1

First, define

state variables,

,^ ,^

,

Sequentially, use these definitions to eliminate

,^ ,^

, n

n^ n^

n

n

n^

x^ x^

x

x^ y^

u x^ x^

u x^ x^

u

y^ x^

x

…

 # 

^ …

Method B, 3^ (^

)^ (^

)^

(^

)^ (^

(^

(^ )^ (

)^

(^ 1)^

(^ 1)

1 1

1 1

1

1 1

1 0

1 1

(^ )^

(^ 1) 1

1 0

1

1 2 0

1 (^ ) 1

(^ 1) 2 1

1 1 1

(^ )

Now, choose

's to eliminate

-derivatives

,^ ,^ ,

n^ n

n^

n n m m m^

m n^ n^ n n

n n n^ n

n

i n x^ u

a^

x^

u^

a^ x^

u^ a^

x^ u

b u^

b^ u^

b u^ b u

x^ a^ x

a x

a x u a^

u

u

a

u^

u^ u

α α^

α^

−^

− − − − −

− − − − +^

+^

+^

+^ +^

+^ +^

=^

+^

+^ +^

⇓ +^

+^ +^

+ +^ + +^ +

  …^ "

^

#^ (^

(^

(^ )^

(^ 1)

1

2 1

0 1

1

1 0 m^

m

n^ n^

n^ n^

m^

m a^ u a^

a^

a^ u^

b u^

b^ u^

b u^ b u

α^

α^

−

−^

−^ −^

−

+^ + +^

+^

+^ +^

=^

+^

+^ +^

"^

Method B, 4

(^

(^

1 2

1 1

1 1 1

1 1

1

1

1 2

0 1

0

solve recursively for

's, then

n n^

n n^ n^

n n^ n^

b a^ n

b

a^

a^

b

x^ a^

x^

a x^

a x^

b u

α^ α^

α α^

α

α α −^

−

= +^ = +^ −^ − −

+^ +^

+^

+^ +

^

Example^ ( )^ (^

)^ (^

)^ (^

(^

1

1 2

1 2

3 2

3

3 3

2 1

3 3

2 1

1 1

(^123 2 3 )

(^31) (^4 53 2) ,

,^3

terms^

terms^

(^3) terms

s G s^

s^ s x^ y^

u x^ x

u x

x^

u

x^ u^

u^ u^

x^ u^

u

y^ y^

y

u^ x

u^

u^ u

u^ u u x^ x

u u u

x α

α

α

α^ α^

α

α^ α^

α

α

α α α^ α

α

=^ +^

=^ −^

=^ −^

+^ +

⇓ + +^ +

+^

+^ +^

+^ +

+^

=^ +

= = +^ =^

⇒^ = −

=^ +

+^ −

+^

^  =

^ ^

^ ^

^ ^

^ 

^

5 u

Example, Cont’d

[^

]

1 2 2 3 3

1 ,^

0 ,^

x^ x^

u

x^ x^

u

x^

x^ x

u

y^ x A^

b

c^

d

=^ + =^ − = −^

−^ +

= ⎡^

⎤^

⎡^ ⎤

⎢^

⎥^

⎢^ ⎥

=^

=^ −

⎢^

⎥^

⎢^ ⎥

⎢^

⎥^

⎢^ ⎥

−^

⎣^

⎦^

⎣^ ⎦

=^

Diagonal Form

( ) ( ) ( )^

( )^

( )^

1 1 1

0 1 1 1

(^01) (^1011011) Assume distinct poles

,^ ,^

and write parti

Consider t

al fraction expandion

D

he transfer func efine

t o ,

i n n^ n n n n n n

n n n

n n

b s^ b^

s^

b s^ b

G s^ s

a^ s^

a s^ a c c G s^ c^

s^

s

c c Y^ s^ c U

s^

U^ s^

U^ s s^

s

X^ s

λ^ λ λλ λ

λ −+ +^ +^ − − −

=^ +^

+^ +^

  • … =^ +^

+^ ++ + =^

+^

+^ + +^

( )^

( )^

( )^

( )^

( )^

( )^

1

1 0 1 1

2 , 1

1 ,^ , Then

n

n

n n X^ s X^ s^

U^ s^

X^ s^

U^ s

s^

s

Y^ s^ c U

s^ c X

s^ c X

s λ

λ

=^

= +^

=^

+^

…

… "

Diagonal Form, 2^ [^

1 ]

2

1 1

1

1 1

0

1 2

3 1 2

0

From the definitions of

,^ , 0

1

0

1 , 0 0

n (^1) , n

n^ n^

n

X^ n X

x^

x^ u

y^ c x^

c x^ c u

x^

x^ u A^

b

c^ c^

c^

c^ d

c λ λ λ λ

λ = −^

=^ +

+^

= −^

⎡^

⎤^

⎡ ⎤

⎢^

⎥^

⎢ ⎥

⎢^

⎥^

⎢ ⎥

=^

=

⎢^

⎥^

⎢ ⎥

⎢^

⎥^

⎢ ⎥

⎢^

⎥^

⎣ ⎦

⎣^

⎦ =^

… =

 #^

"



% % %^

"

c^01 c^1 s λ+ 1 X (^1) # # # 1 cns λ+ nX n

Y

U

Summary • Transfer function to state space • Companion form, 2 versions^ ƒ^ Both give real coefficients^ ƒ^ No need to factor numerator or denominator • Diagonal form^ ƒ^ Coefficients can be complex^ ƒ^ Need to factor denominator