A method for measuring parameters of permanent magnet synchronous motor

By introducing the inverter nonlinear voltage error into the disturbance observer, combined with the d and q-axis current state equations and disturbance models, the problem of control performance degradation caused by motor parameter changes in the traditional method is solved, and efficient and accurate resistance and Inductance parameter measurement optimizes the permanent magnet motor drive system.

CN115037208BActive Publication Date: 2024-09-03HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210748516.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2024-09-03
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

Traditional permanent magnet synchronous motor control strategies suffer from degradation in control performance due to changes in motor parameters under complex operating conditions. Existing parameter identification methods require large amounts of calculations and insufficient convergence speed, and the measurement accuracy of the nonlinear effects of the inverter is not high, making it difficult to optimize. Motor drive system.

Method used

The d and q-axis voltage errors caused by the nonlinearity of the inverter are introduced into the disturbance observer to reduce parameter identification errors and improve the efficiency of the motor control system. An initial disturbance observer is established through the d and q-axis current state equations and the disturbance model to obtain the resistance. and inductance parameter measurements, and achieve accurate measurement through cross-updating.

Benefits of technology

It improves the accuracy of motor parameter identification, reduces the burden on the observer, enhances the stability and efficiency of the motor control system, achieves high-precision measurement of resistance and inductance parameters, and optimizes the permanent magnet motor drive system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115037208B
    Figure CN115037208B
Patent Text Reader

Abstract

The invention relates to the technical field of motor parameter measurement, and in particular to a permanent magnet synchronous motor parameter measurement method. The method specifically comprises the following steps: establishing d-axis and q-axis current state equations with current as state variables, modeling unknown disturbances of the d-axis and q-axis to obtain d-axis and q-axis concentrated disturbance models, and respectively establishing initial disturbance observers corresponding to the d-axis and q-axis; inputting a DC voltage error into a disturbance observer as a known disturbance, obtaining unknown disturbances of the d-axis and q-axis, and obtaining resistance parameter measurement values ​​and inductance parameter measurement values; executing steps S1-S3 according to different cycles to respectively measure motor parameters, and outputting resistance parameter measurement values ​​and inductance parameter measurement values; improving a traditional disturbance observer, adding a DC voltage error into the disturbance observer, improving the identification accuracy of electrical parameters and reducing the burden of the observer, being conducive to improving the measurement accuracy of resistance and inductance parameters, and being able to optimize a permanent magnet motor drive system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of motor parameter measurement, and in particular to a method for measuring parameters of a permanent magnet synchronous motor. Background Art

[0002] Permanent magnet synchronous motors have the advantages of high torque density, high efficiency, and good speed regulation performance. They are widely used in CNC machine tools, electric traction drives, aerospace, national defense and military industries, etc., which have high requirements for performance and efficiency. The typical permanent magnet synchronous motor control system topology consists of an outer speed loop and an inner current loop. The speed loop calculates the current command of the inner current loop based on the speed command and speed feedback value. Therefore, the speed loop control performance directly determines the speed regulation performance of the motor.

[0003] It should be noted that the traditional permanent magnet synchronous motor control strategy relies on the precise mathematical model of the motor. Therefore, when the parameters of the motor change, its control performance will be significantly reduced. In fact, under complex operating conditions, the permanent magnet motor drive system cannot avoid the problem of parameter changes. In practical applications, the stator resistance of the motor will change with temperature. When the temperature rises, the resistance increases; and the inductance changes with the degree of magnetic circuit saturation. When the stator current increases, the degree of magnetic circuit saturation increases, and the inductance decreases. The changes in these electrical parameters during operation will lead to the degradation of controller performance, which in turn affects the stability of the motor during operation; the common parameter identification methods in the existing calculation methods include the least squares method, the model reference adaptive method, the extended Kalman filter method, the affine projection method, etc. These methods generally have problems such as large amount of calculation and insufficient convergence speed; and due to the nonlinear problem of the inverter, the system will significantly affect the measurement accuracy of the above electrical parameters, which is not conducive to the optimization of the permanent magnet motor drive system. Summary of the invention

