Method for intelligently judging over travel of machine tool
By developing overtravel detection software, the overtravel of CNC machine tools can be identified and corrected in real time, solving the problem of lag in overtravel detection in CNC programming, improving processing efficiency and safety, and reducing operation difficulty and equipment risk.
Patent Information
- Application Number
- CN202511497528.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-20
- Publication Date
- 2025-12-16
AI Technical Summary
In existing CNC programming, traditional post-processing programs cannot respond to dynamic changes in machining parameters in real time, machine tool PLC alarms are delayed, and data isolation between the CAM system and the CNC controller leads to lagging protection, increasing the workload of machine operators and posing safety hazards to equipment.
Develop overtravel detection software that identifies the machining coordinate system, simulates and predicts collisions between the tool trajectory and the machine tool's hard limit data in real time, embeds an overtravel verification plugin to perform three-axis coordinate scanning, generates a correction suggestion report, and uses a database and logic to determine overtravel coordinate points, simplifying operation steps and automatically generating judgment results.
It reduces human intervention by operators, improves process safety, enables interns to quickly get started, ensures smooth processing, avoids equipment accidents, and enhances processing quality and corporate competitiveness.
Smart Images

Figure CN121132384A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of CNC machining control technology, and in particular to a method for intelligently judging machine tool overtravel. Background Technology
[0002] In the process of realizing this invention, the inventors discovered that the prior art has at least the following problems:
[0003] With the rapid development of the automotive industry and the constant innovation of technology, user demands are becoming increasingly diversified, leading to a gradual increase in the complexity of automotive molds and thus increasing the difficulty of mold manufacturing. Against this backdrop, how CNC programming can drive the overall improvement of mold processing programming technology through technological reform, providing safe, stable, and efficient programs, is of great significance for the automotive mold industry to overcome current challenges and improve mold manufacturing quality and production efficiency. To ensure the safe and continuous operation of CNC programs, CNC operators need to monitor the program throughout the entire process. In case of overtravel alarms, feedback programming or manual adjustment of program coordinate positions is required, which greatly increases the workload of machine operators, seriously affects processing efficiency, and, due to human error, can create equipment safety hazards for CNC machine tools.
[0004] Existing technologies have three major drawbacks: ① Traditional post-processing programs only statically check the G-code coordinate range and cannot respond to dynamic changes in machining parameters. ② Machine tool PLC alarms have a 150-300ms delay, which cannot prevent sudden overtravel. ③ Data isolation between the CAM system and the CNC controller leads to delayed protection.
[0005] CN119644904A - A method for selecting the rotation axis angle in post-processing of a five-axis machine tool and a readable storage medium, discloses a method for selecting the rotation axis angle in post-processing of a five-axis machine tool and a readable storage medium, including: acquiring and correcting the target solution of the five-axis machine tool at the previous tool position; acquiring the first solution and the second solution at the current tool position, and after eliminating singular points, updating them so that the updated solutions are close to the corrected target solution at the previous tool position; determining the initial preferred solution and the initial alternative solution from the updated solutions; first judging the initial preferred solution, if it is valid and the selected solutions are continuous, then outputting the target solution at the current tool position; however, this method cannot solve the above-mentioned technical problems. Summary of the Invention
[0006] The technical problem to be solved by the present invention is to provide a method for intelligently judging machine tool overtravel, so as to achieve the purpose of intelligently judging CNC machine tool overtravel at the CAM end and avoiding the risk of machine tool overtravel on site.
[0007] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is: a method for intelligently judging machine tool overtravel, comprising the following steps:
[0008] 1) The overtravel judgment software identifies the CAD stamping die design body, recognizes the machining coordinate system of the corresponding process, and sets the Z-axis position of the die placement;
[0009] 2) Load the corresponding overtravel judgment logic database in the background, select the CNC program, simulate the tool trajectory during the execution of G code in real time, and perform collision prediction with the machine tool hard limit data;
[0010] 3) An overtravel verification plugin is embedded during the G-code generation stage to perform segmented scanning of the X / Y / Z coordinates, intelligently picking out abnormal coordinate points and generating a correction suggestion report.
[0011] The overtravel detection software contains a database of overtravel detection information for all CNC machine models, as well as different machining types and overtravel detection logic.
[0012] The CNC machine tool overtravel judgment information database is a basic information database established by collecting overtravel range data from all machine tools.
[0013] The overtravel judgment logic for different machining types is based on the machining method: vertical spindle machining, five-axis machining, side milling machining, and the overtravel judgment logic formed by the machine tool motion trajectory.
[0014] The overtravel detection software retrieves all database information and judgment logic, compares and judges the motion coordinate points of the CNC program G code, identifies the overtravel coordinate points, and displays the location of the overtravel coordinate points.
[0015] The CNC machine tool overtravel judgment information database includes various machine tool dimensions, axis travel, control system, spindle indexing, machining parameters, and load-bearing basic parameters of various machine tools.
[0016] The overtravel judgment logic is based on the stroke parameters of various machine models and the spindle motion logic to formulate basic overtravel judgment rules. H1 represents the shortest extension value of Z during default machining, which is a fixed value; H3 is the total tool length, obtained according to the tool used in the program, which is a variable; H4 represents the highest point of the program, which is obtained according to the program and is a variable; HM represents the distance between the bottom surface of the mold and the center of the mold, obtained from the CAD entity of the mold bottom surface, which is a variable; HD represents the height of the pad block, which needs to be specified by the programmer according to the specific mold and is a variable; H5 represents the height of the worktable surface from the center of the mold, i.e., HM+HD, which is a variable; Hmax represents the maximum upper limit stroke of the machine tool, which is a fixed value. From the above values, the overtravel judgment formula is finally obtained: H4-H5+H3≤Hmax-H1.
[0017] The development process of the overtravel detection software is as follows:
[0018] 1) In the main CAM programming software NX, the main interface of the plugin was developed using C++ language, including the development of the overtravel judgment rule database reading interface, machining type acquisition, mold type acquisition, machining coordinate system acquisition, CAD entity acquisition, pad height setting, and the development of all basic information acquisition.
[0019] 2) After obtaining all the basic information, select the CNC program completed by NX programming, obtain the coordinate values of the G code trajectory in the program, and complete the overtravel judgment of the coordinate values of the code motion trajectory.
[0020] 3) Display the specific location and coordinates of the overtravel program. The programmer can adjust the programming strategy based on the corresponding overtravel information and ultimately avoid overtravel risks during the programming process.
[0021] During the debugging process of the overtravel judgment software, database development is used to integrate relevant parameters and manual settings. Plugins are used to obtain information such as tool length, program toolpath coordinates, safety height, and pad height. Combined with the judgment logic for various machine models and spindle motion modes in the background database, the software accurately obtains program overtravel judgment information. This information is then displayed on the interface, allowing programmers to accurately determine the overtravel location. By modifying the programming method, tool length, safety height, and adjusting the program, the software can complete the judgment of machine tool overtravel information during the programming stage.
[0022] One of the above technical solutions has the following advantages or beneficial effects: ① This software greatly reduces operator intervention, lowers skill requirements, reduces training costs, and enables interns to quickly learn to operate CNC machine tools by improving program safety. ② The software is easy to operate; through a large database, the operation steps are simplified to four steps, which can accurately determine program overtravel and automatically generate the judgment result. The judgment scope covers all moving beam / fixed beam machine tools, making it highly valuable for promotion. ③ This software ensures that the CNC program has "0" overtravel, ensuring smooth machining and avoiding the impact of program interruption on machining accuracy, laying the foundation for the advancement of automated machining. ④ "0" program overtravel avoids equipment accidents caused by human error in modifying the program, thereby protecting machine tool accuracy, ensuring mold processing quality, and enhancing the core competitiveness of enterprises. Attached Figure Description
[0023] Figure 1 This is a database schematic diagram of the intelligent machine tool overtravel determination method provided in this embodiment of the invention;
[0024] Figure 2 for Figure 1 A schematic diagram of the intelligent method for judging machine tool overtravel;
[0025] Figure 3 for Figure 1 A schematic diagram of the intelligent method for judging machine tool overtravel;
[0026] Figure 4 for Figure 1 A schematic diagram of the intelligent method for judging machine tool overtravel; Detailed Implementation
[0027] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0028] Example 1
[0029] See Figures 1-4 A method for intelligently determining machine tool overtravel includes the following steps:
[0030] 1) The overtravel judgment software identifies the CAD stamping die design body, recognizes the machining coordinate system of the corresponding process, and sets the Z-axis position of the die placement;
[0031] 2) Load the corresponding overtravel judgment logic database in the background, select the CNC program, simulate the tool trajectory during the execution of G code in real time, and perform collision prediction with the machine tool hard limit data;
[0032] 3) An overtravel verification plugin is embedded during the G-code generation stage to perform segmented scanning of the X / Y / Z coordinates, intelligently picking out abnormal coordinate points and generating a correction suggestion report.
[0033] The overtravel detection software contains a database of overtravel detection information for all CNC machine models, as well as different machining types and overtravel detection logic.
[0034] The CNC machine tool overtravel judgment information database is a basic information database established by collecting overtravel range data from all machine tools.
[0035] The overtravel judgment logic for different machining types is based on the machining method: vertical spindle machining, five-axis machining, side milling machining, and the overtravel judgment logic formed by the machine tool motion trajectory.
[0036] The overtravel detection software retrieves all database information and judgment logic, compares and judges the motion coordinate points of the CNC program G code, identifies the overtravel coordinate points, and displays the location of the overtravel coordinate points.
[0037] The CNC machine tool overtravel judgment information database includes various machine tool dimensions, axis travel, control system, spindle indexing, machining parameters, and load-bearing basic parameters of various machine tools.
[0038] The overtravel judgment logic is based on the stroke parameters of various machine models and the spindle motion logic to formulate basic overtravel judgment rules. H1 represents the shortest extension value of Z during default machining, which is a fixed value; H3 is the total tool length, obtained according to the tool used in the program, which is a variable; H4 represents the highest point of the program, which is obtained according to the program and is a variable; HM represents the distance between the bottom surface of the mold and the center of the mold, obtained from the CAD entity of the mold bottom surface, which is a variable; HD represents the height of the pad block, which needs to be specified by the programmer according to the specific mold and is a variable; H5 represents the height of the worktable surface from the center of the mold, i.e., HM+HD, which is a variable; Hmax represents the maximum upper limit stroke of the machine tool, which is a fixed value. From the above values, the overtravel judgment formula is finally obtained: H4-H5+H3≤Hmax-H1.
[0039] The development process of the overtravel detection software is as follows:
[0040] 1) In the main CAM programming software NX, the main interface of the plugin was developed using C++ language, including the development of the overtravel judgment rule database reading interface, machining type acquisition, mold type acquisition, machining coordinate system acquisition, CAD entity acquisition, pad height setting, and the development of all basic information acquisition.
[0041] 2) After obtaining all the basic information, select the CNC program completed by NX programming, obtain the coordinate values of the G code trajectory in the program, and complete the overtravel judgment of the coordinate values of the code motion trajectory.
[0042] 3) Display the specific location and coordinates of the overtravel program. The programmer can adjust the programming strategy based on the corresponding overtravel information and ultimately avoid overtravel risks during the programming process.
[0043] During the debugging process of the overtravel judgment software, database development is used to integrate relevant parameters and manual settings. Plugins are used to obtain information such as tool length, program toolpath coordinates, safety height, and pad height. Combined with the judgment logic for various machine models and spindle motion modes in the background database, the software accurately obtains program overtravel judgment information. This information is then displayed on the interface, allowing programmers to accurately determine the overtravel location. By modifying the programming method, tool length, safety height, and adjusting the program, the software can complete the judgment of machine tool overtravel information during the programming stage.
[0044] After adopting the above solution, ① this software greatly reduces operator intervention, lowers skill requirements, and reduces training costs. By improving program safety, it enables interns to quickly learn to operate CNC machine tools. ② The software is easy to operate. Through a large database, the operation steps are simplified to four steps, which can accurately determine program overtravel and automatically generate judgment results. The judgment scope covers all moving beam / fixed beam machine tools, making it highly valuable for promotion. ③ This software ensures that the CNC program has "0" overtravel, ensuring smooth machining and avoiding the impact of program interruption on machining accuracy, laying the foundation for the advancement of automated machining. ④ "0" program overtravel avoids equipment accidents caused by human error in modifying the program, thereby protecting machine tool accuracy, ensuring mold processing quality, and enhancing the core competitiveness of enterprises.
[0045] Example 2
[0046] A method for intelligently judging machine tool overtravel achieves real-time data closure between CAD / CAM and CNC. A macro program for travel judgment is embedded in the machining code generated by CAM, which compares the coordinates of the workpiece with the machine tool limits to predict the risk of overtravel in advance.
[0047] By comparing the coordinates of the workpiece and the machine tool limit, the workpiece machining coordinate system and the machine tool maximum travel coordinate system are determined. Based on the workpiece imitation height, tool length, tool holder length, spindle size, and crossbeam lifting range, a formula is formed to calculate the range of the machine tool limit and a corresponding overtravel judgment database is developed.
[0048] Macro programs for stroke judgment are embedded in the machining code generated by CAM. Judgment logic and judgment formulas are formulated according to different types of CNC machine tool models (OUKMA / SNK / Neway / Yawei), different machining types (vertical spindle / five-axis / side milling), and different workpieces (body / core / trailer). Based on these judgment rules, the judgment logic is embedded into the machining code through secondary development, and the program overtravel judgment is completed during the programming process.
[0049] To identify potential overtravel risks in advance, corresponding overtravel detection software is developed based on the CAM programming software NX.
[0050] The CAM programming software NX retrieves the overtravel judgment database. Through secondary development, an interface for reading the overtravel judgment database is developed to enable the software to call the database.
[0051] The innovation lies in the application of digital twin technology: embedding a macro program for stroke judgment into the machining code generated by CAM, and using the overtravel judgment database logic retrieved by the secondary development software to complete the overtravel judgment of the CNC program and output the judgment result.
[0052] This project involves developing software to determine if a stamping die's CNC machining program is overtravel, identifying potential overtravel risks in the corresponding CNC program, developing a database containing overtravel detection information for all CNC machine models, developing overtravel detection logic for different machining types, and ultimately, developing overtravel detection software.
[0053] The overtravel judgment software identifies the CAD stamping die design body, recognizes the machining coordinate system of the corresponding process, and sets the Z-axis position of the die placement.
[0054] Load the corresponding overtravel judgment logic database in the background, select the CNC program, simulate the tool trajectory during the execution of G code in real time, and perform collision prediction with the machine tool hard limit data.
[0055] An overtravel verification plugin is embedded during the G-code generation stage to perform segmented scanning of the X / Y / Z coordinates, intelligently picking out abnormal coordinate points and generating a correction suggestion report.
[0056] further:
[0057] The CNC machine tool overtravel judgment information database is a basic information database established by collecting overtravel range data from all machine tools.
[0058] The overtravel judgment logic for different machining types is based on the machining method, such as vertical spindle machining, five-axis machining, and side milling, and the overtravel judgment logic formed by the machine tool motion trajectory.
[0059] The overtravel detection software identifies and displays the overtravel coordinate points by comparing the motion coordinate points of the CNC program G code with all database information and judgment logic.
[0060] Compared with the prior art, the present invention has the following advantages:
[0061] ① The software significantly reduces operator intervention, lowers skill requirements, and reduces training costs. By enhancing program safety, it enables interns to quickly learn to operate CNC machine tools. ② The software is user-friendly, simplifying operation into four steps using a vast database. It accurately identifies program overtravel and automatically generates the results. The scope of the assessment covers all moving / fixed beam machine tools, making it highly valuable for widespread adoption. ③ This software ensures zero overtravel in CNC program operation, guaranteeing smooth machining and preventing impacts on machining accuracy due to program interruptions, thus laying the foundation for automated machining. ④ Zero program overtravel avoids equipment accidents caused by human error in program modification, protecting machine tool accuracy, ensuring mold processing quality, and enhancing the company's core competitiveness.
[0062] Example 3
[0063] A method for intelligently determining machine tool overtravel, such as Figure 1As shown, a summary table of travel parameters for various CNC machine tool models is presented. This summary table includes information such as machine tool dimensions, axis travel, control system, spindle indexing, machining parameters, load capacity, and other basic machine tool parameters. Based on the travel parameters of various machine tool models and the spindle motion logic, basic overtravel judgment rules are established. For example, the judgment logic for vertical spindle machine tools is as follows: Figures 2 to 3 As shown, H1 represents the shortest Z-axis extension value during default machining, which is a fixed value. H3 is the total tool length, obtained based on the tool used in the program, and is a variable. H4 represents the highest point in the program, obtained from the program (ABS), and is a variable. HM represents the distance between the bottom surface of the mold and the center of the mold, obtained from the CAD solid model of the bottom surface of the mold (ABS), and is a variable. HD represents the height of the pad block, which needs to be specified by the programmer based on the specific mold, and is a variable. H5 represents the height of the worktable surface from the center of the mold, i.e., HM+HD, and is a variable. Hmax represents the maximum upper limit stroke of the machine tool, which is a fixed value. Based on the above variable numbers, the overtravel judgment formula is finally obtained: H4-H5+H3≤Hmax-H1.
[0064] like Figure 4 This invention is based on the over-range judgment logic rules of various models. Through secondary development, a plugin is developed that can read the over-range judgment logic database of various models.
[0065] The specific development and software testing processes are as follows:
[0066] The software development process consists of three phases. The first phase involves developing the main interface of the plugin within the core CAM programming software NX, using C++. This includes developing interfaces for reading the overtravel judgment rule database, acquiring machining types, mold types, machining coordinate systems, CAD entities, and setting shim height. This completes the development of all basic information. The second phase, after acquiring all basic information, involves selecting the CNC program programmed in NX and obtaining the coordinate values of the G-code trajectories within the program to determine overtravel. The third phase displays the specific location and coordinate values of the overtravel program. Based on this information, the programmer adjusts the programming strategy to ultimately avoid potential overtravel risks during the programming process.
[0067] During software debugging, the development was further improved through the database, and relevant parameters were manually set. Information such as tool length, program toolpath coordinates, safety height, and pad height were obtained through plug-ins. Combined with the judgment logic of various machine models and spindle motion modes in the background database, the program overtravel judgment information was accurately obtained. The obtained overtravel information was displayed on the interface, and the programmer could accurately obtain the overtravel position. By modifying the programming method, the tool length, the safety height, and adjusting the program, the judgment of machine tool overtravel information was completed during the programming stage.
[0068] The above is merely an illustration of an embodiment for overtravel judgment on vertical spindle machine tools. The aforementioned technical features can be applied to overtravel judgment on five-axis machine tools / 90-degree side milling machines. The overall approach is to compare the maximum coordinate value in the program's G-code with the maximum travel limit of the corresponding machine model to determine the overtravel range. Similarly, digital twin technology can be used to replicate the corresponding database and judgment logic to other machine models. The software is easy to operate, provides accurate judgment, avoids program interruptions due to overtravel during on-site use, improves machining efficiency, and avoids the safety hazards associated with manually adjusting the program code on-site.
[0069] Using programming languages such as C++, the judgment logic is written into the NX CNC programming software. This includes the development of the machine tool basic information database configuration table, the development of judgment logic for various machine models, the development of judgment logic for each process, the development of database interfaces, the development of program trajectory coordinate point recognition, the development of linked CAD entities, and the development of data information feedback. Ultimately, from the perspectives of development ideas, development schemes, user experience, and software stability, the software is planned as a whole. By using technologies such as database integration and digital twin replication, the system completes the machine tool overtravel judgment during the CNC programming stage, avoiding the inefficiency waste and equipment risks caused by overtravel problems during on-site machining.
[0070] After adopting the above solution, ① the software significantly reduces operator intervention, lowers skill requirements, and reduces training costs. By improving program safety, it enables interns to quickly learn to operate CNC machine tools. ② The software is easy to operate; through a large database, the operation steps are simplified to four steps, enabling accurate judgment of program overtravel and automatic generation of judgment results. The judgment scope covers all moving beam / fixed beam machine tools, making it highly valuable for widespread application. ③ This software judgment ensures "0" overtravel in the CNC program, ensuring smooth machining and avoiding impacts on machining accuracy due to program interruptions, laying the foundation for automated machining. ④ "0" overtravel in the program avoids equipment accidents caused by human error in modifying the program, thereby protecting machine tool accuracy, ensuring mold processing quality, and enhancing the company's core competitiveness.
[0071] In the description of this invention, it should be understood that the terms "coaxial," "bottom," "one end," "top," "middle," "other end," "upper," "side," "top," "inner," "front," "center," "both ends," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limiting this invention.
[0072] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "setting," "connection," "fixing," "screw connection," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Unless otherwise explicitly limited, those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0073] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A method for intelligently determining machine tool overtravel, characterized in that, Includes the following steps: 1) The overtravel judgment software identifies the CAD stamping die design body, recognizes the machining coordinate system of the corresponding process, and sets the Z-axis position of the die placement; 2) Load the corresponding overtravel judgment logic database in the background, select the CNC program, simulate the tool trajectory during the execution of G code in real time, and perform collision prediction with the machine tool hard limit data; 3) An overtravel verification plugin is embedded during the G-code generation stage to perform segmented scanning of the X / Y / Z coordinates, intelligently picking out abnormal coordinate points and generating a correction suggestion report.
2. The method for intelligently determining machine tool overtravel as described in claim 1, characterized in that, The overtravel detection software contains a database of overtravel detection information for all CNC machine models, as well as different machining types and overtravel detection logic.
3. The method for intelligently determining machine tool overtravel as described in claim 2, characterized in that, The CNC machine tool overtravel judgment information database is a basic information database established by collecting overtravel range data from all machine tools.
4. The method for intelligently determining machine tool overtravel as described in claim 3, characterized in that, The overtravel judgment logic for different machining types is based on the machining method: vertical spindle machining, five-axis machining, side milling machining, and the overtravel judgment logic formed by the machine tool motion trajectory.
5. The method for intelligently determining machine tool overtravel as described in claim 4, characterized in that, The overtravel detection software retrieves all database information and judgment logic, compares and judges the motion coordinate points of the CNC program G code, identifies the overtravel coordinate points, and displays the location of the overtravel coordinate points.
6. The method for intelligently determining machine tool overtravel as described in claim 5, characterized in that, The CNC machine tool overtravel judgment information database includes various machine tool dimensions, axis travel, control system, spindle indexing, machining parameters, and load-bearing basic parameters of various machine tools.
7. The method for intelligently determining machine tool overtravel as described in claim 6, characterized in that, The overtravel judgment logic is based on the stroke parameters of various machine models and the spindle motion logic to formulate basic overtravel judgment rules. H1 represents the shortest extension value of Z during default machining, which is a fixed value; H3 is the total tool length, obtained according to the tool used in the program, which is a variable; H4 represents the highest point of the program, which is obtained according to the program and is a variable; HM represents the distance between the bottom surface of the mold and the center of the mold, obtained from the CAD entity of the mold bottom surface, which is a variable; HD represents the height of the pad block, which needs to be specified by the programmer according to the specific mold and is a variable; H5 represents the height of the worktable surface from the center of the mold, i.e., HM+HD, which is a variable; Hmax represents the maximum upper limit stroke of the machine tool, which is a fixed value. From the above values, the overtravel judgment formula is finally obtained: H4-H5+H3≤Hmax-H1.
8. The method for intelligently determining machine tool overtravel as described in claim 7, characterized in that, The development process of the overtravel detection software is as follows: 1) In the main CAM programming software NX, the main interface of the plugin was developed using C++ language, including the development of the overtravel judgment rule database reading interface, machining type acquisition, mold type acquisition, machining coordinate system acquisition, CAD entity acquisition, pad height setting, and the development of all basic information acquisition. 2) After obtaining all the basic information, select the CNC program completed by NX programming, obtain the coordinate values of the G code trajectory in the program, and complete the overtravel judgment of the coordinate values of the code motion trajectory. 3) Display the specific location and coordinates of the overtravel program. The programmer can adjust the programming strategy based on the corresponding overtravel information and ultimately avoid overtravel risks during the programming process.
9. The method for intelligently determining machine tool overtravel as described in claim 8, characterized in that, During the debugging process of the overtravel judgment software, database development is used to integrate relevant parameters and manual settings. Plugins are used to obtain information such as tool length, program toolpath coordinates, safety height, and pad height. Combined with the judgment logic for various machine models and spindle motion modes in the background database, the software accurately obtains program overtravel judgment information. This information is then displayed on the interface, allowing programmers to accurately determine the overtravel location. By modifying the programming method, tool length, safety height, and adjusting the program, the software can complete the judgment of machine tool overtravel information during the programming stage.