Automatic deviation correction method and related device for workpiece machining coordinate system
The automatic correction method of the workpiece machining coordinate system of the I-Quicker system software solves the problem of workpiece horizontality and flatness errors in automated production, realizes automatic detection and compensation of workpieces, and improves production efficiency and accuracy.
Patent Information
- Application Number
- CN202310464949.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-26
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2043-04-26
AI Technical Summary
In the context of automated production, the levelness and flatness errors of workpieces cannot be ensured to be within the allowable processing range, resulting in low production efficiency and insufficient processing accuracy.
The I-Quicker system software is used to automatically correct the workpiece machining coordinate system. By selecting the pallet plane and the workpiece measurement points, an automatic centering program is generated, the flatness is measured, the angular relationship is calculated, the probe is used to touch to determine the machining origin, and the machining parameters are set.
It realizes automatic detection and compensation of workpieces, reduces manual operation links, improves production efficiency and processing accuracy, and reduces processing errors.
Smart Images

Figure CN116423290B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automated machining, and in particular to a method for automatically correcting a workpiece machining coordinate system and related devices. Background Art
[0002] In the actual production process, the factory needs to process a large number of workpieces. Each workpiece needs to go through the following steps before processing:
[0003] 1. The workpiece is moved to the workbench of the machine tool by an AGV or industrial robot.
[0004] 2. The workpiece is clamped on the workbench.
[0005] 3. The operator uses a dial indicator to check the levelness and flatness of the workpiece to ensure that the workpiece is within the allowable machining error range.
[0006] 4. The operator manually finds the machining origin of the workpiece using a centering rod or a touch probe.
[0007] Due to the numerous manual steps involved in this process, the accuracy of manual intervention is affected by numerous factors, including the operator's skills, experience, and fatigue. Furthermore, these manual operations are time-consuming, reducing production efficiency. On the other hand, with the increasing adoption of automated production, the need for manual intervention is decreasing. Consequently, in the context of automated production, it is difficult to ensure that workpiece levelness and flatness errors remain within the allowable machining range, necessitating the search for a reasonable solution. Summary of the Invention
[0008] In order to ensure production efficiency and processing accuracy, the present application provides a method and related devices for automatically correcting the workpiece processing coordinate system.
[0009] In the first aspect, the present application provides a method for automatically correcting a workpiece machining coordinate system, which adopts the following technical solution:
[0010] A method for automatically correcting a workpiece machining coordinate system comprises the following steps:
[0011] S1. Select the pallet plane points and workpiece-related measurement points on the model in the I-Quicker system software;
[0012] S2. Generate an automatic centering program based on the selected measurement points and measure the pallet plane points to obtain the pallet flatness;
[0013] S3. Determine whether the pallet flatness is within the machinable range. If so, continue flatness testing at four selected points on the workpiece surface. If not, write the pallet flatness deviation value to the machine macro variable and wait for pallet flatness adjustment.
[0014] S4. Take two points on the horizontal X-plane of the workpiece, calculate the angle between the line formed by these two points and the X-axis, and store this angle value in a specified variable on the machine.
[0015] S5. Using the angle of the workpiece's horizontal plane as a vector, the probe touches the workpiece in the X- and Y-axis directions perpendicular to the workpiece's shape to calculate the workpiece machining origin.
[0016] S6. Set the machining parameters based on the workpiece machining origin.
[0017] By implementing this technical solution, automatic workpiece detection and compensation are achieved. In practice, the operator simply selects measurement points on the workpiece in the software, and the system automatically generates the corresponding automatic centering program. During this process, the probe measures the selected measurement points and calculates the workpiece's levelness, flatness, and machining origin. If the detected data falls outside the allowable machining error range, the system writes the relevant data into the machine macro variables, and the workpiece position is adjusted by a robot or other means. The entire process is automated, significantly improving production efficiency and machining accuracy.
[0018] In real-world scenarios, workpiece machining on automated production lines faces challenges with levelness and flatness errors, as well as issues with the positioning of the machining origin. By introducing the I-Quicker system, companies can automatically detect and compensate for workpiece levelness and flatness, as well as automatically calculate the machining origin. This not only reduces manual operations and machining errors, but also effectively improves production efficiency and product quality. This solution provides practical technical support for workpiece machining in automated production, helping to promote the intelligent and efficient development of the manufacturing industry.
[0019] Optionally, the S1 includes the following steps:
[0020] S11. Select four measurement points on the pallet plane.
[0021] S12. Select four measurement points on the workpiece surface;
[0022] S13. Select two measuring points on the horizontal X-plane of the workpiece;
[0023] S14. Select the midpoint of the workpiece surface.
[0024] By adopting the above technical solution, by selecting points on the plane of the pallet in the software, the system can understand the geometric shape and position of the pallet, thereby providing basic information for subsequent flatness detection and workpiece positioning. Selecting points on the surface of the workpiece enables the system to understand the geometric shape and position of the workpiece, providing necessary information for subsequent workpiece flatness detection and automatic centering. By selecting points on the horizontal X-plane of the workpiece, the angle information of the workpiece on the horizontal plane can be obtained, providing a basis for subsequent angle correction and determination of the workpiece processing origin. An automatic centering program is generated based on the selected points, so that the CNC machine tool can automatically find the processing origin of the workpiece based on the information of these points, thereby improving processing accuracy and efficiency. In summary,
[0025] Optionally, the S2 includes the following steps:
[0026] S21 generates automatic points program;
[0027] S22. Control the probe to measure four measuring points selected on the pallet plane;
[0028] S23. Calculate the maximum and minimum values of the four measurement points;
[0029] S24. Determine whether the flatness of the pallet is within the machinable range.
[0030] By implementing the above technical solution, automatic workpiece centering (AWC) is a method for automatically locating the workpiece machining origin on a CNC machine tool. In CNC machining, the workpiece machining origin (often called the zero point) serves as the reference point for the tool's machining trajectory relative to the workpiece. Determining the correct machining origin is crucial for ensuring workpiece machining accuracy and quality. By measuring four selected points on the pallet plane, the actual geometry and position of the pallet plane can be obtained, providing a basis for subsequent flatness testing and assessment. Calculating the maximum and minimum values of the four points helps assess the pallet plane's flatness and determine whether it meets machining requirements. By determining whether the workpiece pallet's flatness is within the machinable range, it ensures that the pallet plane meets machining requirements and prevents machining errors caused by unsatisfactory pallet flatness. Writing pallet flatness deviation values to machine macro variables enables data exchange with other automation systems (such as PLCs and robots), enabling the automation system to make appropriate adjustments and processing based on the pallet flatness deviation.
[0031] Optionally, S3 includes the following steps:
[0032] S31. Control the probe to measure four points on the workpiece surface;
[0033] S32. Calculate the maximum and minimum values of the measurement points on the workpiece surface;
[0034] S33. Determine whether the workpiece surface flatness is within the machinable range.
[0035] By employing this technical solution, the actual geometric shape and position data of the workpiece surface can be obtained by measuring four selected points on the workpiece surface, providing a basis for subsequent flatness detection and judgment. Calculating the maximum and minimum values of the four points helps evaluate the workpiece surface flatness and determine whether the workpiece surface meets machining requirements. By determining whether the workpiece surface flatness is within the machinable range, it can be ensured that the workpiece surface meets machining requirements and prevent machining errors caused by unqualified workpiece surface flatness.
[0036] Optionally, the S4 includes the following steps:
[0037] S41. Select two points on the horizontal X plane of the workpiece;
[0038] S42. Control the probe to measure two points on the horizontal X-plane of the workpiece;
[0039] S43. Calculate the angle between the line formed by two points and the X-axis:
[0040] S44. Store the angle value in the specified variable of the machine.
[0041] By adopting this technical solution, two points are taken on the workpiece's horizontal X-plane to determine its actual position, providing a basis for subsequent angular relationship determination and correction. By using a stylus to determine the angular relationship between this line and the X-axis, the actual angle between the workpiece's horizontal plane and the X-axis can be calculated, thereby determining the angular error of the workpiece's horizontal plane. This angle value is stored in a designated variable on the machine, allowing the machine to perform subsequent corrections based on this angle value, improving the accuracy and efficiency of the machining process.
[0042] Optionally, the S5 includes the following steps:
[0043] S51. Calculate vector direction;
[0044] S52. Set probe touch parameters;
[0045] S53. The probe touches the workpiece in a vector direction perpendicular to the X / Y direction of the workpiece shape.
[0046] S54. Calculate the workpiece processing origin.
[0047] By employing this technical solution, using the angle of the workpiece's horizontal plane as a vector, the actual measured angular error can be factored into the calculation of the workpiece's machining origin, improving machining accuracy. By touching the probe perpendicular to the workpiece's outline in the X / Y direction with the vector, the workpiece's machining origin can be precisely measured, providing an accurate reference for subsequent machining. By calculating the workpiece's machining origin, an accurate coordinate reference is provided for the machining process, ensuring both precision and efficiency.
[0048] Optionally, the S54 includes the following steps:
[0049] S541. Calculate the coordinates of the workpiece processing origin based on the touch point coordinates of the probe in the X-axis and Y-axis directions;
[0050] S542. Input the calculated workpiece processing origin coordinate value into the CNC machine tool as the processing origin.
[0051] By adopting this technical solution, the workpiece machining origin is calculated using the coordinates of the probe's touch points in the X and Y axes, providing accurate reference coordinates for the machining process, thereby improving precision and efficiency. Inputting these calculated workpiece machining origin coordinates into the CNC machine tool ensures the machine uses the correct origin during machining, further improving precision and efficiency and reducing the risk of machining errors.
[0052] In a second aspect, the present application provides an automatic deviation correction system for a workpiece machining coordinate system, which adopts the following technical solutions:
[0053] A workpiece machining coordinate system automatic deviation correction system, comprising:
[0054] Point selection module, used to select the pallet plane points and workpiece related measurement points on the model in the I-Quicker system software;
[0055] The pallet flatness calculation module is used to generate an automatic centering program based on the selected measurement points and measure the pallet plane points to obtain the pallet flatness;
[0056] The judgment module is used to determine whether the pallet flatness is within the machinable range. If the pallet flatness is within the machinable range, the flatness detection is continued on four points selected on the workpiece surface. If it is not within the machinable range, the pallet flatness deviation value is written into the machine macro variable and the pallet flatness adjustment is waited for.
[0057] Angle calculation module, which is used to take two points on the horizontal X-plane of the workpiece, calculate the angle between the line formed by these two points and the X-axis, and store this angle value in a specified variable of the machine;
[0058] The machining origin calculation module is used to calculate the workpiece machining origin by using the angle of the workpiece horizontal plane as a vector and using the probe to touch the workpiece in the direction of the vector perpendicular to the X-axis and Y-axis directions of the workpiece shape;
[0059] The parameter setting module is used to set the processing parameters based on the workpiece processing origin.
[0060] By implementing this technical solution, automatic workpiece detection and compensation are achieved. In practice, the operator simply selects measurement points on the workpiece in the software, and the system automatically generates the corresponding automatic centering program. During this process, the probe measures the selected measurement points and calculates the workpiece's levelness, flatness, and machining origin. If the detected data falls outside the allowable machining error range, the system writes the relevant data into the machine macro variables, and the workpiece position is adjusted by a robot or other means. The entire process is automated, significantly improving production efficiency and machining accuracy.
[0061] In real-world scenarios, workpiece machining on automated production lines faces challenges with levelness and flatness errors, as well as issues with the positioning of the machining origin. By introducing the I-Quicker system, companies can automatically detect and compensate for workpiece levelness and flatness, as well as automatically calculate the machining origin. This not only reduces manual operations and machining errors, but also effectively improves production efficiency and product quality. This solution provides practical technical support for workpiece machining in automated production, helping to promote the intelligent and efficient development of the manufacturing industry.
[0062] In a third aspect, the present application provides a computer device that adopts the following technical solution:
[0063] A computer device comprising:
[0064] one or more processors;
[0065] Memory;
[0066] One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the above-mentioned workpiece processing coordinate system automatic correction method.
[0067] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:
[0068] A computer-readable storage medium stores a computer program that can be loaded by a processor and execute the above method.
[0069] The storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement: the automatic correction method of the workpiece processing coordinate system as mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 A flowchart of an automatic deviation correction method for a workpiece machining coordinate system according to an embodiment of the present invention is shown.
[0071] Figure 2 A schematic diagram of a computer device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0072] The present application will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0073] In the following description, for the purpose of explanation, many specific details are set forth in order to provide a thorough understanding of the inventive concepts. Some of the figures in the drawings of the present disclosure, which are part of this specification, represent structures and devices in block diagram form to avoid making the disclosed principles complicated and obscure. For the sake of clarity, not all features of an actual implementation are necessarily described. In addition, the language used in this disclosure has been selected primarily for readability and instructional purposes and may not have been selected to delineate or limit the subject matter of the invention, thereby resorting to the necessary claims to determine such inventive subject matter. References in this disclosure to "one embodiment" or "an embodiment" mean that the specific features, structures or characteristics described in conjunction with that embodiment are included in at least one embodiment, and multiple references to "one embodiment" or "an embodiment" should not be understood to necessarily all refer to the same embodiment.
[0074] Unless expressly limited, the terms "a", "an" and "the" are not intended to refer to a singular entity, but rather to include a general class of which a specific example may be used for illustration. Thus, the use of the term "a" or "an" may mean any number of at least one, including "one", "one or more", "at least one", and "one or more than one". The term "or" means any of the alternatives and any combination of the alternatives, including all, unless the alternatives are expressly indicated to be mutually exclusive. The phrase "at least one of" when combined with a list of items refers to a single item in the list or any combination of the items in the list. The phrase does not require all of the listed items unless expressly limited to that.
[0075] Currently, in the context of automated production, with reduced human intervention, errors in workpiece handling, levelness, and flatness cannot be guaranteed to be within the allowable machining range. This necessitates a method that can compensate for workpiece levelness, determine workpiece flatness differences, and automatically complete the necessary steps before machining.
[0076] For example, an automotive parts manufacturer uses automated production lines to produce a variety of precision parts. The company has introduced advanced automation equipment and robotics (such as automated guided vehicles (AGVs) and industrial robots) to improve production efficiency and product quality. On the automated production line, each workpiece requires preparation before processing, including checking and adjusting its levelness and flatness, and calculating the machining origin.
[0077] In the actual production process, the factory needs to process a large number of workpieces. Each workpiece needs to go through the following steps before processing:
[0078] The workpiece is moved to the workbench of the machine tool by AGV or industrial robot;
[0079] The workpiece is clamped on the workbench;
[0080] The operator uses a dial indicator to check the levelness and flatness of the workpiece to ensure that the workpiece is within the allowable machining error range;
[0081] The operator manually finds the machining origin of the workpiece using a centering wand or a touch probe.
[0082] Due to the numerous manual steps involved in this process, the accuracy of manual intervention is affected by numerous factors, including the operator's skills, experience, and fatigue. Furthermore, these manual operations are time-consuming, reducing production efficiency. On the other hand, with the increasing adoption of automated production, the need for manual intervention is decreasing. Consequently, in the context of automated production, it is difficult to ensure that workpiece levelness and flatness errors remain within the allowable machining range, necessitating the search for a reasonable solution.
[0083] Therefore, this application proposes a method for automatically correcting the deviation of a workpiece processing coordinate system. Figure 1 The automatic deviation correction method of the workpiece machining coordinate system includes the following steps:
[0084] S1. Select the pallet plane points and workpiece-related measurement points on the model in the I-Quicker system software.
[0085] The I-Quicker system software is a collaborative software platform for CNC machine tools and robots, providing automatic workpiece centering and a range of other related functions. This step provides the necessary foundational information for subsequent workpiece flatness detection, angle correction, and automatic centering, thereby improving the accuracy and efficiency of workpiece positioning and machining processes, reducing the need for manual intervention and achieving a higher degree of automation.
[0086] Optionally, in a certain embodiment, S1 includes the following steps S11-S14.
[0087] S11. Select four measuring points on the pallet plane.
[0088] By selecting points on the pallet plane in the software, the system can understand the geometric shape and position of the pallet, thus providing basic information for subsequent flatness detection and workpiece positioning.
[0089] For example, S11 may include the following steps S111-S114.
[0090] S111. Select the first point on the pallet plane (e.g., the front left corner).
[0091] S112. Select a second point on the pallet plane (e.g., the front right corner).
[0092] S113. Select a third point on the pallet plane (e.g., the rear left corner).
[0093] S114. Select the fourth point on the pallet plane (such as the rear right corner).
[0094] It should be noted that these four points should be able to form a convex quadrilateral, and at least no three points should be collinear.
[0095] S12. Select four measuring points on the workpiece surface.
[0096] Selecting points on the workpiece surface enables the system to understand the geometric shape and position of the workpiece, providing the necessary information for subsequent workpiece flatness detection and automatic centering.
[0097] For example, S12 may include the following steps S121-S124.
[0098] S121. Select the first point on the workpiece surface (e.g., the left side of the surface);
[0099] S122. Select a second point on the workpiece surface (e.g., on the right side of the surface);
[0100] S123. Select a third point on the workpiece surface (eg, the front side of the surface);
[0101] S124. Select the fourth point on the workpiece surface (eg, the back side of the surface).
[0102] It should be noted that these four points should be able to form a convex quadrilateral, and at least no three points should be collinear.
[0103] S13. Select two measuring points on the horizontal X-plane of the workpiece.
[0104] By selecting a point on the horizontal X-plane of the workpiece, the angle information of the workpiece on the horizontal plane can be obtained, providing a basis for subsequent angle correction and determination of the workpiece machining origin.
[0105] For example, S13 may include the following steps S131-S132:
[0106] S131. Select the first point on the horizontal X-plane of the workpiece (e.g., the left edge).
[0107] S132. Select the second point on the horizontal X plane of the workpiece (such as the right edge).
[0108] S14. Select the midpoint of the workpiece surface.
[0109] An automatic centering program is generated based on the selected points, so that the CNC machine tool can automatically find the processing origin of the workpiece based on the information of these points, thereby improving processing accuracy and efficiency.
[0110] For example, S14 may include the following steps S141-S143:
[0111] S141. Depending on the data acquisition method on the programming end, decide whether to acquire data from four sides or one side;
[0112] S142. If four-side sampling is used, select the midpoints of the top, bottom, left, and right edges of the workpiece shape.
[0113] S143. If you are taking data from a single side, select one edge of the workpiece (such as the top edge) as the midpoint.
[0114] S2. Generate an automatic centering program based on the selected measurement points, and measure the pallet plane points to obtain the pallet flatness.
[0115] Optionally, in one embodiment, S2 includes the following steps S21-S24.
[0116] S21. Generate an automatic centering program.
[0117] Automatic workpiece centering (AWC) is a method for automatically locating the workpiece machining origin on a CNC machine tool. In CNC machining, the workpiece machining origin (often called the zero point) serves as the reference point for the tool's machining trajectory relative to the workpiece. Determining the correct machining origin is crucial for ensuring workpiece machining accuracy and quality.
[0118] In traditional machining methods, operators often need to manually adjust the workpiece's position and use measuring tools (such as micrometers and auxiliary center gauges) to locate the workpiece's origin. This process is time-consuming and prone to errors. However, automatic workpiece centering technology automates this process, improving machining efficiency and accuracy.
[0119] Automatic workpiece centering is usually achieved by using detection equipment on CNC machine tools, such as probes and touch-trigger probes. These devices can output signals when they contact the workpiece surface, so that the computer or CNC system can collect data and determine the workpiece's machining origin.
[0120] For example, S21 may include the following steps S211-S213:
[0121] S211. Write code for the automatic classification program based on the selected measurement points;
[0122] S212 will be prepared automatically divided into the program into the I-Quicker system;
[0123] S213 sets the operating parameters of the automatic sub-program, such as measurement speed, measurement direction, etc.;
[0124] S22. Control the probe to measure four selected measuring points on the pallet plane.
[0125] For example, S22 may include the following steps S221-S223:
[0126] S221. Install the probe on the spindle of a CNC machine tool.
[0127] S222 according to the pre-set operating parameters, start the automatic points program;
[0128] S223. Measure the four points on the pallet plane in sequence and record the measurement results.
[0129] By measuring the four points selected on the pallet plane, the actual geometric shape and position data of the pallet plane can be obtained, providing a basis for subsequent flatness detection and judgment.
[0130] S23. Calculate the maximum and minimum values of the four measurement points.
[0131] For example, S23 may include the following steps S231-S232:
[0132] S231. The measurement results are processed to calculate the maximum value of the four points;
[0133] S232. Process the measurement results and calculate the minimum value of the four points.
[0134] The maximum and minimum measurement points refer to the height values of four points selected on the pallet plane. By measuring these four points with a probe, the height difference between each point and a reference plane (such as the datum plane of a CNC machine tool) can be determined. The maximum value corresponds to the highest point, while the minimum value corresponds to the lowest point.
[0135] By comparing the maximum and minimum values of these four points, it is possible to determine whether the flatness of the workpiece pallet is within the machinable range. If the difference between the maximum and minimum values (i.e., the flatness error) is within the allowable range, then the machining process can continue; otherwise, the pallet needs to be adjusted to achieve an acceptable flatness error range.
[0136] S24. Determine whether the flatness of the pallet is within the machinable range. For example, S23 may include the following steps S231-S232:
[0137] For example, S24 may include the following steps S241-S242:
[0138] S241. Subtract the calculated maximum and minimum values to obtain the tray flatness difference;
[0139] S242. Based on the workpiece processing requirements, determine whether the pallet flatness difference is within the allowable processing error range.
[0140] By judging whether the flatness of the workpiece pallet is within the machinable range, it can be ensured that the pallet plane meets the machining requirements and prevent machining errors caused by unqualified pallet flatness.
[0141] S25. Write the pallet flatness deviation value into the machine macro variable.
[0142] Writing the pallet flatness deviation value into the machine macro variable can realize data interaction with other automation systems (such as PLC, robot, etc.), allowing the automation system to make corresponding adjustments and processing based on the pallet flatness deviation value.
[0143] S3. Determine whether the pallet flatness is within the machinable range. If so, continue to perform flatness detection on four points selected from the workpiece surface. If not, write the pallet flatness deviation value into the machine macro variable and wait for the pallet flatness to be adjusted.
[0144] Through this step, the flatness of the workpiece surface can be detected and judged in real time to ensure that the workpiece surface meets the processing requirements; at the same time, the accuracy and efficiency of the processing process can be improved, the need for manual intervention can be reduced, and a higher degree of automation can be achieved.
[0145] Optionally, in a certain embodiment, S3 includes the following steps S31-S33.
[0146] S31. Control the probe to measure four points on the workpiece surface.
[0147] For example, S31 may include the following steps S311-S313:
[0148] S311. Install the probe on the spindle of the CNC machine tool (skip this step if it has already been installed).
[0149] S312 according to the pre-set operating parameters, start the automatic points program;
[0150] S313. Sequentially measure four points selected on the workpiece surface and record the measurement results;
[0151] By measuring four points selected on the workpiece surface, the actual geometric shape and position data of the workpiece surface can be obtained, providing a basis for subsequent flatness detection and judgment.
[0152] S32. Calculate the maximum and minimum values of the measurement points on the workpiece surface.
[0153] For example, S32 may include the following steps S321-S322:
[0154] S321. Processing the measurement results to calculate the maximum value of the measurement point on the workpiece surface;
[0155] S322. Process the measurement results and calculate the minimum value of the measurement point on the workpiece surface.
[0156] Calculating the maximum and minimum values of the four points helps to evaluate the flatness of the workpiece surface and thus determine whether the workpiece surface meets the machining requirements.
[0157] S33. Determine whether the workpiece surface flatness is within the machinable range.
[0158] For example, S33 may include the following steps S331-S332:
[0159] S331. Subtracting the calculated maximum and minimum values to obtain the workpiece surface flatness difference;
[0160] S332. Based on the workpiece processing requirements, determine whether the workpiece surface flatness difference is within the allowable processing error range.
[0161] By judging whether the flatness of the workpiece surface is within the machinable range, it can be ensured that the workpiece surface meets the machining requirements and prevent machining errors caused by unqualified workpiece surface flatness.
[0162] S4. Take two points on the horizontal X-plane of the workpiece, calculate the angle between the line formed by these two points and the X-axis, and store this angle value in the specified variable of the machine.
[0163] This step selects two points on the workpiece's horizontal X-plane and measures them with the probe. Based on the measurement results, the angle between the line formed by the two points and the X-axis is calculated and stored in a designated variable on the machine. This information will provide important information for subsequent steps.
[0164] Optionally, in a certain embodiment, S4 includes the following steps S41-S44.
[0165] S41. Select two points on the horizontal X-plane of the workpiece, construct a straight line through the two points, use the stylus to determine the angular relationship between this line and the X-axis, and store this angle value in a specified variable on the machine.
[0166] By taking two points on the horizontal X plane of the workpiece, the actual position information of the horizontal plane of the workpiece can be obtained, providing a basis for subsequent angle relationship judgment and correction.
[0167] For example, S41 may include the following steps S411-S412:
[0168] S411. Select two representative points based on the workpiece's geometric characteristics and processing requirements.
[0169] S412. Input the two selected points into the automatic centering program.
[0170] S42. Control the probe to measure two points on the horizontal X-plane of the workpiece.
[0171] For example, S42 may include the following steps S421-S423:
[0172] S421. Install the probe on the spindle of the CNC machine tool (skip this step if it has already been installed).
[0173] S422 according to the pre-set operating parameters, start the automatic points program;
[0174] S423. Measure two points on the horizontal X-plane of the workpiece in sequence and record the measurement results.
[0175] S43. Calculate the angle between the line formed by two points and the X-axis.
[0176] For example, S43 may include the following steps S431-S432:
[0177] S431. Based on the measurement results, calculate the slope of the line formed by the two points;
[0178] S432. Calculate the angle between the line formed by the two points and the X-axis using an inverse trigonometric function (such as an inverse tangent function);
[0179] S433. Convert the calculated included angle value into an angle value.
[0180] By using a stylus to determine the angular relationship between this straight line and the X-axis, the actual angle between the horizontal plane of the workpiece and the X-axis can be calculated, thereby determining the angular error of the horizontal plane of the workpiece.
[0181] S44. Store the angle value in the specified variable of the machine.
[0182] For example, S44 may include the following steps S441-S442:
[0183] S441. Selecting a suitable variable in the CNC machine tool for storing the angle value;
[0184] S442. Assign the calculated angle value to the selected variable.
[0185] Storing this angle value in the designated variable of the machine allows the machine to perform subsequent correction operations based on this angle value, thereby improving the accuracy and efficiency of the machining process.
[0186] S5. Using the angle of the horizontal plane of the workpiece as a vector, use the probe to touch the workpiece in the X-axis and Y-axis directions perpendicular to the workpiece shape in the vector direction to calculate the workpiece processing origin.
[0187] In this step, the vector direction is calculated based on the angle of the workpiece's horizontal plane, and the probe's touch parameters are set. Next, the probe touches the workpiece's X / Y dimensions perpendicular to the vector direction, recording the coordinates of the touch point. Finally, the workpiece machining origin is calculated based on the coordinates of the touch point and input into the CNC machine tool.
[0188] Optionally, in a certain embodiment, S5 includes the following steps S51-S54.
[0189] S51. Calculate vector direction.
[0190] For example, S51 may include the following steps S511-S512:
[0191] S511 extracts the angle of the workpiece horizontal plane from the angle value previously stored in the machine specified variable;
[0192] S512. Calculate the vector direction based on the angle of the workpiece horizontal plane.
[0193] S52. Set the probe touch parameters.
[0194] For example, S52 may include the following steps S521-S522:
[0195] S521. Set the probe's touch parameters in the X-axis and Y-axis directions based on the vector direction and workpiece shape characteristics;
[0196] S522. Input the set touch parameters into the automatic centering program.
[0197] By using the angle of the workpiece horizontal plane as a vector, the actual measured angular error can be taken into account in the calculation of the workpiece machining origin, thereby improving the accuracy of the machining process.
[0198] S53. The probe touches the workpiece in a direction perpendicular to the X / Y direction of the workpiece.
[0199] For example, S53 may include the following steps S531-S532:
[0200] S531 according to the pre-set operating parameters, start the automatic points program;
[0201] S532. The probe touches the X-axis and Y-axis in sequence, and records the coordinates of the touch points.
[0202] By touching the workpiece in the X / Y direction with the probe in a vector direction perpendicular to the workpiece shape, the workpiece processing origin can be accurately measured, providing an accurate benchmark for subsequent processing.
[0203] S54. Calculate the workpiece processing origin.
[0204] For example, S54 may include the following steps S541-S542:
[0205] S541. Calculate the coordinates of the workpiece processing origin based on the touch point coordinates of the probe in the X-axis and Y-axis directions;
[0206] S542. Input the calculated workpiece processing origin coordinate value into the CNC machine tool as the processing origin.
[0207] By calculating the workpiece processing origin, an accurate coordinate reference can be provided for the processing process to ensure the accuracy and efficiency of the processing.
[0208] S6. Set the machining parameters based on the workpiece machining origin.
[0209] After the above steps, the pre-machining operations are ready, and the machine is waiting to execute the NC program to complete the processing of the workpiece.
[0210] An NC program (Numerical Control Program) is an abbreviation for a numerical control program. It is a series of coded instructions used to control a CNC machine tool (NC machine tool) for automated machining. An NC program typically consists of a series of G-codes, M-codes, and other related instructions. These codes and instructions control various CNC machine tool operations, such as tool movement trajectory, machining speed, feed rate, and cutting depth.
[0211] During CNC machine tool processing, the NC program breaks down the machining task into a series of executable steps and executes these steps one by one in a pre-defined sequence. By executing NC programs, CNC machine tools can achieve highly automated, high-precision, and high-efficiency machining processes.
[0212] Based on S1-S6 above, the following is an example of automatically detecting and locating workpieces:
[0213] Let's assume we need to machine a crankcase. In the I-Quicker system software, we select four points on the pallet plane, four points on the workpiece surface, and two points on the workpiece's horizontal X-plane. We also need to select measurement points on the workpiece's contour surface based on the data acquisition method used by the programming terminal.
[0214] The robot places the crankcase workpiece on the CNC machine's worktable. The probe measures four points on the pallet's flat surface, calculates the maximum and minimum values, and determines whether the pallet's flatness is within the machinable range. If it is not, the deviation is written to the machine's macro variables, and the robot waits for the workpiece to be removed or other methods are used to adjust the pallet's flatness.
[0215] The probe measures four points on the workpiece surface, calculates the maximum and minimum values, and determines whether the workpiece surface flatness is within the machinable range. If not, the deviation value is written to the machine macro variable, and the robot is allowed to pick up the material or adjust the workpiece surface flatness by other means.
[0216] The probe measures two points on the horizontal X-plane of the workpiece, calculates the angular relationship between the straight line formed by the two points and the X-axis, and stores the angle value in a specified variable of the machine.
[0217] Using the angle of the workpiece's horizontal plane as a vector, the probe touches the workpiece in the X and Y directions perpendicular to the workpiece's outline. The coordinates of the touch point are then calculated based on the coordinates of the workpiece's machining origin. These calculated coordinates are then input into the CNC machine tool as the machining origin.
[0218] After completing these steps, the workpiece is ready for machining, and the CNC machine tool is ready to execute the NC program to complete the workpiece processing. The CNC machine tool follows the pre-programmed NC program and performs cutting, drilling, milling and other operations in sequence to ensure that the size, shape and surface finish of the workpiece meet the design requirements.
[0219] Throughout the entire process, the automation system communicates with the PLC or robot through macro variables, providing data for relevant processing logic. This allows the automated production line to achieve efficient and accurate workpiece processing without human intervention, reducing production costs and improving product quality.
[0220] In summary, by applying steps S1-S6, automotive parts manufacturers can achieve automatic detection, positioning, and processing of workpieces on automated production lines. This approach greatly improves production efficiency, reduces labor costs, and ensures stable processing quality.
[0221] 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 invention.
[0222] In one embodiment, a workpiece processing coordinate system automatic correction device is provided, which corresponds one-to-one to the workpiece processing coordinate system automatic correction method in the above embodiment. The workpiece processing coordinate system automatic correction device includes:
[0223] Point selection module, used to select the pallet plane points and workpiece related measurement points on the model in the I-Quicker system software;
[0224] The pallet flatness calculation module is used to generate an automatic centering program based on the selected measurement points and measure the pallet plane points to obtain the pallet flatness;
[0225] The judgment module is used to determine whether the pallet flatness is within the machinable range. If the pallet flatness is within the machinable range, the flatness detection is continued on four points selected on the workpiece surface. If it is not within the machinable range, the pallet flatness deviation value is written into the machine macro variable and the pallet flatness adjustment is waited for.
[0226] Angle calculation module, which is used to take two points on the horizontal X-plane of the workpiece, calculate the angle between the line formed by these two points and the X-axis, and store this angle value in a specified variable of the machine;
[0227] The machining origin calculation module is used to calculate the workpiece machining origin by using the angle of the workpiece horizontal plane as a vector and using the probe to touch the workpiece in the direction of the vector perpendicular to the X-axis and Y-axis directions of the workpiece shape;
[0228] The parameter setting module is used to set the processing parameters based on the workpiece processing origin.
[0229] Regarding the specific definition of the workpiece processing coordinate system automatic correction device, please refer to the definition of the workpiece processing coordinate system automatic correction method above, which will not be repeated here. The various modules in the above-mentioned workpiece processing coordinate system automatic correction device 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 computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0230] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 2 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for data related to the automatic deviation correction method of the workpiece processing coordinate system. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for automatic deviation correction of the workpiece processing coordinate system is implemented.
[0231] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the automatic deviation correction method for a workpiece machining coordinate system according to the above embodiment is implemented. For example, Figure 1Alternatively, when the processor executes the computer program, the functions of the modules / units of the automatic deviation correction device for the workpiece machining coordinate system in the above embodiment are realized. To avoid repetition, they are not described here.
[0232] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the automatic deviation correction method of the workpiece machining coordinate system in the above embodiment is implemented, for example Figure 1 Alternatively, when the computer program is executed by the processor, the functions of each module / unit in the automatic deviation correction device for the workpiece machining coordinate system in the above device embodiment are realized. To avoid repetition, they are not described here.
[0233] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the above-described method embodiments. Any reference to memory, storage, database, or other media used in the various embodiments of this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM).
[0234] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0235] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should all be included in the scope of protection of the present invention.
Claims
1. A method for automatically correcting a workpiece machining coordinate system, characterized in that: The following steps are involved: S1. Select the pallet plane points and workpiece-related measurement points on the model in the I-Quicker system software; S2. Generate an automatic centering program based on the selected measurement points and measure the pallet plane points to obtain the pallet flatness; S3. Determine whether the pallet flatness is within the machinable range. If so, continue flatness testing at four selected points on the workpiece surface. If not, write the pallet flatness deviation value to the machine macro variable and wait for pallet flatness adjustment. S4. Take two points on the horizontal X-plane of the workpiece, calculate the angle between the line formed by these two points and the X-axis, and store this angle value in a specified variable on the machine. S5. Using the angle of the workpiece's horizontal plane as a vector, the probe touches the workpiece in the X- and Y-axis directions perpendicular to the workpiece's shape to calculate the workpiece machining origin. S6. Setting machining parameters based on the workpiece machining origin; Said S1 comprises the following steps: S11. Select four measurement points on the pallet plane. S12. Select four measurement points on the workpiece surface; S13. Select two measuring points on the horizontal X-plane of the workpiece; S14. Select the midpoint of the workpiece surface; The S2 comprises the following steps: S21 generates automatic points program; S22. Control the probe to measure four measuring points selected on the pallet plane; S23. Calculate the maximum and minimum values of the four measurement points; S24. Determine whether the flatness of the pallet is within the machinable range; The S3 includes the following steps: S31. Control the probe to measure four points on the workpiece surface; S32. Calculate the maximum and minimum values of the measurement points on the workpiece surface; S33. Determine whether the workpiece surface flatness is within the machinable range.
2. The automatic deviation correction method for a workpiece processing coordinate system according to claim 1, characterized in that: The S4 comprises the following steps: S41. Select two points on the horizontal X plane of the workpiece; S42. Control the probe to measure two points on the horizontal X-plane of the workpiece; S43. Calculate the angle between the line formed by two points and the X-axis: S44. Store the angle value in the specified variable of the machine.
3. The automatic deviation correction method for workpiece processing coordinate system according to claim 2, characterized in that: The S5 comprises the following steps: S51. Calculate vector direction; S52. Set probe touch parameters; S53. The probe touches the workpiece in a vector direction perpendicular to the X / Y direction of the workpiece shape. S54. Calculate the workpiece processing origin.
4. The automatic deviation correction method for a workpiece processing coordinate system according to claim 3, characterized in that: The S54 includes the following steps: S541. Calculate the coordinates of the workpiece processing origin based on the touch point coordinates of the probe in the X-axis and Y-axis directions; S542. Input the calculated workpiece processing origin coordinate value into the CNC machine tool as the processing origin.
5. A workpiece processing coordinate system automatic correction system, characterized in that: A method for automatically correcting a workpiece machining coordinate system according to any one of claims 1 to 4, comprising: Point selection module, used to select the pallet plane points and workpiece related measurement points on the model in the I-Quicker system software; The pallet flatness calculation module is used to generate an automatic centering program based on the selected measurement points and measure the pallet plane points to obtain the pallet flatness; The judgment module is used to determine whether the pallet flatness is within the machinable range. If the pallet flatness is within the machinable range, the flatness detection is continued on four points selected on the workpiece surface. If it is not within the machinable range, the pallet flatness deviation value is written into the machine macro variable and the pallet flatness adjustment is waited for. Angle calculation module, which is used to take two points on the horizontal X-plane of the workpiece, calculate the angle between the line formed by these two points and the X-axis, and store this angle value in a specified variable of the machine; The machining origin calculation module is used to calculate the workpiece machining origin by using the angle of the workpiece horizontal plane as a vector and using the probe to touch the workpiece in the direction of the vector perpendicular to the X-axis and Y-axis directions of the workpiece shape; The parameter setting module is used to set the processing parameters based on the workpiece processing origin.
6. A computer device, characterized in that: It includes: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the automatic correction method for the workpiece processing coordinate system according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement: the automatic correction method of the workpiece processing coordinate system as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Composite machine tool for adjusting workpiece angle based on workpiece appearance scanning data
CN113182932A
Dynamic generation method of flexible production line processing coordinate system
CN114879599A