Focus dynamic adjustment method and device in laser on-the-fly processing

The focus position is monitored in real time through high-speed galvanometer and feedback control algorithm, and the dynamic adjustment of the focus is completed in conjunction with the laser and motion controller, which solves the problem of unstable processing quality caused by focus offset in laser flight processing, significantly improving machining accuracy and consistency.

CN119703341BActive Publication Date: 2025-04-18SHENZHEN ZHIDING AUTOMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510239158.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-03
Publication Date
2025-04-18
Estimated Expiration
2045-03-03

AI Technical Summary

Technical Problem

During laser flight processing, the focus offset leads to unstable processing quality, and the real-time detection and compensation accuracy of focus offset in the prior art is poor.

Method used

The focus position is monitored in real time through a high-speed galvanometer and feedback control algorithm, and the laser and motion controller are coordinated to complete dynamic focus adjustments, including obtaining position data streams, identifying focus positions, calculating offsets, optimizing focus depth and power, generating optimization paths, and performing corrections and fine-tuning.

Benefits of technology

It effectively solves the problem of unstable processing quality caused by focus shift in laser processing, and significantly improves processing accuracy and consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119703341B_ABST
    Figure CN119703341B_ABST
Patent Text Reader

Abstract

The present invention relates to a method and device for dynamically adjusting focus in laser flight processing, the method comprising step 1: obtaining a data stream; step 2: according to a laser type matching recognition algorithm, identifying the data stream to obtain a preliminary result and filtering to obtain the current position; step 3: calculating the offset between the current position and the reference, and judging whether it reaches a preset threshold, if so, recording it as a compensation value; step 4: obtaining the focus depth and power; optimizing the focus depth and power according to the compensation value; step 5: using a trajectory interpolation method to process the focus depth and optimize the power to obtain an optimized path; step 6: sending the optimized path to a motion controller and outputting a corrected position; step 7: judging whether the corrected position and the optimal plane deviation value are within a threshold range, if so, completing the processing according to the corrected position; if not, re-executing steps 3-7 until the processing is completed. The method solves the problem of unstable processing quality caused by focus offset in laser processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of laser processing technology, and in particular to a method and device for dynamically adjusting focus in laser flying processing. Background Art

[0002] In the process of laser flight processing, dynamic adjustment of focus is a key link, and the core issue is how to ensure that the laser focus is always located in the optimal processing plane. First of all, focus offset is inevitable, which is caused by factors such as uneven surface of the processed material, equipment vibration or temperature change. When the focus is offset, the distribution of laser energy on the surface of the material will change, resulting in inconsistent processing effects or even defects. Therefore, it is necessary to analyze the focus offset in real time, automatically calculate the compensation amount, and dynamically adjust the power distribution, relative position and movement trajectory of each focus. In specific operations, the detection of focus offset usually relies on high-precision sensors or optical systems that can monitor the position change of the focus in real time. Once the offset is detected, the system needs to quickly calculate the corresponding compensation amount according to the direction and size of the offset. The calculation of the compensation amount involves the adjustment of the focus depth, that is, by changing the focus position of the laser beam, the focus is returned to the optimal processing plane. At the same time, in order to improve processing efficiency and quality, it is also necessary to select the best flight trajectory and focus position according to material characteristics and processing requirements.

[0003] However, there are several technical difficulties in the dynamic adjustment of the focus. First, the real-time detection and compensation of focus offset needs to be completed in a very short time, which places high demands on the response speed and computing power of the system. Secondly, the processing characteristics of different materials vary greatly. How to dynamically adjust the focus depth and power distribution according to the material characteristics is a complex issue. In addition, the influence of equipment vibration and temperature changes during the processing process is difficult to completely eliminate, which further increases the difficulty of dynamic adjustment of the focus. Therefore, how to achieve accurate dynamic adjustment of the focus in a complex and changeable processing environment is a key technical issue in the field of laser flight processing.

[0004] In one prior art, a specific implementation method includes: relying on a sensor or optical system to monitor the focus position change in real time to detect focus offset; once the offset is detected, the system must quickly calculate the compensation amount based on the offset direction and size, which involves focus depth adjustment, that is, changing the focus position of the laser beam to return the focus to the optimal processing plane; at the same time, it is also necessary to select the best flight trajectory and focus position based on material properties and processing requirements.

[0005] However, due to the poor accuracy of real-time detection and compensation of focus shift in the prior art, the processing quality caused by focus shift in laser processing is unstable. Summary of the invention

[0006] The present invention provides a method and device for dynamically adjusting the focus in laser on-the-fly processing, so as to realize real-time monitoring of the focus position through a high-speed galvanometer and a feedback control algorithm, and coordinate the laser and a motion controller to complete the dynamic adjustment of the focus, so as to effectively solve the problem of unstable processing quality caused by focus offset in laser processing.

[0007] In a first aspect, in order to solve the above technical problems, the present invention provides a method for dynamically adjusting focus in laser flying processing, comprising:

[0008] Step 1: Get the location data stream;

[0009] Step 2: Obtain a recognition algorithm according to the pre-stored laser type matching, use the recognition algorithm to identify the position data stream to obtain a preliminary result; filter the preliminary result to obtain the current position;

