• No results found

Department of Electrical Engineering

N/A
N/A
Protected

Academic year: 2021

Share "Department of Electrical Engineering"

Copied!
26
0
0

Loading.... (view fulltext now)

Full text

(1)

On-line Identication

Petter Krus

Department of Mechanical Engineering Svante Gunnarsson

Department of Electrical Engineering

Linkoping University, S-58183 Linkoping, Sweden

Abstract

In this paper we present an approach to adaptive control of hydraulic actua- tors with exible mechanical loads. The approach is based on recursive identi- cation of low order models of the dynamics from valve input to actuator position and eective load pressure respectively. The model parameters are used to com- pute a regulator that gives a well damped system with good servo properties.

The identication is carried out on-line in closed loop with no other signals than those present in normal operation. Here RLS with variable forgetting factor is used. The method does not, however, need not more parameters to be set a priori than ordinary RLS with x forgetting factor. In this way an easily tuned and robust identication algorithm is obtained. Results from experiments carried out on a lorry crane are presented.

1 Introduction

Systems containing uid power components oer interesting and challenging applica- tions of modern control techniques. Developments concerning measurement equipment and and computing power have made in possible to apply fairly sophisticated methods.

An survey of the subject is given in 1]. Of particular interest is control of hydraulic actuators, since their behavior is of great importance in, for example, robots, cranes,

1

(2)

excavators, etc. Applications of modern control theories to hydraulic actuators are presented in e.g. 2], 3], 4] and 5]. A particularly interesting class of problems is sys- tems, controlled by hydraulic actuators, that contain some kind of exibilities. Flexible systems have received increasing attention in the recent years, in particular in the area of robotics. We shall in this paper discuss such a problem, namely control of a crane containing hydraulic actuators. The crane is depicted i Figure 1, and it has previously been discussed in e.g 6], 7] and 8].

Figure 1: Hydraulic crane

The aim in this paper is to design an adaptive control system that gives a well damped behavior of the crane. This will be done by rst deriving a mathematical model of the system and then approximating the transfer functions in the model by low order transfer functions. Using the low order transfer functions we then determine a suitable structure of the regulator transfer functions. Assuming the coecients in the system model to be known we can then determine suitable values of the regulator coecients such that the closed loop system gets a well damped behavior. The actual values of the model coecients will be obtained using the recursive least squares (RLS) method.

Since the application of the RLS method to this problem requires some extra attention this part will be treated in some detail. We nally intend to test the resulting adaptive regulator on the real crane. A alternative approach to the one described above is to use the high order model for the control design, and then to approximate the regulator transfer functions by low order ones. This approach is presented in 9] and 10].

2

(3)

2 Mathematical model

A detailed model of the crane would be dicult to derive and too complex to be used in regulator design. We shall therefore instead use a simplied model, proposed in

11], which is shown in Figure 2. In using this model we assume that the exibility is restricted to the arm of the crane.

Figure 2: Simplied description.

In Figure 2 the variables

p

i (

t

)

A

i and

C

i denote pressure, piston area and capacitance respectively in each chamber. Furthermore

M1

and

M2

denote masses while

B

and

B

P

represent friction coecients and

K

is the spring stiness. The variables

x

P (

t

)

x

L (

t

) and

f

(

t

) nally denote piston position, load position and external force respectively.

The ow into the cylinder is controlled by a valve which however not is shown in the

gure.

In order to obtain mathematical descriptions of the systems we start by formulating some basic equations. Equations for the mechanical part of the systems are obtained by the force balances

M

1x

 P =

A1p1;A2p2;B

P

x

_ P +

K

(

x

L

;x

P ) +

B

(_

x

L

;x

_ P ) (1) and

M

2x

 L =

;K

(

x

L

;x

P )

;B

(_

x

L

;x

_ P )

;f:

(2) For notational convenience we have here omitted the time argument. The relationship between valve position, pressure and piston movement for chamber one is obtained from the equations

q

1

=

A1x

_ P +

C1p

_

1

(3) where

q1

denotes the ow into chamber one and

C1

is the capacitance, and

q

1

=

K

q

x

V

;K

c

p1:

(4)

3

(4)

In Equation (4)

K

q and

K

c denote ow gain and ow-pressure coecient respectively, and

x

V is the valve opening. Equation (3) is obtained by linearization of the continuity equation, while (4) is derived by linearization of the nonlinear relationship between valve position, ow and pressure drop in the valve. The linearization operations will not be discussed here, and we refer to 12] or 13]. Analogous treatment of chamber two gives

q

2

=

A2x

_ P

;C2p

_

2

(5) and

q

2

=

K

q

x

V +

K

c

p2:

(6)

