Machine tool error detection method, device, equipment and storage medium

By establishing a rectangular coordinate system and obtaining position data in the horizontal machining center, the problem of error between the feed axis and the work surface is solved, accurate identification of the error source and data compensation are achieved, and machining accuracy is improved.

CN119407606BActive Publication Date: 2025-03-11CHINA NAT MASCH TOOL QUALITY SUPERVISION TESTING CENT
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510029998.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-08
Publication Date
2025-03-11
Estimated Expiration
2045-01-08

AI Technical Summary

Technical Problem

There is an error between the two feed shafts of the horizontal machining center and the work surface, resulting in deviations during the opposite boring process.

Method used

By establishing the rectangular coordinate system of the machine tool, obtaining the position data at different angles of the workbench, performing limit differences, generating a comprehensive error between the two-way feed axis and the workbench, and determining the error source type.

Benefits of technology

The planarity data of the workbench and the error source type of machine tool are accurately determined, providing a reference basis for machine tool data compensation and improving machining accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119407606B_ABST
    Figure CN119407606B_ABST
Patent Text Reader

Abstract

The present application discloses an error detection method, device, equipment and storage medium for a machine tool. The machine tool includes a bidirectional feed shaft and a worktable, the bidirectional feed shaft is used to drive the worktable, and the method includes: establishing a rectangular coordinate system corresponding to the machine tool; determining the first height data of the vertex sub-area based on the first position data, the second position data, the third position data, the fourth position data, the first Y-direction height data, the second Y-direction height data and the first calculation rule; determining the second height data of other sub-areas based on the fifth position data, the sixth position data, the seventh position data and the eighth position data, the first Y-direction height data, the second Y-direction height data and the second calculation rule; determining the flatness data of the worktable based on the first height data and the second height data; determining the error source type of the machine tool based on the comprehensive error and the flatness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of machine tool testing, and in particular to an error detection method, device, equipment and storage medium for a machine tool. Background Art

[0002] Modern mechanical manufacturing technology is developing towards high efficiency, high quality, high precision, high integration and high intelligence. The horizontal machining center is an important machine tool equipment widely used in the field of mechanical processing. However, there is a certain error between the two feed axes and the worktable of the horizontal machining center, which leads to a certain deviation in the process of boring holes in the machine tool. Summary of the invention

[0003] In view of this, the embodiments of the present application provide a method, device, equipment and storage medium for error detection of a machine tool, aiming to determine the error source of the machine tool and provide a reference for machine tool data compensation.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] In a first aspect, an embodiment of the present application provides an error detection method for a machine tool, wherein the machine tool comprises a bidirectional feed shaft and a worktable, wherein the bidirectional feed shaft is used to drive the worktable, and the method comprises:

[0006] A rectangular coordinate system corresponding to the machine tool is established, wherein the z-axis of the rectangular coordinate system is the z-axis of the worktable, the x-axis of the rectangular coordinate system is the x-axis of the worktable, and the bidirectional feed axis feeds along the x-axis and / or the z-axis respectively; the worktable includes a plurality of sub-areas, and the types of the plurality of sub-areas include: a vertex sub-area and other sub-areas;

[0007] Acquire the first position data of the vertex sub-area when the worktable angle is 0 degrees, the second position data when the worktable angle is 90 degrees, the third position data when the worktable angle is 180 degrees, and the fourth position data when the worktable angle is 270 degrees; and acquire the fifth position data of the other sub-areas when the worktable angle is 0 degrees, the sixth position data when the worktable angle is 90 degrees, the seventh position data when the worktable angle is 180 degrees, and the eighth position data when the worktable angle is 270 degrees;

[0008] Performing limit difference calculation on the first position data, the second position data, the third position data, the fourth position data, the fifth position data, the sixth position data, the seventh position data and the eighth position data to generate a comprehensive error between the bidirectional feed axis and the worktable;

[0009] Determine, based on the first position data, the second position data, the third position data and the fourth position data, first Y-direction height data of the top corner sub-region away from the zero position of the z-axis and second Y-direction height data of the top corner sub-region away from the zero position of the x-axis;

[0010] Determine first height data of the vertex sub-area based on the first position data, the second position data, the third position data, the fourth position data, the first Y-direction height data, the second Y-direction height data and a first calculation rule;

[0011] Determine the second height data of the other sub-areas based on the fifth position data, the sixth position data, the seventh position data and the eighth position data, the first Y-direction height data, the second Y-direction height data and the second calculation rule;

[0012] Determining the flatness data of the workbench based on the first height data and the second height data;

[0013] Based on the comprehensive error and the flatness, the error source type of the machine tool is determined.

[0014] In some embodiments, the method further comprises:

[0015] Determine the first position, the second position data, the third position data, and the fourth position data based on the number data of the vertex sub-area and the first mapping relationship;

[0016] Determine the fifth position data, the sixth position data, the seventh position data, and the eighth position data based on the number data of the other sub-areas and the first mapping relationship;

[0017] The first mapping relationship includes a correspondence between each serial number data and each angle position data.

[0018] In some embodiments, the sub-regions include nine sub-regions, and the method further includes:

[0019] Based on the nine-grid division rule, the workbench is divided into nine sub-areas, and the nine sub-areas include four corner sub-areas and five other sub-areas.

[0020] In some embodiments, the method further comprises:

[0021] The four vertex sub-regions and the five other sub-regions are numbered based on an S-type numbering sequence to generate numbering data for the four vertex sub-regions and numbering data for the five other sub-regions.

[0022] In some embodiments, determining the error source type of the machine tool based on the comprehensive error and the flatness data includes:

[0023] Determine the non-parallelism error between the bidirectional feed axis and the worktable based on the difference between the comprehensive error data and the flatness data;

[0024] comparing the non-parallelism error and the flatness data to generate a comparison result;

[0025] Based on the comparison result, the error source type of the machine tool is determined.

[0026] In some embodiments, the comparison result includes a first comparison result that the non-parallelism error is greater than the flatness data and a second comparison result that the non-parallelism error is less than the flatness data, the error source type includes a first error source type that the bidirectional feed axis is not parallel to the worktable and a second error source type of the worktable flatness, and determining the error source type of the machine tool based on the comparison result includes:

[0027] If the comparison result is the first comparison result, determining that the error source type is the first error source type;

[0028] If the comparison result is the second comparison result, the error source type is determined to be the second error source type.

[0029] In some embodiments, the first calculation rule is:

[0030]

