Method, device and equipment for achieving concave envelope line frame walking in plate cutting process and medium

By using the concave envelope method for border routing, the problem of misjudgment of boundary deviation on irregular boards by traditional rectangular border routing is solved, achieving higher board utilization and processing efficiency, and enhancing the reliability and intuitiveness of operation.

CN121373833APending Publication Date: 2026-01-23JINAN BODOR LASER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511836041.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-08
Publication Date
2026-01-23

AI Technical Summary

Technical Problem

When dealing with irregular boards, the traditional rectangular border method is prone to misjudging the boundary, which affects the utilization rate of the board and the production efficiency, and cannot adapt to the boundary of irregular boards.

Method used

The concave envelope method is adopted. By generating a closed polyline along a preset outward spacing, it closely follows the graphic to be processed and allows concave segments. Combined with the CAM processing tools and rolling ball algorithm of the laser cutting CNC system, a concave envelope is generated and converted into trajectory data that can be executed by the laser cutting system. This drives the laser cutting head to move along the concave envelope path and indicates the red light.

Benefits of technology

It improves the utilization rate of sheet materials, reduces material waste, enhances the intuitiveness and reliability of operation, improves processing efficiency, and adapts to complex shapes and irregular sheet materials.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121373833A_ABST
    Figure CN121373833A_ABST
Patent Text Reader

Abstract

The invention provides a method, device, equipment and medium for achieving concave envelope line frame walking in the plate cutting process, and belongs to the technical field of laser machining. The method comprises the steps that a to-be-machined graph selection instruction of a user is responded, and contour data of a graph selected by the user is obtained; on the basis of contour data of the selected graph, a CAM processing tool in a laser cutting numerical control system is called for contour merging and external expansion calculation, and a closed polyline which is close to all the graphs to be machined along a preset external expansion interval and allows to have inward concave sections is generated and serves as a concave envelope line; the concave envelope line is converted into frame walking track data which can be executed in a laser cutting numerical control system; and calling and executing the frame walking track data through the laser cutting control system, driving the laser cutting head to move along the concave envelope line path, and starting the indication red light to simulate the frame walking path. The frame is arranged through the concave envelope lines, the plate utilization rate is increased, material waste is reduced, and the machining efficiency and reliability are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of laser processing technology, specifically relating to a method, apparatus, equipment, and medium for achieving concave envelope line edge routing during sheet metal cutting. Background Technology

[0002] Sheet cutting is a commonly used process in laser processing. Edge trimming is an important auxiliary step before sheet cutting. It is mainly used to indicate the actual position range of the image to be processed on the sheet through laser infrared indication, thereby helping operators to judge whether the material is misplaced and whether the graphic is completely within the sheet, so as to avoid the cutting head moving aimlessly or processing beyond the boundary.

[0003] Currently, the border-tracking method in the laser processing industry typically generates a rectangular bounding box based on the set of all graphics to be processed, and then performs red light teaching along this rectangular bounding box. The specific steps include: selecting the graphics to be processed; the system calculating the bounding rectangles of all graphics; generating the rectangular border-tracking trajectory; and activating the border-tracking function. This method is simple and intuitive to operate on regular, full-size boards. However, in actual production, to save materials, the boards are often reused, resulting in irregularly shaped scrap boards that may contain already cut areas. In this case, if the traditional rectangular border-tracking method is still used, the generated rectangular boundary may exceed the actual boundary of the scrap board, while the actual image to be processed may still be completely within the scrap board. This situation can lead to operators misjudging the situation as unprocessable due to the red light teaching "going out of bounds," thus affecting board utilization and production efficiency.

[0004] Therefore, there is an urgent need for a border-tracing method that can adapt to the boundaries of irregular boards, so that the border-tracing trajectory can better match the actual outer contour of the image to be processed, thereby improving the intuitiveness of operation and the reliability of processing. Summary of the Invention

[0005] In a first aspect, embodiments of this application provide a method for achieving a concave envelope line along a border during sheet metal cutting, comprising the following steps: S1. Respond to the user's command to select the graphic to be processed and obtain the outline data of the graphic selected by the user; S2. Based on the contour data of the selected graphic, call the CAM processing tool in the laser cutting CNC system to perform contour merging and expansion calculation, and generate a closed polyline that is close to all the graphics to be processed along the preset expansion distance and allows the existence of concave segments, as the concave envelope. S3. Convert the concave envelope into edge-tracing trajectory data that can be executed by the laser cutting CNC system; S4. The laser cutting control system calls and executes the edge-tracing trajectory data, drives the laser cutting head to move along the concave envelope path, and simultaneously turns on the indicator red light to simulate the edge-tracing path.

[0006] Furthermore, the specific steps of step S1 are as follows: S11. The human-machine interface (HMI) of the laser cutting CNC system responds to the user's selection operation of the graphic to be processed in the graphic preview area and generates the corresponding graphic selection instruction; S12. Parse the graphic selection command, determine the selected graphic objects to be processed, and generate a list of identifiers for the selected graphic objects; S13. Based on the identifier list of the selected graphic object, extract the corresponding contour geometry data from the graphic database associated with the laser cutting CNC system or the current machining task file; The contour geometry data includes the endpoint coordinates of the straight line segments that constitute the image boundary and / or the endpoint coordinates, center coordinates, radius, and direction information of the arc segments. S14. Use all the extracted contour geometry data to construct the original contour set List1.