Finally, the valve is described as a second order system, and the relationship between valve input

u

and valve position

x

V is given by



x

V + 2

!

v



v

x

_ V +

!2

v

x

V =

!2

v

u:

(7) This is also a simplied description since the real valve dynamics also contains nonlin- earities like, for example, dead band.

There are two signals that can be measured, piston position

x

P and eective load pressure

p

Le , which is given by

p

Le =

p1; A2

A

1 p

2

:

(8)

The important quantities in this paper will be the transfer functions from input signal

u

(

t

) to piston position

x

P (

t

) and load pressure

p

Le (

t

) respectively. These transfer functions can be derived via some straightforward but tedious calculations using the equations above. We shall not give any details here but refer to 14]. This reference also presents how a state space description can be formed.

To illustrate the character of the system we show in Figures 3 - 4 the Bode diagrams of the transfer functions from valve input to piston position and eective load pressure respectively. In these gures we see that if we restrict the attention to the low frequency range the transfer functions can be fairly well approximated by the transfer functions

X

p (

s

) =

K

x

s

U

(

s

) (9)

and

P

Le (

s

) =

K

p

1s

+

K

p

2

s 2

=!

2

0

+ 2

0s=!0

+ 1

U

(

s

) (10)

4

(5)

100 101 102 10-2

10-1 100 101

Angular frequency

Amplitude

100 101 102

-400 -350 -300 -250 -200 -150 -100 -50

Angular frequency

Phase

Figure 3: Valve input to piston position

100 101 102

107 108 109 1010

Angular frequency

Amplitude

100 101 102

-200 -150 -100 -50 0 50 100

Angular frequency

Phase

Figure 4: Valve input to eective load pressure

3 Regulator design

In order to avoid a steady state error due to external disturbances, dead band in valves, etc it is necessary to use a regulator with an integral part. One approach is to use the regulator structure in Figure 5, where

G

PI (

s

) is a PI-regulator

G

PI (

s

) = (

!

I

=s

+ 1)

K

(11)

and the prelter

G

f (

s

) is used to cancel the overshoot usually caused by the PI- regulator. From above we have that, in the low frequency domain, the transfer function from input to piston position can be approximated by

G

x (

s

) =

K

x

=s

(12)

5

(6)

Figure 5: Regulator structure The closed loop transfer function then becomes

G

c (

s

) =

G

f (

s

)(

!

I

=s

+ 1)

KG

x (

s

)

1 + (

!

I

=s

+ 1)

KG

x (

s

) (13) By introducing

!

c =

KK

x

!

a =

p!

c

!

I



a = 12

 !!

a I (14) we can rewrite equation (13) into

G

c (

s

) =

G

f (

s

)( ! s

I

+ 1) ( ! s

22a

+ 2 ! 

aa

s

+ 1) (15)

If furthermore the prelter is chosen as

G

f (

s

) = ( ! s

a

+ 1)

( ! s

I

+ 1) (16)

the zero at

!

I is replaced with a zero at

!

a , i.e.

G

c (

s

) = ( ! s

a

+ 1)

( ! s

22a

+ 2 ! 

aas

+ 1) (17) In this way the overshoot is determined solely by



a . When



a = 1 there is only one (real) pole at

!

a , and there will consequently be no overshoot in the step response. A faster response with only little overshoot is obtained if



a is in the range 0.7-0.8. From specications for the speed, represented by

!

c or

!

a , and damping, represented by



a , of the closed loop system we can determine the design variables

K

and

!

I .

The block diagram can be rearranged as shown in Figure 6, where we, in order to in- crease the damping, also introduce pressure feedback. The rearrangement is motivated by considerations regarding saturation. In the original scheme the prelter is useless if the valve is saturated, and it is unable to prevent the overshoot.

6

(7)

Figure 6: Implemented regulator structure

For similar reasons the ltered pressure signal is fed through the PI-regulator instead of directly to the valve. This procedure allows the PI-regulator to handle saturation and anti-wind up correctly. The break frequency of the PI-regulator is also lower than the range where the pressure feedback is eective. Consequently, the PI-regulator will behave like a constant gain in this range. The transfer functions in Figure 6 are given by

F

1

(

s

) = (

s

!

11

+ 1)

K1

(18)

F

2

(

s

) = ! s

21

+ 1

! s

22

+ 1 (19)

and

F

3

(

s

) =

K3s

( !

131

+ !

132

)

(

s=!31

+ 1)(

s=!32

+ 1) (20)

where

K

1

= 2

!

a

K

c x

!11

=

!

a = 2

!

c a

!21

=

!

I = 4

!

c

2

a

!22

=

!

a = 2

!

