The present invention relates to a tool path generation method and device for machining a workpiece with a machine tool.
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.
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.
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.
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
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
In (b) of
In
In (c) of
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
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.
Number | Date | Country | Kind |
---|---|---|---|
2009-250638 | Oct 2009 | JP | national |
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.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2010/069762 | 10/29/2010 | WO | 00 | 4/30/2012 |