[0010] Step 3: Calculate the offset between the current position and the machining plane reference to obtain the offset, convert the offset to obtain the adjustment value; determine whether the adjustment value reaches a preset threshold, and if so, record the adjustment value as the compensation value;

[0011] Step 4: matching parameters according to the characteristics of the material to be processed to obtain focal depth and power; optimizing the focal depth and power according to the compensation value to obtain optimized focal depth and optimized power;

[0012] Step 5: Processing the optimized focal depth and the optimized power by using a trajectory interpolation method to generate an initial path, and optimizing the initial path to obtain an optimized path;

[0013] Step 6: Send the optimized focal depth, optimized power and the optimized path to the laser control interface and the motion controller for correction, obtain correction instructions, perform fine adjustments according to the instructions, and output the correction position;

[0014] Step 7: Determine whether the deviation value between the correction position and the preset optimal processing plane is within the preset threshold range. If so, complete the processing according to the correction position; if not, re-execute steps 3-7 until the deviation value within the preset threshold range is obtained.

[0015] In an implementation manner of the first aspect, the position data stream is collected using a high-precision sensor, and the position data is obtained after processing deviations and correcting trajectories.

[0016] In an implementable manner of the first aspect, filtering the preliminary result to obtain the current position includes:

[0017] Using a Kalman filter algorithm to filter the preliminary result to obtain a preliminary position;

[0018] It is determined whether the preliminary position is within a preset position threshold range. If so, the preliminary position is determined as the current position. If not, the preliminary position is re-filtered and then determined again until the current position is obtained.

[0019] In an implementable manner of the first aspect, optimizing the focal depth and the power according to the compensation value to obtain the optimized focal depth and the optimized power includes:

[0020] Compensating the focal depth and power according to the compensation value to obtain an initial depth and an initial power;

[0021] Determine whether the initial depth meets a preset depth threshold, if yes, output the initial depth as the optimized focal depth, if no, re-match the focal depth and compensate and then determine again until the optimized focal depth is obtained;

[0022] It is determined whether the initial power meets the preset power threshold. If so, the initial power is output as the optimized power. If not, the power is re-matched and compensated and then determined again until the optimized power is obtained.

[0023] In an implementable manner of the first aspect, the adopting a trajectory interpolation method to process the optimized focal depth and the optimized power to generate an initial path, and optimizing the initial path to generate an optimized path includes:

[0024] Using a trajectory interpolation method to generate trajectories for the optimized focal depth and the optimized power to obtain an initial path;

[0025] The smoothness and continuity of the initial path are optimized to obtain an optimized path.

[0026] In an implementable manner of the first aspect, the optimized focal depth, the optimized power, and the optimized path are sent to the laser control interface and the motion controller for correction, a correction instruction is obtained, fine-tuning is performed according to the instruction, and the correction position is output, including:

[0027] Converting the optimized focal depth, the optimized power and the optimized path in combination with pre-stored processing parameters to generate an initial control instruction;

[0028] The initial control instruction is sent to the laser control interface and the motion controller for algorithm analysis to obtain a focus correction instruction and a power correction instruction;

[0029] The focus correction instruction and the power correction instruction are combined to obtain a comprehensive control instruction;

[0030] The comprehensive control instruction is input into the motion controller to fine-tune and update the focus position to obtain the correction position.

[0031] In an implementable manner of the first aspect, sending the initial control instruction to the laser control interface and the motion controller for algorithm analysis to obtain a focus correction instruction and a power correction instruction includes:

[0032] Sending the initial control instruction to the motion controller to obtain real-time focus depth data and real-time power distribution data;

[0033] A preset focus adjustment algorithm is used to control the deviation of the real-time focus depth data to obtain a focus correction instruction;

[0034] Based on the power adjustment range of the laser, an adaptive power adjustment algorithm is used to perform error control on the real-time power distribution data to obtain a power correction instruction.

[0035] In a second aspect, the present invention provides a focus dynamic adjustment device in laser on-the-fly processing, comprising:

[0036] A data acquisition module, used for acquiring a location data stream;

[0037] A position identification module is used to obtain an identification algorithm according to a pre-stored laser type match, identify the position data stream using the identification algorithm, and obtain a preliminary result; filter the preliminary result to obtain the current position;

[0038] A compensation module is used to calculate the offset between the current position and the processing plane reference, obtain the offset, convert the offset, and output an adjustment value; determine whether the adjustment value reaches a preset threshold, and if so, record the adjustment value as a compensation value;

[0039] An optimization module, used for matching parameters according to the characteristics of the material to be processed to obtain the focal depth and power; optimizing the focal depth and power according to the compensation value to obtain the optimized focal depth and optimized power;

[0040] A path generation module, used for processing the optimized focal depth and the optimized power by using a trajectory interpolation method to generate an initial path, optimizing the initial path, and generating an optimized path;

[0041] A correction module, used to send the optimized focal depth, optimized power and the optimized path to the laser control interface and the motion controller for correction, obtain correction instructions, perform fine adjustments according to the instructions, and output the correction position;

