Workpiece correction method, apparatus, device, and medium
Patent Information
- Application Number
- CN202510297563.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-13
- Publication Date
- 2026-09-08
- Estimated Expiration
- 2045-03-13
AI Technical Summary
[0003]本发明实施例提供一种工件校正方法、设备和介质,以解决现有技术中人工参与多,过程较为复杂,导致校正工件效率较低的问题
[0014]The workpiece correction method, apparatus, equipment, and medium described above, in this invention, utilizes UG software to identify points in the 3D drawing of the workpiece to be measured, thereby acquiring point information and generating a measurement program. The measurement program and a 3D measuring instrument are used to measure the points in the workpiece, thus acquiring point measurement information. Based on the point and measurement information, machining errors are calculated, enabling detection of whether the workpiece is within the accuracy error range, ensuring that the workpiece meets accuracy requirements, and facilitating automatic comparison of error ranges. This reduces workpiece correction time and improves correction efficiency. Furthermore, machining information is used to calculate the offset value of the workpiece, thereby correcting the points and acquiring the correction results.
Smart Images

Figure CN120403512B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mold processing technology, and in particular to a workpiece correction method, apparatus, equipment and medium. Background Technology
[0002] Currently, before a coordinate measuring machine (CMM) can inspect parts, the inspector needs to establish a calibration coordinate system to calibrate the workpiece and then establish a detection coordinate system to inspect it. This process is highly dependent on manual intervention. Furthermore, establishing the calibration coordinate system involves many steps, requiring manual operation of the CMM to collect data along the XYZ axes, manual creation of the coordinate system, and then fitting the detection coordinate system with a model. Finally, the workpiece is inspected by touching it at the determined detection points. This process involves a lot of manual intervention and is quite complex, which reduces the efficiency of workpiece calibration. Summary of the Invention
[0003] This invention provides a workpiece correction method, device, and medium to solve the problem that the prior art involves a lot of manual intervention, has a relatively complex process, and results in low efficiency in workpiece correction.
[0004] A workpiece straightening method, comprising: The workpiece to be measured is obtained, and the workpiece 3D drawing corresponding to the workpiece to be measured is identified by UG software to obtain the point information, and a measurement program is generated based on the point information. Information is identified on the workpiece to be tested to obtain workpiece information. After selecting a rack to assemble and fix the workpiece to be tested according to the workpiece information, the workpiece to be tested is transported to the three-dimensional measuring instrument. The three-dimensional measuring instrument performs point detection on the workpiece to be measured according to the measurement program to obtain measurement information; Based on the location information and the measurement information, determine the processing error corresponding to the workpiece to be measured; If the machining error is within the accuracy error range, the workpiece to be tested is corrected using the machining information to obtain the correction result.
[0005] In one embodiment, the machining error includes straight line parallelism error and planar parallelism error; The step of determining the machining error corresponding to the workpiece to be measured based on the location information and the measurement information includes: Based on the location information, determine the theoretical point line, and based on the measurement information, determine the measurement point line; Based on the theoretical point line and the measured point line, determine the parallelism error of the line corresponding to the workpiece to be measured; Based on the location information, the theoretical location plane is determined, and based on the measurement information, the measurement location plane is determined; Based on the theoretical point plane and the measurement point plane, the plane parallelism error corresponding to the workpiece to be measured is determined.
[0006] In one embodiment, the step of performing position correction on the workpiece under test using processing information to obtain position correction results includes: Based on the workpiece information, determine the processing information corresponding to the workpiece to be tested, and extract the theoretical requirements corresponding to the workpiece to be tested from the processing information; Based on the theoretical requirements and the measurement information, determine the point offset value; The workpiece under test is corrected by using the point offset value to obtain the point correction result.
[0007] In one embodiment, the step of having the three-dimensional measuring instrument perform point detection on the workpiece to be measured according to the measurement program to obtain measurement information includes: Upon receiving a read command, the three-dimensional measuring instrument is instructed to read and parse the measurement program according to the read command to obtain the point to be measured and the point detection path corresponding to the point to be measured. The three-dimensional detector is controlled according to the point detection path to perform point detection on the points to be measured, and measurement information corresponding to each point to be measured is obtained.
[0008] In one embodiment, detecting whether the machining error is within the accuracy error range includes: The accuracy error range is obtained, which includes the linear accuracy error range and the planar accuracy error range; the accuracy error range is obtained by analyzing a large amount of historical data through a preset data analysis model. Compare the straight line parallelism error and the straight line accuracy error range, and compare the plane parallelism error and the plane accuracy error range; When the straight line parallelism error is within the straight line accuracy error range and the plane parallelism error is within the plane accuracy error range, the machining error is determined to be within the accuracy error range. When the straight line parallelism error exceeds the straight line accuracy error range, or the plane parallelism error exceeds the plane accuracy error range, it is determined that the machining error is not within the accuracy error range.
[0009] In one embodiment, the step of identifying the position of a workpiece in a 3D drawing file corresponding to the workpiece to be tested using UG software to obtain position information includes: Obtain the 3D drawing file of the workpiece and import the 3D drawing file of the workpiece into UG software; The UG software is instructed to identify the points on the workpiece under test based on the workpiece's 3D drawing file to obtain the point information.
[0010] In one embodiment, the step of having the UG software perform point identification on the workpiece to be tested based on the workpiece's 3D drawing to obtain point information includes: A first reference point is selected on the workpiece to be tested, and a second reference point far away from the first reference point is selected on the workpiece to be tested using UG software; The workpiece coordinate system and the position information of all the preset points in the workpiece coordinate system are determined; wherein, the Y-axis of the workpiece coordinate system is the line connecting the first reference point and the second reference point; the X-axis of the workpiece coordinate system is the perpendicular line between the third reference point and the Y-axis; the origin of the workpiece coordinate system is the intersection of the X-axis and the Y-axis; the Z-axis of the workpiece coordinate system is the line passing through the origin and perpendicular to the X-axis and the Y-axis; the third reference point refers to the point in the workpiece to be measured that is farthest from the Y-axis.
[0011] A workpiece straightening device, comprising: The point identification module is used to acquire the workpiece to be measured, and to identify the point information by using UG software to identify the point information of the 3D drawing file of the workpiece to be measured, and to generate a measurement program based on the point information. The information recognition module is used to recognize the information of the workpiece to be tested, obtain the workpiece information, and select the material rack to assemble and fix the workpiece to be tested according to the workpiece information, and then transport the workpiece to be tested to the three-dimensional measuring instrument. The point detection module is used to enable the three-dimensional measuring instrument to perform point detection on the workpiece to be measured according to the measurement program, and obtain measurement information; An error determination module is used to determine the machining error corresponding to the workpiece to be measured based on the location information and the measurement information. The point correction module is used to detect whether the machining error is within the accuracy error range. If the machining error is within the accuracy error range, the point correction is performed on the workpiece to be tested through the machining information to obtain the point correction result.
[0012] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor being used to perform the workpiece correction method described above.
[0013] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described workpiece correction method.
[0014] The workpiece correction method, apparatus, equipment, and medium described above, in this invention, utilizes UG software to identify points in the 3D drawing of the workpiece to be measured, thereby acquiring point information and generating a measurement program. The measurement program and a 3D measuring instrument are used to measure the points in the workpiece, thus acquiring point measurement information. Based on the point and measurement information, machining errors are calculated, enabling detection of whether the workpiece is within the accuracy error range, ensuring that the workpiece meets accuracy requirements, and facilitating automatic comparison of error ranges. This reduces workpiece correction time and improves correction efficiency. Furthermore, machining information is used to calculate the offset value of the workpiece, thereby correcting the points and acquiring the correction results. Attached Figure Description
[0015] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a flowchart of a workpiece correction method according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the workpiece correction device in one embodiment of the present invention. Detailed Implementation
[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of the present invention.
[0018] In one embodiment, such as Figure 1 As shown, a workpiece straightening method is provided, including the following steps: S10: Obtain the workpiece to be measured, use UG software to identify the points in the 3D drawing of the workpiece corresponding to the workpiece to be measured, obtain the point information, and generate a measurement program based on the point information.
[0019] Understandably, the workpiece to be measured refers to the workpiece whose processing effect needs to be inspected after machining. UG software, short for Unigraphics NX, is an interactive CAD / CAM (Computer-Aided Design / Computer-Aided Manufacturing) system. Preset points refer to points that are pre-set in the workpiece for machining. Point information refers to the coordinate information of the preset points within the points to be measured. The measurement program refers to the code program that converts the point information into a three-dimensional measurement instrument that can recognize.
[0020] Specifically, the process involves acquiring the workpiece to be measured, retrieving its corresponding 3D drawing, and importing it into UG software. UG software then parses the 3D drawing and identifies points on the workpiece, obtaining point information corresponding to each preset point in the 3D drawing. Finally, a measurement program is generated based on this point information; that is, the measurement software is acquired, all point information is imported into it, and the software automatically generates a measurement program corresponding to all point information.
[0021] S20: The workpiece to be tested is identified to obtain workpiece information. After selecting the material rack to assemble and fix the workpiece to be tested according to the workpiece information, the workpiece to be tested is transported to the three-dimensional measuring instrument.
[0022] In essence, a rack assembly refers to equipment used to secure a workpiece to be measured, such as clips. Workpiece information is used to identify the workpiece being measured, such as its serial number. A coordinate measuring machine (CMM) is a precision measuring device capable of accurately measuring the geometric dimensions and shape of an object in three-dimensional space.
[0023] Specifically, the workpiece to be tested is identified by a reader mounted on the robotic arm that identifies the RFID tag on the workpiece to obtain the information corresponding to the workpiece and confirm it as workpiece information. Then, based on the workpiece information, a rack corresponding to the workpiece to be tested is selected from all parts for assembly, and the workpiece to be tested is fixed on an automated guided vehicle (AGV) using the rack assembly. The AAV then transports the workpiece to be tested to the three-dimensional measuring machine.
[0024] S30: The three-dimensional measuring instrument is instructed to perform point detection on the workpiece to be tested according to the measurement program to obtain measurement information.
[0025] Understandably, measurement information refers to the detection results of points in the workpiece being measured.
[0026] Specifically, the 3D measuring instrument performs point detection on the workpiece to be tested according to the measurement program. This involves inputting the measurement program into the 3D measuring instrument and parsing it to obtain the points to be measured and their corresponding detection paths. Then, the 3D measuring instrument is controlled to measure the points on the workpiece according to the detection paths, thus obtaining the measurement information corresponding to the workpiece.
[0027] S40: Determine the machining error corresponding to the workpiece to be measured based on the location information and the measurement information.
[0028] Understandably, machining errors include straight line parallelism error and plane parallelism error, which characterize the degree to which a straight line or plane deviates from the ideal parallel state in a specific direction.
[0029] Specifically, the linear information and planar information of the workpiece under test are calculated using all point information. The linear and planar information of the workpiece under test are calculated using the point measurement information. Then, error calculations are performed based on the linear and planar information corresponding to the same points, thus obtaining the machining error corresponding to the workpiece under test.
[0030] S50: Detect whether the machining error is within the accuracy error range. If the machining error is within the accuracy error range, perform point correction on the workpiece to be tested using the machining information to obtain the point correction result.
[0031] Understandably, the accuracy error range refers to the allowable range of difference between the measurement result and the theoretical value. The point calibration result refers to the result of correcting the coordinates of points on the workpiece being measured.
[0032] Specifically, the accuracy error range is obtained, and it is detected whether the machining error corresponding to the workpiece under test is within the accuracy error range. This involves comparing the straight-line error and planar error with the straight-line error range and planar error range respectively within the accuracy error range. If both the straight-line error and planar error are within the straight-line error range, the machining error is determined to be within the accuracy error range. If neither the straight-line error nor the planar error is within the straight-line error range, the machining error is determined to be outside the accuracy error range. Further, if the machining error is within the accuracy error range, the workpiece under test is corrected using the machining information. This involves obtaining the machining information corresponding to the workpiece under test from the workpiece information, and obtaining the theoretical requirements corresponding to each preset point from the machining information. Then, the difference between the theoretical requirements and the measurement information is calculated to obtain the offset value corresponding to each preset point. Next, the workpiece under test is corrected using all offset values to obtain the point correction result. If the machining error is outside the accuracy error range, it is determined whether the workpiece under test can be reworked. If so, the workpiece is transported to the machine tool for reprocessing using an automated guided vehicle. If not, the workpiece to be tested shall be scrapped.
[0033] In the workpiece calibration method of this invention, the 3D drawing of the workpiece corresponding to the workpiece to be measured is identified using UG software. This identification of points in the workpiece allows for the acquisition of point information, which in turn enables the generation of a measurement program. The measurement program and a 3D measuring instrument are used to measure the points in the workpiece, thereby acquiring point measurement information. Based on the point and measurement information, machining errors are calculated, allowing for the detection of whether the workpiece is within the accuracy error range. This ensures that the workpiece meets accuracy requirements and enables automatic comparison of error ranges, reducing workpiece calibration time and improving calibration efficiency. Finally, machining information is used to calculate the offset value of the workpiece, thereby achieving point calibration and acquiring the point calibration results.
[0034] In one embodiment, step S10 involves using UG software to identify the points in the 3D drawing of the workpiece corresponding to the workpiece to be tested, obtaining point information, including: S101, Obtain the 3D drawing file of the workpiece and import the 3D drawing file of the workpiece into the UG software.
[0035] S102, the UG software is instructed to perform point identification on the workpiece to be tested based on the workpiece's 3D drawing file to obtain point information.
[0036] Understandably, a workpiece 3D drawing file refers to a 3D schematic diagram of the workpiece to be tested.
[0037] Specifically, a 3D drawing of the workpiece to be tested is acquired and imported into UG software. Then, UG software identifies the points in the workpiece according to the 3D drawing. In other words, UG software identifies the preset points in the workpiece and identifies the coordinates of each preset point. That is, it first checks whether a coordinate system exists in the 3D drawing. If a coordinate system exists, the coordinates of the points are identified according to that coordinate system. If not, a coordinate system is established by selecting a reference point in the 3D drawing and the coordinates of the preset points in that coordinate system are identified, thus obtaining the point information.
[0038] In this embodiment, the three-dimensional drawing of the workpiece is used to determine the points in the workpiece to be tested, and to identify the point information, thus ensuring the accuracy of the identified points.
[0039] In one embodiment, step S102, namely, using UG software to perform point identification on the 3D workpiece drawing corresponding to the workpiece to be tested, to obtain point information, includes: S1021, Select a first reference point on the workpiece to be tested, and select a second reference point on the workpiece to be tested that is far away from the first reference point using UG software; S1022, determine the workpiece coordinate system and the position information of all the preset points in the workpiece coordinate system; wherein, the Y-axis of the workpiece coordinate system is the line connecting the first reference point and the second reference point; the X-axis of the workpiece coordinate system is the perpendicular line between the third reference point and the Y-axis; the origin of the workpiece coordinate system is the intersection of the X-axis and the Y-axis; the Z-axis of the workpiece coordinate system is a line passing through the origin and perpendicular to the X-axis and the Y-axis; the third reference point refers to the point in the workpiece to be measured that is farthest from the Y-axis.
[0040] Understandably, the first reference point refers to any point on the workpiece being measured used to establish the coordinate system. The second reference point refers to the point on the workpiece being measured that is farthest from the first reference point.
[0041] Specifically, a first reference point is selected on the workpiece to be tested, that is, any point on the workpiece is selected and designated as the first reference point. Then, with the assistance of UG software, a point on the workpiece to be tested that is farthest from the first reference point is selected and designated as the second reference point. Further, the first and second reference points are connected, and the line connecting the first and second reference points is designated as the Y-axis, with the direction of the line connecting the first and second reference points as the positive half-axis direction of the Y-axis. Next, the point on the workpiece to be tested that is farthest from the Y-axis is selected and designated as the third reference point. A perpendicular line is drawn from the third reference point to the Y-axis, and this perpendicular line is designated as the X-axis. The direction of the line connecting the third reference point to the Y-axis is designated as the negative half-axis direction of the X-axis, and the intersection of the X-axis and Y-axis is designated as the origin. Then, the line passing through the origin and perpendicular to the X-axis and Y-axis is designated as the Z-axis, and the direction from bottom to top passing through the origin and perpendicular to the X-axis and Y-axis is designated as the positive half-axis direction of the Z-axis. Finally, a coordinate system is created based on the origin, X-axis, Y-axis, and Z-axis, and this system is designated as the workpiece coordinate system, with the origin set as the origin of the coordinate system. Then, the positions of preset points on the workpiece to be measured are determined, thereby obtaining the point position information of the preset points in the workpiece coordinate system.
[0042] In this embodiment, by selecting multiple reference points, the coordinate system of the workpiece is determined, thereby determining the coordinates of the preset points and obtaining the point information in the workpiece coordinate system.
[0043] In one embodiment, step S30, namely, instructing the three-dimensional measuring instrument to perform point detection on the workpiece to be measured according to the measurement program to obtain measurement information, includes: S301, Receive read command, instruct the three-dimensional detector to read and parse the measurement program according to the read command, and obtain the point to be measured and the point detection path corresponding to the point to be measured.
[0044] S302, according to the point detection path, control the three-dimensional detector to perform point detection on the point to be measured, and obtain the measurement information corresponding to each point to be measured.
[0045] In essence, a read command refers to an instruction used to control a 3D measuring instrument to acquire a measurement program. The point to be measured refers to the location of the point to be measured on the workpiece. The point detection path refers to the path used to detect the point to be measured. The point detection information refers to the result of the 3D measuring instrument's detection of that point.
[0046] Specifically, upon receiving a read command, the 3D coordinate measuring machine (CMM) reads the generated measurement program according to the command. This means acquiring the measurement program through the read command, then parsing the program to obtain all the test points and their detection paths. Based on the detection paths, the CMM is controlled to perform point detection on the test points. In other words, the CMM performs coordinate detection on the test points on the workpiece according to the detection paths, controlling the probe to gradually approach the test points along the detection paths to obtain point detection information. This process is repeated for all test points, yielding all point detection results, which are then used as the measurement information.
[0047] In this embodiment, the measurement program is read by reading instructions, thereby enabling the parsing of the measurement program and the acquisition of the measurement points and their detection paths. By using the measurement points and their detection paths, the detection information of the points is acquired, which in turn determines the measurement information, ensuring the accuracy of the workpiece processing.
[0048] In one embodiment, in step S40, the machining error includes straight line parallelism error and planar parallelism error; that is, based on the point information and the measurement information, determining the machining error corresponding to the workpiece to be measured includes: S401, Based on the location information, determine the theoretical point line and the measurement point line.
[0049] S402, Based on the theoretical point line and the measured point line, determine the parallelism error of the line corresponding to the workpiece to be measured.
[0050] S403, determine the theoretical point plane based on the point information, and determine the measurement point plane based on the measurement information.
[0051] S404, Based on the theoretical point plane and the measurement point plane, determine the plane parallelism error corresponding to the workpiece to be measured.
[0052] Understandably, manufacturing errors include straight-line parallelism error and planar parallelism error. Straight-line parallelism error characterizes the degree to which a straight line deviates from its ideal parallel state in a specific direction. Planar parallelism error characterizes the degree to which a plane deviates from its ideal parallel state in a specific direction.
[0053] Specifically, based on the point location information, the theoretical point line is determined, that is, the preset points on the same side are obtained. Then, the line vector between the two preset points is determined using the point location information, thus obtaining the theoretical point line. Similarly, based on the measurement information, the measurement point line is determined, that is, the preset points on the same side are obtained. Then, the line vector between the two preset points is determined using the measurement information, thus obtaining the measurement point line. Then, the angle between the theoretical point line and the measurement point line at the same preset point on the same side is calculated, that is, the angle between the two directional vectors is calculated using the dot product formula of vectors, thus obtaining the line parallelism error. Further, based on the point location information, the theoretical point plane is determined, that is, three non-collinear preset points are selected in a plane, and the normal vector of the plane containing the three preset points is calculated using the point location information corresponding to each preset point, thus obtaining the theoretical point plane. Similarly, based on the measurement information, the measurement point plane is determined. This involves selecting three non-collinear preset points within a plane, and calculating the normal vectors of the planes containing these three preset points using the measurement information corresponding to each point. This yields the measurement point plane. Based on the theoretical and measurement point planes, the parallelism error corresponding to the workpiece is determined. This is achieved by selecting a point on the theoretical plane and calculating the distance between that point and the measurement point plane. Alternatively, a point can be selected on the measurement point plane, and the distance between that point and the theoretical plane can be calculated to obtain the parallelism error.
[0054] In this embodiment, by using point information and measurement information, the theoretical point line and the measured point line are obtained, thereby enabling the calculation of the line parallelism error. Similarly, by using point information and measurement information, the theoretical point plane and the measured point plane are obtained, thereby enabling the calculation of the plane parallelism error.
[0055] In one embodiment, step S50, namely detecting whether the machining error is within the accuracy error range, includes: S501, Obtain the accuracy error range, which includes the straight line accuracy error range and the plane accuracy error range; the accuracy error range is obtained by analyzing a large amount of historical data through a preset data analysis model.
[0056] S502, compare the straight line parallelism error and the straight line accuracy error range, and compare the plane parallelism error and the plane accuracy error range.
[0057] S503, when the straight line parallelism error is within the straight line accuracy error range and the plane parallelism error is within the plane accuracy error range, it is determined that the machining error is within the accuracy error range.
[0058] S504, when the straight line parallelism error exceeds the straight line accuracy error range, or the plane parallelism error exceeds the plane accuracy error range, it is determined that the machining error is not within the accuracy error range.
[0059] Understandably, the straight-line accuracy error range refers to the allowable error range for straight-line parallelism. The plane accuracy error range refers to the allowable error range for plane parallelism. This accuracy error range is obtained by analyzing a large amount of historical data using a preset data analysis model. In other words, a preset neural network model is trained using a large amount of historical data, thereby enabling the neural network model to perform data analysis, resulting in the preset data analysis model. Then, the data collected by the preset data analysis model is analyzed to obtain the accuracy error range.
[0060] Specifically, the accuracy error range corresponding to the workpiece under test is obtained, including the straightness accuracy error range and the planarity accuracy error range. Then, the straightness parallelism error within the machining error is compared with the straightness accuracy error range within the accuracy error range to determine whether the straightness parallelism error is within the straightness accuracy error range. Similarly, the planarity parallelism error within the machining error is compared with the planarity accuracy error range within the accuracy error range to determine whether the planarity parallelism error is within the planarity accuracy error range. Further, if both the straightness parallelism error and the planarity parallelism error are within the straightness accuracy error range, the machining error is determined to be within the accuracy error range. If either the straightness parallelism error exceeds the straightness accuracy error range, or the planarity parallelism error exceeds the planarity accuracy error range, the machining error is determined not to be within the accuracy error range.
[0061] In this embodiment, by comparing the processing error and the accuracy error range, automatic error judgment is achieved, avoiding manual intervention, thereby reducing the workpiece correction time and improving the efficiency of workpiece correction.
[0062] In one embodiment, step S60, namely, performing position correction on the workpiece to be tested using processing information to obtain the position correction result, includes: S601, Based on the workpiece information, determine the processing information corresponding to the workpiece to be tested, and extract the theoretical requirements corresponding to the workpiece to be tested from the processing information.
[0063] S602, Determine the point offset value based on the theoretical requirements and the measurement information.
[0064] S603, the workpiece to be tested is corrected by the point offset value to obtain the point correction result.
[0065] In essence, machining information refers to the parameters used to machine the workpiece, such as the machining path and position coordinates of each point. Point offset value refers to the difference between the measured information of the preset point and the theoretical requirements. Theoretical requirements refer to the theoretical machining requirements for the workpiece points.
[0066] Specifically, after determining that the machining error is within the accuracy error range, the machining information corresponding to the workpiece under test is obtained based on the identified workpiece information. The machining information is analyzed to extract the theoretical requirements corresponding to each preset point on the workpiece under test. Then, based on the theoretical requirements and measurement information corresponding to the same preset point, the point offset value is calculated. This process is repeated for all preset point offset values to obtain the point offset value corresponding to each preset point. Next, the workpiece under test is corrected using all point offset values; that is, the point offset value of each preset point is determined as the machining parameter for the next machining operation at that preset point. The workpiece is then transported to the machine tool, and the preset point is machined again according to the point offset value to obtain the point correction result.
[0067] In this embodiment, the processing information of the workpiece under test is obtained through the workpiece information, thereby determining the theoretical requirements for each preset point. By using the theoretical requirements and measurement information corresponding to the same preset point, the offset value of the point is calculated, thus enabling the correction of the preset point and ensuring the accuracy of the workpiece processing.
[0068] It should be understood that the sequence number of each step in the above embodiments does not imply 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.
[0069] In one embodiment, a workpiece straightening device is provided, which corresponds one-to-one with the workpiece straightening method described in the above embodiments. For example... Figure 2 As shown, the workpiece correction device includes a point identification module 10, an information identification module 20, a point detection module 30, an error determination module 40, and a point correction module 50. Detailed descriptions of each functional module are as follows: The point identification module 10 is used to acquire the workpiece to be measured, perform point identification on the 3D drawing file of the workpiece corresponding to the workpiece to be measured using UG software, obtain point information, and generate a measurement program based on the point information. The information recognition module 20 is used to recognize the information of the workpiece to be tested, obtain the workpiece information, and select the material rack to assemble and fix the workpiece to be tested according to the workpiece information, and then transport the workpiece to be tested to the three-dimensional measuring instrument. The point detection module 30 is used to enable the three-dimensional measuring instrument to perform point detection on the workpiece to be measured according to the measurement program, and obtain measurement information. The error determination module 40 is used to determine the processing error corresponding to the workpiece to be measured based on the point information and the measurement information. The point correction module 50 is used to detect whether the machining error is within the accuracy error range. If the machining error is within the accuracy error range, the point correction is performed on the workpiece to be tested through the machining information to obtain the point correction result.
[0070] In one embodiment, the location identification module 10 includes: The drawing import unit is used to acquire the 3D drawing of the workpiece and import the 3D drawing of the workpiece into UG software; The point information unit is used to enable the UG software to identify the points of the workpiece to be tested based on the workpiece's 3D drawing file, and obtain point information.
[0071] In one embodiment, the location information unit includes: The reference point determination subunit is used to select a first reference point on the workpiece to be tested, and to select a second reference point on the workpiece to be tested that is far away from the first reference point using UG software. A workpiece coordinate system subunit is used to determine the workpiece coordinate system and the position information of all the preset points in the workpiece coordinate system; wherein, the Y-axis of the workpiece coordinate system is the line connecting the first reference point and the second reference point; the X-axis of the workpiece coordinate system is the perpendicular line between the third reference point and the Y-axis; the origin of the workpiece coordinate system is the intersection of the X-axis and the Y-axis; the Z-axis of the workpiece coordinate system is a line passing through the origin and perpendicular to the X-axis and the Y-axis; the third reference point refers to the point in the workpiece to be measured that is farthest from the Y-axis.
[0072] In one embodiment, the point detection module 30 includes: The measurement program parsing unit is used to receive reading instructions, and to enable the three-dimensional detector to read and parse the measurement program according to the reading instructions, so as to obtain the point to be measured and the point detection path corresponding to the point to be measured; The three-dimensional detection unit is used to control the three-dimensional detector to perform point detection on the points to be measured according to the point detection path, so as to obtain the measurement information corresponding to each point to be measured.
[0073] In one embodiment, the processing error includes straight line parallelism error and planar parallelism error; the error determination module 40 includes: The point-line unit is used to determine the theoretical point-line based on the point information, and to determine the measurement point-line based on the measurement information. The straight line error unit is used to determine the straight line parallelism error corresponding to the workpiece to be measured based on the theoretical point line and the measured point line. The point-plane unit is used to determine the theoretical point-plane based on the point information, and to determine the measurement point-plane based on the measurement information; The plane error unit is used to determine the plane parallelism error corresponding to the workpiece to be measured based on the theoretical point plane and the measurement point plane.
[0074] In one embodiment, the point correction module 50 includes: An error range unit is used to obtain the accuracy error range, which includes a linear accuracy error range and a planar accuracy error range; the accuracy error range is obtained by analyzing a large amount of historical data through a preset data analysis model. An error comparison unit is used to compare the straight line parallelism error and the straight line accuracy error range, and to compare the plane parallelism error and the plane accuracy error range. The error range unit is used to determine that the machining error is within the accuracy error range when the straight parallelism error is within the straight accuracy error range and the plane parallelism error is within the plane accuracy error range; The "not within error range" unit is used to determine that the machining error is not within the accuracy error range when the straight line parallelism error exceeds the straight line accuracy error range or the plane parallelism error exceeds the plane accuracy error range.
[0075] In one embodiment, the point correction module 50 includes: The theoretical requirement unit is used to determine the processing information corresponding to the workpiece to be tested based on the workpiece information, and to extract the theoretical requirements corresponding to the workpiece to be tested from the processing information; The point offset value unit is used to determine the point offset value based on the theoretical requirements and the measurement information. The point position correction result unit is used to perform point position correction on the workpiece under test using the point position offset value to obtain the point position correction result.
[0076] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor being used to perform the workpiece correction method described above.
[0077] Specific limitations regarding the computer equipment, processor, and their various units and modules can be found in the above description of the workpiece correction method, and will not be repeated here. Each module in the aforementioned processor can be implemented entirely or partially through software, hardware, or a combination thereof. Understandably, the processor includes a processor, memory, network interface, and database connected via a device bus. Each module of the processor can be embedded in hardware or independent of the processor, or stored in memory as software, so that the processor can call and execute the operations corresponding to each module. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores operating devices, computer programs, and a database. The internal memory provides an environment for the operation of the operating devices and computer programs in the non-volatile storage media. The database stores the data used in the workpiece correction method in the above embodiments. The network interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a workpiece correction method.
[0078] In one embodiment, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described workpiece correction method.
[0079] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. 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 embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can 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 a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0080] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to 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.
[0081] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A workpiece straightening method, characterized in that, include: The workpiece to be measured is obtained, and the workpiece 3D drawing corresponding to the workpiece to be measured is identified by UG software to obtain the point information, and a measurement program is generated based on the point information. Information is identified on the workpiece to be tested to obtain workpiece information. After selecting a rack to assemble and fix the workpiece to be tested according to the workpiece information, the workpiece to be tested is transported to the three-dimensional measuring instrument. The three-dimensional measuring instrument performs point detection on the workpiece to be measured according to the measurement program to obtain measurement information; Based on the location information and the measurement information, determine the processing error corresponding to the workpiece to be measured; The machining error is detected to see if it is within the accuracy error range. If the machining error is within the accuracy error range, the workpiece to be tested is corrected by the machining information to obtain the correction result. The step of performing position correction on the workpiece under test using processing information to obtain position correction results includes: Based on the workpiece information, determine the processing information corresponding to the workpiece to be tested, and extract the theoretical requirements corresponding to the workpiece to be tested from the processing information; Based on the theoretical requirements and the measurement information, determine the point offset value; The workpiece under test is corrected by using the point offset value to obtain the point correction result; The three-dimensional measuring instrument is instructed to perform point detection on the workpiece to be measured according to the measurement program to obtain measurement information, including: Upon receiving a read command, the three-dimensional measuring instrument is instructed to read and parse the measurement program according to the read command to obtain the point to be measured and the point detection path corresponding to the point to be measured. The three-dimensional detector is controlled according to the point detection path to perform point detection on the points to be measured, and measurement information corresponding to each point to be measured is obtained.
2. The workpiece correction method as described in claim 1, characterized in that, The machining errors include straight line parallelism error and planar parallelism error; The step of determining the machining error corresponding to the workpiece to be measured based on the location information and the measurement information includes: Based on the location information, determine the theoretical point line, and based on the measurement information, determine the measurement point line; Based on the theoretical point line and the measured point line, determine the parallelism error of the line corresponding to the workpiece to be measured; Based on the location information, the theoretical location plane is determined, and based on the measurement information, the measurement location plane is determined; Based on the theoretical point plane and the measurement point plane, the plane parallelism error corresponding to the workpiece to be measured is determined.
3. The workpiece correction method as described in claim 2, characterized in that, The detection of whether the machining error is within the accuracy error range includes: The accuracy error range is obtained, which includes the linear accuracy error range and the planar accuracy error range; the accuracy error range is obtained by analyzing a large amount of historical data through a preset data analysis model. Compare the straight line parallelism error and the straight line accuracy error range, and compare the plane parallelism error and the plane accuracy error range; When the straight line parallelism error is within the straight line accuracy error range and the plane parallelism error is within the plane accuracy error range, the machining error is determined to be within the accuracy error range. When the straight line parallelism error exceeds the straight line accuracy error range, or the plane parallelism error exceeds the plane accuracy error range, it is determined that the machining error is not within the accuracy error range.
4. The workpiece correction method as described in claim 1, characterized in that, The step involves using UG software to identify the points in the 3D drawing of the workpiece corresponding to the workpiece under test, obtaining point information, including: Obtain the 3D drawing file of the workpiece and import the 3D drawing file of the workpiece into UG software; The UG software is instructed to identify the points on the workpiece under test based on the workpiece's 3D drawing file to obtain the point information.
5. The workpiece correction method as described in claim 4, characterized in that, The UG software is instructed to perform point identification on the workpiece under test based on the workpiece's 3D drawing to obtain point information, including: A first reference point is selected on the workpiece to be tested, and a second reference point far away from the first reference point is selected on the workpiece to be tested using UG software; The workpiece coordinate system and the position information of all preset points in the workpiece coordinate system are determined; wherein, the Y-axis of the workpiece coordinate system is the line connecting the first reference point and the second reference point; the X-axis of the workpiece coordinate system is the perpendicular line between the third reference point and the Y-axis; the origin of the workpiece coordinate system is the intersection of the X-axis and the Y-axis; the Z-axis of the workpiece coordinate system is the line passing through the origin and perpendicular to the X-axis and the Y-axis; the third reference point refers to the point in the workpiece to be measured that is farthest from the Y-axis.
6. A workpiece straightening device, characterized in that, include: The point identification module is used to acquire the workpiece to be measured, and to identify the point information by using UG software to identify the point information of the 3D drawing file of the workpiece to be measured, and to generate a measurement program based on the point information. The information recognition module is used to recognize the information of the workpiece to be tested, obtain the workpiece information, and select the material rack to assemble and fix the workpiece to be tested according to the workpiece information, and then transport the workpiece to be tested to the three-dimensional measuring instrument. The point detection module is used to enable the three-dimensional measuring instrument to perform point detection on the workpiece to be measured according to the measurement program, and obtain measurement information; An error determination module is used to determine the machining error corresponding to the workpiece to be measured based on the location information and the measurement information. The point correction module is used to detect whether the machining error is within the accuracy error range. If the machining error is within the accuracy error range, the point correction is performed on the workpiece to be tested through the machining information to obtain the point correction result. The point correction module includes: The theoretical requirement unit is used to determine the processing information corresponding to the workpiece to be tested based on the workpiece information, and to extract the theoretical requirements corresponding to the workpiece to be tested from the processing information; The point offset value unit is used to determine the point offset value based on the theoretical requirements and the measurement information. The point correction result unit is used to perform point correction on the workpiece under test using the point offset value to obtain the point correction result. The point detection module includes: The measurement program parsing unit is used to receive reading instructions, and to enable the three-dimensional detector to read and parse the measurement program according to the reading instructions, so as to obtain the point to be measured and the point detection path corresponding to the point to be measured; The three-dimensional detection unit is used to control the three-dimensional detector to perform point detection on the points to be measured according to the point detection path, so as to obtain the measurement information corresponding to each point to be measured.
7. A computer device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor being used to perform the workpiece correction method as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the workpiece correction method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method and system for processing three-dimensional model in CAE (Computer Aided Engineering) software
CN116433794A
Method and apparatus for detecting of workpiece position and matching of CAD data using 3 dimensional vision camera system
KR1020090059751A