Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

4.Simple control systems

.pdf
Скачиваний:
19
Добавлен:
23.08.2013
Размер:
311.07 Кб
Скачать

Chapter 4. Simple Control Systems

r

e

u

y

Σ

k kds

 

P

 

 

1

 

r

e

u

y

Σ

k

Σ

P

kds

1

Figure 4.13 Block diagrams of system with PD control based on error feedback DaboveE and with a PD controller with two degrees of freedom DbelowE. Compare with Figure 4.11.

The closed loop transfer function from reference to output becomes

YDsE

 

PC

 

D2ζ ω 0 a1Es ω 02 a2

RDsE

1 PC

s2 2ζ ω 0s ω 02

Notice that there will be a steady state error unless a2 0. The steady state error is small if ha2h ω 02. Also notice that the zero in the numerator may cause overshoot. To avoid this the controller based on error feedback can be replaced with the following controller

U DsE kDRDsE − YDsEE − kd sYDsE

D4.30E

which has two degrees of freedom. The transfer function from reference to output for the closed loop system then becomes

YDsE

 

ω 02 a2

RDsE

s2 2ζ ω 0s ω 02

Notice that this transfer function does not have a zero. Block diagrams for the system with error feedback and with two degrees of freedom are shown in Figure 4.13.

PI Control

Next we will investigate what can be achieved with PI control of the process given by D4.27E. Let the PI controller have the transfer function

C s

 

k

 

ki

 

ks ki

D

E

 

 

s

 

s

164

4.5Control of Second Order Systems

The loop transfer function becomes

L s

E

P s

C s

E

Dks kiEDb1s b2E

 

nLDsE

s3 a1s2 a2s

dLDsE

D

D E

D

The characteristic polynomial is

nLDsE dLDsE s3 Da1 kb1Es2 Da2 kb2 ki b1E b2ki

Identifying the coefficients of this equation with the desired characteristic polynomial

Ds2 2ζ ω 0s ω 02EDs αω 0E s3Dα 2ζ Eω 0 s2 D1 2αζ Eω 02 s αω 03 D4.31E

we obtain

a1 b1 k Dα 2ζ Eω 0 a2 b1ki b2 k D1 2αζ Eω 02

b2 ki αω 03

Since there are three equations and only two unknowns the problem cannot be solved in general. To have a solution we can let ω 0 be a free parameter. If b1 0 and b2 0 the equation then has the solution

ω0 α a1 ζ

2

k

 

D1 2αζ Eω 02 a2

D4.32E

 

b2

 

αω

 

 

 

3

 

 

ki

 

0

 

 

b2

 

 

 

The parameter ω 0 which determines the response time is thus uniquely given by the process dynamics. When b1 0 the parameter ω 0 is instead the real solution to the equation

α b21ω 03 − D1 2αζ Eb1b2ω 02 Dα 2ζ Eb22ω 0 a2b1b2 a1b22 0.

and the controller parameters are given by

k Dα 2ζ Eω 0 a1 b1

αω 3 ki b2 0

In both cases we find that with PI control of a second order system there is only one choice of ω 0 that is possible. The performance of the closed loop system is thus severely restricted when a PI controller is used.

165

Chapter 4. Simple Control Systems

PID Control

Assume that the process is characterized by the second-order model

P s

E

b1s b2

4.33

s2 a1s a2

D

D E

This model has four parameters. It has two poles that may be real or complex, and it has one zero. This model captures many processes, oscillatory systems, and systems with right half-plane zeros. The right half-plane zero can also be used as an approximation of a time delay. Let controller be

U DsE kDbRDsE − YDsEE ksi DRDsE − YDsEE kd sDcRDsE − YDsEE

The loop transfer function is

L s

E

Dkd s2 ks kiEDb1s b2E

 

nLDsE

sDs2 a1s a2E

dLDsE

D

The closed-loop system is of third order with the characteristic polynomial

dLDsE nLDsE sDs2 a1s a2E Db1s b2EDkd s2 ks kiE

D1 b1 kEs3 Da1 b1 k b2 kdEs2 Da2 b1 ki b2kEs b2ki

D 1 E

 

1 b1 k

 

 

1 b1 k

1 b1k

1 b k s3

 

a1 b1 k b2kd

s2

 

a2

b1 ki b2k

s

 

