Method, device and medium for automatically generating process planning for complex surface numerical control machining

By constructing topological structures and weighted graphs, and combining decision-making technology with knowledge and data, we solve the problem of complex surface CNC machining planning that places high demands on engineering personnel, realize automatic generation of optimized plans, and improve practical operability.

CN118584903BActive Publication Date: 2024-09-27LANZHOU UNIVERSITY OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411073676.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-09-27
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

In the existing technology, the CNC machining planning of complex curved surfaces places high demands on engineering personnel, is difficult to optimize, and has low practical operability.

Method used

By constructing the topology structure and weighted graph of CNC machining process planning, combined with reasoning and decision-making technology of knowledge and data, the optimal machining operation path plan is determined, and the similarity evaluation between the instance and the object to be processed is introduced to improve the accuracy and accuracy of path planning. efficiency.

Benefits of technology

It realizes the automatic generation and optimization of complex surface CNC machining planning, and improves the practical operability and generation efficiency of planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118584903B
    Figure CN118584903B
Patent Text Reader

Abstract

The present invention belongs to the technical field of computer-aided manufacturing, and discloses a method, device and medium for automatically generating process planning for complex surface numerical control machining. The topological structure of the process planning flow of numerical control machining is constructed according to the operation options that may be used in each operation step of complex surface numerical control machining in CAM software, and a weight is assigned to the connection edge between two operation nodes to measure the operational feasibility of the corresponding connection edge, so as to obtain the corresponding weighted graph, and the path set with the starting point and the end point as the endpoints is determined according to the weighted graph, and the total weight in each path is calculated, and the path with the largest total weight is taken as the optimal path, so as to obtain the optimal machining operation path plan, and at the same time, the present invention also introduces a collaborative filtering method, and constructs an example library through successful examples as the recommendation basis of the operation node, so as to improve the planning efficiency. The entire process planning process is combined with the currently commonly used CAM software to ensure the practical operability of the planned optimal path.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer-aided manufacturing, and more specifically, to a method, device and medium for automatically generating a complex surface numerical control machining process plan. Background Art

[0002] Complex surfaces are mainly realized by CNC machining technology. CNC machining process planning is the core link. It is very difficult to formulate a reasonable CNC machining process plan for complex surfaces. At present, corresponding CAM software is usually used. Engineers complete CNC programming by selecting corresponding reasonable options and parameters in CAM software through interactive methods based on their experience and knowledge. The whole process requires repeated adjustment of parameters, requiring operators to have a good mathematical foundation and rich machining experience, and a deep understanding of the principles of multi-axis CNC machine tools.

[0003] Research status of scholars in complex surface CNC machining planning:

[0004] The paper "Jiang Yajun, Chen Jun, Ruan Xueyu. Fuzzy similarity-based roughset method for case-based reasoning and its application in tool selection[J].International Journal of Machine Tools&Manufacture, 2006, 46(2)107-113." proposes an automatic tool selection method based on case reasoning.

[0005] The document "Lü Dong, Hua Chang, Li Zhigang. Automatic CNC programming technology based on standard process template and its application [J]. Mold Industry, 2011, 37(5), 12-17." uses template technology to realize CNC programming automation.

[0006] The paper “Christophe Danjoua, Julien Le Duigoua, Benoît Eynard. Closed-loop manufacturing, a STEP-NC process for data feedback: a case study[J].Procedia CIRP, 2016, 41: 852 – 857.” proposes a method to assist users in developing new machining processes.

[0007] The document "YANG Qilei, WANG Hongshen, CAO Xigan. Research on Automatic Selection of CNC Milling Method for Complex Surfaces Based on NX CAM System[J / OL]. Machine Tool&Hydraulics.2022-11-21." proposes a method for automatically extracting machining features in CNC milling of complex surfaces.

[0008] The paper "Hongshen Wang, Jialiang Zhu, Boling Li, Jiayu Zhu. Intelligent Question Answering System for Impeller CNC Machining Based on Knowledge Graph[C]. International Conference on Computer Engineering and Artificial Intelligence (ICCEAI), 2022: 695-699." proposes a method for storing and quickly querying process planning instances for complex surface CNC machining.

[0009] At present, although the existing technology has conducted a certain degree of research on computer-aided CNC machining planning, the research remains at the theoretical level and is seriously out of touch with practice. At present, complex surface CNC machining planning is generally implemented using corresponding CAD / CAM software tools, but the existing related methods are separated from the corresponding CNC machining planning software tools and have low practical operability. Summary of the invention

[0010] The purpose of the present invention is to provide a method, device and medium for automatically generating process planning for CNC machining of complex surfaces, so as to solve the problem in the prior art that CNC machining planning for complex surfaces has high requirements on engineering personnel and is difficult to optimize. By using reasoning and decision-making technology that organically combines knowledge and data, the optimal operation selection is recommended to the CAM system, and finally the CNC machining planning for the surface to be processed is automatically generated and optimized. This can provide a powerful method and tool for the formulation of CNC machining planning for complex surfaces and realize the optimization of CNC machining planning.

