A method for NC machining process simulation and machining data mapping analysis

Through the mapping analysis method of CNC machining simulation data and real data, the problems of insufficient simulator simulation capabilities and inefficient registration process in the existing technology are solved, accurate registration of data and improvement of simulation results are achieved, and the processing quality is guaranteed. .

CN118276510BActive Publication Date: 2024-09-10CHENGDU AIRCRAFT INDUSTRY GROUP
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410695012.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-10
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

Existing CNC machining program design relies on manual labor, resulting in large differences between simulation results and real data, lack of effective data registration methods, insufficient simulation capabilities of simulators, and inefficient registration processes.

Method used

A mapping analysis method between CNC machining simulation data and real data is proposed. By obtaining part feature data, simulation simulation, data mapping, feature image processing and simulation model optimization, accurate data registration and simulator parameter correction are achieved to improve accuracy of simulation results.

Benefits of technology

It realizes the automation of data registration, reduces human intervention, improves the data simulation capability and result accuracy of the simulator, reduces simulation errors, and ensures processing quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118276510B
    Figure CN118276510B
Patent Text Reader

Abstract

The present application belongs to the field of aviation manufacturing technology, and in particular, relates to a method for simulating a numerical control machining process and mapping and analyzing machining data, the steps of which are: obtaining actual machining process feature data and machining process feature simulation data, analyzing and selecting actual machining and simulated motion data, quantifying feature data mapping, and performing two-dimensional space representation and drawing, performing feature area planning on the obtained feature image, transforming the simulation data, searching and locating similarity areas, obtaining result data closest to the actual machining data, calculating the result data for inverse transformation of feature values, and then realizing one-to-one mapping of data features, and finally optimizing the mapping results and simulator. The present application associates the corresponding feature data within the corresponding machining time period, and the data obtained by the association can quickly and accurately judge the simulation performance and capability of the simulator, improve the simulation capability of the simulator in a targeted manner, and reduce machining quality problems caused by large simulation errors of the simulator.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of aviation manufacturing technology, and in particular relates to a method for simulating a numerical control machining process and mapping and analyzing machining data. Background Art

[0002] In the field of aerospace, all structural parts that need to be processed based on CNC machine tools need to be designed with CNC machining programs based on 3D programming software. Existing program design methods rely almost entirely on manual design. Even for the same structural parts, there are large differences in the programs designed by different process programmers. Therefore, there are good and bad CNC machining programs. The quality of the program can be evaluated based on simulation software. However, the difference between the simulation results of the simulation software and the original results is greatly affected by the internal parameters of the simulation software. Only when these internal parameters are as accurate as possible can the reliability of the simulation results be guaranteed.

[0003] In order to correct the internal parameters of the simulator, for the same structural part, it is necessary to correct it according to the difference between the results obtained by the simulator and the actual processing data results. However, how to accurately obtain the real data corresponding to each simulation data, that is, the data association matching strategy is the premise of all work. At the same time, there is still no feasible reference method in the industry today, and the registration of simulation and processing data still mainly relies on manual methods.

[0004] In actual scenarios, for different structural parts, there are a large number of simulation data and real data that need to be registered. The parameters of the simulator are optimized based on the registered data. The manual method can no longer meet the actual simulator correction needs. It is urgent to design an automatic and efficient simulation data and real data registration strategy. To solve this problem, a corresponding data mapping analysis method is proposed in this paper. It can effectively reduce the need for human intervention in data configuration and mapping, which is also a problem that the industry needs to solve urgently. Summary of the invention

[0005] In order to overcome the above-mentioned problems existing in the existing technology, an effective mapping and analysis method between CNC machining simulation data and real data is proposed to achieve accurate alignment of data within a time period. The aligned data can provide data for the correction of simulator parameters, which is beneficial to improve the data simulation capability of the simulator and improve the accuracy of simulation data results, so as to solve the current problems of inefficiency of manual alignment and mapping and insufficient simulation capability of simulators, and at the same time provide a guiding reference method for similar scenarios.

[0006] In order to achieve the above technical effects, the technical solution of this application is as follows:

[0007] A numerical control machining process simulation and machining data mapping analysis method comprises the following steps:

[0008] Step 1: Obtain the feature data date (r) of the same part during the actual processing;

[0009] Step 2: Under the same process parameters, i.e., CNC machining program conditions, numerical simulation is performed on the entire machining process based on a simulation simulator to obtain the characteristic numerical values ​​date(s) with random variation characteristics during the machining process, such as vibration and power, of the same part, and the corresponding motion data are recorded and the results are output based on interval sampling;

[0010] Step 3: Analysis and selection of actual processing and simulated motion data: Process parts based on the CNC program, and select the x, y, and z motion data corresponding to the tool cutting motion that changes with time according to the actual tool movement data. That is, the feature data determined after feature data selection is the x, y, and z motion data corresponding to the tool changing with time. For the simulated process data, determine the x, y, and z motion values ​​according to the theoretical motion of the program corresponding to different times;

[0011] Step 4: Map and quantify the feature data corresponding to the actual and simulated x, y, and z motions;

[0012] Step 5: Perform two-dimensional spatial representation and drawing of the obtained mapping data corresponding to the actual and simulated data;

[0013] Step 6: Based on the feature image org obtained from the actual data in step 5, feature area planning is performed;

