You are on page 1of 6

Int J Adv Manuf Technol (2006) 28:930-935

DOI 10.1007/s00170-004-1884-2

Jun Hu 9 Lingjian Xiao 9 Yuhan Wang 9 Zuyu Wu

An optimal feedrate model and solution algorithm for a high-speed machine of


small line blocks with look-ahead

Received: 19 June 2003 / Accepted: 22 July 2003 / Published online: 8 March 2006
9 Springer-Verlag London Limited 2006

A b s t r a c t In complex high-speed machining of consecutive small maximum safe fixed feedrate due to fixed upper bounds of mo-
line blocks, the tool path segments can be so short that a machin- tor torque and power available to each axis. But in fact there
ing center moving at a high feedrate cannot accelerate or deceler- are many other physical factors such as tool chatter, flexure, heat
ate fast enough to make direction changes accurately. Aiming at generation, tool wear, machined finish surface and so on that in-
adjusting the feedrate automatically to achieve maximum produc- fluence the selection of feedrates.
tivity, this paper present a novel mathematical model considering Cao et al. [2] proposed a method in an effort to get a large
the key and representative factors, and then based on it, propose feedrate by eliminating the redundant data while they are in
an algorithm to seek the approximate optimal feedrate by evalu- a straight line. Such a method, however, is applicable only in spe-
ating the toolpath ahead. Simulation results demonstrate the ma- cial circumstances when the angle between two consecutive line
chine using the proposed model and algorithm can go fast where blocks equals zero degrees. In fact the angle can vary from 0 to
possible and to slow down just enough where needed and the pro- 180 degrees, so this way is not universal and can't improve the
ductivity can be improved dramatically. feed rate greatly.
In order to find the optimal feedrate, many factors should be
Keywords Acceleration and deceleration 9 Feedrate 9 taken into account. Most researchers put emphasis on only one or
Look-ahead 9 High-speed machine 9 Small line blocks two influences on feedrates, so it is impossible for them to get the
optimal feedrate. Considering all factors is a huge work load and
often results in something too complicated to use. So in this pa-
per, we are going to take only the key and representative factors
1 Introduction
into account.
The 1980s and especially the 1990s have brought about a prolif- In part 2, we explain the kinematic model with specified
eration of very good CAD/CAM techniques, with the ability to starting point speed and end point speed on the base of linear
easily produce 3D contours of all sorts. Generally the machining acceleration and deceleration and then analyze the key and repre-
program generated by the CAD/CAM system composes a large sentative constrains on the feedrate. At last a recursive inequality
number of small line blocks, which creates new problems for the model for feedrates is deduced. In part 3, aiming at seeking the
CNC control. When used in the conventional way, the CNC has optimal feedrate, an algorithm is proposed by adding a buffer to
to stop at the end of one move before continuing on to the next look a preset-number of line blocks ahead. In part 4, a simulation
to meet the accuracy requirement. Otherwise, comers may be is presented.
rounded off and the workpiece surface may be gouged. Usually
each line block is too small for the CNC to accelerate to a high
enough speed, so feedrate is heavily compromised. 2 Model formulation
In recent years a few researchers have been addressing this
For the easier illustration, we carry out our research on the base
problem. Farouki et al. [1] developed a method to determine the
of linear acceleration and deceleration.

J. Hu(~) . L. Xiao 9 Y. Wang 9 Z. Wu 2.1 Kinematic model with specified starting point speed and end
School of Mechanical Engineering,
Shanghai Jiao Tong University, point speed
Shanghai 200030, ER. China Suppose Li+I is the (i + 1)th line block's distance, V/, V/+I are
E-mail: hujun@sjtu.edu.cn
Tel.: +86-21-62937610 the starting point speed and end point speed, $1, $2, $3 are dis-
Fax: +86-21-62932610 tances in the speed acceleration phase, constant speed phase and
931

