Post-processing system for turning and milling composite machine tool, electronic equipment and storage medium

Through the modular post-processing system architecture, the post-processing system of the CNC programming software of the turning and milling composite machine tool is divided into four modules: parameter configuration, post-processing algorithm, format definition and program generation, which solves the problem of post-processing system structure solidification in the existing technology and realizes more efficient and accurate turning and milling composite machining programming.

CN119883221AActive Publication Date: 2025-04-25GUANGZHOU HEXING ELECTROMECHANICAL TECH CO LTD +1

Patent Information

Application Number
CN202411953880.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-04-25
Estimated Expiration
2044-12-27

AI Technical Summary

Technical Problem

When existing CNC programming software handles turning and milling composite processing, the post-processing system structure is solidified and cannot flexibly adapt to diversified needs, resulting in the inability to generate a complete NC program at one time.

Method used

The modular post-processing system architecture is adopted to divide the system into four independent and collaborative functional modules: parameter configuration, post-processing algorithm, format definition and program generation, realizing flexible configuration of parameters, unified algorithm processing, standard output of formats and integrated program generation.

Benefits of technology

It improves the adaptability to the needs of turning and milling composite machining, improves programming efficiency and program quality, and ensures the stability and accuracy of the processing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883221A_ABST
    Figure CN119883221A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of turn-milling composite machine tools, in particular to a post-processing system for a turn-milling composite machine tool, electronic equipment and a storage medium. According to the modularized post-processing system architecture provided by the invention, the system is divided into four independent and collaborative functional modules, namely a parameter configuration module, a post-processing algorithm module, a format definition module and a program generation module, so that the flexible configuration of parameters, the unified processing of the algorithm, the standard output of the format and the integrated generation of the program are realized; firstly, a parameter configuration file stores configurable parameter codes and obtains machine tool parameter data, a post-processing algorithm file executes core operation based on the parameters, a format definition file standardizes an output format, and finally, a program generation file uniformly manages an output process. The adaptability to turning and milling combined machining requirements is improved, and the programming efficiency and the program quality are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of mill-turning machines, and in particular to a post-processing system, electronic equipment, and storage medium for mill-turning machines. Background Technology

[0002] With the rapid development of the manufacturing industry, milling-turning composite machine tools, which integrate turning and milling functions, can complete the machining of complex parts in a single setup, significantly improving machining efficiency and accuracy. They are widely used in high-end manufacturing fields such as aerospace and automotive manufacturing. The increasing intelligence and integration of these machine tools places higher demands on CNC programming and post-processing.

[0003] Currently, mainstream CNC programming software such as UG and Mastercam adopt a unified post-processing framework, generating NC programs through preset post-processing templates and configuration files. This approach performs well when handling single machining types, but it has limitations when dealing with mill-turn machining.

[0004] The existing post-processing system has a rigid structure and cannot flexibly adapt to the diverse needs of mill-turn machining. This situation needs further improvement. Summary of the Invention

[0005] To address the problem that existing post-processing systems have a rigid structure and cannot flexibly adapt to the diverse needs of mill-turn machining, this application provides a post-processing system, electronic equipment, and storage medium for mill-turn machining centers, employing the following technical solution: In a first aspect, this application provides a post-processing system for a milling-turning machine tool, comprising: The parameter configuration file is used to store user-configurable parameter codes and obtain machine tool parameter configuration data; The post-processing algorithm file is used to execute the post-processing algorithm based on the machine tool parameter configuration data to obtain the processed program data. The format definition file is used to define the output format of the NC program and obtain format rule data; The program generates a file used to generate an NC program based on the processed program data and the format rule data.

[0006] By adopting the above technical solution, this application proposes a modular post-processing system architecture to address the technical problem of existing CNC programming software having a fixed post-processing system structure and being unable to generate a complete program at once when handling mill-turn machining. This architecture divides the system into four independent and collaborative functional modules: parameter configuration, post-processing algorithm, format definition, and program generation. This achieves flexible parameter configuration, unified algorithm processing, standard format output, and integrated program generation. First, the parameter configuration file stores configurable parameter codes and acquires machine tool parameter data. The post-processing algorithm file performs core calculations based on these parameters. The format definition file standardizes the output format. Finally, the program generation file manages the output process uniformly. This improves adaptability to mill-turn machining requirements and enhances programming efficiency and program quality.

[0007] Optionally, the machine tool parameter configuration data includes machine tool motion parameter data, machine tool function control data, machining accuracy control data, and coordinate transformation data.

[0008] Optionally, the post-processing algorithm file, which executes a post-processing algorithm based on the machine tool parameter configuration data, includes: Based on the machine tool motion parameter data, polar coordinate interpolation commands are identified, the XY linkage coordinates in the rectangular coordinate system are converted into polar coordinate interpolation format, and the corresponding output mode is configured according to the machine tool controller type. Based on the machining accuracy control data, the XC linkage command is identified, the XY linkage coordinates are converted into the XC linkage format, and the secondary interpolation calculation of the tool path is performed. Based on the coordinate transformation data, the end face rotation angle is transformed, the machine tool travel range is checked, and machining program data with overtravel protection is generated.