[0007] Furthermore, the specific steps of step S2 are as follows: S21. The HMI (Human-Machine Interface) of the laser cutting CNC system responds to the envelope creation command and calls the CAM (Computer-Aided Processing) tool in the laser cutting CNC system to trigger the interface for activating the envelope parameter settings. S22. The outer spacing D set by the user is responded to through the envelope parameter setting interface; if the user does not select it, the default value of the laser cutting CNC system is used as the outer spacing D. S23. Based on the original contour line set List1 and the outer spacing D, call the graphic compensation algorithm in the CAM processing tool to calculate and generate a closed concave envelope; S24. Send the generated concave envelope graphic data to the human-computer interaction interface (HMI) and display it visually in the graphic preview area with preset colored lines.

[0008] Furthermore, the specific steps of step S23 are as follows: S231. Perform a merge preprocessing on the original contour set List1 to obtain the processed polyline contour set List2, and determine the number of continuous closed contours in the polyline contour set List2. If a unique continuous closed contour is obtained, proceed to step S232; If multiple closed contours that are separate from each other are obtained, proceed to step S233; S232. Call the equidistant outward expansion compensation algorithm on the only continuous closed contour in the concave envelope to generate the concave envelope, and proceed to step S24; S233. Based on the polyline contour set List2 and the outer spacing D, the rolling ball algorithm is used to calculate the concave hull and generate the final concave envelope.

[0009] Furthermore, the specific steps of step S231 are as follows: Perform orientation unification processing on all contour line segments in the original contour line set List1, adjusting the direction to a uniform counterclockwise direction; Identify the non-closed shapes in the original contour set List1, and construct each closed shape into a closed shape by using a line segment endpoint connection algorithm or by introducing virtual connecting line segments; Call the union function Union(List1) in the polygon Boolean operation library to perform a union calculation on all closed shapes and generate a set of merged polyline contours List2.

[0010] Furthermore, the specific steps of step S233 are as follows: Discretize each contour in the polyline contour set List2 into a point set, merge all points in the point set to generate the total discrete point set PointList1; Sort the points in the total discrete point set PointList1: Sort by Y coordinate in ascending order; if the Y coordinates are the same, sort by X coordinate in ascending order. The initial rolling ball radius R of the rolling ball algorithm is determined as follows: For each point Pi in the total discrete point set PointList1, calculate the Euclidean distance to the remaining points in PointList1; Sort the Euclidean distances, determine the second nearest neighbor point P{i,2}, and record the distance. ; Take all distances The maximum value in the range is used as the initial rolling ball radius R: ; Starting from the first point in the sorted total discrete point set PointList1, the rolling ball algorithm is executed with the initial rolling ball, iteratively adding new points that meet the conditions to the concave hull point set until no new points can be added. The final closed contour is the concave envelope.

[0011] Furthermore, the specific steps of step S3 are as follows: S31. Based on the concave envelope, call the CAM processing tool of the laser cutting CNC system to calculate the continuous trajectory point set PointList2 of the laser cutting head moving along the concave envelope; S32. Through the human-machine interface (HMI) of the laser cutting CNC system, convert the continuous trajectory point set PointList2 into a G-code file for the edge walking that conforms to the specifications of the laser cutting CNC system; S33. In the laser cutting control system, the edge-tracing G-code file is called in the subroutine executed before processing to drive the laser cutting head to move along the concave envelope path, and the indicator red light is turned on simultaneously.

[0012] Secondly, embodiments of this application also provide a device for realizing the concave envelope line along the edge during the plate cutting process, comprising: The graphic selection and data acquisition module is used to respond to the user's graphic selection command and acquire the outline data of the graphic selected by the user; The concave envelope generation module is used to call the CAM processing tool in the laser cutting CNC system to perform contour merging and expansion calculation based on the contour data of the selected graphic, and generate a closed polyline that is close to all the graphics to be processed along the preset expansion distance and allows the existence of concave segments, as the concave envelope. The trajectory data conversion module is used to convert the concave envelope into a border trajectory data that can be executed by the laser cutting CNC system; The edge-tracing execution control module is used to call and execute the edge-tracing trajectory data through the laser cutting control system, drive the laser cutting head to move along the concave envelope path, and at the same time turn on the indicator red light to simulate the edge-tracing path.

[0013] Thirdly, embodiments of this application also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the steps of the method for implementing a concave envelope line along the edge during the plate cutting process as described in the first aspect.

[0014] Fourthly, embodiments of this application also provide a storage medium storing a computer program thereon, wherein when the computer program is executed by a processor, it implements the steps of the method for implementing a concave envelope line along the edge during the plate cutting process as described in the first aspect.

