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

Through modular post-processing system architecture and dynamic compensation optimization processing, the flexibility problem of the post-processing system of the turning-milling compound machine tool is solved, the programming efficiency and processing quality are improved, and the stability and accuracy of the turning-milling compound processing are ensured.

CN119883221BActive Publication Date: 2025-09-30GUANGZHOU HEXING ELECTROMECHANICAL TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing post-processing system structure of turning-milling compound machine tools is rigid and cannot flexibly adapt to the diverse needs of turning-milling compound processing, resulting in low programming efficiency and poor program quality.

Method used

A modular post-processing system architecture is adopted, dividing the system into four independent and collaborative functional modules: parameter configuration, post-processing algorithm, format definition, and program generation. The parameter configuration file stores configurable parameter codes, the post-processing algorithm file executes core operations, the format definition file standardizes the output format, and the program generation file uniformly manages the output process. Dynamic compensation and speed matching optimization are performed by identifying and converting instructions between rectangular coordinate systems and polar coordinate systems.

Benefits of technology

It improves the adaptability of turning-milling composite processing, improves programming efficiency and program quality, ensures the stability and accuracy of the processing, and reduces processing defects such as uneven surface roughness and tool jitter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883221B_ABST
    Figure CN119883221B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of turning-milling machine tools, and in particular to a post-processing system, electronic equipment, and storage medium for turning-milling machine tools. The present application proposes a modular post-processing system architecture, which divides the system into four independent and collaborative functional modules: parameter configuration, post-processing algorithm, format definition, and program generation. This achieves flexible configuration of parameters, unified processing of algorithms, standard output of formats, and integrated generation of programs. First, the parameter configuration file stores configurable parameter codes and obtains machine tool parameter data. The post-processing algorithm file performs core operations based on these parameters. The format definition file standardizes the output format. Finally, the program generation file uniformly manages the output process. This improves adaptability to turning-milling processing requirements and enhances programming efficiency and program quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of turning-milling compound machine tools, and in particular to a post-processing system, electronic equipment, and storage medium for turning-milling compound machine tools. Background Art

[0002] With the rapid development of the manufacturing industry, milling-turning machine tools, which integrate turning and milling functions and can complete complex parts processing in a single clamping, significantly improving processing efficiency and precision, have been widely used in high-end manufacturing fields such as aerospace and automotive manufacturing. The trend towards intelligent and complex CNC machine tools has placed higher requirements on CNC programming and post-processing.

[0003] Currently, mainstream NC programming software, such as UG and MASTERCAM, utilizes a unified post-processing framework, generating NC programs using pre-set post-processing templates and configuration files. This approach works well for single machining types, but has limitations when it comes to combined turning and milling operations.

[0004] The post-processing system structure of the existing technology is rigid and cannot flexibly adapt to the diverse needs of turning and milling composite processing. This situation needs to be further improved. Summary of the Invention

[0005] In order to solve the problem that the existing post-processing system has a rigid structure and cannot flexibly adapt to the diverse needs of turning-milling composite machining, the present application provides a post-processing system, electronic equipment and storage medium for turning-milling composite machine tools, which adopts the following technical solutions:

[0006] In a first aspect, the present application provides a post-processing system for a turning-milling machine tool, comprising:

[0007] Parameter configuration file, used to store user-configurable parameter codes and obtain machine tool parameter configuration data;

[0008] 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;

[0009] Format definition file, used to define the output format of NC program and obtain format rule data;

[0010] A program generation file is used to generate an NC program based on the processed program data and the format rule data.

[0011] By adopting the above technical solution, in order to solve the technical problem that the existing CNC programming software has a rigid post-processing system structure and cannot generate a complete program at one time when processing turning-milling composite processing; this application proposes a modular post-processing system architecture, which divides the system into four independent and collaborative functional modules: parameter configuration, post-processing algorithm, format definition and program generation, to achieve flexible configuration of parameters, unified processing of algorithms, standard output of formats and integrated generation of programs; first, the parameter configuration file stores configurable parameter codes and obtains machine tool parameter data, the post-processing algorithm file performs core operations based on these parameters, the format definition file standardizes the output format, and finally the program generation file uniformly manages the output process; improves the adaptability to the needs of turning-milling composite processing, and improves programming efficiency and program quality.

