Worn grinding wheel posture compensation method for spiral groove grinding process of CNC tool

By calculating the worn grinding wheel profile and using particle swarm algorithm to optimize the grinding wheel posture, the problem of insufficient accuracy caused by grinding wheel wear in CNC tool spiral groove grinding is solved, and high-precision machining effects are achieved.

CN115017453BActive Publication Date: 2024-09-06SOUTHWEST JIAOTONG UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210606760.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2024-09-06
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

In the process of spiral groove grinding of CNC tools, the existing technology fails to effectively consider the wear of the grinding wheel, resulting in grinding accuracy that cannot meet the processing requirements, and the algorithm error gradually increases.

Method used

By establishing a worn grinding wheel profile calculation method, the worn grinding wheel profile is back-calculated, and based on this, the worn grinding wheel grinding pose constraint function is constructed, and the particle swarm algorithm is used to calculate the grinding wheel compensation pose to optimize the grinding process.

Benefits of technology

It effectively solves the problem of insufficient machining accuracy caused by grinding wheel wear. Through the optimization algorithm, the precise compensation of the grinding wheel posture is achieved, meeting the machining accuracy requirements and significantly reducing the error.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115017453B
    Figure CN115017453B
Patent Text Reader

Abstract

The present invention discloses a method for compensating the posture of a worn grinding wheel for a spiral groove grinding process of a numerically controlled tool, specifically: first, the actual profile of the worn grinding wheel is calculated inversely according to the spiral groove profile processed before compensation and the grinding wheel posture before compensation; then, the grinding wheel posture constraint functions are reconstructed based on the actual profile of the worn grinding wheel: the rake angle constraint function, the core thickness constraint function, and the groove width constraint function; finally, a particle swarm algorithm is used to quickly solve the grinding wheel compensation posture. The present invention can realize on-machine calculation and real-time compensation of grinding wheel wear during the spiral groove grinding process of numerically controlled tools, and realize high-efficiency and high-precision processing of spiral grooves of numerically controlled tools.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of spiral groove grinding of numerically controlled tools, and in particular relates to a method for compensating the posture of a worn grinding wheel in a spiral groove grinding process of a numerically controlled tool. Background Art

[0002] As an important structural feature of CNC tools, spiral grooves are widely found in milling cutters, drills, taps and other tools, and play a vital role in tool cutting performance, overall rigidity, chip breaking, and chip removal.

[0003] Karpuschewski et al. used the grinding wheel posture parameters as optimization variables and the spiral groove profile error as the optimization objective function, and used the particle swarm algorithm to solve the grinding wheel posture; Li Guochao et al. proposed a spiral groove grinding process design method based on the optimization of the size and posture combination of the double-bevel grinding wheel. According to the shape of the spiral groove, a specific grinding wheel was selected to establish the spiral groove structural parameter error and the profile error as the optimization objective function, but the calculation accuracy of the spiral groove profile was limited by the discrete step accuracy and it was easy to fail to solve. Jia Kang et al. aimed at the accurate and high-quality grinding of the front face of the spiral groove of the broach, and constructed the grinding process constraint conditions of the rake angle, the arc radius of the groove bottom and other factors to form a grinding wheel posture calculation model and its optimization search method; Liu compensated the grinding wheel wear fillet and used the iterative method to solve the grinding wheel grinding posture; Ren et al. aimed at the grinding process of the 1V1 / 1A1 grinding wheel, established a nonlinear equation group with the rake angle, core thickness, and groove width as the functional relationship of the grinding wheel posture as the elements, and obtained the grinding wheel posture by solving the equation group, but there was a situation where the transcendental equation had no solution. Nguyen et al. simplified the definition of grinding wheel posture parameters and used analytical geometry methods to establish the mapping relationship between spiral groove structure parameters and grinding wheel posture. This method greatly improves the solution efficiency compared with other methods, but ignores the fact that the end points of the grinding wheel contour are prone to blunting and rounding, resulting in algorithm failure.

