The present invention relates to a tool path generation method and apparatus for generating a tool path at the time of machining a workpiece.
As this type of a tool path generation method, in general, smoothing treatment which approximates a broken line obtained by connecting a plurality of machining points by a curve so as to generate a smooth tool path is known. If such smoothing treatment is carried out across-the-board at all of the machining path including parts with shapes of large bend angles, the error in shape from the desired machined shape increases and thus, the machined shape may be conversely degraded. Considering this point, for example, Patent Literature 1 describes a method of comparing a bend angle of a broken line with a predetermined threshold value and validating (turning on) or invalidating (turning off) the smoothing treatment in accordance with their relative magnitudes.
In this regard, machining point data is generally prepared by utilizing a CAD/CAM system etc. For this reason, even if a curvature of a machined surface is constant, the lengths of the broken line segments (block lengths) vary and the bend angles also vary. Therefore, if the method, like the one described in the above Patent Literature 1, of turning the smoothing treatment on and off at a specific bend angle is used, there will be portions where the smoothing treatment is turned on and portions where it is turned off regardless of the curvature of the machined surface being constant and therefore, it is difficult to obtain a smooth machined surface.
Patent Literature 1
Japanese Unexamined Patent Publication No. 2009-199483
The present invention is a tool path generation method for generating a tool path at a time of machining a workpiece, including a bend angle calculation step of calculating a bend angle at each connecting point of a broken line which is obtained by successively connecting a predetermined plurality of machining points by line segments, an approximation curve derivation step of deriving an approximation curve closer to the connecting point the larger the bend angle calculated by the bend angle calculation step, and a tool path generation step of generating the tool path by a new broken line along the approximation curve derived by the curve derivation step.
Further, the present invention is a tool path generation apparatus for generating a tool path at a time of machining a workpiece, including a bend angle calculation unit calculating a bend angle at each connecting point of a broken line which is obtained by successively connecting a predetermined plurality of machining points by line segments, an approximation curve derivation unit deriving an approximation curve closer to the connecting point the larger the bend angle calculated by the bend angle calculation unit, and a tool path generation unit generating the tool path by a new broken line along the approximation curve derived by the approximation curve derivation unit.
Hereinafter, referring to
A column 2 is erected on a bed 1. At the column 2, a spindle head 3 is supported movably in the up-down direction (Z-axis direction) via a linear feed mechanism. At the spindle head 3, a tool 4 is attached facing downward via the spindle. The tool 4 is, for example, an end mill and is driven to rotate by a spindle motor inside of the spindle head 3. On the bed 1, a saddle 5 is supported movably in the horizontal direction (Y-axis direction) via a linear feed mechanism. On the saddle 5, a table 6 is supported movably in the horizontal direction (X-axis direction) perpendicular to the Y-axis direction. Each of the linear feed mechanisms is, for example, comprised of a ball screw and a servo motor which drives rotation of the ball screw. Due to the above configuration, the tool 4 and the workpiece W move relative to each other in the three perpendicular axis directions (X-, Y-, and Z-directions) whereby the workpiece W is worked.
The spindle motor and the servo motors are controlled in accordance with a machining program by a control device 10. In the machining program, a path of movement of the tool 4 is set as a tool path in advance. The tool 4 moves relative to the workpiece 4 along this tool path.
The machining program is prepared by utilizing a known CAD/CAM system. That is, the CAD data corresponding to the machined shape of the workpiece W is used as the basis to prepare CAM data consisting of a set of fine linear commands. This CAM data is comprised of a tremendous volume of point group data, so data is thinned from the CAD data in accordance with predetermined rules to give an amount of data suitable for a machining program. Due to this, a machining program is prepared.
If the tool 4 is moved along the tool path PA1 comprised of the comparatively rough broken line which is shown in
However, machining point data is prepared by utilizing a CAD/CAM system. Therefore, even if the curvature of a machined surface SF1 is constant such as when machining a cylindrical shape, the lengths of the broken line segments (block lengths ΔL) will differ and the bend angles θ will also differ as shown in
Furthermore, differences in machining points, as shown in
The tool path generation device 20 is comprised of a processing system which has a CPU, ROM, RAM, and other peripheral circuits etc. It has a program reading unit 21, a bend angle calculation unit 22, a route insertion unit 23, a characteristic storage unit 24, an approximation curve calculation unit 25, and a data extraction unit 26.
The program reading unit 21 successively reads the block end point data of the machining program which is prepared by the CAD/CAM system, i.e., the 3D coordinate data of the machining points (machining point data).
The bend angle calculation unit 22 successively calculates the bend angle θ of each machining point, based on the machining point data read by the program reading unit 21. For example as shown in
The route insertion unit 23 inserts a route (imaginary block R) along the imaginary axis α which perpendicularly intersects each of the X-axis, Y-axis, and Z-axis at the machining points used for calculation of the bend angles θ. After that, the route insertion unit 23, the approximation curve calculation unit 25, and the data extraction unit 26 carry out the smoothing treatment by using the concept of the imaginary block R to generate a new tool path. Here, in order to facilitate the explanation of the imaginary block R, first, the explanation will be given assuming that the machining points are given by 2D coordinate data.
When such machining points P1, P2, and P3 are given by only the XY components, the axis perpendicular to each of the X-axis and Y-axis is the Z-axis. The imaginary axis α is equal to the Z-axis. Therefore, if inserting the imaginary block R at the machining point P2 which has the bend angle θ2, i.e., between the line segments L1 and L2, toward the Z-axis direction, the line segment L2 is shifted in the Z-axis direction, and a new broken line which successively connects the end points P1 and P2 of the line segment L1 and the end points P2′ and P3′ of the line segment L2 after shifting is obtained. At this time, the length of the inserted imaginary block R (imaginary block length ΔR) is determined by a characteristic feature of the imaginary block length ΔR which is stored in the characteristic storage unit 24.
If expressing the α coordinate component at the machining point P2 by α2 (=−ΔRmax), the X, Y, and α components of the points P1, P2, P2′, and P3′ which constitute the new broken line become respectively P1 (x1, y1, 0), P2 (x2, y2, 0), P2′ (x2, y2, α2), and P3′ (x3, y3, α2). The approximation curve calculation unit 25 of
The approximation curve L4 is, for example, calculated by a 3D Bezier curve. A “Bezier curve” is an approximation curve P(t) of the four points Q0, Q1, Q2, and Q3 such as shown in
P(t)=(1−t)3Q0+3t(1−t)2Q1+3t2(1−t)Q2+t3Q3 (I)
The letter “t” corresponds to the path on the curve P(t) which starts from Q0. By entering the X-, Y-, Z-, and other coordinate components into Q0 to Q3 of the formula (I) and changing “t” over the entire length of 0 to P(t), the coordinate values of P(t) are found for each coordinate component.
Specifically, when finding the approximation curve L4 of
The data extraction unit 26 extracts the remaining components after removing the α-components from the approximation curve L4, i.e., the XY components of the points Pt. Due to this, as shown in
The thus generated tool path PA4 has a smaller inside curve amount of the tool path (distance from machining point P2 to tool path PA4) compared with the tool path PAS which is obtained by simply approximating the machining points P1 to P3 by a curve (
In the example of
Next, as shown in
The imaginary block length ΔR is determined by the characteristic feature f(θ) of
The data extraction unit 26 extracts the components remaining after removal of the α-components from the approximation curve L5, i.e., the XYZ components of the points Pt. Due to this, as shown in
The thus generated tool path PA7 has a smaller inward curve amount of the tool path compared with the tool path obtained by just smoothing treatment of the machining points P1 to P3 and is suppressed in strength of smoothing.
The point group data obtained by the data extraction unit 26 is output to a not shown program rewriting unit, and the block data of the machining program is rewritten along the tool path PA7. Based on this machining program, the numerical control device 30 controls the drive of the motors. Due to this, the workpiece W is machined along the tool path PA7.
The operation of the tool path generation method of according to the present embodiment is summarized as follows:
First, the program reading unit 21 reads the machining program which is generated by the CAD/CAM system, while the bend angle calculation unit 22 calculates the bend angle θ of the broken line which is obtained by successively connecting the block end points of the machining program (bend angle calculation step).
Next, an approximation curve L5 closer to the connecting point P2 the larger the calculated bend angle θ (for example, θ2) is derived (curve derivation step), and a tool path PA7 is generated along the approximation curve L5 (tool path generation step).
In this case, the route insertion unit 23 inserts an imaginary block R, which is parallel to the imaginary axis α perpendicular to the X-axis, Y-axis, and Z-axis and which has an imaginary block length ΔR which corresponds to the bend angle θ2, at the connecting point P2. Due to this, the machining points P2 and P3 respectively move in parallel along the imaginary axis α by the imaginary block length ΔR whereby the imaginary points P2′ and P3′ are set. Next, the approximation curve calculation unit 25 calculates the approximation curve L5 of the four points P1, P2, P2′, and P3′, and the data extraction unit 26 extracts the XYZ components of the approximation curve L5 and thus, the new tool path PA7 is generated by the point group data of the 3D space.
By generating the tool path PA7 in this way, it is possible to change the strength of the smoothing in accordance with the bend angle θ2 and possible to optimize the inward curve amount of the tool path according to the smoothing treatment. That is, imaginary block length ΔR corresponds to the strength of the smoothing. When the bend angle θ is large, the inward curve amount is small (smoothing becomes weak), while when the bend angle θ is small, the inward curve amount is large (smoothing becomes large). For this reason, even when the positions of the machining points differ on the same tool path or between adjoining tool paths and the bend angles θ differ, it is possible to smoothly machine the workpiece W and obtain the precise workpiece shape.
According to the characteristic feature f1, for example, when the bend angles of adjoining machining points P1 and P2 are θ1 and θ2, at the machining point P1, the smoothing treatment is turned on (smoothing strength maximum), while at the machining point P2, the smoothing treatment is turned off (smoothing strength 0). For this reason, despite the bend angle θ not changing that much, the smoothing strength rapidly changes and obtaining a smooth machined surface becomes difficult. As opposed to this, according to the characteristic feature f2, if the bend angles are θ1 and θ2, the change in smoothing strength is small and a smooth machined surface can be obtained.
According to the present embodiment, the following functions and effects can be exhibited:
The feature of the present invention is changing the strength of smoothing in accordance with the bend angle θ. As long as carrying out a smoothing treatment closer to the connecting point the larger the bend angle θ and using a new broken line after the smoothing treatment to generate the tool path PA5, the approximation curve derivation step and the tool path generation step as a smoothing treatment step may be configured in any way. That is, it is also possible to generate a tool path closer to the connecting point the larger the bend angle θ without inserting the imaginary block R.
In the above embodiment, in a broken line obtained by successively connecting three successive machining points (first machining point P1, second machining point P2, and third machining point P3) by line segments, the larger the bend angle θ at the middle machining point P2, the greater the amount of movement along the imaginary axis α perpendicular to the XYZ axes is made by moving in parallel the machining points P2 and P3 along the imaginary axis α in the same direction to set imaginary points (first imaginary point P2′ and second imaginary point P3′), and an approximation curve L5 of these points P1, P2, P2′, and P3′ is calculated. However, as long as deriving an approximation curve closer to the connecting point the larger the bend angle θ, the approximation curve derivation step may be configured in any way.
In the above embodiment, the program reading unit 21 reads the machining program prepared by the CAD/CAM system and the bend angle calculation unit 22 calculates the bend angles θ at the individual connecting points. However, it is possible to prepare the initial machining program without going through a CAD/CAM system. The configuration of the bend angle calculation unit is not limited to this. The route insertion unit 23 inserts the imaginary axis α at a connecting point and the approximation curve calculation unit 25 approximates the curve by a Bezier curve to find the approximation curve L5. However, it is also possible to approximate a curve by a B spline curve or NURBS curve or other curve so as to find the approximation curve L5. The configuration of the approximation curve derivation unit is not limited to the one which is explained above. The data extraction unit 26 extracts the XYZ components of the approximation curve L5 to generate the tool path PA7. However, it is also possible to thin a predetermined number of data after extraction of the XYZ components, in order to generate the tool path. The configuration of the tool path generation unit is not limited to the one explained above.
In the above embodiment, the control device 10 provided at the machine tool is provided with the tool path generation apparatus 20 and the numerical control device 30. However, the numerical control device 20 may also be provided with the tool path generation apparatus 30. Further, it is also possible to provide the tool path generation apparatus 20 separate from the control device 10. In the above embodiment, although the tool path generation apparatus 10 is applied to a machining center, the tool path generation apparatus of the present invention can be similarly applied to another machine tool which requires generation of a tool path at the time of machining a workpiece.
According to the present invention, smoothing treatment closer to the connecting point the larger the bend angle at the connecting point is carried out and a tool path is generated by the new broken line after the smoothing treatment. Therefore, it is possible to suppress error of the machined shape of the workpiece and obtain a smooth machined surface even if there are differences in the bend angles.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2010/069243 | 10/25/2010 | WO | 00 | 4/18/2013 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2012/056554 | 5/3/2012 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
3328655 | Tripp | Jun 1967 | A |
4823275 | Tanaka et al. | Apr 1989 | A |
5526272 | Kondo et al. | Jun 1996 | A |
5703782 | Dundorf | Dec 1997 | A |
5926389 | Trounson | Jul 1999 | A |
6311098 | Higasayama et al. | Oct 2001 | B1 |
7450127 | Hong et al. | Nov 2008 | B2 |
20030204285 | Thomas et al. | Oct 2003 | A1 |
20120215334 | Tanuma et al. | Aug 2012 | A1 |
Number | Date | Country |
---|---|---|
03-075905 | Mar 1991 | JP |
09-075905 | Mar 1991 | JP |
07-204987 | Aug 1995 | JP |
10-240329 | Sep 1998 | JP |
2009-199483 | Sep 2009 | JP |
10-2000-0005003 | Jan 2000 | KR |
Number | Date | Country | |
---|---|---|---|
20130204426 A1 | Aug 2013 | US |