Method and device for realizing layout result grouping processing based on double-beam cutting of numerical control system, processor and readable storage medium thereof
By adopting the double beam cutting method in the CNC cutting machine tool, combining the two grouping strategies of total path length and arrangement height, the problem of low cutting efficiency of many times in the existing technology is solved, and more efficient part cutting is achieved.
Patent Information
- Application Number
- CN202411493340.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2025-02-07
AI Technical Summary
The cutting efficiency of existing CNC cutting machine tools is low when there are many sampled parts.
The double beam cutting method based on CNC system is adopted. By dividing the arrangement results into two groups according to the total length of the path and the arrangement height, the arrangement results are divided into two groups, and the grouping results with small undulation heights of the division line are selected as the best choice.
A relatively uniform grouping process is achieved, and the two beams can cut two groups of parts at the same time, with a small difference in working time, which improves the cutting efficiency of parts.
Smart Images

Figure CN119396076A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mechanical processing, in particular to the field of numerical control system processing, and specifically refers to a method, device, processor and computer-readable storage medium thereof for realizing grouping processing of layout results based on double-beam cutting of a numerical control system. Background Art
[0002] At present, most CNC system cutting machines use single beam and single blade for cutting. When there are many parts to be arranged, the cutting efficiency is low. Summary of the invention
[0003] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a method, device, processor and computer-readable storage medium thereof for grouping arrangement results based on double-beam cutting of a numerical control system, which are easy to operate, have high cutting efficiency and a wide range of applications.
[0004] In order to achieve the above-mentioned object, the method, device, processor and computer-readable storage medium thereof for realizing grouping processing of nesting results based on double-beam cutting of a numerical control system of the present invention are as follows:
[0005] The method for realizing group processing of arrangement results based on double beam cutting of numerical control system is mainly characterized in that the method comprises the following steps:
[0006] (1) According to the strategy of equally dividing the total length of the path, the parts after layout are divided into two groups, upper and lower, and the height of the dividing line between the upper group and the lower group is calculated;
[0007] (2) According to the strategy of dividing equally according to the arrangement height, the arrangement parts are divided into two groups, upper and lower, and the height of the dividing line between the upper group and the lower group is calculated;
[0008] (3) The grouping results of the strategy with the smallest fluctuation height are selected.
[0009] Preferably, in the step (1), the arranged parts are divided into two groups, upper and lower, according to the strategy of equally dividing the total length of the path, which specifically includes the following steps:
[0010] (1.1) Arrange the parts after arrangement from left to right and from bottom to top to form a parts list;
[0011] (1.2) The parts are accumulated in order, and the path length is calculated after removing the duplicate edges;
[0012] (1.3) The part closest to 1 / 2 of the total length of the path is used as the grouping boundary. The parts before this part in the parts list are grouped into the lower group, and the remaining parts are grouped into the upper group.
[0013] Preferably, the calculation of the fluctuation height of the dividing line between the upper group and the lower group in step (1) is specifically as follows:
[0014] Calculate the lowest point height H of the upper group UMin , calculate the height H of the highest point of the lower group DMax , calculate the absolute value of the height difference between the two diff , which is the height of the dividing line between the upper group and the lower group.
[0015] Preferably, in the step (2), the arranged parts are divided into two groups, upper and lower, according to the strategy of dividing equally according to the arrangement height, which specifically includes the following steps:
[0016] (2.1) Obtain the total height Hnest of the nesting results, and use 1 / 2 of the total height as the grouping boundary;
[0017] (2.2) Parts whose lowest point is above the limit are placed in the upper group, and the remaining parts are placed in the lower group.
[0018] Preferably, the calculation of the fluctuation height of the dividing line between the upper group and the lower group in step (2) is specifically as follows:
[0019] Calculate the lowest point height H of the upper group UMin , calculate the height H of the highest point of the lower group DMax , calculate the absolute value of the height difference between the two diff , which is the fluctuation height of the dividing line between the upper group and the lower group.
[0020] Preferably, the step (3) specifically comprises the following steps:
[0021] Compare the dividing line fluctuation height H of the grouping results obtained by the two grouping strategies diff , adopt the strategy with smaller fluctuation height. If the fluctuation heights calculated by the two strategies are the same, the priority is to divide the total length of the path equally.
[0022] The main feature of the device for realizing grouping processing of layout results based on double beam cutting of a numerical control system is that the device comprises:
[0023] a processor configured to execute computer-executable instructions;
[0024] The memory stores one or more computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method for grouping the arrangement results based on the double beam cutting of the numerical control system are realized.
[0025] The processor for realizing grouping processing of layout results based on double-beam cutting of a numerical control system has the main feature that the processor is configured to execute computer-executable instructions. When the computer-executable instructions are executed by the processor, the various steps of the method for realizing grouping processing of layout results based on double-beam cutting of a numerical control system are realized.
[0026] The main feature of the computer-readable storage medium is that a computer program is stored thereon, and the computer program can be executed by a processor to implement the various steps of the above-mentioned method for grouping the arrangement results based on the double-beam cutting of the numerical control system.
[0027] The method, device, processor and computer-readable storage medium for realizing grouping processing of nesting results based on double beam cutting of numerical control system of the present invention are adopted. Based on two grouping strategies of equal division by total path length and equal division by nesting height, and then the grouping result with smaller fluctuation height of the dividing line is selected preferentially, the nesting results can be divided into two groups, upper and lower, more evenly, and two beams can cut the two groups at the same time, and the difference of their working time is small. Compared with single beam cutting, the efficiency of part cutting is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 Schematic diagram of a double-beam machine tool.
[0029] Figure 2 It is a schematic diagram of grouping results and dividing lines when a certain layout result is grouped according to the strategy of equally dividing the total length of the path in an embodiment of the method for grouping layout results based on double-beam cutting of a numerical control system of the present invention.
[0030] Figure 3 It is a schematic diagram of grouping results and dividing lines when a certain layout result is grouped according to a layout height bisection strategy in an embodiment of the method for realizing layout result grouping processing based on CNC system double-beam cutting of the present invention.
[0031] Figure 4 The present invention is a flow chart of a method for grouping and processing nesting results based on double-beam cutting of a numerical control system. DETAILED DESCRIPTION
[0032] In order to more clearly describe the technical content of the present invention, further description is given below in conjunction with specific embodiments.
[0033] The method for realizing grouping processing of layout results based on double beam cutting of numerical control system of the present invention comprises the following steps:
[0034] (1) According to the strategy of equally dividing the total length of the path, the parts after layout are divided into two groups, upper and lower, and the height of the dividing line between the upper group and the lower group is calculated;
[0035] (2) According to the strategy of dividing equally according to the arrangement height, the arrangement parts are divided into two groups, upper and lower, and the height of the dividing line between the upper group and the lower group is calculated;
[0036] (3) The grouping results of the strategy with the smallest fluctuation height are selected.
[0037] As a preferred embodiment of the present invention, in the step (1), the arranged parts are divided into two groups, upper and lower, according to the strategy of dividing the total length of the path equally, which specifically includes the following steps:
[0038] (1.1) Arrange the parts after arrangement from left to right and from bottom to top to form a parts list;
[0039] (1.2) The parts are accumulated in order, and the path length is calculated after removing the duplicate edges;
[0040] (1.3) The part closest to 1 / 2 of the total length of the path is used as the grouping boundary. The parts before this part in the parts list are grouped into the lower group, and the remaining parts are grouped into the upper group.
[0041] As a preferred embodiment of the present invention, the calculation of the fluctuation height of the dividing line of the upper group and the lower group in the step (1) is specifically as follows:
[0042] Calculate the lowest point height H of the upper group UMin , calculate the height H of the highest point of the lower group DMax , calculate the absolute value of the height difference between the two diff , which is the height of the dividing line between the upper group and the lower group.
[0043] As a preferred embodiment of the present invention, the step (2) divides the arranged parts into two groups, upper and lower, according to the arrangement height bisection strategy, which specifically includes the following steps:
[0044] (2.1) Obtain the total height Hnest of the nesting results, and use 1 / 2 of the total height as the grouping boundary;
[0045] (2.2) Parts whose lowest point is above the limit are placed in the upper group, and the remaining parts are placed in the lower group.
[0046] As a preferred embodiment of the present invention, the calculation of the fluctuation height of the dividing line of the upper group and the lower group in step (2) is specifically as follows:
[0047] Calculate the lowest point height H of the upper group UMin , calculate the height H of the highest point of the lower group DMax , calculate the absolute value of the height difference between the two diff , which is the height of the dividing line between the upper group and the lower group.
[0048] As a preferred embodiment of the present invention, the step (3) specifically comprises the following steps:
[0049] Compare the dividing line fluctuation height H of the grouping results obtained by the two grouping strategies diff , adopt the strategy with smaller fluctuation height. If the fluctuation heights calculated by the two strategies are the same, the priority is to divide the total length of the path equally.
[0050] The device for realizing grouping processing of layout results based on double beam cutting of a numerical control system of the present invention comprises:
[0051] a processor configured to execute computer executable instructions;
[0052] The memory stores one or more computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method for grouping the arrangement results based on the double beam cutting of the numerical control system are realized.
[0053] The processor of the present invention is used to implement grouping processing of layout results based on double-beam cutting of a numerical control system, wherein the processor is configured to execute computer-executable instructions. When the computer-executable instructions are executed by the processor, the various steps of the method for grouping processing of layout results based on double-beam cutting of a numerical control system are implemented.
[0054] The computer-readable storage medium of the present invention stores a computer program thereon, and the computer program can be executed by a processor to implement the various steps of the above-mentioned method for grouping and processing nesting results based on double-beam cutting of a numerical control system.
[0055] In a specific embodiment of the present invention, a method for grouping nesting results suitable for cutting parts of a double-beam machine tool is provided. The purpose is to divide the nesting results into two groups, upper and lower, relatively evenly. Two beams can cut the two groups at the same time, and the difference in their respective working time is small, thereby improving the efficiency of part cutting.
[0056] The present invention provides a method for grouping the layout results of double-beam cutting in a numerical control system, for a cutting machine tool with double beams, such as Figure 1 The following steps are included:
[0057] (1) According to the strategy of equally dividing the total length of the path, the parts after layout are divided into two groups, upper and lower, and the height of the dividing line between the upper group and the lower group is calculated, including:
[0058] (1.1) Sort the parts after arrangement from left to right and from bottom to top to form an ordered parts list P n (n is the total number of parts): Get the bounding rectangle of the part, then get the coordinates of the lower left vertex of the rectangle, according to the x and y coordinates
[0059] Values are sorted from left to right and bottom to top;
[0060] (1.2) The parts are accumulated in order, and the path length is calculated after removing the duplicate edges: Set the path length list L n (n is the total number of parts), where the i-th element L i represents the total path length of the first i parts, Li -L i-1 represents the circumference of the i-th part
[0061] The length minus the length of the edge that the i-th part overlaps with the previous i-1 parts;
[0062] (1.3) The part closest to 1 / 2 of the total path length is the grouping boundary. The parts before this part in the parts list are
[0063] to the lower group, and the remaining parts to the upper group, such as Figure 2 As shown;
[0064] (1.4) Calculate the lowest point height H of the upper group UMin , and then calculate the height H of the highest point of the next group DMax , calculate the absolute value of the height difference between the two diff , which is the height of the dividing line between the upper group and the lower group;
[0065] (2) According to the strategy of dividing equally according to the arrangement height, the arrangement parts are divided into two groups, upper and lower, and the height fluctuation of the dividing line between the upper group and the lower group is calculated, including:
[0066] (2.1) Obtain the total height H of the sample arrangement result nest , with 1 / 2 of the total height as the grouping boundary;
[0067] (2.2) Parts whose lowest point is above the limit are grouped in the upper group, and the rest are grouped in the lower group, e.g. Figure 3 As shown;
[0068] (2.3) Calculate the lowest point height H of the upper group UMin , and then calculate the height H of the highest point of the next group DMax , calculate the absolute value of the height difference between the two diff , which is the height of the dividing line between the upper group and the lower group.
[0069] (3) Selecting the grouping result of the strategy with the smaller fluctuation height, specifically including: comparing the dividing line fluctuation height H of the grouping results obtained by the two grouping strategies diff , adopt the strategy with smaller fluctuation height. When the fluctuation height calculated by the two strategies is the same, it is preferred to divide the total length of the path equally. Figure 2 and Figure 3 The same sample arrangement result is divided equally according to the total length of the path and the sample arrangement height. After calculating the height of the dividing line, the priority is selected. Figure 3 The grouping results are shown.
[0070] The technical solution of the present invention provides a method for grouping the layout results of double-beam cutting in a numerical control system, which acts on the stage after the layout of parts and before the actual cutting.
[0071] The technical solution of the present invention is to use the total path length bisection strategy to calculate the total length of the part contour after removing repeated edges as the total path length based on the basic information of the part contour and part vertices.
[0072] The technical solution of the present invention makes an optimal selection among two grouping results obtained by dividing equally according to the total length of the path and by dividing equally according to the height of the row of samples.
[0073] The total path length bisection strategy described in the technical solution of the present invention is to calculate the total length of the part contour after removing duplicate edges as the total path length based on the basic information of the part contour and part vertices, and then divide it into two halves according to the total length. The purpose is to obtain the total length of the part after removing duplicates. The path described in the technical solution of the present invention is not an actual cutting path and does not consider empty strokes.
[0074] The specific implementation scheme of this embodiment can refer to the relevant description in the above embodiment, which will not be repeated here.
[0075] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0076] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.
[0077] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0078] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution device. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0079] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the corresponding program may be stored in a computer-readable storage medium, which, when executed, includes one of the steps of the method embodiment or a combination thereof.
[0080] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0081] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0082] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0083] The method, device, processor and computer-readable storage medium for realizing grouping processing of nesting results based on double beam cutting of numerical control system of the present invention are adopted. Based on two grouping strategies of equal division by total path length and equal division by nesting height, and then the grouping result with smaller fluctuation height of the dividing line is selected preferentially, the nesting results can be divided into two groups, upper and lower, more evenly, and two beams can cut the two groups at the same time, and the difference of their working time is small. Compared with single beam cutting, the efficiency of part cutting is improved.
[0084] In this specification, the present invention has been described with reference to specific embodiments thereof. However, it is apparent that various modifications and variations may be made without departing from the spirit and scope of the present invention. Therefore, the specification and drawings should be regarded as illustrative rather than restrictive.
Claims
1. A method for grouping nesting results based on double beam cutting of a numerical control system, characterized in that: The method comprises the following steps: (1) According to the strategy of equally dividing the total length of the path, the parts after layout are divided into two groups, upper and lower, and the height of the dividing line between the upper group and the lower group is calculated; (2) According to the strategy of dividing equally according to the arrangement height, the arrangement parts are divided into two groups, upper and lower, and the height of the dividing line between the upper group and the lower group is calculated; (3) The grouping results of the strategy with the smallest fluctuation height are selected.
2. The method for grouping the nesting results based on the double beam cutting of the numerical control system according to claim 1 is characterized in that: In the step (1), the arrangement parts are divided into two groups, upper and lower, according to the strategy of equally dividing the total length of the path, which specifically includes the following steps: (1.1) Arrange the parts after arrangement from left to right and from bottom to top to form a parts list; (1.2) The parts are accumulated in order, and the path length is calculated after removing the duplicate edges; (1.3) The part closest to 1 / 2 of the total length of the path is used as the grouping boundary. The parts before this part in the parts list are grouped into the lower group, and the remaining parts are grouped into the upper group.
3. The method for grouping the nesting results based on double beam cutting of a numerical control system according to claim 1 is characterized in that: The calculation of the fluctuation height of the dividing line between the upper group and the lower group in step (1) is specifically as follows: Calculate the lowest point height H of the upper group UMin , calculate the height H of the highest point of the lower group DMax , calculate the absolute value of the height difference between the two diff , which is the height of the dividing line between the upper group and the lower group.
4. The method for grouping the layout results based on double beam cutting of a numerical control system according to claim 1 is characterized in that: In the step (2), the arrangement-after-partitioning parts are divided into two groups, upper and lower, according to the arrangement-height-dividing strategy, which specifically includes the following steps: (2.1) Obtain the total height Hnest of the nesting results, and use 1 / 2 of the total height as the grouping boundary; (2.2) Parts whose lowest point is above the limit are placed in the upper group, and the remaining parts are placed in the lower group.
5. The method for grouping the nesting results based on the double beam cutting of the numerical control system according to claim 1 is characterized in that: The calculation of the fluctuation height of the dividing line between the upper group and the lower group in step (2) is specifically as follows: Calculate the lowest point height H of the upper group UMin , calculate the height H of the highest point of the lower group DMax , calculate the absolute value of the height difference between the two diff , which is the height of the dividing line between the upper group and the lower group.
6. The method for grouping the nesting results based on double beam cutting of a numerical control system according to claim 1 is characterized in that: The step (3) specifically comprises the following steps: Compare the dividing line fluctuation height H of the grouping results obtained by the two grouping strategies diff , adopt the strategy with smaller fluctuation height. If the fluctuation heights calculated by the two strategies are the same, the priority is to divide the total length of the path equally.
7. A device for realizing grouping processing of nesting results based on double beam cutting of numerical control system, characterized in that: The device comprises: a processor configured to execute computer executable instructions; A memory storing one or more computer executable instructions, wherein when the computer executable instructions are executed by the processor, the steps of the method for grouping arrangement results based on double beam cutting of a numerical control system as described in any one of claims 1 to 6 are implemented.
8. A processor for realizing grouping processing of nesting results based on double beam cutting of a numerical control system, characterized in that: The processor is configured to execute computer executable instructions. When the computer executable instructions are executed by the processor, the various steps of the method for grouping layout results based on double-beam cutting of a numerical control system as described in any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program can be executed by a processor to implement the various steps of the method for grouping arrangement results based on double-beam cutting of a numerical control system as described in any one of claims 1 to 6.