c a (21) This solution is very similar to one of the solutions obtained through LQG-design, and the synthesis procedure described here was inspired by a regulator obtained from LQG-design described in 10] and 9]. When it comes to the pressure feedback

F3

(

s

) the eect on the damping can be studied using the approximate transfer function from input to pressure

G

P (

s

) = s

2 K

p

1s

!

02

+ 2

0

! s

0

+ 1 (22)

Closing the pressure feedback loop yields

P

Le =

K

p

1sF1

(

s

)(

X

pr

;F2

(

s

)

X

p )

s 2

=!

2

0

+ 2

0s=!0

+ 1 +

F1

(

s

)

F3

(

s

)

K

p

s

(23)

7

(8)

If we for simplicity assume that

F3

(

s

) =

K3

and

F1

(

s

) =

K1

this yields

P

Le =

K

p

1sF1

(

s

)(

X

pr

;F2

(

s

)

X

p )

s 2

=!

2

0

+ 2

0=!0

+

K1K3K

p ]

s

+ 1+ (24) Introducing the eective damping

0

e gives

P

Le =

K

p

1sF1

(

s

)(

X

pr

;F2

(

s

)

X

p )

s 2

=!

2

0

+ 2

0

e

s=!0

+ 1 (25) and

K

3

= 2(

0

e

;0

)

!

0 K

1

K

p (26)

Although

0

is estimated it is low compared to the

0

e wanted to ensure stability.

Therefore it is neglected (or assumed to have a constant but small value).

K

3

= 2

0

e

!

0 K

1

K

p

1

(27)

A normal value for the desired damping is

0

e = 1. There is however a risk with too large values of

K3

, since hysteresis in the valves may cause a phase shift such that higher resonances can be unstable, see 15]. The bandpass ltering of the pressure signal has two objectives. Since there is a steady state in the load pressure, this will generate an error signal in steady state unless the signal is high-pass ltered. The high-pass ltering is used to remove the inuence of higher resonances. The lter break frequencies

!31

and

!32

could be spaced symmetrically around the resonance frequency

!0

. In this way there will be no phase shift at the resonance frequency and the damping will be eective. This feedback is also consistent with the LQG-control design. The upper cut-o frequency

!32

can sometimes be omitted since the valve itself has a limited bandwidth that will act as low-pass lter.

4 On-line identication

Let us now face the problem of nding estimates of the transfer functions that are needed for control design. Our aim in this paper is to illustrate how this problem can be handled using system identication. Even though we are primarily interested in the coecients of the continuous-time description we will consider discrete-time models in the general discussion. The starting point is hence the following dierence equation

y

(

t

) +

a1y

(

t;

1) +

:::

+

a

n

y

(

t;n

) =

b1u

(

t;

1) +

:::

+

b

n

u

(

t;n

) +

v

(

t

) (28) where

u

(

t

) and

y

(

t

) denote the input and output signals while

v

(

t

) is a disturbance signal. For notational convenience we introduce

'

(

t

) = (

;y

(

t;

1)

:::;y

(

t;n

)

u

(

t;

1)

:::u

(

t;n

)) T (29)

8

(9)

and



= (

a1:::a

n

b1:::b

n ) T (30) which gives the compact expression

y

(

t

) =

'

T (

t

)



+

v

(

t

) (31) We now want to nd the parameter vector



that gives the best description of the real system, and this is done by minimizing the criterion

V

t (



) =

X

t

k

=1

(

y

(

k

)

;'

T (

k

)



)

2

(32) It is then straightforward to show that the minimizing vector can be computed recur- sively as



^ (

t

) = ^



(

t;

1) +

P

(

t

)

'

(

t

)

"

(

t

) (33) where

"

(

t

) =

y

(

t

)

;'

T (

t

)^



(

t;

1) (34) and

P

(

t

) =

P

(

t;

1)

;P

(

t;

1)

'

(

t

)

'

T (

t

)

P

(

t;

1)

1 +

'

T (

t

)

P

(

t;

1)

'

(

t

) (35) These equations dene the well known recursive least squares (RLS) method. For a thorough discussion of this algorithm we refer to, for example 16]. There are however some factors that prevent a direct use of the RLS algorithm, and we will discuss these problems and some methods to handle them.

The rst problem is that

P

(

t

), updated according to equation (35), will tend to zero.

This will then stop the updating of the parameters, and this is of course an undesirable property in applications, e.g. the hydraulic crane, when the dynamics change during operation. There exist several methods for handling this problem, and the perhaps most common one is to introduce a so called forgetting factor. Using the forgetting factor equation (35) becomes

P

(

t

) = 1

(

t

)

"

P

(

t;

1)

; P

(

t;

1)