[0011] In order to achieve the above object, the present invention adopts the following technical solution:

[0012] According to a first aspect of the present invention, a method for automatically generating a process plan for numerically controlled machining of a complex curved surface is provided, the method comprising:

[0013] A topological structure of a numerical control machining process planning flow is constructed, wherein the topological structure of the numerical control machining process planning flow comprises at least three consecutive operation layers, each operation layer comprises at least one operation node, and the operation node corresponds to an option of an operation flow in a computer-aided manufacturing software. The at least three consecutive operation layers comprise a starting layer, at least one intermediate layer, and a final layer, and each of the starting layer and the final layer comprises an operation node, which are respectively represented as starting nodes and the final node , where the sequence number is The first The operation nodes are represented as ,in =0,1,2…, +1, Indicates the sequence number of the operation layer. Indicates the total number of intermediate layers;

[0014] By serial number The first The operation node is used as the current operation node, and the operation node in the next operation layer is represented as , ,in i It is +1 the number of the operation node in the operation layer, Is the current operation node v ( l , k ) and +1 The number of operation nodes connected to the operation layer, the current operation node and the operation nodes in the next operation layer Connect the lines to get the connecting edges Assign a weight , to obtain a weighted graph, the weight Indicates The operation nodes of the first operation layer are +1 operation level The selection priority of each operation node;

[0015] An optimal machining operation path plan is determined based on the topological structure and the weighted graph.

[0016] Further, the determining of the optimal processing operation path solution based on the topological structure and the weighted graph includes:

[0017] Constructing a path set based on the weighted graph , the path set includes at least one path starting at a node and the final node is the path of the endpoint;

[0018] The sum of the weights of the connecting edges passed by each path is calculated using the following formula:

[0019] ,

[0020] In the formula, represents a path in the path set, W ( ) represents the sum of the weights of the connecting edges of a path in the path set;

[0021] A path is selected from the path set as the optimal processing operation path solution, and the optimal processing operation path solution satisfies the following conditions:

[0022] ,

[0023] In the formula, represents the optimal machining operation path solution, W ( ) represents the sum of the weights of the connecting edges of the optimal processing operation path solution, max Represents the maximum value function.

[0024] Further, the selection basis of each operation node is obtained, and the selection basis is divided into necessary features and sufficient features, wherein the necessary features are the geometric features or engineering semantic conditions necessary for completing the processing in the selection basis, and the sufficient features are the conditions that are not necessary for completing the processing in the selection basis, but the conditions corresponding to the sufficient features increase the feasibility of the operation node, based on the operation nodes in the next operation layer The sufficient number of features in the link to assign a weight to the link .

[0025] Further, the determining of the optimal processing operation path solution based on the topological structure and the weighted graph includes:

[0026] Acquire the selection basis of each operation option, and divide the selection basis into necessary features and sufficient features, wherein the necessary features are the geometric features or engineering semantic conditions necessary for completing the processing in the selection basis, and the sufficient features are the conditions that are not necessary for completing the processing in the selection basis, but the conditions corresponding to the sufficient features increase the feasibility of the operation node;

[0027] Obtain successful complex surface CNC machining planning examples, build an example library, and calculate the evaluation score of each operation option based on the number of matches between the geometric features or engineering semantic features of the workpiece being machined and the sufficient features, which is used to describe the instance's preference for each operation option.

[0028] Determine the surface to be processed according to the workpiece to be processed, extract the geometric features or engineering semantic features of the surface to be processed, match the geometric features or engineering semantic features of the surface to be processed with the necessary features in the selection basis, determine the operation nodes in each operation layer, and form a preliminary processing plan for the surface to be processed c 0;

[0029] Traverse all the selection numbers in the instance library k An instance of the operation node is obtained by , Indicates the serial number in computer-aided manufacturing software In the Operations layer, select The jth instance of an operation node, Represents the total number of instances in the collection;

[0030] Iterate over the collection , the calculation number is The first Operation Nodes For the recommended value of the processed surface, we get Recommended value of instances relative to the surface to be machined , select the maximum recommended value, and use the operation node corresponding to the maximum recommended value as the optimal option for the surface to be processed.

[0031] Furthermore, the evaluation score obtained by each operation option is calculated by the following formula:

[0032] ,

[0033] In the formula, r ( v , k ) is the evaluation score, The serial number is In the operation layer The total number of sufficient features for the operation nodes; Matching the geometry and semantic features of the workpiece being processed The number of

[0034] Further, the sequence number is calculated by the following formula: The first Operation Nodes Recommended values ​​for surfaces to be machined :

[0035] ,

[0036] In the formula, Represents the surface to be processed and the collection The j Examples The similarity of Indicates that there is an instance pair with serial number The first Operation Nodes The recommended value of Represents the preliminary processing plan of the surface to be processed. It represents the final NC machining plan of the surface to be machined.

