A calculation method and system for the workpiece coordinate system of a CNC machining center

By compiling the workpiece coordinate system calculation method in the CNC machining center, only the origin value of the reference workpiece coordinate system is measured and the processing coordinate values ​​of the other workpiece coordinate systems is calculated, which solves the problems of large measurement errors and high labor intensity in traditional methods, and improves machining accuracy and efficiency.

CN115795220BActive Publication Date: 2025-06-10LUZHOU RONGDA INTELLIGENT TRANSMISSION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211465982.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-22
Publication Date
2025-06-10
Estimated Expiration
2042-11-22

AI Technical Summary

Technical Problem

In traditional CNC machining centers, there is an error in the origin value of the workpiece coordinate system manually measured, resulting in large cumulative measurement errors, affecting processing accuracy, and high time-consuming and labor-intensive.

Method used

By compiling the workpiece coordinate system calculation method, only the origin coordinate value of the reference workpiece coordinate system is manually measured, and the processing coordinate value of the remaining workpiece coordinate systems is calculated using the reference workpiece coordinate system to reduce manual measurement errors and cumulative errors.

Benefits of technology

It reduces the labor intensity and measurement time of personnel, avoids measurement errors, improves the setting accuracy of workpiece coordinate system values, and simplifies the calculation process of processing coordinate values ​​of machining points in other workpiece coordinate systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115795220B_ABST
    Figure CN115795220B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for calculating the workpiece coordinate system of a numerical control machining center. When the horizontal machining machine takes the Y axis as the rotary axis, the method includes: clearing the mechanical coordinate system G53; manually setting the workpiece coordinate system and the corresponding workpiece posture angle, setting a workpiece coordinate system as a reference, and manually measuring the origin coordinate value of the reference workpiece coordinate system GR relative to the mechanical coordinate system G53; taking the reference workpiece coordinate system GR as a reference, calculating the machining coordinate value of the target workpiece coordinate system GS in the set workpiece coordinate system except the reference workpiece coordinate system GR. The present invention solves the problems that manual measurement of the origin is prone to error, the measurement cumulative error is large, the accuracy of the workpiece coordinate value needs to be improved, the labor intensity of personnel is large, and it takes a long time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of numerical control machining, and in particular to a method and system for calculating a workpiece coordinate system of a numerical control machining center. Background Art

[0002] The coordinate system of a CNC machining center is divided into a mechanical coordinate system and multiple workpiece coordinate systems. In the traditional method, the origin value of each workpiece coordinate system needs to be manually measured in the equipment, such as Figure 1 The bold red part shown is the processing content of a process in the machining production line of automobile cylinder head products. The machining center needs to establish three workpiece coordinate systems. The origin values ​​of the three workpiece coordinate systems need to be measured manually in the equipment to obtain the coordinates of the processing content in the workpiece coordinate system before CNC machining is performed. However, there is an error in the measurement of the origin value of each workpiece coordinate system. The resulting measurement of the machining coordinates has a larger cumulative error, which affects the accuracy of CNC machining and is time-consuming and labor-intensive. Summary of the invention

[0003] 1. Technical issues to be resolved

[0004] Based on the above problems, the present invention provides a method and system for calculating the workpiece coordinate system of a CNC machining center, and compiles a method for calculating the workpiece coordinate system to calculate the coordinates of the origin of each workpiece coordinate system, so as to solve the problems that manual measurement of the origin is prone to errors, the cumulative measurement error is large, the accuracy of the workpiece coordinate value needs to be improved, the labor intensity of personnel is high and it is time-consuming.

[0005] (II) Technical solution

[0006] Based on the above technical problems, the present invention provides a method for calculating the workpiece coordinate system of a CNC machining center, when the horizontal machining center uses the Y axis as the rotary axis, comprising the following steps:

[0007] S1. Clear the mechanical coordinate system G53, that is, the origin coordinate values ​​of the X-axis, Y-axis, Z-axis, and B-axis of G53 G53X, G53Y, G53Z, and G53B are all zero;

