Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
APPARATUS FOR CONTROLLING AN ALTERNATING CURRENT MACHINE
Document Type and Number:
WIPO Patent Application WO/2014/168797
Kind Code:
A1
Abstract:
In one example embodiment, a device for controlling an alternating current (AC) machine is disclosed. The device includes a processor configured to determine a plurality of instantaneous voltages (S550) corresponding to a plurality of phase voltages of an inverter for driving the AC machine. The processor is further configured to determine an actual line-to-line voltage of the inverter (S554) based on the plurality of instantaneous voltages. The processor is further configured to determine a terminal voltage feedback or current for controlling the AC machine (e.g., S558 or, S559 and S560), based on the determined actual line-to-line voltage and a terminal voltage threshold.

Inventors:
WU LONG (US)
FU TIANJUN (US)
TREMEL CHRIS J (US)
Application Number:
PCT/US2014/032684
Publication Date:
October 16, 2014
Filing Date:
April 02, 2014
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
DEERE & CO (US)
International Classes:
H02P21/00; H02K21/38; H02P23/00
Foreign References:
US20110031920A12011-02-10
US20120217915A12012-08-30
US20090322264A12009-12-31
Attorney, Agent or Firm:
BARTHOLOMEW, Darin, E. (One John Deere PlaceMoline, IL, US)
Download PDF:
Claims:
and all such modifications as would be obvious to one skilled in the art are intended to be included within the scope of the claims.

What is claimed is:

1. A control device for controlling an alternating current (AC) machine, comprising:

a processor configured to,

determine a plurality of instantaneous voltages corresponding to a plurality of phase voltages of an inverter, the inverter driving the

AC machine,

determine an actual line-to-line voltage of the inverter based on the plurality of instantaneous voltages, and

determine a terminal voltage feedback for controlling the AC machine based on the determined actual line-to-line voltage and a terminal voltage threshold.

2. The control device of claim 1, wherein the processor is configured to determine the plurality of instantaneous voltages by, determining an instantaneous current polarity associated with a corresponding phase of the inverter based on at least one a positive current threshold and a negative current threshold,

determining the plurality of instantaneous voltages based on a voltage across at least one switch associated with the corresponding phase of the inverter upon the instantaneous current polarity being less than the positive current threshold and greater than the negative current threshold, and determining the plurality of instantaneous voltages based on the instantaneous current polarity associated with the corresponding phase of the inverter upon at least one of the instantaneous current polarity being greater than the positive current threshold and the instantaneous current polarity being less than the negative current threshold.

3. The control device of claim 1, wherein the processor is configured to determine the actual line-to-line voltage by,

averaging the determined instantaneous voltages for each one of the plurality of phase voltages of the inverter over at least one of a single pulse width modulation (PWM) cycle of a PWM module and half of the single PWM cycle of the PWM module, the PWM module converting a two-phase representation of an inverter terminal voltage for driving the inverter to a three-phase representation of the inverter terminal voltage.

4. The control device of claim 3, wherein the processor is further configured to determine the actual line-to-line voltage by determining a terminal voltage space vector representation of the averaged instantaneous voltages.

5. The control device of claim 4, wherein the processor is further configured to determine the actual line-to-line voltage by determining a terminal voltage peak of the terminal voltage space vector representation of the averaged instantaneous voltages.

6. The control device of claim 1, wherein the processor is configured to determine the terminal voltage feedback by,

filtering the determined actual line-to-line voltage.

7. The control device of claim 6, wherein the processor is further configured to determine the terminal voltage feedback by,

determining an error based on the filtered actual line-to-line voltage and the terminal voltage threshold, and

adjusting d/q-axis current commands based on the determined error such that the terminal voltage feedback is below the terminal voltage threshold and the total current magnitude is constant.

8. The control device of claim 1, wherein the processor is further configured to,

determine the terminal voltage threshold based on an operating mode of the AC machine and a dc bus voltage of the AC machine.

9. The control device of claim 8, wherein the operating mode of the AC machine is at least one of a motoring mode and a braking mode of the AC machine.

10. The control device of claim 1, wherein the control device is a field programmable gate array (FPGA).

11. The control device of claim 1 , wherein the AC machine is at least one of an Interior Permanent Magnet (IPM) machine, an induction machine and a surface mounted permanent magnet machine.

12. A method for controlling an alternating current (AC) machine, comprising:

determining, by a processor, a plurality of instantaneous voltages corresponding to a plurality of phase voltages of the inverter, the inverter driving the AC machine;

determining, by the processor, an actual line-to-line voltage of the inverter based on the plurality of instantaneous voltages; and

determining, by the processor, a terminal voltage feedback for controlling the AC machine, based on the determined actual line-to-line voltage and a terminal voltage threshold.

13. The method of claim 12, wherein the determining the plurality of instantaneous voltages comprises:

determining an instantaneous current polarity associated with a corresponding phase of the inverter based on at least one a positive current threshold and a negative current threshold,

determining the plurality of instantaneous voltages based on a voltage across at least one switch associated with the corresponding phase of the inverter upon the instantaneous current polarity being less than the positive current threshold and greater than the negative current threshold, and determining the plurality of instantaneous voltages based on the instantaneous current polarity associated with the corresponding phase of the inverter upon at least one of the instantaneous current polarity being greater than the positive current threshold and the instantaneous current polarity being less than the negative current threshold.

14. The method of claim 12, wherein the determining the actual line-to- line voltage comprises:

averaging the determined instantaneous voltages for each one of the plurality of phase voltages of the inverter over at least one of a single pulse width modulation (PWM) cycle of a PWM module and half of the single PWM cycle of the PWM module, the PWM module converting a two-phase representation of an inverter terminal voltage for driving the inverter to a three-phase representation of the inverter terminal voltage.

15. The method of claim 14, wherein the determining the actual line-to- line voltage further comprises:

determining a terminal voltage space vector representation of the averaged instantaneous voltages.

16. The method of claim 15, wherein the determining the actual line-to- line voltage further comprises:

determining a terminal voltage peak of the terminal voltage space vector representation of the averaged instantaneous voltages.

17. The method of claim 12, wherein the determining the terminal voltage feedback comprises: filtering the determined actual line-to-line voltage.

18. The method of claim 17, wherein the determining the terminal voltage feedback further comprises:

determining an error based on the filtered actual line-to-line voltage and the terminal voltage threshold, and

adjusting d/q-axis current commands based on the determined error such that the terminal voltage feedback is below the terminal voltage threshold and a total current magnitude is constant.

19. The method of claim 12, further comprising:

