Automatic programming system of multi-axis numerical control milling machine

Through the automatic programming system of multi-axis CNC milling machine, the encoding process and part characteristics are closely linked, and the problems of low programming efficiency and poor flexibility in the existing technology are solved, and efficient and flexible programming and processing effects are achieved.

CN119644918AActive Publication Date: 2025-03-18SHENZHEN TUOZHIZHE TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510180471.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-19
Publication Date
2025-03-18
Estimated Expiration
2045-02-19

AI Technical Summary

Technical Problem

The prior art can only program a single part every time, making it difficult to associate the encoding process with part features and modify the code according to the different part features, affecting the encoding efficiency and effect.

Method used

It provides a multi-axis CNC milling machine automatic programming system, including geometric modeling module, process planning module, tool track module, post-processing module and code update module. Through the coordinated work of these modules, the encoding process and part characteristics are closely linked, and the tool path and NC code are automatically adjusted according to changes in part characteristics.

Benefits of technology

It significantly improves programming efficiency and flexibility, reduces manual adjustment workload, optimizes tool paths, and improves machining efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119644918A_ABST
    Figure CN119644918A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic programming system of a multi-axis numerical control milling machine, which relates to the technical field of numerical control programming and comprises the steps of receiving a file, identifying geometric features, outputting a current geometric feature set, acquiring the current geometric feature set and current process logic, establishing a second corresponding relation, acquiring a cutter path based on the second corresponding relation, establishing a third corresponding relation, and performing programming. The current tool path data are analyzed, the current NC code data are output, an updated geometric feature set and updated process logic are obtained, and the updated NC code data are output. According to the method, the coding process and the part features are closely associated, the function of automatically modifying codes according to different part features is achieved, when part design is changed, new and old CAD files are compared, and the part design is changed. According to the method, the change features are recognized, the affected tool path and the NC code are regenerated, the programming efficiency and flexibility are remarkably improved, the workload of manual adjustment is reduced, meanwhile, the tool path is optimized, and the machining efficiency and precision are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of numerical control programming, and in particular to an automatic programming system for a multi-axis numerical control milling machine. Background Art

[0002] With the rapid development of modern manufacturing industry, CNC milling technology has occupied an important position in the field of mechanical processing. Traditional CNC programming methods rely on manual writing or programming using simple CAM (computer-aided manufacturing) software. These methods are not only inefficient but also prone to errors. Especially for the processing of complex parts, the programming process is particularly cumbersome. In order to improve programming efficiency and processing accuracy, multi-axis CNC milling machine automatic programming system came into being.

[0003] At present, the Chinese invention patent with application number CN201611195824.4 discloses a conversational graphic programming system and method for a CNC system milling machine based on Minigui. The system includes an interface editing module, a data processing module and a G-code generation module. The interface editing module is implemented through Minigui programming. Minigui is used in the interface editing module to implement the display design of the interface and draw the required interface; the data processing module processes the data input into the interface to obtain the data required for the CNC code; the G-code generation module matches the corresponding fixed cycle instructions according to the data obtained by the data processing module to obtain the program code for processing the entire part.

[0004] The above technology can only program a single part at a time. It is difficult to associate the coding process with the part features and modify the code according to the different part features, which affects the coding efficiency and effect. Summary of the invention

