A method and system for converting coordinates of a vertical / horizontal milling and turning combined machine tool

By acquiring the total tool swing length and the actual B-axis rotation angle in real time in a vertical and horizontal milling and turning composite machine tool, constructing a homogeneous transformation matrix and performing comprehensive compensation, the problems of insufficient real-time coordinate transformation and incomplete error correction in the existing technology are solved, thereby improving machining accuracy and stability and meeting the machining requirements of high-requirement parts.

CN123137207APending Publication Date: 2026-11-20GENERAL TECH GRP MASCH TOOL ENG RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611636370.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-22
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing coordinate transformation processing methods for vertical and horizontal milling and turning composite machine tools suffer from insufficient real-time performance, incomplete error correction, and high computational complexity. This results in significant contour errors and surface steps on machined parts, making it difficult to meet the machining requirements of high-demand components such as aero-engine impellers and precision molds.

Method used

By acquiring the total tool swing length after the CNC system is powered on or after a tool change, and by acquiring the actual rotation angle of the B-axis in real time during each interpolation cycle, a homogeneous transformation matrix and non-orthogonal error angle are constructed. Combined with physical compensation vectors and geometric compensation vectors, comprehensive compensation is performed to achieve online real-time correction of non-orthogonal deviation and gravity-induced deformation error between the B-axis rotation axis and the machine tool coordinate axis.

Benefits of technology

It significantly improves the tool tip positioning accuracy and machining surface quality of vertical and horizontal milling and turning composite machine tools during attitude conversion, meeting the machining needs of high-requirement parts such as aero-engine impellers and precision molds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137207A_ABST
    Figure CN123137207A_ABST
Patent Text Reader

Abstract

The application discloses a kind of vertical and horizontal milling complex machine tool conversion coordinate processing method and system, belong to numerical control machine tool processing technical field, this method includes: after the power of numerical control system of vertical and horizontal milling complex machine tool or tool changing operation is completed, total tool swing length is obtained;In each interpolation period, execute: based on total tool swing length, B axis actual rotation angle and preset non-orthogonal error angle, construct homogeneous transformation matrix;B axis actual rotation angle is used to determine physical compensation vector;Geometric compensation vector is determined based on homogeneous transformation matrix, and geometric compensation vector is used to correct the geometric position deviation of tool tip point caused by B axis rotation, total swing length bias and non-orthogonal error together;Physical compensation vector and geometric compensation vector are vector superimposed, to generate comprehensive compensation vector, and comprehensive compensation vector is used to superimposed to the original position instruction of numerical control program, form and send the modified feed position instruction to feed axis driver execution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of CNC machine tool processing technology, and in particular to a method and system for coordinate transformation processing of vertical and horizontal milling and turning composite machine tools. Background Technology

[0002] A vertical-horizontal milling and turning composite machine tool is a composite machining equipment that integrates vertical milling and horizontal turning functions. Its core feature is a spindle head that can rotate around a swing axis. By swinging the spindle head, the cutting tool can switch between vertical and horizontal machining postures, thereby enabling multi-faceted and multi-process composite machining of the workpiece in a single clamping. This type of machine tool can effectively reduce the errors of multiple workpiece clamping and auxiliary time, and has been widely used in the machining of high-requirement parts such as aero-engine impellers, medical implants, and precision molds.

[0003] In existing technologies, coordinate transformation in vertical and horizontal milling and turning composite machine tools is typically based on ideal geometric relationships, and the transformation results are used to generate CNC commands. However, existing coordinate transformation methods suffer from insufficient real-time performance, incomplete error correction, and high computational complexity. Although numerous studies have attempted to improve coordinate transformation accuracy by establishing more accurate kinematic models or developing offline post-processing programs, the position-independent geometric errors of the rotation axis are difficult to predict completely offline, and the structural deformation caused by gravity has a nonlinear characteristic that changes continuously with the swing angle. This makes it difficult to fundamentally solve the problem by simply relying on geometric modeling or offline calibration. At the same time, some studies have attempted to introduce error compensation functions into CNC systems, but due to the real-time requirements of the interpolation cycle, complex compensation algorithms often cannot be executed stably within millisecond cycles, resulting in limited compensation effects.

[0004] In summary, the existing coordinate transformation processing methods of vertical and horizontal milling and turning composite machine tools cannot meet the requirements of high-precision real-time compensation. They are prone to causing obvious contour errors and surface steps in the machined parts, which seriously affect the dimensional accuracy and surface quality of the parts and make it difficult to meet the processing requirements of high-requirement parts such as aero-engine impellers and precision molds. Summary of the Invention

[0005] In view of this, embodiments of this application provide a method and system for coordinate transformation processing of a vertical and horizontal milling and turning composite machine tool.