[0015] As can be seen from the above technical solutions, this application has the following advantages: The method, apparatus, equipment, and medium provided in this application for realizing concave envelope border routing during sheet metal cutting, by generating concave envelope border routing, can better fit the actual boundary of irregular sheet metal, avoiding the boundary misjudgment caused by traditional rectangular border routing methods, thereby ensuring safe processing on the scrap sheet and reducing material waste; it allows operators to more intuitively judge whether the graphic to be processed is within the sheet metal range, reducing the time spent on repeated checks and adjustments due to misjudgment, speeding up the production process, and improving processing efficiency; using laser red light to indicate the concave envelope clearly shows the actual position of the graphic to be processed, reducing processing errors caused by boundary judgment errors, and improving the reliability and safety of processing; it can handle complex graphics and irregular sheet metal, supports multiple graphic selection methods and contour processing algorithms, is suitable for different laser cutting processing scenarios, and meets different processing needs. Attached Figure Description

[0016] To more clearly illustrate the technical solution of this application, the accompanying drawings used in the description will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a flowchart illustrating the method for achieving a concave envelope line along the edge during the sheet metal cutting process of the present invention.

[0018] Figure 2 This is a schematic diagram of the rectangular boundary frame during the cutting process of sheet metal.

[0019] Figure 3 This is a schematic diagram of the concave envelope line of the present invention.

[0020] Figure 4 This is a schematic diagram of the device for achieving concave envelope line edge routing during the plate cutting process of the present invention. Detailed Implementation

[0021] The various embodiments of this disclosure will be described more fully in the following detailed steps of the method for achieving a concave envelope along the edge during the sheet metal cutting process. This disclosure may have various embodiments, and adjustments and changes may be made therein. However, it should be understood that there is no intention to limit the various embodiments of this disclosure to the specific embodiments disclosed herein, but rather this disclosure should be understood to cover all adjustments, equivalents, and / or alternatives falling within the spirit and scope of the various embodiments of this disclosure.

[0022] For example, in laser processing, sheet metal cutting is a common process, while edge trimming is a crucial auxiliary step before processing. It uses laser infrared indicators to display the position and range of the graphic to be processed on the sheet metal, helping operators determine whether the material is offset and whether the graphic is completely within the sheet metal, thus preventing the cutting head from running aimlessly or processing beyond the specified boundaries.

[0023] Currently, the laser processing industry generally adopts a method based on the set of graphics to be processed to generate, such as... Figure 2 The method for following the outline of a rectangular bounding box is shown, with red light teaching along this rectangle. The specific steps are: select the graphic to be processed, calculate the circumscribed rectangle, generate the rectangular outline path, and start the outline function. This method is simple to operate on regular full-size boards, but in actual production, to save materials, leftover boards are often irregularly shaped and have pre-cut areas inside. In this case, the traditional rectangular outline method may cause the boundary to exceed the range of the leftover board. Although the graphic to be processed is still within the board, the operator may misjudge that it cannot be processed due to the red light going out of bounds, thus affecting the board utilization rate and production efficiency.

[0024] Therefore, there is an urgent need for a border-tracing method that can adapt to the boundaries of irregular boards, so that the border-tracing trajectory can better fit the actual outer contour of the graphic to be processed, thereby improving the intuitiveness of operation and the reliability of processing.

[0025] To address the aforementioned problems, this embodiment provides a method for achieving concave envelope lines along the edge during sheet metal cutting, such as... Figure 3 As shown, by using a concave envelope to create the border, the utilization rate of the sheet material is improved, material waste is reduced, and processing efficiency and reliability are enhanced.

[0026] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0027] Please see Figure 1 The diagram shows a flowchart of a method for achieving a concave envelope along a border during the cutting process of a sheet metal in a specific embodiment. The method includes the following steps: S1. Respond to the user's command to select the graphic to be processed and obtain the outline data of the graphic selected by the user; It should be noted that by responding to the user's graphic selection command, the outline data of the graphic to be processed is quickly obtained, ensuring that the starting point of the entire process is consistent with the user's needs. S2. Based on the contour data of the selected graphic, call the CAM processing tool in the laser cutting CNC system to perform contour merging and expansion calculation, and generate a closed polyline that is close to all the graphics to be processed along the preset expansion distance and allows the existence of concave segments, as the concave envelope. It should be noted that contour merging and expansion calculations based on contour data generate concave envelopes, which can effectively adapt to the shape of irregular plates, avoid the limitations of traditional rectangular bounding boxes, and improve plate utilization and processing reliability. S3. Convert the concave envelope into edge-tracing trajectory data that can be executed by the laser cutting CNC system; It should be noted that the concave envelope is converted into trajectory data that can be executed by the laser cutting CNC system to ensure that the generated path can be recognized and executed by the actual equipment; S4. The laser cutting control system calls and executes the edge-tracing trajectory data to drive the laser cutting head to move along the concave envelope path, while simultaneously turning on the indicator red light to simulate the edge-tracing path. It should be noted that by driving the cutting head along the concave envelope through the laser cutting control system and activating the indicator red light to simulate the path, the operator can intuitively see the actual position of the graphic to be processed, avoiding misjudgment and processing errors, and enhancing the safety and reliability of the operation.