determining the terminal voltage threshold based on an operating mode of the AC machine and a dc bus voltage of the AC machine.

20. The method of claim 19, wherein the operating mode of the AC machine is at least one of a motoring mode and a braking mode of the AC machine.

21. The method of claim 12, wherein the AC machine is at least one of an Interior Permanent Magnet (IPM) machine, an induction machine and a surface mounted permanent magnet machine.

Description:
APPARATUS FOR CONTROLLING AN ALTERNATING CURRENT MACHINE

FIELD

[0001] Example embodiments are related to electronic drive device systems and methods for controlling alternating current (AC) devices such as Interior Permanent Magnet (IPM) motors or machines.

BACKGROUND

[0002] Alternating current (ac) machines (e.g. , IPM machines) are extensively used in loaders, combines or other heavy equipment machinery vehicle electric drive because they provide a higher efficiency than direct current (dc) machines. Of the ac machines, an Interior Permanent Magnet (IPM) machine has high drive efficiency and a wider constant power operating range. An IPM machine controller also called an inverter, controls operation of the IPM machine. The controller produces ac control signals which are applied to the terminals of the IPM machine.

[0003] In an IPM machine, extra high machine terminal voltage could detrimentally cause current regulation collapse, introduce additional harmonics in the inverter voltage output, cause degraded current regulation quality and associated side effects such as torque ripple, rotor magnet and stator winding heating, acoustic noise, etc. The extra high machine terminal voltage may depend on d/q-axis voltage commands, manufacturing and raw material tolerance such as permanent magnet, stator/ rotor steel saturation characteristics can cause variance in the machine terminal voltage, accuracy of a position offset calibration, ambient and cooling temperatures, accuracy of the inverter onboard a current transducer (CT), etc.

[0004] Typically the controller controls the IPM machine based on a plurality of information. For example, an accurate estimation of the actual inverter or terminal voltage of the IPM machine, together with position information of the machine, may provide a better estimation of a torque output of the IPM machine, which in turn may complete the torque control loop. SUMMARY

[0005] Some embodiments are directed to methods and apparatuses for controlling an AC machine such as an IPM machine through estimating the actual inverter or machine terminal voltage.

[0006] In one example embodiment, a device for controlling an alternating current (AC) machine is disclosed. The device includes a processor configured to determine a plurality of instantaneous voltages corresponding to a plurality of phase voltages of an inverter, the inverter driving the AC machine. The processor is further configured to determine an actual line-to-line voltage of the inverter based on the plurality of instantaneous voltages. The processor is further configured to determine a terminal voltage feedback for controlling the AC machine, based on the determined actual line-to-line voltage and a terminal voltage threshold.

[0007] In yet another example embodiment, the processor is configured to determine the plurality of instantaneous voltages by determining an instantaneous current polarity associated with a corresponding phase of the inverter based on at least one a positive current threshold and a negative current threshold. The processor is further configured to determine the plurality of instantaneous voltages by determining the plurality of instantaneous voltages based on a voltage across at least one switch associated with the corresponding phase of the inverter upon the instantaneous current polarity being less than the positive current threshold and greater than the negative current threshold, and determining the plurality of instantaneous voltages based on the instantaneous current polarity associated with the corresponding phase of the inverter upon at least one of the instantaneous current polarity being greater than the positive current threshold and the instantaneous current polarity being less than the negative current threshold.

[0008] In yet another example embodiment, the processor is configured to determine the actual line-to-line voltage by averaging the determined instantaneous voltages for each one of the plurality of phase voltages of the inverter over at least one of a single pulse width modulation (PWM) cycle of a PWM module and half of the single PWM cycle of the PWM module, the PWM module converting a two-phase representation of an inverter terminal voltage for driving the inverter to a three-phase representation of the inverter terminal voltage. [0009] In yet another example embodiment, the processor is further configured to determine the actual line-to-line voltage by determining a terminal voltage space vector representation of the averaged instantaneous voltages.

[0010] In yet another example embodiment, the processor is further configured to determine the actual line-to-line voltage by determine the actual line-to-line voltage by determining a terminal voltage peak of the terminal voltage space vector representation of the averaged instantaneous voltages.

[0011 ] In yet another example embodiment, the processor is configured to determine the terminal voltage feedback by filtering the determined actual line-to-line voltage.

[0012] In yet another example embodiment, the processor is further configured to determine the terminal voltage feedback by determining an error based on the filtered actual line-to-line voltage and the terminal voltage threshold, and adjusting d/q-axis current commands based on the determined error such that the terminal voltage feedback is below the terminal voltage threshold and a total current magnitude is constant.

[0013] In yet another example embodiment, the processor is further configured to determine the terminal voltage threshold based on an operating mode of the AC machine and a dc bus voltage of the AC machine.

[0014] In yet another example embodiment, the operating mode of the

AC machine is at least one of a motoring mode and a braking mode of the AC machine.

[0015] In yet another example embodiment, the control device is a field programmable gate array (FPGA).

[0016] In yet another example embodiment, the AC machine is at least one of an Interior Permanent Magnet (IPM) machine, an induction machine and a surface mounted permanent magnet machine.

[0017] In yet another example embodiment, a method for controlling an alternating current (AC) machine is disclosed. The method includes determining, by a processor, a plurality of instantaneous voltages corresponding to a plurality of phase voltages of the inverter, the inverter driving the AC machine. The method further includes determining, by the processor, an actual line-to-line voltage of the inverter based on the plurality of instantaneous voltages. The method further includes determining, by the processor, a terminal voltage feedback for controlling the AC machine, based on the determined actual line-to-line voltage and a terminal voltage threshold.

[0018] In yet another example embodiment, the determining the plurality of instantaneous voltages includes determining an instantaneous current polarity associated with a corresponding phase of the inverter based on at least one a positive current threshold and a negative current threshold. The determining the plurality of instantaneous voltages further includes determining the plurality of instantaneous voltages based on a voltage across at least one switch associated with the corresponding phase of the inverter upon the instantaneous current polarity being less than the positive current threshold and greater than the negative current threshold, and determining the plurality of instantaneous voltages based on the instantaneous current polarity associated with the corresponding phase of the inverter upon at least one of the instantaneous current polarity being greater than the positive current threshold and the instantaneous current polarity being less than the negative current threshold.

[0019] In yet another example embodiment, the determining the actual line-to-line voltage includes averaging the determined instantaneous voltages for each one of the plurality of phase voltages of the inverter over at least one of a single pulse width modulation (PWM) cycle of a PWM module and half of the single PWM cycle of the PWM module, the PWM module converting a two-phase representation of an inverter terminal voltage for driving the inverter to a three-phase representation of the inverter terminal voltage.

