Permanent magnet synchronous motor control method based on improved linear supercoiled
Technical Field
The invention relates to the technical field of motor control, in particular to a permanent magnet synchronous motor control method based on improved linear supercoiled.
Background
The high efficiency and compact nature of permanent magnet synchronous motors makes them preferred in industrial applications, particularly in areas where dynamic performance and accuracy requirements are stringent. Conventional permanent magnet synchronous motor control strategies rely on mechanical position sensors to obtain the exact position of the rotor, but this increases cost and system complexity and is highly susceptible to environmental factors, thereby reducing the reliability of the motor. Therefore, sensorless control techniques have evolved to avoid the limitations of conventional sensors by analyzing the electrical signals inside the motor to estimate rotor position and speed.
However, these sensorless technologies, particularly the sliding mode observer method, although excellent in terms of anti-interference and robustness, still have problems of high frequency jitter and insufficient dynamic response, resulting in a large amount of high frequency signals in the observed back emf, and for this purpose, the use of a low pass filter filters out the high frequency signals, but adding a low pass filter increases the complexity of the system and also causes a system phase delay. In the speed loop control, PI control is usually adopted, and the speed estimated by the method has the problems of high overshoot, large steady-state error, low convergence speed and the like.
Disclosure of Invention
(One) solving the technical problems
Aiming at the defects of the prior art, the invention provides a permanent magnet synchronous motor control method based on an improved linear supercoiled, which has the advantages of reducing the buffeting phenomenon of a system, improving the anti-interference capability of the system and the like, and solves the technical problems.
(II) technical scheme
In order to achieve the purpose, the invention provides the technical scheme that the permanent magnet synchronous motor control method based on the improved linear supercoiled comprises the following steps:
s1, establishing a two-phase static coordinate system to obtain a stator current equation;
s2, establishing a mechanical motion equation of the permanent magnet synchronous motor;
s3, defining a permanent magnet synchronous motor system state variable;
S4, establishing an integral sliding mode surface, and constructing an approach law speed controller for calculating a current estimated value;
s5, establishing an improved linear supercoiled sliding film observer for estimating back electromotive force according to a traditional sliding mode observer and a linear supercoiled algorithm;
s6, calculating the rotor rotating speed and the rotor position of the permanent magnet synchronous motor;
And S7, inputting the calculated rotor rotating speed of the permanent magnet synchronous motor into the approach law speed controller in the step S4, and completing the system closed loop.
As a preferred embodiment of the present invention, the expression of the stator current equation in the step S1 is as follows:
Wherein i α and i β represent stator currents of the α -axis and the β -axis, u α and u β represent stator voltages of the α -axis and the β -axis, respectively, R and L are stator resistance and stator inductance, respectively, e α and e β represent counter electromotive forces of the α -axis and the β -axis, respectively, Representing the derivative of the alpha-axis stator current i α with respect to time t,Representing the derivative of the beta-axis stator current i β with respect to time t.
As a preferred technical scheme of the present invention, the mechanical motion equation expression of the permanent magnet synchronous motor in the step S2 is as follows:
Where J represents moment of inertia, ω m represents rotor angular velocity, P n represents pole pair number, i q represents q-axis current, T L represents load torque, and ψ f represents permanent magnet flux linkage.
As a preferred embodiment of the present invention, the expression of the system state variable x 1 in the step S3 is as follows:
x1=ωref-ωm
Where ω ref represents the rotor reference angular velocity and ω m represents the rotor mechanical angular velocity.
As a preferred embodiment of the present invention, the expression of the integral sliding surface in the step S4 is as follows:
Where s represents the slip plane, x 1 represents the system state variable, c represents the integral coefficient, Representing the integration of the system state variable over 0 to t with respect to time t, the expression of the approach law speed controller in step S4 is as follows:
Wherein, Representing the derivative of the sliding mode surface with respect to the system state, sign (x) representing the sign function, x 'α representing the absolute value operation, x' α representing the gain factor of the sign function sign(s), s representing the sliding mode surface, k representing the sliding mode gain factor, b representing the gain factor of the sign function sign (|s| -1), lim representing the limit operation on the system state, by performing an exponential operation on the absolute value of the system state.
As a preferred embodiment of the present invention, the estimated value expression of the current in the step S4 is as follows:
Where i q denotes a q-axis current, sign (x) denotes a sign function as a current estimation value, |x| α denotes an exponential operation with α as an index on a system absolute value, |x| α denotes a gain coefficient of sign(s) of the sign function, s denotes a slip mode surface, k denotes a slip mode gain coefficient, b denotes a gain coefficient of sign (|s| -1) of the sign function, c denotes an integral coefficient, J denotes a moment of inertia, T L denotes a load torque, and ψ f denotes a permanent magnet flux linkage.
As a preferred technical scheme of the invention, a current error state equation is obtained through a traditional sliding mode observer and a stator current equation of a two-phase static coordinate system in the step S1, and the construction of the improved linear supercoiled sliding mode observer is completed by combining a linear supercoiled algorithm, wherein the current error state equation is expressed as follows:
Wherein, AndRepresenting the error of the stator currents of the alpha axis and the beta axis in a two-phase stationary coordinate system, sign (x) represents a sign function, R and L are respectively the stator resistance and the stator inductance,Representing alpha-axis stator current errorThe derivative of the time t is used,Representing beta-axis stator current errorThe derivatives with respect to time t, e α and e β represent the back emf of the α and β axes, respectively, and the expression of the improved linear supercoiled sliding mode observer in step S5 is as follows:
where x 1 represents a system state variable, x 2 represents an intermediate variable, and k 1、k2、k3、k4 is four different sliding mode gain coefficients, respectively.
As a preferred embodiment of the present invention, the counter electromotive force expression in the step S5 is as follows:
wherein e α and e β represent back emf of the alpha and beta axes respectively, AndThe errors of the alpha-axis stator current and the beta-axis stator current in the two-phase static coordinate system are respectively represented, and k 1、k2、k3、k4 is respectively four different sliding mode gain coefficients.
As a preferred technical solution of the present invention, the rotor speed and the rotor position expression of the permanent magnet synchronous motor in the step S6 are as follows:
Rotor speed of permanent magnet synchronous motor:
Rotor position:
Wherein, Indicating the angular velocity of the rotor,Representing the estimated rotor position, ψ f represents the permanent magnet flux linkage, e α and e β represent the back emf of the α and β axes, respectively, arctan represents the arctangent trigonometric function.
Compared with the prior art, the invention provides a permanent magnet synchronous motor control method based on improved linear supercoiled, which has the following beneficial effects:
The invention improves the traditional PI speed controller, and carries a novel approximate law speed controller capable of adaptively adjusting gain coefficient along with the change of system error, thereby reducing the buffeting phenomenon of the system and improving the anti-interference capability of the system.
Drawings
FIG. 1 is a schematic diagram of the principle control of a permanent magnet synchronous motor according to the present invention;
FIG. 2 is a schematic diagram of an improved linear supercoiled sliding mode observer of the present invention;
FIG. 3 is a schematic diagram showing the comparison of the rotational speeds of the permanent magnet synchronous motor of the present invention at zero load;
FIG. 4 is a schematic diagram showing comparison of rotational speeds of a permanent magnet synchronous motor according to the present invention when a load is suddenly applied or suddenly reduced;
FIG. 5 is a flow chart of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1-5, a permanent magnet synchronous motor control method based on improved linear supercoiled, comprising the following steps:
s1, establishing a two-phase static coordinate system to obtain a stator current equation, wherein the expression is as follows:
Wherein i α and i β represent stator currents of the α -axis and the β -axis, u α and u β represent stator voltages of the α -axis and the β -axis, respectively, R and L are stator resistance and stator inductance, respectively, e α and e β represent counter electromotive forces of the α -axis and the β -axis, respectively, Representing the derivative of the alpha-axis stator current i α with respect to time t,Representing the derivative of the beta-axis stator current i β with respect to time t;
s2, establishing a mechanical motion equation of the permanent magnet synchronous motor, wherein the expression is as follows:
Where J represents moment of inertia, ω m represents rotor angular velocity, P n represents pole pair number, i q represents q-axis current, T L represents load torque, ψ f represents permanent magnet flux linkage;
s3, defining an expression of a system state variable x 1 of the permanent magnet synchronous motor:
x1=ωref-ωm
Where ω ref represents the rotor reference angular velocity, ω m represents the rotor angular velocity;
S4, establishing an integral sliding mode surface, constructing an approach law speed controller, designing a novel approach law speed controller for a speed ring in a permanent magnet synchronous motor system, designing the sliding mode surface as the integral sliding mode surface, and combining the mechanical motion equation of the permanent magnet synchronous motor in the step S2 and the novel approach law speed controller in the step S4 to obtain an estimated value of shaft current, wherein the expression of the integral sliding mode surface in the step S4 is as follows:
Where s represents the slip plane, x 1 represents the system state variable, c represents the integral coefficient, Representing the integration of the system state variable over 0 to t with respect to time t, the expression of the approach law speed controller in step S4 is as follows:
Wherein, Representing the derivative of the sliding mode surface with respect to the system state, sign (x) representing the sign function, x (α) representing the absolute value operation, x (α) representing the gain factor of the sign function sign(s), s representing the sliding mode surface, k representing the sliding mode gain factor, b representing the gain factor of the sign function sign (|s| -1),The limit value indicating the system state is set to 0, and the estimated value expression of the current is as follows:
Wherein i q represents q-axis current, as a current estimation value, |x| α represents an exponential operation with α as an index to the absolute value of the system, sign (x) represents a sign function, s represents a slip mode plane, k represents a slip mode gain coefficient, c represents an integral coefficient, J represents moment of inertia, and T L represents load torque;
S5, establishing an improved linear supercoiled sliding film observer for estimating back electromotive force according to a traditional sliding film observer and a linear supercoiled algorithm, obtaining a current error state equation through the traditional sliding film observer and a stator current equation of a two-phase static coordinate system in the step S1, and completing the construction of the improved linear supercoiled sliding film observer by combining the linear supercoiled algorithm, wherein the expression of the traditional sliding film observer is as follows:
Wherein, AndThe current estimates for the shaft and beta-axis stator currents, the current error state equation, are expressed as follows:
Wherein, AndRepresenting the error of the stator currents of the alpha axis and the beta axis in a two-phase stationary coordinate system, sign (x) represents a sign function, R and L are respectively the stator resistance and the stator inductance,Representing alpha-axis stator current errorThe derivative of the time t is used,Representing beta-axis stator current errorThe derivatives over time t, e α and e β represent back emf on the α and β axes, respectively, where the expression of the linear supercoiled algorithm is as follows:
the expression of the improved linear supercoiled sliding mode observer in the step S5 is as follows:
Wherein x 1 represents a system state variable, and k 1、k2、k3、k4 is four different sliding mode gain coefficients respectively;
s6, calculating the rotor speed and the rotor position of the permanent magnet synchronous motor from the estimated back electromotive force by using an arctangent function, wherein the formula is as follows:
Rotor position:
Wherein, Representing the estimated angular velocity of the rotor,Representing the estimated rotor position, e α and e β represent back emf of the α and β axes, respectively, arctan represents an arctan trigonometric function;
And S7, inputting the calculated rotor rotating speed of the permanent magnet synchronous motor into the approach law speed controller in the step S4, and completing the system closed loop.
According to the control block diagram shown in FIG. 1, a physical platform is built for experimental verification, and parameters of a permanent magnet synchronous motor are selected from the following parameters, namely, rated power 750W, rated rotating speed 3000 r/(min), rated torque 2.4 N.m, pole pair number 4, permanent magnet flux linkage 0.11Wb, stator resistance 0.901 omega and inductance 6.552mH. Fig. 3 shows the experimental result of accelerating from 0 to 1300r/min when the motor is in idle state, fig. 4 shows the experimental result of accelerating from 0 to 1300 r/(min) when the motor is in idle state, and when the speed is stabilized at 1300 r/(min), the load of 2n·m is suddenly added or the load of 2n·m is suddenly subtracted, as can be seen from fig. 3, the rotational speed estimation of the method of the invention has a great improvement and almost no overshoot compared with the traditional method. As can be seen from FIG. 4, the rotation speed of the method of the invention is quickly recovered to a given rotation speed after the rotation speed is reduced or increased after the rotation speed is loaded or unloaded 2 N.m, and the experimental result shows that the method of the invention has accurate estimation of the rotation speed and strong dynamic robustness, thereby proving the effectiveness of the invention.
The invention provides a control method of a permanent magnet synchronous motor based on an improved linear supercoiled, which is improved on the basis of a linear supercoiled sliding mode observer, when a system error is increased, the sliding mode gain can be adjusted along with the system error, the accurate estimation of the motor rotating speed can be realized without using a low-pass filter, meanwhile, the traditional PI speed controller is improved, a novel approximate law speed controller capable of adaptively adjusting the gain coefficient along with the change of the system error is mounted, the buffeting phenomenon of the system is reduced, and the anti-interference capability of the system is improved.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.