A permanent magnet servo position control method and system based on adaptive second-order sliding mode
Through the combination of adaptive second-order sliding mode control and high-order adaptive differentiator, the problems of chattering and insufficient observation accuracy in traditional permanent magnet servo systems are solved, and high-precision tracking and anti-interference performance are improved.
Patent Information
- Application Number
- CN202410372484.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-03-29
AI Technical Summary
The traditional permanent magnet servo position tracking system is difficult to achieve high accuracy and fast response in complex environments, and sliding mode control has chattering problems and insufficient differentiator observation accuracy, which affects the anti-interference performance of the system.
The adaptive second-order sliding mode control method is adopted. By designing a second-order sliding mode controller and a high-order adaptive differentiator with a positive smooth function, and combining the adaptive law for online adjustment and observation, the chattering is reduced and the observation accuracy of the differentiator is improved. .
It effectively weakens the chattering phenomenon in sliding mode control, improves the position tracking accuracy and anti-interference performance of the system, ensures fixed-time convergence of observation errors, and improves the steady-state performance of the system.
Smart Images

Figure CN118282266B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of permanent magnet servo position control, and in particular to a permanent magnet servo position control method and system based on adaptive second-order sliding mode. Background Art
[0002] Due to the breakthrough development of power electronics technology and modern control theory, permanent magnet servo systems are widely used in many fields. However, the traditional permanent magnet servo position tracking system usually adopts three closed-loop control of position loop, speed loop and current loop, and the position loop mostly adopts proportional differential control method; although the proportional differential control method has the advantages of simple design and easy implementation, for the permanent magnet servo, which is a multivariable, strongly coupled, nonlinear high-order system, the proportional differential control method cannot meet the requirements of high precision and fast response of the permanent magnet servo system in a specific complex working environment.
[0003] Sliding mode control has been widely used in permanent magnet servo systems in recent years due to its strong robustness to system uncertainties and external disturbances and fast dynamic response. However, traditional sliding mode control generally has the disadvantages of low control accuracy and excessive jitter, which will directly lead to adverse effects of permanent magnet servo systems on industrial production. Therefore, solving the jitter problem in sliding mode control has become a top priority for the current control strategy of permanent magnet servo systems. On the premise of retaining the advantages of traditional sliding mode control methods, high-order sliding mode can solve the jitter problem existing in traditional sliding mode. In view of this, high-order sliding mode control has gradually become one of the hot topics in the field of permanent magnet servo position control.
[0004] The second-order sliding mode controller proposed in the document “Second-order sliding mode controller design with output constraint” has the problem of conservative controller gain selection, which causes obvious chattering phenomenon in the permanent magnet servo position control system.
[0005] In addition, in order to improve the performance of the permanent magnet servo position control system, a differentiator is usually used to observe the actual position, speed and lumped disturbance of the motor and compensate it to the controller; therefore, it is necessary to consider the design of the differentiator on the basis of the sliding mode controller design in order to improve the dynamic and steady-state performance of the permanent magnet servo position control system.
[0006] The differentiator structure in the document "Fixed-time extended state observer-based trajectory tracking and point stabilization control for marine surface vessels with uncertainties and disturbances" cannot observe the derivative of the lumped disturbance; therefore, under the same differentiator parameters, the observation accuracy of the differentiator proposed in the above document is poor, thereby reducing the anti-interference performance of the permanent magnet servo position control system; in addition, the differentiator proposed in the above document does not use the adaptive law to adjust its parameters online, and there is obvious observation overshoot when the system lumped disturbance suddenly changes. Summary of the invention
[0007] In view of the shortcomings of the existing methods, the present invention solves the position control problem of the current permanent magnet servo system. The method of the present invention not only improves the anti-interference and tracking performance of the permanent magnet servo position tracking system, weakens the chattering phenomenon in traditional sliding mode control, but also realizes the fixed time convergence of the observation error.
[0008] The technical solution adopted by the present invention is: a permanent magnet servo position control method based on adaptive second-order sliding mode comprises the following steps:
[0009] Step 1: According to the parameters of the permanent magnet servo system, a mathematical model of the permanent magnet servo position tracking system is established through a vector control strategy;
[0010] Step 2: Introduce an adaptive second-order sliding mode controller into the sliding mode dynamics system, and reduce chattering by designing a second-order sliding mode controller with a positive smooth function;
[0011] As a preferred embodiment of the present invention, the formula of the adaptive second-order sliding mode controller is:
[0012]
[0013] Where S = (θ e ,Ω e ) is the state vector, β 2 (S,Λ 1 ) and β 1 (Λ 1 ) is a positive smooth function, Λ 1 and Λ 2 is the adaptive law, θ e is the position tracking error, a and r 1 is a positive constant, r 2 =r 1 -τ, r 3 =r2 -τ, τ is a constant, Γ is the upper bound of the coefficient b, and the symbol Expressed as
[0014] As a preferred embodiment of the present invention, the positive smooth function β 2 (S,Λ 1 ) and β 1 (Λ 1 ) is:
[0015]
[0016]
[0017] Among them, Λ 1 and Λ 2 is an adaptive law.
[0018] As a preferred embodiment of the present invention, the adaptive law Λ 1 and Λ 2 They are:
[0019]
[0020]
[0021] Among them, γ 1 , γ 2 and ρ are positive constants, η 2 (Λ 1 ) is a positive smooth function, Λ 1max and Λ 2max They are adaptive laws Λ 1 and Λ 2 The maximum value of .
[0022] As a preferred embodiment of the present invention, the positive smooth function η 2 (Λ 1 ) is:
[0023]
[0024] Among them, Λ 1 is an adaptive law.
[0025] Step 3: Use a high-order adaptive differentiator with adaptive law to observe the motor position, speed and system lumped disturbance, avoid observation overshoot when the system lumped disturbance changes suddenly, and improve the observation accuracy of the differentiator;
[0026] As a preferred embodiment of the present invention, the formula of the high-order adaptive differentiator of the adaptive law is:
[0027]
[0028] in, They are θ m ,Ω m ,D, The observed value of is the derivative of the system lumped disturbance D, Ψ is the adaptive law, and σ is a positive constant less than 1.
[0029] As a preferred implementation of the present invention, the formula of the adaptive law is:
[0030]
[0031] Among them, e is a natural constant, κ is a positive constant, θ m is the motor rotor position.
[0032] Step 4: Feedback the observed values of the actual position, speed and lumped disturbance of the motor into the adaptive second-order sliding mode controller to construct a composite adaptive second-order sliding mode controller;
[0033] As a preferred embodiment of the present invention, the composite adaptive second-order sliding mode controller is:
[0034]
[0035] in, is the observed value of the motor rotor position tracking error, is the observed value of the motor speed tracking error.
[0036] As a preferred embodiment of the present invention, a permanent magnet servo position control system based on an adaptive second-order sliding mode includes: a memory for storing instructions executable by a processor; and a processor for executing instructions to implement a permanent magnet servo position control method based on an adaptive second-order sliding mode.
[0037] As a preferred embodiment of the present invention, a computer-readable medium storing computer program code is characterized in that the computer program code implements a permanent magnet servo position control method based on an adaptive second-order sliding mode when executed by a processor.
[0038] Beneficial effects of the present invention:
[0039] 1. The adaptive law is used to adjust the gain of the second-order sliding mode controller online, which weakens the chattering phenomenon in the sliding mode control and improves the position tracking accuracy of the system;
[0040] 2. The differentiator is designed using fixed time control technology, which can make the differentiator have good observation accuracy while ensuring that the convergence time of the observation error is independent of the initial state of the system;
[0041] 3. Use a high-order adaptive differentiator to directly observe the system's aggregate disturbance, effectively solving the problem of system steady-state performance degradation caused by time-varying loads and parameter perturbations. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 This is the principle block diagram of permanent magnet servo position control;
[0043] Figure 2 This is a comparison chart of the tracking results of the traditional second-order sliding mode controller and the composite adaptive second-order sliding mode controller under square wave reference;
[0044] Figure 3 This is a comparison chart of the q-axis current results of the traditional second-order sliding mode controller and the composite adaptive second-order sliding mode controller under square wave reference;
[0045] Figure 4 This is a comparison chart of the tracking results of the traditional second-order sliding mode controller and the composite adaptive second-order sliding mode controller under sudden load;
[0046] Figure 5 It is a comparison chart of q-axis current results of traditional second-order sliding mode controller and composite adaptive second-order sliding mode controller under sudden load;
[0047] Figure 6 Comparison of the observation results of the high-order adaptive differentiator and the traditional differentiator. DETAILED DESCRIPTION
[0048] The present invention is further described below in conjunction with the accompanying drawings and embodiments. This figure is a simplified schematic diagram, which only illustrates the basic structure of the present invention in a schematic manner, and therefore it only shows the components related to the present invention.
[0049] A permanent magnet servo position control method based on adaptive second-order sliding mode comprises the following steps:
[0050] like Figure 1 As shown, the permanent magnet servo position tracking control system consists of an adaptive second-order sliding mode controller, a high-order adaptive differentiator, an encoder, a torque loop controller and a servo motor system; based on the above system, the specific implementation mode of the present invention is specifically described below through a set of specific parameters of the permanent magnet servo system and its simulation results in MATLAB software; the parameters of the permanent magnet servo system in the simulation are shown in Table 1.
[0051] Table 1 Permanent magnet servo system parameters
[0052] Rated speed / (r / min) 1500 Rated voltage / (V) 115 Magnetic link / wb 0.18 Rated torque / (N·m) 0.96 <![CDATA[Moment of inertia / (kg / m 2 )]]> <![CDATA[2.1×10 -3 ]]> Pole pairs 4 Stator inductance / (mH) 0.045 Stator resistance / (Ω) 0.925
[0053] The method for implementing the example of the present invention comprises the following steps:
[0054] Step 1: According to the permanent magnet servo system parameters given in Table 1, the mathematical model of the permanent magnet servo position tracking system is established through the vector control strategy:
[0055]
[0056] Among them, θ m is the motor rotor position, Ω m is the motor speed, B is the friction coefficient, J is the moment of inertia, T e is the electromagnetic torque, T L is the load torque.
[0057] The given value of electromagnetic torque T e * Substituting into the position tracking system, the permanent magnet servo position tracking system is converted to:
[0058]
[0059] in, is the total interference of the system.
[0060] Let the position tracking error of the permanent magnet servo system be e is θ e =θ m -θ r , speed tracking error Ω e Ω e =Ω m -Ω r ; where θ r and Ω r are the reference position and velocity signals respectively, and the sliding mode dynamics system is constructed as:
[0061]
[0062] in, is the system mismatch interference, Match the interference to the system.
[0063] According to the sliding mode dynamics system, the second-order sliding mode controller is constructed as:
[0064]
[0065] Among them, β 1 , β 2 , a and r 1 is a positive constant, r 2 =r 1 -τ, r 3 =r 2 -τ, τ is a constant, Γ is the upper bound of the coefficient b, and the symbol Expressed as
[0066] Step 2: Design an adaptive second-order sliding mode controller:
[0067]
[0068] Where S = (θ e ,Ω e ) is the state vector, β 2 (S,Λ 1 ) and β 1 (Λ 1 ) is a positive smooth function, Λ 1 and Λ 2 is an adaptive law.
[0069] The second-order sliding mode controller proposed in “Second-order sliding mode controller design with output constraint, doi:10.1016 / j.automatica.2019.108704” is constructed as:
[0070]
[0071] Among them, φ(S) is a positive function, is the upper bound of the coefficient a.
[0072] Compared with the existing second-order sliding mode controller design method, the adaptive second-order sliding mode controller proposed in the present invention adds an adaptive law on the basis of the traditional second-order sliding mode controller, avoids the selection of conservative controller gain, and thus reduces the chattering phenomenon of the permanent magnet servo position control system.
[0073] Design of adaptive law 1 and Λ 2 They are:
[0074]
[0075]
[0076] Among them, γ 1 , γ 2 and ρ are positive constants, η 2 (Λ 1 ) is a positive smooth function, Λ 1max and Λ 2max They are adaptive laws Λ 1 and Λ 2 The maximum value of .
[0077] Step 3: Use a high-order adaptive differentiator to observe the motor position, speed and system lumped disturbance. Its structure is as follows:
[0078]
[0079] in, They are θ m ,Ω m ,D, The observed value of is the derivative of the system lumped disturbance D, Ψ is the adaptive law, and σ is a positive constant less than 1.
[0080] The differentiator in "Fixed-time extended state observer-based trajectory tracking and point stabilization control for marine surface vessels with uncertainties and disturbances,doi:10.1016 / j.oceaneng.2019.05.078" is constructed as:
[0081]
[0082] Compared with the existing differentiator design method, the high-order adaptive differentiator proposed in the present invention adds an adaptive law on the basis of the traditional differentiator, avoiding the observation overshoot that exists when the system lumped interference suddenly changes; in addition, the existing differential observer cannot observe the derivative of the lumped interference, resulting in poor observation accuracy of the existing differentiator under the same parameters.
[0083] The designed adaptive law Ψ is:
[0084]
[0085] Among them, e is a natural constant and κ is a positive constant.
[0086] Step 4: Feedback the observed values of the actual position, speed and lumped disturbance of the motor into the adaptive second-order sliding mode controller, and construct a composite adaptive second-order sliding mode controller as follows:
[0087]
[0088] in, is the observed value of the motor rotor position tracking error, is the observed value of the motor speed tracking error.
[0089] Simulation experiment:
[0090] After designing the position controller of the permanent magnet servo system, the control effect of the present invention is verified through simulation comparison; the square wave reference position signal is set to 0-270deg, the added load is 2.2N·m; the parameters of the adaptive second-order sliding mode controller are selected as a=2, r 1 =8, r 2 =7.5, r 3 =6,Γ=30,γ 1 =8,γ 2 =10,ρ=6, The parameters of the high-order adaptive differentiator are selected as σ=0.3,κ=20.
[0091] Figure 2 This is a comparison chart of the tracking results of the traditional second-order sliding mode controller and the composite adaptive second-order sliding mode controller under square wave reference; Figure 3 This is a comparison chart of the q-axis current results of the traditional second-order sliding mode controller and the composite adaptive second-order sliding mode controller under square wave reference; Figure 4 This is a comparison chart of the tracking results of the traditional second-order sliding mode controller and the composite adaptive second-order sliding mode controller under sudden load; Figure 5 It is a comparison chart of q-axis current results of traditional second-order sliding mode controller and composite adaptive second-order sliding mode controller under sudden load; Figure 6 Comparison of the observation results of the high-order adaptive differentiator and the traditional differentiator.
[0092] It can be seen from the simulation results that, in general, the composite adaptive second-order sliding mode controller has better anti-interference and tracking performance than the traditional second-order sliding mode controller, and the jitter in the composite adaptive second-order sliding mode controller is significantly smaller than that in the traditional second-order sliding mode controller; in addition, the observation accuracy and convergence speed of the high-order adaptive differentiator are significantly better than those of the traditional differentiator, and it has stronger interference suppression capability.
[0093] Based on the above ideal embodiments of the present invention, the relevant staff can make various changes and modifications without departing from the technical concept of the present invention through the above description. The technical scope of the present invention is not limited to the contents of the specification, and its technical scope must be determined according to the scope of the claims.
Claims
1. A permanent magnet servo position control method based on adaptive second-order sliding mode, characterized in that: The following steps are involved: Step 1: According to the parameters of the permanent magnet servo system, a mathematical model of the permanent magnet servo position tracking system is established through a vector control strategy; Among them, θ m is the motor rotor position, Ω m is the motor speed, B is the friction coefficient, J is the moment of inertia, T e is the electromagnetic torque, T L is the load torque; Step 2: Introduce an adaptive second-order sliding mode controller into the sliding mode dynamics system, and reduce chattering by designing a second-order sliding mode controller with a positive smooth function; The formula of the adaptive second-order sliding mode controller is: Where S = (θ e ,Ω e ) is the state vector, β2(S,Λ1) and β1(Λ1) are positive smooth functions, Λ1 and Λ2 are adaptive laws, θ e is the position tracking error, a and r1 are positive constants, r2 = r1-τ, r3 = r2-τ, τ is a constant, Γ is the upper bound of the coefficient b, and the symbol Expressed as is the given value of electromagnetic torque, Ω e is the speed tracking error, β1 and β2 are positive constants; The formulas for positive smooth functions β2(S,Λ1) and β1(Λ1) are: Among them, Λ1 and Λ2 are adaptive laws; The adaptive laws Λ1 and Λ2 are: Among them, γ1, γ2 and ρ are positive constants, η2(Λ1) is a positive smooth function, Λ 1max and Λ 2max are the maximum values of adaptive laws Λ1 and Λ2 respectively; The formula for the positive smooth function η2(Λ1) is: Among them, Λ1 is the adaptive law; Step 3: Use a high-order adaptive differentiator with adaptive law to observe the motor position, speed and system lumped disturbance, avoid observation overshoot when the system lumped disturbance changes suddenly, and improve the observation accuracy of the differentiator; The formula of the high-order adaptive differentiator of the adaptive law is: in, They are θ m ,Ω m ,D, The observed value of is the derivative of the system lumped disturbance D, Ψ is the adaptive law, and σ is a positive constant less than 1; The formula of the adaptive law is: Among them, e is a natural constant, κ is a positive constant, θ m is the motor rotor position; Step 4: Feedback the observed values of the actual position, speed and lumped disturbance of the motor into the adaptive second-order sliding mode controller to construct a composite adaptive second-order sliding mode controller; The composite adaptive second-order sliding mode controller is: in, is the observed value of the motor rotor position tracking error, is the observed value of the motor speed tracking error.
2. A permanent magnet servo position control system based on an adaptive second-order sliding mode, characterized in that: include: a memory for storing instructions executable by a processor; A processor is used to execute instructions to implement the permanent magnet servo position control method based on adaptive second-order sliding mode as claimed in claim 1.
3. A computer readable medium storing a computer program code, characterized in that: When the computer program code is executed by a processor, the method for controlling a permanent magnet servo position based on an adaptive second-order sliding mode as claimed in claim 1 is implemented.