[0009] By adopting the above technical solution, since the milling-turning machine tool has both turning and milling functions, it is often necessary to convert between the rectangular coordinate system and the polar coordinate system during the machining process, and it involves the linkage control of the spindle C-axis and the feed axis. This application first identifies the type of instruction that needs to be converted based on the machine tool motion parameters, and converts the tool trajectory in the rectangular coordinate system into the corresponding polar coordinate format. Second, by analyzing the changes in tool angle and curvature, it identifies the areas that need special processing, and performs dynamic compensation and speed matching optimization in these areas. Finally, it combines the coordinate transformation data to perform end face rotation angle transformation and stroke range check to ensure machining safety.

[0010] Optionally, the XY linkage coordinates in the Cartesian coordinate system are converted to polar coordinate interpolation format, and the corresponding output mode is configured according to the machine tool controller type. The specific steps include the following: Based on the tool angle value and curvature change in the coordinate transformation data, the rapid turning area and the variable curvature area are detected to obtain the feature area; The tool compensation value is dynamically calculated in the feature region, and the XC axis speed matching relationship is analyzed simultaneously. Based on the tool compensation value and the speed matching relationship, a comprehensive optimization process is performed on the feature region. The comprehensive optimization process includes deceleration control, arc smoothing, and synchronization waiting. The optimized path data is converted into compensated polar coordinate interpolation instructions, and the output mode is configured according to the machine tool controller type.

[0011] By adopting the above technical solution, since the tool trajectory of a milling and turning machine tool during polar coordinate interpolation machining typically includes multiple rapid turning areas and variable curvature areas, these characteristic areas often lead to machining quality problems. For example, when machining turbine blades, there is a sharp curvature change in the blade root transition area. If only a simple coordinate transformation method is used, it will cause defects such as uneven surface roughness and insufficient contour accuracy. At the same time, in the rapid turning areas of the leading and trailing edges of the blade, the speed mismatch between the spindle C-axis and the feed axis can easily cause tool jitter and overcutting. This application first accurately identifies the characteristic areas that require special treatment by analyzing the tool angle value and curvature change. For the identified characteristic areas, the optimal tool compensation value is dynamically calculated, and the speed matching relationship between the spindle C-axis and the feed axis is established. Then, based on the calculation results, a comprehensive optimization process including deceleration control, arc smoothing, and synchronization waiting is performed. Finally, the optimized path is converted into a compensated polar coordinate interpolation command, which improves the stability and accuracy of the machining process.

[0012] Optionally, the machine tool function control data includes drilling and tapping cycle data, universal power head control data, and shaft release brake control data.

[0013] By adopting the above technical solutions, the parameters and conversion rules of various fixed cycles are uniformly managed through drilling and tapping cycle data; the B-axis angle is precisely controlled and five-axis linkage is verified through universal power head control data; and the smooth transition of each axis movement is ensured through axis release and brake control data. These functional control data are interconnected and work together to form a complete functional control system.

[0014] Optionally, the post-processing algorithm further includes: Based on the drilling and tapping cycle data, perform fixed cycle command conversion; Based on the control data of the universal power head, B-axis angle transformation and five-axis linkage verification were performed. Automatic brake release commands are generated and canceled based on the axle release brake control data.

[0015] By adopting the above technical solutions, this application identifies and converts various fixed cycle commands to ensure the accuracy of machining parameters; by calculating the B-axis angle in real time and performing five-axis linkage verification, it ensures the machining accuracy of complex curved surfaces; and by intelligently generating or canceling brake release commands according to the machining conditions, it achieves smooth transition of axis movement.

[0016] Optionally, the system further includes: The verification and checking module is used to perform syntax checks and collision detection on NC programs; The error diagnosis module is used to analyze the test results and generate diagnostic information; The correction processing module is used to optimize the program based on diagnostic information.

[0017] By adopting the above technical solution, the verification and inspection module of this application first performs a comprehensive syntax check on the program, and at the same time uses virtual simulation technology to perform collision detection; the error diagnosis module then performs intelligent analysis on the inspection results, automatically identifies potential risk points and generates detailed diagnostic information; the correction and processing module automatically executes processing measures including path optimization, parameter adjustment and safety distance correction based on the diagnostic results; thus improving the safety and reliability of the processing.

[0018] Optionally, the verification and inspection module specifically includes: The syntax rule verification unit is used to perform program syntax checks based on format rule data. The travel range checking unit is used to verify the machining range based on machine tool motion parameter data; The collision interference detection unit is used to perform collision analysis between the tool and the workpiece.