[0020] In yet another example embodiment, the determining the actual line-to-line voltage further includes determining a terminal voltage space vector representation of the averaged instantaneous voltages.

[0021] In yet another example embodiment, the determining the actual line-to-line voltage further includes determining a terminal voltage peak of the terminal voltage space vector representation of the averaged instantaneous voltages.

[0022] In yet another example embodiment, the determining the terminal voltage feedback includes filtering the determined actual line-to-line voltage. [0023] In yet another example embodiment, the determining the terminal voltage feedback further includes determining an error based on the filtered actual line-to-line voltage and the terminal voltage threshold, and adjusting d/q-axis current commands based on the determined error such that the terminal voltage feedback is below the terminal voltage threshold and a total current magnitude is constant.

[0024] In yet another example embodiment, the method includes determining the terminal voltage threshold based on an operating mode of the AC machine and a dc bus voltage of the AC machine.

BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Example embodiments will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings. FIGS. 1-5B represent non-limiting, example embodiments as described herein.

[0026] FIG. 1 is a block diagram of a system for controlling an electrical motor, according to an example embodiment;

[0027] FIG. 2 is a block diagram of an electronic data processing system consistent with FIG. 1, according to an example embodiment;

[0028] FIG. 3 illustrates an inverter circuit outputting control signals to an electrical motor, according to an example embodiment;

[0029] FIG. 4 illustrates particular modules, including an estimation and threshold module of the system shown in FIG. 1 , according to an example embodiment;

[0030] FIG. 5 illustrates a method carried out by the estimation and threshold module shown in FIG. 4, according to an example embodiment;

[0031] FIGS. 6A-B illustrate a pulse width modulation (PWM) cycle of the pulse width modulation module of FIG. 1 , for a single control mode and a double control mode, according to an example embodiment;

[0032] FIG. 7 illustrates an instantaneous current polarity in an inverter circuit of the system, according to an example embodiment; and

[0033] FIG. 8 illustrates adjustments to the d/q-axis current magnitudes and the corresponding angle such that the total current magnitude is kept constant, according to an example embodiment. DETAILED DESCRIPTION

[0034] Some example embodiments will now be described more fully with reference to the accompanying drawings in which some example embodiments are illustrated.

[0035] Accordingly, while example embodiments are capable of various modifications and alternative forms, embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that there is no intent to limit example embodiments to the particular forms disclosed, but on the contrary, example embodiments are to cover all modifications, equivalents, and alternatives falling within the scope of the claims. Like numbers refer to like elements throughout the description of the figures.

[0036] It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of example embodiments. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.

[0037] It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. In contrast, when an element is referred to as being "directly connected" or "directly coupled" to another element, there are no intervening elements present. Other words used to describe the relationship between elements should be interpreted in a like fashion (e.g., "between" versus "directly between," "adjacent" versus "directly adjacent," etc.).

[0038] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments. As used herein, the singular forms "a," "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used herein, specify the presence of stated features, integers, steps, operations, elements and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/ or groups thereof.

[0039] It should also be noted that in some alternative implementations, the functions/acts noted may occur out of the order noted in the figures. For example, two figures shown in succession may in fact be executed substantially concurrently or may sometimes be executed in the reverse order, depending upon the functionalit /acts involved.

[0040] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which example embodiments belong. It will be further understood that terms, e.g., those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.

[0041] Portions of example embodiments and corresponding detailed description are presented in terms of software, or algorithms and symbolic representations of operation on data bits within a computer memory. These descriptions and representations are the ones by which those of ordinary skill in the art effectively convey the substance of their work to others of ordinary skill in the art. An algorithm, as the term is used here, and as it is used generally, is conceived to be a self-consistent sequence of steps leading to a result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of optical, electrical, or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.

[0042] In the following description, illustrative embodiments will be described with reference to acts and symbolic representations of operations (e.g., in the form of flowcharts) that may be implemented as program modules or functional processes including routines, programs, objects, components, data structures, etc., that perform particular tasks or implement particular abstract data types and may be implemented using existing hardware. Such existing hardware may include one or more Central Processing Units (CPUs), digital signal processors (DSPs), application- specific- in tegrated-circuits, field programmable gate arrays (FPGAs) computers or the like.

[0043] It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise, or as is apparent from the discussion, terms such as "processing" or "computing" or "calculating" or "determining" or "displaying" or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical, electronic quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.

[0044] Note also that the software implemented aspects of example embodiments are typically encoded on some form of tangible (or recording) storage medium or implemented over some type of transmission medium. The tangible storage medium may be magnetic (e.g., a floppy disk or a hard drive) or optical (e.g. , a compact disk read only memory, or "CD ROM"), and may be read only or random access. Similarly, the transmission medium may be twisted wire pairs, coaxial cable, optical fiber, or some other suitable transmission medium known to the art. Example embodiments are not limited by these aspects of any given implementation.

[0045] FIG. 1 is a block diagram of a system for controlling an electrical motor, according to an example embodiment. The electrical motor may be a motor such as a motor 117 (e.g., an interior permanent magnet (IPM) motor) or another alternating current machine. The motor 1 17 has a nominal dc bus voltage (e.g., 320 Volts). The nominal voltage is a named voltage. For example, a nominal voltage of the motor 117 may be 320 Volts, but the motor may operate at a voltage above and below 320 Volts. In an example embodiment, the system, aside from the motor 117, may be referred to as an inverter or a motor controller. The system for controlling the motor 117 may also be referred to as an IPM machine system.

[0046] The system includes electronic modules, software modules, or both. In an example embodiment, the motor controller includes an electronic data processing system 120 to support storing, processing and execution of software instructions of one or more software modules. The electronic data processing system 120 is indicated by the dashed lines in FIG. 1 and is shown in greater detail in FIG. 2. The electronic data processing system 120 may also be referred to as a controller for the motor 117.

[0047] In an example embodiment, a torque command generation module 105 is coupled to a d-q axis current generation manager 109 (e.g., d- q axis current generation look-up tables). The d-q axis current refers to the direct axis current and the quadrature axis current as applicable in the context of vector-controlled alternating current machines, such as the motor 117. The output of the d-q axis current generation manager 109 (d-q axis current commands iq_cmd and id_cmd) and the output of a current adjustment module 107 (e.g., d-q axis current adjustment module 107) are fed to a summer 1 19. In turn, one or more outputs (e.g., direct axis current data (id*) and quadrature axis current data (iq*)) of the summer 119 are provided or coupled to a current regulation controller 11 1. While the term current command is used, it should be understood that current command refers to a target current value.

