Method for identifying critical error of worm gear machine and method for iteratively compensating critical error of worm gear machine

Information

  • Patent Grant
  • 12066809
  • Patent Number
    12,066,809
  • Date Filed
    Thursday, September 9, 2021
    3 years ago
  • Date Issued
    Tuesday, August 20, 2024
    2 months ago
Abstract
A method for identifying a critical error of a worm gear machine, step 1: obtaining an actual forward kinematic model T27a and an ideal forward kinematic model T27i from a coordinate system of a worm gear hob to a coordinate system of a worm gear, thereby establishing a geometric error-pose error model of the worm gear machine; step 2: regarding the geometric error-pose error model of the worm gear machine as a multi-input multi-output (MIMO) nonlinear system, and solving, by taking the geometric error of each motion axis of the worm gear machine as an input feature X, and a pose error between the worm gear hob and the worm gear as an output variable Y, an importance coefficient of each input feature with a random forest algorithm; and step 3: determining a critical error affecting a machining accuracy of the worm gear machine.
Description
CROSS REFERENCE TO RELATED APPLICATION(S)

This patent application claims the benefit and priority of Chinese Patent Application No. 202110390853.0, filed on Apr. 12, 2021, the disclosure of which is incorporated by reference herein in its entirety as part of the present application.


TECHNICAL FIELD

The present disclosure belongs to the technical field of mechanical error analysis, and in particular, to a method for identifying a critical error of a worm gear machine and a method for iteratively compensating a critical error of a worm gear machine.


BACKGROUND ART

The machining accuracy of a high-accuracy worm gear machine is restricted by various error factors, mainly including static and dynamic error factors. Geometric errors of a machine tool, as the leading roles in the static error factors, typically arise from original manufacture, placement or wear of parts on the worm gear machine, and can be divided into geometric errors in placement of the parts, geometric errors in the movement of the motion axes, etc. In view of repeatability of the geometric errors of the machine tool, experts, scholars or machine tool manufacturers often reduce or even eliminate the influence on a final machining error of the machine tool by measuring and identifying the errors first and then compensating them.


As a typical device in the worm gear machining, the high-accuracy worm gear machine is similar to a gear hobbing machine, and uses a generating-enveloping-hobbing type formation mechanism. Each item of geometric error will form a relative pose error between the worm gear hob and the worm gear, thereby affecting the machining accuracy of the worm gear. At present, most scholars are often committed to compensate and eliminate some item of geometric error or several items of geometric errors but less to model and compensate a comprehensive error of the worm gear machine under the coupling action of multiple geometric error elements, so there is a lack of systematic modeling and compensating methods. That is, existing analysis on coupling and modeling for multiple geometric errors of the worm gear machine is far from systematic, and there is no comprehensive and quantitative analysis made to individual and coupling effects of all geometric error elements on the machining error of the worm gear as well as no technical bases for supporting identification of a critical error item. In addition, there are also no methods for compensating geometric errors or critical error items of the worm gear machine.


SUMMARY

In view of this, an objective of the present disclosure is to provide a method for identifying a critical error of a worm gear machine and a method for iteratively compensating a critical error of a worm gear machine. The present disclosure establishes a pose error relation between a worm gear hob and a worm gear of the worm gear machine under the coupling influence of multiple geometric error elements, and identifies a critical error element of a pose error with a random forest algorithm, and then performs specific error iterative compensation upon the identification of the critical error, thereby improving the machining accuracy of the worm gear machine.


To achieve the above-mentioned objective, the present disclosure provides the following technical solutions:


The present disclosure first provides a method for identifying a critical error of a worm gear machine, including the following steps:

    • step a): analyzing a geometric error of each motion axis of a worm gear machine, and obtaining an actual forward kinematic model T27a and an ideal forward kinematic model T27 u from a coordinate system of a worm gear hob to a coordinate system of a worm gear based on a motion chain of the worm gear machine, thereby establishing a geometric error-pose error model of the worm gear machine;
    • step b): regarding the geometric error-pose error model of the worm gear machine as a multi-input multi-output (MIMO) nonlinear system, and solving, by taking the geometric error of each motion axis of the worm gear machine as an input feature X, and a pose error between the worm gear hob and the worm gear blank as an output variable Y, an importance coefficient of each input feature with a random forest algorithm; and
    • step c): according to the solved importance coefficient of each input feature, determining a critical error affecting a machining accuracy of the worm gear machine.


Further, in the step a), a method for establishing the geometric error-pose error model of the worm gear machine may be as follows:

    • step a1) analyzing a geometric error of the worm gear machine;
    • step a2) obtaining the actual forward kinematic model T27a and the ideal forward kinematic model T27i from the coordinate system of the worm gear hob to the coordinate system of the worm gear according to the motion chain of the worm gear machine; and
    • step a3) establishing the geometric error-pose error model of the worm gear machine from the actual forward kinematic model T27a and the ideal forward kinematic model T27i.


Further, in the step a1), geometric errors of X-, Y-, Z-, and C-motion axes of the worm gear machine may be considered, where:

    • each motion axis may include 6 items of position-dependent geometric errors (PDGEs), including: an x-direction linear error δx(s) of an S-axis in motion, a y-direction linear error δy(s) of the S-axis in motion, a z-direction linear error δz(s) of the S axis in motion, a x-direction angular error εx(s) of the S-axis in motion, a y-direction angular error εy(s) of the S-axis in motion, and a z-direction angular error εz(s) of the S-axis in motion, where s represents a motion instruction of the motion axis S, and s=x, y, z, c;
    • position-independent geometric errors (PIGEs) may be present between the motion axes, including: a perpendicularity error φyz between the X-axis and the Z-axis, a perpendicularity error φzy between the Y-axis and the Z-axis, and a perpendicularity error φxy between the Y-axis and the X-axis; and
    • the C axis may have four items of placement errors, including: a x-direction linear error δxc of the C-axis in placement, a y-direction linear error δyc of the C-axis in placement, an x-direction angular error φxc of the C-axis in placement, and a y-direction angular error φyc of the C-axis in placement.


