A sliding mode observation method for load torque of permanent magnet synchronous motor

Through the combination of the load torque sliding mode observation method and the sliding mode speed controller, combined with the particle swarm algorithm to optimize parameters, the problem of speed control vibration of permanent magnet synchronous motors during load disturbance or internal parameters changes is solved, and efficient load torque observation and fast and accurate motor speed control are achieved.

CN114900086BActive Publication Date: 2025-04-18SHANGHAI TECHTRUE ELECTRIC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210705776.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-04
Publication Date
2025-04-18
Estimated Expiration
2040-09-04

AI Technical Summary

Technical Problem

When the load disturbance or internal parameters of the permanent magnet synchronous motor is changed, the speed control is prone to vibration, and the PI controller cannot meet the requirements of high dynamic response.

Method used

The load torque slip mode observation method is used to compensate the observed load torque feedforward to the current regulator, which improves the load torque observation response speed and reduces the torque observation volatility. This method uses the particle swarm algorithm to optimize parameters through the combination of a load torque observer and a sliding mode speed controller to realize automatic adjustment of feedback gain.

Benefits of technology

It effectively reduces the vibration of the system, improves the speed and accuracy of observation effects and motor speed control, and can quickly reduce the observation error of load torque when load disturbances or changes in parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114900086B_ABST
    Figure CN114900086B_ABST
Patent Text Reader

Abstract

The invention discloses a sliding mode observation method for load torque of a permanent magnet synchronous motor. The load torque is observed according to the rotor angular velocity and the q-axis current to obtain the load torque observation value. The load torque observation value output by the load torque observer is sent to the sliding mode speed controller. The sliding mode speed controller adopts an integral sliding mode control mode to compensate the load torque in a manner that the load torque given value includes the load torque observation value item. The load torque observer adjusts the feedback gain according to the change of the load torque given value. When the system speed changes, or the parameters change, the load is disturbed, resulting in the load torque given value changing or / and the load torque observation value changing, the observation error of the load torque can be quickly reduced and the load torque compensation can be realized, thereby effectively weakening the jitter of the system, and the dynamic response speed is fast, the robustness is high, and the control accuracy of the motor speed is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This invention patent application is a divisional application. The original application number is 202010918602.0. The application date is September 4, 2020. The name of the invention is high-voltage circuit breaker motor drive control system. Technical Field

[0002] The present invention relates to the technical field of permanent magnet synchronous motors, and more specifically, to a sliding mode observation method for load torque of a permanent magnet synchronous motor. Background Art

[0003] The commonly used operating mechanisms of high-voltage circuit breakers are electromagnetic operating mechanisms, spring operating mechanisms, pneumatic operating mechanisms, and hydraulic operating mechanisms. Permanent magnet synchronous motors have the advantages of high efficiency, high torque, and good speed performance. They are widely used in manufacturing, electric vehicles, industrial production, and other fields. The use of permanent magnet synchronous motors to directly drive circuit breakers for operation provides conditions for operating the circuit breakers with different speed characteristics. The use of PI controllers for permanent magnet synchronous motors cannot meet the requirements of high dynamic response. The use of sliding mode control methods will cause obvious jitter in the motor speed when load disturbances or internal parameter perturbations occur. Summary of the invention

[0004] The purpose of the present invention is to provide a method for observing the load torque of a permanent magnet synchronous motor by sliding mode, which can feed forward the observed load torque to the current regulator, improve the response speed of the load torque observation and reduce the fluctuation of the torque observation, and observe the load torque according to the rotor angular velocity and the q-axis current to obtain the load torque observation value. The load torque observer is

[0005]

[0006] Among them, i q is the q-axis current, is the observed value of load torque, is the estimated value of the rotor angular velocity, g is the feedback gain of the load torque observer and g<0; ω is the rotor angular velocity, k g is the sliding mode gain of the load torque observer and k g ≤-|e2 / J|, is the load torque observation error, T L is the load torque.

[0007] The load torque observation value output by the load torque observer is sent to the sliding mode speed controller. The sliding mode speed controller adopts an integral sliding mode control method to compensate the load torque by including the load torque observation value item in the load torque given value; the load torque observer adjusts the feedback gain according to the change of the load torque given value, and the load torque given value is output by the sliding mode speed controller; the load torque observer parameters and the sliding mode speed controller parameters are uniformly optimized and adjusted using the particle swarm algorithm.

[0008] The load torque observer is based on the load torque given value The method to adjust the feedback gain g is:

[0009] Step 1: Calculation

[0010] Step 2: Judgment Is it greater than ε2? When it is greater than ε2, the feedback gain g is equal to g min And go to step (5); when ΔT is less than or equal to ε2, go to step (3);

[0011] Step 3: Judgment Is it less than ε1? When it is less than ε1, the feedback gain g is equal to g max And go to step (five); when When it is greater than or equal to ε1, go to step (IV);

[0012] Step (IV): Feedback gain g is calculated according to

[0013]

[0014] After the calculation, proceed to step 5;

[0015] Step (V): Load torque observer measures load torque T L Observe and obtain the load torque observation value The sliding mode speed controller performs control calculation to obtain

[0016] Among them, ε1 is the torque change lower limit comparison threshold, ε2 is the torque change upper limit comparison threshold, and 0<ε1<ε2; g max is the high value of feedback gain, g min is the low value of feedback gain, and g min <g max <0.

[0017] The state variables of the sliding mode speed controller are

[0018]

[0019] Where ω is the rotor angular velocity, ω * is the given rotor angular velocity; the sliding surface of the sliding mode speed controller is s y =c y y1+y2,c y is the sliding surface parameter, and c y >0; Sliding mode speed controller outputs load torque given value and q-axis torque current given value for

[0020]

[0021] Where J is the moment of inertia, p is the number of motor pole pairs, ψ f is the permanent magnet flux, B is the friction coefficient; coefficients μ1, μ2, μ3 and μ4 are the exponential approach rate coefficients of speed sliding mode control, and μ1>0, μ2>0, 1<μ3<2, μ4>0.

[0022] The load torque observer parameters and sliding mode speed controller parameters are optimized and tuned uniformly using the particle swarm algorithm. The method is:

[0023] Step 301, initialize the particle swarm; the initial position of the particle is Where M is the number of particles; the parameter vector to be optimized is θ z1 =[c y , μ1, μ2, μ3, μ4, G max , G min , ε1, ε2, α];

[0024] Step 302, initializing the particle velocity and the particle swarm optimal solution; taking the initial position of each particle as the initial optimal value of each particle, calculating the fitness value of each particle according to the objective function and saving it as the optimal particle fitness value of each particle; comparing the fitness values ​​of each particle to obtain the initial particle swarm optimal solution and the particle swarm optimal fitness value and saving them;

[0025] Step 303, according to formula

[0026]

[0027] z n+1 =z n +u n+1

[0028] Update the speed and position of each particle; n is the current number of iterations, u n and z n is the velocity vector and position of the particle; c0 is the inertia weight, ranging from 0 to 1.4; c1 and c2 are learning factors, ranging from 1 to 2; is a random number ranging from 0 to 1; is the optimal solution found by the particle itself so far, Represents the optimal solution of the particle swarm of the entire population so far;

[0029] Step 304, calculating the fitness value of each particle according to the objective function;

[0030] Step 305, And the corresponding optimal particle fitness value is updated. And the corresponding particle swarm optimal fitness value is updated;

[0031] Step 306 , determining whether the loop termination condition is met, if so, the particle swarm algorithm is terminated, and the final particle swarm optimal solution is the optimal parameters of the load torque observer and the sliding mode speed controller; otherwise, returning to step 303 .

[0032] g max With G max The relationship is g min With G min The relationship is k g The relationship with α is

[0033]

[0034] Wherein, α≥1; further, the value of α is selected within the range of 1 to 5.

[0035] The load torque observer parameters and sliding mode speed controller parameters are optimized and tuned uniformly using the particle swarm algorithm. The objective function is:

[0036] Q3=ω z +γ z τ;

[0037] Among them, ω z is the rotor angular velocity tracking error, τ is the tracking delay time, γ z is the fitness balance adjustment coefficient. Given the rotor angular velocity ω* as a sine wave signal; the rotor angular velocity tracking error ω z is the jitter amplitude of the rotor angular velocity ω, and the tracking delay time τ is the delay time between the rotor angular velocity ω and the given rotor angular velocity ω*.

[0038] Get the rotor angular velocity tracking error ω z The method is: the rotor angular velocity tracking jitter difference ω z is the peak tracking error of the rotor angular velocity for multiple cycles ω z1 and the rotor angular velocity valley tracking jitter difference ω z2Get the rotor angular velocity peak tracking jitter ω z1 The method is to take the average of the two maximum sampling values ​​of the rotor angular velocity in the peak area as the peak maximum value, and the minimum sampling value between the sampling moments of the two maximum sampling values ​​as the peak minimum value; the rotor angular velocity peak tracking jitter error ω z1 is the absolute value of the difference between the peak maximum value and the peak minimum value. Get the rotor angular velocity valley tracking jitter error ω z2 The method is as follows: the average of the two minimum sampling values ​​of the rotor angular velocity in the valley area is taken as the minimum value of the valley, and the maximum sampling value between the two minimum sampling values ​​is taken as the maximum value of the valley; the rotor angular velocity valley tracking jitter error ω z2 It is the absolute value of the difference between the minimum value and the maximum value of the valley.

[0039] The method for obtaining the tracking delay time τ is: the tracking delay time τ is the average value of the peak tracking delay time τ1 and the valley tracking delay time τ2 of multiple cycles. The peak tracking delay time τ1 is the absolute value of the time difference between the moment of the maximum rotor angular velocity and the moment of the given maximum rotor angular velocity; the valley tracking delay time τ2 is the absolute value of the time difference between the moment of the minimum rotor angular velocity and the moment of the given minimum rotor angular velocity. The method for obtaining the moment of the maximum rotor angular velocity and the moment of the minimum rotor angular velocity is to take the center point between the sampling moments of the two maximum sampling values ​​of the rotor angular velocity in the peak area as the moment of the maximum rotor angular velocity, and take the center point between the sampling moments of the two minimum sampling values ​​of the rotor angular velocity in the valley area as the moment of the minimum rotor angular velocity.

[0040] The permanent magnet synchronous motor load torque sliding mode observation method detects the rotor position θ of the permanent magnet synchronous motor and the three-phase current i a 、i b and i c ; Based on the three-phase current i a 、i b and i c Clark transformation is performed on the permanent magnet synchronous motor to obtain the current i in the α-β axis coordinate system: α 、Current i β , according to the current i α 、Current i β Perform Park transformation on the rotor position θ to obtain the current i in the dq axis coordinate system d 、Current i q .

[0041] The permanent magnet synchronous motor load torque sliding mode observation method is implemented by a motor drive control system including a sliding mode speed controller, a load torque observer, a q-axis current controller, a d-axis current controller, a Clarke transformation module, a position and speed detection module, a Park transformation module, a Park inverse transformation module, an SVPWM module and a three-phase inverter.