[0008] S2, manually set the workpiece coordinate system and the corresponding workpiece posture angle, the serial number of each workpiece coordinate system ∈ [54, 59], set a workpiece coordinate system as the reference, and manually measure the origin coordinate value of the reference workpiece coordinate system GR relative to the mechanical coordinate system G53: GRX, GRY, GRZ, GRB;

[0009] S3, taking the reference workpiece coordinate system GR as a reference, calculating the machining coordinate value of the target workpiece coordinate system GS in the set workpiece coordinate system except the reference workpiece coordinate system GR, R≠S, and R, S∈[54,59], including:

[0010] S31. Set the serial number R of the reference workpiece coordinate system, set the serial number S of the target coordinate system according to the selected target coordinate system, and measure the relative coordinates X of the machining point of the target coordinate system GS relative to the reference workpiece coordinate system GR S / R , Y S / R , Z S / R . Given that the workpiece rotation angle B is the tooling attitude angle of the target coordinate system, given that the origin offset values of the X, Y, and Z axes of the target coordinate system are I, J, and K respectively, given the maximum travel value Z of the Z axis m and the starting value X of the X axis 0 ;

[0011] S32. Calculate X1 and Z1 according to the origin coordinate value of the reference workpiece coordinate system GR:

[0012] Distance from the initial reference point to the second reference point: X1 = X 0 -GRX - X S / R ;

[0013] Distance from the initial reference point to the rotation center: Z1 = GRZ - Zm + Z S / R ;

[0014] S33. Calculate the hypotenuse C and the included angle θ according to X1 and Z1:

[0015] C = SQRT(X1 2 + Z1 2 ), θ = ATAN(Z1 / X1);

[0016] S34. Calculate the rotated included angle θ' and the rotated workpiece rotation angle B S :

[0017] θ' = θ - B;

[0018] B S = GRB + B;

[0019] S35. Calculate X1' and Z1' according to the hypotenuse C and the rotated included angle θ':

[0020] X1' = C * COSθ', Z1' = C * SINθ';

[0021] S36. Calculate the relative coordinates of the machining point of the rotated target coordinate system GS relative to the X, Y, and Z axes of the machine coordinate system G53:

[0022] X S = -X1' + X 0 + I;

[0023] Y S = G59Y + Y S / R + J,

[0024] Z S = Z1'+ Zm + K;

[0025] S37. Output the machining coordinate values of the corresponding target workpiece coordinate system GS according to the sequence number S of the input target workpiece coordinate system, that is, the X S 、Y S 、Z S and B S .

[0026] Further, in step S2, the reference workpiece coordinate system GR is the workpiece coordinate system G59 with the fixture in the zero-degree attitude, R = 59, S ∈ [54, 59).

[0027] Further, in step S2, the manually set workpiece coordinate system and the corresponding workpiece attitude angles include: the workpiece coordinate system G54 with the fixture in the 90° attitude, the workpiece coordinate system G55 with the fixture in the 270° attitude or the workpiece coordinate system G56 with the fixture in the 180° attitude and the workpiece coordinate system G59 with the fixture in the zero-degree attitude, S = 54, 55 or 56.

[0028] Further, in step S2, fixture assembly error correction is performed.

[0029] Further, in step S1, it also includes checking the rationality of B, R, and S, including:

[0030] S311. Determine whether B * R * S = 0. If so, alarm; otherwise, go to step S32;

[0031] S312. Take the absolute value of the value of R and round it to the nearest whole number, then assign it to R. Take the absolute value of the value of S and round it to the nearest whole number, then assign it to S;

[0032] S313. Determine whether the processed R is greater than 59. If so, alarm; otherwise, go to step S314;

[0033] S314. Determine whether the processed S is greater than 59. If so, alarm; otherwise, go to step S32.

[0034] Further, in step S34, it also includes checking the rationality of the rotation angle of the rotated workpiece, including:

[0035] S342. Determine whether B S is less than zero. If so, B S = B S + 360. If not, B S remains unchanged;

[0036] S343. Determine whether B S is greater than or equal to 360°. If so, BS = B S -360, if not, then B S remains unchanged.

[0037] Furthermore, when the X-axis is the axis of rotation, replace the quantity on the X-axis in the said calculation method with the corresponding quantity on the Y-axis, and replace the quantity on the Y-axis with the corresponding quantity on the X-axis when the Y-axis is the axis of rotation.