[0005] The technical problem solved by the present invention is that the above technology can only program a single part at a time, and it is difficult to associate the encoding process with the part characteristics and modify the code according to the different part characteristics, which affects the encoding efficiency and effect.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: A multi-axis CNC milling machine automatic programming system includes a geometric modeling module, a process planning module, a tool path module, a post-processing module and a code update module: The geometric modeling module is used to receive a first CAD file, identify geometric features, output as current geometric feature data, extract the association relationship between the current geometric feature data, output as current association relationship data, establish a first corresponding relationship between the current geometric feature data and the current association relationship data, output as a current geometric feature set, and store the current geometric feature set in a preset geometric feature database; The process planning module is used to obtain the current geometric feature set and the current process logic, input the current geometric feature set into a preset processing knowledge base, the processing knowledge base includes geometric feature data, corresponding association relationship data and corresponding processing data, obtain the processing data corresponding to the current geometric feature set, output it as the current processing data, and establish a second corresponding relationship between the current geometric feature data, the current association relationship data, the current process logic and the current processing data; The tool path module is used to obtain the tool path based on the second corresponding relationship, output it as current tool path data, and establish a third corresponding relationship between the current tool path data, the current geometric feature data, the current association relationship data, the current process logic and the current processing data; The post-processing module is used to parse the current tool path data and output the current NC code data; The code update module is used to obtain the second CAD file and input it into the geometric modeling module, obtain the updated geometric feature set and the updated process logic, traverse the updated geometric feature set and the current geometric feature set, screen the different geometric features and association relationships between the updated geometric feature set and the current geometric feature set, obtain the tool path based on the different geometric features and association relationships between the updated geometric feature set and the current geometric feature set and output it as updated tool path data, integrate the updated tool path data with the current tool path data in the third corresponding relationship, generate updated tool path data, input the updated tool path data into the post-processing module, and output it as updated NC code data.

[0007] Preferably, the geometric modeling module includes a first file receiving unit, a geometric feature recognition unit, an association relationship analysis unit, a first relationship establishment unit and a basic data storage unit; The first file receiving unit is used to receive and parse the first CAD file, extract the geometric model, and output it as first geometric model data; The geometric feature recognition unit is used to perform geometric feature recognition on the first geometric model data, wherein the geometric features include corresponding size data, position data and direction data of a plane, a cube, a cylinder, a hole, a slot, a step, a chamfer, a fillet, a cavity, a rib and a slot surface, and outputs the data as current geometric feature data; The association relationship analysis unit is used to extract the association relationship between planes, cubes, cylinders, holes, grooves, steps, chamfers, fillets, cavities, ribs and groove surfaces in the current geometric feature data, and outputs the current association relationship data.

[0008] Preferably, the first relationship establishing unit is used to establish a first corresponding relationship between the current geometric feature data and the current association relationship data, and output it as a current geometric feature set; The basic data storage unit is used to store the current geometric feature set in a preset geometric feature database.

[0009] Preferably, the process planning module includes a feature logic input unit, a processing data matching unit and a second relationship establishing unit; The feature logic input unit is used to obtain the current geometric feature set and the current process logic and input the current geometric feature set into a preset processing knowledge base; The processing data matching unit is used to match the processing data corresponding to the current geometric feature set in the processing knowledge base and output it as the current processing data; The second relationship establishing unit is used to establish a second corresponding relationship among the current geometric feature data, the current association relationship data, the current process logic and the current processing data.

[0010] Preferably, the tool trajectory module includes a machining path planning unit and a third relationship establishing unit; The machining path planning unit is used to obtain a tool path based on the second corresponding relationship, optimize the tool path, delete the empty stroke, and output it as current tool path data; The third relationship establishing unit is used to establish a third corresponding relationship among the current tool path data, the current geometric feature data, the current association relationship data, the current process logic and the current processing data.

[0011] Preferably, the post-processing module includes a tool path parsing unit and an NC code generating unit; The tool path analysis unit is used to analyze the current tool path data, and the analysis steps include data discretization, interpolation type mark, motion direction compensation, tool compensation and processing parameter matching, and the output is the current tool path analysis data; The NC code generation unit is used to generate NC code according to the current tool path analysis data, and output it as current NC code data.

[0012] Preferably, the code update module includes a CAD file update unit, a geometric feature comparison unit, an update path generation unit, an update path integration unit and an update code generation unit; The CAD file updating unit is used to modify the first CAD file and output it as a second CAD file; The geometric feature comparison unit is used to input the second CAD file into the geometric modeling module, obtain an updated geometric feature set and an updated process logic, traverse the updated geometric feature set and the current geometric feature set, filter the geometric features and association relationships in the updated geometric feature set that are different from the current geometric feature set, and output them as updated geometric feature data and updated association relationship data, filter the geometric features and association relationships in the current geometric feature set that are different from the updated geometric feature set, and output them as marked geometric feature data and marked association relationship data.

