Abstract:
An inverter apparatus is provided with first and second current detectors for detecting the current of two arbitrary phases and further with first and second A/D converters, and they are integrated into one unit. It furthermore stores, in a storage device, a compensation value for compensating for an unbalance between gains of the first current detector and the first A/D converter, and gains of the second current detector and the second A/D converter. By multiplying the detected current value of either one of the detected phases by this compensation value, it equalizes the current feedback gains for both phases.

Description:
BACKGROUND OF THE INVENTION 
   1. Field of the Invention 
   The present invention relates to improving the inverter apparatus used to control an AC motor. 
   2. Description of the Related Art 
   The inverter apparatus which drives an AC motor detects the currents for the respective phases output from the inverter apparatus to the AC motor, then feeds them back to effect feedback control for current. With the inverter apparatus that is mounted to a three-phase AC motor, for example, current detectors are incorporated to detect the respective currents of two phases and thereby perform feedback control for the respective current phases. 
   In the above case, if a difference in gain occurs between the current detectors, torque ripple will occur, resulting in unstable rotation of the AC motor. The conventional way to deal with this problem is to adjust the gain unbalance for each inverter apparatus before the apparatus is turned on or while it is operating, either manually or automatically, based on values detected by the current detectors of the inverter apparatus, or data on motor speed, position and torque. Refer to Japanese Patent Application Laid-open No. H6-121569 for an example. 
   With the conventional technology, in order to compensate for gain unbalance in the current detectors of the inverter apparatus, either before the inverter is turned on, or while it is operating, measures need to be taken, such as rotating the motor or allowing the output current in the inverter apparatus to flow. Also, the gain unbalance needs to be readjusted when the inverter apparatus is replaced and the replaced inverter apparatus is connected to a motor or current detectors. 
   SUMMARY OF THE INVENTION 
   An object of the present invention is, for solving the problems of the conventional technique, to provide an inverter apparatus that eliminates the need for making adjustments while the inverter apparatus is operating, or while it is being mounted to a motor, and to eliminate the need to readjust the gain unbalance when the inverter apparatus is replaced. 
   According to the present invention, an inverter apparatus for AC motor control comprises electrical current detection means for detecting electrical current for each phase of at least two phases, storage means for storing compensation data for compensating for gain unbalance occurring in the current detection means, and compensation means for compensating for gain unbalance based on the compensation data stored in the storage means when the motor is driven. 
   With this inverter apparatus, adjustment of gain unbalance while the inverter apparatus is operating, and adjustment of gain unbalance once the inverter apparatus has been incorporated into a motor and replaced become unnecessary. 
   Compensation data for compensating for gain unbalance may be acquired based on the value fed back from respective current detector means, mounted on the inverter apparatus, to the current control circuit of the inverter apparatus, and stored in the storage means. 
   Also, this compensation data may be either the ratio of gains or gains themselves of current detection means for at least two phases, or else, may be the ratio of differences in the output values of the current detection circuit for each phase that is obtained when at least two patterns of output current are caused to flow in a state where the same current flows to the two-phase outputs. 
   With the present invention, as current detection means for detecting at least two phases are integrally incorporated in an inverter apparatus, the gain unbalance in the current detection means can be acquired at the time the inverter apparatus is manufactured, and as compensation data for compensating for the gain unbalance is preset and stored in the storage means, the need for performing adjustments for gain unbalance after the inverter apparatus is mounted to the motor is eliminated, allowing the inverter apparatus to be put into operation immediately. Also, the need for adjusting the gain unbalance at the time the inverter apparatus is replaced is eliminated, hence, the process of mounting the inverter apparatus to a motor at a manufacturing site becomes much easier. Furthermore, the compensation data to be stored in storage means for compensating for gain unbalance can be acquired based on the electrical current feedback value that is fed back to the current control circuit, so that more accurate data is obtained. 

   
     BRIEF DESCRIPTION OF THE DRAWINGS 
       FIG. 1  is a block diagram illustrating an embodiment of an inverter apparatus according to the present invention; 
       FIG. 2  is a figure illustrating the method of measuring gain unbalance and the method for setting the compensation value in the embodiment; 
       FIG. 3  is a figure illustrating the results of detection of R phase using the method for measuring gain unbalance in the embodiment; and 
       FIG. 4  is a figure illustrating the results of detection of S phase using the method for measuring gain unbalance in the embodiment. 
   

   DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     FIG. 1  is a block diagram illustrating an embodiment of an inverter apparatus used for controlling an AC motor according to the present invention. As shown in  FIG. 1 , an inverter apparatus  10  of this embodiment comprises a bridge circuit  1 , which constitutes the inverter itself, includes switching elements such as transistors or the like and diodes, etc.; a PWM command generator section  2  which generates a PWM (pulse-width modulations command for driving and controlling the above-mentioned bridge circuit  1 ; a current control circuit  3  which performs feedback control of electrical current based on a current command (torque command) from a host control device and a current feedback value and outputs a command signal to the PWM command generator section  2 ; current detectors  4   r  and  4   s  (which are designed to detect currents in R and S phases in this embodiment); A/D converters  5   r  and  5   s ; a multiplier  6 , and an EEPROM  7 . 
   The present invention is characterized in that, as shown in  FIG. 1 , current detection means made up of the current detectors  4   r  and  4   s  and the A/D converters  5   r  and  5   s  are pre-incorporated in the inverter apparatus  10 , along with the multiplier  6  and the EEPROM  7 . 
   The outputs of the inverter apparatus  10 , i.e., the outputs of R, S and T phases of the bridge circuit  1 , are connected to the AC motor. Based on the current command (torque command) from the host control device (not illustrated) and the current feedback values that are detected by the current detector currents  4   r  and  4   s  and converted into the digital signals by the A/D converters  5   r  and  5   s , the current control circuit  3  performs feedback control of current and outputs a command signal to the PWM command generator section  2 . Based on this command signal, the PWM command generator  2  outputs the PWM command to turn ON/OFF the switching element of the bridge circuit  1  for controlling the bridge circuit  1 . 
   If the gains of the two current detection means are equal (gains including both the gain of the current detectors and the gain of the A/D converters are referred to as gains of current detection means), no problems will occur. However, as these gains normally differ, the multiplier  6  and the EEPROM  7  are incorporated to adjust for gain unbalance. With these means, the gains of the R phase and S phase current detection means (current feedback gain) are adjusted so as to be equalized. In this embodiment, the current feedback signal for R phase is multiplied by a compensation value H that is stored in the EEPROM  7  so that the gain of current detection means for R phase ( 4   r ,  5   r ) (that is a current feedback gain, including gains of the current detector  4   r  and the A/D converter  5   r ) is adjusted so as to equal the gain of the current detection means for S phase ( 4   s ,  5   s ) (including gains of the current detector  4   s  and the A/D converter  5   s ). 
   Conventionally, as a ROM for storing gain unbalance is not built into the inverter apparatus, gain unbalance adjustments for the current detectors can only be performed after the inverter apparatus and current detectors have been mounted to the motor. Accordingly, adjustments are made by operating the inverter apparatus and while the motor is being driven, or by locking the motor rotation before the motor is driven and causing current to flow through the inverter apparatus to detect gain unbalance in the current detection means. 
   With the present invention, as the inverter apparatus is integrated with the current detectors  4   r  and  4   s  and A/D converters  5   r  and  5   s , the characteristics of the current detection means are predetermined, and the gain unbalance of the current detection means (current feedback) is also predetermined. Therefore, after the inverter apparatus  10  is assembled, the compensation value H can be stored in EEPROM  7  by measuring the gain unbalance for this current detection means. 
   Consequently, it is no longer necessary to adjust the gain unbalance at a site where the inverter apparatus is mounted on the motor; also such adjustments are not required after the inverter apparatus is replaced, which simplifies the assembly of a motor control apparatus. 
     FIG. 2  is a diagram explaining the measurement of gain unbalance by this current detection means and the writing of the compensation value H for adjusting the gain unbalance in the EEPROM  7 . 
   Before the inverter apparatus  10  is mounted on a motor, that is, when the inverter apparatus  10  is assembled (before shipment, for example), the output terminals for the two phases for current detection are short-circuited by load resistor  21 . In this embodiment, as current detectors  4   r  and  4   s  are mounted in R and S phases, a load resister  21  is connected to the output terminals of the R and S phases. Also, the output of the A/D converters  5   r  and  5   s  is connected to a computation device  22 . 
   Direct current I o  is allowed to flow between the R and S phases. For example, I o =A ampere is allowed to flow, then, the size and code are varied and I o =−B ampere is allowed to flow. In the above case, when A ampere of current is allowed to flow at this point, the value detected by the current detector  4   r  is assumed as I rd1 , and the value detected by the current detector  4   s  is assumed as I sd2 . Also, when −B ampere of current is allowed to flow, the value detected by the current detector  4   r  is assumed as I rd2  and the value detected by the current detector  4   s  is assumed as I sd2 . 
   As a result, as shown in  FIG. 3 , the value detected by the current detector  4   r  changes from I rd2  to I rd1 , while the current flowing in the R phase changes from −B ampere to A ampere, thus, gain Gr of the current detector  4   r  can be acquired as the inclination of the straight line which connects the point (−B, I rd2 ) and the point (A, I rd1 ) in FIG.  3 .
 
 Gr= ( I   rd1   −I   rd2 )/( A+B)   (1) 
 
   Similarly, while the current flowing in the S phase changes from −B ampere to A ampere, the value detected by the current detector  4   s  changes from I sd1  to I sd2 , and gain Gs of the current detector  4   s  can be acquired as the inclination of the straight line connecting the point (−B, I sd1 ) and the point (A, I sd2 ).
 
 Gs= ( I   sd1   −I   sd2 )/( A+B)   (2) 
 
   Gain unbalance Gub can be acquired by the following equation (3) based on equations (1) and (2) above.
 
 Gub= ( Gr/Gs )−1=[( I   rd1   I   rd2 )/( I   sd1    −I   sd2 )]−1  (3) 
 
   Also, a goal of this embodiment is to eliminate the gain unbalance by multiplying the detected current value of the R phase by a compensation value H, the compensation value H can be acquired as: 
                   H   =       ⁢     1   /     (     Gub   +   1     )                   =       ⁢     (     Gs   /   Gr     )                 =       ⁢     1   /     [       (       I   rd1     -     I   rd2       )     /     (       I   sd1     -     I   sd2       )       ]                     (   4   )             
 
   Hence, I rd1 , I rd2 , I sd1 , I sd2  detected by current detectors  4   r  and  4   s  are input to the computation device  22  via the A/D converters  5   r  and  5   s , and computations are made by the computation device  22  according to the above equation (4) to acquire the compensation value H, then this value is written in the EEPROM  7  of the inverter apparatus  10  by a ROM writer  23 . 
   As mentioned above, the current detection means (current detectors  4   r ,  4   s , AD converters  5   r ,  5   s ) for two phases are incorporated into the inverter apparatus  10 , and the data H for adjusting the gain unbalance for this current detection means are stored, so that this inverter apparatus  10  is integrated as one unit for adjusting gain unbalance, the inverter operation is immediately enabled after the inverter apparatus  10  is incorporated into a motor. 
   In this case, when the current I flows in the S phase, for example, the detected current value I sd , that is detected by the current detector  4   s  and converted into a digital signal by the A/D converter  5   s , then fed back to the current control circuit  3 , is expressed as:
 
 I   sd   =Gs·I  
 
   Similarly, when the current I flows in the R phase, the detected current value I rd , that is detected by the current detector  4   r  and converted into a digital signal by the A/D converter  5   r , then multiplied by the compensation value H by the multiplier  6 , and fed back to the current control circuit  3 , is expressed as:
 
 I   rd   =Gr·I·H=Gr·I ( Gs/Gr )= Gs·I  
 
   When currents of the same size are detected by current detection means for R and S phases, the detected current values fed back to the current control circuit  3  are of the same size, and the gain unbalance has been adjusted. 
   As the method of acquiring the gain unbalance Gub and compensation value H mentioned above; A ampere and B ampere of current are allowed to flow, with the size and direction of the current changed. Based on the current value detected at this point, the gain unbalance Gub and the compensation value H are acquired. However, this method is for eliminating current offset, and if there is no offset, it is possible to simply allow a specified amount of current to flow so as to detect the gain of the respective current detection means based on the detected current value. 
   Also, gains of the current detectors  4   r  and  4   s  and the A/D converters  5   r  and  5   s  can be acquired separately in order to obtain the gain unbalance. However, with the present invention, current detection means including the current detectors  4   r ,  4   s  and the A/D converters  5   r ,  5   s , etc. are built into the inverter, and in the state where these are built in, gain unbalance is acquired based on the detected current value that is fed back to the current control circuit, whereby the gain unbalance for current feedback gain, including that of the current detection means, can be determined more accurately. 
   Also, as the compensation value H is stored in a non-volatile memory which can be overwritten such as EEPROM7, when the gain unbalance changes, the compensation value H can also be changed. 
   The current control circuit  3  is typically constituted by a processor and current control is performed by software. In this case, software is used by the current control circuit  3  to perform the processing for the multiplier  6 . Also, because software processing is used, the data stored in an over-writeable non-volatile memory such as EEPROM  7  can be either the compensation value H, or the gain unbalance Gub, or even the gains or gain ratio of respective current detection means.