[0038] Furthermore, the said Z m = -850, X 0 = 0.0.

[0039] The present invention also discloses a calculation system for the workpiece coordinate system of a numerically controlled machining center, including:

[0040] At least one processor; and at least one memory communicatively connected to the processor, wherein:

[0041] The memory stores program instructions executable by the processor, and the processor can execute the calculation method for the workpiece coordinate system of the numerically controlled machining center by invoking the program instructions.

[0042] The present invention also discloses a non-transitory computer-readable storage medium, which stores computer instructions that cause the computer to execute the calculation method for the workpiece coordinate system of the numerically controlled machining center.

[0043] (III) Beneficial Effects

[0044] The above technical solution of the present invention has the following advantages:

[0045] The present invention only manually measures the origin coordinate value of the reference workpiece coordinate system, directly calculates the machining coordinate value of the machining point in the remaining workpiece coordinate systems, without the need to manually measure the origin coordinate value of the remaining workpiece coordinate systems, reducing the cumulative measurement error caused by manually measuring the origin of the remaining workpiece coordinate systems, reducing both the labor intensity of personnel and the time consumed by measurement, and also avoiding the measurement error of personnel, improving the setting accuracy of the workpiece coordinate system value; moreover, taking the workpiece coordinate system G59 with the fixture in the 0° posture as the reference workpiece coordinate system simplifies the calculation process of the machining coordinate value of the machining point in the remaining workpiece coordinate systems. Description of the Drawings

[0046] The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings. The drawings are schematic and should not be construed as imposing any limitation on the present invention. In the drawings:

[0047] Figure 1 is a schematic diagram of the machining content of a process in the machining production line of an automotive cylinder head product in the background art of the present invention;

[0048] Figure 2 A schematic flowchart of the method for calculating the workpiece coordinate system of the numerical control machining center according to the embodiment of the present invention;

[0049] Figure 3 A schematic diagram of the principle of the method for calculating the target workpiece coordinate system according to the embodiment of the present invention;

[0050] In the figure: X1: the distance from the initial reference point to the second reference point; Z1: the distance from the initial reference point to the rotation center; θ: the included angle; X1': the distance from the rotated initial reference point to the second reference point; Z1': the distance from the rotated initial reference point to the rotation center; θ': the rotated included angle; C: the hypotenuse. Specific embodiments

[0051] The following will further describe in detail the specific embodiments of the present invention in conjunction with the accompanying drawings and embodiments. The following embodiments are used to illustrate the present invention, but are not used to limit the scope of the present invention.

[0052] A method for calculating the workpiece coordinate system of a numerical control machining center according to an embodiment of the present invention is as Figure 2 shown, and includes the following steps:

[0053] S1. Clear the machine coordinate system G53, that is, the origin coordinate values of the X-axis, Y-axis, Z-axis, and B-axis of G53 are G53X = 0, G53Y = 0, G53Z = 0, and G53B = 0 respectively;

[0054] S2. Manually set the workpiece coordinate system and the corresponding workpiece attitude angle, set a workpiece coordinate system as the reference, and manually measure the origin coordinate values of the reference workpiece coordinate system GR relative to the machine coordinate system G53: GRX, GRY, GRZ, GRB, and perform fixture assembly error correction;

[0055] Manually set the workpiece coordinate system and the corresponding workpiece attitude angles. The interval of the workpiece attitude angles of each workpiece coordinate system is set as needed. The serial numbers of each workpiece coordinate system ∈ [54, 59], not limited to 90 degrees, and the number of workpiece coordinate systems changes accordingly. If the workpiece attitude interval is 60 degrees, the serial numbers of the workpiece coordinate systems are 54, 55, 56, 57, 58, 59, including the workpiece coordinate system G54 with the fixture at a 60° attitude, the workpiece coordinate system G55 with the fixture at a 120° attitude, the workpiece coordinate system G56 with the fixture at a 180° attitude, the workpiece coordinate system G57 with the fixture at a 240° attitude, the workpiece coordinate system G58 with the fixture at a 300° attitude, and the workpiece coordinate system G59 with the fixture at a 0° attitude; if the workpiece attitude interval is 90 degrees, the serial numbers of the workpiece coordinate systems are 54, 55, 56, 59, including the workpiece coordinate system G54 with the fixture at a 90° attitude, the workpiece coordinate system G55 with the fixture at a 270° attitude or the workpiece coordinate system G56 with the fixture at a 180° attitude, and the workpiece coordinate system G59 with the fixture at a 0° attitude.

