An automatic programming system for a multi-axis CNC milling machine
Through the automatic programming system of multi-axis CNC milling machine, automatic programming of part characteristics is realized, the problem of low programming efficiency in the existing technology is solved, and programming efficiency and machining accuracy are improved.
Patent Information
- Application Number
- CN202510180471.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-19
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2045-02-19
AI Technical Summary
The prior art can only be programmed for a single part, and it is difficult to associate the encoding process with part features and modify the code according to the differences in part features, affecting the encoding efficiency and effect.
It provides a multi-axis CNC milling machine automatic programming system, including geometric modeling module, process planning module, tool track module and post-processing module. By identifying the geometric features and association relationships of parts, generating and optimizing tool paths and NC codes, realizing automatic modification of part features.
It significantly improves programming efficiency and flexibility, reduces the workload of manual adjustment, optimizes tool paths, and improves machining efficiency and accuracy.
Smart Images

Figure CN119644918B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of numerical control programming, and particularly to an automatic programming system for a multi-axis numerical control milling machine. Background Art
[0002] With the rapid development of modern manufacturing, numerical control milling technology has occupied an important position in the field of machining. Traditional numerical control programming methods rely on manual writing or using simple CAM (Computer Aided Manufacturing) software for programming. These methods are not only inefficient but also error-prone. Especially for the machining of complex parts, the programming process is particularly cumbersome. In order to improve programming efficiency and machining accuracy, an automatic programming system for a multi-axis numerical control milling machine has emerged.
[0003] Currently, the Chinese invention patent with the application number CN201611195824.4 discloses a conversational graphic programming system and method for a numerical control 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. In this interface editing module, Minigui is used to implement the display design of the interface and draw the required interface. The data processing module processes the data input from the interface to obtain the data required for numerical control codes. The G-code generation module then matches the corresponding fixed cycle instructions according to the data obtained by the data processing module to obtain the program code for machining the entire part.
[0004] The above technology can only program a single part each time, and it is difficult to associate the coding process with part features and modify the code according to 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 each time, and it is difficult to associate the coding process with part features and modify the code according to different part features, which affects the coding efficiency and effect.
[0006] To solve the above technical problem, the present invention provides the following technical solutions:
[0007] An automatic programming system for a multi-axis numerical control milling machine, including a geometric modeling module, a process planning module, a tool path module, a post-processing module, and a code update module:
[0008] The geometric modeling module is used to receive the first CAD file, identify geometric features, output the current geometric feature data, extract the association relationships between the current geometric feature data, output the current association relationship data, establish the first correspondence between the current geometric feature data and the current association relationship data, output the current geometric feature set, and store the current geometric feature set in a preset geometric feature database;
[0009] 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 machining knowledge base, where the machining knowledge base includes geometric feature data, corresponding association relationship data, and corresponding machining data, obtain the machining data corresponding to the current geometric feature set, output the current machining data, and establish the second correspondence between the current geometric feature data, the current association relationship data, the current process logic, and the current machining data;
[0010] The tool path module is used to obtain the tool path based on the second correspondence, output the current tool path data, and establish the third correspondence between the current tool path data, the current geometric feature data, the current association relationship data, the current process logic, and the current machining data;
[0011] The post-processing module is used to parse the current tool path data and output the current NC code data;
[0012] 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, filter out the different geometric features and association relationships in the updated geometric feature set and the current geometric feature set, obtain the tool path based on the different geometric features and association relationships in the updated geometric feature set and the current geometric feature set and output the updated tool path data, integrate the updated tool path data with the current tool path data in the third correspondence to generate the updated tool path data, and input the updated tool path data into the post-processing module to output the updated NC code data.
[0013] Preferably, the geometric modeling module includes a first file receiving unit, a geometric feature identifying unit, an association relationship analyzing unit, a first relationship establishing unit, and a basic data storing unit;
[0014] The first file receiving unit is used to receive and parse the first CAD file, extract the geometric model, and output the first geometric model data;
[0015] The geometric feature identifying unit is used to perform geometric feature identification on the first geometric model data. The geometric features include the corresponding dimension data, position data, and direction data of a plane, a cube, a cylinder, a hole, a groove, a step, a chamfer, a fillet, a cavity, and a rib, and output the current geometric feature data;
[0016] The associated relationship analysis unit is used to extract the associated relationships of planes, cubes, cylinders, holes, grooves, steps, chamfers, fillets, cavities, and ribs in the current geometric feature data, and output the current associated relationship data;
[0017] The first relationship establishment unit is used to establish the first correspondence between the current geometric feature data and the current associated relationship data, and output the current geometric feature set;
[0018] The basic data storage unit is used to store the current geometric feature set into a preset geometric feature database.
[0019] Preferably, the process planning module includes a feature logic input unit, a machining data matching unit, and a second relationship establishment unit;
[0020] 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 machining knowledge base;
[0021] The machining data matching unit is used to match the machining data corresponding to the current geometric feature set in the machining knowledge base and output the current machining data;
[0022] The second relationship establishment unit is used to establish the second correspondence among the current geometric feature data, the current associated relationship data, the current process logic, and the current machining data.
[0023] Preferably, the tool path module includes a machining path planning unit and a third relationship establishment unit;
[0024] The machining path planning unit is used to obtain the tool path based on the second correspondence, optimize the tool path, delete the idle strokes, and output the current tool path data;
[0025] The third relationship establishment unit is used to establish the third correspondence among the current tool path data, the current geometric feature data, the current associated relationship data, the current process logic, and the current machining data.
[0026] Preferably, the post-processing module includes a tool path parsing unit and an NC code generation unit;
[0027] The tool path parsing unit is used to parse the current tool path data, and the parsing steps include data discretization, interpolation type flag, motion direction compensation, tool compensation, and machining parameter matching, and output the current tool path parsing data;
[0028] The NC code generation unit is used to generate NC codes according to the current tool path parsing data and output the current NC code data.
[0029] 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;
[0030] The CAD file update unit is used to modify the first CAD file and output it as the second CAD file;
[0031] The geometric feature comparison unit is used to input the second CAD file into the geometric modeling module to obtain an updated geometric feature set and updated process logic, traverse the updated geometric feature set and the current geometric feature set, filter out the geometric features and associated 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 associated relationship data. Filter out the geometric features and associated 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 associated relationship data;
[0032] The update path generation unit is used to obtain the corresponding tool path based on the updated geometric feature data, updated associated relationship data, and updated process logic, and output it as updated tool path data;
[0033] The update path integration unit is used to delete the current tool path data in the third corresponding relationship that corresponds to the marked geometric feature data and marked associated relationship data, integrate the updated tool path data with the current tool path data in the third corresponding relationship after deletion, and generate updated tool path data;
[0034] The update code generation unit is used to input the updated tool path data into the post-processing module and output it as updated NC code data.
[0035] An electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the multi-axis CNC milling machine automatic programming system described above is implemented.
[0036] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the multi-axis CNC milling machine automatic programming system described above is implemented.
[0037] Advantages of the present invention: By closely associating the coding process with part features, the present invention realizes the function of automatically modifying the code according to different part features. When the part design changes, the new and old CAD files are compared, the changed features are identified, and the affected tool paths and NC codes are regenerated, significantly improving the programming efficiency and flexibility, reducing the manual adjustment workload, optimizing the tool paths at the same time, and improving the machining efficiency and accuracy. Description of the Drawings
[0038] Figure 1 Schematic diagram of the basic process of an automatic programming system for a multi-axis CNC milling machine provided by an embodiment of the present invention. Specific embodiments
[0039] In order to make the above objects, features and advantages of the present invention more obvious and understandable, the following detailed description of the specific embodiments of the present invention will be made in conjunction with the accompanying drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all embodiments.
[0040] Embodiment, refer to Figure 1 , provides an automatic programming system for a multi-axis CNC milling machine, including a geometric modeling module, a process planning module, a tool path module, a post-processing module and a code update module:
[0041] The geometric modeling module is used to receive the first CAD file, identify geometric features, output the current geometric feature data, extract the association relationship between the current geometric feature data, output the current association relationship data, establish the first correspondence relationship between the current geometric feature data and the current association relationship data, output the current geometric feature set, and store the current geometric feature set in a preset geometric feature database.
[0042] 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 machining knowledge base, the machining knowledge base includes geometric feature data, corresponding association relationship data and corresponding machining data, obtain the machining data corresponding to the current geometric feature set, output the current machining data, and establish the second correspondence relationship between the current geometric feature data, the current association relationship data, the current process logic and the current machining data.
[0043] The tool path module is used to obtain the tool path based on the second correspondence relationship, output the current tool path data, and establish the third correspondence relationship between the current tool path data, the current geometric feature data, the current association relationship data, the current process logic and the current machining data.
[0044] The post-processing module is used to parse the current tool path data and output the current NC code data.
[0045] 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 updated process logic, traverse the updated geometric feature set and the current geometric feature set, screen out the different geometric features and association relationships in the updated geometric feature set and the current geometric feature set, obtain the tool path based on the different geometric features and association relationships in 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 to generate updated tool path data, input the updated tool path data into the post-processing module, and output it as updated NC code data.
[0046] 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.
[0047] The first file receiving unit is used to receive and parse the first CAD file, extract the geometric model, and output it as the first geometric model data.
[0048] The first file receiving unit receives and parses the CAD file, quickly extracts the geometric model of the part, provides the original data for subsequent processing, ensures the accuracy and timeliness of data input, and lays a foundation for the smooth progress of subsequent steps.
[0049] The geometric feature recognition unit is used to perform geometric feature recognition on the first geometric model data. The geometric features include the corresponding dimension data, position data, and direction data of planes, cubes, cylinders, holes, grooves, steps, chamfers, fillets, cavities, and ribs, and output it as the current geometric feature data. The platform used by this unit is Siemens NX.
[0050] The geometric feature recognition unit accurately identifies the geometric features of the part, including various basic shapes and complex structures, provides detailed dimension, position, and direction data, and provides an accurate basis for process planning and tool selection.
[0051] The association relationship analysis unit is used to extract the association relationships of planes, cubes, cylinders, holes, grooves, steps, chamfers, fillets, cavities, and ribs in the current geometric feature data, and output it as the current association relationship data. The platform used by this unit is OpenCascade.
[0052] The association relationship analysis unit deeply analyzes the association relationships between geometric features and outputs clear association relationship data, which helps to optimize the tool path and reduce machining errors.
[0053] The first relationship establishment unit is used to establish the first corresponding relationship between the current geometric feature data and the current association relationship data, and output it as the current geometric feature set.
[0054] The first relationship establishment unit establishes the correspondence between geometric feature data and associated relationship data, integrates and forms a complete geometric feature set, providing a unified and standardized data foundation for subsequent steps.
[0055] The basic data storage unit is used to store the current geometric feature set into a preset geometric feature database.
[0056] The basic data storage unit stores the geometric feature set safely and efficiently into a preset geometric feature database, facilitating data management and subsequent calls, and improving programming efficiency and data utilization rate.
[0057] The geometric modeling module is the core component of the automatic programming system for multi-axis CNC milling machines. It realizes the efficient and accurate conversion from CAD files to geometric feature sets. Through fine parsing and recognition, it can comprehensively capture the geometric features and associated relationships of parts, providing a solid foundation for subsequent process planning, tool path generation, etc.
[0058] The process planning module includes a feature logic input unit, a machining data matching unit, and a second relationship establishment unit.
[0059] 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 machining knowledge base.
[0060] The feature logic input unit receives the current geometric feature set and process logic, ensures the accuracy and pertinence of subsequent machining, inputs the geometric feature set into the machining knowledge base, provides a basis for subsequent matching of machining data, and ensures the accuracy and integrity of the input data through intelligent recognition and analysis.
[0061] The machining data matching unit is used to match the machining data corresponding to the current geometric feature set in the machining knowledge base and output it as the current machining data.
[0062] The machining data matching unit intelligently searches for the machining data matching the current geometric feature set in the machining knowledge base, outputs the optimal machining parameters, cutting speed, feed rate, etc., ensures the double improvement of machining efficiency and quality, reduces manual intervention through precise matching, and improves the automation degree of the machining process.
[0063] The second relationship establishment unit is used to establish the second correspondence between the current geometric feature data, the current associated relationship data, the current process logic, and the current machining data.
[0064] The second relationship establishment unit establishes the correspondence between geometric feature data, associated relationship data, process logic, and machining data, integrates and forms a complete machining process plan, provides clear guidance for the subsequent generation of tool paths, and makes the planning and adjustment of machining processes more flexible and efficient by establishing this correspondence.
[0065] The process planning module is a key part of the automatic programming system for multi-axis CNC milling machines. According to the geometric features and process requirements of the part, it intelligently matches the optimal machining strategies and data, providing guidance for the subsequent generation of tool paths. By integrating geometric features, association relationships, process logic, and machining data, it realizes the automatic planning and optimization of machining processes.
[0066] The tool path module includes a machining path planning unit and a third relationship establishment unit. The platform applied by this module is Mastercam.
[0067] The machining path planning unit is used to obtain the tool path based on the second correspondence relationship, optimize the tool path, delete the idle travel, and output it as the current tool path data.
[0068] Based on the second correspondence relationship, the machining path planning unit accurately obtains the tool path, ensuring the accuracy and pertinence of the machining process. It intelligently optimizes the tool path, such as reducing the idle travel and shortening the machining time, improving the machining efficiency. It outputs the current tool path data, providing clear guidance for subsequent machining operations. With the help of the functions of the Mastercam platform, it realizes the accurate calculation and simulation of complex tool paths.
[0069] The third relationship establishment unit is used to establish the third correspondence relationship among the current tool path data, the current geometric feature data, the current association relationship data, the current process logic, and the current machining data.
[0070] The third relationship establishment unit establishes the correspondence relationship between the tool path data and other key data. This correspondence relationship ensures the data consistency and traceability during the machining process, integrates to form a complete machining data chain, providing a solid foundation for the automatic execution of subsequent machining steps. By establishing this comprehensive correspondence relationship, the adjustment and optimization of the tool path are made more convenient and efficient.
[0071] The tool path module is a core component of the automatic programming system for multi-axis CNC milling machines. Based on the Mastercam platform, it realizes the efficient and accurate planning and optimization of tool paths. By integrating geometric features, association relationships, process logic, and machining data, it generates and optimizes the tool paths, significantly improving the efficiency and accuracy of CNC machining.
[0072] The post-processing module includes a tool path parsing unit and an NC code generation unit.
[0073] The tool path parsing unit is used to parse the current tool path data. The parsing steps include data discretization, interpolation type flag, motion direction compensation, tool compensation, and machining parameter matching, and the output is the current tool path parsing data.
[0074] The tool path parsing unit comprehensively parses the current tool path data, discretizes the continuous tool path data into a series of controllable points for subsequent processing, selects an appropriate interpolation type according to the machining requirements, and outputs the current tool path parsing data, providing accurate and complete instruction information for the subsequent NC code generation.
[0075] The NC code generation unit is used to generate NC code according to the current tool path parsing data and outputs it as the current NC code data.
[0076] The NC code generation unit automatically generates NC code that complies with the machine tool standard according to the current tool path parsing data. The NC code includes key information such as machine tool control instructions, tool movement instructions, and machining parameters. It outputs the current NC code data to ensure the accuracy and executability of the machining instructions. Through the interface with the machine tool control system, the direct transmission and execution of the NC code are realized.
[0077] The post-processing module is the final output link of the multi-axis CNC milling machine automatic programming system. It is responsible for converting the tool path data into NC code recognizable by the machine tool, ensuring the accuracy and executability of the machining instructions. Through fine parsing and conversion steps, seamless docking from the tool path to the NC code is achieved, providing a reliable instruction source for NC machining.
[0078] 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.
[0079] The CAD file update unit is used to modify the first CAD file and outputs it as the second CAD file.
[0080] The CAD file update unit is responsible for receiving and modifying the first CAD file to generate the second CAD file containing the updated content. This is the starting point of the entire update process and provides the necessary input for subsequent steps.
[0081] The geometric feature comparison unit is used to input the second CAD file into the geometric modeling module to obtain the updated geometric feature set and updated process logic. It traverses the updated geometric feature set and the current geometric feature set, filters out the geometric features and association relationships in the updated geometric feature set that are different from the current geometric feature set, and outputs them as updated geometric feature data and updated association relationship data. It also filters out the geometric features and association relationships in the current geometric feature set that are different from the updated geometric feature set and outputs them as marked geometric feature data and marked association relationship data.
[0082] The geometric feature comparison unit inputs the second CAD file into the geometric modeling module, extracts the updated geometric feature set and process logic, 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 the updated geometric feature data, updated association relationship data, as well as marked geometric feature data and marked association relationship data, providing key information for subsequent steps.
[0083] The updated path generation unit is used to obtain the corresponding tool path based on the updated geometric feature data, updated association relationship data, and updated process logic, and outputs the updated tool path data.
[0084] The updated path generation unit generates a tool path corresponding to the updated content based on the updated geometric feature data, updated association relationship data, and updated process logic. The generated tool path is the basis for subsequent NC code generation.
[0085] The updated path integration unit is used to delete the current tool path data corresponding to the marked geometric feature data and marked association relationship data in the third correspondence relationship, and integrate the updated tool path data with the remaining current tool path data in the third correspondence relationship after deletion to generate the updated tool path data.
[0086] The updated path integration unit first deletes the current tool path data corresponding to the marked geometric feature data and 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 old and new tool paths.
[0087] The updated code generation unit is used to input the updated tool path data into the post-processing module and outputs the updated NC code data.
[0088] The updated code generation unit inputs the updated tool path data into the post-processing module. After a series of processing and conversion, it generates the final updated NC code data. These NC codes can be directly used for the machining operations of CNC machine tools, realizing a complete automated process from CAD file modification to NC code generation.
[0089] The code update module aims to automatically process and update CAD files and their related NC codes. Users can make necessary modifications to the original CAD file and automatically generate updated NC codes that reflect these modifications, greatly improving the efficiency and accuracy of NC programming, reducing manual intervention and potential errors.
[0090] The present invention accurately identifies the geometric features of parts through a geometric modeling module, including planes, cubes, cylinders, holes, grooves, etc., and extracts the association relationships between these features. The process planning module automatically matches the best machining data and process logic based on the geometric features and association relationships of the parts, combined with a preset machining knowledge base. The tool path module then generates an optimized tool path based on these machining data and process logic, ensuring a close association between the coding process and the part features, enabling automatic adjustment of the machining strategy and tool path according to changes in the part features. When the part design changes, the user only needs to provide the updated CAD file. The code update module automatically compares the new and old CAD files, identifies the changed geometric features and association relationships, regenerates the affected tool paths based on these changes, and automatically integrates them into the original tool path data to generate the updated NC code, greatly reducing the workload of manually adjusting the code and improving the 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, by optimizing the tool path and deleting idle strokes and other measures, the machining efficiency and accuracy are further improved. The automatic programming system for multi-axis CNC milling machines of the present invention provides an efficient, accurate, and flexible programming solution for the manufacturing industry, helping to promote the digital and intelligent transformation of the manufacturing industry.
[0091] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code. Among them, the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM for short), electrically erasable programmable read-only memory (EEPROM for short), erasable programmable read-only memory (EPROM for short), programmable read-only memory (PROM for short), read-only memory (ROM for short), magnetic memory, flash memory, magnetic disk or optical disk. These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, and the instruction device implements the functions specified in one process Figure 1 one process or multiple processes and / or boxes Figure 1 functions specified in one box or multiple boxes.
[0092] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention, and they should all be covered by the scope of the claims of the present invention.
Claims
1. An automatic programming system for a multi-axis CNC milling machine, characterized in that, It 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 them as current geometric feature data, extract the association relationships among the current geometric feature data, output them as current association relationship data, establish a first correspondence between the current geometric feature data and the current association relationship data, output it as the 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 machining knowledge base. The machining knowledge base includes geometric feature data, corresponding association relationship data, and corresponding machining data, obtain the machining data corresponding to the current geometric feature set, output it as the current machining data, and establish a second correspondence among the current geometric feature data, the current association relationship data, the current process logic, and the current machining data; The tool path module is used to obtain a tool path based on the second correspondence, output it as current tool path data, and establish a third correspondence among the current tool path data, the current geometric feature data, the current association relationship data, the current process logic, and the current machining data; The post-processing module is used to parse the current tool path data and output it as current NC code data; The code update module is used to obtain a second CAD file and input it 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 out the different geometric features and association relationships between the updated geometric feature set and the current geometric feature set, obtain a 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 correspondence to 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. The automatic programming system for a multi-axis CNC milling machine according to claim 1, characterized in that The geometric modeling module includes a first file receiving unit, a geometric feature identifying unit, an association relationship analyzing unit, a first relationship establishing unit, and a basic data storing unit; The first file receiving unit is used to receive and parse the first CAD file, extract a geometric model, and output it as first geometric model data; The geometric feature identifying unit is used to perform geometric feature identification on the first geometric model data. The geometric features include the corresponding dimension data, position data, and direction data of planes, cubes, cylinders, holes, grooves, steps, chamfers, fillets, cavities, and ribs, and output them as current geometric feature data; The association relationship analyzing unit is used to extract the association relationships of planes, cubes, cylinders, holes, grooves, steps, chamfers, fillets, cavities, and ribs in the current geometric feature data and output them as current association relationship data; The first relationship establishing unit is used to establish a first correspondence between the current geometric feature data and the current association relationship data and output it as the current geometric feature set; The basic data storage unit is used to store the current geometric feature set into a preset geometric feature database.
3. The automatic programming system for a multi-axis CNC milling machine according to claim 2, characterized in that, The process planning module includes a feature logic input unit, a machining 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 machining knowledge base; The machining data matching unit is used to match the machining data corresponding to the current geometric feature set in the machining knowledge base and output it as the current machining data; The second relationship establishment unit is used to establish a second corresponding relationship among the current geometric feature data, the current associated relationship data, the current process logic, and the current machining data.
4. The automatic programming system of a multi-axis CNC milling machine according to claim 3, characterized in that The tool path module includes a machining path planning unit and a third relationship establishment unit; The machining path planning unit is used to obtain the tool path based on the second corresponding relationship, optimize the tool path, delete the idle travel, and output it as the current tool path data; The third relationship establishment unit is used to establish a third corresponding relationship among the current tool path data, the current geometric feature data, the current associated relationship data, the current process logic, and the current machining data.
5. The automatic programming system of a multi-axis CNC milling machine according to claim 4, characterized in that, The post-processing module includes a tool path parsing unit and an NC code generation unit; The tool path parsing unit is used to parse the current tool path data. The parsing steps include data discretization, interpolation type flag, motion direction compensation, tool compensation, and machining parameter matching, and output it as the current tool path parsing data; The NC code generation unit is used to generate NC code according to the current tool path parsing data and output it as the current NC code data.
6. The automatic programming system of a multi-axis CNC milling machine according to claim 5, 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 update unit is used to modify the first CAD file and output it as the second CAD file; The geometric feature comparison unit is used to input the second CAD file into the geometric modeling module to obtain the updated geometric feature set and the updated process logic, traverse the updated geometric feature set and the current geometric feature set, filter out the geometric features and associated relationships in the updated geometric feature set that are different from the current geometric feature set, and output them as the updated geometric feature data and the updated associated relationship data, filter out the geometric features and associated relationships in the current geometric feature set that are different from the updated geometric feature set, and output them as the marked geometric feature data and the marked associated relationship data; The update path generation unit is used to obtain the corresponding tool path based on the updated geometric feature data, the updated associated relationship data, and the updated process logic and output it as the 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 associated relationship data in the third corresponding relationship, integrate the updated tool path data with the current tool path data in the third corresponding relationship after deletion, and generate the updated tool path data; The update code generation unit is used to input the updated tool path data into the post-processing module and output it as the updated NC code data.
7. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements a multi-axis CNC milling machine automatic programming system according to any one of claims 1-6.
8. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, it implements a multi-axis CNC milling machine automatic programming system according to any one of claims 1-6.
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