speed deceleration phase, respectively, ta, tl, td are the time for From Eq. 1, we know that the velocity profile can be determined
each corresponding phase, Vmax is the maximum speed and Vm by specifying the starting point speed and the end point speed
is the practical maximum speed, is the programmed acceleration, for any given line block. So if we can find the speed at each
as shown in Fig. 1. turning point on the toolpath, the whole velocity profile is deter-
First let us find the practical speed Vm. mined so that the interpolation can be executed and the machine
In the case of Fig. la, in which the distance is long enough can be controlled. The conventional way is to force the speed at
for the CNC to accelerate to the maximum speed, we get each turning point to be zero and then interpolate. Of course such
a way is conservative enough to be accurate, but the productivity
vm = Vm~x is too low especially in the case of machining small line blocks.
In the case of Fig. lb, in which the distance is too short for the The speed at the turning point is subjected to some con-
CNC to accelerate to the maximum speed, we get straints, but it is not necessary to be zero. In order to achieve
maximum feedrate, we should find the maximum speed, namely
2
V m -- Vi2 = 2 a m S 1 , the optimal feedrate, at each point of the toolpath. It is imprac-
Vm2 - Vff+ 1 = 2am $ 3 , tical and unnecessary, however, to consider all of the constraints
on feedrates. In this paper, we are going to simplify and general-
S1 dr $3 = L i + l .
ize the constraints and only consider the key and representative
So, ones.
v~- V iz+ V~z- Vi2+l = 2amLi+l 9
2.2 Constrains on feedrates
Simplifying it we get,
First we assume the starting point speed of the ith line block is as
/V7 4- VT+1 dr Z a m L i + l large as the end point speed of the i + lth line block, but varies
Vm
V 2 in direction. Suppose V i - l , Vi, L i are the starting point speed,
the end point speed and the distance of the ith line block, respec-
Considering the two cases, we have
tively, as shown in Fig. 2.
1. In case of acceleration from V i M to Vi to cover distance L i ,
2 ' "
Vi2 <_~ Vi2_l dr 2am L i . (2)
If Vm is determined, the other parameters can be easily specified
2. In case of deceleration from Vi to V/+l to cover distance
as
Li+l,
V m = min 2 ,
Vi2 ~ V/2+l dr 2 a m L i + l 9 (3)
Vm--V?
SI = 2am 3. Constraints from the angle between two consecutive line
V 2 V2 blocks. In the simplest case, if the next point simply extends
m-- i+l
$3 = 2am (1)
$2 = L i + l - SI - $3
ta = ( Vm-- Vi)
am
ta = (Vm--Vi+l)
am
4-
Vi+l

V /
vt q+l +2
max

X
y

