FOUR QUADRANT MOTOR CONTROLLER MINIMIZING DISTORTION INDEX

Abstract: A motor control apparatus (10) and method is disclosed for controlling a multiphase AC motor (12) by controlling electrical quantities such as voltage or current applied to the stator of the motor (12). The apparatus includes a motor command unit (22) for defining a reference signal indicative of the desired motor parameter such as torque, speed, or position, a DC voltage link (18) including a device for storing energy (20), a line-side converter (16) including active switches (44) in a bridge configuration (42) for controlling the bidirectional flow of electrical power between the DC voltage link (18) and the source of AC power, and a motor-side converter (14) including active switches (26) in a bridge configuration (24) for controlling stator electrical quantities by controlling the bidirectional flow of electrical power between the DC voltage link (18) and the motor (12), where the motor-side converter (14) includes a controller (36) responsive to the reference signal for controlling the active switches (26) to produce stator electrical quantities that correspond to the reference signal.

Description: FOUR QUADRANT MOTOR CONTROLLER Reference to Micro iche Appendix Reference is hereby made to a microfiche appendix submitted herewith, consisting of two microfiche of 119 f ames. Background of the Invention rigid p the invention This invention relates generally to AC motor drives or controllers, and relates more particularly to a motor controller that provides four quadrant control of the torque, speed, or position of a motor at a controlled power factor. Description of the Relevant Art A prior controller for an AC induction motor uses switched inverters to control the currents applied to the stator windings of the motor. For a three-phase motor, the inverter includes six active switches arranged in a bridge configuration between a DC bus and the motor. A diode bridge is coupled between the DC bus and a utility source of AC power and charges the DC bus by rectifying the supplied AC electrical power. Field oriented control can be used to control the current supplied to the motor. This type of controller has certain drawbacks. The diode bridge generates harmonic currents that distort the utility voltage. These harmonic currents require additional VA power from the utility source, thus reducing overall system efficiency. Another drawback is that the diode bridge is not capable of returning power to the utility source. When the motor is running as a generator in the second and fourth quadrants of torque/speed plane, the power generated is shunted to ground through a DC bus resistor. Again, this results in low system efficiency. Still another drawback is that the dynamic performance of the field oriented current controller at high speeds is degraded since the diode bridge limits the maximum DC bus voltage. This results in performance degradation at high speeds. Summary of the Invention In accordance with one embodiment, the present invention includes a motor controller for controlling a multiphase AC motor by controlling electrical quantities such as voltage or current applied to the stator of the motor. The apparatus comprises a motor command unit for defining a reference signal indicative of a desired motor parameter such as torque, speed, or position, a DC voltage link including a capacitor or other means for storing energy, a line-side converter including active switches in a bridge configuration for controlling the bidirectional flow of electrical power between the DC voltage link and a source of AC power, and a motor-side converter including active switches in a bridge configuration for controlling stator electrical quantities by controlling the bidirectional flow of electrical power between the DC voltage link and the motor, where the motor-side converter includes control means responsive to the reference signal for controlling the active switches therein to produce stator electrical quantities that correspond to the reference signal. The present invention includes a method for controlling a multiphase AC motor, where a motor-side converter includes active switches coupled in a bridge configuration between a DC voltage link and stator windings of the motor, and where a line-side converter includes active switches coupled in a bridge configuration between a source of AC power and the DC voltage link. The method comprises of the steps of controlling the bidirectional flow of electrical power through the motor-side converter by defining a reference signal indicative of a desired motor parameter and controlling the active switches therein to produce stator electrical quantities that correspond to the reference signal, and controlling the bidirectional flow of electrical power through the line-side converter, including the steps of monitoring the voltage of the DC voltage link, comparing the measured voltage of the DC voltage link to a desired voltage thereof, and controlling the active switches therein to regulate the direction and flow of electrical power therethrough. The invention further includes an apparatus and method for controlling the motor-side converter using field orientation control by defining a desired torque- producing quadrature axis current in field coordinates and controlling the active switches to produce stator electrical quantities that correspond to the desired quadrature axis current. The desired motor parameter, either torque, speed, or position, is reduced to a desired torque level that corresponds to the desired motor parameter, and then the field orientation control defines stator currents or voltages that correspond to the desired torque. The field oriented control defines the motor operation in terms of a rotating frame of reference to decouple lux-producing currents from torque-producing currents. The desired motor operation is defined by a desired direct axis (flux-producing) current in rotating field coordinates aligned with the direction of the rotor lux field and a desired quadrature axis (torque- producing) current in field coordinates oriented normal to the rotor flux field. Motor torque, speed, or position is controlled by controlling the quadrature axis current. The angle of the field coordinate system with respect to a stationary frame of reference defines a desired rotor flux angle, which is periodically determined and used to convert the desired direct and quadrature axis currents from field coordinates into stator coordinates. A pulse width modulation circuit controls the active switches of the motor-side converter to produce stator electrical quantities that ■ correspond to the desired stator electrical quantities. The stator electrical quantities that are regulated are either currents or voltages. When regulating currents, desired currents defined by the field oriented control are converted to desired stator currents, and the active switches of the motor-side converter are controlled to produce corresponding stator currents. When regulating voltages, the desired field oriented currents are converted into desired field oriented voltages by compensating for cross-coupling between the direct and quadrature axes, the desired field oriented voltages are converted into desired stator voltages, and the active switches are controlled to produce corresponding stator voltages. In one embodiment, the motor-side converter regulates the motor torque, speed, or position by controlling the stator currents at a low speed of rotation of the motor and by controlling the stator voltages at a higher speed of rotation of the motor. During low speed operation of the motor, the orientation of the rotor flux field with respect to the rotor is controlled by switching the active switches of the motor-side converter to regulate currents in the stator, while during the higher speed operation of the motor, the orientation of the rotor flux field is controlled by switching the active switches to regulate voltages in the stator. Switching between current control and voltage control is preferably controlled by a rotor speed signal that indicates rotor speed. One embodiment of a current controller of the present invention is particularly useful for controlling currents through both the motor-side and the line-side of the motor controller. This current controller periodically determines a distortion index indicating errors between desired and actual currents, and controls the active switches to produce currents that minimize the distortion index. The present invention further includes an apparatus and method for controlling the active switches of the line-side converter to supply line electrical power at a desired angle between voltage and current. This aspect of the invention includes a line-side controller that forms a reference waveform, rotates the reference waveform by a selected power factor angle to yield a template waveform, uses the template waveform to define desired line currents, and controls the active switches to produce line currents corresponding to the desired line currents. This apparatus and method can be used, even when the motor is turned off, to supply reactive power to the utility. An important advantage of the present invention is its ability to control the motor in all four quadrants of its torque/speed plane. In other words, the present invention controls the AC machine rotating in either direction and operating as either a motor or a generator. When operating as a generator, the present invention supplies low distortion power to the utility grid, instead of dissipating that energy through a resistor. Another advantage of the-present invention is its ability to control the DC bus voltage to levels higher than that of the prior art diode bridge rectifier. This improves the dynamic performance of the motor controller at high speeds. One key feature of the present invention is the use of field orientation control of the motor-side converter to control torque, speed, or position of the motor. Field orientation decouples the torque-producing currents or voltages of the stator from the flux- producing currents or voltages and thus permits responsive control of the motor. Another feature is a hybrid control strategy for the motor-side converter in controlling either the stator currents or stator voltages. Current control is used where the stator currents can be assumed to be supplied by current sources, which is a valid assumption at low rotor speeds due to a large margin between the voltage of the DC voltage link and the counter emf of the motor. Voltage control is used at higher rotor speeds where current control would otherwise require increasing the voltage of the DC voltage link proportional to speed to maintain responsive control and constant volts/hertz operation. Voltage control has an increased power capability over current control at higher speeds while maintaining constant volts/hertz operation and moderate DC link voltages, thus allowing the use of lower voltage switching devices than would be required for current control. Voltage control is also more efficient than current control at high speeds due to reduced switching losses in the motor-side converter due to lower DC link voltages for the same power level. Under voltage control, the stator voltages in field coordinates are compensated by decoupling factors to define two control voltages, one for controlling torque and the other for controlling rotor flux. Still another feature of the invention is a particular current control algorithm, which determines optimum PWM commutation signals for the motor-side and line-side bridge inverters by minimizing a distortion index. This algorithm reduces total harmonic distortion over competing algorithms operating at comparable sampling frequencies, while reducing switching losses by reducing the number of switching events. The line-side converter of the present invention provides power factor control by adjusting the line current anywhere between fully leading and fully lagging the line voltage, thereby supplying or absorbing selectable amounts of reactive power. This feature of the invention solves reactive power problems normally associated with induction motors, and also replaces power factor correction capacitors that would otherwise be needed on the utility line. Power factor correction can also take place when the motor is not in use. The features and advantages described in the specification are not all inclusive, and particularly, many additional features and advantages will be apparent to one of ordinary skill in the art in view of the drawings, specification and claims hereof. Moreover, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter, resort to the claims being necessary to determine such inventive subject matter. Brief Description of the Drawings Figure 1 is a block diagram of a motor control apparatus according to the present invention. Figure 2 is a schematic diagram of the motor control apparatus of the present invention. Figure 3 is a graphical diagram illustrating the angular relationships between a fixed stator coordinate system, a rotating rotor coordinate system, and a rotating field oriented coordinate system. Figure 4 is a block diagram of a motor-side controller of the present invention. Figure 5 is a block diagram of a field orientation converter of the present invention. Figure 6 is a block diagram of a delta modulator current controller of the present invention. Figure 7 is a block diagram of a distortion index current controller of the present invention. Figure 8 is a block diagram of an alternative implementation of the distortion index current controller. Figure 9 is a graphical representation, in a.β coordinates, of voltage vectors resulting from eight possible switch states of a bridge inverter. Figure 10 is a block diagram of a voltage controller of the present invention. Figure 11 is a block diagram of a computer program used in the motor-side controller of the present invention. Figure 12 is a block diagram of a line-side controller of the present invention. Figure 13 is a block diagram of a current controller used in the line-side controller of the present invention. Figure 14 is a block diagram of a computer program used in the line-side controller of the present invention. Detailed Description of the Preferred Embodiment Figures 1 through 14 of the drawings disclose various embodiments of the present invention for purposes of illustration only. One skilled in the art will readily recognize from the following discussion that alternative embodiments of the structures and methods illustrated herein may be employed without departing from ;he principles of the invention. The present invention is a motor controller, including both apparatus and method, for controlling a multiphase AC motor. In the preferred embodiment of the invention, shown in Figure 1, the motor controller 10 is coupled to the stator windings of a three phase AC induction motor 12. The motor controller 10 controls the torque, speed, or position of the motor by controlling the stator currents or voltages applied to the stator windings 32-34. The motor controller 10 allows four quadrant operation of the motor 12, drawing power from the utility grid when acting as a motor and returning power to the grid when acting as a motor. Essentially, the motor controller 10 includes a motor-side converter 14 that controls the bidirectional flow of electrical power to and from the motor 12, a line-side converter 16 that controls the bidirectional flow of electrical power to and from a source of AC power, and a DC voltage link 18 that links the motor- side and line-side converters and provides energy storage. The line-side converter 16 controls the direction, magnitude, and power factor of the electrical power flowing between the utility grid and the DC voltage link by converting between the fixed frequency AC at the source side and DC at the DC voltage link. The motor-side converter 14 controls the magnitude and frequency of the stator currents or voltages of the motor by converting between DC at the DC voltage link and variable frequency AC at the motor 12. A motor command unit 22 supplies a torque, speed, or position reference signal and a mode select signal to the motor- side converter 14, which, in response, controls the torque, speed, or position of the motor 12. The DC voltage link 18 couples the DC sides of the two converters, and includes a capacitor 20 for energy storage. More particularly, as shown in Figure 2, the motor- side converter 14 includes a bridge inverter 24 having three pairs of active switching devices 26 arranged in a bridge configuration between a +DC rail 28 and a -DC rail 30 of the DC voltage link 18 and each of three stator windings 32-34 of the motor 12. Each pair of switching devices is coupled between the DC rails 28 and 30, and connected at an intermediate point to one of the stator windings. Commutation or drive signals that cause the active switching devices 26 to switch on and off originate in a motor-side controller 36, which supplies the signals to the switching devices through a drive circuit 38. The motor-side controller 36 and drive circuit 38 are isolated from the motor-side bridge inverter 24 by optical isolators to minimize interference. The commutation signals are complementary for each pair of switching devices, causing one switching device of each pair to switch on and the other switching device of the pair to switch off, as appropriate to achieve the desired stator currents or voltages. The switching devices 26 of the motor-side bridge inverter 24 control the stator currents and voltages in the three phase stator windings of the motor 12. Also included within the motor-side converter is a motor speed sensor 40 that monitors the rotation of the rotor shaft 42 of the motor 12 and supplies a signal indicative of the rotor speed, <_> c , to the motor-side controller 36. The switching devices 26 of the motor-side converter 14 can be any of a number of different types of active switches, including insulated gate bipolar transistors (IGBT) , bipolar junction transistors, field effect transistors, Darlington transistors, gate turn- off thyristors, or silicon controlled rectifiers. Each switching device 26 can consist of a single switch, or can include multiple switches connected in parallel. The switching devices 26 of the motor-side converter 14 are preferably IGBT's. The motor-side controller 36 receives sensor inputs of the stator currents i, x , i, 2/ i. 5 , and rotor speed u ∑ , receives a torque, speed, or position reference signal and a mode select signal from the motor command unit 22 and, in response, generates pulse width modulated (PWM) commutation signals and supplies them to the motor-side converter switches 26 through the drive circuit 38. Although Figure 2 shows sensing of all three stator currents, only two currents need to be sensed because the third can be found from the relationship i al + i, 2 + i, 3 « 0. The structure and operation of the motor-side controller 36 will be explained in further detail below. The DC voltage link 18 consists simply of the two rails 28 and 30, plus a energy storage capacitor 20 connected between the two rails. Alternatively, energy storage could be provided by a battery connected between the two rails 28 and 30. Situated on the other side of the DC voltage link from the motor-side converter 14, the line-side converter 16 includes a line-side bridge inverter 42 having three pairs of active switching devices 44 arranged in a bridge configuration between the +DC rail 28 and -DC rail 30 of the DC voltage link 18. The intermediate points of the pairs of active switching devices 44 form three line taps 46-48 that are connected through filters 50 to the utility grid and through which three phase electrical power flows into and out of the line-side converter 16. Commutation or drive signals for the active switching devices 44 originate in a line- side controller 52, which supplies the signals to the switching devices through a drive circuit 54. The line- side controller 52 and drive circuit 54 are isolated from the bridge inverter 42 by optical isolators. The commutation signals are complementary for each pair of switching devices, causing one switching device of each pair to switch on and the other switching device of the pair to switch off at any given time. The line-side controller 52 receives sensor inputs indicating the line currents i 0l , i o2 , i o3 , line voltages v β χ, o j, v β3 , and DC link voltage v de . The line currents are sensed at the line taps 46-48, while the line voltages are sensed at the utility grid side of the filters 50 and isolated through potential transformers 56. A power factor controller 58 supplies to the line- side controller 52 a power factor angle, φ, that defines a desired angle between the voltage and current flowing into or out of the line-side converter 16. In response to all these inputs, as will be explained in further detail below, the line-side controller 52 generates pulse width modulated commutation signals and supplies them to the switches 44 through the drive circuit 54. The power factor controller 58 determines the power factor angle, φ, in response to a power factor signal, a reactive power signal, and an operation mode signal. These signals define a desired power factor or quantity of reactive power of the electrical power flowing between the motor controller 10 and the utility grid. In addition, the line-side controller 52 supplies to the power factor controller 58 a feedback signal, Q ft , that indicates the reactive power being consumed or supplied by the line-side converter 16. Returning to the motor side of the motor controller, a key element of the present invention is controlling the motor currents and voltages in terms of field coordinates. The electric torque of an AC induction machine can be expressed in terms of the stator and rotor currents, but such an expression is difficult to use in a motor control system since the rotor currents of a squirrel-cage induction motor cannot be directly measured. Field orientation control eliminates that difficulty. It is important to understand that, at any instant of time, the rotor flux of an induction machine can be represented by a radial vector λ r with magnitude λ z and angle _>,. The field orientation principle defines the stator current in terms of a rotating d,q coordinate system, where a direct (d) axis is aligned with the instantaneous rotor flux vector λ r at angle _>, and a quadrature (σ axis is perpendicular to the rotor flux vector. This is illustrated in Figure 3. The stator current vector, i,, can be degenerated into a component, i, d , that is parallel to the rotor flux λ r vector and a component, i, q , that is perpendicular to the rotor flux vector. The currents i ld and i„ at angle _", are the field coordinate representation of the stator current vector. Figure 3 also illustrates that ω r is defined as the rotor angular speed and <_>, is defined as the angular speed of the rotor flux vector. The machine slip speed, __> ml , which is the speed of the stator current vector with respect to the rotor, is the difference between ω a , and __> r . The d,q coordinate system isolates or decouples a current that creates the rotor flux field, i ad , on the direct axis, from a current that creates torque, i„, on the quadrature axis. Defining the motor currents in field orientation coordinates permits the motor-side controller 36 to convert a desired torque signal directly into a desired quadrature axis current, i^,, which is then used by a current controller 76 or voltage controller 78 (Figure 4) to carry out the torque, speed, or position commands of the motor command unit 22. Controlling the motor 12 in this manner requires conversion between stationary stator coordinates and rotating field coordinates. The stator currents in a balanced, 3-phase coordinate system, as represented by the currents through the three stator windings 32-34 (Figure 2), can be designated by the variables i tl , i t2 , and i, 3 . The balanced, 3-phase stator currents are equivalent to 2 phase stator currents, i u and i ββl defined by the following matrix equation: (1) The 2 phase stator currents, i M and i t} , can be converted into the field coordinate currents, i, d and i, q , as a function of the rotor flux angle, _>,, by the following transformation: (2) Transformation from field coordinates to 2 phase coordinates is accomplished by inverting equation (2) , which results in the following: cosø, - sin*, ' (3) _-*«_-J εinε, cos*,. ti... Transformation from 2-phase to balanced 3-phase coordinates is found by inverting equation (1) : Representations of the stator current vector in the rotating d,q field coordinate system, in the stationary 2-phase a.β coordinate system, and in the stationary balanced 3-phase coordinate system are shown in Figure 3. Field orientation principles are utilized in the motor controller 10 of the present invention to obtain torque, speed, or position control of the motor. A desired torque signal, T * , is defined from a reference signal supplied by the motor command unit 22 and is converted into a desired quadrature axis current, i * ,. The desired quadrature axis current is then used to generate the PWM commutation signals that switch the motor-side bridge inverter 24. The reference signal supplied by the motor command unit 22 can be either a torque, speed, or position reference. The structure of the motor-side controller 36 is shown in block diagram form in Figure 4. The motor- side controller is preferably implemented in a digital signal processor ("DSP") , a Texas Instruments model TMS320C25. The computations performed within the DSP of the motor-side controller 36 are digital, which requires A/D conversion of the external signals. Computer code for implementing the invention in a DSP is disclosed in the microfiche appendix. The motor-side controller 36 includes a reference signal generator 60, a field orientation converter 62, and a PWM controller 64. These components will be explained in more detail below, but basically, the reference signal generator 60 uses a torque, speed, or position reference signal to define a desired motor torque, the field orientation converter 62 uses the desired motor torque and sensed rotor speed to define control parameters in field coordinates, and the PWM controller 64 takes the control parameters and generates pulse-width modulated commutation signals for the motor- side bridge inverter 24. Optionally, the motor-side controller 36 may also include a torque monitor 66 for closed-loop torque control. The control parameters defined by the reference signal generator 60 and the field orientation converter 62 are identified as control variables by the * superscript. The reference signal generator 60 defines a desired torque signal, T * , that represents the motor torque that will result in the desired torque, speed, or position of the motor, depending on the mode of operation. The reference signal generator 60 includes a position control unit 68, a speed control unit 70, and a torque control unit 72, as shown in Figure 4. A position reference signal, c r . f , a speed reference signal, ω n£ , or a torque reference signal, T rt£ , is supplied by the motor command unit 22, depending on the control mode selected. When operating in torque control mode, the torque control unit 72 alone defines the desired torque signal, T * , either open-loop or closed-loop. When operating in speed control mode, the speed control unit 70 defines the desired torque signal, T * , from the rotor speed signal, __> r , and the speed reference signal, ω tmi . When operating in position control mode, the position control unit 68 defines the speed reference signal, « za£ , from the position reference signal, c tmt , and an actual rotor position signal, e r , and the speed control unit 70 defines the desired torque signal, T * . The position control unit 68, when activated, provides closed-loop position control of the motor. The position control unit 68 receives from the motor command unit 22 the position reference signal, e za£ , that defines the desired angular position of the motor. The position control unit 68 also receives a signal indicating actual rotor position, c r , either sensed directly or derived by integrating-the rotor speed signal, ω z , using an integrator 74. The position control unit 68 compares the desired and actual position signals, defines a position error signal (e za£ - c r ) and sends it through a proportional controller to define a speed reference signal in the form of ω zmt « pX (c ca£ - ε r ) , where k p j. is selected to provide adequate stability. The speed reference signal, ω zt£ , is output to the speed control unit 70. The speed control unit 70, when operating in either position or speed control, takes the speed reference signal, ω za£ , generated by either the position control unit 68 or the motor command unit 22, respectively, compares it to the actual rotor speed, c_> r , and runs the result through a proportional-integral controller to define the torque reference signal, T za£ . Mathematically, the operation of the speed control unit 70 is expressed by the following: Tχ.r « kpz (*r.r ~ -t) + *i J (*r.f - -*) *t (5) where k^ and x are coefficients selected to provide adequate stability. When operating in speed control mode, the speed control unit 70 provides closed-loop control of motor speed. The torque control unit 72 receives the torque reference signal, T za£ , from either the speed control unit 70 or the motor command unit 22 and limits the magnitude so that it does not exceed a predetermined range. The result of the limiting performed by the torque control unit 72 is the desired torque signal, T * . When the torque control mode is selected, the torque control unit 72 can provide either open-loop or closed- loop control of the motor 12. If open-loop, the torque control unit 72 receives the torque reference signal, T rt£ , from the motor command unit 22 and limits the magnitude as' described above. If closed-loop, the torque control unit 72 receives from the torque monitor 66 a feedback signal, T tt , indicating motor torque, defines a torque error signal, runs it through a proportional-integral controller and a limiter to generate the desired torque signal, T * . The optional torque monitor 66, which is needed for closed-loop torque control, infers motor torque from the measured stator currents, generates a signal indicative of actual torque, T tt , and feeds it back to the torque control unit 72. To do so, the torque monitor 66 senses the actual stator currents, i al , i a2 , i a3 , converts them to field coordinate values using equations (1) and (2) , and calculates a torque signal, T Q ,, using equation (9) (see below) for feedback to the torque control unit 72. The PWM controller 64 of the motor-side controller 36 controls stator electrical quantities of the motor 12, either the stator currents or the stator voltages, depending on the rotor speed. In the preferred embodiment, the PWM controller 64 includes a current controller 76, a voltage controller 78, and a selector circuit 80. The current controller 76 or the voltage controller 78 generates PWM commutation signals for the active switching devices 26 of the motor-side bridge inverter 24, and the selector circuit 80 chooses which of the PWM commutation signals to output to the drive circuit 38. The current and voltage controllers will be explained in further detail below. The field orientation converter 62 of the motor- side controller 36 converts the desired torque, T * , and the sensed rotor speed, ω z , into desired field oriented control currents, i * d and i aq , and a desired rotor flux angle, # * . As shown in Figure 5, the field orientation converter 62 computes the desired magnitude ' of the rotor flux, A * , using a desired (flux-producing) direct axis current, i ad . The desired direct axis current, i ad , is a function of the particular motor used, and can be predetermined and stored in the DSP. In the preferred embodiment, i ad is assumed to be constant. Alternatively, i ad can be varied to provide field weakening control, if desired. Again, the notation * designates a desired value defined by the control system as opposed to an actual value. The desired rotor flux, λ * , is defined by the following equation: λ* - -Br Λ r + R r -t, *_■<_ (6) where: λ * « desired rotor flux; λ * « time derivative of desired rotor flux; j « rotor resistance; L Q ■ mutual inductance; I * , « rotor self inductance. In the general case, equation (6) can be represented by the following recursive equation: A A r*,(k v ) . - A A *r,(k v -,1) . — Δt *τ_ Λ r(k-1) + At R, LQ = .__ ■ _.. (7) where: A z(k) ■ A* at time - k, λ r(k-i) m λ r at time « k-l; Δt * sample time period between time = k-l and time « k. In the case -where i ad is constant, the time derivative λ * = 0, so that equation (7) simplifies to: ~ L 0 (8) Once the rotor flux is known, the desired torque can be converted into quadrature axis current. In field coordinates, the torque generated by the motor is given by: τ m P L„ A r i aq (9) 3 L z where: T « motor torque; P «= number of motor _>oles; i, q -= quadrature axis current. Solving equation (9) for i aq , yields the following expression for desired torque-producing quadrature axis current as a function of the desired torque: i* = 3 L r * (10) P L 0 χl where T * is the desired torque defined by the reference signal generator 60. Once the desired rotor flux. A * , and desired quadrature axis current, i * q , have been determined, the desired rotor flux angle, # a , at a particular instant of time can be found. This is accomplished by solving the following equations: ωsi R, , ϊj- (ID Z A; ω * « ω r + ω al (12) β * = * Jω dt, 0 < |_» * | ≤ 2π (13) where: __> al = desired machine slip speed; ω * « desired rotor flux speed; (_> z = actual rotor speed; .. * « desired instantaneous rotor flux angle. Machine slip speed, « al , is found from the calculated values, of desired rotor flux, λ * , and desired quadrature axis current, i aq , using equation (11) . The measured rotor speed, ω z , is then added to the machine slip speed, c_> al , to find the desired rotor flux speed, <_> a , according to equation (12) . The desired rotor flux speed, <_> * , is then integrated modulo 2π to find the desired instantaneous rotor flux angle, έ> * . The computed values for desired field oriented currents, i ad and i aq , rotor flux, A * , rotor flux speed, ω a , and rotor flux angle, ø a , are available to the current and voltage controllers 76 and 78 (Figure 4) for determination of the PWM commutation signals. Transformation of the desired stator currents from field coordinates into stationary 2-phase a,β coordinates or balanced 3-phase coordinates, if reguired by the current controller 76 or voltage controller 78, can be accomplished either in the field orientation converter or in the current or voltage controller. Here, it is assumed that the transformations occur outside of the field orientation converter 62. In response to the values computed by the field orientation converter 62, either the current controller 76 or the voltage controller 78, depending on which is selected, determines switch states for the active switching devices 26 of the motor-side bridge inverter 24 (Figure 2) . The current controller 76 generates PWM commutation signals by choosing a switch state that causes stator currents to approximate the desired currents defined by the field orientation converter. The voltage controller 78 generates PWM commutation signals by converting the desired field oriented currents into desired field oriented voltages, transforming them into stator coordinates, and then selecting the appropriate switch state to obtain the desired stator voltages. One simple method of current control is illustrated in Figure 6, a delta modulator current controller. The delta modulator current controller converts the desired field oriented currents into stationary 2-phase stator coordinates, and then to 3-phase stator coordinates to generate desired 3-phase stator currents, i al , i * 2 , i a3 . Transforming the desired currents from rotating field coordinates to stationary 2-phase a,β coordinates is achieved by equation (3) which reduces to the following: i - i∑a CΌS_>; - C sin*; (14) i^ - i; d sin*! + i- cose . ( 15 > The desired stator currents are then transformed into 3- phase coordinates using equation (4) . After converting the desired stator currents from field coordinates into 3-phase coordinates, the delta modulator current controller then periodically compares each desired stator current i^, i * Λ2 - -■ * -- ■ with the corresponding actual stator current i al , i a2 , i a3 , using compare and hold devices 82. If the desired stator current for a phase is greater than the actual stator current, then the upper switching device is switched on and the lower switching device switched off, otherwise, the upper device is switched on and the lower device is switched off. The compare and hold devices 82 set the PWM commutation signals, D α , D lf D 2 , D 2 , D 3 , D 3 to accomplish the desired switching. The notation D B and D n refers to the base drive signals for the upper (D n ) and lower (D n ) devices of one pair of motor-side converter switches 60. The switch state so selected remains in effect until the next sample period occurs, at which time the comparisons are performed with updated actual and desired values. Another method of current control, one that minimizes a distortion index, is illustrated in Figures 7-9. This method generates PWM signals by periodically minimizes a distortion index related directly to total harmonic distortion (THD) . In comparison with the delta modulator current controller or with a linear controller with triangular crossing, this method is preferable due to lower THD at comparable frequencies, while requiring fewer switching events and, consequently, less power loss due to switching. The distortion index that is minimized may be defined as the sum of the squares of the current errors: Jα - Ul. - i.:) 2 + (Hz - i. 2 ) 2 + Uls - i.3) 2 (16) where, ij x , i^, i^, are the desired 3-phase stator currents, and i al , i a2 , i a3 are the actual 3-phase stator currents. Alternatively, the distortion index can be defined as the sum of the absolute values of the current errors. J 2 - I " i.il + Ii÷i " i. 2 | + |irt " i.ιI ( 17 ) Minimizing the distortion index, J, involves determining which of eight possible switch states of the motor-side switches 26 will produce actual stator currents nearest in value to the desired stator currents. One way to accomplish this is shown in Figure 7. Switching decisions are made periodically, based on the most recently measured stator currents. The actual stator currents i,ι< k> , i, 2(k). and i a3(k) , are measured at time «= k, and a projection is made of the stator currents i a _ (k+ i), i »2 ( + υ, and i a3 ( k+ i) at the next interval of time, for each possible switch state. Since there are two possible switch settings for each of the three switch pairs, there are eight (2 s ) possible switch states for the motor-side converter switches. The projected stator currents i a ι< k+J ), i.2<k + ι>» and i β3 c + ι> are found by modeling the motor and motor-side converter according to the following equation derived from a simplified model: V - E + ! * <* • > (18) dt where V « voltage vector resulting from a particular switch state; ■ E « motor emf vector; i, « stator current vector. Evaluating the derivative over a discrete time interval, Δt, yields the following for the projected currents: i β Δt (V (k> - E (k) ) + i a(k) (19) -÷- The projected stator currents can thus be found for each switch state by evaluating equation (19) using the voltage vector that would result from that switch state. After the projected stator currents are found, the distortion index, J, can be computed by equations (16) or (17) for each possible switch state. The switch state that yields the minimum value of J is output to the selector 80. While the above-described method will define a switch state that minimizes the distortion index, another equivalent method is preferable due to its reduced computational overhead. The alternative method of computing the switch state that minimizes the distortion index is illustrated in Figures 8 and 9. This method converts the desired stator current vector into an equivalent desired voltage vector, and then finds the switch state that would most closely approximate the desired voltage vector. This method in effect minimizes an equivalent distortion index defined in the a,β coordinate system with respect to voltage error: J 3 - ( " .J 2 + (v;, - v.,) 2 (20) or where v^ » desired a axis voltage; v^ ■ desired β axis voltage; v M « actual c axis voltage; v a; * actual β axis voltage. It can be shown that minimizing the voltage differences of equations (20) or (21) is equivalent to minimizing the current differences of equations (16) or (17), since the distortion indices vary only by constant or proportional factors. Due to this equivalence, minimizing the distortion index defined by equations (20) or (21) does control the stator currents, even though the desired currents are converted into desired voltages for evaluating the distortion index. As shown in Figure 8, computations are carried out using the 2-phase a,β coordinate system instead of the 3-phase coordinate system in order to eliminate some redundant computational steps. The measured 3 phase stator currents, i, : , i a2 , and i a3 , are converted into the 2-phase a,β coordinate system using equation (1). The desired field coordinate currents, i * td and i^,, as received from the field orientation converter 62 (Figure 4) , are converted into desired a,β stator currents at time (k) , i^o and i^ (k) , using equation (3). These values are projected forward in time using the formulas: i»β(k+l) * 2 isαO.) " iββ.k-1) (22) i»*.k+i) " i a j( k ) - β øu--i) (23) The motor emf, in a, β coordinates, is estimated by: Σ, -* xl d/dt (cos # * ) - - X * , sin t) (24) E, ■ λ^ d/dt (sin § ) - u>l λl cos («∑ t) (25) The desired voltages in a.β coordinates, v^ and v^, are estimated by the motor model of equation (18) , which defines the following equations in discrete time: V* *- -^o (J-t-Ck÷l) * " i«tt) + v ( 6) " * Δt ^ v * β -~- (*_._.ck+x) ~ *--β) + Em ( 7) • ' Δt β Next, instead of solving equation (20) or (21) for each possible switch state, the desired α and β axis voltages, v^ β and w * tP , are compared to the limited number of voltage vectors that could result from the eight possible switch states. These voltage vectors, shown in Figure 9, have a magnitude of either zero or the DC link voltage, v dc , and are aligned with the s lr s 2 , and s 3 axes. The voltage vectors are defined according to the following table: Since states 0 and 7 define the same zero voltage, there are seven possible stator voltages that could result from the eight possible switch settings of the active switching devices of the motor-side converter. Minimizing the distortion index is accomplished by finding which stator voltage vector is closest to the desired voltage vector defined by v^ and v^. Graphically, the a,β coordinate space can be divided into seven regions: an inner circle 84 of radius v de /2, plus six 60° sectors 86-91 of outer radius v de surrounding the inner circle, each sector having a switch state centered at the outer radius thereof. Determining the c osest voltage vector is a matter of finding into which region the desired voltage vector falls. To do so, the magnitude of the desired voltage vector is first compared to v de /2 to determine whether the desired voltage vector falls within the inner circle 84. If the magnitude of the desired voltage vector is less then one-half of v de , then state 0 or state 7 is the desired switch state. Choosing between state 0 and state 7 is accomplished t selecting the state that requires the fewest number of switches to change state from the previous witch setting. Next, if the magnitude of the desired voltage vector exceeds v dc /2, then the signs of v^ and v^ are examined to determine in which quadrant of the a,β plane the voltage vector falls. If the sign of v^, is positive, then states 1, 2, or 6 are candidates, and, if negative, then states 3, 4, or 5 are candidates. If both v∑β and v^ are positive, for example, then either state 1 or state 2 is the closest voltage vector. For v^ and v^ positive, state 1 is closest if v^. > v^, otherwise state 2 is closest. This is so because a dividing line 92 between sector 86 of state 1 and sector 87 of state 2 is inclined at 30* to the o axis, and because: tan 30- - ^_ " _ (28) The selections between states 3 and 4, 4 and 5, and 1 and 6 in the other quadrants are developed in the same manner. Once the closest voltage vector is found, the switch state associated with that voltage vector is output to the selector 80. Referring back to Figure -4, operation with the current controller 76 generating the PWM commutation signals occurs at relatively low speeds, where the DC voltage link offers substantial ceiling voltage. In that situation, the current controller 76 keeps the stator currents in close agreement with the desired stator current values. This operation effectively results in current sources for the stator windings, which allows the current controller to ignore the stator voltages. At higher speeds, however, where the motor emf approaches the voltage of the DC voltage link, the stator voltages can no longer be ignored. In this operating region, the voltage controller 78 takes the stator voltages into consideration. The selector 80 senses the rotor speed, <_> z , and selects the voltage controller 78 instead of the current controller 76 when the rotor speed exceeds a predetermined value. This value can be determined empirically by observing the distortion of the current waveform during operation of the current controller at various speeds. Preferably, some hysteresis is built into the switching point of the selector 80 so that small oscillations of the rotor speed about the switching point do not cause repeated switching between current control and voltage control. As an alternative to or in addition to monitoring the rotor speed, the DC link voltage and the motor emf can be monitored to determine at which point to switch between current control and voltage control. Monitoring the DC link voltage is not necessary in the preferred embodiment because the line-side controller 52 maintains that voltage at a fairly constant value. Like the current controller 76, the voltage controller 78 periodically generates a set of PWM commutation signals for switching on and off the active switches of the motor-side converter. The voltage controller 78 monitors the desired and actual torque and flux, as defined by the field oriented currents, i∑ d and i * tq , compensates for the stator voltages, and generates field oriented control voltages, v * tΛ and v q , which are used to generate the commutation signals. The stator voltages, in field coordinates, are defined by the following equations: , l ad + i ad « V.^- (l-g) L. A r + σ L, ω. i, q (29) R, R, R, L 0 R, g L. i., + i., - y,2_- (1-σ) L, a A z - a L, ω, i, d R, R, R. I R. (30) where: a -* • total or global leakage factor; L, = stator inductance; R, - stator resistance. The last two terms on the right sides of equations (29) and (30) are coupling terms for which compensation is required to eliminate cross coupling between the direct and quadrature axes. The goal is to define v∑ as a function of i * i and v∑ as a function of i∑ q . Eliminating the cross coupling terms allows v∑ d to control rotor flux and v∑ q to control torque. The operation of the voltage controller 78 is shown in Figure 10. The actual 3 phase stator currents, i al , i »2 , i «3 , are converted into field oriented coordinates by equation (1) defining a 3 phase to 2 phase transformation and equation (2) defining a stationary to rotary transformation. The desired voltage on the quadrature axis, v q , is defined by first subtracting the actual quadrature current, i aq , from the desired quadrature current, i∑ q , and then running the resultant through a proportional-integral (PI) controller 94 to define v' q , which is a measure of quadrature axis current error. The PI controller supplies a proportional/integral output of the form: vj q = k p (i; q - i aq ) + k A / (i; q - i aq ) dt (31) where k p and k 4 are coefficients selected to provide adequate stability. Equation (31) can be evaluated in discrete time by the following: ;, C k) β + (kp + Δt k A ) (i; q(k) - i aq(k) ) - kp (i aq ( -χ) - iιq{k-X)) (32) The value of v* q is then compensated by adding a decoupling factor consisting of the two voltage coupling terms on the right side of equation (30) , which results in v q as follows: '»q v∑ (l-σ) L a ω. A z + σ L. ω! i ■d (33) R. L Similarly, the desired voltage on the direct axis, v∑ d , is defined by first subtracting the rotor flux divided by the mutual inductance, z * /L o l from the desired direct axis current, i * Λi . The resultant is then input to another PI controller 96, which defines v' d as a measurement of direct axis current error. PI controller 96 is similar to the PI controller 94 for the quadrature component. The value of vj d is then compensated by adding a decoupling factor consisting of the two voltage coupling terms on the right side of equation (29) , which results in v∑ d as follows: v; d - v' d + ( I- ?) -*- A _ " ° *-- »_ --- ( 4) R, L o R, Once the desired field coordinate voltages, v∑ d and v∑ q , have been defined, they are transformed into 3- phase stator voltages by equation (3) defining a rotary to stationary transformation and equation (4) defining a 2 phase to 3 phase transformation, resulting in v∑-, v z , and v 3 . These reference voltages are modulated by a triangular carrier wave to generate the PWM commutation signals, D lf Dj, D 2 , D 2 , D 3 , and D 3 that are sent to the selector 80 (Figure 4). In the preferred embodiment, the triangular carrier wave has a frequency of about 8 kHz, while the comparisons between the reference voltages and the carrier wave are performed continuously or at a rate much higher than 8 kHz. Figure 11 illustrates how a computer program is structured for execution in the digital signal processor of the motor-side controller 36. The program consists primarily of a main loop and an interrupt service routine. The main loop initializes the necessary variables, and then loops until it is interrupted, which occurs periodically. The interrupt service routine performs the calculations necessary for generating the PWM commutation signals, and then updates the control variables. Upon interrupt, the interrupt service routine first reads the stator currents, and then executes the code of either the current controller or the voltage controller to generate and output the appropriate switch states. The interrupt routine then branches depending on the control mode that has been selected. If the torque mode is selected, the interrupt routine reads a value for the torque reference signal, T ca£ . If the speed mode is selected, the interrupt routine reads a value for the speed reference signal, ω -- t ι then computes a speed error, c za£ - ε z , and computes T ra£ using a proportional-integral controller implementing equation (5) . If the position mode is selected, the interrupt routine reads a value for the position reference signal, c za£ , then computes a position error, ε za£ - ε z , computes the speed reference signal, ω εa£ , using a proportional controller and enters the speed mode branch, which computes the speed error and T ca£ . Regardless of the control mode, the interrupt service routine eventually ends up with a value of T sa£ . From that point, the interrupt service routine limits the value of T ra£ , which results in the desired torque T * , and updates the corresponding value of the desired quadrature axis current, i∑ q . The routine then reads the speed sensor and computes a new value for the rotor speed, ι_> z , and position, c z . The routine updates the value for desired rotor flux, λ z , and the desired instantaneous rotor flux angle, § . The interrupt service routine then transforms the desired field oriented currents into stationary 3 phase values. The interrupt routine then returns to the main loop, which waits until the next periodic interrupt, at which time the updated values will be used to compute the switch states. All constants used in the calculations are computed in advance, and the expressions are arranged to avoid division, which executes relatively slowly in a DSP. The steps performed in the computer program can be executed in different order than is shown in Figure 11, but it is important to calculate and output the switch states as soon as possible after reading the actual stator currents. Turning now to the line-side converter 16 of the motor controller 10, the details of the line-side controller 52 are shown in Figures 12-14. Like the motor-side controller 36, the line-side controller 52 is preferably implemented with a digital signal processor, a Texas Instruments model TMS320C25. Computer code for implementing the line-side control function in a DSP is disclosed in the microfiche appendix. The line-side controller 52 controls the line-side bridge inverter 42 to draw from or supply to the utility grid power with adjustable power factor and low THD. The line-side converter 16 can supply or.absorb reactive power as needed by adjusting the phase difference between the line voltage and current. Low harmonic distortion is achieved in the same way as in the current controller 76 of the motor-side controller 36, by periodically minimizing a distortion index. In addition, the line-side controller 52 also controls the voltage of the DC voltage link, to maintain it at a desired value. As shown in Figure 12, the line-side controller 52 uses the line voltage as a sinusoidal waveform reference, rotates the reference waveform by a certain phase angle to generate a rotated reference waveform, or "template", then multiplies the template waveform by a factor, I raf , derived from the DC link voltage, v dc , to generate a desired current waveform. The actual currents are compared to the desired currents to generate the PWM commutation signals for the line-side switches 44. All of the calculations of the line-side controller 52 are performed periodically. In the preferred embodiment, the DSP cycles through its calculations every 125 microseconds, equal to a rate of 8 kHz. The multiplication factor, I za£ , is calculated as follows. The measured DC link voltage, v dc , is subtracted from a desired value of the DC link voltage, v de , to generate an error, which is then input to a PI controller 98. The PI controller 98 supplies a proportional/integral output of the form: I»f - ( - * v *-< + } -i S ~ v de ) dt (35) where k p and A are coefficients selected to provide adequate stability. In discrete time, equation (35) can be evaluated as follows: ϊr t fC ) * * - * ϊr.fCk-X) + (kp + Δt t ) (V de(k) - V de(k) ) - k p (v; e(k . 1} - y Aei - ) (36) The rotational transformation of the reference waveform can be accomplished in either 3-phase or 2- phase coordinates. In 3-phase coordinates, the template waveform, rotated by an angle φ, is calculated as follows: v tl « (cos φ + Z5/3 sin Φ) v 0l + (2 5/3 sin )v β2 (37) V t j « (cos (φ + 2r/3) + i/3 sin (φ + 2tτ/3)) v βl 4 (2/J/3 sin (φ + 2.7/3)) V β2 (38) These values can be transformed into the 2-phase a,β coordinate system using equation (1) . The result is v to and v t/J . The template values that result from the rotational transformation, v^ and v tp , are then multiplied by the value of I za£ to define the desired 2- phase line currents, i ∞ and i^. The desired line currents are input into a current controller 100, which compares them to the actual currents and generates the appropriate PWM commutation signals for the line-side switches. The current controller 100 of the line-side controller can be implemented in the several ways described above for the current controller 76 of the motor-side controller, including the delta modulator. Preferably, however, the current controller 100 generates switch states that minimize the distortion index, J, in a manner similar to that described above with respect to Figures 8 and 9. Referring to Figure 13, the line-side current controller defines desired line voltages, v^ and v^, according to the following equations: v* « - ^ ( ( > - o ) + v (40) " ■ Δt ~ v*oA. -~ + v cβ (41) where: L„ is the line impedance; i ( k+ > and i^ (k+1) are the desired line currents at time * k+1 in a.β coordinates; i M and i ofS are the measured line currents in ,β coordinates; v M and v^ are the measured line voltages in a.β coordinates; Δt is the sample period. The desired line voltages, v^ and v^, are then compared to the seven available voltage vectors, and the switch state associated with the nearest voltage vector is selected and output to the line-side switches 44. Determining the nearest voltage vector is accomplished in the same manner as explained above with respect to the motor current controller of Figures 8 & 9. A computer program directs the operation of the digital signal processor of the line-side controller to perform the calculations described above. As shown in Figure 14, the computer program is structured like that of the motor-side controller 36 in that a main loop executes until periodically interrupted, and then an interrupt service routine updates the sensed inputs, PWM switch state, and calculated variables. The interrupt service routine running on the line-side controller DSP first reads the line currents, line voltages and DC link voltage. Then it calculates the optimal switch state, which it outputs to the line-side switches. Then the interrupt routine performs calculations necessary for the next calculation of switch state by rotating the voltage reference to define the template waveform, computing the multiplication factor I za£ , and multiplying the template waveform by I ra£ to compute the desired currents for the next interrupt. Then control returns to the main loop, where it waits until interrupted again. In the preferred embodiment, interruptions occur at a rate of about 8 kHz. Referring back to Figure-2, the power factor controller 58 can control either the power factor angle, Φ, or the magnitude of reactive power to supply vars (volt-ampere-reactive) to the utility. The type of power factor control is specified by the operation mode signal that is input into the power factor controller. If the power factor angle is controlled, the power factor controller 58 outputs to the line-side controller 52 a constant value of φ that is defined by the power factor input signal. If the reactive power is controlled, the power factor controller monitors the reactive power feedback signal, Q a , compares it to a desired reactive power level defined by the reactive power input signal, and adjusts the power factor angle, φ, to obtain the desired reactive power. The power factor correction facility of the line- side controller 52 can be utilized even when the motor 12 is not operating, by operating in a static var mode. To do so, the power factor controller 58 sets the power factor angle φ equal to 90°. After the DC link is charged up by the utility through the line-side bridge inverter 42, the line-side controller operates as described above to rotate the line current to lead the voltage by 90*. In static var mode, the line-side controller 52 controls just the reactive power component of the electrical power flowing through the line-side converter 16. This supplies reactive power to the utility to counteract reactive loads drawing power from the utility grid. From the above description, it will be apparent that the invention disclosed herein provides a novel and advantageous motor controller. The foregoing discussion discloses and describes merely exemplary methods and embodiments .of the present invention. As will be understood by those familiar with the art, the invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. For example, some aspects of the current controller can be performed in various ways equivalent to those disclosed herein, including using hysteresis control or forced oscillation with triangular intersection. The motor need not be a three-phase squirrel-cage induction motor, but may be any multiphase motor, including a synchronous motor. In addition, the torque monitor could directly measure torque with a transducer, instead of inferring torque from the measured stator currents. Accordingly, the disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention, which is set forth in the following claims. APPENDIX

