TOOL PATH GENERATION METHOD AND DEVICE

Information

  • Patent Application
  • 20120215334
  • Publication Number
    20120215334
  • Date Filed
    October 29, 2010
    14 years ago
  • Date Published
    August 23, 2012
    12 years ago
Abstract
A tool path generation device for machining a workpiece with a machine tool including a reading and interpreting portion which reads out a tool path from a machining program, a target coordinate value calculating portion which sets a plurality of target points at equal intervals on the read out tool path, and a curve approximation calculating portion which generates a tool path based on the plurality of target points, so as to obtain a smooth machined surface without formation of step differences between adjacent tool paths.
Description
FIELD OF THE INVENTION

The present invention relates to a tool path generation method and device for machining a workpiece with a machine tool.


BACKGROUND OF THE INVENTION

A machining program includes movement instructions for feed axes of a machine tool. The movement instructions include information on positions. A tool is made to move relative to a workpiece at a predetermined speed up to a predetermined position so that the workpiece is machined to a predetermined shape. The path of movement of the tool, that is, the tool path, is prepared by converting the CAD data which is the information of the workpiece drawings, to line information by a CAM system. The machining program which is prepared by the CAM system includes coordinate values of destinations of movement for each block. In this Description, the coordinate values of the movement instructions of the machining program are called “block end points”.


In recent years, due to improvements in the operational performance of machine tools, machine tools which operate faithfully in accordance with machining programs have become the norm. If using such a machine tool for machining, the path of movement of a tool, which moves in a bent line, is directly transferred to the machined surface of the workpiece so the desired smooth machined surface sometimes cannot be obtained. Further, if a tool moves at a high speed along a tool path including an arc or curve approximated by a bent line, rapid changes in acceleration occur at the feed axes at the block end points, and therefore, higher speed machining is obstructed. As methods for solving these problems, a smoothing technique where the CAM system or a control device of the numerical control machine tool replaces the tool path of the machining program with an NURBS able to be expressed by a numerical formula or other approximation curve for machining is known.



FIG. 5 shows an example of a tool path which is approximated in curve by the smoothing technique. In the approximation in curve, there is a characteristic in which the path of the approximation curve changes greatly due to slight differences in the degree of bending of the tool path, coordinate values of the block end points, and distances of line segments between adjacent block end points. For this reason, when machining a curved surface, the adjacent surrounding tool paths may become misaligned and form step differences between adjacent tool paths, and therefore, a smooth machined surface is not obtained. Here, “adjacent tool paths” are tool paths separated by the distance of the pick feed in reciprocating machining or contour machining.


An example of the related art of smoothing in which a smooth machined surface is obtained without formation of step differences between adjacent tool paths is disclosed in Patent Literature 1. Patent Literature 1 relates to a numerical control system designed to suppress the formation of step differences between tool paths and to machine a smooth curved surface in the pick feed direction as well. In paragraph no. 0019, there is a description which explains the specific configuration of a means for solution which is described in paragraph no. 0005, that is, “that is, the present embodiment detects the line segment connecting the adjacent paths of the surrounding paths Pi−1 and Pi+1 the closest in distance to the line segment which connects the adjacent point Pi,j and point Pi,j+1 of the path Pi so as to detect the curved parts of the surrounding paths close to the curve passing through the adjacent point Pi,j and point Pi,j+1 of the path Pi, and uses the intermediate point position f(½) of the smooth curve f(t) which passes through the adjacent point Pi,j and point Pi,j+1 and the positions g(tq) and h(tr) on the curve corresponding to the positions of the feet of the vertical lines at the smooth curves g(t) and h(t) which pass through the points at the two ends of the closest line segment detected at the surrounding paths so as to weight the position to insert the auxiliary point PjH between the point Pi,j and the point Pi,j+1. Further, the present embodiment regards the inserted auxiliary point as an instruction point and calculates a smooth curve of the path Pi so that the paths smoothly continue considering the curves of the paths Pi−1 and Pi+1 around the path Pi.”


Patent Literature 1: Japanese Unexamined Patent Publication No. 2000-353006.


SUMMARY OF INVENTION

