# Patent

## Title
Temperature compensation for improved field weakening accuracy

## Abstract

Methods and apparatus are provided for rotor and stator temperature compensation for field weakening current. The method comprises generating a phase voltage feed back signal Vph based in part on pre-defined optimal current commands (ID* and IQ*) received by the IPM, generating a phase voltage command (Vphcmd) based in part on a temperature of a magnetic rotor and stator of the IPM, and generating a phase voltage error (Verror) by subtracting the phase voltage feed back signal (Vph) from the phase voltage command (Vphcmd). The method further comprises generating a d-axis command current correction value (ΔId) and a q-axis command current correction value (ΔIq) from the phase voltage error (Verror); and adjusting the pre-defined optimal current commands (ID* and IQ*) by the d-axis and the q-axis command current correction values (ΔId and ΔIq).

## Background
TECHNICAL FIELD
The present invention generally relates to electric motors, and more particularly relates to temperature compensation of field weakening current for integrated permanent magnet electric motors.
BACKGROUND OF THE INVENTION
An electric machine converts electrical power into mechanical force and motion. Electric machines are found in numerous applications including household appliances such as fans, refrigerators, and washing machines. Electric drives are also increasingly used in electric and hybrid-electric vehicles.
A rotary electric machine generally has an internal rotating magnet, called the rotor, which revolves inside a stationary stator. The interaction between the rotor electromagnetic field with the field created by the stator winding creates the machine torque. The rotor may be a permanent magnet or it may be an electromagnet. However, if the rotor has permanent magnets embedded therein (i.e., the permanent magnets are not in the rotor surface), the electric machine may be referred to as an interior permanent magnet (IPM) machine.
The part of the machine across which the input voltage is supplied is called the “armature”. Depending upon the design of the machine, either the rotor or the stator can serve as the armature. In an IPM machine, the armature is the stator, and is a set of winding coils powered by input voltage to drive the electric machine.
The reverse task of converting mechanical energy into electrical energy is accomplished by a generator or dynamo. An electrical machine as discussed above may also function as a generator since the components are the same. When the machine/generator is driven by mechanical torque, electricity is output. Traction machines used on hybrid and electric vehicles or locomotives often perform both tasks.
Typically as an electric machine accelerates, the armature (and hence field) current reduces in order to maintain voltage of the stator within limits. The reduction in field current which reduces magnetic flux inside the machine is also called flux or field weakening current. Field weakening current control techniques can be used to increase performance in the torque-speed characteristic of the machine. To retain control of stator current, the machine field may be reduced by a field weakening current control loop. The field or flux weakening in an IPM machine can be accomplished by adjusting the stator excitation, for example. Stator excitation in an IPM machine may be controlled by voltage pulse width modulation (PWM) of a voltage source inverter.
Flux weakening techniques have been used in the past where IPM flux is purposely weakened to reduce the problems associated with high flux, such as over voltage due to high Back-Electro Motive Force (Back-EMF). For example, during a constant torque region of operation of an electric machine, closed loop current regulator control has been used to control the applied PWM voltage excitation so that the instantaneous phase currents follow their commanded values. However, saturation of the current regulators may occur at higher speeds when the machine terminal voltage approaches the maximum voltage of the PWM inverter. Beyond this point, the flux should be weakened to maintain proper current regulation up to the maximum available machine speed. Reducing the magnetic flux inside the machine provides improved power characteristics of the IPM machine at high speeds.
In many applications, the correct current inputs to efficiently weaken the flux are preprogrammed into the flux control circuits of an IPM system. The pre-programming is stored in a data structure such as a data table. Unfortunately time varying rotor temperature changes cause deviation in the flux produced by the preprogrammed flux weakening currents, thus rendering the pre-programmed flux weakening currents to be sub-optimal for the actual flux being produced.
Accordingly, it is desirable to compensate for time varying temperature effects on rotor flux. In addition it is desirable to adjusting stator current in real time for rotor temperature changes. Furthermore, other desirable features and characteristics will become apparent from the subsequent detailed description and the appended claims, taken in conjunction with the accompanying drawings and the foregoing technical field and background.
SUMMARY OF THE INVENTION
A method is provided for controlling field-weakening accuracy in an integrated permanent magnet (IPM) electric motor. The method comprises generating a phase voltage feed back signal ΨphCmd based in part on pre-defined optimal current commands (Id** and Iq**) received by the IPM and rotor temperature of IPM machine, generating a phase voltage command VphCmd based in part on rotor speed, current magnitude, stator resistance, and stator a temperature. A phase voltage error Verror is obtained by subtracting phase voltage feedback Vph from phase voltage command VphCmd′. The method further comprises generating a d-axis command current correction value ΔId and a q-axis command current correction value ΔIq from the phase voltage error Verror; and adjusting the pre-defined optimal current commands (ID* and IQ*) by the d-axis and the q-axis command current correction values (ΔId and ΔIq).
A control loop is provided for field weakening in an electric machine comprising a permanent magnetic rotor. The control loop comprises a first current regulator configured to convert an adjusted current command for the d-axis (Id**) to a synchronous command voltages (Vd*), a second current regulator configured to convert an adjusted current command for the q-axis (Iq**) to a synchronous command voltages (Vq*), and an arithmetic unit configured to generated a phase voltage (Vph) from the synchronous command voltages (Vd* and Vq*). The control loop receives input from a flux linkage correction module, the flux linkage correction module. The flux linkage correction module is configured to receive a rotor temperature (TR) and a rotor speed and is configured to produce a phase voltage command (Vphcmd). The control loop also includes a feed back path configured to subtract the phase voltage (Vph) from the phase voltage command (Vphcmd) and configured to generate both of a d-axis command current correction value ΔId and a q-axis command current correction value ΔIq based on the summation as inputs to the first current regulator and the second current regulator.
A control loop is provided for field weakening in an electric machine comprising a permanent magnetic rotor. The control loop comprises a first current regulator configured to convert an adjusted current command for the d-axis (Id**) to a synchronous command voltages (Vd*), a second current regulator configured to convert an adjusted current command for the q-axis (Iq**) to a synchronous command voltages (Vq*), and an arithmetic unit configured to generated a phase voltage (Vph) from the synchronous command voltages (Vd* and Vq*). The control loop receives input from a flux linkage correction module, the flux linkage correction module configured to receive a rotor temperature, stator temperature, adjusted d-axis current command, adjusted q-axis current command a rotor speed and a phase current (Iph) and configured to produce a phase voltage command (VphCmd). The control loop further comprises a feed back path configured to subtract the phase voltage (Vph) from the phase voltage command (Vphcmd) and configured to generate both of a d-axis command current correction value ΔId and a q-axis command current correction value ΔIq based on the summation as inputs to the first current regulator and the second current regulator.