[0006] According to one aspect of this application, a method and system for coordinate transformation processing of a vertical / horizontal milling and turning composite machine tool are provided, comprising: After the CNC system of the vertical and horizontal milling and turning composite machine tool is powered on or the tool change operation is completed, the total tool swing length is obtained. The total tool swing length refers to the distance between the B-axis rotation center and the tip of the current tool. Within each interpolation cycle, perform the following steps: Based on the total tool swing length, the actual rotation angle of the B-axis, and the preset non-orthogonal error angle, a homogeneous transformation matrix is ​​constructed; the non-orthogonal error angle is used to reflect the angular deviation of the axis of the tool coordinate system relative to the axis of the machine tool coordinate system in the nominal orthogonal direction. The physical compensation vector is determined based on the actual rotation angle of the B-axis. The physical compensation vector is used to correct the Z-axis deformation error caused by the gravity of the spindle unit mounted on the B-axis rotation mechanism and the current tool. The geometric compensation vector is determined based on the homogeneous transformation matrix. The geometric compensation vector is used to correct the deviation of the geometric position of the tool tip caused by the B-axis rotation, the total pendulum length offset and the non-orthogonal error. The physical compensation vector and the geometric compensation vector are superimposed to generate a comprehensive compensation vector. The comprehensive compensation vector is then superimposed onto the original position command of the CNC program to form and send the corrected feed position command to the feed axis driver for execution.

[0007] Compared with existing technologies, this application has significant advantages: This application obtains the total tool swing length after the CNC system is powered on or after a tool change, and acquires the actual B-axis rotation angle in real time during each interpolation cycle. This ensures that coordinate transformation and error compensation are always based on the current actual B-axis posture, realizing the transformation from offline post-processing to online real-time compensation. This effectively avoids the problem of compensation lag caused by B-axis angle fluctuations or thermal deformation. Furthermore, this application constructs a homogeneous transformation matrix and simultaneously introduces a non-orthogonal error angle, synchronously correcting the non-orthogonal deviation between the B-axis rotation axis and the machine tool coordinate axes during coordinate mapping, overcoming the inherent errors caused by ideal geometric conversion. Furthermore, this application introduces a gravity sag compensation mechanism, which independently corrects the Z-axis deformation error caused by the gravity of the spindle unit and tool through physical compensation vectors. This decouples coordinate transformation from physical deformation, overcoming the limitation that relying solely on geometric transformations cannot compensate for nonlinear structural deformations. Simultaneously, since geometric and physical compensation employ parallel calculation paths, only one vector superposition is needed to complete the comprehensive compensation for both types of errors, avoiding complex iterative calculations. This ensures that the complete compensation calculation can be stably completed within each interpolation cycle, guaranteeing both compensation accuracy and meeting the stringent real-time requirements of the CNC system. Through these methods, this application significantly improves the tool tip positioning accuracy, machining surface quality, and operational stability of vertical and horizontal milling and turning centers during attitude transitions, meeting the machining needs of high-requirement components such as aero-engine impellers and precision molds.

[0008] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0009] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 This invention provides a schematic diagram of the structure of the oscillating head portion of a vertical / horizontal turning and milling composite machine tool according to an embodiment of this application. Figure 2 A flowchart illustrating the coordinate transformation processing method for a vertical and horizontal milling and turning composite machine tool provided in an embodiment of this application is shown. Figure 3 The diagram illustrates the geometric principle of coordinate transformation and error correction based on the coordinate transformation processing method for vertical and horizontal milling and turning composite machine tools provided in this application. Figure 4 This illustration shows a schematic diagram of determining the downward sag of Z according to an embodiment of this application; Figure 5 A schematic diagram illustrating the generation of the comprehensive compensation vector provided in an embodiment of this application is shown; Figure 6 A structural block diagram of the coordinate transformation processing system for a vertical and horizontal milling and turning composite machine tool provided in an embodiment of this application is shown. Detailed Implementation

[0010] The present application will be described in detail below with reference to the accompanying drawings and embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in the embodiments of the present application can be combined with each other.

[0011] In one possible application scenario, the solution provided in this application is used in... Figure 1 The image shows the oscillating head section of a vertical / horizontal milling and turning machine. (See attached image.) Figure 1As shown, the oscillating head of a vertical / horizontal milling and turning composite machine tool typically includes a spindle head 101, a B-axis rotation mechanism 102, and a cutting tool 103. The spindle head 101 is mounted on the B-axis rotation mechanism 102, and the cutting tool 103 is mounted on the end of the spindle head 101. The B-axis rotation mechanism 102 drives the spindle head 101 and the cutting tool 103 to oscillate around the B-axis rotation center P_B104. When the B-axis rotation mechanism 102 drives the spindle head 101 to a vertical position, the spindle head 101 is in a vertical machining position, and the corresponding cutting tool 103 performs milling and drilling operations. When the B-axis rotation mechanism 102 drives the spindle head 101 to a horizontal position, the spindle head 101 is in a horizontal machining position, and the corresponding cutting tool 103 performs turning and side machining operations. Through the drive of the B-axis rotation mechanism 102, the spindle head can switch between vertical and horizontal machining positions, realizing multi-face composite machining of the workpiece after a single clamping.