[0037] Furthermore, the surface to be processed and the set are calculated by the following formula Similarity of instances in:

[0038] ,

[0039] In the formula, express and Cosine similarity.

[0040] According to a second aspect of the present invention, there is provided a device for automatically generating a process plan for numerically controlled machining of a complex curved surface, the device comprising:

[0041] A topology structure building module is configured to build a topology structure of a CNC machining process planning flow, wherein the topology structure of the CNC machining process planning flow includes at least three consecutive operation layers, each operation layer includes at least one operation node, and the operation node corresponds to an option of the operation flow in the computer-aided manufacturing software. The at least three consecutive operation layers include a starting layer, at least one intermediate layer, and a final layer, and each of the starting layer and the final layer includes an operation node, which are respectively represented as starting nodes and the final node , where the sequence number is l The first k The operation nodes are represented as ,in =0,1,2…, +1, Indicates the sequence number of the operation layer. Indicates the total number of intermediate layers;

[0042] The weighted graph determination module is configured to use sequence numbers as The first The operation node is used as the current operation node, and the operation node in the next operation layer is represented as , ,in i It is l +1 the number of the operation node in the operation layer, Is the current operation node With +1 The number of operation nodes connected to the operation layer, the current operation node and the operation nodes in the next operation layer Connect the lines to get the connecting edges , for each connecting edge Assign a weight , to obtain a weighted graph, the weight Indicates l The operation nodes of the first operation layer are +1 operation level The selection priority of each operation node;

[0043] The optimal path determination module is configured to determine an optimal processing operation path solution based on the topological structure and the weighted graph.

[0044] Furthermore, the optimal path determination module is further configured to:

[0045] Acquire the selection basis of each operation option, and divide the selection basis into necessary features and sufficient features, wherein the necessary features are the geometric features or engineering semantic conditions necessary for completing the processing in the selection basis, and the sufficient features are the conditions that are not necessary for completing the processing in the selection basis, but the conditions corresponding to the sufficient features increase the feasibility of the operation node;

[0046] Obtain successful complex surface CNC machining planning examples, build an example library, and calculate the evaluation score of each operation option based on the number of matches between the geometric features or engineering semantic features of the workpiece being machined and the sufficient features, which is used to describe the instance's preference for each operation option.

[0047] Determine the surface to be processed according to the workpiece to be processed, extract the geometric features or engineering semantic features of the surface to be processed, match the geometric features or engineering semantic features of the surface to be processed with the necessary features in the selection basis, determine the operation nodes in each operation layer, and form a preliminary processing plan for the surface to be processed c 0;

[0048] Traverse all the selection numbers in the instance library k An instance of the operation node is obtained by , Indicates the serial number in computer-aided manufacturing software In the Operations layer, select The jth instance of an operation node, Represents the total number of instances in the collection;

[0049] Iterate over the collection , the calculation number is The first Operation Nodes For the recommended value of the processed surface, we get Recommended value of instances relative to the surface to be machined , select the maximum recommended value, and use the operation node corresponding to the maximum recommended value as the optimal option for the surface to be processed.

[0050] According to a third aspect of the present invention, there is provided a readable storage medium storing one or more programs, wherein the one or more programs can be executed by one or more processors to implement the method as described above.

[0051] The present invention has at least the following beneficial effects:

[0052] 1) The present invention constructs the topological structure of the CNC machining process planning process according to the possible operation options for each operation step of complex surface CNC machining in CAM software, and assigns a weight to the connection edge between two operation nodes to measure the operational feasibility of the corresponding connection edge, so as to obtain the corresponding weighted graph, and determines the path set with the starting point and the end point as the endpoints according to the weighted graph, and calculates the total weight in each path, and takes the path with the largest total weight as the optimal path, so as to obtain the optimal machining operation path plan. The entire operation process is combined with the currently commonly used CAM software to ensure the practical operability of the planned optimal path.

[0053] 2) The present invention further introduces the similarity evaluation between the existing examples and the objects to be processed, and determines the weights of each connecting edge in the weighted graph according to the theoretical evaluation values ​​of the examples for each level of options, thereby making the path planning more reasonable and accurate.

[0054] 3) The present invention further proposes to realize automatic generation of complex surface CNC machining process planning based on collaborative filtering method, so as to improve the generation efficiency of optimal process planning path. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A flow chart of a method for automatically generating a complex surface CNC machining process plan according to an embodiment of the present invention is shown.

[0056] Figure 2A schematic diagram of mathematical modeling of numerical control machining process planning according to an embodiment of the present invention is shown.

[0057] Figure 3 A schematic diagram of an expression matrix for complex surface numerical control machining planning according to an embodiment of the present invention is shown.

[0058] Figure 4 The figure shows the processing effect of manually implementing CNC processing planning.

[0059] Figure 5 The figure shows the machining effect obtained by the method for automatically generating a process plan for numerically controlled machining of a complex curved surface provided by an embodiment of the present invention.

