Professional Documents
Culture Documents
04338825
04338825
04338825
256 / ) ( ) (
1
(3)
Dual-port RAM
IDT7133
A0
L
-A9
L
D0
L
-D15
L
BUSY
L
BUSY
R
A0
R
-A9
R
D0
R
-D15
R
CE
L
CE
R
R\W
L
R\W
R A0-A9 AEN
IOR
IOW
D0-D15
A0-A9
DSP
TMS320LF2407
A0-A9
D0-D15
GAL20V8
Address encoding Address encoding
R\W
R
A0-A15 DS IS PS
PCI
bus
of
IPC
Fig. 6 Simulation results of PID and fuzzy self- adjusting PID Fig. 5 Communication interface between IPC and DSP
1587
General PID
adjust ment
Fuzzy
reasioning
Out put
sat urat ion
cont rol
D/A
conversion
Servo
driver
Kp A Ki A Kd A
1-z
-1
1-2z
-1
-z
-2
Target velocit y
K
vf
K
af
Target
accelerat ion
Fefuzzicat ion
+
+
+
St at ic error
compensat ion
+
Feedback
Velocit y
close-loop
cont rol
Current
close-loop
cont rol
0 0
/ d u
i i
d / u
+
_
Fuzzi-
cation
e ec
K
1
K
2
d / u
E
dE
Execut ive
mechanism
Fig. 7 Closed loop adjusting principle of the system
Where E
i
is the position error and P
target
is the actual position
of the ith sampling time; U
i
is the output velocity command
voltage of position loop; is the accumulated errors of the
ith sampling time; V
i
E E
t
is the current velocity; A
t
is current target
acceleration; K
vf
is velocity feedforward gain; K
af
is the
acceleration feedforward gain; K
p
, K
i
and K
d
are the gain of
proportion, integral and differential respectively.
According to the features of proportional, integral and
derivative control function in the PID control strategy, the
self-adjusting requirements for parameters K
p
, K
i
and K
d
in the
control process are as follows (taking the prismatic joint
control process as example):
(1) When
) (d e
is greater, K
p
should be set a little higher
and K
d
a little lower in order to maintain better tracking
performance. Meantime, in order to avoid a big overshoot of
system response, integral function should be limited, usually
K
i
is set zero;
(2) When
) (d e
and
) (d ec
are both medium, K
p
and K
d
are usually set a little lower and K
i
should be an appropriate
value in order obtain small overshoot;
(3) When
) (d e
is smaller, K
p
and K
i
should be set higher;
when
) (d ec
is greater, K
d
should be set lower in order to
obtain better system stability; when ( ) d ec is big, should
be small and when
d
K
) (d ec
is smaller, K
d
should be set higher
in order to increase the capacity of resisting disturbance and
avoid the system oscillation around the presetting value.
In the self-adjusting of PID process, the Maximum
Minimum method was adopted in fuzzy reasoning and the
area center of gravity method was adopted in defuzzification
according to the states of fuzzy control. The fuzzy rules of
parameters adjusting for K
p
, K
i
and K
d
can be obtained
from conventional experience, which have been downloaded
in the DSP.
During the motion of the motors, the control system
finishes fuzzy control adjustment through table looking up
and calculation, then the modify parameters could be looked
out, thus the parameters of PID are adjusted real time through
the following formulas:
p Ci i p p
K E E K K } { 0 + + = (4)
i Ci i i i
K E E K K } { 0 + + = (5)
d Ci i d d
K E E K K } { 0 + + = (6)
V. SYSTEM SOFTWARE DESIGN
The software plays an important role in the control
performance of the system. Considering that the motion
controller already integrates the digital processing chip
TSM320LF2407A, software design is divided into two parts:
upper computer and lower computer, designed with modular
structure, which realizes the intelligence to the most extent.
Aiming at the features that the core chip DSP of the motion
controller has, all the arithmetic involving real time control is
solidified within DSP. The purpose of doing this is that IPC is
in charge of overall plan and the motion controller will carry
out the specific control, which takes care of the real time
control and increases the openness of motion control.
A. Upper Computer Software Design
For upper computer software, Microsoft Visual C++6.0 is
used to develop the DLL functions of communication between
IPC and DSP, which includes the modules of system
parameter regulation, trace export, motion process control and
data receiving, etc. Design of the program is flexible and easy
to transplant. The communication between the controller and
IPC can be achieved by the library functions, so the users can
control the robot without direct operate to the port. The design
of DLL makes the system easy to develop secondly.
B. Lower Computer Software Design
For the lower computer: TMS320LF2407A not only has
abundant hardware resource, but has a powerful command
system, and supports the high level language at the same time.
1588
So during programming, hardware structure and command
system are fully considered and the hybrid programming of
assemble language and C language is employed to make the
system optimal most. The precision of motion control also
needs to be considered as much as possible, so all that
involved real time control like linear interpolation, circular
interpolation, single axis test and multi-axes motion
synchronously and other arithmetic are solidified within DSP.
Following the design idea above, the software of lower
computer is divided into 3 modules: communication module,
servo control module and motion monitor module.
For communication module, two-stage buffer is
employed: the first stage is used to store the data that is being
executed; the second is used to store the data that is being
received. Servo control module mainly fulfills such tasks as
defining position base point, motion mode option, motion
position transmission, motion performance regulation, and on
or off of Servo ON. Interrupt of this module adopts the
interrupt plus inquiry mode, the interrupt flowchart is shown
as Fig.8. This mode makes several interrupt sources share one
DSP external interrupt, which solves the problem that 2407
doesnt have enough external interrupt interface, and increases
the availability of interrupt resource. Monitor module carries
out the detection of the limitation and error and process trace
of the motors working.
Fig. 8 Interrupt flowchart of the software
VI. EXPERIMENTAL RESULTS AND CONCLUSIONS
Based on the system developed, position tracking
performance of the four DOF SCARA robot was tested, the
result is shown as Fig. 9, from which we can see that the
robotic system developed in this paper has a good control
precision and dynamic performance, so it can meet the actual
operating requirement completely.
At present the control system has been applied to the
industrial and educational robots. The actual running shows
that the system has good operating performance, and the
programming function is complete. Furthermore, both
hardware and software design employed modular structure,
which makes the system easy to maintain, expand and
transplant. Adopting of the three-loop servo control arithmetic
of velocity, acceleration feedforward plus fuzzy PID
regulation make the control system have good dynamic
performance and high control precision.
REFERENCES
[1] E. Dumetz, J.-Y. Dieulot, P.-J. Barre, F. Colas, and T. Delplace, Control
of an Industrial Robot Using Acceleration Feedback, Journal of
Intelligent and Robotic Systems: Theory and Applications, vol. 46, no. 2,
2006, pp. 111-128.
[2] A.-S. Zaki, Control of Industrial Robot Joint Flexibility Using
Acceleration Feedback, Proceedings of the American Society of
Mechanical Engineers (ASME) Dynamic Systems and Control Division
2005, pp.1469-1474, 2005.
[3] V. Poppeova, J. Uricek, R. Zahoransky, T. Galbavy, K. Muller, and S.
Schmeisser, The Development of Robot Control, Robot Simulation and
Digital Image Processing, Komunikacie, vol. 7, no. 1, pp. 41-46, 2005.
[4] J. Cui, A. Song, and W. Huang, Research on Kinematics Modelling of
MOTOMAN-SV3X Robot in Teleoperate System, Journal of Southeast
University (Natural Science Edition), vol. 33, no. 4, pp. 424-429, July,
2003.
[5] Y. Chen, J. Zhang, C. Yang, and B. Niu, The Workspace Mapping with
Deficient-DOF Space for the PUMA 560 Robot and its Exoskeleton Arm
by Using Orthogonal Experiment Design Method, vol. 23, no. 4, pp.
478-487, August, 2007.
[6] S. Fischmeister, M. Holzmann, and G. Menkhaus, Model-based
Development of Robotic Control Systems, Proceedings of ICCC 2004 -
Second IEEE International Conference on Computational Cybernetics,
pp. 13-18, 2004.
[7] A. Onea, V. Horga, and M. Ratoi, Software Tools for DSP Motion
control Applications, WSEAS Transactions on Information Science and
Applications, vol. 2, no. 12, pp. 2251-2258, December, 2005.
400 800 1200 1600 2000
0
1
2
-1
-2
t(ms)
Fig. 9 Position error of the robot
E
r
r
o
r
(
m
m
)
1589
[8] H. Liu, Structure, Principle and Application of TMS320LF240xDSP,
Beijing University of Aeronautics Press, 2002, pp. 1-22.
[9] X. Yan and J. Ma, Study of Data Share in Multiprocessor System Based
on DPRAM-IDT7133, Journal of Electron Devices, vol. 28, no. 4, pp.
863-866, December, 2005.
[10] H.-B. Kazemian, Developments of Fuzzy PID Controllers, Expert
Systems, vol. 22, no. 5, pp. 254-264, November 2005.
[11] S. Tungpataratanawong, K. Ohishi and T. Miyazaki, High Performance
Robust Motion Control of Industrial Robot Using Parameter Identification
Based on Resonant Frequency, IECON 2004 - 30th Annual Conference
of IEEE Industrial Electronics Society, vol. 1, pp. 111-116, 2004.
[12] A. Castillo-Tapia, V. Parra-Vega, M.-A. Arteaga-Perez, and J.J. Gudio-
Lau, Tracking of Industrial Robot Manipulators with PID-like Control -
Theory and Experiments, International Conference on Mechatronics,
ICOM 2003, pp. 491-496, 2003.
1590