On-machine measurement path NC generation method based on polar coordinates and rectangular coordinates

By using a measurement path generation method that combines polar and rectangular coordinates on machine tools, the problems of low efficiency and limited range in traditional measurement techniques are solved, and efficient multi-axis machine tool measurement is achieved.

CN121879271APending Publication Date: 2026-04-17XIAN JINGDIAO PRECISION MECHANICAL ENG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
XIAN JINGDIAO PRECISION MECHANICAL ENG CO LTD
Filing Date
2024-10-17
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Traditional on-machine measurement techniques suffer from low measurement efficiency or limited measurement range when using individual rectangular or polar coordinates on multi-axis machine tools.

Method used

A measurement path generation method that uses a combination of polar and rectangular coordinates is adopted. The detection path segment of the measurement point is controlled by rectangular coordinates, and the movement path segment between the measurement points is controlled by polar coordinates, thereby reducing the total travel of the machine tool spindle.

Benefits of technology

It improves measurement efficiency, solves the problem of measurement being impossible due to the small travel of the machine tool's linear axis, and removes the limitation on the detection direction of polar coordinate measurement points.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121879271A_ABST
    Figure CN121879271A_ABST
Patent Text Reader

Abstract

The invention discloses an on-machine measurement path NC generation method based on polar coordinates and rectangular coordinates. The on-machine measurement path NC generation method comprises the following steps: step 1, generating an initial positioning path section NC in a rectangular coordinate mode of a workpiece coordinate system; step 2, generating a cutting path section NC in a rectangular coordinate mode of a workpiece coordinate system; step 3, generating a detection path section NC of a first measurement point in a rectangular coordinate mode of the local coordinate system; step 4, adding measurement point data conversion NC; step 5, generating a moving path section NC from the first measuring point to the second measuring point in a polar coordinate mode of the workpiece coordinate system; step 6, sequentially generating a detection path section, a moving path section and a measurement point data conversion NC of a subsequent measurement point; and step 7, generating a cutter lifting path section NC in a rectangular coordinate mode of the workpiece coordinate system. According to the invention, an on-machine measurement path is output in a polar coordinate and rectangular coordinate hybrid control mode, the measurement efficiency is improved, and the problem of overtravel in measurement of part of workpieces is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of in-machine measurement technology for multi-axis linkage machine tools, specifically a method for generating in-machine measurement paths (NC) based on polar coordinates and rectangular coordinates. Background Technology

[0002] In-machine measurement uses machine tools as a carrier to collect measurement data of the workpiece in real time during the workpiece processing using corresponding software and hardware measurement tools, so as to realize real-time in-machine control of product quality and make the production process smoother.

[0003] Traditional in-machine measurement techniques, when used on multi-axis machine tools, employ either Cartesian coordinates or polar coordinates for measurement path control. When using Cartesian coordinates alone, the machine spindle moves in both the X and Y directions, resulting in a large range of motion, low measurement efficiency, and the measurement travel is limited by the travel of the two linear axes of the machine tool, meaning some workpieces may overtravel in one direction and become unmeasurable. Conversely, using polar coordinates alone requires restricting the measurement point's detection direction to the horizontal, limiting the application scope of in-machine measurement. Summary of the Invention

[0004] The purpose of this invention is to address the problems in the prior art by providing an in-machine measurement path generation method based on polar and rectangular coordinates. The measurement path is divided into two parts: the detection path segment of the measurement point is controlled using rectangular coordinates, thus the detection direction of the measurement point is not limited by polar coordinates; while the movement path segment between different measurement points is controlled using polar coordinates. This ensures that the machine tool spindle moves only on one linear axis during the movement path segment, reducing the total travel of the spindle measurement movement and improving measurement efficiency. It also solves the problem that when using rectangular coordinates alone, measurement is impossible due to the small travel of the other linear axis of the machine tool.