[0042] The judgment output module is used to judge whether the deviation value between the correction position and the preset optimal processing plane is within a preset threshold range. If so, the processing is completed according to the correction position; if not, the corresponding operations of the compensation module, the optimization module, the path generation module, the correction module and the judgment output module are re-executed until the deviation value within the preset threshold range is obtained.

[0043] In a third aspect, the present invention also provides an electronic device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for dynamic focus adjustment in laser flight processing described in any one of the above is implemented.

[0044] In a fourth aspect, the present invention further provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned methods for dynamic focus adjustment in laser flight processing.

[0045] Compared with the prior art, the present invention has the following beneficial effects:

[0046] The present invention discloses a method for dynamically adjusting the focus in laser flying processing, comprising step 1: acquiring a position data stream; step 2: obtaining an identification algorithm according to a pre-stored laser type matching, using the identification algorithm to identify the position data stream to obtain a preliminary result; filtering the preliminary result to obtain a current position; step 3: calculating the offset between the current position and a processing plane reference to obtain an offset, converting the offset to obtain an adjustment value; judging whether the adjustment value reaches a preset threshold, and if so, recording the adjustment value as a compensation value; step 4: performing parameter matching according to the characteristics of the material to be processed to obtain a focus depth and power; optimizing the focus depth and power according to the compensation value. , and obtain the optimized focal depth and optimized power; Step 5: Use the trajectory interpolation method to process the optimized focal depth and the optimized power, generate an initial path, optimize the initial path, and obtain the optimized path; Step 6: Send the optimized focal depth, optimized power and the optimized path to the laser control interface and motion controller for correction, obtain the correction instruction, perform fine adjustment according to the instruction, and output the correction position; Step 7: Determine whether the deviation value between the correction position and the preset optimal processing plane is within the preset threshold range, if so, complete the processing according to the correction position; if not, re-execute steps 3-7 until the deviation value within the preset threshold range is obtained. The present invention obtains the laser focus position data in real time through a high-precision position sensor to solve the problem of focus deviation from the optimal processing plane during laser processing, and combines the focus recognition algorithm and data filtering technology to improve the recognition accuracy. According to the focus offset, the present invention calculates the compensation value and optimizes the power distribution scheme to generate adjusted focus depth and power distribution data; at the same time, the trajectory interpolation method is used to plan a new laser movement trajectory to ensure the smoothness of the processing path; the present invention uses a high-speed galvanometer and feedback control algorithm to monitor the focus position in real time, and cooperates with the laser and motion controller to complete the dynamic adjustment of the focus. The present invention effectively solves the problem of unstable processing quality caused by focus offset in laser processing, and significantly improves processing accuracy and consistency. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a schematic flow chart of a method for dynamically adjusting focus in laser on-the-fly processing provided by a first embodiment of the present invention;

[0048] Figure 2 It is a schematic diagram of the structure of a dynamic focus adjustment device in laser on-the-fly processing provided by the second embodiment of the present invention. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] Reference Figure 1 The first embodiment of the present invention provides a method for dynamically adjusting the focus in laser flying processing, comprising the following steps:

[0051] S1, obtain location data stream;

[0052] S2, obtaining a recognition algorithm according to the pre-stored laser type matching, using the recognition algorithm to recognize the position data stream to obtain a preliminary result; filtering the preliminary result to obtain the current position;

[0053] S3, calculating the offset between the current position and the machining plane reference to obtain the offset, converting the offset to obtain the adjustment value; judging whether the adjustment value reaches a preset threshold, and if so, recording the adjustment value as the compensation value;

[0054] S4, performing parameter matching according to the characteristics of the material to be processed to obtain the focal depth and power; optimizing the focal depth and power according to the compensation value to obtain the optimized focal depth and optimized power;

[0055] S5, using a trajectory interpolation method to process the optimized focal depth and the optimized power to generate an initial path, and optimizing the initial path to obtain an optimized path;

[0056] S6, sending the optimized focal depth, optimized power and the optimized path to the laser control interface and the motion controller for correction, obtaining a correction instruction, performing fine adjustment according to the instruction, and outputting the correction position;

[0057] S7, determine whether the deviation value between the correction position and the preset optimal processing plane is within the preset threshold range. If so, complete the processing according to the correction position; if not, re-execute S3-S7 until the deviation value within the preset threshold range is obtained.

[0058] In step S1, a position data stream is acquired.

[0059] It should be noted that the position data stream is collected by using a high-precision sensor and is obtained after processing the deviation and correcting the trajectory.

[0060] In a specific embodiment, the specific implementation process includes: using a high-precision position sensor to obtain the real-time position point data stream of the laser focus in the spatial coordinate system, and setting the real-time sampling rate parameters. If the real-time sampling rate exceeds the preset threshold, the sampling rate parameters are adjusted to ensure that the data stream is stably transmitted within the set range. According to the collected position point data stream, a laser focus motion trajectory model is constructed in the spatial coordinate system. The Kalman filter algorithm is used to smooth the laser focus motion trajectory model to remove noise interference in the position point data stream. According to the smoothed laser focus motion trajectory model, the deviation between the focus position value and the preset target position is calculated. If the deviation exceeds the preset range, the least squares fitting algorithm is used to correct the laser focus trajectory. According to the corrected laser focus trajectory, the precise position point data stream of the final laser focus in the spatial coordinate system is output.

