Professional Documents
Culture Documents
Abstract
Five-axis machining is commonly used for complicated features due to its advantage of rotary movement. However, the
rotary movement introduces nonlinear terms in the kinematic transform. The nonlinear terms are related to the dis-
tance between the cutter location (CL) data and the intersection of the two rotary axes. This research studied the possi-
ble setup positions after the toolpaths have been generated, and the objective was to determine the optimal setup
position of a workpiece with minimal axial movements to reduce the machining time. We derived the kinematic trans-
form for each type of five-axis machines, and then, defined an optimization problem that described the relationship
between the workpiece setup position and the pseudo-distance of the axial movements. Eventually, an optimization algo-
rithm was proposed to search for the optimal workpiece setup position within the machinable domain, which is already
concerned with over-traveling and machine interference problems. In the end, we verified the optimal results with a case
study with a channel feature, which was real cutting on a table-table type five-axis machine. The results show that we
can save the axial movements up to 16.76% and the machining time up to 10.70% by setting up the part at the optimal
position.
Keywords
Five-axis machining, optimization, workpiece setup position, minimal axial movement, machining time reduction
Creative Commons CC BY: This article is distributed under the terms of the Creative Commons Attribution 4.0 License
(https://creativecommons.org/licenses/by/4.0/) which permits any use, reproduction and distribution of the work
without further permission provided the original work is attributed as specified on the SAGE and Open Access pages
(https://us.sagepub.com/en-us/nam/open-access-at-sage).
2 Advances in Mechanical Engineering
the MCS is necessary. During the process, the tool tra- the effects of the orientation of a workpiece on planning
jectory is complex due to the motion caused by the two the toolpath. Lee et al.8 determined the optimal work-
rotary movements. Moreover, due to the varying dis- piece orientation by the minimum rotary movement.
tance between the tooltip position and the rotary center, Hu et al.9 determined the optimal setup by the largest
different setup positions can cause different tool trajec- intersection of the visibility maps. Some researchers
tories in MCS. In other words, machining efficiency studied the position of the workpiece after the toolpath
can be improved by optimizing the setup position of a had been defined. Anotaipaiboon et al.10 studied the
workpiece. Until now, the decision for a setup position optimization problem of the workpiece position to
still depends on the operator’s experience. The experi- minimize the kinematic errors caused by nonlinear tool
ence cannot guarantee that the two major issues will trajectory. Tutunea-Fatan and Bhuiya11 proposed a
not occur: one is the collision between the tool assembly method to determine the nonlinear errors of the head-
and the machine components, and the other is over- head type five-axis machine. Then, they compared the
traveling occurring on the linear axes. Additionally, lit- efficiency between the structures with different combi-
tle research on the relationship between the setup posi- nations of rotary axes, and found that the combination
tion and the machining efficiency has been made. with vertical rotational axis tends to move more than
with only horizontal rotational axes. Lin et al.12 focused
on the movement errors on a TATC type machine.
Literature review Then, the optimal workpiece position was found by
In general, cutter location (CL) data is used to describe using particle swarm optimization in the machinable
the toolpaths. The CL data have to be transformed to domain to minimize the nonlinear error caused by the
the NC code, which is based on the MCS, so that the rotary movement. The machinable domain was con-
machine can move accordingly. Thus, the kinematic structed as a cuboid field according to the travel of
transforms for five-axis machine structures are needed. three linear axes of machine. Xu and Tang13 considered
Five-axis machine are commonly categorized into three energy efficiency on the movement of each axis. Then,
types: head-head, head-table, and table-table, based on they proposed an algorithm to find the optimal work-
the location of the two rotary axes. Many researchers piece setup with minimum energy cost. Shaw and Ou14
have studied kinematics of the machines using the derived a transformation matrix on a TATC type
homogeneous coordinate transformation matrices in machine to find the minimum movement on the X, Y,
Denavit-Hartenberg notation.1 Lee and She2 derived and Z axes. Then, he used a generic algorithm to search
kinematics for a head-head type, a head-table type, and for the best position for the workpiece in a cuboid
a table-table type. Jung et al.3 developed a postproces- domain that formed with a limit of three linear axes.
sor for a table-table five-axis machine tool with A and Pessoles et al.15 defined the pseudo-distance as a sum of
C axes (TATC), and then proposed an algorithm to the maximum movement for the three linear axes along
prevent interference in certain situations. She and Lee4 the toolpaths. He discretized the possible domain of a
and She and Chang5 designed a generalized kinematic workpiece setup position, and then he computed the
model, which combines the primary and the secondary pseudo-distances for all the setup positions. Eventually,
rotary axes on both the spindle side and the table side. the optimal workpiece setup position was determined
The generalized kinematic model can be applied to all by finding the minimum pseudo-distance.
types of five-axis machine tools. Sørby6 derived forward
and inverse kinematics for five-axis machine tools with
non-orthogonal rotary axes B and C on the worktable. Objective
Yang and Altintas7 used the screw theory to develop a The research above studied about the machining dis-
generalized forward and inverse kinematic transform tance of table-table type machines with AC type and
method, which models each kinematic element as a BC type configurations. Nevertheless, the relationship
revolute joint or prismatic joint. The screw theory between the workpiece position and the machining time
method can easily calculate the inverse kinematics with is still unknown for different types of five-axis
only the point and vector of each joint. Many research- machines. The machining time is a complicated issue
ers developed kinematic models containing nonlinear affected by system performance, including toolpath tra-
terms due to the involvement of two rotary axes. The jectory complexity, acceleration planning, and motor
nonlinear terms result in variations of distance equation response. To simplify the problem, we considered the
within five-axis machining trajectories. The result of axial movement distance as a measure of the machining
distance equation could be altered in two aspects, as time and ignored all the other factors that may affect
discussed in the following. One is the orientation of the the machining time. In addition, over-traveling and
workpiece; the other is the position of the workpiece. interference problems between the tool assembly and
However, the two factors are too complicated to be the machine components have not been considered yet.
considered at the same time. Some researchers studied In other words, the workpiece may not be completed
Wei and Lee 3
Figur 4. Calculating from a five-axis toolpath in OWXYZ (solid line) to a true trajectory in OMXYZ (dotted line): (a) Original
workpiece setup position with five-axis toolpath, (b) tool started position in the true trajectory, (c) tool ended position in the true
trajectory, (d) new workpiece setup position OW1XYZ with offset dw , (e) new workpiece setup position with five-axis toolpath and
(f) tool position in the true trajectory with new workpiece setup position.
To find the pseudo-distance, first, we derived the 4 We can define an offset vector (p, q, r) as the move-
4 homogeneous transformation matrix Ti and Si with ment from the original setup position. As shown in
different kinematics of machine with the rotary angles equation (11), the position of the start position of seg-
A and C according to the steps in section 2.1. The gen- ment i can be transformed into the machine position
eral form of the transformation matrices can be repre- with the offset of the setup position. Since the addi-
sented as equations (8) and (9). We defined 3 3 tional offset vector (p, q, r) is a 3 1 vector, we need to
matrices, RTi and RSi , as the rotary matrices, and 3 1 add an element 0 to make it a homogeneous
matrices, LTi and LSi , as the translation matrices in Ti coordinate.
and Si , respectively. Then, the CL data in OWXYZ can 00 1
0 11 0 1
be transformed into the tool position in OMXYZ with xi p 0
equation (10), defined as pi . (xi , yi , zi ) and (Xi , Yi , Zi ) BB y C B q CC B0C
BB i C B CC B C
represent the coordinates in OWXYZ and OMXYZ, ðpi Þoffset = Ti BB C + B CC Si B C
@ @ zi A @ r A A @0A
respectively, in the toolpath segment i.
1 0 1
0 1 ð11Þ
RTi 3 3 3 LTi 3 3 1 p
Ti = ð8Þ B C
01 3 3 1 RT i 3 3 3 LTi 3 3 1 BqC
= pi + B C
01 3 3 1 @rA
RSi 3 3 3 LSi 3 3 1
Si = ð9Þ 0
01 3 3 1
0 1 0 1 0 1 Because the fourth element of homogeneous coordinate
Xi xi 0
B Yi C B yi C B0C is used for homogeneous transformation only, we can
pi = B C B C B C
@ Z i A = T i @ zi A S i @ 0 A ð10Þ reduce the vector ðpi Þoffset from 4 1 to 3 1, as shown in
equation (12). Then the start and end positions of seg-
1 1 1
ment i can be transformed to the machine positions
6 Advances in Mechanical Engineering
with the consideration of the offset of the setup posi- The vector Li can be represented as equation (20) from
tion, as shown in equations (12) and (13). equation (14) with an affine mapping,
10 0 1 0 1 0 1
Xi p DXi p
ðpi Þoffset = @ Yi A = pi + RTi @ q A ð12Þ B C B C
Li = @ DYi A = (RTi RTi1 ) @ q A
Zi offset r ð20Þ
DZi r
0 1 0 1
Xi1 p + (pi pi1 ) = M dw + N
ðpi1 Þoffset = @ Yi1 A = pi1 + RTi1 @ q A ð13Þ
Zi1 offset r where RTi1 and RTi are the rotary matrices in the trans-
formation relative to the start position pi1 and the end
Here we defined DXi , DYi , and DZi as the following position pi , respectively. M is the matrix obtained by
equation by subtracting equation (13) from equation subtracting RTi1 from RTi , which is a linear transfor-
(12), mation in the machinable domain G. The vector dw is
0 1 0 1 0 1 the offset vector (p, q, r) in G. N is a vector in the
DXi Xi Xi1 domain F.
B C B C B C The distance function now is f :R3 ! R, M 2 R3 3 3 ,
@ DYi A = @ Yi A @ Yi1 A
DZi offset Zi offset Zi1 offset and N 2 R3 , then we can define the function g:R3 ! R
0 1 ð14Þ by
p
B C
= (pi pi1 ) + (RTi RTi1 ) @ q A g(dw ) = f (M dw + N) = f (Li ) ð21Þ
r
which maps the distance function f from the domain F
In addition, we defined DAi and DCi as the movements to the domain G. We can define u, v 2 R3 in the domain
of two rotary axes in segment i, as shown in equations of the function g. Then 8l 2 ½0, 1,
(15) and (16). Thus, the pseudo-distance of segment i, li,
can be calculated by using equation (17), with the con- g(lu + (1 l)v) = f (M(lu + (1 l)v) + N)
sideration of the offset of the setup position. = f (l(Mu + N) + (1 l)(Mv + N))
ł f (l(Mu + N)) + f ((1 l)(Mv + N))
DAi = Ai Ai1 ð15Þ
= lf (Mu + N) + (1 l)f (Mv + N)
DCi = Ci Ci1 ð16Þ = lg(u) + (1 l)g(v)
qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
ð22Þ
li = DXi 2 + DYi 2 + DZi 2 + DAi 2 + DCi 2 ð17Þ
The equation shows that the function g is a convex
As shown in equation (17), it is well-known that the function as well. Then, the objective function, which is
Euclidean distance is a convex function.18 In other the total distance l , can be represented as
words, the equation is a typical convex function, we
called the distance function f . However, the domain of X
n X
n
the distance function f , F, is different from the machin- l = li = g(dw ) ð23Þ
able domain which exists the offset vector (p, q, r), i=1 i=1
Figure 5. Represent domain with discretized dexels. Each dexel has one local minimum (blue layer), then compare and select the
minimal value as a global minimum in the domain (red layer).
Figure 6. (a) Quaser UX300 five-axis machine with a Heidenhain controller. (b) Measuring the machine kinematics by a Heidenhain
probe TS740 and a calibration sphere KKH100.
Table 1. Quaser UX300 axis limits. Table 2. Offset data measured from the machine.
Machine travel Negative limit Positive limit Coordinate system Offset data (mm)
Then we can extract the first segment of the cutting + 1:0061 3 109 r2
path by using ript , the ratio of the interpolation distance 3:9892 3 1014 pq + 2:5153 3 109 pr
dipt and the length of the cutting toolpath dcut . In this ð37Þ
+ 4:9864 3 1014 qr
example,
7:2111 3 108 p + 1:2246 3 107 q
ript = dipt =dcut = 0:0017=37:4166 = 4:5434 3 105 : ð32Þ 1
5:7689 3 108 r + 1:1353 3 105 ) =2
With the interpolation ratio ript , the interpolated Then we can derive the gradient of the distance func-
lengths or angles can be calculated as tion of segment one as the partial derivative of the dis-
(0:4543, 0:9087, 1:3630, 1:81748, 2:27178) 3 103 tance function with respect to r, which is the offset of
between the start position and the end position along the workpiece setup position along the Z-axis, as shown
the five axes of the machine tool. in equation (38). After adding all of the gradients, we
can obtain the total gradient as equation (39).
Figure 7. (a) Workpiece machinable domain results of the linear toolpath in the example. (b) Machining distance value versus Z
offset value at position X = 0 and Y = 0. (c) Contour plots of axial movements on the XY plane at Z = 4. ‘‘x’’ shows the optimal setup
offset.
Figure 8. (a) Channel from 30 mm to 28 mm in diameter along a spline curve. (b) Initial workpiece setup on machine.
is altered from 30 mm to 28 mm in diameter along a surface, which is coincided with the center of the work-
spline curve. It can be machined from both sides at table, as shown in Figure 8(b). The toolpath was
one-time setup on a five-axis machine tool. The origin planned to finish the channel from both sides with a
of the workpiece was at the center of the bottom 80 mm long, 10 mm in diameter ball-milling tool. The
Wei and Lee 11
Figure 10. Contour plot of axial movements results on the section (a) YZ plane at X0, and (b) XY plane at Z65. The boundaries of
the cross section of the machinable domain are the black lines. The black ‘‘o’’ refers to the origin setup position, the blue ‘‘o’’ refers
to the modified setup position and the orange ‘‘o’’ refers to the optimal setup position.
Workpiece setup position Distance Reduced distance Machining time Reduced time Machinable
total length of the tool assembly is 230 mm, as shown the distance. The global minimum of optimal setup
in Figure 9. position at (0, 90, 65) gives the shortest distance of
According to the workpiece’s machinable domain, it 53,816 units.
was found that the workpiece must be raised 123 mm Three parts with three different setup positions listed
along the Z-axis from the orginial workpiece setup posi- in Table 3 were machined, as illustrated in Figure 11.
tion, so that the workpiece is machinable. Figure 10 Because the part put at (0, 0, 0) is not machinable, we
shows a contour plot of the total axial movements dis- move the part to the modified setup position (0, 0, 123)
tance. The figure shows that the original setup position, to make it machinable, and the total axial movements
the black ‘‘o’’ at (0, 0, 0), is not machinable. Within the was calculated as 64,653 units as listed in Table 3. The
constraint of the machinable domain, the modified real machining time was 561 s. Then we set the part at
setup position, the blue ‘‘o’’ at (0, 0, 123), gives the dis- the optimal setup position, and the total axial move-
tance of 64653 units. However, we can find an optimal ments was calculated as 53,816 units, which was
setup position, the orange ‘‘o’’ at (0, 90, 65), to reduce 16.76% less than the those for the part put at the
12 Advances in Mechanical Engineering
ORCID iDs
Ching-chih Wei https://orcid.org/0000-0002-7433-6645
Wei-chen Lee https://orcid.org/0000-0002-0672-0426
References
1. Denavit J. A kinematic notation for lower-pair mechan-
isms based on matrices. Trans ASME J Appl Mech 1955;
22: 215–221.
2. Lee RS and She CH. Developing a postprocessor for
three types of five-axis machine tools. Int J Adv Manuf
Technol 1997; 13: 658-665.
Figure 11. (a) The real cutting process and (b) the section 3. Jung YH, Lee DW, Kim JS, et al. NC post-processor for
view of the channel. 5-axis milling machine of table-rotating/tilting type. J
Mater Process Technol 2002; 130–131: 641–646.
4. She C-H and Lee R-S. A postprocessor based on the
modified setup position. The machining time was 501 s, kinematics model for general five-axis machine tools. J
which was 10.70% less than that for the part put at the Manuf Process 2000; 2: 131–141.
modified setup position. Because the total axial move- 5. She CH and Chang CC. Design of a generic five-axis
ments were very complicated, the reduction in distance postprocessor based on generalized kinematics model of
was not very consistent with that in machining time. machine tool. Int J Mach Tools Manuf 2007; 47:
Based on the results, it is demonstrated that the algo- 537–545.
rithm proposed can find the optimum setup position to 6. Sørby K. Inverse kinematics of five-axis machines near
singular configurations. Int J Mach Tools Manuf 2007;
reduce the machining time effectively.
47: 299–306.
7. Yang J and Altintas Y. Generalized kinematics of five-
Conclusion axis serial machines with non-singular tool path genera-
tion. Int J Mach Tools Manuf 2013; 75: 119–132.
In this paper, we derived the kinematics for each type 8. Lee R-S, Lin Y-H, Tseng M-Y, et al. Evaluation of
of five-axis machine tools. Then, we used the general workpiece orientation and configuration of multi-axis
transformation matrix to derive the optimization machine tool using visibility cone analysis. Int J Comput
equation and the gradient descent method to find the Integr Manuf 2010; 23: 630–639.
global minimum. A case is presented to verify the 9. Hu P, Tang K and Lee C-H. Global obstacle avoidance
and minimum workpiece setups in five-axis machining.
proposed method and the total axial movements were
Comput Aided Des 2013; 45: 1222–1237.
reduced by 16.76%, and the machining time was 10. Anotaipaiboon W, Makhanov SS and Bohez ELJ. Opti-
reduced by 10.70% if we set up the workpiece at the mal setup for five-axis machining. Int J Mach Tools
optimal position. The proposed method can substan- Manuf 2006; 46: 964–977.
tially reduce the machining time for the five-axis 11. Tutunea-Fatan OR and Bhuiya MSH. Comparing the
machining, which is practically important to the kinematic efficiency of five-axis machine tool configura-
machining industry. tions through nonlinearity errors. Comput-Aided Des
2011; 43: 1163–1172.
12. Lin Z, Fu J, Shen H, et al. On the workpiece setup opti-
Acknowledgement mization for five-axis machining with RTCP function. Int
The authors wish to thank the Ministry of Science and J Adv Manuf Technol 2014; 74: 187–197.
Technology, Republic of China, for financial support of this 13. Xu K and Tang K. Optimal workpiece setup for time-
research. efficient and energy-saving five-axis machining of free-
form surfaces. J Manuf Sci Eng 2016; 139: 051003.
14. Shaw D and Ou G-Y. Reducing and axes movement of a
Declaration of conflicting interests
5-axis AC type milling machine by changing the location
The author(s) declared no potential conflicts of interest with of the work-piece. Comput-Aided Des 2008; 40:
respect to the research, authorship, and/or publication of this 1033–1039.
article. 15. Pessoles X, Landon Y, Segonds S, et al. Optimisation of
workpiece setup for continuous five-axis milling: applica-
Funding tion to a five-axis BC type machining centre. Int J Adv
The author(s) disclosed receipt of the following financial sup- Manuf Technol 2012; 65: 67–79.
port for the research, authorship, and/or publication of this 16. Xu H-Y, Hu La, Hon-yuen T, et al. A novel kinematic
article: Ministry of Science and Technology, Republic of model for five-axis machine tools and its CNC applica-
China, under Grant MOST 105-2221-E-011-055. tions. Int J Adv Manuf Technol 2013; 67: 1297–1307.
Wei and Lee 13
17. Tulsyan S. Prediction and reduction of cycle time for five- Des Syst Manuf 2019; 13: JAMDSM0042-
axis CNC machine tools. Master Thesis, University of JAMDSM0042.
British Columbia, Canada, 2014. 20. Ravindran A, Ragsdell KM and Reklaitis GV. Engineer-
18. Boyd S and Vandenberghe L. Convex optimization. Cam- ing optimization: methods and applications. 2nd ed. Berlin:
bridge: Cambridge University Press, 2004. Springer, 2007, pp.1–667.
19. Lee W-C and Wei C-C. Visualization of the setup loca-
tion of a workpiece for five-axis machining. J Adv Mech
Appendix
Notation
Variable Description
Xi, Yi, Zi, The machine coordinates of X, Y, Z, A, and C axis in segment i of the toolpath.
Ai, Ci
DXi , DYi , DZi , The differences of machine coordinates X, Y, Z, A, and C axis between segment i and segment i-1 of the toolpath
DAi , DCi
xi, yi, zi The workpiece coordinates of X, Y, and Z axis in segment i of toolpath.
p, q, r The three elements of the offset vector dw along the X, Y, and Z directions.
li, l The pseudo-distance of segment i of the toolpath and the total pseudo-distance.
dorg , torg The toolpath distance and machining time in the original setup position.
dopt , topt The toolpath distance and machining time in the optimal setup position.
dR , tR The reduction of toolpath distance and machining time.
Vector Description
Matrix Description