Machine tool in-situ measurement data acquisition method and local error compensation method
By splitting and synchronously sampling the position signals of the machine tool motion axes, the problem of corresponding workpiece surface topography data with machine tool motion axis position data was solved, achieving high synchronization and accuracy of in-situ measurement data and ensuring normal operation of the machine tool.
Patent Information
- Application Number
- CN202611168519.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-03
- Publication Date
- 2026-11-17
AI Technical Summary
During machine tool processing, it is difficult to correlate the workpiece surface morphology data with the position data of the machine tool motion axis, which makes it difficult for the measurement data to accurately reflect the morphology of the corresponding position on the workpiece surface, affecting error judgment and compensation processing.
By splitting the position signals of each motion axis of the machine tool into a first position feedback signal for motion control of the CNC system, and a second position feedback signal for synchronous sampling of the data acquisition system and the workpiece surface topography signal, combined with dynamic adjustment of the sampling frequency and initial calibration, the accurate correspondence between coordinate sampling data and workpiece surface topography data is achieved.
It improves the synchronization and accuracy of in-situ measurement data, ensures that the original motion control of the machine tool is not affected, realizes the accurate correspondence between the workpiece surface morphology data and the machine tool coordinate position, and reduces measurement errors.
Smart Images

Figure CN123113669A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of in-situ measurement technology for precision machine tool processing, and particularly to a method for acquiring in-situ measurement data of machine tools and a method for compensating for local errors. Background Technology
[0002] The statements herein are provided only as background information in connection with this application and do not necessarily constitute prior art.
[0003] During machine tool processing, it is usually necessary to measure the workpiece to determine whether the surface morphology of the machined workpiece meets the requirements. Traditional measurement methods mostly adopt offline inspection, that is, the workpiece is removed from the machine tool and transferred to the inspection equipment for measurement. This method requires steps such as disassembly, transportation and reclamping, which increases the measurement process and may cause changes in the measurement datum due to reclamping.
[0004] To reduce the impact of workpiece disassembly and assembly on measurement results, there are also solutions that measure the workpiece directly on the machine tool. These solutions typically use measurement sensors mounted on the machine tool to collect workpiece surface topography data, and combine this data with the position data of the machine tool's motion axes to determine the location of the measurement point on the workpiece, thereby obtaining the measurement results for the workpiece surface.
[0005] However, during in-situ measurement on a machine tool, the surface morphology data of the workpiece is difficult to correspond with the position data of the machine tool's motion axis. This results in the measured surface morphology data not accurately corresponding to the actual measurement position, making it difficult for the measurement data to truly reflect the morphology of the workpiece surface at the corresponding position, which in turn affects subsequent error judgment and compensation processing. Summary of the Invention
[0006] This invention aims to at least solve one of the technical problems existing in related technologies. To this end, this invention proposes a machine tool in-situ measurement data acquisition method, which solves the problem that it is difficult to accurately correspond workpiece surface morphology data with machine tool coordinate positions by splitting the position signals of each motion axis of the machine tool for CNC control and synchronous measurement acquisition respectively.
[0007] This invention also proposes a method for compensating for local errors in in-situ measurements of machine tools.
[0008] According to an embodiment of the machine tool in-situ measurement data acquisition method, the machine tool is equipped with a CNC system and a data acquisition system, and the method includes: The position signals of each motion axis of the machine tool are acquired, and the position signals are processed by splitting to form a first position feedback signal and a second position feedback signal. The first position feedback signal is transmitted to the CNC system, and the CNC system maintains motion control of each motion axis according to the first position feedback signal. The second position feedback signal is transmitted to the data acquisition system, and the data acquisition system simultaneously samples the second position feedback signal and the workpiece surface morphology signal to obtain in-situ measurement data corresponding to the coordinate sampling data of each motion axis and the workpiece surface morphology data at the same sampling time.
[0009] According to one embodiment of the present invention, the synchronous sampling of the second position feedback signal and the workpiece surface topography signal by the data acquisition system includes: The basic sampling frequency of the data acquisition system is determined based on the size of the workpiece surface to be measured, the workpiece rotation speed, and the preset recognition length. According to the basic sampling frequency, the data acquisition system is controlled to synchronously sample the second position feedback signal and the workpiece surface morphology signal.
[0010] According to one embodiment of the present invention, in the process of controlling the data acquisition system to synchronously sample the second position feedback signal and the workpiece surface topography signal according to the basic sampling frequency, the method further includes: Determine the workpiece surface morphology gradient based on the obtained workpiece surface morphology data; The base sampling frequency is dynamically adjusted based on the surface topography gradient of the workpiece to obtain the adjusted sampling frequency. According to the adjusted sampling frequency, the data acquisition system is controlled to continue to synchronously sample the second position feedback signal and the workpiece surface morphology signal.
[0011] According to one embodiment of the present invention, dynamically adjusting the basic sampling frequency based on the workpiece surface topography gradient includes: In the region where the surface morphology gradient of the workpiece is less than a preset gradient threshold, sampling is performed according to the basic sampling frequency. In the region where the surface morphology gradient of the workpiece is greater than or equal to the preset gradient threshold, sampling is performed at a sampling frequency greater than the basic sampling frequency.
[0012] According to one embodiment of the present invention, before obtaining in-situ measurement data corresponding to the coordinate sampling data of each motion axis and the workpiece surface topography data at the same sampling time, the method further includes: Based on the machine tool coordinate system parameters in the CNC system, the coordinate sampling data of each motion axis obtained by the data acquisition system are initialized and calibrated.
[0013] According to one embodiment of the present invention, the process of generating the in-situ measurement data further includes: The coordinate sampling data of each motion axis is compared with the corresponding coordinate data in the CNC system according to a preset cycle to check for deviation. When the deviation exceeds the preset deviation threshold, the synchronous sampling is paused and the initialization calibration is re-executed.
[0014] The machine tool in-situ measurement local error compensation method according to an embodiment of the present invention includes the machine tool in-situ measurement data acquisition method as described above, and the method further includes: The measured surface point cloud of the workpiece is determined based on the in-situ measurement data; The measured surface point cloud is registered with the theoretical model of the workpiece to determine the normal error of each sampling point relative to the theoretical model of the workpiece. The set of out-of-tolerance sampling points is determined based on the normal error of each sampling point, and the local compensation region is determined based on the continuously distributed out-of-tolerance sampling points in the set of out-of-tolerance sampling points. Local compensation data is determined based on the local compensation region and the normal error of the out-of-tolerance sampling points within the local compensation region. The local compensation area is processed by compensating according to the local compensation data.
[0015] According to one embodiment of the present invention, determining local compensation data based on the local compensation region and the normal error of the out-of-tolerance sampling points within the local compensation region includes: Determine the local compensation path based on the local compensation area; Based on the normal error of the out-of-tolerance sampling points within the local compensation area, the tool compensation amount along the theoretical model normal of the workpiece is determined; The compensation depth information corresponding to the local compensation path is determined based on the tool compensation amount; The local compensation data is determined based on the local compensation path and the compensation depth information.
[0016] According to one embodiment of the present invention, before determining the local compensation data based on the local compensation path and the compensation depth information, the method further includes: The local compensation path is smoothed. The processing order of each local compensation path is determined based on the spatial relationship between them.
[0017] According to one embodiment of the present invention, the compensation processing of the local compensation region based on the local compensation data includes: A local compensation processing subroutine is generated based on the local compensation data; The CNC system is controlled to execute a local compensation machining subroutine, causing the tool and workpiece to move relative to each other along the local compensation path, and to perform compensation machining on the local compensation area according to the corresponding tool compensation amount.
[0018] The above-described one or more technical solutions in the embodiments of the present invention have at least one of the following technical effects: By splitting the position signals of each motion axis of the machine tool, the first position feedback signal is used for motion control of the CNC system, and the second position feedback signal is used for synchronous sampling with the workpiece surface topography signal. In this way, without affecting the original motion control of the machine tool, in-situ measurement data corresponding to coordinate sampling data and workpiece surface topography data can be obtained, thereby improving the synchronization and accuracy of in-situ measurement data.
[0019] Furthermore, the local error compensation method for machine tool in-situ measurement provided by the present invention also possesses the various advantages described above due to the machine tool in-situ measurement data acquisition method described above.
[0020] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention and are not considered as limitations on this application. Moreover, those skilled in the art can obtain other drawings based on these drawings without creative effort.
[0022] Figure 1 This is a flowchart of the steps of the machine tool in-situ measurement data acquisition method provided by the present invention.
[0023] Figure 2 This is a flowchart of the steps of the local error compensation method for in-situ measurement of machine tools provided by the present invention.
[0024] Figure 3 This is a schematic diagram of the machine tool provided by the present invention.
[0025] Figure 4 This is a schematic diagram of signal transmission for in-situ measurement data acquisition and local compensation machining of machine tools provided by the present invention.
[0026] Figure 5 This is a flowchart illustrating the local error compensation method for in-situ machine tool measurement provided by the present invention.
[0027] Figure label: 10. Machine tool; 20. Spindle; 30. Measuring sensor; 40. Workpiece. Detailed Implementation
[0028] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0029] The specific terms used in this specification are for illustrative purposes only and are not intended to limit the illustrated embodiments. For example, expressions such as "same" and "identical" not only indicate a strictly identical state, but also indicate a state with tolerances or differences in the degree of functionality. For example, expressions indicating relative or absolute arrangement such as "in a certain direction," "along a certain direction," "side by side," "perpendicular," "centered on," "concentric," or "coaxial" not only strictly indicate such an arrangement, but also indicate a state of relative displacement by tolerances or angles or distances with the same degree of functionality.
[0030] The terms “center,” “longitudinal,” “lateral,” “length,” “width,” “thickness,” “upper,” “lower,” “front,” “rear,” “left,” “right,” “vertical,” “horizontal,” “top,” “bottom,” “inner,” “outer,” “clockwise,” “counterclockwise,” “axial,” “radial,” and “circumferential” indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the present invention and simplifying the description, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limiting the present invention.
[0031] Furthermore, features specified as "first" or "second" may explicitly or implicitly include one or more of those features. In the description of this invention, unless otherwise stated, "multiple" means two or more. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly specified. In the description of the embodiments of this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, B1 and / or B2 can represent: B1 existing alone, B1 and B2 existing simultaneously, and B2 existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0032] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0033] The following is combined Figures 1 to 5 This invention describes a machine tool in-situ measurement data acquisition method for in-situ machine tool measurement. The machine tool 10 can be an ultra-precision machine tool, a precision machine tool, or a multi-axis CNC machine tool, etc. In this embodiment, an ultra-precision machine tool is used as an example for description.
[0034] The machine tool 10 is equipped with a numerical control system and a data acquisition system. The numerical control system is used to maintain motion control of each motion axis based on the position feedback signals of each motion axis of the machine tool 10. The data acquisition system is used to collect signals related to the motion position of the machine tool 10 and signals related to the surface morphology of the workpiece 40, and to generate in-situ measurement data for error analysis and compensation machining.
[0035] In some embodiments, the motion axes of the machine tool 10 include linear motion axes and rotary motion axes. Linear motion axes may include the X-axis, Y-axis, and Z-axis, and rotary motion axes may include the C-axis. The position signals of each motion axis can be feedback signals output by corresponding linear encoders, encoders, or other position feedback elements. Specifically, the position signals of the X-axis, Y-axis, and Z-axis can be linear encoder feedback signals, and the position signal of the C-axis can be an encoder feedback signal.
[0036] like Figure 3 As shown, the X-axis represents the left-right direction, the Z-axis represents the up-down direction, the Y-axis represents the front-back direction, and the C-axis represents the rotation direction of the workpiece 40 around the vertical axis.
[0037] The data acquisition system includes an industrial control computer and a data acquisition card connected to it. The data acquisition system is independently configured from the CNC system, allowing each system to receive signals from different branches. Signals are directly connected to the independent industrial control computer's data acquisition card, eliminating the need for signal control boxes as intermediaries. This allows the data acquisition system to directly acquire position feedback signals from each motion axis, forming data acquisition channels for measurement. The separate configuration of these data acquisition channels from the CNC system's motion control channels reduces delays and synchronization errors caused by signal relay.
[0038] The machine tool 10 is also equipped with a measuring sensor 30, which is used to measure the surface morphology of the workpiece 40. The measuring sensor 30 can be a spectral confocal displacement sensor or a laser displacement sensor, etc. In this embodiment, the measuring sensor 30 is a spectral confocal displacement sensor.
[0039] In some embodiments, the spectral confocal displacement sensor is fixedly mounted on the side of the spindle 20 housing of the machine tool 10 and spaced apart from the tool clamping mechanism. During measurement, there is no need to reassemble and disassemble the measuring sensor 30, nor to rearrange the signal lines. Therefore, after the machine tool 10 completes semi-finishing, in-situ measurement can be performed directly without disassembling the tool or changing the clamping state of the workpiece 40, reducing measurement deviations caused by secondary clamping.
[0040] Reference Figures 1-5 The machine tool in-situ measurement data acquisition method in this embodiment includes: S100: Acquire the position signals of each motion axis of the machine tool 10, perform split processing on the position signals, and form a first position feedback signal and a second position feedback signal; S200: The first position feedback signal is transmitted to the CNC system, and the CNC system maintains motion control of each motion axis according to the first position feedback signal; S300: Transmit the second position feedback signal to the data acquisition system, and enable the data acquisition system to synchronously sample the second position feedback signal and the surface morphology signal of the workpiece 40, so as to obtain the in-situ measurement data corresponding to the coordinate sampling data of each motion axis and the surface morphology data of the workpiece 40 at the same sampling time.
[0041] During in-situ measurement on machine tool 10, position signals of each motion axis of machine tool 10 are acquired. These position signals represent the position changes of each motion axis. The position signals are then split into two parallel position feedback signals: a first position feedback signal and a second position feedback signal, each representing the position signals of the same motion axis.
[0042] The first position feedback signal is transmitted to the existing CNC system of machine tool 10. The CNC system performs closed-loop control on each motion axis of machine tool 10 based on the first position feedback signal to maintain the motion control capability of machine tool 10. In other words, after the position signal is processed by splitting, one of the signals is still used for the motion control of the CNC system. This ensures that the original machining control logic of machine tool 10 is not affected and maintains the normal operation of machine tool 10.
[0043] The second position feedback signal is transmitted to the data acquisition system, which also receives the surface topography signal of workpiece 40. The surface topography signal of workpiece 40 can be a surface displacement signal, height signal, or distance signal output by the measuring sensor 30. The data acquisition system synchronously samples the second position feedback signal and the surface topography signal of workpiece 40.
[0044] Through synchronous sampling, the data acquisition system can acquire coordinate sampling data of each motion axis and surface topography data of workpiece 40 at the same sampling time. After acquiring the second-channel position feedback signal, the data acquisition system converts it into coordinate sampling data of the corresponding motion axis according to the feedback element parameters of the corresponding motion axis. After acquiring the surface topography signal of workpiece 40, the data acquisition system converts it into surface topography data of workpiece 40 according to the measurement parameters of the measuring sensor 30. Thus, the coordinate sampling data is obtained through the conversion of the second-channel position feedback signal, and the surface topography data of workpiece 40 is obtained through the conversion of the surface topography signal of workpiece 40. Since both correspond to the same sampling time, in-situ measurement data corresponding to the coordinate sampling data of each motion axis and the surface topography data of workpiece 40 can be formed.
[0045] In other words, each set of in-situ measurement data obtained by the data acquisition system includes the sampling time, the coordinate sampling data of each motion axis, and the surface morphology data of the workpiece 40 measured at that sampling time, thereby establishing the correspondence between the motion position of the machine tool 10 and the surface morphology of the workpiece 40.
[0046] In some embodiments, the splitting process can be implemented using a pulse signal distributor, a signal splitting module, or an interface board with signal replication output functionality. For example, when the position signal of the motion axis is a pulse feedback signal, it can be split into two paths using a pulse signal distributor. One path is transmitted to the CNC system, and the other is transmitted to the data acquisition system. The first and second position feedback signals originate from the same position signal, thus both can reflect the position change of the same motion axis under the same motion state.
[0047] In some embodiments, enabling the data acquisition system to simultaneously sample the second position feedback signal and the workpiece 40 surface topography signal includes: The basic sampling frequency of the data acquisition system is determined based on the dimensions of the surface to be measured on workpiece 40, the rotational speed of workpiece 40, and the preset recognition length. Based on the basic sampling frequency, the control data acquisition system synchronously samples the second position feedback signal and the surface morphology signal of the workpiece 40.
[0048] The dimensions of the surface to be measured on workpiece 40 can be its diameter, radius, width, or other dimensional parameters that characterize the measurement range. The rotational speed of workpiece 40 can be the rotational speed of workpiece 40 as it rotates with the rotary axis, or the rotational speed of workpiece 40 when it is placed on the rotary table of machine tool 10. The preset recognition length can be the minimum feature length that needs to be recognized on the surface to be measured on workpiece 40, such as the minimum arc length or the minimum sampling interval.
[0049] After determining the basic sampling frequency, the data acquisition system is controlled to synchronously sample the second position feedback signal and the surface morphology signal of the workpiece 40 according to the basic sampling frequency, so as to obtain the in-situ measurement data in the initial stage.
[0050] Alternatively, the base sampling frequency can be determined according to the following model: in, Based on the sampling frequency, The workpiece rotates at a speed of 40. The maximum diameter of the surface to be measured on the workpiece is 40 mm. This is the preset recognition length.
[0051] For example, with a maximum diameter of 500 mm for the surface to be measured of workpiece 40, a rotation speed of 1.67 revolutions per second for workpiece 40, and a preset recognition length of 1 mm, the basic sampling frequency can be obtained as approximately 2622 Hz.
[0052] In some embodiments, during the process of controlling the data acquisition system to synchronously sample the second position feedback signal and the workpiece 40 surface morphology signal according to the basic sampling frequency, the method further includes: The surface morphology gradient of workpiece 40 is determined based on the obtained surface morphology data of workpiece 40. The basic sampling frequency is dynamically adjusted based on the surface morphology gradient of the workpiece 40 to obtain the adjusted sampling frequency. According to the adjusted sampling frequency, the control data acquisition system continues to synchronously sample the second position feedback signal and the surface morphology signal of the workpiece 40.
[0053] During the sampling process, the data acquisition system can acquire surface morphology data of workpiece 40 in real time or in segments. Based on the changes in surface morphology data of workpiece 40 at adjacent sampling points and the spatial distance between adjacent sampling points, the surface morphology gradient of workpiece 40 can be determined. The surface morphology gradient of workpiece 40 can show the degree of change in the surface morphology of workpiece 40 within a local area.
[0054] Then, the basic sampling frequency is dynamically adjusted according to the surface morphology gradient of workpiece 40, thereby realizing the dynamic adjustment of the sampling frequency during the online detection process. The data acquisition system continues to synchronously sample the second position feedback signal and the surface morphology signal of workpiece 40 according to the adjusted sampling frequency, so as to realize the adaptive adjustment of the sampling frequency.
[0055] In some embodiments, dynamically adjusting the base sampling frequency based on the surface topography gradient of the workpiece 40 includes: In the region where the surface morphology gradient of workpiece 40 is less than the preset gradient threshold, sampling is performed according to the basic sampling frequency. In the region where the surface morphology gradient of workpiece 40 is greater than or equal to the preset gradient threshold, sampling is performed at a sampling frequency greater than the basic sampling frequency.
[0056] When the surface morphology gradient of workpiece 40 is less than the preset gradient threshold, sampling is performed at the basic sampling frequency to meet the sampling requirements corresponding to the preset recognition length. When the surface morphology gradient of workpiece 40 is greater than or equal to the preset gradient threshold, the sampling density is increased based on the basic sampling frequency. This allows for adjustment of the sampling frequency according to the surface morphology changes of workpiece 40, while meeting the preset recognition length requirements. It avoids excessively high sampling frequencies in flat areas and obtains more sampling data in areas with significant morphology changes, thereby ensuring measurement accuracy and efficiency.
[0057] Alternatively, the sampling frequency can be adjusted according to the following model: in, To adjust the sampling frequency, Based on the sampling frequency, This is a dynamic coefficient.
[0058] Alternatively, the dynamic coefficients can be determined according to the following model: in, The preset frequency adjustment coefficient, It can be set within the range of 0 to 1 according to process requirements. This is the surface gradient magnitude of the workpiece surface at the current sampling point, which is the absolute value of the slope. This is the preset maximum surface gradient threshold, which corresponds to the gradient value of the steepest region of workpiece 40.
[0059] In some embodiments, a dynamic coefficient can be determined based on the surface topography gradient of the workpiece 40, and an adjustable sampling frequency can be determined based on the base sampling frequency and the dynamic coefficient. The dynamic coefficient can be related to the surface topography gradient of the workpiece 40 at the current sampling point; the larger the surface topography gradient of the workpiece 40, the larger the dynamic coefficient; the smaller the surface topography gradient of the workpiece 40, the smaller the dynamic coefficient. The dynamic coefficient can also be determined based on a preset frequency adjustment coefficient and a preset maximum surface gradient threshold, etc. Thus, the sampling frequency can be dynamically adjusted within a range not lower than the base sampling frequency.
[0060] In some embodiments, before obtaining in-situ measurement data corresponding to the coordinate sampling data of each motion axis at the same sampling time and the surface topography data of the workpiece 40, the method further includes: Based on the machine tool coordinate system parameters in the CNC system, the coordinate sampling data of each motion axis obtained by the data acquisition system are initialized and calibrated.
[0061] Machine tool coordinate system parameters may include at least one of the following: coordinate origin, axial direction, proportional coefficient, offset parameter, and geometric relationship parameters between each motion axis. After the data acquisition system obtains the coordinate sampling data of each motion axis based on the second position feedback signal, it can initialize and calibrate the coordinate sampling data according to the machine tool coordinate system parameters in the CNC system, so that the coordinate sampling data in the data acquisition system matches the coordinate reference in the CNC system.
[0062] By performing initial calibration, the problem of inconsistent coordinate references caused by different acquisition links between the data acquisition system and the CNC system can be avoided, ensuring that the in-situ measurement data obtained subsequently can accurately reflect the correspondence between the surface topography data of the workpiece 40 and the motion coordinates of the machine tool 10.
[0063] In some embodiments, the process of generating in-situ measurement data further includes: The coordinate sampling data of each motion axis is compared with the corresponding coordinate data in the CNC system according to a preset cycle to check for deviation. When the deviation exceeds the preset deviation threshold, pause synchronous sampling and re-execute the initialization calibration.
[0064] The preset period can be a fixed time interval or a fixed number of sampling points, etc. In this embodiment, the preset period is the period corresponding to each rotation of the workpiece 40 during the measurement process. Within each preset period, the data acquisition system compares the obtained coordinate sampling data of each motion axis with the corresponding coordinate data in the CNC system to determine whether the coordinate sampling data has accumulated deviations.
[0065] Synchronous sampling continues as long as the deviation does not exceed the preset deviation threshold. If the deviation exceeds the preset deviation threshold, synchronous sampling is paused, and initialization calibration is re-executed. After recalibration, in-situ measurement data acquisition continues, thereby improving the reliability of coordinate sampling data during long-term in-situ measurements.
[0066] In summary, the machine tool in-situ measurement data acquisition method provided in this embodiment, by splitting the position signals of each motion axis of the machine tool 10, allows the first position feedback signal to be used for motion control of the CNC system, while the second position feedback signal enters the data acquisition system. The data acquisition system then synchronously samples the second position feedback signal and the workpiece 40 surface topography signal, thereby obtaining in-situ measurement data corresponding to the coordinate sampling data of each motion axis and the workpiece 40 surface topography data at the same sampling moment. This ensures that the workpiece 40 surface topography data can be accurately correlated with the corresponding machine tool 10 coordinate position. While maintaining the original motion control mode of the machine tool 10, synchronous acquisition of coordinate data and workpiece 40 surface topography data is achieved, reducing data correspondence errors caused by inconsistent sampling times and improving the synchronization and accuracy of the in-situ measurement data.
[0067] The following is combined Figures 1 to 5 The method for local error compensation in machine tool in-situ measurement according to the present invention includes the aforementioned machine tool in-situ measurement data acquisition method, and further includes: S400: Determine the measured surface point cloud of workpiece 40 based on in-situ measurement data; S500: Perform coordinate registration between the measured surface point cloud and the theoretical model of workpiece 40 to determine the normal error of each sampling point relative to the theoretical model of workpiece 40. S600: Determine the set of out-of-tolerance sampling points based on each normal error, and determine the local compensation area based on the continuously distributed out-of-tolerance sampling points in the set of out-of-tolerance sampling points; S700: Determine local compensation data based on the local compensation area and the normal error of the out-of-tolerance sampling points within the local compensation area; S800: Performs compensation processing on the local compensation area based on local compensation data.
[0068] Before performing in-situ measurements, a measurement program can be generated based on the theoretical model of workpiece 40. The CNC system controls the movement of each motion axis of the machine tool 10 according to the measurement program, and the data acquisition system synchronously samples the second position feedback signal and the surface morphology signal of workpiece 40 at a determined sampling frequency, thereby completing the in-situ measurement of the surface morphology of workpiece 40.
[0069] In-situ measurement data includes coordinate sampling data of each motion axis at the same sampling time and corresponding workpiece 40 surface topography data. Based on the coordinate sampling data of each motion axis, the spatial position of the sampling point in the machine tool coordinate system or workpiece coordinate system can be determined; based on the corresponding workpiece 40 surface topography data, the measured surface height, displacement, or topography value at that sampling point can be determined. Combining the spatial positions of multiple sampling points with their corresponding workpiece 40 surface topography data yields the measured surface point cloud of workpiece 40.
[0070] Then, the measured surface point cloud is registered with the theoretical model of workpiece 40. The theoretical model of workpiece 40 can be a theoretical three-dimensional model established based on the design data of workpiece 40. Coordinate registration refers to placing the measured surface point cloud and the theoretical model of workpiece 40 in the same coordinate system and determining the theoretical positions of the sampling points in the measured surface point cloud on the theoretical model of workpiece 40.
[0071] After coordinate registration is completed, the normal error of each sampling point relative to the theoretical model of workpiece 40 is determined. Specifically, for a sampling point, the corresponding theoretical point is found on the theoretical model of workpiece 40, and the normal direction at that theoretical point is determined. Then, the deviation of the sampling point relative to that theoretical point along the normal direction is calculated, and this deviation is the normal error of that sampling point.
[0072] Alternatively, the normal error can be determined according to the following model: ΔZi=ΔZ 实测,i -ΔZ 理论,i Where ΔZi is the normal error at the i-th point, ΔZ 实测,i ΔZ represents the measured surface height. 理论,i This represents the theoretical surface height.
[0073] In addition, the normal error can also be determined according to the following model: E i =(P i -Q i )n i Among them, E i Let P be the normal error of the i-th sampling point. i Let Q be the measured position of the i-th sampling point. i Let n be the theoretical position of the i-th sampling point on the theoretical model of workpiece 40. i For the theoretical position Q i The normal direction at that location.
[0074] In some embodiments, after determining the normal error of each sampling point, it can be first determined whether the surface morphology of the workpiece 40 meets the preset accuracy requirements. When the normal error of each sampling point meets the preset accuracy requirements, the measurement process can be terminated. When there is a sampling point where the normal error exceeds the preset error threshold, the local error compensation process is then initiated.
[0075] The set of out-of-tolerance sampling points is determined based on the normal error of each sampling point. Specifically, a preset error threshold can be set, and sampling points whose normal error exceeds the preset error threshold are identified as out-of-tolerance sampling points. Multiple out-of-tolerance sampling points form an out-of-tolerance sampling point set. The preset error threshold can be set according to the machining accuracy requirements of the workpiece 40, but this embodiment does not impose any restrictions.
[0076] After determining the set of out-of-tolerance sampling points, continuously distributed out-of-tolerance sampling points are identified based on the spatial relationship between them. For a group of spatially adjacent or continuously distributed out-of-tolerance sampling points, it is defined as a local compensation region. One or more local compensation regions can be formed on the surface of a workpiece.
[0077] Subsequently, local compensation data is determined based on the local compensation area and the normal error of the out-of-tolerance sampling points within the local compensation area, and the local compensation area is then compensated based on the local compensation data.
[0078] In some embodiments, determining local compensation data based on the local compensation region and the normal error of out-of-tolerance sampling points within the local compensation region includes: Determine the local compensation path based on the local compensation area; Based on the normal error of the out-of-tolerance sampling points within the local compensation area, determine the tool compensation amount along the theoretical model normal of the workpiece 40. Determine the compensation depth information corresponding to the local compensation path based on the tool compensation amount; Local compensation data is determined based on local compensation path and compensation depth information.
[0079] The local compensation path can be determined based on the boundary of the local compensation area, or it can be determined by combining the distribution of out-of-tolerance sampling points within the local compensation area. The local compensation path is used to represent the movement path of the tool within the local compensation area.
[0080] In some embodiments, after determining the local compensation region, the region boundary of the local compensation region can be determined based on the outer contour of the continuously distributed out-of-tolerance sampling points, and the compensation depth information can be determined based on the normal error of the out-of-tolerance sampling points within the local compensation region. Subsequently, a set of compensation paths can be generated based on the region boundary and the compensation depth information. The set of compensation paths may include one or more local compensation paths, and the compensation depth information corresponding to each local compensation path.
[0081] Based on the normal error of the out-of-tolerance sampling points within the local compensation area, the tool compensation amount along the theoretical model normal of the workpiece 40 is determined. The tool compensation amount represents the amount of machining compensation required at the corresponding position. Specifically, the tool compensation amount can be determined based on the direction and magnitude of the normal error, so that the compensation machining is performed in the direction of reducing the error.
[0082] For example, when a certain out-of-tolerance sampling point is higher than the theoretical model of the workpiece 40, a tool compensation amount opposite to the direction of the deviation can be determined; when a certain out-of-tolerance sampling point is lower than the theoretical model of the workpiece 40, a compensation amount in the opposite direction can also be determined according to the direction of the deviation.
[0083] Alternatively, the tool compensation amount can be determined based on the following model: ΔCi=-ΔZi×η Where ΔCi is the tool compensation amount corresponding to the i-th out-of-tolerance sampling point, ΔZi is the normal error of the i-th out-of-tolerance sampling point, and η is the compensation coefficient. The compensation coefficient η can be set according to tool wear, machine tool thermal deformation, workpiece material, or machining experience to reduce the occurrence of reverse out-of-tolerance errors after compensation.
[0084] Based on the tool compensation amount, the compensation depth information corresponding to the local compensation path can be determined. The compensation depth information can include the compensation depth corresponding to each path point on the local compensation path, or it can include a continuous compensation depth distribution formed by interpolating the tool compensation amounts of multiple out-of-tolerance sampling points. Based on the local compensation path and compensation depth information, local compensation data can be determined. Local compensation data can include the local compensation path, path point coordinates, compensation depth information, and machining parameters related to the compensation machining process.
[0085] In some embodiments, before determining the local compensation data based on the local compensation path and compensation depth information, the method further includes: Smooth the local compensation path; The processing sequence of each local compensation path is determined based on the spatial relationship between them.
[0086] Before determining the local compensation data based on the local compensation path and compensation depth information, the local compensation path can be smoothed. Smoothing can include applying circular arc transitions, spline interpolation, or filtering to angles, abrupt changes, or significant curvature variations between adjacent path segments in the local compensation path. Smoothing makes the local compensation path more continuous, facilitating machining on the machine tool 10.
[0087] When multiple local compensation paths exist, their machining sequence can be determined based on their spatial relationships. For example, the machining sequence of multiple local compensation paths can be determined based on their start and end points, the distance between paths, or the direction of movement of the machine tool 10. After determining the machining sequence, corresponding local compensation data can be generated according to that sequence.
[0088] In some embodiments, performing compensation processing on the local compensation region based on local compensation data includes: Generate a local compensation processing subroutine based on the local compensation data; The control CNC system executes a local compensation machining subroutine, causing the tool and workpiece 40 to move relative to each other along the local compensation path, and performs compensation machining on the local compensation area according to the corresponding tool compensation amount.
[0089] The local compensation machining subroutine can be a CNC machining subroutine adapted to the CNC system. The local compensation machining subroutine can include the local compensation path, compensation depth information, tool compensation amount and corresponding machining parameters.
[0090] The CNC system executes a local compensation machining subroutine. When the CNC system executes this local compensation machining subroutine, it moves the tool or workpiece 40 along the local compensation path and performs compensation machining on the local compensation area according to the corresponding tool compensation amount.
[0091] In some embodiments, a local compensation machining subroutine can be encapsulated as an independent subroutine, which the original main machining program can call to perform compensation machining on the local compensation area. The local compensation machining subroutine may only contain the compensation path, compensation depth information, and machining parameters for the corresponding local compensation area, without including the full machining path for the entire workpiece. This reduces repetitive machining of qualified areas.
[0092] In some embodiments, after the compensation machining is completed, the above-described machine tool in-situ measurement data acquisition method can be executed again to obtain the compensated in-situ measurement data. Based on the compensated in-situ measurement data, the measured surface point cloud of the workpiece 40 can be re-determined, and it can be determined whether the surface morphology of the compensated workpiece 40 meets the preset accuracy requirements. When the surface morphology of the compensated workpiece 40 meets the preset accuracy requirements, the compensation process ends; when the surface morphology of the compensated workpiece 40 still does not meet the preset accuracy requirements, a new local compensation area can be determined based on the compensated in-situ measurement data, and the compensation machining can be executed again.
[0093] In some embodiments, a compensation algorithm module can run within the industrial control computer. This module determines the measured surface point cloud, normal error, local compensation area, and local compensation data based on in-situ measurement data, and generates a local compensation machining subroutine based on the local compensation data. After generating the local compensation machining subroutine, the industrial control computer can transmit it to the CNC system. The CNC system executes the local compensation machining subroutine to perform compensation machining on the local compensation area.
[0094] In summary, the embodiments of the present invention determine the measured surface point cloud and normal error based on in-situ measurement data, and determine the local compensation area based on the out-of-tolerance sampling points, generating local compensation data and local compensation processing subroutines, thereby realizing in-situ identification and local compensation processing of the surface topography error of workpiece 40.
[0095] Finally, it should be noted that any content not described in detail in this embodiment can be implemented using conventional techniques known to those skilled in the art, and will not be elaborated upon here. The above embodiments are only for illustrating the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the embodiments, those skilled in the art should understand that various combinations, modifications, or equivalent substitutions of the technical solutions of the present invention do not depart from the spirit and scope of the technical solutions of the present invention and should all fall within the protection scope of the present invention.
Claims
1. A method for acquiring in-situ measurement data of a machine tool, characterized in that, The machine tool is equipped with a CNC system and a data acquisition system, and the method includes: The position signals of each motion axis of the machine tool are acquired, and the position signals are processed by splitting to form a first position feedback signal and a second position feedback signal. The first position feedback signal is transmitted to the CNC system, and the CNC system maintains motion control of each motion axis according to the first position feedback signal. The second position feedback signal is transmitted to the data acquisition system, and the data acquisition system simultaneously samples the second position feedback signal and the workpiece surface morphology signal to obtain in-situ measurement data corresponding to the coordinate sampling data of each motion axis and the workpiece surface morphology data at the same sampling time.
2. The machine tool in-situ measurement data acquisition method according to claim 1, characterized in that, The data acquisition system synchronously samples the second-channel position feedback signal and the workpiece surface topography signal, including: The basic sampling frequency of the data acquisition system is determined based on the size of the workpiece surface to be measured, the workpiece rotation speed, and the preset recognition length. According to the basic sampling frequency, the data acquisition system is controlled to synchronously sample the second position feedback signal and the workpiece surface morphology signal.
3. The machine tool in-situ measurement data acquisition method according to claim 2, characterized in that, In the process of controlling the data acquisition system to synchronously sample the second position feedback signal and the workpiece surface topography signal according to the basic sampling frequency, the method further includes: Determine the workpiece surface morphology gradient based on the obtained workpiece surface morphology data; The base sampling frequency is dynamically adjusted based on the surface topography gradient of the workpiece to obtain the adjusted sampling frequency. According to the adjusted sampling frequency, the data acquisition system is controlled to continue to synchronously sample the second position feedback signal and the workpiece surface morphology signal.
4. The machine tool in-situ measurement data acquisition method according to claim 3, characterized in that, Dynamically adjusting the basic sampling frequency based on the workpiece surface morphology gradient includes: In the region where the surface morphology gradient of the workpiece is less than a preset gradient threshold, sampling is performed according to the basic sampling frequency. In the region where the surface morphology gradient of the workpiece is greater than or equal to the preset gradient threshold, sampling is performed at a sampling frequency greater than the basic sampling frequency.
5. The machine tool in-situ measurement data acquisition method according to any one of claims 1-4, characterized in that, Before obtaining in-situ measurement data corresponding to the coordinate sampling data of each motion axis and the workpiece surface topography data at the same sampling time, the following steps are also included: Based on the machine tool coordinate system parameters in the CNC system, the coordinate sampling data of each motion axis obtained by the data acquisition system are initialized and calibrated.
6. The machine tool in-situ measurement data acquisition method according to claim 5, characterized in that, The process of generating the in-situ measurement data also includes: The coordinate sampling data of each motion axis is compared with the corresponding coordinate data in the CNC system according to a preset cycle to check for deviation. When the deviation exceeds the preset deviation threshold, the synchronous sampling is paused and the initialization calibration is re-executed.
7. A method for compensating for local errors in in-situ machine tool measurement, characterized in that, The method includes the machine tool in-situ measurement data acquisition method as described in any one of claims 1-6, wherein the method further includes: The measured surface point cloud of the workpiece is determined based on the in-situ measurement data; The measured surface point cloud is registered with the theoretical model of the workpiece to determine the normal error of each sampling point relative to the theoretical model of the workpiece. The set of out-of-tolerance sampling points is determined based on the normal error of each sampling point, and the local compensation region is determined based on the continuously distributed out-of-tolerance sampling points in the set of out-of-tolerance sampling points. Local compensation data is determined based on the local compensation region and the normal error of the out-of-tolerance sampling points within the local compensation region. The local compensation area is processed by compensating according to the local compensation data.
8. The method for local error compensation in in-situ measurement of machine tools according to claim 7, characterized in that, The local compensation data is determined based on the local compensation region and the normal error of the out-of-tolerance sampling points within the local compensation region, including: Determine the local compensation path based on the local compensation area; Based on the normal error of the out-of-tolerance sampling points within the local compensation area, the tool compensation amount along the theoretical model normal of the workpiece is determined; The compensation depth information corresponding to the local compensation path is determined based on the tool compensation amount; The local compensation data is determined based on the local compensation path and the compensation depth information.
9. The method for local error compensation in in-situ measurement of machine tools according to claim 8, characterized in that, Before determining the local compensation data based on the local compensation path and the compensation depth information, the method further includes: The local compensation path is smoothed. The processing order of each local compensation path is determined based on the spatial relationship between them.
10. The method for local error compensation in in-situ measurement of machine tools according to claim 8 or 9, characterized in that, The compensation processing of the local compensation area based on the local compensation data includes: A local compensation processing subroutine is generated based on the local compensation data; The CNC system is controlled to execute a local compensation machining subroutine, causing the tool and workpiece to move relative to each other along the local compensation path, and to perform compensation machining on the local compensation area according to the corresponding tool compensation amount.