[0028] This embodiment generates a concave envelope that fits the boundary of the irregular board material, avoiding the misjudgment of boundary overflow caused by the traditional rectangular border method, thereby improving the utilization rate of the board material and reducing material waste. At the same time, the laser red light indicates the path, enhancing the intuitiveness and reliability of the operation, improving processing efficiency, and adapting to complex processing needs.

[0029] Furthermore, as a refinement and extension of the specific implementation of the above embodiments, in order to fully illustrate the specific implementation process in this embodiment, another method for realizing concave envelope edge-running during plate cutting is provided. Taking a mechanical processing workshop needing to laser-cut an irregular scrap plate with a size of 2000mm×1500mm as an example, the scrap plate is the remaining part after the secondary use of a rectangular whole plate. There are multiple cut hollow areas (dispersed circles and rectangles) in the plate. The graphic to be processed is 3 irregularly shaped parts (including straight line segments and arc segments). It is necessary to confirm whether the parts are completely within the range of the scrap plate through the edge-running function to avoid the cutting head running empty or processing beyond the boundary. In this embodiment, the laser cutting CNC system is equipped with a human-machine interface (HMI) with a graphic preview function, built-in CAM processing tools and polygon Boolean operation library (using the open-source Clipper library), supports G-code generation and execution, indicates that the center of the red light spot is coaxial with the center of the laser cutting head spot, and the default value of the outward spacing is set to 5mm (which can be customized by the user). The method includes the following steps: S1. Respond to the user's command to select the graphic to be processed, and obtain the contour data of the selected graphic; the specific steps of step S1 are as follows: S11. The human-machine interface (HMI) of the laser cutting CNC system responds to the user's selection operation of the graphic to be processed in the graphic preview area and generates the corresponding graphic selection instruction; Specifically, the selection operation includes clicking, selecting by box, or checking from a list of loaded processing task files; For example, through the HMI interface of the laser cutting CNC system, the user selects three irregularly shaped parts to be processed in the graphic preview area using the "box selection" method. The system automatically generates the corresponding graphic selection instruction, which includes the coordinate range of the box selection area and the preliminary identification information of the selected graphic. S12. Parse the graphic selection command, determine the selected graphic objects to be processed, and generate a list of identifiers for the selected graphic objects; For example, the system parses the graphic selection instruction, matches the graphic objects in the current processing task file according to the selection range, determines 3 selected irregular parts to be processed, and generates an identifier list ID_List=[Part_001,Part_002,Part_003], where each identifier corresponds to a unique number of a graphic to be processed; S13. Based on the identifier list of the selected graphic object, extract the corresponding contour geometry data from the graphic database associated with the laser cutting CNC system or the current machining task file; The contour geometry data includes the endpoint coordinates of the straight line segments that constitute the image boundary and / or the endpoint coordinates, center coordinates, radius, and direction information of the arc segments. For example, the system extracts the contour geometry data of each graphic to be processed from the current processing task file based on the identifier list ID_List: For Part_001 (containing 2 straight line segments and 1 circular arc segment): the endpoint coordinates of straight line segment 1 are (300, 400) and (500, 400); the endpoint coordinates of straight line segment 2 are (500, 400) and (500, 600); the endpoint coordinates of the circular arc segment are (500, 600) and (300, 600), the center coordinates are (400, 600), the radius is 100mm, and the direction is counterclockwise.

[0030] For Part_002 (containing 3 line segments): the endpoint coordinates are (600, 300), (800, 300), (800, 500), and (600, 500) (closed figure).