[0019] By adopting the above technical solution, since the verification of NC programs for mill-turn machining involves multiple dimensions of safety risks, traditional single verification methods are difficult to achieve comprehensive error prevention. The syntax rule verification unit of this application first scans and analyzes the program code line by line based on a preset format rule database. The travel range checking unit then verifies whether the motion trajectory of each axis exceeds the safety range based on the motion parameter data of the machine tool. The collision interference detection unit performs real-time interference analysis by establishing a three-dimensional model of the tool, workpiece and machine tool components. By establishing a data association mechanism between verification units, three-dimensional monitoring of the machining process is realized.

[0020] Thirdly, this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps performed by the post-processing system for the milling and turning machine tool described above.

[0021] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps performed by the post-processing system for the milling and turning machine tool described above.

[0022] In summary, this application includes at least one of the following beneficial technical effects: 1. This application proposes a modular post-processing system architecture. By dividing the system into four independent and collaborative functional modules—parameter configuration, post-processing algorithm, format definition, and program generation—it achieves flexible parameter configuration, unified algorithm processing, standard format output, and integrated program generation. First, the parameter configuration file stores configurable parameter codes and acquires machine tool parameter data. The post-processing algorithm file performs core calculations based on these parameters. The format definition file standardizes the output format. Finally, the program generation file manages the output process uniformly. This improves adaptability to the needs of milling and turning machining, and enhances programming efficiency and program quality. 2. Since milling-turning machines have both turning and milling functions, they often need to convert between Cartesian and polar coordinate systems during machining, and involve the linkage control of the spindle C-axis and feed axis. This application first identifies the type of instruction requiring coordinate transformation based on the machine tool motion parameters, and converts the tool path in the Cartesian coordinate system into the corresponding polar coordinate format. Second, by analyzing the changes in tool angle and curvature, it identifies areas that require special handling, and performs dynamic compensation and speed matching optimization in these areas. Finally, it combines the coordinate transformation data to perform end face rotation angle transformation and stroke range checks to ensure machining safety. 3. This application first accurately identifies feature areas requiring special processing by analyzing tool angle values ​​and curvature changes; for the identified feature areas, it dynamically calculates the optimal tool compensation value and establishes the speed matching relationship between the spindle C-axis and the feed axis; then, based on the calculation results, it performs comprehensive optimization processing including deceleration control, arc smoothing, and synchronization waiting; finally, it converts the optimized path into a compensated polar coordinate interpolation command, improving the stability and accuracy of the machining process. Attached Figure Description

[0023] Figure 1 This is a schematic diagram of the structure of a post-processing system for a milling and turning machine tool according to an embodiment of this application. Figure 1 ; Figure 2 This is a flowchart illustrating the post-processing algorithm in the embodiments of this application. Figure 1 ; Figure 3 This is a schematic diagram of the file configuration for polar coordinate parameters and conversion modes in an embodiment of this application; Figure 4 This is a schematic diagram of the software interface configuration for polar coordinate parameters and conversion modes in an embodiment of this application; Figure 5 This is a schematic diagram of the coordinate transformation process in an embodiment of this application; Figure 6 This is a flowchart illustrating the post-processing algorithm in the embodiments of this application. Figure 2 ; Figure 7 This is a schematic diagram of the structure of a post-processing system for a milling and turning machine tool according to an embodiment of this application. Figure 2 ; Figure 8 This is a schematic diagram of the structure of the verification and inspection module in an embodiment of this application; Figure 9 This is an internal structural diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0024] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to any or all possible combinations including one or more of the listed items.

[0025] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0026] The embodiments of this application will now be described in further detail with reference to the accompanying drawings.

[0027] In a first aspect, this application provides a post-processing system for a milling-turning machine tool, referring to... Figure 1 ,include: The parameter configuration file is used to store user-configurable parameter codes and obtain machine tool parameter configuration data.

[0028] In this embodiment, the parameter configuration file is a .tcl file, which serves as the fundamental configuration unit for the entire post-processing system. Written in the Tcl scripting language, it stores and manages various machine tool parameter configurations. Specifically, the machine tool parameter configuration data includes: machine tool motion parameter data, used to define the motion characteristics of each axis of the machine tool; machine tool function control data, used to set the machine tool's working mode and function options; machining accuracy control data, used to specify machining accuracy requirements; and coordinate transformation data, used to achieve conversion between different coordinate systems. This file adopts a hierarchical structure, mainly containing multiple functional modules such as a machine tool basic information configuration area, a spindle parameter configuration area, a feed parameter configuration area, a travel parameter configuration area, and an accuracy parameter configuration area. Each configuration item is defined in the form of "parameter name = parameter value" and includes detailed comments for easy user understanding and modification.

[0029] Specifically, in the configuration file, the basic machine tool information area defines the machine tool model and control system type; the spindle parameter area sets the spindle speed range; the feed rate parameter area uses an array to define the rapid feed rate of each axis; the travel parameter area specifies the motion range of each axis in detail using an array; and the precision control parameter area defines the positioning accuracy requirements of the machine tool. Users can directly modify the values ​​of these parameters using a text editor according to the actual machine tool characteristics and usage requirements, and the system will automatically load the updated configuration upon startup. For example, when a user needs to adjust the travel limit of the X-axis, they only need to modify the corresponding X_PLUS and X_MINUS values ​​in the array, without recompiling the system program. This script-based parameter configuration method has good readability and flexibility, facilitating personalized configuration by users.