[0061] In step S2, a recognition algorithm is obtained according to the pre-stored laser type matching, and the position data stream is recognized using the recognition algorithm to obtain a preliminary result; the preliminary result is filtered to obtain the current position.

[0062] In the above step S2, the identification algorithm is obtained according to the pre-stored laser type matching, and the position data stream is identified by the identification algorithm to obtain a preliminary result; the preliminary result is filtered to obtain the current position, which specifically includes the following steps:

[0063] S21, filtering the preliminary result using a Kalman filter algorithm to obtain a preliminary position;

[0064] S22, determining whether the preliminary position is within a preset position threshold range, if so, determining the preliminary position as the current position, if not, re-filtering to obtain the preliminary position and then determining again until the current position is obtained.

[0065] In a specific embodiment, for the pre-stored laser type, the corresponding focus recognition algorithm is matched; the matched focus recognition algorithm is used to process the acquired position data stream to generate a preliminary recognition result. For the preliminary recognition result, the Kalman filter algorithm is used to process the data to remove noise interference. According to the filtered data, the current focus position is determined to generate an accurate recognition result. If the recognition result exceeds the preset threshold, the position data is re-acquired and secondary processing is performed. According to the secondary processing result, the final focus position is determined and the recognition accuracy data is updated.

[0066] For example, the acquisition of laser type information directly affects the accuracy of focus recognition. Taking fiber laser as an example, the wavelength is 1,070 nanometers, the power range is from 1 kW to 15 kW, and its focus is Gaussian distributed. The focus detection is completed by capturing diffuse reflected light through a photodetector. For carbon dioxide laser, the wavelength is 10,600 nanometers, the power range is from 100 watts to 6 kilowatts, and the focus shape is approximately circular. An infrared sensor is required for focus positioning. In the matching process of the focus recognition algorithm, a Gaussian fitting algorithm is used for fiber lasers to identify the focus position through the light intensity distribution characteristics. For example, in the process of laser cutting of steel plates, when the focus position deviates from the ideal position by 0.1 mm, the light intensity distribution curve becomes asymmetric, and the system immediately starts position compensation. For carbon dioxide lasers, the centroid method is used to determine the focus position by calculating the center of gravity of the energy distribution. The Kalman filter algorithm plays a key role in the processing of focus position data. Taking laser cutting of aluminum alloy plates as an example, when the cutting speed is six meters per minute, the focus position fluctuates periodically due to mechanical vibration, and the fluctuation amplitude is about 0.05 mm. By predicting the position at the next moment through Kalman filtering and correcting it with the measured data, the fluctuation can be reduced to within 0.02 mm. In determining the accurate recognition results, setting the threshold control is crucial. For example, when cutting stainless steel, the allowable deviation of the focus position is 0.03 mm. When the deviation exceeds the threshold, the system automatically triggers secondary sampling, and the sampling frequency is increased to 2,000 times per second. At the same time, the backup sensor is started for cross-verification. The reliability of the data after secondary processing is significantly improved, and the positioning accuracy is improved by about 40%.

[0067] In step S3, the offset between the current position and the machining plane reference is calculated to obtain the offset, and the offset is converted to obtain the adjustment value; it is determined whether the adjustment value reaches a preset threshold, and if so, the adjustment value is recorded as the compensation value.

[0068] In a specific embodiment, the specific implementation process includes: calculating the offset between the focus position and the processing plane reference according to the focus position information in the focus recognition result. Inputting the offset into a pre-established coordinate transformation matrix to obtain an adjustment value of the focus depth. According to the focus stability judgment condition, if the focus stability reaches a preset threshold, the adjustment value is determined as the final compensation value. If the focus stability does not reach the preset threshold, the focus recognition result is re-acquired and the above calculation process is repeated. The offset obtained by each calculation is converted into an adjustment value of the focus depth through the coordinate transformation matrix. Combining multiple focus stability judgment results, the final compensation value is determined.

[0069] In step S4, parameters are matched according to the characteristics of the material to be processed to obtain the focal depth and power; the focal depth and power are optimized according to the compensation value to obtain the optimized focal depth and optimized power.

[0070] In the above step S4, the parameters are matched according to the characteristics of the material to be processed to obtain the focal depth and power; the focal depth and power are optimized according to the compensation value to obtain the optimized focal depth and optimized power, and specifically the following steps are also included:

[0071] S41, compensating the focal depth and power according to the compensation value to obtain an initial depth and an initial power;

[0072] S42, determining whether the initial depth meets a preset depth threshold, if so, outputting the initial depth as the optimized focal depth, if not, re-matching the focal depth and compensating and then determining again until the optimized focal depth is obtained;

[0073] S43, judging whether the initial power meets the preset power threshold, if so, outputting the initial power as the optimized power, if not, re-matching the power and compensating and then judging again until the optimized power is obtained.

