On-the-fly processing method, device, laser plane cutting equipment and medium

By automatically identifying sub-figures and trajectory planning types, generating avoidance paths and optimizing displacement paths, the problem of poor usability and unsmooth paths of laser plane cutting software is solved, and an efficient and smooth flight processing process is achieved.

CN115582631BActive Publication Date: 2024-10-08SHENZHEN INOVANCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211167599.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-23
Publication Date
2024-10-08
Estimated Expiration
2042-09-23

AI Technical Summary

Technical Problem

The flight machining in the existing laser plane cutting 2D-CAM software has problems such as poor ease of use, the inability to automatically identify the trajectory planning type, easy damage to the parts to be processed due to the shifting path, difficulty in avoiding sharp corner damage, and unsmooth paths.

Method used

By automatically identifying the sub-graphics of the part to be cut, determining the trajectory planning type, generating an avoidance path to avoid part damage, and optimizing the sharp corners and chamfers of the displacement path to improve path smoothness.

Benefits of technology

It improves the usability of the software, reduces the probability of manual setting errors, ensures the smoothness and efficiency of the processing path, and avoids damage to parts and sharp corners.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115582631B_ABST
    Figure CN115582631B_ABST
Patent Text Reader

Abstract

The present invention discloses a flight processing method, a flight processing device, a laser plane cutting device and a computer storage medium, and relates to the technical field of laser plane cutting. The method comprises: obtaining a flight processing graph of a workpiece to be processed, identifying a sub-graph of the workpiece to be cut in the flight processing graph; determining a trajectory planning type based on the sub-graph, and generating a displacement path of the flight processing graph according to the trajectory planning type; and controlling the laser plane cutting device to cut the workpiece to be cut according to the displacement path to obtain the workpiece to be cut. The present invention automatically identifies the trajectory planning type of flight processing, calls the planning algorithm corresponding to the trajectory planning type, and automatically plans and generates the displacement path of the flight processing graph, thereby eliminating the need to manually set the trajectory planning type of the flight processing graph for flight processing, improving the usability of the software, and reducing the error probability of manual setting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of laser plane cutting, and in particular to an on-the-fly processing method, an on-the-fly processing device, a laser plane cutting device and a computer storage medium. Background Art

[0002] At present, the laser cutting market segment has unparalleled advantages over traditional processing, and replacing traditional processing has become an ideal choice. Driven by market demand, the requirements for supporting software for laser cutting control systems have become increasingly higher in recent years, especially the development and application of 2D-CAM (2 Dimension Computer Aided Manufacturing) software technology supporting laser plane cutting has made great progress. With the increasing requirements for the quality of laser plane cutting, the supporting 2D-CAM software also needs to continuously improve new processes and put forward higher requirements for the implementation methods of on-the-fly processing.

[0003] However, the on-the-fly processing in the current laser plane cutting 2D-CAM software has the following problems: 1. The trajectory planning type used cannot be automatically identified before trajectory planning and needs to be set manually, which is not only difficult to use, but also has the risk of setting errors; 2. It cannot guarantee that the shift path will not pass through the contour of the processed graphic. If there is light leakage in the laser, the parts to be processed will be damaged due to passing through the contour of the processed graphic; 3. The generated shift path is difficult to avoid damaging sharp corners and cannot ensure a smooth path; 4. Adding a shift path during trajectory planning will modify the graphic type and affect the normal use of other processes. Summary of the invention

[0004] The main purpose of the present invention is to provide a flight processing method, flight processing equipment and computer storage medium, aiming to solve the technical problem of poor usability of flight processing software tools in the prior art.

[0005] To achieve the above object, the present invention provides a flying processing method, which is applied to a laser plane cutting device and comprises the following steps:

[0006] Acquire a flying machining pattern of a workpiece to be machined, and identify a sub-pattern of the workpiece to be cut in the flying machining pattern;

[0007] Determine a trajectory planning type based on the sub-graph, and generate a displacement path of the flight processing graph according to the trajectory planning type;

[0008] According to the displacement path, the laser plane cutting device is controlled to cut the workpiece to obtain the workpiece.

[0009] Furthermore, before the step of determining the trajectory planning type based on the sub-graph, the step further includes:

[0010] determining whether an intersection between the displacement path and the sub-graphic outline of the piece to be cut is allowed;

[0011] If it is not allowed, an avoidance path avoiding the sub-graph is generated, and the avoidance path is used as the displacement path.

[0012] Furthermore, the step of generating an avoidance path that avoids the sub-graph includes:

[0013] By traversing each of the sub-graphs, determining whether there is a first type of sub-graph that cannot be avoided in each of the sub-graphs;

[0014] If so, generating avoidance paths for each sub-graph except the first type of sub-graph;

[0015] If it does not exist, then a path with the shortest moving length is selected as the avoidance path among the paths avoiding all the sub-graphs.

[0016] Furthermore, the step of controlling the laser plane cutting device to cut the workpiece to be processed according to the displacement path to obtain the workpiece to be cut includes:

[0017] Performing path optimization on the displacement path to obtain an optimized path, wherein the path optimization method includes at least one of chamfer optimization and sharp corner optimization;

[0018] According to the optimized path, the laser plane cutting device is controlled to cut the workpiece to obtain the workpiece.

[0019] Further, the performing path optimization on the displacement path includes:

[0020] Determine the exit point of the displacement path at the sub-graph;

[0021] Optimizing the sharp corners of the displacement path based on the lead-out point;

[0022] and / or

[0023] Determining an inflection point of the displacement path between the sub-graphs;

[0024] The displacement path is chamfer-optimized based on the inflection point.