[0048] The current regulation controller 111 is capable of communicating with the pulse-width modulation (PWM) generation module 112 (e.g., space vector PWM generation module). The current regulation controller 11 1 receives respective adjusted d-q axis current commands (e.g., id* and iq*) and actual d-q axis currents (e.g., id and iq) and outputs corresponding d-q axis voltage commands (e.g., vd* and vq* commands) for input to the PWM generation module 112.

[0049] In an example embodiment, the PWM generation module 112 converts the direct axis voltage and quadrature axis voltage data from two phase data representations into three phase representations (e.g., three phase voltage representations, such as va*, vb* and vc*) for control of the motor 1 17. va*, vb* and vc* may be referred to as inverter terminal voltages. Outputs of the PWM generation module 112 are coupled to an inverter circuit 188. The output stage of the inverter circuit 188 (e.g., output terminal voltages va, vb and vc) provides a pulse-width modulated voltage waveform or other voltage signal for control of the motor 1 17. In an example embodiment, the inverter circuit 188 is powered by a direct current (dc) voltage bus.

[0050] The inverter circuit 188 includes a semiconductor drive circuit that drives or controls switching semiconductors (e.g., insulated gate bipolar transistors (IGBT) or other power transistors) to output control signals for the motor 1 17. In turn, the inverter circuit 188 is coupled to the motor 1 17. The motor 117 is associated with a sensor 115 (e.g., a position sensor, a resolver or encoder position sensor) that is associated with the motor shaft 126 or the rotor. The sensor 1 15 and the motor 117 are coupled to the data processing system 120 to provide feedback data (e.g., current feedback data, such as phase current values ia, ib and ic), raw position signals, among other possible feedback data or signals, for example. Other possible feedback data includes, but is not limited to, winding temperature readings, semiconductor temperature readings of the inverter circuit 188, three phase voltage data, or other thermal or performance information for the motor 117.

[0051] The motor 117 is associated with the sensor 115 (e.g., a resolver, encoder, speed sensor, or another position sensor or speed sensors) that estimates at least one of an angular position of the motor shaft 126, a speed or velocity of the motor shaft 126, and a direction of rotation of the motor shaft 126. The sensor 115 may be mounted on or integral with the motor shaft 126. The output of the sensor 115 is capable of communication with the primary processing module 114 (e.g., position and speed processing module) . In an example embodiment, the sensor 115 may be coupled to an analog-to-digital converter (not shown) that converts analog raw position data or velocity data to digital raw position or velocity data, respectively. In other example embodiments, the sensor 115 (e.g., digital position encoder) may provide a digital data output of raw position data or velocity data for the motor shaft 126 or rotor.

[0052] A first output (e.g., position data Θ for the motor 117) of the primary processing module 114 is communicated to the phase converter 113 (e.g., three-phase to two-phase current Park transformation module) that converts respective three-phase digital representations of measured current into corresponding two-phase digital representations of measured current. A second output (e.g., speed data SD for the motor 117) of the primary processing module 1 14 is communicated to the calculation module 1 10 (e.g., adjusted voltage over speed ratio module).

[0053] An input of a sensing circuit 124 is coupled to terminals of the motor 117 for sensing at least the measured three-phase currents and a voltage level of the direct current (dc) bus (e.g., high voltage dc bus which may provide dc power to the inverter circuit 188). An output of the sensing circuit 124 is coupled to an analog-to-digital converter 122 for digitizing the output of the sensing circuit 124. In turn, the digital output of the analog- to-digital converter 122 is coupled to the secondary processing module 116 (e.g., dc bus voltage and three phase current processing module). For example, the sensing circuit 124 is associated with the motor 117 for measuring three phase currents (e.g., current applied to the windings of the motor 117, back EMF (electromotive force) induced into the windings, or both).

[0054] Certain outputs of the primary processing module 114 and the secondary processing module 116 feed the phase converter 113. For example, the phase converter 113 may apply a Park transformation or other conversion equations (e.g., certain conversion equations that are suitable are known to those of ordinary skill in the art) to convert the measured three- phase representations of current into two-phase representations of current based on the digital three-phase current data ia, ib and ic from the secondary processing module 116 and position data Θ from the sensor 1 15. The output of the phase converter 1 13 module (id, iq) is coupled to the current regulation controller 1 11.

[0055] Other outputs of the primary processing module 114 and the secondary processing module 116 may be coupled to inputs of the calculation module 110 (e.g., adjusted voltage over-speed ratio calculation module). For example, the primary processing module 114 may provide the speed data SD (e.g., motor shaft 126 speed in revolutions per minute), whereas the secondary processing module 116 may provide a measured (detected) level of the operating dc bus voltage Vdc of the motor 117 (e.g., on the dc bus of a vehicle). The dc voltage level on the dc bus that supplies the inverter circuit 188 with electrical energy may fluctuate or vary because of various factors, including, but not limited to, ambient temperature, battery condition, battery charge state, battery resistance or reactance, fuel cell state (if applicable), motor load conditions, respective motor torque and corresponding operational speed, and vehicle electrical loads (e.g., electrically driven air-conditioning compressor). The calculation module 110 is connected as an intermediary between the secondary processing module 116 and the d-q axis current generation manager 109. The output of the calculation module 110 can adjust or impact the current commands iq_cmd and id_cmd generated by the d-q axis current generation manager 109 to compensate for fluctuation or variation in the dc bus voltage, among other things.

[0056] The rotor magnet temperature estimation module 104, the current shaping module 106, and the terminal voltage feedback module 108 are coupled to or are capable of communicating with the d-q axis current adjustment module 107. In turn, the d-q axis current adjustment module 107 may communicate with the d-q axis current generation manager or the summer 119.

[0057] The rotor magnet temperature estimation module 104 estimates or determines the temperature of the rotor permanent magnet or magnets. In an example embodiment, the rotor magnet temperature estimation module 104 may estimate the temperature of the rotor magnets from, one or more sensors located on the stator, in thermal communication with the stator, or secured to the housing of the motor 117.

[0058] In another example embodiment, the rotor magnet temperature estimation module 104 may be replaced with a temperature detector (e.g., a thermistor and wireless transmitter like infrared thermal sensor) mounted on the rotor or the magnet, where the detector provides a signal (e.g., wireless signal) indicative of the temperature of the magnet or magnets.