'

(

t

)

'

T (

t

)

P

(

t;

1)

(

t

) +

'

T (

t

)

P

(

t;

1)

'

(

t

)

#

(36) Here the forgetting factor

(

t

) is chosen in the interval 0

<

(

t

)



1. Choosing

(

t

)



1 we come back to the original RLS algorithm, equation (35), which means that there is no forgetting in the system i.e all values are equally weighted for the parameter identication. The choice

(

t

)

<

1, on the other hand, means that there is an exponential weighting of the measurements in such a way that old measurements are given less weight less than new ones. There is however a trade-o in the choice of forgetting factor. Choosing a \small" value of

(

t

) gives good ability to follow varying

9

(10)

dynamics, but it also implies high sensitivity to disturbances. The choice of forgetting factor will be further discussed below.

Instead of tending to zero

P

(

t

) will, for a constant forgetting factor, stay around a mean level

P

(

t

)



(1

;

)

Q;1

(37)

where

Q

is the mean value of the matrix

'

(

t

)

'

T (

t

), i.e.

Q

= lim t

!1

1

t

t

X

k

=1

'

(

t

)

'

T (

t

) (38) An alternative way of preventing

P

(

t

) from tending to zero is to, at each time instant, add a matrix

R1

(

t

) to the right hand side of equation (35). This yields

P

(

t

) =

P

(

t;

1)

;P

(

t;

1)

'

(

t

)

'

T (

t

)

P

(

t;

1)

1 +

'

T (

t

)

P

(

t;

1)

'

(

t

) +

R1

(

t

) (39) The matrix

R1

(

t

) can also be interpreted as a measure of the rate of change in the parameters of the system that is identied. Using

R1

(

t

) instead of forgetting factor oers more degrees of freedom for the user, but also more design parameters choose.

Analogous to equation (37) it can be shown that in this case, for

R1

(

t

)

R1

,

P

(

t

) will stay around a constant matrix 

P

given by



PQP

 =

R1

(40)

A \small" value of

R1

will hence result in a \low" mean value of

P

(

t

). It is interesting to note that the choice

R

1

= (1

;

)

2Q;1

(41)

gives that

P

(

t

) is given by equation (37), which means that the RLS algorithm with forgetting factor is a special case of equation (39). We can also note that the choice

R

1

=

2Q

(42)

implies



P

=

I

(43)

where

I

denotes the identity matrix. Returning to equation (33) this hence corresponds to the algorithm

^



(

t

) = ^



(

t;

1) +

'

(

t

)

"

(

t

) (44) which is the so called least mean squares (LMS) or gradient algorithm.

The introduction of mechanisms to ensure that the algorithm maintains ability to track varying parameters however results in a new problem that has to be considered. In the

10

(11)

discussion above we have assumed that the signals involved are persistently exciting, i.e. that they \contain suciently many frequencies". If we focus on the forgetting factor modication of the RLS algorithm it is a well known fact that when the signals are not persistently exciting and we use a forgetting factor less than one the matrix

P

(

t

) will start growing exponentially, a phenomenon often denoted covariance blow-up.

See for example 17]. We hence have to introduce some safety mechanism that prevents

P

(

t

) from tending to innity, and also here some dierent alternatives are available.

One method is to monitor and adjust

P

(

t

) such that its trace, i.e. sum of diagonal elements, remains constant. Another method, proposed in 18], is inspired by the fact that the blow-up of

P

(

t

) is equivalent to that its inverse tends towards a singular matrix. Using so called regularization, i.e. at each time step adding a scalar times the identity matrix to the inverse, it is possible to prevent blow-up of

P

(

t

). Looking at the update equation for

P

(

t

) regularization approximately corresponds to adding a term

; P

2

(

t;

1), where

is a small positive scalar, to the right hand side of (35).

Finally, the third problem that has to be dealt with is caused by poor excitation in combination with disturbances. Even though we manage to keep

P

(

t

) bounded during periods with poor excitation the parameters may drift away due to disturbances acting on the system. This phenomenon can be handled by introducing a dead zone that stops the updating of the parameters when the error

"

(

t

) is too small. The parameter update equation are then modied into

^



(

t

) = ^



(

t;

1) +

a

(

t

)

P

(

t

)

'

(

t

)

"

(

t

) (45) where where the positive scalar

a

(

t

) can be used to turn o the updating. Introducing

a

(

t

) into the equation for

P

(

t

) yields

P

(

t

) = 1

(

t

)

"

P

(

t;

1)

;a

(

t

)

P

(

t;

1)

'

(

t

)

'

T (

t

)

P

(

t;

1)

(

t

) +

'

T (

t

)

P

(

t;

1)