[0060] Figure 6 A structural diagram of a device for automatically generating a complex surface numerical control machining process plan according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0061] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and specific embodiments, but are not intended to limit the present invention. For the various steps described herein, if there is no necessity for a causal relationship between each other, the order in which they are described as examples herein should not be regarded as a limitation, and those skilled in the art should know that they can be adjusted in order, as long as the logic between them is not destroyed, resulting in the inability to implement the entire process.

[0062] The embodiment of the present invention provides a method for automatically generating a complex surface numerical control machining process plan. Figure 1 The method starts from step S1, constructing a topological structure of a CNC machining process planning process.

[0063] Specifically, when engineers use CAM software to plan CNC machining of products, they actually select and determine machining parameters according to the software-defined process step by step. A CNC machining plan actually includes a series of CNC machining operations. The steps and sequence of CAM software operations are abstracted into a diagram (such as Figure 2 As shown in the figure), the nodes in the figure represent the options of the software operation process. It is the unique identifier of each operation option in the CNC machining process planning, which is called an operation node in this embodiment. Indicates the serial number of the operation layer. The operation layer includes a starting layer, at least one intermediate layer and a final layer. The starting layer and the final layer each include an operation node, which are respectively represented as the starting node and the final node , =0,1,2…, +1, The same value indicates the same-level operation. The maximum number of operation levels is , the first layer is the starting node , the last layer is the final node ; is the number of intermediate layers, Indicates the optional items in the same operation layer method operation, representing the sequence number of the operation node contained in an operation layer. , in Indicates the serial number is l The total number of operation nodes in the operation layer.

[0064] After constructing the topological structure of the CNC machining process planning process, execute step S2 to construct a weighted graph.

[0065] Specifically, assuming the current operation node is , the next optional node is , in for For the convenience of description, this group of nodes is renumbered. , ,in Is a node With The number of optional nodes connected to each layer, then there is a connecting edge between two nodes , abbreviated as , for each connecting edge Assign a weight Indicates Layer and +1 layer of connecting edges The larger the weight, the greater the selectivity, thus obtaining a weighted graph .

[0066] Finally, step S3 is executed to determine the optimal processing operation path solution based on the topological structure and the weighted graph.

[0067] In an exemplary embodiment, based on the weighted graph, the optimal machining operation path solution is determined by the following method:

[0068] The CNC machining process planning of a complex surface is actually a weighted graph. From the starting node To the final node The problem of selecting the operation nodes in the middle of a process planning is actually a process from arrive The path of yes Starting Node To the final node is a path collection of endpoints, with Indicates the path The connected edges passed The sum of the weights, that is:

[0069] ,

[0070] The goal is to seek A path in , so that:

[0071] ,

[0072] In the formula, W ( ) represents the sum of the weights of the connecting edges of the optimal processing operation path solution, max Represents the maximum value function.

[0073] The determined path From the start node v s To the final node v T The optimal machining operation path plan is also the optimal CNC machining process planning for the workpiece.

[0074] In an exemplary embodiment, determining the weights Specifically, the selection basis of each operation option is obtained, and the selection basis is divided into necessary features and sufficient features, wherein the necessary features are the geometric features or engineering semantic conditions necessary for completing the processing in the selection basis, and the sufficient features are the conditions that are not necessary for completing the processing in the selection basis, but the conditions corresponding to the sufficient features increase the feasibility of the operation option. Therefore, this embodiment is based on the operation nodes in the next operation layer. The sufficient number of features in the link to assign a weight to the link w l ( e i ).

[0075] The necessary features are the basis for selecting the operation node. For example, in a certain operation layer, matching is performed based on the set features or engineering semantic features of the workpiece being processed, and the operation options corresponding to the selection basis containing the necessary features are selected as the operation nodes in the operation layer. Among all the determined operation nodes in an operation layer, the number of sufficient features that match the workpiece being processed is counted, and the weight of the connection edge between the previous operation layer and the operation node is determined based on the number of sufficient features of each operation node. For example, assuming that all selection bases contain at most A sufficient features, the sufficient features of an operation node are recorded as a, where 0≤a≤A, then the weight of the connection edge corresponding to the operation node can be assigned as (a+1) / (A+1).

[0076] In an exemplary embodiment, in order to improve the efficiency of path planning, a collaborative filtering method is proposed to select operation nodes. The collaborative filtering method relies on similarity evaluation between existing instances and the object to be processed.

[0077] Specifically, for the existing CNC machining planning instances, since the operation options (i.e., operation nodes) of each operation layer have been determined, the operation levels and options of the CAM software can be expanded in a fixed order as the rows of the matrix, and each instance as a column. The position of the row corresponding to the instance selecting a certain option is represented by a non-zero value, and the unselected option is represented by "0". Each machining planning instance can be expressed as a multidimensional vector, and multiple instances can form a matrix. Each column of the matrix represents a machining instance, and each row represents a first-level operation option. Usually, the importance of each level of CAM software is different. The various levels in the CAM software are divided into three levels: important, relatively important, and general, according to the degree of influence on the machining method, machining accuracy, and machining efficiency, and are assigned weights of 3, 2, and 1, respectively. The existing CNC machining instances can be expressed as follows Figure 3 The matrix shown, Figure 3 In the figure, C1 to C20 represent a CNC machining instance respectively.