[0004] The present invention provides a permanent magnet synchronous motor parameter measurement method to solve the defects of the above-mentioned prior art. After introducing the d-axis and q-axis voltage errors introduced by the nonlinearity of the inverter into the disturbance observer, not only the error of parameter identification is reduced, but also the burden of the observer is reduced, and the requirements for other parameters of the observer are reduced, which is helpful to reduce the pulsation of parameter identification and improve the working efficiency of the motor control system.

[0005] The present invention provides a method for measuring parameters of a permanent magnet synchronous motor, comprising the steps of:

[0006] S1 establishes the d and q axis current state equations with current as the state variable;

[0007] S2 models the unknown disturbances of the d and q axes based on the d and q axis current state equations to obtain the d and q axis concentrated disturbance models, and establishes the initial disturbance observers corresponding to the d and q axes respectively;

[0008] S3 inputs the DC voltage error generated by the nonlinearity of the inverter as a known disturbance into the initial disturbance observer, obtains the unknown disturbance of the d-axis and the unknown disturbance of the q-axis, and obtains the measured value of the resistance parameter and the measured value of the inductance parameter;

[0009] S4 executes steps S1-S3 in different cycles to measure the motor parameters respectively, and outputs the resistance parameter measurement value and the inductance parameter measurement value;

[0010] The measurement period of the resistance parameter is greater than the measurement period of the inductance parameter.

[0011] Further, according to a permanent magnet synchronous motor parameter measurement method provided by the present invention, the d-axis and q-axis current state equations are:

[0012]

[0013] Among them, i d is the d-axis current in the synchronous coordinate system, i q is the q-axis current in the synchronous coordinate system, u d is the d-axis voltage in the synchronous coordinate system, u q is the q-axis voltage in the synchronous coordinate system; R s is the stator resistance, L s is the stator inductance, ψ f is the permanent magnet flux, ω e is the rotor speed.

[0014] Further, according to a permanent magnet synchronous motor parameter measurement method provided by the present invention, in step S2, the unknown disturbance of the d-axis is an unknown term including the motor inductance parameter, and the unknown disturbance of the q-axis is an unknown term including the resistance parameter.

[0015] Further, according to a method for measuring parameters of a permanent magnet synchronous motor provided by the present invention, in step S3, the DC voltage error generated by the nonlinearity of the inverter is:

[0016]

[0017]

[0018] Among them, U e is the magnitude of the inverter output voltage error, U dc is the bus voltage;

[0019] T d is the dead time, T on is the switch turn-on delay, T off is the switch turn-off delay, T s is the switching cycle; V sat is the saturation voltage drop of the switch tube, Vdio is the conduction voltage drop of the anti-parallel body diode; is the angle between the stator current vector and the q axis, When the motor is running in steady state Remain unchanged; k is a positive integer representing the harmonic order.

[0020] Further, according to a method for measuring parameters of a permanent magnet synchronous motor provided by the present invention, the DC voltage error Δu generated by the nonlinearity of the inverter d and Δu q Including DC component and harmonic component, after the DC component is input into the initial disturbance observer, a new disturbance observer is obtained:

[0021] R s As the unknown quantity, obtain the q-axis disturbance observer:

[0022]

[0023] in, is the observed value of q-axis current;

[0024] is the observed value containing the resistance estimate;

[0025] is the known disturbance of the system;

[0026] e′=z′1-i q , is the observation error of q-axis current;

[0027]

[0028] β1 and β2 are observer parameters.

[0029] Further, according to a method for measuring parameters of a permanent magnet synchronous motor provided by the present invention, the DC voltage error Δu generated by the nonlinearity of the inverter d and Δu q Including DC component and harmonic component, after the DC component is input into the initial disturbance observer, a new disturbance observer is obtained:

[0030] For the d-axis, L s For the unknown quantity, obtain the d-axis disturbance observer:

[0031]

[0032] in, is the observed value of d-axis current;

[0033] is the observed value containing the resistance estimate;

[0034] is the known disturbance of the system;

[0035] e′=z′1-i q , represents the observation error of d-axis current;

[0036]

[0037] β1 and β2 are observer parameters.

[0038] Further, according to a permanent magnet synchronous motor parameter measurement method provided by the present invention, according to the q-axis disturbance observer, the resistance measurement result is obtained as follows:

[0039]

[0040] According to the d-axis disturbance observer, the inductance measurement result is obtained as:

[0041]