[0004] During the spiral groove grinding process of the tool, grinding wheel wear is inevitable. The existing research on grinding wheel grinding trajectory algorithm has not taken into account the actual wear of the grinding wheel. It only rounds the edge of the grinding wheel end face, ignoring the analysis of grinding wheel wear during the grinding process. It is necessary to continuously adjust the fillet size and recalculate the grinding wheel grinding posture according to the workers' experience, resulting in increasing errors in the algorithm in practical applications. Therefore, it is of great practical engineering application value to calculate the wear wheel profile and compensate for its grinding posture to meet the machining accuracy requirements. Summary of the invention

[0005] Aiming at the problem that the grinding accuracy is increasingly difficult to meet the processing requirements due to the irregular wear of the grinding wheel during the spiral groove grinding process of the end mill, the present invention provides a worn grinding wheel posture compensation method for the spiral groove grinding process of the numerical control tool. The worn grinding wheel profile is inversely calculated based on the processed spiral groove profile before compensation and the grinding wheel posture before compensation, and then the worn grinding wheel grinding posture constraint function is established, and the worn grinding wheel compensation posture is calculated.

[0006] A method for compensating the posture of a worn grinding wheel in a spiral groove grinding process of a numerically controlled tool according to the present invention comprises the following steps:

[0007] Step 1: Establish grinding motion relationship.

[0008] Establish workpiece coordinate system O W -X W Y W Z W :Coordinate origin O W Located at the center of the end face of the tool bar, coordinate axis Z W Coincident with the tool bar axis, coordinate plane X W Y W Coincident with the end face of the tool bar.

[0009] Establish grinding wheel grinding posture parameters: center distance a x For two coordinates, the origin is at X W Distance on axis; offset a y For two coordinates, the origin is at Y W Distance on the axis; installation angle α, grinding wheel around X W The angle of axis rotation; therefore, the transformation matrix between the grinding wheel coordinate system and the workpiece coordinate system is as follows:

[0010]

[0011] The grinding wheel moves along the Z direction. W The axis moves forward while rotating around Z W The axis rotates by an angle ξ, and the radius of the spiral edge line is defined as R, the spiral angle is β, so the transformation matrix M between the adjoint coordinate system and the workpiece coordinate system about the angle ξ e (ξ) is shown in the following formula:

[0012]

[0013] Where, κ = R / tanβ.

[0014] Step 2: Determine the front grinding wheel for compensation.

[0015] Extract the coordinates Q of n contour points on the radial end face of the spiral groove processed before compensation wi (x Qwi ,yQwi ,z Qwi ), i = 1, 2, 3, ..., n, determine the grinding wheel grinding posture before compensation (a xc ,a yc ,α c ) ; Obtain the tangent vector Q′ of n contour points by cubic spline interpolation method wi (x′ Qwi ,y′ Qwi ,z′ Qwi ).

[0016] Step 3: Calculate the worn grinding wheel profile.

[0017] According to the meshing condition between the spiral groove surface and the rotating surface of the grinding wheel during the spiral groove grinding process, the rotation angle ξ of the meshing point is calculated. ri The equation is:

[0018] (A1+A2ξ)sinξ+(A3+A4ξ)cosξ+A5=0 (3)

[0019] Where: A1 = κcos(α)a y (x′ Qmi -y′ Qmi )-sin(α)y Qmi (x Qmi x′ Qmi -y Qmi y′ Qmi );

[0020] A2=-κ 2 sin(α)x′ Qmi ;

[0021] A3=κcos(α)a x (x′ Qmi +y′ Qmi )-sin(α)x Qmi (x Qmi x′ Qmi +y Qmi y′ Qmi );

[0022] A4=κ 2 sin(α)y′ Qmi ;

[0023] A5=-(x Qmi x′ Qmi +y Qmi y′ Qmi )(a x sin(α)+κcos(α)).

[0024] By solving equation (3), we can get the coordinates Q of the meshing point:ri (x Qri ,y Qri ,z Qri ), and transform it to the grinding wheel coordinate system to obtain the grinding wheel rotation surface equation:

[0025]

[0026] Calculate the distance from all meshing point coordinates to the grinding wheel axis, and obtain the wear grinding wheel profile equation R(h) through the cubic spline interpolation method. The wear grinding wheel profile is rotated once to obtain the wear grinding wheel rotation surface equation, as shown below:

[0027]

