Method and device for calibrating double swing head parameters of five-axis laser cutting machine based on vision, processor and medium thereof
By automatically adjusting the spot coordinates and diameter of a five-axis laser cutting machine using a vision-based method and calculating the rotation vector of the swing axis, the problem of large errors and long time consumption in the parameter calibration of dual swing heads in the existing technology is solved, and efficient and accurate parameter calibration is achieved.
Patent Information
- Application Number
- CN202410416483.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-08
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-04-08
AI Technical Summary
The existing dual-head parameter calibration method for five-axis laser cutting machine tools has large errors, is time-consuming and not accurate enough. In particular, the measurement results are inaccurate when the nozzle structure is wide, and multiple swing corrections are required.
By employing a vision-based method, the X, Y, and Z axes of the machine tool are automatically adjusted by recording the coordinates and diameter of the light spot in the imaging plane and combining them with the mechanical coordinate system. The rotation vector and rotation center of the swing axis are calculated to achieve fully automated calibration and avoid the problem of the light spot going out of bounds.
It achieves high-precision and rapid dual-swivel head parameter calibration, saves labor costs, and improves the reliability and accuracy of the calibration process.
Smart Images

Figure CN118081112B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of laser cutting processing, and more particularly to the field of five-axis laser cutting machine tools. Specifically, it refers to a method, apparatus, processor, and computer-readable storage medium for performing dual-head parameter calibration processing on a five-axis laser cutting machine based on vision. Background Technology
[0002] For five-axis laser cutting machine tools with a dual-axis tilting structure, issues such as mechanical precision can lead to deviations in the actual tilting head parameters. Using incorrect tilting head parameters during processing can result in significant machining errors. Furthermore, existing manual calibration methods are time-consuming and still yield some errors in the final calibration results. To address this issue:
[0003] Reference [1] invented a method for calibrating the parameters of a pendulum axis. The method establishes an equivalent pendulum axis model, rotates the pendulum axis in both directions, and calculates the parameters of the pendulum axis by the rotation angle of the pendulum axis and the distance of the end of the pendulum axis from the reference plane.
[0004] Reference [2] invented a method for calibrating the structural parameters of a machine tool. The method uses the spot deviation sampling method to obtain the spot deviation of the beam, and determines whether the structural parameters of the machine tool need to be recalibrated based on the spot deviation and the correlation quantity of the error threshold. If recalibration is required, the calibration will be performed based on the preset change amount of the structural parameters and the corresponding spot deviation.
[0005] Reference [3] provides a parameter calibration method for a five-axis motion platform based on a monocular camera and a laser ranging unit. This method obtains the transformation relationship between the device space coordinate system and the workpiece coordinate system of the five-axis motion platform when the first and second rotation axes are rotated to each preset rotation angle combination, and the transformation relationship between the device space coordinate system and the workpiece coordinate system of the five-axis motion platform. Based on this transformation relationship, the error parameters of the error term are obtained to realize the parameter calibration of the five-axis motion platform.
[0006] Reference [4] proposes a rapid measurement method for the eccentricity of the swing axis of a five-axis machine tool. The method takes the probe / tool just touching the horizontal worktable as the initial position; the swing axis is rotated around the center of the rotation axis by a fixed angle multiple times in both positive and negative directions, and the coordinates after the deflection are recorded; the eccentricity and eccentricity direction of the swing axis are calculated based on the coordinate values.
[0007] Reference [5] proposes a method for calibrating the inherent parameters of a dual-swivel head five-axis linkage laser processing machine tool, which combines a marking plate and the deviation of the marked straight line distance to achieve high-precision measurement of nine inherent linkage parameters. First, the comparison document calibrates the parameters by using the straight line deviation on the marking plate, which is different from the method in this paper that returns the spot to its initial position. The method of returning the spot to its initial position is a method unique to CCD vision and cannot be derived from the method in the comparison document. Second, the current CCD calibration scheme and comparison document do not consider the case where the deviation of the swing axis rotation vector is large, so there is no need to perform the step of returning the spot to its initial position. Therefore, the method in this paper is not a general method in this field.
[0008] Current calibration methods measure the height relative to a reference plane during calibration, but this measurement is inaccurate when the nozzle structure at the front of the oscillating head is wide. Furthermore, the measurement process requires multiple oscillations and gradual corrections, which is relatively time-consuming. Therefore, an accurate and efficient method is needed. To this end, this invention provides a vision-based method for calibrating the parameters of a dual-oscillating head on a five-axis laser cutting machine.
[0009] References:
[0010] [1] Patent name: Method, apparatus and computer-readable storage medium for calibrating the parameters of a pendulum axis. Authorization announcement number: CN116642446A. Patentee: Shanghai Baichu CNC Technology Co., Ltd.
[0011] [2] Patent name: Method, device and machine tool control system for calibrating structural parameters of machine tool Authorization announcement number: CN112621378B Patentee: Shanghai Baichu CNC Technology Co., Ltd.
[0012] [3] Patent name: Parameter calibration method, terminal equipment and storage medium of five-axis motion platform Authorization announcement number: CN115375771A Patentee: Shenzhen Huichuan Technology Co., Ltd.
[0013] [4] Patent name: A method for rapid measurement of the eccentricity of the swing axis of a five-axis machine tool Authorization announcement number: CN110449988B Patentee: Nanjing University of Technology; Nanjing University of Technology CNC Technology Co., Ltd.
[0014] [5] Patent name: A method for calibrating inherent parameters of a double-swivel type five-axis linkage laser processing machine tool Authorization announcement number: CN112475592B Patentee: Beijing University of Aeronautics and Astronautics. Summary of the Invention
[0015] The purpose of this invention is to overcome the shortcomings of the prior art and provide a method, device, processor and computer-readable storage medium for vision-based dual-head parameter calibration of a five-axis laser cutting machine that is characterized by small error, simple operation and wide applicability.
[0016] To achieve the above objectives, the present invention provides a vision-based method, apparatus, processor, and computer-readable storage medium for dual-head parameter calibration of a five-axis laser cutting machine, as follows:
[0017] This vision-based method for calibrating dual-head parameters of a five-axis laser cutting machine is characterized by the following steps:
[0018] (1) Take the state in which the laser head is perpendicular to the imaging plane as the initial state of the laser head, record the coordinates (x0, y0) of the current spot in the imaging plane and the size of the spot diameter d0, record the center coordinates of the spot in this state as the initial coordinates, and record the coordinates (X0, Y0, Z0) of the current blade tip position in the mechanical coordinate system.
[0019] (2) Deflect the swing axis and repeatedly adjust the machine tool so that the spot returns to the initial position, and record the coordinates (X1, Y1, Z1) of the current tool tip position in the machine coordinate system;
[0020] (3) Return the laser head to its initial state;
[0021] (4) Calculate the rotation vector n of the pendulum axis;
[0022] (5) Determine the corresponding rotation center (x, y, z) based on the characteristics of the oscillating head structure, normalize the rotation vector, and let the normalized rotation vector n0 = [n x n y n z ] T Calculate the center of rotation of the pendulum axis.
[0023] Preferably, step (2) specifically includes the following steps:
[0024] (1-2.1) Rotate the laser head around a pivot axis of the machine tool by a certain angle θ;
[0025] (1-2.2) Establish the mapping relationship between the imaging plane coordinate system and the machine coordinate system, and automatically adjust the X-axis, Y-axis and Z-axis of the machine tool;
[0026] (1-2.3) Based on the current spot diameter, automatically adjust the Z-axis of the machine tool so that the spot size is the same as the initial spot size;
[0027] (1-2.4) Automatically adjust the X and Y axes of the moving machine tool and record the current tool tip position in the machine coordinate system (X1, Y1, Z1);
[0028] (1-2.5) Return the laser head to its initial state;
[0029] (1-2.6) Rotate the laser head around the swing axis of the machine tool by a certain angle θ in the opposite direction;
[0030] (1-2.7) Repeat (1-2.2) to (1-2.4) and record the coordinates (X2, Y2, Z2) of the current tool tip position in the machine coordinate system.
[0031] Preferably, step (1-2.2) specifically includes:
[0032] Establish a mapping relationship between the imaging plane coordinate system and the machine coordinate system, and automatically adjust the X and Y axes of the moving machine tool to make the center of the light spot coincide with the initial position.
[0033] Preferably, step (1-2.4) specifically includes the following steps:
[0034] (5.1) Based on the difference between the current spot position and the initial position coordinates, the X and Y axes of the moving machine tool are automatically adjusted so that the center of the spot coincides with the initial position;
[0035] (5.2) Record the coordinates (X1, Y1, Z1) of the current tool tip position in the machine coordinate system.
[0036] Preferably, the calculation of the pendulum axis rotation vector n in step (4) is specifically as follows:
[0037] Calculate the pendulum axis rotation vector n using the following formula:
[0038]
[0039] Where (X0, Y0, Z0) are the coordinates of the current tool tip position in the machine coordinate system in step (1), and (X1, Y1, Z1) are the coordinates of the current tool tip position in the machine coordinate system in step (1-2.4).
[0040] Preferably, step (5) specifically includes the following steps:
[0041] If the swing axis is parallel to the X-axis of the machine tool, the coordinates of the rotation center are calculated using the following formula:
[0042]
[0043] If the swing axis is parallel to the Y-axis of the machine tool, the coordinates of the rotation center are calculated using the following formula:
[0044]
[0045] If the swing axis is parallel to the Z-axis of the machine tool, the coordinates of the rotation center are calculated using the following formula:
[0046]
[0047] Where (X1, Y1, Z1) are the coordinates of the current tool tip position in the machine coordinate system in step (1-2.4), and (X2, Y2, Z2) are the coordinates of the current tool tip position in the machine coordinate system in step (1-2.7).
[0048] Preferably, step (2) further includes the following steps:
[0049] (2-2.1) Deflect the pendulum axis by a small amount of angle θ s , angle θ s Set as a factor of the original deflection angle or a fixed step angle;
[0050] (2-2.2) Based on the difference between the current position and the initial position coordinates, the X and Y axes of the moving machine tool are automatically adjusted so that the center of the spot coincides with the initial position;
[0051] (2-2.3) Repeat (2-2.1) to (2-2.2) until the cumulative deflection reaches the required angle θ and the spot center has been adjusted back to the initial position;
[0052] (2-2.4) Adjust the Z-axis of the machine tool slightly according to the current spot diameter (2-2.2), and determine whether the spot diameter is the same as the initial diameter. If they are the same, end the step; if the spot diameter is different, continue to step (2-2.5).
[0053] (2-2.5) Repeat (2-2.4) until the spot diameter is the same, and record the coordinates of the current tool tip position in the machine coordinate system.
[0054] The device for performing vision-based dual-head parameter calibration of a five-axis laser cutting machine is characterized in that the device comprises:
[0055] A processor is configured to execute computer-executable instructions;
[0056] The memory stores one or more computer-executable instructions, which, when executed by the processor, implement the steps of the above-described vision-based method for dual-head parameter calibration of a five-axis laser cutting machine.
[0057] The processor for implementing vision-based dual-head parameter calibration processing for a five-axis laser cutting machine is characterized in that the processor is configured to execute computer-executable instructions, and when the computer-executable instructions are executed by the processor, the various steps of the above-mentioned vision-based method for implementing dual-head parameter calibration processing for a five-axis laser cutting machine are implemented.
[0058] The computer-readable storage medium is characterized in that it stores a computer program thereon, which can be executed by a processor to implement the various steps of the above-described vision-based method for performing dual-head parameter calibration processing on a five-axis laser cutting machine.
[0059] This invention employs a vision-based method, apparatus, processor, and computer-readable storage medium for dual-head parameter calibration of a five-axis laser cutting machine, achieving fully automated calibration, saving labor costs and calibration time. By incorporating spot size and position into the calculation of head structure parameters, calibration accuracy is higher. A step-by-step approach to move the spot avoids spot deviation from the calibration boundary, improving the reliability of the calibration process. Attached Figure Description
[0060] Figure 1 This is a schematic diagram of the initial state of the laser head in the vision-based method for calibrating dual-head parameters of a five-axis laser cutting machine according to the present invention.
[0061] Figure 2 This is a schematic diagram of the laser head deflecting around the swing axis at a certain angle in the method for calibrating the dual-swing head parameters of a five-axis laser cutting machine based on vision, as described in this invention.
[0062] Figure 3 This is a schematic diagram illustrating the X and Y direction movement of the laser head in the vision-based method for calibrating the dual-swivel parameters of a five-axis laser cutting machine according to the present invention, so that the laser spot returns to the initial position.
[0063] Figure 4 This is a schematic diagram illustrating the Z-direction movement of the laser head in the vision-based method for calibrating the dual-swing head parameters of a five-axis laser cutting machine according to the present invention, so that the spot diameter reaches the initial diameter.
[0064] Figure 5 This is a schematic diagram illustrating the method of vision-based dual-head parameter calibration for a five-axis laser cutting machine, which involves moving the laser head again in the X and Y directions to return the laser spot to its initial position.
[0065] Figure 6 This is a schematic diagram of the laser head deflecting in the opposite direction at a certain angle around the swing axis in the method for calibrating the dual-swing head parameters of a five-axis laser cutting machine based on vision, as described in this invention.
[0066] Figure 7 This is a schematic diagram illustrating the adjustment of the laser head in the vision-based method for calibrating the dual-swivel parameters of a five-axis laser cutting machine according to the present invention, so that the laser spot returns to the initial position and the diameter of the laser spot is equal to the initial diameter.
[0067] Figure 8 The flowchart of the method for performing dual-head parameter calibration of a five-axis laser cutting machine based on vision is shown in the present invention.
[0068] Figure 9 This is a schematic diagram of the initial position of the dual-swivel head structure in the vision-based method for calibrating dual-swivel head parameters of a five-axis laser cutting machine according to the present invention.
[0069] Figure 10 This is a schematic diagram illustrating how the auxiliary shaft of the present invention rotates forward a certain angle, and the light spot returns to its initial position and reaches its initial diameter, in a vision-based method for calibrating the dual-head parameters of a five-axis laser cutting machine.
[0070] Figure 11 This is a schematic diagram illustrating how the auxiliary axis of the present invention reverses by a certain angle, causing the laser spot to return to its initial position and reach its initial diameter, in a vision-based method for calibrating the dual-swivel head parameters of a five-axis laser cutting machine.
[0071] Figure 12 This is a schematic diagram illustrating the method of vision-based dual-head parameter calibration for a five-axis laser cutting machine according to the present invention, where the spindle rotates forward by a certain angle, the laser spot returns to its initial position, and reaches the initial diameter.
[0072] Figure 13 This is a schematic diagram illustrating the method of vision-based dual-head parameter calibration for a five-axis laser cutting machine according to the present invention, where the spindle rotates forward by a certain angle, the laser spot returns to its initial position, and reaches the initial diameter. Detailed Implementation
[0073] To more clearly describe the technical content of the present invention, the following description is provided in conjunction with specific embodiments.
[0074] The present invention provides a vision-based method for calibrating dual-head parameters of a five-axis laser cutting machine, comprising the following steps:
[0075] (1) Take the state in which the laser head is perpendicular to the imaging plane as the initial state of the laser head, record the coordinates (x0, y0) of the current spot in the imaging plane and the size of the spot diameter d0, record the center coordinates of the spot in this state as the initial coordinates, and record the coordinates (X0, Y0, Z0) of the current blade tip position in the mechanical coordinate system.
[0076] (2) Deflect the swing axis and repeatedly adjust the machine tool so that the spot returns to the initial position, and record the coordinates (X1, Y1, Z1) of the current tool tip position in the machine coordinate system;
[0077] (3) Return the laser head to its initial state;
[0078] (4) Calculate the rotation vector n of the pendulum axis;
[0079] (5) Determine the corresponding rotation center (x, y, z) based on the characteristics of the oscillating head structure, normalize the rotation vector, and let the normalized rotation vector n0 = [n x n y n z ] T Calculate the center of rotation of the pendulum axis.
[0080] In a preferred embodiment of the present invention, step (2) specifically includes the following steps:
[0081] (1-2.1) Rotate the laser head around a pivot axis of the machine tool by a certain angle θ;
[0082] (1-2.2) Establish the mapping relationship between the imaging plane coordinate system and the machine coordinate system, and automatically adjust the X-axis, Y-axis and Z-axis of the machine tool;
[0083] (1-2.3) Based on the current spot diameter, automatically adjust the Z-axis of the machine tool so that the spot size is the same as the initial spot size;
[0084] (1-2.4) Automatically adjust the X and Y axes of the moving machine tool and record the current tool tip position in the machine coordinate system (X1, Y1, Z1);
[0085] (1-2.5) Return the laser head to its initial state;
[0086] (1-2.6) Rotate the laser head around the swing axis of the machine tool by a certain angle θ in the opposite direction;
[0087] (1-2.7) Repeat (1-2.2) to (1-2.4) and record the coordinates (X2, Y2, Z2) of the current tool tip position in the machine coordinate system.
[0088] In a preferred embodiment of the present invention, step (1-2.2) specifically comprises:
[0089] Establish a mapping relationship between the imaging plane coordinate system and the machine coordinate system, and automatically adjust the X and Y axes of the moving machine tool to make the center of the light spot coincide with the initial position.
[0090] In a preferred embodiment of the present invention, step (1-2.4) specifically includes the following steps:
[0091] (5.1) Based on the difference between the current spot position and the initial position coordinates, the X and Y axes of the moving machine tool are automatically adjusted so that the center of the spot coincides with the initial position;
[0092] (5.2) Record the coordinates (X1, Y1, Z1) of the current tool tip position in the machine coordinate system.
[0093] In a preferred embodiment of the present invention, the calculation of the pendulum axis rotation vector n in step (4) is specifically as follows:
[0094] Calculate the pendulum axis rotation vector n using the following formula:
[0095]
[0096] Where (X0, Y0, Z0) are the coordinates of the current tool tip position in the machine coordinate system in step (1), and (X1, Y1, Z1) are the coordinates of the current tool tip position in the machine coordinate system in step (1-2.4).
[0097] In a preferred embodiment of the present invention, step (5) specifically includes the following steps:
[0098] If the swing axis is parallel to the X-axis of the machine tool, the coordinates of the rotation center are calculated using the following formula:
[0099]
[0100] If the swing axis is parallel to the Y-axis of the machine tool, the coordinates of the rotation center are calculated using the following formula:
[0101]
[0102] If the swing axis is parallel to the Z-axis of the machine tool, the coordinates of the rotation center are calculated using the following formula:
[0103]
[0104] Where (X1, Y1, Z1) are the coordinates of the current tool tip position in the machine coordinate system in step (1-2.4), and (X2, Y2, Z2) are the coordinates of the current tool tip position in the machine coordinate system in step (1-2.7).
[0105] In a preferred embodiment of the present invention, step (2) further includes the following steps:
[0106] (2-2.1) Deflect the pendulum axis by a small amount of angle θ s , angle θ s Set as a factor of the original deflection angle or a fixed step angle;
[0107] (2-2.2) Based on the difference between the current position and the initial position coordinates, the X and Y axes of the moving machine tool are automatically adjusted so that the center of the spot coincides with the initial position;
[0108] (2-2.3) Repeat (2-2.1) to (2-2.2) until the cumulative deflection reaches the required angle θ and the spot center has been adjusted back to the initial position;
[0109] (2-2.4) Adjust the Z-axis of the machine tool slightly according to the current spot diameter (2-2.2), and determine whether the spot diameter is the same as the initial diameter. If they are the same, end the step; if the spot diameter is different, continue to step (2-2.5).
[0110] (2-2.5) Repeat (2-2.4) until the spot diameter is the same, and record the coordinates of the current tool tip position in the machine coordinate system.
[0111] The present invention relates to an apparatus for performing vision-based dual-head parameter calibration of a five-axis laser cutting machine, wherein the apparatus comprises:
[0112] A processor is configured to execute computer-executable instructions;
[0113] The memory stores one or more computer-executable instructions, which, when executed by the processor, implement the steps of the above-described vision-based method for dual-head parameter calibration of a five-axis laser cutting machine.
[0114] The present invention relates to a processor for performing vision-based dual-head parameter calibration processing for a five-axis laser cutting machine, wherein the processor is configured to execute computer-executable instructions, and when the computer-executable instructions are executed by the processor, the various steps of the above-described vision-based method for performing dual-head parameter calibration processing for a five-axis laser cutting machine are implemented.
[0115] The computer-readable storage medium of the present invention stores a computer program that can be executed by a processor to implement the various steps of the above-described method for vision-based dual-head parameter calibration of a five-axis laser cutting machine.
[0116] The purpose of this invention is to provide a vision-based method for calibrating the dual-head parameters of a five-axis laser cutting machine. This method is based on a vision system that can identify the spot formed by the red light emitted by the laser within its imaging plane. Simultaneously, the system can calculate the coordinates of the spot center and the size of the spot diameter. This approach enables automated measurement, reducing labor costs, and improves the accuracy of structural parameter measurements for five-axis laser cutting machines, thereby ensuring cutting quality and precision.
[0117] Based on this vision system, the measurement of dual-head parameters in this invention mainly consists of two parts:
[0118] (1) Measurement of the rotation vector parameters of the pendulum axis;
[0119] (2) Measurement of the rotation center parameters of the pendulum axis. Specific steps are as follows:
[0120] S1, taking the state where the laser head is perpendicular to the imaging plane as the initial state of the laser head, record the coordinates (x0, y0) of the current laser spot in the imaging plane and the size of the laser spot diameter d0, and record the center coordinates of the laser spot in this state as the initial coordinates, and the diameter of the laser spot in this state as the initial diameter. Simultaneously, record the coordinates (X0, Y0, Z0) of the current blade tip position in the machine coordinate system, such as... Figure 1 As shown.
[0121] S2, deflect the laser head around a certain pivot axis of the machine tool by a certain angle θ, such as Figure 2 As shown. When implementing this scheme, the parameters of the two swing heads in the double-swing head structure need to be calibrated separately. However, the calibration order does not need to be explicitly distinguished. Therefore, "a certain" swing axis here refers to any one swing head. Both swing heads are calibrated according to this method. S3, establish the mapping relationship between the imaging plane coordinate system and the machine coordinate system so that the X, Y, and Z axes of the machine tool can be automatically adjusted according to the coordinates in the imaging plane. After establishing the mapping relationship, automatically adjust the X and Y axes of the moving machine tool so that the center of the light spot coincides with the initial position, such as... Figure 3 As shown.
[0122] S4, based on the current spot diameter, automatically adjust the machine tool's Z-axis to make the spot size the same as the initial spot size, such as... Figure 4 As shown.
[0123] S5, again based on the difference between the current spot position and the initial position coordinates, automatically adjust the X and Y axes of the moving machine tool so that the spot center coincides with the initial position, i.e., repeat S3 once. Record the current tool tip position coordinates (X1, Y1, Z1) in the machine coordinate system, such as... Figure 5 As shown.
[0124] S6, return the laser head to its initial state.
[0125] S7, rotate the laser head in the opposite direction around the machine tool's swing axis by a certain angle θ. This angle is the same as in S2. Figure 6 As shown.
[0126] S8, repeat steps S3-S5. Record the current tool tip position in the machine coordinate system (X2, Y2, Z2), such as... Figure 7 As shown.
[0127] S9 returns the laser head to its initial state.
[0128] S10, since the plane formed by the three recorded tool tip positions is perpendicular to the rotation vector, the rotation vector n of the pendulum axis can be calculated using the following formula:
[0129]
[0130] S11, determine the corresponding rotation center (x, y, z) based on the characteristics of the head-swinging structure. Normalize the rotation vector, letting the normalized rotation vector n0 = [n x n y n z ] T According to Rodriguez's rotation formula, the calculation formulas for the pendulum axis in each direction are as follows:
[0131] S11.1, If the swing axis is parallel to the X-axis of the machine tool (i.e., the swing axis is the A-axis), then the coordinates of its rotation center are:
[0132]
[0133] S11.2, If the swing axis is parallel to the Y-axis of the machine tool (i.e., the swing axis is the B-axis), then the coordinates of its rotation center are:
[0134]
[0135] S11.3, If the swing axis is parallel to the Z-axis of the machine tool (i.e., the swing axis is the C-axis), then the coordinates of its rotation center are:
[0136]
[0137] It is important to note that:
[0138] When performing steps S2 or S7, if the imaging plane is small and the deflection angle θ is large, the light spot is prone to moving out of the imaging plane, i.e., the light spot goes out of bounds, and it is impossible to move the light spot back to the initial position. To solve this problem, the present invention also provides another method for moving the light spot back to the initial position, replacing steps S2 to S5 and S6 to S8 in the original method. Its characteristic steps are as follows, and its flowchart is shown below. Figure 8 As shown.
[0139] Step 1, slightly deflect the pendulum axis by a certain angle θ. s This angle can be set as a factor (or approximation) of the original deflection angle or a fixed step angle.
[0140] Step 2: Based on the difference between the current spot position and the initial position coordinates, automatically adjust the X and Y axes of the moving machine tool so that the center of the spot coincides with the initial position.
[0141] Step 3: Repeat Step 1 and Step 2 until the cumulative deflection reaches the required angle θ and the center of the light spot has been adjusted back to the initial position.
[0142] Step 4: Adjust the Z-axis of the machine tool slightly according to the current spot diameter, repeat step 2, and determine whether the spot diameter is the same as the initial diameter.
[0143] Step 5: If the spot diameters are not the same, repeat Step 4 until the spot diameters are the same. Record the current tool tip position in the machine coordinate system (record as (X1, Y1, Z1) when deflecting in the positive direction, and (X2, Y2, Z2) when deflecting in the negative direction).
[0144] In a specific embodiment of the present invention, a five-axis CNC machine tool is used. In addition to translation in the X, Y, and Z directions, the laser head can also rotate around the X and Y axes, respectively referred to as the A-axis and B-axis. Furthermore, the structure of this machine head is such that the B-axis is the main rotational axis, and the A-axis is the auxiliary rotational axis. That is, rotation of the B-axis affects the direction of the A-axis, while rotation of the A-axis does not affect the direction of the B-axis.
[0145] The method of the present invention can be implemented within the machine tool control system, and the basic steps involved are as follows:
[0146] S1. Rotate the machine tool cutting head to be perpendicular to the imaging plane. Turn on the red laser and manually move the X, Y, and Z axes of the machine tool to make a clear light spot appear in the imaging plane.
[0147] S2, the machine tool control system records the coordinates (x0, y0) of the center of the light spot in the imaging plane, and the size of the light spot diameter d0, and simultaneously records the current tool tip position in the machine coordinate system (X0, Y0, Z0), such as Figure 9 As shown.
[0148] S2.1 When the light spot in the imaging plane is not clear, the machine tool control system can automatically adjust the focal axis to make the light spot clearer.
[0149] S3, rotate the laser head around the machine tool A-axis by a certain angle θ As The actual required deflection angle θ A It is an integer multiple of that angle.
[0150] S4. Based on the difference between the current spot position and the initial position coordinates, automatically adjust the X and Y axes of the moving machine tool so that the center of the spot coincides with the initial position.
[0151] S5, repeat S3 and S4 until the laser head has rotated around axis A to θ. A .
[0152] S6. Based on the current spot diameter, slightly adjust the Z-axis of the machine tool, repeat S4, and determine whether the spot diameter is the same as the initial diameter.
[0153] S7. If the spot diameters are not the same, repeat Step 6 until the spot diameters are the same. Record the current tool tip position coordinates (X1, Y1, Z1) in the machine coordinate system, such as... Figure 10 As shown.
[0154] S8 returns the laser head to its initial state.
[0155] S9, in the same manner as S3-S7, deflects the A-axis θ in the opposite direction. A This ensures that the current spot diameter is the same as the initial diameter. Record the current tool tip position in the machine coordinate system as (X2, Y2, Z2), such as... Figure 11 As shown.
[0156] S10, Calculate the rotation vector n along axis A according to the formula. A and the center of rotation (x) A y A , z A ):
[0157]
[0158]
[0159]
[0160] S11, return the laser head to its initial state.
[0161] S12, in the same manner as S3-S9, deflects the B-axis θ in both the forward and reverse directions respectively. B The angle is adjusted so that the center of the light spot returns to its initial position, and the diameter of the light spot is the same as the initial diameter. The coordinates of the tool tip position in the machine coordinate system are recorded, such as... Figure 12 , Figure 13 As shown, the forward rotation is (X3, Y3, Z3), and the reverse rotation is (X4, Y4, Z4).
[0162] S13, Calculate the rotation vector n along the B-axis according to the formula. B and the center of rotation (x) B y B , z B ):
[0163]
[0164]
[0165]
[0166] At this point, the calibration of the double-swivel head parameters is complete.
[0167] It is important to note that:
[0168] 1. In this example, the double-swivel head structure of the machine tool is structure A and B, but the method of the present invention is also applicable to other double-swivel head structures, such as double-swivel head structures B and C.
[0169] 2. In this example, the A-axis of the machine tool is the auxiliary axis and the B-axis is the main axis in the double-swivel head structure. However, the method of the present invention does not limit the mechanical structure of the main and auxiliary axes. Other mechanical structures are also applicable, such as the double-swivel head mechanical structure in which the B-axis is the auxiliary axis and the A-axis is the main axis.
[0170] 3. The practical process in this example includes adjusting the center of the light spot to the initial position and adjusting the diameter of the light spot to the initial diameter. However, due to the influence of external factors such as actual mechanical conditions and lighting conditions, the conditions cannot be completely met. In this case, a threshold can be set or a certain error range can be given, and the state within the error range can be regarded as meeting the conditions.
[0171] In this example, the main and auxiliary axes each deflect twice in both directions, which may introduce random errors and distort the calibration values. In such cases, the method of this invention can be used to deflect the axes at different angles and take the average of each group to reduce the impact of random errors.
[0172] Compared to reference 5 in the background art, the technical solution of this invention employs a method for returning the light spot to its initial position, which considers the case of a large deviation in the pendulum axis rotation vector, thus improving the calibration accuracy of the pendulum axis rotation vector. This solution not only provides a method for returning the light spot to its initial position but also provides a more accurate method for implementing this step, making the method more feasible. Specific implementation schemes of this embodiment can be found in the relevant descriptions in the above embodiments, and will not be repeated here.
[0173] It is understood that the same or similar parts in the above embodiments can be referred to each other, and the contents not described in detail in some embodiments can be referred to the same or similar contents in other embodiments.
[0174] It should be noted that in the description of this invention, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this invention, unless otherwise stated, "a plurality of" means at least two.
[0175] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.
[0176] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution device. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0177] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The corresponding program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.
[0178] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0179] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.
[0180] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0181] This invention employs a vision-based method, apparatus, processor, and computer-readable storage medium for dual-head parameter calibration of a five-axis laser cutting machine, achieving fully automated calibration, saving labor costs and calibration time. By incorporating spot size and position into the calculation of head structure parameters, calibration accuracy is higher. A step-by-step approach to move the spot avoids spot deviation from the calibration boundary, improving the reliability of the calibration process.
[0182] In this specification, the invention has been described with reference to specific embodiments thereof. However, it will be apparent that various modifications and variations can be made without departing from the spirit and scope of the invention. Therefore, the specification and drawings should be considered illustrative rather than restrictive.
Claims
1. A method for vision-based calibration of dual-head parameters in a five-axis laser cutting machine, characterized in that, The method includes the following steps: (1) Take the state in which the laser head is perpendicular to the imaging plane as the initial state of the laser head, record the coordinates (x0, y0) of the current spot in the imaging plane and the size of the spot diameter d0, record the center coordinates of the spot in this state as the initial coordinates, and record the coordinates (X0, Y0, Z0) of the current blade tip position in the mechanical coordinate system. (2) Deflect the swing axis and repeatedly adjust the machine tool so that the spot returns to the initial position, and record the coordinates (X1, Y1, Z1) of the current tool tip position in the machine coordinate system. (3) Return the laser head to its initial state; (4) Calculate the rotation vector of the pendulum axis ; (5) Determine the corresponding rotation center (x, y, z) based on the characteristics of the oscillating head structure, normalize the rotation vector, and let the normalized rotation vector... Calculate the center of rotation of the pendulum axis; Step (2) specifically includes the following steps: (1-2.1) Rotate the laser head around a certain angle around one of the machine tool's pivot axes. ; (1-2.2) Establish the mapping relationship between the imaging plane coordinate system and the machine coordinate system, and automatically adjust the X-axis, Y-axis and Z-axis of the machine tool; (1-2.3) Based on the current spot diameter, automatically adjust the Z-axis of the machine tool so that the spot size is the same as the initial spot size; (1-2.4) Automatically adjust the X and Y axes of the moving machine tool and record the current tool tip position in the machine coordinate system (X1, Y1, Z1). (1-2.5) Return the laser head to its initial state; (1-2.6) Rotate the laser head around the swing axis of the machine tool by a certain angle in the opposite direction. ; (1-2.7) Repeat (1-2.2) to (1-2.4) and record the coordinates (X2, Y2, Z2) of the current tool tip position in the machine coordinate system. Step (2) further includes the following steps: (2-2.1) Deflect the pendulum axis slightly by a certain angle. , angle Set as a factor of the original deflection angle or a fixed step angle; (2-2.2) Based on the difference between the current position and the initial position coordinates, the X and Y axes of the moving machine tool are automatically adjusted so that the center of the spot coincides with the initial position; (2-2.3) Repeat (2-2.1) to (2-2.2) until the cumulative deflection reaches the required angle. The light spot center has been adjusted back to its initial position; (2-2.4) Adjust the Z-axis of the machine tool slightly according to the current spot diameter, repeat (2-2.2), and determine whether the spot diameter is the same as the initial diameter. If they are the same, end the step; if the spot diameter is different, continue to step (2-2.5). (2-2.5) Repeat (2-2.4) until the spot diameter is the same, and record the coordinates of the current tool tip position in the machine coordinate system.
2. The method for calibrating dual-head parameters of a five-axis laser cutting machine based on vision, as described in claim 1, is characterized in that... The steps (1-2.4) specifically include the following steps: (5.1) Based on the difference between the current position and the initial position coordinates, the X and Y axes of the moving machine tool are automatically adjusted so that the center of the spot coincides with the initial position; (5.2) Record the coordinates (X1, Y1, Z1) of the current tool tip position in the machine coordinate system.
3. The method for calibrating dual-head parameters of a five-axis laser cutting machine based on vision, as described in claim 1, is characterized in that... In step (4), the rotation vector of the pendulum axis is calculated. Specifically: Calculate the pendulum axis rotation vector using the following formula. : ; Where (X0, Y0, Z0) are the coordinates of the current tool tip position in the machine coordinate system in step (1), and (X1, Y1, Z1) are the coordinates of the current tool tip position in the machine coordinate system in step (1-2.4).
4. The method for calibrating dual-head parameters of a five-axis laser cutting machine based on vision, as described in claim 1, is characterized in that... Step (5) specifically includes the following steps: If the swing axis is parallel to the X-axis of the machine tool, the coordinates of the rotation center are calculated using the following formula: If the swing axis is parallel to the Y-axis of the machine tool, the coordinates of the rotation center are calculated using the following formula: If the swing axis is parallel to the Z-axis of the machine tool, the coordinates of the rotation center are calculated using the following formula: Where (X1, Y1, Z1) are the coordinates of the current tool tip position in the machine coordinate system in step (1-2.4), and (X2, Y2, Z2) are the coordinates of the current tool tip position in the machine coordinate system in step (1-2.7).
5. A device for vision-based calibration of dual-head parameters of a five-axis laser cutting machine, characterized in that, The device includes: A processor is configured to execute computer-executable instructions; The memory stores one or more computer-executable instructions, which, when executed by the processor, implement the steps of the vision-based method for dual-head parameter calibration of a five-axis laser cutting machine as described in any one of claims 1 to 4.
6. A processor for performing dual-head parameter calibration of a five-axis laser cutting machine based on vision, characterized in that, The processor is configured to execute computer-executable instructions, which, when executed by the processor, implement the steps of the vision-based method for dual-head parameter calibration of a five-axis laser cutting machine as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, It stores a computer program that can be executed by a processor to implement the steps of the vision-based method for calibrating dual-head parameters of a five-axis laser cutting machine as described in any one of claims 1 to 4.
Citation Information
Patent Citations
A method for rapid measurement of the eccentricity of the swing axis of a five-axis machine tool
CN110449988B
A method for calibrating inherent parameters of a dual-swivel head five-axis linkage laser processing machine tool
CN112475592B
Methods, apparatus, and machine tool control systems for calibrating the structural parameters of machine tools.
CN112621378B
Parameter calibration method of five-axis motion platform, terminal equipment and storage medium
CN115375771A
Method and device for calibrating parameters of pendulum shaft and computer readable storage medium
CN116642446A