[0031] For Part_003 (containing 1 straight line segment and 2 circular arc segments): the endpoint coordinates of the straight line segment are (400, 700) and (700, 700); the endpoint coordinates of the first circular arc segment are (700, 700) and (700, 900), the center coordinates are (700, 800), the radius is 100mm, and the direction is counterclockwise; the endpoint coordinates of the second circular arc segment are (700, 900) and (400, 900), the center coordinates are (550, 900), the radius is 150mm, and the direction is counterclockwise. S14. Construct the original contour line set List1 using all extracted contour geometry data; For example, all extracted contour geometry data are integrated to construct an original contour line set List1. List1 contains all straight line segments and arc segments of Part_001, Part_002, and Part_003, totaling 7 contour line segments (4 straight line segments + 3 arc segments). S2. Based on the contour data of the selected graphic, the CAM processing tool in the laser cutting CNC system is called to perform contour merging and expansion calculations, generating a closed polyline that closely follows all the graphics to be processed along a preset expansion spacing and allows for concave segments, serving as the concave envelope; the specific steps of step S2 are as follows: S21. The HMI (Human-Machine Interface) of the laser cutting CNC system responds to the envelope creation command and calls the CAM (Computer-Aided Processing) tool in the laser cutting CNC system to trigger the interface for activating the envelope parameter settings. For example, when a user clicks the "Create Envelope" button on the HMI interface, the system responds with the command to create an envelope, calls the CAM processing tool, and activates the envelope parameter setting interface, which displays the outer spacing input box and "Confirm" and "Cancel" buttons. S22. The outer spacing D set by the user is responded to through the envelope parameter setting interface; if the user does not select it, the default value of the laser cutting CNC system is used as the outer spacing D. Wherein, the outward spacing D is the theoretical offset distance from the center of the laser cutting head spot to the outline of the graphic to be processed; For example, according to processing requirements, the user enters the outward spacing D=8mm (greater than the default value of 5mm, used to reserve cutting allowance) in the parameter setting interface, and clicks the "Confirm" button. The system records the outward spacing parameter; if the user does not enter it, the default value of 5mm will be used automatically. S23. Based on the original contour line set List1 and the outer spacing D, call the graphic compensation algorithm in the CAM processing tool to calculate and generate a closed concave envelope; For example, based on the original contour line set List1 and the outer spacing D=8mm, the graphic compensation algorithm in the CAM processing tool is called to generate the concave envelope in steps; The specific steps of step S23 are as follows: S231. Perform a merge preprocessing on the original contour set List1 to obtain the processed polyline contour set List2, and determine the number of continuous closed contours in the polyline contour set List2. If a unique continuous closed contour is obtained, proceed to step S232; If multiple closed contours that are separate from each other are obtained, proceed to step S233; For example, the original contour set List1 is analyzed. The three graphics to be processed are all closed contours that are separated from each other. Therefore, step S233 is entered to perform the multi-contour merging and concave hull calculation process. The specific steps of step S231 are as follows: Perform orientation unification processing on all contour line segments in the original contour line set List1, adjusting the direction to a uniform counterclockwise direction; Identify the non-closed shapes in the original contour set List1, and construct each closed shape into a closed shape by using a line segment endpoint connection algorithm or by introducing virtual connecting line segments; Call the union function Union(List1) in the polygon Boolean operation library to perform a union calculation on all closed shapes and generate a set of merged polyline contours List2; For example, the direction unification process is as follows: traverse all the contour segments in List1, and adjust the direction of the contour segments of Part_001, Part_002, and Part_003 to a counterclockwise direction to ensure the consistency of subsequent Boolean operations.

[0032] Closure check and processing: Check all the graphics in List1 to confirm that all three graphics to be processed are closed graphics, and no additional endpoint connection or virtual line segment introduction operation is required.

