This application claims priority to Chinese Patent Application No. CN202310443919.7 filed on Apr. 23, 2023, which is incorporated by reference herein in its entirety.
The application relates to the field of motor parameter detection, and more specifically, to a method for detecting motor parameters, an apparatus for detecting motor parameters, a computer program product, and an air-conditioning compressor system.
The motor used in the inverter air conditioner industry is a permanent magnet synchronous motor (referred to as PMSM), and the control algorithm of the permanent magnet synchronous motor is generally a vector control algorithm, that is, a field-oriented control algorithm (referred to as FOC). The vector control algorithm can be composed of coordinate transformation, current sampling and reconstruction, position estimation, speed loop regulator, current loop regulator, and space vector modulation (SVPWM for short), for example.
The accuracy of PMSM parameters will directly determine the performance and stability of vector control. But in most PMSM-driven applications, the motor parameters are unknown and will change with age. The existing methods for detecting motor parameters need to rotate the rotor and use complex algorithms to detect parameters, which is inconvenient to operate.
According to a first aspect, a method for detecting motor parameters is provided. The method comprises: injecting a first direct current signal; receiving a first d-q axis feedback current corresponding to the first direct current signal and a first d-q axis voltage output by a current regulation module; injecting a second direct current signal different from the first direct current signal; receiving a second d-q axis feedback current corresponding to the second direct current signal and a second d-q axis voltage output by the current regulation module; and determining motor parameters based on the first d-q axis feedback current, the first d-q axis voltage, the second d-q axis feedback current and the second d-q axis voltage.
Optionally, the motor is a permanent magnet synchronous motor and the current regulation module is a PI controller.
Optionally, both the first direct current signal and the second direct current signal are positive currents on the d-axis.
Optionally, the motor parameters include a stator resistance Rs, wherein the stator resistance Rs is determined according to the following formula:
wherein Vdc1 is a d-axis voltage in the first d-q axis voltage, Vdc2 is a d-axis voltage in the second d-q axis voltage, idc1 is a d-axis feedback current value in the first d-q axis feedback current, and idc2 is a d-axis feedback current value in the second d-q axis feedback current, and idc1>idc2. Optionally, the motor parameters include permanent magnet flux linkage λm, wherein the permanent magnet flux linkage λm is determined according to the following formula:
wherein Vrated is a rated voltage of the permanent magnet synchronous motor, Irated is a rated current of the permanent magnet synchronous motor, and frated is a rated frequency of the permanent magnet synchronous motor.
Optionally, the above method also comprises: injecting a third signal, the third signal being a sinusoidal signal with a certain frequency and amplitude applied on the d-axis; receiving a third d-axis voltage output by the current regulation module, the third d-axis voltage being corresponding to the third signal; and determining a d-axis inductance Ld according to the third d-axis voltage.
Optionally, the third signal is represented by the following formula: ihd=id+ih1 sin (2*π*fh1*t), wherein ihd is the third signal, id is a DC offset on the d-axis, ih1 is an amplitude of the sinusoidal signal, and fh1 is a frequency of the sinusoidal signal.
Optionally, the d-axis inductance Ld is determined according to the following formula:
wherein Vhd is the third d-axis voltage.
Optionally, the above method also comprises: injecting a fourth signal, the fourth signal being a sinusoidal signal with a certain frequency and amplitude applied on the q-axis; receiving a fourth q-axis voltage output by the current regulation module, the fourth q-axis voltage being corresponding to the fourth signal; and determining a q-axis inductance Lq according to the fourth q-axis voltage, wherein the fourth signal is represented by the following formula: ihq=ih2 sin (2*π*fh2*t), wherein ihq is the fourth signal, ih2 is an amplitude of the sinusoidal signal, and fh2 is a frequency of the sinusoidal signal, wherein the q-axis inductance Lq is determined according to the following formula:
wherein Vhq is the fourth q-axis voltage.
An apparatus for detecting motor parameters is also disclosed. The apparatus comprises: a first receiving device for receiving a first d-q axis feedback current corresponding to an injected first direct current signal and a first d-q axis voltage output by a current regulation module; a second receiving device for receiving a second d-q axis feedback current corresponding to an injected second direct current signal and a second d-q axis voltage output by the current regulation module; and a determining device for determining the motor parameters based on the first d-q axis feedback current, the first d-q axis voltage, the second d-q axis feedback current and the second d-q axis voltage. The apparatus may be termed a motor parameter detection apparatus. The apparatus may be configured to detect motor parameters.
Optionally, the motor is a permanent magnet synchronous motor and the current regulation module is a PI controller, and both the first direct current signal and the second direct current signal are positive currents on the d-axis.
Optionally, the motor parameters include a stator resistance Rs, wherein the determining device is configured to determine the stator resistance Rs according to the following formula: Rs=Vdc1−Vdc2/idc1−idc2, wherein Vdc1 is a d-axis voltage in the first d-q axis voltage, Vdc2 is a d-axis voltage in the second d-q axis voltage, idc1 is a d-axis feedback current value in the first d-q axis feedback current, and idc2 is a d-axis feedback current value in the second d-q axis feedback current, and idc1>idc2.
Optionally, the motor parameters include permanent magnet flux linkage λm, wherein the determining device is configured to determine the permanent magnet flux linkage λm according to the following formula:
wherein Vrated is a rated voltage of the permanent magnet synchronous motor, Irated is a rated current of the permanent magnet synchronous motor, and frated is a rated frequency of the permanent magnet synchronous motor.
Optionally, the above apparatus further comprises: a third receiving device for receiving a third d-axis voltage output by the current regulation module, the third d-axis voltage being corresponding to the third signal which is a sinusoidal signal with a certain frequency and amplitude applied on the d-axis; and the determining device is also configured to determine a d-axis inductance La according to the third d-axis voltage.
Optionally, the third signal is represented by the following formula: ihd=id+ih1 sin (2*π*fh1*t), wherein ihd is the third signal, id is a DC offset on the d-axis, ih1 is an amplitude of the sinusoidal signal, and fh1 is a frequency of the sinusoidal signal, and wherein the determining device is further configured to determine the d-axis inductance Ld according to the following formula:
wherein Vhd is the third d-axis voltage.
Optionally, the above apparatus further comprises: a fourth receiving device for receiving a fourth q-axis voltage output by the current regulation module, the fourth q-axis voltage being corresponding to an injected fourth signal which is a sinusoidal signal with a certain frequency and amplitude applied on the q-axis; and the determining device is further configured to determine a q-axis inductance Lq according to the fourth q-axis voltage, wherein the fourth signal is represented by the following formula: Ihq=ih2 sin (2*π*fh2*t), wherein ihq is the fourth signal, ih2 is an amplitude of the sinusoidal signal, and fh2 is a frequency of the sinusoidal signal, wherein the q-axis inductance Lq is determined according to the following formula:
wherein Vhq is the fourth q-axis voltage.
A computer program product comprising a computer program is also disclosed, wherein the computer program is executed by a processor, the method described above, including any of the optional features, is implemented.
An air-conditioning compressor system is also disclosed. The system comprises a permanent magnet synchronous motor; and the apparatus described above for detecting motor parameters of the permanent magnet synchronous motor, wherein the apparatus may include any of the optional features.
The above and other objects and advantages of the method and apparatus will be more fully understood from the following detailed description in conjunction with the accompanying drawings, wherein the same or similar elements are denoted by the same reference numerals.
The invention is described more fully hereinafter with reference to the accompanying drawings, in which illustrative embodiments of the invention are shown. However, the invention may be embodied in different forms, and should not be construed as being limited to only the embodiments given herein. The above-mentioned embodiments are given to make the disclosure herein comprehensive and complete, so as to more fully convey the protection scope of the invention to those skilled in the art.
In this specification, terms such as “comprising” and “including” mean that in addition to the units and steps that are directly and explicitly stated in the specification and claims, the technical solution of the invention does not exclude the situation of other units and steps not directly or explicitly stated.
Terms such as “first” and “second” do not indicate the sequence of elements in terms of time, space, size, etc., but are only used to distinguish the elements unless otherwise specified.
According to some embodiments, the detection scheme of the motor parameters is implemented by receiving the first d-q axis feedback current corresponding to the injected first direct current signal and the first d-q axis voltage, the second d-q axis feedback current corresponding to the injected second direct current signal and the second d-q axis voltage and determining motor parameters based on the first d-q axis feedback current, the first d-q axis voltage, the second d-q axis feedback current and the second d-q axis voltage. By using two DC signals, the influence of the dead zone (time) of the inverter can be effectively avoided, thereby ensuring the accuracy of the motor parameters. This scheme uses the current closed-loop structure of vector control to avoid the risk of overcurrent, and does not require additional hardware equipment.
In addition, in some embodiments, both the first DC signal and the second DC signal are positive currents on the d-axis, which can effectively keep the rotor stationary (making the final measured motor parameters more accurate), and can avoid the risk of PMSM demagnetization.
Specific embodiments are further described below with reference to the accompanying drawings. It should be noted that, in order to describe the content related to the invention more clearly, some unnecessary features or circuit elements are not shown in the drawings. However, for those skilled in the art, this omission will not cause difficulty in implementing the technical solution described herein.
In the context of this application, the term “motor” may also be referred to as “electric motor”, which is a device that converts electrical energy into mechanical energy. It uses the energized coil (that is, the stator winding) to generate a rotating magnetic field and acts on the rotor to form a magneto-electric force rotation torque. In one or more embodiments, the motor may be a permanent magnet synchronous motor PMSM.
The term “motor parameters” is used to denote parameters related to vector control of the motor. In one embodiment, the motor parameters include: stator resistance, inductance, and permanent magnet flux linkage.
In step S110 and step S130, the first direct current signal and the second direct current signal are respectively injected. Here, both the first DC signal and the second DC signal are injected into the input side of the current closed-loop control structure of the motor. For example, see
In one or more embodiments, the “current regulation module” is a PI controller, also known as a proportional-integral controller. Of course, those skilled in the art can understand that the current regulation module can also be a PID controller.
Referring to
In the second time period (for example, the second time period is immediately after the first time period), a second DC signal different from the first DC signal (with different current vector values) is injected into the input terminals of the first mixer 312 and the second mixer 314. It should be noted that at this time idinj and iqinj represent the components of the second DC signal on the d-axis and q-axis, so the first PI controller 322 outputs the second d-axis voltage Vd, the second PI controller 324 outputs the second q-axis voltage Vq, the second coordinate system transformation module 370 outputs the second d-axis feedback current idfdb and the second q-axis feedback current iqfdb, and provides them to the first mixer 312 and the second mixer 314 respectively. That is to say, the second d-axis voltage Vd and the second q-axis voltage Vq correspond to the injected second direct current signal.
In one embodiment, both the first direct current signal and the second direct current signal are positive currents on the d-axis. That is to say, the component of the first DC signal and the second DC signal on the d-axis is positive DC, while the component on the q-axis is 0. This can effectively keep the rotor stationary (making the finally measured motor parameters more accurate), and can avoid the risk of demagnetization of the permanent magnet synchronous motor 360.
In step S150, motor parameters are determined based on the received first d-q axis feedback current, first d-q axis voltage, second d-q axis feedback current and second d-q axis voltage. In embodiments where both the first DC signal and the second DC signal are positive currents on the d-axis, the motor parameters may include stator resistance Rs, which may be determined, for example, according to the following equation:
wherein Vdc1 is a d-axis voltage in the first d-q axis voltage, Vdc2 is a d-axis voltage in the second d-q axis voltage, idc1 is a d-axis feedback current value in the first d-q axis feedback current, and idc2 is a d-axis feedback current value in the second d-q axis feedback current, and idc1>idc2.
After calculating the stator resistance Rs, in an embodiment, the permanent magnet flux linkage λm can be further calculated, wherein the permanent magnet flux linkage λm can be determined according to the following formula:
wherein Vrated is a rated (working) voltage of the permanent magnet synchronous motor, Irated is a rated current of the permanent magnet synchronous motor, and frated is a rated frequency of the permanent magnet synchronous motor. Here, the rated voltage, rated current and rated frequency of the permanent magnet synchronous motor are all known quantities, for example, can be obtained from the nameplate of the permanent magnet synchronous motor.
Although not shown in
In one embodiment, the third signal is represented by the following formula:
wherein ihd is the third signal, id is the DC bias on the d-axis (its magnitude is, for example, equal to the d-axis feedback current value idc2 in the second d-q axis feedback current), ih1 is an amplitude of the sinusoidal signal, and fh1 is a frequency of the sinusoidal signal. In one embodiment, the frequency is 400-600 Hz, and this value range is a good balance between the detection accuracy of the motor parameters and the detection requirements of the digital controller—on the one hand, the frequency is much higher than the mechanical frequency (need to be as high as possible to avoid rotor rotation); on the other hand, the frequency takes into account the detection needs of the digital controller (in order to effectively restore the sine wave, the frequency cannot be too high).
Same as the first DC signal and the second DC signal, the third signal is also injected into the input side of the current closed-loop control structure of the motor. Since the third signal is only applied on the d-axis, its component on the q-axis is 0. For example, the d-axis component idinj injected into the first mixer 312 is equal to ihd, while the iqinj injected into the input terminal of the second mixer 314 is 0.
Continuing to refer to
In this embodiment, the d-axis inductance La is determined according to the following formula:
wherein Vhd is the third d-axis voltage.
In one embodiment, the method 1000 further includes: injecting a fourth signal, the fourth signal is a sinusoidal signal with a certain frequency and amplitude applied on the q-axis; receiving the fourth q-axis voltage output by the current regulation module, which corresponds to the fourth signal; and determining the q-axis inductance Lq according to the fourth q-axis voltage.
In one embodiment, the fourth signal is represented by the following formula:
wherein ihq is the fourth signal, ih2 is an amplitude of the sinusoidal signal, and fh2 is a frequency of the sinusoidal signal. In one embodiment, the frequency is 400-600 Hz, and this value range is a good balance between the detection accuracy of the motor parameters and the detection requirements of the digital controller—on the one hand, the frequency is much higher than the mechanical frequency (the frequency needs to be as high as possible to avoid rotor rotation); on the other hand, the frequency takes into account the detection needs of the digital controller (in order to effectively restore the sine wave, the frequency cannot be too high).
Same as the first DC signal and the second DC signal, the fourth signal is also injected into the input side of the current closed-loop control structure of the motor. Since the fourth signal is only applied on the q-axis, its component on the d-axis is 0. For example, the d-axis component idinj injected into the first mixer 312 is equal to 0, while the iqinj injected into the input terminal of the second mixer 314 is ihq.
Continuing to refer to
In this embodiment, the q-axis inductance Lq is determined according to the following formula:
wherein Vhq is the fourth q-axis voltage.
In addition, those skilled in the art can easily understand that the method 1000 provided by the foregoing one or more embodiments can be implemented by a computer program. For example, the computer program is included in a computer program product, and when the computer program is executed by a processor, the motor parameter detection method 1000 of one or more embodiments is implemented. For another example, when the computer storage medium (such as a USB flash drive) storing the computer program is connected to the computer, running the computer program can execute the motor parameter detection method 1000 of one or more embodiments of the invention.
In one embodiment, the motor is a permanent magnet synchronous motor PMSM, the current regulation module is a PI controller, and both the first DC signal and the second DC signal are positive currents on the d-axis.
For example, continuing to refer to
In one embodiment, the motor parameters include stator resistance Rs. In this embodiment, the determining device 230 is configured to determine the stator resistance Rs according to the following equation:
wherein Vdc1 is a d-axis voltage in the first d-q axis voltage, Vdc2 is a d-axis voltage in the second d-q axis voltage, idc1 is a d-axis feedback current value in the first d-q axis feedback current, and idc2 is a d-axis feedback current value in the second d-q axis feedback current, and idc1>idc2.
In an embodiment, the motor parameters include the permanent magnet flux linkage λm and the determining device 230 is configured to determine the permanent magnet flux linkage λm according to the following formula:
wherein Vrated is a rated voltage of the permanent magnet synchronous motor, Irated is a rated current of the permanent magnet synchronous motor, and frated is a rated frequency of the permanent magnet synchronous motor.
Although not shown in
In one embodiment, the third signal is represented by the following formula:
wherein ihd is the third signal, id is the DC bias on the d-axis, in is an amplitude of the sinusoidal signal, and fh1 is a frequency of the sinusoidal signal.
In this way, the determining device 230 is configured to determine the d-axis inductance Ld according to the following formula:
wherein Vhd is the third d-axis voltage.
In one embodiment, the apparatus 2000 further includes: a fourth receiving device for receiving a fourth q-axis voltage output by the current regulation module, the fourth q-axis voltage being corresponding to an injected fourth signal which is a sinusoidal signal with a certain frequency and amplitude applied on the q-axis; and the determining device 230 is further configured to determine the q-axis inductance Lq according to the fourth q-axis voltage.
In one embodiment, the fourth signal is represented by the following formula:
wherein ihq is the fourth signal, ih2 is an amplitude of the sinusoidal signal, and fh2 is a frequency of the sinusoidal signal. In this way, the determining device 230 is configured to determine the q-axis inductance Lq according to the following formula:
wherein Vhq is the fourth q-axis voltage.
The above apparatus for detecting motor parameters 2000 can be applied to various motor systems, including but not limited to air conditioner compressor systems. In one embodiment, the air conditioner compressor system includes: a permanent magnet synchronous motor; and an apparatus for detecting motor parameters 2000, wherein the detection apparatus 2000 is used for detecting the motor parameters of the permanent magnet synchronous motor.
In the context of this invention, a number of motor parameter calculation formulas are provided. In one or more embodiments, these calculation formulas can be derived based on the d-q axis equivalent circuit model of the permanent magnet synchronous motor as shown in
The above examples mainly illustrate the technical solutions of one or more embodiments of the invention. Although only some of the embodiments of the invention have been described, those skilled in the art should understand that the invention can be implemented in many other forms without departing from the gist and scope thereof. Therefore, the shown examples and embodiments are to be regarded as illustrative rather than restrictive, and the invention may cover various modifications and substitutions without departing from the spirit and scope of the invention as defined in the claims.
Number | Date | Country | Kind |
---|---|---|---|
CN202310443919.7 | Apr 2023 | CN | national |