Laser focusing methods, systems, devices, computer devices, and storage media
By measuring the distance between the laser cutting position and the laser rangefinder in real time, calculating the vertical distance difference, and using a piezoelectric ceramic motor to adjust the laser focusing mirror, the problem of insufficient accuracy in traditional laser focusing methods is solved, achieving high precision and high efficiency in laser cutting.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN HAIXING INTELLIGENT MFG INFORMATION TECH CO LTD
- Filing Date
- 2023-07-14
- Publication Date
- 2026-06-05
AI Technical Summary
Traditional laser focusing methods cannot achieve real-time high-precision control, especially when the material surface is uneven or the structure is complex, and cannot guarantee the optimal focusing position of the laser beam on the material surface.
The distance between the cutting position and the laser rangefinder is measured in real time using a laser rangefinder. The vertical distance difference is calculated, and the laser focusing lens is adjusted to a focusing position that meets the preset cutting distance conditions using a piezoelectric ceramic motor. The movement of the laser focusing lens is controlled by the control voltage.
It enables rapid and accurate adjustment of the laser focusing lens, ensuring optimal focusing of the laser beam on the material surface and improving the precision and efficiency of laser cutting.
Smart Images

Figure CN116786997B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of laser cutting control technology, and in particular to a laser focusing method, system, device, computer equipment, storage medium, and computer program product. Background Technology
[0002] Laser cutting is a technology that uses a high-power-density laser beam to process materials. The key to laser cutting is ensuring that the laser beam is focused on the material surface to achieve the best cutting results.
[0003] However, in practical applications, many materials often have uneven, bumpy, or complex surface structures. Traditional focusing methods typically rely on pre-set focal lengths or mechanical adjustment devices, which cannot achieve real-time, high-precision focusing control. Summary of the Invention
[0004] Therefore, it is necessary to provide a laser focusing method, system, device, computer equipment, computer-readable storage medium, and computer program product to address the aforementioned technical problem of the inability to achieve high-precision laser focusing in real time.
[0005] In a first aspect, this application provides a laser focusing method. The method includes:
[0006] Determine the current cutting position of the material to be cut, which is being aligned with the laser focusing lens;
[0007] Obtain the measurement distance corresponding to the current cutting position and the measurement distance corresponding to the previous cutting position; the measurement distance is the distance between the cutting position on the material to be cut and the laser rangefinder;
[0008] Based on the measured distance corresponding to the current cutting position and the measured distance corresponding to the previous cutting position, the vertical distance difference between the current cutting position and the previous cutting position is obtained;
[0009] Based on the vertical distance difference, the laser focusing lens is adjusted to the focusing position corresponding to the current cutting position; the focusing position is a position that meets the preset cutting distance conditions.
[0010] In one embodiment, the vertical distance difference is obtained by subtracting the measured distance corresponding to the previous cutting position from the measured distance corresponding to the current cutting position;
[0011] The step of adjusting the laser focusing lens to the focusing position corresponding to the current cutting position based on the vertical distance difference includes:
[0012] The absolute value of the vertical distance difference is used as the adjustment displacement of the laser focusing lens;
[0013] Based on the relationship between the vertical distance difference and zero, the adjustment direction of the laser focusing lens is determined;
[0014] The position of the laser focusing lens after being moved by the adjustment displacement in the adjustment direction is taken as the focusing position corresponding to the current cutting position.
[0015] In one embodiment, determining the adjustment direction of the laser focusing lens based on the relationship between the vertical distance difference and zero includes:
[0016] If the vertical distance difference is greater than zero, then the adjustment direction of the laser focusing lens is determined to be downward.
[0017] If the vertical distance difference is less than zero, then the adjustment direction of the laser focusing lens is determined to be upward.
[0018] In one embodiment, adjusting the laser focusing lens to the focusing position corresponding to the current cutting position based on the vertical distance difference includes:
[0019] The control voltage is determined based on the vertical distance difference.
[0020] The control voltage is input to the piezoelectric ceramic motor, which then adjusts the laser focusing lens to the focusing position corresponding to the current cutting position.
[0021] In one embodiment, after determining the current cutting position of the material to be cut, which is aligned with the laser focusing lens, the method further includes:
[0022] If the current cutting position is the first cutting position of the material to be cut, obtain the measurement distance and initial height difference corresponding to the first cutting position; the initial height difference is the height difference between the laser focusing lens and the laser rangefinder at the start of cutting.
[0023] Based on the preset cutting distance condition, the measurement distance corresponding to the first cutting position, and the initial height difference, the laser focusing lens is adjusted to the focusing position corresponding to the current cutting position.
[0024] In one embodiment, adjusting the laser focusing lens to the focusing position corresponding to the current cutting position based on the preset cutting distance condition, the measured distance corresponding to the first cutting position, and the initial height difference includes:
[0025] Based on the preset cutting distance conditions and the measured distance corresponding to the first cutting position, the first adjustment amount of the laser focusing lens is determined;
[0026] Based on the initial height difference and the first adjustment amount, a second adjustment amount for the laser focusing lens is determined;
[0027] According to the second adjustment amount, the laser focusing lens is adjusted to the focusing position corresponding to the current cutting position.
[0028] Secondly, this application also provides a laser focusing system. The system includes a laser rangefinder, a laser focusing lens, and a control terminal, wherein...
[0029] The laser rangefinder is used to measure the distance between the current cutting position and the laser rangefinder before cutting to the current cutting position of the material to be cut, and to send the measured distance to the control terminal.
[0030] The control terminal is used to determine the vertical distance difference between two cutting positions based on the measurement distance corresponding to the current cutting position sent by the laser rangefinder and the measurement distance corresponding to the previous cutting position sent by the laser rangefinder; and to adjust the laser focusing lens to the focusing position corresponding to the current cutting position based on the vertical distance difference; the focusing position is a position that meets the preset cutting distance conditions.
[0031] The laser focusing lens is used to focus the laser at the current cutting position.
[0032] In one embodiment, the system further includes a piezoelectric ceramic motor;
[0033] The control terminal is also used to determine the control voltage based on the vertical distance difference; and input the control voltage to the piezoelectric ceramic motor.
[0034] The piezoelectric ceramic motor is used to adjust the laser focusing lens to the focusing position corresponding to the current cutting position based on the control voltage input by the control terminal.
[0035] Thirdly, this application also provides a laser focusing device. The device includes:
[0036] The cutting position determination module is used to determine the current cutting position of the material to be cut, which is aligned with the laser focusing lens;
[0037] The distance measurement determination module is used to obtain the measurement distance corresponding to the current cutting position and the measurement distance corresponding to the previous cutting position; the measurement distance is the distance between the cutting position on the material to be cut and the laser rangefinder;
[0038] The distance difference determination module is used to obtain the vertical distance difference between the current cutting position and the previous cutting position based on the measured distance corresponding to the current cutting position and the measured distance corresponding to the previous cutting position.
[0039] The focusing position adjustment module is used to adjust the laser focusing lens to the focusing position corresponding to the current cutting position according to the vertical distance difference; the focusing position is a position that meets the preset cutting distance conditions.
[0040] Fourthly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0041] Determine the current cutting position of the material to be cut, which is being aligned with the laser focusing lens;
[0042] Obtain the measurement distance corresponding to the current cutting position and the measurement distance corresponding to the previous cutting position; the measurement distance is the distance between the cutting position on the material to be cut and the laser rangefinder;
[0043] Based on the measured distance corresponding to the current cutting position and the measured distance corresponding to the previous cutting position, the vertical distance difference between the current cutting position and the previous cutting position is obtained;
[0044] Based on the vertical distance difference, the laser focusing lens is adjusted to the focusing position corresponding to the current cutting position; the focusing position is a position that meets the preset cutting distance conditions.
[0045] Fifthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0046] Determine the current cutting position of the material to be cut, which is being aligned with the laser focusing lens;
[0047] Obtain the measurement distance corresponding to the current cutting position and the measurement distance corresponding to the previous cutting position; the measurement distance is the distance between the cutting position on the material to be cut and the laser rangefinder;
[0048] Based on the measured distance corresponding to the current cutting position and the measured distance corresponding to the previous cutting position, the vertical distance difference between the current cutting position and the previous cutting position is obtained;
[0049] Based on the vertical distance difference, the laser focusing lens is adjusted to the focusing position corresponding to the current cutting position; the focusing position is a position that meets the preset cutting distance conditions.
[0050] Sixthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0051] Determine the current cutting position of the material to be cut, which is being aligned with the laser focusing lens;
[0052] Obtain the measurement distance corresponding to the current cutting position and the measurement distance corresponding to the previous cutting position; the measurement distance is the distance between the cutting position on the material to be cut and the laser rangefinder;
[0053] Based on the measured distance corresponding to the current cutting position and the measured distance corresponding to the previous cutting position, the vertical distance difference between the current cutting position and the previous cutting position is obtained;
[0054] Based on the vertical distance difference, the laser focusing lens is adjusted to the focusing position corresponding to the current cutting position; the focusing position is a position that meets the preset cutting distance conditions.
[0055] The aforementioned laser focusing method, system, device, computer equipment, storage medium, and computer program product first determine the current cutting position of the material to be cut, which is aligned with the laser focusing lens. Then, it acquires the measurement distance corresponding to the current cutting position and the measurement distance corresponding to the previous cutting position. The measurement distance is the distance between the cutting position on the material to be cut and the laser rangefinder, allowing for real-time detection of the height of the cutting position in the material. Next, based on the measurement distances corresponding to the current and previous cutting positions, the vertical distance difference between the current and previous cutting positions is obtained. The change in these distances reflects the fluctuations between the cutting positions in the material. Finally, based on the vertical distance difference, the laser focusing lens is adjusted to the focusing position corresponding to the current cutting position. The focusing position is a position that meets the preset cutting distance conditions. Using the vertical distance difference as a reference, the laser focusing lens can be quickly adjusted to the focusing position. This method uses a laser rangefinder to measure the distance at each cutting position in real time to determine the fluctuations between cutting positions, and then adjusts the laser focusing lens based on the vertical distance difference reflecting these fluctuations. The calculation is simple and accurate, achieving accurate and rapid focusing adjustment of the laser focusing lens. Attached Figure Description
[0056] Figure 1 This is a diagram illustrating the application environment of the laser focusing method in one embodiment;
[0057] Figure 2 This is a flowchart illustrating a laser focusing method in one embodiment;
[0058] Figure 3 This is a schematic diagram illustrating the focusing position adjustment of the laser focusing lens in one embodiment;
[0059] Figure 4 This is a schematic diagram of the complete process of the laser focusing method in another embodiment;
[0060] Figure 5 This is a structural block diagram of a laser focusing system in one embodiment;
[0061] Figure 6 This is an example diagram of a laser focusing system in one embodiment;
[0062] Figure 7 This is a structural block diagram of a laser focusing device in one embodiment;
[0063] Figure 8 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0064] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0065] The laser focusing method provided in this application embodiment can be applied to, for example... Figure 1In the application environment shown, the laser focusing control terminal 102 is communicatively connected to the laser rangefinder 104 and the laser focusing lens 106. A data storage device can store the data that the laser focusing control terminal 102 needs to process. The data storage system can be integrated into the laser focusing control terminal 102 or placed in the cloud or on another network server. After determining the current cutting position of the material to be cut, aligned with the laser focusing lens 106, the laser focusing control terminal 102 retrieves the measurement distance corresponding to the current cutting position and the measurement distance corresponding to the previous cutting position sent by the laser rangefinder 104 from the data storage device. Based on these measurements, the laser focusing control terminal 102 calculates the vertical distance difference between the current cutting position and the previous cutting position. Then, based on this vertical distance difference, the laser focusing control terminal 102 adjusts the laser focusing lens 106 to the focusing position corresponding to the current cutting position. The laser focusing control terminal 102 can be, but is not limited to, various personal computers and laptops, or it can be a dedicated modular unit with a microcomputer or microprocessor as its core to complete the control logic and control algorithm.
[0066] In one embodiment, such as Figure 2 As shown, a laser focusing method is provided, which is applied to... Figure 1 Taking the laser focusing control terminal 102 as an example, the following steps are included:
[0067] Step S201: Determine the current cutting position of the material to be cut, which is being aligned with the laser focusing lens.
[0068] For example, the laser focusing control terminal 102 can determine the current position of the laser focusing lens 106 by determining the current position of the laser focusing lens 106 based on the position encoder, thereby determining the current cutting position that the laser focusing lens 106 is aligned with.
[0069] Step S202: Obtain the measurement distance corresponding to the current cutting position and the measurement distance corresponding to the previous cutting position; the measurement distance is the distance between the cutting position on the material to be cut and the laser rangefinder.
[0070] For example, after the laser focusing control terminal 102 determines the current cutting position, it can query the measurement distance corresponding to the current cutting position based on the pre-established mapping relationship between cutting positions and measurement distances in the data memory. Simultaneously, based on the current cutting position, it determines the previous cutting position and queries the measurement distance corresponding to the previous cutting position. Further, when the laser rangefinder 104 measures the measurement distance corresponding to each cutting position and sends it to the laser focusing control terminal 102, the laser focusing control terminal 102 can determine the current cutting position moved by the laser rangefinder 104 through the position encoder, and establish a mapping relationship between the current cutting position moved by the laser rangefinder 104 and the received measurement distance, storing this relationship in the data memory.
[0071] Step S203: Based on the measured distance corresponding to the current cutting position and the measured distance corresponding to the previous cutting position, obtain the vertical distance difference between the current cutting position and the previous cutting position.
[0072] For example, such as Figure 3 As shown, the laser focusing control terminal 102 can calculate the fluctuation change of the material to be cut between the two positions, i.e., the vertical distance difference, based on the measurement distance corresponding to the current cutting position and the measurement distance corresponding to the previous cutting position.
[0073] Step S204: Adjust the laser focusing lens to the focusing position corresponding to the current cutting position according to the vertical distance difference; the focusing position is a position that meets the preset cutting distance conditions.
[0074] For example, when laser cutting is performed on the previous cutting position, the laser focusing lens 106 is necessarily at the corresponding focusing position. Therefore, it is only necessary to determine the height adjustment amount required for the laser focusing lens 106 to be adjusted from the focusing position corresponding to the previous position to the focusing position corresponding to the current cutting position, so that the laser focusing lens 106 can be adjusted to the focusing position corresponding to the current cutting position. Figure 3 As shown, since the cutting distance corresponding to each cutting position is the same, the height adjustment amount required for the laser focusing lens 106 to be adjusted from the focusing position corresponding to the previous position to the focusing position corresponding to the current cutting position can be determined based on the vertical distance difference. Adjusting the laser focusing lens 106 according to the height adjustment amount can ensure that the laser focusing lens 106 and the current cutting position still maintain the same cutting distance.
[0075] In the aforementioned laser focusing method, the current cutting position of the material to be cut, aligned with the laser focusing lens, is first determined. Then, the measurement distance corresponding to the current cutting position and the measurement distance corresponding to the previous cutting position are obtained. The measurement distance is the distance between the cutting position on the material to be cut and the laser rangefinder, allowing for real-time detection of the height of the cutting position in the material. Next, based on the measurement distances corresponding to the current and previous cutting positions, the vertical distance difference between the current and previous cutting positions is obtained. The change in these distances reflects the fluctuations between the cutting positions in the material. Finally, based on the vertical distance difference, the laser focusing lens is adjusted to the focusing position corresponding to the current cutting position. The focusing position is a position that meets the preset cutting distance conditions. Using the vertical distance difference as a reference, the laser focusing lens can be quickly adjusted to the focusing position. This method uses a laser rangefinder to measure the distance at each cutting position in real time to determine the fluctuations between cutting positions, and then adjusts the laser focusing lens based on the vertical distance difference reflecting these fluctuations. The calculation is simple and accurate, achieving accurate and rapid focusing adjustment of the laser focusing lens.
[0076] In one embodiment, the vertical distance difference is obtained by subtracting the measured distance corresponding to the previous cutting position from the measured distance corresponding to the current cutting position. Step S204, which adjusts the laser focusing lens to the focusing position corresponding to the current cutting position based on the vertical distance difference, further includes: using the absolute value of the vertical distance difference as the adjustment displacement of the laser focusing lens; determining the adjustment direction of the laser focusing lens based on the relationship between the vertical distance difference and zero; and using the position of the laser focusing lens after moving the adjustment displacement in the adjustment direction as the focusing position corresponding to the current cutting position.
[0077] Furthermore, in one embodiment, the method of determining the adjustment direction of the laser focusing lens based on the relationship between the vertical distance difference and zero further includes: if the vertical distance difference is greater than zero, then the adjustment direction of the laser focusing lens is determined to be downward; if the vertical distance difference is less than zero, then the adjustment direction of the laser focusing lens is determined to be upward.
[0078] For example, the vertical distance difference is obtained by subtracting the measured distance of the previous cutting position from the measured distance of the current cutting position. If the measured distance of the current cutting position is greater than the measured distance of the previous cutting position, the vertical distance difference is greater than zero, meaning the current cutting position is lower than the previous cutting position. Accordingly, the laser focusing lens needs to be adjusted downwards to maintain the cutting distance with the current cutting position. Figure 3As shown, if the measured distance corresponding to the current cutting position is less than the measured distance corresponding to the previous cutting position, the vertical distance difference is less than zero. This means the current cutting position is higher than the previous one, and the laser focusing lens needs to be adjusted upwards to maintain the cutting distance. Simultaneously, the adjustment displacement of the laser focusing lens is the absolute value of the vertical distance difference. Once the adjustment displacement and direction of the laser focusing lens are determined, it can be adjusted to the accurate focusing position. Furthermore, after receiving the latest measured distance corresponding to the cutting position from the laser rangefinder, the laser focusing control terminal can directly calculate the corresponding vertical distance difference, establish a mapping relationship between the vertical distance difference and the corresponding cutting position, and store it in the data memory. This allows the laser focusing control terminal to directly query and retrieve the vertical distance difference when the laser focusing lens reaches the corresponding cutting position, thereby reducing real-time calculation time.
[0079] In the above embodiments, the adjustment displacement and adjustment direction of the laser focusing lens are determined by the absolute value of the vertical distance difference and the relationship between the vertical distance difference and zero. Based on the adjustment displacement and adjustment direction, the laser focusing lens can be adjusted to the focusing position corresponding to the current cutting position in real time to meet the laser cutting requirements of the material to be cut.
[0080] In one embodiment, step S204, which adjusts the laser focusing lens to the focusing position corresponding to the current cutting position based on the vertical distance difference, further includes: determining a control voltage based on the vertical distance difference; inputting the control voltage into a piezoelectric ceramic motor, and adjusting the laser focusing lens to the focusing position corresponding to the current cutting position through the piezoelectric ceramic motor.
[0081] Among them, the piezoelectric ceramic motor is a device that converts electrical energy into mechanical motion using the piezoelectric effect. Piezoelectric ceramic motors have the advantages of high-precision control, high response speed, and compact structure.
[0082] For example, typically, there is a linear relationship between the displacement of the piezoelectric ceramic motor and the control voltage, and a one-to-one correspondence between the displacement and the control voltage. After determining the vertical distance difference, which is equivalent to determining the adjustment displacement of the laser focusing lens, the control voltage input to the piezoelectric ceramic motor can be determined based on the linear relationship between the displacement and the control voltage. The piezoelectric ceramic motor generates a corresponding displacement based on the input control voltage, thereby driving the laser focusing lens to adjust its displacement. More specifically, if the control voltage corresponding to the previous cutting position is V0, the corresponding adjustment voltage is determined to be ΔV based on the adjustment displacement. If the laser focusing lens needs to be adjusted downwards, the piezoelectric ceramic motor needs to increase its displacement, so the control voltage corresponding to the current cutting position is V1 = V0 + ΔV. If the laser focusing lens needs to be adjusted upwards, the piezoelectric ceramic motor needs to decrease its displacement, so the control voltage corresponding to the current cutting position is V1 = V0 - ΔV.
[0083] In this embodiment, the piezoelectric ceramic motor is controlled by controlling the voltage to adjust the displacement of the laser focusing lens, thereby achieving a high-accuracy and high-response-speed laser focusing control effect.
[0084] In one embodiment, after determining the current cutting position of the material to be cut aligned with the laser focusing lens in step S201, the method further includes: if the current cutting position is the first cutting position of the material to be cut, obtaining the measurement distance and initial height difference corresponding to the first cutting position; the initial height difference is the height difference between the laser focusing lens and the laser rangefinder at the start of cutting; and adjusting the laser focusing lens to the focusing position corresponding to the current cutting position according to the preset cutting distance conditions, the measurement distance and initial height difference corresponding to the first cutting position.
[0085] Furthermore, in one embodiment, the above-mentioned adjustment of the laser focusing lens to the focusing position corresponding to the current cutting position based on the preset cutting distance condition, the measured distance corresponding to the first cutting position, and the initial height difference further includes: determining a first adjustment amount of the laser focusing lens based on the preset cutting distance condition and the measured distance corresponding to the first cutting position; determining a second adjustment amount of the laser focusing lens based on the initial height difference and the first adjustment amount; and adjusting the laser focusing lens to the focusing position corresponding to the current cutting position based on the second adjustment amount.
[0086] For example, at the start of laser cutting, the laser focusing lens and the laser rangefinder may not be at the same horizontal height, so the initial height difference needs to be known, which can be determined by user input. Based on the preset cutting distance conditions and the measurement distance corresponding to the first cutting position, the height difference between the laser rangefinder and the focusing position corresponding to the first cutting position can be determined, i.e., the first adjustment amount; then, based on the initial height difference between the laser focusing lens and the laser rangefinder, using the laser rangefinder as a reference, the second adjustment amount required for the laser focusing lens to adjust to the focusing position corresponding to the first cutting position after cutting begins can be determined.
[0087] In this embodiment, the adjustment amount of the laser focusing lens is determined by the initial height difference, the preset cutting distance condition, and the measurement distance corresponding to the first cutting position, so as to adjust the laser focusing lens to the focusing position corresponding to the first cutting position. At the same time, when the laser focusing lens is aligned with the first cutting position, it meets the preset cutting distance condition. Therefore, when the laser focusing lens is adjusted to the focusing position corresponding to other subsequent cutting positions, laser focusing can be completed quickly and accurately based on the above laser focusing method.
[0088] In another embodiment, such as Figure 4 As shown, a laser focusing method is provided, including the following steps:
[0089] Step S401: Determine the current cutting position of the material to be cut, which is being aligned with the laser focusing lens;
[0090] Step S402: If the current cutting position is the first cutting position of the material to be cut, obtain the measurement distance and initial height difference corresponding to the first cutting position;
[0091] Step S403: Determine the first adjustment amount of the laser focusing lens based on the preset cutting distance conditions and the measurement distance corresponding to the first cutting position;
[0092] Step S404: Determine the second adjustment amount of the laser focusing lens based on the initial height difference and the first adjustment amount;
[0093] Step S405: Adjust the laser focusing lens to the focusing position corresponding to the current cutting position according to the second adjustment amount;
[0094] Step S406: If the current cutting position is another cutting position of the material to be cut, obtain the measurement distance corresponding to the current cutting position and the measurement distance corresponding to the previous cutting position.
[0095] Step S407: Based on the measured distance corresponding to the current cutting position and the measured distance corresponding to the previous cutting position, obtain the vertical distance difference between the current cutting position and the previous cutting position;
[0096] Step S408: The absolute value of the vertical distance difference is used as the adjustment displacement of the laser focusing lens;
[0097] Step S409: If the vertical distance difference is greater than zero, the adjustment direction of the laser focusing lens is determined to be downward; if the vertical distance difference is less than zero, the adjustment direction of the laser focusing lens is determined to be upward.
[0098] Step S410: Determine the control voltage based on the adjustment displacement and adjustment direction;
[0099] Step S411: Input the control voltage into the piezoelectric ceramic motor, and use the piezoelectric ceramic motor to adjust the laser focusing lens to the focusing position corresponding to the current cutting position.
[0100] Wherein, the measurement distance is the distance between the cutting position on the material to be cut and the laser rangefinder; the focusing position is the position that meets the preset cutting distance conditions; the vertical distance difference is obtained by subtracting the measurement distance corresponding to the previous cutting position from the measurement distance corresponding to the current cutting position;
[0101] For example, the current cutting position of the material to be cut, aligned with the laser focusing lens, is determined. If the current cutting position is the first cutting position, the adjustment displacement of the laser focusing lens to the first cutting position is determined by the initial height difference, the preset cutting distance condition, and the measurement distance corresponding to the first cutting position. Based on the properties of the piezoelectric ceramic motor, the focusing position corresponding to each cutting position is below the initial position of the laser focusing lens, which simplifies the calculation of the control voltage. The laser focusing lens is adjusted to the focusing position corresponding to the first cutting position according to the adjustment displacement and the downward adjustment direction. If the current cutting position is another cutting position, the vertical distance difference between the current cutting position and the previous cutting position is obtained by the measurement distance corresponding to the current cutting position and the measurement distance corresponding to the previous cutting position. The adjustment displacement and adjustment direction are determined by the vertical distance difference. The laser focusing lens is adjusted to the focusing position corresponding to the current cutting position according to the adjustment displacement and adjustment direction. When adjusting the laser focusing lens to the focusing position, the control voltage needs to be determined based on the adjustment displacement and adjustment direction. The control voltage is then input to the piezoelectric ceramic motor to cause the piezoelectric ceramic motor to generate displacement, thereby driving the laser focusing lens to adjust to the focusing position.
[0102] In this embodiment, the measurement distance of each cutting position is measured in real time by a laser rangefinder to determine the fluctuations between the cutting positions. Then, the control voltage is adjusted according to the vertical distance difference reflecting the fluctuations. The control voltage controls the displacement of the piezoelectric ceramic motor, so that the piezoelectric ceramic motor drives the laser focusing lens to adjust to the focusing position. The calculation process is simple and fast, and accurate and fast focusing adjustment of the laser focusing lens is achieved.
[0103] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0104] In one embodiment, such as Figure 5 As shown, a laser focusing system is provided, including a laser rangefinder 501, a control terminal 502, and a laser focusing lens 503, wherein,
[0105] The laser rangefinder 501 is used to measure the distance between the current cutting position and the laser rangefinder 501 before cutting to the current cutting position of the material to be cut, and to send the measured distance to the control terminal 502.
[0106] The control terminal 502 is used to determine the vertical distance difference between two cutting positions based on the measurement distance corresponding to the current cutting position sent by the laser rangefinder 501 and the measurement distance corresponding to the previous cutting position sent by the laser rangefinder 501; and to adjust the laser focusing lens 503 to the focusing position corresponding to the current cutting position based on the vertical distance difference; the focusing position is a position that meets the preset cutting distance conditions.
[0107] Laser focusing lens 503 is used to focus the laser at the current cutting position.
[0108] In one embodiment, the laser focusing system further includes a piezoelectric ceramic motor;
[0109] The aforementioned control terminal 502 is also used to determine the control voltage based on the vertical distance difference; and input the control voltage to the piezoelectric ceramic motor;
[0110] The aforementioned piezoelectric ceramic motor is used to adjust the laser focusing lens 503 to the focusing position corresponding to the current cutting position based on the control voltage input from the control terminal.
[0111] To facilitate understanding of the embodiments of this application by those skilled in the art, the following will be described in conjunction with the appendix. Figure 6The specific examples illustrate this application; in this example, the laser focusing system includes a control unit (i.e., control terminal 502), a primary positioning unit, and a fine positioning unit.
[0112] The initial positioning unit includes a servo motor, a coupling, a lead screw, and two guide rails; the fine positioning unit includes a piezoelectric ceramic motor, a laser focusing lens, a laser rangefinder, and a laser rangefinder mounting bracket; the initial positioning unit drives the fine positioning unit to move on the guide rails via the lead screw; the piezoelectric ceramic motor drives the laser focusing lens to move; and the control unit is communicatively connected to the laser rangefinder and the laser focusing lens, respectively.
[0113] Before cutting begins, the user moves the precision positioning unit to the initial position using a servo motor; however, the servo motor cannot complete the movement that meets the higher precision requirements, so the control unit and the precision positioning unit need to work together to complete the laser focusing during the laser cutting process.
[0114] In this embodiment, the cooperation between the control unit and the precision positioning unit enables high-precision and high-response-speed laser focusing during the laser cutting process.
[0115] Based on the same inventive concept, this application also provides a laser focusing device for implementing the laser focusing method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more laser focusing device embodiments provided below can be found in the limitations of the laser focusing method described above, and will not be repeated here.
[0116] In one embodiment, such as Figure 7 As shown, a laser focusing device is provided, including: a cutting position determination module 701, a measurement distance determination module 702, a distance difference determination module 703, and a focusing position adjustment module 704, wherein:
[0117] The cutting position determination module 701 is used to determine the current cutting position of the material to be cut, which is aligned with the laser focusing lens;
[0118] The distance measurement determination module 702 is used to obtain the measurement distance corresponding to the current cutting position and the measurement distance corresponding to the previous cutting position; the measurement distance is the distance between the cutting position on the material to be cut and the laser rangefinder;
[0119] The distance difference determination module 703 is used to obtain the vertical distance difference between the current cutting position and the previous cutting position based on the measured distance corresponding to the current cutting position and the measured distance corresponding to the previous cutting position.
[0120] The focusing position adjustment module 704 is used to adjust the laser focusing lens to the focusing position corresponding to the current cutting position according to the vertical distance difference; the focusing position is a position that meets the preset cutting distance conditions.
[0121] In one embodiment, the vertical distance difference is obtained by subtracting the measured distance corresponding to the previous cutting position from the measured distance corresponding to the current cutting position; the aforementioned focus position adjustment module 704 is further used to use the absolute value of the vertical distance difference as the adjustment displacement of the laser focusing lens; to determine the adjustment direction of the laser focusing lens based on the relationship between the vertical distance difference and zero; and to use the position of the laser focusing lens after moving the adjustment displacement in the adjustment direction as the focus position corresponding to the current cutting position.
[0122] In one embodiment, the aforementioned focus position adjustment module 704 is further configured to determine that the adjustment direction of the laser focusing lens is downward if the vertical distance difference is greater than zero, and to determine that the adjustment direction of the laser focusing lens is upward if the vertical distance difference is less than zero.
[0123] In one embodiment, the aforementioned focus position adjustment module 704 is further configured to determine the control voltage based on the vertical distance difference; input the control voltage to the piezoelectric ceramic motor, and adjust the laser focusing lens to the focus position corresponding to the current cutting position through the piezoelectric ceramic motor.
[0124] In one embodiment, the laser focusing device further includes an initial focusing position adjustment module, which is used to obtain the measurement distance and initial height difference corresponding to the first cutting position when the current cutting position is the first cutting position of the material to be cut; the initial height difference is the height difference between the laser focusing lens and the laser rangefinder at the start of cutting; and adjust the laser focusing lens to the focusing position corresponding to the current cutting position according to the preset cutting distance conditions, the measurement distance and initial height difference corresponding to the first cutting position.
[0125] In one embodiment, the aforementioned initial focus position adjustment module is further configured to determine a first adjustment amount of the laser focusing lens based on a preset cutting distance condition and a measurement distance corresponding to the first cutting position; determine a second adjustment amount of the laser focusing lens based on the initial height difference and the first adjustment amount; and adjust the laser focusing lens to the focus position corresponding to the current cutting position based on the second adjustment amount.
[0126] Each module in the aforementioned laser focusing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0127] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a laser focusing method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0128] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0129] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0130] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0131] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0132] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0133] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0134] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0135] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A laser focusing method, characterized in that, The method includes: Determine the current cutting position of the material to be cut, which is being aligned with the laser focusing lens; Obtain the measurement distance corresponding to the current cutting position and the measurement distance corresponding to the previous cutting position; the measurement distance is the distance between the cutting position on the material to be cut and the laser rangefinder; Based on the measured distance corresponding to the current cutting position and the measured distance corresponding to the previous cutting position, the vertical distance difference between the current cutting position and the previous cutting position is obtained; Based on the vertical distance difference, the laser focusing lens is adjusted to the focusing position corresponding to the current cutting position; the focusing position is a position that meets the preset cutting distance conditions. The vertical distance difference is obtained by subtracting the measurement distance corresponding to the previous cutting position from the measurement distance corresponding to the current cutting position; The step of adjusting the laser focusing lens to the focusing position corresponding to the current cutting position based on the vertical distance difference includes: The absolute value of the vertical distance difference is used as the adjustment displacement of the laser focusing lens; Based on the relationship between the vertical distance difference and zero, the adjustment direction of the laser focusing lens is determined; The position of the laser focusing lens after being moved by the adjustment displacement in the adjustment direction is taken as the focusing position corresponding to the current cutting position; After determining the current cutting position of the material to be cut, which is aligned with the laser focusing lens, the method further includes: If the current cutting position is the first cutting position of the material to be cut, obtain the measurement distance and initial height difference corresponding to the first cutting position; the initial height difference is the height difference between the laser focusing lens and the laser rangefinder at the start of cutting. Based on the preset cutting distance condition, the measurement distance corresponding to the first cutting position, and the initial height difference, the laser focusing lens is adjusted to the focusing position corresponding to the current cutting position.
2. The method according to claim 1, characterized in that, The step of adjusting the laser focusing lens to the focusing position corresponding to the current cutting position based on the vertical distance difference includes: The control voltage is determined based on the vertical distance difference. The control voltage is input to the piezoelectric ceramic motor, which then adjusts the laser focusing lens to the focusing position corresponding to the current cutting position.
3. The method according to claim 1, characterized in that, The step of adjusting the laser focusing lens to the focusing position corresponding to the current cutting position based on the preset cutting distance condition, the measured distance corresponding to the first cutting position, and the initial height difference includes: Based on the preset cutting distance conditions and the measured distance corresponding to the first cutting position, the first adjustment amount of the laser focusing lens is determined; Based on the initial height difference and the first adjustment amount, a second adjustment amount for the laser focusing lens is determined; According to the second adjustment amount, the laser focusing lens is adjusted to the focusing position corresponding to the current cutting position.
4. A laser focusing system, characterized in that, The system includes a laser rangefinder, a laser focusing lens, and a control terminal, wherein... The laser rangefinder is used to measure the distance between the current cutting position and the laser rangefinder before cutting to the current cutting position of the material to be cut, and to send the measured distance to the control terminal. The control terminal is used to determine the vertical distance difference between two cutting positions based on the measurement distance corresponding to the current cutting position sent by the laser rangefinder and the measurement distance corresponding to the previous cutting position sent by the laser rangefinder; and to adjust the laser focusing lens to the focusing position corresponding to the current cutting position based on the vertical distance difference; the focusing position is a position that meets the preset cutting distance conditions. The laser focusing lens is used to focus the laser at the current cutting position; The vertical distance difference is obtained by subtracting the measured distance corresponding to the previous cutting position from the measured distance corresponding to the current cutting position. The step of adjusting the laser focusing lens to the focusing position corresponding to the current cutting position based on the vertical distance difference includes: taking the absolute value of the vertical distance difference as the adjustment displacement of the laser focusing lens; determining the adjustment direction of the laser focusing lens based on the relationship between the vertical distance difference and zero; and taking the position of the laser focusing lens after moving the adjustment displacement in the adjustment direction as the focusing position corresponding to the current cutting position. After determining the current cutting position of the material to be cut, which is aligned with the laser focusing lens, the method further includes: If the current cutting position is the first cutting position of the material to be cut, obtain the measurement distance and initial height difference corresponding to the first cutting position; the initial height difference is the height difference between the laser focusing lens and the laser rangefinder at the start of cutting. Based on the preset cutting distance condition, the measurement distance corresponding to the first cutting position, and the initial height difference, the laser focusing lens is adjusted to the focusing position corresponding to the current cutting position.
5. A laser focusing device, characterized in that, The device includes: The cutting position determination module is used to determine the current cutting position of the material to be cut, which is aligned with the laser focusing lens; The distance measurement determination module is used to obtain the measurement distance corresponding to the current cutting position and the measurement distance corresponding to the previous cutting position; the measurement distance is the distance between the cutting position on the material to be cut and the laser rangefinder; The distance difference determination module is used to obtain the vertical distance difference between the current cutting position and the previous cutting position based on the measured distance corresponding to the current cutting position and the measured distance corresponding to the previous cutting position. The focusing position adjustment module is used to adjust the laser focusing lens to the focusing position corresponding to the current cutting position according to the vertical distance difference; the focusing position is a position that meets the preset cutting distance conditions; The vertical distance difference is obtained by subtracting the measurement distance corresponding to the previous cutting position from the measurement distance corresponding to the current cutting position; The focusing position adjustment module is further configured to: take the absolute value of the vertical distance difference as the adjustment displacement of the laser focusing lens; determine the adjustment direction of the laser focusing lens based on the relationship between the vertical distance difference and zero; and take the position of the laser focusing lens after moving the adjustment displacement in the adjustment direction as the focusing position corresponding to the current cutting position. The initial focus position adjustment module is used to: if the current cutting position is the first cutting position of the material to be cut, obtain the measurement distance and initial height difference corresponding to the first cutting position; the initial height difference is the height difference between the laser focusing lens and the laser rangefinder at the start of cutting; and adjust the laser focusing lens to the focus position corresponding to the current cutting position according to the preset cutting distance condition, the measurement distance corresponding to the first cutting position and the initial height difference.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 3.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 3.
8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 3.