A method for automatically rendering and analyzing deformation of automatic drilling and riveting processing results

By recording the equipment coordinate values ​​in the automatic drilling and riveting work log, reverse solving and combining it with CATIA software rendering analysis, the problem of product deformation during automatic drilling and riveting processing was solved, and a fast and accurate deformation analysis was achieved, thereby improving production efficiency and product quality.

CN117036276BActive Publication Date: 2025-09-09AVIC SAC COMML AIRCRAFT
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310994662.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-09
Publication Date
2025-09-09
Estimated Expiration
2043-08-09

AI Technical Summary

Technical Problem

During the automatic drilling and riveting process, product deformation occurs due to improper drilling and riveting sequences and insufficient tooling positioning accuracy. The existing data collection method is time-consuming and prone to distortion, affecting production cycle and quality.

Method used

The automatic drilling and riveting work log is used to record the equipment coordinate values, and the text information is processed through C# language to reversely solve the difference between the theoretical and actual coordinate values. CATIA software is used for automatic rendering analysis to intuitively display the deformation.

Benefits of technology

It realizes fast and accurate analysis of product deformation, reduces measurement costs, shortens production cycles, and improves product quality stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117036276B_ABST
    Figure CN117036276B_ABST
Patent Text Reader

Abstract

A method for automatically rendering and analyzing deformation results from automated drilling and riveting processes, pertaining to the field of drilling and riveting. This method utilizes the work log function of automated drilling and riveting equipment to reverse engineer actual product processing position information, accurately deriving actual product deformation. This method rapidly reads automated drilling and riveting position information, avoiding the use of conventional laser trackers, reducing measurement costs and shortening production cycles. Furthermore, it automatically renders product deformation, intuitively displaying the degree and location of deformation, and rapidly identifying the causes of product deformation during processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of drilling and riveting processing, and in particular relates to an automatic rendering and analysis method for deformation of automatic drilling and riveting processing results. Background Art

[0002] During the automatic drilling and riveting process, factors such as improper drilling and riveting sequences, expansion of press rivets, and inadequate tooling positioning accuracy can affect the product, potentially leading to varying degrees of deformation. Therefore, to ensure the quality and stability of products processed through automatic drilling and riveting, deformation analysis of the processed products is required. The usual method for collecting product deformation data is to use a laser tracker to measure the product's shape and compare it with the theoretical data of a three-dimensional digital model to analyze the product's deformation. However, this data collection method requires a large amount of data collection work, which in turn increases the product's production cycle. Furthermore, the shifting and turnover between the actual automatic drilling and riveting processing station and the measurement station can lead to partial distortion of the collected data. Summary of the Invention

[0003] In order to overcome the above-mentioned technical defects of the existing technology, the present invention provides an automatic rendering and analysis method for the deformation of automatic drilling and riveting processing results. The automatic drilling and riveting work log function is used to record the actual coordinate value of each point processed by the equipment, and the three-dimensional coordinate value of the processing point is reversely solved by the equipment coordinate value. The difference with the theoretical coordinate value is compared, and the deformation is intuitively presented in an automatic rendering and coloring manner, thereby realizing product deformation analysis.

[0004] The technical solution of the present invention:

[0005] A method for automatically rendering and analyzing the deformation of automatic drilling and riveting processing results, the steps are as follows:

[0006] 1) Read the CNC program file containing the execution motion instructions, use the Textreader method in the C# language to read the text information, and then read the text information into the string object S1 (method A).

[0007] 2) Read and process the text information (method B) to establish a dataset R1 of theoretical processing point coordinate values. The detailed method is as follows:

[0008] ① Select the first line of code content P in the text object S1;

[0009] ② Use C#'s Contains method to determine whether P is a processing point coordinate value. If it is a processing point coordinate value, use C#'s Split method to read the coordinates of each axis, add a coordinate value in R1, and then delete P in S1.

[0010] ③ Repeat steps ① to ② until there is no data in text object S1.

[0011] 3) Read the work log file containing the coordinate information of the equipment after the automatic drilling and riveting method is leveled. Use the Textreader method in the C# language to read the text information, and then read the text information into the string object S2. The text information is read and processed (method C) to create a data set R2 of the actual point coordinate values. The detailed method for reading and processing the text information is as follows:

[0012] ① Select the first line of code content P in the text object S2