Claims: 148 H What is claimed is: 1. A motor control apparatus for controlling a multiphase AC motor having stator windings and a rotor and powered by a source of AC power, the apparatus comprising: motor command means for defining a reference signal indicative of a desired motor parameter; a DC voltage link including means for storing energy; line-side converter means coupled to the DC voltage link for controlling the bidirectional flow of electrical power between the DC voltage link and the source of AC power, wherein the line-side converter includes active switches coupled in a bridge configuration between the source of AC power and the DC voltage link, and includes line-side control means for controlling the active switches therein to regulate the flow of electrical power therethrough; and motor-side converter means coupled to the DC voltage link for controlling stator electrical quantities of the motor by controlling the bidirectional flow of electrical power between the DC voltage link and the motor, wherein the motor-side converter includes active switches coupled in a bridge configuration between the DC voltage link and the stator windings of the motor, and includes motor-side control means responsive to the reference signal for controlling the active switches therein to produce stator electrical quantities that correspond to the reference signal. 2. A motor control apparatus as recited in claim I wherein the motor parameter is torque and the reference signal is a torque reference signal indicative of desired motor torques, and wherein the motor-side control means is responsive to the torque reference signal for controlling motor torque. 8 3. A motor control apparatus as recited in claim 1 further comprising rotor speed sensor means for determining a rotor speed signal indicative of the rotational speed of the rotor, wherein the motor parameter is speed and the reference signal is a speed reference signal indicative of desired rotor speeds, and wherein the motor-side control means is responsive to the rotor speed signal and the speed reference signal for controlling rotor speed. . A motor control apparatus as recited in claim I further comprising rotor position sensor means for determining a rotor position signal indicative of the angular position of the rotor, wherein the motor parameter is position and the reference signal is a position reference signal indicative of desired rotor positions, and wherein the motor-side control means is responsive to the rotor position signal and the position reference signal for controlling rotor position. 5. A motor control apparatus as recited in claim 1 further comprising sensor means for sensing the rotational speed of the rotor and determining a rotor speed signal indicative thereof, wherein the motor-side control means includes means for establishing a rotating flux field in the rotor of the motor, the motor-side control means further includes field orientation means responsive to the reference signal and the rotor speed for determining in rotating field coordinates a desired axis current aligned with the rotating rotor flux field and a desired quadrature axis current oriented normal to the rotor flux field, and the motor-side control means further includes modulation means for controlling the active switches to produce stator electrical quantities that correspond to the desired quadrature and direct axis currents. 6. A motor control apparatus as recited in claim 1 further comprising stator current sensors operable for sensing stator currents, wherein the stator electrical quantities are stator currents, wherein the motor-side converter means further includes means responsive to the referenced signal for determining desired stator currents, and wherein the motor-side control means further includes means for minimizing a distortion index indicative of the magnitude of current errors between the sensed and desired stator currents. 7. A motor control apparatus as recited in claim I wherein the stator electrical quantities are stator voltages, wherein the motor-side converter means further includes means responsive to the reference signal for determining desired stator voltages, and wherein the motor-side control means further includes means for controlling the active switches to produce stator voltages that correspond to the desired stator voltages. 8. A motor control apparatus as recied in claim 1 wherein the stator electrical quantities are stator currents when the motor is operating at low rotational speeds and are stator voltages at higher rotational speeds, and wherein the motor-side control means includes means responsive to the rotational speed of the motor for controlling the active switches to produce stator currents that correspond to the reference signal at the low rotational speeds and to produce stator voltages that correspond to the reference signal at the higher rotational speeds. 9. A motor control apparatus as recited in claim 1 wherein the line-side converter means includes means responsive to a power factor control signal for controlling the active switches therein to regulate the flow of electrical power therethrough at a desired angle between voltage and current. 10. A motor control apparatus as recited in claim I further comprising line-side current sensors operable for sensing line currents through the line-side active switches, wherein the line-side converter means further includes means for determining desired line currents, and wherein the line-side control mean further includes means for minimizing a distortion index indicative of the magnitude of current errors between the sensed and desired line currents. 11. A method for controlling a multiphase AC motor coupled to a source of AC power through a motor-side converter coupled to the motor, a DC voltage link coupled to the motor-side converter, and a line-side converter coupled between the DC voltage link and the source of AC power, wherein the motor-side converter includes active switches coupled in a bridge configuration between the DC voltage link and stator windings of the motor, and wherein the line-side converter includes active switches coupled in a bridge configuration between the source of AC power and the DC voltage link, the method comprising the steps of: controlling stator electrical quantities of the motor by controlling the bidirectional flow of electrical power through the motor-side converter,including the steps of defining a reference signal indicative of a desired motor parameter and controlling the active switches therein to produce stator electrical quantities that correspond to the reference signal; and controlling the bidirectional flow of electrical power through the line-side converter by controlling the active switches therein to regulate the direction and flow of electrical power therethrough. 5148 12. A method for controlling a motor as recited in claim 11 wherein the motor parameter is torque and the reference signal is a torque reference signal indicative of desired motor torques, and wherein the method further comprises the step of using the torque reference signal to control motor torque. 13. A method for controlling a motor as recited in claim 11 wherein the motor parameter is speed and the reference signal is a speed reference signal indicative of desired rotor speeds, and wherein the method further comprises the steps of determining a rotor speed signal indicative of the rotational speed of the rotor, and using the speed reference and rotor speed signals for controlling rotor speed. 14. A method for controlling a motor as recited in claim 11 wherein the motor parameter is position and the reference signal is a position reference signal indicative of desired rotor positions, and wherein the method further comprises the steps of determining a rotor position signal indicative of the position of the rotor, and using the position reference and rotor position signals for controlling rotor position. 15. A method for controlling a motor as recited in claim 11 further comprising the steps of: sensing the rotational speed of the rotor; determining a desired direct axis current representing rotor flux in a direction aligned with rotor flux field in a rotating field coordinate system; converting the reference signal into a desired quadrature axis current representing rotor torque, wherein the quadrature axis current is normal to the rotor flux field in the field coordinate system; determining a rotor flux angle indicative of the instantaneous position of the rotor flux field; and converting the desired quadrature and direct axis currents into desired stator electrical quantities in a stationary stator coordinate system using the rotor flux angle; and wherein the step of controlling the active switches of the motor-side converter includes the step of controlling the active switches to produce stator electrical quantities that correspond to the desired stator electrical quantities. 16. A method for controlling a motor as recited in claim 11 wherein the stator electrical quantities are stator currents, wherein the method further comprises the step of determining desired stator currents, and wherein the step of controlling the active switches of the motor- side converter includes the step of producing stator currents that correspond to the desired stator currents. 17. A method for controlling a motor s recited in claim 16 wherein the step of controlling the active switches of the motor-side converter includes the steps of sensing the stator currents and minimizing a distortion index indicating the magnitude of current errors between the sensed and desired stator currents. 18. A method for controlling a motor as recited in claim 11 wherein the stator electrical quantities are stator voltages, wherein the method further comprises the step of determining desired stator voltages, and wherein the step of controlling the active switches of the motor-side converter includes the step of producing stator voltages that correspond to the desire stator voltages. 19. A method for controlling a motor as recited in claim 11 wherein the stator electrical quantities are stator currents when the motor is operating at low W rotational speeds and are stator voltages at higher rotational speeds, and wherein the step of controlling the active switches of the motor-side converter includes the step of producing stator currents that correspond to desired stator currents at the low rotational speeds and producing stator voltages that correspond to desired stator voltages at the higher rotational speeds. 20. A method for controlling a motor as recited in claim 11 wherein the step of controlling the active switches of the line-side converter includes the step of regulating the flow of electrical power therethrough at a desired angle between voltage and current. 21. A method for controlling a motor as recited in claim 11 wherein the step of controlling the active switches of the line-side converter includes the steps of monitoring the voltage of the DC voltage link, comparing the measured voltage of the DC voltage link to a desired voltage thereof, sensing the line currents, establishing desired line currents as a function of the difference between the measured and desired voltages of the DC voltage link, and minimizing a distortion index indicating the magnitude of current errors between the sensed and desired line currents. 22. A method for controlling a multiphase AC motor coupled to a source of AC power through a motor-side converter coupled to the motor, a DC voltage link coupled to the motor-side converter, and a line-side c onverter coupled between the DC voltage link and the source of AC power, wherein the motor-side converter includes active switches coupled in a bridge configuration between the DC voltage link an stator windings of the motor, and wherein the line-side converter includes active switches coupled in a bridge configuration between the sourced of AC power and the DC voltage link, the method comprising the steps of: controlling stator electrical quantities of the motor by controlling the bidirectional flow of electrical power through the motor-side converter, including the steps of defining a reference signal indicative of a desired motor parameter, converting the reference signal into desired quadrature axis current in rotating filed coordinates normal to a rotor flux field, and controlling the active switches therein to produce stator electrical quantities that correspond to the desired quadrature axis current; and controlling the voltage of the DC voltage link by controlling the bidirectional flow of electrical power through the line-side converter by controlling the active switches therein to regulate the direction and flow of electrical power therethrough. 23. A method for controlling a motor as recited in claim 22 further comprising the steps of: determining a desired direct axis current representing rotor flux in a direction aligned with the rotor flux field in field coordinates; sensing the rotational speed of the rotor; determining a rotor flux angle indicative of the instantaneous position of the rotor flux field; and converting the desired quadrature and direct axis currents into desired stator electrical quantities in a stationary stator coordinate system using the rotor flux angle; and wherein the step of controlling the active switches of the motor-side converter includes the step of producing stator electrical quantities that correspond to the desired stator electrical quantities. 24. A method for controlling a motor as recited in claim 22 wherein the motor parameter is torque and the referenced signal is a torque reference signal indicative of desired motor torques, and wherein the method further comprises the step of using the torque reference signal to control motor torque. 25. A method for controlling a motor as recited in claim 22 wherein the motor parameter is speed and the reference signal is a speed reference signal indicative of desired rotor speeds, and wherein the method further comprises the steps of determining a rotor speed signal indicative of the rotational speed of the rotor, and using the speed reference and rotor speed signals to control rotor speed. 26. A method for controlling a motor as recited in claim 22 wherein the motor parameter is position and the reference signal is a position reference signal indicative of desired rotor positions, and wherein the method further comprises the steps of determining a rotor position signal indicative of the position of the rotor, and using the position reference and rotor position signals to control rotor position. 27. A method for controlling a motor as recited in claim 22 further comprising the steps of determining a rotor flux angle by determining a slip speed of the rotor flux as a function of the desired quadrature axis current and the rotor flux magnitude, sensing rotor speed and adding the rotor speed to the slip speed to define a rotor flux speed, and integrating the rotor flux speed to obtain the rotor flux angle. 28. A method for controlling a motor as recited in claim 22 further comprising the steps of determining a rotor flux angle indicative of the relative rotation between the field coordinates and stationary coordinates, and transforming the desired quadrature axis current into a stationary frame of reference using the rotor flux angle. 29. A method for controlling a motor as recited in claim 22 wherein the stator electrical quantities are stator currents, and wherein the step of controlling the active switches of the motor-side converter includes the step of producing stator currents that correspond to the desired stator currents. 30. A method for controlling a motor as recited in claim 29 wherein the step of controlling the active switches of the motor-side converter includes the steps of sensing the stator currents and minimizing a c_stortion index indicating the magnitude of current errors between the sensed and desired stator currents. 31. A method for controlling a motor as recited in claim 22 wherein the stator electrical quantities are stator voltages, wherein the method further comprises the step of converting the desired quadrature axis current into a desired quadrature axis voltage, and wherein the step of controlling the active switches of the motor-side converter includes the step of producing stator voltages that correspond to the desired quadrature axis voltage. 32. A method for controlling a motor as recited in claim 22 wherein the stator electrical quantities are stator currents when the motor is operating at low rotational speeds and are stator voltages at higher rotational speeds, an wherein the step of controlling the active switches of the motor-side converter includes the step of producing stator currents that correspond to the desired quadrature axis current at the low rotational speeds and producing stator voltages that correspond to the desired quadrature axis current at the higher rotational speeds. 33. A method for controlling an AC motor coupled to abridge inverter, wherein the motor includes a stator and a rotor, the method comprising of the steps of: during low speed operation of the motor, controlling the orientation of a rotor flux field with respect to the rotor by switching the bridge inverter to regulate currents in the stator; determining when the motor commences operation at a higher speed above the low speed; during the higher speed operation of the motor, controlling the orientation of the rotor flux field with respect to the rotor by switching the bridge inverter to regulate voltages in the stator. 34. A method for controlling a motor as recited in claim 33 wherein the step of switching the bridge inverter to regulate currents includes the steps of sensing the stator currents, determining desired stator currents, and minimizing a distortion index indicative of the magnitude of an error between the sensed and desired stator currents. 35. A method for controlling a motor as recited in claim 33 wherein the step of switching the bridge inverter to regulate voltages includes the steps of determining desired stator voltages and controlling the bridge inverter by modulating the desired stator voltages with a triangular carrier wave. 36. A method for controlling a motor as recited in claim 35 further comprising the steps of sensing the rotational speed of the rotor and switching between regulating currents and regulating voltages according to the sensed rotor speed. 37. A multiphase AC inverter comprising: active switches coupled in a bridge configuration and defining a current path for each phase, wherein the state of each active switch determines the direction of current flowing therethrough; current sensor means for sensing inverter currents in each current path; means responsive to a reference signal for determining desired inverter currents; means for periodically determining a distortion index indicative of errors between the desired and actual inverter currents; and means for controlling the active switches to produce inverter currents that minimize the distortion index. 38. An inverter as recited in claim 37 further comprising means for periodically computing a distortion index for each combination of switch states of the active switches and for periodically selecting a switch state that minimizes the distortion index. 39. An inverter as recited in claim 37 further comprising means for converting the desired inverter currents into desired inverter voltages, means for comparing the desired inverter voltages to the voltages that would result for each combination of switch states of the active switches, and means for choosing the switch state having associated voltages that are nearest to the desired inverter voltages. 40. An inverter as recited in claim 39 wherein the distortion index is proportional to the sum of the squares of the current errors. 41. An inverter as recited in claim 39 wherein the distortion index is proportional to the sum of the absolute value of the current errors. 42. A method for controlling currents switches by a bridge inverter containing active switches, the method comprising the steps of: determining desired inverter currents; sensing the actual inverter currents; and switching the active switches to produce inverter currents that minimize a distortion index indicating the magnitude of current errors between the actual and desired inverter currents. 43. A method for controlling currents as recited in claim 42 further comprising the step of periodically computing a distortion index for each combination of switch states and selecting a switch state that minimizes the distortion index. 44. A method for controlling currents as recited in claim 142 further comprising the steps of converting the desired inverter currents into desired inverter voltages, comparing the desired inverter voltages to the voltages that would result from each combination of switch states of the active switches, and choosing the switch state having associated voltages that are nearest to the desired inverter voltages. 45.' A method for controlling currents as recited in claim 42 further comprising the step of computing a distortion index that is proportional to the sum of the squares of the current errors. 46. A method for controlling currents as recited in claim 42 further comprising the step of computing a distortion index that is proportional to the sum of the absolute value of the current errors. 47. A method for controlling stator currents in a multiphase AC motor rotating at variable speeds, wherein the stator currents are switched by a bridge inverter that includes active switches, the method comprising the steps of: defining a reference signal indicative of a desired motor torque, speed, or position; converting the reference signal into desired stator currents; sensing the actual stator currents; determining a distortion index indicative of the magnitude of current errors between the actual and desired stator currents; and supplying pulse width modulation signals to the active switches to produce stator currents that minimize the distortion index. 48. A method for controlling currents in a motor as recited in claim 47 wherein electrical power for powering the motor is supplied to the bridge inverter from a second bridge inverter that is coupled to a source of AC power, wherein the second inverter includes active switches, wherein the method further comprises determining a signal indicative of desired line currents of the second inverter, sensing the actual line currents of the second inverter, determining a second distortion index indicative of the magnitude of current errors between the actual and desired line currents, and supplying pulse width modulation signals to the active switches of the second bridge inverter to produce line currents that minimize the second distortion index. 49. A motor control apparatus for controlling a three-phase AC induction motor having stator windings and a rotor and powered by a three-phase source of AC power, the apparatus comprising: a DC voltage link including capacitor means for storing energy; motor-side converter means coupled to the DC voltage link for controlling stator electrical quantities of the motor by controlling the bidirectional flow of electrical power between the DC voltage link and the motor, wherein the motor-side converter includes three pairs of transistors coupled in a bridge configuration between the DC voltage link and the stator windings of the motor, and includes motor-side control means responsive to the reference signal and rotor speed signal for establishing desired stator electrical quantities and for pulse-width modulating the transistors therein to produce stator electrical quantities that correspond to the desired stator electrical quantities; and line-side converter means coupled to the DC voltage link for controlling the bidirectional flow of electrical power between the DC voltage link and the source of AC power, wherein the line-side converter includes three pairs of transistors coupled in a bridge configuration between the source of AC power and the DC voltage link, includes current sensors operable for sensing line currents flowing through the line-side converter, and includes line-side control means responsive to a power factor control signal for controlling the transistors therein to conduct line electrical power at a desired angle between voltage and current, wherein the line-side control means includes means for defining a sinusoidal reference waveform synchronized with the line frequency, means responsive to the power factor control signal for determining a template waveform that is offset from the reference waveform by a desired phase angle, means responsive to the voltage of the DC voltage link for multiplying the template waveform by a control variable indicative of a desired voltage thereof, means for converting the multiplied template waveform into the desired line currents, and means for controlling the transistors to produce line currents that correspond to the desired line currents. 5 50. A method for controlling a multiphase AC motor coupled to a source of AC power through a motor-side converter coupled to the motor, a DC voltage link coupled to the motor-side converter, and a line-side converter coupled between the DC voltage link and the source of AC power, wherein the motor-side converter include active switches coupled in a bridge configuration between the DC voltage link and stator windings of the motor, and wherein the line-side converter includes active switches coupled in a bridge configuration between the source of AC power and the DC voltage link, the method comprising the steps of: controlling the bidirectional flow of electrical power through the motor-side converter; and controlling the bidirectional flow of electrical power through the line-side converter by the steps of forming a reference waveform, rotating the reference waveform by a selected power factor angle to yield a template waveform, using the template waveform to generate desired line currents, and controlling the line- side active switches to produce line currents corresponding to the desired line currents. 51. A method for converting electrical power as recited in claim 50 further comprising the steps of sensing the level of reactive power in the line electrical power, an selecting the power factor angle according to a desired level of reactive power. 52. A method for converting electrical power as recited in claim 50 further comprising the steps of sensing line currents and minimizing a distortion index indicative of the magnitude of current errors between the sensed and desired line currents. 53. A method for converting electrical power as recited in claim 50 wherein the reference waveform is sinusoidal and synchronized with the line electrical power, an the template waveform is offset from the reference waveform by the power factor angle. 54. A method for converting electrical power as recited in claim 53 wherein the step of creating a reference waveform includes the steps of sensing the voltages of the line electrical power and determining the reference waveform from the sensed line voltages. 55. A method for converting electrical power as recited in claim 53 wherein the step of determining a template waveform includes the step of periodically calculating the -template waveform by shifting the reference waveform by the power factor angle. 56. A method for converting electrical power as recited in claim 53 further comprising the step of regulating the voltage of the DC voltage link by multiplying the template waveform before conversion into the desired line currents by a control variable indicative of an error between actual and desired voltage of the DC voltage link. 57. A method for controlling the bidirectional flow of electrical power through a bridge inverter that supplies AC power to a multiphase AC motor through a DC voltage link, wherein the bridge inverter includes active switches coupled in a bridge configuration between the source of AC power and the DC voltage link, the method comprising the steps of: forming a sinusoidal reference waveform synchronized with the line electrical power; rotating the reference waveform by a selected power factor angle to yield a template waveform; sensing the voltage of the DC voltage link and determining a current control signal in response thereto; multiplying the template waveform by the current control signal to generate desired line currents; sensing the line currents; and controlling the active switches to produce line currents by minimizing a distortion index indicative of the magnitude of current errors between the sensed and desired line currents. 58. A motor control apparatus for controlling reactive power supplied to a source of AC power, the apparatus comprising: a DC voltage link including means for storing energy; line-side converter means coupled to the DC voltage link for controlling the bidirectional flow of electrical power between the DC voltage link an the source of AC power, wherein the line-side converter includes active switches coupled in a bridge configuration between the source of AC power and the DC voltage link, and includes line-side control means responsive to a power factor control signal for controlling the active switches to regulate the flow of electrical power therethrough at a desired angle between voltage and current. 59. A method for supplying reactive power to a source of AC power by controlling the flow of reactive power through a line-side converter coupled between a DC voltage link and the source of AC power, wherein the line-side converter includes active switches coupled in a bridge configuration between the source of AC power and the DC voltage link, and wherein the DC voltage link includes energy storage means, the method comprising of the steps of: forming a reference waveform indicative of the line voltage; rotating the reference waveform by a selected power factor angle to yield a template waveform; using the template waveform to generate desired line currents; and controlling the active switches of the line-side converter to produce line currents corresponding to the desired line currents.

Inventors: ERDMAN WILLIAM L, RICHARDSON ROBERT D, ERDMAN, WILLIAM, L., RICHARDSON, ROBERT, D.
Applicants: US WINDPOWER, U.S. WINDPOWER, INC.
Application year: 1992
Main classification: H02P5
IPC codes: H02M5, H02P21, H02P23, H02P27