[0059] In an example embodiment, the system may operate in the following manner. The torque command generation module 105 receives an input control data message, such as a speed control data message, a voltage control data message, or a torque control data message, over a vehicle data bus 118. The torque command generation module 105 converts the received input control message into torque control command data T_cmd.

[0060] The d-q axis current generation manager 109 selects or determines the direct axis current command and the quadrature axis current command associated with respective torque control command data and respective detected motor shaft 126 speed data SD. For example, the d- q axis current generation manager 109 selects or determines the direct axis current command and the quadrature axis current command by accessing one or more of the following: (1) a look-up table, database or other data structure that relates respective torque commands to corresponding direct and quadrature axes currents, (2) a set of quadratic equations or linear equations that relate respective torque commands to corresponding direct and quadrature axes currents, or (3) a set of rules (e.g., if-then rules) that relates respective torque commands to corresponding direct and quadrature axes currents. The sensor 115 on the motor 117 facilitates provision of the detected speed data SD for the motor shaft 126, where the primary processing module 114 may convert raw position data provided by the sensor 115 into speed data SD.

[0061] The current adjustment module 107 (e.g., d-q axis current adjustment module) provides current adjustment data to adjust the direct axis current command id_cmd and the quadrature axis current command iq_cmd based on input data from the rotor magnet temperature estimation module 104, the current shaping module 106, and terminal voltage feedback module 108.

[0062] The current shaping module 106 may determine a correction or preliminary adjustment of the quadrature axis (q-axis) current command and the direct axis (d-axis) current command based on one or more of the following factors: torque load on the motor 117 and speed of the motor 1 17, for example. The rotor magnet temperature estimation module 104 may generate a secondary adjustment of the q-axis current command and the d- axis current command based on an estimated change in rotor temperature, for example. The terminal voltage feedback module 108 may provide a third adjustment to d-axis and q-axis current based on controller voltage command versus voltage limit. The current adjustment module 107 may provide an aggregate current adjustment that considers one or more of the following adjustments: a preliminary adjustment, a secondary adjustment, and a third adjustment.

[0063] The terminal voltage feedback module 108 may further provide an additional feedback for adjustment to d-axis and q-axis current based on a terminal voltage threshold and estimates of the actual terminal voltages va, vb and vc provided by an estimation and threshold module 127, as will be described below. The estimation and threshold module 127 may further be coupled to outputs of the PWM generation module 112, which may provide the estimation and threshold module 127 with the inverter terminal voltages (va*, vb* and vc*). The estimation and threshold module 127 may estimate actual terminal voltages va, vb and vc of the inverter circuit 188 such that the inverter terminal voltages (va*, vb* and vc*) accurately resemble the actual output terminal voltages (va, vb and vc), as will be described further below. The estimation and threshold module 127 may further provide terminal voltage threshold, as will be described further below.

[0064] In an example embodiment, the motor 117 may include an interior permanent magnet (IPM) machine or a synchronous IPM machine

(IPMSM).

[0065] The sensor 115 (e.g., shaft or rotor speed detector) may include one or more of the following: a direct current motor, an optical encoder, a magnetic field sensor (e.g., Hall Effect sensor), magneto-resistive sensor, and a resolver (e.g., a brushless resolver). In one configuration, the sensor 115 includes a position sensor, where raw position data and associated time data are processed to determine speed or velocity data for the motor shaft 126. In another configuration, the sensor 115 includes a speed sensor, or the combination of a speed sensor and an integrator to determine the position of the motor shaft.

[0066] In yet another configuration, the sensor 1 15 includes an auxiliary, compact direct current generator that is coupled mechanically to the motor shaft 126 of the motor 117 to determine speed of the motor shaft 126, where the direct current generator produces an output voltage proportional to the rotational speed of the motor shaft 126. In still another configuration, the sensor 115 includes an optical encoder with an optical source that transmits a signal toward a rotating object coupled to the motor shaft 126 and receives a reflected or diffracted signal at an optical detector, where the frequency of received signal pulses (e.g., square waves) may be proportional to a speed of the motor shaft 126. In an additional configuration, the sensor 1 15 includes a resolver with a first winding and a second winding, where the first winding is fed with an alternating current, where the voltage induced in the second winding varies with the frequency of rotation of the rotor.

[0067] FIG. 2 is a block diagram of an electronic data processing system consistent with FIG. 1, according to an example embodiment. In FIG. 2, the electronic data processing system 120 includes an electronic data processor 264, a data bus 262, a data storage device 260, and one or more data ports (268, 270, 272, 274 and 276). The data processor 264, the data storage device 260 and one or more data ports are coupled to the data bus 262 to support communications of data between or among the data processor 264, the data storage device 260 and one or more data ports. [0068] In an example embodiment, the data processor 264 may include an electronic data processor, a microprocessor, a microcontroller, a programmable logic array, a logic circuit, an arithmetic logic unit, an application specific integrated circuit, a digital signal processor, a proportional-integral-derivative (PID) controller, or another data processing device.

[0069] The data storage device 260 may include any magnetic, electronic, or optical device for storing data. For example, the data storage device 260 may include an electronic data storage device, an electronic memory, non-volatile electronic random access memory, one or more electronic data registers, data latches, a magnetic disc drive, a hard disc drive, an optical disc drive, or the like.

[0070] As shown in FIG. 2, the data ports include a first data port 268, a second data port 270, a third data port 272, a fourth data port 274 and a fifth data port 276, although any suitable number of data ports may be used. Each data port may include a transceiver and buffer memory, for example. In an example embodiment, each data port may include any serial or parallel input/ output port.

[0071] In an example embodiment as illustrated in FIG. 2, the first data port 268 is coupled to the vehicle data bus 118. In turn, the vehicle data bus 1 18 is coupled to a controller 266. In one configuration, the second data port 270 may be coupled to the inverter circuit 188; the third data port 272 may be coupled to the sensor 1 15; the fourth data port 274 may be coupled to the analog-to-digital converter 122; and the fifth data port 276 may be coupled to the terminal voltage feedback module 108. The analog-to- digital converter 122 is coupled to the sensing circuit 124.

[0072] In an example embodiment of the data processing system 120, the torque command generation module 105 is associated with or supported by the first data port 268 of the electronic data processing system 120. The first data port 268 may be coupled to a vehicle data bus 118, such as a controller area network (CAN) data bus. The vehicle data bus 1 18 may provide data bus messages with torque commands to the torque command generation module 105 via the first data port 268. The operator of a vehicle may generate the torque commands via a user interface, such as a throttle, a pedal, the controller 266, or other control devices. [0073] In some example embodiments, the sensor 115 and the primary processing module 114 may be associated with or supported by a third data port 272 of the data processing system 120.