'

(

t

)

#

(46) The main problem with this approach is of course that we need some rule for how

a

(

t

) should be chosen. One idea, discussed in 17], is to use

a

(

t

) =

( a



j"

(

t

)

j>

2



0 otherwise (47)

Applying this idea requires that suitable values of the parameters 

a

and



are selected.

11

(12)

5 On-line identication of the hydraulic crane

5.1 Choice of design variables

In the on-line identication of the hydraulic crane we have to consider all three prob- lems discussed above. The system dynamics change with operating point, so it is necessary to use an algorithm that maintains the ability to follow varying dynamics.

There will furthermore be periods with poor excitation, and there will always be dis- turbances inuencing the identication. Our solution to these problems is to use the RLS algorithm described above with the forgetting factor computed according to

(

t

) = 1

;

(1

;0

)1

;

;(

t

)

; max ] (48)

Here ;(

t

) denotes the trace of

P

(

t

) while ; max is a user supplied upper bound on the trace. This means that the forgetting factor tends to one when the trace of

P

(

t

) tends to its upper limit, and this ensures that

P

(

t

) stays bounded. Note that apart from the control of

a

(

t

) there are only two parameters to set for this type of identication,

0

and ; max . To start up the algorithm it is suitable to initialize

P

to be diagonal and have a trace of the value ; max .

The variable

a

(

t

) can be controlled either by the information in the input signals in the system, or by the trace of

P

(

t

) in a way that a large ;(

t

) yields a small

a

(

t

). It can however not be chosen identically zero, since this would turn the identication of completely. One possible way of calculating

a

(

t

) is given by equation (49) below.

a

(

t

) = 1

;

;(

t

)

; max

0

(49)

The parameters to be tuned are the lower bound on the forgetting factor

0

and ; max , i.e. not more parameters than are needed in the RLS algorithm with constant forgetting factor. In order to suppress identication based on signals with low amplitude ; max

should be low enough to increase

(

t

) as soon as the signals start to diminish. In the implementation of the identication algorithm a prime concern has been to have as few user dened parameters as possible. Furthermore, the user dened parameters should be quantities that can be grasped easily.

When choosing the forgetting factor we start from the equation



id

0

= (1

;T0

) (50)

where

T

is the sampling interval. This equation denes an approximate time constant for the adaptation of the estimated parameters at a sudden change in the system. See

12

(13)

16]. The value of

0

can hence be seen as a function of



id

0

which is the lower limit of the time lag in the parameter adjustment, and

0

can be calculated by rearranging equation (50), into

0

= 1

;T=

id

0

(51)

Obviously, the choice of



id

0

is a rough estimate of the system dynamics, and



id

0

should be longer than the interesting time constants of the system.

The upper limit of the trace of

P

(

t

), i.e. ; max , is not a very natural parameter for the user. It does, however, reect an estimate of the signal level in the system, and this is a property which it is rather easy to give a rough estimate of. From equation (37) we have that in stationarity

P

(

t

)



(1

;

)

Q;1

(52)

where

Q

is the average of the matrix

'

(

t

)

'

T (

t

). For simplicity assuming for that

Q

is a diagonal matrix we get

;(

t

) = (1

;

)

=

(

X2

n

i

=1

1

E'

2

(

i

)) (53)

where

E

denotes the expectation operator. This means that the signal with the smallest variance will dominate ;(

t

). If a lower bound

x

min of the level of \useful signals" is known a value for ; max can be calculated that limits

P

(

t

) when the signal level goes below that value. The relationship can be described by equation (54)

; max = (1

;0

)

=

(

X2

n

i

=1

1

x

2

min ) (54)

There are some additional considerations that have to be made for the implementation.

Using the discrete time representation above the identication is strongly dependent on the step size. The sampling rate must be fast enough to monitor the dynamic variations in the system. On the other hand, a to small time step could lead to numerical problem.

The identication is based on the dierence between values in dierent time step, and a small time step can reduce the dierence between two samples to the order of the noise level.

One very ecient way to improve the identication procedure is to lter both input signal and output signal to the identier with identical lters. In this way the transfer function remains unchanged since the two lters cancel each other. Here a state-space representation is used where the highest derivative is calculated and the other states are integrated using the trapezoidal rule (corresponding to bilinear transform). A byproduct of the ltering is that the derivatives of the lter outputs are obtained. The identication algorithm can then work on the continuous time system instead of the time discrete representation. The model used for the identication is the following dierential equation

d

n

y

dt

n +

a1d

n

;1y

dt

n

;1

+

:::

+

a

n

y

=

b0d

n

u

dt

n +

b1d

n

;1u

dt

n

;1

+

:::

+