[0078] Since the NC machining planning of the new surface to be machined has not been realized, it is impossible to express it into a multidimensional vector using the above method. In order to realize the similarity evaluation between the surface to be machined and the existing surface machining examples, this embodiment first performs preliminary NC machining planning on the part based only on the geometric and semantic features of the part itself. The process is as follows:

[0079] Step 1: Figure 2The CAM software operation node shown in the figure obtains the geometric features or engineering semantic conditions that need to be met for its selection. Some of these conditions are required by the option to be met by the workpiece, which are called necessary features. Some conditions do not need to be met, but meeting these conditions increases the feasibility of selecting the option, and these features are called sufficient features. When the workpiece meets the necessary features of multiple options and also meets the sufficient features of multiple options, there is a decision problem of selection, such as Figure 3 The second column shown, “Select by”;

[0080] Step 2: Based on the conditions in step 1, the system automatically extracts the features of the workpiece being processed. The feature extraction method is a mature technology and will not be described here;

[0081] Step 3: Assuming that the workpiece to be processed meets the necessary characteristics, the option that satisfies the most sufficient conditions for the workpiece to be processed is selected as the best option. Specifically, the evaluation calculation formula introduced later can be used for calculation, and the largest result is selected;

[0082] The above method is used to generate a preliminary NC machining plan for the surface to be machined and expressed as follows: Figure 3 The form of column vector in . The similarity between the surface to be processed and the existing surface NC machining planning.

[0083] This embodiment uses the evaluation score in the evaluation calculation formula Describe the theoretical evaluation of the operation node by example:

[0084]

[0085] In the formula For the Layer The total number of sufficient features for the operation nodes; Matching the geometry and semantic features of the workpiece being processed The number of The larger the value, the more sufficient the basis for the instance to select this option, and the evaluation value is stored together with the instance.

[0086] Based on the similarity evaluation between the existing examples and the objects to be processed as described above, the following describes the specific process of selecting operation nodes using the collaborative filtering method:

[0087] Step 0, Preparation: This step is for preliminary data preparation. It is implemented through the following steps:

[0088] Step 01, from the perspective of CNC machining theory, study the selection basis of each operation step of complex surface CNC machining planning CAM software, and divide the basis into necessary features and sufficient features.

[0089] Step 02, collect successful complex surface CNC machining planning examples, build an example library, and follow Figure 3 The method shown is stored in a matrix format, and based on step 1 in the similarity evaluation above, the evaluation calculation formula is used to calculate the score obtained by the operation node in each operation layer to describe the preference degree of each specific operation option selection in the instance.

[0090] Step 1: Import the surface to be processed into the system. Based on Step 01 as described above, extract the features of the surface to be processed, and preliminarily select each processing operation option based on the extracted features to form a preliminary processing plan for the surface to be processed. , the final CNC machining planning of the surface to be machined express.

[0091] Step 2: Use collaborative filtering algorithm to re-plan the NC machining plan of the surface to be machined. According to the operation sequence of CAM software, each option in each operation layer is processed as follows.

[0092] First Layer Taking the determination of an option as an example, it is achieved through the following steps:

[0093] Step 21: Traverse all selected options in the instance library Instances of ,in Indicates the sequence number of the operation layer. Indicates that in the CAM software Select the The jth instance of an option has indivual;

[0094] Step 22: Traverse the collection , use the following formula to calculate the The operation layer Operation options Treat machining surface Suitability (recommended):

[0095] ,

[0096] In the formula, Represents the surface to be processed and the collection The jth instance in The similarity of Indicates that there is an instance pair The operation layer Operation Nodes The recommended value of Represents the preliminary processing plan of the surface to be processed. It represents the final NC machining plan of the surface to be machined. express and Cosine similarity.

[0097] Step23: Repeat Step21 and Step22 until the Operational Layer Recommended values ​​of each option relative to the surface to be processed , select the largest The value corresponds to the In the operation layer Operation options It is the optimal option for the surface to be processed.

[0098] Step 3: Continue to The optimal recommended operation option for each operation layer is calculated using the same method as in Step 2 until the NC machining planning is completed.

[0099] Based on the above method, the optimal operation nodes in each operation layer can be determined, and the optimal planning path can be formed by these optimal operation nodes.

[0100] Using the CAM module of Unigraphics NX software system (NX CAM for short) as the platform, we randomly selected a CNC machining example from the example library (the workpiece material is aluminum alloy, and the surface roughness requirement is Ra3.2) for testing. The test results are as follows: Figure 4 and Figure 5 shown.