Further, in the step a2), with the worm gear hob as a transfer end point, the worm gear machine have may the following motion chain: worm gear→C-axis→bed→X-axis→Z-axis→Y-axis→B-axis→worm gear hob, where the worm gear-C-axis-bed serves as a workpiece chain, and the bed→X-axis→Z-axis→Y-axis→B-axis→worm gear hob serves as a cutter chain;

    • during consideration of the geometric errors, an actual kinematic model of the tool chain is:

      T02a=T01T12=Tp01Tpe01Tm01Tme01×Tp12Tpe12Tm12Tme12;

      and
    • an ideal kinematic model of the tool chain is:

      T02i=T01iT12i=Tp01Tm01×Tp12Tm12
    • where, T02a and T02i represent an actual transformation matrix and an ideal transformation matrix from the worm gear to the bed, respectively; T01 and T01i represent an actual transformation matrix and an ideal transformation matrix from the C-axis to the bed, respectively; T12 and T12i respectively represent an actual transformation matrix and an ideal transformation matrix from the worm gear to the C-axis; Tp01 represents a placement matrix from the C-axis to the bed; Tpe01 represents a placement error matrix from the C-axis to the bed; Tm01 represents a motion matrix from the C-axis to the bed; Tme01 represents a motion error matrix from the C-axis to the bed; Tp12 represents a placement matrix from the worm gear to the C-axis; Tpe12 represents a placement error matrix from the worm gear to the C-axis; Tm12 represents a motion matrix from the worm gear to the C-axis; and Tme12 represents a motion error matrix from the worm gear to the C-axis; and
    • during consideration of the geometric errors, an actual kinematic model of the cutter chain is:

      T07a=T03T34T45T56T67=Tp03Tpe03Tm03Tme03×Tp34Tpe34Tm34Tme34×Tp45Tpe45Tm45Tme45×Tp56Tpe56Tm56Tme56×Tp67Tpe67Tm67Tme67

      and
    • an ideal kinematic model of the cutter chain is:

      T07i=Tp03Tm03Tp34Tm34Tp45Tm45Tp56Tm56Tp67Tm67
    • where, T07a and T07i respectively represent an actual transformation matrix and an ideal transformation matrix from the worm gear hob to the bed; T03 represents an actual transformation matrix from the X-axis to the bed; T34 represents an actual transformation matrix from the Z-axis to the X-axis; T45 represents an actual transformation matrix from the Y-axis to the Z-axis; T56 represents an actual transformation matrix from the B-axis to the Y-axis; T67 represents an actual transformation matrix from the worm gear hob to the B-axis; Tp03 represents a placement matrix from the X-axis to the bed; Tpe03 represents a placement error matrix from the X-axis to the bed; Tm03 represents a motion matrix from the X-axis to the bed; Tme03 represents a motion error matrix from the X-axis to the bed; Tp34 represents a placement matrix from the Z-axis to the X-axis; Tpe34 represents a placement error matrix from the Z-axis to the X axis; Tm34 represents a motion matrix from the Z-axis to the X-axis; Tme34 represents a motion error matrix from the Z-axis to the X-axis; Tp45 represents a placement matrix from the Y-axis to the Z-axis; Tpe45 represents a placement error matrix from the Y-axis to the Z-axis; Tm45 represents a motion matrix from the Y-axis to the Z-axis; Tme45 represents a motion error matrix from the Y-axis to the Z-axis; Tp56 represents a placement matrix from the B-axis to the Y-axis; Tpe56 represents a placement error matrix from the B-axis to the Y-axis; Tm56 represents a motion matrix from the B-axis to the Y-axis; Tme56 represents a motion error matrix from the B-axis to the Y-axis; Tp67 represents a placement matrix from the worm gear hob to the B-axis; Tpe67 represents a placement error matrix from the worm gear hob to the B-axis; Tm67 represents a motion matrix from the worm gear hob to the B-axis; and Tme67 represents a motion error matrix from the worm gear hob to the B-axis,
    • thereby obtaining the actual forward kinematic model of the worm gear machine from the coordinate system of the worm gear hob to the coordinate system of the worm gear:

      T27a=(T02a)−1T07a;

      and
    • obtaining the ideal forward kinematic model of the worm gear machine from the coordinate system of the worm gear hob to the coordinate system of the worm gear:

      T27i=(T02i)−1T07i.


Further, in the step a3), assuming that a cutter tip position vector and a cutter axis vector in the coordinate system of the worm gear hob are respectively Pt and Qt actual cutter position data under the influence of the geometric errors is:







[




Q
w





P
w






0


1



]

=


T
27
a

[




Q
t




P
t





0


1



]







    • where, P′w=[x′, y′, z′]T and Q′w=[i′, j′, k′]T represent an actual cutter tip position vector and an actual cutter axis vector, respectively; and

    • the geometric error-pose error model of the worm gear machine is obtained by performing subtraction on the actual cutter position data and ideal states of the worm gear hob and the worm gear:










[




Δ

i




Δ

x






Δ

j




Δ

y






Δ

k




Δ

z





0


1



]

=


(


T

2

7

a

-

T

2

7

i


)

[




Q
t




P
t





0


1



]







    • where, Δi represents an x-coordinate error of cutter axis vector data; Δj represents a y-coordinate error of the cutter axis vector data; Δk represents a z-coordinate error of the cutter axis vector data; Δx represents an x-coordinate error of cutter tip position data; Δy represents a y-coordinate error of the cutter tip position data; and Δz represents a z-coordinate error of the cutter tip position data.





Further, in the step b), a method for solving the importance coefficient of each input feature with the random forest algorithm may be as follows:

    • step b1) establishing a decision tree Tb with a bootstrap sampling set, and taking a sample not participating in establishment of the decision tree as an out-of-bag (OBB) sample xbobb;
    • step b2) predicting the xbobb with the established decision tree Tb, and computing a correctly classified resolution Rbobb;
    • step b3) for a geometric error element xj (j=1, . . . , 31), changing the value of the xj in the xbobb during initialization, and recording the value as xbjobb; and then, predicting the xbjobb with the decision tree Tb, and recording a correctly classified resolution as Rbjobb; and
    • step b4) repeating the step b1) to the step b3), such that an importance coefficient Dj of the geometric error element xj is:







D
j

=


1
n






b
=
1

n