[0028] Where h is the variable of the wear grinding wheel profile equation, and ψ is the rotation angle of a point on the rotating surface of the grinding wheel.

[0029] Step 4: Calculate the spiral groove profile formed by the worn grinding wheel.

[0030] The coordinates of the point P of the trajectory of the grinding wheel's rotating surface doing spiral motion in space S (h,ψ,ξ,a x ,a x ,α) is as follows:

[0031]

[0032] The motion trajectory equation of the grinding wheel rotating surface P S The partial derivatives of the grinding wheel variables h and ψ are calculated respectively, and the normal vector of the point on the rotating surface is obtained by cross multiplication. The normal vector N(h, ψ) of the point on the rotating surface of the grinding wheel is calculated at the moment ξ=0, as shown in the following formula:

[0033]

[0034] The motion trajectory equation of the grinding wheel rotating surface P S Find the partial derivative of the motion variable ξ, and calculate the velocity vector V(h,ψ) of the point on the grinding wheel rotation surface at the moment ξ=0, as shown in the following formula:

[0035]

[0036] According to the condition that the normal vector and velocity vector of the point on the contact line are perpendicular to each other (N(h,ψ)×V(h,ψ)=0), equations (7) and (8) are substituted to calculate the rotation angle ψ(h) of the point on the contact line of the grinding wheel, which is simplified as follows:

[0037]

[0038] Where B1 = a xcosα+κsinα, B2=(R(h)R′(h)-h)sinα+a y , B3=(κcosα-a x sinα)R′(h).

[0039] Substitute equation (9) back into the grinding wheel envelope equation (6) to calculate the contact line of the grinding wheel rotating surface, and transform the contact line through motion to obtain the radial section profile equation of the spiral groove p(h, a x ,a y ,α), as shown in the following formula:

[0040]

[0041] In the formula, ξ0=(hcosα-R(h)sin(ψ(h))sinα) / κ.

[0042] Step 5: Establish the wear wheel constraint function.

[0043] (1) The rake angle γ is the angle between vector P1 and vector T1, where the Z of P1×T1 W When the coordinate is positive, the rake angle is positive, and when the reverse rake angle is negative, the functional relationship between the spiral groove rake angle and the grinding wheel posture is f γ As shown below:

[0044]

[0045] In the formula, t r =(0,0,1).

[0046] (2) Core thickness r c Point p2 is the tangent point of the spiral groove profile and the core thickness circle, that is, vector P2·T2=0. The functional relationship between the spiral groove core thickness and the grinding wheel posture is f rc As shown below:

[0047]

[0048] (3) The groove width φ is the angle between the starting point p1 and the end point p3 of the spiral groove. W When the coordinate is positive, the groove width is less than 180°, otherwise the groove width is greater than 180°. The functional relationship between the spiral groove core thickness and the grinding wheel posture is f φ As shown below:

[0049]

[0050] In the formula,

[0051] Step 6: Use the particle swarm algorithm to calculate the compensation posture of the worn grinding wheel.

[0052] The objective function of the grinding wheel posture optimization problem is established as follows:

[0053] min Fit=ω1(f γ -γ) 2 +ω2(f φ -φ) 2 +ω3(f rc -r c ) 2 (14)

[0054] The particle swarm algorithm is used to solve the grinding wheel posture. The grinding wheel posture is regarded as a three-dimensional particle and the grinding wheel posture particle is defined as VecX(a x ,a y ,α); determine the number of particle swarms N, and initialize the particle swarm VecX in the grinding wheel posture search space i (a xi ,a yi ,α i ), and initialize the velocity V of each particle i , i = 1, 2, 3, ..., N; then iterative calculation is performed, and the particle swarm algorithm iteration rule is as follows:

[0055] V i+1 =ω·V i +c1·r1·(pbest i -VecX i )+c2·r2·(gbest-VecX i )

[0056] VecX i+1 =VecX i +V i (15)

[0057] In the formula, ω is the inertia weight, c1 / c2 is the learning factor, r1 / r2 is a random number in [0,1], and pbest i is the individual best, and gbest is the global best.

[0058] The calculation process of particle swarm algorithm is:

[0059] (1) Set the particle swarm algorithm parameters ω, c1 / c2, r1 / r2, particle population size N, maximum number of iterations max_gen and the minimum error allowed for termination of iteration;