[0025] Further, when the path optimization method includes sharp corner optimization, the step of performing sharp corner optimization on the displacement path based on the lead-out point includes:

[0026] determining whether to preserve the sharp corners of the displacement path;

[0027] If the sharp corner of the displacement path is retained, the displacement path is generated in a straight line leading manner at the leading-out point;

[0028] If the sharp corner of the displacement path is not retained, the displacement path is generated at the lead-out point in a tangent arc lead-out manner;

[0029] When the path optimization method includes chamfer optimization, the step of performing chamfer optimization on the displacement path based on the inflection point includes:

[0030] Determining whether to perform smoothing on the displacement path;

[0031] If the displacement path is smoothed, the inflection points on the displacement path are chamfered.

[0032] Furthermore, after the step of generating the displacement path of the flight processing graphic according to the trajectory planning type, it also includes:

[0033] The outline of the sub-graphic and the displacement path are grouped and merged to generate a flying processing path.

[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides a flight processing device, the device comprising:

[0035] An identification module, used to obtain a flying processing graph of a workpiece to be processed, and identify a sub-graph of a workpiece to be cut in the flying processing graph;

[0036] A generating module, used for determining a trajectory planning type based on the sub-graph, and generating a displacement path of the flight processing graph according to the trajectory planning type;

[0037] A control module is used to control the laser plane cutting device to cut the workpiece to be processed according to the displacement path to obtain the workpiece to be cut

[0038] In addition, to achieve the above-mentioned purpose, the present invention also provides a laser plane cutting device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the flight processing method as described in any one of the above items.

[0039] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the flight processing method as described in any one of the above items are implemented.

[0040] The present invention proposes an on-the-fly processing method, an on-the-fly processing device, a laser plane cutting device and a computer storage medium. The on-the-fly processing method is applied to the laser plane cutting device, comprising: obtaining an on-the-fly processing graphic of a workpiece to be processed, identifying a sub-graphic of the workpiece to be cut in the on-the-fly processing graphic; determining a trajectory planning type based on the sub-graphic, and generating a displacement path of the on-the-fly processing graphic according to the trajectory planning type; and controlling the laser plane cutting device to cut the workpiece to be processed according to the displacement path to obtain the workpiece to be cut.

[0041] In the present application, the sub-graph of the part to be cut in the flight processing graph is automatically identified, and the trajectory planning type is determined based on the sub-graph, and the displacement path of the flight processing graph is automatically planned and generated according to the trajectory planning type, so as to control the laser plane cutting device to perform flight processing on the part to be processed according to the displacement path to cut each part to be cut. By automatically identifying the trajectory planning type of flight processing, calling the planning algorithm of the corresponding trajectory planning type to automatically plan and generate the displacement path of the flight processing graph, there is no need to manually set the trajectory planning type for flight processing of the flight processing graph, which improves the usability of the software and reduces the error probability of manual setting. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a schematic diagram of the structure of the hardware operation of the terminal device involved in the embodiment of the present invention;

[0043] Figure 2 It is a schematic flow chart of a first embodiment of a flight processing method of the present invention;

[0044] Figure 3 It is a schematic diagram of automatically identifying flight types according to a first embodiment of a flight processing method of the present invention;

[0045] Figure 4 is a schematic diagram of a circular flight path of a first embodiment of a flight processing method of the present invention;

[0046] Figure 5 is a schematic diagram of a straight line flight path of a first embodiment of a flight processing method of the present invention;

[0047] Figure 6 It is a schematic diagram of the flight path of a waist-shaped hole in a first embodiment of a flight processing method of the present invention;

[0048] Figure 7 It is a hybrid graphic flight path schematic diagram of a first embodiment of a flight processing method of the present invention;

[0049] Figure 8 is a schematic diagram of the sharp corner optimization of another embodiment of a flying machining method of the present invention;

[0050] Fig. 9 is another sharp corner optimization schematic diagram of another embodiment of a flying machining method of the present invention;

[0051] Fig.10 It is a schematic diagram of smoothing optimization of another embodiment of a flying machining method of the present invention.

[0052] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION

[0053] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0054] like Figure 1 As shown, Figure 1 It is a structural diagram of the hardware operating environment of the terminal device involved in the embodiment of the present invention.

[0055] It should be noted that Figure 1 That is, it is a schematic diagram of the structure of the hardware operating environment of the terminal device. The terminal device of the embodiment of the present invention may be a storage device based on nand flash as a storage medium. Figure 1 As shown, the terminal device for executing the flight processing method provided by the present invention may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a storage device 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The storage device 1005 may be a non-volatile storage device (such as a Flash storage device), a high-speed RAM storage device, or a stable storage device (non-volatile memory), such as a disk storage device. The storage device 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0056] Those skilled in the art will understand that Figure 1 The terminal device structure shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0057] like Figure 1As shown, the storage device 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and a computer program. The operating system is a program that manages and controls the hardware and software resources of the sample terminal device and supports the operation of the computer program and other software or programs.

[0058] exist Figure 1 In the terminal device shown, the user interface 1003 is mainly used to communicate data with each terminal; the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; and the processor 1001 can be used to call the computer program stored in the storage device 1005 and perform the following operations:

[0059] Acquire a flying machining pattern of a workpiece to be machined, and identify a sub-pattern of the workpiece to be cut in the flying machining pattern;

[0060] Determine a trajectory planning type based on the sub-graph, and generate a displacement path of the flight processing graph according to the trajectory planning type;

[0061] According to the displacement path, the laser plane cutting device is controlled to cut the workpiece to obtain the workpiece.

