A method for constructing and applying a digital twin process model of a machine tool feed system
By correlating weak links and processing position variables with clustering algorithms and frequency response functions, combined with reinforcement learning algorithms to optimize control strategies, the problem of difficulty in capturing the vibration changing characteristics of the feed system in the existing technology is solved, and precise control of the machine tool feed system is achieved. , improving processing accuracy and efficiency.
Patent Information
- Application Number
- CN202210471043.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-04-28
AI Technical Summary
The existing technology is difficult to capture the vibration changing characteristics of the machine tool feed system during actual processing, resulting in the inability to perform precise control and limiting the processing accuracy and efficiency of high-end CNC machine tools.
A clustering algorithm is used to divide the work space, associate weak links with processing position variables, establish a digital twin process model through dynamic response, and combine the frequency response function and reinforcement learning algorithm for model calibration and control strategy optimization to achieve time-varying vibration of the feed system Feature capture and precise control.
It achieves real-time and precise process control of the feed system, improves processing accuracy and efficiency, and enhances model flexibility and process awareness.
Smart Images

Figure CN114815586B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of machine tool processing technology, and more specifically, relates to a method for constructing a digital twin process model of a machine tool feed system and its application. Background Art
[0002] As the actuator of the machining process, the feed system is the core functional component of high-end CNC machine tools. The current development needs of high-speed, precision, multi-axis linkage machining and changing machining conditions have made the precise process control of the feed system the main influencing factor for improving the machining accuracy and efficiency of high-end CNC machine tools. However, the time-varying vibration characteristics in the actual CNC machining process make this problem difficult to solve effectively, becoming a bottleneck in the development of intelligent manufacturing. The reasons for this are that the machining process lacks perception, dynamic modeling and precise process control; the following variables such as cutting force, frequency band energy distribution, machining position, feed speed, and component joint characteristics in the machining process are multivariable process related, and the actual vibration characteristics will change with the changes of these related variables.
[0003] In the current context of new industrial modernization, digital twins, as a breakthrough application technology framework, have become the basis for realizing intelligent manufacturing. With the help of perception data and connected intelligent devices, mathematical models and real-time data refinement, it realizes the mirror synchronization of the operation process between the virtual system and the real system. Obviously, the process-related interactive characteristics of the digital twin technology framework are exactly what the current intelligent manufacturing focuses on, such as the complexity, variability and uncertainty of the processing process. However, the current research on digital twins is mostly modeling and analyzing a specific field or a specific factor of the physical system. The research content is relatively independent and lacks the correlation between process perception and process variables. For the process control that digital twins focus on, almost all of these digital twin models have the disadvantage of losing flexibility, so it is difficult for the model to capture the vibration change characteristics of the feed system in the actual processing process and perform precise process control. Therefore, it is necessary to study a digital twin process control method for the time-varying vibration characteristics of the feed system in the processing process. Summary of the invention
[0004] In response to the above defects or improvement needs of the prior art, the present invention provides a method and application for constructing a digital twin process model of a machine tool feed system, so as to solve the technical problem that the prior art is difficult to capture the vibration change characteristics of the feed system during the actual machining process and cannot perform precise control.
[0005] In order to achieve the above-mentioned object, in a first aspect, the present invention provides a method for constructing a digital twin process model of a machine tool feed system, comprising the following steps:
[0006] S1. Based on the changes in the weak links of the whole machine, the clustering algorithm is used to divide the whole machine workspace into several areas, and the weak links are associated with the processing position variables in the whole machine workspace; based on the dynamic response of the weak links corresponding to the working interval of the whole machine during the processing, the weak links, the processing position variables in the whole machine workspace, and the cutting excitation variables are associated to obtain the digital twin process model of the whole machine; wherein, the weak links of the whole machine are the parts in the whole machine where the modal mass distribution amplitude is greater than the preset threshold;
[0007] S2. Analyze the modal parameters of the machine tool feed system to obtain the frequency response function of the machine tool feed system, and use the frequency response function to calibrate the pre-established virtual model of the feed system;
[0008] S3. Perform a follow-up analysis on the digital twin process model of the whole machine under different processing parameters to obtain the dynamic stiffness of the weak links under different processing parameters, and input the feed system parameters in the processing parameters corresponding to the maximum dynamic stiffness into the virtual model of the feed system, thereby obtaining the digital twin process model of the machine tool feed system.
[0009] Further preferably, the method for constructing a digital twin process model of a machine tool feed system further includes step S4 performed after step S3;
[0010] Step S4 includes: considering the time-varying vibration characteristics of the feed system caused by multiple variables in the machining process, using a reinforcement learning algorithm to train the digital twin process model of the machine tool feed system, and continuously looping and updating the control strategy until the required control accuracy is achieved.
[0011] Further preferably, the method for constructing a digital twin process model of a machine tool feed system further includes step S0 performed before step S1;
[0012] Step S0 includes:
[0013] Static modal experiments are carried out on the machine tool feed system and the whole machine respectively, and the modal parameters of the machine tool feed system and the whole machine are identified based on the structural dynamics state space model;
[0014] Analyze the modal parameters of the whole machine to obtain the modal mass distribution of the whole machine;
[0015] The state space model of the above structural dynamics is:
[0016]
[0017] Among them, δ n,n represents the modal vibration coefficient of the nth degree of freedom of the nth mode of the structure to be identified; F is the input force vector in the static modal experiment; Λ n =2ζn ω n , n and ω n are the damping ratio and natural frequency of the nth mode of the structure to be identified; x n is the displacement state variable of the nth mode of the structure to be identified, indicating the vibration components corresponding to each mode. and They represent the velocity state variable and acceleration state variable of the nth order mode respectively.
[0018] Further preferably, the modal parameters of the whole machine are online fused with the dynamic response data of the weak link corresponding to the working range of the whole machine during the processing by using the Kalman filter algorithm, so as to obtain the frequency response function corresponding to the main vibration mode at the weak link during the processing, thereby associating the weak link, the processing position variable in the working space of the whole machine, and the cutting excitation variable;
[0019] The frequency response function corresponding to the main vibration mode at the weak link in the above processing process is:
[0020]
[0021] Where δ=[δ 1l δ 2l … δ nl ];δ nl A represents the modal vibration coefficient of the nth degree of freedom corresponding to the lth-order mode of the weak link; f is the excitation signal amplitude; ω is the excitation signal frequency; c l is the damping of the weak link under the l-th order mode; ω l is the natural frequency of the weak link under the l-th order mode; Y l is the contribution of the l-order mode to the vibration at the weak link; the l-order mode is the main vibration mode; t represents the time variable in the processing process.
[0022] Further preferably, the modal mass of the j-th mode of the whole machine is expressed as:
[0023]
[0024] Among them, δ fj is the mode shape of the jth mode of the fth degree of freedom; M f is the mass component of the whole structure with the fth degree of freedom, represents the distribution of the kinetic energy of the j-th mode in the f-th degree of freedom.
[0025] Further preferably, the method of using a clustering algorithm to divide the whole machine workspace into a plurality of areas includes:
[0026] The modal mass distribution data set of the whole machine to be clustered is a i is the i-th data point in the modal mass distribution data set; calculate the i-th data point a in A i The density μ i and distance ν i ;
[0027] Among them, the density μ i Represents the i-th data point a i Around and a i The distance is less than the cutoff distance d o The number of data points is:
[0028]
[0029] d ij Represents data point a i and a j The distance between ij <d o , then λ(d ij -d o )=1; otherwise, λ(d ij -d o )=0;
[0030] remember The density set A descending subscript sequence of i for:
[0031]
[0032] If a i has the maximum local density, then is the i-th data point a in data set A i The data point with the largest distance to a i The distance between them; otherwise, For all local densities greater than a i Among the data points, i The data point with the smallest distance to a i The distance between
[0033] Calculate the comprehensive consideration value ε i =μ i ν i , i=1,2,…,N; the data points corresponding to the first K larger comprehensive consideration values are taken as cluster centers, and the whole machine workspace is divided into K areas; K is a positive integer.
[0034] Further preferably, the above-mentioned pre-established virtual model of the feeding system is a virtual model of the feeding system established based on a multi-body dynamics platform.
[0035] Further preferably, the above-mentioned processing parameters include: processing position variables and cutting excitation variables; the cutting excitation variables include: feed speed, spindle speed, cutting force magnitude, cutting force direction and processing workpiece quality; the above-mentioned feed system parameters include: feed speed and feed position.
[0036] In a second aspect, the present invention provides a process optimization control method for a machine tool feed system, comprising:
[0037] The digital twin process model of the machine tool feed system is constructed by using the method for constructing the digital twin process model of the machine tool feed system provided by the first aspect of the present invention;
[0038] Run the digital twin process model of the above-mentioned machine tool feed system to obtain the PID parameters of the machine tool feed system, and deploy the PID parameters to the real machine tool feed system, thereby realizing process optimization control of the machine tool feed system.
[0039] Further preferably, the method for obtaining the PID parameters of the machine tool feed system specifically includes:
[0040] A1. Position error e based on the current adjustment of the machine tool feed system i and the position error derivative Constructing augmented vectors And use Gaussian membership function to augment the vector z i Fuzzify and get the augmented vector z ij The membership function M(z ij );
[0041]
[0042] Where i = 1,...,n e ; n e is the position error quantity of the machine tool feed system; is the position error derivative quantity of the machine tool feed system; p ij and are the center point and membership degree of the fuzzy set respectively;
[0043] A2. Position error e based on the current adjustment of the machine tool feed system i and the position error derivative Construct fuzzy rules; where the number of fuzzy rules is n r ; The kth fuzzy rule is: if e i Belongs to S i ,and belong but Among them, S i for e i fuzzy set of ; for A fuzzy set of g1k 、a 2k and b k are the gain adjustment parameters under the kth fuzzy rule; u k is the fuzzy value obtained by the kth fuzzy rule;
[0044] A3. According to the augmented vector z ij The membership function M(z ij ) and the fuzzy value obtained based on the fuzzy rule, perform weighted average defuzzification to obtain the PID parameters of the machine tool feed system under the current adjustment; wherein, the PID parameters of the machine tool feed system under the current adjustment are:
[0045]
[0046] M k For all augmented vectors z ij The corresponding membership function under the kth fuzzy rule;
[0047] A4. Deploy the currently adjusted PID parameters to the actual machine tool feed system for adjustment, sample the position error and position error derivative of the machine tool feed system N times, and calculate the average value of the position error and position error derivative and And calculate the fuzzy target value J under the current adjustment; specifically:
[0048]
[0049] Among them, ρ1 and ρ2 are weight parameters; e r (n) is the position error under the nth sampling; is the position error derivative under the nth sampling;
[0050] A5. Repeat steps A1-A4 until the number of iterations reaches the preset number of iterations, or the average value of the position error and the position error derivative is and is smaller than its corresponding threshold value; at this time, the PID parameters obtained are the optimal PID parameters, and the optimal PID parameters are deployed to the real machine tool feed system to realize the process optimization control of the machine tool feed system.
[0051] In a third aspect, the present invention provides a process optimization control system for a machine tool feed system, comprising: a memory and a processor, wherein the memory stores a computer program, and the processor executes the process optimization control method provided in the second aspect of the present invention when executing the computer program.
[0052] In a fourth aspect, the present invention further provides a computer-readable storage medium, comprising a stored computer program, wherein when the computer program is executed by a processor, the device where the storage medium is located is controlled to execute the digital twin process model construction method of the machine tool feed system provided in the first aspect of the present invention and / or the process optimization control method of the machine tool feed system provided in the second aspect of the present invention.
[0053] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects:
[0054] 1. The present invention proposes a method for constructing a digital twin process model of a machine tool feed system. The method takes into account the influence of time-varying vibration characteristics on the accuracy of the feed system, comprehensively describes the vibration characteristics of different spatial scales from the entire machine tool to the feed system during the machining process, establishes process models and connections of different spatial scales from the entire machine tool to the feed system, and correlates process variables to achieve process perception. The method can transform the corresponding system model according to the variables that appear during the machining process. The method has strong flexibility and can capture the vibration change characteristics of the feed system during the actual machining process, thereby performing real-time and accurate process control of the feed system.
[0055] 2. The digital twin process model construction method of the machine tool feed system proposed in the present invention is based on experimental analysis and uses a hybrid method of mechanism modeling and data modeling to accurately model the entire machine tool and the feed system during the processing process. It can analyze the feed system under time-varying vibration characteristics to obtain the optimal control parameters and realize real-time process control of the feed system, thereby improving the processing accuracy.
[0056] 3. The digital twin process model construction method of the machine tool feed system proposed in the present invention clusters and reduces the dimensionality of the massive dynamic characteristic data sets in the machine tool workspace based on a fast clustering algorithm of density and distance, thereby realizing the partitioning of the workspace and greatly reducing the scale and complexity of the digital twin process model initially established. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 A flow chart of a method for constructing a digital twin process model of a machine tool feed system provided in Example 1 of the present invention;
[0058] Figure 2 A characteristic diagram of weak links of the whole machine structure provided in Example 1 of the present invention;
[0059] Figure 3 A schematic diagram of the correlation of cutting excitation variables in the machining process provided by Example 1 of the present invention; wherein (a) is a schematic diagram of cutting excitation variables; (b) is a schematic diagram of the dynamic response at the weak link;
[0060] Figure 4 A schematic diagram of the construction principle of the digital twin process model of the machine tool feed system provided in Example 1 of the present invention. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0062] Embodiment 1,
[0063] A method for constructing a digital twin process model of a machine tool feed system is used in the machine tool processing process, such as Figure 1 As shown, the following steps are included:
[0064] S1. Based on the change of the weak link of the whole machine, the clustering algorithm is used to divide the whole machine workspace into several areas, and the weak link is associated with the processing position variable in the whole machine workspace; based on the dynamic response of the weak link corresponding to the working interval of the whole machine during the processing, the weak link, the processing position variable in the whole machine workspace, and the cutting excitation variable are associated to obtain the digital twin process model of the whole machine; wherein, the weak link of the whole machine is the part of the whole machine where the modal mass distribution amplitude is greater than the preset threshold; the preset threshold value in this embodiment is 5×10 -5 .
[0065] Specifically, in this embodiment, 63 processing positions in the working space of the whole machine are first selected, and a static modal analysis experiment (hammer test and self-excitation modal experiment) of the whole machine structure is performed at each position point, and LMS analysis software is used for signal acquisition and modal identification to obtain the modal parameters of the whole machine structure at each position point; specifically, based on the structural dynamics state space model, the modal parameters of the machine tool feed system and the whole machine are identified; the above structural dynamics state space model is:
[0066]
[0067] Among them, δ n,n represents the modal vibration coefficient of the nth degree of freedom of the nth mode of the structure to be identified; F is the input force vector in the static modal experiment; Λn =2ζ n ω n , n and ω n are the damping ratio and natural frequency of the nth mode of the structure to be identified; x n is the displacement state variable of the nth mode of the structure to be identified, indicating the vibration components corresponding to each mode. and They represent the velocity state variable and acceleration state variable of the nth order mode respectively.
[0068] Furthermore, the modal mass distribution of each position point (measurement point) of the whole machine structure is calculated, and the weak links of the whole machine structure are analyzed, such as Figure 2 As shown, in Figure 2 The weak link of the whole machine is the part with the largest modal mass distribution amplitude in the whole machine. Among them, the modal mass of the j-th mode of the whole machine is expressed as:
[0069]
[0070] Among them, δ fj is the mode shape of the jth mode of the fth degree of freedom; M f is the mass component of the whole structure with the fth degree of freedom; represents the distribution of the kinetic energy of the jth mode in the fth degree of freedom. It can be compared to the expression of kinetic energy, so the cumulative terms in the modal mass expression can be used represents the distribution of the kinetic energy of the j-th mode in each degree of freedom, then the modal mass distribution of the j-th mode is:
[0071]
[0072] Among them, the degree of freedom with a larger modal mass distribution amplitude is called the weak link of the machine tool structure.
[0073] It should be noted that when the modal mass distribution of a certain mode of the structure is uneven and there is a mutation, the degree of freedom where the modal mass distribution is concentrated is the weak link of the structure. Taking the modal mass distribution at different positions as data samples, the distance of the sample distribution between different position points and the density distribution of all data points are calculated to obtain the cluster center decision diagram. According to the cluster center decision diagram, a suitable cluster center is selected, and other position points that are not cluster centers are classified according to the calculated distance to achieve workspace partitioning. The modal mass distribution of the structure varies less between different position points in the same area, the modal mass distribution of the whole machine structure is different between different regions, and the degree of freedom (weak link) where energy is concentrated changes. In this embodiment, the method of dividing the whole machine workspace into several regions using a clustering algorithm includes:
[0074] The modal mass distribution data set of the whole machine to be clustered is a i is the i-th data point in the modal mass distribution data set; calculate the i-th data point a in A i The density μ i and distance ν i ;
[0075] Among them, the density μ i Represents the i-th data point a i Around and a i The distance is less than the cutoff distance d o The number of data points is:
[0076]
[0077] d ij Represents data point a i and a j The distance between ij <d o , then λ(d ij -d o )=1; otherwise,
[0078] λ(d ij -d o )=0;
[0079] remember The density set A descending subscript sequence of satisfy Then the distance ν i for:
[0080]
[0081] If a i has the maximum local density, then is the i-th data point a in data set A i The data point with the largest distance to a i The distance between them; otherwise, For all local densities greater than a i Among the data points, i The data point with the smallest distance to a i The distance between
[0082] Calculate the comprehensive consideration value ε i =μ i ν i, i=1,2,…,N; take the data points corresponding to the first K largest comprehensive consideration values as cluster centers, and divide the whole machine workspace into K regions; K is a positive integer. Specifically, when some data points have a large density μ i and distance ν i When , it can be defined as the cluster center. In the case where the cluster center cannot be directly identified, a comprehensive consideration value ε can be used i =μ i ν i To measure, ε i The larger it is, the more likely it is the cluster center.
[0083] The 63 processing positions are divided into K areas by the above method. In this embodiment, the value of K is 3.
[0084] Furthermore, considering the continuous changes of the magnitude and direction of the cutting excitation force and the spindle speed during the machining process, based on the structural dynamic characteristics, the dynamic response of the weak links in the above-mentioned partition results of the whole machine workspace is used to realize the association of the cutting excitation variables during the machining process, such as Figure 3 As shown, Figure (a) is a schematic diagram of cutting excitation variables, and Figure (b) is a schematic diagram of the dynamic response at the weak link.
[0085] Specifically, in this embodiment, a data fusion algorithm is used to online fuse the modal parameters of the whole machine with the dynamic response data of the weak link corresponding to the working range of the whole machine during the processing, so as to associate the weak link, the processing position variable in the working space of the whole machine, and the cutting excitation variable. In this embodiment, the above-mentioned data fusion algorithm is preferably a Kalman filter algorithm, and the Kalman filter algorithm is used to model the online fusion process; wherein, the input of the filter estimation is the observation value of the system, and the output is the estimated value of the system state. The structural dynamics state space model is used to estimate the vibration components corresponding to each order mode, calculate the modal contribution, and obtain the frequency response function corresponding to the main vibration mode at the weak link online. Specifically:
[0086] The Kalman filter algorithm is used to online fuse the modal parameters of the whole machine with the dynamic response data of the weak link corresponding to the working range of the whole machine during the processing, and the frequency response function corresponding to the main vibration mode at the weak link during the processing is obtained, so as to associate the weak link, the processing position variable in the working space of the whole machine, and the cutting excitation variable.
[0087] Among them, the dynamic equation in modal coordinates is converted into the state space model as follows:
[0088]
[0089] Among them, δ n,nIt represents the modal coefficient of the nth degree of freedom of the structure's nth mode, and F is the input force vector. n =2ζ n ω n , n and ω n are the damping ratio and natural frequency of the nth order mode respectively. n is the displacement state variable, representing the vibration components corresponding to each mode. and Represent the velocity state variable and the acceleration state variable respectively.
[0090] For the lth order mode (main vibration mode), the excitation force signal can be expressed as F = A f e jωt , where A f is the excitation force signal amplitude, ω is the excitation force signal frequency, and the modal displacement can be expressed as x l =Y l e jωt , t represents the time variable in the processing process. Among them, x t is the amplitude of the vibration response signal corresponding to the l-th order mode, then the dynamic equation expression of the l-th order mode after modal decoupling is:
[0091]
[0092] Where δ=[δ 1l δ 2l … δ nl ];δ nl The modal vibration coefficient of the nth degree of freedom corresponding to the lth mode of the weak link; c l is the damping of the weak link under the l-th order mode; ω l is the natural frequency of the weak link under the l-th order mode; Y l Y is the contribution of the l-th order mode to the vibration at the weak link; l It reflects the contribution of a certain mode to the structural vibration response at a specific frequency under a certain excitation. l The larger the value is, the greater the contribution of this mode to the vibration. The Kalman filter algorithm estimates the required system state information through the observable measurement signal and identifies the state variable x l , and calculate the contribution Y of each mode to the vibration at different frequencies l , according to the contribution Y corresponding to different modal orders l The main vibration mode is obtained by comparison.
[0093] S2. Analyze the modal parameters of the machine tool feed system to obtain the frequency response function of the machine tool feed system, and use the frequency response function to calibrate the pre-established virtual model of the feed system;
[0094] Similarly, static modal experiments (hammer test and self-excitation modal experiment) are carried out on the machine tool feed system, and the acquisition system is used to collect vibration signals and identify the modal parameters of the machine tool feed system.
[0095] Preferably, in this embodiment, the pre-established virtual model of the feeding system is a virtual model of the feeding system established based on a multi-body dynamics platform.
[0096] S3. Perform a follow-up analysis on the digital twin process model of the whole machine under different processing parameters to obtain the dynamic stiffness of the weak links under different processing parameters, and input the feed system parameters in the processing parameters corresponding to the maximum dynamic stiffness into the virtual model of the feed system, thereby obtaining the digital twin process model of the machine tool feed system.
[0097] Among them, the above-mentioned processing parameters include: processing position variables and cutting excitation variables; cutting excitation variables include: feed speed, spindle speed, cutting force size, cutting force direction and processing workpiece quality; the above-mentioned feed system parameters include: feed speed and feed position.
[0098] Preferably, after constructing the digital twin process model of the machine tool feed system, the time-varying vibration characteristics of the feed system caused by multiple variables in the machining process are further considered, and the digital twin process model of the machine tool feed system is trained using a reinforcement learning algorithm, and the control strategy is continuously cycled and updated until the required control accuracy is achieved.
[0099] The mechanical equipment used in this embodiment is preferably a CNC machine tool, preferably a high-end heavy-duty CNC machine tool, and a feed system with time-varying vibration characteristics during the processing.
[0100] In summary, the present invention provides a method for constructing a digital twin process model of a machine tool feed system that takes into account time-varying vibration characteristics and multi-dimensional variables. It proposes a hybrid method based on experimental analysis and mechanism modeling and data modeling to comprehensively describe the vibration characteristics of different spatial scales from the machine tool to the feed system during the machining process, and then analyze and obtain the optimal control parameters to achieve real-time process control of the feed system, thereby ensuring machining accuracy. Specifically, the schematic diagram of the construction principle of the digital twin process model of the machine tool feed system is shown in the figure. Figure 4 shown.
[0101] Embodiment 2,
[0102] A process optimization control method for a machine tool feeding system, comprising:
[0103] The digital twin process model of the machine tool feed system is constructed by using the method for constructing the digital twin process model of the machine tool feed system provided in Example 1 of the present invention;
[0104] Run the digital twin process model of the above-mentioned machine tool feed system to obtain the PID parameters of the machine tool feed system, and deploy the PID parameters to the real machine tool feed system, thereby realizing process optimization control of the machine tool feed system.
[0105] Preferably, in this embodiment, the method for obtaining the PID parameters of the machine tool feed system based on the TS fuzzy rule specifically includes the following steps:
[0106] A1. Position error e based on the current adjustment of the machine tool feed system i and the position error derivative Constructing augmented vectors And use Gaussian membership function to augment the vector z ij Fuzzify and get the augmented vector z ij The membership function M(z ij );
[0107]
[0108] Where i = 1,...,n e ; n e is the position error quantity of the machine tool feed system; is the position error derivative quantity of the machine tool feed system; p ij and are the center point and membership degree of the fuzzy set respectively;
[0109] A2. Position error e based on the current adjustment of the machine tool feed system i and the position error derivative Construct fuzzy rules; where the number of fuzzy rules is n r , in this embodiment, the value is 3; the kth fuzzy rule is: if e i Belongs to S i ,and belong but Among them, S i for e i fuzzy set of ; for A fuzzy set of g1k 、a 2k and b k are the gain adjustment parameters under the kth fuzzy rule; u k is the fuzzy value obtained by the kth fuzzy rule;
[0110] A3. According to the augmented vector z ij The membership function M(z ij) and the fuzzy values obtained based on the fuzzy rules, perform weighted average defuzzification to obtain the PID parameters of the machine tool feed system under the current adjustment;
[0111] Specifically, the PID parameters of the machine tool feed system under current adjustment are:
[0112]
[0113] Among them, M k For all augmented vectors z ij The corresponding membership function under the kth fuzzy rule.
[0114] A4. Deploy the currently adjusted PID parameters to the real machine tool feed system for adjustment, sample the position error and position error derivative of the machine tool feed system N times (N is 10 in this embodiment), and calculate the average value of the position error and position error derivative. and And calculate the fuzzy target value J under the current adjustment; specifically:
[0115]
[0116] Among them, ρ1 and ρ2 are weight parameters, and in this embodiment, both are taken as 0.5; e r (n) is the position error under the nth sampling; is the position error derivative under the nth sampling;
[0117] A5. Repeat steps A1-A4 until the number of iterations reaches the preset number of iterations, or the average value of the position error and the position error derivative is and is less than its corresponding threshold value; the PID parameters obtained at this time are the optimal PID parameters, and the optimal PID parameters are deployed to the actual machine tool feed system to achieve process optimization control of the machine tool feed system. Specifically, the preset number of iterations in this embodiment is 50; the average value of the position error The corresponding threshold value is 0.1mm, and the average value of the position error derivative is The corresponding threshold value is 0.05mm.
[0118] The relevant technical solution is the same as that in Example 1 and will not be described in detail here.
[0119] Embodiment 3,
[0120] A process optimization control system for a machine tool feed system comprises: a memory and a processor, wherein the memory stores a computer program, and the processor executes the process optimization control method provided in Embodiment 2 of the present invention when executing the computer program.
[0121] The relevant technical solution is the same as that in Example 2 and will not be described in detail here.
[0122] Embodiment 4,
[0123] A computer-readable storage medium, the computer-readable storage medium including a stored computer program, wherein when the computer program is executed by a processor, the device where the storage medium is located is controlled to execute the digital twin process model construction method of the machine tool feed system provided in Example 1 of the present invention and / or the process optimization control method of the machine tool feed system provided in Example 2 of the present invention.
[0124] The relevant technical solutions are the same as those in Example 1 and Example 2 and will not be described in detail here.
[0125] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for constructing a digital twin process model of a machine tool feed system. It is characterized in that The following steps are involved: S1. Based on the changes in the weak links of the whole machine, the clustering algorithm is used to divide the whole machine workspace into several areas, and the weak links are associated with the processing position variables in the whole machine workspace; Based on the dynamic response of the weak link corresponding to the working range of the whole machine during the processing, the data fusion algorithm is used to associate the weak link, the processing position variable in the working space of the whole machine, and the cutting excitation variable to obtain the digital twin process model of the whole machine; the weak link of the whole machine is the part of the whole machine where the modal mass distribution amplitude is greater than the preset threshold; S2. Analyze the modal parameters of the machine tool feed system to obtain the frequency response function of the machine tool feed system, and use the frequency response function to calibrate the pre-established virtual model of the feed system; S3. Perform a follow-up analysis on the digital twin process model of the whole machine under different processing parameters to obtain the dynamic stiffness of the weak links under different processing parameters, and input the feed system parameters in the processing parameters corresponding to the maximum dynamic stiffness into the feed system virtual model, thereby obtaining the digital twin process model of the machine tool feed system.
2. The method for constructing a digital twin process model of a machine tool feed system according to claim 1, It is characterized in that Also includes step S4 performed after step S3; The step S4 includes: considering the time-varying vibration characteristics of the feed system caused by multiple variables during the machining process, using a reinforcement learning algorithm to train the digital twin process model of the machine tool feed system, and continuously looping and updating the control strategy until the required control accuracy is achieved.
3. The method for constructing a digital twin process model of a machine tool feed system according to claim 1 or 2, It is characterized in that Also includes step S0 performed before step S1; The step S0 comprises: Static modal experiments are carried out on the machine tool feed system and the whole machine respectively, and the modal parameters of the machine tool feed system and the whole machine are identified based on the structural dynamics state space model; Analyze the modal parameters of the whole machine to obtain the modal mass distribution of the whole machine; The structural dynamics state space model is: Among them, δ n,n represents the modal vibration coefficient of the nth degree of freedom of the nth mode of the structure to be identified; F is the input force vector in the static modal experiment; Λ n =2ζ n ω n , n and ω n are the damping ratio and natural frequency of the nth mode of the structure to be identified; x n is the displacement state variable of the nth mode of the structure to be identified, indicating the vibration components corresponding to each mode. and They represent the velocity state variable and acceleration state variable of the nth order mode respectively.
4. The method for constructing a digital twin process model of a machine tool feed system according to claim 3, It is characterized in that The modal mass of the j-th mode of the whole machine is expressed as: Among them, δ fj is the modal vibration coefficient of the j-th mode corresponding to the f-th degree of freedom; M f is the mass component of the whole structure with the fth degree of freedom, represents the distribution of the kinetic energy of the j-th mode in the f-th degree of freedom.
5. The method for constructing a digital twin process model of a machine tool feed system according to claim 1, It is characterized in that The Kalman filter algorithm is used to online fuse the modal parameters of the whole machine with the dynamic response data of the weak link corresponding to the working range of the whole machine during the processing, and the frequency response function corresponding to the main vibration mode at the weak link during the processing is obtained, so as to associate the weak link, the processing position variable in the working space of the whole machine, and the cutting excitation variable. The frequency response function corresponding to the main vibration mode at the weak link in the processing process is: Where, δ=[δ 1l δ 2l … δ nl ];δ nl A represents the modal vibration coefficient of the nth degree of freedom corresponding to the lth-order mode of the weak link; f is the excitation signal amplitude; ω is the excitation signal frequency; c l is the damping of the weak link under the l-th order mode; ω l is the natural frequency of the weak link under the lth order mode; Y l is the contribution of the l-order mode to the vibration at the weak link; the l-order mode is the main vibration mode; t represents the time variable in the processing process.
6. The method for constructing a digital twin process model of a machine tool feed system according to claim 1, It is characterized in that The method of dividing the whole machine working space into several areas by using a clustering algorithm includes: The modal mass distribution data set of the whole machine to be clustered is a i is the i-th data point in the modal mass distribution data set; calculate the i-th data point a in A i The density μ i and distance ν i ; Among them, the density μ i Represents the i-th data point a i Around and a i The distance is less than the cutoff distance d o The number of data points is: d ij Represents data point a i and a j The distance between ij <d o , then λ(d ij -d o )=1; otherwise, λ(d ij -d o )=0; remember The density set A descending subscript sequence of i for: If a i has the maximum local density, then is the i-th data point a in data set A i The data point with the largest distance to a i The distance between them; otherwise, For all local densities greater than a i Among the data points, i The data point with the smallest distance to a i The distance between Calculate the comprehensive consideration value ε i =μ i ν i , i=1,2,…,N; the data points corresponding to the first K larger comprehensive consideration values are taken as cluster centers, and the whole machine workspace is divided into K areas; K is a positive integer.
7. The method for constructing a digital twin process model of a machine tool feed system according to claim 1, It is characterized in that The pre-established virtual model of the feeding system is a virtual model of the feeding system established based on a multi-body dynamics platform.
8. A process optimization control method for a machine tool feed system. It is characterized in that include: The digital twin process model construction method of the machine tool feed system according to any one of claims 1 to 7 is adopted to construct a digital twin process model of the machine tool feed system; The digital twin process model of the machine tool feed system is run to obtain the PID parameters of the machine tool feed system, and the PID parameters are deployed to the real machine tool feed system, thereby realizing process optimization control of the machine tool feed system.
9. The process optimization control method according to claim 8, It is characterized in that The method for obtaining the PID parameters of the machine tool feed system specifically includes: A1. Position error e based on the current adjustment of the machine tool feed system i and the position error derivative Constructing augmented vectors And use Gaussian membership function to augment the vector z ij Fuzzify and get the augmented vector z ij The membership function M(z ij ); Where i = 1,...,n e ; n e is the position error quantity of the machine tool feed system; is the position error derivative quantity of the machine tool feed system; p ij and are the center point and membership degree of the fuzzy set respectively; A2. Position error e based on the current adjustment of the machine tool feed system i and the position error derivative Construct fuzzy rules; the number of fuzzy rules is n r ; The kth fuzzy rule is: if e i Belongs to S i ,and belong but Among them, if e i Belongs to S i ,and belong but Among them, S i for e i fuzzy set of ; for A fuzzy set of g1k 、a 2k and b k are the gain adjustment parameters under the kth fuzzy rule; u k is the fuzzy value obtained by the kth fuzzy rule; A3, according to the augmented vector z ij The membership function M(z ij ) and the fuzzy value obtained based on the fuzzy rule, perform weighted average defuzzification to obtain the PID parameters of the machine tool feed system under the current adjustment; the PID parameters of the machine tool feed system under the current adjustment are: Among them, M k For all augmented vectors z ij The corresponding membership function under the kth fuzzy rule; A4. Deploy the currently adjusted PID parameters to the actual machine tool feed system for adjustment, sample the position error and position error derivative of the machine tool feed system N times, and calculate the average value of the position error and position error derivative and And calculate the fuzzy target value J under the current adjustment; specifically: Among them, ρ 1 and ρ 2 is the weight parameter; e r (n) is the position error under the nth sampling; is the position error derivative under the nth sampling; A5. Repeat steps A1-A4 until the number of iterations reaches the preset number of iterations, or the average value of the position error and the position error derivative is and is less than its corresponding threshold value; the PID parameters obtained at this time are the optimal PID parameters, and the optimal PID parameters are deployed to the real machine tool feed system to achieve process optimization control of the machine tool feed system.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed by the processor, the device where the storage medium is located is controlled to execute the digital twin process model construction method of the machine tool feed system described in any one of claims 1-7 and / or the process optimization control method described in any one of claims 8-9.