[0074] Referring back to FIG. 1 and as described above, the PWM generation module 112 converts the direct axis voltage and quadrature axis voltage data from two phase data representations into three phase representations (e.g., three phase voltage representations, such as va*, vb* and vc*) for control of the motor 117, for example, va*, vb* and vc* may be referred to as inverter terminal voltages. Outputs of the PWM generation module 112 are coupled to an inverter circuit 188 coupled to the system processor 120.

[0075] FIG. 3 illustrates an inverter circuit outputting control signals to an electrical motor, according to an example embodiment. The inverter circuit 188 includes electrical components including, but not limited to, switching semiconductors (330-331, 334-335 and 338-339), diodes (332- 333, 336-337 and 340-341), motor phase impedance 343, a dc-bus voltage 342 to generate, modify and control pulse-width modulated signals or other alternating current signals (e.g., pulse, square wave, sinusoidal, or other waveforms) applied to the motor 1 17 of FIG. 1.

[0076] To prevent shoot through at the output of the inverter circuit

188, a dead time or blanking time is introduced in a PWM switching, which may cause mismatching between the d/q-axis voltage commands vd* and vq* (converted into three phase inverter terminal voltages va*, vb* and vc* via the pulse width modulation generation module 112) and the actual terminal voltages (e.g., va, vb and vc). During the dead time, neither the top switch nor the bottom switch of any given phase of the inverter circuit 188 conducts. In one example embodiment, switches 330, 334 and 338 constitute the top switches of one of the phases A, B and C, respectively, while switches 331, 335 and 339 constitute the bottom switches of one of the phases A, B and C, respectively.

[0077] During the dead time, the actual terminal voltages va, vb and vc are determined based on the direction of current flowing through one of the top or bottom diodes of one of the phases (e.g., diodes 332 or 333 corresponding to phase A). The dead time impact on the mismatching between the d/q-axis voltage commands vd* and vq* (converted into three phase inverter terminal voltages va*, vb* and vc* via the pulse width modulation generation module 1 12) and the actual terminal voltages va, vb and vc, may also depend on other factors including, but not limited to, the PWM switching frequency as the percentage ratio of a fixed dead time period of a PWM period varies as the PWM switching frequency changes, and motor operating mode. For example, when the IPM machine 1 17 is running in motoring mode, the actual inverter terminal voltage is less than the d / q-axis voltage commands, while when the motor is running in braking mode, the actual inverter terminal voltage is higher than the d/q-axis voltage commands. As a result, the d/q-axis commands may not be a good indicator of the actual terminal voltage indicator due to the described mismatching.

[0078] Voltage drops across switches and diodes of the inverter circuit

188 also contribute to the mismatching. For example, when one of the top or bottom switches of any given phase of the inverter circuit 188 conducts, there may be a voltage drop across a switch and /or a diode associated with one of the phases. For example, when the top switch 330 associated with phase A conducts, there may be a voltage drop across the switch 330 or the diode 332, which may be referred to as VIGBT of switch 330 or Vdiode of diode 332, respectively.

[0079] Therefore, accurately estimating the actual terminal voltages va, vb and vc enables the system to account for the mismatching between (va*, vb* and vc*) and (va, vb and vc) and accordingly adjusting the d/q-axis current command. The adjustment may in turn enable compensating for the extra high terminal voltage at the machine thus assuring motor control stability.

[0080] The estimation of the actual terminal voltages and adjustment of the d/ q-axis current commands will be described below with reference to FIG. 3, as described above, as well as FIGS. 4-8.

[0081] FIG. 4 illustrates particular modules, including an estimation and threshold module of the system shown in FIG. 1 , according to an example embodiment. In particular, FIG. 4 illustrates the estimation and threshold module 127. The estimation and threshold module 127 may include an estimator 444 for estimating a three-phase line to negative rail averaging voltage (V A N, VbN and V C N) , as will be described below. The estimation and threshold module 127 may further include a filter 445 for deriving an actual line-to-line voltage from the estimated line to negative rail voltage, as will be described below. The estimation and threshold module 127 may further include a threshold calculation module 446, which calculates a terminal voltage threshold, as will be described below. The terminal voltage threshold may then be used in determining a terminal voltage feedback, as will be described below. Furthermore, FIG. 4 illustrates the terminal voltage feedback module 108 shown in FIG. 1 , which determines the terminal voltage feedback based on the terminal voltage threshold and the actual line-to-line voltage, as will be described below. FIG. 4 also illustrates the current adjustment module 107, shown in FIG. 1, which adjusts the d/q-axis current commands based on the terminal voltage feedback, as will be described below.

[0082] As discussed earlier, the modules depicted in FIG. 4 may be executed by the system processor 120, shown in FIG. 1 , and implemented on a variety of hardware including, but not limited programmable logic devices such as FPGAs.

[0083] FIG. 5 illustrates a method carried out by the estimation and threshold module shown in FIG. 4, according to an example embodiment. At S550 , the system processor 120, via estimator 444 shown in FIG. 4, determines a plurality of instantaneous voltages. The estimator 444 utilizes inputs such as the plurality of voltages using a plurality of data including, but not limited to, a dc-bus voltage, drive signals for driving each phase of the inverter circuit 188, the instantaneous current polarity, a voltage across at least one switch associated with the corresponding phase of the inverter circuit 188 (e.g., V ce across either the switch 330 or switch 331 associated with phase A, V ce across either the switch 334 or switch 335 associated with phase B, V ce across either the switch 338 or switch 339 associated with phase C, etc. , as shown in FIG. 3 and described above). Hereinafter, a process for determining the plurality of instantaneous voltages will be described, with reference to FIGS. 6A-B and 7 as well.

[0084] FIGS. 6A-B illustrate a pulse width modulation (PWM) cycle of the pulse width modulation module of FIG. 1 , for a single control mode and a double control mode, according to an example embodiment. V X may be calculated over one PWM cycle or one control period. A single PWM cycle may be defined as the time from a rising edge on the signal to the next rising edge of the signal. For example, 661 to 662 defines one PWM cycle in FIG. 6A. Moreover, FIG. 6A illustrates a single control mode, in which case there is one control signal per PWM cycle. Therefore, in one example embodiment where the PWM switching frequency is 5kHz and measurements are sampled at 25MHz (e.g., 40ns), then there will be 5000 counts (e.g. measurements) of V X N per each control period.