[0033] Union calculation: The Union(List1) function from the Clipper polygon Boolean operation library is called to perform a union calculation on the three closed shapes, merge overlapping boundaries, and generate a polyline contour set List2. List2 contains one polyline, which is formed by recombining all contour line segments in List1 after the union operation, and completely encloses the three shapes to be processed; S232. Call the equidistant outward expansion compensation algorithm on the only continuous closed contour in the concave envelope to generate the concave envelope, and proceed to step S24; Specifically, the function format of the compensation algorithm is as follows: OffsetContour(List1,D,“outside”) Among them, "outside" means to compensate from outside; S233. Based on the polyline contour set List2 and the outer spacing D, the rolling ball algorithm is used to calculate the concave hull and generate the final concave envelope. The specific steps of step S233 are as follows: Discretize each contour in the polyline contour set List2 into a point set, merge all points in the point set to generate the total discrete point set PointList1; Sort the points in the total discrete point set PointList1: Sort by Y coordinate in ascending order; if the Y coordinates are the same, sort by X coordinate in ascending order. The initial rolling ball radius R of the rolling ball algorithm is determined as follows: For each point Pi in the total discrete point set PointList1, calculate the Euclidean distance to the remaining points in PointList1; Sort the Euclidean distances, determine the second nearest neighbor point P{i,2}, and record the distance. ; Take all distances The maximum value in the range is used as the initial rolling ball radius R: ; Starting from the first point in the sorted total discrete point set PointList1, the rolling ball algorithm is executed with the initial rolling ball, iteratively adding new points that meet the conditions to the concave hull point set until no new points can be added. The final closed contour is the concave envelope. For example, discretization processing: the polyline contour in List2 is discretized into a set of points, and key nodes on the contour (endpoints of straight line segments, points of equal division of arc segments) are taken. A total of 50 discrete points are collected and merged to generate a total discrete point set PointList1. Some point coordinates are shown as (292,392), (508,392), (508,608), (292,608), (592,292), etc. Point set sorting: Sort the 50 points in PointList1 according to the rules. First, sort them in ascending order of Y coordinate. If the Y coordinates are the same, sort them in ascending order of X coordinate. The first point after sorting is P0(292,292) (the point with the smallest Y coordinate). Determine the initial rolling ball radius R: For each point Pi in PointList1, calculate its Euclidean distance to the other 49 points. For example, for P0(292,292), calculate the distance to the remaining points and find the second nearest neighbor point P0_2(300,300), which is 11.31 mm. Traverse all points, calculate the distance from each point to its second nearest neighbor, take the maximum value as 15.62mm, and set this value as the initial rolling ball radius R=15.62mm; Execute the rolling ball algorithm: Starting from the first sorted point P0, roll a ball with radius R=15.62mm along the outline of List2, iteratively determining whether points not added to the hull are within the range of the rolling ball. If they are, add them to the hull point set. Add points P1(300,300), P2(508,292), etc. to the hull in sequence until the rolling ball traverses all discrete points and no new points can be added. Finally, a closed concave envelope is formed. This envelope is close to the outer contour of the three graphics to be processed and forms an inner concave segment in the hollow area of ​​the scrap plate to avoid exceeding the boundary of the scrap plate. S24. Send the generated concave envelope graphic data to the human-computer interaction interface (HMI) and display it visually in the graphic preview area with preset colored lines. For example, the system sends the generated concave envelope graphic data to the HMI interface, where it is superimposed on the graphic preview area with a preset green line. The green envelope clearly wraps around the three graphics to be processed, and the user can intuitively view the positional relationship between the envelope and the boundary of the scrap plate. S3. Convert the concave envelope into edge-tracing trajectory data that can be executed by the laser cutting CNC system; the specific steps of step S3 are as follows: S31. Based on the concave envelope, call the CAM processing tool of the laser cutting CNC system to calculate the continuous trajectory point set PointList2 of the laser cutting head moving along the concave envelope; For example, based on the generated concave envelope, the trajectory planning function of the CAM processing tool is called to calculate the continuous trajectory point set PointList2 of the laser cutting head moving along the envelope; the trajectory point set is sampled at 1mm intervals, generating a total of 820 continuous trajectory points, each point containing X and Y coordinate information to ensure the smoothness of the cutting head movement; S32. Through the human-machine interface (HMI) of the laser cutting CNC system, convert the continuous trajectory point set PointList2 into a G-code file for the edge walking that conforms to the specifications of the laser cutting CNC system; For example, the system uses the code conversion module in the HMI interface to convert the continuous trajectory point set PointList2 into a frame-following G-code file conforming to the laser cutting CNC system specification. The file is named "Frame_Gcode.gcode". Some G-code examples are shown below: G00 X292 Y292 F5000 G01 X300 Y300 F3000 G01 X508 Y292 F3000 ... G01 X292 Y292 F3000 M30 Wherein, G00 represents rapid positioning, G01 represents linear interpolation, F is the movement speed, and M30 indicates the end of the program; S33. In the laser cutting control system, the edge-tracing G-code file is called in the subroutine executed before processing to drive the laser cutting head to move along the concave envelope path and simultaneously turn on the indicator red light; For example, in a laser cutting control system, the "Frame_Gcode.gcode" file is associated with the edge-tracing subroutine executed before processing, and the subroutine trigger condition is set to "automatic execution before processing starts" to ensure that the system automatically calls the G-code file before processing, drives the cutting head to move and turns on the indicator red light; S4. The laser cutting control system calls and executes the edge-tracing trajectory data to drive the laser cutting head to move along the concave envelope path, while simultaneously turning on the indicator red light to simulate the edge-tracing path. For example, when a user clicks the "Start Processing" button on the HMI interface, the system triggers the border-tracing subroutine, calls the "Frame_Gcode.gcode" file, and performs the following operations: The laser cutting control system drives the laser cutting head to move along the trajectory point set PointList2 of the concave envelope, and the moving speed is executed according to the preset F3000 (3000mm / min) in the G code; Simultaneously turn on the indicator red light, the center of the red light spot coincides with the center of the cutting head light spot, and moves along the concave envelope path to form a clear red outline on the surface of the scrap plate; The operator observes the red outline to confirm that it is completely within the range of the material plate and that the graphic to be processed is all wrapped by the red outline. After determining that the material is placed without deviation and the graphic does not exceed the boundary, the formal laser cutting process is started.

[0034] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0035] like Figure 4 As shown, the following is an embodiment of the apparatus for realizing concave envelope line edge routing during the plate cutting process provided by this disclosure. This system and the method for realizing concave envelope line edge routing during the plate cutting process in the above embodiments belong to the same inventive concept. For details not described in detail in the embodiments of the apparatus for realizing concave envelope line edge routing during the plate cutting process, please refer to the embodiments of the method for realizing concave envelope line edge routing during the plate cutting process described above.

[0036] The device includes: The graphic selection and data acquisition module is used to respond to the user's graphic selection command and acquire the outline data of the graphic selected by the user; The concave envelope generation module is used to call the CAM processing tool in the laser cutting CNC system to perform contour merging and expansion calculation based on the contour data of the selected graphic, and generate a closed polyline that is close to all the graphics to be processed along the preset expansion distance and allows the existence of concave segments, as the concave envelope. The trajectory data conversion module is used to convert the concave envelope into a border trajectory data that can be executed by the laser cutting CNC system; The edge-tracing execution control module is used to call and execute the edge-tracing trajectory data through the laser cutting control system, drive the laser cutting head to move along the concave envelope path, and at the same time turn on the indicator red light to simulate the edge-tracing path.