[0013] Preferably, the update path generation unit is used to obtain the corresponding tool path based on the updated geometric feature data, the updated association relationship data and the updated process logic, and output it as updated tool path data; The update path integration unit is used to delete the current tool path data corresponding to the marked geometric feature data and the marked association relationship data in the third corresponding relationship, integrate the updated tool path data with the current tool path data in the deleted third corresponding relationship, and generate updated tool path data; The update code generation unit is used to input the update tool path data into the post-processing module, and output the updated NC code data.

[0014] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the automatic programming system for a multi-axis CNC milling machine is realized.

[0015] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the automatic programming system for a multi-axis CNC milling machine is realized.

[0016] Beneficial effects of the present invention: The present invention closely links the encoding process with part features to achieve the function of automatically modifying the code according to the different part features. When the part design is changed, the new and old CAD files are compared, the changed features are identified, and the affected tool paths and NC codes are regenerated, which significantly improves programming efficiency and flexibility, reduces the workload of manual adjustment, and optimizes the tool path, improving processing efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A basic flow chart of an automatic programming system for a multi-axis CNC milling machine provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0018] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings. It is obvious that the described embodiments are only part of the embodiments of the present invention, but not all of the embodiments.

[0019] Example, see Figure 1 , provides a multi-axis CNC milling machine automatic programming system, including a geometric modeling module, a process planning module, a tool path module, a post-processing module and a code update module: The geometric modeling module is used to receive a first CAD file, identify geometric features, output as current geometric feature data, extract the association relationship between the current geometric feature data, output as current association relationship data, establish a first corresponding relationship between the current geometric feature data and the current association relationship data, output as the current geometric feature set, and store the current geometric feature set in a preset geometric feature database.

[0020] The process planning module is used to obtain the current geometric feature set and the current process logic, input the current geometric feature set into a preset processing knowledge base, the processing knowledge base includes geometric feature data, corresponding association relationship data and corresponding processing data, obtain the processing data corresponding to the current geometric feature set, output it as the current processing data, and establish a second correspondence between the current geometric feature data, the current association relationship data, the current process logic and the current processing data.

[0021] The tool trajectory module is used to obtain the tool path based on the second corresponding relationship, output it as the current tool path data, and establish a third corresponding relationship between the current tool path data, the current geometric feature data, the current association relationship data, the current process logic and the current processing data.

[0022] The post-processing module is used to parse the current tool path data and output it as the current NC code data.

[0023] The code update module is used to obtain the second CAD file and input it into the geometric modeling module, obtain the updated geometric feature set and the updated process logic, traverse the updated geometric feature set and the current geometric feature set, screen the different geometric features and association relationships between the updated geometric feature set and the current geometric feature set, obtain the tool path based on the different geometric features and association relationships between the updated geometric feature set and the current geometric feature set and output it as updated tool path data, integrate the updated tool path data with the current tool path data in the third corresponding relationship, generate updated tool path data, input the updated tool path data into the post-processing module, and output it as updated NC code data.

[0024] The geometric modeling module includes a first file receiving unit, a geometric feature recognition unit, an association relationship analysis unit, a first relationship establishment unit and a basic data storage unit.

[0025] The first file receiving unit is used to receive and parse the first CAD file, extract the geometric model, and output it as first geometric model data.

[0026] The first file receiving unit receives and parses the CAD file, quickly extracts the geometric model of the part, provides raw data for subsequent processing, ensures the accuracy and timeliness of data input, and lays the foundation for the smooth progress of subsequent steps.

[0027] The geometric feature recognition unit is used to perform geometric feature recognition on the first geometric model data. The geometric features include corresponding size data, position data and direction data of planes, cubes, cylinders, holes, grooves, steps, chamfers, fillets, cavities, ribs and groove surfaces. The output is the current geometric feature data. The platform used by this unit is Siemens NX.

[0028] The geometric feature recognition unit accurately identifies the geometric features of parts, including various basic shapes and complex structures, and provides detailed size, position and orientation data, providing an accurate basis for process planning and tool selection.