[0012] 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.

[0013] Optionally, the post-processing algorithm executed by the post-processing algorithm file based on the machine tool parameter configuration data includes:

[0014] Identifying polar coordinate interpolation instructions based on the machine tool motion parameter data, converting the XY linkage coordinates in the rectangular coordinate system into a polar coordinate interpolation format, and configuring a corresponding output mode according to the type of machine tool controller;

[0015] Identifying XC linkage instructions based on the machining accuracy control data, converting the XY linkage coordinates into an XC linkage format, and performing a secondary interpolation operation of the tool trajectory;

[0016] The end face rotation angle transformation is performed based on the coordinate transformation data, the machine tool travel range is checked, and the machining program data with anti-overtravel protection is generated.

[0017] By adopting the above technical solution, since the turning-milling compound 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 processing, and it involves the linkage control of the spindle C axis and the feed axis; this application first identifies the instruction type that requires coordinate conversion based on the machine tool motion parameters, and converts the tool trajectory in the rectangular coordinate system into the corresponding polar coordinate format; secondly, by analyzing the tool angle and curvature changes, the areas that require special treatment are identified, and dynamic compensation and speed matching optimization are performed in these areas; finally, the end face rotation angle transformation and travel range inspection are performed in combination with the coordinate transformation data to ensure processing safety.

[0018] Optionally, convert the XY coordinates in the rectangular coordinate system into polar coordinate interpolation format, and configure the corresponding output mode according to the machine tool controller type, which specifically includes the following steps:

[0019] Based on the tool angle value and curvature change in the coordinate transformation data, detecting a rapid turning area and a variable curvature area to obtain a characteristic area;

[0020] Dynamically calculate tool compensation values ​​in the characteristic area and analyze the XC axis speed matching relationship;

[0021] performing a comprehensive optimization process on the characteristic region according to the tool compensation value and the speed matching relationship, the comprehensive optimization process including deceleration control, arc smoothing and synchronous waiting;

[0022] 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 machine tool controller type.

[0023] By adopting the above technical solution, since the tool motion trajectory of the turning-milling compound machine tool usually contains multiple rapid turning areas and variable curvature areas during the polar coordinate interpolation processing, these characteristic areas often lead to processing quality problems; for example, when processing turbine blades, there is a sharp curvature change in the root transition area. If only a simple coordinate conversion 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 blades, due to the speed mismatch between the spindle C axis and the feed axis, tool jitter and overcutting are likely to occur; this application first analyzes the tool angle value and curvature change to accurately identify the characteristic areas that require special treatment; 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 synchronous waiting is performed; finally, the optimized path is converted into a polar coordinate interpolation instruction with compensation, thereby improving the stability and accuracy of the processing process.

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

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

[0026] Optionally, the post-processing algorithm further includes:

[0027] Perform fixed cycle instruction conversion based on the drilling and tapping cycle data;

[0028] Perform B-axis angle transformation and five-axis linkage verification based on the universal power head control data;

[0029] Automatic brake release command generation and cancellation are executed based on the axis brake release control data.

[0030] By adopting the above technical solution, this application identifies and converts various fixed cycle instructions to ensure the accuracy of processing parameters; through real-time calculation of the B-axis angle and five-axis linkage verification, the processing accuracy of complex surfaces is guaranteed; according to the processing conditions, the brake release instruction is intelligently generated or canceled to achieve a smooth transition of axis movement.

[0031] Optionally, the system further includes:

[0032] Verification check module, used for syntax checking and collision detection of NC programs;

[0033] Error diagnosis module, used to analyze inspection results and generate diagnostic information;

[0034] The correction processing module is used to perform program optimization based on the diagnostic information.

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

[0036] Optionally, the verification and checking module specifically includes:

[0037] A grammar rule verification unit, used for checking program grammar based on format rule data;

[0038] Travel range checking unit, used to verify the processing range based on the machine tool motion parameter data;

[0039] Collision interference detection unit is used to analyze the collision between the tool and the workpiece.

[0040] By adopting the above technical solution, since the NC program verification of turning and milling composite machining involves security risks in multiple dimensions, the traditional single verification method is difficult to achieve comprehensive error prevention; the grammar rule verification unit of this application first scans and grammar analyzes the program code line by line based on the preset format rule database; the travel range check 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 achieved.

