Precision grinding machine multiple error measurement compensation method, numerical control system and grinding machine

By using the grinding machine's own measuring equipment and CNC system to perform multiple error measurements and compensations on the rolls, the problem of multiple errors caused by structural deformation and improper installation of the grinding machine was solved, thereby improving grinding accuracy and stability.

CN123128995APending Publication Date: 2026-11-20HIECISE PRECISION EQUIP (KUNSHAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

When existing grinding machines have structural deformation or are improperly installed, the coordinate axis motion trajectory deviates from the theoretical trajectory, resulting in multiple errors that affect machining accuracy. Furthermore, existing CNC systems lack effective measurement and compensation capabilities.

Method used

The grinding machine measures the rolls using its own measuring equipment, calculates the roll installation error and the straightness error of the grinding machine's Z-axis, uses a CNC system for error compensation, generates alarms, and performs interpolation during grinding to achieve real-time compensation for multiple errors.

Benefits of technology

It effectively reduces or avoids the negative impact of multiple errors on the grinding accuracy of rolls, provides quantitative basis for adjusting the installation status of grinding machines and rolls, and ensures the accuracy and stability of the grinding process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123128995A_ABST
    Figure CN123128995A_ABST
Patent Text Reader

Abstract

The application provides a precision grinding machine multiple error measurement compensation method, a numerical control system and a grinding machine, and relates to the technical field of grinding machine error compensation. The method comprises the following steps: calculating the X and Y direction offset error values of the roll according to the measurement data of the roll; separating and processing the measurement results contained in the X and Y direction offset error values of the roll, calculating the installation error of the roll, and fitting the straightness error of the Z axis of the grinding machine; if any of the Y direction offset error value of the roll, the installation error or the straightness error of the Z axis of the grinding machine exceeds the corresponding allowable value set, the corresponding error alarm is generated; when the installation error of the roll and the straightness error of the Z axis of the grinding machine do not exceed the respective allowable values, the curve corresponding to the installation error of the roll and the straightness error of the Z axis of the grinding machine is superimposed on the roll shape curve to obtain the actual grinding track of the roll, the actual grinding track is interpolated and sent to the corresponding axis driver to compensate the error.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of grinding machine error compensation technology, and in particular to a method for measuring and compensating multiple errors in a precision grinding machine, a numerical control system, and a grinding machine. Background Technology

[0002] When a grinding machine experiences structural deformation or improper installation, the movement trajectory of its coordinate axes may deviate from the theoretical trajectory, resulting in straightness error and affecting machining accuracy. Current grinding machines require external equipment such as laser interferometers and collimators to measure this straightness error, and then adjustments are made to the machine tool structure based on the measurement results.

[0003] Furthermore, due to various factors, the rotation axis of the roll cannot be guaranteed to be parallel to the Z-axis of the grinding machine's coordinate system when mounted on the grinding machine, resulting in installation errors that also affect machining accuracy. The simultaneous existence of these two types of errors, each corresponding to multiple components, means that the grinding machine experiences multiple errors during grinding.

[0004] The existence and interaction of multiple errors increase the difficulty of error detection and adjustment. Existing CNC roll grinding machines only have the function of compensating for roll installation errors, and lack the ability to effectively measure and compensate for the multiple errors mentioned above. Summary of the Invention

[0005] Objective: To overcome the problems existing in the prior art, this invention proposes a method for measuring and compensating multiple errors in a precision grinding machine, a CNC system, and the grinding machine itself. The grinding machine's measurement system measures the rolls, thereby obtaining measurement data. After completing the full measurement of the rolls, the measurement results are analyzed and processed to obtain the roll installation error, and further, a straightness error curve for the grinding machine shaft is fitted. During roll grinding, the CNC system, based on the actual situation of the aforementioned multiple errors, introduces compensation curves to process the errors accordingly, thereby avoiding or reducing the negative impact of these errors on the rolling grinding accuracy.

[0006] To achieve the above objectives, the present invention adopts the following technical solution:

[0007] In a first aspect, the present invention provides a method for measuring and compensating multiple errors in a precision grinding machine, comprising the following steps:

[0008] Measurement data reading and calculation: The roll is measured to obtain measurement data, and the roll offset error value in the X direction and the roll offset error value in the Y direction are calculated based on the measurement data;

[0009] Measurement data processing: The measurement results contained in the X-direction offset error value and Y-direction offset error value of the roll are separated and processed to calculate the installation error of the roll and fit the straightness error of the Z-axis of the grinding machine.

[0010] Error handling and alarm: Based on the calculated error, if the Y-direction offset error of the roll, the installation error of the roll, or the straightness error of the Z-axis of the grinding machine exceeds the corresponding allowable value set by the CNC system, then all subsequent actions will be canceled and a corresponding error overrun alarm will be generated.

[0011] Error compensation: When the installation error of the roll and the straightness error of the Z-axis of the grinding machine do not exceed their respective allowable values, the curve corresponding to the installation error of the roll and the curve corresponding to the straightness error of the Z-axis of the grinding machine are superimposed with the roll shape curve of the roll to obtain the actual grinding trajectory of the roll. The CNC system interpolates the actual grinding trajectory and sends it to the driver of the corresponding axis to compensate for the error.

[0012] As a preferred embodiment of the first aspect, in the step of reading and calculating the measurement data, the roll is measured by measuring head A, measuring head B and measuring head C; wherein, the line connecting measuring head A and measuring head B passes through the center of the roll cross section, and measuring head C is parallel to the X-axis of the machine tool coordinate system of the grinding machine and passes through the center of the roll cross section;

[0013] The specific offset error value of the roll in the X direction is calculated by the formula: ex=c-(a+b) / 2;

[0014] The specific roll offset error value in the Y direction is calculated using the formula: ey=(ba) / 2;

[0015] In the formula, a is the measurement data of the A measuring head, b is the measurement data of the B measuring head, and c is the measurement data of the C measuring head.

[0016] As a preferred embodiment of the first aspect, in order to overcome the hysteresis phenomenon and obtain measurement results that conform to the actual situation, the measurement data reading and calculation steps further include:

[0017] The CNC system controls the Z-axis to move in the positive and negative directions to measure the roll twice, and calculates the corresponding offset value based on the data of the measuring head in each interpolation cycle.

[0018] The measurement results of the positive and negative Z-axis movements are saved to a specified structure array, respectively. The elements recorded in the structure array include: index number, Z coordinate, the X-axis offset error value of the roll, and the Y-axis offset error value of the roll.

[0019] As a preferred embodiment of the first aspect, in the error processing and alarm steps, for errors in the Y direction that cannot be compensated by linkage, the following alarm processing is performed:

[0020] The system determines whether the absolute value of the difference between the maximum and minimum values ​​of the roll Y-direction offset error in the structure array corresponding to the measurement result is greater than the set maximum allowable value for the roll Y-direction offset error. If so, an alarm for excessive roll Y-direction deviation is generated; or...

[0021] Determine whether the absolute value of the difference between the roll Y-direction offset error values ​​corresponding to the measurement end point and the measurement start point, divided by the roll measurement length, is greater than the maximum allowable value of the roll Y-direction offset error value divided by the roll grinding length. If so, generate an alarm for excessive roll Y-direction deviation.

[0022] As a preferred embodiment of the first aspect, in the measurement data processing step, the installation error trajectory of the roll is regarded as a straight line, and its slope in the X direction is specifically calculated by the following formula:

[0023]

[0024] In the formula, k x Let z be the slope in the X direction. e and z s These are the Z-coordinates of the measurement end point and the measurement start point, respectively. e and ex s These are the roll offset error values ​​in the X direction at the measurement end point and the measurement start point, respectively.

[0025] As a preferred embodiment of the first aspect, in the measurement data processing step, the measurement data is subjected to linear regression calculation using the least squares method to obtain the regression coefficients, and then the linear correlation coefficient r is calculated to verify the linear correlation of the linear regression results.

[0026] As a preferred embodiment of the first aspect, after calculating the linear correlation coefficient r, the measurement result data is processed according to its absolute value as follows to obtain the straightness error of the grinding machine's Z-axis:

[0027] When the absolute value of the linear correlation coefficient r is greater than or equal to a preset threshold, the component of the grinding machine's Z-axis motion trajectory in the X direction is considered to be linear.

[0028] When the absolute value of the linear correlation coefficient r is less than a preset threshold, a polynomial curve fitting measurement result is used to obtain the straightness error of the Z-axis of the grinding machine.

[0029] As a preferred embodiment of the first aspect, when the absolute value of the linear correlation coefficient r is less than a preset threshold, a fourth-order polynomial is used to fit the measurement result to ensure the continuity of the first, second, and third derivatives of the fitted curve; and the fitting result is combined with the slope k in the X direction. x The actual straightness error of the Z-axis of the grinding machine is obtained.

[0030] As a preferred embodiment of the first aspect, in the error processing and alarm step, for the X-direction error that can be compensated by XZ linkage, it is determined whether any of the following conditions are met to trigger an alarm:

[0031] Determine whether the absolute value of the overall installation error of the roll exceeds the set maximum allowable installation error, wherein the overall installation error of the roll is determined by the slope k in the X direction. x Multiply by the roll grinding length to obtain the result; if so, an alarm for excessive roll installation error will be generated.

[0032] Determine whether the difference between the maximum and minimum values ​​of the fitted straightness error curve of the Z-axis of the grinding machine exceeds the set maximum straightness error. If so, generate an alarm for excessive Z-axis straightness error.

[0033] Determine whether the difference between the installation errors of the two rolls measured when moving in the positive and negative directions of the Z-axis exceeds the set allowable value for non-overlapping roll installation errors. If so, generate an alarm for excessive difference in installation errors between the positive and negative rolls.

[0034] Determine the difference between the maximum and minimum straightness error values ​​of the grinding machine's Z-axis when moving in the positive and negative directions, respectively. Check whether the difference between these two values ​​exceeds the set allowable value for non-overlapping Z-axis straightness error. If so, generate an alarm indicating that the difference between the positive and negative Z-axis straightness errors is too large.

[0035] As a preferred embodiment of the first aspect, the specific process of obtaining the actual grinding trajectory in the error compensation step is as follows:

[0036] For movement in the positive Z-axis direction, the actual grinding trajectory is: the slope k in the X-direction corresponding to the movement in the positive Z-axis direction. x The result of multiplying with the Z coordinate, plus the straightness error of the grinding machine's Z axis corresponding to the positive direction of the Z axis, is then superimposed with the roller curve;

[0037] For movement in the negative Z-axis direction, the actual grinding trajectory is: the slope k in the X-direction corresponding to the movement in the negative Z-axis direction. x The result of multiplying with the Z-coordinate, plus the straightness error of the grinding machine's Z-axis corresponding to the negative Z-axis direction, plus the parameter terms that ensure continuity when the Z-coordinate is at its maximum value, is finally superimposed on the roller curve.

[0038] A second aspect of the invention provides a numerical control system for implementing a multi-error measurement and compensation method for a precision grinding machine as disclosed in the first aspect and its preferred embodiments. The numerical control system is configured as follows:

[0039] The measurement system of the control grinding machine measures the roll to obtain measurement data, and calculates and saves the roll offset error value in the X direction and the roll offset error value in the Y direction in each interpolation cycle;

[0040] The obtained measurement data is analyzed and processed to calculate the installation error of the roll, and the straightness error curve of the Z-axis of the grinding machine is obtained by fitting.

[0041] Determine whether the errors obtained from each calculation exceed the corresponding pre-set allowable values ​​to decide whether to generate an alarm and cancel all subsequent actions;

[0042] When all errors do not exceed the allowable value, the actual grinding trajectory of the roll is obtained by superimposing the installation error curve of the roll and the straightness error curve of the Z-axis of the grinding machine with the roll shape curve. After interpolation, the result is sent to the driver of the corresponding axis to complete the error compensation.

[0043] Compared with the prior art, the present invention has at least the following beneficial effects:

[0044] (1) For the error in the X direction, when the error value does not exceed the allowable range, the CNC system superimposes the roll installation error curve and the grinding machine Z-axis straightness error curve onto the theoretical roll shape curve, and outputs the actual grinding trajectory through XZ linkage interpolation, which is executed by the driver. In this way, multiple errors are compensated in real time during the grinding process, and the negative impact of straightness error and installation error on the grinding accuracy of the roll is avoided or reduced.

[0045] (2) For the Y-direction error (which the CNC system cannot compensate for through axis motion) and the X-direction error exceeding the allowable value, the measurement results can be provided to the operator as a reference, so as to make targeted adjustments to the Z-axis mechanical structure of the grinding machine or the installation status of the rolls, and provide a quantitative basis for machine tool maintenance and precision calibration.

[0046] (3) In response to the non-overlapping motion trajectories of the positive and negative directions of the Z-axis caused by mechanical transmission and hydraulic system (hysteresis phenomenon), this application performs two independent measurements of the positive and negative directions of the Z-axis to obtain their respective installation error and straightness error curves. During grinding, the corresponding compensation parameters are selected for the Z-axis motion direction to make the error compensation more in line with the actual motion characteristics of the machine tool.

[0047] (4) When the linearity error has poor linear correlation, a fourth-order polynomial is used for fitting, which can ensure the continuity of the first, second and third derivatives of the fitted curve. This ensures that the position, speed, acceleration and jerk of the grinding trajectory remain continuous during the error compensation process, avoiding the introduction of impact or vibration by the compensation motion, which is beneficial to ensuring the quality of the grinding surface. Attached Figure Description

[0048] Figure 1 This is a schematic diagram of the Z-axis straightness error of a roll grinding machine.

[0049] Figure 2 This is a schematic diagram of the installation error of the rolling mill rolls.

[0050] Figure 3 This is a schematic diagram of roll measurement. Detailed Implementation

[0051] In the following description, numerous specific details are set forth in order to provide a more thorough understanding of the invention. However, it will be apparent to those skilled in the art that the invention can be practiced without one or more of these details. In other instances, certain technical features well-known in the art have not been described in order to avoid obscuring the invention.

[0052] The purpose of this embodiment is to provide a method for measuring multiple errors of the grinding machine, such as straightness error, using the grinding machine's own measuring equipment and compensating for them by its CNC system, thereby avoiding or reducing the negative impact of these errors on the grinding accuracy of rolls. The specific implementation plan is as follows.

[0053] Step 1: Reading Measurement Data

[0054] Due to factors such as structural deformation and improper installation, the motion trajectories of the X and Z axes of the roll grinding machine cannot be guaranteed to coincide with their respective theoretical trajectories (which are straight lines), meaning that there are straightness errors in the X and Z axes. For ease of explanation, a schematic diagram of the straightness error of the Z-axis of the roll grinding machine is provided (see...). Figure 1 .

[0055] exist Figure 1 In the machine tool coordinate system, the theoretical motion trajectory of the Z-axis of the roll grinding machine should coincide with the Z-axis of the machine tool coordinate system. When straightness error exists, the actual motion trajectory of the Z-axis of the roll grinding machine cannot coincide with the Z-axis of the machine tool coordinate system, and there are components in the X and Y directions.

[0056] For ease of description, the actual Z-axis motion trajectory of a roll grinding machine can be represented as:

[0057]

[0058] When there is a straightness error in the Z-axis, the value of equation (1) is not always equal to 0.

[0059] Similarly, the actual X-axis motion trajectory of a roll grinding machine can be represented as:

[0060]

[0061] When there is a straightness error in the X-axis, the value of equation (2) is not always equal to 0.

[0062] Since the grinding of rolls depends on the linkage of the XZ axis of the grinding machine, when there is a straightness error in the XZ axis of the roll grinding machine, the grinding accuracy of the rolls will be affected by these errors, resulting in failure to meet the requirements. A roll is a body of revolution obtained by rotating the roll profile curve around its own axis of rotation. The radial height of the roll (the maximum value of the roll profile curve minus the minimum value) is a very small value relative to the axial length, and the ratio between the two is generally less than 0.001. Therefore, the straightness error of the X axis of the roll grinding machine has a very small impact on the grinding accuracy of the rolls, that is, equation (2) can be ignored. The main focus is on the impact of the straightness error of the Z axis of the grinding machine on the grinding accuracy of the rolls.

[0063] Due to factors such as placement, the rotation axis of the roll is not parallel to the Z-axis of the grinding machine's coordinate system when it is installed on the roll grinding machine, resulting in installation errors. A schematic diagram of this error can be found below. Figure 2 As shown.

[0064] exist Figure 2 In this process, the rotation axis of the roll does not coincide with the Z-axis of the grinding machine's coordinate system, resulting in installation errors with components in the X and Y directions. Since the roll's rotation axis is a straight line, the roll's installation error can be expressed as:

[0065]

[0066] In equation (3), when the roll installation error is not zero, k x and k y Not zero.

[0067] Here, the expression for the theoretical grinding trajectory of the roll is assumed to be:

[0068]

[0069] When there is a straightness error in the Z-axis of the roll grinding machine, the actual grinding trajectory of the roll can be expressed as follows, combining equations (1), (3) and (4):

[0070]

[0071] As shown in equation (5), when there is a straightness error in the Z-axis of the roll grinding machine and an installation error in the roll that is not effectively addressed, the actual grinding trajectory of the roll deviates from the theoretical trajectory, which affects the grinding accuracy.

[0072] To obtain specific details of the aforementioned multiple errors, the grinding machine's measurement system measures the rolls and analyzes and processes the measurement results. The roll grinding machine's measurement system uses three measuring heads to measure the rolls, such as... Figure 3 As shown.

[0073] exist Figure 3 In the diagram, the line connecting measuring heads AB passes through the center of the roll cross-section, and measuring head C is parallel to the X-axis of the roll grinding machine coordinate system and passes through the center of the roll cross-section.

[0074] The measurement system is controlled by the CNC system of the roll grinding machine. The CNC system controls the measurement system to measure the roll in each interpolation cycle. The measurement results are described in the following structure:

[0075] TYPE Offset_Result_Str :

[0076] STRUCT

[0077] idx : ULINT; / / Index number

[0078] z_pos : LREAL; / / Machine tool Z coordinate

[0079] ex: LREAL; / / Roll X-direction offset error value

[0080] ey : LREAL; / / Roll Y-direction offset error value

[0081] END_STRUCT

[0082] END_TYPE

[0083] The code language mentioned above is ST (Structured Text) from the IEC 6113-3 programming language.

[0084] Step 2: Calculation and Acquisition of Measurement Results

[0085] The element ex in the measurement result structure represents the roll offset error value in the X direction, which is calculated from the measurement data of the three probes (A, B, and C) and can be expressed as:

[0086]

[0087] In equation (6), c is the measurement data of measuring head C, a is the measurement data of measuring head A, and b is the measurement data of measuring head B.

[0088] The element ey in the measurement result structure represents the roll offset error value in the Y direction, which is calculated from the measurement data of the three probes (A, B, and C) and can be expressed as:

[0089]

[0090] In equation (7), a is the measurement data of measuring head A, and b is the measurement data of measuring head B.

[0091] The calculation results of equations (6) and (7) reflect the offset of the roll rotation axis relative to the Z-axis of the roll grinding machine coordinate system.

[0092] The CNC system of the roll grinding machine controls the movement of the Z-axis to realize the measurement of the roll by the measurement system. In each interpolation cycle, the offset value of the roll rotation axis is obtained by equations (6) and (7) based on the measurement data of the three measuring heads (ABC).

[0093] Step 3: Data Recording

[0094] For ease of subsequent processing of the measurement results, these results need to be stored in a designated area. Since the number of measurement results acquired by the CNC system depends on the Z-axis movement distance and speed during measurement, the length len of the measurement result can be expressed as:

[0095]

[0096] In equation (8), d z v is the distance moved along the Z-axis during measurement. z The Z-axis moving speed is denoted by , and T is the interpolation cycle of the CNC system. This is used to convert the result of a floating-point calculation into an integer.

[0097] Due to the influence of mechanical transmission and hydraulic system, the trajectory of the Z-axis of the roll grinding machine may not coincide when it moves in the positive and negative directions, i.e., there is a hysteresis phenomenon, which leads to different offsets of the roll rotation axis corresponding to equation (5). Therefore, in order to obtain measurement results that conform to the actual situation, two measurements are performed on the roll in the positive and negative directions of Z-axis movement.

[0098] Before the measurement begins, two structure arrays with lengths equal to the result of equation (7) are defined to store the measurement results of the positive and negative Z-axis movements, respectively, as shown below:

[0099] Roll_Offset_Result_Pos : ARRAY [0..len] OF Offset_Result_Str; / / Z-axis positive measurement result

[0100] Roll_Offset_Result_Neg : ARRAY [0..len] OF Offset_Result_Str; / / Negative Z-axis measurement result

[0101] The CNC system of the roll grinding machine first controls three measuring heads (A, B, and C) to contact the roll, and then controls the Z-axis to move in both the positive and negative directions to measure the roll. The measurement results are saved to the corresponding structure arrays. Taking the positive Z-axis movement measurement as an example, sample code is shown below:

[0102] / / Save measurement results

[0103] Roll_Offset_Result_Pos [k].idx := idx;

[0104] Roll_Offset_Result_Pos [k].z_pos := z;

[0105] Roll_Offset_Result_Pos [k].ex := c – (a + b) / 2;

[0106] Roll_Offset_Result_Pos [k].ey := (b - a) / 2;

[0107] / / Index number update

[0108] idx := idx + 1.

[0109] Step 4: Analysis of Measurement Results

[0110] As shown above, the measurement results reflect the changes in the rotation axis of the roll relative to the Z-axis of the grinding machine. The installation error of the roll and the straightness error of the Z-axis of the grinding machine are included in these measurement results.

[0111] Therefore, the subsequent processing of the measurement data mainly involves separating and obtaining the specific values ​​of the installation error of the roll and the straightness error of the Z-axis of the grinding machine, so as to perform different processing.

[0112] Since roll grinding machines do not have Y-axis movement, the Y-axis components of Z-axis straightness error and roll installation error cannot be processed by the CNC system's compensation function. These Y-axis error values ​​are mainly used as a reference for adjusting relevant structures of the grinding machine.

[0113] Step 5: Measurement Data Processing

[0114] The purpose of measurement data processing is to obtain the roll installation error and the straightness error of the grinding machine's Z-axis. For ease of explanation, subsequent descriptions of measurement data processing will use the measurement results of Z-axis positive direction movement as an example; the processing method for measurement results of Z-axis negative direction movement is the same.

[0115] The installation error of the rolls is related to their installation condition on the grinding machine; the installation error will not be the same each time the rolls are installed on the grinding machine. The roll installation error trajectory can be considered as a straight line with a slope k in the X direction. x It can be calculated from the relevant data of the measurement start point and measurement end point, and can be expressed as:

[0116]

[0117] In equation (9), z e and z s These are the Z-coordinates of the measurement end point and the measurement start point, respectively. e and ex s These are the corresponding roll offset error values ​​in the X direction.

[0118] As shown in equation (9), the measurement results include the roll installation error. Further processing of this measurement data is needed to obtain the straightness error of the grinding machine's Z-axis. Here, linear regression is used to process the measurement data, and the corresponding regression coefficient b is obtained using the least squares method:

[0119]

[0120] In equation (10), z i and ex i The Z-axis position and the corresponding X-direction offset error value of the roll are represented by the corresponding elements in the measurement result array, where n is the length of the measurement result structure array.

[0121] Since the measurement data includes both roll installation error and grinding machine Z-axis straightness error, the results fitted by the above linear regression may not necessarily reflect the actual situation. Therefore, a linear correlation verification of the linear regression results is performed, i.e., the linear correlation coefficient r is calculated from the measurement data, which can be expressed as:

[0122]

[0123] Based on the specific results of the linear correlation coefficient r in equation (11), different analyses and processing are performed on the measurement results data:

[0124] (1) When the absolute value of r in equation (11) is greater than or equal to 0.6:

[0125] At this point, the linear correlation of the measurement results shows good linearity. Therefore, the component of the grinding machine's Z-axis motion trajectory in the X direction can also be considered linear, and can be expressed as:

[0126]

[0127] The result of equation (12) will be used for subsequent error processing and compensation.

[0128] (2) When the absolute value of r in equation (11) is less than 0.6:

[0129] At this point, the linear correlation of the linear regression results of the measurement data is generally poor or even bad. The result corresponding to Equation (12) cannot accurately reflect the actual motion trajectory of the Z-axis.

[0130] Since a polynomial curve is a type of roll shape, it is used to fit the measurement results for ease of subsequent error compensation processing. To ensure the continuity of the grinding trajectory position, speed, acceleration, and jerk during error compensation, the first, second, and third derivatives of the fitted curve must be continuous. Therefore, a fourth-order polynomial is used to fit the measurement results, which can be expressed as:

[0131]

[0132] In equation (13), a i The coefficients of each term in the fitted polynomial are given.

[0133] Combining equations (9) and (13), the motion trajectory of the grinding machine's Z-axis, i.e., the straightness error of the Z-axis, can be obtained as follows:

[0134]

[0135] Based on the above measurement data processing method, the straightness error and roll installation error when the grinding machine moves in the negative Z-axis direction can also be obtained, which will not be elaborated here.

[0136] Step 6: Error Handling and Compensation

[0137] The CNC system of the grinding machine performs different processing based on the specific circumstances of the Z-axis straightness error and roll installation error obtained above:

[0138] As mentioned earlier, the roll grinding machine lacks movement in the Y direction, i.e., there is no Y-axis. The CNC system cannot optimize the Z-axis straightness error and roll installation error in the Y direction through compensation functions. Therefore, the following measures are taken to address the Z-axis straightness error and roll installation error in the Y direction:

[0139] (1) For the maximum value of the roll Y-direction offset error in the measurement result array, ey max and minimum value ey min It conforms to the following relationship:

[0140]

[0141] In formula (15), ey aThis is the maximum permissible value for the roll Y-direction offset error, which is a value preset by the CNC system. When this occurs, the CNC system cancels all subsequent actions and generates an alarm indicating excessive roll Y-direction deviation.

[0142] (2) For the measurement end point z e and measurement starting point z s The corresponding roll offset error values ​​in the Y direction conform to the following relationship:

[0143]

[0144] Equation (16) indicates that the installation error in the Y direction of the roll exceeds the maximum error value mentioned above, L r This represents the grinding length of the roll. At this point, the CNC system cancels all subsequent actions and generates an alarm indicating excessive deviation in the Y direction of the roll.

[0145] For the Z-axis straightness error and roll installation error in the X direction, the CNC system can compensate through XZ linkage. Therefore, this part of the error is handled as follows:

[0146] (1) The installation error of the rolls exceeds the allowable value

[0147] The overall installation error e of the roll can be obtained from the installation error slope of equation (9). r for:

[0148]

[0149] In equation (17), e r This refers to the overall installation error of the rolls.

[0150] The maximum allowable roll installation error is preset in the CNC system. When the absolute value of the result of equation (17) exceeds the maximum allowable value, the CNC system cancels all subsequent actions and generates an alarm for excessive roll installation error.

[0151] If either of the two roll installation errors measured by moving the Z-axis in the positive and negative directions exceeds the allowable value, the CNC system will perform the above processing.

[0152] (2) The straightness error of the Z-axis exceeds the allowable value.

[0153] Based on the fitted Z-axis straightness error curve (13), the maximum and minimum values ​​corresponding to this curve can be obtained. When the difference between the maximum and minimum values ​​exceeds the maximum straightness error set by the CNC system, the CNC system cancels all subsequent actions and generates an alarm for excessive Z-axis straightness error.

[0154] If either of the two Z-axis straightness errors measured by Z-axis movement in the positive and negative directions exceeds the maximum value, the CNC system will perform the above processing.

[0155] (3) The results of forward and reverse measurements are different

[0156] As mentioned earlier, the measurement results when moving in the positive and negative directions of the Z-axis are not necessarily the same. The CNC system sets an allowable value for non-coincidence of roll installation errors. When the difference between the results of equation (17) when moving in the positive and negative directions of the Z-axis exceeds this value, the CNC system cancels all subsequent actions and generates an alarm for excessive difference in roll installation errors in the positive and negative directions.

[0157] The difference between the maximum and minimum values ​​of the Z-axis straightness error curve (14) is not necessarily the same in the positive and negative directions of the Z-axis. Similarly, the CNC system sets an allowable value for non-coincidence of Z-axis straightness error. When the difference between the above two values ​​exceeds this value, the CNC system cancels all subsequent actions and generates an alarm for excessive difference in straightness error between the positive and negative Z-axis.

[0158] (4) The installation error and straightness error did not exceed their respective allowable values.

[0159] In this case, during the roll grinding process, the CNC system superimposes the roll installation error curve and the Z-axis straightness error curve of the grinding machine with the roll shape curve to obtain the actual grinding trajectory of the roll.

[0160] The actual grinding trajectory for movement in the positive Z-axis direction is:

[0161]

[0162] In equation (18), k xp f is the slope of the roll installation error corresponding to the positive Z-axis movement. xp The straightness error of the Z-axis X direction corresponding to the positive Z-axis movement is in accordance with equation (12) or (14).

[0163] The actual grinding trajectory for movement in the positive Z-axis direction is:

[0164]

[0165] In equation (19), k xn f is the slope of the roll installation error corresponding to the negative Z-axis movement. xn The straightness error of the Z-axis in the X direction corresponding to the positive direction of the negative axis movement also conforms to equation (12) or (14). Since the measurement results corresponding to the positive and negative Z-axis movements are not the same, x0 is used to ensure the continuity of equations (18) and (19) when the Z coordinate is at its maximum value.

[0166] During roll grinding, the CNC system interpolates the grinding trajectory (18) and (19) and sends the interpolation results to the corresponding axis driver, thereby compensating for the Z-straightness error of the grinding machine and the roll installation error.

[0167] (5) Handling of errors exceeding the allowable value

[0168] The measurement results can be used as a reference for grinding machine operators, so that they can make corresponding targeted adjustments to the Z-axis structure or rolls of the grinding machine according to the specific error situation.

[0169] As another embodiment, a numerical control system is disclosed, which includes a processor and a memory storing computer program instructions. When the processor executes the computer program instructions, it implements the specific process of the precision grinding machine multiple error measurement compensation method disclosed in the above embodiment.

[0170] In this CNC grinding machine system, the memory and processor are electrically connected directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines, such as a bus connection. The memory stores computer-executable instructions that implement data access control methods, including at least one software functional module that can be stored in the memory in the form of software or firmware. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory.

[0171] Memory includes, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), and Electrically Erasable Programmable Read-Only Memory (EEPROM). Memory stores programs, which are then executed by the processor upon receiving execution instructions. Furthermore, the software programs and modules within the aforementioned memory may also include an operating system, which can include various software components and / or drivers for managing system tasks and can communicate with various hardware or software components to provide an operating environment for other software components.