[0101] By comparing the tool paths obtained by the two planning methods in the NX CAM system, the manual method uses a conservative ball end mill with a diameter of 10 mm and a step size of 0.2 mm. The process plan generated in this embodiment uses a ball end mill with a diameter of 16 mm and a step size of 0.25 mm. Figure 4 and Figure 5 It can be seen that under the premise of meeting the processing requirements, the processing time used for the finishing process planning generated by this embodiment is 6486 seconds, and the processing time used by the original manual planning result is 8144 seconds, which reflects the effectiveness of the method proposed in the present invention.

[0102] The embodiment of the present invention also provides a device for automatically generating a complex surface numerical control machining process plan, such as Figure 6 As shown, the device comprises:

[0103] The topology structure building module 601 is configured to build a topology structure of a CNC machining process planning process, wherein the topology structure of the CNC machining process planning process includes at least three consecutive operation layers, each operation layer includes at least one operation node, and the operation node corresponds to an option of an operation process in a computer-aided manufacturing software. The at least three consecutive operation layers include a starting layer, at least one intermediate layer, and a final layer, and each of the starting layer and the final layer includes an operation node, which are respectively represented as a starting node v s and the final node v T , where the sequence number is l The first k The operation nodes are represented as ,in =0,1,2…, m +1, Indicates the sequence number of the operation layer. m Indicates the total number of intermediate layers;

[0104] The weighted graph determination module 602 is configured to use the sequence number as l The first k The operation node is used as the current operation node, and the operation node in the next operation layer is represented as , ,in i It is l +1 the number of the operation node in the operation layer, Is the current operation node v ( l , k ) and l +1 The number of operation nodes connected to the operation layer, the current operation node v ( l , k ) and the operation nodes in the next operation layer Connect the lines to get the connecting edges e i , for each connecting edge e i Assign a weight w l ( e i ), to obtain a weighted graph, the weight w l ( e i ) indicates the l The operation nodes of the first operation layer are +1 The selection priority of the i-th operation node in the operation layer;

[0105] The optimal path determination module 603 is configured to determine an optimal processing operation path solution based on the topological structure and the weighted graph.

[0106] In some embodiments, the optimal path determination module is further configured to:

[0107] Acquire the selection basis of each operation option, and divide the selection basis into necessary features and sufficient features, wherein the necessary features are the geometric features or engineering semantic conditions necessary for completing the processing in the selection basis, and the sufficient features are the conditions that are not necessary for completing the processing in the selection basis, but the conditions corresponding to the sufficient features increase the feasibility of the operation node;

[0108] Obtain successful complex surface CNC machining planning examples, build an example library, and calculate the evaluation score of each operation option based on the number of matches between the geometric features or engineering semantic features of the workpiece being machined and the sufficient features, which is used to describe the instance's preference for each operation option.

[0109] Determine the surface to be processed according to the workpiece to be processed, extract the geometric features or engineering semantic features of the surface to be processed, match the geometric features or engineering semantic features of the surface to be processed with the necessary features in the selection basis, determine the operation nodes in each operation layer, and form a preliminary processing plan for the surface to be processed c 0;

[0110] Traverse all the selection numbers in the instance library k An instance of the operation node is obtained by , Indicates the serial number in computer-aided manufacturing software In the Operations layer, select The jth instance of an operation node, Represents the total number of instances in the collection;

[0111] Iterate over the collection , the calculation number is The first Operation Nodes For the recommended value of the processed surface, we get Recommended value of instances relative to the surface to be machined , select the maximum recommended value, and use the operation node corresponding to the maximum recommended value as the optimal option for the surface to be processed.

[0112] In some embodiments, the optimal path determination module is further configured to calculate the evaluation score obtained by each operation option by the following formula:

[0113]

[0114] In the formula For the evaluation score, The serial number is In the operation layer The total number of sufficient features for the operation nodes; Matching the geometry and semantic features of the workpiece being processed The number of

[0115] In some embodiments, the optimal path determination module is further configured to calculate the sequence number by the following formula: The first Operation Nodes Recommended values ​​for surfaces to be machined :

[0116] ,

[0117] In the formula, Represents the surface to be processed and the collection The jth instance in The similarity of Indicates that there is an instance pair The operation layer Operation Nodes The recommended value of Represents the preliminary processing plan of the surface to be processed. It represents the final NC machining plan of the surface to be machined.

[0118] In some embodiments, the optimal path determination module is further configured to calculate the surface to be processed and the set by the following formula: Similarity of instances in:

[0119] ,

[0120] In the formula, express and Cosine similarity.

[0121] In some embodiments, the optimal path determination module is further configured to:

[0122] Constructing a path set based on the weighted graph , the path set includes at least one path starting at a node v s and the final node v T is the path of the endpoint;

[0123] The sum of the weights of the connecting edges passed by each path is calculated using the following formula:

[0124] (Here the original k in the subscript is changed to i) In the formula, represents a path in the path set, W ( ) represents the sum of the weights of the connecting edges of a path in the path set;

[0125] A path is selected from the path set as the optimal processing operation path solution, and the optimal processing operation path solution satisfies the following conditions:

[0126] ,