[0060] (2) Initialize particle swarm: position and velocity V i and position VecX i ;

[0061] (3) Substitute the initialized particles into Equation (14) to calculate the initial fitness value Fit(VecX i ), mark the initial fitness value of each particle as the individual best pbest i , and mark the best individual best as the global best gbest;

[0062] (4) Update the positions and velocities of the particle swarm according to Equation (15);

[0063] (5) Substitute the updated particles into Equation (14) to update the fitness value. If Fit(VecX i ) < pbest i , then update the individual best pbest i = Fit(VecX i ). If Fit(VecX i ) < gbest, then update the global best gbest = Fit(VecX i );

[0064] (6) If the end condition is met, end the operation; otherwise, return to step (3).

[0065] The closer the value of the objective function is to zero, the more accurate the solution of the above nonlinear equations is.

[0066] The beneficial technical effects of the present invention are as follows:

[0067] Aiming at the insufficient machining accuracy caused by the wear of the grinding wheel during the spiral groove grinding process, the present invention calculates the worn grinding wheel profile by the formed grinding wheel profile calculation method from the spiral groove profile and the grinding wheel pose before compensation; then, based on the worn grinding wheel profile, the functional relationship between the structural parameters of the spiral groove and the worn grinding wheel pose is reconstructed, and the compensation pose of the grinding wheel is solved by an optimization algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 is a schematic diagram of the motion relationship between the grinding wheel and the tool;

[0069] Figure 2 is a schematic diagram of the meshing between the spiral groove surface and the grinding wheel rotating surface;

[0070] Figure 3 is a schematic diagram of the contact between the spiral motion of the grinding wheel rotating surface and the tool;

[0071] Figure 4 is the measured diagram of the radial cross-section profile of the spiral groove machined before compensation;

[0072] Figure 5 is the simulation machining result diagram after compensation;

[0073] Figure 6This is the actual processing result diagram after compensation. DETAILED DESCRIPTION

[0074] The present invention is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0075] The present invention provides a method for compensating the posture of a worn grinding wheel in a spiral groove grinding process of a numerically controlled tool, specifically comprising:

[0076] Step 1: Establish grinding motion relationship.

[0077] like Figure 1 As shown, establish the workpiece coordinate system O W -X W Y W Z W :Coordinate origin O W Located at the center of the end face of the tool bar, coordinate axis Z W Coincident with the tool bar axis, coordinate plane X W Y W Coincident with the end face of the tool bar.

[0078] Establish grinding wheel grinding posture parameters: center distance a x For two coordinates, the origin is at X W Distance on axis; offset a y For two coordinates, the origin is at Y W Distance on the axis; installation angle α, grinding wheel around X W The angle of axis rotation. Therefore, the transformation matrix between the grinding wheel coordinate system and the workpiece coordinate system is as follows:

[0079]

[0080] The spiral groove grinding process can be regarded as the workpiece is fixed, and the grinding wheel moves along the spiral edge line. W The axis moves forward while rotating around Z W The axis rotates by an angle ξ, and the radius of the spiral edge line is defined as R, the spiral angle is β, so the transformation matrix M between the adjoint coordinate system and the workpiece coordinate system about the angle ξ e (ξ) is shown in the following formula:

[0081]

[0082] Where, κ = R / tanβ.

[0083] Step 2: Determine the front grinding wheel for compensation.

[0084] like Figure 2 As shown in (a), the coordinates Q of n contour points on the radial end surface of the spiral groove processed before compensation are extracted. wi (x Qwi,y Qwi ,z Qwi ), i = 1, 2, 3, ..., n, determine the grinding wheel grinding posture before compensation (a xc ,a yc ,α c ) ; Obtain the tangent vector Q′ of n contour points by cubic spline interpolation method wi (x′ Qwi ,y′ Qwi ,z′ Qwi ).

[0085] Step 3: Calculate the worn grinding wheel profile.

[0086] like Figure 2 As shown in (b), according to the meshing condition between the spiral groove surface and the rotating surface of the grinding wheel during the spiral groove grinding process, the rotation angle ξ of the meshing point is established. ri The equation is:

[0087] (A1+A2ξ)sinξ+(A3+A4ξ)cosξ+A5=0 (3)

[0088] Where: A1 = κcos(α)a y (x′ Qmi -y′ Qmi )-sin(α)y Qmi (x Qmi x′ Qmi -y Qmi y′ Qmi );

[0089] A2=-κ 2 sin(α)x′ Qmi ;

[0090] A3=κcos(α)a x (x′ Qmi +y′ Qmi )-sin(α)x Qmi (x Qmi x′ Qmi +y Qmi y′ Qmi );

[0091] A4=κ 2 sin(α)y′ Qmi ;

[0092] A5=-(x Qmi x′ Qmi +y Qmi y′ Qmi )(a x sin(α)+κcos(α)).

[0093] By solving equation (3), we can get the coordinates Q of the meshing point: ri (x Qri ,y Qri ,z Qri ), and transform it to the grinding wheel coordinate system to obtain the grinding wheel rotation surface equation:

[0094]

[0095] Calculate the distances from all meshing point coordinates to the grinding wheel axis, and obtain the worn grinding wheel profile equation R(h) by cubic spline interpolation method, as shown in Figure 2 As shown in (c), the grinding wheel profile is rotated one circle to obtain the equation of the worn grinding wheel rotation surface, as shown below:

[0096]

[0097] Where h is the variable of the wear grinding wheel profile equation, and ψ is the rotation angle of a point on the rotating surface of the grinding wheel.

[0098] Step 4: Calculate the spiral groove profile formed by the worn grinding wheel.

[0099] The coordinates of the point P of the trajectory of the grinding wheel's rotating surface doing spiral motion in space S (h,ψ,ξ,a x ,a x ,α) is as follows:

[0100]

[0101] The motion trajectory equation of the grinding wheel rotating surface P S The partial derivatives of the grinding wheel variables h and ψ are calculated respectively, and the normal vector of the point on the rotating surface is obtained by cross multiplication. The normal vector N(h, ψ) of the point on the rotating surface of the grinding wheel is calculated at the moment ξ=0, as shown in the following formula:

[0102]

[0103] The motion trajectory equation P of the grinding wheel rotating surface S Find the partial derivative of the motion variable ξ, and calculate the velocity vector V(h,ψ) of the point on the grinding wheel rotation surface at the moment ξ=0, as shown in the following formula:

[0104]

[0105] According to the condition that the normal vector and velocity vector of the point on the contact line are perpendicular to each other (N(h,ψ)×V(h,ψ)=0), as follows Figure 3 Substituting equations (7) and (8) into the calculation of the rotation angle ψ(h) of the point on the contact line of the grinding wheel, the simplified equation is as follows:

[0106]

[0107] Where B1 = a x cosα+κsinα, B2=(R(h)R′(h)-h)sinα+a y , B3=(κcosα-a x sinα)R′(h).

[0108] Substitute equation (9) back into the grinding wheel envelope equation (6) to calculate the contact line of the grinding wheel rotating surface, and transform the contact line through motion to obtain the radial section profile equation of the spiral groove p(h,a x ,a y ,α), as shown in the following formula:

[0109]

[0110] In the formula, ξ0=(hcosα-R(h)sin(ψ(h))sinα) / κ.

[0111] Step 5: Establish the wear wheel constraint function.

[0112] (1) The rake angle γ is the angle between vector P1 and vector T1, where the Z of P1×T1 W When the coordinate is positive, the rake angle is positive, and when the reverse rake angle is negative, the functional relationship between the spiral groove rake angle and the grinding wheel posture is f γ As shown below:

[0113]

[0114] In the formula, t r =(0,0,1).

[0115] (2) Core thickness r c Point p2 is the tangent point of the spiral groove profile and the core thickness circle, that is, vector P2·T2=0. The core thickness has a negative core thickness, which needs to be discarded. The functional relationship between the spiral groove core thickness and the grinding wheel posture is f rc As shown below:

[0116]

[0117] (3) The groove width φ is the angle between the starting point p1 and the end point p3 of the spiral groove. W When the coordinate is positive, the groove width is less than 180°, otherwise the groove width is greater than 180°. The functional relationship between the spiral groove core thickness and the grinding wheel posture is f φ As shown below:

[0118]

[0119] In the formula,

[0120] Step 6: Use the particle swarm algorithm to calculate the compensation posture of the worn grinding wheel.

[0121] The objective function of the grinding wheel posture optimization problem is established as follows:

[0122] min Fit=ω1(f γ -γ) 2 +ω2(f φ -φ) 2 +ω3(f rc -r c ) 2 (14)

[0123] The particle swarm algorithm is used to solve the grinding wheel posture. The grinding wheel posture is regarded as a three-dimensional particle and the grinding wheel posture particle is defined as VecX(a x ,a y ,α); determine the number of particle swarms N, and initialize the particle swarm VecX in the grinding wheel posture search space i (a xi ,a yi ,α i ), and initialize the velocity V of each particle i , i = 1, 2, 3, ..., N; then iterative calculation is performed, and the particle swarm algorithm iteration rule is as follows:

[0124] V i+1 =ω·V i +c1·r1·(pbest i -VecX i )+c2·r2·(gbest-VecX i )

[0125] VecX i+1 =VecX i +V i (15)

[0126] In the formula, ω is the inertia weight, c1 / c2 is the learning factor, r1 / r2 is a random number in [0,1], and pbest i is the individual best, and gbest is the global best.

[0127] The calculation process of particle swarm algorithm is:

[0128] (1) Set the particle swarm algorithm parameters ω, c1 / c2, r1 / r2, particle population size N, maximum number of iterations max_gen and the minimum error allowed for termination of iteration;

[0129] (2) Initialize particle swarm: position and velocity V iand position VecX i ;

[0130] (3) Substitute the initialized particles into Equation (14) to calculate the initial fitness value Fit(VecX i ), mark the initial fitness value of each particle as the individual best pbest i , and mark the best individual best as the global best gbest;

[0131] (4) Update the positions and velocities of the particle swarm according to Equation (15);

[0132] (5) Substitute the updated particles into Equation (14) to update the fitness value. If Fit(VecX i ) < pbest i , then update the individual best pbest i = Fit(VecX i ). If Fit(VecX i ) < gbest, then update the global best gbest = Fit(VecX i );

[0133] (6) If the end condition is met, end the operation; otherwise, return to step (3).

[0134] The closer the value of the objective function is to zero, the more accurate the solution of the above nonlinear equations is.

[0135] Experimental verification:

[0136] The design parameters of the spiral groove and the initial geometric parameters of the grinding wheel used in processing are shown in Table 1. The NC code for spiral groove grinding is generated by the supporting software of the CNC grinding machine and converted into the grinding pose of the grinding wheel as shown in Table 1. The five-axis CNC tool grinder (JL-20155X) and grinding wheel (SDC120C100-C) used are as follows.

[0137] Table 1 Initial parameter table of spiral groove design and grinding process

[0138]

[0139]

[0140] After the grinding wheel has completed several spiral groove grindings, select a recently processed tool blank and use an optical measuring instrument PG1000 to measure the end face profile of its spiral groove. As Figure 4 shown, the coordinate values of the spiral groove profile points are shown in Table 2. Use the cubic spline interpolation fitting method for the profile points to obtain the end face profile curve equation of the designed spiral groove, and calculate the structural parameters of the processed spiral groove.

[0141] Table 2 Coordinates of spiral groove contour points processed before compensation

[0142]

[0143] According to the obtained spiral groove end face profile curve, the wear grinding wheel generatrix calculation method proposed in the present invention is adopted to calculate the coordinates of the actual processing grinding wheel generatrix points as shown in Table 3.

[0144] Table 3 Coordinates of worn grinding wheel contour points

[0145]

[0146] The analysis and calculation results show that the rotating surface and end edge of the grinding wheel are obviously worn, resulting in a reduction in its radius and blunting of the end edge.

[0147] According to the worn grinding wheel posture compensation algorithm proposed in the invention, the algorithm parameter settings and calculated worn grinding wheel compensation posture are adopted in Table 4.

[0148] Table 4 Particle swarm algorithm parameter settings

[0149]

