Data processing method and device, workpiece machining method and device and electronic equipment
By acquiring and fitting the detection data of the workpiece to determine the compensation value, adjusting the displacement of the grinding wheel for precise processing, the problem of low machining accuracy is solved and the processing accuracy and equipment stability is improved.
Patent Information
- Application Number
- CN202510388891.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-06-27
AI Technical Summary
The current processing method has the problem of low processing accuracy, mainly due to processing errors caused by wear and aging of the processing machine tools.
By obtaining the detection data of the target workpiece, determining the compensation data, and fitting the compensation data, obtaining the compensation value on the processing trajectory, and adjusting the grinding wheel displacement to achieve accurate processing of the workpiece.
It improves the machining accuracy of the workpiece, reduces machining errors, and enhances the stability and reliability of the processing equipment.
Smart Images

Figure CN120206404A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of numerical control machine tools, and particularly to a data processing method, a workpiece processing method, a device and an electronic device. Background Art
[0002] With the rapid development of the non-circular grinding processing industry, the accuracy of both processing equipment and detection equipment has been greatly improved.
[0003] However, in actual processing scenarios, the processing machine tool may have problems such as tool wear and aging, resulting in processing errors in the processed workpiece and affecting the accuracy of the processed workpiece. It can be seen that the current processing method still has the problem of low processing accuracy. Summary of the Invention
[0004] Embodiments of this application provide a data processing method, a workpiece processing method, a device and an electronic device, which can solve the problem of low processing accuracy of the processing method.
[0005] In a first aspect, embodiments of this application provide a data processing method, and the method includes:
[0006] Obtain first detection data of a target workpiece, where the first detection data includes dimension data obtained by detecting the target workpiece;
[0007] Determine compensation data for processing the target workpiece based on the first detection data;
[0008] Perform fitting processing on the compensation data to obtain compensation values at N positions on the processing trajectory of the target workpiece, where N is an integer greater than 0;
[0009] Send the compensation values at the N positions to a processing device, where the compensation values at the N positions are used to adjust the displacement of the grinding wheel in the normal direction at the contact point with the target workpiece and process the target workpiece according to the corresponding compensation values when the grinding wheel of the processing device processes to the N positions.
[0010] Optionally, the compensation data includes M compensation values corresponding to M positions on the processing trajectory of the target workpiece, where M is an integer greater than 0; the performing fitting processing on the compensation data to obtain compensation values at N positions on the processing trajectory of the target workpiece includes:
[0011] Perform fitting processing on the M compensation values corresponding to the M positions to obtain a compensation curve, where the compensation curve includes the corresponding relationship between the N positions and the N compensation values;
[0012] Obtain the N compensation values corresponding to the N positions based on the compensation curve.
[0013] Optionally, fitting the M compensation values corresponding to the M positions to obtain a compensation curve, including:
[0014] Obtaining M angular values corresponding to the M positions on the machining trajectory on the target workpiece, where the M angular values are the angles of rotation of M connecting lines between the M positions and the axis of the target workpiece relative to a reference line, and the reference line is the connecting line between a preset reference position on the machining trajectory and the axis;
[0015] Based on the corresponding relationship between the M angular values and the M compensation values, fitting the M compensation values to obtain a compensation curve, where the compensation curve includes the corresponding relationship between the N angular values and the N compensation values;
[0016] The obtaining the N compensation values corresponding to the N positions based on the compensation curve includes:
[0017] Based on the corresponding relationship between the N angular values and the N compensation values, obtaining the N compensation values corresponding to the N angular values.
[0018] Optionally, the M positions include a first position; the obtaining the M angular values corresponding to the M positions on the machining trajectory on the target workpiece includes:
[0019] Obtaining a first connecting line between the first position of the machining trajectory and the axis;
[0020] Determining the angular value of the rotation of the first connecting line relative to the reference line.
[0021] Optionally, before obtaining the first detection data of the target workpiece, the method further includes:
[0022] Setting a reference compensation value;
[0023] The obtaining the first detection data of the target workpiece includes:
[0024] Obtaining the first detection data after machining the target workpiece, where the first detection data is the detection data of the target workpiece obtained after adjusting the displacement of the grinding wheel according to the reference compensation value and machining the target workpiece, and the first detection data includes reference detection data corresponding to the reference compensation value;
[0025] The method further includes:
[0026] Determining the preset reference position of the target workpiece based on the reference detection data.
[0027] Optionally, determining compensation data for machining the target workpiece based on the first detection data includes:
[0028] Performing a negation operation on the value of the first detection data to obtain compensation data for machining the target workpiece.
[0029] In a second aspect, an embodiment of the present application provides a workpiece machining method, including:
[0030] Receiving a compensation value sent by a terminal device, where the compensation value is the compensation value of N positions on the machining trajectory of the target workpiece, the compensation values of the N positions are obtained by fitting the compensation data, the compensation data is determined based on the detection data of the target workpiece, and N is an integer greater than 0;
[0031] When machining the target workpiece to the N positions, adjusting the displacement of the grinding wheel in the normal direction at the contact point with the target workpiece according to the compensation value;
[0032] Machining the target workpiece based on the grinding wheel with the adjusted displacement.
[0033] Optionally, the compensation values corresponding to the N positions are the compensation values corresponding to the angular values of the N positions on the target workpiece;
[0034] Wherein, the angular value is the angular value of the connection lines between the N positions and the axis of the target workpiece rotating relative to the reference line, and the reference line is the connection line between the axis and a preset reference position on the machining trajectory.
[0035] In a third aspect, an embodiment of the present application provides a data processing device, the device includes:
[0036] An acquisition module, configured to acquire first detection data of a target workpiece, where the first detection data includes dimension data obtained by detecting the target workpiece;
[0037] A determination module, configured to determine compensation data for machining the target workpiece based on the first detection data;
[0038] A processing module, configured to perform fitting processing on the compensation data to obtain compensation values of N positions on the machining trajectory of the target workpiece, where N is an integer greater than 0;
[0039] A sending module, configured to send the compensation values of the N positions to a machining device, and the compensation values of the N positions are used to adjust the displacement of the grinding wheel in the normal direction at the contact point with the target workpiece according to the corresponding compensation values and machine the target workpiece when the grinding wheel of the machining device machines to the N positions.
[0040] Fourth aspect, an embodiment of the present application provides a workpiece processing device, the device includes:
[0041] A receiving module, configured to receive a compensation value sent by a terminal device, where the compensation value is the compensation values of N positions on the processing trajectory of a target workpiece, and the compensation values of the N positions are obtained by fitting compensation data, and the compensation data is determined based on the detection data of the target workpiece, and N is an integer greater than 0;
[0042] An adjustment module, configured to adjust the displacement of the grinding wheel in the normal direction at the contact point with the target workpiece according to the compensation value when the target workpiece is processed to the N positions;
[0043] A processing module, configured to process the target workpiece based on the grinding wheel after adjusting the displacement.
[0044] Fifth aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, the memory stores a program or instruction that can run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.
[0045] Sixth aspect, an embodiment of the present application provides a readable storage medium, a program or instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0046] Seventh aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the method described in the first aspect.
[0047] Eighth aspect, an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method described in the first aspect.
[0048] In the embodiment of the present application, by processing the detection data, compensation data of N positions on the workpiece processing trajectory is obtained, so as to perform processing compensation on the workpiece by using a processing device, which can improve the processing accuracy of the workpiece. And by fitting the compensation data, the processing accuracy of the workpiece can be further improved. Description of the Drawings
[0049] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings required for the description of the embodiments of the present application. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0050] Figure 1 is a flowchart of a data processing method provided by an embodiment of the present application;
[0051] Figure 2 is one of the flowcharts of a workpiece processing method provided by an embodiment of the present application;
[0052] Figure 3 is the second flowchart of a workpiece processing method provided by an embodiment of the present application;
[0053] Figure 4 is the third flowchart of a workpiece processing method provided by an embodiment of the present application;
[0054] Figure 5 is a schematic structural diagram of a data processing device provided by an embodiment of the present application;
[0055] Figure 6 is a schematic structural diagram of a workpiece processing device provided by an embodiment of the present application;
[0056] Figure 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0057] The following will clearly describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope protected by the present application.
[0058] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same category, and the number of objects is not limited. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / ", generally represents an "or" relationship between the associated objects before and after.
[0059] The following will, with reference to the accompanying drawings, describe in detail the data processing method, workpiece processing method, device and electronic device provided by the embodiments of the present application through specific embodiments and their application scenarios.
[0060] Refer to Figure 1 , Figure 1 which is a flowchart of a data processing method provided by an embodiment of the present application. The method includes:
[0061] Step 101, obtain first detection data of a target workpiece, where the first detection data includes dimension data obtained by detecting the target workpiece;
[0062] Step 102, determine compensation data for processing the target workpiece based on the first detection data;
[0063] Step 103, perform fitting processing on the compensation data to obtain compensation values at N positions on the processing trajectory of the target workpiece, where N is an integer greater than 0;
[0064] Step 104, send the compensation values at the N positions to a processing device, where the compensation values at the N positions are used to adjust the displacement of the grinding wheel in the normal direction at the contact point with the target workpiece and process the target workpiece according to the corresponding compensation values when the grinding wheel of the processing device processes to the N positions.
[0065] Among them, the target workpiece is a workpiece to be processed, and the workpiece can currently be in an unprocessed state or only partially processed state.
[0066] The target workpiece is detected by a detection device to obtain dimension data of the target workpiece. The dimension data can include contour data of the target workpiece. Based on the dimension data, the processing trajectory, compensation data, etc. of the target workpiece can be determined.
[0067] When processing the target workpiece, when the contour of the target workpiece is non-circular, for example, when there are concavities and convexities in the contour, different compensation values are used to compensate the contour of the workpiece at the concave and convex parts. Therefore, the compensation data at these two positions on the contour need to be obtained separately.
[0068] In some embodiments, after obtaining the dimension data of the target workpiece, taking the inverse based on the dimension data of the target workpiece can obtain the compensation data.
[0069] In some embodiments, based on the dimension data of the target workpiece and the target dimension data for processing, determine the data that needs to be compensated for the target workpiece to obtain the compensation data.
[0070] Since the obtained compensation data are multiple discrete data corresponding to multiple positions, fitting processing is performed based on the above compensation data to obtain a compensation value corresponding to any position on the machining trajectory of the outer contour of the target workpiece.
[0071] In some embodiments, the above fitting processing may be to establish a functional relationship between position and compensation value based on multiple compensation data, so as to obtain a compensation value corresponding to any position.
[0072] In some embodiments, the above fitting processing may be to draw a curve based on multiple compensation data, so as to obtain a continuous compensation data curve based on the discrete multiple data.
[0073] Based on the above compensation data curve, a compensation value corresponding to any position on the machining trajectory can be obtained, and the above compensation value is sent to the machining equipment.
[0074] The compensation values at the above N positions may be one or more compensation values among multiple compensation curves obtained according to the compensation curve.
[0075] For example, with the axis of the workpiece as the origin, the circular cross-section of the workpiece is divided into 360°, and each angle (1°, 2°, 3°...) corresponds to a compensation value, obtaining 360 compensation data. Based on the above compensation data for fitting processing, a compensation value corresponding to any angular position can be obtained. For example, the compensation data corresponding to intermediate angular data such as 1.5° and 2.2° can improve the accuracy of obtaining the compensation value, thereby improving the machining accuracy.
[0076] When it is necessary to obtain the compensation data corresponding to any angular position, it can be determined based on the fitted compensation data. In this way, when compensating the workpiece, the machining accuracy can be improved.
[0077] When the grinding wheel of the machining equipment processes to each position, the compensation value corresponding to that position is obtained, and the grinding wheel is moved along the normal direction of the grinding wheel based on the compensation value. During actual compensation, it can be moved along the direction towards the center of the grinding wheel or away from the center of the grinding wheel according to the positive or negative of the compensation value.
[0078] Through the embodiments of the present application, it is possible to process the detection data of the workpiece to obtain the compensation data of each position of the workpiece, so that the machining equipment compensates the workpiece according to the compensation data, which can improve the machining accuracy. And the compensation data obtained by the data fitting method is more complete. When using the above compensation data to adjust the displacement of the grinding wheel to compensate the target workpiece, the machining accuracy of the target workpiece can be further improved.
[0079] Optionally, the compensation data includes M compensation values corresponding to M positions on the machining trajectory of the target workpiece, where M is an integer greater than 0; the fitting process of the compensation data to obtain the compensation values at N positions on the machining trajectory of the target workpiece includes:
[0080] Performing a fitting process on the M compensation values corresponding to the M positions to obtain a compensation curve, where the compensation curve includes the correspondence between the N positions and the N compensation values;
[0081] Obtaining the N compensation values corresponding to the N positions based on the compensation curve.
[0082] Based on the M compensation values corresponding to the M positions, a correspondence between the positions and the compensation values can be established, and a fitting curve can be obtained based on this correspondence.
[0083] In some alternative embodiments, a compensation curve is established with the angle corresponding to the position on the machining trajectory as the abscissa and the compensation value as the ordinate. For example, assuming that the abscissa includes 360 angle values obtained by dividing 360°, and the ordinate includes the corresponding 360 compensation values, performing a fitting process on the compensation values can obtain 720 compensation values corresponding to 720 angles.
[0084] In some alternative embodiments, a compensation curve is established with the position corresponding to the position to be machined on the machining trajectory as the abscissa and the compensation value as the ordinate. For example, assuming that the abscissa corresponds to 100 positions and 100 compensation values. Performing a fitting process on the 100 compensation values can obtain 300 compensation values corresponding to 300 positions.
[0085] In some alternative embodiments, performing a fitting process on the compensation data to obtain a compensation curve around the axis of the target workpiece, where the compensation curve is a curve formed by the N compensation values corresponding to the N positions on the machining trajectory of the target workpiece; obtaining N intersections of the compensation curve and N lines, where the N lines are the lines connecting the axis to the N positions respectively; determining the N compensation values corresponding to the N intersections on the compensation curve as the compensation values at the N positions.
[0086] Through the above method, the compensation value corresponding to any position on the machining trajectory of the target workpiece can be obtained.
[0087] Optionally, the performing a fitting process on the M compensation values corresponding to the M positions to obtain a compensation curve includes:
[0088] Obtain the M angular values corresponding to the M positions on the machining trajectory on the target workpiece, where the M angular values are the angles of rotation of the M lines connecting the M positions to the axis of the target workpiece relative to a reference line, and the reference line is the line connecting a preset reference position on the machining trajectory to the axis;
[0089] Based on the correspondence between the M angular values and the M compensation values, perform a fitting process on the M compensation values to obtain a compensation curve, where the compensation curve includes the correspondence between the N angular values and the N compensation values;
[0090] The obtaining of the N compensation values corresponding to the N positions based on the compensation curve includes:
[0091] Based on the correspondence between the N angular values and the N compensation values, obtain the N compensation values corresponding to the N angular values.
[0092] Obtain the M angular values corresponding to the M positions on the target workpiece, with each position corresponding to one angular value. Taking the line connecting the preset reference position to the axis as the reference line, when the reference line is rotated by the target angle a around the axis, the intersection point A of the rotated reference line and the workpiece arc contour (machining trajectory) is the position A on the workpiece corresponding to the target angle a. In other words, the target angle a is the angle of position A on the workpiece.
[0093] Through the above method, the correspondence between the angle and the position can be obtained. Based on the position-angle correspondence and the correspondence between the position and the compensation value, the correspondence between the angle and the compensation value can be obtained.
[0094] For example, divide 0° to 360° into multiple angles. Taking each angular value as the abscissa and the compensation value corresponding to each angle as the ordinate, a compensation curve extending along the abscissa direction is obtained. Draw a straight line perpendicular to the horizontal axis at the position of 20° on the abscissa. The intersection point of this straight line and the compensation curve is the compensation value of the position on the workpiece corresponding to the angle of 20°.
[0095] Optionally, the M positions include a first position; the obtaining of the M angular values corresponding to the M positions on the machining trajectory includes:
[0096] Obtain the first line connecting the first position on the machining trajectory to the axis;
[0097] Determine the angle value of the rotation of the first line relative to the reference line.
[0098] The positions on the machining trajectory can be represented by angles.
[0099] For example, when the workpiece rotates around its axis in a cylindrical shape, for any position A on the machining trajectory of the cylindrical surface, it can be regarded as the position A on a circular arc in the cross-section. Taking the angle corresponding to the reference line as 0°, when the reference line is rotated around the center of the circle until it intersects with position A, the rotated angle a is the angle value corresponding to position A on the workpiece.
[0100] Through the above method, the angle value corresponding to each position can be obtained, thereby determining the position on the machining trajectory of the workpiece.
[0101] Optionally, before obtaining the first detection data of the target workpiece, the method further includes:
[0102] Setting a reference compensation value;
[0103] The obtaining of the first detection data of the target workpiece includes:
[0104] Obtaining the first detection data after machining the target workpiece. The first detection data is the detection data of the target workpiece obtained after adjusting the displacement of the grinding wheel according to the reference compensation value and machining the target workpiece. The first detection data includes the reference detection data corresponding to the reference compensation value;
[0105] The method further includes:
[0106] Determining the preset reference position of the target workpiece based on the reference detection data.
[0107] Before machining the target workpiece, first set a reference compensation value and use the reference compensation value to machine the target workpiece.
[0108] For example, since during machining, the angle value corresponding to the starting position of machining does not necessarily coincide with the angle corresponding to the above-mentioned reference position, before machining, a compensation value is set at a specific angle position corresponding to the target workpiece. When machining the target workpiece using the data corresponding to this compensation value, based on the shape of the target workpiece obtained after compensation, the actual position where the reference position is located can be determined on the target workpiece.
[0109] After determining the reference position, make the reference position correspond to the reference detection data in the compensation data, so that the accuracy of the data can be improved.
[0110] Optionally, the determining of the compensation data for machining the target workpiece based on the first detection data includes:
[0111] Performing a negation operation on the value of the first detection data to obtain the compensation data for machining the target workpiece.
[0112] After obtaining the detection data of the target workpiece, these data reflect the actual machining deviation or error of the workpiece. According to the required dimensions of the target workpiece, the data to be compensated can be determined, that is, the above-mentioned compensation data.
[0113] Perform an inversion operation based on the detected dimensional data. For example, when the distances from the first position and the second position of the outer contour of the workpiece to the axis are 11 mm and 9 mm respectively, and the machining target for these two positions is 10 mm, during compensation, the compensation value for the first position is -1 mm, and the compensation value for the second position is 1 mm.
[0114] In practical applications, the data obtained after performing the inversion operation on the detection data can be adjusted to meet the compensation requirements of the machining equipment.
[0115] The above data processing method of this embodiment can be applied to a terminal device. After the terminal device processes the data to obtain the compensation value, the compensation value is sent to the machining equipment, and the machining equipment performs compensation based on the compensation value, thereby improving the machining accuracy of the workpiece to solve the problem that the current machining equipment cannot compensate the workpiece.
[0116] And through the above method, the compensation data of the machined workpiece can be obtained, and the cost of the machining equipment can be reduced.
[0117] See Figure 2 , Figure 2 This is a workpiece machining method provided by this application and is applied to a machining equipment. As Figure 2 shown, a workpiece machining method includes:
[0118] Step 201, receive the compensation value sent by the terminal device, where the compensation value is the compensation value of N positions on the machining trajectory of the target workpiece, and the compensation value of the N positions is obtained by fitting the compensation data, and the compensation data is determined based on the detection data of the target workpiece, and N is an integer greater than 0;
[0119] Step 202, when machining the target workpiece to the N positions, adjust the displacement of the grinding wheel in the normal direction at the contact point with the target workpiece according to the compensation value;
[0120] Step 203, machine the target workpiece based on the grinding wheel with the adjusted displacement.
[0121] Based on the compensation value obtained in the above embodiment, the above compensation value is sent to the machining equipment. For example, the compensation data sent by the terminal device is obtained through transmission via the Internet Protocol Interface (IP) interface of the numerical control machine tool. Among them, the above compensation value includes the correspondence between multiple positions and multiple compensation values.
[0122] When the processing equipment processes to any one of the N positions, obtain the corresponding compensation value and adjust the position of the grinding wheel.
[0123] The grinding wheel adjusts its displacement on the X-axis (the axis where the line connecting the contact point and the center of the grinding wheel lies) according to the compensation value until the entire outer contour of the workpiece is compensated.
[0124] Optionally, the compensation values corresponding to the N positions are the compensation values corresponding to the angular values of the N positions on the target workpiece;
[0125] Wherein, the angular value is the angular value of the connection line between each of the N positions and the axis of the target workpiece rotating relative to the reference line, and the reference line is the connection line between the axis and the preset reference position on the processing trajectory.
[0126] The processing equipment can obtain the correspondence between the angular value and the compensation value, and determine the corresponding compensation value based on the angular value.
[0127] When processing to the position corresponding to any angular value of the workpiece, obtain the compensation value corresponding to the angular value of this position. Wherein, the angular value here can be understood as the angle of the connection line between position A on the outer contour (processing trajectory) of the workpiece and the axis rotating relative to the reference line.
[0128] The embodiments of the present application have the following beneficial effects:
[0129] 1) The processing equipment compensates the workpiece by obtaining the compensation value, which can reduce the dependence of the detection system on hardware, improve the detection stability, relieve the maintenance pressure of the later detection system, and improve the product cost performance;
[0130] 2) It can adapt to the detection data output by various measurement and detection devices, and process the detection data through the above data processing method, reducing the difficulty and learning cost of manually processing detection data.
[0131] 3) It can adapt to the grinding scenarios of various workpieces including standard contours and free contours, and can automatically output the adapted compensation data points to the compensation positions according to the compensation method according to the shape of the grinding contour.
[0132] To facilitate further understanding of this embodiment, the following is an example in combination with specific implementation manners.
[0133] As Figure 3 shown, the workpiece processing method includes the following processes:
[0134] Step 1: Through parameter setting, input the correct dimensions of the workpiece contour, draw the basic contour and check whether the contour is correct.
[0135] Step 2: Based on the cutting cycle settings and non-cutting parameter settings, implement the parameter input of the machining trajectory.
[0136] Step 3: Turn on the compensation function, set the reference compensation parameters, and use the position corresponding to 60 degrees as the reference position.
[0137] Step 4: Based on Steps 2 and 3 above, generate the machining trajectory to obtain the compensation values corresponding to the respective angle values of the workpiece. Check whether the trajectory is correct. If it is correct, proceed to the next step; otherwise, go back to Step 2 to reset the parameters.
[0138] Step 5: Output the Numerical Control (NC) code for the generated machining trajectory, input the NC code into the machining equipment for machining, and perform inspection and measurement after machining is completed.
[0139] Step 6: Check the inspection data, find the position corresponding to the highest grinding point obtained based on the settings of the reference position, align this position with the reference position corresponding to 60 degrees, based on the reference position.
[0140] Step 7: Turn on the compensation function again, import the data obtained in Step 6 into the compensation module, and determine the compensation values corresponding to the respective angles.
[0141] Step 8: Regenerate the machining trajectory based on the data after angle alignment, and output the corresponding NC code for the machining trajectory. Use the NC code to input into the machining equipment for machining.
[0142] Step 9: Perform inspection and measurement on the machined workpiece, check the change in machining accuracy and whether it is within the qualified range. If it is unqualified, go back to Step 7 to perform compensation settings for machining new workpieces until it is adjusted to the qualified range.
[0143] Step 10: If it is qualified, end the adjustment and enter the batch machining mode.
[0144] In the above process, after obtaining the inspection data of the workpiece, perform data processing on the inspection data to obtain compensation data.
[0145] As Figure 4 shown, the method for processing based on the inspection data includes the following steps:
[0146] Step 1: Through reference setting, artificially set a reference compensation point at a specified angle and add it to the machining NC. Use this data for machining to obtain the machined workpiece.
[0147] Step 2: After machining is completed, perform inspection on the workpiece using a measuring instrument and output the inspection data. The inspection data may include dimensional data based on the angle of the workpiece. Here, the division and measurement order of the angles are not limited.
[0148] Step 3: Import the above detection data, analyze the highest compensation point in the detection data, which is obtained by setting the reference compensation data. After finding this point, correspond it to the angular position of the initial reference compensation to achieve re - sorting and processing of the entire detection data.
[0149] Step 4: Perform an inversion operation on the detection data to obtain the compensation data for the corresponding angles.
[0150] Step 5: Perform a fitting process on the above - mentioned compensation data to obtain the corresponding relationship between the angles and the compensation data, and generate a machining trajectory.
[0151] Step 6: Based on the angular division of the trajectory calculation, respectively obtain the intersection values of the corresponding angles and the compensation curve and save them. For example, taking each angle corresponding to 0° to 360° of the workpiece as the X - coordinate and the compensation value as the Y - coordinate, generate a compensation curve. For any angle on the abscissa, the corresponding compensation value can be obtained.
[0152] Step 13: Recalculate the trajectory, calculate the trajectory contact points at each angle, inversely calculate the corresponding angle values according to the positions of the contact points, and then extract the corresponding compensation values from the compensation data.
[0153] Step 16: Add the extracted compensation values to the normal direction of the line connecting the corresponding contact points and the center of the grinding wheel, and then adjust the displacement of the grinding wheel on the X - axis until the entire contour compensation is completed.
[0154] Step 19: After the calculation is completed, output the compensated NC machining program for on - machine machining.
[0155] Step 22: Perform inspection after machining, and judge whether re - compensation processing is required according to the inspection results. If compensation is required, re - enter Step 1, otherwise end.
[0156] In the related art, by configuring a measuring instrument on the machine tool, calling the measuring instrument for in - machine inspection after machining, then processing the compensated data and adjusting the original machining NC program, and re - machining, the accuracy of the machining contour is ensured through repeated iteration. However, this solution has a high hardware cost for the machining equipment. After configuring the measuring instrument, the cost of the machine tool will increase significantly, and requirements for the model of the CNC system and the compensation function are needed, which is not convenient for maintenance.
[0157] With the development of technology, through the implementation mode of the present application, not only can the machining stability of the machining equipment be improved, but also the existing measuring equipment and machining equipment can be utilized. Combine the measurement data output by the measuring equipment, and use the corresponding data processing method to process the detection data to obtain compensation data, and then transmit the compensation data to the inside of the machine tool through the communication interface of the CNC. In this way, automatic compensation processing of the grinding process is realized.
[0158] The embodiments of the present application at least have the following beneficial effects:
[0159] 1) By transmitting processing data through the IP interface of the CNC machine tool, there is no requirement for hardware installation, and it has the advantages of high transmission rate, fast transmission speed, and high cost performance, and can achieve deep binding between the personal computer (PC) side and the computer numerical control (CNC) side.
[0160] 2) The present application can adapt to various grinding scenarios of standard profiles and free profiles, and can automatically process (data correction, inversion operation, data output, compensation calculation, NC output) according to the detection data output by the detection device.
[0161] 3) The present application has a high detection accuracy for the compensation of non-circular grinding profiles. Without increasing additional hardware costs, it can greatly improve the machining accuracy of the machine tool and the utilization rate of the customer's existing hardware resources.
[0162] For the data processing method provided by the embodiments of the present application, the execution subject can be a data processing device. In the embodiments of the present application, taking the data processing device as an example to execute the data processing method, the data processing device provided by the embodiments of the present application is described.
[0163] See Figure 5 , Figure 5 which is a schematic structural diagram of a data processing device provided by the present application. The data processing device includes:
[0164] An acquisition module 501, configured to acquire first detection data of a target workpiece, where the first detection data includes dimension data obtained by detecting the target workpiece;
[0165] A determination module 502, configured to determine compensation data for machining the target workpiece based on the first detection data;
[0166] A processing module 503, configured to perform fitting processing on the compensation data to obtain compensation values at N positions on the machining trajectory of the target workpiece, where N is an integer greater than 0;
[0167] A sending module 504, configured to send the compensation values at the N positions to a processing device, where the compensation values at the N positions are used to adjust the displacement of the grinding wheel in the normal direction at the contact point with the target workpiece and machine the target workpiece according to the corresponding compensation values when the grinding wheel of the processing device processes to the N positions.
[0168] Optionally, the compensation data includes M compensation values corresponding to M positions on the machining trajectory of the target workpiece, where M is an integer greater than 0; the processing module 503 includes:
[0169] A first processing sub-module, configured to perform fitting processing on the M compensation values corresponding to the M positions to obtain a compensation curve, where the compensation curve includes the correspondence between the N positions and the N compensation values;
[0170] An obtaining sub-module, configured to obtain the N compensation values corresponding to the N positions based on the compensation curve.
[0171] Optionally, the processing module 503 includes:
[0172] An obtaining sub-module, configured to obtain M angular values corresponding to the M positions on the machining trajectory of the target workpiece, where the M angular values are the angles of rotation of M connection lines between the M positions and the axis of the target workpiece relative to a reference line, and the reference line is the connection line between a preset reference position on the machining trajectory and the axis;
[0173] A second processing sub-module, configured to perform fitting processing on the M compensation values based on the correspondence between the M angular values and the M compensation values to obtain a compensation curve, where the compensation curve includes the correspondence between the N angular values and the N compensation values;
[0174] The obtaining module 501 is specifically configured to:
[0175] Obtain the N compensation values corresponding to the N angular values based on the correspondence between the N angular values and the N compensation values.
[0176] Optionally, the M positions include a first position; the obtaining sub-module includes:
[0177] An obtaining unit, configured to obtain a first connection line between the first position of the machining trajectory and the axis;
[0178] A determining unit, configured to determine the angle value of the rotation of the first connection line relative to the reference line.
[0179] Optionally, the device further includes:
[0180] A setting module, configured to set a reference compensation value;
[0181] The obtaining module 501 is specifically configured to obtain the first detection data after processing the target workpiece. The first detection data is the detection data of the target workpiece obtained after adjusting the displacement of the grinding wheel according to the reference compensation value and processing the target workpiece. The first detection data includes the reference detection data corresponding to the reference compensation value.
[0182] The device further includes:
[0183] A determination module, configured to determine the preset reference position of the target workpiece based on the reference detection data.
[0184] Optionally, the determination module 502 is specifically configured to:
[0185] Perform a negation operation on the value of the first detection data to obtain compensation data for processing the target workpiece.
[0186] The data processing device in the embodiments of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than the terminal.
[0187] The data processing device provided in the embodiments of the present application can implement Figure 1 each process implemented by the method embodiment. To avoid repetition, it will not be elaborated here.
[0188] In the workpiece processing method provided in the embodiments of the present application, the execution subject may be a workpiece processing device. In the embodiments of the present application, taking the workpiece processing device executing the workpiece processing method as an example, the workpiece processing device provided in the embodiments of the present application is described.
[0189] See Figure 6 , Figure 6 which is a schematic structural diagram of a workpiece processing device provided in the present application. The workpiece processing device includes:
[0190] A receiving module 601, configured to receive a compensation value sent by a terminal device. The compensation value is the compensation value of N positions on the processing trajectory of the target workpiece. The compensation values of the N positions are obtained by fitting the compensation data, and the compensation data is determined based on the detection data of the target workpiece. N is an integer greater than 0;
[0191] An adjustment module 602, configured to adjust the displacement of the grinding wheel in the normal direction at the contact point with the target workpiece according to the compensation value when the target workpiece is processed to the N positions.
[0192] A processing module 603, configured to process the target workpiece based on the grinding wheel with the adjusted displacement.
[0193] Optionally, the compensation values corresponding to the N positions are the compensation values corresponding to the angular values of the N positions on the target workpiece;
[0194] Wherein, the angular value is the angular value of the lines connecting the N positions to the axis of the target workpiece rotating relative to the reference line, and the reference line is the line connecting the axis to the preset reference position on the machining trajectory.
[0195] The workpiece processing device in the embodiments of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a processing device, such as a machine tool.
[0196] The workpiece processing device provided by the embodiments of the present application can implement Figure 2 each process implemented by the method embodiments. To avoid repetition, it will not be elaborated here.
[0197] Optionally, as Figure 7 shown, the embodiments of the present application further provide an electronic device 700, including a processor 701 and a memory 702. A program or instruction that can run on the processor 701 is stored on the memory 702. When the program or instruction is executed by the processor 701, each step of the above data processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.
[0198] It should be noted that the electronic devices in the embodiments of the present application include mobile electronic devices and non-mobile electronic devices.
[0199] The embodiments of the present application further provide a readable storage medium. A program or instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, each process of the above data processing method embodiment or workpiece processing method is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.
[0200] Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs, etc.
[0201] The embodiments of the present application further provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run a program or instruction to implement each process of the above data processing method or workpiece processing method embodiment, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.
[0202] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.
[0203] The embodiments of the present application provide a computer program product, which is stored in a storage medium and is executed by at least one processor to implement each process of the data processing method or workpiece processing method embodiments as described above, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0204] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more limitations, the element defined by the statement "including a..." does not exclude the existence of another identical element in the process, method, article or device including that element. In addition, it should be pointed out that the methods and devices in the embodiments of the present application are not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved. For example, the methods described may be performed in a different order than described, and various steps may be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0205] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.
[0206] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.
Claims
1. A data processing method, characterized in that: The method comprises: Acquire first detection data of a target workpiece, wherein the first detection data includes size data obtained by detecting the target workpiece; Determining compensation data for processing the target workpiece based on the first detection data; Performing fitting processing on the compensation data to obtain compensation values of N positions on the processing trajectory of the target workpiece, where N is an integer greater than 0; The compensation values of the N positions are sent to the processing equipment. The compensation values of the N positions are used to adjust the displacement of the grinding wheel along the normal direction at the contact point with the target workpiece according to the corresponding compensation value and process the target workpiece when the grinding wheel of the processing equipment processes to the N positions.
2. The method according to claim 1, characterized in that: The compensation data includes M compensation values corresponding to M positions on the processing trajectory of the target workpiece, where M is an integer greater than 0; the fitting process is performed on the compensation data to obtain the compensation values of N positions on the processing trajectory of the target workpiece, including: Performing fitting processing on the M compensation values corresponding to the M positions to obtain a compensation curve, wherein the compensation curve includes a corresponding relationship between the N positions and the N compensation values; The N compensation values corresponding to the N positions are acquired based on the compensation curve.
3. The method according to claim 2, characterized in that The fitting process is performed on the M compensation values corresponding to the M positions to obtain a compensation curve, including: Obtaining M angle values corresponding to the M positions on the processing trajectory on the target workpiece, the M angle values being angles of rotation of M connecting lines between the M positions and the axis of the target workpiece relative to a reference line, the reference line being a connecting line between a preset reference position on the processing trajectory and the axis; Based on the correspondence between the M angle values and the M compensation values, fitting the M compensation values to obtain a compensation curve, wherein the compensation curve includes the correspondence between the N angle values and the N compensation values; The acquiring the N compensation values corresponding to the N positions based on the compensation curve includes: Based on the corresponding relationship between the N angle values and the N compensation values, the N compensation values corresponding to the N angle values are acquired.
4. The method according to claim 3, characterized in that The M positions include a first position; and obtaining the M positions on the processing trajectory corresponding to the M angle values of the target workpiece includes: Acquire a first connecting line between the first position of the processing trajectory and the axis; Determine the angle value of the first connecting line rotated relative to the reference line.
5. The method according to claim 3 or 4, characterized in that: Before acquiring the first detection data of the target workpiece, the method further includes: Set the baseline compensation value; The step of obtaining first detection data of the target workpiece includes: Acquire the first detection data after processing the target workpiece, the first detection data being detection data of the target workpiece obtained after adjusting the displacement of the grinding wheel according to the reference compensation value and processing the target workpiece, the first detection data including reference detection data corresponding to the reference compensation value; The method further comprises: The preset reference position of the target workpiece is determined based on the reference detection data.
6. The method according to claim 1, characterized in that The step of determining compensation data for processing the target workpiece based on the first detection data comprises: A negation operation is performed based on the value of the first detection data to obtain compensation data for processing the target workpiece.
7. A workpiece processing method, characterized in that: The method comprises: receiving compensation values sent by a terminal device, wherein the compensation values are compensation values of N positions on a processing trajectory of a target workpiece, the compensation values of the N positions are obtained by fitting compensation data, the compensation data is determined based on detection data of the target workpiece, and N is an integer greater than 0; When the target workpiece is machined to the N positions, adjusting the displacement of the grinding wheel at the contact point with the target workpiece along the normal direction according to the compensation value; The target workpiece is processed based on the grinding wheel after adjusting the displacement.
8. The method according to claim 7, characterized in that The compensation values corresponding to the N positions are the compensation values corresponding to the angle values of the N positions on the target workpiece; The angle value is the angle value of the lines connecting the N positions and the axis of the target workpiece rotated relative to a reference line, and the reference line is a line connecting the axis and a preset reference position on the processing trajectory.
9. A data processing device, characterized in that: The device comprises: An acquisition module, used for acquiring first detection data of a target workpiece, wherein the first detection data includes size data obtained by detecting the target workpiece; A determination module, configured to determine compensation data for processing the target workpiece based on the first detection data; A processing module, used for performing fitting processing on the compensation data to obtain compensation values of N positions on the processing trajectory of the target workpiece, where N is an integer greater than 0; A sending module is used to send the compensation values of the N positions to the processing equipment. The compensation values of the N positions are used to adjust the displacement of the grinding wheel along the normal direction at the contact point with the target workpiece according to the corresponding compensation value and process the target workpiece when the grinding wheel of the processing equipment processes to the N positions.
10. A workpiece processing device, characterized in that: The device comprises: A receiving module, used for receiving compensation values sent by a terminal device, wherein the compensation values are compensation values of N positions on a processing trajectory of a target workpiece, the compensation values of the N positions are obtained by fitting compensation data, the compensation data is determined based on detection data of the target workpiece, and N is an integer greater than 0; an adjustment module, configured to adjust the displacement of the grinding wheel at the contact point with the target workpiece along the normal direction according to the compensation value when the target workpiece is processed to the N positions; A processing module is used to process the target workpiece based on the grinding wheel after adjusting the displacement.
11. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the data processing method as described in any one of claims 1 to 6 are implemented, or the steps of the workpiece processing method as described in claim 7 or 8 are implemented.
12. A readable storage medium, characterized in that: The readable storage medium stores programs or instructions, and when the programs or instructions are executed by the processor, the steps of the data processing method according to any one of claims 1 to 6 are implemented, or the steps of the workpiece processing method according to claim 7 or 8 are implemented.
13. A computer program product, characterized in that The computer program product comprises computer instructions, which, when executed by a processor, implement the steps of the data processing method according to any one of claims 1 to 6, or implement the steps of the workpiece processing method according to claim 7 or 8.
Citation Information
Patent Citations
Post-process sizing control device for grinding machine
CN101549476A
System and method for compensating inner offset of machining device
CN104416419A
Profile tolerance compensation method of S-shaped ball-end milling cutter
CN106774153A
Hybrid robot milling error prediction and compensation method based on GRNN
CN112733296A
Light spot rotation compensation laser processing method and system
CN115283821A