[0056] In this embodiment, it is described with the workpiece attitude interval of 90 degrees. Moreover, generally, the workpiece coordinate system G59 with the fixture at a 0° attitude is used as the reference workpiece coordinate system, and machining starts from G54. The origin coordinate values of the reference workpiece coordinate system G59 relative to the machine coordinate system G53 are measured, and thus G59X = -165.06, G59Y = -639.985, G59Z = -47.949 - 850.000, G59B = 0.000 are obtained;

[0057] S3. Taking the reference workpiece coordinate system GR as the reference, calculate the machining coordinate values of the target workpiece coordinate system GS in the set workpiece coordinate system except the reference workpiece coordinate system GR, where R ≠ S, and R, S ∈ [54, 59];

[0058] In this embodiment, the workpiece coordinate system G59 is used as the reference workpiece coordinate system, R = 59, S ∈ [54, 59), and it is described with the workpiece attitude interval of 90 degrees, then S = 54, 55 or 56;

[0059] The principle of the calculation method of the target workpiece coordinate system is illustrated through an example as Figure 3 shown: When the workpiece is at a 0° attitude on the machine coordinate system as shown by the left triangle, X1 and Z1 are in the same direction as the X-axis and Z-axis of the machine coordinate system. If it rotates to a 30° attitude, it is as shown by the right dashed triangle. After rotation, X1 and Z1 are not in the same direction as the X-axis and Z-axis of the machine coordinate system, resulting in X1' and Z1', which are inconsistent with X1 and Z1; however, the value of the hypotenuse C of the workpiece remains unchanged before and after rotation. Therefore, the hypotenuse C and the included angle θ can be calculated first, and then the rotated included angle θ', the rotated X1' and Z1' can be calculated through the hypotenuse C and the included angle θ; the specific steps include:

[0060] S31. Set the serial number R of the reference workpiece coordinate system to 59. Set the serial number S of the target coordinate system to 54, 55, or 56 according to the selected target coordinate system. Measure the relative coordinates X of the machining point of the target coordinate system GS relative to the reference workpiece coordinate system G59. S / R , Y S / R , Z S / R . Given the workpiece rotation angle B as the fixture attitude angle of the target coordinate system, given the origin offset values of the X, Y, and Z axes of the target coordinate system as I, J, and K respectively, given the maximum travel value Z of the Z axis m and the starting value X of the X axis 0 ;

[0061] If G59 is used as the reference workpiece coordinate system and G54 is used as the target coordinate system, set R = 59, S = 54, X S / R = 370.30, Y S / R = 0.00, Z S / R = 0.00, B = 90.00, I = 0.0, J = 0.0, K = 0.0, Z m = -850, X 0 = 0.0.

[0062] This step also needs to check the rationality of B, R, and S:

[0063] S311. Judge whether B * R * S = 0. If so, alarm; otherwise, go to step S32;

[0064] S312. Take the absolute value of the value of R, round it, and assign it to R. Take the absolute value of the value of S, round it, and assign it to S;

[0065] S313. Judge whether the processed R is greater than 59. If so, alarm; otherwise, go to step S314;

[0066] S314. Judge whether the processed S is greater than 59. If so, alarm; otherwise, go to step S32;

[0067] By steps S311 - S314, ensure that B, R, and S are all greater than 0, and both R and S are less than or equal to 59. After ensuring the rationality of B, R, and S, perform subsequent processing.

[0068] S32. Calculate X1 and Z1 according to the origin coordinate values of the reference workpiece coordinate system G59:

[0069] The origin coordinate values of G59 include G59X, G59Y, G59Z, and G59B;

[0070] Calculate the distance from the initial reference point to the second reference point: X1 = X 0 - G59X - X S / R ;