[0012] It should be noted that "spindle head" and "B-axis rotary mechanism" are both technical terms in this field, with clear technical connotations and industry-recognized definitions. The spindle head specifically refers to the actuator mounted on the machine tool's oscillating mechanism, used to hold the cutting tool and drive it to rotate around its own axis for cutting operations. The B-axis rotary mechanism specifically refers to the rotary drive device that drives the spindle head to oscillate around the B-axis, used to achieve the conversion between vertical and horizontal machining postures. The B-axis rotary mechanism typically includes a torque motor, high-precision bearings, angle detection elements (such as circular linear scales), and locking mechanisms. The B-axis is the rotary axis in the CNC machine tool coordinate system that rotates around the Y-axis, and its rotation angle is usually represented by β.

[0013] The coordinate transformation processing method and system for vertical and horizontal milling and turning composite machine tools provided in this application are described in detail below.

[0014] like Figure 2 As shown, the method provided in this application includes S1-S2, specifically: S1: After the CNC system of the vertical and horizontal milling and turning machine tool is powered on or the tool change operation is completed, obtain the total tool swing length. The total tool swing length refers to the distance between the B-axis rotation center and the tip of the current tool.

[0015] The distance from the B-axis rotation center to the tool tip is the core geometric parameter determining the spatial position change of the tool tip during B-axis oscillation. This distance directly determines the spatial displacement of the tool tip when the B-axis rotates by a unit angle—the larger the distance, the greater the positional offset of the tool tip under the same angle change. Furthermore, during machining, the total tool oscillation length is not constant but changes with each tool change. Differences in the length of different tools, as well as changes in the length of the same tool due to regrinding or wear during use, will all cause corresponding changes in the total tool oscillation length. In addition, when the CNC system is powered on, no tool length data is loaded into the system memory. If the current total tool oscillation length is not obtained promptly after power-on or tool change, the homogeneous transformation matrix in subsequent interpolation cycles will be unable to accurately describe the spatial vector relationship between the B-axis rotation center and the tool tip due to missing or incorrect translation parameters. If the old tool length data from before the tool change is continued to be used, the tool tip compensation calculated by the homogeneous transformation matrix will deviate from the actual required compensation. This deviation will be significantly amplified during large-angle B-axis oscillations, resulting in a severe decrease in tool tip positioning accuracy. Therefore, obtaining the current total tool swing length in a timely manner after the system is powered on or after a tool change is a fundamental prerequisite for ensuring that the homogeneous transformation matrix accurately maps the tool tip position.

[0016] Here, the total tool length is obtained in the following way: The distance from the B-axis rotation center to the spindle end face is read from the CNC system of the vertical and horizontal turning and milling composite machine tool, and is used as the first distance L. pivot The spindle end face refers to the tool mounting reference surface of the spindle unit facing the tool; the second distance L is obtained by measuring the current tool length using a laser tool setter. tool Calculate the sum of the first distance and the second distance to obtain the total pendulum length L of the tool.

[0017] It should be understood that the first distance L pivot This is an inherent structural parameter of the vertical / horizontal milling and turning composite machine tool. Its value is determined by the machine tool's design dimensions and assembly relationships, and it does not change with tool changes, machining states, or the passage of time during normal machine tool use. Therefore, this parameter can be calibrated and pre-stored in the CNC system's memory when the machine tool leaves the factory. It can be directly read after the system starts, without needing to be remeasured before each machining operation, and is not affected by the current tool type or machining conditions. In contrast, the second distance L... tool The tool length, a variable parameter that changes with each tool change, needs to be measured using a laser tool setter under actual clamping conditions to obtain its accurate current value. The inherently constant L... pivot With real-time acquisition of L tool By adding them together, we can obtain the actual total tool swing length L, which ensures accuracy and avoids the efficiency loss caused by repeatedly calibrating fixed parameters.

[0018] It should be noted that since the total tool swing length remains fixed after power-on and tool clamping, it will not change with B-axis oscillation or machining progress during subsequent machining. Therefore, it is unnecessary to repeatedly acquire this distance in each interpolation cycle. It only needs to be acquired once after system power-on or tool change operation, and can then be used as a fixed parameter for the homogeneous transformation matrix in all subsequent interpolation cycles.

[0019] This "one-time acquisition, multiple reuse" approach can ensure the accuracy of the pendulum length parameters on which the homogeneous transformation matrix depends, and avoid repeatedly performing measurement or tool database reading operations in each interpolation cycle. This effectively reduces the computational overhead in the interpolation cycle and ensures the real-time performance of the compensation algorithm in millisecond-level interpolation cycles.