[0031] Wherein, z1 is the Y-direction height data of the vertex sub-region at the zero point of the z-axis, z1=0; x1 is the Y-direction height data of the vertex sub-region at the zero point of the x-axis, x1=0; z3 is the first Y-direction height data of the vertex sub-region at a position far away from the zero point of the z-axis, x3 is the second Y-direction height data of the vertex sub-region at a position far away from the zero point of the x-axis, h1n, h2n, h3n and h4n are the position data corresponding to the vertex sub-region at 0 degrees, 90 degrees, 180 degrees and 270 degrees respectively, hn is the height change value of the flatness of the vertex sub-region itself, and n is the number of the vertex sub-region.

[0032] In some embodiments, the second calculation rule includes:

[0033]

[0034] Among them, z1 is the Y-direction height data of the vertex sub-area at the zero point of the z-axis, z1=0; z3 is the first Y-direction height data of the vertex sub-area away from the zero point of the z-axis; z2 is the Y-direction height of other sub-areas between z1 and z3; x1 is the Y-direction height data of the vertex sub-area at the zero point of the x-axis, x1=0; x3 is the second Y-direction height data of the vertex sub-area away from the zero point of the x-axis; x2 is the Y-direction height data of other sub-areas between x1 and x3; h1m, h2m, h3m and h4m are the position data corresponding to other sub-areas at 0 degrees, 90 degrees, 180 degrees and 270 degrees respectively; hm is the height change value of the flatness of other sub-areas themselves, and m is the number of other sub-areas.

[0035] In a second aspect, an embodiment of the present application provides an error detection device for a machine tool, wherein the machine tool comprises a bidirectional feed shaft and a worktable, wherein the bidirectional feed shaft is used to drive the worktable, and the error detection device for the machine tool comprises:

[0036] An establishment module is used to establish a rectangular coordinate system corresponding to the machine tool, wherein the z-axis of the rectangular coordinate system is the z-axis of the workbench, the x-axis of the rectangular coordinate system is the x-axis of the workbench, and the bidirectional feed axis feeds along the x-axis and / or the z-axis respectively; the workbench includes a plurality of sub-areas, and the types of the plurality of sub-areas include: a vertex sub-area and other sub-areas;

[0037] an acquisition module, for acquiring first position data of the vertex sub-area when the worktable angle is 0 degrees, second position data when the worktable angle is 90 degrees, third position data when the worktable angle is 180 degrees, and fourth position data when the worktable angle is 270 degrees; and acquiring fifth position data of the other sub-areas when the worktable angle is 0 degrees, sixth position data when the worktable angle is 90 degrees, seventh position data when the worktable angle is 180 degrees, and eighth position data when the worktable angle is 270 degrees;

[0038] A generating module, used for performing limit difference calculation on the first position data, the second position data, the third position data, the fourth position data, the fifth position data, the sixth position data, the seventh position data and the eighth position data to generate a comprehensive error between the feed shaft and the worktable;

[0039] a determination module, configured to determine first Y-direction height data of the top corner sub-region away from the zero position of the z-axis and second Y-direction height data of the top corner sub-region away from the zero position of the x-axis based on the first position data, the second position data, the third position data and the fourth position data;

[0040] Determine first height data of the vertex sub-area based on the first position data, the second position data, the third position data, the fourth position data, the first Y-direction height data, the second Y-direction height data and a first calculation rule;

[0041] Determine the second height data of the other sub-areas based on the fifth position data, the sixth position data, the seventh position data and the eighth position data, the first Y-direction height data, the second Y-direction height data and the second calculation rule;

[0042] Determining the flatness data of the workbench based on the first height data and the second height data;

[0043] Based on the comprehensive error and the flatness, the error source type of the machine tool is determined.

[0044] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein when the processor is used to run the computer program, it executes the steps of the method described in the first aspect of the embodiment of the present application.

[0045] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0046] The technical solution provided by the embodiment of the present application takes into account the structural characteristics and motion characteristics of the machine tool, and determines the first Y-direction height data of the top corner sub-area away from the zero position of the z-axis at different angles and the second Y-direction height data of the top corner sub-area away from the zero position of the x-axis at different angles, and uses the second calculation rule to comprehensively analyze and process the height data, so as to accurately determine the flatness data of the worktable. At the same time, according to the first calculation rule, combined with multiple sets of position data and height data, the comprehensive error between the bidirectional feed axis and the worktable is determined, and finally the flatness error of the worktable itself and the comprehensive error between the bidirectional feed axis and the worktable are analyzed to determine the error source type of the machine tool, thereby providing a reference basis for machine tool data compensation. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic flow chart of an error detection method for a machine tool provided in an embodiment of the present application;

[0048] Figure 2 The table point numbering and different worktable indexing diagrams of the horizontal machining center provided in the embodiment of the present application;

[0049] Figure 3A schematic diagram of the structure of an error detection device for a machine tool provided in an embodiment of the present application;

[0050] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The present application will be described in further detail below in conjunction with the accompanying drawings and examples. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present application. The terms used herein in the specification of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application so that the above-mentioned objects, features and advantages of the present application can be more clearly understood. The present application will be described in further detail below in conjunction with the accompanying drawings.

[0052] An embodiment of the present application provides a machine tool, which includes a bidirectional feed shaft and a worktable, wherein the bidirectional feed shaft is used to drive the worktable.

[0053] It can be understood that machine tool equipment includes lathes, milling machines, drilling machines, grinders, machining centers (such as horizontal machining centers, vertical machining centers), etc.

[0054] In some embodiments, the machine tool equipment is a horizontal machining center, which is a machine that uses a horizontally placed workbench, and the workpiece is processed by rotating the workbench and moving the tool in all directions. Compared with a vertical machining center, a horizontal machining center has a larger workbench size and can process larger workpieces. At the same time, a horizontal machining center can also flexibly perform multi-axis machining, making the machining more sophisticated and complex.

[0055] Here, the machine tool includes a bidirectional feed axis and a worktable, which is used to drive the worktable. The horizontal machining center has a horizontally placed spindle and the worktable can move in the horizontal and vertical directions (driven by the corresponding bidirectional feed axis).

[0056] The embodiment of the present application provides a method for error detection of a machine tool, the method comprising the following steps:

[0057] Step 110: Establish a rectangular coordinate system corresponding to the machine tool, the z-axis of the rectangular coordinate system is the z-axis of the worktable, the x-axis of the rectangular coordinate system is the x-axis of the worktable, the bidirectional feed axis feeds along the x-axis and / or z-axis respectively, the worktable includes multiple sub-areas, and the types of the multiple sub-areas include: vertex sub-areas and other sub-areas.

[0058] It is understandable that in order to detect the error of the machine tool, the embodiment of the present application makes the rectangular coordinate system correspond to the actual structure of the machine tool, so that the z axis of the rectangular coordinate system of the machine tool coincides with the z axis of the worktable, and the x axis coincides with the x axis of the worktable.