[0062] Further, the processor 1001 may call a computer program stored in the storage device 1005, and further perform the following operations:

[0063] Before the step of determining the trajectory planning type based on the sub-graph, the method further includes:

[0064] determining whether an intersection between the displacement path and the sub-graphic outline of the piece to be cut is allowed;

[0065] If it is not allowed, an avoidance path avoiding the sub-graph is generated, and the avoidance path is used as the displacement path.

[0066] Further, the processor 1001 may call a computer program stored in the storage device 1005, and further perform the following operations:

[0067] The step of generating an avoidance path that avoids the sub-graph comprises:

[0068] By traversing each of the sub-graphs, determining whether there is a first type of sub-graph that cannot be avoided in each of the sub-graphs;

[0069] If so, generating avoidance paths for each sub-graph except the first type of sub-graph;

[0070] If it does not exist, then a path with the shortest moving length is selected as the avoidance path among the paths avoiding all the sub-graphs.

[0071] Further, the processor 1001 may call a computer program stored in the storage device 1005, and further perform the following operations:

[0072] The step of controlling the laser plane cutting device to cut the workpiece to be processed according to the displacement path to obtain the workpiece to be cut comprises:

[0073] Performing path optimization on the displacement path to obtain an optimized path, wherein the path optimization method includes at least one of chamfer optimization and sharp corner optimization;

[0074] According to the optimized path, the laser plane cutting device is controlled to cut the workpiece to obtain the workpiece.

[0075] Further, the processor 1001 may call a computer program stored in the storage device 1005, and further perform the following operations:

[0076] The step of optimizing the displacement path comprises:

[0077] Determine the exit point of the displacement path at the sub-graph;

[0078] Optimizing the sharp corners of the displacement path based on the lead-out point;

[0079] and / or

[0080] Determining an inflection point of the displacement path between the sub-graphs;

[0081] The displacement path is chamfer-optimized based on the inflection point.

[0082] Further, the processor 1001 may call a computer program stored in the storage device 1005, and further perform the following operations:

[0083] When the path optimization method includes sharp corner optimization, the step of performing sharp corner optimization on the displacement path based on the lead-out point includes:

[0084] determining whether to preserve the sharp corners of the displacement path;

[0085] If the sharp corner of the displacement path is retained, the displacement path is generated in a straight line leading manner at the leading-out point;

[0086] If the sharp corner of the displacement path is not retained, the displacement path is generated at the lead-out point in a tangent arc lead-out manner;

[0087] When the path optimization method includes chamfer optimization, the step of performing chamfer optimization on the displacement path based on the inflection point includes:

[0088] Determining whether to perform smoothing on the displacement path;

[0089] If the displacement path is smoothed, the inflection points on the displacement path are chamfered.

[0090] Further, the processor 1001 may call a computer program stored in the storage device 1005, and further perform the following operations:

[0091] After the step of generating the displacement path of the flight processing graphic according to the trajectory planning type, the method further includes:

[0092] The outline of the sub-graphic and the displacement path are grouped and merged to generate a flying processing path.

[0093] Please refer to Figure 2 , Figure 2 It is a schematic flow chart of the first embodiment of the on-the-fly machining method of the present invention.

[0094] In this embodiment, the on-the-fly processing method is applied to a laser plane cutting device. The on-the-fly processing method of the present invention includes:

[0095] Step S10, obtaining a flying machining pattern of the workpiece to be machined, and identifying a sub-pattern of the workpiece to be cut in the flying machining pattern.

[0096] Flight processing in laser plane cutting refers to an efficient processing technology that does not lift the laser head, does not turn off the auxiliary gas, tries not to slow down, and only controls the laser switch separately in order to improve the processing smoothness and efficiency. 2D-CAM software has drawing functions and file import functions. Flight processing graphics can be flight processing graphics designed by users in the drawing view based on the drawing function of 2D-CAM software, or flight processing graphics designed by users on other drawing tools based on the file import function of 2D-CAM software. Among them, flight processing graphics can be CAD (Computer Aided Design) drawings. Before obtaining the flight processing graphics, the user has pre-drawn the sub-graphics of the part to be cut through the drawing component, and the graphic types of the drawing components used to draw the sub-graphics include but are not limited to: points, straight lines, arcs, circles, elliptical arcs, ellipses, polylines, rectangles, polygons, spline curves, connected lines, etc. and their combinations.

[0097] Furthermore, the step of automatically identifying the sub-graphics of the parts to be cut in the flight processing graphics includes: determining the sub-graphics of the parts to be cut in the flight processing graphics based on a graphics recognition algorithm, or performing similarity matching between the flight processing graphics and the graphics type of the drawing component to determine the sub-graphics of the parts to be cut in the flight processing graphics, or obtaining the contour lines, starting point coordinates and end point coordinates of the sub-graphics in the flight processing graphics, and determining the sub-graphics of the parts to be cut in the flight processing graphics based on the contour lines, starting point coordinates and end point coordinates.

[0098] In one feasible manner, a large number of sub-graphs of parts to be cut in a flight processing graphic are quickly identified through a graphic recognition algorithm; the sub-graphs are drawn by drawing components or their combinations, therefore, the flight processing graphic and the drawing components can be compared one by one, and similarity matching is performed to determine the sub-graphs of the parts to be cut in the flight processing graphic, wherein a drawing component with a similarity greater than a preset similarity threshold can be directly used as a sub-graph of a part to be cut in the flight processing graphic, thereby simply and conveniently determining a sub-graph drawn by a single drawing component, and a sub-graph of a part to be cut that cannot be matched by similarity is determined as a combination of drawing components, which can be identified through a graphic recognition algorithm or based on contour lines, starting point coordinates and end point coordinates; when drawing a flight processing graphic, the completion of the drawing indicates that the contour and coordinate position of each drawing component or its combination have been set, therefore, the sub-graph of the part to be cut in the flight processing graphic can be determined based on the contour lines, starting point coordinates and end point coordinates, and a large number of sub-graphs of parts to be cut in the flight processing graphic can also be quickly identified.