[0030] The post-processing algorithm file is used to execute the post-processing algorithm based on the machine tool parameter configuration data to obtain the processed program data.

[0031] In this embodiment, the post-processing algorithm file is a .tbc file, which is the core processing unit of the system. It is stored in encrypted form and is responsible for executing the post-processing algorithm, converting the intermediate code output by the CAM software into program data that meets the requirements of the specific machine tool control system. This file contains a series of dedicated code conversion algorithms that can intelligently optimize and adjust toolpaths, feed rates, spindle speeds, etc., based on machine tool parameter configuration data, ensuring that the generated program data meets the motion characteristics and accuracy requirements of the machine tool.

[0032] Specifically, during program conversion, for complex multi-axis linkage motions, the system automatically calculates the actual feed rate of each axis based on the machine tool's motion parameters. For example, when the tool performs circular interpolation, the system automatically calculates the coordinated motion parameters of each axis based on the arc radius and the set feed rate, combined with the machine tool's acceleration and deceleration characteristics. Simultaneously, the system automatically inserts necessary compensation commands based on machining accuracy requirements, such as tool radius compensation and tool length compensation.

[0033] The format definition file is used to define the output format of the NC program and obtain format rule data.

[0034] In this embodiment, the format definition file is a .def file, used to standardize the output format rules of the CNC program. The format rule data specifically includes: NC program code format rule data, used to specify the writing standards and syntax requirements of the program code; NC program structure rule data, used to define the program's organizational structure and hierarchical relationships; and NC program sequencing rule data, used to determine the execution order of machining instructions. This file is organized in XML format and contains multiple configuration modules such as the program header definition area, instruction format definition area, program structure definition area, and process sequencing definition area. Each rule is defined through tag attributes and supports conditional judgments and logical control.

[0035] Specifically, in the format definition file, the NC program code format rules define the identifier format of program segments, the number of decimal places for coordinate values, and the representation method of feed rate, etc.; the NC program structure rules define the basic framework of the program, including the program header format, subroutine call rules, loop structure definition, etc.; and the NC program sorting rules specify the order of machining instructions, such as defining toolpath instructions before auxiliary function instructions (M codes). Users can customize the output format of the NC program by modifying the corresponding tag attribute values ​​in the .def file. For example, when it is necessary to change the number of decimal places for coordinate values, only the following needs to be modified: <format>Simply specify the corresponding attribute value under the tag, and the system will automatically adjust the output NC program format according to the new format definition.

[0036] The program generates files used to create NC programs based on the processed program data and format rule data.

[0037] The program generation file is the final output unit of the system, responsible for converting the post-processed program data into an NC program that can be directly used on machine tools according to specified format rules. This file has functions such as program formatting, code optimization, and program verification, ensuring that the generated program has good readability and executability.

[0038] Specifically, taking the machining of a rotating part as an example, the program generation process includes: first, formatting the processed program data according to code format rules, such as adding program segment numbers and standardizing coordinate value formats; then, organizing the program framework according to structural rules, such as setting program header comments and defining subroutine call relationships; and finally, arranging the machining sequence according to the process sorting rules, such as arranging the external turning, end milling, and thread machining processes of the rotating part in an optimized order, and inserting necessary transition codes between adjacent processes.

[0039] Furthermore, it also includes auxiliary files such as .pui and .dll files. The .pui file is an empty file used for post-processing system positioning, while the .dll file is a dynamic link library used for post-processing encrypted translation and tcl file execution. The system achieves the conversion from CAM data to machine tool executable NC programs through the collaborative work of these files. Users can customize configurations by modifying the .tcl and .def files, while the core algorithm is encapsulated in the .tbc encrypted file to ensure security.

[0040] In one embodiment, refer to Figure 2 The post-processing algorithm file, which executes post-processing algorithms based on machine tool parameter configuration data, includes: S210: Identify polar coordinate interpolation commands based on machine tool motion parameter data, convert the XY linkage coordinates in the rectangular coordinate system into polar coordinate interpolation format, and configure the corresponding output mode according to the machine tool controller type.