[0041] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps performed by the post-processing system for the above-mentioned turning-milling machine tool are implemented.

[0042] In a fourth aspect, the present 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 above-mentioned turning-milling machine tool.

[0043] In summary, this application includes at least one of the following beneficial technical effects:

[0044] 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 obtains machine tool parameter data. The post-processing algorithm file performs core operations based on these parameters. The format definition file standardizes the output format. Finally, the program generation file uniformly manages the output process. This improves adaptability to the needs of turn-milling composite machining, and enhances programming efficiency and program quality.

[0045] 2. Since turning-milling machine tools have both turning and milling functions, conversion between rectangular coordinate systems and polar coordinate systems is often required during the machining process, and this involves the coordinated control of the spindle C-axis and the feed axis. This application first identifies the instruction type that requires coordinate conversion based on the machine tool motion parameters and converts the tool trajectory in the rectangular coordinate system into the corresponding polar coordinate format. Secondly, by analyzing the changes in tool angle and curvature, it identifies areas requiring special treatment and performs dynamic compensation and speed matching optimization in these areas. Finally, the coordinate transformation data is combined to perform end face rotation angle transformation and travel range inspection to ensure machining safety.

[0046] 3. This application first analyzes the tool angle value and curvature changes to accurately identify the feature areas that require special treatment; for the identified feature areas, the optimal tool compensation value is dynamically calculated, and a 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 synchronous waiting is performed; finally, the optimized path is converted into a polar coordinate interpolation instruction with compensation, thereby improving the stability and accuracy of the machining process. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 This is a schematic diagram of the structure of a post-processing system for a turning and milling compound machine tool according to an embodiment of the present application. Figure 1 ;

[0048] Figure 2 This is a schematic diagram of the post-processing algorithm in the embodiment of this application. Figure 1 ;

[0049] Figure 3 This is a file configuration diagram of polar coordinate parameters and conversion modes in an embodiment of the present application;

[0050] Figure 4 Schematic diagram of the software interface configuration of polar coordinate parameters and conversion modes in the embodiment of the present application;

[0051] Figure 5 Schematic diagram of the coordinate conversion process in the embodiment of the present application;

[0052] Figure 6 This is a schematic diagram of the post-processing algorithm in the embodiment of this application. Figure 2 ;

[0053] Figure 7 This is a schematic diagram of the structure of a post-processing system for a turning and milling compound machine tool according to an embodiment of the present application. Figure 2 ;

[0054] Figure 8 This is a schematic diagram of the structure of the verification and inspection module in an embodiment of the present application;

[0055] Figure 9 This is a diagram of the internal structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0056] The terms used in the following examples of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification and appended claims of this application, the singular expressions "a," "an," "said," "above," "the," and "this" are intended to include plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in this application refers to any or all possible combinations comprising one or more of the listed items.

[0057] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0058] The embodiments of the present application are described in further detail below with reference to the accompanying drawings.

[0059] In the first aspect, the present application provides a post-processing system for a turning-milling compound machine tool, referring to Figure 1 ,include:

[0060] The parameter configuration file is used to store user-configurable parameter codes and obtain machine tool parameter configuration data.

[0061] In this embodiment, the parameter configuration file is a .tcl file, which is the basic configuration unit of the entire post-processing system. It is written in Tcl scripting language and is used to store and manage various parameter configurations of the machine tool. The machine tool parameter configuration data specifically includes: machine tool motion parameter data, which is used to define the motion characteristics of each axis of the machine tool; machine tool function control data, which is used to set the working mode and function options of the machine tool; processing accuracy control data, which is used to specify processing accuracy requirements; and coordinate transformation data, which is used to realize the conversion between different coordinate systems. The file adopts a hierarchical structure organization, mainly including multiple functional modules such as machine tool basic information configuration area, spindle parameter configuration area, feed parameter configuration area, stroke parameter configuration area and precision parameter configuration area. Each configuration item is defined in the form of "parameter name = parameter value" and is accompanied by detailed annotations to facilitate user understanding and modification.