[0037] This embodiment achieves improved material utilization, reduced material waste, and enhanced processing efficiency and operational reliability by leveraging the interactive collaboration of the graphic selection and data acquisition module, the concave envelope generation module, the trajectory data conversion module, and the border execution control module, thus adapting to complex processing requirements.

[0038] The method for achieving a concave envelope along the edge during sheet metal cutting provided in this application embodiment can be applied to electronic devices. Those skilled in the art will understand that the electronic device structure involved in the embodiments of this invention does not constitute a limitation on the electronic device. An electronic device may include more or fewer components than illustrated, or combine certain components, or have different component arrangements. In the embodiments of this invention, electronic devices include, but are not limited to, laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the embodiments of this application described and / or claimed herein.

[0039] Electronic devices may include processors, external memory interfaces, internal memory, universal serial bus (USB) interfaces, charging management modules, power management modules, batteries, wireless communication modules, audio modules, speakers, microphones, sensor modules, buttons, cameras, displays, and SIM card interfaces, etc.

[0040] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0041] A processor may include one or more processing units, such as a central processing unit (CPU), an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.

[0042] The processor can serve as the nerve center and command center of an electronic device. The controller can generate operation control signals based on the instruction opcode and timing signals to control the fetching and execution of instructions.

[0043] The processor may also include memory for storing instructions and data. In some embodiments, the memory in the processor is a cache memory. This memory can store instructions or data that the processor has just used or that are used repeatedly. If the processor needs to use the instruction or data again, it can retrieve it directly from this memory. This avoids repeated accesses, reduces processor latency, and thus improves system efficiency.

[0044] The aforementioned electronic device implements the method of achieving concave envelope line tracing during the plate cutting process of this application. It responds to the user's selection command for the graphic to be processed, obtains the contour data of the selected graphic, and, based on the contour data, calls the CAM processing tool in the laser cutting CNC system to perform contour merging and expansion calculations. This generates a closed polyline that closely follows all the graphics to be processed along a preset expansion distance and allows for concave segments, serving as the concave envelope. The concave envelope is then converted into tracing trajectory data that can be executed by the laser cutting CNC system. The laser cutting control system calls and executes the tracing trajectory data, driving the laser cutting head to move along the concave envelope path, while simultaneously activating an indicator red light to simulate the tracing path. This achieves the beneficial effects of improving plate utilization, reducing material waste, and enhancing processing efficiency and reliability by using the concave envelope line tracing.

[0045] The storage medium provided in this application stores a program product that enables a method for implementing a concave envelope edge during the cutting of sheet metal.

[0046] The method for achieving concave envelope edge-tracing during sheet metal cutting includes: responding to the user's selection command for the graphic to be processed and obtaining the contour data of the selected graphic; based on the contour data of the selected graphic, calling the CAM processing tool in the laser cutting CNC system to perform contour merging and outward expansion calculations, generating a closed polyline that closely follows all the graphics to be processed along a preset outward expansion distance and allows for concave segments, as the concave envelope; converting the concave envelope into edge-tracing trajectory data that can be executed by the laser cutting CNC system; calling and executing the edge-tracing trajectory data through the laser cutting control system, driving the laser cutting head to move along the concave envelope path, and simultaneously activating the indicator red light to simulate the edge-tracing path.

[0047] In some possible implementations, the method for achieving a concave envelope along the edge during sheet metal cutting according to this disclosure can be implemented as a program product that includes program code. When the program product is run on a terminal device, the program code is used to cause the terminal device to perform the steps described in the "Exemplary Methods" section above according to various exemplary embodiments of this disclosure.

[0048] The storage medium disclosed herein may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.

[0049] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for achieving concave envelope line edge routing during sheet metal cutting, characterized in that, Includes the following steps: S1. Respond to the user's command to select the graphic to be processed and obtain the outline data of the graphic selected by the user; S2. Based on the contour data of the selected graphic, call the CAM processing tool in the laser cutting CNC system to perform contour merging and expansion calculation, and generate a closed polyline that is close to all the graphics to be processed along the preset expansion distance and allows the existence of concave segments, as the concave envelope. S3. Convert the concave envelope into edge-tracing trajectory data that can be executed by the laser cutting CNC system; S4. The laser cutting control system calls and executes the edge-tracing trajectory data, drives the laser cutting head to move along the concave envelope path, and simultaneously turns on the indicator red light to simulate the edge-tracing path.

2. The method for achieving a concave envelope along a border during sheet metal cutting according to claim 1, characterized in that, The specific steps of step S1 are as follows: S11. The human-machine interface (HMI) of the laser cutting CNC system responds to the user's selection operation of the graphic to be processed in the graphic preview area and generates the corresponding graphic selection instruction; S12. Parse the graphic selection command, determine the selected graphic objects to be processed, and generate a list of identifiers for the selected graphic objects; S13. Based on the identifier list of the selected graphic object, extract the corresponding contour geometry data from the graphic database associated with the laser cutting CNC system or the current machining task file; The contour geometry data includes the endpoint coordinates of the straight line segments that constitute the image boundary and / or the endpoint coordinates, center coordinates, radius, and direction information of the arc segments. S14. Use all the extracted contour geometry data to construct the original contour set List1.

