This application claims the benefit of Japanese Patent Application Number 2013-122113 filed on Jun. 10, 2013, the entirety of which is incorporated by reference.
1. Technical Field
The present invention relates to a control method for a machine tool including two or more translation axes and at least one rotation axis, in which a command for a distal end position of a tool and an attitude of the tool is provided to correct an error in the distal end position and the attitude with respect to a workpiece due to a geometric error so that a command value for controlling the translation axes is calculated.
2. Background Art
The accuracy of operation of the 5-axis control machining center 5 is affected by, for example, geometric errors between axes such as an error in center position of a rotation axis (deviation from the assumed position) and an error in inclination of a rotation axis (squareness and parallelism between axes). Presence of a geometric error degrades the accuracy of motion of the 5-axis control machining center 1, which degrades the machining accuracy of the workpiece. Therefore, it is necessary to reduce the geometric error through adjustment, although it is difficult to reduce the geometric error to zero. High-accuracy machining is achieved by performing control for correcting the geometric error.
Japanese Patent Application Publication No. 2004-272887 (JP 2004-272887 A) describes a method for correcting a geometric error. According to the method described in JP 2004-272887 A, an error in position of the distal end point of a tool due to a geometric error of a machine tool is corrected by converting the position of the distal end point of the tool into a position of each translation axis in consideration of the geometric error, and using the obtained position as a command position. According to the method described in JP 2004-272887 A, in the case where an error in inclination of a rotation axis is to be corrected, a command for correcting translation axes is provided along with operation of a translation axis. Therefore, operation of only one translation axis may cause infinitesimal operation of another translation axis. For example, in the case where there is an error in parallelism between an X axis and an A axis, operation of only the X axis causes infinitesimal operation of a Y axis or a Z axis.
Such operation may adversely affect the machining accuracy of a planar process and a drilling process. For example, it is assumed that a workpiece 8 is subjected to a planar process by a square end mill (tool) 7 with the direction of the thick arrow P in
Japanese Patent Application Publication No. 2012-221001 (JP 2012-221001 A) describes a method for avoiding such disadvantages. According to the method described in JP 2012-221001 A, a correction value for translation axes are calculated using the coordinate value of a correction reference point that is a point designated in advance in a workpeice coordinate system, and the calculated correction value is added to a command value for the translation axes to obtain a value as a command position in place of the command value for the translation axes. Using the value as the command position, an error in position of the distal end point of a tool due to a geometric error is corrected. According to the method described in JP 2012-221001 A, although the correction value for the translation axes is varied for operation about a rotation axis, the correction value for the translation axes is not varied for operation along a translation axis. Thus, occurrence of slight operation of the translation axes is suppressed, whereby the machining accuracy of the working object is improved.
In order to correct an error in position of the distal end point of a tool due to a geometric error while suppressing occurrence of infinitesimal operation of translation axes, it is assumed that the method described in JP 2004-272887 A and the method described in JP 2012-221001 A are performed separately and concurrently. In such a case, however, calculation of a command value for controlling the translation axes may be complicated, which may extend the time required to calculate the command value.
In view of such circumstances, an object of the present invention is to provide a control method for a machine tool that can shorten the time required to calculate a command value for controlling translation axes.
A first aspect of the present invention provides a control method for a machine tool including two or more translation axes and at least one rotation axis. In the method, a command for a distal end position of a tool and an attitude of the tool is provided to correct an error in the distal end position and the attitude with respect to a workpiece due to a geometric error, so that a command value for controlling the translation axes is calculated. The command value is calculated on the basis of a command coordinate value for the distal end position set in advance, a converted coordinate value obtained by converting a coordinate value of a rotation center point of the rotation axis in an actual state with the geometric error into a coordinate value without an error in inclination of the actual rotation axis with respect to the rotation axis in an ideal state without the geometric error using a coordinate value of a correction reference point which is a point designated in advance in a machine coordinate system of the machine tool or a workpiece coordinate system, and an axial unit vector for the ideal rotation axis.
A second aspect of the present invention provides the control method for a machine tool according to the first aspect. In the method, a first intersection calculation step and a first converted coordinate value calculation step are performed. The first intersection calculation step is to calculate an intersection at which a plane that passes through the correction reference point and that is orthogonal to an axial unit vector for the rotation axis that passes through a rotation center point of the ideal rotation axis and an axial unit vector for the rotation axis that passes through a rotation center point of the actual rotation axis crosses each other in the machine coordinate system or the workpiece coordinate system. The first converted coordinate value calculation step is to calculate, as the converted coordinate value, a coordinate value of a projection point obtained by projecting the intersection calculated in the first intersection calculation step onto a plane that passes through the rotation center point of the actual rotation axis and that is orthogonal to an axial unit vector for the rotation axis that passes through the rotation center point of the ideal rotation axis in an axial direction of the ideal rotation axis in the machine coordinate system or the workpiece coordinate system.
A third aspect of the present invention provides the control method for a machine tool according to the first aspect. In the method, a second intersection calculation step and a second converted coordinate value calculation step are performed. The second intersection calculation step is to calculate an intersection at which a plane that passes through the correction reference point and that is orthogonal to an axial unit vector for the rotation axis that passes through a rotation center point of the actual rotation axis and an axial unit vector for the rotation axis that passes through a rotation center point of the actual rotation axis crosses each other in the machine coordinate system or the workpiece coordinate system. The second converted coordinate value calculation step is to calculate, as the converted coordinate value, a coordinate value of a projection point obtained by projecting the intersection calculated in the second intersection calculation step onto a plane that passes through the rotation center point of the actual rotation axis and that is orthogonal to an axial unit vector for the rotation axis that passes through the rotation center point of the ideal rotation axis in an axial direction of the ideal rotation axis in the machine coordinate system or the workpiece coordinate system.
With the control method for a machine tool according to the first aspect of the present invention, when calculating a command value for controlling the translation axes, it is possible to reduce the computation load for calculating the command value by using the command coordinate value for the distal end position of the tool set in advance. Hence, it is possible to shorten the time required to calculate a command value for controlling the translation axes.
According to the second aspect of the present invention, it is possible to calculate the converted coordinate value obtained by converting the coordinate value of the rotation center point of the actual rotation axis into a coordinate value without an error in inclination of the actual rotation axis with respect to the ideal rotation axis, by a simple technique of projecting the intersection calculated in the first intersection calculation step onto a plane that passes through the rotation center point of the actual rotation axis and that is orthogonal to an axial unit vector for the rotation axis that passes through the rotation center point of the ideal rotation axis in the first converted coordinate value calculation step.
According to the third aspect of the present invention, it is possible to calculate the converted coordinate value obtained by converting the coordinate value of the rotation center point of the actual rotation axis into a coordinate value without an error in inclination of the actual rotation axis with respect to the ideal rotation axis, by a simple technique of projecting the intersection calculated in the second intersection calculation step onto a plane that passes through the rotation center point of the actual rotation axis and that is orthogonal to an axial unit vector for the rotation axis that passes through the rotation center point of the ideal rotation axis in the second converted coordinate value calculation step.
Control for the 5-axis control machining center 1 illustrated in
Subsequently, a method for calculating a command value for the translation axes executed by the numerical control device 10 will be described. The numerical control device 10 (command value generation unit 12) can calculate the command value in consideration of geometric parameters that define the status of arrangement of the A axis and the C axis as rotation axes.
In step S1 of
In the case where it is determined in step S1 that the correction reference point Pd is not used, the command value generation unit 12 calculates a vector Pcmd for a command value (x, y, z) for the translation axes (X axis, Y axis, Z axis) using [Formula 1] in step S6. Using [Formula 1], a command coordinate value (xtcp, ytcp, ztcp) for the distal end position of the tool indicated in the machining program 11 is converted into a coordinate value in the machine coordinate system using a conversion matrix for the A axis (MR2a), a conversion matrix for the C axis (MR1a), and so forth. In this step, the command position (rotational angle) for the A axis is defined as a, the command position (rotational angle) for the C axis is defined as c, the length of the tool used (square end mill 7) is defined as t, the coordinate value of the origin of the machine coordinate system is defined as (xw, yw, zw), the coordinate value of the actual A-axis rotation center point with a geometric error is defined as (xR2a, yR2a, zR2a), the coordinate value of the actual C-axis rotation center point with a geometric error is defined as (xR1a, yR1a, zR1a), the actual A-axis axial unit vector is defined as (λR2a, μR2a, νR2a), and the actual C-axis axial unit vector is defined as (λR1a, μR1a, νR1a).
On the other hand, in the case where the command value generation unit 12 determines in step S1 that the correction reference point Pd is used, a reference intersection PN (see
xN=xd [Formula 2]
y
N
=y
R2a+(xd−xR2a)μR2a/λR2a
z
N
=z
R2a+(xd−xR2a)vR2a/λR2a
After step S2, the command value generation unit 12 calculates a correction intersection PC (see
xC=xR2a [Formula 3]
yC=yN
zC=zN
After step S3, the command value generation unit 12 replaces geometric parameters that define the status of arrangement of the A axis in step S4. In step S4, the coordinate value (xR2a, yR2a, zR2a) of the actual A-axis rotation center point in [Formula 1], which is a geometric parameter, is replaced with the coordinate value (xC, yC, zC) of the correction intersection Pc calculated in step S3. In addition, the actual A-axis axial unit vector (λR2a, μR2a, νR2a) in [Formula 1], which is a geometric parameter, is replaced with the ideal A-axis axial unit vector V (1, 0, 0).
After step S4, the command value generation unit 12 determines whether or not geometric parameters that define the status of arrangement have been replaced not only for the A axis but also for the C axis in step S5. In the case where it is determined in step S5 that the geometric parameters have been replaced only for the A axis and that the geometric parameters have not been replaced for the C axis, the command value generation unit 12 executes the processes in step S2 to step S4 also for the C axis in the same manner as for the A axis. Since the processes in step S2 to step S4 are the same for the A axis and the C axis, the processes for the C axis are not described.
On the other hand, in the case where it is determined in step S5 that the geometric parameters have been replaced for the A axis and the C axis, the command value generation unit 12 calculates a vector Pcmd for a command value (x, y, z) for the translation axes (X axis, Y axis, Z axis) in step S6. In step S6, a command value (x, y, z) for the translation axes is calculated using [Formula 1] in which the geometric parameters for the A axis and the C axis have been replaced in step S4. The relative position of the spindle head 2 with respect to the table 4 is controlled on the basis of the command value (x, y, z). At this time, if the coordinate value (xC, yC, zC) of the correction intersection PC, which is used to calculate a command value (x, y, z) for the translation axes, is used as a coordinate value without an error in inclination (angle 13) of the actual A axis with respect to the ideal A axis, the distal end point of the square end mill 7 can be positioned on a line that is parallel to the X axis in the pick direction (P direction) illustrated in
With the control method for the 5-axis control machining center 1 according to the embodiment, when calculating a command value for controlling the translation axes (X axis, Y axis, Z axis), it is possible to reduce the computation load for calculating the command value by using the command coordinate value (xtcp, ytcp, ztcp) for the distal end position of the tool indicated in the machining program 11. Hence, it is possible to shorten the time required to calculate a command value for controlling the translation axes.
In addition, it is possible to convert the coordinate value (xR2a, yR2a, zR2a) of the actual A-axis rotation center point PA into a coordinate value without an error in inclination (angle β) of the actual A axis with respect to the ideal A axis by a simple technique of projecting the reference intersection PN calculated in step S2 illustrated in
A second embodiment of the present invention will be described with reference to
In step S2A, as illustrated in
x
N′=λR2a2(xd−xR2a)+μR2a(yd−yR2a)+vR2a(zd−zR2a)+xR2a [Formula 4]
y
N′=λR2a(xd−xR2a)+μR2a2(yd−yR2a)+vR2a(zd−zR2a)+yR2a
z
N′=λR2a(xd−xR2a)+μR2a(yd−yR2a)+vR2a2(zd−zR2a)+zR2a
After step 2A, a correction intersection PC′ is calculated in step S3A. In step S3A, a plane LI is defined in the machine coordinate system in the same manner as in the first embodiment. Subsequently, in step S3A, a point (projection point) obtained by projecting the reference intersection PN′ defined in step S2A onto the plane LI in the axial direction of the ideal A axis (left-right direction of
xC′=xR2a [Formula 5]
yC′=yN′
zC′=zN′
After step S3A, the command value generation unit 12 replaces geometric parameters that define the status of arrangement of the A axis in step S4A. In step S4A, the coordinate value (xR2a, yR2a, zR2a) of the actual A-axis rotation center point in [Formula 1] is replaced with the coordinate value (xC′, yC′, zC′) of the correction intersection PC′ calculated in step S3A. In addition, the actual A-axis axial unit vector (λR2a, μR2a, νR2a) in [Formula 1] is replaced with the ideal A-axis axial unit vector V (1, 0, 0).
In step S6A, a vector Pcmd for a command value (x, y, z) for the translation axes (X axis, Y axis, Z axis) is calculated. In this step, a command value (x, y, z) for the translation axes is calculated using [Formula 1] in which the geometric parameters for the A axis and the C axis have been replaced in step S4A. If the relative position of the spindle head 2 with respect to the table 4 is controlled on the basis of the command value (x, y, z), it is possible to prevent formation of steps on the machined surface of the workpiece 8 when the workpiece 8 is subjected to a planar process in the same manner as in the first embodiment. In the embodiment, the processes in step S2A to step S4A are executed also for the C axis in the same manner as for the A axis. Since the processes in step S2A to step S4A are the same for the A axis and the C axis, the processes for the C axis are not described.
With the control method for the 5-axis control machining center 1A according to the embodiment, it is possible to convert the coordinate value (xR2a, yR2a, zR2a) of the actual A-axis rotation center point PA into a coordinate value without an error in inclination (angle β) of the actual A axis with respect to the ideal A axis, by a simple technique of projecting the reference intersection PN′ calculated in step S2A illustrated in
The present invention is not limited to the embodiments discussed above, and part of the configuration of the embodiments may be modified appropriately without departing from the scope and spirit of the present invention. In the first and second embodiments discussed above, the coordinate value of the rotation center point of the actual rotation axes (A axis and C axis) is converted into a coordinate value without an error in inclination of the actual rotation axis with respect to the ideal rotation axis with the correction reference point Pd set to any point that belongs to the machine coordinate system. However, the present invention is not limited thereto. For example, the coordinate value of the rotation center point of the actual rotation axes may be converted into a coordinate value without an error in inclination with the correction reference point Pd set to any point that belongs to the workpiece coordinate system near the machining point of the workpiece 8 as indicated by the dash-double-dot line in
Number | Date | Country | Kind |
---|---|---|---|
2013-122113 | Jun 2013 | JP | national |