[0005] The technical solution adopted by this invention to solve its technical problem is: A method for generating on-machine measurement paths based on polar and rectangular coordinates includes the following steps: Step 1): Generate the initial positioning path segment NC in the workpiece coordinate system's Cartesian coordinate mode; Step 2): Generate the toolpath segment NC in the workpiece coordinate system's Cartesian coordinate mode; Step 3): Generate the detection path segment NC for the first measurement point in the local coordinate system rectangular coordinate mode; Step 4): Add NC conversion for measurement point data; Step 5): Generate the movement path segment NC from the first measurement point to the second measurement point in the polar coordinate mode of the workpiece coordinate system; Step 6): Sequentially generate the detection path segment, movement path segment, and measurement point data conversion NC for subsequent measurement points; Step 7): Generate the tool lifting path segment NC in the workpiece coordinate system Cartesian coordinate mode.

[0006] The present invention also has the following additional technical features: As a further specific optimization of the technical solution of the present invention: in step 1), the initial positioning point is calculated in the rectangular coordinate mode of the workpiece coordinate system according to the software settings. Coordinates, and based on the initial positioning point The coordinate calculation is used to determine the initial positioning angle of the rotation axis and generate the corresponding initial positioning path segment NC.

[0007] As a further specific optimization of the technical solution of the present invention: in step 1), the workpiece coordinate system is the coordinate system referenced when writing the workpiece NC.

[0008] As a further specific optimization of the technical solution of the present invention: in step 2), the starting point of the tool entry is calculated in the rectangular coordinate mode of the workpiece coordinate system. and the detection starting position of the first measurement point The coordinates of the path points between them are used to generate the corresponding cutting path segment NC.

[0009] As a further specific optimization of the technical solution of the present invention: in step 3), the detection starting position of the first measurement point is calculated in the local coordinate system rectangular coordinate mode of the first measurement point. and the location of the detection contact point Coordinates are used to generate the corresponding probe path segment NC.

[0010] As a further specific optimization of the technical solution of the present invention: in step 3), the local coordinate system is a coordinate system created before generating the detection path segment NC based on the current measurement point detection contact point position, detection direction and tool axis direction.

[0011] As a further specific optimization of the technical solution of the present invention: in step 4), after the first measurement point detection path segment NC, a measurement point data conversion NC is added to convert the measurement point data from the local coordinate system to the path workpiece coordinate system.

[0012] As a further specific optimization of the technical solution of the present invention: in step 4), the specific coordinate transformation process of the data conversion NC is as follows:

[0013] in This represents the orientation of the coordinate axes in the local coordinate system within the workpiece coordinate system. This represents the origin of the local coordinate system in the workpiece coordinate system.

[0014] As a further specific optimization of the technical solution of the present invention: in step 5), the detection starting position of the first measurement point is calculated in the polar coordinate mode of the workpiece coordinate system. and the detection starting position of the second measurement point The coordinates of the path points between them are used to generate the corresponding movement path segment NC.

[0015] As a further specific optimization of the technical solution of the present invention: in step 6), steps 3), 4), and 5) are repeated to generate the first... Measurement points to NC (Non-Computer-Aided) conversion of detection path segments, movement path segments, and measurement point data between measurement points.

[0016] As a further specific optimization of the technical solution of the present invention: in step 7), the detection starting position of the last measurement point is calculated in the rectangular coordinate mode of the workpiece coordinate system. and the end of raising the knife The coordinates of the path points between them are used to generate the corresponding lifting path segment NC.

[0017] Compared with the prior art, the advantages of this invention are: Advantage 1: The measurement method provided by this invention allows the machine tool spindle to move only on one linear axis during measurement movement, which can reduce the total travel of the spindle measurement movement and improve measurement efficiency.

[0018] Advantage 2: The measurement method provided by this invention can solve the problem that measurement is impossible when using rectangular coordinates alone because the travel of one of the machine tool's linear axes is small.

[0019] Advantage 3: The measurement method provided by this invention can solve the problem of limited detection direction of measurement points when using polar coordinates alone.