[0020] S2: In each interpolation cycle, perform the following steps S2-1 to S2-4.

[0021] It should be understood that the interpolation cycle refers to the time reference period for the CNC system to perform position interpolation calculations. That is, the CNC system calculates the position the tool should reach at the next moment at fixed time intervals and outputs the calculation results to each feed axis driver. In this application, the interpolation cycle is a fixed time interval during which the CNC system repeatedly performs coordinate transformation and error compensation during machining. Within each interpolation cycle, the actual rotation angle of the B-axis needs to be acquired, the homogeneous transformation matrix needs to be constructed, the geometric compensation vector and physical compensation vector need to be calculated, and the comprehensive compensation vector needs to be output. By synchronously executing the above steps within each interpolation cycle, it can be ensured that the compensated feed position command is output to the driver at the same pace as the CNC system, achieving real-time tool tip position correction during B-axis attitude changes. In this application, the interpolation cycle is preferably 1 millisecond. Within 1 millisecond, angle acquisition, matrix construction, dual compensation calculation, and command output are completed, satisfying the real-time requirements of the CNC system for position control while ensuring the accuracy and stability of the compensation calculation.

[0022] Specifically, in combination Figure 3 The geometric principle diagram of coordinate transformation and error correction in S2 is shown in the figure. S2 includes: S2-1: Construct a homogeneous transformation matrix based on the total tool swing length, the actual rotation angle of the B-axis, and the preset non-orthogonal error angle; the non-orthogonal error angle is used to reflect the angular deviation of the axis of the tool coordinate system relative to the axis of the machine tool coordinate system in the nominal orthogonal direction.