[0042] The beneficial effect of the present invention is that the output item of the sliding mode speed controller includes the compensation sub-item load torque observation value, which is equivalent to the load torque observation value feed-forward compensation to the given value of the current regulator. Without the need for a large adjustment of the given current part of the sliding mode speed controller output, the relevant influence caused by the load disturbance or the change of the system parameters can be offset, and the jitter of the system is effectively weakened. The algorithm for automatically adjusting the feedback gain g according to the change of the load torque given value avoids the problem that the load torque observer selects a fixed small feedback gain to cause large torque observation fluctuations and selects a fixed large feedback gain to cause a long convergence time. When the control parameters, model parameters, etc. of the system change or the load is disturbed, resulting in a change in the given sub-item part of the load torque given value or / and a change in the load torque observation value part, the observation error of the load torque can be quickly reduced, and the observation effect and the rapidity and accuracy of the motor speed control are improved. The feedback gain is automatically adjusted when the load torque given value changes. When the load torque observation value has not changed significantly, but the given sub-item part of the load torque given value changes due to the change of the rotor angular velocity given value and / or the change of the actual value of the rotor angular velocity, or the given sub-item part of the load torque given value changes due to the change of the system model parameters, which will cause the load torque observation value to fluctuate greatly, the feedback gain can be adjusted in advance. When the load torque observation value actually produces an observation error, the response speed of the observer is accelerated, the observation error of the load torque observation value is quickly reduced, and the speed and accuracy of the motor speed control are further improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 This is a block diagram of Embodiment 1 of a high voltage circuit breaker motor drive control system;

[0044] Figure 2 This is a flow chart of Embodiment 1 of the feedback gain automatic adjustment method;

[0045] Figure 3 This is a block diagram of Embodiment 2 of a high voltage circuit breaker motor drive control system;

[0046] Figure 4 This is a flow chart of Embodiment 2 of the feedback gain automatic adjustment method;

[0047] Figure 5 The given rotor angular velocity is a sinusoidal signal and load torque signal;

[0048] Figure 6 Schematic diagram of the rotor angular velocity signal and rotor angular velocity response for one sine wave cycle. DETAILED DESCRIPTION

[0049] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0050] Figure 1 It is a block diagram of embodiment 1 of the high-voltage circuit breaker motor drive control system. Figure 1 In the Clarke transformation module, the three-phase current i of the permanent magnet synchronous motor (PMSM) is input a 、i b and i c , output the current i in the two-phase stationary α-β axis coordinate system α 、i β ; The position sensor in the position and speed detection module detects the rotor position θ of the permanent magnet synchronous motor and converts it into the rotor angular velocity ω output; the Park conversion module inputs the current i α 、i β and the rotor position θ, the output current i in the rotating dq axis coordinate system d 、i q ;Sliding mode speed controller SMC input rotor given angular velocity ω * and rotor angular velocity ω, output load torque given value T L * and torque current given component i′ q ; Load torque observer inputs load torque given value T L * , rotor angular velocity ω and current i q , output torque current compensation component i″ q ; Torque current given component i′ q and torque current compensation component i″ q After adding, it is used as the q-axis torque current given value i * q ; q-axis current PI controller input q-axis torque current given value i * q and current i d , output control voltage U in q-axis coordinate system q ; d-axis current PI controller input q-axis torque current given value i * d and current i d , output control voltage U in d-axis coordinate system d , d-axis torque current given value i * d=0; the control voltage U in the dq axis coordinate system is input to the Park inverse transformation module d , U q , output the control voltage U in the α-β axis coordinate system α , U β SVPWM module (i.e. space vector pulse width modulation module) input control voltage U α , U β , output pulse signal to the three-phase inverter, the three-phase inverter converts the DC voltage U dc Convert to three-phase AC power supply U a , U b , U c , thereby driving the permanent magnet synchronous motor to operate.

[0051] Ignoring the influence of core eddy current and hysteresis loss, the i d =0, the PMSM rotor magnetic field oriented control is established, and the mathematical model of PMSM in the dq axis rotating coordinate system is established. The voltage equation is:

[0052]

[0053] For the use of i d =0 control mode of salient pole PMSM vector control system, the electromagnetic torque equation is:

[0054]

[0055] The PMSM motion equation is:

[0056]

[0057] In formula (1), (2), and (3), u d 、u q are the voltages of the dq axes respectively; i d 、i q are the currents of d and q axes respectively; L d , L q are the inductance of d and q axes respectively; T e is the electromagnetic torque; T L is the load torque; R is the stator resistance; p is the number of motor poles; ω e is the rotor electrical angular velocity, i.e. angular frequency; ω is the rotor angular velocity, i.e. the rotor mechanical angular velocity of the motor; ψ f is the permanent magnet flux; J is the moment of inertia; B is the friction coefficient; t is time.

[0058] Let the motor's rotor angular velocity error e = ω * -ω,ω * is the given rotor angular velocity of the motor. The state variables of the embodiment 1 of the high-voltage circuit breaker motor drive control system are defined as:

[0059]

[0060] From equations (2), (3) and (4), we can get:

[0061]

[0062] Simplify equation (5) and let D = 1.5pψ f / J,u=i q , the state space equation of the system in Example 1 can be obtained as follows:

[0063]

[0064] Select the sliding surface function as:

[0065] s=cx1+x2 (7)

[0066] In formula (7), s is the sliding surface, c is the sliding surface parameter, and c>0. In formula (7), c is the coefficient of the rotor angular velocity error term. Its influence on the control effect is similar to the proportional coefficient in PID control. The value of c also takes into account the balance of the rotor angular velocity error and the rotor angular velocity error change rate. Usually, it is selected within the range of greater than 0 and less than 1000. For example, c=60. Derivative of formula (7) yields:

[0067]

[0068] The expression of the traditional exponential reaching law is:

[0069]

[0070] In formula (9), sgn() is a sign function, -k1sgn(s) is a constant speed approach term, -k2s is an exponential approach term, and the two coefficients k1 and k2 respectively determine the chattering and the motion quality of the approach process of the sliding surface, and k1 and k2 are both greater than 0. In order to improve the response speed of the system, the constant speed approach term is changed to a variable speed approach term based on the traditional exponential approach rate, and the improved approach law is:

[0071]

[0072] Where k1>0, k2>0, 0<k3<1, k4>0. When the absolute value of the motor's rotor angular velocity error |x1| is large, The variable speed approaching term has a larger approaching speed, which can accelerate the sliding mode approaching motion speed; when |x1| is small, The speed approaching term has a low approaching speed, which can reduce the vibration. The value of k4 can refer to the steady-state jitter difference limit of the rotor angular velocity when the permanent magnet synchronous motor is running stably. It is recommended that the value is not greater than the inverse value of the steady-state jitter difference limit, and further, the value is within the range of 50% to 100% of the inverse value of the steady-state jitter difference limit; for example, assuming that the steady-state jitter difference limit of the permanent magnet synchronous motor rotor angular velocity is 5rad / s (radians / second), and its inverse value is equal to 0.2, then k4 can be taken in the range of 0.1 to 0.2. k3 is generally taken around 0.5, and further, k3 is generally taken in the range of 0.4 to 0.6. Generally, when controlling a small-power permanent magnet synchronous motor, the values ​​of coefficients k1 and k2 are both less than 2000; the larger the coefficient k2, the faster the system state can approach the sliding mode; the coefficient k1 determines the speed of reaching the switching surface, and the smaller the k1, the smaller the distance and jitter of crossing the switching surface. k1 and k2 are the variable speed approach term coefficient and the exponential approach term coefficient respectively. The value of changes around 1, therefore, the speed approach term coefficient k1 and the exponential approach term coefficient k2 in formula (10) can be adjusted according to the method of adjusting the medium speed approach term coefficient and the exponential approach term coefficient in the traditional exponential approach rate. k3 is the migration coefficient, whose size changes the speed critical point; k4 is the speed coefficient, whose size changes the speed of speed change. e in formula (10) is the natural exponent, that is, the base of the natural logarithm.

[0073] Combining equations (8) and (10), the calculated q-axis given current is used as the torque current given component i′ q , we can get the load torque given value T output by the sliding mode speed controller L * and torque current given component i′ q for:

[0074]

[0075] High-voltage circuit breaker motor drive control system embodiment 1 The output of the sliding mode speed controller contains an integral term. Filtering the control quantity can weaken the system chattering and reduce the steady-state error of the system. The Lyapunov function is defined as:

[0076]

[0077] From formula (10) and formula (12), we can get:

[0078]

[0079] In formula (13), k1>0, k2>0, s·sgn(s)≥0, Therefore It shows that the system tracking error can converge to zero in a finite time and the system can operate stably.

[0080] The manual method of setting parameters c, k1, k2, k3, k4 when designing a sliding mode speed controller is to first determine the values ​​of k3 and k4; let the q-axis torque current given value i * q Only includes the input torque current given component i' q (that is, no load torque compensation control is performed), and then the sliding mode surface parameter c and the speed approach term coefficient k1 are adjusted from small to large in the sliding mode of the system until obvious jittering occurs in the system. On this basis, taking into account both the suppression of jittering and the system state convergence speed, the values ​​of the sliding mode surface parameter c and the speed approach term coefficient k1 are appropriately reduced; finally, while taking into account the suppression of sliding mode jittering, the value of the exponential approach term coefficient k2 is adjusted mainly based on the rapidity of the system arrival segment (for example, the motor start-up stage of the step response), and other parameter values ​​of the sliding mode speed controller are appropriately fine-tuned.

[0081] According to the PMSM electromagnetic torque and motion equation, for a constant step load, it can be considered as a constant value within the change cycle, that is, The motor rotor angular velocity and load torque are used as state variables to form the PMSM state equation:

[0082]

[0083] Based on formula (14), taking load torque and motor rotor angular velocity as observation objects, load torque observer embodiment 1 is established as:

[0084]

[0085] In formula (15), is the observed value of the load torque, is the estimated value of the rotor angular velocity, g is the feedback gain of the load torque observer, k g is the sliding mode gain of the load torque observer embodiment 1, and the load torque observer embodiment 1 is a sliding mode observer. Compared with the load torque, the motor friction accounts for a small proportion, so let B = 0, ignoring the influence of friction, then the load torque observer embodiment 1 of formula (15) becomes:

[0086]

[0087] According to (14) and (16) when B=0, the error equation of the load torque observer embodiment 1 is obtained as follows:

[0088]

[0089] In formula (17), is the rotor angular velocity estimation error, is the load torque observation error, and the observer sliding surface is defined as According to the sliding mode reachability condition, the stability condition of the observer system in equation (16) is k g ≤-|e2 / J|, and g<0.

[0090] Based on formula (14), with load torque and motor rotor angular velocity as observation objects, load torque observer embodiment 2 can also be established as:

[0091]

[0092] Compared with the load torque, the motor friction accounts for a small proportion. Let B = 0 and ignore the influence of friction. Then the load torque observer embodiment 2 of equation (18) becomes:

[0093]

[0094] In formula (18) and (19), is the observed value of the load torque, is the estimated value of the rotor angular velocity, g is the feedback gain of the load torque observer, k W is the proportional gain of the load torque observer embodiment 2, and the load torque observer embodiment 2 is a state observer. According to equation (14) and equation (19) when B=0, the error equation of the load torque observer embodiment 2 is obtained as follows:

[0095]

[0096] In formula (20), is the rotor angular velocity estimation error, is the load torque observation error. The state observer of equation (19) is an autonomous linear system. W <0, and g<0, the observer is asymptotically stable. Equation (15) of the load torque observer embodiment 1 and equation (18) of the load torque observer embodiment 2 both take into account the friction factor of the motor. The addition of small friction damping will make the system respond faster, but the stability can be increased on the basis of equations (16) and (19), respectively.

[0097] When the observer embodiment 1 of equations (15) and (16) is selected, the sliding mode gain k g The setting method is to follow

[0098]

[0099] In formula (21), α≥1; generally, the value of α is selected in the range of 1 to 5, for example, α is selected to be equal to 1.5. Load torque observer embodiment 1 In the process of observing the load torque, kg The absolute value of |e2| is too small. When |e2| is large, the observer cannot enter the sliding mode state. g The absolute value of is large enough to ensure that the observer enters the sliding mode state, but the steady-state observation fluctuation of the load torque becomes larger; k g The value of changes with the load torque observation error, which can simultaneously increase the stability of the observer and reduce the steady-state observation fluctuation of the load torque.