[0099] Step S20, determining a trajectory planning type based on the sub-graph, and generating a displacement path of the flying processing graph according to the trajectory planning type.

[0100] The trajectory planning type refers to the flight type corresponding to the flight processing graph composed of sub-graphs when planning the flight processing trajectory. Figure 3 , the automatically identified flight types 11 include: circle 12, rectangle 14, waist-shaped hole 16, and mixed graphics 18. The shift path of the flight processing graphics refers to the movement trajectory of controlling the laser switch to turn off the laser and move the laser head to the next sub-graphic when laser cutting is not performed according to the sub-graphic during the flight processing of laser plane cutting. That is, on the shift path, the laser is turned off, only the laser head is moved, and the laser head in the turned-on state is moved on the sub-graphic outline according to the sub-graphic outline line.

[0101] In the prior art, since the trajectory planning type of flight processing cannot be automatically identified, the ease of use is poor when manually setting the trajectory planning type, and it may be easy to cause errors in setting the trajectory planning type due to missing sub-graphs or observing the wrong sub-graph category. Therefore, in this embodiment, corresponding path planning algorithms have been pre-designed for different flight types. After automatically identifying the sub-graph of the part to be cut in the flight processing graph, the trajectory planning type is first determined based on the sub-graph, and then the planning algorithm is determined based on the corresponding relationship between the trajectory planning type and the planning algorithm, so as to automatically plan and generate the displacement path of the flight processing graph.

[0102] In one practicable manner, further referring to Figure 3 The planning algorithms corresponding to the trajectory planning types include: planning a circular flight path 13, planning a straight line flight path 15, planning a waist-shaped hole flight path 17, and planning a mixed graphic flight path 19. The displacement path is represented by a dotted line, and the sub-graphic outline is represented by a solid line. Figure 4 As shown, the shift path between different circles in the same row uses straight line introduction / exit, and the shift path between different rows uses arc transition; Figure 5 As shown, the laser starting point is the lower left corner, and the laser ending point is the upper right corner. The processing is first carried out in row order, and then in column order. Arc transition is used between different rows or columns. Figure 6 As shown, to ensure the same lead-in / lead-out position, the shift path is introduced from the intersection of the arc and the straight line, and the shift paths between different rows use arc transitions; Figure 7 As shown, no matter what type of graphics, regardless of rows and columns, processing is done in row order. Arc transition is used when the heights of the same row are different, and arc transition is used between different rows.

[0103] Step S30: According to the displacement path, the laser plane cutting device is controlled to cut the workpiece to obtain the workpiece.

[0104] After determining the shift path, turn off the laser on the shift path, move the laser head to the next workpiece to be processed with reference to the shift path, and turn on the laser with reference to the contour lines of the workpiece to be processed to perform laser plane cutting to obtain each workpiece to be cut.

[0105] Furthermore, after step S20, the method further includes:

[0106] The outline of the sub-graphic and the displacement path are grouped and merged to generate a flying processing path.

[0107] The pattern of the flying processing graphics includes the contour lines of the sub-graphics and the displacement paths between the sub-graphics. Therefore, the processing contour lines and displacement paths involved in the flying processing can be grouped and merged into an inseparable whole to generate the flying processing path. Performing group operations ensures that the generated flying processing path is a whole, which is equivalent to selecting all lines to prevent missing selections, and participates in subsequent processing procedures to make the processing process smooth and continuous.

[0108] In an practicable manner, the step of grouping and merging the sub-graphic outline and the displacement path to generate the on-the-fly processing path includes: while generating the displacement path, determining the sub-graphic outline and generating a set of outlines of each sub-graphic; grouping and merging the displacement path and the set of outlines to generate the on-the-fly processing path. After the sub-graphic is identified, the steps of determining the sub-graphic outline and generating the displacement path according to the trajectory planning type determined based on the sub-graphic are performed simultaneously, thereby improving the speed and efficiency of generating the on-the-fly processing path and saving the generation time.

[0109] In an practicable manner, the step of grouping and merging the outline of the sub-graphic and the displacement path to generate a flying processing path includes: obtaining the starting point and the end point of the outline and the displacement path; grouping and merging the outline and the displacement path in sequence based on the starting point and the end point to generate a flying processing path. The starting point of the current displacement path is the end point of the outline of the previous sub-graphic, and the starting point of the current outline is the end point of the previous displacement path. According to the starting point and the end point of the outline and the displacement path, the outline and the displacement path are connected in sequence, so that the outline and the displacement path are grouped and merged to generate a flying processing path, which is more concise, convenient and logical to generate a flying processing path, and further improves the usability of the flying processing software tool.

[0110] In this embodiment, the on-the-fly processing method is applied to laser plane cutting, including: obtaining a drawn on-the-fly processing graphic, automatically identifying a sub-graphic of a part to be cut in the on-the-fly processing graphic; determining a trajectory planning type based on the sub-graphic, calling a planning algorithm corresponding to the trajectory planning type to automatically plan and generate a displacement path for the on-the-fly processing graphic; performing on-the-fly processing according to the displacement path, and cutting to obtain each of the parts to be cut.

