# Patent

## Title
Methods and apparatus for generating current commands for an interior permanent magnet (IPM) motor

## Abstract

In one aspect, an apparatus includes a motor and inverter configured to provide input power to the motor. The apparatus may also include a data store comprising at least one entry including a first torque command, a first motor speed, and a first DC voltage value, where the first torque command and the first motor speed and the first DC voltage value are associated with a first current output and a processor. The processor receives a torque input, a DC voltage input, and a motor speed input and identifies the current output associated with the torque input, the DC voltage input, and the motor speed input based on another motor speed different than the motor speed input and another DC voltage different than the DC voltage input and the motor speed input, and output the determined current output to cause the inverter to provide the input power to the motor.

## Background
BACKGROUND
Field of the Invention
This disclosure relates to methods, systems, and apparatus of driving a motor, and more particularly, to methods for accurately generating current output commands when operating in a field-weakening region of the motor based on a reduced number of look-up tables.
Description of the Related Art
Electric motor control systems often involve the generation and storage of a plurality of data points for given input signals and corresponding output commands or values to select based on the input signals. In some embodiments, the data points may be stored in a data store, which may be conceptually formed as one or more lookup tables each corresponding to a particular DC input voltage (such as from a battery) to an inverter that generates 3-phase AC voltage inputs to the motor. In some implementations, a lookup table may exist for given increments of DC inverter input voltage through the voltage range of the DC inverter input that may be encountered during use of the motor. Each lookup table may be populated with a two-dimensional array of output current commands that control the inverter. Along one axis of each lookup table is a torque command value (e.g. a desired torque designated by the user of the motor), while along the other axis of each lookup table is a motor speed input (e.g. the rotation rate of the motor that exists at the time the torque command is received). Accordingly, the output current commands may correspond to a necessary command current in order to produce the torque command given a particular existing motor speed input and DC inverter input voltage.
The output current commands populating each lookup table may correspond to the particular values of voltage input, motor speed input, and torque command input. For example, at 50V, a motor speed input of 5000 RPM and a torque command input of 100 Nm may produce currents P1, whereas if the inverter input is 100V, the same motor speed and torque command inputs may produce currents P2, where currents P1 and P2 are different. The more lookup tables that exist (e.g., the more voltages that have associated lookup tables), the more accurate or granular the output current commands can be. If the DC inverter input voltage is a voltage that is between two voltages for which lookup tables are available, a linear interpolation process may be used to produce a current command output that is appropriately also between two lookup table entries in the higher and lower DC input voltage tables adjacent to the actual DC inverter input voltage.
However, this linear interpolation process may not be possible to accurately perform given the lookup tables in memory at high motor speeds and/or high torque command input. Additionally, creating these lookup tables takes substantial time and effort as they are based on experimental measurements made during motor testing.
SUMMARY OF THE INVENTION
The systems, methods, and apparatus of this disclosure each have several innovative aspects, no single one of which is solely responsible for the desirable attributes disclosed herein.
One innovative aspect of the subject matter described in this disclosure can be implemented in an apparatus. The apparatus comprises a motor, an inverter configured to provide input power to the motor, and a DC power bus configured to provide input power to the inverter. The apparatus further comprises a data store comprising information defining inverter currents for producing different motor torque outputs at different motor speeds and different DC power bus voltages. The apparatus also comprises a processor. The processor is configured to receive a torque command, a DC power bus voltage measurement, and a motor speed measurement. The processor is further configured to determine, using the data store, an inverter current command based at least in part on the torque command, the DC power bus voltage measurement, and the motor speed measurement, wherein the determining is further based at least in part on a motor speed value different than the motor speed measurement and a DC power bus voltage value different than the DC power bus voltage measurement. The processor is also further configured to control the inverter based at least in part on the determined inverter current command.
Another innovative aspect of the subject matter described in this disclosure can also be implemented in a method of controlling torque output by a motor in accordance with torque commands. The method comprises storing information defining inverter currents for producing different motor torque outputs at different motor speeds and DC power bus voltages in a data store. The method also comprises receiving a torque command, a DC power bus voltage measurement, and a motor speed measurement. The method further comprises determining, using the stored information, an inverter current command based at least in part on the torque command, the DC power bus voltage measurement, and the motor speed measurement, wherein the determining is further based at least in part on a motor speed value different than the motor speed measurement and a DC power bus voltage value different than the DC power bus voltage measurement. The method further also comprises controlling an inverter based at least in part on the determined inverter current command.
Another innovative aspect of the subject matter described in this disclosure can also be implemented in an apparatus An apparatus for controlling torque output by a motor in accordance with torque commands. The apparatus comprises means for driving, means for providing power to the driving means, and means for providing input power to the power providing means. The apparatus also comprises means for storing information that defines inverter currents for producing different motor torque outputs at different motor speeds and DC power bus voltages and means for receiving a torque command, a DC power bus voltage measurement, and a motor speed measurement. The apparatus further comprises means for determining, using the stored information, an inverter current command based at least in part on the torque command, the DC power bus voltage measurement, and the motor speed measurement, wherein the determining is further based at least in part on a motor speed value different than the motor speed measurement and a DC power bus voltage value different than the DC power bus voltage measurement. The method also further comprises means for controlling the storing means based at least in part on the determined inverter current command.



BRIEF DESCRIPTION OF THE DRAWINGS
The above-mentioned aspects, as well as other features, aspects, and advantages of the present technology will now be described in connection with various implementations, with reference to the accompanying drawings. The illustrated implementations, however, are merely examples and are not intended to be limiting. Throughout the drawings, similar symbols typically identify similar components, unless context dictates otherwise. Note that the relative dimensions of the following figures may not be drawn to scale.
FIG. 1 shows a block diagram of an exemplary motor drive control system, such as that used in an internal permanent magnet (IPM) motor drive system.
FIG. 2a shows a graph including motor torque curves for the IPM motor drive system at a plurality of voltages including both the constant torque and field weakening regions.
FIG. 2b shows a first lookup table (Vlow) of output current command values roughly corresponding to the Vlow motor torque curve of FIG. 2a. 
FIG. 2c shows a second lookup table (Vhigh) of output current command values roughly corresponding to the Vhigh motor torque curve of FIG. 2a. 
FIG. 3 shows a graph including constant torque curves, current constraints of the IPM motor drive system and voltage constraints of the IPM motor drive system.
FIG. 4a shows a graph including motor torque curves for the IPM motor drive system at a plurality of voltages indicating current lookup using an extrapolated motor speed.
FIG. 4b shows a first lookup table (Vhigh) of output current command values roughly corresponding to the Vhigh motor torque curve of FIG. 4a and showing the extrapolated motor speed for Vhigh that corresponds to the Vmeas and ωr.
FIG. 4c shows a second lookup table (Vlow) of output current command values roughly corresponding to the Vhigh motor torque curve of FIG. 4a and showing the extrapolated motor speed for Vlow that corresponds to the Vmeas and ωr.
FIG. 5 shows a graph including a current constraint circle of the IPM motor drive system and a voltage limit constraint of the IPM motor drive system.
FIG. 6 shows a block diagram of an exemplary motor drive control system, such as that used in an internal permanent magnet (IPM) motor drive system, similar to that of FIG. 1, including a field weakening correction system.
FIG. 7 depicts a graph including constant torque curves, two voltage constraint ellipses, and three points corresponding to three current output commands along a single constant torque curve.