b

n

u

(55)

13

(14)

For a survey of continuous time identication we refer to 19]. In order to obtain all the necessary derivatives from the lter they have to be at least of order

n

. A suitable choice is to set the order to

n

+ 1. In this way all derivatives are low pass ltered compared to the input signal and no numerical problems due to dierentiation are to be expected. These choice of the lter break frequencies reects an estimate of the range of the system dynamics. The break frequency of the high pass lter

!

hp should be lower than any of the system dynamics. The break frequency of the low pass lter

!

lp

on the other hand should be higher than the system bandwidth. In the applications of interest here, hydraulic servo systems, the interesting frequency range is usually within a range of one or two decades. Therefore, a typical value of

!

lp would be

!

lp = 30

!

hp (56)

An upper bound on

!

lp is the Nyquist frequency 1

=

(2

T

). The structure of the RLS based identication algorithm used here can be described by Figure 7. A RLS-manager controls the values of

(

t

) and

a

(

t

). The user supplied inputs are a lower limit for the identication time constant



id

0

, a value of a typically small signal amplitude

x

min . In the gure also the lter break frequencies and the sampling time are included among the user dened parameters, These values are, however, also dictated by a rough estimate of the interesting frequency range in the same way as



id

0

. The value of the sampling time

T

is noncritical as long as it is short enough (shorter than 1

=

(2

!

lp )).

There are instances where the system becomes so highly nonlinear that the model is completely unrepresentative of the system behavior. This can be when limitations are reached. One example is when pistons reach there end stroke. These conditions can usually be detected and in these cases it is wise to shut of the parameter updates. This can be done by setting

a

(

t

) to zero through the external override indicated in Figure 7. Finally, an approximate value of the identication time constant



id or its inverse

!

id , given by

!

id =

a

(

t

)(1

;

(

t

))

=T

(57) can be monitored. The RLS-algorithm can be see as a ltering of the system parame- ters, with the cut-o frequency

!

id . Equation (57) provides the user with an excellent possibility to monitor the behavior of the identication.

14

(15)

Figure 7: Structure of the RLS implementation

15

(16)

5.2 Simulation example

In order to demonstrate the properties of the identication algorithm it was applied to the system

Y

(

s

) = 1

s 2

=!

2

0

+ 2

0s=!0

+ 1

U

(

s

) +

V

(

s

) (58) where

V

represents measurement noise. During the simulation the input signal and the resonance frequency

!0

was varied. Figure 8 shows the input signal

u

and the output signal

y

.

V

was white noise ltered through a rst order low-pass lter with break frequency of 50 rad/s, and the variance of the noise was 0

:

04.

Figure 8: Input and output signal of test system

In Figure 9 the change in resonance frequency, the response of estimated resonance frequency, and the inverse of the identication time constant is shown. Note that

!

id becomes zero between the transients, and that the small transient at ve seconds hardly makes it react. Figure 10 shows the behavior of the forgetting factor

(

t

) and the control variable

a

(

t

). The trace of

P

(

t

) is not shown but from equation (48) it follows that

(

t

) and ;(

t

) follow each other.

16

(17)

Figure 9: Resonance frequency, estimated resonance frequency and the inverse of the identication time constant.

Figure 10: Forgetting factor

(

t

) and identication control variable

a

(

t

).

17

(18)

5.3 Identication of crane dynamics

The regulator design requires the open loop gain

K

x and the resonance frequency

!

0

and

0

. Furthermore the gain

K

p

1

from input signal to pressure at the resonance frequency is needed. The parameters

!0

,

0

and

K

x can be obtained from identication of the transfer function between input signal and pressure. An approximate expression of this transfer function is given by equation (59).

P

Le (

s

) =

K

p

1s

+

K

P

2

s 2

=!

2

0

+ 2

0s=!0

+ 1

U

(

s

) (59) The model used for the identication was:

P

Le (

s

) = "

3s

+ "

4

s 2

;

"

1s;

"

2U

(

s

) (60) From the identied ^



vector the parameters in equation (60) can be calculated as:

^

!

0

=

q;

^

2

(61)

^

K

p = ^

3=

^

2

(62)

The parameter

K

x can be obtained from identication of the transfer function between input signal and piston position. However, in the low frequency domain the

G

x (

s

) can be approximated by

G

x (

s

) =

K

x

=s

(63)

This means that equation (63) can be used provided that the prelters have a low upper cut-o frequency corresponding to the range where equation (63) is valid. The model used for the identication is therefore simply

sX

p (

s

) =

K

x

U

(

s

) (64) To conclude this section. The variables needed for the regulator design are

K

x ,

!0

, and

K

p .

!0

and

K