[0074] In a specific embodiment, according to the characteristics of the material, such as hardness, thermal conductivity, density, etc., the matching values ​​are carefully searched and obtained from the pre-set processing parameter set, and then the power value required for laser processing and the power distribution scheme in the processing area are determined. Considering the influencing factors such as equipment errors and environmental changes in actual processing, the initial distribution scheme is optimized by using the compensation value obtained through precise calculation, so as to generate an optimization scheme. The two key parameters of focal depth and power distribution are extracted from this optimization scheme, and they are compared with the preset thresholds; if the focal depth does not meet the threshold requirements, the focal depth is recalculated in combination with the pre-determined adjustment value; if the power distribution does not meet the threshold standard, the power value is redistributed to generate new distribution data; then, the recalculated focal depth and new power distribution data are fused and processed, and the coordination and mutual influence between the two are comprehensively considered, and finally a complete optimized focal depth and optimized power suitable for the current material processing are generated.

[0075] In step S5, the optimized focal depth and the optimized power are processed by a trajectory interpolation method to generate an initial path, and the initial path is optimized to obtain an optimized path.

[0076] In the above S5, the optimized focal depth and the optimized power are processed by a trajectory interpolation method to generate an initial path, and the initial path is optimized to obtain an optimized path, which specifically includes the following steps:

[0077] S51, using a trajectory interpolation method to generate a trajectory for the optimized focal depth and the optimized power to obtain an initial path;

[0078] S52, optimizing the smoothness and continuity of the initial path to obtain an optimized path.

[0079] In a specific embodiment, a trajectory interpolation method is used to process the optimized focal depth and the optimized power to generate an initial path; the trajectory interpolation method is to calculate a series of discrete points in the processing space according to certain algorithm rules based on the parameters determined by the optimized focal depth and the optimized power, and connect these discrete points in sequence to form an initial path. For example, common interpolation algorithms such as linear interpolation and circular interpolation can be used to determine the positions of each point according to the optimized parameters, so that the laser processing equipment can perform processing operations according to this initial path. For the generated initial path, it is necessary to focus on optimizing its smoothness and continuity to obtain an optimized path; the initial path has problems such as too abrupt turns and too large curvature changes, which will affect the quality and efficiency of processing. Therefore, a specific optimization algorithm, such as a spline curve fitting algorithm, will be used to refit the discrete points on the initial path to make the path smoother and reduce unnecessary turns and mutations; at the same time, it is ensured that the path has good continuity at each connection point to avoid breakpoints or jumps, so that the laser processing equipment can process more smoothly along the path, and finally obtain an optimized path that meets the processing requirements.

[0080] In step S6, the optimized focal depth, optimized power and the optimized path are sent to the laser control interface and the motion controller for correction, a correction instruction is obtained, fine-tuning is performed according to the instruction, and the correction position is output.

[0081] The above step S6, sending the optimized focal depth, optimized power and the optimized path to the laser control interface and the motion controller for correction, obtaining a correction instruction, performing fine adjustment according to the instruction, and outputting the correction position, specifically also includes the following steps:

[0082] S61, converting the optimized focal depth, optimized power and the optimized path in combination with pre-stored processing parameters to generate an initial control instruction;

[0083] Exemplarily, the optimization of the focal depth, power and path has been completed, and the optimized focal depth is -0.6 mm, the optimized power is 3500 watts in the starting stage, 4000 watts in the middle stable cutting stage, and 3200 watts in the ending stage. The optimized path is a high-precision trajectory planned according to the design pattern. At the same time, the pre-stored processing parameters include various characteristic data of stainless steel materials, such as thermal conductivity, melting point, etc., as well as recommended parameters for processing this type of stainless steel plate, such as the range of cutting speed at different stages, laser pulse frequency and other information. When generating the initial control instruction, firstly, based on the optimized focal depth of -0.6 mm, combined with the optical system parameters of the fiber laser and the refraction and absorption characteristics of the stainless steel material to the laser, the adjustment angle and position of the focusing lens are calculated to ensure that the laser beam can be accurately focused at -0.6 mm from the surface of the stainless steel plate. This part of information constitutes the instruction content for controlling the laser focusing system. For the different stages of power optimization, the matching relationship between cutting speed and power in the pre-stored processing parameters is combined. For example, in the initial stage, in order to avoid excessive ablation of the material surface due to energy concentration, the cutting speed is set to 800 mm per minute when the power is 3500 watts, and the laser pulse frequency and duty cycle are calculated based on this speed and power to ensure stable output of laser energy. In the middle stable cutting stage, the power is increased to 4000 watts, and the cutting speed is increased to 1000 mm per minute accordingly, and the laser pulse frequency and duty cycle are adjusted again. At the end of the stage, the power is reduced to 3200 watts, the cutting speed is adjusted to 900 mm per minute, and the corresponding laser pulse parameters are also calculated. These settings for laser power, cutting speed and pulse parameters together constitute the instruction part for controlling the energy output of the laser. For the optimized path, according to the shape and size information of its complex pattern, combined with the performance parameters of the motion controller, the path is decomposed into a series of tiny motion instructions. For example, for straight segments in the path, the movement direction, speed and acceleration of the motion axis are determined; for curved segments, a specific algorithm is used to calculate the displacement change of each motion axis in each small time period to ensure that the motion controller can accurately guide the laser head to move along the optimized path.