DETAILED DESCRIPTION
The following description is directed to certain implementations for the purposes of describing the innovative aspects of this disclosure. However, a person having ordinary skill in the art will readily recognize that the teachings herein can be applied in a multitude of different ways. The described implementations may be implemented in any device, apparatus, or system that can be configured to drive an IPM, or similar, motor, whether in motion or stationary. More particularly, it is contemplated that the described implementations may be included in or associated with a variety of IPM or similar motor applications such as, but not limited to: electric pumps, electric vehicles, appliances, and a variety of electric motor driven devices. Thus, the teachings are not intended to be limited to the implementations depicted solely in the Figures, but instead have wide applicability as will be readily apparent to one having ordinary skill in the art.
Various industries and applications commonly use closed loop current control to regulate motor torque in high performance motor drives. Closed loop current control systems may respond to constantly changing conditions in the system operating environment. For example, when driving electric motors, the closed loop current control systems may provide for continual monitoring and control over operation of the electric motor via feedback and various conditions monitoring. The closed loop current control systems may automatically adjust inputs and aspects of the system to maintain desired states.
A plurality of lookup tables in memory may store current commands based on maximum torque per amp (MTPA) for the IPM motor drive system. In some embodiments, the memory may comprise a data store, within which the various data entries may be formatted or structured in the lookup tables. Initial testing processes may generate the lookup tables. The inputs to the lookup tables may be torque command, measured DC voltage, and measured motor speed. The output of the lookup table may be the current commands used to drive the IPM motor drive system (for example, (id, iq) current values). The current commands may correspond to the voltages that are input to an inverter for driving the motor. Each lookup table may correspond to a different voltage, where the voltage corresponds to a DC voltage bus measurement at the inverter that drives the motor. The initial testing processes may generate the lookup tables by operating the IPM motor drive system at each of the torque command inputs and motor speed inputs of the lookup table for each voltage, varying the voltage within a range of available voltages for the IPM motor drive system to generate the plurality of lookup tables for each varied voltage within the range of available voltages.
In operation of the IPM motor drive system, when the torque command is received (for example, based on a desired acceleration, etc.), along with the measured DC voltage and the motor speed, the appropriate lookup table is selected from the plurality of lookup tables based on the measured DC voltage (e.g., when the measured DC voltage is 100V, the 100V lookup table is selected). The system then uses the torque command and the measured motor speed within the selected lookup table to identify (e.g., lookup) the current commands to be output to the IPM motor drive system. Examples of two lookup tables are shown in Tables 1 and 2 below. When the measured DC voltage is 100V, the torque command is 75, and the motor speed is 125, the Table 1 lookup table will be selected and will output (id5, iq5). If the measured DC voltage is 150V, the torque command is 100, and the motor speed is 130, the Table 2 lookup table will be selected and will output (id19, iq19). The current command has two components, an id component and an iq component.







TABLE 1







Lookup Table for V = 100 V









ω












T
100
125
130
















50
id1, iq1
id2, iq2
id3, iq3



75
id4, iq4
id5, iq5
id6, iq6



100
id7, iq7
id8, iq8
id9, iq9

















TABLE 2







Lookup Table for V = 150 V









ω












T
100
125
130
















50
id11, iq11
id12, iq12
id13, iq13



75
id14, iq14
id15, iq15
id16, iq16



100
id17, iq17
id18, iq18
id19, iq19










FIG. 1 shows a block diagram of an exemplary motor drive control system, such as that used in an internal permanent magnet (IPM) motor drive system. The IPM motor drive system 100 may include various components or representative components, such as MTPA lookup tables (lookup tables) 102, current regulator 104, 2-to-3-phase converter 106, pulse width modulated (PWM) inverter 108, IPM motor 110, position sensor 112, speed detector 114, 3-to-2-phase converter 116, voltage meter 118, torque command input 120, position feedback 122, motor speed feedback 124, 3-phase current feedback 126, 2-phase current feedback 128 calculated from the 3-phase measured current values, DC voltage measurement 130, and output current commands 132. In some embodiments, the DC voltage measurement 130 corresponds to the DC voltage bus measurement at the inverter 108. The output current commands 132 are shown in FIG. 1 having two values (i*ds, i*qs); however, for simplicity, the two values of the output current commands 132 will be referred to herein as a single output current command 132. The lookup tables 102 may correspond to the lookup tables described above in relation to Tables 1 and 2 and may have the torque command input 120, the motor speed feedback 124, and the DC voltage measurement 130 as inputs. Accordingly, the appropriate lookup table 102 may be selected from the plurality of lookup tables 102 based on the DC voltage measurement 130, and the appropriate lookup table 102 may be used to identify the output current command 132 based on the torque command input 120 and the motor speed feedback 124. The output current command 132 may feed to the current regulator 104, which may feed a corresponding voltage to the 2-to-3-phase converter 106 based on the DC voltage measurement 130 and the 2-phase current feedback 128.
The 2-to-3-phase converter 106 can convert the 2-phase voltage signal output by the current regulator 104 to a three-phase voltage signal to be fed to the PWM inverter 108, which can output a generated three-phase AC voltage to the IPM motor 110. In some embodiments, the PWM inverter 108 may be connected to a DC voltage bus, which may provide input power to the PWM inverter 108. The position sensor 112 can generate the position feedback 122, which the speed detector 114 can use to generate the motor speed feedback 124. The 3-to-2-phase converter can use the position feedback 122 when converting the three-phase current feedback 126 to the two-phase current feedback 128, and the 2-to-3 phase converter can use the position feedback 122 when converting the two-phase output voltage from the current regulator 104 to the three-phase voltage input to the PWM inverter 108. The voltage meter 118 can generate the DC voltage measurement 130 at the PWM inverter 108. The PWM inverter 108 can convert the three-phase DC voltage received from the 2-to-3 phase converter to a three-phase AC voltage that powers the IPM motor 110. The lookup tables 102 and the current regulator 104 can both use the DC voltage measurement in identifying the output current command 132 and the conversion of the output current command to output voltages, respectively. Detailed operation of the functional blocks of the IPM motor drive system 100 is known in the art, and need not be described in detail.
As described above, a processor (not shown in FIG. 1) may use the lookup tables 102 to identify the output current command 132 given the torque command input 120, the DC voltage measurement 130, and the motor speed feedback 124. The processor may select the lookup table 102 that corresponds to the DC voltage measurement 130 when the DC voltage measurement is received with the command torque input 120 and the motor speed feedback 124. However, there may be instances when there is no lookup table 102 corresponding exactly to the DC voltage measurement 130. For example, the DC voltage measurement 130 may be 353V and there may only be lookup tables 102 for 350V and 355V. Accordingly, the processor may calculate by interpolation the output current command 132 for the DC voltage measurement 130 based on corresponding values in the existing 350V and 355V lookup tables 102.
When interpolating the output current command 132 based on lookup tables 102 corresponding to voltages that bound the DC voltage measurement 130 (Vmeas), the processor can first select the necessary lookup tables. The processor may select a first lookup table from the plurality of lookup tables 102 that bounds the Vmeas on the low side (e.g., the lookup table for a first voltage lower than the Vmeas having a lookup table) and a second lookup table that bounds the Vmeas on the high side (e.g., the lookup table for a first voltage higher than the Vmeas having a lookup table). Accordingly, for the example described above, the processor may select the first lookup table for Vlow, where Vlow=350V, and the second lookup table for Vhigh, where Vhigh=355V. Accordingly, Vlow<Vmeas<Vhigh. The interpolation may proceed by the processor first identifying Idlow in the first lookup table (Vlow) based on the torque command input 120 (Tcmd) and the motor speed feedback 124 (ωr), and then identifying Idhigh in the second lookup table (Vhigh) based on the torque command input 120 Tcmd and motor speed feedback 124 ωr. The processor then uses Equation 1 below to interpolate the output current command 132 Idmeas corresponding to the DC voltage measurement 130 (Vmeas):