[0014] Step 7: transform the simulation data in step 5;

[0015] Step 8: Get the N images img x (k) is the target image, where k∈[1,N], and the image corresponding to the first segment (k=1) in the image is selected in the complete image imo x Similarity regions are searched and located in the

[0016] Step nine, obtaining simulation data identical to the actual processing feature area, and obtaining result data consistent with the actual processing data;

[0017] Step 10, reverse transform the result data to obtain the coordinate data Point (result);

[0018] Step 11: Based on the point set of coordinate data Point (result), a one-to-one mapping of data features is achieved; that is, at any point in each coordinate data point set, a unique corresponding feature data point can be found in the simulation data image. The effect is as follows: Fig. 9 shown.

[0019] Step 12: Simulation matching data: simulator key mathematical model establishment method and simulation model parameter optimization strategy;

[0020] Step 13: Final mapping results and simulator optimization: Based on the simulation matching data, the corresponding machining parameter data such as vibration, power, and corresponding cutting force at each point in the actual machining process can be determined. By using the mapping relationship between such data in the actual machining and simulation process, the hyperparameters in the mathematical models such as vibration and power in the simulator are optimized to improve the accuracy and reliability of the simulation results.

[0021] Furthermore, the characteristic data date(r) in step 1 includes vibration, power, feed, chip force, and corresponding spindle motion coordinate characteristic data x, y and z.

[0022] Furthermore, in step 4, the corresponding mapping space range is [0, 1], and the corresponding mapping formula sub-design is represented by x new =(x-xmin) / (xmax-xmin), where x represents the value before mapping; x new Indicates the mapped value; xmin indicates the minimum value of the projection value on the x-axis in the motion space corresponding to the tool; xmax indicates the maximum value of the projection value on the x-axis in the motion space corresponding to the tool;

[0023] Similarly, we can get the mapping values ​​corresponding to y and z, and the corresponding mapping formulas are y new =(y-ymin) / (ymax-ymin), z new =(z-zmin) / (zmax-zmin).

[0024] Furthermore, in step five, the representation and drawing method is: according to the NC program compiled by the software, the time counting starts when the machine tool starts to move, and the initial value is zero, and it is determined that at each moment (in seconds) after mapping processing, unique motion values ​​x, y, and z are obtained in the actual and simulation results.

[0025] Furthermore, the step six is ​​specifically as follows:

[0026] With the corresponding time as the X-axis in the two-dimensional space and the corresponding x, y, and z values ​​as the Y-axis, three images are drawn respectively (i.e., each x, y, and z value corresponds to an image). Each moment in the image corresponds to a feature point. The motion curve data of the machining process is obtained by connecting the feature points in order of increasing time. For the values ​​obtained by the simulator and the actual values, a total of six data feature images can be obtained, and the images are recorded as org;

[0027] The feature image org obtained from actual data is taken as the analysis object, and feature area planning is performed. The planning method is: design a random number generator so that the number it obtains is in the range of [num1, num2]. Both num1 and num2 are positive integers. At the same time, num1 should not be too small. If it is too small, the density of the planned area will be too large, resulting in too small differences in the curve characteristics generated by the data. At the same time, the corresponding feature expression is insufficient and difficult to accurately locate, and the amount of calculation is significantly increased, affecting the efficiency of the method. At the same time, the num2 value should not be too large. If it is too large, the regional density will be too small, making it difficult to obtain similar areas and ignoring the details of the local curve features.

[0028] Based on the random generator, N values ​​n1, n2, ..., nN are obtained. Each value divides the effective X-axis value in the feature image N times. The division method is implemented with equal spacing, which is recorded as img x 、img y 、img z , which can ensure that the lengths of the effective feature data areas in the obtained image after division are different and there are differences in features.

[0029] Furthermore, the simulation data transformation method in step 7 is specifically as follows: generating a data feature image org corresponding to x, y, and z for the simulation data x 、org y 、org z , transform each image to get m new images imo x 、imo y 、imo z , the transformation processing method is to take the image corresponding to the simulation data x as an example, let the value corresponding to the rightmost x value on the X-axis in the image be max(x) as unit one, set the transformation magnification of max(x) to obtain the new X-axis distribution value αmax(x)*βmax(x), and the Y value corresponding to the transformation is obtained by difference, where the α transformation direction coefficient is zero or one, the β magnification coefficient is a non-negative decimal, and the β value belongs to the coefficients {a1, a2, …, am}m with equal intervals. The number satisfies the arithmetic progression relationship, and the difference method corresponding to the Y value is: for the difference point P0 (i, j+d), d represents the distance value ∈ (0, 1), there is already a point P1(i, j) on the left side of P0 to a point P2 (i, j+1) on the right side of P0, and the y value satisfies the linear relationship, as follows:

[0030] P0(i,j+d)=[P2(i,j+1)–P1(i,j)]*d+P0(i,j)

[0031] Similarly, the same processing method is used for the images generated by the eigenvalues ​​y and z to obtain the transformed images. Based on this processing method, the disadvantage of discontinuous quantity can be effectively avoided to improve the smooth transition of the results. A total of 3m images can be obtained from the data of the three dimensions x, y, and z.