[0085] On the other hand, FIG. 6B depicts a double control mode, in which case there are two control signals per PWM cycle (e.g. , 1 control signal per half of a single PWM cycle, where PWM cycle is defined from 663 to 665 (e.g. , same as the PWM cycle in FIG. 6A), and half a cycle is defined as 663 to 664 and 664 to 665 as shown in FIG. 6B. Therefore, in the example embodiment where the PWM switching frequency is 5kHz and measurements are sampled at 25 MHz (e.g. , 40ns), then for the case of double control mode, there will be half as many counts (e.g. , measurements) of V X (e.g. 2500) in each control period . As can be seen from FIGS. 6A-B PWM cycles may not be the same and may differ from one cycle to another due to, for example, varying PWM switching frequency.

[0086] Let V X denote an instantaneous voltage associated with each phase of the inverter circuit 188 , where X may be any one of A, B or C, shown in FIG. 3 (e.g. , VAN, VBN and VCN,) . Then for every count, the system processor 120, in one example embodiment, determines a Vxu for each phase, based on a current polarity in the inverter circuit 188. FIG. 7 illustrates an instantaneous current polarity in an inverter circuit of the system, according to an example embodiment. The system processor 120 determines the V X as follows:

Ix is positive and top switch gate drive signal is On, then V XN = Vd C - VI G BT

I X N is positive and top switch gate drive signal is Off, then V xN = - Vdiode

IxN is negative and bottom switch gate drive signal is On, then V X N = V I G B T

I XN is negative and bottom switch gate drive signal is Off, then V XN = Vdc + Vdiode

At any given one time for a given phase of the inverter circuit 188, either the top or bottom switch is turned on or they may both be off (e.g. , dead time or blanking time as described above). For example, the length of time, during each PWM cycle, where the top or bottom switches are turned on may depend on a duty cycle associated with each switch of each phase in a given PWM cycle. For example, the duty cycle of switch 550 associated with phase A may be %40 percent, which means that in any given PWM cycle, switch 330 is on for %40 percent of the time while switch 331 is on for 60% of the time in an ideal case without deadtime inserted. However, as discussed above, in any given PWM cycle, a very small amount of dead time is introduced during which neither the top or bottom switch is turned on (e.g., 3 micro seconds), in order to prevent shoot through.

[0087] Furthermore, the switches may be turned on or off via the gate drive signals /voltages, which may constitute relatively small amount of voltage needed to turn on /off a given transistor (e.g. , the IGBT transistor operating as switch 330).

[0088] Referring back to determining the plurality of instantaneous voltages at S550, the system processor 120 may perform the following. For example, when -X N is larger than the positive current threshold 770, then phase X current polarity is positive which means either the top switch of phase X or the bottom diode of phase X conducts. On the other hand, when IXN is smaller than the negative current threshold 771, then phase X current polarity is negative which means either the bottom switch of phase X or the top diode of phase X conducts. The positive and negative current thresholds 770 and 771 are design parameters, which may be determined based on empirical studies (e.g. , ± 5A, ± 10A, +20A, etc.).

[0089] Therefore, as an example, when IAN is positive, either switch

330 or diode 333 of FIG. 3 conducts. The determination of whether switch 330 or diode 333 conducts may depend on the switch gate drive signal for phase A. Accordingly, if the top switch gate drive signal is On, then switch 330 conducts, which means that VAN = Vdc - VIGBT. However, if the top switch drive signal is Off, then diode 333 conducts, which means that VAN = - Vdiode.

[0090] In yet another example embodiment, when IAN is negative, either switch 331 or diode 332 of FIG. 3 conducts. The determination of whether switch 331 or diode 332 conducts may depend on the switch gate drive signal for phase A. Accordingly, if the bottom switch gate drive signal is On, then switch 331 conducts, which means that VAN = VIGBT. However, if the bottom switch drive signal is Off, then diode 332 conducts, which means that VAN = Vd C + Vdiode- VB S a d VCNS may be determined in a similar manner.

[0091 ] In yet another example embodiment, the system processor 120 determines the instantaneous voltages VXN based on the voltage V ce across any of the switches 330, 331 , 334, 335, Yes338 or 339 shown in FIG. 3. The voltage Vce for the top switch of each phase of the inverter circuit 188 (e.g., switches 330, 334 and 338) may be referred to as Vcejop, while the voltage V CE for the bottom switch of each phase of the inverter circuit 188 (e.g. , switches 331 , 335 and 339) may be referred to as V ce bottom- Then,

Vcejop is low and top switch gate drive signal is On, then V xN = Vd C - V I Q B T Vce top is low and top switch gate drive signal is Off, then V X = Vd C + Vdiode ce bottom is low and bottom switch gate drive signal is On, then V x x = V I Q B T Vcejrottom is low and bottom switch gate drive signal is Off, then V X N = - Vdiode whether Vcejop or V C e > ottom is low or not may refer to whether V ce jo P or Vcej»ttom are low enough such that the corresponding switch is in a conducting state. For example, each one of V ce _top and V ce _bottom of a given phase may be compared to a voltage threshold (e.g. , 5V) to determine whether Vcejop or Vcejoottom is high or low. The voltage threshold may be a design parameter determined based on empirical studies.

[0092] Therefore, as an example, when the top switch (e.g. , switch

330) is closed and conducting for phase A of the inverter circuit 188 (e.g., Vcejop is low) and the top switch gate drive signal is On, then VAN = Vdc - ViGBT- However, if the top switch drive signal is Off, then switch 330 is off, while Vcejop is still low, which means that the current flows through the diode 332 and therefore VAN = Vd c + Vdiode.

[0093] In yet another example embodiment, when the bottom switch

(e.g. , switch 331) is closed and conducting for phase A of the inverter circuit 188 (e.g. , VcejMttom is low) and the bottom switch gate drive signal is On, then VAN = VIGBT- However, if the bottom switch drive signal is Off, then switch 331 is off, while Vcejrattom is still low, which means that the current flows through the diode 333 and therefore VAN = - Vdiode. VBNS nd VCNS may be determined in a similar manner.

[0094] Referring back to the calculation of the instantaneous voltages

V X based on the instantaneous current polarity, there may be a scenario, as shown in FIG. 7, where the polarity of the instantaneous current for a given phase of the inverter circuit 188 may be in between the positive current threshold 770 and the negative current threshold 771 due to, for example, a drifting CT offset. A current polarity in between thresholds 770 and 771 may be indicative of an uncertain phase current polarity. As a result, the instantaneous current polarity may not be suitable for determining the instantaneous voltages. Therefore, in one example embodiment, when the instantaneous current polarity is uncertain (e.g. , in between thresholds 770 and 771), the system processor 120 calculates the instantaneous voltages based on V ce as described above.

[0095] In yet another example embodiment, the system processor 120 may use any of the two described methods for determining the plurality of instantaneous voltages (e.g. based on instantaneous current polarity and Vce), interchangeably and or simultaneously. The system processor 120 may augment the data obtained using the instantaneous current polarity with the data obtain based on Vce, in order to obtain a better estimate of the actual output terminal voltages.

[0096] Once the processor 120 determines the plurality of instantaneous voltages (e.g. , 5000 measurement for VAN, V B N and V C N in a single control mode shown in FIG. 6A or 2500 measurement for VAN, VBN and VCN in a double control mode shown in FIG. 6B), the processor 120, at step S551 , averages the instantaneous voltages over one active current regulation interval. One active current regulation interval may be a single PWM cycle (in a single control mode) or half a PWM cycle (in a double control mode) .

[0097] The processor 120 may average the instantaneous voltages

(also referred to as line-to-negative rail averaging voltage), VXN, based on:

1 k=l where T is the total number of counts/measurement samples per PWM cycle or per control interval (e.g. , 5000 counts per PWM cycle and per control interval in a single control mode or 2500 counts per control mode in a double control mode(assuming a frequency of 5kHz and a sampling rate of 25mHz (e.g. , 40ns)) .

[0098] At S552, the system processor 120 determines a terminal voltage vector space using the averaged instantaneous voltages VXN. The processor 120 determines the terminal voltage vector space based on:

J

V = - . (V + V

The processor 120 splits the real and imaginary parts of the space vector V s , in order to calculate the magnitude of the space vector V s , based on: V s m! = - · (Τ Μ + V BN · cos(— ) + V CN · cos(— ))

By calculating the magnitude of the space vector V S , the processor 120 determines the line-to-neutral terminal voltage peak (S553) based on:

The line -to-neutral terminal voltage peak may be designated as v an , Vbn and Vcn. Thereafter, the processor 120 may determine the actual line-to-line fundamental root mean square (rms) voltage (e.g. , actual terminal voltage) (S554) based on:

At S555, the system processor 120 may filter the determined actual terminal voltage Vime-une-rms) - The system processor 120 may filter the determined actual terminal voltage because the determined actual terminal voltage may include undesired oscillations . Therefore, in order to provide a smoother control feedback signal, a filtering may be performed to eliminate the undesired oscillations. In one example embodiment, the filtering may be based on low-pass filtering of the determined actual line-to-line voltage, where low-pass filtering may constitute calculating a moving average of the determined actual line-to-line fundamental rms voltage (e.g. , actual terminal voltage).

[0099] At S556, the system processor 120, via the threshold calculation module S332, may determine a terminal voltage threshold such as the threshold calculator 446 of FIG. 4. The threshold calculator utilizes inputs including, but not limited to, an operating mode of the AC machine (e.g. , the IPM machine) and a dc bus voltage of the AC machine, as shown in FIG. 4. For example, a flexibility factor η, may be utilized such that the system processor 120 determines the terminal voltage threshold by multiplying the flexibility factor η with a theoretical maximum line-to-line terminal voltage (e.g. Vd C /sqrt(2)), where sqrt(2) refers to the mathematical operation for determining a square root of 2. The flexibility factor η may be set differently in the motoring mode as compared to the breaking mode. For example, η may be set to 0.91 in the motoring mode and 0.92 in the breaking mode. The choice of η for each operating mode may be a design parameter determined based on empirical studies.

[00100] At S557, the system processor 120, via the terminal voltage feedback module 108, shown in FIGS. 1 and 4, determines a terminal voltage feedback. The system processor 120 may determine the terminal voltage feedback by determining an error based on the filtered actual line-to- line voltage and the terminal voltage threshold. The system processor 120 may determine the error by comparing the filtered actual line-to-line voltage with the determined terminal voltage threshold and accordingly determining the difference between the filtered actual line-to-line voltage and the determined terminal voltage threshold.

[00101 ] If the filtered actual line-to-line voltage exceeds the terminal voltage threshold, the processor 120, via the current adjustment module 107 and using the error as a feedback parameter, may adjust the d-axis current command by decreasing the d-axis current command (S558).

[00102] However, if the actual line-to-line voltage is lower than the terminal voltage threshold, the processor 120 makes no adjustment in the d- axis current command (S559). At S560, the processor 120 adjusts the q- axis current command based on the adjustment of the d-axis current command so as to keep the total current magnitude constant. Therefore, if no adjustment is made to the d-axis current command at S559, then no subsequent adjustment to q-axis current command is made at S560, either.

[00103] FIG. 8 illustrates adjustments to the df q-axis current magnitudes and the corresponding angle such that the total current magnitude is kept constant, according to an example embodiment. Keeping the total current magnitude 880 the same (by adjusting the d-axis current command 882 and q-axis current command 883) while changing the gamma angle 881 may enable a better control of the machine terminal voltage and avoiding excessive heating in motor windings on the inverter circuit 188. [00104] Referring to FIGS. 1 and 3, in one example embodiment, the current adjustment module 107 may be executed by the system processor 210 in order to determine the d/q-axis current adjustment command and the gamma angle (designated as id adjustment command, iq adjustment command and Gamma angle adjustment in FIG. 3).

[00105] The adjustments to the d/q-axis current commands such that the total current magnitude is kept constant may be based on the following calculations:

s _ cmd Y d _ cmd _ raw q _ cmd _ raw ( 1 ) where l s 880 of FIG. 8 is the total current magnitude. The adjustment to the d-axis current command 882 may be determined based on:

^ d cmd new ^ ά cmd raw ^ d _cmd _adjusted (2)

Therefore, given (1) and (2), the adjustment to the q-axis current command 883 may be determined based on:

/ q _ cmd _ new = γ s cmd - I d _ cmd new

[00106] Further details regarding how the processor 120 may determine the error as well as the adjustments to the d/q-axis current command are described in another patent application by the inventors (U.S. Pub. 2012/0217923), incorporated herein by reference, in its entirety.

[00107] As described above, the inventors have discovered that estimating the actual line-to-line voltage (e.g., actual terminal voltage) at the output of the inverter circuit 188 and accordingly adjusting the d/q-axis current command serve as a better output torque estimator and thus may close the torque control loop for controlling the underlying AC machine.

[00108] Example embodiments being thus described, it will be obvious that the same may be varied in many ways. Such variations are not to be regarded as a departure from the spirit and scope of example embodiments,