Implementation of A Lag-Lead Compensator For Robots
Implementation of A Lag-Lead Compensator For Robots
- 11:15
Yilong Chen
Mathematics Department
General Motors Research Laboratories
Warren, Michigan 48090
ABSTRACT
Because of their simplicity, PD (or PID) controllers are widely
used with various robot control strategies. For dynamic control
of robots, this algorithm can be shown to lead to unsatisfactory
trade-offs between static accuracy, system stability and insensitivity to disturbances. These trade-offs become even more serious
as sampling rate decreases. By deriving a more realistic discrete
time system model and using frequency response analysis, a Laglead compensator is designed and implemented. Both theoretical
analysis and real tests are given for the comparisons of the PD
(or PID) controller and the Lag-lead compensator. Replacing PD
(or PID) controllers by Lag-lead compensators results in a small
increase of off-line tuning effort and on-line computational load,
but the improvements in robot performance are significant.
1. INTRODUCTION
Because of their simplicity, PD (or PID) controllers are widely
used with various robot arm control methods, like the approximate
linearized method [Paul 1972, Pieper 1968, Whitney 19691; the
computed torque method [Markiewicz 1973, Luh, Walker, Paul
19801; the hierarchical control method [Albus et al. 1981, C. S.
G. Lee et al. 19821; the feedforward compensation method [Bejczy 1974; Khalil 19781; nonlinear feedback control method [Freund 1982, T. Tarn, A. Bejczy and Y. Chen 19841; the adaptive
control method [Dubowsky and DesForges 1979, Goor 1982,19841
and etc. Our analysis and tests of a Unimation PUMA 560 have
shown that the use of a PD feedback, even with a relatively faster
sampling rate (5ms) than those sampling rates usually used for
robot dynamic control, leads to serious trade-offs between static
accuracy, system stability and damping of high frequency disturbances. Adding an integral of error to the PD to make a PID
feedback often makes the overall system less stable, although it
improves the static accuracy.
FREQUENCY-RESPONSE
In a sampled data system, the choice of sampling rate is often
governed by conflicting criteria. In practice, the sampling rate for
dynamic control of robots often becomes critical. It is not high
enough for a high performance robot arm to be considered as a
continuous time system. In such cases, we need to deal with a
discrete time system model, which we use for feedback control
design. First let us derive the discrete time model of a robot, including a one period computing time delay and a zero order holder
(ZOH) for the example shown in Figure 1 with a feedforward and
feedback loop. To be focus on the comparison of a Lag-lead compensator to a PD controller, a simple linear model is used in this
paper. A more sophisticated discrete nonlinear system model is
preferred if it is available [Neuman and Tourassis, 19851. In that
case, we can use a feedback control method, or a computed torque
method, or a feedforward compensation method to have a desired
linear and decoupled (or approximately linear and decoupled) system for which the following analysis of the frequency-response of
a discrete time system is still valuable.
In Figure 1 each a x i s of a robot arm is described by a 3rd
order motor model [Goor, 19841. For the jth axis, we have
LjJjx,
K$
where
= (applied) armature voltage,
= motor position,
= resistive component of armature circuit ,
L j , = inductive component of armature circuit,
KZ = voltage constant of motor (back emf),
Bj = viscous dampimg coefficient,
Jj
= motor inertia,
K+ = torque constant of the motor.
uj
xj
Rj
88CH2531-2/88/0000-0174$1.OO
1988 IEEE
174
T 2 ( a- P + 7)
4(a+P+7)
az
T
--.
4 b [ l - 2e-01T/2cos(wo?')
d2=
calT]
bT 2bal
*[---+
az
az
where X(s) and U(s) are the Laplace transformations of x(t) and
u(t) respectively, and
a1 = ( L B R J ) / L J ,
az = ( R B K , K T ) / L J ,
b = KT/LJ.
(3)
We can convert the Laplace transfer function (2) to a ztransfer function by defining
oo
X ( Z )= Z ( z ( t ) ) =
z(nT)z-"
(4)
n=O
,w.
175
[(LTt 2PI)
E()
[(dTt 2)
. [(PZdT t 2)
+ (LT - 2/31)]
+ (/32dT - 2)]
[ ( d T + 2)
[(PadT t 2)
+ (dT - 2 ) ]
+ (PzdT - 2)]
(19)
- The state diagram for this cascade form of the Lag-lead compensator from equation (19) is shown in Figure 9.
We let LLI = (LT - 2)/(LT t 2), LL2 = (dT - 2)/(dT
2), ddl = (LT - 2/3I)/(LT 2/31), ddz = (P2dT - 2)//3zdT
2), kkl = (LT 2)/(LT 2/31), and kkz = (dT 2)/(/3zdT -t2).
Then we have state equations with states z1,zz and ez, input e
and output Au as follows:
where K, L, d,
and Pz are constant parameters to be selected. The number K is the gain of the compensator and L and
d are known as the corner frequencies. The Bode diagram of the
Lag-lead compensator can be seen in Figure 7.
Note that the suggested compensator in (16) can also have
the following form in w-plane:
+ (dT - 2)]
+
+
(20)
176
CONTROLLER
0.009 0.013
0.008 0.017
0.009
0.007
0.0013 0.003
0.004 0.003
0.003 0.0035
LAG-LEAD
CCMPENSATOR
IMPROVING
FACTOR
Table : Maximum Tracking Errors (unit: rad.) By Using PID and Lag-lead
REFERENCES
(1) J. S. Albus, A. J. Barbera, R. N. Nagel, 1981, "Theory
and practice of Hierarchial Control," 23rd IEEE Computer Society
International Conference, September, 1981.
(2) K. J. Astrom, B. Wittenmark, 1984, Computer-Controlled
Systems, Theory and Design, Prentice-Hall, Inc., Englewood
Cliffs, New Jersey.
(3) A. K. Bejczy, T. J. Tarn, Y. L. Chen, 1985. "Computer
Control of Robot Arms", Proc. of 1st. IEEE International Conference on Robotics and Automation, St. Louis, Missouri, March
1985.
(4) Y. L. Chen, 1984, "Nonlinear Feedback and Computer
Control of Robot Arms." D. Sc. Dissertation, Department of System Sciences and Mathematics, Washington University, St. Louis,
Missouri, December 1984.
(5) Y.L. Chen, 1986, "A Lag-lead Compensator for Robot
Feedback Control", General Motors Research Publication GMR5480, August 1986.
(6) Y.L. Chen, 1987, "A Formulation Of Automatic Parameter Tuning For Robot Arms", Proc. 23rd IEEE Conference on
177
(27) Digital Equipment Corporation, 1985, "VAXELN Reference Manual", Maynard, Massachusetts.
(28) D. E. Whitney, 1969, "Resolved Motion Rate Control
of Manipulators and Human Prosthesis. "IEEE Transaction on
Man-Machine System, Vol. MMS-10, pp. 47-53.
a"(*)'--
-_-_ _ -
----
--A
Compensatw
Figure 2.
Z M
100
0
"
I
-100
-IW
Figure 3.
Figure 4.
- m(2)
.W(ll
Figure 9.
ir
loo
wos/stc
(0
m C w t w v IN
Figure 5 .
(WO
Lag-lead
GO:
100
300
200
400
500
600
700
800
900
1000
900
1000
n
0
IM
I-
Lag-lead
a
a
0
B O
0
100
200
300
500
400
600
700
800
mcgyC*cr "4
.005
Figure 6.
55
50
-01
~ ~ " " ' ' " " ' ' " " " ' " ' ' " ' ' " ' ' " ' ' ' " ' . ' . J
100
200
300
400
500
600
700
800
900
I000
800
900
1000
800
900
1000
800
900
1000
Figure 7 .
100
nun/scc
Bode Diagram of Lag-lead Compensator
rnLodiNn
300
200
400
500
600
700
#ti
100
200
300
400
500
600
700
/'
I
Figure 8.
IO
r"cr
IN
loo
aros/scc
1010
179
100
200
Lag-lead
300
400
500
600
700