Idmeas=Idlow+(Idhigh−Idlow)*(Vmeas−Vlow)/(Vhigh−Vlow)  (Equation 1)

The linear interpolation described above is applicable for any situations where the torque command input 120 (Tcmd) exists in both lower and higher (Vlow and Vhigh, respectively) lookup tables in relation to the DV voltage measurement 130. For example, the linear interpolation described would provide accurate current outputs for DC voltage measurements 130 within a constant torque region of the IPM motor. However, in some situations, the output current command 132 for a given torque command input 120 may only exist in a single lookup table (e.g., the second lookup table for Vhigh) because the torque command input 120 may be greater than the maximum torque for the Vlow lookup table at the motor speed feedback 124. Accordingly, interpolation becomes less feasible and more error prone because only one lookup table can be used to source the necessary values for Equation 1.
FIG. 2a shows a graph including motor torque curves for the IPM motor drive system at a plurality of voltages including both the constant torque and field weakening regions. The graph 200 depicts motor torque curves for the IPM motor 110 (FIG. 1) at the DC voltages Vlow (Tmax_low 206), Vmeas (Tmax_meas 208), and Vhigh (Tmax_high 210). The x-axis of the graph 200 depicts the motor speed (ωr) of the IPM motor 110, corresponding to the motor speed feedback 124 of FIG. 1, while the y-axis of the graph 200 depicts the torque command (Tm) 120 of the IPM motor 110, corresponding to the torque command 120 of FIG. 1. The graph 200 also shows a constant torque region 202, where the Vlow, Vmeas, and Vhigh voltages are capable of generating the same maximum torque command values at the same motor speeds. The graph 200 also shows a field weakening region 204, where the Vlow, Vmeas, and Vhigh voltages may generate different maximum torque command values at the same motor speeds.
FIG. 2b shows a first lookup table (Vlow) of output current command values roughly corresponding to the Vlow motor torque curve of FIG. 2a. The lookup table 250 shows a two dimensional array of output current commands (corresponding to the output current commands 132 of FIG. 1) having along one axis torque command (Tm) values and along the other axis motor speed (ωr r) inputs. The torque command axis ranges from 0 to τmax while the motor speed axis ranges from 0 to ωmax. Empty locations 252 correspond to torque command and motor speed combinations for which the corresponding voltage Vlow cannot generate the necessary output current command (e.g., the torque command 120 cannot be generated at the voltage Vlow and the motor speed feedback 124). Filled locations 254 correspond to torque command and motor speed feedback combinations at which the corresponding Vlow can generate the necessary output current command (e.g., the torque command 120 can be generated at the voltage Vlow and the motor speed feedback 124). As shown, the lookup table 250 depicts a more granular motor torque curve than the graph 200 of FIG. 2a for the Vlow DC voltage.
FIG. 2c shows a second lookup table (Vhigh) of output current command values roughly corresponding to the Vhigh motor torque curve of FIG. 2a. The features of lookup table 280 are similar to those described in relation to the lookup table 250 of FIG. 2b and will not be described again. As shown, the lookup table 280 depicts a more granular motor torque curve than the graph 200 of FIG. 2a for the Vhigh DC voltage, where the current command values of the Vlow lookup table 250 of FIG. 2b are each covered by the Vhigh lookup table 280.
When the torque command input 120 is less than the Tlow_max at the measured voltage (correspondingly less than the Thigh_max), the interpolation methods described above in relation to Equation 1 may function when a lookup table does not exist for Vmeas, so long as both the lookup tables 250 and 280 for the Vlow and Vhigh, respectively, include a value 254 for the combination of torque command input 120 and motor speed ωr. For example, at the points 218 (FIG. 2a) corresponding to Tcmd1 and Tcmd2 and ω1 and ω2, respectively, the torque command inputs 120 exists in both the Vlow and the Vhigh lookup tables, and thus the processor may use the Vlow and Vhigh lookup tables to interpolate the output current command 132 for Vmeas, where Vlow<Vmeas<Vhigh. The points 218 in FIG. 2a correspond to the locations 256 in FIGS. 2b and 2c. Since the locations 256 are filled in both the lookup tables 250 and 280, the processor may use interpolation to determine the output command current at for the torque command Tcmd, DC voltage measurement Vmeas, and motor speed ωr (because the output current command exists at these locations for both the lookup tables 250 and 280).
However, in the field weakening region 204, for example for a point 212 (FIG. 2a) at a commanded torque value Tcmd, the torque command does not exist in the Vlow lookup table for the speed ωr. Similarly, the location 258 in FIG. 2b is empty in the lookup table 250 (corresponding to Vlow) and filled in the lookup table 280 of FIG. 2c (corresponding to Vhigh). Accordingly, since the point 212 (location 258 of FIGS. 2b and 2c) is outside the motor torque curve of the Vlow (e.g., Tcmd exceeds the maximum torque (Tmax_low 214) at the Vlow DC voltage and the location 258 is empty) the processor cannot use linear interpolation to identify the output current command for the torque command Tcmd, DC voltage measurement Vmeas, and motor speed ωr. Accordingly, an alternate method of determining the output current command 132 for the point 212 (location 258) must be used.
FIG. 3 shows a graph including constant torque curves, current constraints of the IPM motor drive system and voltage constraints of the IPM motor drive system. The graph 300 shows current and voltage polar plots in d-q coordinate space. The graph 300 shows an ids axis in the x-axis direction and an iqs axis in the y-axis direction. The graph 300 also shows a circular polar plot (circular plot) 302 which represents a current constraint of the IPM motor drive system. The graph 300 shows elliptical polar plots (elliptical plots) 304, 306, and 308 representing voltage constraints of the IPM motor drive system. Torque lines 310 represent individual torque commands corresponding to different ids and iqs values that will generate the corresponding torque values. The torque along each of these torque lines 310 is constant. Point(s) of intersection and overlap of the elliptical plots 304, 306, and 308 and the torque lines 310 indicate that the voltages and speeds corresponding to the elliptical plots 304, 306, and 308 are capable of generating output current commands for the torque commands of the overlapping torque lines 310. The torque lines 310 correspond to the torque commands 120 (Tcmd of FIG. 1), the voltages of the elliptical plots 304, 306, and 308 correspond to the voltages of the lookup tables and the DC voltage measurement 130 (Vlow, Vhigh, Vmeas of FIG. 2), and the speed corresponds to the motor speed feedback 124 (FIG. 1).
The voltage determination equations of an IPM synchronous motor in a standard (d,q) state-space mathematical model reference frame are shown below in Equations 2. Equation 3 below calculates a torque of the same reference frame:




  
    
      
        
          
            V
            ds
          
          =
          
            
              
                R
                s
              
              ⁢
              
                i
                ds
              
            
            +
            
              
                L
                ds
              
              ⁢
              
                
                  d
                  
                    i
                    ds
                  
                
                
                  d
                  t
                
              
            
            -
            
              
                ω
                e
              
              ⁢
              
                L
                qs
              
              ⁢
              
                i
                ds
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            V
            qs
          
          =
          
            
              
                R
                s
              
              ⁢
              
                i
                qs
              
            
            +
            
              
                L
                qs
              
              ⁢
              
                
                  d
                  
                    i
                    qs
                  
                
                
                  d
                  t
                
              
            
            +
            
              
                ω
                e
              
              ⁢
              
                L
                ds
              
              ⁢
              
                i
                ds
              
            
            +
            
              
                ω
                e
              
              ⁢
              
                λ
                f
              
            
          
        
      
    
    
      
        (
        
          Equations
          ⁢
          
            
          
          ⁢
          2
        
        )
      
    
  
  
    
      
        T
        =
        
          
            3
            2
          
          ⁢
          
            
              n
              p
            
            ⁡
            
              (
              
                
                  
                    λ
                    f
                  
                  ⁢
                  
                    i
                    qs
                  
                
                +
                
                  
                    (
                    
                      
                        L
                        ds
                      
                      -
                      
                        L
                        qs
                      
                    
                    )
                  
                  ⁢
                  
                    i
                    qs
                  
                  ⁢
                  
                    i
                    ds
                  
                
              
              )
            
          
        
      
    
    
      
        (
        
          Equation
          ⁢
          
            
          
          ⁢
          3
        
        )
      
    
  