[0127] In the formula, represents the optimal machining operation path solution, W ( ) represents the sum of the weights of the connecting edges of the optimal processing operation path solution, max Represents the maximum value function.

[0128] In some embodiments, the weighted graph determination module is further configured to obtain the selection basis of each operation node, and divide the selection basis into necessary features and sufficient features, wherein the necessary features are the geometric features or engineering semantic conditions necessary for completing the processing in the selection basis, and the sufficient features are the conditions that are not necessary for completing the processing in the selection basis, but the conditions corresponding to the sufficient features increase the feasibility of the operation node, based on the operation nodes in the next operation layer The sufficient number of features in the link to assign a weight to the link w l ( e i ).

[0129] It should be noted that the various device structures described in this embodiment belong to the same technical concept as the previously described method, and achieve the same technical effect through the same principle, which will not be repeated here.

[0130] An embodiment of the present invention further provides a readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the method described in any of the above embodiments.

[0131] In addition, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present invention with equivalent elements, modifications, omissions, combinations (e.g., various embodiments intersecting schemes), adaptations or changes. The elements in the claims are to be interpreted broadly based on the language adopted in the claims, and are not limited to the examples described in this specification or during the prosecution of this application, which examples are to be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered as examples only, and the true scope and spirit are indicated by the following claims and the full scope of their equivalents.

[0132] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more of them) may be used in combination with each other. For example, a person of ordinary skill in the art may use other embodiments when reading the above description. In addition, in the above-mentioned specific embodiments, various features may be grouped together to simplify the present invention. This should not be interpreted as an intention that a feature of an invention that is not claimed for protection is necessary for any claim. On the contrary, the subject matter of the present invention may be less than all the features of an embodiment of a particular invention. Thus, the following claims are incorporated herein as examples or embodiments in the specific embodiments, wherein each claim is independently a separate embodiment, and it is considered that these embodiments may be combined with each other in various combinations or arrangements. The scope of the present invention should be determined with reference to the appended claims and the full scope of equivalent forms granted by these claims.

Claims

1. A method for automatically generating a complex surface CNC machining process plan, characterized in that: The method comprises: A topological structure of a numerical control machining process planning flow is constructed, wherein the topological structure of the numerical control machining process planning flow comprises at least three consecutive operation layers, each operation layer comprises at least one operation node, and the operation node corresponds to an option of an operation flow in a computer-aided manufacturing software. The at least three consecutive operation layers comprise a starting layer, at least one intermediate layer, and a final layer, and each of the starting layer and the final layer comprises an operation node, which are respectively represented as starting nodes and the final node , where the sequence number is l The first k The operation nodes are represented as ,in =0,1,2…, +1, Indicates the sequence number of the operation layer. Indicates the total number of intermediate layers; By serial number l The first k The operation node is used as the current operation node, and the operation node in the next operation layer is represented as , ,in It is +1 the number of the operation node in the operation layer, Is the current operation node With +1 The number of operation nodes connected to the operation layer, the current operation node and the operation nodes in the next operation layer Connect the lines to get the connecting edges , for each connecting edge Assign a weight , to obtain a weighted graph, the weight Indicates The operation nodes of the first operation layer are +1 operation level i The selection priority of each operation node; Determining an optimal machining operation path plan based on the topological structure and the weighted graph; Determining the optimal processing operation path solution based on the topological structure and the weighted graph includes: Constructing a path set based on the weighted graph , the path set includes at least one path starting at a node and the final node is the path of the endpoint; The sum of the weights of the connecting edges passed by each path is calculated using the following formula: , In the formula, represents a path in the path set, W ( ) represents the sum of the weights of the connecting edges of a path in the path set; A path is selected from the path set as the optimal processing operation path solution, and the optimal processing operation path solution satisfies the following conditions: , In the formula, represents the optimal machining operation path solution, W ( ) represents the sum of the weights of the connecting edges of the optimal processing operation path solution, max represents the maximum value function; Acquire the selection basis of each operation option, and divide the selection basis into necessary features and sufficient features, wherein the necessary features are the geometric features or engineering semantic conditions necessary for completing the processing in the selection basis, and the sufficient features are the conditions that are not necessary for completing the processing in the selection basis, but the conditions corresponding to the sufficient features increase the feasibility of the operation node; Obtain successful complex surface CNC machining planning examples, build an example library, and calculate the evaluation score of each operation option based on the number of matches between the geometric features or engineering semantic features of the workpiece being machined and the sufficient features, which is used to describe the instance's preference for each operation option. Determine the surface to be processed according to the workpiece to be processed, extract the geometric features or engineering semantic features of the surface to be processed, match the geometric features or engineering semantic features of the surface to be processed with the necessary features in the selection basis, determine the operation nodes in each operation layer, and form a preliminary processing plan for the surface to be processed ; Traverse all the selection numbers in the instance library k An instance of the operation node is obtained by , Indicates the serial number in computer-aided manufacturing software In the Operations layer, select The jth instance of an operation node, Represents the total number of instances in the collection; Iterate over the collection , the calculation number is The first Operation Nodes For the recommended value of the processed surface, we get Recommended value of instances relative to the surface to be machined , select the maximum recommended value, and use the operation node corresponding to the maximum recommended value as the optimal option for the surface to be processed.

