Variable-Feedrate CNC Interpolators For

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

Computer-Aided Desrgn. Vol 30, No. 8, pp.

631-640, 1998
R 1998 Elsevier Science Ltd. All rights resewed
Prlnted in Great Brlta~n
PII: SOOlO-4485(98)00020-7 ooio-4485/981$19.00+0.00

tLSEVlER

Variable-feedrate CNC
interpolators for constant
material removal rates along
Pythagorean-hodograph curves
Rida T. Faroukit*, Jairam Manjunathaiaht, David Nicholast, Guo-Feng Yuant and
Sungchul Jee$

‘open architecture’ CNC system, has recently attracted


An NC system that machines a curved shape at fixed depth of cut much attention 2.7.20.?1,23.2h.27,30 The proposed schemes,
experiences time-varying cutting forces due to the ‘curvature however, are also inherently approximate since they rely
effect’-the material removal rate is higher than nominal in on truncated Taylor series-typically, only the linear term
concave regions, and lower in convex regions. A curvature- is retained-to generate the reference points* required by
dependent feedrate function that automatically compensates for the control algorithm. Such methods are unsuited to curves
this effect is formulated, and it is shown that, for Pythagorean- with uneven parameter flow or curvature distributions, and
hodograph (PH) curves, the periodic real time computation of they cannot be readily adapted to accommodate variable-
reference points in accordance with this function can be feedrate specifications.
analytically reduced to a sequence of root-finding problems for The qvrhagorean-hod~graph (PH) CUWPS are a novel
simple monotone functions. Empirical results from an implementa- family of free-form parametric curves 15, compatible with
tion of this variable-feedrate interpolators on an open-architecture the Bkzier/B-spline representations of CAD systems,
CNC milling machine are presented and compared with results whose intrinsic algebraic structure allows the computational
from fixed-feedrate interpolators. The curvature-compensated difficulties of free-form curve interpolators to be largely
feedrate scheme has important potential applications in ensuring circumvented. In the present context, the key property dis-
part accuracy and in optimizing part programs consistent with a tinguishing PH curves from ‘ordinary’ polynomial curves is
prescribed accuracy. 0 1998 Elsevier Science Ltd. All rights the fact that their arc lengths, curvatures. and offsets depend
reserved. vationully on the curve parameter. This permits an analytic
reduction of certain integrals that express the distance tra-
Keywords: Pythagorean hodographs, CNC interpolators, feed- velled along a PH curve at constant or variable feedrate
rate, curvatures, osculating circle, offset curves, cutting force, during one sampling interval of the CNC system. Conse-
machining accuracy quently, one may formulate CNC interpolators for machin-
ing free-form curves that are extremely accurate, efficient,
robust, and flexible.
The algorithmic details of PH curve CNC interpolators
were described in Ref 16, and preliminary results from an
INTRODUCTION implementation on an open-architecture CNC machine were
reported in Ref ‘). Our emphasis here is on an interpolator
The prevailing practice in CNC machining of complex that ,yields a particular curvature-dependent feedrate,
shapes is to use G code part programs22 in lieu of the ~XUCI motivated by practical machining issues. The cutting force
tool path descriptions; this amounts to approximating the exerted between the tool and workpiece is of primary con-
tool paths by linear/circular segments that are compatible cern in ensuring the accuracy of machined profiles-it influ-
with interpolators ‘hard-wired’ in the CNC system. The ences tool deflection and wear, deformation of the
problem of driving machine tools directly from analytic workpiece, and heat generation. Limiting the cutting force
curve definitions, by means of software interpolators in an within prescribed bounds is thus a key requirement for part
accuracy and tool longevity.
*To whom correspondence should be addressed. Tel: +I 3 13 747.0081:
Fax: + I 313 747-3 170; E-mail: farouki @engin.umich.edu
iDepartment of Mechanical Engineering and Applied Mechanics,
University of Michigan, Ann Arbor, MI 48109, USA j:The reference points do lie exactly on the curve, but their distribution
$Department of Mechanical Engineering, Dankook University. 8 Hannam- along it is not rigorously consistent with the specified feedrate-i.e., the
Dong, Yongsan-Ku, Seoul 140-714, South Korea tool path geometry is accurate, but the desired feedrate function is only
Paper Received: 15 April 1997. Revised: 19 Fehruq 1998 approximately realized.

631
CNC interpolators for constant material removal rates: R. T. Farouki et al.

