The present invention relates to a tool-path generation apparatus and a tool-path generation method that can reduce a machining time and extend the lifetime of a tool by combining a pocket part that is defined by an entire machining-area shape defined on a two-dimensional plane and a depth with a spiral path and a trochoidal path.
As a tool-path generation apparatus for machining a concave part that is defined by an entire machining-area shape defined on a two-dimensional plane and a depth, that is, a pocket part, a tool-path generation apparatus that generates a spiral machining path for the largest circle part in the entire machining-area shape and automatically generates a trochoidal machining path in which a machining path and a non-machining path are repeated for a part of the entire machining-area shape other than the largest circle has been conventionally known (see, for example, Patent literature 1).
The tool-path generation apparatus described above can suppress a machining load on a tool, and thus has an advantage such that high efficient machining that effectively uses a cutting edge length of a tool can be performed. Particularly in the spiral path, a machining state is maintained and thus machining is performed at a higher efficiency in the spiral path than that in the trochoidal path in which a machining state and a non-machining state are repeated.
Patent Literature 1: Japanese Patent Application Laid-open No. 2002-283118
However, in the conventional technique described above, an efficient spiral path is applied to only the largest circle part in the entire machining-area shape, and thus there is a problem that efficiency improvement by automatically applying a plurality of spiral paths according to the entire machining-area shape cannot be realized.
The present invention has been achieved in view of the above problems, and an object of the invention is to provide a tool-path generation apparatus and a tool-path generation method that can automatically generate a plurality of spiral tool paths according to an entire machining-area shape.
To solve the above described problem, the present invention includes a tool-path generation apparatus that generates a tool path for forming a concave part that is defined by an entire machining-area shape and a depth into a machining material. The tool-path generation apparatus includes: a reference-circle generation unit that extracts a plurality of circular areas that satisfy a preset condition from the entire machining-area shape; a first machining-path generation unit that generates a first tool path for machining the circular areas extracted by the reference-circle generation unit or an area that includes a circumference of the circular areas by using a spiral path and a machining-area shape after spiral machining in which a machining area by the first tool path is removed from the entire machining-area shape; and a second machining-path generation unit that generates a second tool path for machining the machining-area shape after spiral machining.
The tool-path generation apparatus and the tool-path generation method according to the present invention can automatically generate a plurality of spiral tool paths according to an entire machining-area shape, and thus the machining efficiency can be improved.
Exemplary embodiments of a tool-path generation apparatus and a tool-path generation method according to the present invention will be explained below in detail with reference to the accompanying drawings. The present invention is not limited to the embodiments.
The machining-area-shape input unit 1 receives an external input of an entire machining-area shape data that defines the shape of the entire machining-area and stores the received data in the machining-area-shape storage unit 20.
The machining-condition input unit 2 receives external inputs of data such as: the depth of a machining part; a machining method of a hole where spiral machining starts; the radius of a hole; a machining time per hole; the diameter of an end mill tool used for helical machining, spiral machining, and trochoidal machining; parameters for generating a spiral machining path and a trochoidal machining path; a feed speed in a path where machining is performed in a spiral machining path or in a trochoidal machining path; a feed speed in a path where machining is not performed in a trochoidal machining path; and a feed speed in a path between spiral machining paths, and stores the data in the machining-condition storage unit 21. Examples of the machining method of a hole where spiral machining starts include drill machining by a drill tool and helical machining by an end mill tool. Examples of the parameters for generating a spiral machining path and a trochoidal machining path include a cutting amount in a tool radius direction and a contact angle of a tool with respect to a machining material.
The tool-path generation unit 3 includes a spiral-machining-path reference-circle generation unit 4, a hole-machining-path generation unit 5, a spiral-machining-path generation unit 6, a trochoidal-machining-path generation unit 7, a tool-path output unit 8, a spiral-machining-path reference-circle storage unit 22, a trochoidal-machining-area shape storage unit 23, a tool-path storage unit 24, and a control unit 25. The tool-path generation unit 3 controls the order of performing the respective functional units, thereby generating tool paths for hole machining, spiral machining, and trochoidal machining and outputting the tool paths to outside.
The spiral-machining-path reference-circle generation unit 4 serving as a reference-circle generation unit generates, in response to an execution instruction from the control unit 25, circle data that is the reference of a spiral machining path based on the entire machining-area shape data stored in the machining-area-shape storage unit 20 and the machining condition data stored in the machining-condition storage unit 21, and stores the circle data in the spiral-machining-path reference-circle storage unit 22.
The hole-machining-path generation unit 5 generates, in response to an execution instruction from the control unit 25, machining path data for forming a hole where spiral machining starts based on circle data stored in the spiral-machining-path reference-circle storage unit 22 and machining condition data stored in the machining-condition storage unit 21, and stores the machining path data in the tool-path storage unit 24.
The spiral-machining-path generation unit 6 serving as a first machining-path generation unit generates, in response to an execution instruction from the control unit 25, spiral machining path data as a first tool path based on the entire-machining-area shape data stored in the machining-area-shape storage unit 20, the circle data stored in the spiral-machining-path reference-circle storage unit 22, and the machining condition data stored in the machining-condition storage unit 21, and stores the spiral machining path data in the tool-path storage unit 24. Further, the spiral-machining-path generation unit 6 generates data of a machining-area shape after spiral machining serving as a trochoidal machining target, in which a machining-area shape formed by a generated path is removed from the entire machining-area shape, and stores the data in the trochoidal-machining-area shape storage unit 23.
The trochoidal-machining-path generation unit 7 generates, in response to an execution instruction from the control unit 25, trochoidal machining path data as a second tool path based on the data of a machining-area shape after spiral machining stored in the trochoidal-machining-area shape storage unit 23 and the machining condition data stored in the machining-condition storage unit 21, and stores the data in the tool-path storage unit 24.
The tool-path output unit 8 outputs the machining path data stored in the tool-path storage unit 24 to outside in response to an execution instruction from the control unit 25.
The machining-area-shape storage unit 20 stores therein the entire machining-area shape data inputted to the machining-area-shape input unit 1.
The machining-condition storage unit 21 stores therein the machining condition data inputted to the machining-condition input unit 2.
The spiral-machining-path reference-circle storage unit 22 stores therein the circle data generated in the spiral-machining-path reference-circle generation unit 4.
The trochoidal-machining-area shape storage unit 23 stores therein the data of the machining-area shape after spiral machining generated in the spiral-machining-path generation unit 6.
The tool-path storage unit 24 stores therein the machining path data generated in each of the hole-machining-path generation unit 5, the spiral-machining-path generation unit 6, and the trochoidal-machining-path generation unit 7.
The control unit 25 transmits an execution instruction to each of the spiral-machining-path reference-circle generation unit 4, the hole-machining-path generation unit 5, the spiral-machining-path generation unit 6, the trochoidal-machining-path generation unit 7, and the tool-path output unit 8, thereby controlling the operating order of the respective units.
Next, machining condition data is input from outside to the machining-condition input unit 2 and is stored in the machining-condition storage unit 21 (Step S202). The machining condition data is input from outside by an operator operating a keyboard and the like or by a host system (such as a CAM (Computer Aided Manufacturing) device and a numerical controller).
The tool-path generation unit 3 generates circle data that is the reference of a spiral machining path in the spiral-machining-path reference-circle generation unit 4 and stores the data in the spiral-machining-path reference-circle storage unit 22 (Step S203).
As a method of generating circle data, for example, medial axis transform that is generally known can be used. By medial axis transform, a medial axis in which the center points of inscribed circles that are tangent to a given contour shape at two or more points gathers and the radius of the inscribed circle at each point on a center line can be obtained.
At Step S203, circle data is extracted according to the following procedures. (a) An inscribed circle with the largest radius is extracted as a first inscribed circle from a plurality of inscribed circles based on information (specifically, a medial axis and the radius of an inscribed circle) obtained by medial axis transform. (b) Among from a second inscribed circle that is tangent to the contour of the entire machining-area shape at three or more points and a third inscribed circle that does not overlap with the second inscribed circle and is tangent to the contour of the entire machining-area shape at two points, an inscribed circle with the largest radius in inscribed circles that has a radius larger than a predetermined value and does not overlap with the extracted first, second, and third inscribed circles is extracted. (c) As a result of (b) described above, if there is no inscribed circle to be extracted, the extraction process ends, and if there is an inscribed circle to be extracted, the process returns to the procedure (b).
In the procedure (b) described above, an inscribed circle that is tangent to the contour of the entire machining-area shape at three or more points is set as an extraction candidate. This is because the inscribed circle that is tangent to the contour of the entire machining-area shape at three or more points may become an inscribed circle with the largest radius locally. Further, an inscribed circle that does not overlap with an inscribed circle that is tangent to the contour of the entire machining-area shape at three or more points and that is tangent to the contour of the entire machining-area shape at two points is set as an extraction candidate. This is because there is a sufficient space between inscribed circles that are tangent to the contour of the entire machining-area shape at three or more points and by applying spiral machining to an inscribed circle in the space, the efficiency can be improved.
In the procedure (b) described above, an inscribed circle to be extracted is limited to an inscribed circle that has a radius larger than a predetermined value. This is because, to secure a spiral machining allowance, the radius of an inscribed circle needs to be larger, to some extent, than that of a hole from which a spiral machining starts. For example, the predetermined value is calculated as follows by using a radius RH of a hole and a diameter DEM of an end mill tool stored in the machining-condition storage unit 21.
predetermined value=RH+K×DEM (1)
In the above formula (1), K is a constant larger than 0. If K is set to be large, the lower limit value of the radius of an inscribed circle to be extracted becomes large. Therefore, spiral machining can be performed only on an area that has a certain size and the effect of efficiency improvement by spiral machining can be increased. However, if K is too large, the number of inscribed circles that are extracted as candidates is reduced and the effect of efficiency improvement by spiral machining is reduced. Therefore, it is desirable to appropriately set K according to the entire machining-area shape and machining conditions.
In the procedure (b) described above, an inscribed circle to be extracted is limited to an inscribed circle that does not overlap with inscribed circles that have already been extracted. This is because of the following reason. If spiral machining areas overlap with each other, machining is not performed during a subsequent tool movement, resulting in a decrease in the efficiency. However, even if an inscribed circle slightly overlaps with the already extracted inscribed circle, it is presumed that the effect of efficiency improvement by spiral machining is increased. Therefore, whether there is an overlap may be determined by the following condition formula.
Assuming that the position of the center of an extracted inscribed circle is denoted as PE, the radius of an extracted inscribed circle is denoted as RE, the position of the center of an extraction-candidate inscribed circle is denoted as PC, the radius of an extraction-candidate inscribed circle is denoted as RC, and RE>RC, if the following formula (2) is satisfied, it is determined that there is no overlap.
RE+RC−H<L×RC (2)
In the above formula (2), H=|PE−PC| and L is a constant larger than 0. If L is set to be large, an inscribed circle whose degree of overlap with the extracted inscribed circle can be extracted as a candidate, but the efficiency decreases largely because machining is not performed during a subsequent tool movement. Therefore, it is desirable to appropriately set L according to the entire machining-area shape, machining conditions, and the like.
This is because when the procedure (b) is performed for the second time, there is no inscribed circle that does not overlap with the extracted circles C1 and C2 among the extraction-candidate inscribed circles mentioned above. For example, a circle C3 with a point P3 being a center thereof is not extracted because the circle C3 overlaps with the circle C1, and other extraction-candidate inscribed circles are not extracted either. Eventually only the circles C1 and C2 are extracted and data of the circles C1 and C2 is stored in the spiral-machining-path reference-circle storage unit 22.
Then, toolpath data for machining a hole where spiral machining starts is generated in the hole-machining-path generation unit 5 and is stored in the tool-path storage unit 24 (Step S204). In this process, the coordinate of the center of the hole is obtained from the circle data stored in the spiral-machining-path reference-circle storage unit 22; and a hole machining path by a drill tool, a helical machining path by an end mill tool, and the like are generated based on the depth of a machining part, a machining method of a hole, and the radius of a hole stored in the machining-condition storage unit 21, and are stored.
Then, spiral machining tool-path data is generated in the spiral-machining-path generation unit 6 and is stored in the tool-path storage unit 24 (Step S205). Data of an area shape that is a machining target in trochoidal machining is generated by the entire machining-area shape data stored in the machining-area-shape storage unit 20 and machining-area data obtained from a spiral machining path, and is stored in the trochoidal-machining-area shape storage unit 23.
A spiral machining tool path is generated based on circle data obtained from the spiral-machining-path reference-circle storage unit 22, the diameter of an end mill tool, a predetermined cutting amount in a tool radial direction, and a contact angle of a tool with respect to a machining material that are obtained from the machining-condition storage unit 21, and the like. For example, a spiral path is generated in such a manner that cutting starts from a side surface of a hole where machining starts, a cutting amount in a tool radial direction or a contact angle of a tool with respect to a machining material is increased to a predetermined value and is then maintained to be constant, and is reduced thereafter.
Subsequently, in the trochoidal-machining-path generation unit 7, trochoidal machining path data is generated and is stored in the tool-path storage unit 24 (Step S206).
A tool path for trochoidal machining includes a method that generates a circular path in which a machining state and a non-machining state are repeated so that a cutting amount in a tool radius direction or a contact angle of a tool with respect to a machining material does not exceed a predetermined value is generated based on machining-area data obtained from the trochoidal-machining-area shape storage unit 23, the diameter of an end mill tool, a predetermined cutting amount in a tool radius direction, and a predetermined contact angle of a tool with respect to a machining material that are obtained from the machining-condition storage unit 21, and the like.
Subsequently, in the tool-path output unit 8, the order of hole machining path data, spiral machining path data, and trochoidal machining path data stored in the tool-path storage unit 24 is adjusted based on a machining method of a hole where hole machining and spiral machining start that is obtained from the machining-condition storage unit 21, and the data are output to outside.
For example, in a case that the machining method of a hole where hole machining and spiral machining start is drill machining by a drill tool, in view of reducing a loss due to tool replacement, all pieces of the hole machining path data are output first, all pieces of the spiral machining path data are output next, and the trochoidal machining path data is finally output.
In a case that the machining method of a hole where hole machining and spiral machining start is helical machining by an end mill tool that is used in spiral machining and helical machining, the hole machining data and the spiral machining data that relate to the identical inscribed circle are output as a pair, and the trochoidal machining path data is finally output.
After outputting tool path data at Step S207, the operation of the tool-path generation apparatus ends.
In the course of explaining the effects of the tool-path generation apparatus according to the present embodiment, for comparison, the tool-path generation apparatus disclosed in Patent Literature 1 will be explained.
One of rectangular areas that constitute the entire machining area corresponds to the circle area N1, and machining is continuously performed by spiral machining at high efficiency in the area. Machining is discontinuously performed by using a trochoidal machining path in the other of the rectangular areas, and thus the machining efficiency of the other rectangular area is lower than that of the rectangular area in which machining is continuously performed by spiral machining.
On the other hand, according to the present embodiment, machining is performed by using a spiral machining path also in the other rectangular area, and thus machining is performed at higher efficiency as a whole.
While a case where the entire machining-area shape has a constricted portion has been exemplified here, however in a case an aspect ratio of the entire machining-area shape is significantly high, in the tool-path generation apparatus disclosed in Patent Literature 1, spiral machining is performed on only the largest circle part in the entire machining-area shape, and thus the effect of efficiency improvement of machining by spiral machining cannot be obtained sufficiently. On the other hand, even if the aspect ratio of the entire machining-area shape is significantly high, the tool-path generation apparatus according to the present embodiment extracts a plurality of circles from the entire machining-area shape and performs spiral machining on the extracted circle areas, so that the effect of efficiency improvement of machining is increased.
While a case of generating a machining path for machining a part that remains after spiral machining in a trochoidal shape has been exemplified in the above embodiment, the machining path may be formed in a zigzag or meander shape.
In the above embodiment, it has been explained that, at the time of extracting circle data, an inscribed circle with the largest radius in inscribed circles that have a radius larger than a predetermined value and do not overlap with an extracted inscribed circle is extracted from inscribed circles that are tangent to the contour of the entire machining-area shape at two points. However, a circle that is not tangent to the contour of the entire machining-area shape at two points may be extracted.
As described above, the tool-path generation apparatus and the tool-path generation method according to the present invention are useful in being capable of realizing efficiency improvement by automatically applying a plurality of spiral paths according to an entire machining-area shape.
1 machining-area-shape input unit, 2 machining-condition input unit, 3 tool-path generation unit, 4 spiral-machining-path reference-circle generation unit, 5 hole-machining-path generation unit, 6 spiral-machining-path generation unit, 7 trochoidal-machining-path generation unit, 8 tool-path output unit, 20 machining-area-shape storage unit, 21 machining-condition storage unit, 22 spiral-machining-path reference-circle storage unit, 23 trochoidal-machining-area shape storage unit, 24 tool-path storage unit, 25 control unit, 40 machining material, 50 tool-path generation apparatus.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2014/064156 | 5/28/2014 | WO | 00 |