[0062] Specifically, in the configuration file, the basic information area of ​​the machine tool defines the machine tool model and control system type; the spindle parameter area sets the spindle speed range; the feed speed parameter area uses an array to define the rapid feed speed of each axis; the stroke parameter area specifies the motion range of each axis in detail through 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 through a text editor based on the actual machine tool characteristics and usage requirements, and the system will automatically load the updated configuration at startup. For example, when the 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, which is convenient for users to perform personalized configuration.

[0063] 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.

[0064] In this embodiment, the post-processing algorithm file is a .tbc file, the system's core processing unit. Stored in encrypted form, it executes the post-processing algorithm, converting the intermediate code output by the CAM software into program data that meets the requirements of a specific machine tool control system. This file contains a series of specialized code conversion algorithms that intelligently optimize and adjust tool paths, feed rates, spindle speeds, and other parameters based on the machine tool's parameter configuration data, ensuring that the generated program data meets the machine tool's kinematic characteristics and precision requirements.

[0065] Specifically, during program conversion, for complex multi-axis coordinated motion, the system automatically calculates the actual feedrate of each axis based on the machine tool's motion parameters. For example, when a tool performs circular interpolation, the system automatically calculates the coordinated motion parameters for each axis based on the arc radius and set feedrate, incorporating the machine tool's acceleration and deceleration characteristics. Furthermore, the system automatically inserts necessary compensation instructions, such as tool radius compensation and tool length compensation, based on machining accuracy requirements.

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

[0067] In this embodiment, the format definition file is a .def file, which is used to standardize the output format rules of the NC program. The format rule data specifically includes: NC program code format rule data, which specifies the writing standards and grammatical requirements of the program code; NC program structure rule data, which defines the program's organizational structure and hierarchical relationships; and NC program sequencing rule data, which determines the execution order of machining instructions. This file is organized in XML format and contains multiple configuration modules, including a program header definition area, an instruction format definition area, a program structure definition area, and a process sequencing definition area. Each rule is defined using tag attributes and supports conditional judgment and logical control.

[0068] Specifically, in the format definition file, the NC program code format rules define the identification format of the program segment, the number of decimal places of the coordinate value, the representation of the feed speed, 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.; the NC program sorting rules stipulate the arrangement order of processing instructions, such as defining the tool path instruction before the auxiliary function instruction (M code). Users can customize the output format of the NC program by modifying the corresponding tag attribute value in the .def file. For example, when you need to change the number of decimal places of the coordinate value, just modify <format>The system will automatically adjust the output NC program format according to the new format definition.

[0069] The program generation file is used to generate an NC program based on the processed program data and format rule data.

[0070] The program generation file is the system's final output, converting post-processed program data into an NC program that can be used directly on the machine tool according to specified formatting rules. This file includes program formatting, code optimization, and program verification, ensuring the generated program is both readable and executable.

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

[0072] Furthermore, auxiliary files include .pui and .dll files. .pui files are empty files used for post-processing system positioning, while .dll files are dynamic link libraries used for post-processing ciphertext translation and Tcl file execution. These files work together to transform CAM data into executable NC programs for machine tools. Users can customize their configuration by modifying .tcl and .def files, while the core algorithm is encapsulated in a ciphertext .tbc file for security.

[0073] In one embodiment, referring to Figure 2 The post-processing algorithm file includes the following post-processing algorithms based on the machine tool parameter configuration data:

[0074] S210 , identifying polar coordinate interpolation instructions based on machine tool motion parameter data, converting the XY linkage coordinates in the rectangular coordinate system into a polar coordinate interpolation format, and configuring a corresponding output mode according to the machine tool controller type.

[0075] Reference Figure 3 and Figure 4 , the system identifies the processing sections that require polar coordinate conversion by analyzing the motion instruction features in the NC program. When a plane machining trajectory on the end face is detected, the system automatically activates the polar coordinate conversion function. When machining features such as end face spiral grooves, the system automatically converts the linear motion instructions into combined motion instructions in the radial direction (X) and the rotation angle (C). For example, by calling set mom_polar_status(ON) "12.1", the polar coordinate mode is activated, and mom_polar_output_mode "1" is set to select the radius output mode, and set mom_return_position "150." is used to define the safe return position. At the same time, the system selects the appropriate coordinate plane conversion strategy based on the machine tool controller type. For different types of controllers such as FANUC, the plane conversion rules are defined by setting the mom_polar_plane_transformation parameter. Different conversion methods can be selected, such as the default XY plane, Y symmetry about Z, or origin symmetry. This parametric configuration method enables the system to flexibly adapt to the characteristics of different controllers. When generating instructions such as G12.1 polar coordinate interpolation and XC-axis linkage, it ensures the precise conversion of machining trajectories and effectively meets the machining requirements of complex surfaces such as end threads and splines.