[0111] In the present application, the sub-graphs of the parts to be cut in the flight processing graphics are automatically identified, and the trajectory planning type is determined based on the sub-graphs, and the planning algorithm corresponding to the trajectory planning type is called to automatically plan and generate the displacement path of the flight processing graphics, so that flight processing is performed according to the displacement path to cut each part to be cut. By automatically identifying the trajectory planning type of flight processing, calling the planning algorithm corresponding to the trajectory planning type to automatically plan and generate the displacement path of the flight processing graphics, there is no need to manually set the trajectory planning type of the flight processing graphics for flight processing, which improves the ease of use of the software and reduces the probability of error in manual settings.

[0112] Further, based on the first embodiment of the present application, in another embodiment of the present application, before step S20, the following is further included:

[0113] Step A10, determining whether an intersection between the displacement path and the sub-graphic outline of the piece to be cut is allowed;

[0114] During actual processing, the laser may have light leakage, resulting in the laser cutting areas that should not be processed even if a shutdown command has been issued to shut down the laser. When there is a gap between the sub-graphs to be processed, the processing and cutting extending from the current sub-graph will not affect the sub-graphs that have been cut. However, in order to improve processing efficiency, you can choose to pass through the sub-graph outline and directly pass the laser head through the sub-graph. If the laser has light leakage, it will cut the next sub-graph and damage the parts to be processed.

[0115] Furthermore, before the step of determining the trajectory planning type based on the sub-graphic, it also includes: detecting the light leakage state of the laser head and determining the light leakage rate of the laser head; or determining whether to allow the setting option of passing through the sub-graphic outline; if the light leakage rate is greater than a preset light leakage rate threshold, or the setting option is not allowed to pass through the sub-graphic outline, then it is determined that the displacement path is not allowed to have an intersection with the sub-graphic outline of the workpiece to be cut; otherwise, it is determined that the displacement path is allowed to have an intersection with the sub-graphic outline of the workpiece to be cut.

[0116] When the light leakage of the laser head is lower than the preset light leakage rate threshold, or is allowed to pass through the sub-graphic outline according to the actual application scenario, it means that the light leakage is small enough to not damage the parts to be processed. The laser head can be moved directly to the processing starting point of the next sub-graphic by passing through the middle of the sub-graphic outline, thereby compensating for the hardware defects through software algorithms and improving processing efficiency.

[0117] Step A20: If it is not allowed, an avoidance path is generated to avoid the sub-graphic, and the avoidance path is used as the displacement path.

[0118] If the displacement path is not allowed to intersect with the sub-graphic contour of the part to be cut, the laser head will seriously leak light and damage the part to be processed. In this case, it is necessary to automatically plan to avoid the sub-graphic. It must be ensured that the movement path of the laser head does not pass through the sub-graphic contour. The avoidance path is used as the displacement path, and the laser head is moved with reference to the avoidance path.

[0119] Furthermore, the step of generating an avoidance path that avoids the sub-graph includes:

[0120] Step A201, by traversing each of the sub-graphs, determining whether there is a first type of sub-graph that cannot be avoided in each of the sub-graphs;

[0121] Step A202, if it exists, generating an avoidance path for each sub-graph except the first type of sub-graph;

[0122] Step A203: If it does not exist, then select a path with the shortest moving length among the paths avoiding all the sub-graphs as the avoidance path.

[0123] When automatically planning an avoidance path to avoid sub-graphics, traverse the sub-graphics in the flight processing graphics to determine whether there are first-class sub-graphics that cannot be avoided. For example, if a rectangular sub-graphic is set inside a circular sub-graphic, the circular ring cannot be avoided when cutting the rectangle. If there are first-class sub-graphics that cannot be avoided, the sub-graphics that cannot be avoided are removed from the parts to be processed, and they are determined to be sub-graphics that do not participate in flight processing, and the avoidance paths of the remaining sub-graphics except the sub-graphics that cannot be avoided are automatically planned. Optionally, the sub-graphics that cannot be avoided are framed with red dotted lines for prompting. If there are no sub-graphics that cannot be avoided, the path with the shortest moving length or the shortest time is selected as the avoidance path among the paths that avoid all sub-graphics, thereby improving the processing efficiency while ensuring the processing requirements.

[0124] When faced with the problem that it cannot be guaranteed that the displacement path does not pass through the processing pattern contour, if there is light leakage in the laser, the parts to be processed will be damaged by passing through the processing pattern contour. When an unavoidable situation occurs, the unavoidable sub-pattern is removed so that it does not participate in the flight processing, and the remaining sub-patterns continue to plan the displacement path that can be avoided. Therefore, when it is determined that there is no light leakage in the laser, the sub-pattern contour that can be passed is selected to improve the processing efficiency. In the case of uncertainty, the sub-pattern contour that cannot be passed is selected to avoid damaging the parts to be processed.

[0125] Further, based on the first embodiment of the present application, in another embodiment of the present application, after step S20, the following is further included:

[0126] Step B1, performing path optimization on the displacement path to obtain an optimized path, wherein the path optimization method includes at least one of chamfer optimization and sharp corner optimization;

[0127] Step B2: According to the optimized path, control the laser plane cutting device to cut the workpiece to obtain the workpiece.

[0128] The displacement paths currently generated in flight processing have no special processing, and either cannot guarantee sharp corners or are not smooth enough, making it difficult to avoid damaging sharp corners and failing to ensure smooth paths. Moreover, directly calling the planning algorithm corresponding to the trajectory planning type to automatically plan and generate the displacement path for flight processing graphics also does not consider the smoothness of the displacement path, and optimization processing is still required. In this embodiment, the optimized path is obtained by optimizing the displacement path, and flight processing is performed according to the optimized path to cut each piece to be cut.

