# US 2025/0155884 A1 · Method and device for identifying geometric error of numerical control (nc) machine tool based on modified 9-line method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0155884 A1
- Document ID: US20250155884A1
- Status: Published application
- Kind: A1
- Application number: 19/027,987
- Filed: 2025-01-17
- Published: 2025-05-15
- Earliest claimed: 2023-12-05
- Assignees: Guangdong Ocean University
- Applicants: Guangdong Ocean University
- Inventors: Huanlao LIU; Hengyu ZHOU; Wenbin ZHANG; Yulin WANG
- Web page: https://patentgrep.com/patent/US20250155884A1

## CPC

- G05B 23/0243: {model based detection method, e.g. first-principles knowledge model}
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)

## Abstract

A method and a device for identifying geometric errors of a numerical control (NC) machine tool based on a modified nine-line method. Motion errors between a plurality of rigid bodies of the NC machine tool is superimposed to construct a comprehensive error model based on multibody system kinematics theory and a topological structure of the NC machine tool. Optimization is performed based on the comprehensive error model and a preset fitness function to predict six optimal measurement positions. Six linear measurement trajectories are established respectively at the six optimal measurement positions. The six linear measurement trajectories are each parallel to one of an X-axis, a Y-axis, and a Z-axis. error terms for each of the six linear measurement trajectories are measured to establish a first equation set having six first equations. Geometric error simulation and identification for the NC machine tool are performed based on the first equation set.

## Claims

### Claim 1