[0023] Here, the tool coordinate system is a coordinate system fixed to the tool and oscillating with the B-axis (X... t -Y t -Z t The machine tool coordinate system is the reference coordinate system (X) fixed to the machine tool bed of the vertical and horizontal turning and milling compound machine tool. m -Ym -Z m The nominal orthogonal direction refers to the ideal geometric relationship between the coordinate axes of the machine tool coordinate system, that is, the X-axis of the machine tool coordinate system. m Axis, Y m Axis, Z m The axes should theoretically satisfy a pairwise orthogonal relationship of being mutually perpendicular. In this application, the Z-axis of the tool coordinate system... t Ideally, the axis (along the tool axis) should be aligned with the Z-axis of the machine tool coordinate system. m The axes (vertical direction of the spindle) are parallel, but due to geometric deviations in the B-axis rotary mechanism during assembly, debugging, or long-term operation, the Z-axis of the tool coordinate system is affected. t Z-axis and machine tool coordinate system m An angular deviation occurs between axes in directions that should nominally be parallel; this deviation is called non-orthogonal error, and its angular value is called the non-orthogonal error angle. In other words, the nominal orthogonal direction is the ideal reference direction for machine tool structural design, and the degree of deviation between the actual motion direction and the nominal orthogonal direction is the non-orthogonal error that this application aims to correct.

[0024] It should be noted that the non-orthogonal error angle is a constant that is pre-calibrated and stored in the embedded processor of the CNC system. It is obtained and updated by measuring the perpendicularity error between the B-axis and the Z-axis of the machine tool through a laser interferometer during the regular maintenance or precision inspection of the machine tool.

[0025] Based on this, S2-1 specifically includes: acquiring the pulse signal output by the B-axis circular grating ruler in each interpolation cycle, and simultaneously converting the pulse signal into the actual rotation angle of the B-axis; constructing a translation matrix describing the spatial positional relationship between the B-axis rotation center and the current tool tip based on the total tool swing length, constructing an ideal rotation matrix describing the current tool swinging around the B-axis rotation center based on the actual B-axis rotation angle, and constructing a non-orthogonal error correction matrix based on the non-orthogonal error angle; and multiplying the translation matrix, the ideal rotation matrix, and the non-orthogonal error correction matrix to obtain the homogeneous transformation matrix.

[0026] Here, the pulse signal output from the B-axis circular grating ruler is acquired, and simultaneously converted into the actual rotation angle of the B-axis. This includes: amplifying and shaping the pulse signal through a differential signal conversion module to obtain a shaped pulse signal; and transmitting the shaped pulse signal to an embedded processor so that the embedded processor can calculate the actual rotation angle of the B-axis based on the shaped pulse signal. It should be understood that the above description of the differential signal conversion module amplifying and shaping the grating ruler pulse signal, followed by pulse counting and angle conversion by the embedded processor, is a relatively common signal processing method in the field of industrial measurement and control. For simplicity, it will not be elaborated further here.

[0027] In one possible implementation, the homogeneous transformation matrix is ​​calculated as follows: ; in, It is a translation matrix. It is an ideal rotation matrix. It is a non-orthogonal error correction matrix. The orthogonal error angle.

[0028] It should be noted that the calculation expressions for the ideal rotation matrix, translation matrix, and non-orthogonal error correction matrix all adopt matrix calculation formulas known in the field, which have been documented in a large number of published documents. Given the input parameters (total tool swing length, actual B-axis rotation angle, and non-orthogonal error angle), those skilled in the art can directly construct the corresponding matrix based on the above standard matrix formulas without any creative effort.

[0029] S2-2: Determine the physical compensation vector based on the actual rotation angle of the B-axis. The physical compensation vector is used to correct the Z-axis deformation error caused by the gravity of the spindle unit mounted on the B-axis rotation mechanism and the current tool.

[0030] Specifically, such as Figure 4 As shown, S2-2 includes: within each interpolation cycle, querying the pre-stored gravity droop compensation curve based on the actual rotation angle of the B-axis to obtain the corresponding Z-down droop amount; and generating a physical compensation vector based on the Z-down droop amount.

[0031] Here, the gravity droop compensation curve is pre-obtained and stored in the CNC system through finite element analysis, experimental calibration, or empirical interpolation. When obtained through finite element analysis, a finite element model can be established based on the structural parameters of the spindle unit, the B-axis rotation mechanism, and the current tool to simulate the gravity droop deformation of the spindle unit under different B-axis angles, generating a curve relating angle and droop amount. When obtained through experimental calibration, a displacement sensor can be used to measure the Z-down droop at different B-axis angles on an actual machine tool, generating a measured curve. When obtained through empirical interpolation, a complete curve can be generated based on a finite set of calibration data using an interpolation algorithm. Regardless of the method used, the obtained curve is pre-stored in the CNC system's memory in the form of a data table or fitting function. Within each interpolation cycle, the system only needs to look up the table or perform interpolation calculations based on the current actual B-axis rotation angle to quickly obtain the corresponding Z-down droop amount, thus minimizing the consumption of real-time computing resources while ensuring compensation accuracy.

[0032] It should be understood that in the machine tool field, the spindle head and the spindle unit are two related but hierarchical concepts. Their relationship can be summarized as follows: the spindle head is a complete and independently movable mechanical structure assembly; while the spindle unit is usually the core functional component inside the spindle head.

[0033] Here, a physical compensation vector is generated based on the downward droop of Z. Specifically, the downward droop of Z is used as the Z-axis compensation value to construct a physical compensation vector containing only the Z-axis component. Because gravity-induced sagging is the deformation displacement of the spindle unit and tool along the Z-axis under their own gravity, and the direction of this displacement is consistent with the Z-axis direction, the physical compensation vector only contains the Z-axis component, while the compensation amounts in the X and Y directions are zero. When the physical compensation vector and the geometric compensation vector are superimposed, the Z-axis component of the physical compensation vector is directly added to the Z-axis component of the geometric compensation vector, thereby achieving a comprehensive correction of gravity-induced sagging deformation.

[0034] S2-3: Determine the geometric compensation vector based on the homogeneous transformation matrix. The geometric compensation vector is used to correct the geometric position deviation of the tool tip caused by the B-axis rotation, total pendulum length offset and non-orthogonal error.

[0035] S2-3 specifically includes: obtaining the theoretical tool tip position in the tool coordinate system given by the CNC machining program; performing a homogeneous transformation on the theoretical tool tip position in the tool coordinate system using a homogeneous transformation matrix to obtain the actual mapped position of the current tool tip in the machine tool coordinate system; wherein, the tool coordinate system is a coordinate system fixed to the tool and swinging with the B-axis, and the machine tool coordinate system is a reference coordinate system fixed to the machine bed of the vertical and horizontal turning and milling compound machine tool; generating a geometric compensation vector based on the deviation between the theoretical tool tip position and the actual mapped position.

[0036] Here, the theoretical tool tip position refers to the theoretical coordinate value of the tool tip in the tool coordinate system under ideal conditions, without considering any machine tool geometric errors, non-orthogonal errors, or gravity-induced sagging errors. This position is determined by the tool path of the CNC machining program and is the original basis for generating feed commands.

[0037] During machining, due to factors such as B-axis oscillation, non-orthogonal assembly errors, and spindle head gravity, the actual spatial position of the tool tip will deviate from the theoretical position. Therefore, it is necessary to use a homogeneous transformation matrix to map the theoretical tool tip position to the machine tool coordinate system to obtain the actual mapped position. Then, by comparing the deviation between the theoretical position and the actual mapped position, the amount of geometric error that needs to be compensated is determined.

[0038] For example, the theoretical blade tip position is denoted as Its coordinates are (Xt, Yt, Zt). This position is transformed by the homogeneous transformation matrix. After transformation, the actual mapped position of the tool tip in the machine tool coordinate system is obtained. .because It includes the actual B-axis rotation angle, the total tool swing length, and the non-orthogonal correction factor. This already reflects the actual position under the combined effects of B-axis rotation, pendulum length offset, and non-orthogonal error. Therefore, and Deviation between This is the geometric compensation vector that needs to be compensated.

[0039] S2-4: Superimpose the physical compensation vector and the geometric compensation vector to generate a comprehensive compensation vector. The comprehensive compensation vector is superimposed on the original position command of the CNC program to form and send the corrected feed position command to the feed axis driver for execution.

[0040] like Figure 5 As shown, the physical compensation vector With geometric compensation vector After each vector is determined independently, a comprehensive compensation vector is generated by vector superposition. ,Right now Among them, the geometric compensation vector Physical compensation vector used to correct the geometric position deviation of the tool tip caused by B-axis rotation, total pendulum length offset, and non-orthogonal error. This is used to correct the Z-axis deformation error caused by the gravity-induced droop of the spindle unit and the tool. The two compensation vectors originate from two different types of errors: one is kinematic geometry mapping error, and the other is physical structure deformation error. However, both ultimately manifest as the positional offset of the tool tip in the machine tool coordinate system, so they can be superimposed under the same coordinate reference.

[0041] It should be understood that the geometric compensation vector With physical compensation vector The superposition is a vector addition. Since both are vectors defined in the machine tool coordinate system and their directions are opposite to the offset of the tool tip position, a comprehensive compensation vector that simultaneously compensates for both types of errors can be obtained through vector addition. .

[0042] Comprehensive compensation vector After generation, within each interpolation cycle, the CNC system parses the original position command (i.e., the uncompensated theoretical feed position) from the machining program to obtain the current interpolation cycle's original position command, and then combines this original position command with the comprehensive compensation vector. A vector addition operation is performed to obtain the corrected feed position command. Here, the corrected feed position command is sent to the feed axis driver through a high-speed communication interface, which can be any one of EtherCAT bus, Profinet industrial Ethernet, CANopen protocol interface, or Mechatrolink-III bus.

[0043] The above description of the method embodiments of this application details, in a step-by-step manner, the complete processing flow of a vertical and horizontal milling and turning machine tool during the B-axis swing process, which involves obtaining the total tool swing length, constructing a homogeneous transformation matrix, determining the geometric compensation vector and physical compensation vector respectively, superimposing to generate a comprehensive compensation vector, and superimposing it onto the original position command.

[0044] Corresponding to the above method embodiments, this application also provides a coordinate transformation processing system for vertical and horizontal milling and turning composite machine tools, which can be used to execute the above methods. The following is in conjunction with the appendix... Figure 2 The system's modular composition and functions are described. The system implements each step of the aforementioned method in a modular fashion, with each module corresponding to a specific processing stage in the method flow. Real-time compensation of the tool tip position is achieved through the collaborative work between modules.

[0045] Specifically, such as Figure 6 As shown, the system includes: The tool swing length determination module is used to obtain the total tool swing length after the CNC system of the vertical and horizontal milling and turning machine tool is powered on or after the tool change operation is completed. The total tool swing length refers to the distance from the B-axis rotation center to the current tool tip. The matrix construction module is used to construct a homogeneous transformation matrix in each interpolation cycle based on the total tool swing length, the actual rotation angle of the B-axis, and the preset non-orthogonal error angle; the non-orthogonal error angle is the angular deviation of the axis of the tool coordinate system relative to the axis of the machine coordinate system in the nominal orthogonal direction. The physical compensation module is used to determine the physical compensation vector based on the actual rotation angle of the B-axis. The physical compensation vector is used to correct the Z-axis deformation error caused by the spindle unit mounted on the B-axis rotation mechanism and the current tool gravity drop. The geometric compensation module is used to determine the geometric compensation vector based on the homogeneous transformation matrix in each interpolation cycle. The geometric compensation vector is used to correct the geometric position deviation of the tool tip caused by the B-axis rotation, total pendulum length offset and non-orthogonal error. The composite superposition and output module is used to superimpose the physical compensation vector and the geometric compensation vector to generate a composite compensation vector. The composite compensation vector is then superimposed onto the original position command of the CNC program to form and send the corrected feed position command to the feed axis driver for execution.

[0046] The system proposed in this application also includes: The angle acquisition module is used to acquire the pulse signal output by the B-axis circular grating ruler in each interpolation cycle and convert the pulse signal into the actual rotation angle of the B-axis. The angle acquisition module includes a differential signal conversion unit and an embedded processor; the differential signal conversion unit amplifies and shapes the pulse signal to obtain a shaped pulse signal; the embedded processor calculates the actual rotation angle of the B-axis based on the shaped pulse signal.

[0047] It should be understood that the specific working process of each of the above modules corresponds to the corresponding steps in the aforementioned method embodiments. The specific working process of the pendulum length determination module has been described in detail in step S1, the specific working process of the angle acquisition module has been described in detail in step S2-1, the specific working process of the matrix construction module, the geometric compensation module and the physical compensation module have been described in detail in steps S2-2 and S2-3 respectively, and the specific working process of the comprehensive superposition and output module has been described in detail in steps S2-4 and S2-5. These will not be repeated here.

[0048] Furthermore, the signal transmission and data interaction relationships between the above modules have been described in the steps of the aforementioned method embodiments. The data formats, computational precision, and timing coordination involved in each module are also applicable to the system embodiments, and will not be repeated here. Those skilled in the art can understand the specific implementation of each module without creative effort based on the above method embodiments.

[0049] Compared with existing technologies, this application has significant advantages: This application obtains the total tool swing length after the CNC system is powered on or after a tool change, and acquires the actual B-axis rotation angle in real time during each interpolation cycle. This ensures that coordinate transformation and error compensation are always based on the current actual B-axis posture, realizing the transition from offline post-processing to online real-time compensation. This effectively avoids the problem of compensation lag caused by B-axis angle fluctuations or thermal deformation. This application constructs a homogeneous transformation matrix and simultaneously introduces a non-orthogonal error angle to synchronously correct the non-orthogonal deviation between the B-axis rotation axis and the machine tool coordinate axis during coordinate mapping, overcoming the inherent error caused by ideal geometric conversion. This application further introduces a gravity sagging compensation mechanism, which independently corrects the Z-axis deformation error caused by the gravity of the spindle unit and the tool through a physical compensation vector. This decouples coordinate transformation from physical deformation, overcoming the limitation that relying solely on geometric transformation cannot compensate for nonlinear structural deformation. At the same time, since geometric compensation and physical compensation adopt parallel calculation paths, only one vector superposition is needed to complete the comprehensive compensation of the two types of errors, avoiding complex iterative calculations. This allows the complete compensation calculation to be stably completed within each interpolation cycle, ensuring both compensation accuracy and meeting the stringent real-time requirements of the CNC system. This application significantly improves the tool tip positioning accuracy, machining surface quality, and operational stability of vertical and horizontal milling and turning composite machine tools during attitude conversion through the above-mentioned methods, and can meet the machining requirements of high-requirement parts such as aero-engine impellers and precision molds.

[0050] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0051] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application's patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application.