[0129] Further, the performing path optimization on the displacement path includes:

[0130] Step B11, determining the exit point of the displacement path at the sub-graph;

[0131] Step B12, optimizing the sharp angle of the displacement path based on the lead-out point;

[0132] and / or

[0133] Step B13, determining the inflection point of the shift path between the sub-graphs;

[0134] Step B14, chamfering and optimizing the displacement path based on the inflection point.

[0135] In an operative manner, the step of determining the lead-out point of the displacement path at the sub-graph and the inflection point between the sub-graphs includes: obtaining all the lead-out points and inflection points of the displacement path in the flight processing graph; determining the target lead-out point and the target inflection point based on the user's selection instruction for all the lead-out points and inflection points; step B12 includes optimizing the displacement path based on the target lead-out point; and step B13 includes optimizing the chamfer of the displacement path based on the target inflection point. Optionally, when optimizing the displacement path corresponding to the flight processing graph, the default optimization object can be set to all the lead-out points and inflection points. In order to improve the usability of software tools such as laser plane cutting 2D-CAM software, they can be modified to modify the optimization object to the target lead-out point and target inflection point selected from all the lead-out points and all the inflection points after the user triggers the selection instruction, and the target lead-out point and target inflection point are determined by the selection instruction on the user graphical interface.

[0136] In an operative manner, the step of determining the lead-out point of the displacement path at the sub-graph and the inflection point between the sub-graphs includes: segmenting the flight processing graph to obtain different position areas; determining the target position area based on the user's selection instruction for the position area, and using the lead-out point and inflection point in the target position area as the target lead-out point and target inflection point; step B12 includes optimizing the sharp corners of the displacement path based on the target lead-out point; and step B13 includes optimizing the chamfer of the displacement path based on the target inflection point. Optionally, when optimizing the displacement path corresponding to the flight processing graph, in order to improve the usability of software tools such as laser plane cutting 2D-CAM software, the flight processing graph can be segmented into different position areas, and the specific segmentation method is not limited. Modify the optimization object to all the lead-out points and all the inflection points in the target position area selected by the user triggering the selection instruction as the target lead-out point and target inflection point, and determine the target lead-out point and target inflection point by selecting the instruction on the user graphical interface.

[0137] In an practicable manner, after step B11, the method further includes: displaying a first mark for the target lead-out point, and displaying a second mark different from the first mark for the target inflection point. Optionally, after determining the target lead-out point and the target inflection point, the target lead-out point is displayed as a first mark of a red dot, and the target inflection point is displayed as a second mark of a green dot. In this way, the target lead-out point and the target inflection point are displayed separately, further improving the usability of the flight processing software tool.

[0138] The leading point of the displacement path in a sub-graph refers to the point from the current sub-graph to the next sub-graph, and the turning point of the displacement path between sub-graphs refers to the point between two adjacent sub-graphs. Figure 8 and Fig. 9 , points A, C, D and E are the lead-in points; refer to Fig.10 , point A and point E are the lead-out points, and point B, point C and point D are the inflection points. Based on the lead-out points and inflection points, the shift path is optimized.

[0139] Further, when the path optimization method includes sharp corner optimization, the step of performing sharp corner optimization on the displacement path based on the lead-out point includes:

[0140] Step B121, determining whether to retain the sharp corner of the displacement path;

[0141] Step B122, if the sharp corner of the displacement path is retained, generating the displacement path in a straight line leading manner at the leading point;

[0142] Step B123, if the sharp corner of the displacement path is not to be retained, generating the displacement path in a tangent arc leading-out manner at the leading-out point;

[0143] When the path optimization method includes chamfer optimization, the step of performing chamfer optimization on the displacement path based on the inflection point includes:

[0144] Step B131, determining whether to perform smoothing processing on the displacement path;

[0145] Step B132: If the displacement path is smoothed, chamfer the inflection points on the displacement path.

[0146] In an practicable manner, step B121 includes displaying a first window at each of the lead-out points for determining whether to retain the sharp corners of the displacement path; and determining whether to retain the sharp corners of the displacement path at the lead-out points of each sub-graphic based on a selection instruction of any of the first windows. Optionally, a hidden dialog box is set at each lead-out point, and when the user's cursor moves to the lead-out point, a first window for determining whether to retain the sharp corners of the displacement path is automatically popped up. The user triggers a selection instruction of whether to retain the sharp corners of the displacement path at the lead-out points of each sub-graphic based on any of the first windows, thereby determining whether to retain the sharp corners of the displacement path.

[0147] In an practicable manner, step B131 includes displaying a second window at each inflection point indicating whether to perform smoothing on the displacement path; and determining whether to perform smoothing on the inflection points of the displacement path between each sub-graph based on a selection instruction of any second window. Optionally, a hidden dialog box is provided at each inflection point, and when the user's cursor moves to the inflection point, a second window indicating whether to perform smoothing on the displacement path is automatically popped up. The user triggers a selection instruction of whether to perform smoothing on all inflection points on the displacement path based on any second window, thereby determining whether to perform smoothing on the displacement path.

[0148] In an practicable manner, the first window and the second window include selection keys corresponding to all the lead-out points and all the inflection points, and the target lead-out points to be retained and the target inflection points to be smoothed are selected based on the selection keys. Optionally, all the lead-out points and all the inflection points in the first window and the second window are set to be selectable, and the user can select the target lead-out points to be retained and the target inflection points to be smoothed based on the corresponding selection keys, thereby determining whether to retain the sharp corners of the displacement path at the target lead-out points, and determining whether to perform chamfer optimization on the displacement path at the target inflection points.