[0020] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is a flowchart of the in-machine measurement element detection path generation method using a hybrid control of polar and rectangular coordinates according to the present invention. Figure 2This is a schematic diagram of the initial positioning angle of the rotating shaft of the present invention; Figure 3 This is a schematic diagram of one detection path of the present invention; Figure 4 This is a schematic diagram of a measurement point detection path segment according to the present invention. Detailed Implementation

[0023] Exemplary embodiments of the present invention will now be described in more detail with reference to the accompanying drawings. These embodiments are intended to provide a more thorough understanding of the invention and to fully convey the scope of the invention to those skilled in the art. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the invention is not limited to the embodiments set forth herein.

[0024] A method for generating on-machine measurement paths based on polar and rectangular coordinates includes the following steps: Step 1): Generate the initial positioning path segment NC in the workpiece coordinate system's Cartesian coordinate mode; Step 2): Generate the toolpath segment NC in the workpiece coordinate system's Cartesian coordinate mode; Step 3): Generate the detection path segment NC for the first measurement point in the workpiece coordinate system's rectangular coordinate mode; Step 4): Add NC conversion for measurement point data; Step 5): Generate the movement path segment NC from the first measurement point to the second measurement point in the polar coordinate mode of the workpiece coordinate system; Step 6): Sequentially generate the detection path segment, movement path segment, and measurement point data conversion NC for subsequent measurement points; Step 7): Generate the tool lifting path segment NC in the workpiece coordinate system Cartesian coordinate mode. Example

[0025] A method for generating on-machine measurement paths based on polar and rectangular coordinates includes the following steps: Step 1): See Figure 2 and Figure 3 Perform initial positioning according to the linear and rotational axis settings in the software (in this example, the linear axis is set to the X-axis and the rotational axis is set to the C-axis); enable the G54 workpiece coordinate system, and first set the rotational axis C-axis angle to... Then move the XY coordinates to Finally, move the Z coordinate to ; in: The starting point for tool entry in the workpiece coordinate system in Cartesian coordinate mode The angle between the projection of the line connecting the origin of the coordinate system onto the XOY plane and the X-axis is positive when counterclockwise and negative when clockwise. Starting point for the cut XY coordinates; Starting point for the cut The Z-coordinate.

[0026] Step 2) See Figure 3 In the G54 workpiece coordinate system Cartesian coordinate mode, move the Z coordinate to the detection starting position of the first measurement point. Place.

[0027] Step 3): See Figure 4 A local coordinate system is established using the G68.2 command, with the detection starting position of the first measurement point. and the location of the detection contact point The coordinates in the local coordinate system Cartesian coordinate mode are used as input parameters. The CNC system's detection command is called to generate the corresponding detection path segment NC. Finally, the local coordinate system is closed using the G69 command.

[0028] The methods for calculating the origin and coordinate axis directions of the local coordinate system are as follows: Origin: The location of the probe contact point between the origin of the local coordinate system and the first measurement point. coincide; Z-axis: The Z-axis direction of the local coordinate system is consistent with the path tool axis direction; X-axis: The cross product of the detection direction vector of the measurement point and the Z-axis vector gives the vector X'. The cross product of vector X' and the Z-axis vector gives the X-axis direction vector. Y-axis: The cross product of the Z-axis direction vector and the X-axis direction vector yields the Y-axis direction vector.

[0029] Step 4): After the detection path segment NC of the first measurement point, add a measurement point data conversion segment NC to convert the measurement point data to the workpiece coordinate system. (See the workpiece coordinate system section for details.) Figure 3 .

[0030] The specific coordinate transformation process for NC data conversion is as follows: ; In the formula The rotation transformation matrix is ​​derived from the ZYZ axis direction vectors of the workpiece coordinate system. It is formed by the dot product of the direction vectors of the ZYZ axes in the local coordinate system, and the specific expression is: ; In the formula The translation vector is composed of the coordinates of the origin of the local coordinate system in the workpiece coordinate system, and its specific expression is as follows: ; Step 5): See Figure 3 Use the G12.1 command to enable polar coordinate mode, and use the G1, G2, or G3 commands to sequentially set the starting position of the first measurement point. and the detection starting position of the second measurement point Connect the path nodes between them, and use G13.1 to turn off polar coordinate mode at the end.