Varying material removal ratcx along ;I 2D tool path may in .$ means that the arc-length function s(t) is also a poly-
be a signiticant SOLII’CC of’ cuttin, 0 force I Cations. These nomial. Furthermore, the curvature is given by the rational
varying rates COLII~ hc incurred hy ;I \~iable depth of function
cut-i.e., thickness 01‘ the material strip to be removed,
perpendicular to the tool path--or CVCII. in the case of K(l) = 2 u(Ov’(4) - u’(&(E)
(2)
fixed depth of cut. by non-linearity 01‘the tool path through &E)
‘curvature’ effects (aee Section 3 below). Such variations in Thus, for example, a PH quintic is obtained by substituting
the volume removal rate may be cfl’ectively cancelled out by Bernstein-form quadratic polynomials
continuous compensatory fecdratc adiustment using an
‘intelligent’ CNC interpolation algorithm. For the PH u(F) =+,(I - ‘9’+ Ul2(1 -FE +u*t2,

curves, in particular, the formulation 01‘such algorithms is


eminently tractable: the required refcrencc points can be v(4)= v,(l - 4)'f 1']2(1 - E)[ $“&
accurately and efficiently generated with very modest
into eqn (1) and integrating. The BCzier control points of
CPU resources.
this curve can then be expressed in terms of the coefficients
The automatic selection of feedrates in accordance with
L(~~,
111,u2 and 11~).
vi. v2 as
the part geometry and corresponding tool paths has been
the focus of earlier studies ‘x.7x.2c).These variable feedrates I, 2
Pt = PO + -(% - L’O>
2uov,),
have been implemented in the context of traditional G code 5
descriptions, however, using a feedrate post-processor pro-
gram that specifies the proper feedrate for each linear or 1
P?=PI + $wl - vovl~~ovl +u,voL
circular segment of the cutting path’*. The use of G code
part programs entails sacrificing knowledge of the exact tool
2
path curvature, and attempts to vary the feedrate to allow for p3 = pz + -(II: - 4,2u,v,)
curvature are thus unavoidably compromised (in fact, the IS
curvature becomes infinite at the junctures of linear G code I
segments).
We shall adopt the following plan for the remainder of
this paper. In Section 2, a brief synopsis of the distinguish- 1
ing properties of PH curves is presented. A curvature-
dependent feedrate function that, under appropriate
conditions, yields constant volume removal rate at fixed
depth of cut is formulated in Section 3, and it is shown p5 = p4 + $i - v;, 2u2v2)

that PH curves are admirably suited to a realization of this


variable feedrate through a simple real-time interpolation where p. is an arbitrary integration constant. The quartic
algorithm. Speed and force measurements from an imple- a(4) defining the parametric speed of this curve is specified
mentation of this interpolator on an ‘open-architecture’ CNC by the Bernstein coefficients
milling machine are presented in Section 4. Finally, in ‘To= LL;+ v(‘,,
Section 5 we assess these results and identify avenues for
further investigation. Cl = U()Ul + VOl’~,

2 7 1
g2 = $Ui + 1’:) + $UoUz + V,V2),
PYTHAGOREAN-HODOGRAPH CURVES

We adopt the nomenclature and units used”-” in earlier


studies, namely:
t = time (s),
s = curve arc length (mm), and the arc length s(f) is the quintic corresponding to the
4 = curve parameter (dimensionless), indefinite integral of o(t)-it has Bernstein coefficients
u = ds/d< = ‘parametric speed’ (mm),
K = curvature (mm-‘). sg = 0 and ,sL= i ‘2’ ai for k= 1, . . ..S
V = dsldt = feedrate along curve (mm s-l). J j=O