[0032] Furthermore, the searching and positioning method in step eight is: in m pairs of images imo x The leftmost initial valid data point is taken as the starting point Pxb, img x (1) The left side of the image corresponding to the valid data point Pgb, the moving image img x (1) Make Pgb coincide with Pxb while keeping image img x (1) The size and tilt angle remain unchanged, and the designed similarity evaluation formula is used to calculate the moved image. The formula is:

[0033] ;

[0034] ;

[0035] ;

[0036] ;

[0037] Among them, Normalize represents normalization processing, and the corresponding normalization range value is ; l Represents image img x The effective length of the corresponding data X; Represents the image imo x Valid data value in; Represents image img x Valid data value in; represents the segmentation threshold, which is set to 0; num1, num2, and num3 represent the number of positions that meet the if condition, respectively; F1, F2, and F3 are similarity evaluation functions.

[0038] Furthermore, the step nine is specifically as follows:

[0039] After comparing the initial position point Pxb, move to the image img x Move one unit distance to the right (one scale on the X axis) and continue comparing until L unit distances are moved, and record the Similarity value corresponding to each corresponding position; use the same principle to compare the remaining m-1 images imo x In the comparison, the Similarity value obtained in the comparison process is recorded; finally, the image img in m*L obtained from the m images is compared. x(1) The same value, and use the result value to locate and determine one image with the same img in the m images. x (1) Most similar, and record the corresponding image flag;

[0040] Similarly for image img x The remaining N-1 feature regions are compared, and the image label flag corresponding to each feature region is obtained in the same way; the remaining feature region segment comparison should satisfy the image imo x 、imo y 、imo z The result of segment N in the equation should be produced on the left side in segment N-1;

[0041] The image label flags obtained after comparing each of the N feature regions are voted and compared. The image with the largest number of corresponding flags in the N images is x That is, the simulation data that is most similar to the actual processing feature area, result (imo x );

[0042] Use the same method to get the corresponding results in y and z values ​​imo y 、imo z , recorded as result (imo x )、result(imo y )、result(imo z ).

[0043] The results (imo) obtained from 3m simulation data x )、result(imo y )、result(imo z ) The X-axis is normalized. The normalization method is based on the X-axis length of the feature image obtained from the actual data. After normalization, the results are compared and the dimensional feature data closest to the actual processed data is recorded as the result data.

[0044] Furthermore, the comparison method is as follows: the X-axis of the three normalized result images is aligned with the X-axis of the three actual data images, and starting from zero, the absolute value of the difference of each corresponding point on the Y-axis is summed up in turn to obtain the values ​​SUMx, SUMy, and SUMz. The smallest value among them corresponds to result (c), and c belongs to result (imo x )、result(imo y )、result(imo z ) is regarded as the dimensional feature data closest to the actual processing data and recorded as the result data.

[0045] Furthermore, in the step ten, the specific steps for implementing the inverse transformation feature value are: based on the relationship between the N-times divided values ​​n1, n2, ..., nN lengths and the simulation data transformation αmax(x) * βmax(x), and combined with the specific α and β determined in result (c), find the coordinate data Point(result) of the location of the value corresponding to the valid area segment in the original org image.

[0046] Furthermore, the step twelve is specifically as follows: the core data of the simulator includes core input and output data such as power P, vibration V, local deformation T, cutting depth H, cutting width W, cutting volume S per unit time, material stiffness k, and tool point coordinates P; for a CNC machine tool with a degree of freedom of k, a force F is applied at point p0 A (t) Then the vibration response mathematical model V of the constructed simulation simulator at points p1 and p2 can be expressed as:

[0047] ;

[0048] ;

[0049] in, A constant representing the modal order m related to the force application point p0; A constant representing the modal order n related to the force application point p0; Represents the mth-order vibration mode of the simulation point p1; represents the nth-order vibration mode of the simulation point p2; t represents time; represents a small time interval; m and n both represent the modal order; and represents the response index; q and p represent the excitation; E is the correlation calculation formula, ; represents the impulse function; Represents the constant term associated with point p0.

[0050] Based on the correlation data, the optimization formula of the power calculation mathematical model in the simulator is:

[0051]

[0052] in, P org Indicates the standby power of the machine tool in non-processing state; P flu It indicates the power of the machine tool spindle in idling state; c1 indicates the empirical constant; n indicates the speed of the machine tool spindle; c2 indicates the power constant coefficient related to the machine tool type during the machining process; c3 indicates the constant related to the machine tool type during the machining process; size indicates the material removal rate of the machine tool during machining.

[0053] The corresponding cutting force mathematical model in the data optimization simulator based on the mapping association, where the corresponding cutting force mathematical model F c ( t ) The formula is:

[0054] ;

[0055] ;

[0056] ;

[0057] A h Indicates the transverse cutting depth; represents the L window function; A e Indicates radial cutting depth; D Indicates the tool diameter; It represents the displacement difference between the front and rear teeth of the tool caused by vibration excitation in the x direction, which can be expressed as ; It represents the displacement difference between the front and rear teeth of the tool caused by vibration excitation in the y direction, which can be expressed as ; T represents the time it takes for the tool to rotate through the tooth angle.