[0029] The association analysis unit is used to extract the associations of planes, cubes, cylinders, holes, slots, steps, chamfers, fillets, cavities, ribs and groove surfaces in the current geometric feature data, and the output is the current association data. The platform used by this unit is OpenCascade.

[0030] The correlation analysis unit deeply analyzes the correlation between geometric features and outputs clear correlation data, which helps to optimize tool paths and reduce machining errors.

[0031] The first relationship establishing unit is used to establish a first corresponding relationship between the current geometric feature data and the current association relationship data, and the output is the current geometric feature set.

[0032] The first relationship establishing unit establishes the corresponding relationship between the geometric feature data and the associated relationship data, and integrates them to form a complete geometric feature set, providing a unified and standardized data basis for subsequent steps.

[0033] The basic data storage unit is used to store the current geometric feature set into a preset geometric feature database.

[0034] The basic data storage unit stores the geometric feature set safely and efficiently in a preset geometric feature database, which facilitates data management and subsequent calls, and improves programming efficiency and data utilization.

[0035] The geometric modeling module is the core component of the multi-axis CNC milling machine automatic programming system. It realizes the efficient and accurate conversion from CAD files to geometric feature sets. Through precise analysis and recognition, it can fully capture the geometric features and associations of parts, providing a solid foundation for subsequent process planning, tool path generation, etc.

[0036] The process planning module includes a feature logic input unit, a processing data matching unit and a second relationship establishing unit.

[0037] The feature logic input unit is used to obtain the current geometric feature set and the current process logic and input the current geometric feature set into a preset processing knowledge base.

[0038] The feature logic input unit receives the current geometric feature set and process logic to ensure the accuracy and pertinence of subsequent processing, inputs the geometric feature set into the processing knowledge base, provides a basis for subsequent matching of processing data, and ensures the accuracy and completeness of the input data through intelligent recognition and analysis.

[0039] The processing data matching unit is used to match the processing data corresponding to the current geometric feature set in the processing knowledge base and output it as the current processing data.

[0040] The processing data matching unit intelligently searches the processing data that matches the current geometric feature set in the processing knowledge base, and outputs the optimal processing parameters, cutting speed, feed rate, etc., to ensure the dual improvement of processing efficiency and quality. Through precise matching, it reduces human intervention and improves the degree of automation of the processing process.

[0041] The second relationship establishing unit is used to establish a second corresponding relationship among the current geometric feature data, the current association relationship data, the current process logic and the current processing data.

[0042] The second relationship establishment unit establishes the correspondence between geometric feature data, associative relationship data, process logic and processing data, and integrates them to form a complete processing technology plan, providing clear guidance for the subsequent generation of tool trajectories. By establishing this correspondence, the planning and adjustment of the processing technology is more flexible and efficient.

[0043] The process planning module is a key link in the automatic programming system of multi-axis CNC milling machines. It intelligently matches the optimal processing strategy and data according to the geometric features and process requirements of the parts, provides guidance for the generation of subsequent tool trajectories, and realizes automated planning and optimization of the processing technology by integrating geometric features, associations, process logic and processing data.

[0044] The tool path module includes a machining path planning unit and a third relationship establishment unit, and the platform used by this module is Mastercam.

[0045] The machining path planning unit is used to obtain the tool path based on the second corresponding relationship, optimize the tool path, delete the empty stroke, and output it as the current tool path data.

[0046] The machining path planning unit accurately obtains the tool path based on the second correspondence, ensures the accuracy and pertinence of the machining process, and intelligently optimizes the tool path, such as reducing idle strokes and shortening machining time, to improve machining efficiency. It outputs the current tool path data and provides clear guidance for subsequent machining operations. With the help of the functions of the Mastercam platform, it can realize the precise calculation and simulation of complex tool paths.

[0047] The third relationship establishing unit is used to establish a third corresponding relationship among the current tool path data, the current geometric feature data, the current association relationship data, the current process logic and the current processing data.