2. The method according to claim 1, characterized in that Obtain the selection basis of each operation node, and divide the selection basis into necessary features and sufficient features, wherein the necessary features are the geometric features or engineering semantic conditions necessary for completing the processing in the selection basis, and the sufficient features are the conditions that are not necessary for completing the processing in the selection basis, but the conditions corresponding to the sufficient features increase the feasibility of the operation node, based on the operation nodes in the next operation layer The sufficient number of features in the link to assign a weight to the link .

3. The method according to claim 1, characterized in that The evaluation score for each operation option is calculated using the following formula: , In the formula, For the evaluation score, The serial number is In the operation layer The total number of sufficient features for the operation nodes; Matching the geometric and semantic features of the workpiece being processed The number of 4. The method according to claim 3, characterized in that The serial number is calculated by the following formula: The first Operation Nodes Recommended values ​​for surfaces to be machined : , In the formula, Represents the surface to be processed and the collection The j Examples The similarity of Indicates that an instance already exists For serial number The first Operation Nodes The recommended value of Represents the preliminary processing plan of the surface to be processed. It represents the final NC machining plan of the surface to be machined.

5. The method according to claim 4, characterized in that The surface to be processed and the set are calculated by the following formula Similarity of instances in: , In the formula, express and Cosine similarity.

6. A device for automatically generating process planning for complex surface numerical control machining, characterized in that: The device comprises: A topology structure building module is configured to build a topology structure of a CNC machining process planning flow, wherein the topology structure of the CNC machining process planning flow includes at least three consecutive operation layers, each operation layer includes at least one operation node, and the operation node corresponds to an option of the operation flow in the computer-aided manufacturing software. The at least three consecutive operation layers include a starting layer, at least one intermediate layer, and a final layer, and each of the starting layer and the final layer includes an operation node, which are respectively represented as starting nodes and the final node , where the sequence number is The first The operation nodes are represented as ,in =0,1,2…, +1, Indicates the sequence number of the operation layer. Indicates the total number of intermediate layers; The weighted graph determination module is configured to use sequence numbers as l The first k The operation node is used as the current operation node, and the operation node in the next operation layer is represented as , ,in It is l +1 the number of the operation node in the operation layer, Is the current operation node With +1 The number of operation nodes connected to the operation layer, the current operation node and the operation nodes in the next operation layer Connect the lines to get the connecting edges , for each connecting edge Assign a weight , to obtain a weighted graph, the weight Indicates The operation nodes of the first operation layer are +1 operation level The selection priority of each operation node; An optimal path determination module, configured to determine an optimal machining operation path solution based on the topological structure and the weighted graph; The optimal path determination module is further configured to: Constructing a path set based on the weighted graph , the path set includes at least one path starting at a node and the final node is the path of the endpoint; The sum of the weights of the connecting edges passed by each path is calculated using the following formula: , In the formula, represents a path in the path set, W ( ) represents the sum of the weights of the connecting edges of a path in the path set; A path is selected from the path set as the optimal processing operation path solution, and the optimal processing operation path solution satisfies the following conditions: , In the formula, represents the optimal machining operation path solution, W ( ) represents the sum of the weights of the connecting edges of the optimal processing operation path solution, max represents the maximum value function; Acquire the selection basis of each operation option, and divide the selection basis into necessary features and sufficient features, wherein the necessary features are the geometric features or engineering semantic conditions necessary for completing the processing in the selection basis, and the sufficient features are the conditions that are not necessary for completing the processing in the selection basis, but the conditions corresponding to the sufficient features increase the feasibility of the operation node; Obtain successful complex surface CNC machining planning examples, build an example library, and calculate the evaluation score of each operation option based on the number of matches between the geometric features or engineering semantic features of the workpiece being machined and the sufficient features, which is used to describe the instance's preference for each operation option. Determine the surface to be processed according to the workpiece to be processed, extract the geometric features or engineering semantic features of the surface to be processed, match the geometric features or engineering semantic features of the surface to be processed with the necessary features in the selection basis, determine the operation nodes in each operation layer, and form a preliminary processing plan for the surface to be processed c 0; Traverse all the selection numbers in the instance library k An instance of the operation node is obtained by , Indicates the serial number in computer-aided manufacturing software In the Operations layer, select The jth instance of an operation node, Represents the total number of instances in the collection; Iterate over the collection , the calculation number is The first Operation Nodes For the recommended value of the processed surface, we get Recommended value of instances relative to the surface to be machined , select the maximum recommended value, and use the operation node corresponding to the maximum recommended value as the optimal option for the surface to be processed. 7 . A non-transitory computer-readable storage medium storing instructions, which, when executed by a processor, executes the method according to claim 1 .