[0058] The advantages of the present application are: based on the proposed method, the on-site data of part processing can be quickly and accurately associated with the corresponding feature data in the corresponding processing time period in the simulation simulator, and the data obtained by the association can be used to quickly and accurately judge the simulation capability of the simulator. At the same time, based on the obtained management data, the mathematical models for calculating different parameters in the simulator can be corrected in a targeted manner to meet the targeted improvement of the simulation accuracy of the simulator, which can reduce the occurrence of part quality problems at the processing site caused by large simulation errors of the simulator, thereby ensuring the processing quality of the parts, and at the same time, the corresponding simulator parameter association correction technology can be exported to the outside to generate economic benefits. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 It is a flow chart of the steps of the present invention.

[0060] Figure 2 This is a simulated data relationship diagram of the motion index value Z and time.

[0061] Figure 3 This is the actual data relationship diagram of the motion index value Z and time.

[0062] Figure 4 This is a simulated data relationship diagram of the motion index value Y and time.

[0063] Figure 5This is the actual data relationship diagram of the motion index value Y and time.

[0064] Figure 6 It is the relationship diagram of the simulated data of the motion index value X and time.

[0065] Figure 7 This is the actual data relationship diagram of the motion index value X and time.

[0066] Figure 8 The imgx, imgy, and imgz images are obtained based on the equal spacing division method.

[0067] Fig. 9 A specific implementation method for finding a unique corresponding feature data point in a simulation data image. DETAILED DESCRIPTION

[0068] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0069] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0070] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0071] In the description of the present application, it should be noted that the terms "upper", "vertical", "inner", "outer", etc. indicate the orientation or position relationship based on the orientation or position relationship shown in the drawings, or the orientation or position relationship in which the product of the application is usually placed when in use, or the orientation or position relationship commonly understood by those skilled in the art. They are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0072] In the description of this application, it should also be noted that, unless otherwise clearly specified and limited, the terms "set", "install", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0073] Example 1

[0074] like Figure 1 As shown, a numerical control machining process simulation and machining data mapping analysis method comprises the following steps:

[0075] Step 1: Obtain the feature data date (r) of the same part during the actual processing;

[0076] Step 2: Under the same process parameters, i.e., CNC machining program conditions, numerical simulation is performed on the entire machining process based on a simulation simulator to obtain the characteristic numerical values ​​date(s) with random variation characteristics during the machining process, such as vibration and power, of the same part, and the corresponding motion data are recorded and the results are output based on interval sampling;

[0077] Step 3: Analysis and selection of actual processing and simulated motion data: Process parts based on the CNC program, and select the x, y, and z motion data corresponding to the tool cutting motion that changes with time according to the actual tool movement data. That is, the feature data determined after feature data selection is the x, y, and z motion data corresponding to the tool changing with time. For the simulated process data, determine the x, y, and z motion values ​​according to the theoretical motion of the program corresponding to different times;

[0078] Step 4: Map and quantify the feature data corresponding to the actual and simulated x, y, and z motions;

[0079] Step 5: Perform two-dimensional spatial representation and drawing of the obtained mapping data corresponding to the actual and simulated data;

[0080] Step 6: Based on the feature image org obtained from the actual data in step 5, feature area planning is performed;

[0081] Step 7: transform the simulation data in step 5;

[0082] Step 8: Get the N images img x (k) is the target image, where k∈[1,N], and the image corresponding to the first segment (k=1) in the image is selected in the complete image imo x Similarity regions are searched and located in the

[0083] Step nine, obtaining simulation data that is most similar to the actual processing feature area, and obtaining result data that is closest to the actual processing data;

[0084] Step 10, reverse transform the result data to obtain the coordinate data Point (result);

[0085] Step 11: Based on the point set of coordinate data Point (result), a one-to-one mapping of data features is achieved; that is, at any point in each coordinate data point set, a unique corresponding feature data point can be found in the simulation data image. The effect is as follows: Fig. 9 shown.

[0086] Step 12: Simulation matching data: simulator key mathematical model establishment method and simulation model parameter optimization strategy;

[0087] Step 13: Final mapping results and simulator optimization: Based on the simulation matching data, the corresponding machining parameter data such as vibration, power, and corresponding cutting force at each point in the actual machining process can be determined. By using the mapping relationship between the data generated in the actual machining and simulation process, the hyperparameters in the mathematical models such as vibration and power in the simulator are optimized to improve the accuracy and reliability of the simulation results.

[0088] Based on the proposed method, the present application can quickly and accurately associate the on-site data of part processing with the corresponding feature data in the corresponding processing time period in the simulation simulator. The data obtained from the association can quickly and accurately judge the simulation capability of the simulator. At the same time, based on the obtained management data, the mathematical models for calculating different parameters in the simulator can be corrected in a targeted manner to meet the needs of targeted improvement of the simulation accuracy of the simulator, which can reduce the occurrence of part quality problems at the processing site caused by large simulation errors of the simulator, thereby ensuring the processing quality of the parts. At the same time, the corresponding simulator parameter association correction technology can be exported to the outside to generate economic benefits.

[0089] Example 2

[0090] The program of the present invention is based on Windows 7 system 64-bit, the processor is Intel (R) Xeon (R) W-22233.60Ghz, the running memory size is 32GB, the frequency is 3200Mhz, the software development platform is based on Visual Studio 2019, the programming language is C++, the corresponding image processing library is OpenCV4.5.2, based on Release X64 platform, SDK version is 10.0.22000.0. A method for NC machining process simulation and machining data mapping analysis mainly includes the following steps: Figure 1 shown.