[0048] The third relationship establishment unit establishes the correspondence between the tool path data and other key data. This correspondence ensures the data consistency and traceability during the processing, and integrates to form a complete processing data chain, providing a solid foundation for the automated execution of subsequent processing steps. By establishing this comprehensive correspondence, the adjustment and optimization of the tool trajectory is more convenient and efficient.

[0049] The tool path module is the core component of the automatic programming system of multi-axis CNC milling machines. Based on the Mastercam platform, it realizes efficient and accurate planning and optimization of tool paths. By integrating geometric features, associations, process logic and processing data, it generates and optimizes tool paths, significantly improving the efficiency and accuracy of CNC machining.

[0050] The post-processing module includes a tool path parsing unit and an NC code generation unit.

[0051] The tool path analysis unit is used to analyze the current tool path data. The analysis steps include data discretization, interpolation type mark, motion direction compensation, tool compensation and processing parameter matching, and the output is the current tool path analysis data.

[0052] The tool path parsing unit comprehensively analyzes the current tool path data, discretizes the continuous tool path data into a series of controllable points for easy subsequent processing, selects the appropriate interpolation type according to the processing requirements, outputs the current tool path parsing data, and provides accurate and complete instruction information for subsequent NC code generation.

[0053] The NC code generation unit is used to generate NC code according to the current tool path analysis data, and outputs the current NC code data.

[0054] The NC code generation unit automatically generates NC code that meets machine tool standards based on the current tool path analysis data. The NC code includes key information such as machine tool control instructions, tool motion instructions, and processing parameters. It outputs the current NC code data to ensure the accuracy and executability of the processing instructions, and realizes direct transmission and execution of the NC code through the interface with the machine tool control system.

[0055] The post-processing module is the final output link of the automatic programming system of multi-axis CNC milling machines. It is responsible for converting tool path data into NC code recognizable by the machine tool to ensure the accuracy and executability of processing instructions. Through sophisticated parsing and conversion steps, it achieves seamless connection from tool path to NC code, providing a reliable source of instructions for CNC processing.

[0056] The code update module includes a CAD file update unit, a geometric feature comparison unit, an update path generation unit, an update path integration unit and an update code generation unit.

[0057] The CAD file updating unit is used to modify the first CAD file and output it as a second CAD file.

[0058] The CAD file update unit is responsible for receiving and modifying the first CAD file and generating a second CAD file containing the updated content. This is the starting point of the entire update process and provides necessary input for subsequent steps.

[0059] The geometric feature comparison unit is used to input the second CAD file into the geometric modeling module, obtain the updated geometric feature set and the updated process logic, traverse the updated geometric feature set and the current geometric feature set, filter the geometric features and association relationships in the updated geometric feature set that are different from the current geometric feature set, and output them as updated geometric feature data and updated association relationship data, filter the geometric features and association relationships in the current geometric feature set that are different from the updated geometric feature set, and output them as marked geometric feature data and marked association relationship data.

[0060] The geometric feature comparison unit inputs the second CAD file into the geometric modeling module, extracts the updated geometric feature set and process logic, and then traverses the updated geometric feature set and the current geometric feature set to identify the differences between the two, including different geometric features and association relationships. Finally, it outputs updated geometric feature data, updated association relationship data, and marked geometric feature data and marked association relationship data to provide key information for subsequent steps.

[0061] The update path generation unit is used to obtain the corresponding tool path based on the updated geometric feature data, the updated association relationship data and the updated process logic, and the output is the updated tool path data.

[0062] The update path generation unit generates a tool path corresponding to the update content based on the updated geometric feature data, the updated association relationship data and the updated process logic. The generated tool path is the basis for subsequent NC code generation.

[0063] The update path integration unit is used to delete the current tool path data corresponding to the marked geometric feature data and the marked association relationship data in the third corresponding relationship, integrate the updated tool path data with the current tool path data in the deleted third corresponding relationship, and generate updated tool path data.

[0064] The update path integration unit first deletes the current tool path data corresponding to the marked geometric feature data and the marked association relationship data, and then integrates the updated tool path data with the remaining current tool path data to generate complete updated tool path data, ensuring a smooth transition and seamless connection between the new and old tool paths.