[0042] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned permanent magnet synchronous motor parameter measurement methods are implemented.

[0043] The present invention provides a method for measuring parameters of a permanent magnet synchronous motor. The method models the problem of inaccurate electrical parameters, takes the unknown items including the motor inductance and resistance parameters as unknown disturbances, improves the traditional disturbance observer, and adds the DC voltage error caused by the nonlinearity of the inverter as a known disturbance to the disturbance observer, which not only improves the identification accuracy of the electrical parameters but also reduces the burden of the observer. Finally, the observed value of the unknown disturbance is used to obtain the resistance and inductance identification results. Since the resistance and inductance identification results are cross-coupled, the corresponding resistance and inductance measurement values ​​cannot be directly solved. By time-division multiplexing and cross-updating the identification result equations, the resistance and inductance parameters can be measured, which is conducive to improving the measurement accuracy of the resistance and inductance parameters, and can achieve the optimization of the permanent magnet motor drive system. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0045] Figure 1 is a structural block diagram of a permanent magnet motor vector control system provided by an embodiment of the present invention;

[0046] Figure 2 It is a flow chart of a method for measuring parameters of a permanent magnet synchronous motor provided by the present invention;

[0047] Figure 3 This is one of the schematic diagrams for measuring resistance and inductance provided by the present invention;

[0048] Figure 4 This is the second schematic diagram of resistance and inductance measurement provided by the present invention. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] like Figure 1 The figure shows a block diagram of a permanent magnet motor vector control system, where PI stands for proportional integral regulator, SVPWM stands for voltage space vector pulse width modulation, and PMSM stands for permanent magnet motor;

[0051] In one embodiment, Figure 2 As shown, the present invention provides a method for measuring parameters of a permanent magnet synchronous motor, comprising the steps of:

[0052] S1 establishes the d and q axis current state equations with current as the state variable;

[0053] S2 models the unknown disturbances of the d and q axes based on the d and q axis current state equations to obtain the d and q axis concentrated disturbance models, and establishes the initial disturbance observers corresponding to the d and q axes respectively;

[0054] S3 inputs the DC voltage error generated by the nonlinearity of the inverter as a known disturbance into the disturbance observer, obtains the unknown disturbance of the d-axis and the unknown disturbance of the q-axis, and obtains the measured value of the resistance parameter and the measured value of the inductance parameter;

[0055] S4 executes steps S1-S3 in different cycles to measure the motor parameters respectively, and outputs the resistance parameter measurement value and the inductance parameter measurement value;

[0056] The measurement period of the resistance parameter is greater than the measurement period of the inductance parameter.

[0057] Further, according to a permanent magnet synchronous motor parameter measurement method provided by the present invention, the d-axis and q-axis current state equations with current as the state variable are established as follows:

[0058]

[0059] Among them, i d is the d-axis current in the synchronous coordinate system, i q is the q-axis current in the synchronous coordinate system, u d is the d-axis voltage in the synchronous coordinate system, u q is the q-axis voltage in the synchronous coordinate system; R s is the stator resistance, L s is the stator inductance, ψ f is the permanent magnet flux, ω e is the rotor speed.

[0060] Further, according to a permanent magnet synchronous motor parameter measurement method provided by the present invention, in step S2, the unknown disturbance of the d-axis is an unknown term including the motor inductance parameter, and the unknown disturbance of the q-axis is an unknown term including the resistance parameter;

[0061] Further, based on the above-mentioned d-axis and q-axis current state equations, the initial disturbance observer is established to observe the unknown disturbances of the d-axis and q-axis;

[0062] Among them, the q-axis voltage equation is based on R s Establish a concentrated disturbance term for the unknown quantity and obtain the initial disturbance observer corresponding to the q-axis:

[0063]

[0064] in, is the observed value of q-axis current;

[0065] is the observed value containing the resistance estimate;

[0066] is the known disturbance of the system;

[0067] e=z1-i q , is the observation error of q-axis current;

[0068] β1 and β2 are observer parameters;

[0069] After the observer enters the steady state, the error converges to 0, and the preliminary resistance identification result is obtained:

[0070]

[0071] Furthermore, the d-axis voltage equation is expressed as s Establish a concentrated disturbance term for the unknown quantity and obtain the initial disturbance observer corresponding to the d-axis:

[0072]

[0073] in, is the observed value of d-axis current;

[0074] is the observed value containing the estimated term of the inductance term;

[0075] is a known disturbance;

[0076] e=z1-i d , is the observation error of d-axis current;

[0077] β1 and β2 are observer parameters;

[0078] After the observer enters the steady state, the error converges to 0, and the preliminary inductance identification result is obtained as follows:

[0079]

[0080] It should be noted that the preliminary identification results of resistance and inductance obtained above do not take into account the influence of the nonlinear characteristics of the inverter. The resistance and inductance parameters measured based on the above identification results have low accuracy. Therefore, it is necessary to improve the above traditional initial disturbance observer and introduce the d and q axis voltage errors caused by the nonlinearity of the inverter on the basis of the above initial disturbance observer. Specifically:

[0081] Among them, in step S3, the DC voltage error caused by the nonlinearity of the inverter is:

[0082]

[0083]

[0084] Among them, U e is the magnitude of the inverter output voltage error, U dc is the bus voltage;

[0085] T d is the dead time, T on is the switch turn-on delay, T off is the switch turn-off delay, T s is the switching cycle; V sat is the saturation voltage drop of the switch tube, V dio is the conduction voltage drop of the anti-parallel body diode; is the angle between the stator current vector and the q axis, When the motor is running in steady state Remain unchanged; k is a positive integer representing the harmonic order.

[0086] It should be noted that, from the above formula, the d and q axis voltage errors Δu d , Δu qIt contains DC components and harmonic components, among which the harmonic components will cause the identification results to have six-fold frequency pulsation, while the DC components will cause errors in the identification results. Since the traditional disturbance observer itself can be equivalent to a second-order low-pass filter, reducing the bandwidth or adding an additional low-pass filter can effectively suppress the pulsation of the identification results, so the DC component needs to be considered.

[0087] Therefore, further, according to a permanent magnet synchronous motor parameter measurement method provided by the present invention, the d and q axis voltage errors Δu introduced by the inverter nonlinearity are d , Δu q The DC component of is introduced into the initial disturbance observer to obtain a new disturbance observer:

[0088] R s As the unknown quantity, obtain the q-axis disturbance observer:

[0089]

[0090] in, is the observed value of q-axis current;

[0091] is the observed value containing the resistance estimate;

[0092] is the known disturbance of the system;

[0093] e′=z′1-i q , is the observation error of q-axis current;

[0094]

[0095] β1 and β2 are observer parameters.

[0096] Further, according to a method for measuring parameters of a permanent magnet synchronous motor provided by the present invention, the DC voltage error Δu generated by the nonlinearity of the inverter d and Δu q Including DC component and harmonic component, after the DC component is input into the disturbance observer, a new disturbance observer is obtained:

[0097] For the d-axis, L s For the unknown quantity, obtain the d-axis disturbance observer:

[0098]

[0099] in, is the observed value of d-axis current;

[0100] is the observed value containing the resistance estimate;

[0101] is the known disturbance of the system;

[0102] e′=z′1-i q , represents the observation error of d-axis current;

[0103]

[0104] β1 and β2 are observer parameters.

[0105] Further, according to a permanent magnet synchronous motor parameter measurement method provided by the present invention, after the observer enters a steady state, the error e converges to zero, and according to the q-axis disturbance observer, the resistance measurement result is obtained as follows:

[0106]

[0107] After the observer enters the steady state, the error e converges to zero. According to the d-axis disturbance observer, the inductance measurement result is obtained as:

[0108]

[0109] It can be seen that by introducing the d and q axis voltage errors introduced by the inverter nonlinearity into the disturbance observer, not only the error of parameter identification is reduced, but also the burden of the observer is reduced, so that the observer parameters can be obtained lower, which helps to reduce the pulsation of parameter identification. However, the identification results of resistance and inductance are interdependent, so it is necessary to introduce an alternating identification method.

[0110] Further, in step S4, if Figure 3 As shown, steps S1-S3 are executed in different cycles to measure the motor parameters respectively, that is, according to the resistance measurement results and inductance measurement results obtained above, the resistance parameter measurement value and the inductance parameter measurement value are further output;

[0111] The measurement period of the resistance parameter is greater than the measurement period of the inductance parameter.