[0041] Reference Figure 3 and Figure 4 The system identifies machining segments requiring polar coordinate transformation by analyzing the motion command characteristics in the NC program. When a planar machining trajectory is detected on the end face, the system automatically activates the polar coordinate transformation function. For features such as machining spiral grooves on the end face, the system automatically converts linear motion commands into a combination of radial direction (X) and rotation angle (C) motion commands. For example, polar coordinate mode is activated by calling `set mom_polar_status(ON) "12.1"`, and `mom_polar_output_mode "1"` is set to select the radius output mode. Simultaneously, `set mom_return_position "150."` defines the safe return position. The system also selects an appropriate coordinate plane transformation strategy based on the machine tool controller type. For different types of controllers such as FANUC, the `mom_polar_plane_transformation` parameter defines the plane transformation rules, allowing selection of different transformation methods such as the default XY plane, Y-symmetry about Z, or origin symmetry. This parameterized configuration method enables the system to flexibly adapt to the characteristics of different controllers, ensuring accurate conversion of machining trajectories during the generation of commands such as G12.1 polar coordinate interpolation and XC axis linkage commands, effectively meeting the machining requirements of complex surfaces such as end face threads and splines.

[0042] S220: Based on the machining accuracy control data, identify the XC linkage command, convert the XY linkage coordinates into the XC linkage format, and perform secondary interpolation calculation of the tool path.

[0043] In this embodiment, the system achieves intelligent conversion of XC linkage machining through feature analysis of the machining trajectory. For example, when it is detected that end face contour machining is required, the system automatically calls the XC linkage conversion function. By setting the `mom_line_convert "0.1"` parameter to control the interpolation accuracy, `mom_c_direction_zmill "-1"` to define the C-axis rotation direction, and `mom_rapid_feed "10000."` to set the rapid feed rate, the system achieves accurate conversion from the XY plane to XC linkage. The configuration of these parameters directly affects the accuracy and efficiency of the actual machining.

[0044] Specifically, the system employs a parametric curve fitting method for interpolation calculations. For circular arc trajectories, the system automatically calculates the minimum chord height error based on accuracy requirements and determines the density of interpolation points accordingly. For freeform surfaces, trajectory optimization is performed using a spline curve algorithm. For instance, when machining a complex rotating body contour, the system adaptively adjusts the distribution of interpolation points according to different curvature regions, increasing the density of interpolation points in areas with large curvature variations to ensure machining accuracy.

[0045] S230: Based on the coordinate transformation data, perform end face rotation angle transformation, check the machine tool travel range, and generate machining program data with overtravel protection.

[0046] In this embodiment, the system performs a comprehensive travel range check while performing coordinate transformation. By reading the machine tool's motion parameter data, the system can verify in real time whether the movement of each axis exceeds the safe range. Specifically, the system checks the range of the transformed X-axis position and C-axis angle. If a potential overtravel is detected, the system automatically adjusts the machining strategy or inserts a safety command. For example, when the C-axis rotation angle approaches the limit, the system can insert a reverse rotation command to avoid overtravel while ensuring machining continuity. This intelligent anti-overtravel mechanism not only ensures machining safety but also improves program reliability. The system also automatically calculates tool compensation values ​​based on different end face positions to ensure the correct cutting depth is maintained at different angular positions. Through this comprehensive coordinate transformation and safety check mechanism, the system can generate machining programs that are both safe and efficient.

[0047] In one embodiment, refer to Figure 5 The process involves converting the XY coordinates in the Cartesian coordinate system to polar interpolation format and configuring the corresponding output mode according to the machine tool controller type. Specifically, this includes the following steps: S510. Based on the tool angle value and curvature change in the coordinate transformation data, detect the rapid turning area and the variable curvature area to obtain the feature area.

[0048] In this embodiment, the system analyzes the geometric features of the toolpath to identify areas requiring special processing. These areas mainly include locations where the tool turning angle changes drastically, and areas where the workpiece contour curvature changes significantly. The system marks these areas as key areas requiring optimization, providing a basis for subsequent compensation calculations and speed control.

[0049] Specifically, when the system detects that the angle change of the tool between adjacent program segments exceeds a preset threshold, it marks that location as a rapid turning area; when the rate of curvature change of the workpiece contour exceeds a specified value, it marks it as a variable curvature area. For example, when machining a cam contour, the system automatically identifies the inflection points and variable curvature points on the cam curve and treats these locations as feature areas for focused processing.

[0050] S520: Dynamically calculate tool compensation values ​​in the feature region and analyze the XC axis speed matching relationship.

[0051] In this embodiment, the system calculates the real-time compensation value required by the tool during machining based on the geometric characteristics of the feature region. During the compensation calculation, the system sets the XC interpolation accuracy threshold and C-axis rotation direction through post-processing configuration parameters to ensure the coordination between the X-axis feed motion and the C-axis rotational motion. This configuration method enables the system to automatically generate a compensation instruction sequence containing precise X and C coordinate values ​​based on the workpiece geometry and machining requirements, thereby ensuring machining accuracy and contour quality. During the compensation calculation, the system simultaneously considers the interaction between tool geometry parameters and workpiece feature surfaces, achieving dynamic compensation adjustment. Simultaneously, the system establishes a speed matching model between the X and C axes. Since the X-axis is linear motion and the C-axis is rotational motion, the system first converts the angular velocity of the C-axis into the linear velocity of the end face, and then coordinates and matches it with the radial feed speed of the X-axis. During machining, the system ensures that the cutting speed on the workpiece surface remains constant by calculating the speed ratio of the two axes in real time. When the machining contour changes, the system automatically adjusts the ratio between the X-axis feed speed and the C-axis rotational speed, ensuring machining accuracy while avoiding sudden changes in cutting force. For example, when machining spiral grooves, the system dynamically adjusts the speed matching relationship of the XC axis according to the change of the spiral angle to ensure the smoothness of the cutting process and the quality of the machined surface.