A method for identifying geometric errors of a numerical control (NC) machine tool based on a modified nine-line method, comprising:
(S110) based on multibody system kinematics theory and a topological structure of the NC machine tool, constructing a comprehensive error model by superimposing motion errors between a plurality of rigid bodies 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;
(S120) establishing six linear measurement trajectories respectively at the six optimal measurement positions; wherein 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; and
(S130) performing geometric error simulation and identification for the NC machine tool based on the first equation set;
wherein the step (S120) comprises:
densifying an original measurement trajectory, wherein 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 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:
{
Δ
⁢
X
i
=
δ
xx
i
-
ε
zx
i
⁢
y
i
+
ε
yx
i
⁢
z
i
Δ
⁢
Y
i
=
δ
yx
i
-
ε
xx
i
⁢
z
i
+
ε
zx
i
⁢
x
i
Δ
⁢
Z
i
=
δ
zx
i
-
ε
yx
i
⁢
x
i
+
ε
xx
i
⁢
y
i
;
(
3
)
wherein i=1, 2, . . . , 6; and
extracting one equation from each of the six second equation sets followed by combination to construct a third equation set; wherein a unique solution exists for the third equation set provided that the third equation set comprises six error terms corresponding to the six linear measurement trajectories, and a coordinate matrix of the formula (3) maintains full rank;
through MATLAB-assisted calculation, it is determined that the number of the third equation set satisfying requirements is 120;
selecting two from 120 third equation sets, respectively represented by formula (4) and formula (6):
{
δ
xx
1
=
δ
xx
-
ε
zx
⁢
y
1
+
ε
yx
⁢
z
1
δ
yx
2
=
δ
yx
-
ε
xx
⁢
z
2
+
ε
zx
⁢
x
2
δ
xx
3
=
δ
zx
-
ε
zx
⁢
y
3
+
ε
yx
⁢
z
3
δ
zx
4
=
δ
zx
-
ε
yx
⁢
x
4
+
ε
xx
⁢
y
4
δ
xx
5
=
δ
xx
-
ε
zx
⁢
y
5
+
ε
yz
⁢
z
5
δ
zx
6
=
δ
xx
-
ε
yx
⁢
x
6
+
ε
xx
⁢
y
6
,
(
4
)
and
{
δ
xx
1
=
δ
xx
-
ε
zx
⁢
y
1
+
ε
yx
⁢
z
1
δ
yx
2
=
δ
yz
-
ε
xx
⁢
z
2
+
ε
zx
⁢
x
2
δ
zz
3
=
δ
zz
-
ε
yx
⁢
x
3
+
ε
xx
⁢
y
3
δ
xx
4
=
δ
xx
-
ε
zx
⁢
y
4
+
ε
yz
⁢
z
4
δ
yz
5
=
δ
yz
-
ε
xx
⁢
z
5
+
ε
zz
⁢
x
5
δ
xx
6
=
δ
xx
-
ε
zz
⁢
y
6
+
ε
yx
⁢
z
6
;
(
6
)
rewriting the formula (4) into formula (5) in a matrix form, represented by:
[
δ
xx
1
δ
yx
2
δ
xx
3
δ
zx
4
δ
xx
5
δ
zx
6
]
=
[
1
0
0
0
z
1
-
y
1
0
1
0
-
z
2
0
x
2
1
0
0
0
z
3
-
y
3
0
0
1
y
4
-
x
4
0
1
0
0
0
z
5
-
y
5
0
0
1
y
6
-
x
6
0
]
[
δ
xx
δ
yx
δ
zx
ε
xx
ε
yx
ε
zx
]
;
(
5
)
wherein the six linear measurement trajectories consist of a first trajectory, a second trajectory, a third trajectory, a fourth trajectory, a fifth trajectory, and a sixth trajectory; δxx1 indicates a positioning error along the X-axis on the first trajectory; δyx2 indicates a straightness error of the X-axis in a direction of the Y-axis on the second trajectory; δxx3 indicates a positioning error along the X-axis on the third trajectory; δzx4 indicates a straightness error of the X-axis in a direction of the Z-axis on the fourth trajectory; δxx5 indicates a positioning error of the X-axis on the fifth trajectory; and δzx6 indicates a straightness error of the X-axis in the direction of the Z-axis on the sixth trajectory;
substituting measured values into a left side of the formula (5) and corresponding coordinate values into a right side of the formula (5) to solve the six error terms to be solved;
rewriting the formula (6) into formula (7) in a matrix form, expressed by:
[
δ
xx
1
δ
yx
2
δ
xx
3
δ
zx
4
δ
xx
5
δ
zx
6
]
=
[
1
0
0
0
z
1
-
y
1
0
1
0
-
z
2
0
x
2
0
0
1
y
3
-
x
1
0
1
0
0
0
z
4
-
y
4
0
1
0
-
z
5
0
x
5
1
0
0
0
z
6
-
y
6
]
[
δ
xx
δ
yx
δ
zx
ε
xx
ε
yx
ε
zx
]
;
(
7
)
and
wherein δuv represents a translation error of a v-axis in a direction of a u-axis, wherein the translation error comprises positioning error and straightness error; εuv represents an angular error of the v-axis in the direction of the u-axis, wherein 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.

### Claim 2 (depends on 1)

The method of claim 1, wherein 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
the step of constructing the comprehensive error model by superimposing motion errors between the plurality of rigid bodies comprises:
creating a reference coordinate system R on the NC machine tool in an initial state; creating a local coordinate system X on the X-axis platform; creating a local coordinate system Y on the Y-axis platform; creating a local coordinate system Z on the Z-axis platform; creating a local coordinate system S on the spindle; creating a local coordinate system T on the tool; creating a local coordinate system W on the workpiece;
wherein X-axis, Y-axis and Z-axis directions of each of 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 are the same as X-axis, Y-axis and Z-axis directions of the reference coordinate system R, respectively; the Z-axis platform is directly connected to the spindle and the tool without relative motion, such that SZT=I, wherein 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, wherein 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, wherein 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:
T
W
T
i
=
R
W
T
s
·
T
R
⁢
T
i
=
R
W
T
i
·
Y
R
⁢
T
i
·
X
Y
⁢
T
i
·
Z
X
⁢
T
i
·
S
Z
⁢
T
s
·
T
S
⁢
T
i
=
[
1
0
0
x
0
1
0
y
0
0
1
z
0
0
0
1
]
;
(
8
)
wherein 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 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:
T
W
T
e
=
R
W
T
e
·
T
R
⁢
T
e
=
R
W
T
e
·
Y
R
⁢
T
e
·
X
Y
⁢
T
e
·
Z
X
⁢
T
e
·
S
Z
⁢
T
e
·
T
S
⁢
T
e
;
(
12
)
wherein 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; each of p and q is 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:
T
W
T
e
=
T
W
T
i
T
W
E
;
(
13
)
based on the small-error hypothesis, the transformation matrix from the local coordinate system W to the local coordinate system T is represented by:
T
W
E
[
1
-
Δε
z
Δε
y
Δ
x
Δε
z
1
-
Δε
x
Δ
y
-
Δε
y
Δε
x
1
Δ
z
0
0
0
1
]
;
(
14
)
wherein Δ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, and Δε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;
substituting formulas (8), (12), and (14) into formula (13) based on the small-error hypothesis while simultaneously neglecting second-order and higher-order small quantities and eliminating distances brought by three-directional translations, such that the transformation matrix TWE is expressed as:
T
W
E
[
1
-
ε
?
-
ε
?
-
ε
?
ε
?
+
ε
?
+
ε
?
δ
?
+
δ
?
+
δ
?
+
z
⁢
ε
?
+
z
⁢
ε
?
-
zS
?
ε
?
+
ε
?
+
ε
?
1
-
ε
?
-
ε
?
-
ε
?
δ
?
+
δ
?
+
δ
?
-
z
⁢
ε
?
-
z
⁢
ε
?
+
x
?
-
zS
?
-
xS
?
-
ε
?
-
ε
?
-
ε
?
ε
?
+
ε
?
+
ε
?
1
δ
?
+
δ
?
+
δ
?
-
x
⁢
ε
?
0
0
0
1
]
;
(
15
)
?
indicates text missing or illegible when filed
extracting terms corresponding to Δx, Δy, and Δz from a matrix of formula (15) to obtain the comprehensive error model, expressed as:
{
Δ
x
=
δ
?
+
δ
?
+
δ
?
+
z
⁢
ε
?
+
z
⁢
ε
?
-
zS
?
Δ
y
=
δ
?
+
δ
?
+
δ
?
-
z
⁢
ε
?
-
z
⁢
ε
?
+
x
⁢
ε
?
-
zS
?
-
xS
?
Δ
z
=
δ
?
+
δ
?
+
δ
?
-
x
⁢
ε
?
;
(
16
)
?
indicates text missing or illegible when filed
wherein 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.

### Claim 3 (depends on 1)

The method of claim 1, wherein the step of performing optimization based on the comprehensive error model and the preset fitness function to predict the six optimal measurement positions comprises:
combining coordinate values of any six measurement points from a plurality of measurement points as an individual to obtain a plurality of individuals; and
introducing the preset fitness function 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; wherein six measurement points corresponding to the optimal individual are selected as the six optimal measurement positions.

### Claim 4 (depends on 3)

The method of claim 3, wherein the optimal individual is determined through steps of:
(S210) encoding a plurality of individuals, and initializing a population formed by the plurality of individuals;
(S220) evaluating a fitness of each of the plurality of individuals in the population using the preset fitness function;
(S230) determining whether a current individual among the plurality of individuals has a rank of 6; if not, randomly assigning a preset large fitness value to the current individual to mark the current individual as unqualified, and returning the current individual to the population; otherwise, proceeding to step (S240);
(S240) determining whether the number of iterations reaches a preset number of iterations; if yes, proceeding to step (S250); and if not, performing selection, crossover, and mutation operations to generate a new population and returning to step (S220); and
(S250) determining the current individual as the optimal individual.

### Claim 5 (depends on 4)

The method of claim 4, wherein the preset fitness function is established through steps of:
respectively expanding a plurality of variables in the measurement space through a multi-dimensional grid interpolation operation to obtain a plurality of matrices of the same dimension;
calculating the plurality of matrices based on the comprehensive error model to obtain a plurality of comprehensive error matrices of the same dimension, and constructing a mathematical model based on the plurality of comprehensive error matrices to describe an error distribution throughout the measurement space; wherein the plurality of comprehensive error matrices are respectively corresponding to the plurality of variables; and
calculating standard deviations of mean error differences for the plurality of individuals and determining a coefficient of variation using the mathematical model as identification results.

### Claim 6

A device for identifying geometric errors of a NC machine tool based on a modified nine-line method, comprising:
a first construction module;
a second construction module;
a simulation and identification module;
wherein the first construction module is configured for constructing a comprehensive error model by superimposing motion errors between a plurality of rigid bodies of the NC machine tool 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; wherein 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; and;
the simulation and identification module is configured for a step of:
performing geometric error simulation and identification for the NC machine tool based on the first equation set through steps of:
densifying an original measurement trajectory, wherein 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 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:
{
Δ
⁢
X
i
=
δ
xx
i
-
ε
zx
i
⁢
y
i
+
ε
yx
i
⁢
z
i
Δ
⁢
Y
i
=
δ
yx
i
-
ε
xx
i
⁢
z
i
+
ε
zx
i
⁢
x
i
Δ
⁢
Z
i
=
δ
zx
i
-
ε
yx
i
⁢
x
i
+
ε
xx
i
⁢
y
i
;
(
3
)
wherein i=1, 2, . . . , 6; and
extracting one equation from each of the six second equation sets followed by combination to construct a third equation set; wherein a unique solution exists for the third equation set provided that the third equation set comprises six error terms corresponding to the six linear measurement trajectories, and a coordinate matrix of the formula (3) maintains full rank;
through MATLAB-assisted calculation, it is determined that the number of the third equation set satisfying requirements is 120;
selecting two from 120 third equation sets, respectively represented by formula (4) and formula (6):
{
δ
xx
1
=
δ
xx
-
ε
zx
⁢
y
1
+
ε
yx
⁢
z
1
δ
yx
2
=
δ
yx
-
ε
xx
⁢
z
2
+
ε
zx
⁢
x
2
δ
xx
3
=
δ
zx
-
ε
zz
⁢
y
3
+
ε
yz
⁢
z
3
δ
zx
4
=
δ
zx
-
ε
yx
⁢
x
4
+
ε
xx
⁢
z
4
δ
xx
5
=
δ
xx
-
ε
zx
⁢
y
5
+
ε
yz
⁢
z
5
δ
zx
6
=
δ
zx
-
ε
yz
⁢
x
6
+
ε
xx
⁢
y
6
,
(
4
)
and
{
δ
xx
1
=
δ
xx
-
ε
zx
⁢
y
1
+
ε
yx
⁢
z
1
δ
yx
2
=
δ
yz
-
ε
xx
⁢
z
2
+
ε
zx
⁢
x
2
δ
zx
3
=
δ
zz
-
ε
yx
⁢
x
3
+
ε
xx
⁢
y
3
δ
xx
4
=
δ
xx
-
ε
zx
⁢
y
4
+
ε
yx
⁢
z
4
δ
yx
5
=
δ
yz
-
ε
xx
⁢
z
5
+
ε
zz
⁢
x
5
δ
xx
6
=
δ
xx
-
ε
zz
⁢
y
6
+
ε
yz
⁢
z
6
;
(
6
)
rewriting the formula (4) into formula (5) in a matrix form, represented by:
[
δ
xx
1
δ
yx
2
δ
xx
3
δ
zx
4
δ
xx
5
δ
zx
6
]
=
[
1
0
0
0
z
1
-
y
1
0
1
0
-
z
2
0
x
2
1
0
0
0
z
3
-
y
3
0
0
1
y
4
-
x
4
0
1
0
0
0
z
5
-
y
5
0
0
0
y
6
-
x
6
0
]
[
δ
xx
δ
yx
δ
zx
ε
xx
ε
yx
ε
zx
]
;
(
5
)
wherein the six linear measurement trajectories consist of a first trajectory, a second trajectory, a third trajectory, a fourth trajectory, a fifth trajectory, and a sixth trajectory; δxx1 indicates a positioning error along the X-axis on the first trajectory; δyx2 indicates a straightness error of the X-axis in a direction of the Y-axis on the second trajectory; δxx3 indicates a positioning error along the X-axis on the third trajectory; δzx4 indicates a straightness error of the X-axis in a direction of the Z-axis on the fourth trajectory; δxx5 indicates a positioning error of the X-axis on the fifth trajectory; and δzx6 indicates a straightness error of the X-axis in the direction of the Z-axis on the sixth trajectory;
substituting measured values into a left side of the formula (5) and corresponding coordinate values into a right side of the formula (5) to solve the six error terms to be solved;
rewriting the formula (6) into formula (7) in a matrix form, expressed by:
[
δ
xx
1
δ
yx
2
δ
xx
3
δ
zx
4
δ
xx
5
δ
zx
6
]
=
[
1
0
0
0
z
1
-
y
1
0
1
0
-
z
2
0
x
2
0
0
1
y
3
-
x
3
0
1
0
0
0
z
4
-
y
4
0
1
0
-
z
5
0
x
5
1
0
0
0
z
6
-
y
6
]
[
δ
xx
δ
yx
δ
zx
ε
xx
ε
yx
ε
zx
]
;
(
7
)
and
δuv represents a translation error of a v-axis in a direction of a u-axis, wherein the translation error comprises positioning error and straightness error; εuv represents an angular error of the v-axis in the direction of the u-axis, wherein 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.