[0112] Optionally, during the parameter measurement process, in order to overcome the cross-dependence of the resistance and inductance measurement equations, two measurement modules with different time scales can be constructed to measure the "slow parameters" (i.e. resistance) and "fast parameters" (i.e. inductance), respectively. During the measurement of one type of parameters, the other type of parameters is regarded as a constant, and the results of the two are updated alternately to ensure the convergence of the measurement results.

[0113] Considering the difference in dynamic characteristics between resistors and inductors, the execution cycle of the inductor measurement link should be much smaller than that of the resistor measurement link. Therefore, the inductor measurement cycle is kept consistent with the execution cycle of the controller interrupt service function, while the resistor measurement cycle is ten times the interrupt cycle, that is:

[0114]

[0115] Among them, T s , T1, and T2 are respectively the execution cycle of the interrupt service function, the execution cycle of the inductance measurement link, and the execution cycle of the resistance measurement link; this is only used as an example of the embodiment of the present invention and should not be regarded as a further limitation of the present invention. The specific value of the resistance measurement cycle can be set by the tester or the scientific researcher according to the actual operation situation, rather than a fixed value;

[0116] During the inductance measurement phase, the resistance is considered a known quantity. The difference between the given voltage and the actual voltage is ignored. Similarly, during the resistance measurement phase, the inductance is considered a known quantity. The difference between the given voltage and the actual voltage is ignored.

[0117] In a specific embodiment, Figure 4 As shown, the effectiveness of the method proposed in the motor parameter measurement method of the present invention is verified through experiments.

[0118] Specifically, the motor runs at a speed of 300 rpm, and the resistance and inductance of the motor are preset to be 1.65Ω and 7.7 mH respectively; the execution cycle of the inductance measurement module is consistent with the interrupt cycle, and the execution cycle of the resistance measurement module is 10 times the interrupt cycle;

[0119] Figure 4 The figure shows the experimental results when the motor is running at 300 rpm. The measured values ​​of resistance and inductance are the same as the actual values ​​of resistance and inductance preset in the experiment;

[0120] The resistance measurement result measured within 0.25s converges to the preset actual value of 1.65Ω, and the inductance measurement result measured within 1.17s converges to the preset actual value of 7.7mH. Figure 4 It can be seen that at this speed, the proposed method can still show high identification accuracy and has a fast measurement speed. It can obtain converged and determined measurement values ​​in a short time and has high measurement efficiency.

[0121] Optionally, the resistance and inductance measurement results are filtered through a low-pass filter, and the cut-off frequencies are selected as 2 Hz and 20 Hz respectively.

[0122] The present invention also provides a motor, and the control system used by the motor measures the resistance and inductance parameters of the motor during operation based on the motor parameter measurement method provided by the present invention, which is beneficial to improving the measurement accuracy of the corresponding parameters, thereby improving the control accuracy of the motor and the stability of operation.

[0123] In addition, the above method can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0124] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the computer can execute the permanent magnet synchronous motor parameter measurement method provided by the above methods, comprising the steps of:

[0125] S1 establishes the d and q axis current state equations with current as the state variable;

[0126] S2 models the unknown disturbances of the d and q axes based on the d and q axis current state equations to obtain the d and q axis concentrated disturbance models, and establishes the initial disturbance observers corresponding to the d and q axes respectively;

[0127] S3 inputs the DC voltage error generated by the nonlinearity of the inverter as a known disturbance into the disturbance observer, obtains the unknown disturbance of the d-axis and the unknown disturbance of the q-axis, and obtains the measured value of the resistance parameter and the measured value of the inductance parameter;

[0128] S4 executes steps S1-S3 in different cycles to measure the motor parameters respectively, and outputs the resistance parameter measurement value and the inductance parameter measurement value;

[0129] The measurement period of the resistance parameter is greater than the measurement period of the inductance parameter.

[0130] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform a method for measuring parameters of a permanent magnet synchronous motor provided by the above methods, comprising the steps of:

[0131] S1 establishes the d and q axis current state equations with current as the state variable;

[0132] S2 models the unknown disturbances of the d and q axes based on the d and q axis current state equations to obtain the d and q axis concentrated disturbance models, and establishes the initial disturbance observers corresponding to the d and q axes respectively;