[0100] When the observer embodiment 2 of equations (18) and (19) is selected, the proportional gain k W The setting method is to follow

[0101]

[0102] In formula (22), T N is the rated torque of the motor, β>0; generally, the β value is selected in the range of 1 to 20, for example, β=10. When β is selected to increase, the steady-state fluctuation of the load torque observation becomes larger, but the torque observation tracking overshoot becomes smaller; when β is selected to decrease, the steady-state fluctuation of the load torque observation becomes smaller, but the torque observation tracking overshoot becomes larger.

[0103] In the observers represented by equations (15), (16) or equations (18), (19), the value of the feedback gain g has a great influence on the load torque observation result. The larger the feedback gain g, the smaller the observed torque fluctuation, but the slower the observed torque identification speed; the smaller the feedback gain g, the faster the observed torque speed, but the greater the observed torque fluctuation. In consideration of this problem, in the traditional load torque observer, the observation speed and fluctuation of the load torque are comprehensively considered, and the feedback gain g is taken as a compromise value, but this will abandon the advantages of small fluctuation when the feedback gain is large and fast observation speed when the feedback gain is small.

[0104] The motor sliding mode speed control mainly suppresses the influence of parameter changes and external load disturbances on the system by increasing the amplitude of the discontinuous term in the controller, but the increase in amplitude will cause the inherent chattering of the sliding mode. In order to solve the contradiction between the chattering and anti-disturbance of the sliding mode control system, the observer is used to observe the load disturbance changes in real time, and the load torque observation value is feed-forward compensated to the current regulator to reduce the amplitude of the discontinuous term in the sliding mode control, weaken the given torque change caused by parameter changes, or the system chattering caused by load disturbances. In order to make full use of the advantages of the feedback gain g at high and low values, according to the load torque observation value and the load torque given value change at two adjacent moments, when the load torque given value changes little and the load torque observation value changes little, a larger feedback gain g is given to make the observation result less volatile and more stable; when the load torque given value changes greatly or the load torque observation value changes greatly, a smaller feedback gain g is given to speed up the observation speed. Finally, by adjusting the feedback gain g, a comprehensive result of fast observation speed, small fluctuation and stronger stability is obtained.

[0105] Load torque observer embodiment 1, or load torque observer embodiment 2 is used for Figure 1 In the embodiment 1 of the high-voltage circuit breaker motor drive control system, the load torque observer is based on the load torque given value and load torque observation The feedback gain g is adjusted according to the change of the rotor angular velocity ω and the current i q Observe the load torque and obtain a new load torque observation value

[0106] Figure 2 The flow chart of the feedback gain automatic adjustment method embodiment 1 is used in the load torque observer embodiment 1 or the load torque observer embodiment 2. Figure 1 In the first embodiment of the high-voltage circuit breaker motor drive control system, the feedback gain is automatically adjusted. Figure 2 In the figure, ε1 is the torque change lower limit comparison threshold, ε2 is the torque change upper limit comparison threshold; the sum of the change in the load torque given value and the change in the load torque observed value for the last two times Where, ΔT L * is the difference between the two most recent load torque given values, is the difference between the two most recent load torque observations. In a periodic control process of a motor drive control system, Figure 2 The feedback gain g shown in (a) is adjusted before the load torque observation and the output calculation of the sliding mode speed controller, which is:

[0107] Step 1: Calculation

[0108] Step ②, determine whether ΔT is greater than ε2; ​​when ΔT is greater than ε2, set the feedback gain g equal to g min And go to step ⑤; when ΔT is less than or equal to ε2, go to step ③;

[0109] Step 3: Determine whether ΔT is less than ε1; when ΔT is less than ε1, set the feedback gain g equal to g max And go to step ⑤; when ΔT is greater than or equal to ε1, go to step ④;

[0110] Step ④: Feedback gain g is calculated according to

[0111]

[0112] Perform calculations.

[0113] Step 5: The load torque observer calculates the load torque T according to the feedback gain g. L Observe and obtain the load torque observation value The sliding mode speed controller performs control calculation to obtain the load torque given value At this time for for Until the next feedback gain g adjustment, the becomes becomes

[0114] Among them, ε1 is the torque change lower limit comparison threshold, ε2 is the torque change upper limit comparison threshold, and 0<ε1<ε2; g max is the high value of feedback gain, g min is the low value of feedback gain, and g min <g max <0.

[0115] In the process of periodic control of motor speed, Figure 2 The adjustment of the feedback gain g shown in (b) is later than the load torque observation and the output calculation of the sliding mode speed controller. The feedback gain g adjustment method changes the above step ⑤ into step ①, and steps ①-④ into steps ②-⑤, and the entry into step ⑤ in each step is changed to exit.

[0116] Figure 2 (b) in

[0117] When ΔT is greater than ε2, it indicates that the load torque observation value fluctuates greatly, or the load torque given value changes greatly due to changes in system model parameters, rotor angular velocity given value, and rotor angular velocity actual value, which will cause the load torque observation value to fluctuate greatly. The feedback gain g is selected to be equal to g min Rapid identification and observation of load torque; when ΔT is less than ε1, it indicates that the load torque set value changes little and the state load torque observation value fluctuates little, and the feedback gain g is selected to be equal to g max Load torque identification and observation with stability as the main focus are performed; when ΔT is greater than or equal to ε1 and less than or equal to ε2, the feedback gain g is calculated according to formula (23), so that the feedback gain g decreases with the increase of ΔT in this interval, avoiding the adverse effect on the working stability of the torque observer caused by the drastic change of the feedback gain g due to a small change of ΔT. Figure 2 In the given torque change comparison threshold 0<ε1<ε2, the specific values ​​of ε1 and ε2 are related to the sampling control period (cycle time) of the sliding mode speed controller, the permanent magnet synchronous motor and its load conditions. ε2 is generally within the range of less than 5% of the rated torque. For example, if the rated torque is 22N·m, ε1=0.1N·m and ε2=0.6N·m. The value of the feedback gain g satisfies g min <g max <0, generally, g min ≥-5000. g min The value should be selected so that when the load torque changes suddenly, the torque observation tracking overshoot of the load torque observer output observation value is within the torque observation tracking overshoot limit; g max The value should be selected when the load torque is constant, the load torque observer and the sliding mode speed controller are both in steady state, and the sum of the change of the load torque given value and the change of the load torque observation value in the last two times ΔT is less than ε1; for example, select the feedback gain g max =-0.5, g min =-10. Select g min , g max The specific method for determining the values ​​of ε1, ε2 is as follows: first, when the load torque remains unchanged and the load torque observer and the sliding mode speed controller are both in steady state, let the feedback gain g start from a larger value. For example, let the feedback gain g gradually decrease from -0.01. The steady-state jitter error of the load torque observation will gradually increase. When the steady-state jitter error of the load torque observation reaches the steady-state jitter error limit of the load torque observation, the feedback gain g value at this time is determined to be g max ; Keep the load torque unchanged and set the feedback gain g equal to g max, and continuously measure the F1-time ΔT value, and take the average value of the maximum F2 ΔT measurement values ​​in the F1-time ΔT measurement as the torque change lower limit comparison threshold ε1; then, when the load torque observer and the sliding mode speed controller are both in a steady state, the load torque is suddenly changed, and under the premise of ensuring that the torque observation tracking overshoot of the load torque observer output observation value is within the torque observation tracking overshoot limit, the tracking adjustment time of the load torque observer output observation value is as short as possible to adjust and determine g min value; then, keep the load torque unchanged and set the feedback gain g equal to g min At the same time, the ΔT value is measured continuously for F1 times, and the average value of the maximum F2 ΔT measurement values ​​in the F1 ΔT measurement at this time is used as the torque change upper limit comparison threshold ε2.

[0118] When designing the sliding mode speed controller and load torque observer of the embodiment 1 of the high-voltage circuit breaker motor drive control system, the sliding mode speed controller parameters and the load torque observer can also be adjusted by using optimization algorithms such as particle swarm algorithm, wolf pack algorithm, genetic algorithm, etc. When the sliding mode speed controller parameters c, k1, k2, k3, k4 are adjusted by using the wolf pack algorithm, the objective function for comprehensively evaluating the various performance indicators of the sliding mode speed controller of the embodiment 1 of the high-voltage circuit breaker motor drive control system is established:

[0119]

[0120] In formula (24), Q 11 The integral term in is the IAE criterion (error integration criterion) of the motor rotor angular velocity step response, e(t) is the instantaneous value of the rotor angular velocity error, t m is the transition time of the motor rotor angular velocity step response, t=0 is the starting time of the motor step response; Q 11 The second term γ m1 (1-sgn(e(t)+ω δ )) is the angular velocity overshoot penalty function, where γ m1 Take a sufficiently large ( 5 times or more of the reasonable value), ω δ is the rotor angular velocity overshoot limit (i.e. the maximum rotor angular velocity overshoot allowed by the system); when the overshoot of the motor rotor angular velocity step response does not exceed the rotor angular velocity overshoot limit ω δ When , the overshoot penalty function term is equal to 0, otherwise it is equal to γ m1 ;Q 12 is the steady-state jitter penalty function, ω Δ is the rotor angular velocity steady-state jitter error limit; when the steady-state jitter error of the motor rotor angular velocity step response does not exceed the rotor angular velocity steady-state jitter error limit ω Δ When the steady-state jitter penalty function term is equal to 0, otherwise it is equal to γm1 ; Q1 is the objective function value, that is, the fitness value of the wolf pack algorithm for parameter optimization of the sliding mode speed controller; the smaller the fitness value of the individual in the wolf pack, the better the corresponding position. γ m1 When taking values, first estimate For example, if the rated speed of the motor is 1500r / min (corresponding to the rated rotor angular velocity of 157rad / s) and the starting time is about 0.2s, then The reasonable value of γ is no more than 40. m1 Take 5 times or more of 40, for example, take γ m1 =200. m2 Generally, the value is greater than or equal to 2. Its value determines the time interval for measuring the steady-state jitter error of the rotor angular velocity. For example, γ m2 When the value is equal to 6, then at 5 times the transition time t m The rotor angular velocity steady-state jitter error is measured in the interval. If other index factors need to be considered in the speed controller parameter optimization, for example, whether the transition process time is short enough, whether the steady-state error is small enough, etc., other objective functions other than equation (24) can be established.

[0121] When the wolf pack algorithm is used to adjust the parameters of the load torque observer embodiment 1 or the load torque observer embodiment 2 in the high-voltage circuit breaker motor drive control system embodiment 1, the objective function for comprehensively evaluating the various performance indicators of the load torque observer in the high-voltage circuit breaker motor drive control system embodiment 1 is established:

[0122]