[0149] First, determine whether to keep the sharp corners, that is, whether to keep the original curvature at the lead-out point or to transition with an arc segment. Second, select the lead-out type of the displacement path based on the sharp corner retention setting selected by the user. If the sharp corners need to be kept, the displacement path is led out based on a straight line at the lead-out point. If the sharp corners do not need to be kept, the displacement path is led out based on a tangent arc at the lead-out point. Figure 8 As shown in , when point A needs to keep a sharp angle, line segment AB is a straight line and BC is an arc; Fig. 9 As shown in , when point D does not need to retain the sharp corner, it is directly drawn by the DE arc. In addition, according to the smoothing setting selected by the user, it is selected whether to chamfer the turning point on the shift path. Fig.10 As shown, chamfering operations are performed on the three inflection points B, C, and D to avoid damaging sharp corners and ensure the smoothness of the displacement path.

[0150] Further, based on the first embodiment of the present application, in another embodiment of the present application, after step S20, the following is further included:

[0151] The on-the-fly processing graphic corresponding to the shift path is restored based on the graphic backup of the on-the-fly processing graphic or the graphic parameters of the sub-graphic.

[0152] When adding a shift path during trajectory planning, the sub-graphic type will be modified, affecting the normal use of other processes. For example, when adding a shift path, the original rectangular sub-graphic will be disassembled and converted into four straight lines, and the type of the graphic will change from rectangular to straight line. If other processes require the use of rectangles, the straight lines after disassembly and conversion cannot call the original rectangles, thus affecting the normal use of other processes. For example, when adding lead-in and lead-out lines to a sub-graphic, a closed sub-graphic is required. For a separate non-closed sub-graphic that has been split, lead-in and lead-out lines cannot be added to it; for another example, in other processes, the sub-graphics before the split conversion need to be sorted, and they need to be restored to the previous sub-graphics. Therefore, in order not to affect other processes, the graphic type and graphic data before and after the flight processing cannot be changed.

[0153] Furthermore, after step S20, it also includes: backing up the flight processing graphic, or recording the graphic parameters of the sub-graphics in the flight processing graphic; after automatically planning and generating the displacement path of the flight processing graphic, calling the backed-up flight processing graphic, or rebuilding the sub-graphics according to the graphic parameters.

[0154] The graphic parameters of the sub-graphic include the sub-graphic outline, start point coordinates, and end point coordinates. When generating a displacement path, the sub-graphic type will be changed according to the sub-graphic outline, start point coordinates, and end point coordinates. For example, a rectangle will be split into straight lines. However, this process is reversible. The straight lines can be connected end to end with reference to the outline according to the start point coordinates and end point coordinates to restore the original rectangle. In this way, the original graphic type is maintained when adding a displacement path to avoid abnormalities in subsequent processes.

[0155] In addition, an embodiment of the present invention further provides a flight processing device, the device comprising:

[0156] An identification module, used to obtain a flying processing graph of a workpiece to be processed, and identify a sub-graph of a workpiece to be cut in the flying processing graph;

[0157] A generating module, used for determining a trajectory planning type based on the sub-graph, and generating a displacement path of the flight processing graph according to the trajectory planning type;

[0158] The control module is used to control the laser plane cutting equipment to cut the workpiece to be processed according to the displacement path to obtain the workpiece to be cut.

[0159] Optionally, the device further includes a determining module, configured to:

[0160] determining whether an intersection between the displacement path and the sub-graphic outline of the piece to be cut is allowed;

[0161] If it is not allowed, an avoidance path avoiding the sub-graph is generated, and the avoidance path is used as the displacement path.

[0162] Optionally, the determining module is further used to:

[0163] By traversing each of the sub-graphs, determining whether there is a first type of sub-graph that cannot be avoided in each of the sub-graphs;

[0164] If so, generating avoidance paths for each sub-graph except the first type of sub-graph;

[0165] If it does not exist, then a path with the shortest moving length is selected as the avoidance path among the paths avoiding all the sub-graphs.

[0166] Optionally, the control module is further used to:

[0167] Performing path optimization on the displacement path to obtain an optimized path, wherein the path optimization method includes at least one of chamfer optimization and sharp corner optimization;

[0168] According to the optimized path, the laser plane cutting device is controlled to cut the workpiece to obtain the workpiece.

[0169] Optionally, the control module is further used to:

[0170] Determine the exit point of the displacement path at the sub-graph;

[0171] Optimizing the sharp corners of the displacement path based on the lead-out point;

[0172] and / or

[0173] Determining an inflection point of the displacement path between the sub-graphs;

[0174] The displacement path is chamfer-optimized based on the inflection point.

[0175] Optionally, the control module is further used to:

[0176] When the path optimization method includes sharp corner optimization, determining whether to retain the sharp corner of the displacement path;

[0177] If the sharp corner of the displacement path is retained, the displacement path is generated in a straight line leading manner at the leading-out point;

[0178] If the sharp corner of the displacement path is not retained, the displacement path is generated at the lead-out point in a tangent arc lead-out manner;

[0179] The step of chamfering the displacement path based on the inflection point comprises:

[0180] When the path optimization method includes chamfer optimization, determining whether to perform smoothing on the displacement path;

[0181] If the displacement path is smoothed, the inflection points on the displacement path are chamfered.

[0182] Optionally, the device further comprises a group module, configured to:

[0183] After the step of generating the displacement path of the flight processing figure according to the trajectory planning type,

[0184] The outline of the sub-graphic and the displacement path are grouped and merged to generate a flying processing path.

