Workbench rotation calibration method, electronic device and computer readable storage medium

By detecting the initial rotation angle error of the four-axis machine tool table using a detection probe and compensating for it, the machining accuracy problem caused by wear was solved, and higher workpiece machining accuracy was achieved.

CN116608805BActive Publication Date: 2026-02-17HONGFUJIN PRECISION ELECTRONICS ZHENGZHOU
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310461941.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-25
Publication Date
2026-02-17
Estimated Expiration
2043-04-25

AI Technical Summary

Technical Problem

As four-axis machine tools are used over time, the rotating mechanism may wear out, causing it to be unable to be in the 0-degree rotation plane in the initial state, affecting the machining accuracy of the workpiece.

Method used

The calibration information is obtained by detecting the probe, the initial rotation angle error of the worktable is detected, and compensation is made based on the error to improve the machining accuracy.

Benefits of technology

It enables accurate measurement and compensation of rotational errors of CNC machine tools, thereby improving the machining accuracy of workpieces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116608805B_ABST
    Figure CN116608805B_ABST
Patent Text Reader

Abstract

This application relates to CNC machine tool technology, specifically to a table rotation calibration method, electronic device, and computer-readable storage medium. The method includes: acquiring calibration information from the detection probe of a calibration device; if the detection probe meets preset requirements based on the calibration information, controlling the detection probe to detect a first preset detection point and a second preset detection point on the worktable at its initial rotation position, obtaining first distance information and second distance information respectively; if the difference between the first and second distance information is within a preset range, obtaining the initial rotation angle error of the worktable based on the difference between the first and second distance information and the distance between the two preset detection points; compensating for the machining rotation coordinates of a preset workpiece based on the initial rotation angle error, and machining the preset workpiece based on the compensated coordinates. This application can compensate for the rotation error of the CNC machine tool's worktable, improving the workpiece machining accuracy of the machine tool.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to CNC machine tool technology, specifically to a table rotation calibration method, electronic equipment, and computer-readable storage medium. Background Technology

[0002] CNC machine tools are essential equipment for automated product manufacturing. For parts with complex structures, high process requirements, or high precision requirements, multi-axis machine tools, such as four-axis machine tools, are generally used for machining. Compared with three-axis machine tools, four-axis machine tools have an additional rotating component. The machining coordinates of a four-axis machine tool include four coordinates (X coordinate, Y coordinate, Z coordinate, and rotary coordinate).

[0003] As four-axis machine tools are used over time, the internal rotary mechanisms may wear down, preventing the machine tool from initially being in the 0-degree rotation plane and thus affecting the subsequent workpiece machining accuracy. For example, in a worm gear rotary mechanism, if the worm gears are worn, there may be gaps between them, preventing the four-axis machine tool from initially being in the 0-degree rotation plane of the machine tool's machining coordinate system. Summary of the Invention

[0004] In view of the above, this application proposes a table rotation calibration method, electronic device and computer-readable storage medium, which can compensate for the rotation error of CNC machine tools and improve the workpiece machining accuracy of machine tools.

[0005] This application provides a table rotation calibration method applied to a CNC machine tool. The CNC machine tool includes a rotating component and a table fixedly connected to the rotating component. The rotating component can drive the table to rotate. The CNC machine tool is communicatively connected to a calibration device, which includes a detection probe. The method includes: acquiring calibration information of the detection probe of the calibration device; if the detection probe meets preset requirements based on the calibration information, controlling the detection probe to detect a first preset detection point and a second preset detection point on the table at an initial rotation position, obtaining first distance information and second distance information respectively; calculating the difference between the first distance information and the second distance information; if the difference between the first distance information and the second distance information is within a preset range, acquiring the distance between the first preset detection point and the second preset detection point, and obtaining the initial rotation angle error of the table based on the difference between the first distance information and the second distance information and the distance between the first preset detection point and the second preset detection point, wherein the preset range is set based on the machining accuracy of the preset workpiece; compensating the machining rotation coordinates of the preset workpiece based on the initial rotation angle error, and machining the preset workpiece based on the compensated machining rotation coordinates.

[0006] This technical solution allows for the initial calibration of the detection probe. After successful calibration, the probe is then used to measure the worktable of the CNC machine tool. This avoids mismeasurements of the CNC machine tool due to probe malfunctions, thereby enabling accurate determination of the CNC machine tool's rotational error. Based on this error, the machining rotation coordinates can be compensated, eliminating the rotational error and improving the workpiece machining accuracy of the machine tool.

[0007] In some embodiments, the table rotation calibration method further includes: if it is determined based on the calibration information of the detection probe that the detection probe does not meet the preset requirements, controlling the CNC machine tool to output a first alarm message to indicate that the probe calibration is abnormal.