[0071] Calculate the distance from the initial reference point to the rotation center: Z1 = G59Z - Zm + Z S / R ;

[0072] G59X is the relative coordinate of the X-axis of the origin of the reference workpiece coordinate system G59 relative to the machine coordinate system G53, and X S / R is the relative coordinate of the machining point of the target coordinate system relative to the X-axis of the reference workpiece coordinate system G59. By adding them together, the relative coordinate of the machining point of the target coordinate system relative to the X-axis of the machine coordinate system G53 is obtained, and X 0 is the starting value of the X-axis relative to the machine coordinate system G53. Then, it is operated with the starting value X 0 of the workbench to obtain the distance X1 from the initial reference point to the second reference point;

[0073] G59Z is the relative coordinate of the Z-axis of the origin of the reference workpiece coordinate system G59 relative to the machine coordinate system G53, and Z S / R is the relative coordinate of the machining point of the target coordinate system relative to the Z-axis of the reference workpiece coordinate system G59. By adding them together, the relative coordinate of the machining point of the target coordinate system relative to the Z-axis of the machine coordinate system G53 is obtained, and Z m is the maximum travel value of the Z-axis relative to the machine coordinate system G53. Then, it is operated with the maximum travel value Z m of the Z-axis to obtain the distance Z1 from the initial reference point to the rotation center;

[0074] S33. Calculate the hypotenuse C and the included angle θ based on X1 and Z1:

[0075] According to Figure 3 , the hypotenuse C and the included angle θ can be obtained based on X1 and Z1:

[0076] Calculate the hypotenuse distance according to the Pythagorean theorem: C = SQRT(X1 2 + Z1 2 );

[0077] Calculate the included angle in the X and Z axis directions according to trigonometric functions: θ = ATAN(Z1 / X1);

[0078] S34. Calculate the rotated included angle θ' and the rotated workpiece rotation angle B S , and check the rationality of the rotated workpiece rotation angle:

[0079] S341. Calculate the rotated included angle θ' and the rotated workpiece rotation angle B S :

[0080] θ' = θ - B

[0081] The included angle θ in the X and Z axis directions minus the workpiece rotation angle B gives the rotated included angle θ' in the X and Z axis directions.

[0082] B S = G59B + B

[0083] The relative angle of the B-axis of the origin of the reference workpiece coordinate system G59 with respect to the machine coordinate system G53, that is, the initial fixture angle G59B, plus the workpiece rotation angle B to obtain the rotated workpiece rotation angle B S 。

[0084] S342. Judge B S Whether it is less than zero degrees. If so, then B S = B S + 360. If not, then B S remains unchanged;

[0085] S343. Judge B S Whether it is greater than or equal to 360°. If so, then B S = B S - 360. If not, then B S remains unchanged;

[0086] Through steps S342 and S343, ensure that B S is greater than or equal to zero degrees and less than 360°.

[0087] S35. Calculate X1' and Z1' according to the hypotenuse C and the rotated included angle θ':

[0088] Calculate the distance from the rotated initial reference point to the second reference point according to trigonometric functions:

[0089] X1' = C * COSθ'

[0090] Calculate the distance from the rotated initial reference point to the center of rotation according to trigonometric functions:

[0091] Z1' = C * SINθ'

[0092] S36. Calculate the relative coordinates of the machining point of the rotated target coordinate system GS with respect to the X-axis, Y-axis, and Z-axis of the machine coordinate system G53: X S 、Y S 、Z S ;

[0093] X S = -X1' + X 0 + I,

[0094] Obtain the relative coordinate of the X-axis of the machining point through -X1' + X 0 and correct it through the given origin offset value I of the X-axis;

[0095] Y S = G59Y + Y S / R + J,

[0096] Since the horizontal machining center uses the Y-axis as the rotation axis, the Y-axis coordinate of the target station coordinate remains unchanged, and G59Y is the relative coordinate of the Y-axis of the origin of the reference workpiece coordinate system G59 relative to the machine coordinate system G53, Y S / R is the relative coordinate of the Y-axis of the machining point of the target coordinate system relative to the reference workpiece coordinate system G59. Thus, the relative coordinate of the Y-axis of the machining point of the target coordinate system relative to the machine coordinate system G53 is obtained by addition, and is corrected by the given origin offset value J of the Y-axis;