[0172] A processor can be an integrated circuit chip with signal processing capabilities. The aforementioned processor can be a general-purpose processor, including a Central Processing Unit (CPU). It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. It is understood that in practical applications, there may be more or fewer components than shown in this embodiment, or a different configuration than that shown in this embodiment. Each component can be implemented in hardware and / or software.

[0173] As another embodiment, a grinding machine equipped with the grinding machine CNC system described in the above embodiments is disclosed. This grinding machine can execute part or all of the process of the online compensation method for roll grinding accuracy disclosed in the above embodiments, which will not be elaborated here.

[0174] As described above, although the invention has been shown and described with reference to specific preferred embodiments, it should not be construed as limiting the invention itself. Various changes in form and detail may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims

1. A method for measuring and compensating multiple errors in a precision grinding machine, characterized in that, Includes the following steps: Obtain the measurement data of the roll, and calculate the roll offset error value in the X direction and the roll offset error value in the Y direction based on the measurement data; The measurement results contained in the X-direction offset error value and the Y-direction offset error value of the roll are separated and processed to calculate the installation error of the roll and fit the straightness error of the Z-axis of the grinding machine. If any of the following exceeds the set allowable value: the Y-direction offset error of the roll, the installation error of the roll, or the straightness error of the Z-axis of the grinding machine, all subsequent actions will be canceled and a corresponding excessive error alarm will be generated. When the installation error of the roll and the straightness error of the Z-axis of the grinding machine do not exceed their respective allowable values, the curve corresponding to the installation error of the roll and the curve corresponding to the straightness error of the Z-axis of the grinding machine are superimposed with the roll shape curve of the roll to obtain the actual grinding trajectory of the roll. The actual grinding trajectory is interpolated and sent to the driver of the corresponding axis to compensate for the error.

