Professional Documents
Culture Documents
R - Modeling of Industrial Robot For Identification, Monitoring, and Control, Report No. 2439 PDF
R - Modeling of Industrial Robot For Identification, Monitoring, and Control, Report No. 2439 PDF
OMATIC CONTROL
AU T
CO
MMU MS
NICATION SYSTE
LINKÖPING
Technical reports from the Control & Communication group in Linköping are
available at http://www.control.isy.liu.se/publications.
Abstract
pressed as functions of other state variables. For This file can then be transformed, using a simple
the three mass model this includes the spring Matlab program, into an m-file (Matlab script-
damper components where the relative angular file) that can be used directly by the System Iden-
position between the two connections becomes a tification Toolbox. Using these tools the modeling
state variable. These two variables are replaced by to identification process becomes straight-forward
θa1 − θm r and θa2 − θa1 , respectively. and nearly automatic.
The next step is to introduce the state variables,
x1 to x5 . For the three mass model described here
they are given by 4. OFF-LINE IDENTIFICATION
10
1.2 1.4 0.08
0 1 1.2
10
1 0.06
0.8
−1
10 0.8
1 2 3 0.6
10 10 10 0.04
0.6
0.4
0.4
0.02
200 0.2 0.2
Phase (degrees)
0 0 0 0
0 1000 2000 0 1000 2000 0 1000 2000
−200
Fig. 5. Recursive estimates of the parameters.
−400
10
1
10
2 3
10 This shows that it is feasible to identify the phys-
Frequency (rad/s)
ical parameters recursively. An important aspect
Fig. 4. Bode plot of the physical model and a of the behavior of the algorithm is that it can not
high order ARX model. The physical model be expected that the input signal is sufficiently
is shown with a solid line and the ARX model exciting all the time during real world robot oper-
is shown with dotted line. ation. The identification algorithm therefore has
to be able to treat this phenomenon by an appro-
6.2 Identification
priate monitoring of the matrix P (t) (Ljung and
Gunnarsson, 1990).
The choice of which parameters that should be
6.3 Detection and isolation
identified recursively originates from which pa-
rameter values that are likely to change over time.
An example could be a worn gear box, which One way of making fault detection and isolating
indicates an increase in fm . In these experiments using recursive identification is to look at the devi-
the interest has been concentrated on the three ation of the parameter estimates from the nominal
parameters kT , Ja−1 and fm . values. This deviation should then be compared
with an adaptive threshold based on an estima-
The design parameters to choose are the initial tion of the variance of the parameter estimates.
values of θ and P and the forgetting factor λ. Here a way of making a robust fault detection
The choice of λ is a trade off between tracking and isolation algorithm based on recursive iden-
ability of the algorithm and the variance of the tification with the use of the CUSUM algorithm
parameter estimates. In this application λ = 0.995 (Gustafsson, 2000) is studied. This replaces the
has been found to be an appropriate value. The usual threshold. Let the residual, θ̃i (t), be the
choice of P (0) can be made from different points deviation from the nominal parameter value for a
of view. In case the algorithm is going to be particular parameter, then the CUSUM algorithm
used with change detection, P (0) should be chosen can be written as
to give fast convergence after sudden changes in
g(t) = g(t − 1) + θ̃i (t) − ν
the true parameters. Without change detection
the tracking properties will be determined by the g(t) = 0, if g(t) < 0 (21)
current values of P (t), which depend on the choice g(t) = 0, and ta = t and alarm if g(t) > h
of λ and the properties of the input signal via ψ(t). The drift variable ν, in the CUSUM algorithm,
In the identification presented here, the aim is can be based on an adaptive threshold, and the
to show the algorithm properties without any threshold h is a measure on how long time the
change detection involved. In order to select an threshold ν must be violated. Note that if the
initial value of P (t) that represents the steady residual can be negative another CUSUM test
state behavior the update equation for P (t) is must be run in parallel using −θ̃i (t) as input.
first run using the nominal parameter values in A CUSUM test is applied using the recursive pa-
the computation of ψ(t). The mean value of the rameter estimates. In order to make the threshold
diagonal elements in P (t) are then used to form adaptive, we have chosen to let ν vary with time.
the initial value P (0) in the actual identification. Let the nominal parameter values be denoted θ0,i
The initial value of the parameters in θ is set to for parameter i, and P (i,i) (t) denote the ith di-
20% above the nominal values of the parameters agonal element of P (t) in the recursive identifica-
to see how well the algorithm adapts. The adapta- tion algorithm (11). The design parameters in the
tion is shown in Figure 5, and it can be seen that CUSUM test (21) are chosen as
all parameters converge to their nominal values. q
The convergence rate is approximately the same ν(t) = α1 λ0 P (i,i) (t) (22)
for the estimates of Ja−1 and fm respectively, while
it is somewhat higher for the estimate of kT . h = α2 θ0,i (23)
In the experiment we have chosen α1 = 3 and Berglund, E. and G. Hovland (2000). Automatic
α2 = 20. The parameter λ0 is the variance of Elasticity Tuning of Industrial Robot Ma-
noise in the system and is estimated to one in the nipulators. In: Proceedings of the 39th IEEE
experiment. The threshold should be dependent Conference on Decision and Control. Sydney,
on the size of the parameter and is therefore Australia. pp. 5091–5096.
chosen to be proportional to the nominal value of Forssell, U. and L. Ljung (1999). Closed-loop
the parameter. Figure 6 shows the CUSUM test identification revisited. Automatica 35, 1215–
variable g(t) without resetting when an alarm is 1241.
present. The experiments are performed using an Gustafsson, F. (2000). Adaptive Filtering and
input signal with the same spectrum as in the off- Change Detection. John Wiley & Sons, LTD.
line identification experiments. Jirstrand, M. (2000). Mathmodelica – a full sys-
tem simulation tool. In: Product Models 2000,
kT Jainv fm
1.5
The Sixth Conference on Product Models,
150
20
1 Global Product Development. Linköping, Swe-
100
50 10 0.5 den.
0 0 0 Ljung, L. (2000a). System Identification Toolbox –
0 5 10 0 5 10 0 5 10 User’s Guide. The MathWorks Inc. Sherborn,
20 300 1.5
MA, USA.
200 1
10 Ljung, L. (2000b). System Identification Toolbox -
100 0.5
For Use with Matlab. The MathWorks Inc.
0 0 0
0 5 10 0 5 10 0 5 10 Ljung, L. and S. Gunnarsson (1990). Adaptation
20
20
15 and tracking in system identification – A
10
10 survey. Automatica 26(1), 7–21.
10 5 Ljung, L. and T. Glad (1994). Modeling of Dy-
0 0 0
namic Systems. Prentice Hall.
0 5 10 0 5 10 0 5 10
20 1.5 Ljung, L. and T. Söderström (1983). Theory and
20
1 Practice of Recursive Identification. The MIT
10 10 0.5 Press.
0 0 0 Nissing, D. and J. Polzer (2000). Parameter iden-
0 5 10 0 5 10 0 5 10
tification of a substitution model for a flex-
ible link. System Identification Symposium.
Fig. 6. A CUSUM test applied to parameters esti-
SYSID 2000.
mates. The test variable (solid) is shown to-
Norrlöf, M., F. Tjärnström, M. Östring and
gether with the constant threshold (dashed).
M. Aberger (2002). Modeling and identifi-
The first row has a 20% fault in kT , the
cation of a mechanical industrial manipula-
second a 20% fault in Ja−1 and the third a
tor. In: Proceeding of the 15th IFAC World
20% fault in fm . In the last row there is no
Congress. Barcelona, Spain.
fault present.
Norrlöf, Mikael (2000). Iterative Learning Con-
trol. Analysis, design and experiments.. PhD
thesis. Linköping University. Linköping, Swe-
den.
7. CONCLUSIONS
Norrlöf, M. (2000). Iterative Learning Control:
Analysis, Design, and Experiments. PhD the-
Recursive identification, monitoring and detection
sis. Linköpings universitet. Linköping, Swe-
of continuous time parameters of a flexible robot
den. Linköping Studies in Science and Tech-
arm has been considered. It has been illustrated
nology. Dissertations; 653. Download from
how a physical of an industrial robot can be
http://www.control.isy.liu.se/publications/.
derived and how its (continuous time) parameters
Östring, Måns, Svante Gunnarsson and Mikael
can identified, both off-line and on-line. The on-
Norrlöf (2001). Closed loop identification of
line model has been applied to monitoring and
physical parameters of an industrial robot. In:
detecting faults in the parameters.
32nd International Symposium on Robotics.
Seoul, Korea.
Tiller, Michael M. (2001). Physical Modeling with
REFERENCES Modelica. Kluwer Academic Publishers.
Albu-Schäffer, A. and G. Hirzinger (2001). Pa- Wolfram, S. (1999). The Mathematica Book.
rameter identification and passivity based fourth ed.. Cambridge University Press.
joint control for a 7dof torque controlled Xie, L. L. and Lennart Ljung (2002). Estimate
lightweight robot. In: Procedings of the 2001 physical parameters by black-box modeling.
IEEE Conference on Robotics & Automation. In: Proc. Chinese Control Conference.
Seoul, Korea. pp. 2852–2858.