The present invention relates to a tool path generation apparatus, a tool path generation method, a program for providing function as the tool path generation apparatus, and a storage medium having the program stored therein, and more specifically relates to a tool path generation apparatus and a tool path generation method for generating a tool path, for a tool, for moving the rotating tool on a plane orthogonal to a rotation axis of the rotating tool to continuously cut a cut part of a work piece at a predetermined pitch along the plane, a program for providing function as the tool path generation apparatus, and a storage medium having the program stored therein.
Conventionally, in, for example, machining (pocket machining) of cutting out a region of a work piece, a path P that extends around so as to be offset from an outer contour B of the region as shown in
Thus, in order to stabilize the tool load, a path generation method as disclosed in, for example, Patent Document 1 is known. In this method, a path on which an angle of contact between a machining part and a cutting tool is equal to or less than a predetermined angle is calculated. However, a calculation to obtain a path, on which the angle of contact is equal to or less than the predetermined angle, in accordance with a shape as appropriate is complicated, and the generated path may not be a path providing good machining efficiency since the angle of contact is prioritized.
Also, as shown in
Moreover, it is possible to generate a spiral path by extending a spiral from a machining start point to an outer contour of a machining range. However, if the outer contour is not a circle, it is difficult to generate a spiral that fills the entire machining range. In particular, when the machining start point is located at one side in the machining range, there is impossibility with a spiral having a uniform pitch, and there is no choice but to change the pitch or to newly perform machining by another method after machining with the uniform pitch, which is inefficient.
[PATENT DOCUMENT 1] US Patent Application Publication No. 2011/0178629
An object of the present invention, in view of such conventional circumstances, is to provide a tool path generation apparatus and a tool path generation method for generating, in a simple manner, a path with which a tool load is prevented from being excessive, regardless of a shape, and machining efficiency is high, a program for providing function as the tool path generation apparatus, and a storage medium having the program stored therein.
In order to achieve the above object, a tool path generation apparatus according to the present invention is characterized by being configured to generate a tool path, for a tool, for moving the rotating tool on a plane orthogonal to a rotation axis of the rotating tool to continuously cut a cut part of a work piece at a predetermined pitch along the plane, the tool path generation apparatus including: a tool movement limit line setting section configured to inwardly offset a machining range based on shape data of the cut part by at least a radius of the tool to set a tool movement limit line; a contour line setting section configured to set a contour line of a portion that is to be cut by the tool; a machining path generation section configured to offset the contour line by a difference between the radius of the tool and the pitch and extract a portion located at an offset contour line and within an interior of the tool movement limit line to generate a cutting path, and impart return paths having a circular arc shape to both ends of the cutting path, to generate a machining path; an unmachined portion update section configured to remove a tool movement region formed by the tool moving according to the machining path, from an unmachined portion in the machining range to update the unmachined portion; and a connection path generation section configured to generate a connection path that connects the machining path to an immediately previously generated machining path, wherein, until it becomes impossible to generate the machining path within the interior of the tool movement limit line, the unmachined portion update section updates the unmachined portion on the basis of the machining path, the contour line setting section newly sets the contour line in the updated unmachined portion, the machining path generation section generates a next machining path on the basis of the newly set contour line, and the connection path generation section generates a connection path that connects the generated next machining path and the machining path.
According to the above configuration, the machining path generation section offsets the contour line of the portion that is to be cut by the tool, by the difference between the radius of the tool and the pitch, and extracts the portion located at the offset contour line and within the interior of the tool movement limit line to generate the cutting path. The portion that is to be cut by the tool is an unmachined portion that has not been cut yet in the machining range, and the contour line thereof indicates a portion that should be cut next. Thus, the cutting path is generated always on the basis of the unmachined portion. In addition, since the portion located at the offset contour line and within the interior of the tool movement limit line is extracted and set as the cutting path, the tool moving on the cutting path does not interfere with the work piece. Also, since the machining path generation section imparts the return paths having a circular arc shape to both ends of the cutting path to generate the machining path, the path can be smooth without a sudden path change, and a tool load does not excessively (suddenly) increase and is stabilized. Furthermore, since the unmachined portion update section removes the tool movement region formed by the tool moving according to the generated machining path, from the unmachined portion in the machining range to update the unmachined portion, the contour line is always based on the unmachined portion. Therefore, it is made possible to generate a tool path that fills a major part of the machining range and provides good machining efficiency, by updating the unmachined portion on the basis of the machining path, newly setting the contour line in the updated unmachined portion, generating the next machining path on the basis of the newly set contour line, and generating the connection path that connects the generated next machining path and the machining path, until it becomes impossible to generate the machining path within the interior of the tool movement limit line.
When a plurality of the offset contour lines are separately generated by the tool movement limit line, the machining path generation section may select any of the plurality of the generated offset contour lines and may generate the next machining path. Accordingly, for example, even with a shape in which a branch occurs in the unmachined portion, generation of the tool path can be continued, and a tool path providing higher machining efficiency can be generated.
The connection path generation section may generate, as the connection path, a line segment that connects the return path of the machining path and a return path of the next machining path such that directions in which the tool advances on the cutting path of the machining path and a cutting path of the next machining path are a certain direction. Accordingly, the path can be smooth without a sudden path change, and a tool load can be stabilized. In this case, the line segment is desirably a tangential line that is in contact with the return path of the machining path and the return path of the next machining path. Accordingly, the machining paths can be connected in a shortest distance, and the machining efficiency improves.
When an extension portion that extends through an outside of the tool movement limit line occurs in the connection path, the connection path generation section may correct the extension portion of the connection path such that the extension portion extends along the tool movement limit line. In addition, when an interference portion that interferes with the unmachined portion occurs in the connection path, the connection path generation section may correct the interference portion of the connection path such that the interference portion extends along a bypass line that is offset from the unmachined portion by the radius of the tool. By these corrections, the tool moving on the connection path is prevented from interfering with the work piece.
When the return path cannot be imparted to the next machining path within the interior of the tool movement limit line, the machining path generation section may reduce a radius of the return path such that the return path falls within the interior of the tool movement limit line. Accordingly, a remaining portion to be cut can be reduced, and the machining efficiency further improves.
The tool path generation apparatus may further include: an initial unmachined portion setting section configured to set the machining range as an initial unmachined portion; and a machining start path generation section configured to generate a machining start path from which cutting the initial unmachined portion is started, and when the cut part has a shape having an opening at at least a part of an outer periphery on the plane, the machining start path generation section may offset a contour line of the initial unmachined portion corresponding to the opening by the difference between the radius of the tool and the pitch, and may extract a portion located at an offset contour line and within the interior of the tool movement limit line, to generate the machining start path, and the unmachined portion update section may remove the tool movement region from the initial unmachined portion according to the machining start path to update the unmachined portion. Accordingly, with a shape (an open pocket) having an opening at at least a part of an outer periphery, cutting with a predetermined pitch (an amount of cutting-in) can be started from the opening, and a smooth tool path can be generated.
In addition, the tool path generation apparatus may further include: an initial unmachined portion setting section configured to set the machining range as an initial unmachined portion; and a machining start path generation section configured to generate a machining start path from which cutting the initial unmachined portion is started, and when the cut part includes an introduction portion through which the tool is introduced, and has a shape having a closed outer periphery on the plane, the machining start path generation section may set, as the machining start path, a spiral having the pitch and extending from a portion corresponding to the introduction portion until coming into contact with the tool movement limit line, and the unmachined portion update section may remove the tool movement region from the initial unmachined portion according to the machining start path to update the unmachined portion. Accordingly, with a shape (a closed pocket) having a closed outer periphery, cutting with a predetermined pitch can be started from a machining start position, and a next machining path can be generated successively after the tool comes into contact with the machining range, which is efficient.
Moreover, in order to achieve the above-described object, a tool path generation method according to the present invention is characterized by a method for generating a tool path, for a tool, for moving the rotating tool on a plane orthogonal to a rotation axis of the rotating tool to continuously cut a cut part of a work piece at a predetermined pitch along the plane, the tool path generation method including: a tool movement limit line setting step of inwardly offsetting a machining range based on shape data of the cut part by at least a radius of the tool to set a tool movement limit line; a contour line setting step of setting a contour line of a portion that is to be cut by the tool; a machining path generation step of offsetting the contour line by a difference between the radius of the tool and the pitch and extracting a portion located at an offset contour line and within an interior of the tool movement limit line to generate a cutting path, and imparting return paths having a circular arc shape to both ends of the cutting path, to generate a machining path; an unmachined portion update step of removing a tool movement region formed by the tool moving according to the machining path, from an unmachined portion in the machining range to update the unmachined portion; and a connection path generation step of generating a connection path that connects the machining path to an immediately previously generated machining path, wherein, until it becomes impossible to generate the machining path within the interior of the tool movement limit line, repeatedly, the unmachined portion is updated by the unmachined portion update step on the basis of the machining path, the contour line in the updated unmachined portion is newly set by the contour line setting step, a next machining path is generated by the machining path generation step on the basis of the newly set contour line, and a connection path that connects the generated next machining path and the machining path is generated by the connection path generation step.
In addition, any tool path generation apparatus described above is realized by a computer program for causing a computer to function as any tool path generation apparatus described above, and the computer program is stored in a storage medium.
In order to achieve the above-described object, a program for providing function as a tool path generation apparatus according to the present invention is characterized by a program for causing a computer to function as a tool path generation apparatus for generating a tool path, for a tool, for moving the rotating tool on a plane orthogonal to a rotation axis of the rotating tool to continuously cut a cut part of a work piece at a predetermined pitch along the plane, the program causing the computer to function as: tool movement limit line setting means for inwardly offsetting a machining range based on shape data of the cut part by at least a radius of the tool to set a tool movement limit line; contour line setting means for setting a contour line of a portion that is to be cut by the tool; machining path generation means for offsetting the contour line by a difference between the radius of the tool and the pitch and extracting a portion located at an offset contour line and within an interior of the tool movement limit line to generate a cutting path, and imparting return paths having a circular arc shape to both ends of the cutting path, to generate a machining path; unmachined portion update means for removing a tool movement region formed by the tool moving according to the machining path, from an unmachined portion in the machining range to update the unmachined portion; and connection path generation means for generating a connection path that connects the machining path to an immediately previously generated machining path, wherein, until it becomes impossible to generate the machining path within the interior of the tool movement limit line, the unmachined portion update means updates the unmachined portion on the basis of the machining path, the contour line setting means newly sets the contour line in the updated unmachined portion, the machining path generation means generates a next machining path on the basis of the newly set contour line, and the connection path generation means generates a connection path that connects the generated next machining path and the machining path.
In order to achieve the above-described object, a computer-readable storage medium having stored therein a program for providing function as a tool path generation apparatus according to the present invention is characterized by a computer-readable storage medium having stored therein a computer program for causing a computer to function as a tool path generation apparatus for generating a tool path, for a tool, for moving the rotating tool on a plane orthogonal to a rotation axis of the rotating tool to continuously cut a cut part of a work piece at a predetermined pitch along the plane, the computer program causing the computer to function as: tool movement limit line setting means for inwardly offsetting a machining range based on shape data of the cut part by at least a radius of the tool to set a tool movement limit line; contour line setting means for setting a contour line of a portion that is to be cut by the tool; machining path generation means for offsetting the contour line by a difference between the radius of the tool and the pitch and extracting a portion located at an offset contour line and within an interior of the tool movement limit line to generate a cutting path, and imparting return paths having a circular arc shape to both ends of the cutting path, to generate a machining path; unmachined portion update means for removing a tool movement region formed by the tool moving according to the machining path, from an unmachined portion in the machining range to update the unmachined portion; and connection path generation means for generating a connection path that connects the machining path to an immediately previously generated machining path, wherein, until it becomes impossible to generate the machining path within the interior of the tool movement limit line, the unmachined portion update means updates the unmachined portion on the basis of the machining path, the contour line setting means newly sets the contour line in the updated unmachined portion, the machining path generation means generates a next machining path on the basis of the newly set contour line, and the connection path generation means generates a connection path that connects the generated next machining path and the machining path.
According to the features of the above-described tool path generation apparatus, the above-described tool path generation method, the above-described program for providing function as the tool path generation apparatus, and the above-described storage medium having the program stored therein according to the present invention, it is made possible to generate, in a simple manner, a path with which a tool load is prevented from being excessive, regardless of a shape, and machining efficiency is high.
Other objects, configurations, and effects of the present invention will become apparent from the following description of embodiments of the invention.
Next, the present invention will be described in further detail with appropriate reference to the accompanying drawings.
As shown in
As shown in
The dimension condition setting section 11a sets a pitch p (an amount of cutting-in with respect to a cut part 101 in a tool radial direction), a radius r2 of each return path 62, and a tool diameter d of a selected cutting tool T, as cutting conditions. These conditions are set by being inputted through the input device 5, and are used for processing in each section described below.
The tool movement limit line setting section 11b inwardly offsets a machining range 20 based on shape data of the cut part 101 by a radius r1 of the tool T to set a tool movement limit line 30. The machining range 20 is shape data of the cut part 101 extracted from CAD data of a work piece 100, and is a portion (region) that should be cut away from a raw material by cutting. In an example of the work piece 100 shown in
In the example of
The initial unmachined portion setting section 11c sets the above-described machining range 20 as an initial unmachined portion 40′. An unmachined portion 40 indicates a portion of the machining range 20 that should be cut now. That is, the initial unmachined portion 40′ is identical to the machining range 20. The unmachined portion 40 is changeable so as to be updated and reduced by the unmachined portion update section 14 described later.
The machining start path setting section 11d generates the machining start path 50 from which cutting the initial unmachined portion 40′ is started. Here, in the case where the cut part 101 has a shape having the opening 103 at at least a part of the outer periphery on a plane orthogonal to a rotation axis of the tool T (
The contour line setting section 12 sets a contour line 45 of a portion that is to be cut by the tool T. As shown in
The machining path generation section 13 generates the cutting path 61 within the interior of the tool movement limit line 30 and imparts the return paths 62 having a circular arc shape to both ends of the cutting path 61 to generate the machining path 60. The cutting path 61 mainly indicates a path for cutting the cut part 101, and each return path 62 mainly indicates a path in order for the tool to move from the cutting path 61 to the next cutting path 61. Since the machining path 60 is generated within the interior of the tool movement limit line 30, the final shape of the work piece 100 is not impaired. In addition, it is not necessary to lift the tool T moving on the tool path TP, and the machining efficiency is also good.
As shown in
The return path generation section 13b imparts the return paths 62 having a circular arc shape to both ends of the generated cutting path 61 in the direction in which the contour line 45 is offset. As shown in
In addition, when the return path generation section 13b cannot impart a return path 62′ to a next cutting path 61′ within the interior of the tool movement limit line 30, the return path generation section 13b reduces a radius r2 of the return path 62′ such that the return path 62′ falls within the interior of the tool movement limit line 30. For example, in an example of
The unmachined portion update section 14 removes a tool movement region W formed by the tool T moving according to the machining start path 50 or the machining path 60, from the unmachined portion 40 in the machining range 20 to update the unmachined portion 40. Accordingly, the updated unmachined portion 40 indicates a region that should be cut with the next machining path 60 and the subsequent machining paths 60. That is, the unmachined portion 40 does not include the portion that has been cut (machined), the next machining path 60 is generated on the basis of the unmachined portion 40, and thus machining the same portion twice can also be prevented.
The connection path generation section 15 generates the connection path 70 that connects the presently generated machining path 60 to the immediately previously generated machining path 60. The connection path 70 is generated as a line segment that connects the return path 62 of the machining path 60 and the return path 62 of the next machining path 60 such that directions in which the tool T advances on the cutting path 61 of the presently generated machining path 60 and the cutting path 61 of the immediately previously generated machining path 60 coincide with each other. As shown in
However, the connection path 70 may be extended to the outside of the tool movement limit line 30. As shown in
Here, a tool path generation method will be described with reference to
First, in the machining condition setting step S1, the dimension condition setting section 11a sets the pitch p, the radius r2 of each return path, and the tool diameter d (radius r1) of the selected cutting tool T that are inputted through the input device 5. The tool movement limit line setting section 11b sets the machining range 20 on the basis of the read shape data (CAD data) of the cut part 101 of the work piece 100 (
Next, in the machining start path generation step S2, the machining start path setting section 11d generates the machining start path 50 from which cutting the initial unmachined portion 40′ that is set by the initial unmachined portion setting section 11c is started. In the case where the cut part 101 is an open pocket, the machining start path setting section 11d generates the machining start path 50 on the basis of the initial unmachined portion 40′ corresponding to the opening 103 (
Next, in the unmachined portion update step S3, the unmachined portion update section 14 removes the tool movement region W formed by the tool T moving according to the present machining path generated by the machining start path setting section 11d or the machining path generation section 13, from the unmachined portion 40 to update the unmachined portion 40 (
Next, in the unmachined portion contour line setting step S4, the contour line setting section 12 newly sets a contour line 45 of a portion to be cut by the tool T in the unmachined portion 40 updated by the unmachined portion update section 14 (
In the machining path generation step S6, the machining path generation section 13 generates, as the cutting path 61, the portion 47 extracted in the previous unmachined portion contour line setting step S4 (
Next, in the connection path generation step S7, the connection path generation section 15 generates the connection path 70 that connects the present machining path 60 generated by the machining path generation section 13 to the immediately previously generated machining path 60, to connect these machining paths 60 (
Then, the processing returns to the above-described unmachined portion update step S3, and the unmachined portion update step S3 to the connection path generation step S7 are sequentially repeatedly performed (
Lastly, possibilities of other embodiments of the present invention will be mentioned. It should be noted that the same members as those in the above-described embodiment are designated by the same reference characters.
In the above-described embodiment, the example where the unmachined portion 40 is not separately generated has been described. However, for example, with a shape as shown in
In the above-described embodiment, generation of the tool path TP in the case where the cut part 101 is an open pocket has been described. However, a shape (a closed pocket) having a closed outer periphery on the plane orthogonal to the rotation axis of the tool T as shown in
In the case of the closed pocket, the machining start path generation section 11c generates, as the machining start path 50, a spiral 51 that spreads outward at the pitch p from a portion 41′ of the initial unmachined portion 40′ corresponding to the introduction portion 104 until coming into contact with the tool movement limit line 30 (
In each embodiment described above, generation of the tool path TP in the machining range 20 having a rectangular shape has been described. This shape is merely an example. The shape of the machining range 20 (the shape of the cut part 101) is not limited, and, even with the machining range 20 having an undefined shape, generation of the tool path TP is possible similarly. In addition, in the example of
In the above-described embodiment, the machining range 20 is inwardly offset by the radius r1 of the tool T to set the tool movement limit line 30. However, the tool movement limit line 30 is not limited thereto, and may be offset, for example, by a machining allowance for a post-step in addition to the radius r1 of the tool T.
In the above-described embodiment, the computer program that causes a computer to function as the tool path generation apparatus is stored in the memory 4b, and the CPU 4a executes this program. However, this program and data can be previously stored in an external storage device such as a magnetic disk device or an optical disk device and can be loaded into the memory 4b to be executed. In addition, this program and data can be stored in a computer-readable storage medium, and this program can be executed via a reading device. Examples of the storage medium include optical disks such as CD-ROM, DVD, and Blu-ray (registered trademark) disk, magneto-optical disks, and flash memories such as USB memory and SD card, etc.
Number | Date | Country | Kind |
---|---|---|---|
2013-190839 | Sep 2013 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2014/072253 | 8/26/2014 | WO | 00 |