[0031] Step 6): See Figure 3 Repeat steps 3), 4), and 5) to generate the first... Measurement points to NC (Non-Computer-Aided) conversion of detection path segments, movement path segments, and measurement point data between measurement points.

[0032] Step 7): Finally, move the Z coordinate in the G54 workpiece coordinate system to the tool lifting endpoint. Complete the measurement path NC.

[0033] The in-machine measurement path generation method based on polar and rectangular coordinates provided by this invention enables the machine tool spindle to move in only one direction during probe movement, reducing the total travel of the spindle measurement movement and improving measurement efficiency. It also solves the problems of being unable to measure using only rectangular coordinates due to the small travel of one of the machine tool's linear axes, and the limitations on the probe direction of the measurement point when using only polar coordinates.

[0034] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention have been clearly and completely described above with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0035] Therefore, the above detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.

Claims

1. A polar and rectangular coordinate-based in-process measurement path NC generation method characterized by: It includes the following steps: Step 1): Generate the initial positioning path segment NC in the workpiece coordinate system's Cartesian coordinate mode; Step 2): Generate the toolpath segment NC in the workpiece coordinate system's Cartesian coordinate mode; Step 3): Generate the detection path segment NC for the first measurement point in the local coordinate system rectangular coordinate mode; Step 4): Add NC conversion for measurement point data; Step 5): Generate the movement path segment NC from the first measurement point to the second measurement point in the polar coordinate mode of the workpiece coordinate system; Step 6): Sequentially generate the detection path segment, movement path segment, and measurement point data conversion NC for subsequent measurement points; Step 7): Generate the tool lifting path segment NC in the workpiece coordinate system Cartesian coordinate mode.

2. The method for generating on-machine measurement paths (NC) based on polar and rectangular coordinates according to claim 1, characterized in that: In Step 1), the initial positioning point is calculated in the Cartesian coordinate mode of the workpiece coordinate system according to the software settings Coordinates, and the corresponding initial positioning path segment NC is generated.

3. The method for generating in-machine measurement paths (NC) based on polar and rectangular coordinates according to claim 1, characterized in that: In step 2), the lower knife starting point is calculated in the workpiece coordinate system rectangular coordinate mode and the detection starting position of the first measuring point coordinates, and the corresponding lower knife path segment NC is generated.

4. The method for generating in-machine measurement paths (NC) based on polar and rectangular coordinates according to claim 1, characterized in that: In step 3), the detection start position of the first measurement point is calculated in the local coordinate system rectangular coordinate mode of the first measurement point and the detection contact point position coordinates, a corresponding detection path segment NC is generated.

5. The method for generating on-machine measurement paths (NC) based on polar and rectangular coordinates according to claim 1, characterized in that: In step 4), after the first measurement point detection path segment NC, a measurement point data conversion NC is added to convert the measurement point data from the local coordinate system to the path workpiece coordinate system.

6. The method for generating in-machine measurement paths (NC) based on polar and rectangular coordinates according to claim 1, characterized in that: In step 5), the detection starting position of the first measurement point is calculated in the polar coordinate mode of the workpiece coordinate system. and the detection starting position of the second measurement point The coordinates of the path points between them are used to generate the corresponding movement path segment NC.

7. The method for generating in-machine measurement paths (NC) based on polar and rectangular coordinates according to claim 1, characterized in that: In step 6), repeat steps 3), 4), and 5) to generate the first... Measurement points to NC (Non-Computer-Aided) conversion of detection path segments, movement path segments, and measurement point data between measurement points.

8. The method for generating in-machine measurement paths (NC) based on polar and rectangular coordinates according to claim 1, characterized in that: In step 7), the detection start position of the last measurement point is calculated in the rectangular coordinate mode of the workpiece coordinate system. and the end of raising the knife The coordinates of the path points between them are used to generate the corresponding lifting path segment NC.