[0008] If the detection probe fails to calibrate using this technical solution, it indicates that the detection error of the detection probe is too large and it is not suitable for measuring the rotational error of CNC machine tools. The first alarm message of abnormal probe calibration is displayed on the CNC machine tool (e.g., on the CNC machine tool's display screen or indicator light) to remind personnel to intervene manually.

[0009] In some embodiments, the table rotation calibration method further includes: after the CNC machine tool is powered on, initiating the calibration of the detection probe of the calibration device based on a preset calibration start condition, wherein the calibration start condition includes determining whether to perform the detection probe calibration based on the system time of the CNC machine tool.

[0010] Using this technical solution, the conditions for starting probe calibration can be set according to actual needs. For example, after the CNC machine tool is started, the machine tool program can determine whether to perform probe calibration based on the current system time.

[0011] In some embodiments, the detection probe includes a probe, and initiating the calibration of the detection probe of the calibration device includes: initiating sway detection of the probe, the sway detection including acquiring distance detection information of the probe at four rotation angles of the probe, the four rotation angles being 90° apart sequentially; obtaining the sway information of the probe based on the maximum and minimum values ​​of the four distance detection information; and determining whether the probe meets the preset requirements based on the sway information of the probe.

[0012] This technical solution calibrates the probe by detecting its yaw rate. The yaw rate is detected at four rotation angles. Based on the maximum and minimum values ​​of the four distance detection information, the yaw rate information of the probe is obtained, which improves the accuracy of probe yaw rate detection. For example, the four rotation angles can be 0 degrees, 90 degrees, 180 degrees and 270 degrees.

[0013] In some embodiments, the table rotation calibration method further includes: if the difference between the first distance information and the second distance information is greater than the upper limit of the preset interval, controlling the CNC machine tool to output a second alarm message to prompt for shutdown and troubleshooting.

[0014] Using this technical solution, if the difference between the first distance information and the second distance information is greater than the upper limit of the preset range, it indicates that the initial rotation position of the worktable has a large error with the 0-degree rotation plane, which may cause the workpiece machining accuracy to fail to meet the requirements. The second alarm prompt information is output by the CNC machine tool (e.g., the CNC machine tool's display screen or indicator light) to prompt for a stop and troubleshooting, so as to remind personnel to intervene manually.

[0015] In some embodiments, compensating for the machining rotation coordinates of the preset workpiece based on the initial rotation angle error includes: if the initial rotation angle error is less than a preset angle, compensating for the machining rotation coordinates of the preset workpiece based on the initial rotation angle error.

[0016] If the initial rotation angle error is less than the preset angle when using this technical solution, it indicates that the gap between the rotating parts is not very large. The rotation error can be basically offset by error compensation of the machining rotation coordinates, thereby improving the workpiece machining accuracy of the machine tool.

[0017] In some embodiments, the table rotation calibration method further includes: if the initial rotation angle error is greater than the preset angle, controlling the CNC machine tool to output a second alarm message to prompt for a shutdown and troubleshooting.

[0018] If the initial rotation angle error is greater than the preset angle when using this technical solution, it indicates that the gap of the rotating part is relatively large, and the error compensation effect may not be ideal. This may lead to the workpiece machining accuracy not meeting the requirements. The second alarm prompt message is output by the CNC machine tool (such as the CNC machine tool display screen or indicator light) to prompt the machine to stop for troubleshooting, so as to remind the personnel to intervene manually.

[0019] In some embodiments, the table rotation calibration method further includes: if the difference between the first distance information and the second distance information is less than the lower limit of the preset interval, controlling the CNC machine tool to process the preset workpiece based on the machining rotation coordinates of the preset workpiece.

[0020] If the difference between the first distance information and the second distance information is less than the lower limit of the preset range when using this technical solution, it indicates that the error between the initial rotation position of the worktable and the 0-degree rotation plane is within the acceptable range for workpiece processing. The initial rotation angle error of the worktable can be ignored, and workpiece processing can be carried out directly.

[0021] This application also provides an electronic device, which includes a processor and a memory. The memory is used to store instructions, and the processor is used to call the instructions in the memory to cause the electronic device to perform the above-described table rotation calibration method.

[0022] This application also provides a computer-readable storage medium that stores computer instructions that, when executed on an electronic device, cause the electronic device to perform the above-described table rotation calibration method. Attached Figure Description

[0023] Figure 1a This is a schematic diagram of the structure of a CNC machine tool according to an embodiment of this application;

[0024] Figure 1b This is a side view of a CNC machine tool provided according to an embodiment of this application;

[0025] Figure 2 This is a flowchart of the steps of a table rotation calibration method according to an embodiment of this application;

[0026] Figure 3a This is a schematic diagram of the structure of a detection probe according to an embodiment of this application;

[0027] Figure 3b This is a schematic diagram illustrating the calibration of a detection probe according to an embodiment of this application;

[0028] Figure 3c This is a schematic diagram illustrating the use of probes to detect a first preset detection point and a second preset detection point according to an embodiment of this application;

[0029] Figure 3d This is a schematic diagram of an equivalent triangle constructed based on probe-based detection information to calculate the initial rotation angle error of the worktable, according to an embodiment of this application.

[0030] Figure 4 This is a flowchart of the steps of a table rotation calibration method according to another embodiment of this application;

[0031] Figure 5 This is a schematic diagram of the structure of a table rotation calibration device according to an embodiment of this application;

[0032] Figure 6 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of this application. Detailed Implementation

[0033] To better understand the above-mentioned objectives, features, and advantages of this application, the application will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0034] The following description sets forth many specific details to provide a full understanding of this application. The described embodiments are only some, not all, of the embodiments of this application.

[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the specification of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application.

[0036] It should be further noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0037] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and drawings of this application are used to distinguish similar objects, not to describe a specific order or sequence.

[0038] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0039] CNC machine tools can be classified according to the number of axes, such as three-axis, four-axis, five-axis, and six-axis machine tools. Three-axis machine tools use a rotary tool that moves along three axes (X, Y, and Z) to machine stationary workpieces. Compared to three-axis machine tools, four-axis machine tools add extra degrees of freedom through rotary motion. The tool can move freely along the X, Y, and Z axes to machine the workpiece. Unlike three-axis machining, the workpiece is not stationary on the worktable; the worktable can rotate around the X-axis. Multiple faces of the workpiece can be accessed without adjusting or changing fixtures, resulting in high workpiece machining accuracy. Compared to three-axis machine tools, five-axis machine tools allow the tool to move freely along the X, Y, and Z axes to machine the workpiece. In addition, the worktable can rotate around the X and Y axes. Compared to three-axis machine tools, six-axis machine tools allow the tool to move freely along the X, Y, and Z axes to machine the workpiece. In addition, the worktable can rotate around the X, Y, and Z axes.