Claims

1. A method for coordinate transformation processing in a vertical / horizontal milling and turning composite machine tool, characterized in that, The method includes: After the CNC system of the vertical and horizontal milling and turning composite machine tool is powered on or the tool change operation is completed, the total tool swing length is obtained. The total tool swing length refers to the distance between the B-axis rotation center and the tip of the current tool. Within each interpolation cycle, perform the following steps: Based on the total tool swing length, the actual rotation angle of the B-axis, and the preset non-orthogonal error angle, a homogeneous transformation matrix is ​​constructed; the non-orthogonal error angle is used to reflect the angular deviation of the axis of the tool coordinate system relative to the axis of the machine tool coordinate system in the nominal orthogonal direction. The physical compensation vector is determined based on the actual rotation angle of the B-axis. The physical compensation vector is used to correct the Z-axis deformation error caused by the gravity of the spindle unit mounted on the B-axis rotation mechanism and the current tool. The geometric compensation vector is determined based on the homogeneous transformation matrix. The geometric compensation vector is used to correct the deviation of the geometric position of the tool tip caused by the B-axis rotation, the total pendulum length offset and the non-orthogonal error. The physical compensation vector and the geometric compensation vector are superimposed to generate a comprehensive compensation vector. The comprehensive compensation vector is then superimposed onto the original position command of the CNC program to form and send the corrected feed position command to the feed axis driver for execution.