[0059] It is understandable that in order to analyze the influence of different parts of the workbench on the processing accuracy, the embodiment of the present application divides the workbench into multiple sub-areas, and the workbench includes multiple sub-areas, and the types of the multiple sub-areas include: vertex sub-areas and other sub-areas.

[0060] It can be understood that the top corner sub-area generally refers to a specific area located at the four corners of the workbench, and the other sub-areas refer to other areas of the workbench except the top corner sub-areas.

[0061] Further, the top corner sub-region includes multiple, and the other sub-region includes multiple.

[0062] For example, Figure 2 As shown, the z direction of the machine tool is selected as the z direction of the worktable, and the x direction of the machine tool is selected as the x direction of the worktable to establish the table coordinate system. The table is divided into nine sub-areas using 3 rows and 3 columns, and each sub-area is selected as a measurement point. The specific areas at the four corners of the worktable are the top corner sub-areas, including four, and the other sub-areas of the action table include five.

[0063] Step 120: Obtain the first position data of the vertex sub-area when the worktable angle is 0 degrees, the second position data when the worktable angle is 90 degrees, the third position data when the worktable angle is 180 degrees, and the fourth position data when the worktable angle is 270 degrees; and obtain the fifth position data of other sub-areas when the worktable angle is 0 degrees, the sixth position data when the worktable angle is 90 degrees, the seventh position data when the worktable angle is 180 degrees, and the eighth position data when the worktable angle is 270 degrees.

[0064] It is understandable that the position data of each sub-area can be measured using a test meter clamped on a tool. In practical applications, the test meter can be clamped on a tool and the position data of the sub-area can be measured by the test meter. For example, the test meter may measure the distance from the surface of the sub-area to a fixed point, such as the center point of the sub-area, so as to obtain these measurement data, thereby providing a basis for subsequent error analysis.

[0065] It can be understood that in order to analyze the error characteristics of the workbench and the comprehensive error between the bidirectional feed axis and the workbench, the position data of the vertex sub-area and other sub-areas at multiple specific angles can be obtained based on the detection table, and the specific angles include 0 degrees, 90 degrees, 180 degrees and 270 degrees.

[0066] Exemplarily, the workbench can be rotated counterclockwise in sequence. When the angle of the workbench is 0 degrees, it is recorded as B0, and the position data of each sub-area of ​​the workbench is measured and obtained at this time, including the first position data of the vertex sub-area and the fifth position data of other sub-areas; when the workbench is rotated counterclockwise by 90°, it is recorded as B90, and the second position data of the vertex sub-area and the sixth position data of the other sub-areas are measured and obtained; the above operations are repeated in sequence, and a total of 4 position changes are performed in the test, and the workbench rotates counterclockwise by 90° each time. The last two measurements are recorded as B180 and B270 respectively. The B180 position corresponds to the third position information of the vertex sub-area and the seventh position information of the other sub-areas; the B270 position corresponds to the fourth position information of the vertex sub-area and the eighth position information of the other sub-areas.

[0067] For example, Figure 2 As shown, assuming that there are 9 sub-areas corresponding to the workbench, ①②③④⑤⑥⑦⑧⑨ represent that when in position B0, h11-h19 can be used to represent the detection meter readings of the workbench sub-areas ①-⑨ at this position, and h11-h19 include the first position data and the fifth position data mentioned above. When in position B90, the workbench rotates 90 degrees counterclockwise as a whole, and h21-h29 represents the detection meter readings of the workbench points ①-⑨, and h21-h29 includes the second position data and the sixth position data mentioned above. Similarly, h31-h39 and h41-h49 represent the detection meter readings of points ①-⑨ at positions B180 and B270, respectively. Here, h31-h39 include the third position data and the seventh position data mentioned above, and h41-h49 include the fourth position data and the eighth position data mentioned above.

[0068] Step 130: Perform limit difference calculation on the first position data, the second position data, the third position data, the fourth position data, the fifth position data, the sixth position data, the seventh position data and the eighth position data to generate a comprehensive error between the bidirectional feed axis and the worktable.

[0069] It is understandable that the comprehensive error between the bidirectional feed axis and the worktable includes position errors such as positioning error and repeated positioning error, parallelism error between the bidirectional feed axis and the worktable plane, motion errors such as straightness error and verticality error, and dynamic errors such as following error and acceleration error. These errors will affect the machining accuracy, workpiece quality and machine performance of the machine tool.

[0070] Exemplarily, the first position data and the fifth position data corresponding to the B0 position, the second position data and the sixth position data corresponding to the B90 position, the third position data and the seventh position data corresponding to the B180 position, and the fourth position data and the eighth position data corresponding to the B270 position are solved for the limit difference, so as to obtain the comprehensive error S between the bidirectional feed axis and the worktable. Specifically, the comprehensive error S between the bidirectional feed axis and the worktable is accurately calculated through these 4×9 groups of data, providing a key basis for the accuracy analysis of machine tools.

[0071] Step 140: Based on the first position data, the second position data, the third position data and the fourth position data, determine the first Y-direction height data of the top corner sub-region away from the z-axis zero position and the second Y-direction height data of the top corner sub-region away from the x-axis zero position.

[0072] For example, Figure 2 As shown, along the positive Z direction of the workbench, there are z3 rows (including ⑦, ⑧, ⑨), z2 rows (including ④, ⑤, ⑥), and z1 rows (including ①, ②, ③ points). Along the positive x direction, there are x1 columns (including ①, ④, ⑦), x2 columns (including ②, ⑤, ⑧), and x3 columns (including ③, ⑥, ⑨).

[0073] Let z1, z2, and z3 be the Y-heights at three different positions relative to the zero point of the z-axis, and let x1, x2, and x3 be the Y-heights at three different positions relative to the zero point of the x-axis. Specifically, z1 is the Y-height of the corner sub-area at the zero point of the z-axis, z3 is the Y-height of the corner sub-area away from the zero point of the z-axis, and z2 is the Y-height of other sub-areas between z1 and z3; x1 is the Y-height of the zero point of the x-axis, x3 is the second Y-height data of the corner sub-area away from the zero point of the x-axis, and x2 is the Y-height of other sub-areas between x1 and x3.

[0074] It can be understood that, for the top corner sub-region, the position change of the top corner sub-region relative to the zero point of the coordinate axis at different worktable angles can be determined based on the position data of the different angles, specifically based on the first position data, the second position data, the third position data and the fourth position data, thereby determining the first Y-axis height data of the top corner sub-region away from the zero point of the z-axis and the second Y-axis height data of the top corner sub-region away from the zero point of the x-axis, so as to further evaluate the error source of the machine tool.

[0075] Step 150: Determine the first height data of the vertex sub-area based on the first position data, the second position data, the third position data, the fourth position data, the first Y-direction height data, the second Y-direction height data and the first calculation rule.