[0052] S530. Based on the tool compensation value and speed matching relationship, perform comprehensive optimization processing on the feature area. The comprehensive optimization processing includes deceleration control, arc smoothing and synchronization waiting.

[0053] In this embodiment, the system performs multifaceted optimization on the feature region. Deceleration control is used for smooth transitions, circular arc smoothing is used to improve trajectory continuity, and synchronous waiting ensures the coordination of the motion of each axis.

[0054] Specifically, the system first detects the entry point of the feature area to determine whether the change in the entry angle exceeds a preset threshold. If it exceeds the threshold, a deceleration section is inserted before the entry point, and the feed rate is reduced to 30%~70% of the original speed. After the tool has fully entered the feature area, the feed rate is gradually restored to the normal machining speed. At the same time, the system scans the trajectory inflection points and calculates the included angle between adjacent program segments. When the included angle is less than 120 degrees, a transition arc is automatically inserted at the corner. The radius of the arc is automatically calculated based on the machining accuracy requirements and the tool diameter. Then, the tool compensation value with the arc transition section is recalculated. In addition, the system analyzes the positional relationship of the XC axis to identify key points that require strict synchronization. Synchronization wait instructions are inserted at these positions, and the system checks the deviation between the current position and the target position of each axis. When the deviation exceeds the allowable value, synchronization wait is forcibly executed. For example, when machining a spiral groove on the end face, the system first reduces the feed rate to 50% of the normal speed before entering the spiral section. Then, it inserts a transition arc with a radius of 1.5 times the tool diameter at the beginning of the spiral. At the same time, it adds an XC axis to wait for instructions at the starting position of each spiral turn to ensure the continuity and uniformity of the spiral groove. Through this comprehensive optimization, the machining quality and efficiency are effectively improved.

[0055] S540: Convert the optimized path data into compensated polar coordinate interpolation instructions and configure the output mode according to the machine tool controller type.

[0056] In this embodiment, the system converts the optimized toolpath data into polar coordinate interpolation instructions adapted to different CNC systems. The system first identifies the controller type, and then, based on the instruction characteristics of different controllers, converts the optimized path data into polar coordinate interpolation instructions in the corresponding format by configuring polar coordinate output mode parameters. Simultaneously, the system automatically adjusts the radial and angular coordinate values ​​in the polar coordinate system according to the tool compensation value to ensure machining accuracy.

[0057] Specifically, the system employs a segmented processing strategy when performing polar coordinate command conversion. First, a polar coordinate machining environment is established using a polar coordinate mode activation command (e.g., G12.1). Then, the XY coordinate data for each path segment is converted to the corresponding RC (radius-angle) format data. For example, when machining an end-face spiral groove, the system converts the interpolation point sequence to a compensated polar coordinate format, taking into account tool radius compensation and machining accuracy requirements. After machining is complete, the system restores to the standard coordinate system using a polar coordinate mode deactivation command (e.g., G13.1). This conversion process enables high-precision polar coordinate machining of complex contours while ensuring the program's versatility and portability.

[0058] In one embodiment, refer to Figure 6 The post-processing algorithm also includes: S610, converts fixed cycle commands based on drilling and tapping cycle data.

[0059] In this embodiment, the system intelligently converts fixed cycle commands based on the pre-set drilling and tapping cycle parameters in the machine tool parameter configuration file. During processing, the system first identifies the drilling and tapping operation type, including different machining methods such as ordinary drilling, deep hole drilling, tapping, and reaming. Then, it automatically selects the appropriate fixed cycle code according to the process requirements. By analyzing parameters such as the depth of the machining feature, feed rate, and spindle speed, and combining them with the fixed cycle format requirements of different controller types, the system generates standardized fixed cycle commands.

[0060] S620, B-axis angle transformation and five-axis linkage verification based on universal power head control data.

[0061] In this embodiment, the system achieves intelligent control of the universal power head by analyzing workpiece characteristics and machining requirements. The system first reads the motion parameter configuration of the power head, including key parameters such as the B-axis travel range, angular resolution, and speed limit. During angle conversion, the system considers the relationship between the actual working posture of the tool and the normal vector of the workpiece surface, ensuring that the tool maintains the optimal cutting state throughout the machining process. Simultaneously, the system performs kinematic verification of the power head to ensure that the converted toolpath meets the machine tool's motion characteristics requirements.