[0076] S220 , identifying the XC linkage instruction based on the machining accuracy control data, converting the XY linkage coordinates into an XC linkage format, and performing a secondary interpolation operation of the tool trajectory.

[0077] In this embodiment, the system implements intelligent conversion from XY plane to XC linkage machining by analyzing the characteristics of the machining trajectory. For example, when it recognizes that end face contour machining is required, the system automatically invokes the XC linkage conversion function. By setting key parameters such as the mom_line_convert parameter to "0.1" to control interpolation accuracy, mom_c_direction_zmill to "-1" to define the C-axis rotation direction, and mom_rapid_feed to "10000," a precise conversion from the XY plane to XC linkage is achieved. The configuration of these parameters directly affects the actual machining accuracy and efficiency.

[0078] Specifically, the system uses a parametric curve fitting method for interpolation calculations. For circular trajectories, the system automatically calculates the minimum chord height error based on the required accuracy and determines the density of interpolation points accordingly. For free-form surfaces, the system optimizes the trajectory using a spline curve algorithm. For example, when machining a complex rotating body contour, the system adaptively adjusts the distribution of interpolation points based on the different curvature regions, increasing the density of interpolation points in areas with large curvature changes to ensure machining accuracy.

[0079] S230: Execute end face rotation angle transformation based on the coordinate transformation data, perform machine tool travel range inspection, and generate machining program data with overtravel protection.

[0080] In this embodiment, the system performs a comprehensive travel range check while performing coordinate conversion. By reading the motion parameter data of the machine tool, the system can verify in real time whether the movement of each axis exceeds the safe range. Specifically, the system will perform a range check on the converted X-axis position and C-axis angle. If a possible overtravel is detected, the system will automatically adjust the processing strategy or insert a safety instruction. For example, when the C-axis rotation angle approaches the limit, the system can avoid overtravel by inserting a reverse rotation instruction while ensuring processing continuity. This intelligent anti-overtravel mechanism not only ensures processing safety, but also improves the reliability of the program. The system will also automatically calculate the tool compensation value according to different end face positions to ensure that the correct cutting depth can be maintained at different angle positions. Through this comprehensive coordinate conversion and safety check mechanism, the system can generate a safe and efficient processing program.

[0081] In one embodiment, referring to Figure 5 , convert the XY linkage coordinates in the rectangular coordinate system into the polar coordinate interpolation format, and configure the corresponding output mode according to the machine tool controller type. The specific steps include the following:

[0082] 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 a feature area.

[0083] In this embodiment, the system analyzes the geometric characteristics of the tool path to identify areas requiring special treatment. These characteristic areas primarily include locations where the tool's steering angle changes dramatically, and areas where the workpiece's contour curvature changes significantly. The system marks these areas as areas requiring key optimization, providing a basis for subsequent compensation calculations and speed control.

[0084] Specifically, when the tool angle change between adjacent program segments exceeds a preset threshold, the system marks that location as a rapid turn zone. When the curvature change rate of the workpiece contour exceeds a specified value, it is marked as a variable curvature zone. For example, when machining a cam profile, the system automatically identifies the inflection points and points of variable curvature on the cam curve and prioritizes these locations as feature areas.

[0085] S520, dynamically calculating the tool compensation value in the feature area and analyzing the XC axis speed matching relationship.