[0013] ②Use C#'s Split method to read the coordinates of each axis, add a coordinate value in R2, and then delete P in S2.

[0014] ③ Repeat steps ① to ② until there is no data in text object S2.

[0015] 4) Reverse solve the dataset R1 of the theoretical processing point coordinate values ​​(method D) to establish the theoretical three-dimensional coordinate value W1. The specific method is as follows:

[0016] ① Select a temporary coordinate value W in R1;

[0017] ② Increase the W value by the offset between the device world coordinate system and the device tool coordinate system;

[0018] ③Reversely rotate the angle A around the X axis and the angle B around the Y axis within the W value to correct the W value;

[0019] ④ Then add the revised W to the W1 combination, and then delete the original W in R1;

[0020] ⑤ Repeat steps ① to ④ until there is no data in R1.

[0021] 5) Use the method in step 4) to reversely solve the dataset R2 of the actual point coordinate values ​​to establish the actual three-dimensional coordinate values ​​W2.

[0022] 6) Use the AddNewPointCoord method in CATIA software to create a new 3D coordinate point using the coordinate information of the theoretical 3D coordinate value W1 and the actual 3D coordinate value W2 to create the theoretical part Part1

[0023] and the actual part Part2 (Method E).

[0024] 7) Compare the difference between the theoretical part Part1 and the actual part Part2 (method F), establish the measurement dictionary combination M, and solve the maximum measurement value max. The specific method is as follows:

[0025] ①Establish the maximum measurement value max

[0026] ② Select one temporary point point2 within the actual part Part2;

[0027] ③ Select one temporary point point1 within the actual part Part1;

[0028] ④ Establish a temporary measurement value dis;

[0029] ⑤ Use the GetMinimumDistance method in CATIA to measure the minimum distance M1 between point2 and point1. Judge that if M1 < dis, record dis = M1; if M1 ≥ dis, the dis value in step ④ remains unchanged;

[0030] ⑥ Repeat steps ③ to ⑤ until dis is the minimum distance, and then add a dictionary combination of point2 and dis to M;

[0031] ⑦ Judge that if dis > max, record max = dis; if max ≥ dis, the max value in step ① remains unchanged;

[0032] ⑧ Repeat steps ② to ⑦ until all point coordinates in Part2 are measured, the measurement dictionary combination M is completely established, and the measurement maximum value max is solved.

[0033] 8) Color and render all point elements in Part2 (method G) to present the deformation degree based on the color difference. The specific method is as follows:

[0034] ① Select one temporary connection temp in the measurement dictionary combination M. temp is connected by the point element point2 and the measurement value dis;

[0035] ② Use the selection method in CATIA software to select the point element point2 in temp

[0036] ③ Read the measurement value dis in temp and calculate the ratio tp of the temporary measurement value to the maximum value, tp = dis ÷ max;

[0037] ④ Use the SetRealColor method in CATIA software to color point2, and the color value is tp × 255.

[0038] ⑤ Repeat steps ① to ④ until all combinations M are colored and the actual part Part2 is rendered.

[0039] The effects and benefits of the present invention are: reverse-solving three-dimensional coordinates by reading the device work log, comparing with the theoretical position, and automatically rendering the deformation situation, having the following advantages

[0040] 1. Utilize the work log function of the automatic drilling and riveting equipment to reversely solve the actual product processing position information and accurately determine the actual product deformation;

[0041] 2. Quickly read the automatic drilling and riveting processing position information, avoiding the use of common laser trackers, reducing measurement costs, and shortening production cycles;

[0042] 3. Automatically render the product deformation, intuitively display the degree and location of deformation, and quickly discover the cause of product deformation during the processing process.

[0043] The key technical points of the present invention are:

[0044] 1) Use the Textreader method in C# language to read program text information and program text information;

[0045] 2) Use the C# Contains method and the C# Split method in combination to create a device coordinate data set;

[0046] 3) Reverse solve the three-dimensional coordinate value of the device coordinate data set;

[0047] 4) Use the AddNewPointCoord method of CATIA software to generate three-dimensional parts;

[0048] 5) Use the GetMinimumDistance method of CATIA software to measure the actual and theoretical distance values, and establish a dictionary combination of measurement results and actual point elements;