[0062] Specifically, when machining a tilted surface feature, the system automatically calculates the required B-axis tilt angle based on the surface's normal vector. For example, when machining a plane tilted at 45 degrees, the system first calculates the theoretically required B-axis angle, and then rounds the angle value to the closest controllable angle based on the power head's resolution. The system also automatically inserts transition actions during angle changes, such as retracting the tool to a safe height before adjusting the B-axis angle, and then performing cutting after the angle adjustment is complete, thereby ensuring the safety and stability of the machining process.

[0063] S630: Automatically generate and cancel brake release commands based on axle release brake control data.

[0064] In this embodiment, the system performs automated brake release control based on the machine tool's axis control parameters. The system analyzes the axis motion characteristics in the machining program to identify key locations requiring brake release control, including tool change positions, program start and end positions, etc. At these locations, the system automatically generates corresponding brake release control codes according to the machine tool controller's instruction specifications, ensuring that the axis motion is always under control while avoiding unnecessary braking operations to improve machining efficiency.

[0065] Specifically, when the system detects the need for power head angle adjustment, it automatically executes a series of brake release control operations. For example, before adjusting the B-axis angle, the system first generates a B-axis brake release command, and then executes a brake lock command after the angle adjustment is completed. During this process, the system sets reasonable delay parameters, such as waiting 100ms after brake release before executing axis movement, and waiting 200ms after axis movement is completed before executing brake lock, to ensure the stability and accuracy of the mechanism's movement. Through this intelligent brake release control, the system ensures machining accuracy while improving overall machining efficiency.

[0066] In one embodiment, refer to Figure 7 The system also includes: The verification and checking module is used to perform syntax checks and collision detection on NC programs.

[0067] In this embodiment, the system performs a comprehensive check on the NC program by establishing a complete verification mechanism. During the syntax check, the system first performs lexical analysis and syntax parsing on the program code to check whether the instruction format, parameter value range, and logical relationships conform to the specifications. Simultaneously, the system combines the machine tool motion model to perform real-time collision detection, simulating possible interference during the machining process by establishing three-dimensional models of the tool, workpiece, and machine tool components.

[0068] Specifically, when the system performs program verification, it analyzes the program code line by line according to preset inspection rules. For example, when inspecting a program segment containing circular interpolation, the system verifies the rationality of the arc radius, start and end coordinates. If the arc radius does not match the actual trajectory, the system marks the program segment as a potential error. Regarding collision detection, the system uses dynamic simulation to calculate the minimum distance between the tool and the workpiece / fixture during machining. When a safe distance is detected to be less than a preset value (e.g., 10mm), the system automatically records the axis position and program line number at that moment.

[0069] The error diagnosis module is used to analyze the test results and generate diagnostic information.

[0070] In this embodiment, the system performs in-depth analysis and diagnosis of problems discovered during the verification and inspection process. By establishing an error classification database, the system can identify common program error types, including syntax errors, logical errors, and parameter exceeding limits. For each error type, the system has formulated corresponding diagnostic rules, and through the analysis of error characteristics, generates a detailed diagnostic report, providing a basis for subsequent program correction.

[0071] The correction processing module is used to optimize the program based on diagnostic information.

[0072] In this embodiment, the system performs intelligent program correction based on error diagnosis results. The correction processing module first analyzes the priority and correlation of diagnostic information to determine the optimal correction order. For different types of program problems, the system adopts different correction strategies, including parameter adjustment, instruction reconstruction, and trajectory optimization. During the correction process, the system maintains program continuity and processing effectiveness, ensuring that the corrected program still meets the original process requirements.

[0073] In one embodiment, refer to Figure 8 The verification and inspection module specifically includes: The syntax rule verification unit is used to perform program syntax checks based on format rule data.

[0074] Specifically, when the system performs a syntax check on an NC program, it analyzes it according to a predetermined verification process. For example, when checking a milling instruction, the system first verifies whether the format of the G-code is correct, such as whether the use of instructions like G01, G02, and G03 conforms to the specifications. It then checks the format of the coordinate values, including the decimal point position and the number of significant digits, to ensure they meet the requirements. If an incorrect format is detected in the feed rate value of an instruction (such as F1000.00.0), the system immediately marks the error and records the specific error type and location information.

[0075] The travel range checking unit is used to verify the machining range based on machine tool motion parameter data.

[0076] Specifically, during the travel range check, the system dynamically monitors the position of each motion axis. For example, when machining a large workpiece, the system calculates the maximum movement range of the tool in the X, Y, and Z axes. Assuming the machine tool's X-axis travel range is -400mm to +400mm, when the instruction X450 appears in the program, the system immediately recognizes that the instruction exceeds the machine tool's travel limit. Simultaneously, the system also verifies the overall motion range under multi-axis linkage conditions to ensure that the machine tool's soft or hard limits are not triggered under any motion state.

[0077] The collision interference detection unit is used to perform collision analysis between the tool and the workpiece.

