MOTOR DRIVING APPARATUS AND AIR CONDITIONER
This application is a U.S. national stage application of International Patent Application No. PCT/JP2018/014093 filed on Apr. 2, 2018, the disclosure of which is incorporated herein by reference. The present invention relates to a motor driving apparatus and an air conditioner. Patent Literature 1 discloses a motor driving apparatus that drives multiple motors of an air conditioner. The motor driving apparatus disclosed in Patent Literature 1 drives multiple motors in parallel with a single inverter, and induction motors using no position sensors or permanent magnet synchronous motors using position sensors are used as the motors. Patent Literature 1: Japanese Patent No. 4305021 (FIG. 1) As motors, permanent magnet synchronous motors have been increasingly used to improve performance, and in order to reduce the costs of driving apparatuses therefor, it is preferable to implement position sensorless drive. In driving a permanent magnet synchronous motor without a position sensor, it is necessary to pull in a rotor of the motor to a desired phase, in order to generate an appropriate torque at the time of the starting, and it is known to perform direct-current excitation in which output voltages of respective phases of an inverter are set to values corresponding to the above desired phase and direct currents are passed through stator windings of the motor until the rotor is pulled in to the desired phase. In driving multiple permanent magnet synchronous motors with a single inverter without a position sensor, there is the following problem. When direct-current excitation is performed in a state where the initial positions of the multiple motors are different, there is a possibility that surges occur in motor currents due to the difference in position between the motors, causing breakdown of switching elements of the inverter, demagnetization of the motors, or the like due to overcurrent. The present invention is intended to, in a driving apparatus that drives multiple permanent magnet synchronous motors, prevent surges in motor currents in performing direct-current excitation and prevent breakdown of switching elements of an inverter, demagnetization of the motors, or the like from occurring. A motor driving apparatus of a first aspect of the present invention is a motor driving apparatus including: an inverter to drive a first synchronous motor and a second synchronous motor each including a rotor; and a controller to control the inverter, wherein the controller pulls in the rotor of the first synchronous motor and the rotor of the second synchronous motor to a designated position by performing direct-current excitation prior to starting of the first synchronous motor and the second synchronous motor, and wherein a difference between a value of a direct current flowing through the first synchronous motor and a value of a direct current flowing through the second synchronous motor is reduced during the direct-current excitation. A motor driving apparatus of a second aspect of the present invention includes: an inverter to drive a first synchronous motor and a second synchronous motor each including a rotor; and a controller to control the inverter, wherein the controller pulls in the rotor of the first synchronous motor and the rotor of the second synchronous motor to a designated position by performing direct-current excitation prior to starting of the first synchronous motor and the second synchronous motor, wherein in performing the direct-current excitation, the controller
wherein at least one of the d-axis current command value and the q-axis current command value increases gradually. With the present invention, even when the initial positions of multiple motors are different, it is possible to prevent surges in motor currents in performing direct-current excitation and reduce the possibilities of breakdown of switching elements of an inverter, demagnetization of the motors, or the like. Motor driving apparatuses of the present invention are for driving multiple permanent magnet synchronous motors. The following describes cases where the number of driven permanent magnet synchronous motors is two. Hereinafter, permanent magnet synchronous motors may be referred to simply as “motors”. The first and second motors 7A and 7B are for driving first and second fans 903 and 904 of an outdoor unit 901 of an air conditioner 900, as illustrated in The illustrated motor driving apparatus 2 is for driving the motors 7A and 7B, and includes alternating-current (AC) power input terminals 2 The controller 100 may be formed by a microcomputer (e.g., including a central processing unit (CPU)), a digital signal processor (DSP), or the like, or may be formed by dedicated hardware. The following description assumes that it is formed by a microcomputer. The AC power input terminals 2 The rectifier circuit 10 receives AC power from the AC power supply 4 via the input terminals 2 The capacitor 20 smoothes a direct-current (DC) voltage obtained by rectification by the rectifier circuit 10 and outputs a DC voltage V20. The inverter 30 includes an inverter main circuit 310 and a driving circuit 350, as illustrated in Lines connecting the outputs of the rectifier circuit 10, the electrodes of the capacitor 20, and the input terminals of the inverter main circuit 310 are referred to as DC bus lines. The inverter 30 is controlled by the controller 100 so that switching elements 311 to 316 of six arms of the inverter main circuit 310 are turned on and off to generate three-phase AC currents of variable frequency and variable voltage and supply them to the motors 7A and 7B. Freewheeling rectifier elements 321 to 326 are connected in parallel to the switching elements 311 to 316. The motors 7A and 7B are driven in parallel by the inverter 30, and connected in parallel to inverter output terminals 331, 332, and 333. The three-phase current detector 80A detects currents IuA, IvA, and IwAflowing through lines 341A, 342A, and 343A connecting the inverter output terminals 331, 332, and 333 and the motor 7A. The three-phase current detector 80B detects currents IuB, IvB, and IwBflowing through lines 341B, 342B, and 343B connecting the inverter output terminals 331, 332, and 333 and the motor 7B. The currents IuA, IvA, IwA, IuB, IvB, and IwBdetected by the three-phase current detectors 80A and 80B are converted to digital signals by an A/D converter (not illustrated) in the controller 100, and used in processing in the controller 100. The voltage detector 90 detects the DC voltage input to the inverter 30, i.e., the voltage V20 between the terminals of the capacitor. The voltage V20 detected by the voltage detector 90 is converted to a digital signal by an A/D converter (not illustrated) in the controller 100, and used in processing in the controller 100. The controller 100 controls the magnitude and frequency of the output voltage of the inverter 30 based on the two sets of detected three-phase currents IuA, IvA, and IwA, and IuB, IvB, and IwBand the input voltage V20 of the inverter 30 detected by the voltage detector 90. To control the inverter 30, the controller 100 generates PWM signals Sm1 to Sm6 and supplies them to the inverter 30. The inverter 30 includes, besides the inverter main circuit 310, the driving circuit 350, as described above. The driving circuit 350 generates drive signals Sri to Sr6 based on the PWM signals Sm1 to Sm6 and controls turning on and off of the switching elements 311 to 316 by using the drive signals Sri to Sr6, thereby applying the three-phase AC voltage of variable frequency and variable voltage to the motors 7. The PWM signals Sm1 to Sm6 have a magnitude (0 to 5 V) of a signal level of a logic circuit, whereas the drive signals Sri to Sr6 have a magnitude of a voltage level, e.g., +15 V to −15 V, required to control the switching elements 311 to 316. Also, the PWM signals Sm1 to Sm6 have the ground potential of the controller 100 as a reference potential, whereas the drive signals Sri to Sr6 each have the potential of a negative terminal (emitter terminal) of the corresponding switching element as a reference potential. The controller 100 performs control in normal rotation (rotation after the starting) of the motors, and further performs a starting process in starting of the motors. In the starting process, it performs an operation of pulling in a rotor of each motor to a designated position by performing direct-current excitation in which DC currents are passed through stator windings of the motors 7A and 7B. The command value generator 101 outputs, as a d-axis current command value Id* and a q-axis current command value Iq*, ones illustrated in The pull-in position designator 102 designates a pull-in position by outputting information indicating a target pull-in position θref_ini. The first dq converter 103A converts the three-phase currents IuA, IvA, and IwAof the motor 7A, which are obtained through the detection by the current detector 80A and the conversion to the digital signals by the A/D converter (not illustrated), to a d-axis current IdAand a q-axis current IqAon a dq-axis coordinate system at the target pull-in position θref_ini. Similarly, the second dq converter 103B converts the three-phase currents IuB, IvB, and IwBof the motor 7B, which are obtained through the detection by the current detector 80B and the conversion to the digital signals by the A/D converter (not illustrated), to a d-axis current IdBand a q-axis current IqBon a dq-axis coordinate system at the target pull-in position. For the dq conversion in the first and second dq converters 103A and 103B, dq conversion equations commonly used in motor control may be used. The first absolute value calculator 104A calculates an absolute value |IdA| of the d-axis current of the motor 7A and an absolute value |IqA| of the q-axis current of the motor 7A. The second absolute value calculator 104B calculates an absolute value |IdB| of the d-axis current of the motor 7B and an absolute value |IqB| of the q-axis current of the motor 7B. The current selector 105 receives the d-axis currents IdAand IdB, the q-axis currents IqAand IqB, the absolute values |IdA| and |IdB| of the d-axis currents, and the absolute values |IqA| and |IqB| of the q-axis currents, and selects and outputs one of the d-axis currents IdAand IdBthat is larger in absolute value than the other of the d-axis currents, and selects and outputs one of the q-axis currents IqAand IqBthat is larger in absolute value than the other of the q-axis currents. Specifically, the current selector 105 compares the absolute value |IdA| and the absolute value |IdB| to select and output the d-axis current corresponding to the larger of the absolute values, as a selected d-axis current Ids, and compares the absolute value |IqA| and the absolute value |IqB| to select and output the q-axis current corresponding to the larger of the absolute values, as a selected q-axis current Iqs. The dq conversion, the calculation of the absolute values, the comparison between the absolute values, and the selection of the currents Id and Iq as described above are performed every control period, and the currents Ids and Iqs are input to the current controller 106 (described below) every control period. The control period may be equal to or different from the sampling period of the currents flowing through the motors 7A and 7B. The process performed by the current selector 105 every control period is performed, for example, according to the procedure illustrated in In step ST11, the absolute value |IdA| and the absolute value |IdB| are compared, and when the absolute value |IdA| is larger, the process proceeds to step ST12. Otherwise, the process proceeds to step ST13. In step ST12, the current IdAis selected and output as the selected current Ids. In step ST13, the current IdBis selected and output as the selected current Ids. Subsequent to step ST12 or ST13, the process proceeds to step ST14. In step ST14, the absolute value |IqA| and the absolute value |IqB| are compared, and when the absolute value |IqA| is larger, the process proceeds to step ST15. Otherwise, the process proceeds to step ST16. In step ST15, the current IqAis selected and output as the selected current Iqs. In step ST16, the current IqBis selected and output as the selected current Iqs. Upon completion of step ST15 or ST16, the process at the control period ends. The current controller 106 outputs a d-axis voltage command value Vd* to make the d-axis current Ids (=IdAor IdB) output from the current selector 105 equal to the d-axis current command value Id*, and outputs a q-axis voltage command value Vq* to make the q-axis current Iqs (=IqAor IqB) output from the current selector 105 equal to the q-axis current command value Iq*. The current controller 106 may perform commonly used proportional-integral (PI) control, for example. The dq inverse converter 107 receives a signal indicating the target pull-in position θref_ini output from the pull-in position designator 102 and signals indicating the d-axis voltage command value Vd* and q-axis voltage command value Vq* output from the current controller 106, and converts the d-axis voltage command value Vd* and q-axis voltage command value Vq* to three-phase voltage command values Vu*, Vv*, and Vw*. The PWM signal generator 108 receives the three-phase voltage command values Vu*, Vv*, and Vw* output from the dq inverse converter 107 and the input voltage V20 of the inverter 30 detected by the voltage detector 90, determines the PWM signals Sm1 to Sm6 for causing voltages equal to the three-phase voltage command values Vu*, Vv*, and Vw* to be output, and outputs them to the inverter 30. The above control is performed every control period. By repeating the above control for a period of time sufficient for the pull-in, it is possible to perform direct-current excitation in which DC currents are passed through the stator windings of the motors 7A and 7B, and pull in the rotor of each motor in such a manner that a magnetic pole position of each motor coincides with the target pull-in position θref_ini. The controller 100 used in this embodiment is characterized in that it includes the absolute value calculators 104A and 104B and the current selector 105 as illustrated in For comparison, a controller 100 The controller 100 When the controller 100 The dq converter 103 converts the currents IuA, IvA, and IwAdetected by the current detector 80A to a d-axis current Id and a q-axis current Iq. The current controller 106 generates a d-axis voltage command value Vd* and a q-axis voltage command value Vq*, based on the d-axis current Id and q-axis current Iq output from the dq converter 103 and the d-axis current command value Id* and q-axis current command value Iq* supplied from the command value generator 101 Except for the above, the controller 100 Also, In To facilitate understanding of effects of the embodiment, During the period Ta of the direct-current excitation, given DC voltages are applied from the inverter 30. In the case of pull-in to 0 rad, a positive voltage (denoted by +Va) is output from the U-phase, and a negative voltage (−Va/2) whose magnitude is half that of the voltage output from the U-phase is output from the V-phase and the W-phase. In the case of the controller 100 On the other hand, in the case of the controller 100 of This shows that the use of the controller 100 of Also, in the case of the controller 100 Further, in the case of the controller 100 A reason why the currents flowing through the motor 7A and the currents flowing through the motor 7B can be made comparable will be described below with reference to In First, a case where direct-current excitation is performed only on the first motor 7A will be described with reference to In The position of the d-axis dAis represented by a lead angle from its reference position (the position of the U-phase winding). In the example of When the d-axis dAof the motor 7A is made to coincide with the position of the U-phase winding by the direct-current excitation, i.e., when the target pull-in position θref_ini is 0 degrees, the U-phase output voltage Vu, V-phase output voltage Vv, and W-phase output voltage Vw illustrated in Due to the magnetic field due to this current, the d-axis dAof the motor 7A is attracted to the direction of the U-phase winding as indicated by arrow RA, and the rotor rotates. When effects of inductance components are neglected for simplicity, an induced voltage EmAoccurring on the q-axis qAdue to the rotation of the motor 7A and the U-phase component EuA, V-phase component EvA, and W-phase component EwAof the induced voltage EmAare as illustrated in The magnitude of the induced voltage EmAis proportional to the rotational speed of the rotor, and the respective magnitudes of the U-phase component EuA, V-phase component EvA, and W-phase component EwAvary with change in the lead angle (motor phase) of the d-axis dA. When the current control by the current controller 106 is not performed, the currents flowing through the respective phase windings of the motor 7A depend on the differences between the output voltages of the respective phases of the inverter 30 and the induced voltages of the respective phases of the motor 7A. When the current controller 106 performs the current control to make the currents of the motor 7A equal to the command values, the output voltages Vu, Vv, and Vw of the U-phase, V-phase, and W-phase of the inverter 30 vary with variation in the induced voltages EuA, EvA, and EwAof the U-phase, V-phase, and W-phase of the motor 7A, thereby adjusting the currents of the motor 7A. Next, a case where direct-current excitation is performed on the two motors 7A and 7B by the single inverter 30 will be described with reference to In In the example illustrated in When the inverter 30 provides the three-phase output voltages to generate the current vector It in the U-phase direction as with Due to the difference in the initial phase, the magnitudes and directions of the induced voltages of the respective phases are different between the first motor 7A and the second motor 7B. For example, as illustrated in When the current control is performed only on the first motor 7A, the magnitudes of the output voltages Vu, Vv, and Vw of the U-phase, V-phase, and W-phase of the inverter 30 are made nearly equal to values (vector sums) obtained by adding the induced voltages EuA, EvA, and EwAto the voltages (applied voltages at rest) V0 When the two motors 7A and 7B are driven by the single inverter 30, the output voltages Vu, Vv, and Vw illustrated in As a result, as illustrated in Thus, the V-phase current IvBtends to increase in the negative direction, and the W-phase current IwBincreases in the positive direction. In the first embodiment, the current control is performed on one of the d-axis currents larger in absolute value than the other and one of the q-axis currents larger in absolute value than the other, as described above. When the current control is performed on the first motor 7A, the V-phase current IvBof the second motor 7B increases in the negative direction and the W-phase current IwBof the second motor 7B increases in the positive direction, and thus the absolute value of the d-axis current and the absolute value of the q-axis current of the second motor 7B both become larger than those of the first motor 7A. As described above, when the absolute value of the d-axis current and the absolute value of the q-axis current of the second motor 7B are larger, the current control is performed on the second motor 7B as illustrated in In this case, in order to cancel the induced voltages EuB, EvB, and EwBof the respective phases of the second motor 7B illustrated in When the current control is performed on the second motor 7B, output voltages applied to the first motor 7A are excessive or insufficient as illustrated in For example, while the U-phase output voltage Vu applied to the first motor 7A is generally appropriate (equal to V0 Thus, the V-phase current IvAtends to increase in the positive direction, and the W-phase current IwAincreases in the negative direction. As a result, the absolute value of the d-axis current and the absolute value of the q-axis current of the first motor 7A both become larger than those of the second motor 7B. Thus, the current control is performed on the first motor 7A. In this case, in order to cancel the induced voltages EuA, EvA, and EwAof the respective phases of the first motor 7A illustrated in As a result of performing the above control, the V-phase current IvAof the first motor and the W-phase current IwBof the second motor behave similarly, and the W-phase current IwAof the first motor and the V-phase current IvBof the second motor behave similarly. Thus, the difference between the V-phase current IvAof the first motor 7A and the W-phase current IwBof the second motor 7B is reduced, and the difference between the W-phase current IwAof the first motor 7A and the V-phase current IvBof the second motor 7B is reduced. Although the above describes a case where the initial phases satisfy ΔθA=−ΔθBand the pull-in phase θref_ini is at the position of the U-phase winding, the increase and decrease relation between the currents varies depending on the initial phases and the pull-in phase (target phase). In any case, it is possible to similarly obtain the advantage of reducing a current peak compared to the case of performing the current control only on one of the motors. As above, in the example illustrated in Although the above describes a case where the number of motors is two, the number of motors driven in parallel may be three or more. In generalization, when N motors (N being an integer not less than 2) are driven in parallel, it is possible to perform dq conversion of the three-phase currents of each of the N motors to generate N d-axis currents and N q-axis currents, determine the absolute values of the N d-axis currents and the absolute values of the N q-axis currents, select one of the N d-axis currents that is the largest in absolute value of the N d-axis currents, perform control to make the selected d-axis current equal to a d-axis current command value, select one of the N q-axis currents that is the largest in absolute value of the N q-axis currents, and perform control to make the selected q-axis current equal to a q-axis current command value. A procedure of a process of the selection from the N d-axis currents and N q-axis currents in the first embodiment will be described below with reference to In step ST21, the largest value MAXId of the absolute values |Id(1)|, |Id(2)|, . . . , |Id(N)| of the respective d-axis currents Id(1), Id(2), . . . , Id(N) of the N motors is determined. In step ST22, the d-axis current Id(n) (=MAXId) corresponding to the largest value MAXId determined in step ST21 is selected and output as a selected d-axis current Ids. In step ST23, the largest value MAXIq of the absolute values |Iq(1)|, |Iq(2)|, . . . , |Iq(N)| of the respective q-axis currents Iq(1), Iq(2), . . . , Iq(N) of the N motors is determined. In step ST24, the q-axis current Iq(n) (=MAXIq) corresponding to the largest value MAXIq determined in step ST23 is selected and output as a selected q-axis current Iqs. Upon completion of step ST24, the process at the control period ends. As above, with this embodiment, in an apparatus that drives multiple permanent magnet synchronous motors with a single inverter, it is possible to reduce a peak value of the motor currents occurring during pull-in of each magnetic pole position to a designated position, and reduce the possibilities of breakdown of the switching elements of the inverter, demagnetization of the motors, or the like due to overcurrent. In the first embodiment, at least one of the d-axis current command value Id* and q-axis current command value Iq* increases in a stepwise manner. However, in a second embodiment, at least one of the d-axis current command value Id* and q-axis current command value Iq* increases gradually. The controller 100 The command value generator 101 In As illustrated in On the other hand, as illustrated in As such, compared to the first embodiment ( As above, in the example illustrated in In the second embodiment, control is performed so that the d-axis current and q-axis current corresponding to the three-phase currents of a predetermined one of the motors 7A and 7B are made equal to respective corresponding command values. However, in a third embodiment, control is performed so that one of the d-axis currents corresponding to the three-phase currents of the motors 7A and 7B that is larger in absolute value than the other is made equal to a d-axis current command value, and control is performed so that one of the q-axis currents corresponding to the three-phase currents of the motors 7A and 7B that is larger in absolute value than the other is made equal to a q-axis current command value, as with the first embodiment. The third embodiment is the same as the second embodiment in that at least one of the current command values increases gradually. The controller 100 The command value generator 101 In As illustrated in Also, the motor magnetic pole positions can be stably pulled in to 0 degrees. Although the control configuration is a little more complicated than that of As described in the second embodiment, instead of the configuration in which the q-axis current command value Iq* is fixed at zero, and the d-axis current command value Id* increases gradually, it is possible to employ a configuration in which the d-axis current command value Id* is fixed at zero, and the q-axis current command value Iq* increases gradually. In short, it is sufficient that a value fixed at zero be used as one of the d-axis current command value Id* and q-axis current command value Iq*, and a value increasing gradually, e.g., linearly, be used as the other of the d-axis current command value Id* and q-axis current command value Iq*. In the first and third embodiments, from beginning to end of the direct-current excitation, for each of the d-axis current and q-axis current, one of the currents that is larger in absolute value is selected, and control is performed so that the selected current is made equal to a command value. By selecting one of the currents that is larger in absolute value and performing control to make the selected current equal to the command value, it is possible to make the larger of the value of a DC current flowing through the motor 7A and the value of a DC current flowing through the motor 7B closer to the smaller of the values. In a fourth embodiment, for each of the d-axis current and q-axis current, until the current exceeds a command value therefor, one of the currents that is smaller in absolute value than the other is selected, and control is performed. By selecting one of the currents that is smaller in absolute value and performing control, it is possible to make the smaller of the value of a DC current flowing through the motor 7A and the value of a DC current flowing through the motor 7B closer to the larger of the values. Here, for each of the d-axis current and q-axis current, “exceeding” the command value therefor means becoming larger in absolute value while having the same sign. Specifically, when the command value is positive, it means that the current is positive and its absolute value becomes larger than the absolute value of the command value, and when the command value is negative, it means that the current is negative and its absolute value becomes larger than the absolute value of the command value. The controller 100 The current selector 105 Specifically, until any of the d-axis currents IdAand IdBexceeds the d-axis current command value Id*, the current selector 105 Also, until any of the q-axis currents IqAand IqBexceeds the q-axis current command value Iq*, the current selector 105 The selection of the currents by the current selector 105 Although the above describes a case where the number of motors is two, the number of motors driven in parallel may be three or more. In generalization, when n motors (n being an integer not less than 2) are driven in parallel, it is possible to perform dq conversion of the three-phase currents of each of the N motors to generate N d-axis currents and N q-axis currents, determine the absolute values of the N d-axis currents and the absolute values of the N q-axis currents, select one of the N d-axis currents that is the smallest in absolute value of the N d-axis currents and perform control to make the selected d-axis current equal to a d-axis current command value until any of the N d-axis currents exceeds the d-axis current command value, select one of the N d-axis currents that is the largest in absolute value of the N d-axis currents and perform control to make the selected d-axis current equal to the d-axis current command value after any of the N d-axis currents exceeds the d-axis current command value, select one of the N q-axis currents that is the smallest in absolute value of the N q-axis currents and perform control to make the selected q-axis current equal to a q-axis current command value until any of the N q-axis currents exceeds the q-axis current command value, and select one of the N q-axis currents that is the largest in absolute value of the N q-axis currents and perform control to make the selected q-axis current equal to the q-axis current command value after any of the N q-axis currents exceeds the q-axis current command value. A procedure of a process of the selection from the N d-axis currents Id and N q-axis currents Iq in the fourth embodiment will be described below with reference to In step ST31, a determination is made as to whether any of the d-axis currents Id(1), Id(2), . . . , Id(N) of the N motors has exceeded the d-axis current command value Id* (has become larger than the d-axis current command value Id* for the first time since the start of the direct-current excitation). If NO (if none of Id(1), Id(2), . . . , Id(N) has exceeded the d-axis current command value Id*), the process proceeds to step ST32, and if YES, the processing of steps ST21 and ST22 is performed. In step ST32, the smallest value MINId of the absolute values |Id(1)|, |Id(2)|, . . . , |Id(N)| of the respective d-axis currents Id(1), Id(2), . . . , Id(N) is determined. In step ST33, the d-axis current Id(n) (=MINId) corresponding to the smallest value MINId determined in step ST32 is selected and output as a selected d-axis current Ids. Subsequent to step ST22 or ST33, the process proceeds to step ST34. In step ST34, a determination is made as to whether any of the q-axis currents Iq(1), Iq(2), . . . , Iq(N) of the N motors has exceeded the q-axis current command value Iq* (has become larger than the q-axis current command value Iq* for the first time since the start of the direct-current excitation). If NO (if none of the q-axis currents Iq(1), Iq(2), . . . , Iq(N) has exceeded the q-axis current command value Iq*), the process proceeds to step ST35, and if YES, the processing of steps ST23 and ST24 is performed. In step ST35, the smallest value MINIq of the absolute values |Iq(1)|, |Iq(2)|, . . . , |Iq(N)| of the respective q-axis currents Iq(1), Iq(2), . . . , Iq(N) is determined. In step ST36, the q-axis current Iq(n) (=MINIq) corresponding to the smallest value MINIq determined in step ST35 is selected and output as a selected q-axis current Iqs. Upon completion of step ST24 or ST36, the process at the control period ends. With the fourth embodiment, it is possible to reduce the time required for the d-axis current and the q-axis current to reach the command values. As described in the first embodiment, instead of the configuration in which the q-axis current command value Iq* is fixed at zero, and the d-axis current command value Id* increases in a stepwise manner, it is possible to employ a configuration in which the d-axis current command value Id* is fixed at zero, and the q-axis current command value Iq* increases in a stepwise manner. In short, it is sufficient that a value fixed at zero be used as one of the d-axis current command value Id* and the q-axis current command value Iq*, and a value increasing in a stepwise manner be used as the other of the d-axis current command value Id* and the q-axis current command value Iq*. Although a case where the number of motors driven in parallel is N in the first embodiment has been described with reference to The above first, third, and fourth embodiments and the modifications thereof are configured so that a difference between a value of a DC current flowing through the first synchronous motor and a value of a DC current flowing through the second synchronous motor is reduced during the direct-current excitation. Specifically, in performing the direct-current excitation, the controller determines, for each of the first and second synchronous motors, a d-axis current and a q-axis current corresponding to three-phase currents flowing through the synchronous motor, selects one of the d-axis currents of the first and second synchronous motors that is larger in absolute value than the other of the d-axis currents, selects one of the q-axis currents of the first and second synchronous motors that is larger in absolute value than the other of the q-axis currents, determines a d-axis voltage command value for making the selected d-axis current equal to a d-axis current command value, determines a q-axis voltage command value for making the selected q-axis current equal to a q-axis current command value, converts the d-axis voltage command value and the q-axis voltage command value to three-phase voltage command values, and controls the inverter to make output voltages of the inverter equal to the three-phase voltage command values. In the second embodiment and the modifications thereof, in performing the direct-current excitation, the controller determines a d-axis current and a q-axis current corresponding to three-phase currents flowing through one of the first and second synchronous motors, determines a d-axis voltage command value for making the d-axis current equal to a d-axis current command value, determines a q-axis voltage command value for making the q-axis current equal to a q-axis current command value, converts the d-axis voltage command value and the q-axis voltage command value to three-phase voltage command values, and controls the inverter to make output voltages of the inverter equal to the three-phase voltage command values, wherein at least one of the d-axis current command value and the q-axis current command value increases gradually. In that case, it may be configured so that a larger one of the value of the direct current flowing through the first synchronous motor and the value of the direct current flowing through the second synchronous motor approaches a smaller one of the values. Alternatively, it may be configured so that a smaller one of the value of the direct current flowing through the first synchronous motor and the value of the direct current flowing through the second synchronous motor approaches a larger one of the values. In the first to fourth embodiments, the phase currents flowing through each motor are measured by using current detection elements provided on connection lines connecting the output terminals of the inverter 30 and terminals of the windings of the first and second motors 7A and 7B, and the d-axis currents and the q-axis currents of the respective motors are calculated from the measured currents. Alternatively, as illustrated in Also, as illustrated in In both the case of the configuration of The configurations described in the above embodiments are examples of configurations of the present invention, and may be combined with other known techniques, and may be modified, e.g., by partial omission, without departing from the gist of the present invention. Prior to starting of first and second synchronous motors, direct-current excitation is performed to pull in rotors of the synchronous motors to a designated position. In the direct-current excitation, a difference between a value of a direct current flowing through the first synchronous motor and a value of a direct current flowing through the second synchronous motor is reduced. For example, d-axis currents and q-axis currents corresponding to three-phase currents flowing through the motors are determined; a d-axis voltage command value for making one of the d-axis currents larger in absolute value equal to a d-axis current command value is determined, and a q-axis voltage command value for making one of the q-axis currents larger in absolute value equal to a q-axis current command value is determined; an inverter is driven using the determined d-axis voltage command value and q-axis voltage command value. 1. A motor driving apparatus comprising:
an inverter to drive a first synchronous motor and a second synchronous motor each including a rotor; and a controller to control the inverter, wherein the controller pulls in the rotor of the first synchronous motor and the rotor of the second synchronous motor to a designated position by performing direct-current excitation prior to starting of the first synchronous motor and the second synchronous motor, and wherein a difference between a value of a direct current flowing through the first synchronous motor and a value of a direct current flowing through the second synchronous motor is reduced during the direct-current excitation. 2. The motor driving apparatus of 3. The motor driving apparatus of 4. The motor driving apparatus of determines, for each of the first and second synchronous motors, a d-axis current and a q-axis current corresponding to three-phase currents flowing through the synchronous motor, selects one of the d-axis currents of the first and second synchronous motors that is larger in absolute value than the other of the d-axis currents, selects one of the q-axis currents of the first and second synchronous motors that is larger in absolute value than the other of the q-axis currents, determines a d-axis voltage command value for making the selected d-axis current equal to a d-axis current command value, determines a q-axis voltage command value for making the selected q-axis current equal to a q-axis current command value, converts the d-axis voltage command value and the q-axis voltage command value to three-phase voltage command values, and controls the inverter to make output voltages of the inverter equal to the three-phase voltage command values. 5. The motor driving apparatus of one of the d-axis current command value and the q-axis current command value is fixed at zero, and the other of the d-axis current command value and the q-axis current command value increases in a stepwise manner. 6. The motor driving apparatus of 7. The motor driving apparatus of until any of the d-axis currents of the first and second synchronous motors exceeds the d-axis current command value, the controller selects one of the d-axis currents of the first and second synchronous motors that is smaller in absolute value than the other of the d-axis currents, and until any of the q-axis currents of the first and second synchronous motors exceeds the q-axis current command value, the controller selects one of the q-axis currents of the first and second synchronous motors that is smaller in absolute value than the other of the q-axis currents. 8. The motor driving apparatus of 9. The motor driving apparatus of 10. The motor driving apparatus of 11. A motor driving apparatus comprising:
an inverter to drive a first synchronous motor and a second synchronous motor each including a rotor; and a controller to control the inverter, wherein the controller pulls in the rotor of the first synchronous motor and the rotor of the second synchronous motor to a designated position by performing direct-current excitation prior to starting of the first synchronous motor and the second synchronous motor, wherein in performing the direct-current excitation, the controller
determines a d-axis current and a q-axis current corresponding to three-phase currents flowing through one of the first and second synchronous motors, determines a d-axis voltage command value for making the d-axis current equal to a d-axis current command value, determines a q-axis voltage command value for making the q-axis current equal to a q-axis current command value, converts the d-axis voltage command value and the q-axis voltage command value to three-phase voltage command values, and controls the inverter to make output voltages of the inverter equal to the three-phase voltage command values, and wherein at least one of the d-axis current command value and the q-axis current command value increases gradually. 12. The motor driving apparatus of 13. The motor driving apparatus of 14. An air conditioner comprising the motor driving apparatus of 15. An air conditioner comprising the motor driving apparatus of CROSS REFERENCE TO RELATED APPLICATION
TECHNICAL FIELD
BACKGROUND
PATENT LITERATURE
SUMMARY
BRIEF DESCRIPTION OF DRAWINGS
DETAILED DESCRIPTION
First Embodiment
Second Embodiment
Third Embodiment
Fourth Embodiment
MODIFICATIONS