[0076] Exemplarily, the embodiment of the present application performs average processing on the first Y-axis height data z3 and the second Y-axis height data x3 to obtain the average values ​​of the two points, which are recorded as X3 and Z3. Then, the first calculation rule is substituted again, and based on the first position data, the second position data, the third position data, and the fourth position data, the height change values ​​of the multiple vertex sub-areas themselves are obtained, which can be represented by hn, where n is the number of the vertex sub-area. Then, the height change value is averaged to obtain the average values ​​of each point, which are recorded as H1, H3, H7, and H9.

[0077] Step 160: Determine the second height data of other sub-areas based on the fifth position data, the sixth position data, the seventh position data and the eighth position data, the first Y-direction height data, the second Y-direction height data and the second calculation rule.

[0078] It can be understood that when determining the first Y-direction height data and the second Y-direction height data, since the other sub-regions are all areas located between the vertex sub-regions, the second height data of the other sub-regions can be determined by the first Y-direction height data, the second Y-direction height data, and the position data of the other sub-regions at different angles, that is, the fifth position data, the sixth position data, the seventh position data, the eighth position data and the second calculation rule.

[0079] Step 170: Determine the flatness data of the workbench based on the first height data and the second height data; determine the error source type of the machine tool based on the comprehensive error and flatness.

[0080] It can be understood that after determining the first height data of the top corner sub-area and the second height data of other sub-areas, the flatness data of the worktable can be determined based on the first height data and the second height data; based on the comprehensive error and flatness, the error source type of the machine tool can be determined.

[0081] The technical solution provided by the embodiment of the present application takes into account the structural characteristics and motion characteristics of the machine tool, and determines the first Y-direction height data of the top corner sub-area away from the zero position of the z-axis at different angles and the second Y-direction height data of the top corner sub-area away from the zero position of the x-axis at different angles, and uses the second calculation rule to comprehensively analyze and process the height data, so as to accurately determine the flatness data of the worktable. At the same time, according to the first calculation rule, combined with multiple sets of position data and height data, the comprehensive error between the bidirectional feed axis and the worktable is determined, and finally the flatness error of the worktable itself and the comprehensive error between the bidirectional feed axis and the worktable are analyzed to determine the error source type of the machine tool, thereby providing a reference basis for machine tool data compensation.

[0082] In some embodiments, the method further comprises:

[0083] Determine the first position, the second position data, the third position data and the fourth position data based on the number data of the vertex sub-region and the first mapping relationship;

[0084] Determine fifth position data, sixth position data, seventh position data, and eighth position data based on the number data of other sub-areas and the first mapping relationship;

[0085] The first mapping relationship includes a correspondence between each serial number data and each angle position data.

[0086] It can be understood that the embodiment of the present application allocates numbering data to the vertex sub-regions and other sub-regions, and each numbering data uniquely corresponds to a vertex sub-region and other sub-regions.

[0087] Here, the first mapping relationship includes the correspondence between each numbered data and the position data of each angle. When the numbered data of the sub-area is obtained for a known vertex sub-area, the position data of the vertex sub-area at different angles (0 degrees, 90 degrees, 180 degrees, 270 degrees) can be determined by querying the first mapping relationship, that is, the first position data, the second position data, the third position data, the fourth position data, the fifth position data, the sixth position data, the fifth position data and the eighth position data.

[0088] In some embodiments, the sub-regions include nine, and the method further includes:

[0089] Based on the nine-grid division rule, the workbench is divided into nine sub-areas; the nine sub-areas include 4 corner sub-areas and 5 other sub-areas.

[0090] For example, Figure 2 As shown, the nine-square grid division rule is a method of dividing the workbench plane into nine equal-sized areas. The nine sub-areas after division include 4 vertex sub-areas and 5 other sub-areas.

[0091] Corner sub-areas: The areas located at the four corners of the table. These areas have a special position in the table geometry and may be affected by different forces and deformations. Their error characteristics may be different from other areas. For example, during machine tool processing, the corner sub-areas may be more susceptible to factors such as cutting forces, the table's own gravity, and the mounting structure, resulting in specific errors.

[0092] Other sub-regions: In addition to the four corner sub-regions, these five regions account for the majority in number, and their error characteristics may also differ from those of the corner sub-regions due to their different locations. For example, other sub-regions located near the center of the worktable may be affected by the different cutting force transmission and distribution than the corner sub-regions, resulting in different deformation errors.

[0093] In practical applications, the workbench surface can be first homogenized, and then a nine-square grid of the table surface can be established. The table surface is gridded using 3 rows and 3 vertical lines, and the center of each grid point is selected as the measurement point.

[0094] In some embodiments, the method further comprises:

[0095] The four vertex sub-regions and the five other sub-regions are numbered based on the S-type numbering sequence to generate numbering data for the four vertex sub-regions and numbering data for the five other sub-regions.

[0096] It is understandable that after the workbench is divided into sub-areas, in order to facilitate the distinction and management of each sub-area, the 4 corner sub-areas and the 5 other sub-areas are numbered. The numbering can give each sub-area a unique identification, which is convenient for accurately referencing and processing the data of a specific sub-area in the subsequent error detection and analysis process.

[0097] In practical applications, such as Figure 2 As shown, first, the workbench surface is homogenized, the nine-square grid points are established and numbered uniformly, the nine-square grid points are dotted with 3 rows and 3 columns, and the center of each grid point is selected as the measurement point. At the same time, the numbering group is established in an S-shaped order, along the positive Z direction of the table surface, respectively, the z3 row (including ⑦, ⑧, ⑨), the z2 row (including ④, ⑤, ⑥) and the z1 row (including ①, ②, ③), along the positive x direction, respectively, the x1 column (including ①, ④, ⑦), the x2 column (including ②, ⑤, ⑧), and the x3 column (including ③, ⑥, ⑨).

[0098] In some embodiments, based on the comprehensive error and flatness data, determining the error source type of the machine tool includes:

[0099] Based on the difference between the comprehensive error data and the flatness data, the non-parallelism error between the bidirectional feed axis and the worktable is determined;

[0100] Compare the non-parallelism error and flatness data to generate a comparison result;

[0101] Based on the comparison results, the error source type of the machine tool is determined.

[0102] For example, the comprehensive error data can be represented by S and the flatness data can be represented by F. In practical applications, the difference between the comprehensive error data S and the flatness error data F obtained after calculation can be compared, that is, the non-parallelism error between the bidirectional feed axis and the worktable, which is recorded as N.

[0103] Based on the comparison between the unevenness error N and the flatness data, a comparison result is generated, and based on the comparison result, the error source type of the machine tool is determined.