[0123] In formula (25), Q 21 The integral term in is the IAE criterion for observing the step response of the motor load torque. is the load torque observation error, e2(t) is the instantaneous value of the load torque observation error, t p is the tracking adjustment time of the motor load torque observed step response, t = 0 is the load mutation moment of the load torque observed step response; Q 21 The second term γ p1 (1-sgn(e2(t)+T δ )) is the torque observation tracking overshoot penalty function, where γ p1 Take a large enough A positive number (5 times or more of the reasonable value), T δ is the torque observation tracking overshoot limit. When the torque observation tracking overshoot does not exceed the torque observation tracking overshoot limit T δ When the torque observation tracking overshoot penalty function term is equal to 0, otherwise it is equal to γ p1 .Q22 In the first term, max(|e2(t)|) is the absolute value of the maximum torque observed steady-state jitter error, γ p2 is the fitness balance emphasis coefficient, which is a constant greater than 0; Q 22 The second term γ p1 (1-sgn(e2(t)+T Δ )) is the torque observation steady-state jitter penalty function, T Δ is the load torque observation steady-state jitter difference limit; when the torque observation steady-state jitter difference does not exceed the load torque observation steady-state jitter difference limit T Δ When the torque observation steady-state jitter penalty function term is equal to 0, otherwise it is equal to γ p1 Q2 is the objective function value, that is, the fitness value of the load torque observer parameters using the wolf pack algorithm; the smaller the fitness value of the individual wolf, the better the corresponding position. p1 When taking values, first estimate The reasonable value (upper limit) of the motor; for example, if the rated torque of the motor is 22N·m, the maximum torque observation tracking adjustment time t p At around 0.1s, the integral term of the IAE criterion in formula (25) does not exceed 2; the fitness balance emphasis coefficient γ p2 There are two functions. One is to balance the IAE criterion integral term and the absolute value term of the maximum torque observation steady-state jitter difference. For example, suppose the load torque observation steady-state jitter difference limit value T Δ is 1N·m, then γ p2 When the value is 2, the IAE criterion integral term and the absolute value term of the maximum torque observation steady-state jitter difference are relatively balanced, or the objective function values ​​Q2 of the two play an equivalent role. The reasonable value of γ is no more than 4. p1 Take a constant equal to 20 or greater than 20. Reduce γ p2 value, the weight of the IAE criterion integral term in the objective function value Q2 becomes larger, and it is more inclined to the rapidity of torque observation; increasing γ p2 value, the weight of the absolute value of the maximum torque observation steady-state jitter difference in the objective function value Q2 becomes larger, and it is more inclined to the steady-state performance of torque observation. p3 Generally, the value is greater than or equal to 2. Its value determines the time interval for measuring the steady-state jitter difference of load torque observation. For example, γ p3 When the value is equal to 6, the tracking adjustment time (i.e. transition process time) t p The steady-state jitter difference of load torque observation is measured in the range.

[0124] The specific steps for optimizing the sliding mode speed controller parameters or the load torque observer parameters using the wolf pack algorithm are:

[0125] Step 101, initialize the wolf pack. Assume that the initial position of the individual in the wolf pack is Where M is the number of individuals in the wolf pack, which is generally selected between 20 and 150, and the initial position is required to obey a random distribution.

[0126] (1) For the sliding mode speed controller in Example 1 of the high-voltage circuit breaker motor drive control system, the parameter vector to be optimized is θ = [c, k1, k2, k3, k4]. At this time, the search space dimension N of the wolf pack algorithm is equal to 5, and the final position value of the leader wolf is the optimal parameter of the sliding mode speed controller. The position value interval is [m imin m imax ], the range interval can be given based on existing knowledge or experience, for example, the value interval of parameter c [m 1min m 1max ] is [0 1000], and the value range of parameter k1 is [m 2min m 2max ] is [0 2000], and the value range of parameter k2 is [m 3min m 3max ] is [0 2000], and the value range of parameter k3 is [m 4min m 4max ] is [0.4 0.6], and the value range of parameter k4 is [m 5min m 5max ] is [0.5 / ω Δ 1 / ω Δ ].

[0127] (2) For the load torque observer embodiment 1 in the high-voltage circuit breaker motor drive control system embodiment 1, when the feedback gain automatic adjustment method embodiment 1 is used to automatically adjust the feedback gain, the parameter vector to be optimized is θ1=[G max , G min , ε1, ε2, α], at this time the search space dimension N of the wolf pack algorithm is equal to 5.

[0128] (3) For the load torque observer embodiment 2 in the high-voltage circuit breaker motor drive control system embodiment 1, when the feedback gain automatic adjustment method embodiment 1 is used to automatically adjust the feedback gain, the parameter vector to be optimized is θ2=[G max , G min , ε1, ε2, β], at this time the search space dimension N of the wolf pack algorithm is equal to 5.

[0129] When optimizing the parameters in vectors θ1 and θ2, after optimizing the final alpha position (optimal position), g max , g min according to Calculate respectively; sliding mode gain k gAccording to the parameter α, it is calculated according to formula (21); the proportional gain k W The parameter β is calculated according to formula (22). The position value interval of the parameters in vectors θ1 and θ2 is [m imin m imax ], the range interval can be given based on existing knowledge or experience, for example, parameter G max The value interval [m 1min m 1max ] is [-4 4]; parameter G min The value interval [m 2min m 2max ] is [-4 4]; the value range of parameter ε1 is [m 3min m 3max ] and the value range of parameter ε2 [m 4min m 4max ] are [0 0.05T N ], T N is the rated torque of the motor; the value range of parameter α is [m 5min m 5max ] is

[15] , or the value interval of parameter β is [m 5min m 5max ] is

[120] .

[0130] Step 102, hunting competition. Calculate the fitness value of each wolf in the wolf pack. The smaller the fitness value, the better the position of the wolf. Select the R1 wolves with the best position as the candidate wolves. The R1 candidate wolves start hunting search behavior according to formula (26). At the same time, each candidate wolves compete for the leader according to the size of the fitness value. Specifically,

[0131] Step 1021, each candidate wolf randomly selects h1 directions, searches for parameters along each direction according to formula (26), moves forward one step and then moves back; calculates the fitness value after moving forward, selects the minimum fitness value in all directions, and if the minimum fitness value is smaller than the fitness value of the original position of the candidate wolf, replaces the original position of the candidate wolf with the position where the minimum fitness value is located;

[0132] Step 1022, each candidate wolf repeats step 1021 h2 times;

[0133] Step 1023: After all R1 candidate wolves complete step 1022, the candidate wolf with the best position is selected as the leader.

[0134]

[0135] In formula (26), i = 1, 2, ..., R1; j = 1, 2, ..., N; rand (-1, 1) is a random number uniformly distributed in [-1 1]; l = 1, 2, ..., h1; stepa is the hunting step length, and the recommended value range of stepa is [0.1 0.9]; m i =[m i1 m i2 … m iN ] is the position of the ith candidate wolf. R1 is recommended to be a fixed value or a random value in the interval [0.1M 0.25M]; the number of directions h1 is recommended to be in the interval [3 8], and the number of repetitions h2 is recommended to be in the interval [3 10].

[0136] Step 103, summoning and charging. The other wolves other than the candidate wolves start charging and searching according to formula (27), charging towards the leader wolf. Calculate the fitness value of the new position of the i-th wolf. When the new position searched by the i-th wolf is better than its current position, its position is changed, otherwise it remains unchanged; if the new position searched by the i-th wolf is better than the leader wolf's position, the i-th wolf is converted to the leader wolf and re-initiates the call.

[0137] m′ ij =m ij +rand(-1,1)·stepb·(m bj -m ij ) (27)

[0138] In formula (27), i = 1, 2, ..., M-R1; j = 1, 2, ..., N; m' i =[m′ i1 m′ i2 … m′ iN ] indicates the position of the i-th wolf’s search update; m i =[m i1 m i2 … m iN ] represents the current position of the i-th wolf; m b =[m b1 m b2 … m bN ] indicates the current position of the leader wolf; stepb is the running step length, and the recommended value range of stepb is [1.3 2.5].

[0139] Step 104, siege the prey. At the call of the alpha wolf, the other wolves siege the prey according to formula (28). Calculate the fitness value of the new position. When the new position searched by the i-th wolf during the siege is better than the current position, the position of the wolf is changed, otherwise it remains unchanged; if the new position searched by the i-th wolf during the siege is better than the alpha wolf's position, the i-th wolf is converted to the alpha wolf.

[0140]

[0141] In formula (28), i = 1, 2, ..., M-1; j = 1, 2, ..., N; represents the current position of the i-th wolf (i.e., the position after n iterations), represents the siege update position of the i-th wolf; m b =[m b1 m b2 …m bN ] represents the current position of the leader wolf; δ is a pre-set threshold, and the recommended value range of δ is [0.1 0.4]; stepc is the siege step length, which is calculated according to formula (29).

[0142]

[0143] In formula (29), n is the current number of iterations, n max is the maximum number of iterations set; stepc max 、stepc min The maximum and minimum siege steps are set respectively. min The value range of stepc is [0.3 1.3]. max The value of stepc min 5 to 100 times. m jmax and m jmin are the maximum and minimum values ​​of the j-th dimension parameter value interval. The e in formula (29) is the natural exponent, that is, the base of the natural logarithm.

[0144] Step 105, judging the termination condition. If the number of loop iterations reaches or the fitness value of the leader is less than a certain threshold, the optimization process is terminated and the leader position parameter is the optimal parameter of the optimized parameter vector. Otherwise, set n=n+1 and go to step 106.

[0145] Step 106, competitive update. According to the principle of survival of the fittest, randomly generate R2 wolves to replace the eliminated wolves with the worst R2 fitness value, and compete to update the wolf pack, and go to step 102. R2 is recommended to take a fixed value or a random value in the interval [0.05M 0.15M].

[0146] In the above steps, when the new positions of individual wolves are randomly generated, or when the individual wolves search and generate new positions, the variables of each dimension of the new position of each wolf cannot exceed the corresponding value range of the variables.

[0147] In step 105, the termination condition adopts the maximum number of iterations limit method, and the maximum number of iterations n maxIt is recommended to take a fixed value in the interval [20 500]. For parameter optimization in vector θ, when setting the condition that the head wolf fitness value is less than a certain threshold, for example, assuming that the rated speed of the motor is 1500r / min (corresponding to the rated rotor angular velocity of 157rad / s), and the start-up time is required to be within 0.2s, the threshold of the termination condition can be set to 15. For parameter optimization in vectors θ1 and θ2, when setting the termination condition that the head wolf fitness value is less than a certain threshold, it is necessary to refer to the motor rated torque and the expected torque observation tracking adjustment time t p , Torque observation tracking overshoot limit T δ , load torque observation steady-state jitter limit T Δ , fitness balance emphasis coefficient γ p2 etc. to determine the threshold value; assuming the rated torque of the motor is 22N·m, T δ 2N·m, T Δ is 1N·m, γ p2 = 1.5, the desired torque observation tracking adjustment time t p If it is less than 0.04s, the threshold of the termination condition can be set at 1.8.

[0148] In the above steps, for the parameter optimization in vector θ, when calculating the fitness value of the new position of the individual wolf, it is required to convert the individual wolf position into the corresponding controller parameters, control the motor start (or start in the simulation system), and obtain the motor rotor angular velocity step response e(t) required in formula (24). Based on e(t), the transition process time t is determined m , calculate the fitness value Q1 of the individual wolf. For the parameter optimization in vectors θ1 and θ2, when calculating the fitness value of the new position, it is required to convert the individual wolf position into the corresponding load torque observer parameters in turn. When the motor given speed remains unchanged and the sliding mode speed controller is in a steady state, the load torque is suddenly changed to control the motor operation (or run in the motor simulation system) to obtain the motor load torque observation step response e2(t) required in formula (25). According to e2(t), the transition process time t is determined p , calculate the fitness value Q2.

[0149] In the above steps, when the new positions of individual wolves are randomly generated, or when individual wolves search for new positions, the variables of each dimension of the new position of each wolf cannot exceed the corresponding value range of the variable. max , g min There is a constraint g between min <g max , corresponding to the constraint G min >G max When a new position of an individual wolf is randomly generated, or when an individual wolf searches for a new position, first, the individual wolf m iThe parameter m in i1 (i.e. G max ) According to the value interval [m 1min m 1max ] Randomly generate positions or update positions, and then individual wolves m i The parameter m i2 (i.e. G min ) According to the value interval [m i1 m 2max ] Randomly generate positions or update positions so that individual wolves i Satisfy the constraint G min >G max , that is, satisfying the constraint g min <g max There is a constraint between ε1 and ε2. ε1<ε2. When a new position of an individual wolf is randomly generated, or when an individual wolf searches for a new position, first, the individual wolf m i The parameter m in i3 (i.e. ε1) according to the value interval [m 3min m 3max ] Randomly generate positions or update positions, and then individual wolves m i The parameter m i4 (i.e. ε2) according to the value interval [m i3 m 4max ] Randomly generate positions or update positions so that individual wolves i The constraint ε1<ε2 is satisfied.

