Iterative feed-forward setting algorithm of linear servo system
By constructing a multi-dimensional feedforward controller structure and updating the feedforward gain coefficient using the least squares method, and combining with the variable gain feedback controller to achieve linear decoupling, the problem of insufficient efficiency and accuracy of iterative feedforward adjustment algorithms in the prior art is solved, and the compensation effect of motor displacement tracking errors is significantly improved.
Patent Information
- Application Number
- CN202411621146.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2044-11-14
AI Technical Summary
In the prior art, iterative feedforward tuning algorithms have shortcomings in improving efficiency and accuracy, especially complex iterative update algorithms occupy large memory and poor expansion applications.
A feedforward controller structure is constructed including a velocity basis function vector, an acceleration basis function vector and a nonlinear friction basis function vector, and the feedforward gain coefficient is updated through the least squares method, and linear decoupling of the feedforward gain is achieved by combining the variable gain feedback controller.
The efficiency and accuracy of iterative feedforward adjustment are improved, the computational burden and memory usage brought by complex iterative algorithms are reduced, and the motor displacement tracking error caused by reference trajectory and nonlinear friction is minimized.
Smart Images

Figure CN119535972A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of motor control, and in particular to an iterative feedforward tuning algorithm for a linear servo system. Background Art
[0002] Linear servo systems are widely used in modern industry, such as automated production lines, CNC machine tools and other fields. In these applications, precise position control of the motor is crucial, and the presence of motor displacement tracking error will seriously affect the performance of the system and product quality. The feedforward control method can effectively compensate for the dynamic tracking error of the servo system and is widely used in motion scenarios with strict tracking performance requirements. The tuning quality of the feedforward controller coefficients directly affects the compensation effect of the feedforward control, that is, it affects the dynamic tracking error of the linear servo system.
[0003] Iterative feedforward tuning (IFFT) includes two parts: the construction of a deterministic feedforward controller structure (basis function vector) and the design of the iterative update rate of the feedforward controller coefficients. In the prior art, the methods for improving the efficiency and accuracy of iterative feedforward tuning (IFFT) are all from the perspective of the design of the iterative update rate, and the efficiency and accuracy of iterative feedforward tuning (IFFT) are improved through complex iterative update rates. Complex iterative algorithms occupy more memory and have poor scalability. Summary of the invention
[0004] In view of the above defects or deficiencies in the prior art, the present application aims to provide an iterative feedforward tuning algorithm for a linear servo system, the following steps:
[0005] Constructing a feedforward controller structure, the feedforward controller structure comprising a velocity basis function vector, an acceleration basis function vector and a nonlinear friction basis function vector; wherein each basis function vector has a corresponding feedforward gain coefficient;
[0006] Setting each feedback gain coefficient of the feedback controller; the feedback gain coefficient includes a proportional gain coefficient, an integral gain coefficient, and a differential gain coefficient;
[0007] Acquire reference trajectory parameters to select the gain coefficient change moment of the feedback controller, and then preset the integral gain change function of the feedback controller; the reference trajectory parameters at least include the motor reference speed; the integral gain change function is used to dynamically adjust the integral gain coefficient of the feedback controller according to the reference trajectory parameters and the gain coefficient change moment when the linear servo system is running;
[0008] Controlling the operation of the motor under the action of a variable gain feedback controller corresponding to the integral gain variation function, and obtaining the motor displacement tracking error in real time;
[0009] Linearly projecting the motor displacement tracking error acquired in real time into the subspace formed by the basis function vectors of the feedforward controller structure to obtain a velocity error component, an acceleration error component, and a nonlinear error component;
[0010] According to the velocity error component, the acceleration error component, and the nonlinear error component, each feedforward gain coefficient is updated using the least square method until the motor displacement tracking error approaches zero.
[0011] According to the technical solution provided in the embodiment of the present application, the construction of the feedforward controller structure specifically includes the following steps:
[0012] Acquire multiple influencing parameters that affect the displacement tracking error of the motor in the linear servo system; the influencing parameters at least include a first influencing parameter associated with the motor running speed, a second influencing parameter associated with the motor running acceleration, and a third influencing parameter associated with nonlinear friction between mechanical components in the linear servo system;
[0013] The velocity basis function vector is constructed according to the first influencing parameter, the acceleration basis function vector is constructed according to the second influencing parameter, and the nonlinear friction basis function vector is constructed according to the third influencing parameter;
[0014] The velocity basis function vector, the acceleration basis function vector and the nonlinear friction basis function vector are combined to obtain a feedforward controller structure.
[0015] According to the technical solution provided in the embodiment of the present application, the setting of each feedback gain coefficient of the feedback controller specifically includes the following steps:
[0016] According to Routh criterion, a first stability condition of the linear servo system when the integral gain coefficient is zero and a second stability condition of the linear servo system when the integral gain coefficient is not zero are obtained;
[0017] The feedback gain coefficients of the feedback controller are set according to the first stability condition and the second stability condition.
[0018] According to the technical solution provided in the embodiment of the present application, the step of obtaining the reference trajectory parameters to select the gain coefficient change moment of the feedback controller and then presetting the integral gain change function of the feedback controller specifically includes the following steps:
[0019] According to the reference trajectory parameters, a critical speed is selected;
[0020] The integral gain coefficient when the running speed of the motor is greater than or equal to the critical speed is set to 0, and the DC gain of the feedback controller is adjusted to a finite value. The integral gain coefficient when the running speed of the motor is less than the critical speed is limited to a first value, and the DC gain of the feedback controller is adjusted to infinity, thereby obtaining an integral gain change function.
[0021] According to the technical solution provided in the embodiment of the present application, the integral gain change function is:
[0022] Where sech(x)=2 / (e αx +e -αx ), k i is the integral gain coefficient, α is the factor that determines k i The parameter of the rate of change, t1 is the command time for the linear servo system to start running. t5 is the command time for the next running start. t2(v r =ε) and t3(v r =ε) is the moment when the gain coefficient changes, γ is the first value, and ε is the critical speed.
[0023] According to the technical solution provided in the embodiment of the present application, the linear projection of the motor displacement tracking error acquired in real time into the subspace formed by the basis function vectors of the feedforward controller structure to obtain the velocity error component, the acceleration error component, and the nonlinear error component specifically includes the following steps:
[0024] The motor is controlled to run according to the reference trajectory. Under the action of the variable gain feedback controller, when the critical speed is less than or equal to the first preset threshold, the expression of the motor displacement tracking error is obtained. The expression of the motor displacement tracking error is:
[0025] Where K = [K v, ,K a ,K f ] is the feedforward gain coefficient matrix, K v is the feedforward gain coefficient corresponding to the velocity basis function vector, K a is the feedforward gain coefficient corresponding to the acceleration basis function vector, K f is the feedforward gain coefficient corresponding to the nonlinear friction basis function vector, M=[k d +b,m,c] T is the system model parameter matrix, b and c are the viscous damping coefficient and Coulomb friction coefficient of the friction force on the motor, m is the total mass of the motor and the load, k is d is the differential gain coefficient, are the basis functions, including velocity basis function vector, acceleration basis function vector and nonlinear friction basis function vector, k p is the proportional gain coefficient;
[0026] The motor displacement tracking error is linearly represented by a basis function so that the velocity feedforward gain coefficient, the acceleration feedforward gain coefficient, and the nonlinear friction feedforward gain coefficient are linearly decoupled, thereby obtaining the velocity error component, acceleration error component, and nonlinear error component in the motor displacement tracking error.
[0027] According to the technical solution provided in the embodiment of the present application, the linear projection of the motor displacement tracking error into the subspace formed by the basis function vectors of the feedforward controller structure to obtain the velocity error component, the acceleration error component, and the nonlinear error component specifically includes the following steps:
[0028] The motor displacement tracking error is linearly projected into the subspace spanned by the basis function vectors of the feedforward controller structure, the projection of the motor displacement tracking error on the velocity basis function vector is taken as the velocity error component, the projection of the motor displacement tracking error on the acceleration basis function vector is taken as the acceleration error component, and the projection of the motor displacement tracking error on the nonlinear friction basis function vector is taken as the nonlinear error component.
[0029] According to the technical solution provided in the embodiment of the present application, according to the velocity error component, the acceleration error component, and the nonlinear error component, the least square method is used to update each of the feedforward gain coefficients until the motor displacement tracking error tends to zero, specifically including the following steps:
[0030] Get the motor displacement tracking error E under the j-th motor operation j , the motor displacement tracking error E j The corresponding feedforward gain matrix composed of the feedforward gain coefficients is K j ;
[0031] The motor displacement tracking error E j As the input of the iterative feedforward tuning algorithm, the motor operation is controlled under the action of the variable gain feedback controller corresponding to the integral gain change function. The feedforward gain coefficient iteration update rate based on the least squares method is used to obtain the feedforward gain matrix K under the j+1th motor operation. j+1 ;
[0032] Iterate the above steps until the motor displacement tracking error E j Tends to zero.
[0033] According to the technical solution provided in the embodiment of the present application, the motor displacement tracking error is related to the reference trajectory and the nonlinear friction force.
[0034] Compared with the prior art, the beneficial effect of the present application is that: starting from the linear decoupling angle of the feedforward gain, the present application first constructs a feedforward controller with a three-dimensional structure of "speed + acceleration + nonlinear friction", taking into account the main factors affecting the motor displacement tracking error (reference trajectory and nonlinear friction); secondly, the linear decoupling of the feedforward gain is realized based on the variable gain feedback controller. Without relying on an overly complex iterative update algorithm, the present application linearly projects the motor displacement tracking error into the subspace formed by the basis function vector of the feedforward controller structure by reasonably constructing the feedforward controller structure and optimizing the synergy between the feedback controller and the feedforward controller, obtains the velocity, acceleration and nonlinear error components, realizes the linear decoupling of the feedforward gain, and then uses the least squares method to update the feedforward gain coefficient, which can more efficiently and accurately realize the compensation of the motor displacement tracking error. The computational burden and memory usage brought by the complex iterative algorithm are reduced, and the efficiency and accuracy of the iterative feedforward setting are improved, thereby minimizing the motor displacement tracking error caused by the reference trajectory and nonlinear friction. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A flowchart of the steps of an iterative feedforward tuning algorithm for a linear servo system provided in an embodiment of the present application;
[0036] Figure 2 A diagram showing the execution process of an iterative feedforward tuning algorithm for a linear servo system provided in an embodiment of the present application;
[0037] Figure 3 A control program structure diagram in a permanent magnet linear motor servo motion control platform provided in an embodiment of the present application;
[0038] Figure 4 A graph of position, velocity and acceleration of a reference displacement trajectory provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0040] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0041] Example 1
[0042] As mentioned in the background technology, in order to solve the problems in the prior art, this application proposes an iterative feedforward tuning algorithm for a linear servo system, please refer to Figure 1 and Figure 2 As shown, the following steps are included:
[0043] S1. Constructing a feedforward controller structure, wherein the feedforward controller structure includes a velocity basis function vector, an acceleration basis function vector and a nonlinear friction basis function vector; wherein each basis function vector has a corresponding feedforward gain coefficient;
[0044] S2. Setting each feedback gain coefficient of the feedback controller; the feedback gain coefficient includes a proportional gain coefficient, an integral gain coefficient, and a differential gain coefficient;
[0045] S3, obtaining reference trajectory parameters to select the gain coefficient change moment of the feedback controller, and then presetting the integral gain change function of the feedback controller; the reference trajectory parameters at least include the motor reference speed; the integral gain change function is used to dynamically adjust the integral gain coefficient of the feedback controller according to the reference trajectory parameters and the gain coefficient change moment when the linear servo system is running;
[0046] S4, controlling the motor operation under the action of the variable gain feedback controller corresponding to the integral gain variation function, and obtaining the motor displacement tracking error in real time;
[0047] S5, linearly projecting the motor displacement tracking error acquired in real time into the subspace formed by the basis function vectors of the feedforward controller structure to obtain a velocity error component, an acceleration error component, and a nonlinear error component;
[0048] S6. According to the velocity error component, the acceleration error component, and the nonlinear error component, use the least square method to update each of the feedforward gain coefficients until the motor displacement tracking error approaches zero.
[0049] In a preferred embodiment, the constructing of the feedforward controller structure specifically comprises the following steps:
[0050] Acquire multiple influencing parameters that affect the displacement tracking error of the motor in the linear servo system; the influencing parameters at least include a first influencing parameter associated with the motor running speed, a second influencing parameter associated with the motor running acceleration, and a third influencing parameter associated with nonlinear friction between mechanical components in the linear servo system;
[0051] The velocity basis function vector is constructed according to the first influencing parameter, the acceleration basis function vector is constructed according to the second influencing parameter, and the nonlinear friction basis function vector is constructed according to the third influencing parameter;
[0052] The velocity basis function vector, the acceleration basis function vector and the nonlinear friction basis function vector are combined to obtain a feedforward controller structure.
[0053] In a preferred embodiment, the setting of each feedback gain coefficient of the feedback controller specifically includes the following steps:
[0054] According to Routh criterion, a first stability condition of the linear servo system when the integral gain coefficient is zero and a second stability condition of the linear servo system when the integral gain coefficient is not zero are obtained;
[0055] The feedback gain coefficients of the feedback controller are set according to the first stability condition and the second stability condition.
[0056] In a preferred embodiment, the step of obtaining reference trajectory parameters to select the gain coefficient change moment of the feedback controller and then presetting the integral gain change function of the feedback controller specifically includes the following steps:
[0057] According to the reference trajectory parameters, a critical speed is selected;
[0058] The integral gain coefficient when the running speed of the motor is greater than or equal to the critical speed is set to 0, and the DC gain of the feedback controller is adjusted to a finite value. The integral gain coefficient when the running speed of the motor is less than the critical speed is limited to a first value, and the DC gain of the feedback controller is adjusted to infinity, thereby obtaining an integral gain change function.
[0059] In a preferred embodiment, the integral gain variation function is:
[0060] Where sech(x)=2 / (e αx +e -αx ), k i is the integral gain coefficient, α is the factor that determines k i The parameter of the rate of change, t1 is the command time for the linear servo system to start running. t5 is the command time for the next running start. t2(v r =ε) and t3(v r =ε) is the moment when the gain coefficient changes, γ is the first value, and ε is the critical speed.
[0061] In a preferred embodiment, the linear projection of the motor displacement tracking error acquired in real time into the subspace formed by the basis function vectors of the feedforward controller structure to obtain the velocity error component, the acceleration error component, and the nonlinear error component specifically includes the following steps:
[0062] The motor is controlled to run according to the reference trajectory. Under the action of the variable gain feedback controller, when the critical speed is less than or equal to the first preset threshold, the expression of the motor displacement tracking error is obtained. The expression of the motor displacement tracking error is:
[0063] Where K = [K v ,K a ,K f ] T is the feedforward gain coefficient matrix, K v is the feedforward gain coefficient corresponding to the velocity basis function vector, K a k a is the feedforward gain coefficient corresponding to the acceleration basis function vector, K f is the feedforward gain coefficient corresponding to the nonlinear friction basis function vector, M=[k d +b,m,c] T is the system model parameter matrix, b and c are the viscous damping coefficient and Coulomb friction coefficient of the friction force on the motor, m is the total mass of the motor and the load, k is d is the differential gain coefficient, are the basis functions, including velocity basis function vector, acceleration basis function vector and nonlinear friction basis function vector, k p is the proportional gain coefficient;
[0064] The motor displacement tracking error is linearly represented by a basis function so that the velocity feedforward gain coefficient, the acceleration feedforward gain coefficient, and the nonlinear friction feedforward gain coefficient are linearly decoupled, thereby obtaining a velocity error component, an acceleration error component, and a nonlinear error component.
[0065] The critical speed being less than or equal to the first preset threshold means approaching zero, and the critical speed set in the experiment is 1e-5 (m / s).
[0066] In a preferred embodiment, the motor displacement tracking error is linearly projected into the subspace formed by the basis function vectors of the feedforward controller structure to obtain a velocity error component, an acceleration error component, and a nonlinear error component, specifically comprising the following steps:
[0067] The motor displacement tracking error is linearly projected into the subspace spanned by the basis function vectors of the feedforward controller structure, the projection of the motor displacement tracking error on the velocity basis function vector is taken as the velocity error component, the projection of the motor displacement tracking error on the acceleration basis function vector is taken as the acceleration error component, and the projection of the motor displacement tracking error on the nonlinear friction basis function vector is taken as the nonlinear error component.
[0068] In a preferred embodiment, the method of updating each feedforward gain coefficient using the least square method according to the velocity error component, the acceleration error component, and the nonlinear error component until the motor displacement tracking error approaches zero specifically includes the following steps:
[0069] Get the motor displacement tracking error E under the j-th motor operation j , the motor displacement tracking error E j The corresponding feedforward gain matrix composed of the feedforward gain coefficients is K j ;
[0070] The motor displacement tracking error E j As the input of the iterative feedforward tuning algorithm, the motor operation is controlled under the action of the variable gain feedback controller corresponding to the integral gain change function. The feedforward gain coefficient iteration update rate based on the least squares method is used to obtain the feedforward gain matrix K under the j+1th motor operation. j+1 ;
[0071] Iterate the above steps until the motor displacement tracking error E j Tends to zero.
[0072] Specifically, in the experiment sequence j, the jth motor displacement tracking error E output by the linear motor feedback module is obtained. j ; At this time, the j-th value of the feedforward gain matrix is K j ;
[0073] The motor displacement tracking error E j As the input of the iterative feedforward tuning algorithm, the motor displacement tracking error E j It has a linear mapping relationship with the feedforward controller structure (basis function vector);
[0074] Motor displacement tracking error E j Perform linear projection to the space Ψ to obtain the projection vector of the tracking error, as shown in the following equation (1):
[0075]
[0076] Run the feedforward gain coefficient iteration update rate based on the least squares method to obtain the j+1th feedforward gain matrix K j+1 , as shown in the following formula (2) and formula (3);
[0077]
[0078] δ j =[0,0,0] T -λ j (3)
[0079] Among them, z is the left shift operator in the iteration domain, and λ is the learning step matrix.
[0080] Under the repetitive trajectory of the linear servo system, the above steps are iterated until the motor displacement tracking error E j Meet the accuracy requirement of the linear servo system (i.e. approaching zero), as shown in the following formula (4);
[0081]
[0082] In a preferred embodiment, the motor displacement tracking error is related to a reference trajectory and a nonlinear friction force.
[0083] Specifically, the dynamic equation of the linear servo system subject to nonlinear interference is established as shown in the following equation (5):
[0084]
[0085] Among them, x b is the motor output displacement; m is the total mass of the motor and load; f e is the electromagnetic thrust; T d is the nonlinear friction force on the motor, which is mainly composed of viscous friction and Coulomb friction, as shown in the following formula (6):
[0086]
[0087] Where b and c are the viscous damping coefficient and Coulomb friction coefficient of the friction force on the motor. sgn() is a sign function, as shown in the following equation (7).
[0088]
[0089] The frequency domain expressions of nonlinear friction force are shown in equations (8) and (9):
[0090] T d (s,X b )=T v (s,X b )+T c (s,X b ) (8)
[0091]
[0092] Among them, X b is the frequency domain expression of the motor displacement, and Ξ(·) is the Laplace transform expression of the sign function sgn(·).
[0093] Linear motor output displacement x b With electromagnetic thrust fe The transfer function G p As shown in the following formula (10):
[0094]
[0095] where Λ(·) is the Laplace transform operator.
[0096] Specifically, the feedback controller in the present application is a position loop feedback controller, the position loop feedback controller is a PI-D structure, and the position loop feedback controller G c The expression is shown in formula (11):
[0097] G c1 =k p +k i / s,G c2 =k d s (11)
[0098] Among them, k p , k i , k d are the proportional gain coefficient, integral gain coefficient and differential gain coefficient of the feedback controller.
[0099] In the position loop feedback controller G c Under the action, the motor output displacement x b The frequency domain expression is shown in equation (12):
[0100] X b =S(G c1 +F)X r +ST d (12)
[0101] Where F is the feedforward controller; X r is the frequency domain expression of the reference trajectory; S is the input disturbance sensitivity function, which is expressed as follows:
[0102]
[0103] The time domain expression of the motor displacement tracking error e is shown in equation (14):
[0104] e(t)=x r (t)-x b (t) (14)
[0105] Among them, x r Reference trajectory time domain expression.
[0106] According to formula (12), the frequency domain expression of the motor displacement tracking error e is shown in formula (15):
[0107]
[0108] That is, it can be obtained that the influencing factors of the motor displacement tracking error mainly include the reference trajectory and nonlinear friction disturbance.
[0109] For a linear servo system with high response characteristics, the speed of the reference trajectory and the motor output speed are approximately equal, that is, sX b (s)≈sX r (s),Ξ(s,X b )≈Ξ(s,X r ). Therefore, the frequency domain expression of the motor displacement tracking error e is shown in the following equation (13):
[0110] E(s)=S[(k d +b)sX r (s)+ms 2 X r (s)+cΞ(s,X r )-FX r (s)] (13)
[0111] Iterative feedforward tuning projects the signal into the space spanned by the basis function by introducing the basis function. The parameterized feedforward controller F can eliminate the repetitive motor displacement tracking error caused by the reference trajectory and nonlinear friction in the iterative tuning. Therefore, the constructed feedforward controller structure (basis function vector) is a three-dimensional structure of "velocity + acceleration + nonlinear friction force". It is shown in the following equation (14).
[0112]
[0113] The parameterized feedforward controller output u ff The frequency domain expression of is shown in equation (15):
[0114]
[0115] In the formula, K=[K v ,K a ,K f ] T is the feedforward gain coefficient matrix, K v is the feedforward gain coefficient corresponding to the velocity basis function vector, K a is the feedforward gain coefficient corresponding to the acceleration basis function vector, K f is the feedforward gain coefficient corresponding to the nonlinear friction basis function vector.
[0116] Substituting equations (10) and (11) into equation (13), we get the input disturbance sensitivity function: S The specific expansion is shown in formula (16): (16) Since the reference trajectory x r The main signal energy of is distributed in the low frequency band. According to different DC gains of the feedback controller, equation (16) can be approximately expressed as shown in equation (17): (17) In the formula, is the DC gain of the feedback controller. Finite value σ for k i The DC gain of the feedback controller when it is 0 belongs to the set of positive real numbers.
[0121] When the motor running speed is greater than or equal to the critical speed (v r ≥ε), k i is 0, the DC gain of the feedback controller is adjusted to a finite value. The motor speed is less than the critical speed (v r <ε), k i is the first value γ, and the DC gain of the feedback controller is adjusted to infinity. The gain change moment is determined by the motor reference speed v r The integral gain change function expression is shown in the following formula (18):
[0122]
[0123] Where, sech(x)=2 / (e ax +e -ax ), α determines k i The rate of change of t1 is the motion start command time of the linear servo system. t5 is the next motion start command time. t2(v r =ε) and t3(v r =ε) is the moment when the integral gain of the feedback controller changes.
[0124] Therefore, by substituting equation (17) into equation (13), equation (13) is organized as shown in equation (19):
[0125]
[0126] Substituting equation (18) into equation (19), when the critical speed ε is small enough, equation (19) can be rearranged as shown in equation (20):
[0127]
[0128] Under the variable gain feedback control, the motor displacement tracking error and the basis function vectors of the feedforward controller structure are linearly mapped, and the motor displacement tracking error can be linearly projected into the subspace spanned by the basis function vectors of the feedforward controller structure. At this time, the feedforward gain coefficient is linearly decoupled. The overall control block diagram is shown in the figure below: Figure 2 shown.
[0129] Example 2
[0130] In order to further illustrate the practical application effect of the present invention, this embodiment compares the traditional algorithm to further illustrate the superiority of the control method performance of the present invention. Therefore, the comparison method includes the following steps:
[0131] On a permanent magnet linear motor servo motion platform (such as Figure 3 The iterative feedforward tuning algorithm of the linear servo system obtained by the design method shown in Example 1 and the iterative feedforward tuning algorithm of the linear servo system based on the traditional fixed gain feedback controller are respectively performed. The parameters of the permanent magnet synchronous linear motor used are as follows: The mass of the mover m m =1.1Kg, electromagnetic thrust constant K T =28.6N / A, permanent magnet flux φ = 70.3m·Wb, winding phase resistance R = 4.33ohm, inductance L d =L q =19.7mH, the control program structure is as follows Figure 3 As shown;
[0132] In particular, the reference displacement trajectory is designed as an S-shaped (third-order) motion trajectory, and its position, velocity and acceleration curves are as follows: Figure 4 The specific reference trajectory parameter settings are shown in Table 1.
[0133] Table 1 Reference trajectory (S-shaped trajectory) parameters
[0134] <![CDATA[Displacement end point x max > <![CDATA[Maximum speed v max > <![CDATA[Maximum acceleration a max > <![CDATA[Jerk j max > 0.045(m) 0.2(m / s) <![CDATA[5(m / s 2 )]]> <![CDATA[250(m / s 3 )]]>
[0135] The experimental results show that the iterative feedforward tuning of the variable gain feedback controller based on this application requires 5 iterations, and the iterative feedforward tuning of the fixed gain feedback controller based on the traditional method requires 30 iterations. The iterative feedforward tuning results based on the variable gain feedback controller of this application are: the maximum value of the motor displacement tracking error e max is 8.00 μm, and the motor displacement tracking error is non-zero RMS value e nrms The iterative feedforward tuning result based on the fixed gain feedback controller is: the maximum value of the motor displacement tracking error e max The motor displacement tracking error is 11.89 μm, and the RMS value e nrmsCompared with the iterative feedforward tuning based on the fixed gain feedback controller, the iterative feedforward tuning based on the variable gain feedback controller of the present application has an efficiency increased by 75%, an accuracy increased by 25%, and the motor displacement tracking steady-state error is 0.
[0136] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and its core ideas of this application. The above is only the preferred implementation method of this application. It should be pointed out that due to the limitations of textual expression and the objective existence of infinite specific structures, ordinary technicians in this technical field can make several improvements, modifications or changes without departing from the principles of the present invention, and can also combine the above technical features in an appropriate manner; these improvements, modifications, changes or combinations, or the direct application of the inventive concept and technical solution to other occasions without improvement, should be regarded as the scope of protection of this application.
Claims
1. An iterative feedforward tuning algorithm for a linear servo system, characterized in that: The following steps are involved: Constructing a feedforward controller structure, the feedforward controller structure comprising a velocity basis function vector, an acceleration basis function vector and a nonlinear friction basis function vector; wherein each basis function vector has a corresponding feedforward gain coefficient; Setting each feedback gain coefficient of the feedback controller; the feedback gain coefficient includes a proportional gain coefficient, an integral gain coefficient, and a differential gain coefficient; Acquire reference trajectory parameters to select the gain coefficient change moment of the feedback controller, and then preset the integral gain change function of the feedback controller; the reference trajectory parameters at least include the motor reference speed; the integral gain change function is used to dynamically adjust the integral gain coefficient of the feedback controller according to the reference trajectory parameters and the gain coefficient change moment when the linear servo system is running; Controlling the operation of the motor under the action of a variable gain feedback controller corresponding to the integral gain variation function, and obtaining the motor displacement tracking error in real time; Linearly projecting the motor displacement tracking error acquired in real time into the subspace formed by the basis function vectors of the feedforward controller structure to obtain a velocity error component, an acceleration error component, and a nonlinear error component; According to the velocity error component, the acceleration error component, and the nonlinear error component, each feedforward gain coefficient is updated using the least square method until the motor displacement tracking error approaches zero.
2. The iterative feedforward tuning algorithm of the linear servo system according to claim 1, characterized in that: The constructing of the feedforward controller structure specifically includes the following steps: Acquire multiple influencing parameters that affect the displacement tracking error of the motor in the linear servo system; the influencing parameters at least include a first influencing parameter associated with the motor running speed, a second influencing parameter associated with the motor running acceleration, and a third influencing parameter associated with nonlinear friction between mechanical components in the linear servo system; The velocity basis function vector is constructed according to the first influencing parameter, the acceleration basis function vector is constructed according to the second influencing parameter, and the nonlinear friction basis function vector is constructed according to the third influencing parameter; The velocity basis function vector, the acceleration basis function vector and the nonlinear friction basis function vector are combined to obtain a feedforward controller structure.
3. The iterative feedforward tuning algorithm for a linear servo system according to claim 2, characterized in that: The setting of each feedback gain coefficient of the feedback controller specifically includes the following steps: According to Routh criterion, a first stability condition of the linear servo system when the integral gain coefficient is zero and a second stability condition of the linear servo system when the integral gain coefficient is not zero are obtained; The feedback gain coefficients of the feedback controller are set according to the first stability condition and the second stability condition.
4. The iterative feedforward tuning algorithm for a linear servo system according to claim 3, characterized in that: The obtaining of reference trajectory parameters to select the gain coefficient change moment of the feedback controller and then preset the integral gain change function of the feedback controller specifically includes the following steps: According to the reference trajectory parameters, a critical speed is selected; The integral gain coefficient when the running speed of the motor is greater than or equal to the critical speed is set to 0, the DC gain of the feedback controller is adjusted to a finite value, the integral gain coefficient when the running speed of the motor is less than the critical speed is limited to a first value, the DC gain of the feedback controller is adjusted to infinity, and thus an integral gain change function is obtained.
5. The iterative feedforward tuning algorithm for a linear servo system according to claim 4, characterized in that: The integral gain variation function is: Where sech(x)=2 / (e αx +e -αx ), k i is the integral gain coefficient, α is the factor that determines k i The parameter of the rate of change, t1 is the command time for the linear servo system to start running. t5 is the command time for the next running start. t2(v r =ε) and t3(v r =ε) is the moment when the gain coefficient changes, γ is the first value, and ε is the critical speed.
6. The iterative feedforward tuning algorithm for a linear servo system according to claim 3, characterized in that: The motor displacement tracking error acquired in real time is linearly projected into the subspace formed by the basis function vectors of the feedforward controller structure to obtain the velocity error component, the acceleration error component, and the nonlinear error component, which specifically includes the following steps: The motor is controlled to run according to the reference trajectory. Under the action of the variable gain feedback controller, when the critical speed is less than or equal to the first preset threshold, the expression of the motor displacement tracking error is obtained. The expression of the motor displacement tracking error is: Where K = [K v ,K a ,K f ] T is the feedforward gain coefficient matrix, K v is the feedforward gain coefficient corresponding to the velocity basis function vector, K a is the feedforward gain coefficient corresponding to the acceleration basis function vector, K f is the feedforward gain coefficient corresponding to the nonlinear friction basis function vector, M=[k d +b,m,c] T is the system model parameter matrix, b and c are the viscous damping coefficient and Coulomb friction coefficient of the friction force on the motor, m is the total mass of the motor and the load, k is d is the differential gain coefficient, are the basis functions, including velocity basis function vector, acceleration basis function vector and nonlinear friction basis function vector, k p is the proportional gain coefficient; The motor displacement tracking error is linearly represented by a basis function so that the velocity feedforward gain coefficient, the acceleration feedforward gain coefficient, and the nonlinear friction feedforward gain coefficient are linearly decoupled, thereby obtaining the velocity error component, acceleration error component, and nonlinear error component in the motor displacement tracking error.
7. The iterative feedforward tuning algorithm for a linear servo system according to claim 1, characterized in that: The linear projection of the motor displacement tracking error into the subspace formed by the basis function vectors of the feedforward controller structure to obtain a velocity error component, an acceleration error component, and a nonlinear error component specifically includes the following steps: The motor displacement tracking error is linearly projected into the subspace spanned by the basis function vectors of the feedforward controller structure, the projection of the motor displacement tracking error on the velocity basis function vector is taken as the velocity error component, the projection of the motor displacement tracking error on the acceleration basis function vector is taken as the acceleration error component, and the projection of the motor displacement tracking error on the nonlinear friction basis function vector is taken as the nonlinear error component.
8. The iterative feedforward tuning algorithm for a linear servo system according to claim 1, characterized in that: According to the velocity error component, the acceleration error component, and the nonlinear error component, each feedforward gain coefficient is updated using the least square method until the motor displacement tracking error tends to zero, specifically comprising the following steps: Get the motor displacement tracking error E under the j-th motor operation j , the motor displacement tracking error E j The corresponding feedforward gain matrix composed of the feedforward gain coefficients is K j ; The motor displacement tracking error E j As the input of the iterative feedforward tuning algorithm, the motor operation is controlled under the action of the variable gain feedback controller corresponding to the integral gain change function. The feedforward gain coefficient iteration update rate based on the least squares method is used to obtain the feedforward gain matrix K under the j+1th motor operation. j+1 ; Iterate the above steps until the motor displacement tracking error E j Tends to zero.
9. The iterative feedforward tuning algorithm for a linear servo system according to claim 1, characterized in that: The motor displacement tracking error is related to the reference trajectory and the nonlinear friction force.
Citation Information
Patent Citations
Method for compensating frictional error of servo system of numerical control machine tool
CN102023612A
Ultra-precision motion system feedforward controller parameter tuning method
CN108983703A
Friction compensation feedforward controller for servo system
CN113934138A
Friction compensation method and device for linear guide rail displacement system
CN115356928A
Servo control system and feedforward controller parameter setting method
CN115356932A