p are obtained from identication of equation (60) while

K

x is obtained from identication of (64). The structure of the identication is shown in Figure 11.

18

(19)

Figure 11: Structure of the RLS implementation

Since there are two identications in parallel there should be twice as many parameters to set. Some of them can, however, be taken to be the same. The only one that diers is the cut-o frequency of the low pass lters. When ltering the piston position

x

p

a much lower cut-o frequency is used since the model is valid in the low frequency range only. The

x

min values could be dierent, but both input signals are the same and they dominate the magnitude of the ; values, since it is much smaller than the derivatives of the output signals. Therefore

x

m

in

are taken to be the same for both identications. Dierent values for



id

0

could also be used, but for simplicity the same value is used for both.

It should be stressed that it is very important to avoid running the identication when sever nonlinearities are encountered. There are two ways to avoid this. The rst is to override the control variable

a

(

t

) and set it to zero when known nonlinear regions are encountered such as the end stroke of pistons. Another way is to control the system in such a way that the nonlinear regions are avoided altogether, i.e avoid the region close to the end stroke of pistons. Another phenomena that was encountered was the eect of pump saturation. The eect is similar to saturation in the valve. When the system is saturated a lower gain

K

x is identied which means that the control gain

K

1

is increased which drives the system even more into the saturated region. In order to avoid this runaway behavior of the gain the input signals must be limited in the software in such a way that the system (valve/pump) never becomes saturated and that the limited signals are sent into the identier. This is particularly important when several actuators are supplied by the same pump.

19

(20)

6 Experimental results

At rst the adaptive controller was tested against a simulation model of the crane.

The simulations where carried out in the HOPSAN simulation package where the com- plete nonlinear equations for the dierent components can be simulated including the mechanical structure of the crane. The modeling technique is described in 8]. In this simulated yet nonlinear environment the algorithm performed perfectly. When the algorithm had been tested, the same program could be used to control the real system.

The experiments where carried out in a full size lorry crane. It was equipped with pressure and position sensors. The control valves where electrically controlled mobile proportional valves. The dead band in the valves was considerable and therefore dead band compensation in the software was implemented.

Figure 12 shows the reference position, actual position of the piston and the eective load pressure. The identication starts immediately but at rst the controller used is a simple proportional control. At 10 seconds the adaptive regulator is introduced. The behavior is thereafter smooth and the position error is driven to zero. The controller is also able to handle saturation in the control signal which is demonstrated here since the control signal is saturated most of the transition between the steps as can be seen in Figure 13.

Figure 12: Reference position, actual position of the piston and the eective load pressure

20

(21)

Figure 13: Input signal to the valve

The identication of som of the parameters are shown in Figure 14. The inverse of the identication time constant, the identication bandwidths

!

idp and

!

idp is shown in Fig- ure 15. The corresponding forgetting factors are shown in Figure 16. The parameters used for the identication where



id

0

= 1 s]

X

min = 0

:

03

# hp = 3 rad/s]

# lp = 20rad/s]

# hx = 3 rad/s]

# lx = 3 rad/s]

T

= 0

:

02 rad/s]

21

(22)

Figure 14: Estimated resonance frequency and estimated velocity gain

Figure 15: Identication bandwidths

22

(23)

Figure 16: Forgetting factors

Figure 17: Estimated pressure gains

23

(24)

Of the estimated parameters, it seems to be very easy to nd the resonance frequency (and the damping, although not shown). The pressure gains on the other hand is much more dicult. The reason for this is probably that the dead band region of the valve is not very well dened. Although dead band compensation is used (after

u

) it cannot be cancelled completely. Therefore the correlation between input signal and pressure are not very strongly correlated at small input signals. The imperfect valve characteristics also degrades the transient response. A much better overall result would therefore be expected if valves with characteristics closer to servo valves where used.

7 Conclusions

In this paper it has been demonstrated that adaptive control can be successfully imple- mented in the control system of a hydraulic crane. The RLS algorithm with variable forgetting factor was used for on-line identication of the system. The models used for the identication are simple with only a few parameters to identify, and this as- sures quick convergence of the parameter estimates. The identied parameters are used for the design of a PI-based regulator. The approach is rather general and both the identication and the regulator design should be relevant to most hydraulic position servos.

8 Acknowledgements

This work was sponsored by the Center for Industrial Information Technology (CENIIT) at Linkoping University.

References

1] W. Back$e and P. Anders. \The inuence of microelectronics on uid power con- trol". In Prepr. 10th IFAC World Congress, pages 267{277, Munich, German Federal Republic, 1987.

2] F. Conrad and C.J.D. Jensen. \Design of hydraulic force control systems with state estimate feedback". In Proc. 10th IFAC World Congress, pages 267{277, Munich, German Federal Republic, 1987.