[0091] 1. Obtain the characteristic data date(r) of the actual processing of the same part, including vibration, power, feed, chip force, and the corresponding spindle motion coordinate characteristic data x, y, z, etc. At the same time, under the same process parameters, i.e., CNC machining program conditions, perform numerical simulation on the entire machining process based on the simulation simulator, obtain the corresponding vibration, power, etc. characteristic numerical values ​​date(s) with random variation characteristics during the machining process of the same part, and record the corresponding motion data and output the results based on interval sampling.

[0092] 2. Analysis and selection of actual processing and simulated motion data. Process parts based on CNC programs, and select x, y, and z motion data corresponding to the tool cutting motion over time according to the actual tool movement data. That is, the feature data determined after feature data selection is the x, y, and z motion data corresponding to the tool over time. For the simulated process data, the x, y, and z motion values ​​are determined according to the theoretical motion of the program corresponding to different times.

[0093] 3. Map and quantize the feature data corresponding to the actual and simulated x, y, and z motions: the corresponding mapping space range is [0, 1], and the corresponding mapping formula sub-design is represented by x new =(x-xmin) / (xmax-xmin), where x represents the value before mapping; new represents the mapped value; xmin represents the minimum value of the projection value on the x-axis in the motion space corresponding to the tool; xmax represents the maximum value of the projection value on the x-axis in the motion space corresponding to the tool. Similarly, the mapping values ​​corresponding to y and z can be obtained, and the corresponding mapping formulas are y new =(y-ymin) / (ymax-ymin), z new =(z-zmin) / (zmax-zmin).

[0094] 4. The obtained mapping data corresponding to the actual and simulation are represented and drawn in two-dimensional space. The representation and drawing method is: according to the NC program compiled by the software, the time counting starts when the machine tool starts to move. The initial value is zero. It is determined that at each moment (in seconds) after the mapping processing, unique motion values ​​x, y, and z are obtained in the actual and simulation results. Use the corresponding time as the X-axis in the two-dimensional space, and the corresponding x, y, and z values ​​as the Y-axis to draw three images respectively (that is, each x, y, and z value corresponds to an image). Each moment in the image corresponds to a feature point, and the feature points are connected in sequence based on the order of increasing time to obtain the motion curve data of the machining process. For the values ​​obtained by the simulator and the actual values, a total of six data feature images can be obtained, such as Figure 2-Figure 7 Six data feature images obtained based on the data are shown, and the images are denoted as org.

[0095] 5. Take the feature image org obtained from the actual data as the analysis object, and perform feature area planning. The planning method is: design a random number generator so that the number it obtains is in the range of [num1, num2]. Both num1 and num2 are positive integers. At the same time, num1 should not be too small. If it is too small, the density of the planned area will be too large, resulting in too small differences in the curve characteristics generated by the data. At the same time, the corresponding feature expression is insufficient and difficult to accurately locate, and the amount of calculation will increase significantly, affecting the efficiency of the method. At the same time, the value of num2 should not be too large. If it is too large, the regional density will be too small, making it difficult to obtain similar areas and ignoring the details of local curve features. Based on the random generator, N values ​​n1, n2, ..., nN are obtained. Each number divides the value on the effective X-axis in the feature image N times, and the division method is implemented with equal spacing, such as Figure 8 As shown, denoted as img x 、img y 、img z , which can ensure that the lengths of the effective feature data areas in the obtained image after division are different and there are differences in features.

[0096] 6. Simulation data transformation method implementation: Generate data feature images corresponding to x, y, and z for simulation data x 、org y 、org z , transform each image to get m new images imo x 、imo y 、imo z , the transformation processing method is to take the image corresponding to the simulation data x as an example, let the value corresponding to the rightmost x value on the X-axis in the image be max(x) as unit one, set the transformation magnification of max(x) to obtain the new X-axis distribution value αmax(x)*βmax(x), and transform the corresponding Y value to obtain the difference, where the α transformation direction coefficient is zero or one, the β magnification coefficient is a non-negative decimal, and the β value belongs to the coefficients {a1, a2, ..., am}m with equal spacing changes, and the number satisfies the arithmetic progression relationship. The difference method corresponding to the Y value is: for the difference point P0(i,j+d), d represents the distance value∈(0,1), there is already a point P1(i,j) on the left side of P0 to a point P2 (i,j+1) on the right side of P0, and the y value satisfies the linear relationship, as follows:

[0097] P0(i,j+d)=[P2(i,j+1)–P1(i,j)]*d+P0(i,j)

[0098] Similarly, the same processing method is used for the images generated by the eigenvalues ​​y and z to obtain the transformed images. Based on this processing method, the disadvantage of discontinuous quantity can be effectively avoided to improve the smooth transition of the results. A total of 3m images can be obtained from the data of the three dimensions x, y, and z.

[0099] 7. Get N images img x (k), k∈[1,N], is the target image, select the image corresponding to the first segment (k=1) in the image in the complete image imo x The similarity region is searched and located in m images imo. x The leftmost initial valid data point is taken as the starting point Pxb, img x (1) The left side of the image corresponding to the valid data point Pgb, the moving image img x (1) Make Pgb coincide with Pxb while keeping image img x (1) The size and tilt angle remain unchanged, and the designed similarity evaluation formula is used to calculate the moved image. The formula is:

[0100] ;

[0101] ;

[0102] ;

[0103] ;