[0097] Z S = Z1'+Zm+K,

[0098] The relative coordinate of the Z-axis of the machining point is obtained by Z1'+Zm, and is corrected by the given origin offset value K of the Z-axis;

[0099] S37. Output the machining coordinate values of the corresponding target workpiece coordinate system GS according to the serial number S of the input target workpiece coordinate system, that is, the X S 、Y S 、Z S and B S .

[0100] The machining coordinate values of the reference workpiece coordinate system GR can be directly obtained, and the machining coordinate values of the target workpiece coordinate system GS are obtained according to the above calculation method, so as to obtain the machining coordinate values of all set workpiece coordinate systems.

[0101] The above embodiment is a horizontal machining center. Therefore, with the Y-axis as the rotation axis, the Y-axis remains basically unchanged, and the values of the X-axis and Z-axis change; when it is a vertical machining center, with the X-axis as the rotation axis, the X-axis remains basically unchanged, and the values of the Y-axis and Z-axis change. Replace the quantities on the X-axis in the above embodiment with the corresponding quantities on the Y-axis, and replace the quantities on the Y-axis with the corresponding quantities on the X-axis, and the calculation can be carried out similarly.

[0102] Finally, it should be noted that the above calculation method can be converted into software program instructions, which can be implemented by running a computing system including a processor and a memory, or by computer instructions stored in a non-transitory computer-readable storage medium. The integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above software functional unit is stored in a storage medium, including several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute some steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs that can store program codes.

[0103] In summary, through the above method and system for calculating the workpiece coordinate system of a numerical control machining center, the following advantages are achieved:

[0104] The present invention only manually measures the origin coordinate value of the reference workpiece coordinate system, directly calculates the machining coordinate value of the machining point in the remaining workpiece coordinate systems, without the need to manually measure the origin coordinate values of the remaining workpiece coordinate systems, reducing the cumulative measurement error caused by manually measuring the origin of the remaining workpiece coordinate systems, reducing both the labor intensity of personnel and the time consumed by measurement, and also avoiding the measurement error of personnel, improving the setting accuracy of the workpiece coordinate system value; moreover, taking the workpiece coordinate system G59 with the tooling in the 0° attitude as the reference workpiece coordinate system simplifies the calculation process of the machining coordinate value of the machining point in the remaining workpiece coordinate systems.