[0086] In this embodiment, the system calculates the real-time compensation values ​​required by the tool during machining based on the geometric characteristics of the feature area. During the compensation calculation process, the system sets the XC interpolation accuracy threshold and C-axis rotation direction through post-processing configuration parameters to ensure the coordination of the X-axis feed motion and the C-axis rotation motion. This configuration 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 process, the system simultaneously considers the interaction between the tool geometry and the workpiece surface features, achieving dynamic compensation adjustment. The system also establishes a speed matching model between the X-axis and C-axis. Since the X-axis moves linearly and the C-axis moves rotationally, the system first converts the C-axis angular velocity into the linear velocity of the end face, which is then coordinated with the radial feed rate of the X-axis. During machining, the system calculates the speed ratio of the two axes in real time to ensure a constant cutting speed across the workpiece surface. When the machining contour changes, the system automatically adjusts the ratio between the X-axis feed rate and the C-axis rotation rate, ensuring machining accuracy while avoiding sudden changes in cutting forces. For example, when processing spiral grooves, the system will dynamically adjust 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 processed surface.

[0087] S530. Perform comprehensive optimization processing on the feature area according to the tool compensation value and the speed matching relationship. The comprehensive optimization processing includes deceleration control, arc smoothing, and synchronous waiting.

[0088] In this embodiment, the system performs multiple optimization processes on the characteristic areas: deceleration control for smooth transitions, arc smoothing for improved trajectory continuity, and synchronous waiting to ensure the coordination of the motion of each axis.

[0089] Specifically, the system first detects the entry point of the feature area to determine whether the entry angle change exceeds the preset threshold. When the threshold is exceeded, a deceleration segment is inserted before the entry, and the feed speed is reduced to 30%~70% of the original speed. After the tool completely enters the feature area, it gradually returns to the normal processing speed; at the same time, the system scans the trajectory inflection point and calculates the angle between adjacent program segments. When the angle is less than 120 degrees, a transition arc is automatically inserted at the corner. The arc radius is automatically calculated according to the processing accuracy requirements and the tool diameter, and then the tool compensation value with the arc transition segment is recalculated; in addition, the system also analyzes the position relationship of the XC axis to identify key points that require strict synchronization, inserts synchronization waiting instructions at these positions, and checks the deviation between the current position and the target position of each axis. When the deviation exceeds the allowable value, synchronization waiting is forced to be executed. For example, when machining a spiral groove on the end face, the system first reduces the feed speed to 50% of the normal speed before entering the spiral section, and then inserts a transition arc with a radius of 1.5 times the tool diameter at the beginning of the spiral. At the same time, an XC-axis synchronous waiting instruction is added at the starting position of each spiral to ensure the continuity and uniformity of the spiral groove. Through this comprehensive optimization process, the machining quality and efficiency are effectively improved.

[0090] S540: Convert the path data after comprehensive optimization processing into polar coordinate interpolation instructions with compensation, and configure the output mode according to the type of machine tool controller.

[0091] In this embodiment, the system converts optimized tool path data into polar coordinate interpolation instructions suitable for different CNC systems. The system first identifies the controller type. Then, based on the command characteristics of each controller, it configures the polar coordinate output mode parameters to convert the optimized path data into polar coordinate interpolation instructions in the corresponding format. Simultaneously, the system automatically adjusts the radial and angular coordinate values ​​in the polar coordinate system based on the tool compensation value to ensure machining accuracy.

[0092] Specifically, the system adopts a segmented processing strategy when converting polar coordinate instructions. First, a polar coordinate machining environment is established through the polar coordinate mode activation instruction (such as G12.1), and then the XY coordinate data of each path segment is converted into the corresponding RC (radius-angle) format data. For example, when machining an end face spiral groove, the system converts the interpolation point sequence into a compensated polar coordinate format, which takes into account the tool radius compensation and machining accuracy requirements. After completing the machining, the system restores to the standard coordinate system through the polar coordinate mode shutdown instruction (such as G13.1). Through this conversion processing method, high-precision polar coordinate machining of complex contours is achieved, while ensuring the versatility and portability of the program.

[0093] In one embodiment, referring to Figure 6 , the post-processing algorithm also includes:

[0094] S610: Convert fixed cycle instructions based on drilling and tapping cycle data.

[0095] In this embodiment, the system performs intelligent conversion of canned cycle instructions based on the drilling and tapping cycle parameters preset in the machine tool parameter configuration file. During processing, the system first identifies the drilling and tapping operation type, including standard drilling, deep hole drilling, tapping, reaming, and other machining methods. It then automatically selects the appropriate canned cycle code based on the process requirements. The system analyzes parameters such as the depth of the machining feature, feed rate, and spindle speed, and combines them with the canned cycle format requirements of different controller types to generate standardized canned cycle instructions.