[0049] 6) Use the SetRealColor method of CATIA software to automatically render the actual parts in color and complete the automatic rendering analysis of the automatic drilling and riveting deformation. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 Flowchart of the present invention. DETAILED DESCRIPTION

[0051] The specific implementation of the present invention is further described below in conjunction with the accompanying drawings and technical solutions.

[0052] like Figure 1 As shown, in this embodiment, the method for automatically rendering and analyzing the deformation amount of the drilling and riveting processing results includes the following implementation steps:

[0053] Step 1: Read the NC program file containing the execution motion instructions, use the Textreader method in the C# language to read the text information of the NC program code, and then read the text information into the string object S1 (method A).

[0054] Step 2: Read and process the text set S1 (method B) to establish a dataset R1 of theoretical processing point coordinate values. The detailed method is as follows:

[0055] ① Select the first line of code content P in the text object S1;

[0056] ② Use C#'s Contains method to determine whether P is a processing point coordinate value. If it is a processing point coordinate value, use C#'s Split method to read the coordinates of each axis, add a coordinate value in R1, and then delete P in S1.

[0057] ③ Repeat steps ① to ② until there is no data in text object S1.

[0058] Step 3: Read the work log file containing the coordinate information of the equipment after the automatic drilling and riveting method is leveled. Use the Textreader method in the C# language to read the text information. Then use method A to read the text information into the string object S2. The text information is read and processed (method C) to create a data set R2 of the actual point coordinate values. The detailed method for reading and processing text information is as follows:

[0059] ① Select the first line of code content P in the text object S2

[0060] ②Use C#'s Split method to read the coordinates of each axis, add a coordinate value in R2, and then delete P in S2.

[0061] ③ Repeat steps ① to ② until there is no data in text object S2.

[0062] Step 4: Reverse solve the theoretical processing point coordinate data set R1 (method D) to establish the theoretical three-dimensional coordinate value W1. The specific method is as follows:

[0063] ① Select a temporary coordinate value W in R1;

[0064] ② Increase the W value by the offset between the device world coordinate system and the device tool work coordinate system;

[0065] ③Reversely rotate the A angle of the automatic drilling and riveting around the X axis and the B angle around the Y axis within the W value to correct the W value;

[0066] ④ Then add the revised W to the W1 combination, and then delete the original W in R1;

[0067] ⑤ Repeat steps ① to ④ until there is no data in R1.

[0068] Step 5: Use Method D to reverse solve the dataset R2 of the actual point coordinate values, and establish the actual three-dimensional coordinate values W2.

[0069] Step 6: Use the AddNewPointCoord method for creating a new three-dimensional coordinate point in the CATIA software to establish the theoretical part Part1 and the actual part Part2 (Method E) with all the coordinate information of the theoretical three-dimensional coordinate values W1 and the actual three-dimensional coordinate values W2.

[0070] and the actual part Part2 (Method E).

[0071] Step 7: Compare the difference between the theoretical part Part1 and the actual part Part2 (Method F), establish the measurement dictionary combination M, and solve for the measurement maximum value max. The specific method is as follows:

[0072] ① Establish the measurement maximum value max

[0073] ② Select 1 temporary point point2 in the actual part Part2;

[0074] ③ Select 1 temporary point point1 in the actual part Part1;

[0075] ④ Establish a temporary measurement value dis;

[0076] ⑤ Use the GetMinimumDistance method in CATIA to measure the minimum distance M1 between point2 and point1. If M1 < dis, record dis = M1; if M1 ≥ dis, the dis value in step ④ remains unchanged;

[0077] ⑥ Repeat steps ③ to ⑤ until dis is the minimum distance, and then add a dictionary combination of point2 and dis to M;

[0078] ⑦ If dis > max, record max = dis; if max ≥ dis, the max value in step ① remains unchanged;

[0079] ⑧ Repeat steps ② to ⑦ until all point coordinates in Part2 are measured, completely establish the measurement dictionary combination M, and solve for the measurement maximum value max.

[0080] Step 8: Color and render all the point elements in Part2 (Method G) to present the deformation degree based on the color difference. The specific method is as follows:

[0081] ① Select 1 temporary connection temp in the measurement dictionary combination M, where temp is connected by the point element point2 and the measurement value dis;

[0082] ②Use the selection method in CATIA software to select the point element point2 in the temp combination;