DESCRIPTION OF THE DRAWINGS
The present invention will hereinafter be described in conjunction with the following drawing figures, wherein like numerals denote like elements, and
FIG. 1 is a functional block diagram that includes an existing control system for a vector controlled IPM Machine;
FIG. 2 illustrates current regulation performance for an IPM machine with and without torque linearity control;
FIG. 3 is a functional block diagram of a control loop for field weakening in an electric machine comprising a permanent magnetic rotor according to embodiments;
FIG. 4 is a functional block diagram of a control loop for field weakening in an electric machine comprising a permanent magnetic rotor according to other embodiments;
FIGS. 5A and 5B illustrate the relationship between the d-axis and q-axis components of the phase current of an IPM machine and d-axis flux and q-axis flux in view of rotor temperature;
FIG. 6 illustrates the relationship between the d-axis and q-axis components of the phase current of an IPM machine and phase flux and rotor temperature; and
FIG. 7 is a flow chart of an exemplary method for controlling field-weakening accuracy in an integrated permanent magnet (IPM) electric motor.



DETAILED DESCRIPTION
The following detailed description is merely exemplary in nature and is not intended to limit the invention or the application and uses of the invention. Furthermore, there is no intention to be bound by any expressed or implied theory presented in the preceding technical field, background, brief summary or the following detailed description.
Embodiments of the invention may be described herein in terms of functional and/or logical block components and various processing steps. It should be appreciated that such block components may be realized by any number of hardware, software, and/or firmware components configured to perform the specified functions. For example, an embodiment of the invention may employ various integrated circuit components, e.g., memory elements, controlled switches, digital signal processing elements, logic elements, look-up tables, or the like, which may carry out a variety of functions under the control of one or more microprocessors or other control devices. In addition, those skilled in the art will appreciate that embodiments of the present invention may be practiced in conjunction with any number of vehicle applications and that the system described herein is merely one example embodiment of the invention.
For the sake of brevity, conventional techniques and components related to vehicle electrical parts and other functional aspects of the system (and the individual operating components of the system) may not be described in detail herein. Furthermore, the connecting lines shown in the various figures contained herein are intended to represent example functional relationships and/or physical couplings between the various elements. It should be noted that many alternative or additional functional relationships or physical connections may be present in an embodiment of the invention.
Those of skill in the art will appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. Some of the embodiments and implementations are described below in terms of functional and/or logical block components (or modules) and various processing steps. However, it should be appreciated that such block components (or modules) may be realized by any number of hardware, software, and/or firmware components configured to perform the specified functions. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. For example, an embodiment of a system or a component may employ various integrated circuit components, e.g., memory elements, digital signal processing elements, logic elements, look-up tables, or the like, which may carry out a variety of functions under the control of one or more microprocessors or other control devices. In addition, those skilled in the art will appreciate that embodiments described herein are merely exemplary implementations.
The various illustrative logical blocks, modules, and circuits described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration. The word “exemplary” is used exclusively herein to mean “serving as an example, instance, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Numerical ordinals such as “first,” “second,” “third,” etc. simply denote different singles of a plurality and do not imply any order or sequence unless specifically defined by the claim language. The sequence of the text in any of the claims does not imply that process steps must be performed in a temporal or logical order according to such sequence unless it is specifically defined by the language of the claim. The process steps may be interchanged in any order without departing from the scope of the invention as long as such an interchange does not contradict the claim language and is not logically nonsensical.
The following description may refer to elements or nodes or features being “connected” or “coupled” together. As used herein, unless expressly stated otherwise, “connected” means that one element/node/feature is directly joined to (or directly communicates with) another element/node/feature, and not necessarily mechanically. Likewise, unless expressly stated otherwise, “coupled” means that one element/node/feature is directly or indirectly joined to (or directly or indirectly communicates with) another element/node/feature, and not necessarily mechanically. Thus, although the schematics depict example arrangements of elements, additional intervening elements, devices, features, modules or components may be present in an embodiment of the invention (assuming that the functionality of the system is not adversely affected).
Embodiments of the invention are described herein in the context of one practical non-limiting application, namely, a control system for an integrated permanent magnet (IPM) machine. In this context, the example technique is applicable to operation of a system suitable for an electric vehicle or a hybrid electric vehicle. Embodiments of the invention, however, are not limited to such vehicle applications, and the techniques described herein may also be utilized in other electric powered control applications.
FIG. 1 is a functional block diagram that depicts an existing control system 100 for a vector controlled IPM machine suitable for use with a hybrid vehicle. Such systems are well known and, therefore, the operation of control system 100 will not be described in detail here. In summary, control system 100 adjusts the q-axis component of the stator current command IQ*(q-axis current command) of the IPM machine using a flux weakening control loop. Control system 100 includes: a current command 3-D table lookup module 102, a synchronous current regulator module with dynamic over modulation 116, a DC to AC transformation module 118, a PWM inverter 120, an AC to DC transformation module 122, an IPM machine 124, and a field weakening module 114. Control system 100 operates as described below.
Based on a torque command T*, the rotor rotational speed ωR, and a DC-link voltage VDC, pre-defined optimal current commands (ID* and IQ*) are generated using the current command 3-D table look-up module 102. The inputs to the table look-up module 102 are provided by a voltage sensor from the VDC input to the inverter 120, and a position sensor (not shown in FIG. 1) from the IPM machine 124. The q-axis current command IQ* is adjusted to obtain an adjusted current command (IQ**) as explained below.
The ID and IQ stationary currents (d-axis and q-axis components of the stator current) from the IPM machine 124 are fed to the synchronous current regulator module with dynamic over modulation 116, which generates synchronous voltage commands (VD* and VQ*). The command voltages VD* and VQ* are vector rotated using the rotor angular position θR, which is provided by IPM machine 124. The outputs of the current regulator with dynamic over modulation 116 (namely, VD* and VQ*) are fed to the DC to AC transformation module 118 to generate stationary frame voltage commands (VAS*, VBS* and VCS*) based on VD* and VQ*.
The VAS*, VBS* and VCS* stationary frame voltage commands are fed to the inverter 120 to generate IAS, IBS and ICS, which are the respective stationary frame currents. The inverter 120 may be, for example, a PWM inverter which applies alternating three phase voltage to the stator winding of the IPM machine 124. The IPM machine 124 then operates at the rotational speed ωR based on the stationary frame currents IAS, IBS and ICS.
The AC to DC transformation module 122 generates ID and IQ (the d-axis and q-axis components of the stator feedback current) based on IAS, IBS, ICS, and θR. Additional details of the control system 100 can be found in United States Patent Application Number 2005/0212471, the content of which is hereby incorporated by reference in its entirety.
The back electromotive force (“Back-EMF”) is proportional to the rotational speed ωR. Moreover, the Back-EMF of the IPM increases as the rotational speed ωR of the IPM is increased. Above a certain rotational speed, the voltage of the IPM machine may become higher than the voltage of a bus (not shown), resulting in reversal of current flow (regenerating instead of motoring). To control the ID and IQ components of the stator current, the machine flux is reduced by a field weakening control loop. The field weakening module 114 generates a command current adjusting value ΔIQ (ΔIQ is the adjusting q-axis current value), which decreases the flux in the machine but also decreases the torque), based on VD* and VQ* to adjust the current command IQ*. For example, ΔIQ is then added to IQ* by an adder 112 to generate the adjusted current command IQ**.
Adjusting ID* and IQ* in this manner results in a decrease in the torque, as will be explained in the context of FIG. 2. The aforementioned reduction in torque reduces the maximum torque available from the IPM machine, and it may reduce the machine efficiency. Additional details of the field weakening module 114 can be found in U.S. patent application Ser. No. 11/552,580, filed Oct. 25, 2006, which is hereby incorporated by reference in its entirety.
FIG. 2 illustrates current regulation performance with and without torque linearity control. The field weakening control loop module 114 (FIG. 1) keeps the current regulator stable at the available voltage by adjusting the Iq* current by an amount ΔIq as explained above. Delta Iq however, moves the current vector 210 from point 204 on the T1 constant torque curve to point 208 on the T2 constant torque curve, thereby decreasing the torque in direct proportion to the flux. It is desirable to keep the current vector on the T1 constant torque curve in the field weakening region of the IPM machine. To this end, the control loop of a torque linearity module (not shown) generates ΔId, which moves the current vector 210 from point 208 on the T2 constant torque curve to point 206 on the T1 constant torque curve, thereby keeping the torque constant and maintaining torque linearity in a field weakening region of the IPM machine.
The techniques described herein adjust both Id and Iq components of the stator current to account for adverse time varying rotor temperature (TR) changes that affect flux in the field weakening region to maintain torque performance.
FIG. 3 a functional block diagram of a control loop for field weakening in an electric machine comprising a permanent magnet rotor according to an embodiment. As an input, the motor torque command T*, the DC-link voltage VDC, and rotor speed ωR are received by control system 300. The torque command T*, the DC-link voltage Vdc, and rotor speed ωR are inputs to the Id look up table 302 and the Iq look up table 303, which produce a pre-defined optimal d-axis current command Id* and a pre-defined optimal q-axis current command Iq*. The pre-defined d-axis current command Id* and the pre-defined q-axis current command Iq* are added to the command current correction values ΔId and ΔIq to obtain d-axis adjusted current command (Id**), and q-axis adjusted current command (Iq**) as inputs to the current regulators 316 and 317. The current regulators 316 and 317 generate synchronous command voltages Vd* and Vq* from which a phase voltage Vph is calculated by arithmetic module 306 as the square root of the sum of the squares of the synchronous command voltages. The phase voltage Vph is an input component of command current correction values ΔId and ΔIq along with the output of the flux linkage correction module 350.
The flux linkage correction module 350 may be embodied as hardware software, firmware or a combination thereof and may be controlled or executed by a processor or a combination of multiple processors. The flux linkage correction module 350 receives the current Rotor Temperature (TR) and adjusted current commands Id** and Iq** as inputs to the flux linkage look up table 355. The flux linkage look up table 355 contains pre-determined rotor flux data as a function of Rotor Temperature (TR) (See, FIGS. 5-7). Thus, for a specific combination of Id**, Iq** and Rotor Temperature, the flux linkage look up table 355 outputs a rotor flux command ψphCmd, which is subsequently multiplied by the rotor speed ωR to produce a phase voltage command VphCmd. The phase voltage Vph generated by the arithmetic module 306 is then subtracted from the phase voltage command (VphCmd).
The phase voltage Vph is a feedback signal subtracted from the phase voltage command VphCmd to produce the voltage error Verror, which is processed by a proportional integrator (PI) regulator to produce the command current correction values ΔId and ΔIq, which are each summed with their respective pre-defined d-axis current command Id* and pre-defined q-axis current command Iq*, as discussed above.
The phase voltage error (Verror=VphCmd−Vph) is then processed by a proportional integrator controller 357 to generate the command current correction value ΔId. Command current correction value ΔId is further processed by an amplifier 359 with a gain K to generate command current correction value ΔIq. In equivalent embodiments the amplifier K may be replaced with a function look up table as function of Id** and Iq** to produce command current correction value ΔIq from command current correction value ΔId.
FIG. 4 is a functional block diagram of a control loop for field weakening in an electric machine comprising a permanent magnet rotor according to another embodiment. As inputs, the motor torque command T*, the DC-link voltage VDC, and rotor speed ωR are received by control system 400. The torque command T*, the DC-link voltage VDC, and rotor speed ωR are inputs to the Id look up table 302 and the Iq look up table 303, respectively, which produces a pre-defined d-axis current command Id* and a pre-defined q-axis current command Iq*. The pre-defined d-axis current command Id* and a pre-defined q-axis current command Iq* are added to the command current correction values ΔId and ΔIq to obtain d-axis adjusted current command (ID**), and q-axis adjusted current command (IQ**) as inputs to the current regulators 316 and 317. The current regulators 316 and 317 generate synchronous command voltages Vd* and Vq* from which a phase voltage Vph is calculated by arithmetic module 406 as the sum of the squares of the synchronous command voltages. The phase voltage Vph is a component of command current correction values ΔId and ΔIq along with the output of the flux linkage correction module 350.
The arithmetic module 406 also adjusts the phase voltage Vph for any fixed voltage drops across the inverter 120. Such fixed voltage drops may include voltage drops across any related terminal connections and/or power switches such as an insulated-gate bi-polar transistor (IGBT). The arithmetic module 406 also adjusts for phase current driven voltage drops Vph*Rinv) across the inverter 120.
The flux linkage correction module 350 may be embodied as hardware software, firmware or a combination thereof and may be controlled or executed by a processor or a combination of multiple processors. The flux linkage correction module 350 receives as inputs the current Rotor Temperature (TR) and adjusted current commands Id** and Iq**, which will be discussed further below. The Rotor Temperature, Id** and Iq** are received as inputs to the flux linkage look up table 355, which contains pre-determined rotor flux data as a function of Rotor Temperature. The flux linkage look up table 355 outputs a rotor flux command ψphCmd, which is subsequently multiplied by the rotor speed ωR to generate an intermediary phase voltage command (VphCmd′).
In addition to being an input to produce the intermediary phase voltage command VphCmd′, rotor speed ωR is also used as an input to a stator resistance look up table 360. This stator resistance adjustment compensates for changes in the stator resistance Rs due to stator temperature changes, and for rotor speed ωR. Near room temperature, the electric resistance of a typical metal increases linearly with rising temperature. The amount of that change in resistance can be calculated using the temperature coefficient of resistivity of the conductor using the following formula:

R(T)=R0[1+α(T−T0)]

where T is its temperature, T0 is a reference temperature (usually room temperature), R0 is the resistance at T0, and α is the percentage change in resistivity per unit temperature. The constant α depends only on the conductor material being considered. The relationship stated is actually only an approximate one, the true physics being somewhat non-linear. Looking at it another way, α itself varies with temperature. For this reason it is common practice to specify the temperature that α was measured at with a suffix, such as α15 and the relationship only holds in a range of temperatures around the reference.

Continuing, Iph as the square root of the sum of the squared values of the adjusted current commands (Id** and Iq**) is also an input into the Rs lookup table 360, which outputs an adjusted stator resistance (R′). A stator voltage adjustment (V′) is then determined by multiplying the adjusted stator resistance (R′) by the Phase current (Iph). The stator resistive voltage (V′) is then summed with the phase voltage command (VphCmd′) to produce the phase voltage command (VphCmd). The phase voltage (Vph) generated by the arithmetic module 406 is subtracted from the phase voltage command VphCmd to produce the phase voltage error (Verror=VphCmd−Vph).
The phase voltage error (Verror=VphCmd−Vph) is then processed by the PI controller 357 to generate command current correction value ΔId. Command current correction value ΔId is further processed by an amplifier 359 with a gain K to generate a command current correction value ΔIq.
FIGS. 5A and 5B illustrate graphical representations presenting flux linkage data ψd and ψq at 25° C. and 90° C., respectively, as a function of the stationary currents Id and Iq. Each colored curve represents different flux strength. FIGS. 5A and 5B demonstrate that larger values for the stationary currents Id and Iq are required to obtain the same flux linkage when the rotor magnet(s) are warmer. As can be seen comparing FIGS. 5A and 5B, the flux linkage ψd exhibits a significant change in magnitude as a function of temperature while the flux linkage ψq exhibits a small change with temperature. The flux linkage is inversely proportional to temperature. In embodiments described herein, the flux linkage data presented in FIGS. 5A and 5B may be used as the data in the flux-linkage look up table 355 in the field weakening module 350 (FIG. 3) of the field weakening control loop 114 (FIG. 1).
FIG. 6 is graphical representation of the phase flux linkage ψph, which is the flux linkage magnitude of the combined flux linkages ψd and ψq demonstrating the shift in Iph with changes in temperature.
FIG. 7 is a flow chart of an exemplary computer processor executed method 700 according to the embodiment of FIG. 4 disclosed herein for controlling field-weakening accuracy in an integrated permanent magnet (IPM) electric motor due to temperature changes. The exemplary embodiment of FIG. 4 is essentially identical to that of FIG. 3 with the addition of the stator resistance look up table 360. As such, only the method of FIG. 4 will be discussed herein below in the interest of brevity.
The method 700 begins at process 701 where a processor (not shown) receives as inputs a torque command (T*) from an operator or an autopilot, a rotor speed (ωR) and a DC-ling voltage (Vdc). At process 707, the processor looks up the q-axis (Iq*) and the d-axis (Id*) components of a corresponding stator current command. The look up operation may utilize a look up table or any other suitable data storage structure.
At process 714, the q-axis (Iq*) and the d-axis (Id*) components of a corresponding stator current command are adjusted by summing (Iq* and Id*) by their corresponding command current correction values (ΔIq and ΔId), respectively, to produce the adjusted current commands (Id** and Iq**). The determination of (ΔIq and ΔId) will be discussed in more detail below.
At process 756, the d-axis and q-axis components (Id and Iq) of the phase current (Iph) are subtracted from the adjusted current commands (Id** and Iq**) to obtain current error in the d-axis and q-axis, which are processed by the PI controller 357 to generate synchronous command voltages (Vd* and Vq*), respectively using a pair of current regulators 316 and 317 (FIG. 4). Those of ordinary skill in the art will appreciate that the specific device converting the adjusted current commands to the synchronous command voltages does not necessarily have to be a current regulator. Other suitable devices, software, firmware or combination thereof may suffice as well. For example a function may suffice.
At process 763, an adjusted phase voltage (Vph) is calculated by taking the square root of the sum of the squares of the synchronous command voltages (Vd* and Vq*) and is further adjusted for the fixed voltage drop across the inverter 120 (See, FIG. 1) and the voltage drop across the inverter due to the equivalent resistance of the inverter.
Simultaneously with processes 756 and 763, at process 745 a processor (not shown) receives the IPM Rotor Temperature (TR) and the adjusted current commands Id** and Iq** as inputs. The processor then looks up a corresponding phase flux command (ψphCmd). The look up operation for the phase flux command (ψphCmd) may utilize a look up table or any other suitable data storage structure. The phase flux command (ψphCmd) may then be used to determine and intermediary phase voltage command (VphCmd′) by multiplying by the rotor speed (ωR). In the alternate embodiment of FIG. 3, the ψphCmd may then be used to determine the phase voltage command (VphCmd) directly.
At process 735, a processor (not shown) receives a phase current (Iph), which may be calculated as the square root of the sum of the squares of the adjusted current commands (Id** and Iq**), a stator temperature and the rotor speed (ωR) as input values for the stator resistance look up table Rs. A resistance adjustment value R′ is output from the stator resistance look up table and is used to determine a stator voltage adjustment (V′) by multiplying the phase current by the resistance value (R′) at process 742.
At process 749, the phase voltage command (VphCmd) is calculated by summing the stator voltage adjustment (V′) with the voltage adjustment command (Vph′). At process 770, the phase voltage error (Verror) is determined by subtracting the phase voltage (Vph) determined at process 763 from the phase voltage command (VphCmd).
At process 777, the phase voltage error (Verror) is converted to the command current correction values ΔIq and ΔId using a proportional-integral controller 357 and an amplifier 359 (FIG. 4). The command current correction values ΔIq and ΔId are then used to adjust the q-axis (Iq*) and the d-axis (Id*) components of the stator current command as discussed above in regard to process 714.
While at least one exemplary embodiment has been presented in the foregoing detailed description, it should be appreciated that a vast number of variations exist. It should also be appreciated that the exemplary embodiment or exemplary embodiments are only examples, and are not intended to limit the scope, applicability, or configuration of the invention in any way. Rather, the foregoing detailed description will provide those skilled in the art with a convenient road map for implementing the exemplary embodiment or exemplary embodiments. It should be understood that various changes can be made in the function and arrangement of elements without departing from the scope of the invention as set forth in the appended claims and the legal equivalents thereof.