v, sl I (X~.l i ~
t~ I
Q- -I 9
(a) t (b) t

Fig. 1. Velocity profile with linear acceleration/deceleration Fig. 2. Toolpath of small line blocks
932

the current path further along a line and there is no devia- In order to gain maximum productivity, the optimal feedrate is
tion, no deceleration is required. Likewise, if the next point the maximum V/ of the inequality Eq. 5. From the inequality
is at a 180-degree deviation from the current path, the ma- Eq. 5 we can see Vi is limited not only by Vi-l and Li, but also
chine must be stopped completely. So there must be certain by V,-+l and Li+l. So seeking the optimal feedrate would be a re-
constraints due to the angle. Suppose ot denotes the angle, as cursive calculation. For a toolpath having N line blocks, it would
shown in Fig. 2, and we get need calculation for at most N - i times in theory to find the op-
9 O/i
timal Vi, which would be impractical in terms of time expense or
2Vi sin -~- < amaxT 9 memory expense for the CNC in case of a very large N. Aiming
at finding the optimal feedrate with a low and practical cost, we
So,
propose the following algorithm.
Tamax
V~ < - - (4)
2 sin T
where amax is the maximum allowed acceleration and T is the 3 Algorithm to find the approximate optimal feedrate
interpolation time.
From inequality Eq. 4, we can see when oti = 0, we get Our algorithm assumes that the maximum number of look-ahead
Vi <_ + ~ , which means no constraint is needed when the blocks is preset, which can be adjusted according to your require-
next point is in the extension of the current line block. When ment and the capability of the CNC, so the maximum times of
oti ~--- 180, we get Vi < - ~ - (usually a very small number), the recursive calculation would not exceed it. Of course, such
which means the feedrate should be lowered to almost zero a solution will not always be an exact optimal answer, but it is
when the next point is at a 180-degree deviation from the cur- large enough for productivity and practical for the CNC.
rent line blocks. So inequality Eq. 4 can exactly explain the First, as we can see in inequality Eq. 5, there are many
constraints due to deviation of consecutive line blocks. square calculations and trigonometric calculations that would
4. Physical limits on the maximum velocity. Of course, the feed take a large amount of time for the CNC. So we should simplify
rate is subject to many physical factors, such as torque/power inequality Eq. 5.
of motors, tool chatter, flexure, breakage, heat generation, Let
tool wear and so on [3]. Usually it would be too complicated ai = Vi2
or make the model too complex to study their effects on fee- bi = 2amLi
drate in detail. In most cases, however, they only influence
the choosing of maximum speed. So we define a safe max-
imum feedrate Vrnaxthat the machine cannot exceed allowing
ei = (~) 2 (Tamox) 2
= 2('l-cosa'i) (6)

for all of the physical factors. So we get d = Vm2ax


ci = min{bi, d}
Vi <_ V m a x .
For in the sub-item ei of Eq. 6 includes time-consuming trigono-
5. Vi is a scalar quantity and is always greater than zero, so metric calculations, we are going to rewrite it. As shown in
Fig. 2, the angle can be evaluated by
Vi >_O.
('Xi+ 1 -- Xi) (Xi -- Xi-- 1) -I- (Yi+ 1 -- Yi ) (Yi -- Yi-- 1)
6. For a toolpath having totally N line blocks, it is obvious that COS O'
the start point speed of the first line block is zero, and the end LiLi+l
point speed of the last line block is also zero. So, ( Z i + l - - Zi)(Zi - Z i - 1 )
+
LiLi+l
Vo=0; vN=0.
So
For a toolPath having N number of line blocks, it is obvious
(Tamax) 2
that VN+I = 0 and LN+I = O. Substituting them to inequality ei
Eq. 3, we get 2(1--cosai)
(Tamax) 2
V N ~ VN+I + 2 a m L N + l =0.
2( 1- ( x i + l - x i ) ( x i - x i - I ) + ( y i + l - y LiLi+i
i)(yi-yi-D+(zi+l-zi)(zi-zi 1)) "
So VN = 0 is a redundant condition. In summary, the con-
straints on the feedrate can be formulated as Substituting Eq. 6 into inequality Eq. 5 yields
V ? < Vi21 + 2amti
Vi2 < Vi2+, + 2amLi+l l ai < ai- I + bi (a)
Tr J Tamax ai < ai+l +bi+l (b)
vi _~ ~ (53 ai < Ci (C) (7)
v/_< Vm.x
Vi_>0 ai >_0 (d)
V0=0 a0 = 0 (e)
933

Suppose the maximum number of look-ahead blocks is Nt and no limitation on the maximum speed. The optimal feedrate
the speed at the end point of the look-ahead blocks is zero. is only subjected to inequality Eq. 7a,b. So ai is determined
We are going to discuss the solution for ai in three different by
circumstances.
1. In the case that there exists such a least number K1 6 [1, Nt], ai = min{ai_l + bi, ci} 9 (9)
satisfying ci+K~-l < bi+Kl, which means there is a small
comer in somewhere in the next Kl number of line blocks
to limit the maximum speed, combined with the assumption 3. In cases other than the above two cases, which means
that the last point's speed ai+k = 0 and inequality Eq. 7b, we the next Nt number of line blocks has no small comer
get but is not long enough, considering inequality Eq. 7b we
get
ai+K~-I <_ Ci+Kl-I
ai+K1-2 <--ai+K1-1 '}-bi+K1-1 ai+Nt - 1 <_ bi+Nt
ai+Nt-2 <_ai+Nt-1 +bi+Nt-1

ai < ai+l +bi+l


ai <_ai+l +bi+l
So,
Combined with inequalities Eqs. 7a,c ai can be determined
i+K1-1
by
ai = ~ bj --~-Ci+K ~_ 1 .
j=i+l

Considering inequality Eq. 7a,c, ai can be determined by (lO)

l i+Kl--1 }
ai=min [ =~i+lbj+Ci+K'-l'ai-l+bi'ci (8) Suppose K is the practical calculation times9 As we can see from
the above analysis, K does not necessarily equal Nt. In fact, K is
determined by
2. In cases other than the above, there exist such least num-
bers K2 6 [1, Nt], satisfying ~ j =,~2
i + l bj > ci, which means
the next Nt number of line blocks is long enough and have K-----min{Nt, K1, K2} (11)

Fig. 3. Flow chart of seeking the approximate optimal [ j=o ]


feedrate for the point
i+j I
~ - ~ V i = minl Z bt'ai-l + bi'c'l

yos I

I j=j+l
calculate bi§247 j 1,ci+j 1

yes
i+j min {,=~.~bt + c,+j_~,a~ ~+ b~,c~}

no
yes
i =-I
vlVi 4min{ai 1_ + bici}
t~i+l
934
Fig. 4. Velocity profile 1200
' ' N t = l ' '
70O
6O0
880
V~
[mmlm) 400 V~
(turn/m)
4OO

O
0 02 04 0fi 08 o, 02 t (,)o3 o, o5
t (,)

1200 1200

1000

800 i

~mVp V~
(m~rdm)
40O
"mi
2OO

0 a
0 01 0.2 0.3 04 0.5 [ o.~ 02 t ~,~ o.3 0.4 05

In summary, the optimal feedrate is formulated by in Table 1. When the maximum number of look-ahead blocks is
set to 0, 1, 2 and 4, respectively, the velocity profiles are shown

min [ j=i+l bj 4-Ci+Kl-l,ai-i -t-bi,ci } in Fig. 4. The time required corresponding to the number of look-
ahead blocks is shown in Fig. 5.
As shown in Fig. 4, at about the first one fourths and three
fourths of the toolpath, when the machine looks ahead and finds
V/= ~ = v/min{ai_l -t-bici} (12)
the next Nt number of line blocks is long enough, the feedrate is
determined by Eq. 9 just as case ii of Sect. 3. At about the two
I min (j=i+l
li~t bj'ai-l-Fbi'ci} fourths part, when the machine foresees a sharp comer some-
where in the next Nt number of line blocks, the feedrate is de-
termined by Eq. 8 just as case i. At about the four fourths part
The initialization condition is given as Eq. 7e, the optimal fee- when the machine foresees the end of the toolpath somewhere
drate given by Eq. 12 is always solvable. As we can see in Eq. 12, in the next Nt
number of line blocks, the feedrate is determined
the calculation for the optimal feedrate is at most Nt times of
addition and one square root, so it is easy for the computer to re-
alize. The flow chart of calculating the optimal feedrate at the ith I i
point can be shown in Fig. 3.

O.9t
4 Simulation
0.8
Let us consider a CNC, in which the maximum acceleration,
the programmed acceleration, the maximum velocity and the in-
terpolation time are 2 0 0 m m / s 2, 200 m m / s 2, 1 2 0 0 m m / m and 0.7
t (s)
10 ms, respectively. In order to make the simulation more repre-
sentative, the toolpath to be machined is designed to be a to-and- 13.6
fro straight line that has a total of ten small line blocks as shown

0.5

Table 1. The to-and-pro straight line to be machined (in absolute coordinate)


i
,
x(mm) 0 0.35 0.55 0.65 0.87 1 0.9 0.78 0.56 0.25 0
0'40 0.'5 1 1.5 2T J
2.5 3~ 315 4~ 4 .'5

y(mm) 0 0.7 1.1 1.3 1.74 2 1.8 1.56 1.12 0.5 0 Nt


z(mm) 0 0 0 0 0 0 0 0 0 0 0 Fig. 5. Machining time corresponding to the number of pre-read blocks
935

by Eq. 10 just as case iii. This toolpath is deliberately chosen to points along the toolpath can slow down, otherwise it wiU main-
include three cases, which can be seen especially clearly when tain a high speed. Generally the more look-ahead blocks there
Nt = 4 . are, the greater productivity is. However, when the number of
With a closer look at Fig. 4, the velocity is forced to zero look-ahead blocks is set too large, the calculation time and mem-
at every point when the number of look-ahead blocks Nt = O, ory cost is also increased. So more blocks don't necessarily mean
which is just the same as the conventional controls. Such a way better performance.
has the lowest productivity along with frequent changing mo- Although the model and algorithm are based on linear ac-
tions. As the number of look-ahead blocks increases, the motion celeration/deceleration, the method can be applied to other types
becomes more fluid and the feedrate is becoming steadier and of acceleration/deceleration. In fact some ways proposed in this
higher with a result of less machining time. This is something paper have been applied to the research of CNC Key Tech-
like a car with longer vision that can go faster when driving on nology under the grant number 2002AA424042 sponsored by
a zigzag road. It is not necessary to set a very large number of The National High Technology Research and Development Pro-
look-ahead blocks for there is no obvious effect on the produc- gram of China. As the function of look-ahead has been a critical
tivity and more calculation time and more memory are needed criterion of today's advanced CNC system especially for high-
instead as it becomes too large as shown in Fig. 5. speed machining, the idea in this paper has some significance on
manufacturing.

5 Conclusion
References
This paper successfully builds up a mathematical model for feee-
1. FaroukiRT, Tsai YF, WilsonCS (2000)Physicalconstrainson federates
drates by considering only the key and representative factors, and and feed acceleration along curved tool paths. Comput Aided Geom
then proposes a feasible way to find the approximate feedrate by Des 17:337-359
reading a preset number of line blocks ahead, Simulations show 2. Zhong Q, Li J, Huang SK (2000) Interpolationof the micro-lineat high
this algorithm provides the CNC the ability to anticipate sudden continuum speed with high accuracy in RP system. Chin J Huazhong
Univ Sci Technol 28(3):39-41
direction changes and react accordingly. If the look-ahead check 3. Schuett T (2003) A closer look at look-ahead,
reveals that there may be a problem, feedrate for intermediate http://www.mmsonline.com/articals/039603.html

You might also like