[0078] In this embodiment, the system employs dynamic collision detection technology, which establishes a three-dimensional geometric model of the tool and the workpiece to achieve real-time collision warning. During the detection process, the system considers the actual geometric characteristics of the tool, including parameters such as tool length, diameter, and tool holder shape, and combines these with the machining characteristics of the workpiece and the fixture layout to construct a complete machining scenario model.

[0079] Specifically, during collision detection, the system simulates the tool movement throughout the entire machining process. For example, when machining a workpiece with a deep cavity, the system focuses on checking the collision risk when the tool enters and exits the cavity. If, at a certain corner, insufficient tool length might cause interference between the tool holder and the workpiece wall, the system calculates the specific collision point coordinates and the moment of collision, and generates a detailed analysis report including the collision type and severity.

[0080] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0081] In one embodiment, this application provides an electronic device, which may be a server, and its internal structure diagram may be as follows: Figure 9 As shown, this electronic device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores data. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it performs the steps described above for the post-processing system of the milling and turning machine tool.

[0082] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0083] In one embodiment, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0084] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0085] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.< / format>

Claims

1. A post-processing system for a turning-milling machine tool, characterized in that: include: Parameter configuration file, used to store user-configurable parameter codes and obtain machine tool parameter configuration data; A post-processing algorithm file, used to execute a post-processing algorithm based on the machine tool parameter configuration data to obtain processed program data; Format definition file, used to define the output format of NC program and obtain format rule data; A program generation file is used to generate an NC program based on the processed program data and the format rule data.

2. The post-processing system for a turning-milling machine tool according to claim 1, characterized in that: The machine tool parameter configuration data includes machine tool motion parameter data, machine tool function control data, machining accuracy control data and coordinate transformation data.

3. The post-processing system for a turning-milling machine tool according to claim 2, characterized in that: The post-processing algorithm file includes: Based on the machine tool motion parameter data, a polar coordinate interpolation instruction is identified, the XY linkage coordinates in the rectangular coordinate system are converted into a polar coordinate interpolation format, and a corresponding output mode is configured according to the type of machine tool controller; Identify XC linkage instructions based on the machining accuracy control data, convert the XY linkage coordinates into an XC linkage format, and perform a secondary interpolation operation of the tool trajectory; Based on the coordinate transformation data, the end face rotation angle transformation is performed, the machine tool travel range is checked, and the machining program data with overtravel protection is generated.

4. The post-processing system for a turning-milling machine tool according to claim 3, characterized in that: Convert the XY coordinates in the rectangular coordinate system into the polar coordinate interpolation format, and configure the corresponding output mode according to the type of machine tool controller, including the following steps: Based on the tool angle value and curvature change in the coordinate transformation data, a rapid turning area and a variable curvature area are detected to obtain a characteristic area; Dynamically calculate tool compensation values ​​in the characteristic area and analyze the XC axis speed matching relationship; According to the tool compensation value and the speed matching relationship, a comprehensive optimization process is performed on the feature area, wherein the comprehensive optimization process includes deceleration control, arc smoothing and synchronous waiting; The path data after comprehensive optimization processing is converted into polar coordinate interpolation instructions with compensation, and the output mode is configured according to the type of machine tool controller.

5. The post-processing system for a turning-milling machine tool according to claim 2, characterized in that: The machine tool function control data includes drilling and tapping cycle data, universal power head control data and axis release and brake control data.

6. The post-processing system for a turning-milling machine tool according to claim 5, characterized in that: The post-processing algorithm also includes: Perform fixed cycle instruction conversion based on the drilling and tapping cycle data; Perform B-axis angle transformation and five-axis linkage verification based on the universal power head control data; Automatic brake release command generation and cancellation are performed based on the axis brake release control data.

7. The post-processing system for a turning-milling machine tool according to claim 6, characterized in that: The system further comprises: Verification check module, used for syntax checking and collision detection of NC programs; An error diagnosis module for analyzing inspection results and generating diagnostic information; A correction processing module is used to perform program optimization based on the diagnostic information.

8. The post-processing system for a turning-milling machine tool according to claim 7, characterized in that: The verification and inspection module specifically includes: A grammar rule verification unit, used for checking program grammar based on format rule data; Travel range checking unit, used to verify the processing range based on the machine tool motion parameter data; The collision interference detection unit is used to analyze the collision between the tool and the workpiece.

9. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps executed by the post-processing system for a turning-milling compound machine tool according to any one of claims 1 to 8 when executing the computer program.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps performed by the post-processing system for a turning-milling machine tool according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Universal post processing method and device for machine tools with C axles

    CN106292542A

  • Control method and device of turn-milling compound control system

    CN116257020A

  • Steam turbine rotor shroud ring processing method, self-programming method and self-programming system

    CN118642429A

  • Numerical control process design and optimization method based on machining knowledge

    WO2023272836A1

Cited By

  • Quick generation method for four-cylinder crankshaft machining program and machining program adjustment method

    CN120993831A

  • Rapid generation method and adjustment method for machining programs of four-cylinder crankshafts

    CN120993831B