2. The method for multiple error measurement and compensation of a precision grinding machine according to claim 1, characterized in that, The roll is measured using measuring heads A, B, and C; wherein the line connecting measuring heads A and B passes through the center of the roll cross-section, and measuring head C is parallel to the X-axis of the machine tool coordinate system of the grinding machine and passes through the center of the roll cross-section; The roll offset error value in the X direction is specifically calculated using the formula ex=c-(a+b) / 2; The roll offset error value in the Y direction is specifically calculated using the formula ey=(ba) / 2; In the formula, a represents the measurement data of measuring head A, b represents the measurement data of measuring head B, and c represents the measurement data of measuring head C.

3. The method for multiple error measurement and compensation of a precision grinding machine according to claim 2, characterized in that, The method of obtaining the measurement data of the rolls also includes: The Z-axis is controlled to move in the positive and negative directions to measure the roll twice. The corresponding offset value is calculated based on the data of the measuring head in each interpolation cycle. The measurement results of the positive and negative Z-axis movements are saved to a specified structure array, respectively. The elements recorded in the structure array include: index number, Z coordinate, the X-axis offset error value of the roll, and the Y-axis offset error value of the roll.

4. The method for multiple error measurement and compensation of a precision grinding machine according to claim 3, characterized in that, The generation of the corresponding excessive error alarm specifically includes: Determine whether the absolute value of the difference between the maximum and minimum values ​​of the roll Y-direction offset error value in the structure array corresponding to the measurement result is greater than the set maximum allowable value of the roll Y-direction offset error value. If so, generate a roll Y-direction deviation too large alarm; or, Determine whether the absolute value of the difference between the roll Y-direction offset error values ​​corresponding to the measurement end point and the measurement start point, divided by the roll measurement length, is greater than the maximum allowable value of the roll Y-direction offset error value divided by the roll grinding length. If so, generate an alarm for excessive roll Y-direction deviation.