[0104] Among them, Normalize represents normalization processing, and the corresponding normalization range value is ; l Represents image img x The effective length of the corresponding data X; Represents the image imo x Valid data value in; Represents image img x Valid data value in; represents the segmentation threshold, which is set to 0; num1, num2, and num3 represent the number of positions that meet the if condition, respectively; F1, F2, and F3 are similarity evaluation functions.

[0105] 8. After comparing the initial position point Pxb, move to the image img x Move one unit distance to the right (one scale on the X axis) and continue comparing until you move L unit distances, and record the Similarity value corresponding to each corresponding position. Use the same principle to compare the remaining m-1 images imo x In the comparison, record the Similarity value obtained in the comparison process. Finally, compare the same image img in m*L obtained from m images. x (1) The most similar value, and use the result value to locate and determine one image in m images that is the same as img x(1) The most similar one, and record the corresponding image flag.

[0106] 9. Similarly for image img x The remaining N-1 feature regions are compared, and the image label flag corresponding to each feature region is obtained in the same way. It is worth noting that the remaining feature region segment comparison should satisfy the image imo x 、imo y 、imo z The result of segment N should be produced on the left side in segment N-1.

[0107] 10. Vote and compare the image label flags obtained after comparing each of the N feature regions. The image with the largest number of corresponding flags in the N images x That is, the simulation data that is most similar to the actual processing feature area, result (imo x ).

[0108] 11. Use the same method to get the corresponding results of y and z values ​​imo y 、imo z , recorded as result (imo x )、result(imo y )、result(imo z ).

[0109] 12. The results obtained from 3m simulation data (imo x )、result(imo y )、result(imo z ) normalizes the X-axis. The normalization method is based on the X-axis length of the feature image obtained from the actual data. After normalization, the results are compared. The comparison method is that the X-axis of the three normalized result images are aligned with the X-axis of the three actual data images, and starting from zero, the absolute value of the difference of each corresponding point on the Y-axis is summed up in turn to obtain the values ​​SUMx, SUMy, and SUMz. The smallest value among them corresponds to result (c). c belongs to result (imo x )、result(imo y )、result(imo z ) is regarded as the dimensional feature data closest to the actual processing data and recorded as the result data.

[0110] 13. The inverse transformation feature value is realized based on the relationship between the N-times divided values ​​n1, n2, ..., nN length and the simulation data transformation αmax(x) * βmax(x), and combined with the specific α and β determined in result (c), to find the corresponding valid area segment in the original org image The corresponding numerical location coordinate data Point(result) is found.

[0111] 14. Based on the coordinate data Point (result) point set, a one-to-one mapping of data features is achieved, that is, at any point in each coordinate data point set, a unique corresponding feature data point can be found in the simulation data image. The effect is as follows Fig. 9 shown.

[0112] 15. Methods for establishing key mathematical models of the simulator and strategies for optimizing simulation model parameters: The core data of the simulator include core input and output data such as power P, vibration V, local deformation T, cutting depth H, cutting width W, volume removed per unit time S, material stiffness k, and tool point coordinates P. For a CNC machine tool with k degrees of freedom, a force F is applied at point p0. A (t) Then the vibration response mathematical model V of the constructed simulation simulator at points p1 and p2 can be expressed as:

[0113] ;

[0114] ;

[0115] in, A constant representing the modal order m related to the force application point p0; A constant representing the modal order n related to the force application point p0; Represents the mth-order vibration mode of the simulation point p1; represents the nth-order vibration mode of the simulation point p2; t represents time; represents a small time interval; m and n both represent the modal order; and represents the response index; q and p represent the excitation; E is the correlation calculation formula, ; represents the impulse function; Represents the constant term associated with point p0.

[0116] Based on the correlation data, the optimization formula of the power calculation mathematical model in the simulator is:

[0117] ;

[0118] in, P org Indicates the standby power of the machine tool in non-processing state; P fluIt indicates the power of the machine tool spindle in idling state; c1 indicates the empirical constant; n indicates the speed of the machine tool spindle; c2 indicates the power constant coefficient related to the machine tool type during the machining process; c3 indicates the constant related to the machine tool type during the machining process; size indicates the material removal rate of the machine tool during machining.

[0119] The corresponding cutting force mathematical model in the data optimization simulator based on the mapping association, where the corresponding cutting force mathematical model F c ( t ) The formula is:

[0120] ;

[0121] ;

[0122] ;

[0123] A h Indicates the transverse cutting depth; represents the L window function; A e Indicates radial cutting depth; D Indicates the tool diameter; It represents the displacement difference between the front and rear teeth of the tool caused by vibration excitation in the x direction, which can be expressed as ; It represents the displacement difference between the front and rear teeth of the tool caused by vibration excitation in the y direction, which can be expressed as ; T represents the time it takes for the tool to rotate through the tooth angle.

[0124] 16. Based on the simulation matching data, the corresponding processing parameter data such as vibration, power, and corresponding cutting force at each point in the actual processing process can be determined. By using the mapping relationship between the data generated in the actual processing and simulation process, the hyperparameters in the mathematical models such as vibration and power in the simulator are optimized to improve the accuracy and reliability of the simulation results.

Claims