(


R
b
obb

-

R
bj
obb


)









    • where, n is the number of repeated times.





The present disclosure further provides a method for iteratively compensating a critical error of a worm gear machine, including the following steps:

    • step e): by using the above-mentioned method for identifying a critical error of a worm gear machine, determining a critical error affecting a machining accuracy of a worm gear machine, retaining the identified critical error item, and simplifying a geometric error-pose error model of the worm gear machine;
    • step f): assuming that an actual x-direction position of a worm gear hob is x+Δx(x,y,z,c), obtaining a following iteration form of x:

      xi+1=xi−fΔx(xi, yi, zi, ci)
    • where, xi+1 represents an iterative value of a numerical control (NC) instruction x; xi represents an instruction when an X-axis reaches a predetermined position; f66 x(⋅) represents a mapping function between the critical error item and an x-direction pose error; and a subscript i represents the number of iterative times;
    • assuming that an actual x-direction position of the worm gear hob is z+Δz(x,y,z,c), obtaining a following iteration form of z:

      zi+1=zi−fΔz(xi+1, yi, zi, ci)
    • where, zi+1 represents an iterative value of an NC instruction z; zi represents an instruction when a Z-axis reaches a predetermined position; and fΔz(⋅) represents a mapping function between the critical error item and a z-direction pose error;
    • assuming that an actual y-direction position of the worm gear hob is y+Δy(x,y,z,c), obtaining a following iteration form of y:

      yi+1=yi−fΔy(xi+1, yi, zi, ci)
    • where, yi+1 represents an iterative value of an NC instruction y; yi represents an instruction when a Y-axis reaches a predetermined position; and fΔy(⋅) represents a mapping function between the critical error item and a y-direction pose error; and
    • assuming that an actual c-direction position of the worm gear hob is c+Δc(x,y,z,c), obtaining a following iteration form of c:

      ci+1=ci−fΔc(xi, yi, zi, ci)
    • where, ci+1 represents an iterative value of an NC instruction c; ci represents an instruction when a C-axis reaches a predetermined position; and fΔc(⋅) represents a mapping function between the critical error item and a c-direction pose error;
    • step g): iteratively compensating the critical error, and determining whether a motion accuracy of each of the X-, Z-, Y- and C-axes meets a preset threshold requirement; if yes, executing step d); and if no, letting xi=xi+1, zi=zi+1, yi=yi+1, ci=ci+1 and i=i+1 and executing step f); and
    • step d): outputting an actual NC instruction (xi, yi, zi, ci).


Further, in the step g), the motion accuracy of each of the X-, Z-, Y-, and C-axes may meet:






{








x

i
+
1


-

x
i






Δ
x










z

i
+
1


-

z
i






Δ
z










y

i
+
1


-

y
i






Δ
y










c

i
+
1


-

c
i






Δ
c













    • where, Δx, Δz, Δy and Δc represent a maximum allowable threshold for the motion accuracies of the X-, Z-, Y- and C-axes, respectively.





The present disclosure has the following beneficial effects:


The method for identifying the critical error of the worm gear machine and method for iteratively compensating the critical error of the worm gear machine provided by the present disclosure establish a pose error relation between a worm gear hob and a worm gear of the worm gear machine under the coupling influence of multiple geometric error elements to quantitatively analyze degrees of influence of the multiple geometric error elements on a machining accuracy of a worm gear; and by taking a geometric error of each motion axis of the worm gear machine as an input feature X and a pose error between the worm gear hob and the worm gear as an output variable Y, and an importance coefficient of each input feature is solved with a random forest algorithm to identify the critical error element affecting the machining accuracy of the worm gear machine.


The method for iteratively compensating the critical error of the worm gear machine provided by the present disclosure simplifies the geometric error-pose error model of the worm gear machine by using the identified critical error affecting the machining accuracy of the worm gear machine, and then performs error iterative compensation on NC codes x, z, y and c till a motion accuracy of X-, Z-, Y-, and C-axes meets a set threshold requirement, thereby improving the machining accuracy of the worm gear machine.





BRIEF DESCRIPTION OF THE DRAWINGS

In order to make the objectives, technical solutions and beneficial effects of the present disclosure clearer, the present disclosure provides the following descriptions on the accompanying drawings:



FIG. 1 is a schematic view of a transmission chain of a worm gear machine.



FIG. 2 is a flow chart for identifying a critical error of a worm gear machine with a random forest algorithm.



FIG. 3 is a flow chart for iteratively compensating a critical error of a worm gear machine.





DETAILED DESCRIPTION OF THE EMBODIMENTS

The present disclosure will be further described in combination with accompanying drawings and specific examples so as to enable those skilled in the art to better understand and practice the disclosure, but the illustrated examples do not constitute any limitation to the present disclosure.


A method for identifying a critical error of a worm gear machine in the embodiment includes the following steps:

    • Step a): Analyze a geometric error of each motion axis of a worm gear machine, and obtain an actual forward kinematic model T27a and an ideal forward kinematic model T27i from a coordinate system of a worm gear hob to a coordinate system of a worm gear based on a motion chain of the worm gear machine, thereby establishing a geometric error-pose error model of the worm gear machine.


Specifically, a method for establishing the geometric error-pose error model of the worm gear machine is as follows:

    • 11) Analyze a geometric error of the worm gear machine.


As shown in FIG. 1, the worm gear machine and the topological structure thereof are composed of a workpiece chain and a cutter chain, where the workpiece chain includes a bed, a C-axis and a worm gear, and the cutter chain includes a bed, an X-axis, a Z-axis, a Y-axis, a B-axis and a worm gear hob. The X-axis, Y-axis and Z-axis are linear motion axes, and B-axis and C-axis are rotational motion axes.


The workpiece chain and the cutter chain form a full motion chain of the worm gear machine. On the two motion sub-chains, geometric errors of each component include PIGEs and PDGEs. As the B-axis is a hob axis with a higher level of manufacturing accuracy, its errors are ignored temporarily herein during modeling, and considerations are given to geometric errors of X-, Y-, Z-, and C-motion axes of the worm gear machine.