[0104] In some embodiments, the comparison result includes a first comparison result that the non-parallelism error is greater than the flatness data and a second comparison result that the non-parallelism error is less than the flatness data, the error source type includes a first error source type that the bidirectional feed axis is not parallel to the worktable and a second error source type of the worktable flatness, and based on the comparison result, determining the error source type of the machine tool includes:

[0105] If the comparison result is the first comparison result, determining the error source type is the first error source type;

[0106] If the comparison result is the second comparison result, the error source type is determined to be the second error source type.

[0107] It can be understood that the comprehensive error data is represented by S and the flatness data is represented by F. By comparing the difference between the comprehensive error data S and the flatness error data F, the non-parallelism error N between the bidirectional feed axis and the worktable can be obtained. This non-parallelism error N reflects the degree of deviation in parallelism between the bidirectional feed axis and the worktable.

[0108] It can be understood that there are two types of comparison results: the first comparison result in which the non-parallelism error is greater than the flatness data and the second comparison result in which the non-parallelism error is less than the flatness data. The first comparison result shows that the non-parallelism problem between the bidirectional feed axis and the worktable is relatively more prominent in the error performance of the machine tool. The second comparison result shows that the worktable flatness problem is more significant in the current error.

[0109] Here, the error source type is correspondingly divided into the first error source type of the non-parallelism between the bidirectional feed axis and the worktable and the second error source type of the worktable flatness. If the comparison result is the first comparison result, that is, the non-parallelism error is greater than the flatness data, the error source type is determined to be the first error source type. If the comparison result is the second comparison result, that is, the non-parallelism error is less than the flatness data, the error source type is determined to be the second error source type.

[0110] Therefore, by judging the non-parallelism error N and flatness data F between the bidirectional feed axis and the worktable, the main source of the comprehensive error between the bidirectional feed axis and the worktable can be determined, providing a certain reference for machine tool error compensation.

[0111] In some embodiments, the first calculation rule is:

[0112]

[0113] Wherein, z1 is the Y-direction height data of the vertex sub-region at the zero point of the z-axis, z1=0; x1 is the Y-direction height data of the vertex sub-region at the zero point of the x-axis, x1=0; z3 is the first Y-direction height data of the vertex sub-region at a position far away from the zero point of the z-axis, x3 is the second Y-direction height data of the vertex sub-region at a position far away from the zero point of the x-axis, h1n, h2n, h3n and h4n are the position data corresponding to the vertex sub-region at 0 degrees, 90 degrees, 180 degrees and 270 degrees respectively, hn is the height change value of the flatness of the vertex sub-region itself, and n is the number of the vertex sub-region.

[0114] For example, in Figure 2 In the figure, the top corner sub-area includes sub-area ①, sub-area ③, sub-area ⑦ and sub-area ⑨, and the corresponding first height data are H1, H3, H7 and H9 respectively. h1, h3, h7 and h9 are the height change values ​​corresponding to sub-area ①, sub-area ③, sub-area ⑦ and sub-area ⑨ respectively.

[0115] In actual calculations, it is assumed that x1 and z1 = 0, so as to calculate the values ​​of x3 and z3 at B0, B90, B180, and B270. Then, multiple groups of x3 and z3 data are averaged to get the average values ​​of two points, recorded as X3 and Z3. Then, they are substituted into the above formula again to obtain multiple groups of h1, h3, h7, and h9 values, which are then averaged to get the average values ​​of each point, recorded as H1, H3, H7, and H9.

[0116] In some embodiments, the second calculation rule includes:

[0117]

[0118] Among them, z1 is the Y-direction height data of the vertex sub-area at the zero point of the z-axis, z1=0; z3 is the first Y-direction height data of the vertex sub-area away from the zero point of the z-axis; z2 is the Y-direction height of other sub-areas between z1 and z3; x1 is the Y-direction height data of the vertex sub-area at the zero point of the x-axis, x1=0; x3 is the second Y-direction height data of the vertex sub-area away from the zero point of the x-axis; x2 is the Y-direction height data of other sub-areas between x1 and x3; h1m, h2m, h3m and h4m are the position data corresponding to other sub-areas at 0 degrees, 90 degrees, 180 degrees and 270 degrees respectively; hm is the height change value of the flatness of other sub-areas themselves, and m is the number of other sub-areas.

[0119] For example, in Figure 2In the figure, other sub-areas include sub-area ②, sub-area ④, sub-area ⑤, sub-area ⑥ and sub-area ⑧, and their corresponding second height data are H2, H4, H5, H6, and H8 respectively. h2, h4, h5, h6, and h8 are the height change values ​​corresponding to sub-area ②, sub-area ④, sub-area ⑤, sub-area ⑥, and sub-area ⑧ respectively.

[0120] During the movement of the bidirectional feed axis of the machine tool in the x and z directions, the motion trajectory changes linearly. Therefore, the error changes from x1 to x3 and from z1 to z3 can also be approximately regarded as linear changes. x2 and z2 are the intermediate points and can be calculated by (x3-x1) / 2 and (z3-z1) / 2. Therefore, the values ​​of x2 and z2 can be substituted into the above formula to calculate multiple groups of h2, h4, h5, h6, and h8 values, which are then averaged to obtain the height values ​​of each point, recorded as H2, H4, H5, H6, and H8.

[0121] Below, this application is described in detail with reference to an application example.

[0122] The non-parallel error between the x and z feed axes and the worktable plus the flatness error of the worktable itself together cause the machining accuracy of the horizontal machining center to exceed the tolerance. Based on this, this application example involves a comprehensive error measurement and calculation method between the indexing feed axis and the worktable, such as Figure 2 As shown, firstly, the worktable is gridded with 3 rows and 3 columns, then a coordinate system identical to the machine tool's own coordinate system is established on the worktable, and based on this, the table points are numbered in an S-type. Along the positive Z direction of the table, there are z3 rows (including ⑦, ⑧, ⑨), z2 rows (including ④, ⑤, ⑥), and z1 rows (including ①, ②, ③), and along the positive x direction, there are x1 columns (including ①, ④, ⑦), x2 columns (including ②, ⑤, ⑧), and x3 columns (including ③, ⑥, ⑨). z1, z2, and z3 are recorded as the Y-axis heights of three different positions relative to the zero point of the z-axis, and x1, x2, and x3 are recorded as the Y-axis heights of three different positions relative to the zero point of the x-axis. h1-h9 are used to represent the height changes of the flatness of the nine-grid points ①-⑨ themselves. Then use the test meter to measure each point. After each measurement, rotate 90 degrees counterclockwise. The points at the four positions B0, B90, B180, and B270 are numbered as follows: Figure 2 shown.