b2 ki

 

 

 

 

 

 

 

A suitable closed-loop characteristic equation of a third-order system is

Ds αω 0EDs2 2ζ ω 0s ω 02E

Equating coefficients of equal power in s in this polynomial with the normalized characteristic polynomial gives

a1 b2kd b1 k

 

α

2ζ ω

 

 

1 b1kd

 

 

D

E 0

 

 

a2 b2k b1 ki

 

1

2αζ ω 2

 

1 b1kd

 

D

E

0

 

 

 

b2 ki

αω 03

 

 

 

1

 

b k

 

 

 

 

 

 

1 d

 

 

 

166

4.5Control of Second Order Systems

This is a set of linear equations in the controller parameters. The solution is straightforward but tedious and is given by

k

 

a2b22

a2b1b2Dα 2ζ Eω 0 − Db2 a1b1EDb2D1 2αζ Eω 02 α b1ω 03E

 

b23 b1b22Dα 2ζ Eω 0 b12b2D1 2αζ Eω 02 α b13ω 03

 

k

 

 

D−a1b1b2 a2b12 b22Eαω 03

i

b23 b1b22Dα 2ζ Eω 0 b12b2D1 2αζ Eω 02 α b13ω 03

 

k

 

a1b22 a2b1b2 b22Dα 2ζ Eω 0 b1b2ω 02D1 2αζ E b12αω 03

d

 

b23 b1b22Dα 2ζ Eω 0 b12b2D1 2αζ Eω 02 α b13ω 03

 

 

 

 

 

 

 

D4.34E

The transfer function from set point to process output is

 

 

 

G

s

E

Db1s b2EDckds2 bks kiE

 

 

 

 

Ds αω 0EDs2 2ζ ω 0s ω 02E

 

 

 

 

yrD

The parameters b and c have a strong influence on shape of the transient response of this transfer function.

The transfer function from load disturbance to process output is

b1s2 b2s

Gyd Ds αω 0EDs2 2ζ ω 0s ω 02E

These formulas are useful because many processes can be approximately described by the transfer function D4.27E. We illustrate this with an example.

EXAMPLE 4.1—OSCILLATORY SYSTEM WITH RHP ZERO

Consider a system with the transfer function

PDsE

1 s

s2 1

This system has one right half-plane zero and two undamped complex poles. The process is difficult to control.

s3 2s2 2s 1.

D4.34E gives a PID controller with the parameters k 0, ki 1/3, and kd 2/3. Notice that the proportional gain is zero.

We will give an example that illustrates that there are situations where a PID controller can be much better than a PI controller.

167

Chapter 4. Simple Control Systems

EXAMPLE 4.2—PID CAN BE MUCH BETTER THAN PI

Consider a process described by

PDsE

kv

D4.35E

sD1 sTE esTd

where the time delay Td is much smaller than the time constant T. Since the time constant T is small it can be neglected and the design can be based on the second order model

PDsE

kv

D4.36E

sD1 sTE

A PI controller for this system can be obtained from Equation D4.32E and we find that a closed loop system with the characteristic polynomial D4.31E can be obtained by choosing the parameter ω 0 equal to 1/Dα 2ζ ET. Since Td T it follows that ω 0Td 1 and it is reasonable to neglect the time delay.

If the approximation D4.36E it is possible to find a PID controller that gives the closed loop characteristic polynomial with arbitrarily large values of ω 0. Since the real system is described by D4.35E the parameter ω 0 must be chosen so that the approximation D4.36E is valid. This requires that the product ω 0Td is not too large. It can be demonstrated that the approximation is reasonable if ω 0Td is smaller than 0.2.

Summarizing we find that it is possible to obtain the characteristic polynomial D4.31E with both PI and PID control. With PI control the parameter ω 0 must be chosen as 1/Dα 2ζ ET. With PID control the parameter instead can be chosen so that the product ω 0Td 1 is small, e.g. 0.2 or less. With PI control the response speed is thus determined by T and with PID control it is determined by Td. The differences can be very significant. Assume for example that T 100, Td 1, α 1 and ζ 0.5. Then we find that with ω 0 0.005 with PI control and ω 0 0.1 with PID control. This corresponds to a factor of 200 in response time. This will also be reflected in a much better disturbance attenuation with PID control.

4.6 Control of Systems of High Order*