[0084] S62, sending the initial control instruction to the laser control interface and the motion controller for algorithm analysis to obtain a focus correction instruction and a power correction instruction;

[0085] The above step S62, sending the initial control instruction to the laser control interface and the motion controller for algorithm analysis to obtain the focus correction instruction and the power correction instruction, specifically also includes the following steps:

[0086] S621, sending the initial control instruction to the motion controller to obtain real-time focus depth data and real-time power distribution data;

[0087] S622, using a preset focus adjustment algorithm to perform deviation control on the real-time focus depth data to obtain a focus correction instruction;

[0088] S623, based on the power adjustment range of the laser, an adaptive power adjustment algorithm is used to perform error control on the real-time power distribution data to obtain a power correction instruction.

[0089] In a specific embodiment, in the above steps S621 to S623, the specific process includes: sending the initial control instruction to the motion controller. This motion controller is connected to the various moving parts of the processing equipment, and is also connected to the sensor system responsible for monitoring the focus depth and power distribution. After receiving the initial control instruction, the motion controller starts to drive the laser processing head to move according to the parameter settings in the instruction, and at the same time, obtains real-time focus depth data and real-time power distribution data through the sensor connected thereto. For example, during the drilling process, the sensor feedbacks that the real-time focus depth at this time is -0.4 mm (the ideal focus depth should be -0.5 mm according to the processing technology), and the real-time power distribution is 3800 watts in the center of the drilling area (the preset power should be 4000 watts at this stage). The preset focus adjustment algorithm is used to perform deviation control on the real-time focus depth data to obtain the focus correction instruction. The preset focus adjustment algorithm is designed based on the proportional-integral-differential (PID) control principle. According to the deviation between the real-time focus depth data -0.4 mm and the ideal focus depth -0.5 mm, the PID algorithm starts to calculate. Through the proportional link, the adjustment amount is output proportionally according to the size of the deviation; the integral link integrates the deviation to eliminate the steady-state error; the differential link gives an adjustment signal in advance according to the rate of change of the deviation. Combining the calculation results of these three links, a control amount for adjusting the focal position is obtained. Assuming that the calculated control amount is to fine-tune the focus downward by 0.05 mm, then this control signal constitutes a focus correction instruction, which will be sent to the focus adjustment device of the laser to accurately adjust the focus position to ensure that the focus is always in the best position during laser drilling, thereby ensuring the accuracy and quality of drilling.

[0090] S63, fusing the focus correction instruction and the power correction instruction to obtain a comprehensive control instruction;

[0091] S64, inputting the comprehensive control instruction into the motion controller to fine-tune and update the focus position to obtain the corrected position.

[0092] Exemplarily, for the process of steps S63 to S64, it is assumed that when a 3 mm thick aluminum alloy plate is laser welded, the focus correction instruction and the power correction instruction are obtained through preliminary calculations. The focus correction instruction requires the focus to be fine-tuned upward by 0.03 mm, and the power correction instruction requires the current power to be increased from 2800 watts to 3000 watts. In step S63, the system merges these two instructions to generate a comprehensive control instruction containing focus position adjustment and power change information. Entering step S64, the comprehensive control instruction is input into the motion controller, and the motion controller drives the relevant mechanism to fine-tune the focus position according to the requirements in the instruction, completes the upward adjustment of 0.03 mm, and updates the focus position information.

[0093] In step S7, determine whether the deviation value between the correction position and the preset optimal processing plane is within the preset threshold range. If so, complete the processing according to the correction position; if not, re-execute S3-S7 until the deviation value within the preset threshold range is obtained.

[0094] For example, in the laser engraving processing scenario of precision molds, fine patterns need to be engraved on the mold surface. The preset optimal processing plane is determined according to the mold design, and the preset threshold range is ±0.01 mm. After the focus position is fine-tuned to obtain the correction position, the deviation between the two is measured by a high-precision sensor. If the deviation value is +0.008 mm, it is within the threshold range, and the engraving process is performed according to the correction position. If the deviation value is +0.015 mm, which exceeds the threshold, the system re-executes steps S3-S7. First, recalculate the focus offset and compensation value, optimize the power distribution, plan a new trajectory, and then fine-tune the processing parameters and monitor the focus position until the deviation value falls within the range of ±0.01 mm before continuing to engrave to ensure the mold engraving accuracy.

