This application claims the benefit of Japanese Patent Application Number 2021-141567 filed on Aug. 31, 2021, the entirety of which is incorporated by reference.
The disclosure relates to a method for calculating a compensation parameter for compensating for a motion error in a machine tool, and a machine tool.
The spindle head 2 is configured to perform a translational motion of two degrees of freedom with respect to a bed 1 in mutually orthogonal translational axes of a Z-axis and an X-axis. The table 3 is configured to perform a translational motion of one degree of freedom with respect to the bed 1 in a Y-axis, which is a translational axis orthogonal to the Z-axis and the X-axis. Each of the translational axes is driven by a servomotor controlled by a numerical control unit, thereby rotating the tool mounted to the spindle head 2 to process the workpiece secured to the table 3 in any shape.
As a motion error in the machine tool, a positioning error, a straightness, an angular deviation (pitch, yaw, roll), a squareness, and the like described in JIS B 6336-2: 2002 (Internet <https://kikakurui.com/b6/B6336-2-2002-01.html> searched on Jul. 14, 2021) are included. The motion errors are transferred to the shape of the workpiece, and cause shape and dimensional errors of the workpiece. Since it is difficult in cost and technique to reduce the motion errors in the manufacturing and assembly stages of the machine and attempt to provide a higher accuracy, compensation techniques to drive each axis in consideration of the motion errors have been developed.
For a compensation control of the motion error, it is necessary to measure and calculate the motion error. Since the motion error varies, it is important to allow a regular measurement and the measurement without using a specialized measuring instrument.
The Japanese Industrial Standard (JIS B 6336-2: 2002) proposes a method for measuring and evaluating motion errors. For example, for the case of measuring the angular deviation, methods using a precision level and an optical angular deviation measuring instruments are described. For the case of measuring the squareness, a method using a straightedge ruler, a right-angle gauge, and a dial gauge is described.
On a webpage “XM-60/XM-600 multi-axis calibrator” (Renishaw plc., Internet<https://www.renishaw. jp/jp/xm-60-and-xm-600-multi-axis-calibrator--39258> searched on Jul. 14, 2021, Internet<www.renishaw.com/en/xm-60-and-xm-600-multi-axis -calibrator--39258>searched on May 9, 2022), a measuring instrument configured to simultaneously measure the positioning error, the straightness, and the angular deviation by laser is described.
JP 2007-101279 A proposes a method in which a step gauge that includes a plurality of blocks and whose inter-block distances are already-known is used. In the method, the inter-block distances are measured in a plurality of directions by changing the direction of the step gauge in the respective directions, and positioning errors of translational axes and squarenesses between the translational axes are measured and calculated.
In the measurement of the squareness by the methods described in JIS B 6336-2: 2002 and JP 2007-101279 A, there is a likelihood that, when the angular deviation of the translational axis is large, the squareness is affected by it and changes depending on the measurement position without being uniquely determined. Furthermore, there is a likelihood that, even when a command value is compensated by calculating a compensation parameter based on the measured squareness, the shape and dimensional errors of the workpiece are not improved.
Meanwhile, while it is necessary to measure and compensate for the angular deviation to remove the influence of the angular deviation of the translational axis, the measurement requires a specialized measurement as described in JIS B 6336-2: 2002 and the webpage “XM-60/XM-600 multi-axis calibrator.”
Therefore, it is an object of the disclosure to provide a method for calculating a compensation parameter of a motion error in a machine tool configured to appropriately measure and compensate for the motion error in the machine tool without using a specialized measuring instrument, and a machine tool.
In order to achieve the above-described object, there is provided a method for calculating a compensation parameter of a motion error in a machine tool according to a first configuration of the disclosure. The machine tool includes a table configured to hold a workpiece, a main spindle configured to hold a tool, and three or more translational axes, the main spindle is configured to perform a relative motion of three degrees or more of translational freedom with respect to the table, and the machine tool is configured to compensate for a motion error of the translational axis in accordance with a predetermined compensation parameter. The compensation parameter is calculated using a square calibration master that includes a predetermined measurement surface A, and a measurement surface B and a measurement surface C that are perpendicular to the measurement surface A and parallel to one another, and an angle between the measurement surface A and the measurement surface B and an angle between the measurement surface A and the measurement surface C of the square calibration master are known. The method includes: installing the square calibration master on the table, and measuring each of the measurement surface A, the measurement surface B, and the measurement surface C of the square calibration master by a position measurement sensor attached to the main spindle; calculating a first squareness between the measurement surface A and the measurement surface B from a measurement result of the measurement surface A and the measurement surface B obtained by the installing of the square calibration master and the measuring of the measurement surfaces; calculating a second squareness between the measurement surface A and the measurement surface C from a measurement result of the measurement surface A and the measurement surface C obtained by the installing of the square calibration master and the measuring of the measurement surfaces; calculating a difference between the first squareness and the second squareness; comparing the difference with a preliminarily set difference threshold value; calculating an average value of the first squareness and the second squareness when the difference is equal to or less than the difference threshold value, and calculating an angular deviation of the translational axis and calculating a corrected squareness based on the angular deviation and the first squareness or the second squareness when the difference exceeds the difference threshold value; and setting the compensation parameter based on the average value or the corrected squareness.
In another aspect of the first configuration of the disclosure, which is in the above-described configuration, when the difference exceeds the difference threshold value in the determining step, the first measuring step, the first squareness calculating step, the second squareness calculating step, and the difference calculating step are performed again at each of a plurality of positions by installing the square calibration master at the plurality of positions, and the angular deviation is calculated based on the plurality of obtained differences in the squareness identifying step.
In order to achieve the above-described object, there is provided a method for calculating a compensation parameter of a motion error in a machine tool according to a second configuration of the disclosure. The machine tool includes a table configured to hold a workpiece, a main spindle configured to hold a tool, and three or more translational axes, the main spindle is configured to perform a relative motion of three degrees or more of translational freedom with respect to the table, and the machine tool is configured to compensate for a motion error of the translational axis in accordance with a predetermined compensation parameter. The compensation parameter is calculated using a square calibration master that includes a predetermined measurement surface A and a measurement surface B perpendicular to the measurement surface A, and an angle between the measurement surface A and the measurement surface B of the square calibration master is known. The method includes a first measuring step, a second measuring step, a first squareness calculating step, a second squareness calculating step, a difference calculating step, a determining step, a squareness identifying step, and a compensation parameter setting step. The first measuring step is of installing the square calibration master on the table, and measuring each of the measurement surface A and the measurement surface B of the square calibration master by a position measurement sensor attached to the main spindle. The second measuring step is of measuring the measurement surface A and the measurement surface B by the position measurement sensor by changing a direction of the square calibration master. The first squareness calculating step is of calculating a first squareness between the measurement surface A and the measurement surface B from a measurement result of the measurement surface A and the measurement surface B obtained by the first measuring step. The second squareness calculating step is of calculating a second squareness between the measurement surface A and the measurement surface B from a measurement result of the measurement surface A and the measurement surface B obtained by the second measuring step. The difference calculating step is of calculating a difference between the first squareness and the second squareness. The determining step is of comparing the difference with a preliminarily set difference threshold value. The squareness identifying step is of calculating an average value of the first squareness and the second squareness when the difference is equal to or less than the difference threshold value, and calculating an angular deviation of the translational axis and calculating a corrected squareness based on the angular deviation and the first squareness or the second squareness when the difference exceeds the difference threshold value. The compensation parameter setting step is of setting the compensation parameter based on the average value or the corrected squareness.
In another aspect of the second configuration of the disclosure, which is in the above-described configuration, when the difference exceeds the difference threshold value in the determining step, the first measuring step, the second measuring step, the first squareness calculating step, the second squareness calculating step, and the difference calculating step are performed again at each of a plurality of positions by installing the square calibration master at the plurality of positions, and the angular deviation is calculated based on the plurality of obtained differences in the squareness identifying step.
In order to achieve the above-described object, there is provided a machine tool according to a third configuration of the disclosure. The machine tool includes a table configured to hold a workpiece, a main spindle configured to hold a tool, and three or more translational axes, the main spindle is configured to perform a relative motion of three degrees or more of translational freedom with respect to the table, the machine tool is configured to compensate for a motion error of the translational axis in accordance with a predetermined compensation parameter. The machine tool includes a first measuring unit, a first squareness calculating unit, a second squareness calculating unit, a difference calculating unit, a determining unit, a squareness identifying unit, and a compensation parameter setting unit. The first measuring unit is configured to measure each of a measurement surface A, a measurement surface B, and a measurement surface C of a square calibration master by a position measurement sensor attached to the main spindle in a state where the square calibration master is installed on the table. The measurement surface A is a predetermined measurement surface. The measurement surface B and the measurement surface C are perpendicular to the measurement surface A and parallel to one another. An angle between the measurement surface A and the measurement surface B and an angle between the measurement surface A and the measurement surface C of the square calibration master are known. The first squareness calculating unit calculates a first squareness from a measurement result of the measurement surface A and the measurement surface B obtained by the first measuring unit. The second squareness calculating unit calculates a second squareness from a measurement result of the measurement surface A and the measurement surface C obtained by the first measuring unit. The difference calculating unit calculates a difference between the first squareness and the second squareness. The determining unit compares the difference with a preliminarily set difference threshold value. The squareness identifying unit calculates an average value of the first squareness and the second squareness when the difference is equal to or less than the difference threshold value, and calculates an angular deviation of the translational axis and calculates a corrected squareness based on the angular deviation and the first squareness or the second squareness when the difference exceeds the difference threshold value. The compensation parameter setting unit sets the compensation parameter based on the average value or the corrected squareness.
In order to achieve the above-described object, there is provided a machine tool according to a fourth configuration of the disclosure. The machine tool includes a table configured to hold a workpiece, a main spindle configured to hold a tool, and three or more translational axes, the main spindle is configured to perform a relative motion of three degrees or more of translational freedom with respect to the table, and the machine tool is configured to compensate for a motion error of the translational axis in accordance with a predetermined compensation parameter. The machine tool includes a first measuring unit, a second measuring unit, a first squareness calculating unit, a second squareness calculating unit, a difference calculating unit, a determining unit, a squareness identifying unit, and a compensation parameter setting unit. The first measuring unit measures each of a measurement surface A and a measurement surface B of a square calibration master by a position measurement sensor attached to the main spindle in a state where the square calibration master is installed on the table. The measurement surface A is a predetermined measurement surface. The measurement surface B is perpendicular to the measurement surface A. An angle between the measurement surface A and the measurement surface B of the square calibration master is known. The second measuring unit measures the measurement surface A and the measurement surface B by the position measurement sensor by changing a direction of the square calibration master. The first squareness calculating unit calculates a first squareness from a measurement result of the measurement surface A and the measurement surface B obtained by the first measuring unit. The second squareness calculating unit calculates a second squareness from a measurement result of the measurement surface A and the measurement surface B obtained by the second measuring unit. The difference calculating unit calculates a difference between the first squareness and the second squareness. The determining unit compares the difference with a preliminarily set difference threshold value. The squareness identifying unit calculates an average value of the first squareness and the second squareness when the difference is equal to or less than the difference threshold value, and calculates an angular deviation of the translational axis and calculates a corrected squareness based on the angular deviation and the first squareness or the second squareness when the difference exceeds the difference threshold value. The compensation parameter setting unit sets the compensation parameter based on the average value or the corrected squareness.
According to the disclosure, by measuring the three or two measurement surfaces of the square calibration master as an accuracy master by the position measurement sensor, the compensation parameter of the motion error can be obtained without using a specialized measuring instrument. Accordingly, the motion error of the machine tool can be appropriately compensated based on the obtained compensation parameter. Additionally, it can be easily determined whether the angular deviation of the translational axis adversely affects the measured squareness or not. Furthermore, even when the angular deviation of the translational axis is large, and the squareness is not uniquely determined, the compensation parameter can be obtained by measuring the angular deviation of the translational axis.
The following describes embodiments of the disclosure based on the drawings.
Here, a case where a squareness between X and Y axes and an angular deviation (yaw) of the Y-axis are measured to perform compensation will be described as an example. As an applied machine tool, a machining center M of
In the numerical control unit 21, when a machining program 11 is input, a command value generating unit 12 generates command values for respective translational axes.
A compensation value calculating unit 16 calculates compensation values of the respective axes based on the generated command values, and a total value of the command value and the compensation value is transmitted to a servo command value transformation unit 13 to calculate servo command values. The calculated servo command values of the respective axes are transmitted to servo amplifiers 14a to 14c of the respective axes. The servo amplifiers 14a to 14c of the respective axes respectively drive servomotors 15a to 15c for the respective axes to control a relative position of a spindle head 2 with respect to a table 3.
As illustrated in
The compensation parameter as a base of the compensation value is recorded in the recording unit 22, and includes the squareness between X and Y axes, and a Y-axis position and an angular deviation at the position in a case of a Y-axis angular deviation (yaw) as point cloud data. The angular deviations between the respective points are calculated by an interpolation, such as a linear interpolation. When it is assumed that the squareness between X and Y axes is γxy, and the Y-axis angular deviation (yaw) is EAY (i), the compensation value can be calculated by Math. 1 below.
ΔCx=γxy(Y−Yk)
ΔCy=EAY (i)(X−Xk) [Math. 1]
Here, ΔCx and ΔCy are compensation values of the X-axis and the Y-axis, respectively, X and Y are command values of the X-axis and the Y-axis, respectively, and Xk and Yk are compensation reference positions of the X-axis and the Y-axis, respectively.
Subsequently, a compensation parameter calculation method performed by the numerical control unit 21 will be described based on the flowchart of
First, the operator inputs a measurement error through the input unit 24. The input causes the numerical control unit 21 to recognize what sort of errors to be measured.
First, at step (hereinafter, expressed as “S”) 1, as illustrated in
Next, at S2, the measurement points (P100 to P114) of the square calibration master G are measured (first measuring step). At the measurement points (P100 to P104) of a measurement surface B, the stylus is brought in contact from a Y-direction, thus measuring Y-direction positions at the respective measurement points. At the measurement points (P105 to P109) of the measurement surface A, the stylus is brought in contact from the X-direction, thus measuring X-direction positions at the respective measurement points. At the measurement points (P110 to P114) of a measurement surface C, the stylus is brought in contact from the Y-direction, thus measuring Y-direction positions at the respective measurement points.
Next, at S3, squarenesses are calculated (first squareness and second squareness calculating step). For the measurement points (P100 to P104) and the measurement points (P110 to P114), inclinations a2 and a3 are calculated from the measured Y-direction positions (My100 to My104), (My110 to My114) and X-axis command values of the respective points by a least squares method or the like. Next, for the measurement points (P105 to P109), an inclination al is calculated from the measured X-direction positions (Mx105 to Mx109) and Y-axis command values of the respective points by the least squares method or the like. Then, squarenesses γxy1 and γxy2 are calculated by Math. 2 below.
γxy1=a2−a1
γxy2=a3−a1 [Math. 2]
Next, at S4, a squareness difference Δγxy is calculated by Math. 3 below (difference calculating step).
Δγxy=γxy2−γxy1 [Math. 3]
Next, at S5, the calculated squareness difference is compared with a difference threshold value preliminarily recorded in the recording unit 22 (determining step). When the squareness difference is determined to be equal to or less than the difference threshold value at S5, an average value γxy′ of the squarenesses γxy1 and γxy2 is calculated at S6 (squareness identifying step).
Meanwhile, when the squareness difference is determined to be larger than the difference threshold value at S5, the display unit 23 displays that the measurement of the angular deviation is necessary at S7.
Next, at S8, the angular deviation (yaw) is measured. The measurement of the angular deviation will be described later in detail.
Next, at S9, a squareness γxy″ considering the angular deviation (corrected squareness) is calculated from the angular deviation (yaw) EAY (i) calculated at S8 and the squareness γxy1 calculated at S3 by Math. 4 below (S7 to S9: squareness identifying step).
Δγxy=γxy1−EAY (Py100) [Math. 4]
EAY (Py100) is an angular deviation at the Y-axis position at which the measurement of the measurement point P100 of the square calibration master G is performed at S2.
Next, at S10, any of the average value γxy′ of the squareness obtained at S6 or the squareness γxy″ obtained at S9 is set as the compensation parameter (compensation parameter setting step).
The obtained compensation parameter is recorded in the recording unit 22, and used for calculating the compensation value (for example, Math. 1 described above) by the compensation value calculating unit 16 of
Subsequently, the measurement of the angular deviation at S8 will be described based on the flowchart illustrated in
First, at S8-2, the installation position of the square calibration master G is displayed by the display unit 23. For example, the displayed installation position is one as illustrated in
Next, at S8-3, the operator installs the square calibration master G on the table 3 in accordance with the displayed installation position, and positions the touch probe 101 immediately above the square calibration master origin.
Next, at S8-4, the measurement of the three measurement surfaces A to C of the square calibration master G is performed by the method described at S2.
Next, at S8-5, two squarenesses γxy3, γxy4 are calculated by the method described at S3, and a squareness difference Δγxy (Y1) is calculated by the method described at S4. S8-2 to S8-5 are repeated by changing the installation position of the square calibration master G to the installation positions 2 to 5.
Next, at S8-7, the angular deviations (yaw) are calculated from the obtained squareness differences Δγxy (Y1) to Δγxy (Y5) by Math. 5 below.
EAY (i)=ΣΔγxy (i) [Math. 5]
Thus, in the method for calculating the compensation parameter of the motion error and the machining center M in the configuration described above, the three measurement surfaces A to C of the square calibration master G as an accuracy master are measured by the touch probe 101 (position measurement sensor) attached to the spindle head 2 (main spindle), the two squarenesses are calculated from the measurement result to calculate the difference between the two squarenesses, the squareness is identified based on the comparison result of the difference and the difference threshold value, and the compensation parameter is set based on the identified squareness.
With the configuration, the compensation parameter of the motion error can be obtained without using a specialized measuring instrument. Accordingly, the motion error of the machining center M can be appropriately compensated based on the obtained compensation parameter. From the comparison result of the difference between the two squarenesses and the difference threshold value, it can be easily determined whether the angular deviation of the translational axis adversely affects the measured squareness or not. Furthermore, even when the angular deviation of the translational axis is large and the squareness is not uniquely determined, the compensation parameter can be obtained by measuring the angular deviation of the translational axis.
While the disclosure is described with an example of the square calibration master G including the three measurement surfaces of the measurement surface A, the measurement surface B, and the measurement surface C in the above-described configuration, the disclosure is also applicable by using a square calibration master G including two measurement surfaces of a measurement surface A and a measurement surface B.
In this case, in the machining center M, for example, the measurement is performed by a procedure below.
First, the square calibration master G is installed on the table 3, and a first measuring step of measuring each of the measurement surface A and the measurement surface B of the square calibration master G by the touch probe 101 attached to the spindle head 2 is performed.
Next, the square calibration master G is installed in a changed direction (for example, rotated about the X-axis by 180 degrees), and a second measuring step of measuring the measurement surface A and the measurement surface B by the touch probe 101 is performed.
Next, a first squareness calculating step of calculating, similarly to the above-described configuration, a first squareness between the measurement surface A and the measurement surface B from the measurement result of the measurement surface A and the measurement surface B in the first measuring step is performed.
Next, a second squareness calculating step of calculating, similarly to the above-described configuration, a second squareness between the measurement surface A and the measurement surface B from the measurement result of the measurement surface A and the measurement surface B in the second measuring step is performed.
The subsequent processes are similar to those in the above-described configuration.
Also in this case, the compensation parameter of the motion error can be obtained without using a specialized measuring instrument.
Additionally, the machine tool of the disclosure is not limited to the machining center.
It is explicitly stated that all features disclosed in the description and/or the claims are intended to be disclosed separately and independently from each other for the purpose of original disclosure as well as for the purpose of restricting the claimed invention independent of the composition of the features in the embodiments and/or the claims. It is explicitly stated that all value ranges or indications of groups of entities disclose every possible intermediate value or intermediate entity for the purpose of original disclosure as well as for the purpose of restricting the claimed invention, in particular as limits of value ranges.
Number | Date | Country | Kind |
---|---|---|---|
2021-141567 | Aug 2021 | JP | national |