[0065] The update code generation unit is used to input the update tool path data into the post-processing module, and output the updated NC code data.

[0066] The update code generation unit inputs the update tool path data into the post-processing module, and after a series of processing and conversion, generates the final update NC code data. These NC codes can be directly used for the processing operations of CNC machine tools, realizing a complete automated process from CAD file modification to NC code generation.

[0067] The code update module is designed to automatically process and update CAD files and their associated NC codes. Users can make necessary modifications to the original CAD files and automatically generate updated NC codes reflecting these modifications, greatly improving the efficiency and accuracy of NC programming and reducing manual intervention and potential errors.

[0068] The present invention uses a geometric modeling module to accurately identify the geometric features of parts, including planes, cubes, cylinders, holes, slots, etc., and extract the associations between these features. The process planning module automatically matches the best processing data and process logic based on the geometric features and associations of the parts in combination with a preset processing knowledge base. The tool trajectory module generates an optimized tool path based on these processing data and process logic, ensuring a close association between the encoding process and part features, so that the processing strategy and tool path can be automatically adjusted according to changes in part features. When the part design changes, the user only needs to provide an updated CAD file, and the code update module automatically compares the old and new CAD files to identify the changes. The changed geometric features and associations are used to regenerate the affected tool paths based on these changes and automatically integrate them into the original tool path data to generate updated NC codes, which greatly reduces the workload of manual code adjustment and improves programming efficiency and flexibility. Since the present invention can automatically generate the optimal tool path and NC code according to the part features, the possibility of human intervention and errors is reduced. At the same time, the processing efficiency and accuracy are further improved by optimizing the tool path and deleting empty strokes. The multi-axis CNC milling machine automatic programming system of the present invention provides an efficient, accurate and flexible programming solution for the manufacturing industry, which helps to promote the digital and intelligent transformation of the manufacturing industry.

[0069] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Among them, the storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0070] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A multi-axis CNC milling machine automatic programming system, characterized in that: Including geometry modeling module, process planning module, tool path module, post-processing module and code update module: The geometric modeling module is used to receive a first CAD file, identify geometric features, output as current geometric feature data, extract the association relationship between the current geometric feature data, output as current association relationship data, establish a first corresponding relationship between the current geometric feature data and the current association relationship data, output as a current geometric feature set, and store the current geometric feature set in a preset geometric feature database; The process planning module is used to obtain the current geometric feature set and the current process logic, input the current geometric feature set into a preset processing knowledge base, the processing knowledge base includes geometric feature data, corresponding association relationship data and corresponding processing data, obtain the processing data corresponding to the current geometric feature set, output it as the current processing data, and establish a second corresponding relationship between the current geometric feature data, the current association relationship data, the current process logic and the current processing data; The tool path module is used to obtain the tool path based on the second corresponding relationship, output it as current tool path data, and establish a third corresponding relationship between the current tool path data, the current geometric feature data, the current association relationship data, the current process logic and the current processing data; The post-processing module is used to parse the current tool path data and output the current NC code data; The code update module is used to obtain the second CAD file and input it into the geometric modeling module, obtain the updated geometric feature set and the updated process logic, traverse the updated geometric feature set and the current geometric feature set, screen the different geometric features and association relationships between the updated geometric feature set and the current geometric feature set, obtain the tool path based on the different geometric features and association relationships between the updated geometric feature set and the current geometric feature set and output it as updated tool path data, integrate the updated tool path data with the current tool path data in the third corresponding relationship, generate updated tool path data, input the updated tool path data into the post-processing module, and output it as updated NC code data.

2. A multi-axis CNC milling machine automatic programming system as claimed in claim 1, characterized in that: The geometric modeling module includes a first file receiving unit, a geometric feature recognition unit, an association relationship analysis unit, a first relationship establishment unit and a basic data storage unit; The first file receiving unit is used to receive and parse the first CAD file, extract the geometric model, and output it as first geometric model data; The geometric feature recognition unit is used to perform geometric feature recognition on the first geometric model data, wherein the geometric features include corresponding size data, position data and direction data of a plane, a cube, a cylinder, a hole, a slot, a step, a chamfer, a fillet, a cavity, a rib and a slot surface, and outputs the data as current geometric feature data; The association relationship analysis unit is used to extract the association relationship between planes, cubes, cylinders, holes, grooves, steps, chamfers, fillets, cavities, ribs and groove surfaces in the current geometric feature data, and outputs the current association relationship data.