## Claims

1. A method for controlling field-weakening accuracy in an integrated permanent magnet (IPM) electric motor, comprising:
generating a phase voltage feed back signal Vph, based in part on pre-defined optimal current commands (Id* and Iq*) received by the IPM;
generating a phase voltage command Vphcmd based in part on a temperature (TR) of a magnetic rotor of the IPM;
generating a phase voltage error Verror by subtracting the phase voltage feed back signal Vph from the phase voltage command Vphcmd;
generating a d-axis command current correction values ΔId and a q-axis command current correction value ΔIq from the phase voltage error Verror; and
adjusting the pre-defined optimal current commands (Id* and Iq*) by the d-axis and the q-axis command current correction values (ΔId and ΔIq).

2. The method of claim 1 wherein the phase voltage command Vphcmd′ is a product of a speed of the magnetic rotor of the IPM and a rotor flux command ψphCmd.

3. The method of claim 2 wherein the rotor flux command (ψphCmd) is generated from a data structure containing temperature based flux-linkage data that is accessed by a temperature of the magnetic rotor of the IPM, a d-axis adjusted current command (Id**), and a q-axis adjusted current command (Iq**).

4. A field weakening control loop for an electric machine including a permanent magnetic rotor, comprising:
a first current regulator configured to convert a d-axis adjusted current command (Id**) and a d-axis current feedback (Id) to a synchronous voltage command (Vd*);
a second current regulator configured to convert an q-axis adjusted current command (Iq**) a q-axis current feedback (Iq) to a synchronous voltage command (Vq*);
an arithmetic unit configured to generated a phase voltage (Vph) from the synchronous voltage commands (Vd* and Vq*);
flux linkage correction module, the flux linkage correction module configured to receive a rotor temperature (TR) and a rotor speed (ωR) and configured to produce a phase voltage command (Vphcmd); and
a feed back path configured to subtract the phase voltage (Vph) from the phase voltage command (Vphcmd) and configured to generate both of a d-axis command current correction value ΔId and a q-axis command current correction value ΔIq based on the subtraction as inputs to the first current regulator and the second current regulator.