For these equations, Rs corresponds to the stator resistance, ωe is rotational speed of the electric motor, np is number of pole pairs, Vds and Vqs are d-axis and q-axis stator voltages, respectively, ids and iqs are d-axis and q-axis stator currents, respectively, and Lds and Lqs are the stator inductances in the d- and q-axes rotor reference frame, respectively. λf corresponds to a permanent magnet flux linkage (e.g., torque constant) and T corresponds to the motor torque.
A d-q set of axes referenced are the axes in a (d,q) coordinate system. The d-axis (the direct axis), generally corresponds to an axis of a rotor magnet pole. The q-axis, (the quad axis), generally includes the axis at an angle of 90 degrees from the d-axis. When the rotor is stationary, the (d,q) coordinate system is a stationary reference frame. When the rotor starts rotating, the system is a rotor reference frame where the (d,q) coordinate system rotates at the rotor speed.
At steady state, the derivatives of Equations 2 are zero and the Equations 2 simplify to form Equations 4 below:

Vds=Rsids−ωeLqsiqs 

Vqs=Rsiqs+ωeLdsids+ωeλf  (Equations 4)

Voltage and current ratings of the IPM motor and the PWM inverter may limit torque and speed of IPM motor controlled by the PWM inverter. The maximum phase voltage Vs_max may be determined based on the DC link voltage and may be calculated according to Equation 5 below:

Vds2+Vqs2≦Vs_max2  (Equation 5)

Thus, the maximum phase voltage Vs_max may correspond to the total voltage from the combination of the Vd and Vq voltages.

The maximum current Is_max available to the IPM motor and the PWM inverter limits the current of the inverter and the motor, shown by Equation 6.

ids2+iqs2≦Is_max2  (Equation 6)

Thus, the maximum phase current is_max may correspond to the total current from the combination of the id and iq currents.

Equations 4 may be inserted into Equation 6, and the stator resistance can generally be neglected in field-weakening regions and calculations where the rotational speed is high. Accordingly, Equation 7, which produces the voltage constraints, reduces as follows:




  
    
      
        
          
            
              
                L
                ds
                2
              
              ⁡
              
                (
                
                  
                    i
                    ds
                  
                  +
                  
                    
                      λ
                      f
                    
                    
                      L
                      ds
                    
                  
                
                )
              
            
            2
          
          +
          
            
              L
              qs
              2
            
            ⁢
            
              i
              qs
              2
            
          
        
        ≤
        
          
            (
            
              
                V
                
                  s
                  ⁢
                  _
                  ⁢
                  max
                
              
              
                
                  n
                  p
                
                ⁢
                
                  ω
                  r
                
              
            
            )
          
          2
        
      
    
    
      
        (
        
          Equation
          ⁢
          
            
          
          ⁢
          7
        
        )
      
    
  




The Vds2 term of Equation 5 is replaced with the Vds equation of Equations 4, while the Vqs2 term of Equation 5 is replaced with the Vqs equation of Equations 4. The Vs_max2 term on the right-hand side of the Equation 7 now depicts a ratio of maximum phase voltage and speed. The resulting ratio of the maximum phase voltage and speed may be replaced with various combinations of other voltages and speeds. From FIG. 3 described above, the point Tm2 corresponds to the current (id, iq) needed to generate the torque line 310a at the DC voltage measurement 130 Vmeas at the motor speed ωr. As shown, the ellipse 308 (corresponding to Vhigh, ωr) is larger than the ellipse 306 (corresponding to Vmeas, ωr), which is larger than ellipse 304 (corresponding to Vlow, ωr). The ellipse 308 may be adjusted to match the ellipse 306 by either reducing the voltage Vhigh and maintaining the speed CO, or maintaining the voltage Vhigh and increasing the speed ωr based on the voltage ellipse equations. Accordingly, the ωhigh can be calculated based on known Vmeas, Vhigh, and ωr via Equation 8 below, which comes from the voltage ellipse equations:




  
    
      
        
          ω
          high
        
        =
        
          
            
              V
              high
            
            
              V
              meas
            
          
          ⁢
          
            ω
            r
          
        
      
    
    
      
        (
        
          Equation
          ⁢
          
            
          
          ⁢
          8
        
        )
      
    
  




Accordingly, because the voltage constraint ellipse for Vmeas and ωr is the same size as the voltage ellipse for Vhigh and ωhigh, Equation 9 below may be generated from Equations 7 and 8:




  
    
      
        
          
            
              
                
                  L
                  ds
                  2
                
                ⁡
                
                  (
                  
                    
                      i
                      ds
                    
                    +
                    
                      
                        λ
                        f
                      
                      
                        L
                        ds
                      
                    
                  
                  )
                
              
              2
            
            +
            
              
                L
                qs
                2
              
              ⁢
              
                i
                qs
                2
              
            
          
          ≤
          
            
              (
              
                
                  V
                  meas
                
                
                  
                    n
                    p
                  
                  ⁢
                  
                    ω
                    r
                  
                
              
              )
            
            2
          
        
        =
        
          
            (
            
              
                V
                high
              
              
                
                  n
                  p
                
                ⁢
                
                  ω
                  high
                
              
            
            )
          
          2
        
      
    
    
      
        (
        
          Equation
          ⁢
          
            
          
          ⁢
          9
        
        )
      
    
  




Thus, the output current command at Vmeas may be determined based on the output current command at Vhigh for a higher speed ωhigh than ωr for the same torque command.

Similarly, as the ellipse 304 may be adjusted to match the ellipse 306 by either increasing the voltage Vlow and maintaining the speed ωlow or maintaining the voltage Vlow and decreasing the speed ωlow based on the voltage ellipse equations, the output current command at Vmeas may be determined based on the output current command at Vlow for a lower speed ωlow than ωr for the same torque command. Accordingly, the ωlow can be calculated based on known Vmeas, Vlow, and ωr via Equation 10 below, which also comes from the voltage ellipse equations:




  
    
      
        
          ω
          low
        
        =
        
          
            
              V
              low
            
            
              V
              meas
            
          
          ⁢
          
            ω
            r
          
        
      
    
    
      
        (
        
          Equation
          ⁢
          
            
          
          ⁢
          10
        
        )
      
    
  




Accordingly, because the voltage constraint ellipse for Vmeas and ωr is the same size as the voltage ellipse for Vlow and ωlow, Equation 11 below may be generated from Equations 7 and 10:




  
    
      
        
          
            
              
                
                  L
                  ds
                  2
                
                ⁡
                
                  (
                  
                    
                      i
                      ds
                    
                    +
                    
                      
                        λ
                        f
                      
                      
                        L
                        ds
                      
                    
                  
                  )
                
              
              2
            
            +
            
              
                L
                qs
                2
              
              ⁢
              
                i
                qs
                2
              
            
          
          ≤
          
            
              (
              
                
                  V
                  meas
                
                
                  
                    n
                    p
                  
                  ⁢
                  
                    ω
                    r
                  
                
              
              )
            
            2
          
        
        =
        
          
            (
            
              
                V
                low
              
              
                
                  n
                  p
                
                ⁢
                
                  ω
                  low
                
              
            
            )
          
          2
        
      
    
    
      
        (
        
          Equation
          ⁢
          
            
          
          ⁢
          11
        
        )
      
    
  