[0123] The comprehensive error S between the feed axis and the worktable is calculated using 4x9 groups of data. At the same time, the above data is substituted using a specific algorithm to calculate the height values ​​H1-H9 of each table point, and the flatness F of the worktable itself is calculated based on this. Finally, the comprehensive error S and flatness error F obtained after calculation are compared. The difference between the two is the non-parallelism error between the feed axis and the worktable, denoted as N. By judging the values ​​of N and F, the main source of the comprehensive error between the feed axis and the worktable can be determined, providing a certain reference for machine tool error compensation.

[0124] In this application example, the numbers n of the corner sub-areas are 1, 3, 7 and 9, and the numbers m of the other sub-areas are 2, 4, 5, 6 and 8. Figure 2 , the specific implementation process of this application example is as follows:

[0125] (1) First, the workbench surface is homogenized, and a nine-square grid of points is established and numbered uniformly. Then, the nine-square grid points are measured in turn using a test meter clamped on the tooling to obtain the value of each point. The first measured position is recorded as B0.

[0126] (2) After the first measurement, rotate the workbench 90° counterclockwise, and then measure the nine-square grid points on the table again. This measurement is recorded as B90. Repeat the above operations in sequence. A total of 4 position changes are performed during the test, rotating 90° counterclockwise each time. The last two measurements are recorded as B180 and B270 respectively.

[0127] (3) Select the z direction of the machine tool as the z direction of the worktable, select the x direction of the machine tool as the x direction of the worktable, and establish the table coordinate system. Use 3 rows and 3 columns to divide the table into nine-square grids, select the center of each grid point as the measurement point, and establish number groups in an S-shaped order. Along the positive z direction of the table, they are row z3 (including points 7, 8, and 9), row z2 (including points 4, 5, and 6), and row z1 (including points 1, 2, and 3). Along the positive x direction, they are column x1 (including points 1, 4, and 7), column x2 (including points 2, 5, and 8), and column x3 (including points 3, 6, and 9).

[0128] (4) Let z1, z2, and z3 be the Y-heights of three different positions relative to the zero point of the z-axis, let x1, x2, and x3 be the Y-heights of three different positions relative to the zero point of the x-axis, and use h1-h9 to represent the height change of the flatness of the nine-square grid points 1-9 themselves.

[0129] (5) h11-h19 are the readings of the workbench points 1-9 when measuring position 0. When the workbench is in position B90, the workbench rotates 90 degrees counterclockwise, and the nine-square grid points on the table also rotate 90 degrees accordingly. When the workbench is in position B90, h21-h29 represent the readings of the workbench points 1-9. Similarly, h31-h39 and h41-h49 represent the readings of the workbench points 1-9 when the workbench is in position B180 and B270, respectively.

[0130] (6) The data measured at positions B0, B90, B180, and B270 are solved for limit difference to obtain the comprehensive error S between the feed axis and the worktable.

[0131] (7) Use the following calculation method to calculate the x3-x1 and z3-z1 differences of the nine-square grid points 1, 3, 7, 9 at positions B0, B90, B180, and B270.

[0132] Nine-grid point 1:

[0133]

[0134] Nine-grid point 3:

[0135]

[0136] Nine-grid point 7:

[0137]

[0138] Nine-square grid point 9:

[0139]

[0140] In the calculation, it is assumed that x1 and z1 = 0, so as to calculate the values ​​of x3 and z3 at B0, B90, B180, and B270. Then, the multiple groups of x3 and z3 data are averaged to get the average values ​​of two points, recorded as X3 and Z3. Then, they are substituted into the above formula again to obtain multiple groups of h1, h3, h7, and h9 values, which are then averaged to get the average values ​​of each point, recorded as H1, H3, H7, and H9.

[0141] (8) Use the following calculation method to calculate the values ​​of the nine-square grid points 2, 4, 5, 6, 8 at positions B0, B90, B180, and B270.

[0142] Nine-grid point 2:

[0143]

[0144] Nine-grid point 4:

[0145]

[0146] Nine-grid point 5:

[0147]

[0148] Nine-grid point 6:

[0149]

[0150] Nine-grid point 8:

[0151]

[0152] When the machine tool feed axis moves in the x and z directions, the motion trajectory changes linearly. Therefore, the error changes from x1 to x3 and from z1 to z3 can also be approximately regarded as linear changes. x2 and z2 are the intermediate points and can be calculated by (x3-x1) / 2 and (z3-z1) / 2. Therefore, the values ​​of x2 and z2 can be substituted into the above formula to calculate multiple groups of h2, h4, h5, h6, and h8 values, which are then averaged to obtain the height values ​​of each point, recorded as H2, H4, H5, H6, and H8.

[0153] (9) After calculation, the height values ​​H1-H9 of points 1-9 are obtained. This value can be regarded as the height value of each point on the worktable. Based on this, the flatness F of the worktable is obtained.

[0154] (10) Compare the comprehensive error S and flatness error F obtained after calculation. The difference between the two is the non-parallelism error between the feed axis and the worktable, denoted as N. By judging the values ​​of N and F, the main source of the comprehensive error between the feed axis and the worktable can be determined, providing a certain reference for machine tool error compensation.

[0155] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides an error detection device of a machine tool. The machine tool includes a bidirectional feed shaft and a worktable. The bidirectional feed shaft is used to drive the worktable. The error detection device of the machine tool corresponds to the error detection method of the above-mentioned machine tool. The steps in the embodiment of the error detection method of the above-mentioned machine tool are also fully applicable to the embodiment of the error detection device of this machine tool.

[0156] like Figure 3As shown, the error detection device 300 of the machine tool includes: an establishment module 301 , an acquisition module 302 , a generation module 303 and a determination module 304 . The establishment module 301 is used to establish a rectangular coordinate system corresponding to the machine tool, the z-axis of the rectangular coordinate system is the z-axis of the worktable, the x-axis of the rectangular coordinate system is the x-axis of the worktable, and the bidirectional feed axis feeds along the x-axis and / or the z-axis respectively; the worktable includes multiple sub-areas, and the types of the multiple sub-areas include: vertex sub-areas and other sub-areas; the acquisition module 302 is used to obtain the first position data of the vertex sub-area when the worktable angle is 0 degrees, the second position data when the worktable angle is 90 degrees, the third position data when the worktable angle is 180 degrees, and the fourth position data when the worktable angle is 270 degrees; and to obtain the fifth position data of other sub-areas when the worktable angle is 0 degrees, the sixth position data when the worktable angle is 90 degrees, the seventh position data when the worktable angle is 180 degrees, and the eighth position data when the worktable angle is 270 degrees; the generation module 303 is used to generate the first position data, the second position data, the third position data, the fourth position data, the fifth position data, and the sixth position data when the worktable angle is 90 degrees. The first position data, the second position data, the third position data, the fourth position data, the first Y-direction height data, the second Y-direction height data and the first calculation rule are used to determine the first height data of the vertex sub-area away from the zero point of the z-axis; the sixth position data, the seventh position data and the eighth position data are used to perform limit difference calculation to generate a comprehensive error between the bidirectional feed axis and the worktable; the determination module 304 is used to determine the first Y-direction height data of the vertex sub-area away from the zero point of the x-axis based on the first position data, the second position data, the third position data, the fourth position data, the first Y-direction height data, the second Y-direction height data and the first calculation rule; the second height data of the vertex sub-area is determined based on the fifth position data, the sixth position data, the seventh position data and the eighth position data, the first Y-direction height data, the second Y-direction height data and the second calculation rule; the flatness data of the worktable is determined based on the first height data and the second height data; the error source type of the machine tool is determined based on the comprehensive error and the flatness.

