Permanent magnet synchronous motor resistance on-line identification method and system, medium and electronic equipment
By calculating the resistance heating work and the motor resistance heating rated power, we judge whether the current is injected, and obtain the voltage difference and calculate the resistance, we solve the complexity and accuracy of the motor resistance identification in the existing technology, and realize the efficient and accurate resistance. Identify.
Patent Information
- Application Number
- CN202411184664.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-03
AI Technical Summary
The existing online recognition method for permanent magnet synchronous motor resistance is complex in calculation, large in calculation, and the resistance value cannot be accurately identified, which affects the motor control accuracy and performance.
By calculating the resistance heating work and the motor resistance heating rated power, we judge whether the current is injected, and obtain the voltage difference. The ratio of the voltage difference to the current is used to calculate the resistance, simplify the resistance online identification process, reduce the calculation amount, and reduce the other parameters. interference.
The accuracy and simplification of online resistance recognition is achieved, the loss is reduced, and the interference of inductor and magnetic linkage is basically eliminated, and the accuracy of identification results is improved.
Smart Images

Figure CN119070683A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of circuit data processing, and in particular relates to a method, system, medium and electronic equipment for online identification of resistance of a permanent magnet synchronous motor. Background Art
[0002] The windings of permanent magnet synchronous motors are generally enclosed in the casing. Long-term high-power operation will cause the heat generated by the windings to be unable to dissipate, causing the winding temperature to become higher and higher. The winding resistance is closely related to the winding temperature.
[0003] Especially in high temperature environments, the resistance in the hot state will deviate several times compared to the resistance in the cold state. The size of the resistance will directly affect the motor control accuracy and even the motor performance. For example, the position sensorless algorithm is generally directly related to the size of the resistance.
[0004] The existing online identification methods for motor parameters mainly include model reference adaptation and least squares method. These methods are relatively complex to implement and require large amounts of calculation. At the same time, several parameters such as motor resistance, inductance and flux are interdependent and coupled, making it impossible to accurately identify the exact resistance value. Summary of the invention
[0005] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a method, system, medium and electronic equipment for online identification of resistance of a permanent magnet synchronous motor, so as to solve the problem of motor resistance calculation in the prior art.
[0006] In a first aspect, the present invention provides a method for online identification of resistance of a permanent magnet synchronous motor, the method comprising the following steps:
[0007] Calculate the work done by the resistance heating within the target time;
[0008] Determine whether to inject current based on the resistance heating work and the rated power of the motor resistance heating within the target time, wherein whether to inject is related to the target time, and the injected target current is linearly superimposed on the motor direct axis;
[0009] Acquire a voltage difference within the target time, wherein the voltage difference is a difference between a direct-axis voltage after the target current is injected and a direct-axis voltage before the target current is injected;
[0010] The permanent magnet synchronous motor resistance is calculated based on the voltage difference and the target current.
[0011] In a possible implementation of the present application, the calculation of the resistance heating work within the target time specifically includes:
[0012] The heating work done by the resistor within the target time is calculated based on a preset heating work calculation formula, and the heating calculation formula is as follows:
[0013]
[0014] Among them, w R_t The resistor heats up and does work, i A 、i B 、i C They are the current of each phase of the motor, R 0 is the resistance, Δt is the unit time, i is the control cycle, p R_i is the resistance heating power within the control cycle, wherein the target time t=nΔt, and n is the number of control cycles.
[0015] In a possible implementation of the present application, the step of determining whether to inject current based on the resistance heating work and the rated power of the motor resistance heating within the target time specifically includes:
[0016] The motor resistance heating rated power is calculated based on a preset rated power calculation formula, wherein the rated power calculation formula is as follows:
[0017] p R_rate =3I phase_rate 2 R rate ;
[0018] Among them, p R_rate is the rated power of the motor resistance heating, I phase_rate is the rated phase current of the motor, R rate is the motor phase resistance;
[0019] Based on the resistance heating work and the motor resistance heating rated power combined with the target time, it is determined whether the first conditional expression is satisfied. If satisfied, the target current is not injected, wherein the first conditional expression is as follows:
[0020]
[0021] Among them, w R_t The resistor heats up and does work, p R_rate t is the motor resistance heating power within the target time, K 1 is the first parameter factor, t is the target time, Δt is the unit time, n is the number of control cycles, and N is the preset number of cycles.
[0022] In a possible implementation of the present application, the determining whether to inject current based on the resistance heating work and the motor resistance heating rated power within the target time specifically includes:
[0023] Based on the resistance heating work and the motor resistance heating rated power combined with the target time, it is determined whether the second conditional expression is satisfied. If satisfied, the target current is injected, wherein the second conditional expression is as follows:
[0024]
[0025] Among them, w R_t The resistor heats up and does work, p R_rate t is the motor resistance heating power within the target time, K 1 is the first parameter factor, t is the target time, Δt is the unit time, n is the number of control cycles, and N is the preset number of cycles.
[0026] In a possible implementation of the present application, the determining whether to inject current based on the resistance heating work and the motor resistance heating rated power within the target time specifically includes:
[0027] Based on the resistance heating work and the rated power of the motor resistance heating, it is judged whether the third conditional expression is satisfied. If satisfied, the target current is injected, wherein the third conditional expression is as follows:
[0028] w R_t ≥K 2 p R_rate t,0<K 1 <<K 2 ≤1;
[0029] Among them, w R_t The resistor heats up and does work, p R_rate t is the motor resistance heating power within the target time, K 2 is the second parameter factor.
[0030] In a possible implementation of the present application, obtaining the voltage difference within the target time specifically includes:
[0031] The direct axis voltage is obtained based on the difference between the target current and the feedback current through the direct axis current loop, wherein the first direct axis voltage without injecting the target current is obtained. and obtaining a second direct axis voltage after injecting the target current
[0032] Based on the first direct-axis voltage The second direct axis voltage The absolute value of the difference is the voltage difference
[0033] In a possible implementation of the present application, the calculating the permanent magnet synchronous motor resistance based on the voltage difference and the target current specifically includes:
[0034] The resistance of the permanent magnet synchronous motor is obtained by calculating the ratio of the voltage difference to the target current based on the resistance calculation formula. The resistance calculation formula is as follows:
[0035]
[0036] Where R is the resistance of the permanent magnet synchronous motor, is the voltage difference, Δi dref is the target current.
[0037] In a second aspect, the present invention provides a permanent magnet synchronous motor resistance online identification system, the system comprising:
[0038] A work calculation module, used to calculate the work done by the resistor heating within the target time;
[0039] A judgment module, used for judging whether to inject current based on the resistance heating work and the rated power of the motor resistance heating within the target time, wherein whether to inject is related to the target time, and the injected target current is linearly superimposed on the direct axis of the motor;
[0040] An acquisition module, used for acquiring a voltage difference within the target time, wherein the voltage difference is a difference between a direct-axis voltage after the target current is injected and a direct-axis voltage before the target current is injected;
[0041] The resistance calculation module is used to calculate the resistance of the permanent magnet synchronous motor based on the voltage difference and the target current.
[0042] In a third aspect, the present invention provides an electronic device, the electronic device comprising: a processor and a memory;
[0043] The memory is used to store computer programs;
[0044] The processor is used to execute the computer program stored in the memory so that the electronic device executes the above-mentioned permanent magnet synchronous motor resistance online identification method.
[0045] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by an electronic device, implements the above-mentioned method for online identification of resistance of a permanent magnet synchronous motor.
[0046] As described above, the method, system, medium and electronic device for online identification of resistance of a permanent magnet synchronous motor described in the present invention have the following beneficial effects: it can take into account both no-load and load conditions, greatly reduce the loss caused by online identification of resistance, and the online identification of resistance is simple to implement, with less calculation, and can basically get rid of interference from other parameters such as inductance and magnetic flux, and the identification result is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 Shown is a schematic diagram of a scene of an electronic device in an embodiment of the present invention;
[0048] Figure 2 It is a schematic diagram showing the steps of an online identification method of the resistance of a permanent magnet synchronous motor according to an embodiment of the present invention;
[0049] Figure 3 Shown is a resistance identification principle diagram of a permanent magnet synchronous motor resistance online identification method in one embodiment of the present invention;
[0050] Figure 4 Shown is a resistance identification flow chart of a method for online identification of resistance of a permanent magnet synchronous motor according to an embodiment of the present invention;
[0051] Figure 5 It is a schematic diagram showing the steps of an online identification method of the resistance of a permanent magnet synchronous motor according to an embodiment of the present invention;
[0052] Figure 6 Shown is a schematic structural diagram of an online identification system for permanent magnet synchronous motor resistance in one embodiment of the present invention;
[0053] Figure 7 It is a schematic structural diagram of an electronic device of the present invention in one embodiment. DETAILED DESCRIPTION
[0054] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0055] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0056] The following embodiments of the present invention provide a method for online identification of resistance of a permanent magnet synchronous motor, which can be applied to Figure 1The electronic device shown. The electronic device described in the present invention may include a mobile phone 11 with a wireless charging function, a tablet computer 12, a laptop computer 13, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiment of the present invention does not impose any restrictions on the specific type of the electronic device.
[0057] For example, the electronic device may be a station (STAION, ST) in a WLAN with a wireless charging function, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with a wireless charging function, a computing device or other processing device, a computer, a laptop computer, a handheld communication device, a handheld computing device, and / or other devices for communicating on a wireless system and a next generation communication system, such as a mobile terminal in a 5G network, a mobile terminal in a future evolved Public Land Mobile Network (PLMN), or a mobile terminal in a future evolved Non-terrestrial Network (NTN).
[0058] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0059] Specifically, see Figure 2 In one embodiment of the invention, the method for online identification of resistance of a permanent magnet synchronous motor of the present invention comprises the following steps:
[0060] Step S202, calculating the heating work done by the resistor within the target time;
[0061] Step S204, judging whether to inject current based on the resistance heating work and the rated power of the motor resistance heating within the target time, wherein whether to inject current is related to the target time, and the injected target current is linearly superimposed on the motor direct axis;
[0062] Step S206, obtaining a voltage difference within the target time, wherein the voltage difference is a difference between a direct-axis voltage after the target current is injected and a direct-axis voltage before the target current is injected;
[0063] Step S208: calculating the permanent magnet synchronous motor resistance based on the voltage difference and the target current.
[0064] It should be noted that, in this embodiment, Figure 3 As shown, it is a schematic diagram of the online identification of the resistance of the permanent magnet synchronous motor, in which the main frame is the vector control of the speed loop and the current loop, and the dotted line part is the online identification part of the resistance, in which n ref and n fdb are speed command and feedback respectively, i dref and i qref are the direct-axis and quadrature-axis current instructions, i dfdb and i qfdb They are direct-axis and quadrature-axis current feedback, u A 、u B 、u C are the three-phase voltage of the motor, i A 、i B 、i C They are the three-phase current of the motor, u d and u q are the direct-axis and quadrature-axis current loop output voltage commands, u α and u β are the voltage commands sent to the SVPWM (voltage space vector pulse width modulation) module in the two-phase stationary coordinate system, θ is the angle used for vector control, Δi dref and Δu d are the target current and voltage injected on the direct axis, R 0 The initial value of the motor resistance or the resistance value obtained in the last identification. R is the permanent magnet synchronous motor resistance obtained after online resistance identification. R The motor resistance heats up and does work, p R_rate It is the rated power of motor resistance heating.
[0065] Specifically, the calculation of the heating work done by the resistor within the target time specifically includes: calculating the heating work done by the resistor within the target time based on a preset heating work calculation formula, and the heating calculation formula is as follows:
[0066]
[0067] Among them, w R_t The resistor heats up and does work, i A 、i B 、i C They are the current of each phase of the motor, R0 is the resistance, Δt is the unit time, i is the control cycle, p R_i is the resistance heating power within the control cycle, wherein the target time t=nΔt, and n is the number of control cycles.
[0068] It should be noted that, in this embodiment, the resistance heating work w within the target time t is first calculated. R_t , calculated by the preset heat work calculation formula, where reference Figure 3 It can be seen that the work calculation and parameter "i A 、i B 、i C ” and parameter “R 0 ” related, specifically calculating The resistance heating work w R_t After that, combined with the motor resistance rated power p R_rate Determine whether to inject current, wherein the additional injected voltage and current will increase the motor energy consumption and reduce the motor efficiency. When to accurately inject voltage and current becomes a difficulty, that is, how to perform online resistance identification with the least number of injected voltage and current times, which will be explained in the subsequent description of the present invention.
[0069] Further, in one embodiment of the invention, the determining whether to inject current based on the resistance heating work and the motor resistance heating rated power within the target time specifically includes:
[0070] The motor resistance heating rated power is calculated based on a preset rated power calculation formula, wherein the rated power calculation formula is as follows:
[0071] p R_rate =3I phase_rate 2 R rate ;
[0072] Among them, p R_rate is the rated power of the motor resistance heating, I phase_rate is the rated phase current of the motor, R rate is the motor phase resistance;
[0073] Based on the resistance heating work and the motor resistance heating rated power combined with the target time, it is determined whether the first conditional expression is satisfied. If satisfied, the target current is not injected, wherein the first conditional expression is as follows:
[0074]
[0075] Among them, w R_t The resistor heats up and does work, p R_rate t is the motor resistance heating power within the target time, K 1is the first parameter factor, t is the target time, Δt is the unit time, n is the number of control cycles, and N is the preset number of cycles.
[0076] It should be noted that in this embodiment, whether the injected current is related to the work and time is determined. First, the motor resistance heating power p within the target time t is calculated based on the rated power calculation formula. R_rate t, and then use the resistance to heat and do work w R_t The motor resistance heating power p within the target time t R_rate t, specifically, when the resistor heats up and does work w R_t The motor resistance heating power p within a target time t that is less than a certain multiple R_rate At t, no current is injected, and the corresponding multiple is the first parameter factor K 1 ; and comparison is performed based on the target time t, wherein no current is injected when the target time t is less than the preset time, specifically, when n<N or t<NΔt, no current is injected, Δt is the unit time, n is the number of control cycles, and N is the preset number of cycles.
[0077] Specifically, the injected target current Δi dref Generally, the current is on the direct axis and is negative. The current amplitude is recommended to be "20-30%" of the rated current. Too large will affect the stability of the system, and too small will not accurately identify the resistance. The target current Δi dref It needs to be linearly superimposed on the direct axis to avoid sudden application that affects the stability of the system.
[0078] Further, in one embodiment of the invention, the determining whether to inject current based on the resistance heating work and the motor resistance heating rated power within the target time specifically includes:
[0079] Based on the resistance heating work and the motor resistance heating rated power combined with the target time, it is determined whether the second conditional expression is satisfied. If satisfied, the target current is injected, wherein the second conditional expression is as follows:
[0080]
[0081] Among them, w R_t The resistor heats up and does work, p R_rate t is the motor resistance heating power within the target time, K 1 is the first parameter factor, t is the target time, Δt is the unit time, n is the number of control cycles, and N is the preset number of cycles.
[0082] It should be noted that the above embodiment describes the judgment case of not injecting current, while this embodiment specifically describes the judgment case of not injecting current even when the resistor is heating and doing work w R_t Less than the rated power p of the motor resistance heating within the target time tR_rate t, but when the target time t is greater than the preset time, the corresponding target current Δi needs to be injected dref Specifically, in the above embodiment, it is described that when the target time t is less than the preset time, and the resistance heats up and does work w R_t The motor resistance heating power p within a target time t that is less than a certain multiple R_rate At t, no current is injected, and the corresponding multiple is the first parameter factor K 1 ; In this embodiment, it is explained that even if the resistor heats up and does work w R_t Less than K 1 Multiple of the motor resistance heating power p within the target time t R_rate t, but the target time t is greater than the preset time, in this scenario, the target current Δi needs to be injected dref , where Δt is the unit time, n is the number of control cycles, and N is the preset number of cycles.
[0083] Further, in one embodiment of the invention, the determining whether to inject current based on the resistance heating work and the motor resistance heating rated power within the target time specifically includes:
[0084] Based on the resistance heating work and the rated power of the motor resistance heating, it is judged whether the third conditional expression is satisfied. If satisfied, the target current is injected, wherein the third conditional expression is as follows:
[0085] w R_t ≥K 2 p R_rate t,0<K 1 <<K 2 ≤1;
[0086] Among them, w R_t The resistor heats up and does work, p R_rate t is the motor resistance heating power within the target time, K 2 is the second parameter factor.
[0087] It should be noted that the above embodiment describes the work done by the resistor heating. R_t Less than K 1 Multiple of the motor resistance heating power p within the target time t R_rate t, emphasizing the judgment formula related to the target time. In this embodiment, it is specifically explained that when the resistor heats up and does work w R_t Greater than K 2 Multiple of the motor resistance heating power p within the target time t R_rate t, the target current Δi is injected dref , that is, w R_t ≥K 2 p R_ratet, inject the target current, where 0<K 1 <<K 2 ≤1.
[0088] Specifically, Figure 4 As shown, the above three embodiments specifically illustrate how to determine whether to inject current based on the resistance heating work and the motor resistance heating rated power within the target time, wherein there is resistance heating work w R_t Greater than or equal to K 1 Multiple of the motor resistance heating rated power p within the target time t R_rate t, and for this scenario, the corresponding target time t has already exceeded the preset time NΔt, so when applied, this embodiment is not described in detail. When t≥NΔt, the target current Δi dref , and the resistance heats up and does work w R_t Greater than or equal to K 1 Multiple of the motor resistance heating rated power p within the target time t R_rate Before t, the target time t has already exceeded NΔt.
[0089] Further, in one embodiment of the invention, if Figure 5 As shown, the step of obtaining the voltage difference within the target time specifically includes the following steps:
[0090] Step S502, obtaining a direct-axis voltage, which is specifically obtained based on a difference between a target current and a feedback current via a direct-axis current loop, wherein a first direct-axis voltage before the target current is injected is obtained, and a second direct-axis voltage after the target current is injected is obtained;
[0091] Step S504 , obtaining the voltage difference based on an absolute value of a difference between the first direct-axis voltage and the second direct-axis voltage.
[0092] It should be noted that in this embodiment, the direct axis voltage is first obtained, which is specifically obtained based on the difference between the target current and the feedback current through the direct axis current loop, wherein the first direct axis voltage without injecting the target current is obtained. and obtaining a second direct axis voltage after injecting the target current in, and are the average values within a period of time, so based on the first direct axis voltage The second direct axis voltage The absolute value of the difference is the voltage difference
[0093] Preferably, when calculating the direct axis voltage, it is also possible to Figure 3 The motor three-phase voltage u shownA 、u B 、u C The voltage is obtained by sampling through a sampling circuit. The specific steps are not described here. Since the accuracy and precision of voltage acquisition through a sampling circuit are higher, it can be selected as needed in actual application.
[0094] Further, in an embodiment of the invention, the calculation of the permanent magnet synchronous motor resistance based on the voltage difference and the target current specifically includes:
[0095] The resistance of the permanent magnet synchronous motor is obtained by calculating the ratio of the voltage difference to the target current based on the resistance calculation formula. The resistance calculation formula is as follows:
[0096]
[0097] Where R is the resistance of the permanent magnet synchronous motor, is the voltage difference, Δi dref is the target current.
[0098] It should be noted that before calculating the resistance R of the permanent magnet synchronous motor, refer to Figure 3 It can be seen that the identification operation stability judgment is performed first, and then based on the voltage difference and target current Δi dref The corresponding permanent magnet synchronous motor resistance R is calculated, and the theoretical calculation formula for the voltage of the motor direct axis and quadrature axis is as follows:
[0099]
[0100]
[0101] Among them, R s is the motor phase resistance, L d is the direct-axis inductance, L q is the quadrature axis inductance, ω is the motor electrical angular frequency, Ψ f It is the magnetic flux of the permanent magnet of the motor. When the motor speed and torque are stable, the inductance component basically does not change. At this time, the injected voltage is directly superimposed on the resistance, that is, the voltage difference and current difference before and after the current can be superimposed to calculate the resistance. When applied, it is generally required that the motor speed command and speed feedback have basically no fluctuation and the torque has basically no fluctuation within a period of time.
[0102] Further, in this embodiment, based on the two-point voltammetry, the ratio of voltage to current is used to obtain the ratio as the resistance. Specifically, based on the voltage difference and target current Δi dref The resistance R of the permanent magnet synchronous motor is obtained by performing ratio calculation.
[0103] The embodiment of the present application also provides a permanent magnet synchronous motor resistance online identification system, which can implement the permanent magnet synchronous motor resistance online identification method described in the present application. However, the implementation device of the permanent magnet synchronous motor resistance online identification method described in the present application includes but is not limited to the structure of the permanent magnet synchronous motor resistance online identification system listed in the present embodiment. All structural deformations and replacements of the prior art made according to the principles of the present application are included in the protection scope of the present application.
[0104] See also Figure 6 In one embodiment, this embodiment provides a permanent magnet synchronous motor resistance online identification system 60, the system comprising:
[0105] A work calculation module 61, used to calculate the resistance heating work within a target time;
[0106] A judgment module 62 is used to judge whether to inject current based on the resistance heating work and the rated power of the motor resistance heating within the target time, wherein whether to inject is related to the target time, and the injected target current is linearly superimposed on the motor direct axis;
[0107] An acquisition module 63, configured to acquire a voltage difference within the target time, wherein the voltage difference is a difference between a direct-axis voltage after the target current is injected and a direct-axis voltage before the target current is injected;
[0108] The resistance calculation module 64 is used to calculate the resistance of the permanent magnet synchronous motor based on the voltage difference and the target current.
[0109] Since the specific implementation of this embodiment corresponds to the aforementioned method embodiment, the same details will not be repeated here, and those skilled in the art should also understand that Figure 6 The division of the modules in the embodiment is merely a division of logical functions, and in actual implementation, all or part of them can be integrated into one or more physical entities, and these modules can be implemented entirely in the form of software called by processing elements, or entirely in the form of hardware, or some modules can be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware.
[0110] In the several embodiments provided by the present invention, it should be understood that the disclosed system, device or method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules / units is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules or units, which can be electrical, mechanical or other forms.
[0111] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention. For example, the functional modules / units in the various embodiments of the present invention may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.
[0112] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0113] The embodiment of the present invention also provides a computer-readable storage medium. A person of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above embodiment can be completed by instructing the processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.
[0114] An embodiment of the present invention further provides an electronic device, which includes a processor and a memory.
[0115] The memory is used to store computer programs.
[0116] The memory includes: ROM, RAM, disk, USB flash drive, memory card or CD and other media that can store program codes.
[0117] The processor is connected to the memory and is used to execute the computer program stored in the memory so that the electronic device executes the above-mentioned method for online identification of resistance of the permanent magnet synchronous motor.
[0118] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0119] like Figure 7As shown, the electronic device of the present invention is in the form of a general computing device. The components of the electronic device may include but are not limited to: one or more processors or processing units 71, a memory 72, and a bus 73 connecting different system components (including the memory 72 and the processing unit 71).
[0120] Bus 73 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0121] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.
[0122] The memory 72 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 721 and / or cache memory 722. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 723 may be used to read and write non-removable, non-volatile magnetic media ( Figure 7 not shown, usually called a "hard drive"). Although Figure 7 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 73 via one or more data medium interfaces. The memory 72 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0123] A program / utility 724 having a set (at least one) of program modules 7241 may be stored, for example, in the memory 72, such program modules 7241 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 7241 generally perform the functions and / or methods of the embodiments described herein.
[0124] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, displays, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via input / output (I / O) interface 74. Furthermore, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 75. Figure 7 As shown, the network adapter 75 communicates with other modules of the electronic device via the bus 73. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0125] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A method for online identification of resistance of a permanent magnet synchronous motor, characterized in that: include: Calculate the work done by the resistance heating within the target time; Determine whether to inject current based on the resistance heating work and the rated power of the motor resistance heating within the target time, wherein whether to inject is related to the target time, and the injected target current is linearly superimposed on the motor direct axis; Acquire a voltage difference within the target time, wherein the voltage difference is a difference between a direct-axis voltage after the target current is injected and a direct-axis voltage before the target current is injected; The permanent magnet synchronous motor resistance is calculated based on the voltage difference and the target current.
2. The method for online identification of resistance of a permanent magnet synchronous motor according to claim 1, characterized in that: The calculation of the resistance heating work within the target time specifically includes: The heating work done by the resistor within the target time is calculated based on a preset heating work calculation formula, and the heating calculation formula is as follows: Among them, w R_t The resistor heats up and does work, i A 、i B 、i C are the currents of the three phases of the motor, R0 is the resistance, Δt is the unit time, i is the control cycle, and p R_i is the resistance heating power within the control cycle, wherein the target time t=nΔt, and n is the number of control cycles.
3. The method for online identification of resistance of a permanent magnet synchronous motor according to claim 2, characterized in that: The step of determining whether to inject current based on the resistance heating work and the rated power of the motor resistance heating within the target time specifically includes: The motor resistance heating rated power is calculated based on a preset rated power calculation formula, wherein the rated power calculation formula is as follows: p R_rate =3I phase_rate 2 R rate ; Among them, p R_rate is the rated power of the motor resistance heating, I phase_rate is the rated phase current of the motor, R rate is the motor phase resistance; Based on the resistance heating work and the motor resistance heating rated power combined with the target time, it is determined whether the first conditional expression is satisfied. If satisfied, the target current is not injected, wherein the first conditional expression is as follows: Among them, w R_t The resistor heats up and does work, p R_rate t is the motor resistance heating power within the target time, K1 is the first parameter factor, t is the target time, Δt is the unit time, n is the number of control cycles, and N is the preset number of cycles.
4. The method for online identification of resistance of a permanent magnet synchronous motor according to claim 3, characterized in that: The determining whether to inject current based on the resistance heating work and the motor resistance heating rated power within the target time specifically includes: Based on the resistance heating work and the motor resistance heating rated power combined with the target time, it is determined whether the second conditional expression is satisfied. If satisfied, the target current is injected, wherein the second conditional expression is as follows: Among them, w R_t The resistor heats up and does work, p R_rate t is the motor resistance heating power within the target time, K1 is the first parameter factor, t is the target time, Δt is the unit time, n is the number of control cycles, and N is the preset number of cycles.
5. The method for online identification of resistance of a permanent magnet synchronous motor according to claim 4, characterized in that: The determining whether to inject current based on the resistance heating work and the motor resistance heating rated power within the target time specifically includes: Based on the resistance heating work and the rated power of the motor resistance heating, it is judged whether the third conditional expression is satisfied. If satisfied, the target current is injected, wherein the third conditional expression is as follows: In R_t ≥K2 p R_rate t,0<K1<<K2≤1; Among them, w R_t The resistor heats up and does work, p R_rate t is the motor resistance heating power within the target time, and K2 is the second parameter factor.
6. The method for online identification of resistance of a permanent magnet synchronous motor according to claim 5, characterized in that: The obtaining of the voltage difference within the target time specifically includes: The direct axis voltage is obtained based on the difference between the target current and the feedback current through the direct axis current loop, wherein the first direct axis voltage without injecting the target current is obtained. and obtaining a second direct axis voltage after injecting the target current Based on the first direct-axis voltage The second direct axis voltage The absolute value of the difference is the voltage difference 7. The method for online identification of resistance of a permanent magnet synchronous motor according to claim 6, characterized in that: The calculation of the permanent magnet synchronous motor resistance based on the voltage difference and the target current specifically includes: The resistance of the permanent magnet synchronous motor is obtained by calculating the ratio of the voltage difference to the target current based on the resistance calculation formula. The resistance calculation formula is as follows: Where R is the resistance of the permanent magnet synchronous motor, is the voltage difference, Δi dref is the target current.
8. A permanent magnet synchronous motor resistance online identification system, characterized in that: include: A work calculation module, used to calculate the work done by the resistor heating within the target time; A judgment module, used for judging whether to inject current based on the resistance heating work and the rated power of the motor resistance heating within the target time, wherein whether to inject is related to the target time, and the injected target current is linearly superimposed on the direct axis of the motor; An acquisition module, used for acquiring a voltage difference within the target time, wherein the voltage difference is a difference between a direct-axis voltage after the target current is injected and a direct-axis voltage before the target current is injected; The resistance calculation module is used to calculate the resistance of the permanent magnet synchronous motor based on the voltage difference and the target current.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for online identification of resistance of a permanent magnet synchronous motor as claimed in any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the method for online identification of resistance of a permanent magnet synchronous motor as described in any one of claims 1 to 7.