FIG. 4a shows a graph including motor torque curves for the IPM motor drive system at a plurality of voltages indicating current lookup using an extrapolated motor speed. The graph 400 includes many of the same features as graph 200 of FIG. 2 that will not be described again here. The graph 400 includes the point 212 at Tcmd and ωr. Based on the discussion above, since the point 212 is above the Tmax_low torque curve 214 for the Vlow lookup table, interpolation will not result in an accurate output current command for the given DC voltage measurement and motor speed feedback. However, using Equations 7 and 8 discussed above, the Vhigh lookup table may be used to determine the output current commands at the Vhigh voltage, ωhigh motor speed, and torque command Tcmd. Point 420 depicts the point at Vhigh having the speed ωhigh and the same torque command Tcmd. Accordingly, the Vhigh lookup table may be used with the speed ωhigh and the torque command Tcmd to identify the output current commands which, as shown by Equation 9 above, equates to the output current commands for the Vmeas at the speed ωr. Similarly, using Equations 10 and 11 discussed above, the Vlow lookup table may be used to determine the output current commands at the Vlow voltage, ωlow motor speed, and torque command Tcmd. Point 422 depicts the point at Vlow having the speed ωlow and the same torque command Tcmd. Accordingly, the Vlow lookup table may be used with the speed ωlow and the torque command Tcmd to identify the output current commands which, as shown by Equation 11 above, equates to the output current commands for the Vmeas at the speed ωr.
FIG. 4b shows a first lookup table (Vhigh) of output current command values roughly corresponding to the Vhigh motor torque curve of FIG. 4a and showing the extrapolated motor speed for Vhigh that corresponds to the Vmeas and ωr. The lookup table 480 can include many of the same features as lookup table 280 of FIG. 2 that will not be described again here. FIG. 4b shows how the Vhigh lookup table may be used to determine the output current command for the Vmeas, ωr, and Tcmd inputs where interpolation is not an option, as described above in relation to Equations 7-9. As noted above, given Equation 8, Vmeas, ωr, and Vhigh may be used to identify the speed ωhigh. Because the voltage constraint ellipse formed by the Vhigh, ωhigh will directly overlap with the voltage constraint ellipse formed by Vmeas, ωr, the output current command at Vhigh, ωhigh is equal to the output current command at Vmeas, ωr. Accordingly, the output current command of location 460 of the Vhigh lookup table (Vhigh, ωhigh) is equal to the output current command of (Vmeas, ωr) for the torque command Tcmd.
FIG. 4c shows a second lookup table (Vlow) of output current command values roughly corresponding to the Vhigh motor torque curve of FIG. 4a and showing the extrapolated motor speed for Vlow that corresponds to the Vmeas and ωr. The lookup table 450 can include many of the same features as lookup table 250 of FIG. 2 that will not be described again here. FIG. 4c shows how the Vlow lookup table may be used to determine the output current command for the Vmeas, ωr, and Tcmd inputs where interpolation is not an option, as described above in relation to Equations 10-11. As noted above, given Equation 10, Vmeas, ωr, and Vlow may be used to identify the speed ωlow. Because the voltage constraint ellipse formed by the Vlow, ωlow will directly overlap with the voltage constraint ellipse formed by Vmeas, ωr, the output current command at Vlow, ωlow is equal to the output current command at Vmeas, ωr. Accordingly, the output current command of location 440 of the Vlow lookup table (Vlow, ωlow) is equal to the output current command of (Vmeas, ωr) for the torque command Tcmd.
While the methods and apparatus for generating current commands for an interior permanent magnet (IPM) motor described above are discussed in relation and applicability to the field weakening region of the IPM motor, these same methods and apparatus function similarly in the constant torque region of the IPM motor. Accordingly, the current command identification within the constant torque region of the IPM described as currently being performed using lookup tables may instead be performed using the current command generation equations described above. Instead of interpolating the current commands as described by Equation 1 above, the current commands may instead by identified using Equations 9 and 11.
Use of Equations 9 and 11 to generate the current commands may reduce the number of lookup tables required. Reducing the number of lookup tables reduces the amount of memory dedicated to lookup tables, the time required to perform the initial testing processes used to generate the lookup tables, and the amount of time required to identify the current using the lookup tables, as less time is spent identifying appropriate lookup tables, etc. In some embodiments, the lookup tables stored in the memory may be replaced with two lookup tables, one for the lowest possible minimum voltage for the system and one for the highest possible maximum voltage for the control system. Based on these two lookup tables, the control system may generate the current commands for any voltage between the minimum and maximum voltages using Equations 9 and 11. The methods discussed herein may work for the entire torque speed range. In some embodiments, the lookup tables stored in the memory may be replaced with a single lookup table, for example at the maximum or minimum voltage for the control system. From the single lookup table, the Equations 7-9 or 10-11 may be used to identify the current commands for any DC voltage measurements. As discussed above, the output current command (ids, iqs) is ideal, estimated values identified during initial testing processes. Accordingly, these pre-calibrated and/or stored output current commands may not account for real world constraints. In some situations, the output current command (ids, iqs) may need to be corrected to avoid issues that may arise when current commands that exceed the voltage constraints of the IPM are applied to the IPM.
FIG. 5 shows a graph including a current constraint circle of the IPM motor drive system and a voltage limit constraint of the IPM motor drive system. The graph 500 includes a current constraint circle 502 (similar to the circular plot 302 of FIG. 3) and a voltage ellipse constraint 504 (similar to the elliptical plots 304, 306, and 308). Operating points for the IPM motor operating according to the constraints shown in graph 500 should be in the area where the current circle 502 and the voltage ellipse 504 overlap. Ideally, the (ids, iqs) current command output from the lookup tables discussed above should conform to the depicted current and voltage constraints (e.g., a point corresponding to the (ids, iqs) current command output should lie within the area of overlap) in order to maintain complete control of the motor at all speeds.
The graph 500 also includes the output current command (id_cmd, iq_cmd), which is shown as being on the perimeter of the current circle 502 but not on or within the voltage ellipse 504. Therefore, graph 500 depicts a scenario where the output current command (id_cmd, iq_cmd) (e.g., point 506) does not meet the voltage constraints. Errors that cause the output current command to lie outside the current and voltage constraints may include error in interpolations and calculations described above, voltage measurement errors that may occur during initial testing and control table characterization processes (e.g., voltage drop differences between calculated and real world systems, thermal effects, etc.). Accordingly, the output current command (id_cmd, iq_cmd) may be corrected to find the optimum operating point within the voltage constraints and at the same time maintain torque linearity.
FIG. 6 shows a block diagram of an exemplary motor drive control system, such as that used in an internal permanent magnet (IPM) motor drive system, similar to that of FIG. 1, including a field weakening correction system. The IPM motor drive system 600 can include many of the same components and features as IPM motor drive system 100, which will not be described again here. The system 600 can also include a field-weakening correction circuit 602. The field-weakening correction circuit 602 can include various components 604 as shown. However, one or more of these components 604 may be removed or replaced or additional components may be used to affect the same outcome as described herein. Correcting the output current command (id_cmd, iq_cmd) may begin with identifying the output voltage command (Vds, Vqs) corresponding to the output current command. In system 600, the output voltage command (Vds, Vqs) is shown corresponding to the output current command (id_cmd, iq_cmd) at the output of the current regulator 104. However, in some embodiments, the voltage command may be monitored or acquired at any other point within the system 600. Based on Equation 5 above, the magnitude of the phase voltage Vs may be calculated based on the commanded (Vds, Vqs) using Equation 12 below:

vs=√{square root over (vds2+vqs2)}  (Equation 12)

As shown by the field weakening circuit 602, the magnitude of the phase voltage, once calculated by Equation 12, can be reduced by the reference voltage, Vref, which corresponds to the actual voltage at the motor 110 as limited by the PWM inverter 108. The identified difference between the magnitude of the phase voltage Vs and the reference voltage Vref can then be manipulated to identify the total phase current delta needed to adjust the output current command (id_cmd, iq_cmd) to push the magnitude of the phase voltage Vs within the voltage ellipse 504 (FIG. 5), which corresponds to finding the optimum operating point within the voltage constraints. The phase current delta, ΔIs, may be limited to negative calibration values. As shown in system 600, the phase current delta, ΔIs, is identified by normalizing the difference between the magnitude of the phase voltage Vs and the reference voltage Vref by the electrical speed ωe and applying a proportional-integral (PI) regulator to the normalized difference. In some embodiments, other methods and components may be used to identify the phase current delta from the magnitude of the phase voltage Vs and the reference voltage Vref. Once the phase current delta, ΔIs, is identified, the ΔId and ΔIq values are identified from the phase current delta.
FIG. 7 depicts a graph including constant torque curves, two voltage constraint ellipses, and three points corresponding to three current output commands along a single constant torque curve. The graph 700 depicts a first voltage constraint ellipse 702 and a second voltage constraint ellipse 704. The graph 700 also depicts the three current output commands corresponding to points 706, 708, and 710. The three points 706, 708, and 710 are all along the constant torque curve 310a. The first ellipse 702 corresponds to the voltage constraints of the DC voltage measurement Vref, which may correspond to the actual voltage reference of the IPM motor 110 and PWM inverter 108 when the output current command is determined from the lookup table(s). The second ellipse 704 corresponds to the voltage constraints of the Vhigh voltage. The point 706 corresponds to the output current command (id_HighV, iq_HighV) where the Vhigh voltage of the second ellipse 704 intersects the torque curve 310a. The point 708 corresponds to the output current command (id_cmd, iq_cmd), which corresponds to the pre-calculated output current command for the DC voltage measurement Vmeas at the torque command of torque curve 310a. The point 710 corresponds to the output current command (i*ds, i*qs) where the first ellipse 702 (corresponding to the actual Vmeas voltage constraints) intersects the torque curve 310a of the torque command.
The output current command (id_cmd, iq_cmd) of point 708 may be determined based on identifying the output current command in a lookup table based on torque command, DC voltage measurement, and motor speed feedback inputs, interpolating values from lookup tables that are above and below a DC voltage measurement, or calculated based on a voltage at a higher motor speed feedback or at a lower voltage at a lower motor speed feedback, as discussed above. Since the output current command (id_cmd, iq_cmd) of point 308 is outside the first ellipse 702, the output current command (id_cmd, iq_cmd) may be adjusted to move within or on the voltage constraints of the first ellipse 702. If the output current command (id_cmd, iq_cmd) is within or on the voltage constraints of the first ellipse 702, the output current command (id_cmd, iq_cmd) does not need to be adjusted because there is no risk of losing control of the IPM motor 110 at voltages and currents within the constraints.
Accordingly, decreasing the iqs component and increasing the ids component of the output current command along the constant torque line 310a from the point 708 to the point 710 will bring the output current command within the voltage constraints of the first ellipse 702 and maintain the torque production. As discussed above, output current commands for a given torque command can be determined for higher voltage than the reference voltage Vref and the DC measured voltage Vmeas (e.g. Vb, where Vb>Vref and/or Vmeas), for example at output current command (id_HighV, iq_High). As the voltage step from point 306 (e.g., (id_HighV, iq_HighV)) to point 308 (e.g., (id_cmd, iq_cmd)) is small, the curvature of the constant torque curve between the two points can be ignored and assumed to be linear to the (ids, iqs) current changes. Accordingly, Equation 13 below provides for identifying the slope of the line between the two points 306 and 308, which can also be attributed to the line between the two points 308 (e.g., (id_cmd, iq_cmd)) and 310 (e.g., (i*ds, i*qs)) due to its short length:




  
    
      
        k
        =
        
          
            
              
                i
                
                  q
                  ⁢
                  _
                  ⁢
                  HighV
                
              
              -
              
                i
                
                  q
                  ⁢
                  _
                  ⁢
                  cmd
                
              
            
            
              
                i
                
                  d
                  ⁢
                  _
                  ⁢
                  HighV
                
              
              -
              
                i
                
                  d
                  ⁢
                  _
                  ⁢
                  cmd
                
              
            
          
          =
          
            
              
                i
                
                  q
                  ⁢
                  _
                  ⁢
                  cmd
                
              
              -
              
                i
                q
                *
              
            
            
              
                i
                
                  d
                  ⁢
                  _
                  ⁢
                  cmd
                
              
              -
              
                i
                d
                *
              
            
          
        
      
    
    
      
        (
        
          Equation
          ⁢
          
            
          
          ⁢
          13
        
        )
      
    
  




Let ΔIq=iq_cmd−iq*ΔId=id_cmd−id*, so ΔIq=k ΔId and Equations 14 always hold:

id_cmd2+iq_cmd2=Is2 

(id_cmd+ΔId)2+(iq_cmd+ΔIq)2=(Is+ΔIs)2  (Equations 14)

Expanding Equation 14 provides Equation 14-1:

id_cmd2+2id_cmdΔId+ΔId2+iq_cmd2+2iq_cmdΔIq+ΔIq2=Is2+2isΔIs+ΔIs2  (Equation 14-1)

Since ΔId, ΔIq, and ΔIs are quite small compare to id_cmd, iq_cmd, and is, ΔId2, ΔIq2, ΔIs2 can be neglected. Also, iq_cmd=Is cos β, id_cmd=Is sin β. β is shown in FIG. 7 to be the angle between the Iq axis and a line that passes from the origin (0,0) on the (d,q) axis and the current command point (id_cmd, iq_cmd). Is may be the length of the line from the origin (0,0) on the (d,q) axis to the current command point (id_cmd, iq_cmd). Thus, Is may be identified based on the (id_cmd, iq_cmd) and the angle β. The angle β may be identified from the current command point (id_cmd, iq_cmd) using Equations 14-2:





  
    
      
        β
        =
        
          
            tan
            
              -
              1
            
          
          ⁢
          
            
              i
              
                d
                ⁢
                _
                ⁢
                cmd
              
            
            
              i
              
                q
                ⁢
                _
                ⁢
                cmd
              
            
          
        
      
    
    
      
        (
        
          Equation
          ⁢
          
            
          
          ⁢
          14
          ⁢
          
            -
          
          ⁢
          2
        
        )
      
    
  




After simplification, ΔId and ΔIq can be calculated as shown by Equation 15:





  
    
      
        
          
            Δ
            ⁢
            
              
            
            ⁢
            
              I
              d
            
          
          =
          
            
              1
              
                
                  sin
                  ⁢
                  
                    
                  
                  ⁢
                  β
                
                +
                
                  k
                  ⁢
                  
                    
                  
                  ⁢
                  cos
                  ⁢
                  
                    
                  
                  ⁢
                  β
                
              
            
            ⁢
            Δ
            ⁢
            
              
            
            ⁢
            
              I
              s
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            Δ
            ⁢
            
              
            
            ⁢
            
              I
              q
            
          
          =
          
            
              k
              
                
                  sin
                  ⁢
                  
                    
                  
                  ⁢
                  β
                
                +
                
                  k
                  ⁢
                  
                    
                  
                  ⁢
                  cos
                  ⁢
                  
                    
                  
                  ⁢
                  β
                
              
            
            ⁢
            Δ
            ⁢
            
              
            
            ⁢
            
              I
              s
            
          
        
      
    
    
      
        (
        
          Equation
          ⁢
          
            
          
          ⁢
          15
        
        )
      
    
  