5. The method for multiple error measurement and compensation of a precision grinding machine according to claim 3, characterized in that, In the process of obtaining the measurement data of the roll, the installation error trajectory of the roll is regarded as a straight line with a slope k in the X direction. x It is calculated by the following formula: ; In the formula, z e and z s These are the Z coordinates of the measurement end point and the measurement start point, respectively; ex e and ex s These are the roll offset error values ​​in the X direction at the measurement end point and the measurement start point, respectively.

6. The method for multiple error measurement and compensation of a precision grinding machine according to claim 5, characterized in that, In the process of obtaining the measurement data of the rolls, the measurement data are linearly regressed using the least squares method to obtain the regression coefficients. Then, the linear correlation coefficient r is calculated to verify the linear correlation of the linear regression results.

7. The method for measuring and compensating multiple errors in a precision grinding machine according to claim 6, characterized in that: When the absolute value of the linear correlation coefficient r is greater than or equal to a preset threshold, the component of the grinding machine's Z-axis motion trajectory in the X direction is considered to be linear. When the absolute value of the linear correlation coefficient r is less than a preset threshold, a polynomial curve fitting measurement result is used to obtain the straightness error of the Z-axis of the grinding machine.

8. The method for multiple error measurement and compensation of a precision grinding machine according to claim 7, characterized in that, When the absolute value of the linear correlation coefficient r is less than a preset threshold, a fourth-order polynomial is used to fit the measurement result, and the fitting result is combined with the slope k in the X direction. x The actual straightness error of the Z-axis of the grinding machine is obtained.