The method disclosed in Patent Literature 1 has the problem that, even if the original tool path is the same, a tool path ends up changing due to the adjacent paths. It is an object of the present invention to provide a tool path generation method and device that, if the original tool path is the same, the generated tool path becomes the same while it is possible so as to obtain a smooth machined surface without the formation of step differences between adjacent tool paths.


To achieve this object, according to the present invention, there is provided a tool path generation method for machining a workpiece with a machine tool, which includes reading out a tool path for machining a workpiece from a machining program, setting a plurality of target points at equal intervals on the read out tool path, calculating an approximation curve based on the plurality of target points, and generating a tool path along the approximation curve.


Further, according to the present invention, there is provided a tool path generation method for machining a workpiece with a machine tool, which includes reading out a tool path for machining a workpiece from a machining program, setting a plurality of target points at equal intervals on the read out tool path, calculating average coordinates of adjacent target points, and generating a tool path by connecting the average coordinates.


Further, according to the present invention, there is provided a tool path generation method wherein the target points are set so that linear distances between adjacent target points or distances on the tool path between adjacent target points become equal.


Further, according to the present invention, there is provided a tool path generation device for machining a workpiece with a machine tool, which includes a reading and interpreting portion reading out a tool path from a machining program, a target value calculating portion setting a plurality of target points at equal intervals on the tool path, and a calculating portion generating a tool path from the plurality of target points.


Further, according to the present invention, there is provided a tool path generation device wherein the calculating portion is a curve approximation calculating portion calculating an approximation curve for the plurality of target points to generate a tool path or an average coordinate calculating portion calculating average coordinates of adjacent pluralities of target points to generate a tool path.


As explained above, according to a tool path generation method and device of the present invention, a plurality of target points at equal intervals on a tool path is set, and an approximation curve or average coordinates is calculated from the plurality of target points to generate a tool path. Therefore, the same tool path is generated if the original tool path is the same, and it is possible to obtain a smooth machined surface without the formation of step differences between adjacent tool paths of similar original tool paths.





BRIEF DESCRIPTION OF DRAWINGS


FIG. 1 is a block diagram showing the configuration of principal parts of a tool path generation device of the present invention.



FIG. 2 is a view which showing one example of a tool path generation method.



FIG. 3 is a view showing another example of a tool path generation method.



FIG. 4 is an explanation view showing the state where no step difference arises at adjacent tool paths.



FIG. 5 is a explanation view showing one example where a step difference arises at adjacent tool paths.





DETAILED DESCRIPTION OF THE INVENTION

A tool path generation device of the present invention is not limited to the control device 15 which is used together with the numerical control machine tool 10 which is shown in this specification. It may also be used for a CAM system which prepares a machining program based on the CAD data of a workpiece, a numerical control machine tool which has a built-in control device, or a personal computer. The control device 15 can read in a machining program which is prepared by a CAM system, then perform smoothing to generate a tool path, and use the generated tool path to rewrite the machining program 20. The rewritten machining programs 25A and 25B are stored in the memory in the system and can be read out for use in another machine tool or partially edited in contents of the machining programs. Note that, it is also possible to configure the system in a manner not provided with the function of rewriting the machining program or the function of storing the machining program. The control device can be applied to a vertical machining center which has a vertical spindle or a horizontal machining center which has a horizontal spindle or other machine tool.


As shown in FIG. 1, the control device 15 of the present embodiment is provided with a smoothing executing portion 30 which processes the block end points of movement instructions of the machining program 20 for smoothing them. The smoothing executing portion 30 has a program reading and interpreting portion 32 which reads out a tool path from the machining program 20, a target coordinate value calculating portion 34 which sets a plurality of target points at equal intervals on the read out tool path, a curve approximation calculating portion 36 which processes the plurality of target points to smooth them by curve approximation, and an average coordinate calculating portion 38 which is provided in parallel with the curve approximation calculating portion 36 and which calculates the average coordinates from a plurality of adjacent target points to perform smoothing. The processing type switch units 35 and 37 can select one of the curve approximation calculating portion 36 and the average coordinate calculating portion 38.