Each motion axis includes 6 items of PDGEs, respectively including: an x-direction linear error δx(s) of an S-axis in motion, a y-direction linear error δy(s) ) of the S-axis in motion, a z-direction linear error δz(s) of the S-axis in motion, an x-direction angular error εx(s) of the S-axis in motion, a y-direction angular error εy(s) of the S-axis in motion, and a z-direction angular error εz(s) of the S-axis in motion, where s represents a motion instruction of the motion S-axis, and s=x, y, z, c.


PIGEs are present between the motion axes, respectively including: a perpendicularity error φyz between the X axis and the Z-axis, a perpendicularity error φzy between the Y-axis and the Z-axis, and a perpendicularity error φxy between the Y-axis and the X-axis.


The C-axis has four items of placement errors, respectively including: an x-direction linear error δxc of the C-axis in placement, a y-direction linear error δyc of the C-axis in placement, an x-direction angular error φxc of the C-axis in placement, and a y-direction angular error φyc of the C-axis in placement.


Specifically, each motion axis of the worm gear machine includes the following geometric error elements:


I. The X-axis has six items of PDGEs, respectively including:

    • an x-direction linear error δx(x) of the X-axis in motion; a y-direction linear error δy(x) of the X-axis in motion; a z-direction linear error δz(x) of the X-axis in motion; an x-direction angular error εx(x) of the X-axis in motion; a y-direction angular error εy(x) of the X-axis in motion; and a z-direction angular error εz(x) of the X-axis in motion.


II. The Z-axis has six items of PDGEs and one item of PIGE:


The six items of PDGEs are an x-direction linear error δx(z) of the Z-axis in motion; a y-direction linear error δy(z) of the Z-axis in motion; a z-direction linear error δz(z) of the Z-axis in motion; an x-direction angular error εx(z) of the Z-axis in motion; a y-direction angular error εy(z) of the Z-axis in motion; and a z-direction angular error εz(z) of the Z-axis in motion.


One item of PIGE is the perpendicularity error between the Y-axis and the Z-axis.


III. The Y-axis has six items of PDGEs and two items of PIGEs:


The six items of PDGEs are an x-direction linear error δx(y) of the Y-axis in motion; a y-direction linear error δy(y) of the Y-axis in motion; a z-direction linear error δz(y) of the Y-axis in motion; an x-direction angular error εx(y) of the Y-axis in motion; a y-direction angular error εy(y) of the Y-axis in motion; and a z-direction angular error εz(y) of the Y-axis in motion.


The two items of PIGEs are the perpendicularity error φzy between the Y-axis and the X-axis; and the perpendicularity error φxy between the Y-axis and the X-axis.


IV. The C-axis has six items of PDGEs and four items of PIGEs:


The six items of PDGEs are an x-direction linear error δx(c) of the C-axis in motion; a y-direction linear error δy(c) of the C-axis in motion; a z-direction linear error δz(c) of the C-axis in motion; an x-direction angular error εx(c) of the C-axis in motion; a y-direction angular error εy(c) of the C-axis in motion; and a z-direction angular error εz(c) of the C-axis in motion.


The four items of PIGEs are the x-direction linear error δxc of the C-axis in placement, the y-direction linear error δyc of the C-axis in placement, the x-direction angular error φxc of the C-axis in placement, and the y-direction angular error φyc of the C-axis in placement.


12) Obtain the actual forward kinematic model T27a and the ideal forward kinematic model T27i from the coordinate system of the worm gear hob to the coordinate system of the worm gear according to the motion chain of the worm gear machine.


With the worm gear hob as a transfer end point, the worm gear machine has the following motion chain: worm gear→C-axis→bed→X-axis→Z-axis→Y-axis→B-axis-worm gear hob, where the worm gear-C-axis-bed serves as the workpiece chain, and the bed→X-axis→Z-axis→Y-axis→B-axis→worm gear hob serves as the cutter chain.


During consideration of the geometric errors, an actual kinematic model of the tool chain is:

T02a=T01T12=Tp01Tpe01Tm01Tme01×Tp12Tpe12Tm12Tme12

and

    • an ideal kinematic model of the tool chain is:

      T02i=T01iT12i=Tp01Tm01×Tp12Tm12
    • where, T02a and T02i and represent an actual transformation matrix and an ideal transformation matrix from the worm gear to the bed, respectively; T01 and T01i respectively represent an actual transformation matrix and an ideal transformation matrix from the C-axis to the bed; and T12 and T12i represent an actual transformation matrix and an ideal transformation matrix from the worm gear to the C-axis, respectively;
    • Tp01 represents a placement matrix from the C-axis to the bed, and Tp01=I4×4;
    • Tpe01 represents a placement error matrix from the C-axis to the bed, and








T

pe

01


=

[



1


0



φ
yc




δ
xc





0


1



-

φ
xc





δ
yc






-

φ
yc





φ
xc



1


0




0


0


0


1



]


;






    • Tm01 represents a motion matrix from the C-axis to the bed, and











T

m

0

1


=

[




cos


(
c
)






-
s


in


(
c
)




0


0





sin


(
c
)





cos


(
c
)




0


0




0


0


1


0




0


0


0


1



]


;






    • Tme01 represents a motion error matrix from the C-axis to the bed, and











T

me

01


=

[



1




-

ε
z




(
c
)






ε
y

(
c
)





δ
x

(
c
)







ε
z

(
c
)



1




-

ε
x




(
c
)






δ
y



(
c
)







-


ε
y

(
c
)






ε
x

(
c
)



1




δ
z



(
c
)






0


0


0


1



]


;






    • Tp12 represents a placement matrix from the worm gear to the C-axis; Tpe12 represents a placement error matrix from the worm gear to the C-axis; Tm12 represents a motion matrix from the worm gear to the C-axis; and Tme12 represents a motion error matrix from the worm gear to the C-axis;

      Tp12=Tpe12=Tm12=Tme12=I4×4





During consideration of the geometric errors, an actual kinematic model of the cutter chain is:

T07a=T03T34T45T56T67=Tp03Tpe03Tm03Tme03×Tp34Tpe34Tm34Tme34×Tp45Tpe45Tm45Tme45×Tp56Tpe56Tm56Tme56×Tp67Tpe67Tm67Tme67