9. The method for multiple error measurement and compensation of a precision grinding machine according to claim 5, characterized in that, Determine whether any of the following conditions are met to trigger the excessive error alarm: Determine whether the absolute value of the overall installation error of the roll exceeds the set maximum allowable installation error, wherein the overall installation error of the roll is determined by the slope k in the X direction. x Multiply by the roll grinding length to obtain the result; if so, generate an alarm for excessive roll installation error. Determine whether the difference between the maximum and minimum values ​​of the fitted straightness error curve of the Z-axis of the grinding machine exceeds the set maximum straightness error. If so, generate an alarm for excessive Z-axis straightness error. Determine whether the difference between the installation errors of the two rolls measured when moving in the positive and negative directions of the Z-axis exceeds the set allowable value for non-overlapping roll installation errors. If so, generate an alarm for excessive difference in installation errors between the positive and negative rolls. Determine the difference between the maximum and minimum straightness error values ​​of the grinding machine's Z-axis when moving in the positive and negative directions, respectively. Check whether the difference between these two values ​​exceeds the set allowable value for non-overlapping Z-axis straightness error. If so, generate an alarm indicating that the difference between the positive and negative straightness errors of the Z-axis is too large.

10. A method for measuring and compensating multiple errors in a precision grinding machine according to claim 5, characterized in that, The process of obtaining the actual grinding trajectory includes: For movement in the positive Z-axis direction, the actual grinding trajectory is: the slope k in the X-direction corresponding to the movement in the positive Z-axis direction. x The result of multiplying with the Z coordinate, plus the straightness error of the grinding machine's Z axis corresponding to the positive direction of the Z axis, is then superimposed with the roller curve; For movement in the negative Z-axis direction, the actual grinding trajectory is: the slope k in the X-direction corresponding to the movement in the negative Z-axis direction. x The result of multiplying with the Z-coordinate, plus the straightness error of the grinding machine's Z-axis corresponding to the negative Z-axis direction, plus the parameter terms that ensure continuity when the Z-coordinate is at its maximum value, is finally superimposed on the roller curve.

11. A numerical control system for implementing a multiple error measurement and compensation method for a precision grinding machine as described in any one of claims 1 to 10, characterized in that, The CNC system is configured as follows: The measurement system of the control grinding machine measures the roll to obtain measurement data, and calculates and saves the roll offset error value in the X direction and the roll offset error value in the Y direction in each interpolation cycle; The obtained measurement data is analyzed and processed to calculate the installation error of the roll, and the straightness error curve of the Z-axis of the grinding machine is obtained by fitting. Determine whether the errors obtained from each calculation exceed the corresponding pre-set allowable values ​​to decide whether to generate an alarm and cancel all subsequent actions; When all errors do not exceed the allowable value, the actual grinding trajectory of the roll is obtained by superimposing the installation error curve of the roll and the straightness error curve of the Z-axis of the grinding machine with the roll shape curve. After interpolation, the result is sent to the driver of the corresponding axis to complete the error compensation.

12. A grinding machine equipped with the CNC system of claim 11.

13. A grinding machine that implements the multiple error measurement and compensation method for a precision grinding machine according to any one of claims 1 to 10.