Professional Documents
Culture Documents
2, February 2020
Erik LJ Bohez
Industrial Systems Engineering Program, Asian Institute of Technology, Bangkok, Thailand
Email: bohez@ait.ac.th
Abstract— Transformation of a tool path data computed by (so-called 5-axis milling Robot [1]) has been known as
a commercial Computer -Aided Manufacturing system the most modern and efficient machine tool that can be
(CAM) to create a NC program for a 5-axis CNC machine
used for fabricating complex products with complex
plays an important role in CAM/CNC integration in the
mechanical manufacturing industry. This paper presents a geometry. The products machined by 5-axis CNC
kinematic modelling and an inverse kinematic analysis for a machines have been widely used in several industries
5-axis CNC machine Spinner U5-620. Since the 5-axis such as the mold and die making industry, the aerospace
machine is comprised of two kinematic chains, which is industry, the automotive industry, the shipbuilding
similar to two cooperative robots, one robot caries the tool
industry, etc. Using 5-axis CNC machines integrated with
and one robot caries the workpiece, the kinematics model of
the machine is formulated by unifying the two separate commercial CAM (Computer – Aided Manufacturing)
kinematics sub-models of the two kinematic chains. It has systems, end to-end component design and manufacturing
shown that the closed form inverse kinematic equation is highly automated.
yielded in this study is useful for developing a postprocessor To create programs for 5-axis CNC machines
to produce NC programs for the 5-axis CNC machine. By automatically, commercial CAMs are usually used as an
using the developed postprocessor, complex parts composed
of sculptured surfaces can be machined effectively with the efficient tool, in recent years. However, for 5-axis
machine. The real cut part experiments implemented on the machining of complex surfaces, CAMs do not give
machine Spinner U5-620 show the effectiveness of the directly the final G-codes files (NC programs). The main
proposed method. function of any commercial CAM systems is to generate
the cutter trajectory (tool path), basing the input on the
Index Terms—CAD/CAM, CAM/CAM – CNC integration,
part surface modeling, the surface quality requirement
Five-axis CNC, Inverse Kinematics, Postprocessor
(surface error), the cutter definition, the tool path pattern,
etc [2]. This main output of CAMs is the so-call CL data
I. INTRODUCTION set xi , yi , zi , ii , ji , ki where xi , yi , zi are the
Nowadays, there have been several types of CNC coordinates of the tool tip, and
ii , ji , ki the
(Computer Numerical Control) machines available in directional cosines of the tool axis orientation
industries: 3-axis CNC machines, 4-axis CNC machines, correspondingly. According to a specific CNC controller,
5-axis machines, etc. The number of the axes of a CNC a specific CL data computed by CAMs must be post-
machine implies the number of DoFs of the machine’s processed to compile a NC program for controlling the
mechanism. It is also the number of the axes which can CNC machine. Notice that although the advanced
be simultaneously controlled by the controller of the controllers can accept the CL data to machine the
machine. If the number of the axes of a CNC machine workpiece in real time without the need of postprocessor
increases, the machining capability, the machining [3], they are relatively expensive and not commonly used
efficiency and the machining effectiveness will increase; in most industries. Therefore, for any specific 5-axis
however, it requires more complex techniques in CNC machine, a corresponding post-processor is usually
programming process. Five-axis milling CNC machine needed to process CL data computed by CAMs for off-
line NC program generation. In traditional CNC
Manuscript received July 4, 2018; revised September 1, 2019.
machining techniques (2-axis, 3-axis), the orientation of
x0 y0 z0 is the base coordinate system, located in the Note that x0 y0 z0 is the reference frame located in the
center of the table surface when B C 0 . 0 workspace of the machine, and it does not depend on the
x1 y1 z1 is a translation of x0 y0 z0 at a distance d along motion of the machine axes. x3 y3 z3 is the frame fixed the
body connecting with the machine frame by the
z0 .
revolution joint B.
1 0 0 0 xt yt zt is a frame fixed to the milling tool with the
0 1 0 0
T01 origin at the tool tip.
0 0 1 d (1)
1 0 0 X
0 0 0 1 0 1 0 Y
T0t (7)
0 0 1 Z
x2 y2 z2 is a rotation of x1 y1 z1 at an angle 2
0 0 0 1
around x1 .
Frame x0 y0 z0 , frame x1 y1 z1 and frame x2 y2 z2 are The tool position and orientation represented in the
workpiece coordinate system xw yw zw can be obtained as
fixed; they do not move with the machine axes.
z2 .
The matrix Twt is yielded as
cos B sin B 0 0
sin B cos B 0 0 cos B cos C sin C sin B cos C X cos B cos C Y sin C Z sin B cos C d sin B cos C
T23 cos B sin C cos C sin B sin C
Twt
X cos B sin C Y cos C Z sin B cos C d sin B sin C
0 0 1 0 (3) sin B 0 cos B X sin B Z cos B d cos B d
0 0 0 1
0 0 0 1
The matrix Twt describes the tool axis orientation and
x4 y4 z4 is a rotation of x3 y3 z3 at an angle 2
the tool tip position of the tool in the workpiece
around x3 . coordinate system xw yw zw . Notice that the three entries
1 00 0 of the third column of the matrix Twt are the three cosines
0 01 0
T34 of the tool vector as
0 1 0 0 (4) i sin B cos C (10)
0 0 0 1 j sin B sin C (11)
k cos B (12)
x5 y5 z5 is a translation of x4 y4 z4 at a distance d The three entries of the last column represent the tool
along z4 . The frame x5 y5 z5 is always located at the tip position as
center of the machine table, also after the B axis has been x X cos B cos C Y sin C Z sin B cos C d sin B cos C (13)
rotated. y X cos B sin C Y cos C Z sin B cos C d sin B sin C (14)
1 0 0 0 z X sin B Z cos B d cos B d (15)
0 1 0 0 The equations (10-15) are the forward kinematic
T45 equations of the machine.
0 0 1 d (5)
The inverse kinematic equations can be obtained by
0 0 0 1 using the following expression.
Z x sin B cos C y sin B sin C z cos B d cos B d (20) III. POSTPROCESSOR IMPLEMENTATION AND
EXPERIMENTS
B arccos k (21)
The main algorithm of the postprocessor program can
j i
C arctan 2 , (22) be described as follow.
sin B sin B Loop the following steps for all the CL points in a CL
data computed by CAMs.