[0096] S620: Perform B-axis angle transformation and five-axis linkage verification based on universal joint control data.

[0097] 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 power head's motion parameter configuration, including key parameters such as the B-axis travel range, angular resolution, and speed limit. When performing angle conversion, the system considers the relationship between the tool's actual working posture and the workpiece surface normal vector to ensure that the tool maintains the optimal cutting state during machining. Simultaneously, the system performs kinematic verification of the power head to ensure that the converted tool path meets the machine tool's kinematic characteristics.

[0098] Specifically, when machining an inclined surface feature, the system automatically calculates the required B-axis swing angle based on the surface normal vector. For example, when machining a plane inclined 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 resolution of the power head. The system also automatically inserts transition actions during the angle transformation process. For example, before adjusting the B-axis angle, the tool is retracted to a safe height, and cutting is performed after the angle adjustment is completed, thereby ensuring the safety and stability of the machining process.

[0099] S630: Execute automatic brake release instruction generation and cancellation based on the axis brake release control data.

[0100] In this embodiment, the system performs automated brake release control based on the machine tool's axis control parameters. By analyzing the axis motion characteristics in the machining program, the system identifies key locations requiring brake release control, including tool change positions, program start and end positions, and other locations. At these locations, the system automatically generates the corresponding brake release control code based on the machine tool controller's command specifications, ensuring that the axis motion remains under control while avoiding unnecessary braking operations to improve machining efficiency.

[0101] Specifically, when the system detects that the power head angle adjustment is required, 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 the brake lock command after the angle adjustment is complete. During this process, the system sets reasonable delay parameters, such as waiting 100ms after the brake is released before executing the axis movement, and waiting 200ms after the axis movement is completed before executing the brake lock, to ensure the stability and accuracy of the mechanism movement. Through this intelligent brake release control, the system not only ensures processing accuracy but also improves overall processing efficiency.

[0102] In one embodiment, referring to Figure 7 , the system further includes:

[0103] Verification check module, used to perform syntax check and collision detection on NC programs.

[0104] In this embodiment, the system implements a comprehensive verification mechanism to perform comprehensive checks on NC programs. During syntax checking, the system first performs lexical analysis and parsing of the program code, verifying that the instruction format, parameter ranges, and logical relationships conform to specifications. Simultaneously, the system integrates the machine tool kinematic model for real-time collision detection, simulating potential interference during machining by building a three-dimensional model of the tool, workpiece, and machine tool components.

[0105] Specifically, when the system performs program verification, it analyzes the program code line by line according to the preset inspection rules. For example, when checking a program segment containing circular interpolation, the system will verify the rationality of the arc radius, start point and end point coordinates. When it is found that the arc radius does not match the actual trajectory, the system will mark the program segment as a potential error. In terms of collision detection, the system calculates the minimum distance between the tool and the workpiece and fixture during the processing process through dynamic simulation. When it detects that the safety distance is less than the preset value (such as 10mm), it will automatically record the axis position and program line number at that moment.

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

[0107] In this embodiment, the system conducts in-depth analysis and diagnosis of issues discovered during the verification process. By establishing an error classification database, the system can identify common types of program errors, including syntax errors, logic errors, and parameter limit violations. For each error type, the system develops corresponding diagnostic rules. By analyzing the error characteristics, it generates a detailed diagnostic report, providing a basis for subsequent program corrections.

[0108] The correction processing module is used to perform program optimization based on the diagnostic information.

[0109] In this embodiment, the system performs intelligent program correction based on error diagnosis results. The correction processing module first analyzes the priority and relevance of diagnostic information to determine the optimal correction sequence. The system employs different correction strategies for different program issues, including parameter adjustment, instruction reconstruction, and trajectory optimization. During the correction process, the system maintains program continuity and processing results, ensuring that the corrected program still meets the original process requirements.

[0110] In one embodiment, referring to Figure 8 , the verification and inspection module specifically includes:

[0111] The grammar rule verification unit is used to check the program grammar based on the format rule data.

[0112] 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 that the G-code format is correct, such as whether the use of instructions such as G01, G02, and G03 complies with the specifications. It then checks the format of the coordinate values, including the position of the decimal point and the number of significant digits, to ensure that they meet the requirements. If it detects that the feed rate value in a certain instruction uses the incorrect format (such as F1000.00.0), the system will immediately mark the error and record the specific error type and location information.

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