[0157] In some embodiments, the determination module 304 is also used to determine the first position, the second position data, the third position data and the fourth position data based on the numbering data of the vertex sub-area and the first mapping relationship; and to determine the fifth position data, the sixth position data, the seventh position data and the eighth position data based on the numbering data of other sub-areas and the first mapping relationship; wherein the first mapping relationship includes the correspondence between each numbering data and the position data of each angle.

[0158] In some embodiments, the sub-regions include nine, and the error detection module of the machine tool also includes a division module 305 for dividing the workbench into nine sub-regions based on the nine-square division rule; the nine sub-regions include four corner sub-regions and five other sub-regions.

[0159] In some embodiments, the error detection module of the machine tool also includes a numbering module 306 for numbering the four vertex sub-regions and five other sub-regions based on an S-shaped numbering sequence to generate numbering data for the four vertex sub-regions and numbering data for the five other sub-regions.

[0160] In some embodiments, the determination module 304 is also used to determine the non-parallelism error between the bidirectional feed axis and the worktable based on the difference between the comprehensive error data and the flatness data; the generation module 303 is also used to compare the non-parallelism error and the flatness data to generate a comparison result; the determination module 304 is also used to determine the error source type of the machine tool based on the comparison result.

[0161] In some embodiments, the comparison result includes a first comparison result in which the non-parallelism error is greater than the flatness data and a second comparison result in which the non-parallelism error is less than the flatness data. The determination module 304 is also used to determine that the error source type is the first error source type if the comparison result is the first comparison result; and to determine that the error source type is the second error source type if the comparison result is the second comparison result.

[0162] In actual application, the establishment module 301, the acquisition module 302, the generation module 303, the determination module 304, the division module 305 and the numbering module 306 can be implemented by a processor in the error detection device of the machine tool. Of course, the processor needs to run the computer program in the memory to realize its function.

[0163] It should be noted that: the error detection device for a machine tool provided in the above embodiment only uses the division of the above program modules as an example when performing error detection of the machine tool. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the error detection device for a machine tool provided in the above embodiment and the error detection method embodiment of a machine tool belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0164] Based on the hardware implementation of the above program modules and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides an electronic device. Figure 4Only an exemplary structure of the electronic device is shown, not the entire structure. Part or all of the structures shown in FIG. 4 may be implemented as needed. As shown in FIG. 4 , the electronic device 400 provided in the embodiment of the present application includes: at least one processor 401, a memory 402, a user interface 403, and at least one network interface 404. The various components in the electronic device 400 are coupled together via a bus system 405. It can be understood that the bus system 405 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 405 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, various buses are labeled as bus systems 405 in FIG. 4 .

[0165] The user interface 403 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.

[0166] The memory 402 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program used to operate on the electronic device.

[0167] The control method of the electronic device disclosed in the embodiment of the present application can be applied to the processor 401, or implemented by the processor 401. The processor 401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the control method of the electronic device can be completed by the hardware integrated logic circuit or software instructions in the processor 401. The above-mentioned processor 401 may be a general-purpose processor, a digital signal processor (DSP, DigitalSignal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 401 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the memory 402. The processor 401 reads the information in the memory 402 and completes the steps of the control method of the electronic device provided in the embodiment of the present application in combination with its hardware.

[0168] In an exemplary embodiment, the electronic device may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.

[0169] It can be understood that the memory 402 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or the volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0170] In an exemplary embodiment, the present application also provides a computer storage medium, which can be a computer-readable storage medium, on which a computer program is stored, and the computer program can be executed by a processor to complete the steps of the method of the present application. The computer-readable storage medium can be a memory such as ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.

[0171] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0172] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0173] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for detecting an error of a machine tool, characterized in that: The machine tool comprises a bidirectional feed shaft and a worktable, wherein the bidirectional feed shaft is used to drive the worktable, and the method comprises: Establish a rectangular coordinate system corresponding to the machine tool, wherein the z-axis of the rectangular coordinate system is the z-axis of the worktable, the x-axis of the rectangular coordinate system is the x-axis of the worktable, and the bidirectional feed axis feeds along the x-axis and the z-axis respectively; the worktable includes a plurality of sub-areas, and the types of the plurality of sub-areas include: vertex sub-areas and other sub-areas; Acquire the first position data of the vertex sub-area when the worktable angle is 0 degrees, the second position data when the worktable angle is 90 degrees, the third position data when the worktable angle is 180 degrees, and the fourth position data when the worktable angle is 270 degrees; and acquire the fifth position data of the other sub-areas when the worktable angle is 0 degrees, the sixth position data when the worktable angle is 90 degrees, the seventh position data when the worktable angle is 180 degrees, and the eighth position data when the worktable angle is 270 degrees; Performing limit difference calculation on the first position data, the second position data, the third position data, the fourth position data, the fifth position data, the sixth position data, the seventh position data and the eighth position data to generate a comprehensive error between the bidirectional feed axis and the worktable; Determine, based on the first position data, the second position data, the third position data and the fourth position data, first Y-direction height data of the top corner sub-region away from the zero position of the z-axis and second Y-direction height data of the top corner sub-region away from the zero position of the x-axis; Determine first height data of the vertex sub-area based on the first position data, the second position data, the third position data, the fourth position data, the first Y-direction height data, the second Y-direction height data and a first calculation rule; Determine the second height data of the other sub-areas based on the fifth position data, the sixth position data, the seventh position data and the eighth position data, the first Y-direction height data, the second Y-direction height data and the second calculation rule; Determining the flatness data of the workbench based on the first height data and the second height data; Determining the error source type of the machine tool based on the comprehensive error and the flatness data; The first calculation rule is: ; Wherein, z1 is the Y-direction height data of the vertex sub-region at the zero point of the z-axis, z1=0; x1 is the Y-direction height data of the vertex sub-region at the zero point of the x-axis, x1=0; z3 is the first Y-direction height data of the vertex sub-region at a position far away from the zero point of the z-axis, x3 is the second Y-direction height data of the vertex sub-region at a position far away from the zero point of the x-axis, h1n, h2n, h3n and h4n are the position data corresponding to the vertex sub-region at 0 degrees, 90 degrees, 180 degrees and 270 degrees respectively, hn is the height change value of the flatness of the vertex sub-region itself, and n is the number of the vertex sub-region; The second calculation rule includes: ; Among them, z1 is the Y-direction height data of the vertex sub-area at the zero point of the z-axis, z1=0; z3 is the first Y-direction height data of the vertex sub-area away from the zero point of the z-axis; z2 is the Y-direction height of other sub-areas between z1 and z3; x1 is the Y-direction height data of the vertex sub-area at the zero point of the x-axis, x1=0; x3 is the second Y-direction height data of the vertex sub-area away from the zero point of the x-axis; x2 is the Y-direction height data of other sub-areas between x1 and x3; h1m, h2m, h3m and h4m are the position data corresponding to other sub-areas at 0 degrees, 90 degrees, 180 degrees and 270 degrees respectively; hm is the height change value of the flatness of other sub-areas themselves, and m is the number of other sub-areas.

