Spatial error compensation method for rotary axis of five-axis machine tool
By smoothing discrete compensation errors through interpolation, the error compensation steps of five-axis machine tools are simplified, solving the problems of long measurement time and expensive equipment in existing technologies, and achieving high-precision and low-cost error compensation.
Patent Information
- Application Number
- CN202410951251.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-07-16
AI Technical Summary
Existing spatial error compensation methods for five-axis machine tools are time-consuming and expensive, making them difficult to apply widely to various types of five-axis machine tools.
Interpolation is used to smooth discrete compensation errors, simplifying the error compensation process. This method is applicable to various types of five-axis machine tools.
It improves the accuracy of machine tool error compensation, reduces implementation costs, and is easy to apply in various five-axis machine tools.
Smart Images

Figure CN118478257B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of numerically controlled machine tools, and in particular relates to a method for compensating the spatial error of a rotating axis of a five-axis machine tool. Background Art
[0002] Improving the machining accuracy of CNC machine tools is a key factor in ensuring the accuracy of machined parts. The geometric errors caused by factors such as manufacturing, assembly and wear of machine tool parts account for 20% to 30% of the total error of machine tools, which seriously restricts the accuracy of machine tools. Spatial error compensation, as a high-efficiency and low-cost technical method, plays an important role in improving the accuracy of machine tools.
[0003] Compared with traditional pitch error compensation, spatial error compensation improves the accuracy of machine tools by compensating for the linear error and angular error of each point in the machine tool motion space, which can greatly improve the machining accuracy of machine tools. Since five-axis machine tools have two additional rotation axes, the spatial error compensation is more complicated than that of three-axis machine tools. At present, most machine tool manufacturers mainly measure the 43 errors of five-axis machine tools, including 21 linear axis errors and 22 rotation axis errors, and solve the errors of three linear axes and two rotation axes through error modeling, and compensate them to the corresponding X, Y, and Z axes. Although this method has high compensation accuracy, it takes a long time to measure, and the measuring equipment is very expensive. A corresponding error model needs to be established for each type of machine tool. The technical difficulty is high and it is difficult to implement. Summary of the invention
[0004] The object of the present invention is to provide a method for compensating the spatial error of a rotating axis of a five-axis machine tool, which smoothes the discrete compensation error by interpolation to improve the compensation accuracy of the machine tool error.
[0005] In order to achieve the above object, a specific embodiment of the present invention provides a method for compensating the spatial error of a rotating axis of a five-axis machine tool, comprising the following steps:
[0006] Step 1: Place a standard ball on the machine tool workbench;
[0007] Step 2: The first rotation axis of the machine tool rotates by a first angle a;
[0008] Step 3: The second rotation axis of the machine tool rotates multiple times according to the second angle c. After each rotation of the second rotation axis, the actual mechanical coordinates of the center of the standard ball are detected, the theoretical mechanical coordinates of the center of the ball are calculated, and the actual mechanical coordinates of the center of the standard ball are calculated according to the second rotation axis. Calculate the compensation error, where E AC To compensate for the error, is the actual mechanical coordinate of the center of the standard ball, is the theoretical mechanical coordinate of the center of the standard ball, A is the position of the first rotation axis, and C is the position of the second rotation axis;
[0009] Step 4, repeating steps 2 and 3 until the first rotating axis completes a preset number of rotations;
[0010] Step 5: When the machine tool is in working state, when the angle of the first rotating axis is A0 and the angle of the second rotating axis is C0, if A0≠n×a, and C0≠m×c, where n and m are non-negative integers, then according to the first interpolation formula The first interpolation error E1 is calculated, where E 11 The first rotation axis angle is A n The second rotation axis angle is C m The compensation error, E 12 The first rotation axis angle is A n+1 The second rotation axis angle is C m The compensation error, A n <A0<A n+1 , A n =n×a,A n+1 =(n+1)×a,C m <C0<C m+1 , C m =m×c,C m+1 = (m+1) × c;
[0011] According to the second interpolation formula The second interpolation error E2 is calculated, where E 21 The first rotation axis angle is A n The second rotation axis angle is C m+1 The compensation error, E 22 The first rotation axis angle is A n+1 The second rotation axis angle is C m+1 Compensation error of
[0012] According to the third interpolation formula A third interpolation error E3 is obtained by calculation, and the third interpolation error E3 is used to perform error compensation on the current position of the machine tool.
[0013] In one or more embodiments of the present invention, if A0=n×a, and C0≠m×c, then according to the fourth interpolation formula The fourth interpolation error E4 is calculated and used to compensate the error of the current position of the machine tool. 41 The first rotation axis angle is A0 and the second rotation axis angle is C m The compensation error, E 42 The first rotation axis angle is A0 and the second rotation axis angle is C m+1 compensation error.
[0014] In one or more embodiments of the present invention, if A0≠n×a, and C0=m×c, then according to the fifth interpolation formula The fifth interpolation error E5 is calculated and used to compensate the error of the current position of the machine tool. 51 The first rotation axis angle is A n The compensation error of the second rotation axis angle C0, E 52 The first rotation axis angle is A n+1 The compensation error of the second rotation axis angle is C0.
[0015] In one or more embodiments of the present invention, if A0=n×a and C0=m×c, the error compensation of the current position of the machine tool is performed with the compensation error of the first rotation axis angle being A0 and the second rotation axis angle being C0.
[0016] In one or more embodiments of the present invention, in step 3, if the rotation range of the first rotation axis is -90° to 90°, then according to Calculate the compensation error when the first rotation axis is at -90° and 90°, where A A is the angle of the first rotation axis, E A1 The angle of the second rotation axis is A A1 The compensation error, E A2 The angle of the second rotation axis is A A2 Compensation error of
[0017] If A A =90°, then A A1 =90°-a, A A2 =90°-2a;
[0018] If A A =-90°, then A A1 =-90°+a, A A2 =-90°+2a.
[0019] In one or more embodiments of the present invention, in step 3, if the rotation range of the second rotation axis is -90° to 90°, then according to Calculate the compensation error when the second rotation axis is at -90° and 90°, where C C is the angle of the second rotation axis, E C1 The angle of the second rotation axis is C C1 The compensation error, E C2 The angle of the second rotation axis is C C2 Compensation error of
[0020] If C C =90°, then C C1 =90°-c, CC2 =90°-2c;
[0021] If C C =-90°, then C C1 =-90°+c, C C2 =-90°+2c.
[0022] In one or more embodiments of the present invention, in step three, after each rotation of the second rotation axis, the coordinates of at least four points on the surface of the standard sphere are detected, and one or more sphere center coordinates are calculated based on the detected coordinates, and the average value of all sphere center coordinates is used as the actual mechanical coordinates of the center of the standard sphere.
[0023] In one or more embodiments of the present invention, in step three, the coordinates of the vertices of the standard sphere are detected, and a point on the surface of the standard sphere is selected every 90° on a horizontal plane passing through the center of the standard sphere for coordinate detection.
[0024] Compared with the prior art, the five-axis machine tool rotary axis spatial error compensation method of the present invention can improve the compensation accuracy of the machine tool error by smoothing the discrete compensation error through interpolation. Moreover, the method has simple steps, is easy to implement, has low cost, and can be widely used in various types of five-axis machine tools. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 The flowchart of the method for compensating the spatial error of the rotating axis of a five-axis machine tool in one embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] like Figure 1 The figure shows a method for compensating the spatial error of a rotating axis of a five-axis machine tool according to an embodiment of the present invention, which includes steps one to five.
[0029] In step one, a standard ball is placed on the machine tool table.
[0030] In step 2, the first rotation axis of the machine tool rotates by a first angle a.
[0031] In step 3, the second rotation axis of the machine tool rotates multiple times according to the second angle c. After each rotation of the second rotation axis, the actual mechanical coordinates of the center of the standard ball are detected, the theoretical mechanical coordinates of the center of the ball are calculated, and the actual mechanical coordinates of the center of the standard ball are calculated according to the second rotation axis. Calculate the compensation error, where E AC To compensate for the error, is the actual mechanical coordinate of the center of the standard ball, is the theoretical mechanical coordinate of the center of the standard ball, A is the position of the first rotation axis, that is, the angle of the first rotation axis, and C is the position of the second rotation axis, that is, the angle of the second rotation axis.
[0032] In step 3, the actual mechanical coordinates of the center of the standard ball can be calculated according to the spatial four-point center calculation formula. Therefore, after the second rotation axis rotates, at least the coordinates of four points on the surface of the standard ball are detected, which can be detected by a probe. According to the detected coordinates and the spatial four-point center calculation formula (xa) 2 + (yb) 2 + (zc) 2 =r 2 , calculate one or more sphere center coordinates, where (x, y, z) are the sphere center coordinates and (a, b, c) are the coordinates of the standard sphere surface point.
[0033] When multiple sphere center coordinates are obtained, the average value of all sphere center coordinates is calculated and the average value is used as the actual mechanical coordinate of the center of the standard sphere.
[0034] Preferably, when detecting the coordinates of points on the surface of the standard sphere, the coordinates of the vertices of the standard sphere can be detected first, and then a point on the surface of the standard sphere is selected every 90° on the horizontal plane passing through the center of the standard sphere for coordinate detection. A total of five points on the surface of the standard sphere are detected. Any four of the five coordinates can be combined and substituted into the four-point center calculation formula in space to obtain a center coordinate.
[0035] The theoretical mechanical coordinates of the center of the standard ball can be calculated based on the existing RTCP model of the machine tool structure. Taking the AC type double-rotary table machine tool as an example, the theoretical mechanical coordinates of the center of the standard ball on its workbench are calculated according to the following formula.
[0036]
[0037] Among them, P X , P Y , P ZP is the coordinate of the tool tip in the workpiece coordinate system, that is, the programming coordinate. MX , P MY , P MZ is the coordinate of the tool tip in the machine tool coordinate system, P MX0 , P MY0 , P MZ0 is the coordinate of the intersection of the first rotation axis and the second rotation axis in the tool coordinate system, L is the tool length, and A and C are the angles between the two rotation axes.
[0038] Taking the AB double-rotary table machine tool as an example, the theoretical mechanical coordinates of the center of the standard ball on its worktable are calculated according to the following formula.
[0039]
[0040] Among them, P X , P Y , P Z P is the coordinate of the tool tip in the workpiece coordinate system, that is, the programming coordinate. MX , P MY , P MZ is the coordinate of the tool tip in the machine tool coordinate system, P MX0 , P MY0 , P MZ0 is the coordinate of the intersection of the first rotation axis and the second rotation axis in the tool coordinate system, L is the tool length, and A and B are the angles between the two rotation axes.
[0041] Taking the A rotary table-B swing head machine tool as an example, the theoretical mechanical coordinates of the center of the standard ball on its worktable are calculated according to the following formula.
[0042]
[0043] Among them, P X , P Y , P Z P is the coordinate of the tool tip in the workpiece coordinate system, that is, the programming coordinate. MX , P MY , P MZ is the coordinate of the tool tip in the machine tool coordinate system, P MX0 , P MY0 , P MZ0 is the coordinate of the second rotation axis in the workpiece coordinate system, L is the tool length, and A and B are the angles of the two rotation axes. For other types of machine tools, the theoretical mechanical coordinate calculation formula of the center of the standard ball is not repeated here. For details, please refer to the RTCP model in Chapter 4, Section 4.2 of "Design and Implementation of Multi-Process CNC System Interpreter and RTCP Function" for calculation.
[0044] Of course, those skilled in the art can understand that using other publicly available RTCP models or simply derived RTCP models to calculate the theoretical mechanical coordinates of the center of the standard sphere is only a simple replacement of the calculation method, and does not make the essence of the corresponding technical solution deviate from the spirit and scope of the technical solution of the implementation method of the present invention.
[0045] In step 4, steps 2 and 3 are repeated until the first rotating shaft completes a preset number of rotations.
[0046] The preset number of rotations of the first rotation axis can be set according to the rotation range of the first rotation axis and the first angle a. For example, if the rotation range of the first rotation axis is -90° to 90° and the first angle a is 30°, the preset number of rotations of the first rotation axis can be set to 6 times.
[0047] Similarly, the number of rotations of the second rotation axis can be set according to the rotation range of the second rotation axis and the second angle b.
[0048] In addition, it should be noted that in step 3 and step 4, when the rotation range of the first rotation axis or the second rotation axis is -90°~90°, due to the influence of the machine tool structure, the actual mechanical coordinates of the center of the standard ball at the -90° and 90° positions cannot be detected, resulting in the inability to calculate the compensation errors at the -90° and 90° positions. At this time, based on the compensation errors of the two positions adjacent to -90° or 90°, the two compensation errors can be linearly interpolated to obtain the compensation errors when the corresponding rotation axis is at the -90° and 90° positions.
[0049] Specifically, when the rotation range of the first rotation axis is -90° to 90°, Calculate the compensation error when the first rotation axis is at -90° and 90°, where A A is the angle of the first rotation axis, E A1 The angle of the second rotation axis is A A1 The compensation error, E A2 The angle of the second rotation axis is A A2 compensation error.
[0050] If A A =90°, then A A1 =90°-a, A A2 =90°-2a.
[0051] If A A =-90°, then A A1 =-90°+a, A A2 =-90°+2a.
[0052] When the rotation range of the second rotation axis is -90°~90°, according to Calculate the compensation error when the second rotation axis is at -90° and 90°, where C C is the angle of the second rotation axis, E C1 The angle of the second rotation axis is C C1 The compensation error, E C2 The angle of the second rotation axis is C C2 compensation error.
[0053] If C C =90°, then C C1 =90°-c, C C2 =90°-2c.
[0054] If C C =-90°, then C C1 =-90°+c, C C2 =-90°+2c.
[0055]
[0056] After step 4, the obtained compensation errors can be input into the machine tool system, and a table is established with the compensation errors as one column, the first rotation axis angle corresponding to the compensation errors as one column, and the second rotation axis angle corresponding to the compensation errors as one column. Taking the AC type double rotary table machine tool as an example, when the first angle a=30° and the second angle c=30°, the established table is shown in Table 1.
[0057] In step five, when the machine tool is actually working, the machine tool system selects the corresponding compensation error according to the actual angle of each rotating axis and refers to the rotating axis angle in Table 1 to perform linear interpolation on the selected compensation error.
[0058] Specifically, when the first rotating axis rotates to A0 and the second rotating axis rotates to C0, if A0≠n×a and C0≠m×c, where n and m are non-negative integers, it means that the angles of the two rotating axes have no corresponding values in Table 1. At this time, the corresponding multiple compensation errors are selected and linear interpolation is performed on them to compensate for the error of the current position of the machine tool rotating axis.
[0059] Specifically, firstly, the corresponding compensation error is selected in the direction of the first rotation axis and interpolated. Specifically, the first rotation axis angle is selected as A n The second rotation axis angle is C m Compensation error E 11 , the first rotation axis angle is A n+1 The second rotation axis angle is C m Compensation error E 12 , according to the first interpolation formula The first interpolation error E1 is calculated, where A n <A0<A n+1, A n =n×a,A n+1 =(n+1)×a,C m <C0<C m+1 , C m =m×c,C m+1 =(m+1)×c.
[0060] Then select the first rotation axis angle as A n The second rotation axis angle is C m+1 Compensation error E 21 , the first rotation axis angle is A n+1 The second rotation axis angle is C m+1 Compensation error E 22 , according to the second interpolation formula The second interpolation error E2 is calculated.
[0061] Finally, according to the third interpolation formula A third interpolation error E3 is obtained by calculation, and the third interpolation error E3 is used to perform error compensation on the current position of the machine tool.
[0062] Take the AC type double rotary table machine tool, the first angle a=30°, the second angle c=30° as an example, when the first rotation axis (A axis) rotates to 15° (A0=15°), the second rotation axis (C axis) rotates to 45° (C0=45°), first select the compensation error E corresponding to the A axis angle of 0° and the C axis angle of 30° 11 , the compensation error E corresponding to the A-axis angle of 30° and the C-axis angle of 30° 12 , substituting it into the first interpolation formula to obtain the first interpolation error .
[0063] Then select the compensation error E corresponding to the A-axis angle of 0° and the C-axis angle of 60° 21 , the compensation error E corresponding to the A-axis angle of 30° and the C-axis angle of 60° 22 , substituting it into the second interpolation formula to obtain the second interpolation error .
[0064] Finally, substitute the first interpolation error E1 and the second interpolation error E2 into the third interpolation formula to obtain , the third interpolation error E3 is used to compensate the error of the current position of the machine tool.
[0065] If A0=n×a, and C0≠m×c, it means that the current angle of the first rotating axis has a corresponding value in Table 1, while the current angle of the second rotating axis has no corresponding value in Table 1. At this time, select the corresponding two compensation errors and perform linear interpolation on them to compensate for the error of the current position of the machine tool.
[0066] Specifically, the first rotation axis angle is selected as A0 and the second rotation axis angle is selected as C m Compensation error E 41 、The first rotation axis angle is A0 and the second rotation axis angle is C m+1 Compensation error E 42 , according to the fourth interpolation formula A fourth interpolation error E4 is obtained by calculation, and the fourth interpolation error E4 is used to perform error compensation on the current position of the machine tool.
[0067] Take the AC type double rotary table machine tool, the first angle a=30°, the second angle c=30° as an example, when the first rotation axis (A axis) rotates to 30° (A0=30°), the second rotation axis (C axis) rotates to 45° (C0=45°), select the compensation error E corresponding to the A axis angle of 30° and the C axis angle of 30° 41 , the compensation error E corresponding to the A-axis angle of 30° and the C-axis angle of 60° 42 , substituting it into the first interpolation formula to obtain the fourth interpolation error .
[0068] If A0≠n×a, and C0=m×c, it means that the current angle of the first rotating axis has no corresponding value in Table 1, while the current angle of the second rotating axis has a corresponding value in Table 1. At this time, select the corresponding two compensation errors and perform linear interpolation on them to perform error compensation on the current position of the machine tool rotating axis.
[0069] Specifically, the first rotation axis angle is selected as A n The compensation error E of the second rotation axis angle C0 51 , is the first rotation axis angle A n+1 The compensation error E of the second rotation axis angle C0 52 , according to the fifth interpolation formula A fifth interpolation error E5 is calculated and used to perform error compensation on the current position of the machine tool.
[0070] Take the AC type double rotary table machine tool, the first angle a=30°, the second angle c=30° as an example, when the first rotation axis (A axis) rotates to 15° (A0=15°), the second rotation axis (C axis) rotates to 60° (C0=60°), select the compensation error E corresponding to the A axis angle of 0° and the C axis angle of 60° 51 , the compensation error E corresponding to the A-axis angle of 30° and the C-axis angle of 60° 52 , substituting it into the first interpolation formula to obtain the fifth interpolation error .
[0071] If A0=n×a, and C0=m×c, it means that the current angles of the first rotation axis and the second rotation axis have corresponding values in Table 1. At this time, the compensation error with the first rotation axis angle A0 and the second rotation axis angle C0 in Table 1 is selected to perform error compensation on the current position of the machine tool.
[0072] Those skilled in the art can understand that the spatial error compensation method for the rotating axis of a five-axis machine tool in the embodiment of the present invention can be applied to all types of five-axis machine tools. No matter how the structure of the rotating axis of the five-axis machine tool changes, the error of the machine tool can be compensated according to the spatial error compensation method for the rotating axis of the five-axis machine tool in the embodiment of the present invention.
[0073] Of course, the method for compensating the spatial error of the rotating axis of a five-axis machine tool in the embodiment of the present invention can also be applied to a four-axis machine tool and a six-axis machine tool.
[0074] When applied to a four-axis machine tool, it is only necessary to interpolate the compensation error according to the rotation direction of its only single rotation axis.
[0075] When applied to a six-axis machine tool, in addition to interpolating the compensation error according to the rotation direction of the first rotation axis and the second rotation axis, the compensation error also needs to be interpolated according to the rotation direction of the third rotation axis, that is, in step five, the third rotation axis needs to be considered and the compensation error needs to be interpolated in the rotation direction of the third rotation axis.
[0076] Therefore, the above scheme simply reduces or increases the numerical calculation steps, and does not make the essence of the corresponding technical scheme deviate from the spirit and scope of the technical scheme of the implementation mode of the present invention.
[0077] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-restrictive in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
[0078] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each implementation mode may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A method for compensating the spatial error of a rotating axis of a five-axis machine tool, characterized in that: include: Step 1: Place a standard ball on the machine tool workbench; Step 2: The first rotation axis of the machine tool rotates by a first angle a; Step 3: The second rotation axis of the machine tool rotates multiple times according to the second angle c. After each rotation of the second rotation axis, the actual mechanical coordinates of the center of the standard ball are detected, the theoretical mechanical coordinates of the center of the ball are calculated, and the actual mechanical coordinates of the center of the standard ball are calculated according to the second rotation axis. Calculate the compensation error, where E AC To compensate for the error, is the actual mechanical coordinate of the center of the standard ball, is the theoretical mechanical coordinate of the center of the standard ball, A is the position of the first rotation axis, and C is the position of the second rotation axis; Step 4, repeating steps 2 and 3 until the first rotating axis completes a preset number of rotations; Step 5: When the machine tool is in working state, when the angle of the first rotating axis is A0 and the angle of the second rotating axis is C0, if A0≠n×a, and C0≠m×c, where n and m are non-negative integers, then according to the first interpolation formula The first interpolation error E1 is calculated, where E 11 The first rotation axis angle is A n The second rotation axis angle is C m The compensation error, E 12 The first rotation axis angle is A n+1 The second rotation axis angle is C m The compensation error, A n <A0<A n+1 , A n =n×a,A n+1 =(n+1)×a,C m <C0<C m+1 , C m =m×c,C m+1 = (m+1) × c; According to the second interpolation formula The second interpolation error E2 is calculated, where E 21 The first rotation axis angle is A n The second rotation axis angle is C m+1 The compensation error, E 22 The first rotation axis angle is A n+1 The second rotation axis angle is C m+1 Compensation error of According to the third interpolation formula A third interpolation error E3 is obtained by calculation, and the error compensation of the current position of the machine tool is performed with the third interpolation error E3; In step 3, if the rotation range of the first rotation axis is -90° to 90°, then according to Calculate the compensation error when the first rotation axis is at -90° and 90°, where A A is the angle of the first rotation axis, E A1 The angle of the second rotation axis is A A1 The compensation error, E A2 The angle of the second rotation axis is A A2 Compensation error of If A A = 90°, then A A1 = 90° - a, A A2 = 90° - 2a; If A A = -90°, then A A1 = -90° + a, A A2 = -90° + 2a; In step 3, if the rotation range of the second rotation axis is -90° to 90°, then according to Calculate the compensation error when the second rotation axis is at -90° and 90°, where C C is the angle of the second rotation axis, E C1 The angle of the second rotation axis is C C1 The compensation error, E C2 The angle of the second rotation axis is C C2 Compensation error of If C C =90°, then C C1 =90°-c, C C2 =90°-2c; If C C =-90°, then C C1 =-90°+c, C C2 =-90°+2c.
2. The five-axis machine tool rotation axis spatial error compensation method according to claim 1, characterized in that: If A0=n×a, and C0≠m×c, then according to the fourth interpolation formula The fourth interpolation error E4 is calculated and used to compensate the error of the current position of the machine tool. 41 The first rotation axis angle is A0 and the second rotation axis angle is C m The compensation error, E 42 The first rotation axis angle is A0 and the second rotation axis angle is C m+1 compensation error.
3. The five-axis machine tool rotation axis spatial error compensation method according to claim 1, characterized in that: If A0≠n×a, and C0=m×c, then according to the fifth interpolation formula The fifth interpolation error E5 is calculated and used to compensate the error of the current position of the machine tool. 51 The first rotation axis angle is A n The compensation error of the second rotation axis angle C0, E 52 The first rotation axis angle is A n+1 The compensation error of the second rotation axis angle is C0.
4. The five-axis machine tool rotation axis spatial error compensation method according to claim 1, characterized in that: If A0=n×a, and C0=m×c, the error compensation of the current position of the machine tool is performed with the compensation error of the first rotation axis angle A0 and the second rotation axis angle C0.
5. The method for compensating the spatial error of the rotating axis of a five-axis machine tool according to claim 1, characterized in that: In step three, after each rotation of the second rotation axis, the coordinates of at least four points on the surface of the standard sphere are detected, one or more sphere center coordinates are calculated based on the detected coordinates, and the average value of all sphere center coordinates is used as the actual mechanical coordinates of the center of the standard sphere.
6. The method for compensating the spatial error of the rotating axis of a five-axis machine tool according to claim 5, characterized in that: In the step three, the coordinates of the vertices of the standard sphere are detected, and a point on the surface of the standard sphere is selected every 90° on a horizontal plane passing through the center of the standard sphere for coordinate detection.