[0150] Since the initial position of individual wolves is required to obey random distribution, and the spatial search method of the wolf pack algorithm is linear, the feedback gain high value g is directly max and feedback gain low value g min When searching and optimizing in the interval [-5000 0], the absolute value of the feedback gain with a low value has a great influence on the working state of the observer. For example, in the interval [-10 0], the probability of random entry or search entry is small, and it is difficult to optimize the feedback gain with a high value g. max and feedback gain low value g min The optimal position of the feedback gain g is not directly adjusted during the optimization process. max and feedback gain low value g min Instead of searching and optimizing, it is optimized in a similar way to gain, and the parameter interval [-10 0] is expanded in the search interval, making it easier to obtain a high value of feedback gain g max and feedback gain low value g min The optimal position; at this time, the feedback gain is high value g max and feedback gain low value g minThe parameter range is [-10000 -0.0001]; the feedback gain high value g max Under normal circumstances, the interval [-0.0001 0] will not be selected, otherwise it will cause the observer to respond too slowly; in addition, the upper limit of the interval is -0.0001, which also avoids high feedback gain values ​​g max The observer cannot work properly if the value is 0.

[0151] In the periodic control process of the permanent magnet synchronous motor speed in the high-voltage circuit breaker motor drive control system embodiment 1, the load torque given value T calculated at the kth time (or the kth step) is L * T L * (k), load torque observation value Recorded as The k-1 moment is the moment of the periodic control process before the k moment, and the load torque given value T L * T L * (k-1), load torque observation value Recorded as The k-2 moment is the moment of the periodic control process before the k-1 moment, and the load torque given value T L * T L * (k-2), load torque observation value Recorded as

[0152] The process of speed control of the permanent magnet synchronous motor in Embodiment 1 of the high-voltage circuit breaker motor drive control system comprises the following steps:

[0153] Step 1: Detect the rotor position θ, rotor angular velocity ω and three-phase current i of the permanent magnet synchronous motor a 、i b and i c ;

[0154] Step 2: Based on the three-phase current i a 、i b and i c Clark transformation is performed on the permanent magnet synchronous motor to obtain the current i in the α-β axis coordinate system: α 、i β , according to the current i α 、i β Perform Park transformation on the rotor position θ to obtain the current i in the dq axis coordinate system d 、i q ;

[0155] Step 3: Feedback gain g is based on the load torque given value T L * and load torque observation to adjust for changes in

[0156] Step 4: The load torque observer is based on the load torque given value T L * , load torque observation value The rotor angular velocity ω and the current i q Observe the load torque and obtain a new load torque observation value and torque current compensation component i″ q ;

[0157] Step 5: The sliding mode speed controller is based on the input rotor given angular velocity ω * And the rotor angular velocity ω is used for control calculation to obtain the load torque given value and torque current given component i′ q ;

[0158] Step 6: Given component i' based on torque current q and torque current compensation component i″ q Calculate the q-axis torque current given value i q * ; The d-axis current controller is based on the d-axis torque current given value i d * and the current i in the d-axis coordinate system d The difference between them is used for PI control operation to obtain the control voltage U in the d-axis coordinate system d ; The q-axis current controller is based on the q-axis torque current given value i q * and the current i in the q-axis coordinate system q The difference between them is used for PI control operation to obtain the control voltage U in the q-axis coordinate system q ; Based on the control voltage U in the dq axis coordinate system d , U q Perform Park inverse transformation to obtain the control voltage U in the α-β axis coordinate system α , U β ; d-axis torque current given value i d * is equal to 0;

[0159] Step 7: Set the control voltage U in the α-β axis coordinate system α , U β As the input of the SVPWM module, the SVPWM module controls the three-phase inverter to generate a three-phase AC power supply U a , Ub , U c , thereby driving the permanent magnet synchronous motor to operate.

[0160] In the above steps, the order of step 3 and steps 4 and 5 can be interchanged, that is, steps 4 and 5 can be performed first, and then step 3. Figure 2 (a) In the above steps 3, 4, and 5, the feedback gain is automatically adjusted first, and then the load torque is observed and the speed is controlled. ΔT L * =T L * (k-1)-T L * (k-2). Figure 2 (b) in the figure first performs load torque observation and speed control, and then automatically adjusts the feedback gain. ΔT L * =T L * (k)-T L * (k-1); In the above steps, steps four and five are performed first, and then step three is performed.

[0161] Observe the load torque observation value Then, the observed value of the load torque Converted into torque current compensation component i″ q Feedforward compensation to the input of the q-axis current PI controller, the torque current given component i′ output by the sliding mode speed controller q The q-axis torque current given value i of the q-axis current PI controller is * q for:

[0162]

[0163] In formula (30), k q =2 / (3pψ f) is the torque observation compensation coefficient. Comparing formula (11) with formula (30), it can be obtained that when the load is disturbed or the system parameters change, the load torque compensation is not added in formula (11), and it is necessary to select larger k1 and k2 values ​​to provide a sufficiently large given current change to offset the related effects of the load disturbance or the change of system parameters, so as to ensure that the motor speed can be quickly constant; while formula (30) feeds forward the load torque observation value to the current regulator, and can provide a sufficiently large given current change to offset the related effects of the load disturbance or the change of system parameters when the load is disturbed or the system parameters change without the need for larger k1 and k2 values, thereby reducing the output pressure of the sliding mode speed controller and the amplitude of the discontinuous term, and effectively weakening the system jitter.

[0164] When the feedback gain value is fixed, the smaller the feedback gain g, the larger the oscillation amplitude of the load torque observation and the stronger the volatility; the larger the feedback gain g, the smaller the oscillation amplitude of the load torque observation and the higher the observation accuracy. The automatic gain adjustment algorithm solves the problem of large torque observation fluctuation caused by small feedback gain in the load torque observer and the problem of long convergence time of large feedback gain. The convergence time and fluctuation amplitude indicators are better than the compromise gain algorithm. It can quickly track the change value of the load torque and quickly reduce the observation error caused by the given change or parameter change. It has a small oscillation amplitude and high observation accuracy, achieving a good observation effect.

[0165] When the given speed is changed under the rated load torque, although the actual load torque does not change, it can be seen from the load torque observer constructed by equations (15), (16) or (18), (19) that when the rotor angular velocity ω changes, even if the load torque does not change, the observed torque observation value will change, resulting in observation error. When the given speed is changed under the rated load torque, the control and adjustment process of the sliding mode control system of the permanent magnet synchronous motor is that the sliding mode speed controller first changes the output load torque given value T according to the given speed. L * Change the torque current given value i * q changes, thus making the electromagnetic torque T of the permanent magnet synchronous motor e The feedback gain g is only based on the change of the load torque observation value. Automatic adjustment is performed. At this time, only when the rotor angular velocity ω changes, the load torque observation value After the change occurs, the feedback gain g is adjusted; the feedback gain g is adjusted according to the change ΔT of the load torque given value. L * and the change in the observed value of load torque The absolute value of the load torque is automatically adjusted when the given speed changes. L * Change, load torque observation value If the load torque has not changed, adjust the feedback gain g in advance. When an observation error actually occurs, the observer response speed can be accelerated to eliminate (reduce) the load torque observation value as quickly as possible. The observation error is reduced, thereby improving the rapidity and accuracy of motor speed control. Similarly, when the system model parameters change, the load torque given value T L * Prior to load torque observation When the load torque is changed, the feedback gain g is also based on the change in the load torque given value ΔT L * and the change in the observed value of load torque Automatic adjustment can be performed to adjust the feedback gain g in advance, speed up the observer response speed, and eliminate (reduce) the load torque observation value as soon as possible Of course, if the load is disturbed and the observed value is When changes occur, When a major change occurs, Figure 2 It can be seen that the feedback gain g can also be automatically adjusted to eliminate (reduce) the load torque observation value as quickly as possible. The observation error makes the load torque observation value Keep up with the load torque T as soon as possible L changes.

[0166] When optimizing the load torque observer parameters, the parameters of the sliding mode speed controller of the high-voltage circuit breaker motor drive control system embodiment 1 need to be adjusted, and the load torque compensation control needs to be implemented. Further, in the high-voltage circuit breaker motor drive control system embodiment 1, after the parameters of the sliding mode speed controller and the load torque observer are adjusted manually or by optimization, the parameters of the sliding mode speed controller can be manually fine-tuned under the condition of realizing the load torque compensation control, or the parameters of the sliding mode speed controller can be re-optimized by using the wolf pack algorithm according to steps 101-106.

[0167] Figure 3 It is a block diagram of embodiment 2 of the high-voltage circuit breaker motor drive control system. Figure 3 Example 2 and Figure 1 The difference of the first embodiment is that the speed sliding mode controller adopts the integral sliding mode control mode, and the load torque compensation is performed in the manner that the load torque given value includes the load torque observation value item; the observation value of the load torque observer Sent to the speed sliding mode controller, the q-axis given current (torque current given component) output by the sliding mode speed controller already includes the load torque observation value Therefore, the q-axis given current (torque current given component) output by the speed sliding mode controller in Example 2 is directly used as the q-axis torque current given value, which can also play the role of load torque compensation; the load torque given value T output by the speed sliding mode controller L Δ The load torque observation value is also included in The load torque observer directly calculates the load torque given value T L Δ The feedback gain is automatically adjusted based on the change in the load torque given value and the change in the load torque observed value, which has the same effect as the feedback gain automatically adjusted based on the sum ΔT of the change in the load torque given value and the change in the load torque observed value in the aforementioned embodiment 1 of the automatic feedback gain adjustment method;

[0168] The state variables of the high-voltage circuit breaker motor drive control system embodiment 2 are defined as:

[0169]

[0170] Select the sliding surface function as:

[0171] s y =c y y1+y2 (32)

[0172] In formula (32), c y is the sliding surface parameter, and c y >0. In formula (32), c y is the coefficient of the integral term of the rotor angular velocity error. Its influence on the control effect is similar to the proportional coefficient in PID control. y The value of also takes into account the balance of the rotor angular velocity error integral term and the rotor angular velocity error term. Usually, c y Select in the range greater than 0 and less than 100. Derivative of formula (32) yields:

[0173]

[0174] Based on the traditional exponential reaching law, the improved reaching law is:

[0175]

[0176] μ1, μ2, μ3, and μ4 are the exponential approach rate coefficients of the speed sliding mode control, where μ1>0, μ2>0, 1<μ3<2, and μ4>0. When the motor's rotor angular velocity error y2 is large, The variable speed approaching term has a larger approaching speed, which can accelerate the sliding mode approaching motion speed; when y2 is smaller, The speed approaching term has a low approach speed, which can reduce jitter. The value of μ4 can refer to the steady-state jitter difference limit of the rotor angular velocity when the permanent magnet synchronous motor is running stably. It is recommended to take a value within the range of 50% to 150% of the square value of the steady-state jitter difference limit; for example, assuming that the steady-state jitter difference limit of the permanent magnet synchronous motor is 4rad / s (radians / second), and its square value is equal to 16, then μ4 can be in the range of 8 to 24. The larger μ3 is, the greater the speed change, and μ3 is generally in the range of 1.05 to 1.3. Generally, when controlling a small-power permanent magnet synchronous motor, the values ​​of the coefficient μ1 and the coefficient μ2 are both less than 5000. μ1 and μ2 are the speed approaching term coefficient and the exponential approaching term coefficient, respectively. The value of changes around 1, therefore, the speed approach term coefficient μ1 and the exponential approach term coefficient μ2 in formula (34) can be adjusted according to the method of adjusting the medium speed approach term coefficient and the exponential approach term coefficient in the traditional exponential approach rate. μ3 is the speed coefficient, and its size changes the speed of speed change; μ4 is the migration coefficient, and its size changes the critical point of speed change.