[0095] In summary, the present invention discloses a method for dynamically adjusting the focus in laser flying processing, comprising step 1: acquiring a position data stream; step 2: obtaining an identification algorithm according to a pre-stored laser type matching, using the identification algorithm to identify the position data stream to obtain a preliminary result; filtering the preliminary result to obtain a current position; step 3: calculating the offset between the current position and the processing plane reference to obtain an offset, converting the offset to obtain an adjustment value; judging whether the adjustment value reaches a preset threshold, and if so, recording the adjustment value as a compensation value; step 4: performing parameter matching according to the characteristics of the material to be processed to obtain a focus depth and power; adjusting the focus depth and power according to the compensation value. Optimize to obtain the optimized focal depth and optimized power; Step 5: Use the trajectory interpolation method to process the optimized focal depth and the optimized power, generate an initial path, optimize the initial path, and obtain the optimized path; Step 6: Send the optimized focal depth, optimized power and the optimized path to the laser control interface and motion controller for correction, obtain the correction instruction, perform fine adjustment according to the instruction, and output the correction position; Step 7: Determine whether the deviation value between the correction position and the preset optimal processing plane is within the preset threshold range, if so, complete the processing according to the correction position; if not, re-execute steps 3-7 until the deviation value within the preset threshold range is obtained. The present invention obtains the laser focus position data in real time through a high-precision position sensor to solve the problem of the focus deviating from the optimal processing plane during laser processing, and combines the focus recognition algorithm and data filtering technology to improve the recognition accuracy. According to the focus offset, the present invention calculates the compensation value and optimizes the power distribution scheme to generate adjusted focus depth and power distribution data; at the same time, the trajectory interpolation method is used to plan a new laser movement trajectory to ensure the smoothness of the processing path; the present invention uses a high-speed galvanometer and feedback control algorithm to monitor the focus position in real time, and cooperates with the laser and motion controller to complete the dynamic adjustment of the focus. The present invention effectively solves the problem of unstable processing quality caused by focus offset in laser processing, and significantly improves processing accuracy and consistency.

[0096] Reference Figure 2 The second embodiment of the present invention provides a focus dynamic adjustment device in laser flying processing, comprising:

[0097] The data acquisition module 101 is used to acquire the position data stream;

[0098] The position identification module 102 is used to obtain an identification algorithm according to the pre-stored laser type matching, identify the position data stream using the identification algorithm, and obtain a preliminary result; filter the preliminary result to obtain the current position;

[0099] The compensation module 103 is used to calculate the offset between the current position and the processing plane reference, obtain the offset, convert the offset, and output an adjustment value; determine whether the adjustment value reaches a preset threshold, and if so, record the adjustment value as a compensation value;

[0100] The optimization module 104 is used to match parameters according to the characteristics of the material to be processed to obtain the focal depth and power; optimize the focal depth and power according to the compensation value to obtain the optimized focal depth and optimized power;

[0101] A path generation module 105 is used to process the optimized focal depth and the optimized power by using a trajectory interpolation method to generate an initial path, and to optimize the initial path to generate an optimized path;

[0102] The correction module 106 is used to send the optimized focal depth, optimized power and the optimized path to the laser control interface and the motion controller for correction, obtain a correction instruction, perform fine adjustment according to the instruction, and output a correction position;

[0103] The judgment output module 107 is used to judge whether the deviation value between the correction position and the preset optimal processing plane is within a preset threshold range. If so, the processing is completed according to the correction position; if not, the corresponding operations of the compensation module, the optimization module, the path generation module, the correction module and the judgment output module are re-executed until the deviation value within the preset threshold range is obtained.

[0104] It should be noted that the dynamic focus adjustment device in laser on-the-fly processing provided by an embodiment of the present invention is used to execute all the process steps of the dynamic focus adjustment method in laser on-the-fly processing of the above embodiment. The working principles and beneficial effects of the two correspond one to one, and thus will not be repeated here.

[0105] An embodiment of the present invention further provides an electronic device. The electronic device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as a focus dynamic adjustment program in laser on-the-fly processing. When the processor executes the computer program, the steps in the above-mentioned embodiments of the focus dynamic adjustment method in laser on-the-fly processing are implemented, such as Figure 1 Alternatively, when the processor executes the computer program, the functions of the modules / units in the above-mentioned device embodiments are realized, such as the data acquisition module.

[0106] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the electronic device.

[0107] The electronic device may be a computing device such as a desktop computer, a notebook, a PDA, and a smart tablet. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the above components are merely examples of electronic devices and do not constitute a limitation on the electronic device. The electronic device may include more or fewer components than the above components, or may combine certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.

[0108] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device.

[0109] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the electronic device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0110] Wherein, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased 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 electric carrier signals and telecommunication signals.

[0111] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0112] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for dynamic focus adjustment in laser on-the-fly processing, characterized in that: include: Step 1: Get the location data stream; Step 2: Obtain a recognition algorithm according to the pre-stored laser type matching, use the recognition algorithm to identify the position data stream to obtain a preliminary result; filter the preliminary result to obtain the current position; Step 3: Calculate the offset between the current position and the machining plane reference to obtain the offset, convert the offset to obtain the adjustment value; determine whether the adjustment value reaches a preset threshold, and if so, record the adjustment value as the compensation value; Step 4: matching parameters according to the characteristics of the material to be processed to obtain focal depth and power; optimizing the focal depth and power according to the compensation value to obtain optimized focal depth and optimized power; Step 5: Processing the optimized focal depth and the optimized power by using a trajectory interpolation method to generate an initial path, and optimizing the initial path to obtain an optimized path; Step 6: Send the optimized focal depth, optimized power and the optimized path to the laser control interface and the motion controller for correction, obtain a correction instruction, perform fine adjustment according to the correction instruction, and output the correction position; Step 7: Determine whether the deviation value between the correction position and the preset optimal processing plane is within the preset threshold range. If so, complete the processing according to the correction position; if not, re-execute steps 3-7 until the deviation value within the preset threshold range is obtained.