2. The coordinate transformation processing method for vertical and horizontal milling and turning composite machine tools according to claim 1, characterized in that, The total pendulum length of the cutting tool is obtained in the following way: The distance from the B-axis rotation center to the spindle end face is read from the CNC system of the vertical and horizontal turning and milling composite machine tool as the first distance; wherein, the spindle end face refers to the tool mounting reference surface of the spindle unit facing the tool. The second distance is obtained by measuring the current tool length using a laser tool setter; The total pendulum length of the tool is obtained by calculating the sum of the first distance and the second distance.

3. The coordinate transformation processing method for vertical and horizontal milling and turning composite machine tools according to claim 1, characterized in that, The homogeneous transformation matrix is ​​constructed based on the total tool swing length, the actual rotation angle of the B-axis, and the preset non-orthogonal error angle, including: During each interpolation cycle, the pulse signal output by the B-axis circular grating ruler is acquired, and the pulse signal is synchronously converted into the actual rotation angle of the B-axis. A translation matrix describing the spatial positional relationship between the B-axis rotation center and the current tool tip is constructed based on the total pendulum length of the tool; an ideal rotation matrix describing the current tool's oscillation around the B-axis rotation center is constructed based on the actual rotation angle of the B-axis; and a non-orthogonal error correction matrix is ​​constructed based on the non-orthogonal error angle. The homogeneous transformation matrix is ​​obtained by multiplying the translation matrix, the ideal rotation matrix, and the non-orthogonal error correction matrix.