3] P. Du H. Unbehauen and U. Keuchel. \Application of microcomputer-based model reference adaptive control to a hydraulic positioning system". In Proc. IFAC

24

(25)

Symposium on Adaptive Control and Signal Processing, pages 513{518, Glasgow, Scotland, 1989.

4] N.H. McClamroch. \Displacement control of exible structures using electrohy- draulic servo-actuators". Transactions of the ASME, 107:34{39, 1985.

5] K. Yamahashi, K. Takahashi, Y. Tamoto, and S. Ikeo. \The improvement of the frequency response of an electrohydraulic servo system using model reference adap- tive control techniquesm". In Fourth Bath Internationall Fluid Power Workshop, Bath, U.K., 1991.

6] P Krus and J.O. Palmberg. \Damping of uid power systems in machines with high inertia loads". In Prepr. First JHPS International Symposium on uid Power, pages 9{16, Tokyo, Japan, 1989.

7] P. Krus and S. Gunnarsson. \Adaptive control of hudraulic actuators with exible mechanical loads". In Proc. 9th International Symposium on Fluid Power, pages 149{158, Bath,UK, 1990.

8] P. Krus, A. Jansson, and J. O. Palmberg. \Real time simulation of hydraulic control systems with complex mechanical loads". In IFAC/IMACS CADS 91, Swansea, U.K., 1991.

9] S. Gunnarsson and P. Krus. \LQG control of an hydraulic actuator with a exible mechanical load". Technical report, LiTH-ISY-1209, Department of Electrical Engineering, Linkoping University, Linkoping, Sweden, 1991.

10] S. Gunnarsson and P. Krus. \LQG control of a hydraulic actuator with a exible mechanical load". In 12th IFAC World Congress, Sydney, Australia, 1993.

11] T.J.Viersma. Analysis, synthesis and design of hydraulic servosystems and pipelines. Elsevier Scientic Publishing Company, Amsterdam, The Netherlands, 1980.

12] H.E.Merrit. Hydraulic control systems. John Wiley & Sons, 1967.

13] J.Watton. Fluid power systems. Prentice Hall International, Hemel Hempstead, U.K., 1989.

14] S. Gunnarsson and P. Krus. \Modelling of a exible mechanical system containing hydraulic actuators". Technical report, LiTH-ISY-1078, Department of Electrical Engineering, Linkoping University, Linkoping, Sweden, 1990.

15] P. Krus. On Load Sensing Fluid Power Systems - With Special Reference to Dynamic Properties and Control Aspects. PhD thesis, Linkoping University, Linkoping, Sweden, Oct. 1988.

25

(26)

16] L. Ljung and T. Soderstrom. Theory and Practice of Recursive Identi cation.

M.I.T. Press, Cambridge, MA., 1983.

17] K. J. 'Astrom and B. Wittenmark. Adaptive Control. Addison-Wesley, 1989.

18] M.E. Salgado, G.C. Goodwin, and R.H. Middleton. \Modied least squares algo- rithm incorporating exponential resetting and forgetting". International Journal of Control, 47:477{491, 1988.

19] P.C. Young. \Parameter estimation for continuous time models: A survey". Au- tomatica, 17:23{29, 1981.

26

References

Related documents

Närmare 90 procent av de statliga medlen (intäkter och utgifter) för näringslivets klimatomställning går till generella styrmedel, det vill säga styrmedel som påverkar

På många små orter i gles- och landsbygder, där varken några nya apotek eller försälj- ningsställen för receptfria läkemedel har tillkommit, är nätet av

Det har inte varit möjligt att skapa en tydlig överblick över hur FoI-verksamheten på Energimyndigheten bidrar till målet, det vill säga hur målen påverkar resursprioriteringar

Detta projekt utvecklar policymixen för strategin Smart industri (Näringsdepartementet, 2016a). En av anledningarna till en stark avgränsning är att analysen bygger på djupa

DIN representerar Tyskland i ISO och CEN, och har en permanent plats i ISO:s råd. Det ger dem en bra position för att påverka strategiska frågor inom den internationella

Det finns många initiativ och aktiviteter för att främja och stärka internationellt samarbete bland forskare och studenter, de flesta på initiativ av och med budget från departementet

Den här utvecklingen, att både Kina och Indien satsar för att öka antalet kliniska pröv- ningar kan potentiellt sett bidra till att minska antalet kliniska prövningar i Sverige.. Men

Sedan dess har ett gradvis ökande intresse för området i båda länder lett till flera avtal om utbyte inom både utbildning och forskning mellan Nederländerna och Sydkorea..