Machining error compensation method, machining equipment and storage medium
By setting measurement points in the CNC machining equipment for detection, calculating errors and adjusting the equipment coordinate system, the problem of processing parameters deviation in preset axle direction is solved, and the machining accuracy and product quality are improved.
Patent Information
- Application Number
- CN202411997349.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-15
AI Technical Summary
During the CNC machining process, the processing parameters in the preset axis direction have deviations or variations, resulting in a decrease in processing accuracy and poor product quality, which increases the scrap rate.
By setting the first measurement point and the second measurement point, the probe is detected, the error in the preset axis direction is calculated, the axial compensation value is determined based on the error, and the equipment coordinate system is adjusted to achieve compensation. In addition, the actual cutting parameter values are obtained through trial cutting processing, the length and radius compensation values of the tool are calculated, and the equipment is further adjusted to overcome tool errors.
It realizes compensation for the processing parameters of the processing equipment in the preset axis direction before product processing, reduces the generation of scrap products, and improves processing accuracy and product quality.
Smart Images

Figure CN119828590A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent manufacturing technology, and in particular to a processing error compensation method, processing equipment and storage medium. Background Art
[0002] In the process of production and processing using Computer Numerical Control (CNC) technology, deviations or variations in the processing parameters of the preset axis direction (or Z-axis direction) (usually refers to the direction perpendicular to the workpiece surface) may lead to a decrease in processing accuracy and product quality and an increase in product scrap rate. Summary of the invention
[0003] In view of this, the present application provides a machining error compensation method, machining equipment and storage medium to solve the problem that deviations or variations in machining parameters in a preset axis direction may lead to decreased machining accuracy and quality of processed products and increased product scrap rate.
[0004] A first aspect of an embodiment of the present application provides a processing error compensation method, which is applied to a processing device, wherein the processing device is electrically connected to a probe, and the processing error compensation method includes: if the target runout difference value of the probe is less than or equal to a preset runout error, controlling the probe to detect a first measuring point to obtain a first detection result, and controlling the probe to detect a second measuring point to obtain a second detection result; based on the device coordinate system of the processing device, calculating a first error in a preset axis direction according to the first detection result and a first reference coordinate value, and calculating a second error in the preset axis direction according to the second detection result and the second reference coordinate value; determining an axial compensation value of the processing device based on the first error and the second error; and adjusting the initial origin position of the device coordinate system in the preset axis direction according to the axial compensation value to obtain a first origin position.
[0005] In some embodiments, a tool is clamped on the spindle of the processing equipment, and the method further includes: controlling the tool to perform trial cutting on a test material to obtain an actual cutting parameter value; calculating a length compensation value and a radius compensation value of the tool based on the actual cutting parameter value and a corresponding theoretical parameter value; adjusting the first origin position of the device coordinate system in the preset axis direction according to the length compensation value to obtain a second origin position; and performing error compensation on the tool radius of the tool according to the radius compensation value to obtain a compensated tool radius.
[0006] In some embodiments, obtaining the actual cutting parameter value includes: using the probe to detect the cutting position of the trial cut material, obtaining the actual width of the cutting position and the actual length in the preset axis direction; and using the actual width and the actual length as the actual cutting parameter value.
[0007] In some embodiments, the theoretical parameter value includes a theoretical width and a theoretical length of the cutting position, and calculating the length compensation value and the radius compensation value of the tool based on the actual cutting parameter value and the corresponding theoretical parameter value includes: calculating the length compensation value based on the actual length and the theoretical length; calculating the radius compensation value based on the actual width and the theoretical width.
[0008] In some embodiments, the method also includes: if the spindle temperature of the processing equipment is greater than a preset temperature threshold, and the number of products processed using the processing equipment is greater than or equal to a first quantity threshold, rotating the probe multiple times according to a preset angle, and calculating the runout difference value of the probe corresponding to each rotation, including: controlling the movement of the probe so that the probe contacts a specified measuring point to obtain a contact signal of the probe; obtaining the runout difference value of the probe based on the contact signal; if the number of runout difference values obtained is equal to a second quantity threshold, determining the maximum difference value and the minimum difference value from all runout difference values; and calculating the target runout difference value based on the maximum difference value and the minimum difference value.
[0009] In some embodiments, calculating the first error in the preset axis direction based on the first detection result and the first reference coordinate value includes: obtaining the actual coordinate value of the first measuring point in the preset axis direction based on the first detection result; obtaining the reference coordinate value of the first measuring point in the preset axis direction based on the first reference coordinate value; calculating the first error based on the actual coordinate value and the reference coordinate value.
[0010] In some embodiments, determining the axial compensation value of the processing equipment based on the first error and the second error includes: if the absolute difference between the first error and the second error is less than or equal to a first threshold, and the average error value of the first error and the second error is less than or equal to a second threshold, using the average error value as the axial compensation value.
[0011] In some embodiments, the method further includes: if the absolute difference is greater than the first error, outputting an alarm signal, and returning to execute control of the probe to detect the first measuring point to obtain a first detection result.
[0012] A second aspect of an embodiment of the present application provides a processing device, including a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the above-mentioned processing error compensation method when executing the computer-readable instructions.
[0013] A third aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the above-mentioned machining error compensation method is implemented.
[0014] In a processing error compensation method provided in an embodiment of the present application, a first measuring point and a second measuring point are pre-set, and the probe is controlled to detect the first measuring point and the second measuring point respectively while overcoming the probe deflection error, and the first error and the second error in the preset axis direction are calculated according to the detection results. Based on the first error and the second error, the axial compensation value in the preset axis direction can be determined, and the initial origin position of the device coordinate system in the preset axis direction can be adjusted by using the axial compensation value to achieve compensation of the processing equipment in the preset axis direction. This method can be used to compensate for the processing parameters of the processing equipment in the preset axis direction before product processing, without the need to call additional detection equipment, thereby reducing the generation of scrapped products and reducing the scrap rate. In addition, this method detects through multiple measuring points, and calculates the axial compensation value, which can improve the accuracy of compensation value determination, improve processing accuracy, and improve the quality of subsequent processed products. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0016] Figure 1 This is an application scenario diagram of the processing error compensation method provided in an embodiment of the present application.
[0017] Figure 2 This is an example diagram of an application scenario of the processing error compensation method provided in an embodiment of the present application.
[0018] Figure 3 It is a schematic diagram of a trial cutting model provided in an embodiment of the present application.
[0019] Figure 4 It is another schematic diagram of a trial cutting model provided in an embodiment of the present application.
[0020] Figure 5 It is a structural schematic diagram of a machining error compensation device provided in an embodiment of the present application.
[0021] Figure 6 It is a structural schematic diagram of the processing equipment provided in the embodiment of the present application. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0023] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.
[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field in this application. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. It should be understood that, unless otherwise specified in this application, " / " means or. For example, A / B can represent A or B. "And / or" in this application is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, a, b and c seven situations.
[0025] The spindle of the processing equipment is a key component in the processing equipment. During the product processing of the processing equipment, the tool is installed on the spindle, and the processing equipment can drive the tool through the spindle to perform high-speed cutting and processing. Therefore, the dimensional accuracy of the spindle has an important influence on the processing accuracy of the product.
[0026] However, during the machining process, the spindle may lengthen due to thermal expansion and shorten due to cooling. This expansion and contraction phenomenon may cause the cutting point to shift during the machining process, resulting in deviations or variations in machining parameters (such as dimensions) in the preset axis direction during the machining process, affecting the machining accuracy.
[0027] In order to solve the above problems, the present application calculates the axial compensation value by setting the first measuring point and the second measuring point, and detecting the first measuring point and the second measuring point. The axial compensation value is used to compensate the processing parameters of the processing equipment in the preset axial direction, thereby overcoming the error of the processing parameters in the preset axial direction and improving the processing accuracy.
[0028] See also Figure 1 As shown in FIG. 1 , it is an application scenario diagram of the processing error compensation method provided in the embodiment of the present application. Figure 1 As shown, the processing device 100 includes a spindle 10. The processing device 100 is electrically connected to a probe 200, and the spindle 10 is detachably connected to a tool 300.
[0029] In the process of realizing the processing error compensation, if the target runout difference value of the probe 200 is less than or equal to the preset runout error, the processing equipment 100 controls the probe 200 to detect the first measuring point to obtain the first detection result, and controls the probe 200 to detect the second measuring point to obtain the second detection result. Based on the equipment coordinate system of the processing equipment 100, the processing equipment 100 calculates the first error in the preset axis direction according to the first detection result and the first reference coordinate value, and calculates the second error in the preset axis direction according to the second detection result and the second reference coordinate value. The processing equipment 100 determines the axial compensation value of the processing equipment 100 based on the first error and the second error. The processing equipment 100 adjusts the initial origin position of the equipment coordinate system in the preset axis direction according to the axial compensation value, so as to compensate or adjust the dimensional error of the processing equipment 100 in the preset axis direction before using the processing equipment 100 for processing, thereby helping to improve the processing accuracy of the processing equipment 100.
[0030] In addition, during the processing, the tool 300 may be worn or deformed, causing the size of the tool 300 to change, which may affect the processing accuracy of the processed product in the preset axial direction. Or when replacing a new tool 300, due to insufficient manufacturing accuracy of the new tool 300 itself or deviations during clamping, the processing accuracy of the processed product in the preset axial direction may also be affected.
[0031] In order to solve the above problem, the processing equipment 100 can control the tool 300 to perform a trial cutting process on the trial cutting material to obtain the actual cutting parameter value. The processing equipment 100 calculates the length compensation value of the tool 300 according to the actual cutting parameter value and the corresponding theoretical parameter value, and adjusts the first origin position of the device coordinate system in the preset axis direction according to the length compensation value. By overcoming the influence of the tool 300 on the processing accuracy, the processing accuracy can be further improved.
[0032] In some embodiments, the processing equipment 100 may be a device with data processing and control functions such as a CNC lathe, a CNC milling machine, a CNC machining center, etc.
[0033] In some embodiments, the spindle 10 and the tool 300 are detachably connected, and the processing equipment 100 drives the tool 300 through the spindle 10 to perform high-speed cutting and processing.
[0034] In some embodiments, the probe 200 is electrically connected to the processing equipment 100, and the detected signal can be sent to the processing equipment 100. The processing equipment 100 can set the relevant parameters of the probe 200, such as the type, trigger mode, and measurement range of the probe 200, to ensure that the probe 200 can work normally and meet the processing requirements. The probe 200 can be used to determine the position of the workpiece (or material, product) on the processing equipment 100 (or lathe), and to monitor and measure the size of the workpiece during the processing process to ensure that the size of the workpiece meets the design requirements.
[0035] In some embodiments, the probe 200 can be installed on the spindle 10, and the probe 200 can move with the movement of the spindle 10, so as to achieve comprehensive measurement of the processed product. In other embodiments, the probe 200 can also be spaced apart from the spindle 10. The embodiment of the present application does not limit the installation position of the probe 200.
[0036] Figure 1 The scenarios shown are only illustrative examples, and the processing error compensation method provided by the present application can also be applied in other scenarios. For example, in some scenarios, the processing equipment 100 and the probe 200 may be included, but the tool 300 is not included; in some scenarios, the processing equipment 100 and the tool 300 may be included, but the probe 200 is not included; in some scenarios, only the processing equipment 100 may be included, but the probe 200 and the tool 300 are not included; in some scenarios, other types of equipment may also be included. In summary, the embodiments of the present application do not limit the specific application scenarios of the processing error compensation method.
[0037] See also Figure 2 The figure is a flowchart of the implementation of the processing error compensation method provided in the embodiment of the present application. The method is applied to processing equipment. The embodiment of the present application is applied to the method in Figure 1The processing device 100 in FIG. 1 is used as an example for explanation. The method comprises the following steps. S11: If the target deflection difference value of the probe is less than or equal to the preset deflection error, control the probe to detect the first measuring point to obtain a first detection result, and control the probe to detect the second measuring point to obtain a second detection result.
[0038] In some embodiments, the probe may produce yaw or eccentricity during use due to various factors (such as temperature changes, mechanical vibrations, etc.), which may cause deviations in the detection results of the probe, affecting the accuracy of the subsequent calculation of the axial compensation value of the processing equipment, the length compensation value of the tool, and the radius compensation value using the probe detection results, thereby affecting the processing accuracy of the processing equipment.
[0039] In order to solve the above problem, in the process of realizing machining error compensation, the machining equipment can perform a deflection correction on the probe so that the target deflection difference value of the probe is less than or equal to the preset deflection error. The target deflection difference value indicates the deflection of the probe. The larger the target deflection difference value, the greater the deflection degree of the probe, and the greater the measurement error of the probe.
[0040] In some embodiments, in some embodiments, the preset runout error can be customized according to experience, industry standards, processing requirements, etc. For example, the preset runout error can be set to 0.01, 0.02, etc. The specific setting of the preset runout error is not limited in the embodiments of the present application.
[0041] In some embodiments, the deformation of the spindle of the processing equipment (for example, the shape of the spindle changes due to thermal expansion and contraction) may cause deviations in the processing parameters (for example, coordinates, etc.) of the preset axial direction, thereby affecting the processing accuracy. Therefore, in order to improve the processing accuracy, the processing equipment can calculate the axial compensation value of the preset axial direction, and based on the axial compensation value, perform error compensation for the deviation of the preset axial direction.
[0042] In some embodiments, the first measurement point and the second measurement point represent reference datum points for calculating the axial compensation value.
[0043] In some embodiments, the first measurement point and the second measurement point can be selected from a processing tool in a processing device.
[0044] In some embodiments, the first measurement point and the second measurement point may also be selected from other locations of the processing equipment, which is not limited in the embodiments of the present application.
[0045] In other embodiments, three or more measuring points may be selected to calculate the axial compensation value. Selecting multiple measuring points to participate in the calculation of the axial compensation value helps to improve the calculation accuracy of the axial compensation value, thereby being able to more accurately and effectively overcome the deviation of the preset axial direction caused by spindle deformation (such as changes in the spindle shape due to thermal expansion and contraction), thereby improving the processing accuracy of the processing equipment.
[0046] In some embodiments, the first detection result includes the position information of the first measurement point, for example, the position information of the first measurement point can be represented by the coordinates of the first measurement point in the device coordinate system. The second detection result includes the position information of the second measurement point, for example, the position information of the second measurement point can be represented by the coordinates of the second measurement point in the device coordinate system.
[0047] In other embodiments, the position information of the first measuring point and the position information of the second measuring point may also be represented in other ways, which is not limited in the embodiments of the present application.
[0048] In some embodiments of the present application, the processing equipment can calculate the target runout difference value in the following manner: if the spindle temperature of the processing equipment is greater than a preset temperature threshold, and the number of products processed using the processing equipment is greater than or equal to a first quantity threshold, the probe is rotated multiple times according to a preset angle, and the runout difference value of the probe corresponding to each rotation is calculated, including: controlling the movement of the probe so that the probe contacts a specified measuring point to obtain a contact signal of the probe; obtaining the runout difference value of the probe based on the contact signal; if the number of runout difference values obtained is equal to a second quantity threshold, determining the maximum difference value and the minimum difference value from all the runout difference values; and calculating the target runout difference value based on the maximum difference value and the minimum difference value.
[0049] In some embodiments, the designated measurement point represents a reference point for performing probe runout detection.
[0050] In some embodiments, a fixed point may be selected from a processing fixture of a processing device as a designated measurement point.
[0051] In other embodiments, the designated measurement point may also be determined from other positions of the processing equipment. The embodiment of the present application does not limit the specific selection of the designated measurement point.
[0052] In some embodiments, the preset angle can be set customarily. For example, the preset angle can be set to 90 degrees.
[0053] In some embodiments, the preset temperature threshold represents a set value for controlling the heating of the spindle. The preset temperature threshold can be customized according to factors such as the material characteristics of the processed product and the processing environment. For example, the preset temperature threshold can be set to 35 degrees.
[0054] In some embodiments, the first quantity threshold and the second quantity threshold can be set by user. For example, the first quantity threshold can be set to 10, and the second quantity threshold can be set to 4.
[0055] In other embodiments, if the spindle temperature is less than or equal to a preset temperature threshold, the processing equipment will call a warm-up program to warm up the spindle, so that the spindle temperature rises.
[0056] In other embodiments, if the number of products processed by the processing equipment is less than a first quantity threshold, the processing equipment continues to process the products until the number of products processed by the processing equipment is greater than or equal to the first quantity threshold, and the processing equipment performs probe deflection detection.
[0057] In some embodiments, if the target runout difference value is greater than a preset runout error, the processing equipment may output an alarm message, indicating that the probe has a large runout degree and needs to be adjusted.
[0058] Probe deflection detection and correction can ensure that the probe always maintains a stable working state during long-term processing, which helps to improve the accuracy of subsequent processing error compensation.
[0059] In some embodiments, to prevent errors, probe deflection detection is required after the probe / probe is replaced or repaired.
[0060] In some embodiments, the designated measurement point is required to be kept clean to prevent some impurities (such as aluminum chips, etc.) from affecting the detection accuracy.
[0061] In some embodiments, during the process of processing error compensation, the processing equipment can also set initial conditions in advance, determine the baseline state of the processing equipment before processing error compensation, and provide necessary parameters and basis for the processing error compensation process, thereby ensuring that the processing error compensation can be carried out according to the actual state of the processing equipment, thereby improving the accuracy and effectiveness of processing error compensation.
[0062] In some embodiments, the method of setting the initial conditions of the processing equipment includes but is not limited to: confirming that the processing equipment is in a stable and trouble-free state; setting the position and sensitivity of the temperature sensor, setting the reference reference point (such as a designated measurement point, a first measurement point, a second measurement point, etc.); setting the control method and control accuracy of the processing equipment; setting safety protection measures (such as an emergency stop button, a temperature alarm system, etc.). The specific method of setting the initial conditions is not limited in the embodiments of the present application.
[0063] In some embodiments, the processing equipment may count the number of products processed by the processing equipment. If the target runout difference value of the probe is less than or equal to the preset runout error, the processing equipment may reset the count corresponding to the number of products to zero.
[0064] S12: Based on the equipment coordinate system of the processing equipment, a first error in the preset axis direction is calculated according to the first detection result and the first reference coordinate value, and a second error in the preset axis direction is calculated according to the second detection result and the second reference coordinate value.
[0065] In some embodiments, the device coordinate system may be a coordinate system inherent to the processing device. The device coordinate system may establish a three-dimensional coordinate system with a fixed position on the processing device as the origin and the plane where the fixed position is located as the reference plane. In CNC programming, the device coordinate system may be represented and selected using G codes (e.g., G54, G55, etc.).
[0066] In some embodiments, the preset axis direction indicates a direction perpendicular to the plane where the workpiece is located, or indicates a direction perpendicular to the plane where the fixture is located. The preset axis direction may also be referred to as the Z-axis direction.
[0067] In some embodiments of the present application, a first error in a preset axis direction is calculated based on a first detection result and a first reference coordinate value, including: obtaining an actual coordinate value of a first measurement point in the preset axis direction based on the first detection result; obtaining a reference coordinate value of the first measurement point in the preset axis direction based on the first reference coordinate value; and calculating the first error based on the actual coordinate value and the reference coordinate value.
[0068] In some embodiments, the processing equipment may obtain the first error by calculating the difference between the actual coordinate value of the first measuring point in the preset axis direction and the reference coordinate value of the first measuring point in the preset axis direction.
[0069] In some embodiments of the present application, a second error in the preset axis direction is calculated based on the second detection result and the second reference coordinate value, including: obtaining the actual coordinate value of the second measurement point in the preset axis direction based on the second detection result; obtaining the reference coordinate value of the second measurement point in the preset axis direction based on the second reference coordinate value; and calculating the second error based on the actual coordinate value and the reference coordinate value.
[0070] In some embodiments, the processing equipment may obtain the second error by calculating the difference between the actual coordinate value of the second measuring point in the preset axis direction and the reference coordinate value of the second measuring point in the preset axis direction.
[0071] S13: Determine an axial compensation value of the processing equipment based on the first error and the second error.
[0072] In some embodiments of the present application, the axial compensation value of the processing equipment is determined based on the first error and the second error, including: if the absolute difference between the first error and the second error is less than or equal to the first threshold, and the average error of the first error and the second error is less than or equal to the second threshold, the average error is used as the axial compensation value.
[0073] In some embodiments, if the absolute difference is greater than a first threshold, the processing equipment may output an alarm signal to indicate that the dimensional deviation in the preset axis direction is too large.
[0074] In some embodiments, if the error average value is greater than a second threshold, an alarm signal is output to indicate that the dimensional deviation in the preset axis direction is too large.
[0075] In some embodiments, the production technician can check and adjust the processing equipment (such as the spindle in the processing equipment) according to the alarm signal, and after adjusting the processing equipment, the processing error compensation can be restarted. The processing equipment responds to the processing error compensation instruction, and when the target runout difference value of the probe is less than or equal to the preset runout error, the control probe is again executed to detect the first measurement point to obtain the first detection result, and the control probe is again executed to detect the second measurement point to obtain the second detection result. The control probe is executed to detect the first measurement point to obtain the first detection result.
[0076] In some embodiments, the first threshold and the second threshold can be calibrated according to experience, processing requirements, industry standards, etc. For example, the first threshold can be set to 0.01, and the second threshold can be set to 0.03. The specific settings of the first threshold and the second threshold are not limited in the embodiments of the present application.
[0077] S14: According to the axial compensation value, the initial origin position of the device coordinate system in the preset axis direction is adjusted to obtain a first origin position.
[0078] In some embodiments, after the processing equipment calculates the axial compensation value, it can compensate for the dimensional deviation in the preset axis direction by adjusting the initial origin position of the equipment coordinate system in the preset axis direction to overcome the dimensional deviation in the preset axis direction.
[0079] In the process of adjusting the initial origin position of the device coordinate system in the preset axis direction according to the axial compensation value to obtain the first origin position, the processing equipment obtains the instruction for setting the device coordinate system (such as G54, G55, etc.), and adjusts the initial origin position of the device coordinate system in the preset axis direction according to the axial compensation value. The processing equipment executes the adjusted device coordinate system instruction and performs processing according to the new coordinate system.
[0080] In other embodiments, the processing equipment can also compensate for the dimensional deviation in the preset axis direction caused by the thermal expansion and contraction of the spindle by increasing or decreasing the coordinate offset in the preset axis direction in the processing program. Specifically, after the processing equipment obtains the axial compensation value, it can write or modify the processing program. When writing or modifying the processing program, the processing equipment can increase or decrease the offset corresponding to the axial compensation value in the coordinate instruction in the preset axis direction according to the axial compensation value. The processing equipment executes the written or modified processing program and automatically adjusts the coordinates in the preset axis direction during the processing process to offset the dimensional error.
[0081] In other embodiments, after the processing equipment calculates the axial compensation value, it can also compensate for the dimensional deviation in the preset axial direction through tool length compensation to overcome the dimensional deviation in the preset axial direction. Specifically, after the processing equipment obtains the axial compensation value, the axial compensation value can be input into the tool length compensation register as the tool length compensation value. When the processing equipment controls the tool to perform the processing task, the coordinate value of the preset axial direction of the tool can be increased or decreased according to the corresponding axial compensation value, thereby compensating for the dimensional deviation in the preset axial direction.
[0082] In other embodiments, the processing equipment can also compensate for the dimensional error in the preset axis direction caused by the thermal expansion and contraction of the spindle in other ways. The embodiments of the present application do not limit the specific compensation method.
[0083] In some embodiments, the processing equipment may also be provided with a counter. After adjusting the initial origin position of the equipment coordinate system in the preset axis direction according to the axial compensation value and obtaining the first origin position, the processing equipment updates the counter. For example, the counter is incremented. By recording the number of processing error compensations, it is helpful to provide data reference for subsequent analysis of the performance of the processing equipment.
[0084] In the related art, usually after the product is processed, it is tested by using testing equipment. However, this method may easily produce scrapped products, and on the other hand, it may require repeated debugging and correction, which takes a long development cycle and affects production efficiency.
[0085] By using this method, before product processing, multiple measuring points can be used for detection, and the axial compensation value can be calculated to realize the compensation of the processing parameters of the processing equipment in the preset axial direction, without the need to call additional detection equipment, thereby reducing the generation of scrapped products and reducing the scrap rate. In addition, by detecting multiple measuring points and calculating the axial compensation value, the accuracy of compensation value determination can be improved, the processing accuracy can be improved, thereby avoiding repeated debugging and correction, shortening the development cycle, and effectively improving production efficiency.
[0086] During the processing, the tool may be worn or deformed, which may cause the size of the tool to change. The change in the size of the tool will cause errors between the actual cutting parameter value and the theoretical parameter value of the tool, thus affecting the processing quality and precision of the processed product. Or when replacing a new tool, the processing quality and precision of the processed product may also be affected due to the insufficient manufacturing precision of the new tool itself or deviations during clamping.
[0087] In order to solve the above problems, the processing equipment can realize automatic tool compensation by controlling the tool to perform trial cutting. The specific implementation is as follows: the processing equipment controls the tool to perform trial cutting on the trial cutting material to obtain the actual cutting parameter value; according to the actual cutting parameter value and the corresponding theoretical parameter value, the length compensation value and radius compensation value of the tool are calculated; according to the length compensation value, the first origin position of the equipment coordinate system in the preset axis direction is adjusted to obtain the second origin position; and according to the radius compensation value, the tool radius of the tool is compensated for the error to obtain the compensated tool radius.
[0088] In some embodiments, the material of the trial-cut material is the same as the material actually to be processed by the tool.
[0089] In some embodiments, a processed removed area may be found on the material to be processed as a trial cutting material for trial cutting.
[0090] In some embodiments, the actual cutting parameter values include but are not limited to the actual width of the cutting position obtained by the trial cutting of the test cutting material and the actual length of the cutting position in the preset axis direction. The theoretical parameter values include but are not limited to the theoretical width and theoretical length of the cutting position.
[0091] In some embodiments, the length of the cutting position can reflect the length of the tool in the direction of the preset axis. The width of the cutting position can reflect the diameter of the tool.
[0092] In some embodiments, the processing equipment can determine theoretical parameter values such as theoretical width and theoretical length of the cutting position according to engineering drawings or related requirements.
[0093] In some embodiments of the present application, obtaining the actual cutting parameter value includes: using a probe to detect the cutting position of the test material, obtaining the actual width of the cutting position and the actual length in the preset axis direction; and using the actual width and the actual length as the actual cutting parameter value.
[0094] As an example, after the processing equipment controls the tool to perform a test cutting process on the test cutting material, the cutting position of the test cutting material is as follows: Figure 3 or Figure 4As shown. The processing equipment controls the probe to detect the detection position A and the detection position C in the cutting position, and the lateral size of the cutting position can be obtained, thereby obtaining the actual width of the cutting position. The processing equipment controls the probe to detect the detection position B in the cutting position, and the size of the cutting position in the preset axis direction can be obtained, thereby obtaining the actual length of the cutting position.
[0095] In some embodiments, the processing equipment can control a probe to detect multiple positions in the cutting position to obtain the actual width of the cutting position and the actual length in the preset axis direction. The processing equipment can also use multiple probes to detect multiple positions in the cutting position to obtain the actual width of the cutting position and the actual length in the preset axis direction. The embodiments of the present application are not limited to this.
[0096] In some embodiments of the present application, the theoretical parameter values include the theoretical width and theoretical length of the cutting position. The processing equipment calculates the length compensation value and radius compensation value of the tool based on the actual cutting parameter values and the corresponding theoretical parameter values, including: calculating the length compensation value based on the actual length and the theoretical length; calculating the radius compensation value based on the actual width and the theoretical width.
[0097] In some embodiments, the processing equipment may determine the length compensation value by calculating the difference between the actual length and the theoretical length.
[0098] In some embodiments, the processing device calculates the radius compensation value according to the actual width and the theoretical width, including: the processing device calculates the width difference between the actual width and the theoretical width; and calculates the radius compensation value according to the width difference. The width difference can be used to represent the diameter difference between the actual diameter of the tool and the theoretical diameter.
[0099] In some embodiments, after the processing equipment calculates the length compensation value and radius compensation value of the tool, it can adjust the first origin position of the equipment coordinate system in the preset axis direction according to the length compensation value to obtain the second origin position, and perform error compensation on the tool radius of the tool according to the radius compensation value to obtain the compensated tool radius.
[0100] In some embodiments, during the process of using the tool for processing, the processing amount is different and the degree of wear of the tool is also different. Therefore, in order to realize automatic compensation of the tool during the processing process, the processing equipment can determine the frequency of trial cutting of the tool according to the processing amount of the tool, so as to determine the degree of wear of the tool under different processing amounts, and the corresponding compensation value (such as length compensation value and radius compensation value), so that when the tool is used for actual processing, the tool can be automatically compensated according to the processing amount of the tool. Through automatic compensation of the tool, the influence of tool wear on processing accuracy can be reduced, which helps to improve the quality of processed products. Automatic compensation of the tool can also reduce human intervention and correct human tool setting errors, thereby realizing unmanned machine adjustment.
[0101] In some embodiments of the present application, if the difference between the actual cutting parameter value of the tool and the theoretical parameter value is greater than the preset error, it means that the tool error is large. This may be caused by excessive tool wear or incorrect tool installation (for example, the tool is installed tilted, the tool installation position is offset, etc.), or even the wrong tool is installed. In this case, continuing to use the tool for processing may cause damage to the tool and processing equipment, and may even cause safety hazards, affecting production safety.
[0102] To avoid the above situation, when it is determined that the difference between the actual cutting parameter value and the theoretical parameter value of the tool is greater than the preset error, the processing equipment can output an alarm message to prompt the production technician to analyze and confirm the cause of the error, so as to avoid major losses due to wrong tool installation, incorrect tool installation or excessive tool wear, thereby playing a fool-proof role.
[0103] In some embodiments, in order to avoid the possibility that the tool and processing equipment may be damaged and production safety may be affected by continuing to use the tool for processing when the tool error is large, the processing equipment can calculate the length compensation value and radius compensation value of the tool according to the actual cutting parameter value and the corresponding theoretical parameter value when the difference between the actual cutting parameter value and the theoretical parameter value of the tool is less than or equal to the preset error, and automatically compensate the tool according to the length compensation value and the radius compensation value. When it is determined that the difference between the actual cutting parameter value and the theoretical parameter value of the tool is greater than the preset error, the processing equipment can terminate the automatic compensation of the tool. After the production technician confirms the cause of the error and adjusts or replaces the tool, the processing equipment can re-control the adjusted tool or the replaced tool to perform trial cutting processing on the test material, and automatically compensate the adjusted tool or the replaced tool.
[0104] In some embodiments, the preset error includes a preset length error and a preset width error. The difference between the actual cutting parameter value of the tool and the theoretical parameter value is greater than the preset error, including: the length difference between the actual length of the tool and the theoretical length is greater than the preset length error, and / or the width difference between the actual width of the tool and the theoretical width is greater than the preset width error. The difference between the actual cutting parameter value of the tool and the theoretical parameter value is less than or equal to the preset error, including: the length difference between the actual length of the tool and the theoretical length is less than or equal to the preset length error, and the width difference between the actual width of the tool and the theoretical width is less than or equal to the preset width error.
[0105] In some embodiments, the preset length error and the preset width error can be customized according to one or more of experience, industry standards, processing requirements, etc. For example, the preset length error can be set to 0.03, 0.04, etc. The preset width error can be set to 0.05, 0.06, etc. The embodiments of the present application do not limit the specific settings of the preset length error and the preset width error.
[0106] By utilizing this method, the machining accuracy can be improved and, when the tool is replaced, the accuracy of the replaced tool can be detected to avoid tool installation errors.
[0107] As an example, when a new product is set up on a large scale, each clamping position (a device for fixing and processing materials) on the production line is usually equipped with multiple tools to achieve continuous processing of multiple processes and improve production efficiency. Before processing the first batch of materials, the processing equipment can control each tool to perform trial cutting on the trial cutting materials and obtain the compensation value corresponding to each tool (including length compensation value and radius compensation value). The processing equipment compensates for the error caused by the processing tool during the processing according to the compensation value. After tool compensation, the processing equipment can send the first piece of processing material to the cutting position and start the formal processing process. Among them, the confirmation of the tool compensation value and the process of automatically adding the first piece of processing material are fast and efficient, which can effectively shorten the time of the production preparation stage and help to achieve rapid machine setting. In addition, by performing tool compensation before processing the first batch of materials, the processing accuracy of the first piece of processing material is guaranteed, thereby improving the yield of the first piece of processing material. The rapid and accurate process of the entire processing preparation and the confirmation of the first piece of processing material allows the production line to enter a stable production state faster, thereby helping to improve overall production efficiency.
[0108] In some embodiments, in order to avoid detection errors of the probe caused by various processing environment factors, during the trial cutting process, the processing parameters of all tools (such as feed rate, spindle speed, coordinates, cutting depth, etc.), tool processing strategies, and product processing procedures using the tools for product processing should be kept consistent.
[0109] In some embodiments, after the processing equipment obtains the length compensation value and radius compensation value of the tool, the tool compensation variable information can be set according to the corresponding relationship between the tool parameters (such as tool type, tool number) type, processing program, coordinate system, actual cutting parameter value, theoretical parameter value setting, length compensation value and radius compensation value of the tool, so as to query the tool-related information in the subsequent processing process. For example, query the length compensation value and radius compensation value of the tool according to the tool number.
[0110] In a processing error compensation method provided in an embodiment of the present application, on the one hand, the processing equipment pre-sets a first measuring point and a second measuring point, and controls the probe to detect the first measuring point and the second measuring point respectively under the condition of overcoming the probe deflection error, and calculates the first error and the second error in the preset axis direction according to the detection results. Based on the first error and the second error, the axial compensation value in the preset axis direction can be determined, and the initial origin position of the device coordinate system in the preset axis direction can be adjusted by using the axial compensation value to realize the compensation of the processing equipment in the preset axis direction. On the other hand, the processing equipment makes a tool to perform a trial cutting process on the trial cutting material to obtain the actual cutting parameter value. The processing equipment calculates the length compensation value of the tool according to the actual cutting parameter value and the corresponding theoretical parameter value, and adjusts the first origin position of the device coordinate system in the preset axis direction according to the length compensation value, thereby overcoming the influence of the tool on the processing accuracy in the preset axis direction. By using this method, the processing equipment can be compensated in the preset axis direction before the product is processed, without calling the detection equipment separately, thereby reducing the generation of scrapped products. In addition, this method detects through multiple measuring points, calculates the axial compensation value, and overcomes the error in the preset axis direction caused by tool wear or tool replacement, which can effectively improve the processing accuracy, avoid repeated debugging and correction, save the development cycle, and effectively improve production efficiency.
[0111] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0112] See also Figure 5 , Figure 5 The structure diagram of the machining error compensation device provided in the embodiment of the present application is shown, which can realize the details of the machining error compensation method in the above embodiment and achieve the same effect. Figure 5As shown, the processing error compensation device 500 can be applied to processing equipment with data processing function, and the processing error compensation device 500 includes: a detection module 501, which is used to control the probe to detect the first measuring point to obtain a first detection result if the target runout difference value of the probe is less than or equal to the preset runout error, and control the probe to detect the second measuring point to obtain a second detection result; a calculation module 502, which is used to calculate the first error in the preset axis direction according to the first detection result and the first reference coordinate value based on the equipment coordinate system of the processing equipment, and calculate the second error in the preset axis direction according to the second detection result and the second reference coordinate value; a determination module 503, which is used to determine the axial compensation value of the processing equipment based on the first error and the second error; a compensation module 504, which is used to adjust the initial origin position of the equipment coordinate system in the preset axis direction according to the axial compensation value to obtain the first origin position.
[0113] The specific definition of the machining error compensation device 500 can refer to the definition of the machining error compensation method above, which will not be repeated here. Each module in the above-mentioned machining error compensation device 500 can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the processing equipment in the form of hardware, or can be stored in the memory in the processing equipment in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0114] See also Figure 6 , Figure 6 The diagram is a schematic diagram of the structure of a processing device provided in an embodiment of the present application. The network where the processing device 100 is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.
[0115] like Figure 1 As shown, the processing device 100 includes a communication module 101, a memory 102, a processor 103, an input / output interface 104 and a bus 105. The processor 103 is coupled to the communication module 101, the memory 102 and the input / output interface 104 through the bus 105. The communication module 101 may be a wireless communication module or a mobile communication module. The wireless communication module may provide wireless communication solutions including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., applied to the processing equipment 100. The mobile communication module may provide wireless communication solutions including 2G / 3G / 4G / 5G, etc., applied to the processing equipment 100. The memory 102 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM). The random access memory can be directly read and written by the processor 103, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data. The random access memory may include static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally called DDR5 SDRAM), etc. The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 103. The non-volatile memory may include a disk storage device and a flash memory. The memory 102 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 103. The one or more computer programs include a plurality of instructions, and when the plurality of instructions are executed by the processor 103, a machining error compensation method executed on the machining device 100 can be implemented. In other embodiments, the processing device 100 further includes an external memory interface for connecting to an external memory to expand the storage capacity of the processing device 100 . The processor 103 may include one or more processing units, for example, the processor 103 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors. The processor 103 provides computing and control capabilities. For example, the processor 103 is used to execute a computer program stored in the memory 102 to implement the above-mentioned machining error compensation method. The input / output interface 104 is used to provide a channel for user input or output. For example, the input / output interface 104 can be used to connect various input and output devices, such as a mouse, keyboard, touch device, display screen, etc., so that the user can enter information or visualize information. The bus 105 is at least used to provide a channel for mutual communication among the communication module 101 , the memory 102 , the processor 103 , and the input / output interface 104 in the processing equipment 100 . It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the processing device 100. In other embodiments of the present application, the processing device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0116] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the processing error compensation method in the above-mentioned embodiments of the present application. The computer-readable storage medium may be an internal memory of the processing equipment described in the above embodiment, such as a hard disk or memory of the processing equipment. The computer-readable storage medium may also be an external storage device of the processing equipment, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the processing equipment. Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the processing equipment, etc.
[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A processing error compensation method, applied to processing equipment, characterized in that: The processing equipment is electrically connected to the probe, and the processing error compensation method includes: If the target deflection difference value of the probe is less than or equal to the preset deflection error, control the probe to detect the first measuring point to obtain a first detection result, and control the probe to detect the second measuring point to obtain a second detection result; Based on the equipment coordinate system of the processing equipment, calculating a first error in a preset axis direction according to the first detection result and a first reference coordinate value, and calculating a second error in the preset axis direction according to the second detection result and a second reference coordinate value; determining an axial compensation value of the processing equipment based on the first error and the second error; According to the axial compensation value, the initial origin position of the device coordinate system in the preset axis direction is adjusted to obtain a first origin position.
2. The machining error compensation method according to claim 1, characterized in that: A tool is clamped on the main shaft of the processing equipment, and the method further comprises: Controlling the tool to perform trial cutting on the test cutting material to obtain actual cutting parameter values; Calculating the length compensation value and radius compensation value of the tool according to the actual cutting parameter value and the corresponding theoretical parameter value; Adjusting the first origin position of the device coordinate system in the preset axis direction according to the length compensation value to obtain a second origin position; and Error compensation is performed on the tool radius of the tool according to the radius compensation value to obtain a compensated tool radius.
3. The machining error compensation method according to claim 2, characterized in that: The obtaining of actual cutting parameter values includes: Using the probe to detect the cutting position of the test-cut material, and obtaining the actual width of the cutting position and the actual length in the preset axis direction; The actual width and the actual length are used as the actual cutting parameter values.
4. The machining error compensation method according to claim 3, characterized in that: The theoretical parameter value includes the theoretical width and theoretical length of the cutting position, and the length compensation value and radius compensation value of the tool are calculated according to the actual cutting parameter value and the corresponding theoretical parameter value, including: Calculating the length compensation value according to the actual length and the theoretical length; The radius compensation value is calculated according to the actual width and the theoretical width.
5. The machining error compensation method according to claim 1, characterized in that: The method further comprises: If the spindle temperature of the processing equipment is greater than a preset temperature threshold, and the number of products processed by the processing equipment is greater than or equal to a first number threshold, the probe is rotated multiple times according to a preset angle, and the deflection difference value of the probe corresponding to each rotation is calculated, including: controlling the movement of the probe so that the probe contacts a specified measuring point, and obtaining a contact signal of the probe; obtaining the deflection difference value of the probe according to the contact signal; If the number of the obtained yaw difference values is equal to the second number threshold, determining a maximum difference value and a minimum difference value from all the yaw difference values; The target runout difference value is calculated according to the maximum difference value and the minimum difference value.
6. The machining error compensation method according to claim 1, characterized in that: The calculating a first error in a preset axis direction according to the first detection result and the first reference coordinate value includes: According to the first detection result, obtaining the actual coordinate value of the first measuring point in the preset axis direction; According to the first reference coordinate value, obtaining a reference coordinate value of the first measuring point in the preset axis direction; The first error is calculated according to the actual coordinate value and the reference coordinate value.
7. The machining error compensation method according to claim 1, characterized in that: The step of determining the axial compensation value of the processing equipment based on the first error and the second error includes: If the absolute difference between the first error and the second error is less than or equal to a first threshold, and the average value of the first error and the second error is less than or equal to a second threshold, the average value of the error is used as the axial compensation value.
8. The machining error compensation method according to claim 7, characterized in that: The method further comprises: If the absolute difference is greater than the first threshold, an alarm signal is output, and the control returns to execute control of the probe to detect the first measuring point to obtain a first detection result.
9. A processing equipment, characterized in that: It comprises a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the machining error compensation method according to any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the machining error compensation method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Driving method, controller and biopsy sampling device
CN120859567A
Method for detecting size of workpiece in CNC machine and automatically adjusting machine
CN122125543A