4. The coordinate transformation processing method for vertical and horizontal milling and turning composite machine tools according to claim 1 or 3, characterized in that, The non-orthogonal error angle is a constant that is pre-calibrated and stored in the embedded processor of the CNC system. It is obtained and updated by measuring the perpendicularity error between the B-axis and the Z-axis of the machine tool through a laser interferometer during regular maintenance or precision testing of the machine tool.

5. The coordinate transformation processing method for vertical and horizontal milling and turning composite machine tools according to claim 3, characterized in that, The process of acquiring the pulse signal output from the B-axis circular grating ruler and simultaneously converting the pulse signal into the actual rotation angle of the B-axis includes: The pulse signal is amplified and shaped by a differential signal conversion module to obtain a shaped pulse signal. The shaped pulse signal is transmitted to the embedded processor so that the embedded processor can calculate the actual rotation angle of the B-axis based on the shaped pulse signal.

6. The coordinate transformation processing method for vertical and horizontal milling and turning composite machine tools according to claim 1, characterized in that, The determination of the physical compensation vector based on the actual rotation angle of the B-axis includes: In each interpolation cycle, based on the actual rotation angle of the B-axis, the pre-stored gravity head compensation curve is queried to obtain the corresponding downward Z-axis droop. The physical compensation vector is generated based on the downward droop of Z.

7. The coordinate transformation processing method for vertical and horizontal milling and turning composite machine tools according to claim 6, characterized in that, The gravity head compensation curve is obtained in advance and stored in the CNC system through finite element analysis, experimental calibration or empirical interpolation.

8. The coordinate transformation processing method for vertical and horizontal milling and turning composite machine tools according to claim 1, characterized in that, The determination of the geometric compensation vector based on the homogeneous transformation matrix includes: Obtain the theoretical tool tip position in the tool coordinate system given by the CNC machining program for the current tool tip; The homogeneous transformation matrix is ​​used to perform a homogeneous transformation on the theoretical tool tip position in the tool coordinate system to obtain the actual mapped position of the current tool tip in the machine tool coordinate system; wherein, the tool coordinate system is a coordinate system fixed to the tool and swinging with the B-axis, and the machine tool coordinate system is a reference coordinate system fixed to the machine tool bed of the vertical and horizontal turning and milling composite machine tool; A geometric compensation vector is generated based on the deviation between the theoretical blade tip position and the actual mapped position.

9. The coordinate transformation processing method for vertical and horizontal milling and turning composite machine tools according to claim 1, characterized in that, The corrected feed position command is sent to the feed axis driver through a high-speed communication interface, which is any one of EtherCAT bus, Profinet industrial Ethernet, CANopen protocol interface or Mechatrolink-III bus.

10. A coordinate transformation processing system for a vertical / horizontal milling and turning composite machine tool, characterized in that, The system is used to execute the coordinate transformation processing method for vertical and horizontal milling and turning composite machine tools as described in any one of claims 1 to 9; the system includes: The tool swing length determination module is used to obtain the total tool swing length after the CNC system of the vertical and horizontal milling and turning composite machine tool is powered on or after the tool change operation is completed. The total tool swing length refers to the distance between the B-axis rotation center and the tip of the current tool. The matrix construction module is used to construct a homogeneous transformation matrix in each interpolation cycle based on the total tool swing length, the actual rotation angle of the B-axis, and the preset non-orthogonal error angle; the non-orthogonal error angle is the angular deviation of the axis of the tool coordinate system relative to the axis of the machine tool coordinate system in the nominal orthogonal direction. The physical compensation module is used to determine a physical compensation vector based on the actual rotation angle of the B-axis. The physical compensation vector is used to correct the Z-axis deformation error caused by the gravity of the spindle unit mounted on the B-axis rotation mechanism and the current tool. The geometric compensation module is used to determine the geometric compensation vector based on the homogeneous transformation matrix in each interpolation cycle. The geometric compensation vector is used to correct the geometric position deviation of the tool tip caused by the B-axis rotation, total pendulum length offset and non-orthogonal error. The comprehensive superposition and output module is used to superimpose the physical compensation vector and the geometric compensation vector to generate a comprehensive compensation vector. The comprehensive compensation vector is used to superimpose the original position command of the CNC program to form and send the corrected feed position command to the feed axis driver for execution.