Method for determining laser cutting power, control system, device and storage medium
By using a modified Akima spline curve method, a functional relationship between the cutting speed of a laser cutting machine and the output power of the laser was generated, which solved the overburning problem at corners in laser cutting, achieved smooth adjustment of laser power, and improved processing quality.
Patent Information
- Application Number
- CN202310098664.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-10
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2043-02-10
AI Technical Summary
In existing laser cutting technology, excessive ablation of laser power at corners can lead to a decrease in processing quality, and the non-smoothness of existing power curves causes abrupt changes in laser power.
A method based on modified Akima spline curves is adopted. By obtaining pre-set power curve parameters, the modified Akima spline interpolation is used to generate a functional relationship between the cutting speed of the laser cutting machine and the output power of the laser, thereby achieving smooth adjustment of the laser power.
It achieves first-order continuity of laser output power, avoids overburning at corners, and improves the processing quality and performance of laser cutting.
Smart Images

Figure CN116184933B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of program control, and particularly relates to a laser cutting power determination method based on a modified Akima spline curve, a control system, equipment and a storage medium. BACKGROUND
[0002] The speed of a laser cutting machine is usually not constant during processing. When the laser power is constant during cutting processing, heat accumulation is prone to occur at the corner due to low speed, which causes excessive ablation of the corner and affects the processing quality.
[0003] In order to avoid excessive ablation of the corner caused by excessive power, the existing technical solution is to set a speed-power curve, and to adjust the change of the laser power according to the change of the speed during processing. However, the power curve generally set is a segmented straight line, and the power curve composed of the segmented straight line is not smooth enough, which causes the power of the laser to change in jumps when the speed changes, thereby affecting the processing quality.
[0004] Therefore, how to adjust the output power of the laser in real time and improve the processing quality has become a technical problem to be solved in the current laser cutting. SUMMARY
[0005] (I) Technical problem to be solved
[0006] In view of the above-mentioned shortcomings and deficiencies of the prior art, the application provides a laser cutting power determination method, a control system, equipment and a storage medium.
[0007] (II) Technical solution
[0008] In order to achieve the above-mentioned purpose, the application adopts the following technical solution:
[0009] In a first aspect, the application provides a laser cutting power determination method based on a modified Akima spline curve, which comprises the following steps:
[0010] S1, obtaining a pre-set power curve parameter, the power curve parameter being a coordinate value of a control point sequence used to generate a power curve;
[0011] S2, obtaining a power curve through a modified Akima spline interpolation based on the power curve parameter, the power curve being used to represent a functional relationship between a cutting speed of a laser cutting machine and an output power of a laser;
[0012] S3, determining a current output power value of the laser based on the power curve and a current cutting speed of the laser cutting machine.
[0013] Optionally, step S2 comprises:
[0014] acquire and traverse the control point sequence, group the control point sequence based on a preset distance threshold;
[0015] respectively for each group of control points, a corresponding power curve is obtained by Akima spline interpolation.
[0016] Optionally, grouping the control point sequence based on a preset distance threshold comprises:
[0017] Step B1, let N be the number of control points, CurIndex be the starting control point index of the current segment, CurIndex initialization value be 0, and moveIndex be the control point index currently traversed; set the value of moveIndex to CurIndex, and go to step B2;
[0018] Step B2, when the difference between the control points pointed to by moveIndex and moveIndex+1 in the horizontal coordinate or the vertical coordinate is greater than the preset distance threshold, and the value of moveIndex is less than N-1, add 1 to moveIndex, and go to step B2; otherwise, go to step B3;
[0019] Step B3, if the value of moveIndex is equal to the value of CurIndex, add 1 to moveIndex, and go to step B4; otherwise, go to step B4;
[0020] Step B4, the control points pointed to by CurIndex and moveIndex and the control points between the control points pointed to by CurIndex and moveIndex are taken as a group, and when there are only two control points in the group, a new control point is inserted between the two control points, and the new control point is the midpoint of the connecting line segment between the original two control points; update the value of CurIndex to moveIndex; go to step B5;
[0021] Step B5, when , go to step B2; otherwise, end.
[0022] Optionally, the horizontal coordinate value of the control point in the control point sequence is the ratio of the cutting speed to the system preset maximum cutting speed, and the vertical coordinate value is the ratio of the laser output power during processing to the system preset maximum output power.
[0023] Optionally, for a group of control points with a length of n+1, in the group, any two adjacent control points ( v i , p i ) and ( v i+1 , pi+1 ), i The interpolated power curve, given the ranges =0,1,2,……n, is represented by the following formula:
[0024]
[0025] in, p This is the current power ratio. v The current speed ratio is given, where a, b, c, and d represent the x-axis intervals. The polynomial coefficients of the power curves between;
[0026] The polynomial coefficients are solved using the following formula:
[0027]
[0028] in, p i , v i , k i Let these represent the power ratio, speed ratio, and discrete derivative at the i-th control point, respectively. p i+1 , v i+1 , k i+1 Let represent the power ratio, speed ratio, and discrete derivative of the (i+1)th control point, respectively.
[0029] Optionally, step S3 includes:
[0030] Step C1: Obtain the current cutting speed of the laser cutting machine through the interpolation module, and calculate the ratio of the current cutting speed to the preset maximum cutting speed of the system based on the current cutting speed of the laser cutting machine;
[0031] Step C2: Determine the control point interval to which the current speed ratio belongs using the binary search method;
[0032] Step C3: Calculate the power ratio corresponding to the current speed ratio using a cubic polynomial of the control point interval;
[0033] Step C4: Determine the current output power value of the laser by using the calculated power ratio and the preset maximum output power of the system.
[0034] Optionally, the method further includes the step of:
[0035] S4. Based on the current output power value of the laser, control the laser to output the corresponding power by adjusting the duty cycle or peak power of the laser.
[0036] Secondly, embodiments of this application provide a laser power control system, which includes a human-machine interaction module, a power curve calculation module, and a laser control output module; the power curve calculation module is electrically connected to the human-machine interaction module and the laser control output module respectively.
[0037] The human-computer interaction module is used to respond to user input commands, obtain power curve parameters, and send the power curve parameters to the power curve calculation module;
[0038] The power curve calculation module is used to receive the power curve parameters, obtain the power curve based on the power curve parameters through modified Akima spline interpolation, and send the curve information of the power curve to the laser output control module.
[0039] The laser output control module is used to receive the curve information and the cutting speed information sent in real time by the interpolation module, and control the real-time output power of the laser based on the curve information and the cutting speed information.
[0040] Thirdly, embodiments of this application provide an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the laser cutting power determination method based on modified Akima spline curves as described in any of the first aspects above.
[0041] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the laser cutting power determination method based on modified Akima spline curves as described in any of the first aspects above.
[0042] (III) Beneficial Effects
[0043] The beneficial effects of this application are as follows: This application proposes a laser cutting power determination method, control system, device, and storage medium. The method includes the following steps: S1, obtaining pre-set power curve parameters, wherein the power curve parameters are the coordinate values of the control point sequence used to generate the power curve; S2, based on the power curve parameters, obtaining a power curve through modified Akima spline interpolation, wherein the power curve represents the functional relationship between the cutting speed of the laser cutting machine and the laser output power; S3, determining the current output power value of the laser based on the power curve and the current cutting speed of the laser cutting machine. Through the method of this application, the laser output power can be made continuously differentiable in the first order, thereby making the laser power change smoothly with the speed during processing, without any jumps in the rate of change of laser power, thus improving laser cutting performance and quality.
[0044] Further, the laser power strictly monotonically increases with the increase of the speed, and no overshoot occurs; and by adjusting the laser power through the cutting speed, the laser power is low when the speed at the corner is low, which prevents the corner from being burned. BRIEF DESCRIPTION OF DRAWINGS
[0045] The present application is described with the help of the following drawings:
[0046] Figure 1 A flowchart of a laser cutting power determination method based on a modified Akima spline curve in an embodiment of the present application;
[0047] Figure 2 A flowchart of a laser cutting power determination method based on a modified Akima spline curve in another embodiment of the present application;
[0048] Figure 3 A flowchart of an algorithm for grouping a control point sequence based on a preset distance threshold in another embodiment of the present application;
[0049] Figure 4 An example of a power curve obtained by using the laser cutting power determination method of the present embodiment;
[0050] Figure 5 A schematic diagram of a laser power control system structure in an embodiment of the present application;
[0051] Figure 6 A schematic diagram of the architecture of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to better explain the present application and facilitate understanding, the present application is described in detail through specific embodiments in combination with the drawings. It can be understood that the specific embodiments described below are only used to explain the related application, and are not a limitation on the application. In addition, it should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict; for the convenience of description, only the parts related to the application are shown in the drawings.
[0053] The method is applied in a Computerized Numerical Control (CNC) system, and specifically, can be executed in a host device of the CNC system. Embodiment One
[0054] Figure 1 A flowchart of a laser cutting power determination method based on a modified Akima spline curve in an embodiment of the present application, as shown in Figure 1As shown, the laser cutting power determination method based on the modified Akima spline curve in the embodiment includes:
[0055] S1, obtain pre-set power curve parameters, the power curve parameters being coordinate values of a control point sequence used for generating a power curve;
[0056] S2, based on the power curve parameters, obtain the power curve through the modified Akima spline interpolation, the power curve being used for representing a functional relationship between the cutting speed of the laser cutting machine and the output power of the laser;
[0057] S3, based on the power curve and the current cutting speed of the laser cutting machine, determine the current output power value of the laser.
[0058] The laser cutting power determination method based on the modified Akima spline curve in the embodiment can make the laser output power first-order continuous and derivable, so that the laser power changes smoothly with the change of the speed in the processing process, the laser power change rate does not jump, and the laser cutting performance and quality are improved.
[0059] In order to better understand the present application, the steps in the embodiment are described below.
[0060] In S1 of the embodiment, the power curve parameters are coordinate values of a control point sequence on the power curve, the horizontal coordinate being the cutting speed and the vertical coordinate being the output power.
[0061] In S1 of the embodiment, the power curve parameters are coordinate values of a control point sequence used for generating the power curve, the horizontal coordinate being the speed and the vertical coordinate being the laser power. The obtained power curve parameters are set according to the experience value. Specifically, the operator can add or delete the control points in the man-machine interaction interface according to the shape of the generated power curve and the actual cutting effect.
[0062] The number N of the control points in the control point sequence ranges from 2 to 100.
[0063] Preferably, the horizontal coordinate of the control point sequence monotonically increases, and the vertical coordinate monotonically increases.
[0064] The laser power strictly monotonically increases with the increase of the speed, and does not overshoot; and the laser power is adjusted by the cutting speed, the laser power is low when the speed is low at the corner, and the corner burning phenomenon is prevented.
[0065] In S2 of the embodiment, the power curve is described by a segmented polynomial, and the power curve is used for representing a functional relationship between the cutting speed of the laser cutting machine and the output power of the laser, in which the cutting speed is the independent variable and the output power of the laser is the dependent variable.
[0066] In this embodiment S3, the current cutting speed of the laser cutting machine is input into the function relationship of the corresponding power curve to obtain the current output power value of the laser. Embodiment two
[0067] The execution subject of this embodiment can be a laser cutting system, which can include a memory and a processor. In other embodiments, the execution subject can also be other electronic devices that can achieve the same or similar functions, and this embodiment does not limit this.
[0068] This embodiment is based on embodiment one and details the implementation process of the laser cutting power determination method based on the modified Akima spline curve. Figure 2 The flowchart of the laser cutting power determination method based on the modified Akima spline curve in another embodiment of the present application is shown in FIG. 2, which includes the following steps: Figure 2
[0069] S10, in response to a user input instruction, acquiring the power curve parameter set by the user;
[0070] S20, based on the set power curve parameter, obtaining the power curve through interpolation calculation;
[0071] S30, based on the power curve and the current cutting speed of the laser cutting machine, determining the current output power value of the laser;
[0072] S40, based on the current output power value, adjusting the output power of the laser in real time.
[0073] In step S10, the system receives the power curve parameter set by the user through a human-computer interaction interface. Specifically, the power curve parameter is a set of discrete control point sequences. The horizontal coordinate of the control point is the speed ratio value, which is defined as the value of the processing speed divided by the system preset maximum speed. The vertical coordinate of the control point is the power ratio value, which is defined as the value of the processing laser power divided by the system preset maximum power.
[0074] In step S20, it specifically includes:
[0075] Obtaining and traversing the control point sequence, and grouping the control point sequence based on a preset distance threshold;
[0076] Respectively, each group of control points is obtained through the modified Akima spline interpolation to obtain the corresponding power curve.
[0077] When the control points are segmented, a segmentation threshold needs to be set to realize different segmentations of the sequence and thus design different power curves. When the threshold is set to be large, the power curve is more likely to meet the strict monotonicity, but the overall shape of the curve is similar to multiple steps upward, resulting in poor laser output characteristics. When the threshold is set to be small, the power curve may have an overshoot phenomenon. Therefore, the threshold size is generally set to be between 0.05 and 0.2.
[0078] Figure 3 For another embodiment of the algorithm flow of grouping the control point sequence based on the preset distance threshold in the present application, as shown in Figure 3 , the algorithm is as follows:
[0079] Step B1, let N be the number of control points, CurIndex be the starting control point index of the current segment, and CurIndex be initialized to 0. moveIndex is the control point index currently traversed; set the value of moveIndex to CurIndex, and go to step B2.
[0080] Step B2, when the difference between the control points pointed to by moveIndex and moveIndex+1 in the horizontal coordinate or the difference in the vertical coordinate is greater than the preset distance threshold, and the value of moveIndex is less than N-1, add 1 to moveIndex, and go to step B2; otherwise, go to step B3.
[0081] Step B3, if the value of moveIndex is equal to the value of CurIndex, add 1 to moveIndex, and go to step B4; otherwise, go to step B4.
[0082] Step B4, the control points pointed to by CurIndex and moveIndex and the control points between them are taken as a group. When there are only two control points in the group, a new control point is inserted between the two control points, and the new control point is the midpoint of the connecting line segment between the original two control points. Update the value of CurIndex to moveIndex; go to step B5.
[0083] Step B5, when , go to step B2; otherwise, end.
[0084] By inserting a new control point between two control points, the rate of change of laser power at the insertion position (middle position) is the largest, which can make the curve shape meet the S shape, so as to better control the laser output.
[0085] Specifically, the length of the control point sequence of the current group is calculated by modifying the Akima spline interpolation method as , that is, the control points are v 0,p 0), ( v 1, p 1) ...... ( v n , p n ),in v i Indicates the speed ratio. p i This indicates the power ratio. The current speed ratio is... v The x-coordinate range of the control point where the current speed ratio is located is .
[0086] For any two adjacent control points ( v i , p i )and( v i+1 , p i+1 ), i =0,1,2,……n, the power curve is obtained by correcting Akima spline interpolation. The power curve is described by a cubic polynomial function as shown in the following formula (1), and the power curve contains control points on the left:
[0087] (1)
[0088] in, p This is the current power ratio. v The current speed ratio is given, where a, b, c, and d represent the x-axis intervals. The polynomial coefficients of the power curves between;
[0089] The polynomial coefficients are solved using the following formula (2):
[0090] (2)
[0091] in, p i , v i , k i Let these represent the power ratio, speed ratio, and discrete derivative at the i-th control point, respectively. p i+1 , v i+1 , k i+1 Let represent the power ratio, speed ratio, and discrete derivative of the (i+1)th control point, respectively.
[0092] ki The calculation method is as follows:
[0093] (3)
[0094] wherein let delta i denote the slope near the i th control point.
[0095] If i =0, then delta i-2 , delta i-1 is corrected to zero; if i =1, then delta i-2 is corrected to zero; if i = n -1, then delta i+1 is corrected to zero; if i = n , then delta i , delta i+1 is corrected to zero.
[0096] The v i , p i at the control point k i is a weighted average of the slopes near the control point calculated by formula (4):
[0097] (4)
[0098] wherein w 1, w 2 have the values:
[0099] (5)
[0100] The step S30 comprises:
[0101] Step C1, obtaining the current cutting speed of the laser cutting machine through the interpolation module, and calculating the ratio of the current cutting speed to the system preset maximum cutting speed based on the current cutting speed of the laser cutting machine;
[0102] Step C2, determining the control point interval to which the current speed ratio belongs through the dichotomy search method;
[0103] Step C3, calculating the power ratio corresponding to the current speed ratio through the cubic polynomial of the current control point interval;
[0104] Step C4: Determine the current output power value of the laser by using the calculated power ratio and the system's preset maximum output power.
[0105] In step S40, based on the current output power value of the laser, the laser output power can be controlled by adjusting the duty cycle or peak power of the laser.
[0106] To further understand the present invention, the following examples illustrate the implementation process of the method in this embodiment.
[0107] The control point sequence is obtained from the human-computer interaction interface. M 0(0, 0.5), M 1(1.0, 1.0), set the segmentation threshold to 0.1. Based on the above algorithm, the control points are... M 0、 M 1 is used as a data segment for power curve calculation. Since there are only two control points at this point, it is necessary to... M 0、 M Add a dot between 1s O , O The coordinates are (0.5, 0.75). The power curve polynomial expression between every two control points is calculated using modified Akima splines. Based on its calculation principle, it can be solved to obtain the value at point... M 0 to point O The expression for the power curve between them is:
[0108] (6)
[0109] in, .
[0110] At point O Time M The expression for the power curve between 1 and 2 is:
[0111] (7)
[0112] Figure 4 Here is an example diagram of the power curve obtained using the laser cutting power determination method of this embodiment, as shown in the figure. Figure 4 As shown, the first derivative of the power curve is continuous at this point. When adjusted according to the speed, the laser power changes smoothly.
[0113] The system's preset maximum cutting speed is 200 mm / s, and the system's laser's maximum output power is 3000 W. If the cutting speed is 20 mm / s, the speed percentage is 10%. The speed at the control point can be obtained using the bisection method. M 0 and OBetween them, 10% into equation (6) to solve the power percentage is 51%, at this time through the laser control output module laser can control the laser output power 1530W. Embodiment three
[0114] The second aspect of the present application proposes a laser power control system, Figure 5 For a laser power control system structure diagram of an embodiment of the present application, as shown in Figure 5 The system includes a human-computer interaction module 10, a power curve calculation module 20, a laser control output module 30; the power curve calculation module 20 is respectively connected with the human-computer interaction module 10, the laser control output module 30;
[0115] The human-computer interaction module 10 is used for acquiring power curve parameters in response to user input instructions, and sending the power curve parameters to the power curve calculation module 20;
[0116] The power curve calculation module 20 is used for receiving the power curve parameters, obtaining the power curve through the corrected Akima spline interpolation based on the power curve parameters, and sending the curve information of the power curve to the laser output control module 30; specifically, the curve information of the power curve can be the coefficients of the segmented polynomial;
[0117] The laser output control module 30 is used for receiving the curve information and the cutting speed information sent by the interpolation module in real time, and controlling the real-time output power of the laser based on the curve information and the cutting speed information.
[0118] The laser power control system provided by the embodiment can be used to execute the steps of the laser cutting power determination method in the method embodiment, and has similar implementation principles and technical effects, which will not be described here. Embodiment four
[0119] The third aspect of the present application proposes an electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program is executed by the processor to realize the steps of the laser cutting power determination method based on the corrected Akima spline curve as described in any one of the above embodiments.
[0120] Figure 6 For a schematic diagram of the architecture of the electronic device in an embodiment of the present application.
[0121] Figure 6The illustrated electronic device can include at least one processor 101, at least one memory 102, at least one network interface 104, and other user interface 103. The various components of the electronic device are coupled together by a bus system 105, which can include a data bus, a power bus, a control bus, and a state signal bus. For the sake of clarity, the various buses are illustrated in FIG. 1 as the bus system 105. The use of the term "bus" herein can refer to the most practical interconnection medium. Figure 6
[0122] The user interface 103 can include a display, a keyboard or a pointing device, such as a mouse, a trackball, or a touchpad.
[0123] It is to be understood that the memory 102 in the present embodiment can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memory. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM) used as an external cache. By way of example, and not limitation, many forms of RAM can be used, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Sync Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 102 described herein is intended to include, among others, these and any other suitable types of memory.
[0124] In some embodiments, the memory 102 stores elements, executable units or data structures, or a subset thereof, or an extended set thereof, such as an operating system 1021 and an application program 1022.
[0125] The operating system 1021 contains various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application programs 1022 contain various application programs for implementing various application services. The programs implementing the method embodiments of the present application can be included in the application programs 1022.
[0126] In the embodiments of the present application, the processor 101 executes the method steps provided in the first aspect by invoking the programs or instructions stored in the memory 102, specifically, the programs or instructions stored in the application programs 1022.
[0127] The method disclosed in the above embodiments of the present application can be applied to the processor 101 or implemented by the processor 101. The processor 101 can be an integrated circuit chip having a processing capability. In the implementation process, each step of the above method can be completed by the integrated logic circuits or the instruction of software form in the processor 101. The processor 101 mentioned above can be a general processor, a digital signal processor, an application specific integrated circuit, a ready programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. Each method, step and logic block disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware coding processor for execution, or a combination of hardware and software units in the coding processor for execution. The software unit can be located in a random access memory, a flash memory, a read only memory, a programmable read only memory or an electrically erasable programmable memory, a register, and the like mature storage media in the art. The storage medium is located in the memory 102, and the processor 101 reads the information in the memory 102 and completes the steps of the above method in combination with the hardware.
[0128] In addition, in combination with the laser cutting power determination method based on the modified Akima spline curve in the above embodiments, the embodiments of the present application can provide a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement any one of the laser cutting power determination methods based on the modified Akima spline curve in the above method embodiments.
[0129] It should be noted that in the claims the word "comprising" does not exclude other elements or steps than listed in a claim. The word "a" or "an" preceding the citation of a list of elements does not exclude a plurality of such elements. It is further noted that a single unit can fulfil the functions of several features recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage. The reference signs in the claims shall not be construed as limiting the claim. The word "comprising" does not exclude other steps or elements not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a programmed computer. The word "comprise", "comprising", "comprises" or "comprised of" and the like does not exclude the presence of elements or steps other than those listed in the claims. The word "first", "second", "third", and the like can merely be used for
[0130] In addition, it is to be noted that the description of the present specification uses the terms "one embodiment", "some embodiments", "an embodiment", "example", "specific example" or "some examples" and the like to describe the specific features, structures, materials or characteristics included in at least one embodiment or example of the present application. In the present specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Also, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. In addition, the person skilled in the art can combine and combine the different embodiments or examples described in the present specification and the features of the different embodiments or examples, without contradiction.
[0131] Although the preferred embodiments of the present application have been described, those skilled in the art, upon obtaining the basic inventive concept, can make further changes and modifications to the embodiments. Therefore, the claims should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0132] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application should also include these modifications and variations.
Claims
1. A method for determining laser cutting power based on a modified Akima spline curve, characterized by, The method comprises the following steps: S1, obtaining a preset power curve parameter, the power curve parameter being a coordinate value of a control point sequence used for generating a power curve; S2, obtaining the power curve by Akima spline interpolation based on the power curve parameter, the power curve being used for representing a function relationship between a cutting speed of a laser cutting machine and an output power of a laser; wherein step S2 comprises: grouping the control point sequence based on a preset distance threshold; obtaining a corresponding power curve for each group of control points by Akima spline interpolation; S3, determining a current output power value of the laser based on the power curve and a current cutting speed of the laser cutting machine; wherein the horizontal coordinate value of the control point in the control point sequence is a ratio of the cutting speed to a preset maximum cutting speed of the system, and the vertical coordinate value is a ratio of the output power of the laser during processing to a preset maximum output power of the system; wherein step S3 comprises: Step C1, obtaining the current cutting speed of the laser cutting machine by an interpolation module, and calculating the ratio of the current cutting speed to the preset maximum cutting speed of the system based on the current cutting speed of the laser cutting machine; Step C2, determining the control point interval to which the current speed ratio belongs by a binary search method; Step C3, calculating the power ratio corresponding to the current speed ratio by a cubic polynomial of the control point interval; Step C4, determining the current output power value of the laser based on the calculated power ratio and the preset maximum output power of the system.
2. The method of claim 1, wherein, Grouping the control point sequence based on a preset distance threshold comprises: Step B1, let N be the number of control points, CurIndex be the starting control point index of the current segment, CurIndex initialization value be 0, and moveIndex be the control point index currently traversed; set the value of moveIndex to CurIndex, and go to step B2; Step B2, when the difference between the control points pointed to by moveIndex and moveIndex+1 in horizontal coordinate or vertical coordinate is greater than the preset distance threshold, and the value of moveIndex is less than N-1, add 1 to moveIndex, and go to step B2; otherwise, go to step B3; Step B3, if the value of moveIndex is equal to the value of CurIndex, add 1 to moveIndex, and go to step B4; otherwise, go to step B4; Step B4, take the control points pointed to by CurIndex and moveIndex, and the control points between the control points pointed to by CurIndex and moveIndex as a group, when there are only two control points in the group, insert a new control point between the two control points, the new control point being the midpoint of the connecting line segment between the original two control points; update the value of CurIndex to moveIndex; go to step B5; Step B5, when CurIndex is less than N-1, go to step B2; otherwise, end.
3. The method of claim 2, wherein, For a control point group of length n+1, in which the power curve between any two adjacent control points (v i , p i ) and (v i+1 , p i+1 ), i=0,1,2,……n, is interpolated, the power curve is expressed by the following formula: ; wherein p is the current power ratio, v is the current speed ratio, a, b, c, d are the polynomial coefficients of the power curve between the current speed ratio. The polynomial coefficients are solved by the following formula: ; where p i , v i , k i represent the power ratio, the speed ratio, the discrete derivative of the i-th control point, respectively, and p i+1 , v i+1 , k i+1 represent the power ratio, the speed ratio, the discrete derivative of the i+1-th control point, respectively.
4. The method of claim 1, wherein, The method further comprises the steps of: S4, based on the current output power value of the laser, adjusting the duty cycle or peak power of the laser to control the corresponding power output of the laser.
5. A laser power control system, characterized by, A system for performing the steps of the laser cutting power determination method based on the modified Akima spline curve according to any one of claims 1-4; the system comprises a human-computer operation interaction module, a power curve calculation module, and a laser control output module; the power curve calculation module is electrically connected with the human-computer operation interaction module and the laser control output module respectively; The human-computer operation interaction module is configured to acquire power curve parameters in response to a user input instruction and send the power curve parameters to the power curve calculation module. The power curve calculation module is configured to receive the power curve parameters, obtain a power curve by modified Akima spline interpolation based on the power curve parameters, and send curve information of the power curve to the laser output control module. The laser output control module is configured to receive the curve information and cutting speed information sent by the interpolation module in real time, and control the real-time output power of the laser based on the curve information and the cutting speed information.
6. An electronic device, comprising: Comprise: A memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to implement the steps of the laser cutting power determination method based on the modified Akima spline curve according to any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, The computer program is stored on the computer readable storage medium, and the computer program is executed by the processor to implement the steps of the laser cutting power determination method based on the modified Akima spline curve according to any one of claims 1-4.
Citation Information
Patent Citations
Laser cutting control method and system, computer device and readable storage medium
CN115562149A