and

    • an ideal kinematic model of the cutter chain is:

      T07i=Tp03Tm03Tp34Tm34Tp45Tm45Tp56Tm56Tp67Tm67
    • where, T07a and T07i represent an actual transformation matrix and an ideal transformation matrix from the worm gear hob to the bed, respectively; T03 represents an actual transformation matrix from the X-axis to the bed; T34 represents an actual transformation matrix from the Z-axis to the X-axis; T45 represents an actual transformation matrix from the Y-axis to the Z-axis; T56 represents an actual transformation matrix from the B-axis to the Y-axis; and T67 represents an actual transformation matrix from the worm gear hob to the B-axis;
    • Tp03 represents a placement matrix from the X-axis to the bed; Tpe03 represents a placement error matrix from the X-axis to the bed; and Tp03=Tpe03=I4×4;
    • Tm03 represents a motion matrix from the X-axis to the bed,








T

m

0

3


=

[



1


0


0


x




0


1


0


0




0


0


1


0




0


0


0


1



]


;






    • Tme03 represents a motion error matrix from the X-axis to the bed,











T

m

e

0

3


=

[



1



-


ε
z

(
x
)






ε
y

(
x
)





δ
x

(
x
)







ε
z

(
x
)



1



-


ε
x

(
x
)






δ
y

(
x
)






-


ε
y

(
x
)






ε
x

(
x
)



1




δ
z

(
x
)





0


0


0


1



]


;






    • Tp34 represents a placement matrix from the Z-axis to the X-axis, Tp34=I4×4;

    • Tpe34 represents a placement error matrix from the Z-axis to the X-axis,











T

p

e

3

4


=

[



1


0


0


0




0


1



-

φ

y

z





0




0



φ
yz



1


0




0


0


0


1



]


;






    • Tm34 represents a motion matrix from the Z-axis to the X-axis,











T

m

3

4


=

[



1


0


0


0




0


1


0


0




0


0


1


z




0


0


0


1



]


;






    • Tme34 represents a motion error matrix from the Z-axis to the X-axis,











T

me

34


=

[



1



-


ε
z

(
z
)






ε
y

(
z
)





δ
x

(
z
)







ε
z

(
z
)



1



-


ε
x

(
z
)






δ
y

(
z
)






-


ε
y

(
z
)






ε
x

(
z
)



1




δ
z

(
x
)





0


0


0


1



]


;






    • Tp45 represents a placement matrix from the Y-axis to the Z-axis, Tp45=I4×4;

    • Tpe45 represents a placement error matrix from the Y-axis to the Z-axis,











T

pe

45


=

[



1


0


0


0




0


1



-

φ
yz




0




0



φ
yz



1


0




0


0


0


1



]


;






    • Tm45 represents a motion matrix from the Y-axis to the Z-axis,











T

m

4

5


=

[



1


0


0


0




0


1


0


y




0


0


1


0




0


0


0


1



]


;






    • Tme45 represents a motion error matrix from the Y-axis to the Z-axis,











T

me

45


=

[



1



-


ε
z

(
y
)






ε
y

(
y
)





δ
x

(
y
)







ε
z

(
y
)



1



-


ε
x

(
y
)






δ
y

(
y
)






-


ε
y

(
y
)






ε
x

(
y
)



1




δ
z

(
y
)





0


0


0


1



]


;





and

    • Tp56 represents a placement matrix from the B-axis to the Y-axis; Tpe56 represents a placement error matrix from the B-axis to the Y-axis; Tm56 represents a motion matrix from the B axis to the Y-axis; Tme56 represents a motion error matrix from the B-axis to the Y-axis; Tp67 represents a placement matrix from the worm gear hob to the B-axis; Tpe67 represents a placement error matrix from the worm gear hob to the B-axis; Tm67 represents a motion matrix from the worm gear hob to the B-axis; Tme67 represents a motion error matrix from the worm gear hob to the B-axis, and the Tp56, Tpe56, Tm56, Tme56, Tp67, Tpe67, Tm67 and Tme67 are all unit matrixes.


Therefore, the actual forward kinematic model of the worm gear machine from the coordinate system of the worm gear hob to the coordinate system of the worm gear is obtained:

T27a=(T02a)−1T07a


The ideal forward kinematic model of the worm gear machine from the coordinate system of the worm gear hob to the coordinate system of the worm gear is obtained:

T27i=(T02i)−1T07i


13) Establish the geometric error-pose error model of the worm gear mother from the actual forward kinematic model T27a and the ideal forward kinematic model T27i.


Assuming that a cutter tip position vector and a cutter axis vector in the coordinate system of the worm gear hob are Pt and Qt, respectively, the actual cutter position data under the influence of the geometric errors is:







[




Q
w





P
w






0


1



]

=


T

2

7

a

[




Q
t




P
t





0


1



]







    • where, P′w=[x′, y′, z′]T and Q′w=[i′, j′, k′]T represent an actual cutter tip position vector and an actual cutter axis vector, respectively.





The forward kinematic model of the worm gear machine describes a pose transformation relation between the worm gear hob and the worm gear, and the geometric error-pose error model of the worm gear machine is obtained by performing subtraction on the actual cutter position data and ideal states of the worm gear hob and the worm gear:







[




Δ

i




Δ

x






Δ

j




Δ

y






Δ

k




Δ

z





0


1



]

=


(


T

2

7

a

-

T

2

7

i


)

[




Q
t




P
t





0


1



]







    • where, Δi represents an x-coordinate error of cutter axis vector data; Δj represents a y-coordinate error of the cutter axis vector data; Δk represents a z-coordinate error of the cutter axis vector data; Δx represents an x-coordinate error of cutter tip position data; Δy represents a y-coordinate error of the cutter tip position data; and Δz represents a z-coordinate error of the cutter tip position data.

    • Step b): Regard the geometric error-pose error model of the worm gear machine as an MIMO nonlinear system, and solve, by taking the geometric error of each motion axis of the worm gear machine as an input feature X, and a pose error between the worm gear hob and the worm gear as an output variable Y, then an importance coefficient of each input feature is solved with a random forest algorithm.