Given polynomials Ed and v(4) without common non- We focus on PH quintics here, since they are well-suited to
constant factors and m = max(deg(u),deg(v)) 2 1, a regular practical design applications-the above formulae
PH curve r(E) = (x(i),y(4)) of degree n = 2m + 1 is defined, generalize readily to PH curves of other (odd) degrees.
module a choice of origin, by the hodograph Complete details on the construction and ~~$.$&on of
PH curves? may be found in the references ’ ’ ’ ’ .
-u’(F) = &) - &9, Y’(5) = 244M4) (1) The interpolator described below is specific to PH curves.
These are elements of a Pythagorean triple of As noted above, these curves are fully compatible with the
polynomials-they satisfy BCzierlB-spline representations of CAD systems. Not all
Bkzier/B-spline curves are PH curves, however, and to
X”(l) +.v”({) = a’(4)
u(E) = k’(l)1 = u’(t) + v*(E) being the ‘parametric speed’ t We consider only the [polynomial PH curves here. The rational PH
of r(t), i.e., the rate of change ds/d.$ of arc length with curves24.25are less suitable for real-time CNC interpolation, since their
respect to the parameter. The fact that a is a polynomial arc lengths are not, in general, rational expressions in the curve parameter.
CNC interpolators for constant material removal rates: R. T. Farouki et al.

take full advantage of the latter it is essential that path Is


planning (e.g., for complex surfaces) be done directly in

oc3
terms of PH curve motions and associated feedrate
functions. Preliminary results in this regard, for the case
of contour machining, are described in Ref “; and in Ref ” 6
tool
a system of G codes for describing PH curves and feedrate
functions is presented. The latter is designed to be compa- r r
tible with the established conventions for ‘ordinary’ (linear/ too1
circular) G codes, allowing the two to be freely mixed.

CURVATURE-DEPENDENT FEEDRATE Figure 1 Annular volume removed (shaded regions) by a tool of radius d
on a circular path of radius Y with depth of cut 6. The anticlockwise path
We now consider the formulation of a CNC interpolator (left) defines an ‘interior’ cut, and the clockwise path (right) an ‘exterior’
capable of driving a machine tool along a Pythagorean- cut
hodograph curve at a feedrate determined by the local
curvature. The form of curvature dependence is selected so
circle and -l/r for the clockwise circle (and 0 for the
as to yield, at constant depth of cut, an (approximately)
linear path) we can express the material removal rate in
constant rate of volume removal. This is motivated by
all these instances as V&l + K(d - !$)I.
simple models of the milling process’x, in which the cutting
Consider now the PH curve r(E) as a tool path. Approx-
force is proportional to the volume removal rate. Reduced
imating this curve by its osculating circle at each point, we
variations of the cutting force are expected to yield
infer that ‘curvature effects’ incur a varying volume
machined profiles of enhanced dimensional accuracy and
removal rate V& 1 + K(,$)(d - $)] along it, where ~(0 is
surface finish.
the curvature (eqn (2)) of r(E). Conversely. to maintain an
It is perhaps not obvious that, for curved paths, fixed
approximately constant volume removal rate, the feedrate
feedrate and depth of cut do not imply a constant material
must be continuously varied in accordance with the curva-
removal rate (MRR). In ‘concave’ regions the remaining
ture-dependent function
material strip curves around the tool, incurring higher
MRR than for a linear cut, while in ‘convex’ regions it
curves away from the tool, causing a lower MRR.$ A quan- ‘(‘)= 1 + K([)(d - $)
titative description of this effect, which is primarily of inter-
est for tinish cuts on strongly-curved tool paths-i.e., the Note that 0 < d - $ < d, since 0 < 6 < 2d. In order for the
radius of curvature is comparable to the tool radius-is offset curve (eqn (3)) to define a smooth part shape without
formulated below. self-intersections ‘I, the curvature of the path r(4) must
satisfy K([) > - l/d for [ E [O,l]. When this condition
holds, eqn (4) yields a finite positive feedrate along the
Feedrate function
entire curve.
The variable feedrate (eqn (4)) deviates appreciably from
Consider a tool path defined by the PH curve r(C;) with
the nominal value VO only when the curvature magnitude
tangent t = r’/lr’I. normal n= t X z, and curvature
IK(~)I is not small compared to Il(d - @-i.e., when the
K = lr' t-‘)(I-’ X r”). z, where z is a unit vector orthogonal to
(magnitude of the) radius of curvature of r(4) is not large
the plane of r(t). We note that K is negative or positive
compared to the tool radius d minus one-half the depth of
according to whether n points toward or away from the
cut 6. Assuming that 6 (< 2d, this occurs at tight ‘corners’ in
center of curvature. The desired part shape is described by
the tool path, of curvature magnitude comparable to l/d.
the offset
Note that when 6 = 2d, the tool is always fully immersed
r,,(t) = r(4) + dni4) (3) and eqn (4) reduces to a constant feedrate.
A form equivalent to eqn (4) was previously suggested in
at distance d, the tool radius, from r(4). The material that is
Ref I”, though only as a means to avoid singularities in an
to be removed, at depth of cut 6, lies locally to the right of
inverse curvature feedrate specification: its physical basis
the curve (in the direction of n) as we traverse it with ,$
(constant volume removal rate) was not recognized therein,
increasing. Thus, positive curvature corresponds to a ‘con-
and the formulation of interpolation algorithms was not
cave’ cut, and negative curvature to a ‘convex’ cut.
pursued.
For feedrate V. and depth of cut 6, the volume removal
rate along a linear path (assuming unit thickness) is simply
V& Consider now an anticlockwise circular path of radius
CNC interpolation algorithm
r-an annular volume r(r + d)’ - a(r + d - 6)’ is removed
in time 2ar/Vo (Figure I), and hence the rate of volume
The simplest interpolators compute reference points corre-
removal is V&l + (d - $)lrl. Similarly, for a clockwise
sponding to a fixed feedrate VO along a curve for a given
circular path, an annular volume a(r - d + S)2 - a(r - d)’
sampling interval At. For a PH curve, this amounts to
is removed in time 2v/Vo, corresponding to a rate
finding the unique real roots of the polynomial equations
V&1 - (d- @r]. Since K is l/r for the anticlockwise
~([~)=kAs for k= 1,2, .._, (5)

$ Physically, such MRR variations incurred by the tool path curvature will where As = V,At. Taking the parameter value Ek-, of the
be manifested by larger/smaller material chips issuing from concave/con- preceding reference point as a starting approximation, a few
vex tool path regions. when all machine parameters-feedrate, spindle Newton-Raphson iterations usually suffice. The Bernstein
speed, tool type. etc.-are held constant. forms of s(E) and its derivative a({) are preferred for

633
CNC interpolators for constant material removal rates: R. T. Farouki et al.

numerical stability “-efficient evaluations may be where the rotation index of r(4) is defined” by
obtained by writing (for a PH quintic)

s(F) =p3&p2 + J:,pq + S,q2) + (.LJ? + igq + S,q’)q3


where p = 1 - .$ and q = l denote barycentric coordinates tan’ 4(I)-tan-’ $(O)
on E E [O,l1 and So, . . ., Ss are scaled Bernstein coeffi- = - G#G)
It-
cients 14, i.e., the appropriate binomial coefficients are
absorbed into so,...,.ss. Here p’, pq, q’ are to be computed Here, the Cauchy index Ii+(l) of the rational function d(t)
only once; similar methods may be used for o(E) and .x(t), = v(t)lu([) on the interval t E [O,l] is equal’” to the
?G). number of poles at which 4 jumps from -x to +m. minus
Now for the feedrate function defined by eqn (4) and the number at which it jumps from +m to --oc1,as 4 increases
sampling interval At, the parameter value tk identifying from 0 to 1. It can be computed by inspecting the sign of the
the k-th reference point must satisfy quantity tl(F)lu’(t) at each odd-multiplicity root of u on
(0,l).
t Now T is not, in general, an integer multiple N of the
a(4) sampling interval At. A traversal of the curve in a whole
----dt=kAr (6)
V(4) number of steps of duration At may be realized by modify-
I)
ing V. somewhat-namely, we take
Substituting eqn (2) and eqn (4) into the above gives
S + 2r(d - ;6)%
EL Ek A’,=1

s
- +0.5]
u(C)v’(C)-p(g) d,$ + VoAt
(2d - 6) u(4) dl = kV,At
J‘ steps at the feedrate (eqn (4)) with V. replaced by the
0 0
slightly different value
and by writing r#~(.$)= v(l)lu(.$) and noting that a(l) = u’(4) T
-t ~~(4) = .r’($J, these integrals can be resolved to obtain the v,, = v, ~
N,At
equation
Figure 2 shows the feedrate variation (eqn (4)) for a single
F(tk) = (2d - @[tan ~ ’ $(Ek) - tan- ’ c$(O)] PH quintic segment. We assume a tool radius d = 0.125 and
depth of cut 6 = 0.025; the distance between the two curve
+ s&) - kV,At = 0 (7) endpoints is 1. Note how the feedrate falls to -44% of the
This is a transcendental equation for Ek, which must be nominal value (for a straight cut) in the concave region of
solved numerically. Note that 2 tan-’ r$(l) is just the tan-
gent-angle (measured from the x-axis) of the PH curve r(4).
The treatment of the arctangent function in eqn (7) deserves
special attention-if F is to be a continuous function, it is
not permissible to simply take - a/2 < tan-’ 4(l) 5 + 7r/2
(say) for all ,$. Rather, we must add jr, where j is chosen
among - 1, 0, +1 so as to minimize5 the value of
Itan-’ (b(tk) - tan’ d(tp-,) + j,l, to ensure continuity of
F.
The integrand in eqn (6) is positive when I > - l/d
for l E [O,l] and F is then a monotone function-this
guarantees that eqn (7) has a unique real root. The derivative
of F can be written as

F’(h) = dtd1 + K(C;d(d- ;&)I


if, for example, Newton-Raphson iterations are used to
determine its root. A good starting approximation for ik is
2.0
given by

(0) V,At g 1.5


Fk =4r-I + (8) C
a(& - , )]l + K(& ~ I )(d - is)] .g
.g
2 1.0
where g 1_I is the converged parameter value for the pre-
B
ceding reference point. Typically, a few iterations suffice for E
convergence of tk to machine precision. f 0.5
The total time T required to traverse the PH curve r(l) at
the variable feedrate (eqn (4)) is obtained by integrating 0.0
u(.$)lV(t) from .$ = 0 to 1. This gives 0.0 0.5 1.0 1.5 2.0
arc length s
S + %m(d - $5)X
T= (9) Figure 2 Feedrate variation along a PH-curve tool path in accordance
VU with the curvature-dependent function (eqn (4)) to give a constant volume
removal rate. Here r(f) is the PH quintic tool path, its offset r,X{) is the
desired part shape, and the dotted curve indicates the depth of cut above
S;We assume that V,)At is sufficiently small. r,,([) to be removed

634
CNC interpolators for constant material removal rates: R. T. Farouki et al.

function would incur a far more cumbersome expression


than eqn (4), and it is improbable that a rigorous real-time
interpolation algorithm could be formulated for such a com-
plicated feedrate dependence. From a practical perspective,
it would not be warranted: we shall see below that the
simple feedrate function (eqn (4)) easily cancels most of
the machining-force variation under typical conditions.
Note, however, that although eqn (4) will yield precisely
constant MRR only under the conditions described in
Appendix A, the actual realization of this feedrate variation
by the CNC interpolator algorithm is essentially exact.

EXPERIMENTAL RESULTS

The experiments have been performed on a 3 hp CNC


milling machine with interpolators implemented for two
axes. To allow a detailed evaluation of the machine
performance, the original control system was replaced by
a 33 -MHz 80486-based PC incorporating our own software
interpolator and controller, and custom-made hardware
components such as a pulse-width-modulation (PWM)
board.7 In addition, incremental linear encoders and
tachometers are used to provide table position and motor
0.0 _J speed feedback. The hardware components and control
0.0 0.2 0.4 0.6 0.8 1.0 1.2 computer are interfaced through a digital I/O board, an
arc length s analog-to-digital converter (ADC), and a quadrature
decoder board. The system has a controller sampling
Figure 3 Another example of the feedrate function (eqn (4)) for a PH
quintic
interval of 0.01 s. and a basic length unit (BLU)-as
defined by the position encoders-of 0.01 mm.
The controller compares instantaneous position measure-
the curve, and subsequently grows to - 162% in the convex ments from the encoders with reference points generated by
region. the interpolator. To emphasize the influence of the interpo-
A second PH quintic example is shown in Figure 3. Here lation scheme (rather than the control algorithm) on the
we choose a tool radius d = 0.1 and depth of cut 6 = 0.04 machine performance, a simple proportional (P) controller
(the distance between the curve endpoints is again 1). The was used in the experiments. At each sampling time, the
feedrate dips to -52% of V, in the concave region, and then actual feedrate along the curve is the magnitude of the velo-
rapidly climbs to - 185% of V,) in the convex region. In city sector whose components are measured by the tach-
Figure 4 we illustrate the non-uniform sequence of ometers. To compare with the specified feedrate variation,
reference points along this curve in accordance with the we must express the latter as a function of the elapsed time t,
feedrate function (eqn (4)) and a fixed At, as generated by rather than the curve parameter 4, as in eqn (4), or arc length
the interpolation algorithm described above. s, as in Figures 2 and 3. This is accomplished-for plotting
Note that the geometrical model used to derive the fee- purposes, at least-by noting that, with the feedrate func-
drate function (eqn (4)) requires that the osculating circle be tion (eqn (4)). t is given in terms of 4 by
a ‘sufficiently accurate’ approximation to the curve at each
(2d - @[tan- ’ q5({) - tan ~ ’ c+(O)]+ s(t)
point. A quantitative characterization of this condition is t(E) = ~__ (10)
given in Appendix A-this can be checked to ensure that V0
the feedrate (eqn (4)) will indeed give an (approximately) the arctangent function being interpreted in accordance with
constant material removal rate. the convention previously described in Section 3.2 above.
The derivation of a more precise constant-MRR feedrate In the CNC interpolator, just two Newton-Raphson itera-
tions starting from the initial approximation (eqn (8)) were
found to be more than adequate for real-time computation of
,, . . . . ..“‘........., the reference points to machine precision. Although eqn (7)
:

.’ ...-..
“..... involves a transcendental function, the calculations are
easily within the scope of the modest (33 MHz) CPU used
to control the CNC machine.

Tachometer measurements

Runs were performed on the two PH quintics shown in


Figurc,s 2 and 3-in each case, the distance between the
Figure 4 Non-uniform distribution of reference points along the PH
quintic of Figure 3 in accordance with the feedrate function (eqn (4)).
The solid curve is the offset at the tool radius d, and the dashed curve ‘IEarlier experiments with this CNC system have been reported in Refs 9
shows the depth of cut and “,

635
CNC interpolators for constant material removal rates: FL T. Farouki et al.

0’
I I I I I I I
0 2 4 6 0 10 12 14 16 16
time(set)
Figure 5 Measured time variation offeedrate for the PH quintic in Fi,p~rr 2, from tachometer readings. The smooth curve illustrates the desired variation for
a constant volume removal rate, as described by eqns (4) and (I 0)

curve endpoints was scaled to 3600 BLU (36 mm). In the Figure 6 shows corresponding measurements for the PH
first case a nominal (zero curvature) feedrate V. = 5 mm/s curve in Figure 3. Although this example incurs much
was chosen; for cutting parameters (d,6) = (0.125,0.025) the greater acceleration between the concave and convex por-
quantity d - $6 is 405 BLU and the time (eqn (9)) needed to tions of the curve, the system still faithfully reproduces the
traverse the curve is T = 17.82 s In the second example, specified feedrate function. The discrepancy between the
we take V. = 4 mm/s, and for (d,6) = (0.1,0.04) we have desired and actual feedrate variations does not appear to
d - $3 = 288 BLU and T = 12.75 s The size of the curves be simply a time lag in this case.
and duration of the experiments are chosen to satisfy Note that the feed acceleration A = dVldt is obtained by
constraints on the memory available for real-time storage of applying d/dr = (V/a)d/dE to eqn (4)-this gives
encoder and tachometer readings.
Figure 5 compares the actual feedrate, as obtained from the V,%W(d
- ;@
tachometer readings, with the time-dependence of feedrate
described by eqns (4) and (10) for the first example. The
A(t)
= - [l + K(l)(d - fh)]’
(11)

data shown here are from a single run-a comparison of where ic is the arc-length derivative of curvature; see eqn ( 16)
results from several independent runs suggests that the in Appendix A. This is plotted in Figure 7 for both curves.
observed fluctuations are primarily measurement noise
rather than physical variations. Apart from the initial accel-
eration (and slight overshoot) from rest, the overall feedrate Dynamometer measurements
variation is seen to be in good agreement with eqn (4),
although there does seem to be a small systematic lag between To monitor machining force variations, a Kistler piezo-
the expected and actual feedrate. The use of a more sophisti- electric dynamometer was mounted on the machine table
cated control algorithm, and allowance for the initial accel- and used to record the x and y force components while
eration period, will probably eliminate this discrepancy. cutting 6061-aluminum. For these experiments, the PH

8 I

0 2 4 6 a 10 12 14
time (set)

Figure 6 Measured time variation of feedrate for the PH quintic in Figure 3

636
CNC interpolators for constant material removal rates: FL T. Farouki et a/.

0 2 4 6 6 10 12 14 16 16
time (WC)

Figure 7 The feed acceleration Ceqn CI I)) for the PH quintics in Figwes -7 c~nd 3

quintic tool path shown in Figure 3 was adopted, with the employed in these experiments, with an axial depth of cut
distance between the endpoints scaled to 2 inches -3 mm into the aluminum stock. Figure 8 shows the resul-
(50.8 mm). The stock was first rough-cut using a 5 inch tant force in the cutting plane, as measured by the dynam-
diameter tool, leaving a & inch depth of cut (6 = 4.76 mm) ometer with a sampling frequency of 25 Hz. The spikes in
above the desired part shape. The part was then finish-cut these data represent successive engagements of the cutting
with the same tool (d = 6.35 mm) using PH-curve edges with the workpiece. Since it is difficult to identify
CNC interpolators for both the variable feedrate (eqn (4)) trends in the mean cutting force from the raw measure-
with V. = 5 mm/s, and a constant 5 mm/s feedrate. ments, we also present moving averages of them-obtained
A two-flute cutter and spindle speed of 1400 rpm were with a l-s ‘sampling window’-in Figure 8.

constant feedrate variable feedrate


3.5 I I I I I I I I I

3.0

f
5 2.5
8
5
.co, 2.0
t:
2
2 1.5
c”
s
st 1.0
.-

0.5

0.0
f
s 1.5
8
P
p 1.0
._
s
a
0
g 0.5
m
P
i-G
0.0
0 2 4 6 6 10 12 14 16 10 0 2 4 6 8 10 12 14 16 16
time (set) time (set)

Figure 8 Measured cutting force for the PH quintic in F~~uw 3 with: (left) fixed feedrate and (right) the curvature-dependent feedrate function (eqn (4)). The
upper graph5 indicate the instantaneous force in the cutting plane sampled at 25 Hz, and the lower graphs are I-s moving averages of these data

637
CNC interpolators for constant material removal rates: R. T. Farouki et al.

1.0 -
constant feedrate

variable feedrate

0.0 I I , I I I
2 4 6 6 10 12
time (set)

Figure 9 Averaged cutting force for the PH curve shown in Figure 3, based on a sampling frequency of 250 Hz and I-s smoothing interval, for both a
constant feedrate and the curvature-dependent feedrate function (iqn (4))

In the smoothed data for the constant feedrate case, an The control over machining forces afforded by this inter-
increase of the mean force on entering the ‘concave’ region polator is expected to provide improvements in the surface
of the curve in Figure 3, and a subsequent decrease when finish and dimensional accuracy of precision machined
traversing the ‘convex’ region, is clearly apparent. In this parts. This is accomplished by low-level software changes
case, the mean force varies by a factor of -2. In the run in the control computer, based on the tool-path geometry,
with the feedrate function (eqn (4)), on the other hand, these without the need for addition of sophisticated sensors or
variations are almost precisely cancelled out, and systematic complex control algorithms. Although we have considered
fluctuations of the mean force are no more than - 10% about only variations in the material removal rate due to varying
the nominal value (note that the initial ‘rise’ and final ‘decay’ curvature at a fixed depth of cut, it is also possible to for-
in the averaged graphs are artifacts of the smoothing process). mulate PH-curve interpolators that compensate for specified
The two-flute cutter and 1400 rpm spindle speed corre- variable depth-of-cut functions. Finally, note that the vari-
spond to a 46.7 Hz frequency of engagement of the tool able-feedrate capability of PH-curve interpolators-see
cutting edges with the workpiece. Since this exceeds the also Ref 9 and Ref ” -may prove valuable in optimizing
force-measurement sampling frequency of 25 Hz, one may overall machining times for part programs, consistent with
be concerned that the data in Figure 8 are influenced by specified constraints on machining forces, part accuracy,
aliasing effects. To verify that this is not so, the experiments and surface finish.
were repeated using a 250 Hz sampling frequency. Figure 9
shows the averaged data (with 1-s smoothing) from these runs,
excluding the initial and final l-s intervals. The trend is iden- ACKNOWLEDGEMENTS
tical to that in Figure 8: the constant-feedrate run exhibits a
substantial increase/decrease of mean cutting force in the con- We are grateful to Professor Yoram Koren for advice and
cave/convex curve regions, while the variable feedrate (eqn encouragement. This work was supported by the National
(4)) effectively cancels out these variations. Science Foundation (CCR-9530741) and the Office of
Naval Research (N00014-95-1-0767).

CONCLUDING REMARKS
APPENDIX A: OSCULATING-CIRCLE
APPROXIMATION
We have shown that PH curves admit the formulation of
simple real-time CNC interpolators that compensate for
The feedrate function (eqn (4)) for constant material
varying material removal rates at a fixed depth of cut
removal rate is based on local approximation of the curve
through curvature-dependent feedrates. The performance of
by its osculating circle, and is valid only if this approxima-
these interpolators has been verified through implementa-
tion is sufficiently accurate over lengths comparable to the
tion on an open architecture11 CNC milling machine. The
tool radius. We now derive a quantitative characterization of
curvature-dependent feedrate was accurately realized using
this condition.
a simple P control algorithm, and it effectively cancelled
An analytic curve can be developed in a power series in
variations of the mean cutting force due to ‘curvature
its arc length s measured from a chosen point rcl with tangent
effects’ when machining aluminum at fixed depth of cut.
to and normal no as
11The implementation of this PH curve interpolator does not, in fact, require
r(s) - r(, =
K:,
s - --s- + .
3
2.? + Z? + . no
a fully open-architecture system-it is only necessary that the software
interface between the interpolator and control algorithm be clearly specified
6 2 6
and accessible. (12)

638
CNC interpolators for constant material removal rates: FL T. Farouki et al.

t
0.0 0.2 0.4 0.6 0.8 1.0
5

Figure 10 Verification of the inequality (eqn (15)), describing the accuracy of the osculating-circle approximation, for the PH curves shown in F&~-es 2
anll3

where K,, and ice denote the curvature and its arc-length 3. Chou. J.-J. and Yang, D. C. H., On the generation of coordinated
motion of five-axis CNUCMM machines. ASME Journal of Engi-
derivative at ro. Now the osculating circle at r. has radius
neering for Industry, 1992, 114. 15-22.
p. = ~/IQ and center r. - pono, and is thus described by c(s) 4. Farouki, R. T.. Pythagorean-hodograph curves in practical use. In
= r. $ p. sin f& - po(l -- cos @no with e=s/p, = K()s. Grometv Processingfor Design and Manufacturing, ed. R. E. Barn-
Expanding trigonometric terms in power series, we obtain hill. SIAM, Philadelphia, 1992. pp. 3-33.
Farouki, R. T.. The conformal map z - :’ of the hodograph plane.
2 3
Computer Aided Geometric Design, 1994, 11. 363-390.
c(s) - r,) = s- zs’ + .. %s’- %s4+ .. no Farouki, R. T., The elastic bending energy of Pythagorean-hodograph
2 24 curves. Compurer Aided Geometric Design, 1996. 13, 227-241.
(13) Farouki. R. T., Pythagorean-hodograph quintic transition curves of
monotone curvature. Computer-Aided Design. 1997. 29, 60 l-606.
Comparing eqns (12) and ( 13), we see that the deviation Farouki, R. T., Manjunathaiah, J. and Jee. S.. Design of rational cam
between points of equal arc length s from r. along the profiles with Pythagorean-hodograph curves. Mechanism and
Machine Theoy. 1998, to appear.
osculating circle and the given curve is
9. Farouki. R. T., Manjunathaiah, J. and Jee, S., Implementation and
performance analysis of a real-time CNC interpolator for precision
c(s) - r(s) = $?no + O(sJ) (14) machining of Pythagorean-hodograph curves. ASME Journal of Mnn-
&u?uring Science and Engineering, 1097, submitted.
The tool ‘samples’ r(E) on a length scale --d. Thus, as a rough IO. Farouki, R. T.. Manjunathaiah, J. and Yuan. G.-F., G codes for the
criterion that the osculating circle at each point satisfactorily specification of Pythagorean-hodograph tool paths and associated fee-
drate functions on open-architecture CNC machines. In~emational
approximates the curve, we require that It(s) - r(s)1 << d for Journal of Machine Tools and Manufacrure, 1998, to appear.
s 5 d. This gives the condition I I. Farouki. R. T. and Neff, C. A.. Analytic properties of plane offset
curves. Algebraic properties of plane offset curves. Computer Aided
;ik,,ld2 < 1 (15) Gromerric Design, 1990, 7, 83-127.
12. Farouki. R. T. and Neff, C. A., Hermite interpolation by Pythagorean-
hodograph quintics. Ma~hemcrks of Computarion, 1995, 64, l589-
where, in terms of the polynomials ~(4) and v(E), we have 1609.
13. Farouki. R. T. and Rajan, V. T., On the numerical condition of poly-
ic= < = 2(U’ + V2)(W” - U”V)- S(Uzf’+ VV’)(UL”- U’l’) nomials in Bernstein form. ComputerAided Gromemric Design, 1987,
(T (L42+ \J)4 4, 191-216.
14. Farouki. R. T. and Rajan. V. T., Algorithms for polynomials in Bern-
(16) stein form. Computer Aided Geomrrric Desig”. 1988. 5, l-26.
IS. Farouki. R. T. and Sakkalis. T., Pythagorean hodographa. IBM Jour-
Note, however, that at a vertex (a point of extremum curva-
nal of Krsetrrchand Development, 1990, 34, 736-752.
ture), ic=O and the deviation of r(4) from its osculating 16. Farouki. R. T. and Shah, S.. Real-time CNC interpolators for Pytha-
circle is described by the higher-order terms in eqn (14)- gorean-hodograph curves. C~~mpuler Aided Geomefric Design, 1996,
these are typically of much smaller magnitude. 13. 583~600.
To be confident that the feedrate function (eqn (4)) does 17. Farouki. R. T.. Tsai, Y.-F. and Yuan, G.-F.. Contour machining of
free-form surfaces with real-time PH curve CNC interpolators. Com-
yield an approximately constant volume removal rate along
puter Aided Geometric Design, 199X. to appear.
the PH-curve tool path, one must check that the inequality 18. Fussel, B. K., Ersoy, C. and Jerard, R. B., Computer generated CNC
(eqn ( 15)) is satisfied along the curve. Figure 10 shows that machining feed rates. In Proceedings of the Japan/USA Symposium 011
this condition does indeed hold for the PH quintics in Flexible Automalion, Vol. I. ASME, 1992. pp. 377-383.
Figures 2 and 3. 19 Henrici. P.. Applied and Compurationtrl Comp/r.r Ana/v,sis, Vol. I.
Wiley, Nen York, 1974.
20 Huang. J.-T. and Yang, D. C. H.. A generahzed interpolator for com-
mand generation of parametric curves in computer-controlled
REFERENCES
machines. In Proceedings c$ the Japan/USA .Ywnpo.yium on Flexible
Automotion. Vol. 1, ASME. 1992, pp. 393-399.
I. Albrecht. G. and Farouki, R. T., Construction of C’ Pythagorean- 3-l Karen, Y.. Interpolator for a computer numerical control system.
hodograph interpolating splines by the homotopy method. Advancr.~ IEEE Trtmwctions on Computers. 1976, C-2.5, 32-31.
in Computa~ionol Mathematics, 1996, 5, 417-442. 22 Koren, Y ., Computer Conrrol of Monufi~~furin,y Svsrems. McGraw-
2. Chou, J.-J. and Yang, D. C. H., Command axis generation for three Hill. New York, 1983.
axls CNC machining. ASME’ Journal of Engineering for Industry. 23 Lin. R.-S. and Koren, Y.. Real-time interpolators for multi-axis CNC
199l.113.305~310. machine tools. Manqfi~cturing Syvemv. 1996. 25. 14% 149.

639
CNC interpolators for constant material removal rates: R. T. Farouki et al.

24. Pottmann, H., Rational curves and surfaces with rational offsets, Corn.
puter Aided Geometric Design, 1995, 12, 175- 192. David Nhho1r.s work.s in the
25. Pottmann, H.. Curve design with rational Pythagorean-hodograph Advanced Manu/?uturing Center of
curves. Advances in Computationcll Mathematics, 1995. 3. 141- 170. General Motors. Delphi Snginnw
26. Sata, T., Kimura. F., Okada, N. and Hosaka. M.. A new method of NC Steering Svstems. He received tt BSE
interpolation for machining the sculptured surface. Ann& of the in mech&ccd engineering and o BSE
C/RF’, 198 I, 30, 369-372. in mrrterials .science cmd engineering
21. Shpitalni, M.. Koren, Y. and Lo, C. C., Realtime curve interpolators. .from the Univetsitv ofMichi,qm. Ann
Computer-Aided Design, 1994, 26, 832-838. Arbor in 1997. His pritncttv interests
28. Sungurtekin, U. A., Voelcker, H. B., Graphical simulation and auto- are in high-volume mttc~hining. mrtrd
matic verification of NC machining programs. In Proceedings of the ,f~nming, rmd heat trecttment.
IEEE Internationul Con$erence on Robotics and Automation. Vol. 1,
San Francisco, 1986. pp. 156-165.
29. Vann. C. S. and Cutkosky, M. R., Closing the loop in CAD/CAM
integration. In Proceedings ofthe Japan/USA Symposium on Fle.xihle
Automation, Vol. 2. ASME, 1988, pp. 915922.
30. Yang, D. C. H. and Kong, T., Parametric interpolator versus linear Guo-Feng Yuun is a gmduute student
interpolator for precision CNC machining. Computer-Aided De.rign. in the Dept. ofMech~micu1 Engineer-
1994. 26, 225-234. ing and Applied Mechanics, Univer-
sit! of Michigan, Ann Arbor. He
received a BS in agricultural muchin-
Rida T Farouki is n Professor in the er:v engineering ,from Nationrd Tui-
Dept. of Mechanical Engineering and wan Universitr in I993, Former/v.
Applied Mechanics, Univ~ersiqy of he w’as a full-time teaching cissistctnt
Michigan, Ann Arbor. Formerly, he at the National Tniwnn University
worked at the IBM Thomas J. Watson (199551996) trssisting in teaching
Research Center (198661994) and engineering drawing, programming,
GE Corporate Research and Develop- and CNC machining. His research
ment (1983-1986). He received a interests include computer-aided geometric modeling and de.\ign,
PhD in astrophysics from Cornell CNC machining, trnd computer-corltmll~~d machines.
Universiq in 1983 and a BA in engi-
neering science from Oxford Univrr-
sity in 1978. Farouki is the cruthor of
papets in a varie9 of scientijic and engineering disciplines, including
Sungchul Jee is currentlv ‘I full-time
computer-aided geometric design, numerical analysis, plasmu physics, Lecturer in the Dept. of Mechanical
molecular dynamics, geometrical optics, and ustrophysics.
Engineering at Dankook University,
Seoul. Korea. He received u PhD in
mechanical engineering from the Uni-
versity of Michigun, Ann Arbor, in
Jairam Manjunathaiuh is u doctoml 1996, and cm MS and BS in mec,han-
candidate in the Dept. of Mechanical ical design and production engineer-
Engineering und Applied Mechanics, ing ,from Seoul National University,
University of Michigan, Ann Arbor. Seoul, Korea in 1990 and 1988,
He received his Buchelor’s degree in respectively. From I996 to 1997 he
mechanical engineeringfrom the Knr- worked as n Research Fellow in the
natuka Regional Engineering Col- Dept. of Mechaniccrl Engineering and Applied Mechanics at the LJni-
lege, Suratkal, India in 1992, and his \,er,sity of Michigtm. His reseurrh interests include CNC .servo c~ontrols
Master’s degree in mnnufncturing nnd interpolators, fuzzy logic r~ontrol .systems. trnd o~~erl-cln~hitrctl*~-~~
engineering from the Univrrsir_v of machining .s):stemr.
Massachusetts, Amherst in 1995. His
research interests include machine
tools. manufacturing processes, and CAD/CAM. Manjunathtriuh is cm
Associate Member of the Soc,ieq of Munufacturing Engineers and n
member of Pi Tuu Sigma, the Mechanical Engineering Honor Society.

640

You might also like