A method for measuring and automatically compensating geometric accuracy error of linear axis of numerical control machine tool
By installing tilt sensors on CNC machine tools to measure and calculate straightness errors in real time, and establishing a piecewise function automatic compensation CNC system, the problem of time-consuming and labor-intensive manual measurement of straightness errors on CNC machine tools is solved, and automated accuracy maintenance is achieved.
Patent Information
- Application Number
- CN202510167322.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-15
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2045-02-15
AI Technical Summary
In existing technologies, the vertical axis straightness error caused by the change in the included angle between the crossbeam guide surface and the worktable plane of a CNC machine tool requires manual measurement and compensation, which is time-consuming and labor-intensive and cannot achieve automated precision maintenance.
An inclination sensor is installed on the machine tool post to measure the angle between the crossbeam guide rail and the worktable plane in real time. The straightness error value is calculated by trigonometric functions, and a piecewise function of X-axis position and Z-axis error is established. The error is automatically compensated to the CNC system to drive the Z-axis servo motor.
It realizes automated error compensation for linear axes of CNC machine tools, improving the accuracy retention and operating efficiency of machine tools.
Smart Images

Figure CN119927707B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of testing large and super-large CNC machine tools, specifically relating to a method for in-machine measurement and automatic compensation of geometric accuracy errors of linear axes in CNC machine tools. It is applicable to situations where linear errors are caused by various reasons in the linear axes of CNC machine tools, requiring linear accuracy compensation. Background Technology
[0002] With my country's continuous investment in extreme manufacturing, the demand for large and ultra-large CNC machine tools has emerged. To meet the requirements of large and ultra-large machine tools for large-stroke machining, the machine tool's crossbeam is designed to be movable, utilizing the crossbeam's travel stroke to extend the machining range of the machine tool's tool post and achieve the purpose of ultra-large machining range. However, when the machine tool crossbeam moves vertically, due to problems such as geometric dimensional errors of the mechanical transmission parts driving the crossbeam's movement and mechanical wear from long-term operation, the crossbeam guide surface is no longer horizontal with the machine tool's worktable plane. An angle is formed between the crossbeam guide surface and the machine tool's worktable plane, causing errors in the straightness of the vertical axis moving on the crossbeam. Moreover, the angle between the crossbeam guide surface and the worktable plane may change each time the crossbeam moves to a different position. To compensate for the impact of the non-parallelism between the crossbeam and the worktable on the straightness accuracy of the tool post vertical axis, the traditional method is to use a long straightedge that can cover the range of movement of the machine tool's horizontal axis, making the straightedge level with the plane of the machine tool's worktable. By moving the horizontal axis, the straightness error value of the vertical axis caused by the unevenness of the crossbeam is manually measured, and then the measured error value is compensated into the CNC system. Once the crossbeam moves a certain distance, in order to maintain the geometric accuracy of the machine tool, the error value of the machine tool's vertical axis must be manually measured again, which is time-consuming and laborious. Summary of the Invention
[0003] The purpose of this invention is to overcome the shortcomings of the prior art and propose a method for in-machine measurement and automatic compensation of geometric accuracy error of linear axis of CNC machine tool. This method automatically measures the straightness error of vertical axis and automatically compensates the measured error value into the CNC system, thereby achieving the purpose of compensating for the straightness error of CNC machine tool and enhancing the accuracy retention of machine tool.
[0004] To achieve the above technical objectives, the present invention provides the following protection scheme.
[0005] This invention provides a method for in-machine measurement and automatic compensation of geometric accuracy errors of linear axes in CNC machine tools. An inclination sensor is installed on the machine tool post. The position value of the X-axis, which causes straightness errors in the Z-axis, is used as the independent variable. By moving the X-axis position at equal intervals, the inclination sensor measures the angle between the crossbeam guide rail and the worktable plane in real time at each fixed equidistant X-position. Using trigonometric functions, the straightness error value of the vertical axis is calculated. This process is repeated, and the calculated Z-axis error value is stored in the CNC system. Then, a piecewise function is established between the X-axis position value and the Z-axis error value. The dependent variable of the piecewise function, the Z-axis compensation value, is used as an additional input to the Z-axis servo motor, driving the Z-axis motor to achieve the purpose of compensating for the straightness error of the CNC machine tool.
[0006] The present invention provides a method for measuring and automatically compensating for geometric accuracy errors of linear axes in CNC machine tools. This method is simple, convenient and quick to operate. It measures the position error of the Z-axis in-machine, establishes a functional relationship model between the X-axis position and the Z-axis straightness error, and converts the Z-axis straightness error compensation value into motion commands for the Z-axis servo motor to drive the Z-axis servo motor to move, thereby compensating for the Z-axis straightness error caused by the movement of the X-axis. Attached Figure Description
[0007] Figure 1 This is a schematic diagram of the compensation method of the present invention.
[0008] Figure 2 This is a flowchart of the compensation method of the present invention.
[0009] The components include: 1. tilt sensor, 2. machine tool tool post, 3. machine tool column, 4. crossbeam guide rail, and 5. worktable. Detailed Implementation
[0010] To facilitate understanding of the present invention, the embodiments of the present invention will be further described below with reference to the accompanying drawings and examples. The accompanying drawings illustrate one embodiment of the present invention. It should be understood that this embodiment is merely illustrative and not intended to limit the scope of the invention. The purpose of providing this embodiment is to enable a more thorough and comprehensive understanding of the disclosure of the present invention.
[0011] This invention provides a method for in-machine measurement and automatic compensation of geometric accuracy errors of linear axes in CNC machine tools, such as... Figure 1As shown, this method involves mounting an inclination sensor 1 on the machine tool post 2. The position value of the X-axis, which causes straightness error in the Z-axis, is used as the independent variable. By moving the X-axis position at equal intervals, the inclination sensor 1 measures the angle between the crossbeam guide rail 4 and the worktable 5 plane in real time at each fixed equidistant X-position, calculating the straightness error value of the vertical axis. This process is repeated, and the calculated Z-axis error value is stored in the CNC system. A piecewise function is then established between the X-axis position value and the Z-axis error value. The dependent variable of the piecewise function, the Z-axis compensation value, is used as an additional input to the Z-axis servo motor, driving the Z-axis motor to achieve the purpose of compensating for the straightness error of the CNC machine tool.
[0012] like Figure 2 As shown, the method specifically includes the following steps:
[0013] (1) Divide the X-axis travel into n equally spaced regions, where n is greater than or equal to 1 and is an integer. Name the equal distance value Step.
[0014] (2) Move the X-axis to the starting point of the compensation interval and record the tilt angle value of the tilt sensor at this time, denoted as α0;
[0015] (3) Move the X-axis to the end of the first compensation interval, record the difference between the tilt angle value of the tilt sensor and α0 at this time, calculate the position error value of the Z-axis using Formula 1, and record it as E0;
[0016] E = tanα * Step (Formula 1)
[0017] (4) Repeat step (3) and record the difference between the tilt angle value of the tilt sensor and the previous tilt angle value when the X-axis moves to the starting point of each region. This difference is denoted as α. n The positional error of the Z-axis in each region is calculated using Formula 1 and denoted as E. n until the X-axis reaches the end of the travel;
[0018] (5) Take the X-axis coordinate value of each region of the X-axis travel as the independent variable and the corresponding Z-axis straightness error compensation value as the dependent variable, and calculate it according to the piecewise function formula.
[0019]
[0020] In Formula 2, Z comp The current straightness compensation value for the Z-axis, X pos Here, X represents the current machine coordinate system position value of the X-axis, Step represents the equidistant distance interval of the X-axis movement, P0 represents the starting position value of the first region of the X-axis, and P... j This represents the endpoint position value of the last region on the X-axis.
[0021] (6) The calculated Zcomp The value is output to the CNC system, which drives the corresponding servo motor to complete the straightness error compensation of the corresponding axis of the CNC machine tool.
[0022] The compensation method mentioned in this invention is not only applicable to the compensation between the X-axis and Z-axis, but can also be used to compensate for the straightness of any mutually perpendicular linear axes on a CNC machine tool.
[0023] The contents not described in detail in this specification are existing technologies known to those skilled in the art.
[0024] Finally, it should be noted that the above embodiments are merely representative examples of the present invention. Obviously, the present invention is not limited to the above embodiments and can have many variations. Any simple modifications, equivalent changes, and alterations made to the above embodiments based on the technical essence of the present invention should be considered to fall within the protection scope of the present invention.
Claims
1. A method for in-machine measurement and automatic compensation of geometric accuracy error of linear axes in CNC machine tools, characterized in that: This method involves mounting an inclination sensor on the machine tool turret and using the position value of the X-axis (the axis that causes straightness error on the Z-axis) as the independent variable. By moving the X-axis position at equal intervals, the inclination sensor measures the angle between the crossbeam guide rail and the worktable plane in real time at each fixed equidistant X-position, calculating the straightness error value of the vertical axis. This process is repeated, and the calculated Z-axis error value is stored in the CNC system. Then, a piecewise function is established between the X-axis position value and the Z-axis error value, and the dependent variable of the piecewise function, i.e., the Z-axis compensation value, is used as an additional setpoint for the Z-axis servo motor to drive the Z-axis motor and achieve the purpose of compensating for the straightness error of the CNC machine tool. Specifically, the following steps are included: (1) Divide the X-axis travel into n equally spaced regions, where n is greater than or equal to 1 and is an integer. Name the equally spaced region Step. (2) Move the X-axis to the starting point of the compensation interval and record the tilt angle value of the tilt sensor at this time, denoted as α0; (3) Move the X-axis to the end of the first compensation interval, record the difference between the tilt angle value of the tilt sensor and α0 at this time, calculate the position error value of the Z-axis using Formula 1, and record it as E0; Formula 1 (4) Repeat step (3) and record the difference between the tilt angle value of the tilt sensor and the previous tilt angle value when the X-axis moves to the starting point of each region. This difference is denoted as α. n The positional error of the Z-axis in each region is calculated using Formula 1 and denoted as E. n until the X-axis reaches the end of the travel; (5) Take the X-axis coordinate value of each region of the X-axis travel as the independent variable and the corresponding straightness error compensation value of the Z-axis as the dependent variable, and calculate it according to the piecewise function formula. Formula 2 Formula 2 This is the current straightness compensation value along the Z-axis. Here, X represents the current machine coordinate system position value along the X-axis, and Step represents the equal distance interval for X-axis movement. This represents the starting position value of the first region on the X-axis. This represents the endpoint position value of the last region on the X-axis. (6) Output the result of Formula 2 to the CNC system. The CNC system drives the corresponding servo motor to complete the straightness error compensation of the corresponding axis of the CNC machine tool.
Citation Information
Patent Citations
Industrial machine
CN102288141A