1. A method for NC machining process simulation and machining data mapping analysis, characterized in that: The steps include: Step 1: Obtain the feature data date (r) of the same part during the actual processing; Step 2: Under the same process parameter conditions, the entire machining process is numerically simulated based on the simulation simulator to obtain the characteristic numerical value date(s) with random variation characteristics during the machining of the same part, and the corresponding motion data is recorded and the results are output based on interval sampling; Step 3: Analysis and selection of actual processing and simulated motion data: Process parts based on the CNC program, and select the x, y, and z motion data corresponding to the tool cutting motion that changes with time according to the actual tool movement data. For the simulated process data, determine the x, y, and z motion values ​​according to the theoretical motion of the program corresponding to different times; Step 4: Map and quantify the feature data corresponding to the actual and simulated x, y, and z motions; Step 5: Perform two-dimensional spatial representation and drawing of the obtained mapping data corresponding to the actual and simulated data; Step 6: Based on the feature image org obtained from the actual data in step 5, feature area planning is performed; Step 7: transform the simulation data in step 5; Step 8: Get the N images img x (k) is the target image, where k∈[1,N], and the image corresponding to the first segment (k=1) in the image is selected in the complete image imo x Search and locate similar areas in the Step nine, obtaining simulation data identical to the actual processing feature area, and obtaining result data consistent with the actual processing data; Step 10, reverse transform the result data to obtain the coordinate data Point (result); Step 11: Based on the point set of coordinate data Point(result), realize one-to-one mapping of data features; Step 12: Simulation matching data: simulator key mathematical model establishment method and simulation model parameter optimization strategy; Step 13: Final mapping results and simulator optimization: Based on the simulation matching data, the processing parameter data corresponding to each point in the actual processing process can be determined, and the mapping relationship between the data generated in the actual processing and simulation process can be used to optimize the hyperparameters in the mathematical model in the simulator; The step nine is specifically as follows: After comparing the initial position point Pxb, move to the image img x Move one unit distance to the right and continue the comparison until L unit distances are reached, and record the Similarity value corresponding to each corresponding position. Use the same principle to compare the remaining m-1 images imo x In the comparison, the Similarity value obtained in the comparison process is recorded; finally, the image img in m*L obtained from the m images is compared. x (1) The same value, and use the result value to locate and determine one image with the same img in the m images. x (1) Consistent, and record the corresponding image flag; Similarly for image img x The remaining N-1 feature regions are compared, and the image label flag corresponding to each feature region is obtained in the same way; the remaining feature region segment comparison should satisfy the image imo x 、imo y 、imo z The result of segment N in the equation should be produced on the left side in segment N-1; The image label flags obtained after comparing each of the N feature regions are voted and compared. The image with the largest number of corresponding flags in the N images is x That is, the simulation data with the same actual processing feature area, result (imo x ); Use the same method to get the corresponding results in y and z values ​​imo y 、imo z , recorded as result (imo x )、result(imo y )、result(imo z ); The results (imo) obtained from 3m simulation data x )、result(imo y )、result(imo z ) The X-axis is normalized, and the normalization method is based on the X-axis length of the feature image obtained by the actual data. After normalization, the results are compared and the dimensional feature data consistent with the actual processing data is recorded as the result data; The step 12 is specifically as follows: the core data of the simulator includes the core input and output data such as power P, vibration V, local deformation T, cutting depth H, cutting width W, cutting volume S per unit time, material stiffness k, tool point coordinates P, etc.; for the CNC machine tool with a degree of freedom k, a force F is applied at point p0 A (t) Then the vibration response mathematical model V of the constructed simulation simulator at points p1 and p2 can be expressed as: ; The coupling and data optimization relationship equations satisfied by the simulation points p0 and p1 in the simulator V are: ; in, A constant representing the modal order m related to the force application point p0; A constant representing the modal order n related to the force application point p0; Represents the mth-order vibration mode of the simulation point p1; represents the nth-order vibration mode of the simulation point p2; t represents time; represents a small time interval; m and n both represent the modal order; and represents the response index; q and p represent the excitation; E is the correlation calculation formula, ; represents the impulse function; represents the constant term related to the point p0; Based on the correlation data, the optimization formula of the power calculation mathematical model in the simulator is: ; in, P org Indicates the standby power of the machine tool in non-processing state; P flu Indicates the power of the machine tool spindle in idling state; c1 indicates the empirical constant; n indicates the speed of the machine tool spindle; c2 indicates the power constant coefficient related to the machine tool type during the processing; c3 indicates the constant related to the machine tool type during the processing; size indicates the material removal rate of the machine tool during processing; The corresponding cutting force mathematical model in the data optimization simulator based on the mapping association, where the corresponding cutting force mathematical model F c ( t ) The formula is: ; ; ; A h Indicates the transverse cutting depth; represents the L window function; A e Indicates radial cutting depth; D Indicates the tool diameter; It represents the displacement difference between the front and rear teeth of the tool caused by vibration excitation in the x direction, which can be expressed as ; It represents the displacement difference between the front and rear teeth of the tool caused by vibration excitation in the y direction, which can be expressed as ; T represents the time it takes for the tool to rotate through the tooth angle.

2. The method for NC machining process simulation and machining data mapping analysis according to claim 1, characterized in that: The characteristic data date(r) in step 1 includes vibration, power, feed, chip force, and corresponding spindle motion coordinate characteristic data x, y and z.