The smoothing executing portion 30 can output the machining program 25A or machining program 25B which is written based on the generated tool path to the numerical control machine tool 10. The program reading and interpreting portion 32 has the function of separating cutting feed instructions and machining instructions other than the cutting feed instructions from the machining program 20 prepared by the CAM. The machining instructions other than the cutting feed instructions are transmitted to the downstream side of the curve approximation calculating portion 36 or downstream side of the average coordinate calculating portion 38. The machining program 20 is written based on the machining instructions and the generated information of the tool paths.


The program reading and interpreting portion 32 outputs linear interpolation instructions or curve interpolation instructions, which are movement instructions for cutting feed among the movement instructions of the feed axes of the machining program 20, to the target coordinate value calculating portion 34 for the smoothing. That is, the program reading and interpreting portion 32 has the function of recognizing cutting feed and fast feed, and is configured to perform the smoothing on only the movement instructions of the cutting feed for performing cutting. In the present embodiment, although smoothing is not performed for movement instructions of the feed axes for fast feed, smoothing may be performed for fast feed instructions in accordance with need.


In FIG. 2, an example of a tool path ATP1 which is generated by the control device 15 of the present embodiment is shown. The generation method of the tool path ATP1 shown in (c) of FIG. 2 includes a step of reading movement instructions of the feed axes from a machining program 20 prepared by the CAM system, a step of setting a plurality of target points pi at equal intervals on a bent line (tool path) TP connecting block end points bi of the movement instructions, and a step of calculating an approximation curve for the plurality of target points pi and generating the tool path ATP1 along this approximation curve.


In (b) of FIG. 2, a plurality of target points pi which are set at equal intervals on the tool path by the target coordinate value calculating portion 34 is shown. As shown in (a) of FIG. 2, the bent line TP has five line segment regions due to five block end points bi. The distances of the line segments between the adjacent block end points bi differ from each other. In (b) of FIG. 2, the bent line is divided by the plurality of target points pi which are set by the target coordinate value calculating portion 34 so that the distances (ways) on the tool path between adjacent target points pi become equal. The bent line may also is divided so that the linear distances between adjacent target points pi become equal. The number of target points pi is preferably made greater than the number of the block end points bi. The larger the number of target points pi, the closer to the original tool path the tool path ATP1 can be generated. (c) of FIG. 2 shows the tool path ATP1 which is generated by the curve approximation calculating portion 36 from a plurality of target points pi. For the curve approximation, NURBS curve approximation, Bezier curve approximation, B-spline curve approximation, etc. may be applied. In the curve approximation of the present invention, the block end points bi of the movement instructions are not referred to, and coordinate values of the target points pi set so that the distances on the tool paths between the adjacent target points pi or the linear distances between adjacent target points pi become constant are used for smoothing. A curve approximated tool path ATP1, as shown in FIG. 4, is generated without step differences between adjacent tool paths Ei−1, Ei, and Ei+1. For this reason, smooth curved surfaces with no step differences are formed at the machined surfaces of the workpiece.


In FIG. 3, another example of a tool path which is generated by a control device 15 of the present embodiment is shown. The generation method of a tool path ATP2 shown in (c) of FIG. 3 includes a step of reading movement instructions of feed axes from a machining program 20 which was prepared by the CAM system, a step of setting a plurality of target points pi at equal intervals on a bent line (tool path) TP by connecting block end points bi of the movement instructions, and a step of calculating average coordinates of a plurality of adjacent target points pi and generating a tool path ATP2 by connecting these average coordinates.


In (c) of FIG. 3, the tool path ATP2 smoothed by the average coordinate calculating portion 38 is shown. The line of (a) of FIG. 3 is the same as the line of (a) of FIG. 2, while the line of (b) of FIG. 3 is the same as the line of (b) of FIG. 2. In the average coordinate calculating portion 38, the simple average or weighted average method is used to calculate the average coordinates qi from the coordinate values of the plurality of target points pi. With the simple average method, the coordinate values (x, y, z) of the three points pi−1, pi, pi+1) of, for example, the target point pi and the target points before and after it are averaged to calculate the coordinate values (x, y, z) of the single average coordinate qi. By repeatedly calculating the simple average for the coordinate values (x, y, z) of all of the target points pi, the coordinate values (x, y, z) of all of the average coordinates qi are calculated. The weighted average method is the method of calculating by weighting the coordinate values (x, y, z) of the target points pi which are averaged, as shown in the following formula. In this method, the closer a point in distance from the target point pi, the larger the coefficient that is multiplied with the coordinate values of the target point for calculation.







