A Lightweight Interpolation Algorithm For Short-Segmented Machining Toolpaths To Realize Vibration Avoidance, High Accuracy, and Short Machiningtime PDF
A Lightweight Interpolation Algorithm For Short-Segmented Machining Toolpaths To Realize Vibration Avoidance, High Accuracy, and Short Machiningtime PDF
Precision Engineering
journal homepage: www.elsevier.com/locate/precision
Keywords: A computationally efficient FIR-filtering based path-smoothing algorithm which simultaneously realizes vibra-
Trajectory generation tion avoidance, high accuracy, and short machining time is proposed in this paper. Unlike the case of long G-line
Short-segmented G-line blocks blocks where only the adjacent blocks affect the cornering error of a specific corner, more than two blocks affect
FIR filter the error in the case of short-segmented blocks. To satisfy the tolerance error, point-to-point (P2P) technique can
Cornering error
be applied, but its machining time will be excessively elongated due to full stops at each corner. Alternatively,
Block splitting
motions with the delay times of FIR filters fully-overlapped, which are available on commercially-installed NC
systems, can realize short machining time, but they cannot satisfy the tolerance error due to the filtered tra-
jectories accompanies by high speed. Other methods such as spline fitting may satisfy the tolerance error and
realize short machining time, but they will allow vibration of the machine tool structure since these motions are
not allowed to be filtered for satisfaction of the tolerance. Therefore, no method exists which realizes vibration
avoidance, high accuracy, and short machining time all at the same time. For the first time in the literature, a
method is proposed which realizes all of the above requirements. The proposed algorithm bases on a kinematic
smoothing scheme where no spline-fitting based geometric smoothing is required, and the blended path geo-
metry is only controlled by optimizing the feedrate (speed) profiles along a span of short G01 and G02/G03
moves. FIR filtering is applied to avoid the inertial excitation of the machine tool structure, and a novel “block
splitting” method is proposed to keep elongation time of the G-line blocks the minimum. The effectiveness of the
proposed method is validated through a series of experiments by comparison with conventional methods.
∗
Corresponding author.
E-mail address: [email protected] (T. Hayasaka).
https://doi.org/10.1016/j.precisioneng.2019.05.006
Received 7 May 2019; Accepted 21 May 2019
Available online 23 May 2019
0141-6359/ © 2019 Published by Elsevier Inc.
T. Hayasaka, et al. Precision Engineering 59 (2019) 1–17
2
T. Hayasaka, et al. Precision Engineering 59 (2019) 1–17
planned in real-time to ensure that axis kinematic limits are respected machining time. The paper is organized as follows. Section 2 presents
[1,3,15]. Exceeding acceleration/torque limits of the drives results in fundamentals of FIR-filtering based interpolation and control of local
actuator saturation and jeopardizes final part quality and even the blending errors through feedrate optimization accompanied by “block
machine health. splitting”. Section 3 introduces the novel technique to control blending
For the first time, this paper proposes a computationally efficient errors along short-segmented tool-paths. Section 4 shows experimental
FIR-filtering based path-smoothing algorithm, which accurately blends validation on a commercial machine tool and validates the effectiveness
short-segmented tool-paths within user specified error tolerances. The of the proposed technique.
proposed algorithm bases on kinematic smoothing scheme [11,12,17]
where no spline-fitting based geometric smoothing is required. The 2. FIR-filtering based path interpolation and blending error
blended path geometry is only controlled by optimizing the feedrate control
(speed) profiles along a span of short G01 and G02/G03 moves. Thus,
the feed profiling and blending are merged and controlled by the tan- 2.1. FIR-filtering based linear point-to-point (P2P) interpolation
gential speed. FIR filtering is used to interpolate the position commands
for vibration avoidance. Therefore, the proposed algorithm simulta- FIR filters in the form of the following transfer function [10,12] in
neously satisfies vibration avoidance, high-accuracy, and short Laplace(s) domain
Fig. 5. Image of error function for the case of two long blocks.
Fig. 4. Cornering error during non-stop interpolation of consecutive G-lines.
3
T. Hayasaka, et al. Precision Engineering 59 (2019) 1–17
4
T. Hayasaka, et al. Precision Engineering 59 (2019) 1–17
1 e sTd
F (s ) =
s (1)
are used to interpolate G01 and G02/03 path commands with smooth
kinematic profiles [12]. As shown in Eq. (1), a 1st order FIR filter
contains a delay element e sTd controlled by the delay time Td and a free
integrator (1/ s ). As a result, when a velocity pulse is convolved with a
FIR filter, it simply integrates the input pulse and generates a trape-
zoidal velocity profile.
Fig. 1 provides an illustrative example of this process. A L = 10 mm
long linear motion is commanded as a velocity pulse with a feedrate of
F = 10000 mm/min and for a duration of Tv = 60 msec. The velocity
pulse is convolved with the FIR filter (Eq. (1)) with a time constant of
Td = 25 msec, and the time resolution (unit time) is set to 1 msec As
shown in Fig. 2, the resultant feedrate (speed) profile is a trapezoid with
a pulse acceleration transient. Notice that the duration of the ramp is
equal to the FIR filter delay. Hence, the maximum acceleration Amax
demanded is simply controlled by the commanded velocity pulse am-
plitude and the time constant of the FIR filter, that is Amax = F / Td .
As mentioned above, the maximum acceleration is either controlled
by the filter time constant or the feedrate command. In practice, the
maximum feedrate (F ) is described by the machine tool component
specifications, and a pre-determined Td is necessary to limit the max-
imum acceleration. The filter time constant Td is selected to mitigate
unwanted vibrations [10,11]. Although statically very rigid, typical
machine tool structures suffer from limited dynamic stiffness due to
their weak structural components and exhibit various resonances.
Major contributors to those vibrations are the rocking and column
modes of the machine tool, which introduce lightly damped low fre-
quency resonances [18,19]. As the feed drives accelerate and decelerate Fig. 10. Flow chart of the proposed algorithm.
the workpiece-table during high acceleration, frequency spectrum of
inertial forces can excite those lightly damped resonances and induce
unwanted forced vibrations [11,18]. The filter delay is selected to avoid frequency spectrum of the FIR filter can be computed from Eq. (1) as
those resonances as follows. Notice that filter time constants for vi-
bration avoidance are selected first, and an additional filter is added if 1 e j Td A sin( Td/2)
F (s ) = F (s ) =
necessary for acceleration limitation. j
s=j (2)
Fig. 3 shows the frequency ( ) spectrum of the original and filtered
acceleration profiles. Since the original velocity profile is a pulse, its As shown in Fig. 3, the FIR-filtered trajectory generates notches at
acceleration becomes an impulse (see Fig. 2(c)), and hence it induces Td = 2k = 2k /Td where k = 1,2, …, . Hence, by simply
equal amount of excitation along infinite frequency range. The matching the time constant of the filter to the period of the vibration
5
T. Hayasaka, et al. Precision Engineering 59 (2019) 1–17
Fig. 11. (a) Trajectory profile, (b) Step 0, (c) Step 1a, (d) Step 2a, and (d) Step 3a.
Td = 1/ fn , it becomes possible to avoid exciting resonances with given by 2 consecutive linear moves which form a corner with an ex-
minimum filter delay. Note that multiple filters need to be used to avoid ternal angle of . When the tool-path is interpolated at constant speed
excitation of multiple resonances, and the total filter time delay equals using FIR filtering, a corner smoothing error is generated. The largest
to the sum of the individual time delays, e.g. filters with time delays of deviation from the corner, extremum of the smoothing error, occurs in
T1 and T2 are used to avoid resonances at f1 and f2 , respectively, and the the middle of the cornering transition and denoted by 1 (see Fig. 4).
total time delay Td = T1 + T2 . As introduced by Sencer et al. [11], the cornering error 1 by a single
FIR filter can be computed analytically based on the feedrate F , cor-
2.2. Corner blending (smoothing) error control nering angle , and FIR filter time delay Td as
1 cos
Previous section introduced that FIR filters can be utilized to in- 1 = FTd
32 (3)
terpolate P2P motion and generate sharp corners. This section presents
how sharp corners can be rounded and a non-stop contouring motion Equation (3) shows that the cornering error has a linear relationship
could be interpolated. An example of a cornering error during non-stop with the feedrate F and time constant Td . Also notice that the filter time
interpolation of linear moves is illustrated in Fig. 4. The tool-path is constant Td is predetermined for vibration mitigation. Therefore, the
Fig. 12. (a) Trajectory profile, (b) Step 3a, (c) Step 1b, (d) Step 2b, and (d) Step 3b
6
T. Hayasaka, et al. Precision Engineering 59 (2019) 1–17
Fig. 13. (a) Trajectory profile, (b) Step 3a, and (c) Step 1c.
7
T. Hayasaka, et al. Precision Engineering 59 (2019) 1–17
Fig. 16. Measured free vibration versus (a) time and (b) frequency.
8
T. Hayasaka, et al. Precision Engineering 59 (2019) 1–17
with the reduction rates , and the optimum feedrates are planned. At Step 1, the cornering errors i are predicted for each corner. If all
Thereafter, blocks are split if required. The flow chart of the proposed cornering errors meet the tolerance tol , then all Steps end here. If not,
algorithm is shown in Fig. 10, and key components are explained as the algorithm moves to Step 2.
follows. At Step 2, if i > tol the optimum feed reduction rate i is calculated
At Step 0, the conditions (original G-line codes, tolerance error, and for each corner where i = tol , and it is memorized in the buffer along
time constants to suppress resonances of the machine tool) are input with the affecting position range psi to pei of that corner. After all is
into the system. calculated, the algorithm moves to Step 3.
Fig. 17. (a) Original tool-path overlaid with the interpolated trajectory, (b) feedrate profile, and (c) measured vibrations.
9
T. Hayasaka, et al. Precision Engineering 59 (2019) 1–17
At Step 3, regions are made at the memorized psi ’s and pei ’s, and the
minimum feed reduction rates min( i ) are calculated at each region.
Then, the G-line blocks are split at the positions psi ’s and pei ’s where
min( i ) changes, and the feedrates are reduced by min( i ) . After ne-
cessary splitting is executed, the algorithm moves to Step 1.
Note that it is occasionally required to go through the loop of Step 1
to Step 3 again even after each cornering error meets the tolerance error
in the first loop. This problem occurs when the cornering direction
changes as shown in the example inFigs. 11–13. At the initial path after
the filtering in Step 1a shown in Fig. 11, the cornering errors at Corner
2 and Corner 3 are greater than the tolerance error. Therefore, Corner 2
and Corner 3 require the surrounding blocks to reduce their feedrates
by the reduction rates 2 and 3, respectively, which are calculated in
Step 2a. Due to these requirements, Block 1 and Block 3 are split to 1-1,
1-2, 1-3 and 3-1, 3-2, respectively, in Step 3a. Notice that the region
defined by Corner 3 and pe2 is not adopted since the min(ai ) for that
region is 3, i.e. 2 corresponding to pe2 is not minimum for that region.
However, after the feedrates are reduced, the cornering errors at Corner
3-2 and Corner 4 again exceeds the tolerance error as shown in Step 1b
of Fig. 12(c), which is due to the change in the cornering direction from
Corner 3 to Corner 4. Thus, these original corners require the feedrates
within the range of ± Td/2 to be reduced, and the surrounding feedrates Fig. 18. Original tool-path.
are reduced by 3 1 and 4 , and the corresponding Block 3-1 and Block
4 are split to 3-1-1, 3-1-2, 3-1-3 and 4-1, 4-2, 4-3, respectively, in Step
3b. After this step, all cornering errors meet the tolerance error of
400 μm as shown in Fig. 13, and all G-lines are finalized.
Note that this method is explained based on straight paths (G01
commands), but it is nearly the same with arc paths with the following
additional steps. In order to calculate the cornering error for the arc
path, an additional control point is made at the middle of the arc, which
is only used for calculation of the cornering error in Step 1. In addition,
if there is a requirement to reduce the filtered feed speeds of the G-line
block of the arc in Step 3, the feedrates of the whole arc are reduced
regardless of the relation between the arc length and the time constants
of the filters. This is simply because the circular path has a constant
curvature over the whole arc. An image of these additional steps is
shown in Fig. 14.
By using the proposed method, all of the requirements can be sa-
tisfied at once. In addition, when machining with back-and-forth paths
with a pick feed, they need to be identically equal to each other, or
otherwise their difference will cause unwanted micro-bumps in the
machined area. The proposed method can also be adopted for these
cases, since it does not have a feed-direction dependency, i.e. the time
constants of the filters do not change with the feed direction and the
resulting motion paths of the machine tool does not change.
The proposed algorithm is presented in this section for off-line
calculation. However, it can also be executed in real-time where each
step in the flow chart of Fig. 9 can run in parallel with a delay of more
than the affecting position range (corresponding to Td/2 ). When all the
errors i meet the tolerance in the beginning range of 0 to Td in Step 1,
the G-lines in the beginning range of 0 to Td/2 can be finalized because Fig. 19. Interpolated trajectory for P2P technique.
they do not affect the errors in the following range. Then, the position
along the G-line that corresponds to Td/2 is updated to 0, and the par-
allel execution of the flows continues until the last G-line is finalized. A commercial 3-axis vertical machining center shown in Fig. 15 is
utilized. The time resolution (unit time) of its numerical control unit is
4. Experimental validation 2 msec In order to demonstrate the vibration mitigation functionality of
FIR-filtering based trajectory generation, a pair of flexible steel beams
Experiments are carried out to validate effectiveness of the proposed are placed on the x - y table, and accelerometers ( x : 339A30, y : 356A01,
technique in terms of accuracy, vibration, and speed (machining time). PCB Electronics Inc.) are used to measure the vibration at the tip of the
10
T. Hayasaka, et al. Precision Engineering 59 (2019) 1–17
Fig. 20. (a) Feedrate profile and (b) measured vibration for P2P technique.
beams. Fig. 16 shows examples of the free response of the flexible interpolation technique which fully overlaps acceleration/deceleration
beams. As shown, the dominant resonances in the x and y directions are transients to blend sharp corners, (C) a spline interpolation technique
measured to be fx = 5.81 Hz and fy = 9.69 Hz, respectively. In order to [8], which blends sharp corners with micro Bezier splines, (D) the
avoid exciting those resonances, the time constants of the FIR filters are proposed technique without block splitting, which is introduced in
selected as Tx = 172 msec and Ty = 104 msec, respectively. The total Section 2.2, and finally (E) the final proposed technique which includes
filter delay becomes Td = Tx + Ty = 276 msec. Please note that in order the block splitting. The corner blending error tolerance is set to
to synchronize the motion, identical filters are applied to interpolate x tol=500 μm. Experimental results are given in Fig. 17, which shows the
and y axes motion. The use of 2 FIR filter ensures generation of jerk- original tool-path (G-lines) overlaid with the interpolated trajectory,
limited trajectory. the feedrate profile, and measured vibrations of the beams.
At first, two long G-line blocks with a single corner is interpolated to As observed from Fig. 17, the P2P technique allows machining of
demonstrate the functionality of the proposed interpolation technique sharp corners by ensuring a full stop at the block junction (corner). Due
and to compare it against the state of the art. Five different strategies to the full stop at the corner, the motion time is longer compared to (B)
are evaluated on this simple linear tool-path. The motion starts at and (D). The commercial non-stop high-speed interpolation technique
xs = 0 mm, ys = 0 mm, moves to the corner at x c = 150 mm, yc = 0 mm, follows an opposite strategy. It blends the single corner and generates a
and completes at x e = 150 mm, ye = 150 mm. The commanded feedrate non-stop motion. However, corner tolerance is not controlled. As a
for both segments (G-lines) is F = 10000 mm/min. The five strategies result, parts machined by this method can easily exceed desired pro-
are evaluated: (A) P2P interpolation technique directly on the com- duction tolerance and be scrapped. Please notice that since both tech-
mercial machine tool, (B) the commercial non-stop motion niques are FIR based, frequency spectrum of the acceleration
11
T. Hayasaka, et al. Precision Engineering 59 (2019) 1–17
Fig. 21. (a) Original tool-path (G-lines) overlaid with the interpolated trajectory and (b) measured cornering errors for commercial non-stop high-speed interpolation
technique.
commands are controlled and hence the adverse effects of residual vi- feedrate reduction and block splitting is applied, the cornering error is
brations are avoided. The spline interpolation technique [8] can gen- confined within the tolerance, and the feedrate is only reduced around
erate non-stop and accurate motion around the corner. However, it the corner, which yields significantly reduced motion duration. This
cannot control frequency spectrum of the reference trajectory, and thus simple example showcases the potential of the proposed real-time in-
residual vibrations cannot be avoided. In fact, these severe vibrations terpolation technique to generate rapid and accurate feed motion.
can easily destroy the surface quality and cause scrap parts in actual Finally, the proposed technique is applied on a complex short-seg-
production environment. The proposed technique without the block mented tool-path shown in Fig. 18 and benchmarked against other
splitting functionality can generate non-stop and accurate motion while techniques. Please notice that the spline-based corner smoothing tech-
avoiding unwanted vibrations. However, total motion duration is nique [8] is excluded from this comparison since it induces large vi-
longer since feedrate of the entire block is reduced to meet the cor- brations making it not suitable for production environment. Further-
nering error tolerance. Lastly, when the proposed technique including more, its computational expense limits its real-time implementation on
12
T. Hayasaka, et al. Precision Engineering 59 (2019) 1–17
Fig. 22. (a) Feedrate profile and (b) measured vibration for commercial non-stop high-speed interpolation technique.
commercial numerical control (NC) systems. The motion starts at the each single G-line. As a result, the total motion time becomes T = 61.928
origin x = y = 0 , and passes through the points A – I and returns back to sec.
the origin. The feedrate is set to F = 10000 mm/min. The corner tol- Next, the non-stop motion interpolation functionality, which fully
erance is kept unchanged from above. The resonant frequencies of the overlaps acceleration/deceleration motions by the adopted time con-
beams are remeasured before this experiment, and they are fx = 5.93 stants, is tested. As a result, the machine executes its own corner
Hz and fy = 9.63. The corresponding time constants of the FIR filters are smoothing algorithm and generates non-stop motion, which is suitable
Tx = 168 msec and Ty = 104 . Firstly, the P2P interpolation of the com- for high-speed machining. Fig. 21(a) shows the commercial non-stop
mercial machine tool is evaluated, and experimental results are shown motion generated along the tool-path. As shown in Fig. 22(a), sharp
in Figs. 19 and 20. As described above, time constants of the filters used corners are interpolated with non-stop motion and overall cycle time is
in the commercial NC system are tuned to eliminate unwanted forced reduced by 92% to T = 4.736 sec compared to the above result of P2P.
vibrations. In the P2P strategy, tool motion undergoes a full stop at the The resultant interpolation (cornering) errors are measured and de-
end of each segment, as shown in Fig. 20(a). Therefore, sharp corners picted in Fig. 21(b). As observed, in the commercial non-stop motion
can be machined, and no errors are observed in Fig. 19. Also shown in strategy, cornering errors could not be controlled. The NC system
Fig. 20(b), owing to the FIR filtering frequency spectrum, the flexible simply interpolates corner regions at user set speed in the G-line. Based
beams are not excited by the inertial forces generated during accel- on the sharpness of the corners (external angles) and commanded fee-
eration and deceleration sections. Hence, the beams and the table are drates, resultant cornering errors vary and may easily exceed user de-
moving as an almost rigid body together. However, P2P motion de- sired part tolerances prompting scrap parts, which is the key short-
mands large acceleration/deceleration to realize a full stop at the end of coming of commercial or state-of-the-art systems. Notice that, as it was
13
T. Hayasaka, et al. Precision Engineering 59 (2019) 1–17
Fig. 23. (a) Original tool-path (G-lines) overlaid with the interpolated trajectory and (b) measured cornering errors for proposed technique with only feedrate
reduction.
for the case of the P2P technique, FIR filtering helps avoid excitement of the machine tries to accelerate to the desired feedrate with maximum
beam dynamics even during high-speed motion as shown in Fig. 22(b), possible acceleration within 2 msec The time resolution is set to 2 msec
but unwanted vibrations are large compared to those observed in the for all the following experiments. The G-line moves obtained by the
P2P technique because of the larger feedrates, i.e. larger accelerations proposed algorithm are interpolated and FIR-filtered with the time re-
and larger inertial forces. solution of 2 msec to generate the reference trajectories, and the tra-
Lastly, the proposed algorithm presented in Section 3 is tested on jectory positions and corresponding feedrates are then inputted to the
the same commercial machine. In order to test the proposed trajectory machine as short segmented G-lines, and air cutting experiments are
generation technique, the reference trajectory generator of the machine conducted. The commanded feedrates for all blocks are F =10000 mm/
is switched off. This is achieved by setting the reference trajectory pre- min, and the tolerance error is set to tol=500 μm. For comparison, the
filter time constant parameter in the NC unit to its lowest possible value proposed method without block splitting, or it could also be described
of 2 msec This ensures that when a reference tool-path is commanded, as the commercial non-stop motion technique accompanied with only
14
T. Hayasaka, et al. Precision Engineering 59 (2019) 1–17
Fig. 24. (a) Feedrate profile and (b) measured vibration for proposed technique with only feedrate reduction.
feedrate reduction to meet the tolerance error, is also tested so that the T =25.866 s. Even though the proposed method is slower than the non-
effect of the block splitting can be easily shown. stop motion of the commercial machine tool, the cornering errors are
The results of the non-stop motion with only feedrate reduction and confined within the set contouring tolerance delivering both high-speed
with both feedrate reduction and block splitting are shown in Figs. 23 and high-accuracy multi-axis motion.
and 24 and Figs. 25 and 26, respectively. Focusing on the cornering The above off-line generation of the reference trajectory by the
errors shown in Figs. 23(b) and 25(b), it can be observed that the proposed algorithm is completed in 1.30 s, utilizing the developed
cornering errors by both methods are confined below the user specified Matlab code and a notebook computer with Intel Core i5-8250U run-
tolerance value tol , and the Corners A – I are controlled to be equal to ning at 1.60 GHz. Since the time of 1.30 s spent for the proposed al-
the tolerance since they are sharp corners compared to the others. gorithm is much less than the machining (motion) time of 10.738 s, it is
Considering about the vibration of the beams as shown in Figs. 24(b) considered that the developed algorithm can also be executed in real-
and 26(b), they cannot be observed in both methods due to the FIR time.
filtering. As with the total motion time shown in Figs. 24(a) and 26(a),
they are both much faster than the P2P motion but slower than the non- 5. Conclusions
stop motion generated by the commercial NC system of the machine
tool. Moreover, the final motion time of the proposed technique This research has presented a novel non-stop real-time interpolation
T =10.738 s is much faster than that without block splitting, i.e. scheme for short-segmented discrete tool-paths. It has shown that FIR-
15
T. Hayasaka, et al. Precision Engineering 59 (2019) 1–17
Fig. 25. (a) Original tool-path (G-lines) overlaid with the interpolated trajectory and (b) measured cornering errors for proposed technique with both feedrate
reduction and block splitting.
filtering based interpolation can be employed to interpolate short-seg- advantage becomes even more pronounced along longer tool-paths. As
mented tool-paths within user defined error tolerances and generate compared to the commercial/state-of-the-art high-speed interpolation
rapid feed motion. The proposed method completely eliminates the technique, the proposed technique composed of the optimum feedrate
need of geometry-based smoothing strategies to generate a smooth reduction and the block splitting can constrain the blending errors for
motion. Instead, FIR filter characteristics and tangential feedrate is used short-segmented tool-paths with minimum elongation of machining
to control the blending errors. Experimental validation has been con- time. It can be concluded that the proposed algorithm for short-seg-
ducted on a commercial machine tool and shows that the proposed mented tool-paths realizes all of the practical requirements, i.e. vibra-
technique can generate accurate and rapid feed motion while avoiding tion avoidance, high accuracy, and short machining time, which could
unwanted vibrations. As compared to the P2P-based technique, the not be achieved by any conventional algorithms.
overall machining (motion) time is reduced by 83%. Notice that this
16
T. Hayasaka, et al. Precision Engineering 59 (2019) 1–17
Fig. 26. (a) Feedrate profile and (b) measured vibration for proposed technique with both feedrate reduction and block splitting.
17