[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the embodiments of the present invention are described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims

1. A method for calculating the workpiece coordinate system of a CNC machining center, characterized in that, when the horizontal machining machine uses the Y-axis as the rotation axis, it includes the following steps: S1. Clear the mechanical coordinate system G53, that is, the origin coordinate values G53X, G53Y, G53Z, and G53B of the X-axis, Y-axis, Z-axis, and B-axis of G53 are all zero; S2. Manually set the workpiece coordinate system and the corresponding workpiece attitude angles. The serial numbers of each workpiece coordinate system ∈ [54, 59]. Set one workpiece coordinate system as the reference, and manually measure the origin coordinate values of the reference workpiece coordinate system GR relative to the mechanical coordinate system G53: GRX, GRY, GRZ, GRB; S3. Based on the reference workpiece coordinate system GR, calculate the machining coordinate values of the target workpiece coordinate system GS in the set workpiece coordinate system except the reference workpiece coordinate system GR, where R ≠ S, and R, S ∈ [54, 59], including: S31, set the serial number R of the reference workpiece coordinate system, set the serial number S of the target coordinate system according to the selected target coordinate system, and measure the relative coordinate X of the processing point in the target coordinate system GS relative to the reference workpiece coordinate system GR. S / R , Y S / R , Z S / R , given the workpiece rotation angle B as the tooling posture angle of the target coordinate system, given the origin offset values ​​of the X, Y, and Z axes of the target coordinate system as I, J, and K respectively, given the maximum travel value Z of the Z axis m and the starting value of the X axis X 0 ; S32. Calculate X1 and Z1 according to the origin coordinate values of the reference workpiece coordinate system GR: Distance from the initial reference point to the second reference point: X1 = X 0 -GRX-X S / R ; Distance from the initial reference point to the rotation center: Z1 = GRZ - Zm + Z S / R ; S33. Calculate the hypotenuse C and the included angle θ based on X1 and Z1: C = SQRT(X1 2 + Z1 2 ), θ = ATAN(Z1 / X1); S34. Calculate the rotated included angle θ' and the rotated workpiece rotation angle B S : θ' = θ - B, B S = GRB + B; S35. Calculate X1' and Z1' according to the hypotenuse C and the rotated included angle θ': X1' = C * COSθ', Z1' = C * SINθ'; S36. Calculate the relative coordinates of the machining point of the rotated target coordinate system GS relative to the X-axis, Y-axis, and Z-axis of the mechanical coordinate system G53: X S =-X1'+X 0 +I; Y S = G59Y + Y S / R + J, Z S = Z1'+ Zm + K; S37. Output the machining coordinate values of the corresponding target workpiece coordinate system GS according to the serial number S of the input target workpiece coordinate system, that is, the X S , Y S , Z S , and B S .

2. The method for calculating the workpiece coordinate system of a CNC machining center according to claim 1, characterized in that, in step S2, the reference workpiece coordinate system GR is the workpiece coordinate system G59 with the fixture in the zero-degree attitude, R = 59, and S ∈ [54, 59).

3. The method for calculating the workpiece coordinate system of a CNC machining center according to claim 2, characterized in that, in step S2, the manual setting of the workpiece coordinate system and the corresponding workpiece attitude angles includes: the workpiece coordinate system G54 with the fixture in the 90° attitude, the workpiece coordinate system G55 with the fixture in the 270° attitude or the workpiece coordinate system G56 with the fixture in the 180° attitude and the workpiece coordinate system G59 with the fixture in the zero-degree attitude, S = 54, 55 or 56.

4. The method for calculating the workpiece coordinate system of a CNC machining center according to claim 1, characterized in that, in step S2, the assembly error correction of the fixture is performed.

5. The method for calculating the workpiece coordinate system of a CNC machining center according to claim 1, characterized in that, in step S1, it also includes checking the rationality of B, R, and S, including: S311. Judge whether B * R * S = 0. If so, alarm, otherwise enter step S32; S312. Take the absolute value of the value of R, round it off, and assign it to R. Take the absolute value of the value of S, round it off, and assign it to S; S313. Judge whether the processed R is greater than 59. If so, alarm, otherwise, enter step S314; S314. Judge whether the processed S is greater than 59. If so, alarm, otherwise enter step S32.

6. The method for calculating the workpiece coordinate system of a CNC machining center according to claim 1, characterized in that, in step S34, it also includes checking the rationality of the rotated workpiece rotation angle, including: S342. Determine B S Whether it is less than zero degrees. If so, then B S = B S + 360. If not, then B S remains unchanged; S343, Determine B S Whether it is greater than or equal to 360°. If so, then B S = B S - 360. If not, then B S Remains unchanged.

7. The calculation method of the workpiece coordinate system of a numerically controlled machining center according to claim 1, characterized in that, when the X-axis is used as the rotation axis, the quantities on the X-axis in the calculation method when the Y-axis is used as the rotation axis are replaced with the corresponding quantities on the Y-axis, and the quantities on the Y-axis are replaced with the corresponding quantities on the X-axis.

8. The calculation method of the workpiece coordinate system of a numerically controlled machining center according to claim 1, characterized in that, The said Z m = -850, X 0 = 0.

0.

9. A calculation system for the workpiece coordinate system of a numerically controlled machining center, characterized in that, comprising: at least one processor; and at least one memory communicatively connected to the processor, wherein: the memory stores program instructions executable by the processor, and the processor can execute the calculation method of the workpiece coordinate system of the numerically controlled machining center according to any one of claims 1 to 8 by invoking the program instructions.

10. A non-transitory computer-readable storage medium, characterized in that, the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the calculation method of the workpiece coordinate system of the numerically controlled machining center according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method for configuring alternative and dynamic drive of Z-direction main shafts of numerically-controlled machine tool with multiple Z-direction shafts and system thereof

    CN102922369A

  • Numerical control device and numerical control method

    CN109511273A