3. A multi-axis CNC milling machine automatic programming system as claimed in claim 2, characterized in that: The first relationship establishing unit is used to establish a first corresponding relationship between the current geometric feature data and the current association relationship data, and output it as a current geometric feature set; The basic data storage unit is used to store the current geometric feature set in a preset geometric feature database.

4. A multi-axis CNC milling machine automatic programming system as claimed in claim 3, characterized in that: The process planning module includes a feature logic input unit, a processing data matching unit, and a second relationship establishment unit; The feature logic input unit is used to obtain the current geometric feature set and the current process logic and input the current geometric feature set into a preset processing knowledge base; The processing data matching unit is used to match the processing data corresponding to the current geometric feature set in the processing knowledge base and output it as the current processing data; The second relationship establishing unit is used to establish a second corresponding relationship among the current geometric feature data, the current association relationship data, the current process logic and the current processing data.

5. A multi-axis CNC milling machine automatic programming system as claimed in claim 4, characterized in that: The tool trajectory module includes a machining path planning unit and a third relationship establishing unit; The machining path planning unit is used to obtain a tool path based on the second corresponding relationship, optimize the tool path, delete the empty stroke, and output it as current tool path data; The third relationship establishing unit is used to establish a third corresponding relationship among the current tool path data, the current geometric feature data, the current association relationship data, the current process logic and the current processing data.

6. A multi-axis CNC milling machine automatic programming system as claimed in claim 5, characterized in that: The post-processing module includes a tool path parsing unit and an NC code generating unit; The tool path analysis unit is used to analyze the current tool path data, and the analysis steps include data discretization, interpolation type mark, motion direction compensation, tool compensation and processing parameter matching, and the output is the current tool path analysis data; The NC code generation unit is used to generate NC code according to the current tool path analysis data, and output it as current NC code data.

7. A multi-axis CNC milling machine automatic programming system as claimed in claim 6, characterized in that: The code update module includes a CAD file update unit, a geometric feature comparison unit, an update path generation unit, an update path integration unit and an update code generation unit; The CAD file updating unit is used to modify the first CAD file and output it as a second CAD file; The geometric feature comparison unit is used to input the second CAD file into the geometric modeling module, obtain an updated geometric feature set and an updated process logic, traverse the updated geometric feature set and the current geometric feature set, filter the geometric features and association relationships in the updated geometric feature set that are different from the current geometric feature set, and output them as updated geometric feature data and updated association relationship data, filter the geometric features and association relationships in the current geometric feature set that are different from the updated geometric feature set, and output them as marked geometric feature data and marked association relationship data.

8. The multi-axis CNC milling machine automatic programming system as claimed in claim 7, characterized in that: The update path generation unit is used to obtain the corresponding tool path based on the updated geometric feature data, the updated association relationship data and the updated process logic, and output it as updated tool path data; The update path integration unit is used to delete the current tool path data corresponding to the marked geometric feature data and the marked association relationship data in the third corresponding relationship, integrate the updated tool path data with the current tool path data in the deleted third corresponding relationship, and generate updated tool path data; The update code generation unit is used to input the update tool path data into the post-processing module, and output the updated NC code data.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the automatic programming system for a multi-axis CNC milling machine described in any one of claims 1 to 8 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the automatic programming system for a multi-axis CNC milling machine according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Imaging interactive numerical control turning automatic programming method and system

    CN101334657A

  • Numerical control system milling machine dialog mode graph programming system and method based on Minigui

    CN106647635A

  • CAM system for automatically controlling machining center according to drawings

    CN117348524A

  • Programming-free CNC machining method and system based on CAD file and related equipment

    CN119414779A

  • Context sensitive relational feature / measurement command menu display in coordinate measurement machine (CMM) user interface

    US20180089360A1