[0185] The flight processing device provided by the present invention adopts the flight processing method in the above embodiment to solve the technical problem of poor usability of flight processing software tools in the prior art. Compared with the prior art, the beneficial effects of the flight processing device provided by the embodiment of the present invention are the same as the beneficial effects of the flight processing method provided by the above embodiment, and other technical features in the flight processing device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0186] In addition, an embodiment of the present invention also proposes a flight processing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the flight processing method as described in any one of the above items.

[0187] In addition, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the flight processing method as described in any one of the above items are implemented.

[0188] Among them, the steps implemented when the computer program running on the processor is executed can refer to the various embodiments of the flight processing method of the present invention, and will not be repeated here.

[0189] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0190] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0191] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a computer storage medium (such as a Flash storage device, ROM / RAM, a disk, or an optical disk), including a number of instructions for enabling a controller in a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) for controlling the storage medium to perform data read and write operations to execute the methods described in each embodiment of the present invention.

[0192] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A flying processing method, characterized in that: The on-the-fly processing method is applied to a laser plane cutting device, and comprises the following steps: Acquire a flying machining pattern of a workpiece to be machined, and identify a sub-pattern of the workpiece to be cut in the flying machining pattern; Determine the trajectory planning type based on the sub-graph, and generate the displacement path of the flight processing graph according to the trajectory planning type, wherein the trajectory planning type refers to the flight type corresponding to the flight processing graph composed of the sub-graphs when performing the flight processing trajectory planning, and the automatically identified flight types include: circle, rectangle, waist-shaped hole, and mixed graph; According to the displacement path, controlling the laser plane cutting device to cut the workpiece to be processed to obtain the workpiece to be cut; Before the step of determining the trajectory planning type based on the sub-graph, the method further includes: Detecting the light leakage state of the laser head and determining the light leakage rate of the laser head; or, Setting options to determine whether to allow passing through the sprite outline; If the light leakage rate is greater than a preset light leakage rate threshold, or the setting option is a setting option that does not allow the sub-graphic outline to pass through, then determining that no intersection between the displacement path and the sub-graphic outline of the piece to be cut is allowed; generating an avoidance path that avoids the sub-graph, and using the avoidance path as the displacement path; The step of generating an avoidance path that avoids the sub-graph comprises: By traversing each of the sub-graphs, determining whether there is a first type of sub-graph that cannot be avoided in each of the sub-graphs; If so, generating avoidance paths for each sub-graph except the first type of sub-graph; If it does not exist, then a path with the shortest moving length is selected as the avoidance path among the paths avoiding all the sub-graphs.

2. The on-the-fly machining method according to claim 1, characterized in that: The step of controlling the laser plane cutting device to cut the workpiece to be processed according to the displacement path to obtain the workpiece to be cut comprises: Performing path optimization on the displacement path to obtain an optimized path, wherein the path optimization method includes at least one of chamfer optimization and sharp corner optimization; According to the optimized path, controlling the laser plane cutting device to cut the workpiece to be processed to obtain the workpiece to be cut; The step of optimizing the displacement path comprises: Determine the exit point of the displacement path at the sub-graph; When the path optimization method includes sharp corner optimization, determining whether to retain the sharp corner of the displacement path; If the sharp corner of the displacement path is retained, the displacement path is generated in a straight line leading manner at the leading-out point; If the sharp corner of the displacement path is not retained, the displacement path is generated at the lead-out point in a tangent arc lead-out manner; and / or Determining an inflection point of the displacement path between the sub-graphs; When the path optimization method includes chamfer optimization, determining whether to perform smoothing on the displacement path; If the displacement path is smoothed, the inflection points on the displacement path are chamfered.

3. The on-the-fly machining method according to claim 1, characterized in that: After the step of generating the displacement path of the flight processing graphic according to the trajectory planning type, the method further includes: The outline of the sub-graphic and the displacement path are grouped and merged to generate a flying processing path.

4. A flight processing device, characterized in that: The device comprises: An identification module, used to obtain a flying processing graph of a workpiece to be processed, and identify a sub-graph of a workpiece to be cut in the flying processing graph; A generating module, used for determining a trajectory planning type based on the sub-graph, and generating a displacement path of the flight processing graph according to the trajectory planning type, wherein the trajectory planning type refers to the flight type corresponding to the flight processing graph composed of the sub-graphs when performing the trajectory planning of the flight processing, and the automatically identified flight types include: circle, rectangle, waist-shaped hole, and mixed graph; A control module, used for controlling the laser plane cutting device to cut the workpiece to be processed according to the displacement path to obtain the workpiece to be cut; A determination module is used to detect the light leakage state of the laser head and determine the light leakage rate of the laser head; or, determine whether a setting option of passing through a sub-graphic outline is allowed; if the light leakage rate is greater than a preset light leakage rate threshold, or the setting option is a setting option that does not allow passing through the sub-graphic outline, determine that no intersection between the displacement path and the sub-graphic outline of the piece to be cut is allowed; generate an avoidance path that avoids the sub-graphic, and use the avoidance path as the displacement path; by traversing each of the sub-graphics, determine whether there is a first type of sub-graphic that cannot be avoided in each of the sub-graphics; if so, generate an avoidance path for each sub-graphic except the first type of sub-graphic; if not, select a path with the shortest moving length as the avoidance path among the paths that avoid all the sub-graphics.

5. A laser plane cutting device, characterized in that: The laser plane cutting device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the on-the-fly processing method according to any one of claims 1 to 3.

6. A computer storage medium, characterized in that: The computer storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the on-the-fly processing method according to any one of claims 1 to 3 are implemented.