[0040] For four-axis, five-axis, and six-axis machine tools, the internal rotating mechanisms may wear down over time, causing the machine tool to fail to reach the 0-degree rotation plane initially, thus affecting the subsequent workpiece machining accuracy. The following explanation uses the rotation calibration of a four-axis machine tool (i.e., calibrating the table rotating around the X-axis) as an example, but it is not limited to this; the table rotation calibration method described below can also be used to calibrate tables rotating around the Y-axis or Z-axis.

[0041] In view of this, this application proposes a table rotation calibration method, which can accurately measure the rotation error of CNC machine tools and compensate for the rotation error, thereby improving the workpiece machining accuracy of the machine tool.

[0042] The table rotation calibration method can be applied to electronic devices or CNC machine tools. Electronic devices are devices or modules capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions. Their hardware includes, but is not limited to, processors, microprogrammed control units (MCUs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, control ports, and interfaces. Electronic devices can be those that communicate with CNC machine tools.

[0043] Figure 1a This is a schematic diagram of the application environment of an embodiment of the table rotation calibration method of this application.

[0044] In this embodiment, the table rotation calibration method is applied to a CNC machine tool 10, and the CNC machine tool 10 is a four-axis machine tool. The CNC machine tool 10 includes a table 101, a rotating component 102, and a rotary driver 103. The table 101 is fixedly connected to the rotating component 102, and the rotary driver 103 can drive the rotating component 102 to rotate, thereby driving the table 101 to rotate. The rotary driver 103 may include a motor.

[0045] The worktable 101 is used to place the workpiece to be processed. For the CNC machine tool 10, the machining coordinates of the workpiece may include four coordinates: X coordinate, Y coordinate, Z coordinate, and rotational coordinate. In the initial state (e.g., after the CNC machine tool 10 is started, before machining the workpiece), the initial position of the worktable 101 should be the 0-degree rotation plane of the machine tool's machining coordinate system. Figure 1b As shown, the plane of the worktable 101 should be parallel to the 0-degree rotation plane.

[0046] The CNC machine tool 10 is also communicatively connected to a calibration device (wired or wireless communication). The calibration device can be used to detect whether the worktable 101 is on the 0-degree rotation plane of the machine tool's machining coordinate system. Figure 1a As shown, the calibration device may include a detection probe 20. The CNC machine tool 10 may determine the initial rotation angle error of the worktable (the angle difference between the plane where the worktable 101 returns to zero and the 0-degree rotation plane) based on the detection information of the detection probe 20. Then, it may perform error compensation based on the initial rotation angle error or output an alarm prompt to improve the workpiece machining accuracy of the CNC machine tool 10.

[0047] Figure 2 This is a flowchart illustrating the steps of an embodiment of the table rotation calibration method of this application. Depending on different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted.

[0048] See Figure 2 As shown, the table rotation calibration method may include the following steps.

[0049] Step S201: Obtain the calibration information of the detection probe 20 of the calibration device.

[0050] In some embodiments, the detection probe 20 can be calibrated before rotating the worktable 101 to avoid mismeasurement of the worktable 101 due to malfunctions of the detection probe 20 itself. For example, after the CNC machine tool 10 is powered on, calibration of the detection probe 20 of the calibration device can be initiated based on pre-set calibration start conditions. After calibration of the detection probe 20, calibration information of the detection probe 20 can be obtained to determine whether there is any malfunction in the detection probe 20. The calibration start conditions can be set according to actual needs, and this application does not limit them. For example, the calibration start conditions may include determining whether to calibrate the detection probe 20 based on time.

[0051] For example, the machine tool program can determine whether to start the calibration of the detection probe 20 of the calibration device based on the current time information after the CNC machine tool 10 is started. Assume that the production line has two shifts, with the morning shift starting at 8:30 and the evening shift starting at 20:30, and the detection probe 20 is calibrated once every 12 hours of each shift. Starting the calibration of the detection probe 20 of the calibration device includes the following two conditions. The calibration of the detection probe 20 is started when both conditions (1) and (2) are met. Condition (1): The time is greater than 8:30 in the morning or greater than 20:30 in the evening; Condition (2): The detection probe 20 of the current shift has not been calibrated.

[0052] In some embodiments, such as Figure 3a As shown, the detection probe 20 includes a probe 201. Initiating the calibration of the detection probe 20 of the calibration device is equivalent to initiating a runout detection of the probe 201 to determine whether the probe meets preset requirements. The preset requirements can be set according to actual processing accuracy needs; this embodiment does not limit this. For example, the preset requirement is that the runout of the probe 201 does not exceed 0.01 mm. The runout of the probe 201 can be obtained based on the distance measurement difference at multiple rotation angles of the detection probe 20. For example, as... Figure 3b As shown, the distance detection information of probe 201 at four rotation angles of detection probe 20 (the four rotation angles differ by 90 degrees in sequence) can be obtained. Based on the maximum and minimum values ​​of the four distance detection information, the deflection information of probe 201 can be obtained. Based on the deflection information of probe, it can be determined whether probe meets the preset requirements.

[0053] For example, the probe 201 can be deflected by the following steps: a. Set the contact surface between the probe 201 and the worktable 101. The contact surface can be any one of the four sides of the worktable 101; b. The probe 201 contacts the side of the worktable 101, and the distance detection information of the probe contact point at the four rotation angles of the detection probe 20 (the height of the detection probe 20 remains unchanged) is obtained. For example, the distance between the detection probe 20 and the reference measurement surface is set to 106mm, and the four rotation angles are 0 degrees, 90 degrees, 180 degrees, and 270 degrees, respectively. The distance detection information of the detection probe 20 at 0 degrees, 90 degrees, 180 degrees, and 270 degrees is obtained; Based on the maximum and minimum values ​​of the four distance detection information, the deflection information of the probe is calculated (deflection information = maximum value - minimum value); If the deflection information of the probe is greater than the preset value, it is determined that the probe does not meet the preset requirements; if the deflection information of the probe is less than or equal to the preset value, it is determined that the probe meets the preset requirements. The preset value can be set according to actual needs. This application embodiment does not limit this. For example, the preset value is 0.01mm. When the difference between the maximum and minimum values ​​of the four distance detection information is greater than 0.01mm, it indicates that the probe 201 deflects too much and does not meet the preset requirements. That is, the detection probe 20 does not meet the preset requirements. When the difference between the maximum and minimum values ​​of the four distance detection information is less than or equal to 0.01mm, it indicates that the probe 201 deflects within an acceptable range and meets the preset requirements. That is, the detection probe 20 meets the preset requirements.

[0054] For example, the program for detecting the runout of probe 201 may include the following code, which can be run on CNC machine tool 10:

[0055] IF[[#3012GT83000]AND[#993EQ0.]]GOTO40

[0056] Note: If the machine tool starts up after 8:30 AM and probe deflection has already been detected, proceed to N40 for judgment.

[0057] IF[[#3012GT83000]AND[#993EQ1.]]GOTO41

[0058] Note: If the machine tool starts up after 8:30 AM and probe deflection has not been detected, proceed to N41 for judgment.

[0059] IF[[#3012LT83000]AND[#993EQ0.]]GOTO41

[0060] Note: If the machine tool starts before 8:30 am and probe deflection has already been detected, proceed to N41 for judgment.

[0061] N39

[0062] #993 = 0.

[0063] Note: The value is 0 (0 means detected / 1 means not detected).

[0064] GOTO38

[0065] Note: Program jump.

[0066] N40

[0067] IF[[#3012GT203000]AND[#993EQ0.]]GOTO41

[0068] Note: If the machine tool starts up after 20:30 and probe deflection has already been detected, proceed to N41 for judgment.

[0069] #993 = 1.

[0070] Note: Assignment = 1 (0 means detected / 1 means not detected).

[0071] N38

[0072] G0C0

[0073] Note: The probe is rotated 0 degrees.

[0074] G0G90X-100.Y-88.5

[0075] G65P8314Y-87.04M1.0

[0076] #131=#106

[0077] Note: #131 is assigned a probe value.

[0078] G0C90.

[0079] Note: Rotate the probe 90 degrees.

[0080] G65P8314Y-87.04M1.0

[0081] #132=#106

[0082] Note: #132 is assigned the probe value.

[0083] G0C180

[0084] Note: The probe is rotated 180 degrees.

[0085] G65P8314Y-87.04M1.0

[0086] #133=#106

[0087] Note: #133 is assigned a probe value.

[0088] G0C270

[0089] Note: The probe is rotated 270 degrees.

[0090] G65P8314Y-87.04M1.0

[0091] #134=#106

[0092] Note: #134 is assigned the probe value.

[0093] #5=1

[0094] Note: Operational values ​​#131 to #134.

[0095] #6 = #131

[0096] Note: Save the maximum value.

[0097] #7 = #131

[0098] Note: Save the minimum value.

[0099] N231

[0100] IF[#[130+#5]GE#6]THEN#6=#[130+#5]

[0101] IF[#[130+#5]LE#7]THEN#7=#[130+#5]

[0102] #5 = #5 + 1

[0103] IF[#5LE4]GOTO231

[0104] #136=#6-#7

[0105] IF[[#6-#7]GT0.01]THEN#3000=1

[0106] Note: An alarm will be triggered if the probe runout difference is greater than 0.01mm.

[0107] N41

[0108] IF[[#3012GT203000]AND[#993EQ1.]]GOTO39

[0109] Note: If the machine tool starts up after 20:30 and probe deflection has not been detected, jump to N39 and assign a value of 0, and simultaneously detect probe deflection.

[0110] Step S202: If it is determined based on the calibration information of the detection probe 20 that the detection probe 20 does not meet the preset requirements, the CNC machine tool 10 is controlled to output a first alarm message to indicate that the probe calibration is abnormal.

[0111] In some embodiments, if the calibration information of the detection probe 20 determines that the detection probe 20 does not meet the preset requirements, it indicates that the calibration of the detection probe 20 has failed and the detection error of the detection probe 20 is too large, making it unsuitable for measuring the rotational error of the worktable 101. A first alarm message indicating the abnormal probe calibration can be output by controlling the CNC machine tool 10 (e.g., through the display screen or indicator light of the CNC machine tool 10) to remind personnel to intervene manually, such as replacing / repairing the detection probe 20 or the probe 201. The first alarm message can be in the form of sound, light, text, etc., and this application does not limit this.

[0112] Step S203: If the detection probe 20 meets the preset requirements based on the calibration information of the detection probe 20, control the detection probe 20 to detect the first preset detection point and the second preset detection point on the worktable 101 in the initial rotation position, and obtain the first distance information and the second distance information respectively.

[0113] In some embodiments, if the detection probe 20 is determined to meet preset requirements based on the calibration information of the detection probe 20, it indicates that the detection probe 20 has passed calibration and is currently suitable for measuring the rotational error of the worktable 101. The first preset detection point and the second preset detection point can be set according to actual detection needs, and this application does not limit them. The first preset detection point and the second preset detection point can be any two points on the worktable 101 located on the same plane and separated by a preset distance. The preset distance can be set according to the actual measurement accuracy requirements, and this application does not limit it.

[0114] like Figure 3c As shown, a first preset detection point P1 and a second preset detection point P2 are set on the worktable 101, and there is a first distance between the first preset detection point P1 and the second preset detection point P2. The CNC machine tool 10 can control the detection probe 20 to be at a preset height, and use the probe 201 to detect the first preset detection point P1 and the second preset detection point P2 respectively, to obtain the first distance information corresponding to the first preset detection point P1 and the second distance information corresponding to the second preset detection point P2.

[0115] like Figure 3d As shown, assuming the probe 201 is retractable, the distance between the first preset detection point P1 and the second preset detection point P2 is 177mm. The detection probe 20 measures the first distance information of the first preset detection point P1 as +0.03mm and measures the second distance information of the second preset detection point P2 as -0.03mm.

[0116] In some embodiments, in order to improve the accuracy of distance information detection, multiple measurements can be performed on the first preset detection point and the second preset detection point, and the mean or median of the multiple measurements can be used as the first distance information and the second distance information for subsequent calculations.

[0117] Step S204: Calculate the difference between the first distance information and the second distance information.

[0118] In some embodiments, the difference between the first distance information and the second distance information can be obtained by subtracting the smaller of the two. If the first distance information of the first preset detection point P1 is +0.03mm and the second distance information of the second preset detection point P2 is -0.03mm, the difference between the two is 0.06mm.

[0119] Step S205: If the difference between the first distance information and the second distance information is within a preset range, obtain the distance between the first preset detection point and the second preset detection point, and obtain the initial rotation angle error of the worktable 101 based on the difference between the first distance information and the second distance information and the distance between the first preset detection point and the second preset detection point.

[0120] In some embodiments, the preset range can be set based on the machining accuracy of a preset workpiece, and this application does not limit this. For example, the preset range can be set to 0.015mm to 0.05mm according to the machining accuracy requirement of a certain workpiece. Since the first preset detection point and the second preset detection point are preset detection points, the distance between them can be measured before the worktable is rotated and calibrated, and the measured distance can be stored in the CNC machine tool 10 in advance. The CNC machine tool 10 can obtain the distance between the first preset detection point and the second preset detection point by reading the pre-stored distance between the first preset detection point and the second preset detection point.

[0121] In some embodiments, after obtaining the first distance information, the second distance information, and the distance between the first preset detection point and the second preset detection point, the initial rotation angle error of the worktable 101 can be calculated based on the inverse trigonometric function. For example... Figure 3d As shown, the initial rotation angle error can be calculated using the following formula: θ = ATAN(b / a); θ is the initial rotation angle error of the worktable 101, b is the difference between the first distance information and the second distance information, a is the distance between the first preset detection point and the second preset detection point, and ATAN() is the arctangent function.

[0122] Assuming the distance between the first preset detection point and the second preset detection point is 177mm, and the difference between the first distance information and the second distance information is 0.06mm, the initial rotation angle error of the worktable 101 can be calculated based on the above formula as θ=ATAN(0.06 / 177)=0.0194°.

[0123] In some embodiments, the initial rotation angle error can be set to positive or negative depending on whether it is a clockwise or counterclockwise deflection error. For example, clockwise deflection error can be set to positive, and counterclockwise deflection error to negative. Figure 3d The initial rotation angle error shown is the counterclockwise deflection error, that is, the initial rotation angle error of the worktable 101 is θ = -0.0194°.

[0124] Step S206: Compensate the machining rotation coordinates of the preset workpiece based on the initial rotation angle error, and then machine the preset workpiece based on the compensated machining rotation coordinates.

[0125] In some embodiments, after determining the initial rotation angle error of the worktable 101, in order to minimize the impact of the initial rotation angle error on the machining accuracy of the preset workpiece, the machining rotation coordinates of the preset workpiece can be compensated based on the initial rotation angle error, and the preset workpiece can be machined based on the compensated machining rotation coordinates. That is: theoretical machining rotation angle + initial rotation angle error = actual machining rotation angle.

[0126] For example, if the machining rotation coordinate of a certain machining instruction is 60°, and the initial rotation angle error of the worktable 101 is θ = -0.0194°, when the machining instruction is executed, the actual machining rotation angle is 59.9806°, that is, the worktable 101 actually rotates 59.9806°.

[0127] like Figure 4 The diagram shown is a flowchart of another embodiment of the table rotation calibration method of this application. Depending on different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted.

[0128] See Figure 4 As shown, the table rotation calibration method may include the following steps.

[0129] Step S401: Obtain the calibration information of the detection probe 20 of the calibration device.

[0130] Step S402: If it is determined based on the calibration information of the detection probe 20 that the detection probe 20 does not meet the preset requirements, the CNC machine tool 10 is controlled to output a first alarm message to indicate that the probe calibration is abnormal.

[0131] Step S403: If the detection probe 20 meets the preset requirements based on the calibration information of the detection probe 20, control the detection probe 20 to detect the first preset detection point and the second preset detection point on the worktable 101 in the initial rotation position, and obtain the first distance information and the second distance information respectively.

[0132] Step S404: Calculate the difference between the first distance information and the second distance information.

[0133] Step S405: If the difference between the first distance information and the second distance information is within a preset range, obtain the distance between the first preset detection point and the second preset detection point, and obtain the initial rotation angle error of the worktable 101 based on the difference between the first distance information and the second distance information and the distance between the first preset detection point and the second preset detection point.

[0134] The above steps S401 to S405 and Figure 2 Steps S201 to S205 are the same as those shown, and will not be described in detail here to avoid repetition.

[0135] In some embodiments, after obtaining the initial rotation angle error of the worktable 101, the worktable 101 can be controlled to rotate based on the initial rotation angle error, starting from the initial position. The detection probe 20 is then controlled again to detect the first and second preset detection points on the worktable 101 at the current rotation position (the position after rotation based on the initial rotation angle error), obtaining third and fourth distance information respectively. If the difference between the third and fourth distance information is less than the lower limit of a preset interval, it indicates that the error compensation effect is good, and the machining rotation coordinates of the preset workpiece can be compensated based on the initial rotation angle error, and the preset workpiece can be machined based on the compensated machining rotation coordinates. If the difference between the third and fourth distance information is greater than the lower limit of a preset interval, the correction and measurement are repeated (the worktable 101 rotates based on the initial rotation angle error, starting from the initial position, and the detection probe 20 detects the first and second preset detection points on the worktable 101 at the current rotation position again), and the difference between the third and fourth distance information is recalculated. If, after a preset number of repeated calibrations and measurements, the difference between the third and fourth distance information is still greater than the lower limit of the preset range, it indicates that the error compensation effect is not ideal and may lead to the workpiece machining accuracy not meeting requirements. In this case, a second alarm message can be output by controlling the CNC machine tool 10 (e.g., the display screen or indicator light of the CNC machine tool 10) to prompt for machine stop troubleshooting, thus reminding personnel to intervene manually. The second alarm message can be in the form of sound, light, text, etc., and this application does not limit it. The preset number of times can be set according to actual needs, and this application embodiment does not limit it, for example, the preset number of times is 5 times.

[0136] Step S406: If the initial rotation angle error is less than the preset angle, compensate the machining rotation coordinates of the preset workpiece based on the initial rotation angle error.

[0137] In some embodiments, the preset angle can be set according to the actual machining accuracy requirements, and this application embodiment does not limit this. If the initial rotation angle error is less than the preset angle, it indicates that the error between the initial rotation position of the worktable 101 and the 0-degree rotation plane is relatively small, that is, the gap of the rotating part is relatively small (for example, the internal structure of the rotating part has little wear). By compensating for the error of the machining rotation coordinate, the rotation error can be basically offset, and the workpiece machining accuracy of the machine tool can be improved. That is, the machining rotation coordinate of the preset workpiece can be compensated based on the initial rotation angle error, and the preset workpiece can be machined based on the compensated machining rotation coordinate. For example, based on the machining accuracy of a certain workpiece, the preset angle is set to 0.01°. If the initial rotation angle error of the worktable 101 calculated based on step 405 is less than 0.01°, the machining rotation coordinate of the preset workpiece can be compensated based on the initial rotation angle error.

[0138] Step S407: If the initial rotation angle error is greater than the preset angle, control the CNC machine tool 10 to output a second alarm message to prompt for a shutdown and troubleshooting.

[0139] In some embodiments, if the initial rotation angle error is greater than the preset angle, it indicates that the initial rotation position of the worktable 101 has a relatively large error with the 0-degree rotation plane, that is, the gap of the rotating part is relatively large (for example, the internal structure of the rotating part is worn). The effect of error compensation may be unsatisfactory, which may lead to the workpiece machining accuracy not meeting the requirements. At this time, the CNC machine tool 10 can be controlled to output a second alarm prompt message to prompt the machine to stop for troubleshooting, so as to remind the personnel to perform manual intervention.

[0140] Step S408: If the difference between the first distance information and the second distance information is greater than the upper limit of the preset interval, control the CNC machine tool 10 to output a second alarm message to prompt for a shutdown and troubleshooting.

[0141] In some embodiments, if the difference between the first distance information and the second distance information is greater than the upper limit of the preset interval, it indicates that the initial rotation position of the worktable 101 has a large error with the 0-degree rotation plane, the gap of the rotating parts is relatively large, the error compensation effect may be unsatisfactory, and the workpiece processing accuracy may not meet the requirements. At this time, the CNC machine tool 10 can be controlled to output a second alarm prompt message to prompt the machine to stop for troubleshooting, so as to remind the personnel to perform manual intervention.

[0142] Step S409: If the difference between the first distance information and the second distance information is less than the lower limit of the preset interval, control the CNC machine tool 10 to process the preset workpiece based on the machining rotation coordinates of the preset workpiece.

[0143] In some embodiments, if the difference between the first distance information and the second distance information is less than the lower limit of a preset interval, it indicates that the error between the initial rotation position of the worktable 101 and the 0-degree rotation plane is small and falls within the acceptable range of workpiece machining accuracy. In this case, the initial rotation angle error between the worktable 101 and the 0-degree rotation plane can be ignored, and no machining rotation coordinate compensation is required. The CNC machine tool 10 can directly machine the preset workpiece based on the preset workpiece's machining rotation coordinates.

[0144] In some embodiments, the initial rotation angle error detection program of the worktable 101 may include the following code, which can be run in the CNC machine tool 10:

[0145] N901

[0146] G65P9090A-10.

[0147] G65P9090A[0.+#572]

[0148] G0G90 X-49.0Y-88.5

[0149] G65P8314Z3.0M1.

[0150] #519 = #107 - #518

[0151] Note: First distance information #519.

[0152] N369

[0153] G0G90X-58.Y88.5

[0154] G65P8314Z3.0M0.5

[0155] #520 = #107 - #518

[0156] Note: Second distance information #520.

[0157] #573 = #519 - #520

[0158] Note: Calculate the difference #573 between the first distance information and the second distance information.

[0159] IF[ABS[#573]GT0.05]THEN#3000=1

[0160] Note: An alarm will be triggered if the difference is greater than 0.05 mm.

[0161] #572 = ATAN[#573] / 177.

[0162] Note: Calculate the initial rotation angle error #572.

[0163] #519 = [#519 + #520] / 2

[0164] IF[#571GE1.]GOTO99

[0165] #551 = ATAN[#573] / 177.

[0166] N99

[0167] #571 = #571 + 1.

[0168] IF[ABS[#551]GT0.01]THEN#3000=2

[0169] Note: Alarm will be issued if the initial rotation angle error is greater than 0.01°.

[0170] IF[ABS[#571]GT5.00]THEN#3000=3

[0171] Note: #571 Alarm indicating that the number of repeated calibrations has exceeded 5.

[0172] IF[ABS[#573]GT0.015]GOTO901

[0173] Note: #573 If the difference is greater than 0.015, correction is required.

[0174] In some embodiments, the compensation program for the machining rotation coordinates of the worktable 101 may include the following code, which can run in the CNC machine tool 10:

[0175] N71

[0176] G91G28Z0.M05

[0177] G40 G49 G69 G80 G90

[0178] G65P9090A-10.

[0179] G65P9090A[0.+#572]

[0180] G0G90G54.P47

[0181] G0G90T01M6X-47.0Y-88.5

[0182] M28

[0183] M31

[0184] N72

[0185] #791 = -58.

[0186] Note: The machining rotation angle is -58 degrees.

[0187] G65P9090A-63.

[0188] G65P9090A[#791+#572]

[0189] Note: Machining rotation angle = -58 degrees + #572 initial rotation angle error.

[0190] G65P0001

[0191] Note: Execute processing program 0001.

[0192] M01

[0193] Based on the same concept as the table rotation calibration method applied to the CNC machine tool 10 in the above embodiments, this application embodiment also provides a table rotation calibration device 50 for the CNC machine tool 10, which can be used to perform the above-described table rotation calibration method. For ease of explanation, in Figure 5 The schematic diagram of the workbench rotation calibration device 50 shown only shows the parts related to the embodiments of this application. Those skilled in the art will understand that the illustrated structure does not constitute a limitation on the device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0194] like Figure 5 As shown, the table rotation calibration device 50 includes an acquisition module 501, a control module 502, a first calculation module 503, a second calculation module 504, and a compensation module 505. In some embodiments, the above modules can be programmable software instructions stored in memory and executable by a processor. It is understood that in other embodiments, the above modules can also be program instructions or firmware embedded in the processor.

[0195] The acquisition module 501 is used to acquire the calibration information of the detection probe 20 of the calibration device.

[0196] The control module 502 is used to control the detection probe 20 to detect the first preset detection point and the second preset detection point on the worktable 101 at the initial rotation position when the detection probe 20 meets the preset requirements based on the calibration information of the detection probe 20, so as to obtain the first distance information and the second distance information respectively.

[0197] The first calculation module 503 is used to calculate the difference between the first distance information and the second distance information.

[0198] The second calculation module 504 is used to obtain the distance between the first preset detection point and the second preset detection point when the difference between the first distance information and the second distance information is within a preset range, and to obtain the initial rotation angle error of the worktable 101 based on the difference between the first distance information and the second distance information and the distance between the first preset detection point and the second preset detection point. The preset range can be set based on the processing accuracy of the preset workpiece.

[0199] The compensation module 505 is used to compensate the machining rotation coordinates of the preset workpiece based on the initial rotation angle error, so as to process the preset workpiece based on the compensated machining rotation coordinates.

[0200] Figure 6 This is a schematic diagram of an embodiment of the electronic device of this application.

[0201] The electronic device 100 includes a memory 20, a processor 30, and a computer program 40 stored in the memory 20 and executable on the processor 30. When the processor 30 executes the computer program 40, it implements the steps in the above-described table rotation calibration method embodiment, for example... Figure 2 Steps S201 to S206 as shown, or as follows Figure 4 Steps S401 to S409 are shown. The electronic device 100 may be a component within the CNC machine tool 10, or it may be set up independently of the CNC machine tool 10.

[0202] For example, computer program 40 can also be divided into one or more modules / units, which are stored in memory 20 and executed by processor 30. The one or more modules / units can be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of computer program 40 in electronic device 100. For example, it can be divided into... Figure 5 The diagram shows the acquisition module 501, control module 502, first calculation module 503, second calculation module 504, and compensation module 505.

[0203] Those skilled in the art will understand that the schematic diagram is merely an example of the electronic device 100 and does not constitute a limitation on the electronic device 100. It may include more or fewer components than shown in the diagram, or combine certain components, or different components. For example, the electronic device 100 may also include input / output devices, network access devices, buses, etc.

[0204] Processor 30 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, a single-chip microcomputer, or any conventional processor.

[0205] The memory 20 can be used to store computer programs 40 and / or modules / units. The processor 30 implements various functions of the electronic device 100 by running or executing the computer programs and / or modules / units stored in the memory 20 and by calling data stored in the memory 20. The memory 20 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc.; the data storage area may store data created according to the use of the electronic device 100, etc. In addition, the memory 20 may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other non-volatile solid-state storage device.

[0206] If the modules / units integrated in the electronic device 100 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0207] In the several embodiments provided in this application, it should be understood that the disclosed electronic devices and methods can be implemented in other ways. For example, the electronic device embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and other division methods may be used in actual implementation.

[0208] Furthermore, the functional units in the various embodiments of this application can be integrated into the same processing unit, or each unit can exist physically separately, or two or more units can be integrated into the same unit. The integrated units described above can be implemented in hardware or in the form of hardware plus software functional modules.

[0209] It will be apparent to those skilled in the art that this application is not limited to the details of the exemplary embodiments described above, and that this application can be implemented in other specific forms without departing from the spirit or essential characteristics of this application. Therefore, the embodiments should be considered in all respects as exemplary and not restrictive.

[0210] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit it. Although this application has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of this application without departing from the spirit and scope of the technical solutions of this application.

Claims

1. A worktable rotation calibration method applied to a numerical control machine tool, the numerical control machine tool comprising a rotating part and a worktable fixedly connected with the rotating part, the rotating part being capable of driving the worktable to rotate, characterized in that, The numerical control machine tool is in communication connection with a calibration device, the calibration device comprises a detection probe, the detection probe comprises a probe, and the method comprises: Obtaining calibration information of the detection probe of the calibration device, the calibration information being information for calibrating the probe of the detection probe, the calibration of the probe of the detection probe comprising: performing a runout detection on the probe, the runout detection comprising obtaining distance detection information of the probe at four rotation angles of the probe, the four rotation angles being sequentially different by 90°; obtaining runout information of the probe based on the maximum and minimum of the four distance detection information; determining whether the probe meets a preset requirement based on the runout information of the probe; If it is determined based on the calibration information of the detection probe that the detection probe meets the preset requirement, controlling the probe of the detection probe to detect a first preset detection point and a second preset detection point on the workbench in an initial rotation position, and obtaining first distance information and second distance information respectively; Calculating a difference value between the first distance information and the second distance information; If the difference value between the first distance information and the second distance information is in a preset interval, obtaining a distance between the first preset detection point and the second preset detection point, and obtaining an initial rotation angle error of the workbench based on the difference value between the first distance information and the second distance information and the distance between the first preset detection point and the second preset detection point, the preset interval being set based on the machining precision of a preset workpiece; Compensating for machining rotation coordinates of the preset workpiece based on the initial rotation angle error, so as to machine the preset workpiece based on the compensated machining rotation coordinates.

2. The table rotation calibration method of claim 1, wherein, The method further comprises: If it is determined based on the calibration information of the detection probe that the detection probe does not meet the preset requirement, controlling the numerical control machine tool to output first alarm prompt information for prompting probe calibration abnormity.

3. The table rotation calibration method of claim 1, wherein, The method further comprises: After the numerical control machine tool is started, starting calibration of the detection probe of the calibration device based on a pre-set calibration start condition, the calibration start condition comprising determining whether to calibrate the detection probe according to the system time of the numerical control machine tool.

4. The table rotation calibration method of claim 1, wherein, The method further comprises: If the difference value between the first distance information and the second distance information is greater than an upper limit value of the preset interval, controlling the numerical control machine tool to output second alarm prompt information for prompting shutdown troubleshooting.

5. The table rotation calibration method according to any one of claims 1 to 4, characterized in that, The compensation for the machining rotation coordinates of the preset workpiece based on the initial rotation angle error comprises: If the initial rotation angle error is less than a preset angle, compensating for the machining rotation coordinates of the preset workpiece based on the initial rotation angle error.

6. The table rotation calibration method of claim 5, wherein, The method further comprises: If the initial rotation angle error is greater than the preset angle, controlling the numerical control machine tool to output second alarm prompt information for prompting shutdown troubleshooting.

7. The table rotation calibration method according to any one of claims 1 to 4, wherein The method further comprises: If a difference between the first distance information and the second distance information is less than a lower limit value of the preset interval, the numerical control machine is controlled to process the preset workpiece based on a processing rotary coordinate of the preset workpiece. 8.An electronic device comprising a processor and a memory, wherein, The memory is configured to store instructions, and the processor is configured to invoke the instructions in the memory, so that the electronic device performs the worktable rotation calibration method in any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions, when the computer instructions run on the electronic device, so that the electronic device performs the worktable rotation calibration method in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Horizontal correction method, electronic device and storage medium

    CN115686077A