[0177] Combining equations (2), (3) and (33), we get:

[0178]

[0179] Combining equations (34) and (35), the calculated q-axis given current is directly used as the q-axis torque current given value i Δ q , the q-axis torque current given value i output by the controller can be obtained Δ q and load torque given value T L Δ for:

[0180]

[0181] In formula (36), the load torque value T L Use the output value of the load torque observer Instead, define the Lyapunov function as:

[0182]

[0183] From equation (32) and equation (34), we can get:

[0184]

[0185] In formula (38), μ1>0, μ2>0, s y ·sgn(s y )≥0, so It shows that the tracking error of the observer can converge to zero in a finite time and the system can operate stably.

[0186] When designing a sliding mode speed controller, the tuning parameter c y The artificial method of determining μ1, μ2, μ3, and μ4 is to first determine the values ​​of μ3 and μ4; then let the output value of the load torque observer in equation (36) be (i.e., no load torque compensation control is performed), and then the sliding surface parameter c is adjusted from small to large in the sliding mode of the system. y , the value of the speed approach term coefficient μ1, until the system shows obvious chattering. On this basis, taking into account both the suppression of chattering and the convergence speed of the system state, the sliding surface parameter c is appropriately reduced. y and the value of the speed approach term coefficient μ1; finally, while taking into account the suppression of sliding mode chattering, the value of the exponential approach term coefficient μ2 is adjusted mainly according to the rapidity of the system arrival segment (for example, the motor startup phase of the step response), and other parameter values ​​of the sliding mode speed controller are appropriately fine-tuned.

[0187] Figure 3 The load torque observer in the second embodiment of the high-voltage circuit breaker motor drive control system still adopts the aforementioned load torque observer embodiment 1, or adopts the aforementioned load torque observer embodiment 2; at this time, the load torque observer outputs a load torque given value according to the sliding mode speed controller. The feedback gain g is adjusted according to the change of the rotor angular velocity ω and the current i q Load torque T L Observe and obtain the load torque observation value

[0188] Figure 4 The flow chart of the feedback gain automatic adjustment method embodiment 2 is shown in the load torque observer embodiment 1 or the load torque observer embodiment 2. Figure 3 In Embodiment 2 of the high-voltage circuit breaker motor drive control system, the feedback gain is automatically adjusted. Figure 4 In the equation, ε1 is the torque change lower limit comparison threshold, ε2 is the torque change upper limit comparison threshold, and 0<ε1<ε2; g max is the high value of feedback gain, g min is the low value of feedback gain, and g min <g max <0;ΔT L Δis the difference between the last two load torque given values. In a periodic control process of the motor speed, Figure 4 The feedback gain g shown in (a) is adjusted prior to the load torque observation and the output calculation of the sliding mode speed controller. The specific method is:

[0189] Step 1: Calculation

[0190] Step 2: Judgment Is it greater than ε2? When it is greater than ε2, the feedback gain g is equal to g min And go to step (5); when ΔT is less than or equal to ε2, go to step (3);

[0191] Step 3: Judgment Is it less than ε1? When it is less than ε1, the feedback gain g is equal to g max And go to step (five); when When it is greater than or equal to ε1, go to step (IV);

[0192] Step (IV): Feedback gain g is calculated according to

[0193]

[0194] After calculation, proceed to step (V);

[0195] Step (V): Load torque observer measures load torque T L Observe and obtain the load torque observation value The sliding mode speed controller performs control calculation to obtain At this time for During the next periodic control of the motor speed,

[0196] In the process of periodic control of motor speed, Figure 4 The feedback gain g shown in (b) is adjusted later than the load torque observation and the output calculation of the sliding mode speed controller. The specific method is:

[0197] Step A: Load torque observer measures load torque T L Observe and obtain the load torque observation value The sliding mode speed controller performs control calculation to obtain At this time for During the next periodic control of the motor speed,

[0198] Step B: Calculation

[0199] Step C: Judgment Is it greater than ε2? When it is greater than ε2, the feedback gain g is equal to g min And exit; when ΔT is less than or equal to ε2, enter step D;

[0200] Step D: Judgment Is it less than ε1? When it is less than ε1, the feedback gain g is equal to g max and exit; when When it is greater than or equal to ε1, go to step E;

[0201] Step E: Calculate the feedback gain g according to formula (39) and then exit.