q
i

=



(

p

i
-
2


)

+

2


(

p

i
-
1


)


+

3


(

p
i

)


+

2


(

p

i
+
1


)


+

(

p

i
+
2


)


9





Further, by adjusting the number of target points for averaging, it is possible to adjust the extent of smoothing. When increasing the number of target points, the extent of smoothness is increased and a smooth tool path can be obtained. When reducing the number of target points, the extent of smoothness is decreased and a relatively sharp tool path close to the target points pi can be obtained. Whether to carry out the simple average or carry out the weighted average is determined considering the extent of error in shape of the tool path, speed of calculation of the apparatus, etc. As shown in (c) of FIG. 3, the smoothed tool path ATP2 is smoothly generated without step differences between the adjacent tool paths in the same way as the tool path ATP1. For this reason, the machined surface of the workpiece can be formed with a smooth curved surface with no step differences.


In this way, according to the control device 15 of the present embodiment, by setting a plurality of target points pi at equal intervals on the tool path TP of a machining program prepared by the CAM system and calculating an approximation curve or average coordinates from the plurality of target points pi to generate the tool paths ATP1 and ATP2, it is possible to obtain a smooth machined surface without formation of step differences between adjacent tool paths.


Further, the obtained tool paths ATP1 and ATP2 become smoother in changes of curvature and rapid changes in acceleration can be suppressed. Therefore, the impact at the time of machining is eased, so the fluctuations in the cutting resistance become smaller and the quality of the machined surface can be raised.


Note that, the present invention is not limited to the above embodiments. It is possible to make various changes within the range not outside the framework of the present invention.


REFERENCE SIGNS LIST




  • 10 Numerical Control Machine Tool


  • 15 Control Device


  • 30 Smoothing Executing Portion


  • 32 Program Reading And Interpreting Portion


  • 34 Target Coordinate Value Calculating Portion


  • 36 Curve Approximation Calculating Portion


  • 38 Average Coordinate Calculating Portion

  • ATP1, ATP2 Smoothed Tool Path


Claims
  • 1. A tool path generation method for machining a workpiece with a machine tool comprising: reading out a tool path for machining a workpiece from a machining program;setting a plurality of target points at equal intervals on the read out tool path;calculating an approximation curve based on the plurality of target points; andgenerating a tool path along the approximation curve.
  • 2. A tool path generation method for machining a workpiece with a machine tool comprising: reading out a tool path for machining a workpiece from a machining program;setting a plurality of target points at equal intervals on the read out tool path;calculating average coordinates of adjacent target points, and generating a tool path by connecting the average coordinates.
  • 3. The tool path generation method according to claim 1, wherein the target points are set so that linear distances between adjacent target points or distances on the tool path between adjacent target points become equal.
  • 4. A tool path generation device for machining a workpiece with a machine tool comprising: a reading and interpreting portion reading out a tool path from a machining program;a target value calculating portion setting a plurality of target points at equal intervals on the tool path; anda calculating portion generating a tool path from the plurality of target points.
  • 5. The tool path generation device according to claim 4, wherein the calculating portion is a curve approximation calculating portion calculating an approximation curve for the plurality of target points to generate a tool path or an average coordinate calculating portion calculating average coordinates of adjacent pluralities of target points to generate a tool path.
  • 6. The tool path generation method according to claim 2, wherein the target points are set so that linear distances between adjacent target points or distances on the tool path between adjacent target points become equal.
Priority Claims (1)
Number Date Country Kind
2009-250638 Oct 2009 JP national
REFERENCE TO RELATED APPLICATIONS

This application is the national stage under 35 USC 371 of International Application No. PCT/JP2010/069762, filed Oct. 29, 2010, which claims priority from Japanese Patent Application No. 2009-250638, filed Oct. 30, 2009, the entire contents of which are incorporated herein by reference.

PCT Information
Filing Document Filing Date Country Kind 371c Date
PCT/JP2010/069762 10/29/2010 WO 00 4/30/2012