2. The method for dynamic focus adjustment in laser on-the-fly processing according to claim 1, characterized in that: The position data stream is collected by using a high-precision sensor and is obtained after processing deviations and correcting trajectories.

3. The method for dynamic focus adjustment in laser on-the-fly processing according to claim 1, characterized in that: The filtering of the preliminary result to obtain the current position includes: Using a Kalman filter algorithm to filter the preliminary result to obtain a preliminary position; It is determined whether the preliminary position is within a preset position threshold range. If so, the preliminary position is determined as the current position. If not, the preliminary position is re-filtered and then determined again until the current position is obtained.

4. The method for dynamic focus adjustment in laser on-the-fly processing according to claim 1, characterized in that: The step of optimizing the focal depth and the power according to the compensation value to obtain the optimized focal depth and the optimized power includes: Compensating the focal depth and power according to the compensation value to obtain an initial depth and an initial power; Determine whether the initial depth meets a preset depth threshold, if yes, output the initial depth as the optimized focal depth, if no, re-match the focal depth and compensate and then determine again until the optimized focal depth is obtained; It is determined whether the initial power meets the preset power threshold. If so, the initial power is output as the optimized power. If not, the power is re-matched and compensated and then determined again until the optimized power is obtained.

5. The method for dynamic focus adjustment in laser on-the-fly processing according to claim 1, characterized in that: The adopting of the trajectory interpolation method to process the optimized focal depth and the optimized power to generate an initial path, and optimizing the initial path to obtain an optimized path includes: Using a trajectory interpolation method to generate trajectories for the optimized focal depth and the optimized power to obtain an initial path; The smoothness and continuity of the initial path are optimized to obtain an optimized path.

6. The method for dynamic focus adjustment in laser on-the-fly processing according to claim 1, characterized in that: The optimized focal depth, optimized power and optimized path are sent to the laser control interface and the motion controller for correction, a correction instruction is obtained, fine-tuning is performed according to the correction instruction, and the correction position is output, including: Converting the optimized focal depth, the optimized power and the optimized path in combination with pre-stored processing parameters to generate an initial control instruction; The initial control instruction is sent to the laser control interface and the motion controller for algorithm analysis to obtain a focus correction instruction and a power correction instruction; The focus correction instruction and the power correction instruction are combined to obtain a comprehensive control instruction; The comprehensive control instruction is input into the motion controller to fine-tune and update the focus position to obtain the correction position.

7. The method for dynamic focus adjustment in laser on-the-fly processing according to claim 6, characterized in that: The initial control instruction is sent to the laser control interface and the motion controller for algorithm analysis to obtain a focus correction instruction and a power correction instruction, including: Sending the initial control instruction to the motion controller to obtain real-time focus depth data and real-time power distribution data; A preset focus adjustment algorithm is used to control the deviation of the real-time focus depth data to obtain a focus correction instruction; Based on the power adjustment range of the laser, an adaptive power adjustment algorithm is used to perform error control on the real-time power distribution data to obtain a power correction instruction.

8. A dynamic focus adjustment device in laser on-the-fly processing, characterized in that: include: A data acquisition module, used for acquiring a location data stream; A position identification module, used to obtain an identification algorithm according to a pre-stored laser type match, and use the identification algorithm to identify the position data stream to obtain a preliminary result; Filter the preliminary results to get the current position; A compensation module is used to calculate the offset between the current position and the processing plane reference, obtain the offset, convert the offset to obtain the adjustment value; determine whether the adjustment value reaches a preset threshold, and if so, record the adjustment value as the compensation value; An optimization module, used for matching parameters according to the characteristics of the material to be processed to obtain the focal depth and power; optimizing the focal depth and power according to the compensation value to obtain the optimized focal depth and optimized power; A path generation module, used for processing the optimized focal depth and the optimized power by using a trajectory interpolation method, generating an initial path, and optimizing the initial path to obtain an optimized path; A correction module, used to send the optimized focal depth, optimized power and the optimized path to the laser control interface and the motion controller for correction, obtain a correction instruction, perform fine adjustment according to the correction instruction, and output a correction position; The judgment output module is used to judge whether the deviation value between the correction position and the preset optimal processing plane is within a preset threshold range. If so, the processing is completed according to the correction position; if not, the corresponding operations of the compensation module, the optimization module, the path generation module, the correction module and the judgment output module are re-executed until the deviation value within the preset threshold range is obtained.

9. An electronic device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for dynamic focus adjustment in laser flying processing as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for dynamic focus adjustment in laser on-the-fly processing according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Dynamic focusing laser machining method and system for large-sized complex curved surface

    CN108555464A

  • Laser micro-hole processing method for dynamically adjusting multiple focuses

    CN109128530A