There are a number of geometric error elements of the worm gear machine. If a critical error item affecting the machining accuracy of the worm gear most can be identified and specific compensation can be performed, both the compensation effect and the compensation efficiency will be greatly improved. The random forest is a machine learning algorithm with a decision tree as a basic learner. All decision trees are established by bootstrap sampling from a total error data set where 75% of data serves as a training set, and 25% of data serves as a validation set. The random forest algorithm not only samples the training sample, but also samples features. With this characteristic, the importance of a feature in a complex nonlinear system may be evaluated with the random forest algorithm. Specifically during critical item identification of the worm gear machine, the core theory is to convert the critical error identification problem into a feature selection problem based on the random forest. During establishment of the random forest, 31 items of geometric errors are used as an input feature X, and 6 items of pose errors between the worm gear hob and the worm gear are used as an output variable Y. The importance coefficient of each input feature (i.e., the geometric error) may be computed according to the following procedures:


Specifically, as shown in FIG. 2, a method for solving the importance coefficient of each input feature with the random forest algorithm is as follows:

    • Step b1) Establish a decision tree Tb with a bootstrap sampling set, and take a sample not participating in establishment of the decision tree as an out-of-bag (OBB) sample xbobb.
    • Step b2) Predict the xbobb with the established decision tree Tb, and compute a correctly classified resolution Rbobb.
    • Step b3) for a geometric error element xj (j=1, . .. ,31), a value of the xj in the xjobb is changed during initialization, and record the value as xbjobb; and then, predict the xbjobb with the decision tree Tb, and recording a correctly classified resolution as Rbjobb.


Step b4) Repeat Step b1) to Step b3), such that an importance coefficient Dj of the geometric error element xj is:







D
j

=


1
n






b
=
1

n


(


R
b
obb

-

R
bj
obb


)









    • where, n is the number of repeated times.

    • Step c): according to the solved importance coefficient of each input feature, determine a critical error affecting a machining accuracy of the worm gear machine.





Ideal cutter path for worm gear machining and path discretization are provided in block 101 in FIG. 2. The method for identifying the critical error of the worm gear machine and method for iteratively compensating the critical error of the worm gear machine provided by the embodiment establishes a pose error relation between a worm gear hob and a worm gear of the worm gear machine under the coupling influence of multiple geometric error elements to quantitatively analyze degrees of influence of the multiple geometric error elements on a machining accuracy of a worm gear, which can be seen in block 102 in FIG. 2; and solve, by taking a geometric error of each motion axis of the worm gear machine as an input feature X and a pose error between the worm gear hob and the worm gear as an output variable Y, which can be seen in blocks 103 and 104 in FIG. 2, and an importance coefficient of each input feature is solved with a random forest algorithm, which can be seen in block 105 in FIG. 2, to identify the critical error element affecting the machining accuracy of the worm gear machine, which can be seen in block 106 in FIG. 2.


Specific implementation of a method for iteratively compensating a critical error of a worm gear machine provided by the embodiment is as follows:


The importance coefficient of the geometric error element that is solved with the random forest is within 0-1, and is an indication of a contribution ratio of the input geometric error element to the output pose error. If comparing the importance coefficient may determine the critical error item affecting each pose error in direction, specific error iterative compensation may be performed.


As shown in FIG. 3, the method for iteratively compensating a critical error of a worm gear machine in the embodiment includes the following steps:

    • Step e): by using the above-mentioned method for identifying a critical error of a worm gear machine in the embodiment, determine the critical errors affecting a machining accuracy of a worm gear machine, retain the identified critical error items, and simplify a geometric error-pose error model of the worm gear machine. Ideal cutter path for hobbing a worm gear in a workpiece coordinate system (x,y,z,c) is provided in block 201 in FIG. 3; and an initial value of an NC instruction for each axis (x0,y0,z0,c0) is provided in block 202 in FIG. 3.
    • Step f): Obtain, for an x-direction pose error, a mapping relation between the critical error item and the x-direction pose error by using the simplified geometric error-pose error model of the worm gear machine, which can be seen in block 204 in FIG. 3. The following step can refer to block 205 in FIG. 3. If a motion position of the X-axis is controlled by an NC instruction x, an actual x-direction position of a cutter may be set as x+Δx(x,y,z,c) according to the simplified error model. The error compensation is intended to drive the X-axis through an NC code x to move to a predetermined position xi. Accordingly, a relation between the ideal cutter position and the NC instruction during compensation may be expressed as x+Δx(x,y,z,c)=x, to obtain the following iteration form of x:

      xi+1=xi−fΔx(xi, yi, zi, ci)
    • where, xi+1 represents an iterative value of an NC instruction x; xi represents an instruction when an X-axis reaches a predetermined position; fΔx(⋅) represents a mapping function between the critical error item and an x-direction pose error; and i has an initial value of 0, which can be seen in block 203 in FIG. 3.


Similarly, for a z-direction pose error, a mapping relation between the critical error item and the z-direction pose error may be obtained. The error compensation is intended to drive the Z axis through an NC code z to move to a predetermined position zi. Accordingly, a relation between the ideal cutter position and the NC instruction during compensation may be expressed as z+Δz(x,y,z,c)=zi. Meanwhile, as a new iterative value of x also has an impact on Δz, the iteration form of z is as follows:

zi+1=zi−fΔz(xi+1, yi, zi, ci)

    • where, zi+1 represents an iterative value of an NC instruction z; zi represents an instruction when a Z-axis reaches a predetermined position; and fΔz(⋅) represents a mapping function between the critical error item and a z-direction pose error;


By the same seasoning, assuming that an actual y-direction position of the worm gear hob is y+Δy(x,y,z,c), the following iteration form of y is obtained:

yi+1=yi−fΔy(xi+1, yi, zi+1, ci)

    • where, yi+1 represents an iterative value of an NC instruction y; yi represents an instruction when a Y-axis reaches a predetermined position; and fΔy(⋅) represents a mapping function between the critical error item and a y-direction pose error.


In addition, as the C-axis is not located on the same motion sub-chain with three straight axes, it is considered that the axis is not affected by iterative values of the three straight axes. Assuming that an actual c-direction position of the worm gear hob is c+Δc(x,y,z,c), the iteration form of the motion instruction c is deduced:

ci+1=ci−fΔc(xi, yi, zi, ci)

    • where, ci+1 represents an iterative value of an NC instruction c; ci represents an instruction when a C-axis reaches a predetermined position; and fΔc(⋅) represents a mapping function between the critical error item and a c-direction pose error;
    • Step g): Iteratively compensate the critical error, and determine whether a motion accuracy of each of the X-, Z-, Y-, and C-, axes meets a preset threshold requirement; if yes, execute Step d); and if no, let xi=xi+1, zi=zi+1, yi=yi+1, ci=ci+1 and i=i+1 and execute Step f), which can be seen in block 207 in FIG. 3. Specifically, the motion accuracy of each of the X, Z, Y and C axes should meet:






{







"\[LeftBracketingBar]"



x

i
+
1


-

x
i




"\[RightBracketingBar]"




Δ
x










"\[LeftBracketingBar]"



z

i
+
1


-

z
i




"\[RightBracketingBar]"




Δ
z










"\[LeftBracketingBar]"



y

i
+
1


-

y
i




"\[RightBracketingBar]"




Δ
y










"\[LeftBracketingBar]"



c

i
+
1


-

c
i




"\[RightBracketingBar]"




Δ
c











    • which can be seen in block 206 in FIG. 3, where, Δx, Δz, Δy and Δc represent a maximum allowable threshold for the motion accuracies of the X-, Z-, Y-, and C axes, respectively.

    • Step d): Output an actual NC instruction (xi, yi, zi, ci) , which can be seen in block 208 in FIG. 3.





The method for iteratively compensating the critical error of the worm gear machine provided by the embodiment simplifies the geometric error-pose error model of the worm gear machine by using the identified critical errors affecting the machining accuracy of the worm gear machine, and then performs error iterative compensation on NC codes x, z, y and c till a motion accuracy of each of X-, Z-, Y-, and C-axes meets a set threshold requirement, thereby improving the machining accuracy of the worm gear machine.


The above examples are merely preferred embodiments provided to more fully illustrate the present disclosure, and the scope of the present disclosure is not limited thereto. Equivalent substitutions or alternations made by those skilled in the art on the basis of the present disclosure are all within the protection scope of the present disclosure. The protection scope of the present disclosure is subject to the claims.