The phase current delta, ΔIs, is output from the field weakening circuit 602 as ΔId and ΔIq adjustments to the output current command (id_cmd, iq_cmd). An alternative solution can also be used if computational throughput is a significant concern. In practical case, ΔId and ΔIq obtained using equations (16) will be sufficient to move the operating point inside the voltage limit along, and maintain the torque production at the same time.




  
    
      
        
          
            Δ
            ⁢
            
              
            
            ⁢
            
              I
              d
            
          
          =
          
            
              1
              
                1
                +
                k
              
            
            ⁢
            Δ
            ⁢
            
              
            
            ⁢
            
              I
              s
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            Δ
            ⁢
            
              
            
            ⁢
            
              I
              q
            
          
          =
          
            
              k
              
                1
                +
                k
              
            
            ⁢
            Δ
            ⁢
            
              
            
            ⁢
            
              I
              s
            
          
        
      
    
    
      
        (
        
          Equation
          ⁢
          
            
          
          ⁢
          16
        
        )
      
    
  




Accordingly, the final output current commands, compensating for the corrections discussed above, can be calculated via Equations 17:

ids*=id_cmd+ΔId 

iqs*=iq_cmd+ΔIq  (Equation 17)

In the analysis above, the ids current delta may be a negative value, because the current may be adjusted to increase the ids current, which would require an additional −negative ids as the ids current increases along the negative axis. Alternatively, the iqs current delta may be either negative or positive. The iqs current delta may be negative when the command current is positive, thus reducing the iqs current. When the command current is negative (for example when braking the motor), the iqs current delta may be positive to reduce the negative iqs current.
The foregoing description details certain implementations of the systems, devices, and methods disclosed herein. It will be appreciated, however, that no matter how detailed the foregoing appears in text, the systems, devices, and methods can be practiced in many ways. As is also stated above, it should be noted that the use of particular terminology when describing certain features or aspects of the development should not be taken to imply that the terminology is being re-defined herein to be restricted to including any specific characteristics of the features or aspects of the technology with which that terminology is associated.
The technology is operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and/or configurations that may be suitable for use with the development include, but are not limited to, personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
As used herein, instructions refer to computer-implemented steps for processing information in the system. Instructions can be implemented in software, firmware or hardware and include any type of programmed step undertaken by components of the system.
A microprocessor may be any conventional general purpose single- or multi-chip microprocessor such as a Pentium® processor, a Pentium® Pro processor, a 8051 processor, a MIPS® processor, a Power PC® processor, or an Alpha® processor. In addition, the microprocessor may be any conventional special purpose microprocessor such as a digital signal processor or a graphics processor. The microprocessor typically has conventional address lines, conventional data lines, and one or more conventional control lines.
The system may be used in connection with various operating systems such as Linux®, UNIX® or Microsoft Windows®.
The system control may be written in any conventional programming language such as C, C++, BASIC, Pascal, or Java, and ran under a conventional operating system. C, C++, BASIC, Pascal, Java, and FORTRAN are industry standard programming languages for which many commercial compilers can be used to create executable code. The system control may also be written using interpreted languages such as Perl, Python or Ruby.
Those of skill will further recognize that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the implementations disclosed herein may be implemented as electronic hardware, software stored on a computer readable medium and executable by a processor, or combinations of both. 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 development.
The various illustrative logical blocks, modules, and circuits described in connection with the implementations 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.
If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. The steps of a method or algorithm disclosed herein may be implemented in a processor-executable software module which may reside on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that can be enabled to transfer a computer program from one place to another. A storage media may be any available media that may be accessed by a computer. By way of example, and not limitation, such computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that may be used to store desired program code in the form of instructions or data structures and that may be accessed by a computer. Also, any connection can be properly termed a computer-readable medium. Disk and disc, as used herein, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media. Additionally, the operations of a method or algorithm may reside as one or any combination or set of codes and instructions on a machine readable medium and computer-readable medium, which may be incorporated into a computer program product.
The foregoing description details certain implementations of the systems, devices, and methods disclosed herein. It will be appreciated, however, that no matter how detailed the foregoing appears in text, the systems, devices, and methods can be practiced in many ways. As is also stated above, it should be noted that the use of particular terminology when describing certain features or aspects of the development should not be taken to imply that the terminology is being re-defined herein to be restricted to including any specific characteristics of the features or aspects of the technology with which that terminology is associated.
It will be appreciated by those skilled in the art that various modifications and changes may be made without departing from the scope of the described technology. Such modifications and changes are intended to fall within the scope of the implementations. It will also be appreciated by those of skill in the art that parts included in one implementation are interchangeable with other implementations; one or more parts from a depicted implementation can be included with other depicted implementations in any combination. For example, any of the various components described herein and/or depicted in the Figures may be combined, interchanged or excluded from other implementations.
With respect to the use of substantially any plural and/or singular terms herein, those having skill in the art can translate from the plural to the singular and/or from the singular to the plural as is appropriate to the context and/or application. The various singular/plural permutations may be expressly set forth herein for sake of clarity. The indefinite article “a” or “an” does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage. Any reference signs in the claims should not be construed as limiting the scope.
It will be understood by those within the art that, in general, terms used herein are generally intended as “open” terms (e.g., the term “including” should be interpreted as “including but not limited to,” the term “having” should be interpreted as “having at least,” the term “includes” should be interpreted as “includes but is not limited to,” etc.). It will be further understood by those within the art that if a specific number of an introduced claim recitation is intended, such an intent will be explicitly recited in the claim, and in the absence of such recitation no such intent is present. For example, as an aid to understanding, the following appended claims may contain usage of the introductory phrases “at least one” and “one or more” to introduce claim recitations. However, the use of such phrases should not be construed to imply that the introduction of a claim recitation by the indefinite articles “a” or “an” limits any particular claim containing such introduced claim recitation to implementations containing only one such recitation, even when the same claim includes the introductory phrases “one or more” or “at least one” and indefinite articles such as “a” or “an” (e.g., “a” and/or “an” should typically be interpreted to mean “at least one” or “one or more”); the same holds true for the use of definite articles used to introduce claim recitations. In addition, even if a specific number of an introduced claim recitation is explicitly recited, those skilled in the art will recognize that such recitation should typically be interpreted to mean at least the recited number (e.g., the bare recitation of “two recitations,” without other modifiers, typically means at least two recitations, or two or more recitations). Furthermore, in those instances where a convention analogous to “at least one of A, B, and C, etc.” is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., “a system having at least one of A, B, and C” would include but not be limited to systems that have A alone, B alone, C alone, A and B together, A and C together, B and C together, and/or A, B, and C together, etc.). In those instances where a convention analogous to “at least one of A, B, or C, etc.” is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., “a system having at least one of A, B, or C” would include but not be limited to systems that have A alone, B alone, C alone, A and B together, A and C together, B and C together, and/or A, B, and C together, etc.). It will be further understood by those within the art that virtually any disjunctive word and/or phrase presenting two or more alternative terms, whether in the description, claims, or drawings, should be understood to contemplate the possibilities of including one of the terms, either of the terms, or both terms. For example, the phrase “A or B” will be understood to include the possibilities of “A” or “B” or “A and B.”
All numbers expressing quantities of ingredients, reaction conditions, and so forth used in the specification and claims are to be understood as being modified in all instances by the term “about.” Accordingly, unless indicated to the contrary, the numerical parameters set forth in the specification and attached claims are approximations that may vary depending upon the desired properties sought to be obtained by the present development. At the very least, and not as an attempt to limit the application of the doctrine of equivalents to the scope of the claims, each numerical parameter should be construed in light of the number of significant digits and ordinary rounding approaches.
The methods disclosed herein comprise one or more steps or actions for achieving the described method. The method steps and/or actions may be interchanged with one another without departing from the scope of the claims. In other words, unless a specific order of steps or actions is required for proper operation of the method that is being described, the order and/or use of specific steps and/or actions may be modified without departing from the scope of the claims.
It should be noted that the terms “couple,” “coupling,” “coupled” or other variations of the word couple as used herein may indicate either an indirect connection or a direct connection. For example, if a first component is “coupled” to a second component, the first component may be either indirectly connected to the second component or directly connected to the second component. As used herein, the term “plurality” denotes two or more. For example, a plurality of components indicates two or more components.
The term “determining” encompasses a wide variety of actions and, therefore, “determining” can include calculating, computing, processing, deriving, investigating, looking up (e.g., looking up in a table, a database or another data structure), ascertaining and the like. Also, “determining” can include receiving (e.g., receiving information), accessing (e.g., accessing data in a memory) and the like. Also, “determining” can include resolving, selecting, choosing, establishing and the like.
The phrase “based on” does not mean “based only on,” unless expressly specified otherwise. In other words, the phrase “based on” describes both “based only on” and “based at least on.”
In the foregoing description, specific details are given to provide a thorough understanding of the examples. However, it will be understood by one of ordinary skill in the art that the examples may be practiced without these specific details. For example, electrical components/devices may be shown in block diagrams in order not to obscure the examples in unnecessary detail. In other instances, such components, other structures and techniques may be shown in detail to further explain the examples.
It is also noted that the examples may be described as a process, which is depicted as a flowchart, a flow diagram, a finite state diagram, a structure diagram, or a block diagram. Although a flowchart may describe the operations as a sequential process, many of the operations can be performed in parallel, or concurrently, and the process can be repeated. In addition, the order of the operations may be re-arranged. A process is terminated when its operations are completed. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc. When a process corresponds to a software function, its termination corresponds to a return of the function to the calling function or the main function.
The previous description of the disclosed implementations is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these implementations will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other implementations without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the implementations shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

