This application relates to geometric error measurement, and more particularly to a method and device for identifying a geometric error of a NC machine tool based on a modified 9-line method.
The nine-line method is developed for indirect identification of geometric errors of NC machine tools, and has been extensively used in the related field due to the simple measurement process and intuitive and easily understandable identification model.
The nine-line method is generally performed as follows.
The positioning or straightness errors δμvi along the three trajectories shown in
However, the traditional nine line method has the following defects.
1. The nine-line method requires six measurements for the three trajectories in a single-axial direction as shown in
2. Extensive measurement experiments conducted at different coordinate points have shown that the identification results are susceptible to the coordinates of the measurement points. Thus, the identification results will vary considerably among different measurement locations.
3. When the measurement coordinate system is substituted by the machine tool coordinate system, the error transmission between individual rigid bodies in the motion chain shown in
In order to solve at least one of the technical problems existing in the prior art, the disclosure provides a method and device for identifying a geometric error of a numerical control (NC) machine tool based on a modified 9-line method.
In order to solve the technical problems, the disclosure adopts a method for identifying geometric errors of a NC machine tool based on a modified nine-line method, comprising:
In an embodiment, the plurality of rigid bodies comprises an X-axis platform, a Y-axis platform, a Z-axis platform, a spindle, a tool, and a workpiece; and
In an embodiment, the step of performing optimization based on the comprehensive error model and the preset fitness function to predict the six optimal measurement positions comprises:
In an embodiment, the optimal individual is determined through steps of:
In an embodiment, the preset fitness function is established through steps of:
The present disclosure further provides a device for identifying geometric errors of a NC machine tool based on a modified nine-line method, comprising:
The present disclosure has benefits as follows.
On one hand, the identification process of the nine-line method shows that the identification equations set determines the measurement strategy during the actual operation. This present application optimizes the measurement strategy by changing the combinations of the identification equations, achieving denser processing of measurement trajectories without increasing the number of measurements, thereby collecting more error information from the spatial domain.
On the other hand, this present application simulates a comprehensive error field established based on the topological structure of the target machine tool. Using an adaptive genetic algorithm, it traverses and searches within this comprehensive error field to predict the identification results at various points, ultimately obtaining the measurement positions that have the least impact on the identification results.
The present disclosure will be described in further detail below with reference to the accompanying drawings and embodiments. The above and other features of this disclosure will become more apparent, and the same reference numbers in the accompanying drawings indicate the same or similar output voltages. Obviously, presented in the accompanying drawings are only some embodiments of the present disclosure. Other embodiments may also be obtained by those skilled in the art according to these accompanying drawings without making creative effort.
A clear and comprehensive description of the inventive concepts, specific solution, and technical effects of the present disclosure is provided below with reference to the embodiments and accompanying figures, to facilitate understanding the objectives, approach, and effects of the present disclosure. It should be noted that, where there is no conflict, the embodiments and features described in this present disclosure can be combined with one another. Identical reference numerals used throughout the figures indicate the same or similar parts. The technical solutions in individual embodiments can also be appropriately combined to form other embodiments understood by those skilled in the art.
As shown in
(S110) Based on multibody system kinematics theory and a topological structure of the NC machine tool, a comprehensive error model is constructed by superimposing motion errors between a plurality of rigid bodies of the NC machine tool; and optimization is performed based on the comprehensive error model and a preset fitness function to predict six optimal measurement positions.
(S120) Six linear measurement trajectories respectively at the six optimal measurement positions are established. Where the six linear measurement trajectories are each parallel to one of an X-axis, a Y-axis, and a Z-axis; and measuring an error term for each of the six linear measurement trajectories to establish a first equation set having six first equations.
(S130) Geometric error simulation and identification for the NC machine tool are performed based on the first equation set.
In step (S120), the identification equation set is modified by densifying the original measurement trajectory. Taking the X-axis direction as an example, when the six geometric errors are the variables to be solved, an equation set with six equations needs to be established. As can be seen from formula (2), a unique solution of the equation set exists as long as a coordinate matrix of the equation set with six equations maintains a full-rank matrix.
Each point in a measurement space is configured to correspond to an error vector represented by formula (3). A total of six second equation sets are obtained in a case that six points respectively on the six parallel lines are taken, and the formula (3) is one of the six second equation sets corresponding to an i-th point, represented by:
In the above formula, i=1, 2, . . . 6. One equation is extracted from each of the six second equation sets to construct a third equation set; where a unique solution exists for the third equation set provided that the third equation set includes six error terms corresponding to the six linear measurement trajectories, and a coordinate matrix of the formula (3) maintains full rank.
The number of the third equation set satisfying requirements is determined to be 120 through MATLAB-assisted calculation. Due to the direct impact of the coefficient matrix on the analytical results, two sets were selected to enrich the optimization results of subsequent algorithms.
The first set of the 120 third equation sets shown as
The formula (4) is rewritten into formula (5) in a matrix form. Six measured values are substituted into a left side of the formula (5) and corresponding coordinate values are substituted into a right side of the formula (5) to solve the six error terms to be solved.
The formula (5) is represented by:
The second set among the 120 third equation sets is shown in formula (6) for cross search. The measurement process is the same as the above method, which will not be repeated. The formula (6) is represented by:
The formula (6) is rewritten into formula (7) in a matrix form, expressed by:
In the above formula, δuv represents a translation error of a v-axis in a direction of a u-axis, where the translation error includes positioning error and straightness error; εuv represents an angular error of the v-axis in the direction of the u-axis, where the u-axis is one of the X-axis, Y-axis, and Z-axis; and the v-axis is one of the X-axis, Y-axis, and Z-axis.
This method involves obtaining six linear measurement trajectories that are each parallel to a single motion axis direction (X-axis, Y-axis and Z-axis), with each trajectory measuring a specific type of error. A total of six measurements are taken. If measurements are to be conducted in all three directions, eighteen measurement trajectories would require a total of eighteen measurements. The traditional nine-line method also requires nine trajectories for a total of eighteen measurements, while the new measurement method provided herein densifies the measurement trajectories without increasing the total number of measurements.
A preferred embodiment of the present disclosure is described as follows. The step of constructing the comprehensive error model by superimposing motion errors between the plurality of rigid bodies to construct the comprehensive error model based on multibody system kinematics theory and the topological structure of the NC machine tool includes the following steps.
Accurately predicting the optimal measurement positions requires computer simulation of an error field that corresponds to the NC machine tool's processing space. The comprehensive error model is derived from multibody system kinematics theory and the topological structure of the NC machine tool. Thus, a comprehensive error mathematical model is used to establish the error field.
As shown in
The Z-axis platform is directly connected to the spindle and the tool without relative motion, such that SZT=I, where SZT represents a homogeneous transformation matrix from the local coordinate system Z to the local coordinate system S; and I represents identity matrix; the spindle is directly connected to the tool, such that TST=I, where TST represents a homogeneous transformation matrix from the local coordinate system S to the local coordinate system T; and the workpiece is directly connected to the NC machine tool, such that RWT=I, where RWT represents a homogeneous transformation matrix from the local coordinate system W to the reference coordinate system R.
In a case that the NC machine tool respectively moves x in the direction of the X-axis, y in the direction of the Y-axis and z in the direction of the Z-axis in an error-free state, a homogeneous transformation matrix from the local coordinate system W to the local coordinate system T is represented by:
In the above formula (8), i represents a corresponding matrix in the error-free state; pqTi represents a homogeneous transformation matrix from coordinate system q to coordinate system p in the error-free state; and p and q each are one of the reference coordinate system R, the local coordinate system X, the local coordinate system Y, the local coordinate system Z, the local coordinate system S, the local coordinate system T and the local coordinate system W.
In the actual state (error state), the transformation matrices of each motion axis exhibit slight movements in all directions. For example, the Y-axis platform has three translation errors (δyy, δxy and δzy) and three angular errors (εyy, εxy and εzy). When the Y-axis platform moves y, based on the small-error hypothesis and homogeneous coordinate transformation, the homogeneous transformation matrix from the reference coordinate system R to the Y-axis platform is represented as YRTe, expressed as formula (9). pqTe represents a homogeneous transformation matrix from coordinate system q to coordinate system p in the error state; p and q each are one of the reference coordinate system R, the local coordinate system X, the local coordinate system Y, the local coordinate system Z, the local coordinate system S, the local coordinate system T and the local coordinate system W.
When the X-platform moves x, there are three translation errors (δxx, δyx, δzx), three angular errors (εxx, εyx, εzx) and a vertical error (Sxy). Based on the small-error hypothesis and homogeneous coordinate transformation, the homogeneous transformation matrix from the Y-axis platform Y to the X-axis platform X is represented as XYTe, expressed as formula (10). pqTe represents a homogeneous transformation matrix from coordinate system q to coordinate system p in the error state; p and q each are one of the reference coordinate system R, the local coordinate system X, the local coordinate system Y, the local coordinate system Z, the local coordinate system S, the local coordinate system T and the local coordinate system W. Suv represents a perpendicularity error of the v-axis in the direction of the u-axis.
When the Z-platform moves z, there are three translation errors (δxz, δyz and δzz), three angular errors (εxx, εyz and εzz) and two vertical errors (Sxz and Syz). Based on the small-error hypothesis and homogeneous coordinate transformation, the homogeneous transformation matrix from the X-axis platform to the Z-axis platform is represented as ZXTe, expressed as formula (11). pqTe represents a homogeneous transformation matrix from coordinate system q to coordinate system p in the error state; p and q each are one of the reference coordinate system R, the local coordinate system X, the local coordinate system Y, the local coordinate system Z, the local coordinate system S, the local coordinate system T and the local coordinate system W.
In a case that the NC machine tool respectively moves x in the direction of the X-axis, y in the direction of the Y-axis and z in the direction of the Z-axis in an error state, based on small-error hypothesis and homogeneous coordinate transformation, a homogeneous transformation matrix from the local coordinate system W to the local coordinate system T is represented by:
In the formula (12), e represents a corresponding matrix in the error state; pqTe represents a homogeneous transformation matrix from coordinate system q to coordinate system p in the error state; p and q each are one of the reference coordinate system R, the local coordinate system X, the local coordinate system Y, the local coordinate system Z, the local coordinate system S, the local coordinate system T and the local coordinate system W; and the homogeneous transformation matrix TWTe is configured to be derived from multiplication of the homogeneous transformation matrix TWTi by a transformation matrix TWE from the local coordinate system W to the local coordinate system T in the error state, expressed as:
Based on the small-error hypothesis, the transformation matrix from the local coordinate system W to the local coordinate system T is represented by:
where Δx represents a positional error deviation of an actual cutting point of the tool relative to an ideal cutting point in the direction of the X-axis, Δy represents a positional error deviation of the actual cutting point of the tool relative to the ideal cutting point in the direction of the Y-axis, and Δz represents a positional error deviation of the actual cutting point of the tool relative to the ideal cutting point in the direction of the Z-axis; Δεx represents an orientation error deviation of the actual cutting point of the tool relative to the ideal cutting point in the direction of the X-axis, Δεy represents an orientation error deviation of the actual cutting point of the tool relative to the ideal cutting point in the direction of the Y-axis, Δεz represents an orientation error deviation of the actual cutting point of the tool relative to the ideal cutting point in the direction of the Z-axis;
Based on the small-error hypothesis while simultaneously neglecting second-order and higher-order small quantities and eliminating distance brought by three-direction translational translation, substituting formulas (8), (12), and (14) into formula (13) to represent the transformation matrix TWE as:
Terms corresponding to Δx, Δy and Δz are extracted from a matrix of formula (15) to obtain the comprehensive error model, expressed as:
In the above formulas, Suv represents a perpendicularity error of the v-axis in the direction of the u-axis; the u-axis is one of the X-axis, Y-axis, and Z-axis; and the v-axis is one of the X-axis, Y-axis, and Z-axis.
In a preferred embodiment, based on the actual dimensions and structure of the machine tool, as well as the installation range of the Renishaw XL-80 laser interferometer, the arrangement of measurement points along the X-axis of this CNC machine tool is as shown in Table 1:
Measurements are taken in the directions of the X-axis, Y-axis, and Z-axis in the space to obtain 18 geometric errors and 3 perpendicularity errors for each of the three directions, measured at intervals of 20 mm. To simplify the complexity of the model, the mean values of the 18 error values measured multiple times along different trajectories of one of the X-axis, Y-axis, and Z-axis are used as standard error values. Each direction (X, Y, Z) has 6 sets of errors, and the coordinates of the measurement points disperse these 6 sets of errors of each direction throughout the space, covering a total of 21 geometric errors at each point in the space.
As shown in
Each node contains 21 standard error values, and the comprehensive error model, as expressed in formula (16), is applied to each node. The simulated measurement values are substituted into the right side of the equation set for each point, generating three comprehensive errors (δ_x, δ_y, δ_z) at each node. This establishes an error model that accounts for the topology. Taking the standard error values as a reference, and using the X-axis as an example, the δ_x, δ_y, δ_z values at each node correspond to the left sides of the improved formula (11) and formula (13), as summarized in Table 2.
For the numerous variables in the comprehensive error model, all variables are expanded into matrices of the same size as the coordinate space matrix (26×34×21). The corresponding matrices are then used in the operation according to formula (23) to obtain a comprehensive error matrix of the same size (i.e., corresponding to δ_x, δ_y, and δ_z). At this point, each coordinate point uniquely corresponds to a set of values.
In this preferred embodiment, the step of performing optimization based on the comprehensive error model and the preset fitness function to predict the six optimal measurement positions includes the following steps.
Coordinate values of any six measurement points from a plurality of measurement points are combined as an individual to obtain a plurality of individuals. The preset fitness function is introduced to evaluate each of the plurality of individuals; and selecting an individual with a smallest fitness among the plurality of individuals as an optimal individual; where six measurement points corresponding to the optimal individual are selected as the six optimal measurement positions.
Specifically, the optimal individual is determined through the following steps.
(S210) The plurality of individuals is encoded and a population formed by the plurality of individuals is initialized.
(S220) A fitness of each of the plurality of individuals in the population is evaluated using the preset fitness function.
(S230) Whether a current individual among the plurality of individuals has a rank of 6 is determined; if not, a preset large fitness value is randomly assigned to the current individual to mark the current individual as unqualified, and the current individual is returned to the population; otherwise, step (S240) is proceeded.
(S240) Whether the number of iterations reaches a preset number of iterations is determined; if yes, step (S250) is proceeded; and if not, selection, crossover, and mutation operations are performed to generate a new population and step (S220) is returned.
(S250) The current individual is determined as the optimal individual.
Specifically, the preset fitness function is established through the following steps.
A plurality of variables in the measurement space are respectively expanded through a multi-dimensional grid interpolation operation to obtain a plurality of matrices of the same dimension.
The plurality of matrices is calculated based on the comprehensive error model to obtain a plurality of comprehensive error matrices of the same dimension. A mathematical model is constructed based on the plurality of comprehensive error matrices to describe an error distribution throughout the measurement space. The plurality of comprehensive error matrices are respectively corresponding to the plurality of variables
Standard deviations of mean error differences for the plurality of individuals are calculated and a coefficient of variation using the mathematical model is determined as identification results.
In this preferred embodiment, referring to
To facilitate the optimization algorithm, the function with the ability to encode and decode individuals is required (in this article, real-number encoding (1-714) is used). The corresponding encoding of the individual is input into the function, and calculations are performed to obtain the corresponding comprehensive errors (δμvi) (the column vectors on the left side of formula (12) and formula (14)) and the coordinate matrices (the 6×6 coefficient matrices on the right side of formula (12) and formula (14)). It is determined whether both coordinate matrices have a full rank of 6. If they are, the next calculations proceed; if not, a large fitness value is assigned to this individual, marking it as inferior, and it will be eliminated in the subsequent process.
Taking the direction of the X-axis as an example, calculations are performed using the starting point coordinates, comprehensive errors, and the two sets of coordinate matrices to obtain the two sets of identification errors at the 26 points along the unidirectional axis (the column vectors on the right side of equations (12) and (14)). The first three positioning/straightness errors are collected (angular errors are negligible and difficult to control, having little impact on the overall identification and subsequent compensation processes, so they are not considered here). The value corresponding to the coordinate value is subtracted from the standard error value, the absolute value of the subtracted result is configured to be the scalar for the three sets of error differences (Lxxi, Lyxi and Lzxi), expressed as:
In the above formula, μ represents the direction of the error deviation (including X-axis, Y-axis and Z-axis), x represents the X-axis, and i represents the i-th measurement point along the measurement path. δμxi represents the identified error value at the i-th measurement point, δ′μxi represents the measured error value at the i-th measurement point. The mean of the error differences at a single point Lai is calculated as follows:
In the above formula, Lsa represents the mean of the error differences and is as the standard for evaluating the mean size of individual error differences, reflecting the gap between the predicted values and the standard error values in terms of their average size.
To avoid excessive coordinate dispersion among the 26 points along the path, the coefficient of variation cv of Lsa must also be controlled. First, the standard deviation Sa is obtained through the following formula:
Then, the coefficient of variation cv is calculated through the following formula:
At this point, the size of cv is influenced by Sa and Lsa, and reflects the degree of variation of the observed values. To prevent the predicted values from being too dispersed, the mean of the error differences Lsa is continuously reduced while cv is also converging, making the predicted values more aligned with the standard error values.
The adaptive genetic algorithm performs a cyclical search in the aforementioned space, continuously converging cv while finding the minimum value of Lsa under a fixed number of iterations, and outputs the encoding of the individuals corresponding to the minimum value of Lsa.
After setting the parameters, the population is initialized, and then it enters the main iteration loop, where selection, crossover, and mutation are performed on the population to generate a new population for the next round of iterations until the preset number of iterations is reached, where the loop stops.
The method for identifying geometric errors of a numerical control (NC) machine tool based on a modified nine-line method proposed in the present disclosure is compared to the original nine-line method as follows.
In this method provided in the present disclosure, with 30 individuals and 10,000 iterations, the optimization result yields the best fitness of 1.42, corresponding to the encoding of individual [692, 168, 492, 444, 63, 379]. After decoding, the corresponding coordinate matrix is:
The corresponding measurement positions start at X=−640 and end at X=−140 on the X-axis to obtain the measurement starting points for the point combinations shown in Table 3.
To verify the reliability of the data obtained from the six-point combination, an experiment was conducted using the Renishaw XC-80 laser interferometer for point measurement on the CNC machine tool, as shown in
The coordinates from Table 3 were measured sequentially, setting the starting measurement point at X=−640 mm and the end measurement point at X=−140 mm; the measurements were taken back and forth five times. To reduce the impact of reverse backlash errors, a stroke of 0.05 mm was set; the interval between each measurement point along the path was 20 mm. The error data corresponding to the six points were measured, and the coefficient matrix (formula 19) corresponding to the combinations of the error data and the error data are substituted into the analytical equations given in formula (5) to yield formula (20) to obtain the six error values at each measurement point along the measurement path, as shown in
The formula 20 is represented by:
By substituting the measured values (error data) into the left side of the above equation, the six geometric error values were derived and recorded in Table 4, with a line graph illustrated in
The traditional nine-line measurement method was set as a control experiment. In this method, three points were randomly chosen as measurement points, and the corresponding coefficient matrix was used for identification, with the coordinates in Table 5 taken as the starting measurement points.
The error data corresponding to each measurement point were measured in sequence. The error data and the coefficient matrix of the coordinate values of the measurement point were substituted into formula (2) to obtain formula (21). Through this, the six types of error values at each measurement point along the path were determined, as illustrated in
The formula (21) is represented by:
By substituting the measurement data (error data) into the left side of this equation, the six types of geometric errors shown below were derived.
The accuracy of identification results of the two methods was assessed by comparing the standard error values of the actual measured errors with the identification results of the two methods (using multiple indicators) as shown in Table 6.
By comparing identification results of the method provided in this present disclosure and the traditional method with the indicators of actual measured values, as shown in
The conclusion of the present disclosure is as follows.
1. The method provided in this present disclosure addresses limited trajectory of the “nine-line eighteen measurements”. It is difficult for “nine-line eighteen measurements” to describe the overall spatial errors. By employing an analytical principle based on the nine-line method, the method provided in this present disclosure performs “eighteen lines and eighteen measurements,” dispersing multiple error measurements from a single point across several points. This not only extracts a broader range of error information, enhancing the generalizability of the identification results for the measurement space, but also reduces the impact of repeated positioning errors.
2. A comprehensive error model for the topological structure of the translational axis of a dual rotary five-axis NC machine tool was established through homogeneous coordinate transformation based on multibody system theory. Leveraging this model, an error field was constructed within the measurement range using computer simulation. In this space of the error field, an adaptive genetic algorithm searches for various combinations of coordinate points and predicts identification results. This method provided in this present disclosure can partially address the issues of the machine tool's topological structure overlooked by the traditional nine-line method and deviations of the identification results influenced by the coordinate values of the measurement point, while also automatically filtering out singular matrices that have no solutions.
3. Comparing the identification results of the method provided by the present disclosure and nine-line method with actual measurement outcomes reveals that the method provided by the present disclosure exhibits stronger adherence to linear errors than the traditional method. When used to describe linear errors within geometric errors, the method provided by the present disclosure demonstrates a higher level of reliability.
The present disclosure also provides a device for identifying geometric errors of a NC machine tool based on a modified nine-line method. The device includes a first construction module, a second construction module and a simulation and identification module.
The first construction module is configured for superimposing motion errors between a plurality of rigid bodies of the NC machine tool to construct a comprehensive error model based on multibody system kinematics theory and a topological structure of the NC machine tool; and performing optimization based on the comprehensive error model and a preset fitness function to predict six optimal measurement positions.
The second construction module is configured for establishing six linear measurement trajectories respectively at the six optimal measurement positions; where the six linear measurement trajectories are each parallel to one of an X-axis, a Y-axis, and a Z-axis; and measuring a error term for each of the six linear measurement trajectories to establish a first equation set having six first equations.
The simulation and identification module is configured for performing geometric error simulation and identification for the NC machine tool based on the first equation set.
Although the description of this present disclosure has been quite detailed, particularly regarding several specific embodiments, it is not intended to limit the present disclosure to any of these details or embodiments. Rather, it should be understood that the present disclosure encompasses a broad interpretation of the claims, considering the prior art, in order to effectively cover the intended scope of the present disclosure. Additionally, the embodiments provided above are foreseeable implementations intended to provide useful descriptions, and any non-substantial modifications to the present disclosure that are not currently anticipated may still be regarded as equivalent modifications of the present disclosure.
The above descriptions are merely preferred embodiments of the present disclosure; the present disclosure is not limited to the aforementioned implementations. Any modifications or variations that achieve the same technical effect as the present disclosure using similar means should fall within the protection scope of this present disclosure. Within the scope of protection of this present disclosure, various different modifications and changes can be made to its technical solutions and/or implementations.
| Number | Date | Country | Kind |
|---|---|---|---|
| 202311651145.3 | Dec 2023 | CN | national |
This application is a continuation of International Patent Application No. PCT/CN2024/116876, filed on Sep. 4, 2024, which claims the benefit of priority from Chinese Patent Application No. 202311651145.3, filed on Dec. 5, 2023. The content of the aforementioned application, including any intervening amendments made thereto, is incorporated herein by reference in its entirety.
| Number | Date | Country | |
|---|---|---|---|
| Parent | PCT/CN2024/116876 | Sep 2024 | WO |
| Child | 19027987 | US |