[0202] T L Δ The output items include the given sub-items that are in a changing state due to changes in system parameters, changes in the rotor angular velocity given value, or changes in the actual value of the rotor angular velocity. Also includes the compensation sub-item load torque observation value When |ΔT L Δ When | is greater than ε2, it indicates that the load torque observation value fluctuates greatly, or the system model parameters change, the rotor angular velocity set value change, and the rotor angular velocity actual value change, which makes T L Δ The given sub-item in the equation changes greatly and will cause the load torque observation value to fluctuate greatly. The feedback gain g is selected to be equal to g min Rapid identification and observation of load torque; when |ΔT L Δ When | is less than ε1, it indicates that the load torque observation value fluctuates little and the factors that will cause the load torque observation value to fluctuate greatly (i.e., T L Δ The given sub-item in the formula (g) changes little, and the feedback gain g is selected to be equal to g max Carry out load torque identification and observation mainly based on stability; when |ΔT L Δ When | is greater than or equal to ε1 and less than or equal to ε2, the feedback gain g is calculated according to formula (39), so that the feedback gain g increases with |ΔT in this interval. L Δ | decreases with the increase of |ΔT L Δ |A small change in the feedback gain g will cause a drastic change, which will have an adverse effect on the working stability of the torque observer. Figure 4The specific values ​​of ε1 and ε2 are related to the sampling control period (cycle time) of the sliding mode speed controller, the permanent magnet synchronous motor and its load conditions. ε2 is generally within the range of less than 5% of the rated torque. For example, if the rated torque is 22N·m, ε1=0.1N·m and ε2=0.6N·m. The value of the feedback gain g satisfies g min <g max <0, generally, g min ≥-5000. g min The value should be selected so that when the load torque changes suddenly, the torque observation tracking overshoot of the load torque observer output observation value is within the torque observation tracking overshoot limit; g max The value should be the difference between the last two load torque given values ​​|ΔT when the load torque remains unchanged and the load torque observer and sliding mode speed controller are both in steady state. L Δ | is less than ε1; for example, the feedback gain g is selected max =-0.5, g min =-10. Select g min and g max The specific method of calculating the value is, first, when the load torque is constant and the load torque observer and the sliding mode speed controller are both in steady state, let the feedback gain g start from a larger value. For example, let the feedback gain g gradually decrease from -0.01, the steady-state jitter difference of the load torque observation will gradually increase. When the steady-state jitter difference of the load torque observation reaches the steady-state jitter difference limit of the load torque observation, the feedback gain g value at this time is determined to be g max ; Keep the load torque unchanged and set the feedback gain g equal to g max , and continuously perform F1 times |ΔT L Δ | value, and F1 times |ΔT L Δ |Maximum F2 in measurement|ΔT L Δ |The average value of the measured values ​​is used as the torque change lower limit comparison threshold ε1; then, when the load torque observer and the sliding mode speed controller are both in a steady state, the load torque is mutated, and under the premise of ensuring that the torque observation tracking overshoot of the load torque observer output observation value is within the torque observation tracking overshoot limit, the tracking adjustment time of the load torque observer output observation value is as short as possible to adjust and determine g min value; then, keep the load torque unchanged and set the feedback gain g equal to g min , and continuously perform F1 times |ΔT L Δ | value, and F1 times |ΔT L Δ |Maximum F2 in measurement|ΔT LΔ The average value of the measured values ​​is used as the torque change upper limit comparison threshold ε2.

[0203] In each of the above, select g min , g max In the specific methods of determining the value and comparison threshold, the parameters in the sliding mode speed controller have been adjusted and are implemented under the condition of load torque compensation control; when the parameter value is determined by manual method, it is recommended that F1 is an integer greater than or equal to 20, and F2 is an integer greater than or equal to 5 and less than or equal to 0.5F1.

[0204] In the second embodiment of the high-voltage circuit breaker motor drive control system, the parameters of the sliding mode speed controller and the load torque observer can also be adjusted by using optimization algorithms such as particle swarm algorithm, wolf pack algorithm, genetic algorithm, etc., while realizing load torque compensation control. The specific method of using the particle swarm algorithm to adjust the parameters in the sliding mode speed controller and the load torque observer in the first embodiment (or the load torque observer in the second embodiment) of the high-voltage circuit breaker motor drive control system is:

[0205] System motor given rotor angular velocity ω * is a sine wave signal, such as Figure 5 As shown in (a) in the figure. Given the rotor angular velocity ω * The period of the sine wave signal is T * , the maximum rotor angular velocity Not greater than the rated angular velocity of the motor, the minimum angular velocity of the rotor Not less than 10% of the rated angular velocity of the motor, the maximum angular velocity of the rotor Minimum rotor angular velocity The difference between them is not less than 50% of the rated angular velocity of the motor. Assume that when the high-voltage circuit breaker motor drive control system embodiment 2 is started with rated load torque, the starting rise time to the rated speed is T r , then T * In 5~10T r The system motor is given a rotor angular velocity ω according to the sine wave. * When the signal is running, follow Figure 5 (b) Load torque T L , that is, the system motor is given a rotor angular velocity ω according to the sine wave * When the signal starts to run, the load torque is the load torque low value T Lmin ; After the motor enters the stable following state of the rotor angular velocity, the load torque changes from the low value T Lmin Mutation increases to high values ​​of T Lmax ; The load torque is maintained at a high value T Lmax Run time After that, from the high value T Lmax Mutation reduced to low value TLmin ; Among them, the load torque high value T Lmax Not greater than the rated load torque of the motor, the load torque low value T Lmin Not less than 10% of the rated load torque of the motor, the load torque high value T Lmax With low load torque T Lmin The difference between them shall not be less than 50% of the rated load torque of the motor; 2~5T * The system motor is given a rotor angular velocity ω according to the sine wave * The signal runs for at least 2 cycles T * Then the rotor angular velocity enters a stable following state.

[0206] Figure 6 In order to keep the rotor angular velocity of the motor stable, one sine wave period T * Schematic diagram of the given rotor angular velocity signal and rotor angular velocity response, where curve ① is the given rotor angular velocity ω * , curve ② is the rotor angular velocity response ω, and there is chattering. In order to clearly distinguish ω * and ω, Figure 6 Given the rotor angular velocity ω * The vertical axis coordinate ratio is different from that of the rotor angular velocity response ω. z is the jitter amplitude of the rotor angular velocity ω, and the tracking delay time τ is the delay time between the rotor angular velocity ω and the given rotor angular velocity ω*. Figure 6 In, ω z1 is the rotor angular velocity peak tracking jitter error when the rotor angular velocity response ω is at the maximum value state (peak state), τ1 is the peak tracking delay time, which is the absolute value of the time difference between the maximum moment (peak moment) of the rotor angular velocity and the maximum moment (peak moment) of the given rotor angular velocity; ω z2 is the rotor angular velocity valley tracking jitter error when the rotor angular velocity response ω is in the minimum state (valley state), τ2 is the valley tracking delay time, which is the absolute value of the time difference between the rotor angular velocity minimum moment (valley moment) and the given rotor angular velocity minimum moment (valley moment). Continuous measurement includes load torque from low value T Lmin Mutation increases to high values ​​of T Lmax To load torque from high value T Lmax Mutation reduced to low value T Lmin Multiple cycles (e.g., 10 or more T * The peak tracking error of the rotor angular velocity (period) is ω z1 、Rotor angular velocity valley tracking jitter error ω z2 , peak tracking delay time τ1, valley tracking delay time τ2; rotor angular velocity tracking jitter ω zFor the multiple cycles ω z1 and ω z2 The tracking delay time τ is the average value of the multiple cycles τ1 and τ2. A sinusoidal signal is used as the given rotor angular velocity signal of the motor. The load torque mutation is controlled when the motor is running. The performance indicators are constructed by the rotor angular velocity tracking jitter error and the rotor angular velocity tracking delay time to simultaneously optimize the parameters of the sliding mode speed controller and the load torque observer. The influence of the load torque observer's performance is unified to the rotor angular velocity performance indicator, which simplifies the parameter optimization process and can also improve the rotor angular velocity performance indicator to the greatest extent. The given rotor angular velocity maximum moment (peak moment) and the given rotor angular velocity minimum moment (bottom moment) are both given by the rotor angular velocity ω * The sinusoidal signal is calculated.

[0207] Get the rotor angular velocity peak tracking jitter ω z1 The method is: take the average of the two maximum sampling values ​​of the rotor angular velocity in the peak area as the peak maximum value, and the minimum sampling value between the two maximum sampling values ​​as the peak minimum value; the rotor angular velocity peak tracking jitter error ω z1 is the absolute value of the difference between the peak maximum value and the peak minimum value. Get the rotor angular velocity valley tracking jitter error ω z2 The method is as follows: the average of the two minimum sampling values ​​of the rotor angular velocity in the valley area is taken as the minimum value of the valley, and the maximum sampling value between the two minimum sampling values ​​is taken as the maximum value of the valley; the rotor angular velocity valley tracking jitter error ω z2 It is the absolute value of the difference between the minimum value and the maximum value of the valley.

[0208] The method for obtaining the maximum moment and the minimum moment of the rotor angular velocity is: taking the center point (center point moment) between the two maximum sampling values ​​of the rotor angular velocity in the peak area as the maximum moment of the rotor angular velocity, and taking the center point (center point moment) between the two minimum sampling values ​​of the rotor angular velocity in the valley area as the minimum moment of the rotor angular velocity.

[0209] The objective function for comprehensively evaluating the performance index of the sliding mode speed controller and the load torque observer of the embodiment 2 of the high-voltage circuit breaker motor drive control system is established as follows:

[0210] Q3=ω z +γ z τ (40)

[0211] In formula (40), Q3 is the objective function value, that is, the particle fitness value of the particle swarm algorithm for parameter optimization of the sliding mode speed controller and the load torque observer in Example 2 of the high-voltage circuit breaker motor drive control system, which is composed of the rotor angular velocity tracking jitter term and the tracking delay time term; γ zis the fitness balance adjustment coefficient, which is a constant greater than 0; let the system's rotor angular velocity steady-state jitter limit ω Δ is 1.5rad / s, the motor startup rise time T r 0.1s, because the tracking delay time τ is not greater than the start-up rise time T under normal working conditions r , so γ z When the value is 15, the tracking delay time term and the rotor angular velocity tracking jitter difference term are relatively balanced; or in other words, the tracking delay time term and the rotor angular velocity tracking jitter difference term play the same role; reducing γ z value, the weight of the rotor angular velocity tracking error term in the objective function value Q3 becomes larger, and the system performance is more inclined to the stability of speed control; increasing γ z value, the weight of the tracking delay time term in the objective function value Q3 becomes larger, and the system performance is more inclined to the rapidity of speed control.

[0212] The specific steps of optimizing the parameters of the sliding mode speed controller and the load torque observer in Example 2 of the high-voltage circuit breaker motor drive control system using the particle swarm algorithm are:

[0213] Step 301, initialize the particle swarm. Assume that the initial position of the particles in the particle swarm is Where M is the number of particles in the particle swarm, which is generally selected between 20 and 150, and the initial position is required to obey random distribution. For different optimization objects, there are:

[0214] (1) For the sliding mode speed controller and load torque observer in Embodiment 1 of the high-voltage circuit breaker motor drive control system Embodiment 2, when the feedback gain is automatically adjusted using the feedback gain automatic adjustment method Embodiment 2, the parameter vector to be optimized is θ z1 =[c y , μ1, μ2, μ3, μ4, G max , G min , ε1, ε2, α], at this time the algorithm’s search space dimension N is equal to 10.

[0215] (2) For the sliding mode speed controller and load torque observer in Embodiment 2 of the high-voltage circuit breaker motor drive control system, when the feedback gain is automatically adjusted using the feedback gain automatic adjustment method in Embodiment 2, the parameter vector to be optimized is θ z2 =[c y , μ1, μ2, μ3, μ4, G max , G min , ε1, ε2, β], at this time the algorithm’s search space dimension N is equal to 10.

[0216] In each embodiment of step 301, the optimal position of the particle finally constructed is the optimal parameter, gmax , g min according to Calculate respectively; sliding mode gain k g According to the parameter α, it is calculated according to formula (21); the proportional gain k W It is calculated according to formula (22) based on parameter β.

[0217] In each embodiment of step 301, the initial position of the i-th particle is expressed as Corresponding to the parameter vectors to be optimized; the position value interval is [z imin z imax ], the range interval can be given based on existing knowledge or experience, for example, parameter c y The value interval [z 1min z 1max ] is [0 10]; the value range of parameter μ1 is [z 2min z 2max ] is

[05000] ; the value range of parameter μ2 is [z 3min z 3max ] is [0 5000]; the value range of parameter μ3 is [z 4min z 4max ] is [1.051.3]; the value range of parameter μ4 is [z 5min z 5max ] is [0.5 / ω Δ 2 1.5 / ω Δ 2 ],ω Δ is the rotor angular velocity steady-state jitter limit; parameter G max The value interval [z 6min z 6max ] is [-4 4]; parameter G min The value interval [z 7min z 7max ] is [-4 4]; the value range of parameters ε1 and ε2 is [z 8min z 8max ]、[z 9min z 9max ] are [0 0.05T N ], T N is the rated torque of the motor; the value range of parameter α is [z 10min z 10max ] is [1 5], or the value interval of parameter β is [z 10min z 10max ] is [1 20].

[0218] Step 302, initializing the particle velocity and the optimal solution of the particle swarm; setting the initial position z of each particle(0) As the initial optimal value z of each particle b (0) , calculate the fitness function value (i.e., particle fitness value) of each particle according to formula (40) and save it as the optimal particle fitness value of each particle; compare the fitness values ​​of each particle to obtain the optimal solution z of the initial particle swarm g (0) And the optimal fitness value of the particle swarm is saved. Assume that the initial velocity of the particle is Also obeying the random distribution, the initial velocity of the i-th particle is expressed as The speed change extreme value of the parameter [u imin u imax ] is generally set to 5% to 20% of the parameter value range; for example, parameter G max The value interval [z 1min z 1max ] is [-44], the interval range is 8, then the first dimension variable of each particle (parameter G max )'s speed change extreme value [u 1min u 1max ]According to 5%, the value is [-0.4 0.4], and according to 20%, the value is [-1.6 1.6].

[0219] Step 303, according to formula

[0220]

[0221] Update the speed and position of each particle; the speed change of each dimensional variable cannot exceed the corresponding speed change extreme value of each dimensional variable, and the updated position of each dimensional variable cannot exceed the corresponding value interval of each dimensional variable. In formula (41), n ​​is the current number of iterations, u n and z n is the velocity vector and position of the particle; c0 is the inertia weight, ranging from 0 to 1.4. Adjusting its value can change the search range and search speed. Furthermore, adaptively reducing the c0 value as the number of iterations increases is conducive to achieving a balance between search capability and convergence speed; c1 and c2 are learning factors, ranging from 1 to 2, and it is recommended that both be equal to 2; is a random number ranging from 0 to 1; is the optimal solution (optimal position) found by the particle itself so far, It represents the optimal solution (optimal position) of the particle swarm of the entire population so far.

[0222] Step 304, calculate the particle fitness value of each particle according to formula (40).

[0223] Step 305, And the corresponding optimal particle fitness value is updated. And the corresponding particle swarm optimal fitness value is updated.

[0224] Step 306, determine whether the loop termination condition is met, if yes, end the particle swarm algorithm, and the final particle swarm optimal solution is the optimal parameter of the optimized parameter vector, that is, the optimal parameters of the sliding mode speed controller and the load torque observer; otherwise, return to step 303.

[0225] The loop termination condition is generally to reach the maximum iteration step limit or the optimal particle fitness value is less than a certain threshold. When the particle swarm algorithm is used to adjust the parameters of the sliding mode speed controller and the load torque observer, the maximum iteration step limit is used as the loop termination condition, and the maximum iteration step is usually selected between 100 and 2000. When setting the threshold condition of the optimal fitness value of the particle swarm, the threshold condition needs to comprehensively consider the rapidity and stability of the speed control. For example, the rotor angular velocity steady-state jitter limit ω Δ is 1.5rad / s, the motor startup rise time T r is 0.1s, γ z When the value is 15, the threshold of the termination condition can be selected as 1.5.

[0226] When calculating the particle fitness value of each particle according to formula (40), it is required to convert each particle position into the corresponding sliding mode speed controller parameters and load torque observer parameters in turn to control the motor operation (or operation in the simulation system). * is a sine wave signal, load torque T L When the rotor angular velocity is stable and follows the state mutation, the speed response of the motor is obtained, and the rotor angular velocity tracking jitter error ω is determined based on the speed response. z and tracking delay time τ, and then calculate the particle fitness value according to formula (40).

[0227] Among the parameters to be optimized, g max , g min There is a constraint g between min <g max , corresponding to the constraint G min >G max In the above steps, when randomly generating particle positions or updating particle positions, first, particle z i The parameter z in i6 (i.e. G max ) According to the value interval [z 6min z 6max ] Randomly generate positions or update positions, then particle z i The parameter z i7 (i.e. G min) According to the value interval [z i6 z 7max ] Randomly generate positions or update positions so that particles z i Satisfy the constraint G min >G max , that is, satisfying the constraint g min <g max There is a constraint between ε1 and ε2. ε1<ε2. When randomly generating a new position of a particle or searching for a new position of a particle, first, particle z i The parameter z in i8 (i.e., ε1) according to the value interval [z 8min z 8max ] Randomly generate positions or update positions, then particle z i The parameter z i9 (i.e., ε2) according to the value interval [z i8 z 9max ] Randomly generate positions or update positions so that particles z i The constraint ε1<ε2 is satisfied.

[0228] In the periodic control process of the permanent magnet synchronous motor speed in the high-voltage circuit breaker motor drive control system embodiment 2, the load torque given value calculated at the kth time (or the kth step) is Recorded as Load torque observation value Recorded as The k-1 moment is the moment of the periodic control process before the k moment, and the load torque is given by Recorded as Load torque observation value Recorded as The k-2 moment is the moment of the periodic control process before the k-1 moment, and the load torque given value Recorded as Load torque observation value Recorded as according to Figure 4 When the feedback gain g is adjusted in (a), the periodic control process of the permanent magnet synchronous motor speed includes the following steps:

[0229] Step 1: Detect the rotor position θ, rotor angular velocity ω and three-phase current i of the permanent magnet synchronous motor a 、i b and i c ;

[0230] Step 2: Based on the three-phase current i a 、i b and i cClark transformation is performed on the permanent magnet synchronous motor to obtain the current i in the α-β axis coordinate system: α 、i β , according to the current i α 、i β Perform Park transformation on the rotor position θ to obtain the current i in the dq axis coordinate system d 、i q ;

[0231] Step 3: The feedback gain g of the load torque observer is based on the load torque given value. to adjust for changes in

[0232] Step 4: Load torque observer is based on rotor angular velocity ω and current i q Observe the load torque and obtain the load torque observation value

[0233] Step 5: The sliding mode speed controller is based on the input rotor given angular velocity ω * , rotor angular velocity ω and load torque observations Perform control calculation to obtain the load torque given value and q-axis torque current given value

[0234] Step 6: The d-axis current controller is based on the d-axis torque current given value i d * and the current i in the d-axis coordinate system d The difference between them is used for PI control operation to obtain the control voltage U in the d-axis coordinate system d ; The q-axis current controller is based on the q-axis torque current given value and the current i in the q-axis coordinate system q The difference between them is used for PI control operation to obtain the control voltage U in the q-axis coordinate system q ; Based on the control voltage U in the dq axis coordinate system d , U q Perform Park inverse transformation to obtain the control voltage U in the α-β axis coordinate system α , U β ;

[0235] Step 7: Set the control voltage U in the α-β axis coordinate system α , U β As the input of the SVPWM module, the SVPWM module controls the three-phase inverter to generate a three-phase AC power supply U a , U b , U c , thereby driving the permanent magnet synchronous motor to operate.

[0236] according to Figure 4 When the feedback gain g is adjusted in (b), in the steps of the above control process, the contents of steps 4 and 5 are performed first, and the contents of step 3 are performed later.

[0237] The output term of the sliding mode speed controller in formula (36) includes the compensation sub-item load torque observation value This is equivalent to the load torque observation value in equation (30) being fed forward to the given value of the current regulator. Without the need for a large adjustment of the given current output by the sliding mode speed controller, it can offset the related effects caused by load disturbances or changes in system parameters, effectively weakening the system's jitter. The feedback gain g is based on the change in the load torque given value ΔT L Δ The automatic adjustment algorithm avoids the problem that the load torque observer selects a fixed small feedback gain, which causes a large torque observation fluctuation, and selects a fixed large feedback gain, which causes a long convergence time. It can quickly reduce the observation error of the load torque when the control parameters, model parameters, etc. of the system change or the load is disturbed, resulting in a change in the given sub-item part of the load torque given value or / and a change in the load torque observation value, thereby improving the observation effect and the rapidity and accuracy of the motor speed control. The feedback gain g is automatically adjusted when the load torque given value changes. When the load torque observation value has not changed significantly, but the given sub-item part of the load torque given value changes due to the change of the rotor angular velocity given value or / and the change of the actual value of the rotor angular velocity, or the given sub-item part of the load torque given value changes due to the change of the system model parameters, which will cause the load torque observation value to have a large fluctuation, the feedback gain g is adjusted in advance. When the load torque observation value actually generates an observation error, the response speed of the observer is accelerated, the observation error of the load torque observation value is quickly reduced, and the rapidity and accuracy of the motor speed control are further improved.

[0238] The speed sliding mode controller adopts the integral sliding mode control method of the high-voltage circuit breaker motor drive control system embodiment 2, and its feedback gain is based on the load torque given value T L Δ The algorithm for automatically adjusting the change in the amount of the load torque is used in the embodiment 1 of the high-voltage circuit breaker motor drive control system. The feedback gain is based on the sum of the change in the load torque given value and the change in the load torque observation value for the last two times. The same algorithm is used for automatic adjustment, which avoids the problem that the load torque observer selects a fixed small feedback gain, which leads to large torque observation fluctuations, and selects a fixed large feedback gain, which leads to a long convergence time. It can be used when the control parameters, model parameters, etc. of the system change or the load is disturbed, resulting in the load torque given value T L ΔWhen the load torque changes (including the given item changes and / or the compensation item changes), the observation error of the load torque is quickly reduced, which improves the observation effect and the speed and accuracy of the motor speed control. The feedback gain g changes according to the load torque given value T L Δ Automatic adjustment can be performed at the load torque observation value If there is no significant change, but the given sub-item of the load torque given value changes due to the change of the rotor angular velocity given value or / and the actual value of the rotor angular velocity, or the given sub-item of the load torque given value changes due to the change of the system model parameters, which will cause the load torque observation value to fluctuate greatly, adjust the feedback gain g in advance. When the load torque observation value When an observation error actually occurs, speed up the observer's response speed and quickly reduce the load torque observation value. The observation error can be reduced and the speed and accuracy of motor speed control can be further improved.

[0239] In the above embodiments, the torque observation tracking overshoot limit is usually 1% to 10% of the rated torque of the motor. Specifically, the torque observation tracking overshoot limit is 2% of the rated torque, or 5% of the rated torque, or 10% of the rated torque, and so on. The load torque suddenly changes from one constant value to another constant value. The torque observation transition process is from the moment when the sudden change starts to the moment when the load torque observer outputs the observed value and stably enters the load torque observation steady-state jitter error limit range. The tracking adjustment time refers to the transition process time. The load torque observation steady-state jitter error refers to the error between the instantaneous value of the observed torque and the load torque when the load torque is unchanged and the load torque observer is in a steady state. The error includes the observation error caused by the sliding mode observer's own jitter and the observation error caused by interference reasons other than load fluctuations, or the observation error caused by the state observer due to the rotor angular velocity jitter and the observation error caused by interference reasons other than load fluctuations. The load torque observation steady-state jitter error limit is the maximum absolute value of the load torque observation steady-state jitter error allowed by the load torque observer. The load torque observation steady-state jitter error limit is usually the same as the maximum value of the load torque observation steady-state error allowed by the system. The load torque observation steady-state jitter error limit is usually 1% to 5% of the rated torque of the motor. Specifically, the load torque observation steady-state jitter error limit is 1% of the rated torque, or 2% of the rated torque, or 5% of the rated torque, and so on. Torque observation tracking overshoot refers to the load torque suddenly changing from one constant value to another constant value, and the observed value output by the load torque observer exceeds the maximum deviation value of the load torque after the sudden change. When the steady-state jitter error of the load torque observation is within the vicinity of the steady-state jitter error limit of the load torque observation, for example, within the range of 95% to 105%, or within the range of 98% to 102%, it is considered that the steady-state jitter error of the load torque observation increases to the steady-state jitter error limit of the load torque observation. The sliding mode speed controller is in steady state, which means that the sliding mode speed controller is stably in the sliding mode; the rotor angular velocity steady-state jitter error refers to the difference between the instantaneous value and the steady-state value of the motor rotor angular velocity in steady state, and the rotor angular velocity steady-state jitter error limit is the maximum absolute value of the rotor angular velocity steady-state jitter error allowed by the system. In the load torque observer, the sliding mode observer of Example 1 is in steady state, which means that the sliding mode observer is stably in sliding mode; the state observer of Example 2 is in steady state, which means that the state observer is in the working state after the torque observation transition process. The steady-state jitter error of the rotor angular velocity refers to the difference between the instantaneous value and the steady-state value of the motor rotor angular velocity in steady state. The steady-state jitter error limit of the rotor angular velocity is the maximum absolute value of the steady-state jitter error of the rotor angular velocity allowed by the system; the steady-state jitter error limit of the rotor angular velocity is usually the same as the maximum steady-state error of the rotor angular velocity allowed by the system.

[0240] In the present invention, the motor of the high-voltage circuit breaker motor drive control system is a permanent magnet synchronous motor, and the high-voltage circuit breaker motor drive control system is a permanent magnet synchronous motor speed control system. The permanent magnet synchronous motor speed control system and the permanent magnet synchronous motor speed control method including the permanent magnet synchronous motor load torque sliding mode observation method provided by the present invention can be used for driving control of high-voltage circuit breaker motors and other permanent magnet synchronous motor applications.

[0241] In addition to the technical features described in the specification, other technologies involved in the present invention are conventional technologies mastered by those skilled in the art. For example, the q-axis current controller and the d-axis current controller use PI controllers for control and controller parameter selection, the sliding mode speed controller control parameter selection, the position and speed detection module uses a rotary transformer or a photoelectric encoder to detect the rotation angle and rotation speed of the permanent magnet synchronous motor rotor, and the Clarke transformation module, Park transformation module, Park inverse transformation module and SVPWM module, three-phase inverter transformation method and application method, etc., are all conventional technologies mastered by those skilled in the art.

Claims

1. A sliding mode observation method for load torque of a permanent magnet synchronous motor, characterized in that: The load torque is observed according to the rotor angular velocity and the q-axis current to obtain the load torque observation value; The load torque observer is Among them, i q is the q-axis current, is the observed value of load torque, is the estimated value of the rotor angular velocity, g is the feedback gain of the load torque observer and g<0; ω is the rotor angular velocity, k g is the sliding mode gain of the load torque observer and k g ≤-|e2 / J|, is the load torque observation error, T L is the load torque; The load torque observation value output by the load torque observer is sent to the sliding mode speed controller, which adopts an integral sliding mode control method to compensate the load torque in a way that the load torque given value includes the load torque observation value item; the load torque observer adjusts the feedback gain according to the change of the load torque given value, and the load torque given value is output by the sliding mode speed controller; The load torque observer parameters and sliding mode speed controller parameters are optimized and adjusted uniformly using the particle swarm algorithm; The load torque observer is based on the load torque given value The method to adjust the feedback gain g is: Step 1: Calculation Step 2: Judgement Is it greater than ε2? When it is greater than ε2, the feedback gain g is equal to g min And proceed to step ㈤; when ΔT is less than or equal to ε2, proceed to step ㈢; Step 3: Judgment Is it less than ε1? When it is less than ε1, the feedback gain g is equal to g max And go to step 5; when When it is greater than or equal to ε1, go to step 4; Step 4: Feedback gain g is calculated according to After the calculation, proceed to step 5; Step 5: Load torque observer measures load torque T L Observe and obtain the load torque observation value The sliding mode speed controller performs control calculation to obtain Among them, ε1 is the torque change lower limit comparison threshold, ε2 is the torque change upper limit comparison threshold, and 0<ε1<ε2; g max is the high value of feedback gain, g min is the low value of feedback gain, and g min <g max <0.

2. The method for sliding mode observation of load torque of a permanent magnet synchronous motor according to claim 1, characterized in that: The state variables of the sliding mode speed controller are Where ω is the rotor angular velocity, ω * is the given rotor angular velocity; the sliding surface of the sliding mode speed controller is s y =c y y1+y2,c y is the sliding surface parameter, and c y >0; sliding mode speed controller outputs load torque given value and q-axis torque current given value for Where J is the moment of inertia, p is the number of motor pole pairs, ψ f is the permanent magnet flux, B is the friction coefficient; coefficients μ1, μ2, μ3 and μ4 are the exponential approach rate coefficients of speed sliding mode control, and μ1>0, μ2>0, 1<μ3<2, μ4>0.

3. The method for sliding mode observation of load torque of a permanent magnet synchronous motor according to claim 2, characterized in that: The load torque observer parameters and sliding mode speed controller parameters are optimized and adjusted uniformly using the particle swarm algorithm. The parameter vector to be optimized is θ z1 =[c y , μ1, μ2, μ3, μ4, G max , G min , ε1, ε2, α]; g max With G max The relationship is g min With G min The relationship is k g The relationship with α is Among them, α≥1.

4. The method for sliding mode observation of load torque of a permanent magnet synchronous motor according to any one of claims 1 to 3, characterized in that: Detect the rotor position θ and three-phase current i of the permanent magnet synchronous motor a 、i b and i c ; Based on the three-phase current i a 、i b and i c Clark transformation is performed on the permanent magnet synchronous motor to obtain the current i in the α-β axis coordinate system: α 、Current i β , according to the current i α 、Current i β Perform Park transformation on the rotor position θ to obtain the current i in the dq axis coordinate system d 、Current i q .

Citation Information

Patent Citations

  • Permanent-magnet synchronous motor torque control system and method based on a sliding-mode observer and auto-disturbance rejection control

    CN107359837A

  • Direct speed prediction control method and equipment for permanent magnet synchronous motor

    CN110492817A