## Claims

1. An apparatus comprising:
a motor;
an inverter configured to provide input power to the motor;
a DC power bus configured to provide input power to the inverter;
a data store comprising information defining inverter currents for producing different motor torque outputs at different motor speeds and different DC power bus voltages; and
a processor configured to:
receive a torque command, a DC power bus voltage measurement, and a motor speed measurement;
determine, using the data store, an inverter current command based at least in part on the torque command, the DC power bus voltage measurement, and the motor speed measurement, wherein the determining is further based at least in part on a motor speed value different than the motor speed measurement and a DC power bus voltage value different than the DC power bus voltage measurement; and,
control the inverter based at least in part on the determined inverter current command,
wherein the processor is further configured to identify a pre-stored inverter current command in the data store that is associated in the data store with the torque command, the DC power bus voltage value, and the motor speed value.

2. The apparatus of claim 1, wherein the motor speed value is greater than the motor speed measurement.

3. The apparatus of claim 1, wherein the motor speed value is less than the motor speed measurement.

4. The apparatus of claim 1, wherein the inverter current command comprises a first component and a second component.

5. The apparatus of claim 1, wherein the inverter current command is modified to account for a reference voltage.

6. An apparatus comprising:
a motor;
an inverter configured to provide input power to the motor;
a DC power bus configured to provide input power to the inverter;
a data store comprising information defining inverter currents for producing different motor torque outputs at different motor speeds and different DC power bus voltages; and
a processor configured to:
receive a torque command, a DC power bus voltage measurement, and a motor speed measurement;
determine, using the data store, an inverter current command based at least in part on the torque command, the DC power bus voltage measurement, and the motor speed measurement, wherein the determining is further based at least in part on a motor speed value different than the motor speed measurement and a DC power bus voltage value different than the DC power bus voltage measurement; and,

control the inverter based at least in part on the determined inverter current, wherein the motor speed value is determined at least in part by scaling the motor speed measurement by a ratio of the DC power bus voltage value and the DC power bus voltage measurement.

7. An apparatus comprising:
a motor;
an inverter configured to provide input power to the motor;
a DC power bus configured to provide input power to the inverter;
a data store comprising information defining inverter currents for producing different motor torque outputs at different motor speeds and different DC power bus voltages; and
a processor configured to:
receive a torque command, a DC power bus voltage measurement, and a motor speed measurement;
determine, using the data store, an inverter current command based at least in part on the torque command, the DC power bus voltage measurement, and the motor speed measurement, wherein the determining is further based at least in part on a motor speed value different than the motor speed measurement and a DC power bus voltage value different than the DC power bus voltage measurement; and,

control the inverter based at least in part on the determined inverter current, wherein the information in the data store is logically arranged as a plurality of entries in one or more lookup tables, wherein:
each lookup table of the one or more lookup tables comprises inverter current commands indexed by torque command and motor speed;
each lookup table of the one or more lookup tables is associated with a selected DC power bus voltage;
a first lookup table of the one or more lookup tables is associated with the DC power bus voltage value; and
the inverter current command is an entry in the first lookup table.

8. The apparatus of claim 7, wherein the DC power bus voltage measurement is lower than the DC power bus voltage value.

9. The apparatus of claim 8, wherein the first lookup table is the only lookup table in the data store.

10. The apparatus of claim 7, wherein the DC power bus voltage measurement is higher than the first DC power bus voltage.

11. The apparatus of claim 10, wherein the motor speed value is lower than the motor speed measurement.

12. The apparatus of claim 11, wherein the first lookup table is the only lookup table in the data store.

13. An apparatus comprising:
a motor;
an inverter configured to provide input power to the motor;
a DC power bus configured to provide input power to the inverter;
a data store comprising information defining inverter currents for producing different motor torque outputs at different motor speeds and different DC power bus voltages; and
a processor configured to:
receive a torque command, a DC power bus voltage measurement, and a motor speed measurement;
determine, using the data store, an inverter current command based at least in part on the torque command, the DC power bus voltage measurement, and the motor speed measurement, wherein the determining is further based at least in part on a motor speed value different than the motor speed measurement and a DC power bus voltage value different than the DC power bus voltage measurement; and,

control the inverter based at least in part on the determined inverter current, wherein the received torque command, DC power bus voltage measurement, motor speed measurement, and motor speed value correspond to a field weakening region of the motor.

14. An apparatus comprising:
a motor;
an inverter configured to provide input power to the motor;
a DC power bus configured to provide input power to the inverter;
a data store comprising information defining inverter currents for producing different motor torque outputs at different motor speeds and different DC power bus voltages; and
a processor configured to:
receive a torque command, a DC power bus voltage measurement, and a motor speed measurement;
determine, using the data store, an inverter current command based at least in part on the torque command, the DC power bus voltage measurement, and the motor speed measurement, wherein the determining is further based at least in part on a motor speed value different than the motor speed measurement and a DC power bus voltage value different than the DC power bus voltage measurement; and,

control the inverter based at least in part on the determined inverter current, wherein
the received torque command, DC power bus voltage measurement, and

motor speed measurement correspond to a constant torque region of the motor, and
the motor speed value is determined at least in part by scaling the motor speed measurement.