2. The method according to claim 1, characterized in that The method further comprises: Determine the first position, the second position data, the third position data, and the fourth position data based on the number data of the vertex sub-area and the first mapping relationship; Determine the fifth position data, the sixth position data, the seventh position data, and the eighth position data based on the number data of the other sub-areas and the first mapping relationship; The first mapping relationship includes a correspondence between each serial number data and each angle position data.

3. The method according to claim 1, characterized in that: The sub-areas include nine, and the method further includes: Based on the nine-grid division rule, the workbench is divided into nine sub-areas, and the nine sub-areas include four corner sub-areas and five other sub-areas.

4. The method according to claim 3, characterized in that The method further comprises: The four vertex sub-regions and the five other sub-regions are numbered based on an S-type numbering sequence to generate numbering data for the four vertex sub-regions and numbering data for the five other sub-regions.

5. The method according to claim 1, characterized in that Determining the error source type of the machine tool based on the comprehensive error and the flatness data includes: Determine the non-parallelism error between the bidirectional feed axis and the worktable based on the difference between the comprehensive error data and the flatness data; comparing the non-parallelism error and the flatness data to generate a comparison result; Based on the comparison result, the error source type of the machine tool is determined.

6. The method according to claim 5, characterized in that The comparison result includes a first comparison result that the non-parallelism error is greater than the flatness data and a second comparison result that the non-parallelism error is less than the flatness data, the error source type includes a first error source type that the bidirectional feed axis is not parallel to the worktable and a second error source type of the worktable flatness, and determining the error source type of the machine tool based on the comparison result includes: If the comparison result is the first comparison result, determining that the error source type is the first error source type; If the comparison result is the second comparison result, the error source type is determined to be the second error source type.

7. An error detection device for a machine tool, characterized in that: The machine tool comprises a bidirectional feed shaft and a worktable, wherein the bidirectional feed shaft is used to drive the worktable, and the error detection device of the machine tool comprises: An establishment module is used to establish a rectangular coordinate system corresponding to the machine tool, wherein the z-axis of the rectangular coordinate system is the z-axis of the workbench, the x-axis of the rectangular coordinate system is the x-axis of the workbench, and the bidirectional feed axis feeds along the x-axis and the z-axis respectively; the workbench includes a plurality of sub-areas, and the types of the plurality of sub-areas include: a vertex sub-area and other sub-areas; an acquisition module, for acquiring first position data of the vertex sub-area when the worktable angle is 0 degrees, second position data when the worktable angle is 90 degrees, third position data when the worktable angle is 180 degrees, and fourth position data when the worktable angle is 270 degrees; and acquiring fifth position data of the other sub-areas when the worktable angle is 0 degrees, sixth position data when the worktable angle is 90 degrees, seventh position data when the worktable angle is 180 degrees, and eighth position data when the worktable angle is 270 degrees; A generating module, used for performing limit difference calculation on the first position data, the second position data, the third position data, the fourth position data, the fifth position data, the sixth position data, the seventh position data and the eighth position data to generate a comprehensive error between the bidirectional feed axis and the worktable; a determination module, configured to determine first Y-direction height data of the top corner sub-region away from the zero position of the z-axis and second Y-direction height data of the top corner sub-region away from the zero position of the x-axis based on the first position data, the second position data, the third position data and the fourth position data; Determine first height data of the vertex sub-area based on the first position data, the second position data, the third position data, the fourth position data, the first Y-direction height data, the second Y-direction height data and a first calculation rule; Determine the second height data of the other sub-areas based on the fifth position data, the sixth position data, the seventh position data and the eighth position data, the first Y-direction height data, the second Y-direction height data and the second calculation rule; Determining the flatness data of the workbench based on the first height data and the second height data; Determining the error source type of the machine tool based on the comprehensive error and the flatness; The first calculation rule is: ; Wherein, z1 is the Y-direction height data of the vertex sub-region at the zero point of the z-axis, z1=0; x1 is the Y-direction height data of the vertex sub-region at the zero point of the x-axis, x1=0; z3 is the first Y-direction height data of the vertex sub-region at a position far away from the zero point of the z-axis, x3 is the second Y-direction height data of the vertex sub-region at a position far away from the zero point of the x-axis, h1n, h2n, h3n and h4n are the position data corresponding to the vertex sub-region at 0 degrees, 90 degrees, 180 degrees and 270 degrees respectively, hn is the height change value of the flatness of the vertex sub-region itself, and n is the number of the vertex sub-region; The second calculation rule includes: ; Among them, z1 is the Y-direction height data of the vertex sub-area at the zero point of the z-axis, z1=0; z3 is the first Y-direction height data of the vertex sub-area away from the zero point of the z-axis; z2 is the Y-direction height of other sub-areas between z1 and z3; x1 is the Y-direction height data of the vertex sub-area at the zero point of the x-axis, x1=0; x3 is the second Y-direction height data of the vertex sub-area away from the zero point of the x-axis; x2 is the Y-direction height data of other sub-areas between x1 and x3; h1m, h2m, h3m and h4m are the position data corresponding to other sub-areas at 0 degrees, 90 degrees, 180 degrees and 270 degrees respectively; hm is the height change value of the flatness of other sub-areas themselves, and m is the number of other sub-areas.

8. An electronic device, characterized in that: include: A processor and a memory for storing a computer program that can be run on the processor, wherein the processor, when running the computer program, executes the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Error measurement and separation method of rotating table of numerically-controlled machine tool

    CN102744648A

  • Numerical control machine tool translational shaft geometric error measuring device and measuring and identifying method

    CN103447884A