[0114] Specifically, when performing a 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 range of movement of the tool in the X, Y, and Z axes. Assuming that the travel range of the machine tool's X axis is -400mm to +400mm, when the X450 instruction appears in the program, the system will immediately recognize that the instruction exceeds the machine tool's travel limit. At the same time, the system will also verify the comprehensive motion range under multi-axis linkage to ensure that the machine tool's soft limit or hard limit will not be triggered under any motion state.

[0115] Collision interference detection unit is used to analyze the collision between the tool and the workpiece.

[0116] In this embodiment, the system uses dynamic collision detection technology to provide real-time collision warnings by building a three-dimensional geometric model of the tool and workpiece. During the detection process, the system considers the tool's actual geometric characteristics, including parameters such as tool length, diameter, and shank shape, and combines the workpiece's machining characteristics and fixture layout to build a complete machining scenario model.

[0117] Specifically, during collision detection, the system simulates tool motion throughout the entire machining process. For example, when machining a workpiece with a deep cavity, the system will focus on checking for collision risks as the tool enters and exits the cavity. If, at a corner, insufficient tool length could cause interference between the tool shank and the workpiece wall, the system will calculate the specific collision point coordinates and collision time, and generate a detailed analysis report including the collision type and severity.

[0118] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean 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.

[0119] In one embodiment, the present application provides an electronic device, which may be a server, and its internal structure diagram may be as follows: Figure 9 As shown. The electronic device includes a processor, a memory and a network interface connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the steps performed by the above-mentioned post-processing system for the turning-milling compound machine tool are implemented.

[0120] Those skilled in the art will understand that Figure 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of 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 a different component arrangement.

[0121] In one embodiment, an electronic device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.

[0122] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing the relevant hardware through a computer program. The above-described computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the above-described method embodiments. Any reference to memory, storage, database, or other media used in the embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage. Volatile memory may 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).

[0123] The above are all preferred embodiments of the present application, and are not intended to limit the scope of protection of the present application. Therefore, any equivalent changes made based on the structure, shape, and principle of the present application should be included in the scope of protection of the present application.< / format>

Claims

1. A post-processing system for a turning-milling machine tool, characterized in that: include: A parameter configuration file, used to store user-configurable parameter codes and obtain machine tool parameter configuration data, wherein 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; 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 for generating an NC program based on the processed program data and the format rule data; The post-processing algorithm file includes the following post-processing algorithms executed based on the machine tool parameter configuration data: Identifying polar coordinate interpolation instructions based on the machine tool motion parameter data, converting the XY linkage coordinates in the rectangular coordinate system into a polar coordinate interpolation format, and configuring a corresponding output mode according to the type of machine tool controller; Identifying XC linkage instructions based on the machining accuracy control data, converting the XY linkage coordinates into an XC linkage format, and performing a secondary interpolation operation of the tool trajectory; Executing end face rotation angle transformation based on the coordinate transformation data, performing machine tool travel range inspection, and generating machining program data with overtravel protection; The steps of converting the XY coordinates in the rectangular coordinate system into the polar coordinate interpolation format and configuring the corresponding output mode according to the machine tool controller type are as follows: Based on the tool angle value and curvature change in the coordinate transformation data, detecting a rapid turning area and a variable curvature area to obtain a characteristic area; Dynamically calculate tool compensation values ​​in the characteristic area and analyze the XC axis speed matching relationship; performing a comprehensive optimization process on the characteristic region according to the tool compensation value and the speed matching relationship, the comprehensive optimization process including 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 machine tool controller type.

2. The post-processing system for a turning-milling machine tool according to claim 1, 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.

3. The post-processing system for a turning-milling machine tool according to claim 2, 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 executed based on the axis brake release control data.

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

5. The post-processing system for a turning-milling machine tool according to claim 4, 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; Collision interference detection unit is used to analyze the collision between the tool and the workpiece.

6. 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. When the processor executes the computer program, the steps executed by the post-processing system for a turning-milling compound machine tool according to any one of claims 1 to 5 are realized.

7. 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 5 are implemented.