[0083] ③ Read the measured value dis in temp, and calculate the ratio of the temporary measured value to the maximum value tp = dis÷max;

[0084] ④ Use the SetRealColor method in CATIA software to color the point element point2, and the color value is tp×255.

[0085] ⑤ Repeat steps ① to ④ until all the M combinations are colored and the actual part Part 2 is rendered.

Claims

1. A method for automatically rendering and analyzing the deformation of automatic drilling and riveting processing results, characterized in that: The steps are as follows: 1) Read the NC program file containing the execution motion instructions, use the Textreader method in the C# language to read the text information, and then read the text information into the string object S1; 2) Read and judge the processed text information, and establish a data set R1 of the theoretical processing point coordinate values. The detailed method is as follows: ① Select the first line of code content P in the text object S1; ② Use the Contains method of C# to judge whether P is the processing point coordinate value. If it is the processing point coordinate value, use the Split method of C# to read the coordinates of each axis, add a coordinate value in R1, and then delete P in S1; ③ Repeat steps ① to ② until there is no data in the text object S1; 3) Read the work log file containing the recorded coordinate information of the equipment after the autogenous drilling and riveting method is leveled. Use the Textreader method in the C# language to read the text information, and then read the text information into the string object S2, and read and process the text information to establish a data set R2 of the actual point coordinate values. The detailed method of reading and processing the text information is as follows: ① Select the first line of code content P in the text object S2 ② Use the Split method of C# to read the coordinates of each axis, add a coordinate value in R2, and then delete P in S2; ③ Repeat steps ① to ② until there is no data in the text object S2; 4) Reverse solve the data set R1 of the theoretical processing point coordinate values to establish the theoretical three-dimensional coordinate value W1. The specific method is as follows: ① Select 1 temporary coordinate value W in R1; ② Add the offset between the equipment world coordinate system and the equipment tool coordinate system to the W value; ③ Reverse rotate the A angle around the X axis and the B angle around the Y axis in the W value to correct the W value; ④ Then add the corrected W to the W1 combination, and then delete the W before correction in R1; ⑤ Repeat steps ① to ④ until there is no data in R1; 5) Use the method in step 4) to reverse solve the data set R2 of the actual point coordinate values to establish the actual three-dimensional coordinate value W2; 6) Use the AddNewPointCoord method of creating a new three-dimensional coordinate point in the CATIA software for all the coordinate information of the theoretical three-dimensional coordinate value W1 and the actual three-dimensional coordinate value W2 to establish the theoretical part Part1 and the actual part Part; 7) Compare the differences between the theoretical part Part1 and the actual part Part2, establish the measurement dictionary combination M, and solve the measurement maximum value max. The specific method is as follows: ① Establish the measurement maximum value max ② Select 1 temporary point point2 in the actual part Part2; ③ Select 1 temporary point point1 in the actual part Part1; ④ Establish the temporary measurement value dis; ⑤ Use the GetMinimumDistance method in CATIA to measure the minimum distance M1 between point2 and point1, and judge that if M1 < dis, record dis = M1; If M1 ≥ dis, the dis value in step ④ remains unchanged; ⑥ Repeat steps ③ to ⑤ until dis is the minimum distance, then add a dictionary combination of point2 and dis to M; ⑦ If dis>max, then record max=dis; if max≥dis, the max value in step ① remains unchanged; ⑧ Repeat steps ② to ⑦ until all coordinate measurements of Part 2 are completed, the measurement dictionary combination M is fully established, and the maximum measurement value max is solved; 8) Color and render all the point elements in Part 2, using color difference to show the degree of deformation. The specific method is as follows: ① Select a temporary connection temp in the measurement dictionary combination M, which is connected by the point element point2 and the measurement value dis; ②Use the selection method in CATIA software to select the point element point2 in temp ③ Read the measured value dis in temp, and calculate the ratio of the temporary measured value to the maximum value tp = dis÷max; ④ Use the SetRealColor method in CATIA software to color point2 with a color value of tp×255; ⑤ Repeat steps ① to ④ until all the M combinations are colored and the actual part Part 2 is rendered.

Citation Information

Patent Citations

  • Method of automatic drilling and riveting of large thin-wall parts

    CN103100855A

  • Communication method of iGPS measurement system and computer-graphics aided three-dimensional interactive application (CATIA) software data

    CN103116668A