Claims
  • 1. A method for identifying a critical error of a worm gear machine, comprising the following steps: step a): analyzing a geometric error of each motion axis of the worm gear machine, and obtaining an actual forward kinematic model T27a and an ideal forward kinematic model T27i from a coordinate system of a worm gear hob to a coordinate system of a worm gear based on a motion chain of the worm gear machine, thereby establishing a geometric error-pose error model of the worm gear machine which contains final geometric errors after comparing between the actual forward kinematic model T27a and the ideal forward kinematic model T27i;step b): having the geometric error-pose error model of the worm gear machine as a multi-input multi-output (MIMO) nonlinear system, and solving, by taking the geometric error of each motion axis of the worm gear machine as an input feature X, and a pose error between the worm gear hob and the worm gear as an output variable Y, a coefficient of each input feature with a random forest algorithm;step c): determining, according to the solved coefficient of each input feature, the critical error affecting a machining accuracy of the worm gear machine; andstep d): outputting numerical control instruction to the worm gear machine to adjust positions of the worm gear hob to correct the critical error affecting the machining accuracy of the worm gear machine;wherein in the step a), a method for establishing the geometric error-pose error model of the worm gear machine is as follows:step a1) analyzing the geometric error of the worm gear machine;step a2) obtaining the actual forward kinematic model T27a and the ideal forward kinematic model T27i from the coordinate system of the worm gear hob to the coordinate system of the worm gear according to the motion chain of the worm gear machine; andstep a3) establishing the geometric error-pose error model of the worm gear machine from the actual forward kinematic model T27a and the ideal forward kinematic model T27i;wherein in the step a1), geometric errors of X-, Y-, Z- and C-motion axes of the worm gear machine are considered, whereineach motion axis comprises 6 items of position-dependent geometric errors (PDGEs), respectively comprising: an x-direction linear error δx(s) of an S-axis in motion, a y-direction linear error δy(s) of the S-axis in motion, a z-direction linear error δz(s) of the S axis in motion, an x-direction angular error εx(s) of the S-axis in motion, a y-direction angular error εy(s) of the S-axis in motion, and a z-direction angular error εz(s) of the S-axis in motion, wherein s represents a motion instruction of the motion axis S, and s=x, y, z, c;position-independent geometric errors (PIGEs) are present between the motion axes, respectively comprising: a perpendicularity error φyz between the X axis and the Z axis, a perpendicularity error φzy between the Y axis and the Z axis, and a perpendicularity error φxy between the Y axis and the X axis; andthe C axis has four items of placement errors, respectively comprising: an x-direction linear error δxc of the C axis in placement, a y-direction linear error δyc of the C axis in placement, an x-direction angular error φxc of the C axis in placement, and a y-direction angular error φyc of the C axis in placement.
  • 2. The method for identifying the critical error of the worm gear machine according to claim 1, wherein in the step a2), with the worm gear hob as a transfer end point, the worm gear machine has a following motion chain: worm gear→C-axis→bed→X-axis→Z-axis→Y-axis→B-axis→worm gear hob, wherein the worm gear-C axis-bed serves as a workpiece chain, and the bed→X-axis→Z-axis→Y-axis→B-axis→worm gear hob serves as a cutter chain; during consideration of the geometric errors, an actual kinematic model of the tool chain is: T02a=T01T12=Tp01Tpe01Tm01Tme01×Tp12Tpe12Tm12Tme12;
  • 3. The method for identifying the critical error of the worm gear machine according to claim 2, wherein in the step a3), assuming that a cutter tip position vector and a cutter axis vector in the coordinate system of the worm gear hob are respectively Pt and Qt, actual cutter position data under the influence of the geometric errors is:
  • 4. The method for identifying the critical error of the worm gear machine according to claim 3, wherein in the step b), a method for solving the coefficient of each input feature with the random forest algorithm is as follows: step b1) establishing a decision tree Tb with a bootstrap sampling set, and taking a sample not participating in establishment of the decision tree as an out-of-bag (OBB) sample xbobb;step b2) predicting the xbobb with the established decision tree Tb, and computing a correctly classified resolution Rbobb;step b3) changing, for a geometric error element xj (j=1, . . . , 31), a value of the xj in the xbobb during initialization, and recording the value as xbjobb; and then, predicting the xbjobb with the decision tree Tb, and recording a correctly classified resolution as Rbjobb; andstep b4) repeating the step b1) to the step b3), such that a coefficient Dj of the geometric error element xj is:
  • 5. A method for iteratively compensating a critical error of a worm gear machine, comprising the following steps: step e): determining, by using the method for identifying the critical error of the worm gear machine according to claim 1, the critical error affecting the machining accuracy of the worm gear machine, retaining the identified critical error item, and simplifying the geometric error-pose error model of the worm gear machine;step f): assuming that an actual x-direction position of the worm gear hob is x+Δx(x,y,z,c), obtaining a following iteration form of x: xi+1=xi−fΔx(xi, yi, zi, ci)wherein, x1+1 represents an iterative value of a numerical control instruction x; xi represents an instruction when an X axis reaches a predetermined position; fΔx(⋅) represents a mapping function between the critical error item and an x-direction pose error; and a subscript i represents the number of iterative times;assuming that an actual x-direction position of the worm gear hob is z+Δz(x,y,z,c), obtaining a following iteration form of z: zi+1=zi−fΔz(xi+1, yi, zi, ci)wherein, zi+1 represents an iterative value of a numerical control instruction z; zi represents an instruction when a Z axis reaches a predetermined position; and fΔz(⋅) represents a mapping function between the critical error item and a z-direction pose error;assuming that an actual y-direction position of the worm gear hob is y+Δy(x,y,z,c), obtaining a following iteration form of y: yi+1=yi−fΔy(xi+1, yi, zi+1, ci)wherein, yi+1 represents an iterative value of a numerical control instruction y; yi represents an instruction when a Y axis reaches a predetermined position; and fΔy(⋅) represents a mapping function between the critical error item and a y-direction pose error; andassuming that an actual c-direction position of the worm gear hob is c+Δc(x,y,z,c), obtaining a following iteration form of c: ci+1=ci−fΔc(xi, yi, zi, ci)wherein, ci+1 represents an iterative value of a numerical control instruction c; ci represents an instruction when a C axis reaches a predetermined position; and fΔ(⋅) represents a mapping function between the critical error item and a c-direction pose error;step g): iteratively compensating the critical error, and determining whether a motion accuracy of each of the X, Z, Y and C axes meets a preset threshold requirement; if yes, executing the step d); and if no, letting xi=xi+1, zi=zi+1, yi=yi+1, ci=ci+1 and i=i+1 and executing the step f); andwherein the step of outputting the numerical control instruction comprises outputting the numerical control instruction (xi, yi, zi, ci) to the worm gear machine to adjust the x-direction, y-direction, z-direction and c-direction positions of the worm gear hob to xi, yi, zi, and ci, respectively.
  • 6. The method for identifying the critical error of the worm gear machine according to claim 5, wherein in the step a2), with the worm gear hob as a transfer end point, the worm gear machine has a following motion chain: worm gear→C-axis→bed→X-axis→Z-axis→Y-axis→B-axis→worm gear hob, wherein the worm gear-C axis-bed serves as a workpiece chain, and the bed→X-axis→Z-axis→Y-axis→B-axis→worm gear hob serves as a cutter chain; during consideration of the geometric errors, an actual kinematic model of the tool chain is: T02a=T01T12=Tp01Tpe01Tm01Tme01×Tp12Tpe12Tm12Tme12;
  • 7. The method for identifying the critical error of the worm gear machine according to claim 6, wherein in the step a3), assuming that a cutter tip position vector and a cutter axis vector in the coordinate system of the worm gear hob are respectively Pt and Qt, actual cutter position data under the influence of the geometric errors is:
  • 8. The method for iteratively compensating the critical error of the worm gear machine according to claim 6, wherein in the step g), the motion accuracies of each of the X, Z, Y and C axes meets:
  • 9. The method for identifying the critical error of the worm gear machine according to claim 7, wherein in the step b), a method for solving the coefficient of each input feature with the random forest algorithm is as follows: step b1) establishing a decision tree Tb with a bootstrap sampling set, and taking a sample not participating in establishment of the decision tree as an out-of-bag (OBB) sample xbobb;step b2) predicting the xbobb with the established decision tree Tb, and computing a correctly classified resolution Rbobb;step b3) changing, for a geometric error element xj (j=1, . . . , 31), a value of the xj in the xbobb during initialization, and recording the value as xbjobb; and then, predicting the xbjobb with the decision tree Tb, and recording a correctly classified resolution as Rbjobb; andstep b4) repeating the step b1) to the step b3), such that a coefficient Dj of the geometric error element xj is:
  • 10. The method for iteratively compensating the critical error of the worm gear machine according to claim 7, wherein in the step g), the motion accuracies of each of the X, Z, Y and C axes meets:
  • 11. The method for iteratively compensating the critical error of the worm gear machine according to claim 9, wherein in the step g), the motion accuracies of each of the X, Z, Y and C axes meets:
  • 12. The method for iteratively compensating the critical error of the worm gear machine according to claim 5, wherein in the step g), the motion accuracy of each of the X, Z, Y and C axes meets:
Priority Claims (1)
Number Date Country Kind
202110390853.0 Apr 2021 CN national
US Referenced Citations (2)
Number Name Date Kind
20150300479 Frank Oct 2015 A1
20200133227 Mikado Apr 2020 A1
Foreign Referenced Citations (3)
Number Date Country
104907635 Sep 2015 CN
107966957 Oct 2019 CN
110298485 Oct 2019 CN
Non-Patent Literature Citations (4)
Entry
Chen et al., A comprehensive error analysis method for the geometric error of multi-axis machine tool, 2016.
Xia et al, Transmission chain error elimination for gear hobbing machines based on classified compensation theory and frequency response identification, 2020.
Vilmos Simon, The Influence of Gear Hobbing on Worm Gear Characteristics, 2007.
Jaster. Lean Hobbing Gears on a multi-Axis Machine.
Related Publications (1)
Number Date Country
20220334550 A1 Oct 2022 US