3. The method for achieving a concave envelope along a border during sheet metal cutting according to claim 2, characterized in that, The specific steps of step S2 are as follows: S21. The HMI (Human-Machine Interface) of the laser cutting CNC system responds to the envelope creation command and calls the CAM (Computer-Aided Processing) tool in the laser cutting CNC system to trigger the interface for activating the envelope parameter settings. S22. The outer spacing D set by the user is responded to through the envelope parameter setting interface; if the user does not select it, the default value of the laser cutting CNC system is used as the outer spacing D. S23. Based on the original contour line set List1 and the outer spacing D, call the graphic compensation algorithm in the CAM processing tool to calculate and generate a closed concave envelope; S24. Send the generated concave envelope graphic data to the human-computer interaction interface (HMI) and display it visually in the graphic preview area with preset colored lines.

4. The method for achieving a concave envelope along a border during the sheet metal cutting process according to claim 3, characterized in that, The specific steps of step S23 are as follows: S231. Perform a merge preprocessing on the original contour set List1 to obtain the processed polyline contour set List2, and determine the number of continuous closed contours in the polyline contour set List2. If a unique continuous closed contour is obtained, proceed to step S232; If multiple closed contours that are separate from each other are obtained, proceed to step S233; S232. Call the equidistant outward expansion compensation algorithm on the only continuous closed contour in the concave envelope to generate the concave envelope, and proceed to step S24; S233. Based on the polyline contour set List2 and the outer spacing D, the rolling ball algorithm is used to calculate the concave hull and generate the final concave envelope.

5. The method for achieving a concave envelope along a border during sheet metal cutting according to claim 4, characterized in that, The specific steps of step S231 are as follows: Perform orientation unification processing on all contour line segments in the original contour line set List1, adjusting the direction to a uniform counterclockwise direction; Identify the non-closed shapes in the original contour set List1, and construct each closed shape into a closed shape by using a line segment endpoint connection algorithm or by introducing virtual connecting line segments; Call the union function Union(List1) in the polygon Boolean operation library to perform a union calculation on all closed shapes and generate a set of merged polyline contours List2.

6. The method for achieving a concave envelope along a border during sheet metal cutting according to claim 4, characterized in that, The specific steps of step S233 are as follows: Discretize each contour in the polyline contour set List2 into a point set, merge all points in the point set to generate the total discrete point set PointList1; Sort the points in the total discrete point set PointList1: Sort by Y coordinate in ascending order; if the Y coordinates are the same, sort by X coordinate in ascending order. The initial rolling ball radius R of the rolling ball algorithm is determined as follows: For each point Pi in the total discrete point set PointList1, calculate the Euclidean distance to the remaining points in PointList1; Sort the Euclidean distances, determine the second nearest neighbor point P{i,2}, and record the distance. ; Take all distances The maximum value in the range is used as the initial rolling ball radius R: ; Starting from the first point in the sorted total discrete point set PointList1, the rolling ball algorithm is executed with the initial rolling ball, iteratively adding new points that meet the conditions to the concave hull point set until no new points can be added. The final closed contour is the concave envelope.

7. The method for achieving a concave envelope along a border during sheet metal cutting according to claim 1, characterized in that, The specific steps of step S3 are as follows: S31. Based on the concave envelope, call the CAM processing tool of the laser cutting CNC system to calculate the continuous trajectory point set PointList2 of the laser cutting head moving along the concave envelope; S32. Through the human-machine interface (HMI) of the laser cutting CNC system, convert the continuous trajectory point set PointList2 into a G-code file for the edge walking that conforms to the specifications of the laser cutting CNC system; S33. In the laser cutting control system, the edge-tracing G-code file is called in the subroutine executed before processing to drive the laser cutting head to move along the concave envelope path, and the indicator red light is turned on simultaneously.

8. A device for achieving concave envelope line edge routing during sheet metal cutting, characterized in that, include: The graphic selection and data acquisition module is used to respond to the user's graphic selection command and acquire the outline data of the graphic selected by the user; The concave envelope generation module is used to call the CAM processing tool in the laser cutting CNC system to perform contour merging and expansion calculation based on the contour data of the selected graphic, and generate a closed polyline that is close to all the graphics to be processed along the preset expansion distance and allows the existence of concave segments, as the concave envelope. The trajectory data conversion module is used to convert the concave envelope into a border trajectory data that can be executed by the laser cutting CNC system; The edge-tracing execution control module is used to call and execute the edge-tracing trajectory data through the laser cutting control system, drive the laser cutting head to move along the concave envelope path, and at the same time turn on the indicator red light to simulate the edge-tracing path.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the method for achieving concave envelope line edge routing during the plate cutting process as described in any one of claims 1 to 7.

10. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method for implementing the concave envelope line edge-tracing during the plate cutting process as described in any one of claims 1 to 7.