3. The method for NC machining process simulation and machining data mapping analysis according to claim 1, characterized in that: In step 4, the corresponding mapping space range is [0, 1], and the corresponding mapping formula sub-design is expressed as x new =(x-xmin) / (xmax-xmin), where x represents the value before mapping; x new Indicates the mapped value; xmin indicates the minimum value of the projection value on the x-axis in the motion space corresponding to the tool; xmax indicates the maximum value of the projection value on the x-axis in the motion space corresponding to the tool; The mapping formulas corresponding to y and z are new =(y-ymin) / (ymax-ymin), z new =(z-zmin) / (zmax-zmin).

4. The method for NC machining process simulation and machining data mapping analysis according to claim 1, characterized in that: In the step five, the representation and drawing method is: according to the NC program compiled by the software, the time counting starts when the machine tool starts to move, and the initial value is zero, and it is determined that after the mapping processing at each moment, a unique motion value x, y, z is obtained in the actual and simulation results.

5. The method for NC machining process simulation and machining data mapping analysis according to claim 1, characterized in that: The step six is ​​specifically as follows: With the corresponding time as the X-axis in the two-dimensional space and the corresponding x, y, and z values ​​as the Y-axis, three images are drawn respectively. Each moment in the image corresponds to a feature point. The motion curve data of the machining process is obtained by connecting the feature points in order of increasing time. For the values ​​obtained by the simulator and the actual values, a total of six data feature images can be obtained, and the images are recorded as org; Taking the feature image org obtained from actual data as the analysis object, feature region planning is performed. The planning method is as follows: design a random number generator so that the number it obtains is in the range of [num1, num2], where num1 and num2 are both positive integers; Based on the random generator, N values ​​n1, n2, ..., nN are obtained. Each value divides the effective X-axis value in the feature image N times. The division method is implemented with equal spacing, which is recorded as img x 、img y 、img z , which can ensure that the lengths of the effective feature data areas in the obtained image after division are different and there are differences in features.

6. The method for NC machining process simulation and machining data mapping analysis according to claim 5, characterized in that: The simulation data transformation method in step 7 is specifically as follows: generating a data feature image org corresponding to x, y, and z for the simulation data x 、org y 、org z , transform each image to get m new images imo x 、imo y 、imo z , let the value corresponding to the rightmost x value on the X-axis in the image be max(x) as unity, set the transformation factor of max(x) to obtain the new X-axis distribution value αmax(x)*βmax(x), and transform the corresponding Y value for difference, where the α transformation direction coefficient is zero or one, the β factor coefficient is a non-negative decimal, and the β value belongs to the coefficients {a1, a2, …, am}m with equal spacing. The number satisfies the arithmetic progression relationship, and the difference method corresponding to the Y value is: for the difference point P0 (i, j+d), d represents the distance value ∈ (0, 1), there is already a point P1(i, j) on the left side of P0 to a point P2 (i, j+1) on the right side of P0, and the y value satisfies the linear relationship, as follows: P0(i,j+d)=[P2(i,j+1)–P1(i,j)]*d+P0(i,j) Similarly, the same processing method is used for the images generated by the eigenvalues ​​y and z to obtain the transformed images, and a total of 3m images can be obtained from the data of the three dimensions x, y, and z.

7. The method for NC machining process simulation and machining data mapping analysis according to claim 6, characterized in that: The searching and positioning method in step eight is: x The leftmost initial valid data point is taken as the starting point Pxb, img x (1) The left side of the image corresponding to the valid data point Pgb, the moving image img x (1) Make Pgb coincide with Pxb while keeping image img x (1) The size and tilt angle remain unchanged, and the designed similarity evaluation formula is used to calculate the moved image. The formula is: ; ; ; ; Among them, Normalize represents normalization processing, and the corresponding normalization range value is ; l Represents image img x The effective length of the corresponding data X; Represents the image imo x Valid data value in; Represents image img x Valid data value in; represents the segmentation threshold, which is set to 0; num1, num2, and num3 represent the number of positions that meet the if condition respectively; F1, F2, and F3 are similarity evaluation functions.

8. The method for NC machining process simulation and machining data mapping analysis according to claim 1, characterized in that: The specific comparison method is to align the X-axis of the three normalized result images with the X-axis of the three actual data images, and start from zero, sum the absolute values ​​of the differences of each corresponding point on the Y-axis in turn to obtain the values ​​SUMx, SUMy, and SUMz. The smallest value among them corresponds to result (c), and c belongs to result (imo x )、result(imo y )、result(imo z ) is regarded as the dimensional feature data consistent with the actual processing data and recorded as the result data.

9. The method for NC machining process simulation and machining data mapping analysis according to claim 1, characterized in that: In the step ten, the specific steps for implementing the inverse transformation feature value are: based on the relationship between the N-times divided values ​​n1, n2, ..., nN lengths and the simulation data transformation αmax(x)*βmax(x), and combined with the specific α and β determined in result (c), find the coordinate data Point(result) of the location of the value corresponding to the valid area segment in the original org image.

Citation Information

Patent Citations

  • Method and system for simulating multisystem synchronous numerical-control processing

    CN103236217A

  • Method for predicting and simulating errors of end-milled surface

    CN104298818A

  • Multi-platform numerical control simulator

    CN105938678A

  • Process-state data associated tool wear monitoring method and system

    CN114800040A

  • Universal milling cutter material removal simulation and cutting contact surface extraction method

    CN116009481A