[0133] S3 inputs the DC voltage error generated by the nonlinearity of the inverter as a known disturbance into the disturbance observer, obtains the unknown disturbance of the d-axis and the unknown disturbance of the q-axis, and obtains the measured value of the resistance parameter and the measured value of the inductance parameter;

[0134] S4 executes steps S1-S3 in different cycles to measure the motor parameters respectively, and outputs the resistance parameter measurement value and the inductance parameter measurement value;

[0135] The measurement period of the resistance parameter is greater than the measurement period of the inductance parameter.

[0136] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for measuring parameters of a permanent magnet synchronous motor. It is characterized in that Includes steps: S1 establishes the d and q axis current state equations with current as the state variable; S2 models the unknown disturbances of the d and q axes based on the d and q axis current state equations to obtain the d and q axis concentrated disturbance models, and establishes the initial disturbance observers corresponding to the d and q axes respectively; S3 inputs the DC voltage error generated by the nonlinearity of the inverter as a known disturbance into the initial disturbance observer, obtains the unknown disturbance of the d-axis and the unknown disturbance of the q-axis, and obtains the measured value of the resistance parameter and the measured value of the inductance parameter; S4 executes steps S1-S3 in different cycles to measure the motor parameters respectively, and outputs the resistance parameter measurement value and the inductance parameter measurement value; The measurement period of the resistance parameter is greater than the measurement period of the inductance parameter.

2. A method for measuring parameters of a permanent magnet synchronous motor according to claim 1, It is characterized in that The d-axis and q-axis current state equations are: Among them, i d is the d-axis current in the synchronous coordinate system, i q is the q-axis current in the synchronous coordinate system, u d is the d-axis voltage in the synchronous coordinate system, u q is the q-axis voltage in the synchronous coordinate system; R s is the stator resistance, L s is the stator inductance, ψ f is the permanent magnet flux, ω e is the rotor speed.

3. A method for measuring parameters of a permanent magnet synchronous motor according to claim 2, It is characterized in that In S2, the unknown disturbance of the d-axis is an unknown term including the motor inductance parameter, and the unknown disturbance of the q-axis is an unknown term including the resistance parameter.

4. A method for measuring parameters of a permanent magnet synchronous motor according to claim 3, It is characterized in that In S3, the DC voltage error caused by the inverter nonlinearity is: Among them, U e is the magnitude of the inverter output voltage error, U dc is the bus voltage; T d is the dead time, T on is the switch turn-on delay, T off is the switch turn-off delay, T s is the switching cycle; V sat is the saturation voltage drop of the switch tube, V dio is the conduction voltage drop of the anti-parallel body diode; is the angle between the stator current vector and the q-axis, When the motor is running in steady state Remain unchanged; k is a positive integer representing the harmonic order.

5. A method for measuring parameters of a permanent magnet synchronous motor according to claim 4, It is characterized in that DC voltage error Δu caused by inverter nonlinearity d and Δu q Including DC component and harmonic component, after the DC component is input into the initial disturbance observer, a new disturbance observer is obtained: R s As the unknown quantity, obtain the q-axis disturbance observer: in, is the observed value of q-axis current; is the observed value containing the resistance estimate; is the known disturbance of the system; e′=z′ 1 -i q , is the observation error of q-axis current; β 1 With β 2 are observer parameters.

6. A method for measuring parameters of a permanent magnet synchronous motor according to claim 5, It is characterized in that DC voltage error Δu caused by inverter nonlinearity d and Δu q Including DC component and harmonic component, after the DC component is input into the initial disturbance observer, a new disturbance observer is obtained: For the d-axis, L s For the unknown quantity, obtain the d-axis disturbance observer: in, is the observed value of d-axis current; is the observed value containing the resistance estimate; is the known disturbance of the system; e′=z′ 1 -i q , represents the observation error of d-axis current; β 1 With β 2 are observer parameters.

7. A method for measuring parameters of a permanent magnet synchronous motor according to claim 6, It is characterized in that According to the q-axis disturbance observer, the resistance measurement result is obtained as: According to the d-axis disturbance observer, the inductance measurement result is obtained as:

8. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the permanent magnet synchronous motor parameter measurement method according to any one of claims 1 to 7 are implemented.