[0150] The grinding wheel position is used to generate the grinding wheel grinding trajectory for simulation processing. The grinding wheel grinding trajectory is post-processed to generate the machine tool processing NC code, and the milling cutter spiral groove is ground. The simulation processing and actual processing results are shown as follows Figure 5 , Figure 6 As shown. Analysis of the processing results shows that the error of each parameter of the spiral groove processed by simulation is less than 0.1%. Since the error of the actual centering machine tool cannot be avoided, the error of each parameter of the spiral groove processed by actual centering is less than 2%, which meets the processing requirements. By comparison, it can be seen that the wear grinding wheel optimization adjustment algorithm proposed in the present invention can effectively solve the problem of insufficient processing accuracy caused by continuous wear of the grinding wheel during grinding wheel processing.

Claims

1. A method for compensating the posture of a worn grinding wheel in a spiral groove grinding process of a CNC tool, characterized in that: The following steps are involved: Step 1: Establish grinding motion relationship: Establish workpiece coordinate system O W -X W Y W Z W :Coordinate origin O W Located at the center of the end face of the tool bar, coordinate axis Z W Coincident with the tool bar axis, coordinate plane X W Y W Coincident with the end face of the tool bar; Establish grinding wheel grinding posture parameters: center distance a x For two coordinates, the origin is at X W Distance on axis; offset a y For two coordinates, the origin is in Y W Distance on the axis; installation angle α, grinding wheel around X W The angle of axis rotation; therefore, the transformation matrix between the grinding wheel coordinate system and the workpiece coordinate system is as follows: The grinding wheel moves along the Z direction. W The axis moves forward while rotating around Z W The axis rotates by an angle ξ, and the radius of the spiral edge line is defined as R, the spiral angle is β, so the transformation matrix M between the adjoint coordinate system and the workpiece coordinate system about the angle ξ e (ξ) is shown in the following formula: Where, κ = R / tanβ; Step 2: Determine the front grinding wheel compensation: Extract the coordinates Q of n contour points on the radial end face of the spiral groove processed before compensation mi (x Qmi ,y Qmi ,z Qmi ), i = 1, 2, 3, ..., n, determine the grinding wheel grinding posture before compensation (a xc ,a yc ,α c ) ; Obtain the tangent vector Q′ of n contour points by cubic spline interpolation method mi (x′ Qmi ,y′ Qmi ,z′ Qmi ); Step 3: Calculate the worn grinding wheel profile: According to the meshing condition between the spiral groove surface and the rotating surface of the grinding wheel during the spiral groove grinding process, the rotation angle ξ of the meshing point is established. ri The equation is: (A1+A2ξ)sinξ+(A3+A4ξ)cosξ+A5=0 (3) Example: A1 = κcos(α)a y (x′ Qmi -and' Qmi )-sin(α)y Qmi (x Qmi x′ Qmi -and Qmi and' Qmi ); A2=-k 2 sin(α)x′ Qmi ; A3=κcos(α)a x (x′ Qmi +y′ Qmi )-sin(α)x Qmi (x Qmi x′ Qmi +y Qmi y′ Qmi ); A4=k 2 sin(α)y′ Qmi ; A5=-(x Qmi x′ Qmi +y Qmi y′ Qmi (a) x sin(α)+κcos(α)); By solving equation (3), we can get the coordinates Q of the meshing point: ri (x Qri ,y Qri ,z Qri ), and transform it to the grinding wheel coordinate system to obtain the grinding wheel rotation surface equation: Calculate the distance from all meshing point coordinates to the grinding wheel axis, and obtain the wear grinding wheel profile equation R(h) through the cubic spline interpolation method. The wear grinding wheel profile is rotated once to obtain the wear grinding wheel rotation surface equation, as shown below: In the formula, h is the variable of the wear grinding wheel profile equation, ψ is the rotation angle of the point on the grinding wheel rotation surface; Step 4: Calculate the spiral groove profile formed by the worn grinding wheel: The coordinates of the point P of the trajectory of the grinding wheel's rotating surface doing spiral motion in space S (h,ψ,ξ,a x ,a x ,α) is as follows: The motion trajectory equation of the grinding wheel rotating surface P S The partial derivatives of the grinding wheel variables h and ψ are calculated respectively, and the normal vector of the point on the rotating surface is obtained by cross multiplication. The normal vector N(h, ψ) of the point on the rotating surface of the grinding wheel is calculated at the moment ξ=0, as shown in the following formula: Wherein R′(h)=dR(h) / dh; The motion trajectory equation P of the grinding wheel rotating surface S Find the partial derivative of the motion variable ξ, and calculate the velocity vector V(h,ψ) of the point on the grinding wheel rotation surface at the moment ξ=0, as shown in the following formula: According to the condition that the normal vector and velocity vector of the point on the contact line are perpendicular to each other (N(h,ψ)×V(h,ψ)=0), equations (7) and (8) are substituted to calculate the rotation angle ψ(h) of the point on the contact line of the grinding wheel, which is simplified as follows: where B1 = a x cosα + κsinα, B2 = (R(h)R′(h) - h)sinα + a y , B3 = (κcosα - a x sinα)R′(h); Substitute equation (9) back into the grinding wheel envelope equation (6) to calculate the contact line of the grinding wheel rotating surface, and transform the contact line through motion to obtain the radial section profile equation of the spiral groove p(h, a x ,a y ,α), as shown in the following formula: In the formula, ξ0=(hcosα-R(h)sin(ψ(h))sinα) / κ; Step 5: Establish the wear wheel constraint function: (1) The rake angle γ is the angle between vector P1 and vector T1, where the Z of P1×T1 W When the coordinate is positive, the rake angle is positive, and when the reverse rake angle is negative, the functional relationship between the spiral groove rake angle and the grinding wheel posture is f γ As shown below: In the formula, t r =(0,0,1); (2) Core thickness r c Point p2 is the tangent point of the spiral groove profile and the core thickness circle, that is, vector P2·T2=0. The functional relationship between the spiral groove core thickness and the grinding wheel posture is f rc As shown below: (3) The groove width φ is the angle between the starting point p1 and the end point p3 of the spiral groove. W When the coordinate is positive, the groove width is less than 180°, otherwise the groove width is greater than 180°. The functional relationship between the spiral groove core thickness and the grinding wheel posture is f φ As shown below: Step 6: Use particle swarm algorithm to calculate the compensation pose of the worn grinding wheel: The objective function of the grinding wheel posture optimization problem is established as follows: min Fit=ω1(f γ -c) 2 +ω2(f φ -f) 2 +ω3(f rc -r c ) 2 (14) In the formula, ω1, ω2, ω3 are weight coefficients; The particle swarm algorithm is used to solve the grinding wheel posture. The grinding wheel posture is regarded as a three-dimensional particle and the grinding wheel posture particle is defined as VecX(a x ,a y ,α); determine the number of particle swarms N, and initialize the particle swarm VecX in the grinding wheel posture search space i (a xi ,a yi ,α i ), and initialize the velocity V of each particle i , i = 1, 2, 3, ..., N; then iterative calculation is performed, and the particle swarm algorithm iteration rule is as follows: In i+1 =ω·V i +c1·r1·(pbest i -VecX i )+c2·r2·(gbest-VecX i ) VecX i+1 =VecX i +V i (15) In the formula, ω is the inertia weight, c1 and c2 are learning factors, r1 and r2 are random numbers in [0,1], and pbest i is the individual best, and gbest is the global best.

2. The method for compensating the worn grinding wheel posture in the spiral groove grinding process of a CNC tool according to claim 1, characterized in that: The particle swarm algorithm calculation process is: (1) Set the particle swarm algorithm parameters ω, c1 and c2, r1 and r2, the number of particle populations N, the maximum number of iterations max_gen and the minimum error allowed for the termination iteration; (2) Initialize particle swarm: position and velocity V i and position VecX i ; (3) Substitute the initial particles into equation (14) to calculate the initial fitness value Fit(VecX i ), mark the initial fitness value of each particle as the individual optimal pbest i , and mark the best individual as the global optimum gbest; (4) Update the position and velocity of the particle swarm according to formula (15); (5) Substitute the updated particles into Equation (14) to update the fitness value. If Fit(VecX i ) < pbest i , then update the individual optimal pbest i = Fit(VecX i ). If Fit(VecX i ) < gbest, then update the global optimal gbest = Fit(VecX i ); (6) If the end condition is met, the operation ends; otherwise, return to step (3).