5. The field weakening control loop of claim 4, wherein the flux linkage correction module comprises a memory device containing flux linkage data stored therein, wherein the flux linkage data relates a synchronous d-axis current (Id) to a corresponding q-axis current (Iq) at a specific magnetic rotor temperature.

6. The field weakening control loop of claim 5, wherein the flux linkage data is stored in a look up table that uses a temperature (TR) of the permanent magnetic rotor, the d-axis adjusted current command (Id**) and the q-axis adjusted current command (Iq**) for input values and produces a rotor flux command (ψphCmd).

7. The field weakening control loop of claim 6, wherein the rotor flux command (ψphCmd) is multiplied by the rotor speed to generate phase voltage command (VphCmd).

8. The field weakening control loop of claim 7, further comprising a proportional integrator configured to convert a difference between the phase voltage command (VphCmd) and the phase voltage (Vph) into the d-axis command current correction value (ΔId).

9. The field weakening control loop of claim 7, further comprising an amplifier configured to convert the d-axis command current correction value (ΔId) into the d-axis command current correction value.

10. A field weakening control loop for an electric machine with a permanent magnetic rotor and an inverter, comprising:
a first current regulator configured to convert a d-axis adjusted current command (Id**) and a d-axis current feedback (Id) to a synchronous command voltages (Vd*);
a second current regulator configured to convert a q-axis adjusted current command (Iq**) and a q-axis current feedback (Iq) to a synchronous command voltages (Vq*);
an arithmetic unit configured to generated a phase voltage (Vph) from the synchronous command voltages (Vd* and Vq*) adjusted for a voltage drop (Vdrop) and a resistance loss (Rinv) across the inverter;
flux linkage correction module, the flux linkage correction module configured to receive a rotor temperature (TR), a rotor speed (ωR) and a phase current (Iph) and configured to produce a phase voltage command (VphCmd); and
a feed back path configured to subtract the phase voltage (Vph) from the phase voltage command (Vphcmd) and configured to generate both of a d-axis command current correction value (ΔId) and a q-axis command current correction value (ΔIq) based on the subtraction as inputs to the first current regulator and the second current regulator.