The method for control design used in the previous sections can be characterized in the following way. Choose a controller of given complexity, PD, PI or PID and determine the controller parameters so that the closed loop

168

4.6Control of Systems of High Order*

characteristic polynomial is equal to a specified polynomial. This technique is called pole placement because the design is focused on achieving a closed loop system with specified poles. The zeros of the transfer function from reference to output can to some extent be influenced by choosing a controller with two degrees of freedom. We also observed that the complexity of the controller reflected the complexity of the process. A PI controller is sufficient for a first order system but a PID controller was required for a second order system. Choosing a controller of too low order imposed restrictions on the achievable closed loop poles. In this section we will generalize the results to systems of arbitrary order. This section also requires more mathematical preparation than the rest of the book.

Consider a system given by the block diagram in Figure 4.8. Let the process have the transfer function

P s

 

YDsE

bDsE

 

b1sn1 b2sn2 . . . bn

4.37

E

U DsE

aDsE

 

sn a1sn1 . . . an

D

D E

where aDsE and bDsE are polynomials. A general controller can be described by

f DsEU DsE −nDsEYDsE hDsERDsE

D4.38E

where f DsE, nDsE and hDsE are polynomials. The controller given by D4.38E is a general controller with two degrees of freedom. The transfer function from measurement signal y to control signal u is −nDsE/f DsE and the transfer function from reference signal r to control signal u is hDsE/f DsE. For a system with error feedback we have nDsE hDsE. Elimination of U DsE between Equations D4.37E and D4.38E gives

aDsEf DsE bDsEnDsE YDsE bDsEhDsERDsE bDsEf DsEDDsE

D4.39E

The closed loop has the characteristic polynomial

cDsE aDsEf DsE bDsEnDsE

D4.40E

Notice that this only depends on the polynomials f DsE and nDsE. The design problem can be stated as follows: Given the polynomials aDsE, bDsE and cDsE find the polynomials f DsE and nDsE which satisfies D4.40E. This is a well known mathematical problem. It will be shown in the next section that the equation always has a solution if the polynomials aDsE and bDsE do not have any common factors. If one solution exists there are also infinitely many solutions. This is useful because it makes it possible to introduce additional constraints. We may for example require that the controller should have integral action.

169

Chapter 4. Simple Control Systems

A Naive Solution

To obtain the solution to the design problem the equation D4.40E must be solved. A simple direct way of doing this is to introduce polynomials f and n with arbitrary coefficients, writing equating coefficients of equal powers of s, and solving the equations. This procedure is illustrated by an example.

EXAMPLE 4.3—GENERAL POLE PLACEMENT

Consider a process with the transfer function

PDsE

1

Ds 1E2

Find a controller that gives a closed loop system with the characteristic

polynomial

Ds2 as a2EDs aE

D4.40E becomes

Ds 1E2 f n Ds2 as a2EDs aE s3 2as2 2a2s a3

One solution is

f 1

n s3 D2a 1Es2 D2a2 2Es a3 1 but there are also other solutions e.g.

f s 2a 2

n D2a2 4a 3Es a3 2a 2

The Diophantine Equation

The naive solution of D4.40E hides many interesting aspects of the problem. The equation D4.40E is a classical equation which has been studied extensively in mathematics. To discuss this equation we will use more mathematics than in most parts of the book. We will also change to a more formal style of presentation. This is a nice illustration of the fact that control is a field where many branches of mathematics are useful.

We will start by observing that polynomials belong to a mathematical object called a ring. This means that they can be multiplied and added,

170

4.6Control of Systems of High Order*

and that there are units: the zero polynomial for addition and the polynomial 1 for multiplication. Division of polynomials does not always give a polynomial, but quotient and remainders are defined. Integers are other objects that also is a ring. To develop some insight we will first explore two examples.

EXAMPLE 4.4—AN EQUATION IN INTEGERS

Consider the following equation

3x 2 y 1,

where x and y are integers. By inspection we find that x 1 and y 1 is a solution. We also find that if we have a solution other solutions can be obtained by adding 2 to x and subtracting 3 from y. The equation thus has infinitely many solutions.

EXAMPLE 4.5—AN EQUATION IN INTEGERS

Consider the equation

6x 4 y 1,

where x and y are integers. This equation cannot have a solution because the left hand side is an even number and the right hand side is an odd number.