11. The field weakening control loop of claim 10, wherein the flux linkage correction module comprises a memory device containing flux linkage data stored therein, wherein the flux linkage data relates a stationary d-axis current (Id) to a corresponding q-axis current (Iq) at a specific magnetic rotor temperature.

12. The field weakening control loop of claim 11, wherein the flux linkage data is stored in a look up table that uses a temperature of the permanent magnetic rotor, the d-axis adjusted current command (Id**) and the q-axis adjusted current command (Iq**) for input values and produces a rotor flux command (ψphCmd).

13. The field weakening control loop of claim 12 wherein the rotor flux command (ψphCmd) is multiplied by the rotor speed to generate an adjusted phase voltage (Vph*).

14. The field weakening control loop of claim 13, further comprising a stator resistance look up table.

15. The field weakening control loop of claim 14, wherein the stator resistance look up table receives the phase current (Iph), the rotor speed and a temperature of a stator as input values and produces a resistance adjustment value (R′).

16. The field weakening control loop of claim 15, wherein the phase current (Iph) is multiplied by the resistance adjustment value (R′) to generate a voltage adjustment (V′).

17. The field weakening control loop of claim 16 wherein the voltage adjustment (V′) is added to the adjusted phase voltage (Vph*) to produce the phase voltage command (VphCmd).

18. The field weakening control loop of claim 17, further comprising a proportional integrator configured to convert a difference between the phase voltage command (VphCmd) and the phase voltage (Vph) into the d-axis command current correction value (ΔId).

19. The field weakening control loop of claim 18, further comprising an amplifier configured to convert the d-axis command current correction value (ΔId) into the d-axis command current correction value.