EXAMPLE 4.6—AN EQUATION IN INTEGERS

Consider the equation

6x 4 y 2,

where x and y are integers. Dividing the right hand side by 2 we obtain the equation in Example 4.4

These examples tell most about the D4.40E when a, b, f , n and c belong to a ring. To be precise we have the following result.

THEOREM 4.1—EUCLID'S ALGORITHM

Let a, b, and c be polynomials with real coefficients. Then the equation

ax by c

D4.41E

has a solution if and only if the greatest common factor of a and b divides c. If the equation has a solution x0 and y0 then x x0 bn and y y0 an, where n is an arbitrary integer, is also a solution.

171

Chapter 4. Simple Control Systems

PROOF 4.1

We will first determine the largest common divisor of the polynomials a and b by a recursive procedure. Assume that the degree of a is greater than or equal to the degree of b. Let a0 a and b0 b. Iterate the equations

an 1 bn

bn 1 an mod bn

until bn 1 0. The greatest common divisor is then bn. If a and b are co-prime we have bn 1. Backtracking we find that

ax by bn

where the polynomials x and y can be found by keeping track of the quotients and the remainders in the iterations. When a and b are coprime we have

ax by 1

and the result is obtained by multiplying x and y by c. When a and b have a common factor it must be required that the largest common divisor of a and b is also a factor of c. Dividing the equation with this divisor we are back to the case when a and b are co-prime.

Since the proof has only used addition, multiplication, quotients and remainders it follows that the results holds for any ring.

An Algorithm

The following is a convenient way of organizing the recursive computations. With this method we also obtain the minimum degree solution to the homogeneous equation.

ax by 1

D4.42E

au bv 0

where n is the greatest common divisor of a and b and u and v are the minimal degree solutions to the homogeneous equation These equations can be written as

8 u v

9

8 b 0 1

9

8 0 u v

9

>

x y

>

>

a

 

1 0

>

 

>

1 x

y

 

 

 

 

 

 

 

 

 

>

>

 

>

>

 

 

 

 

 

>

 

>

 

 

>

:

 

;

:

 

 

 

 

 

;

 

:

 

 

;

The solution to Equation

D

 

 

E

can be obtained by transforming the ma-

4.42

 

trix

 

 

 

 

 

 

 

a

1

0

 

 

 

 

 

 

 

A0

>

>

 

 

 

 

 

>

 

 

 

 

>

 

 

 

 

 

8 b

0

1

9

 

 

172

 

 

 

 

 

 

:

 

 

 

 

;

 

 

4.6Control of Systems of High Order*

by row operations to a matrix where the 21 element is zero. This can be done recursively as follows. Assume that deg a is greater than or equal to deg b, exchange the rows if this is not the case. Form the following

recursion.

 

 

An

An

An

 

 

 

>

>

 

 

21

22

23

 

 

>

 

 

>

An 1

 

8 rn

A12n qn A22n

A13n qn A23n

9

 

 

:

 

 

 

 

 

;

where qn A11n div An21 and rn A11n div An21. Proceed until A21n 1 0. It follows from Euclid's algorithm that A11n is the greatest common divisor

of a and b and that a and b are co-prime if A11n 1. The equation D4.41E then has a solution if A11n is a factor of c.

System Theoretic Consequences

The following result is an immediate consequence of Euclid's algorithm, Theorem 4.1.

THEOREM 4.2—CONTROLLER PARAMETERIZATION

Consider a system with a rational transfer function P b/a. Let C0 n0/f0 be a controller which gives a closed loop system with the characteristic polynomial c. Then all controllers which give a closed loop system with the characteristic polynomial c are given by

C n0 qa f0 qb

where q is an arbitrary polynomial.

PROOF 4.2

The loop transfer function obtained with the controller C is

L PC bDn0 qaE aDf0 qbE

we have

 

 

 

 

 

 

 

1

 

L

 

aDf0 qbE bDn0 qaE

a f0 bn0

 

c

 

 

aDf0 qbE

aDf0 qbE

aDf0 qbE

 

 

which shows that the characteristic polynomial is c. Let C n/f be any controller that gives the characteristic polynomial c it follows that

a f bn c

and it follows from Theorem 4.1 that f f0 bq and n n0 aq.

173

Соседние файлы в предмете Электротехника