MOTOR CONTROL DEVICE, MOTOR SYSTEM, AND MOTOR CONTROL METHOD

The motor control device improves voltage modulation rate by dividing PWM cycles for current detection, addressing signal misalignment issues and maintaining motor performance.

JP7589477B2Active Publication Date: 2024-11-26MINEBEAMITSUMI INC
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2020162660
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-09-28
Publication Date
2024-11-26
Estimated Expiration
2040-09-28

AI Technical Summary

Technical Problem

Conventional methods using a shunt resistor in a DC section of an inverter circuit for current detection in three-phase motors face issues when large currents flow, leading to potential misalignment of PWM signal pulse widths, limiting voltage modulation rate and affecting desired rotational speed or torque.

Method used

A motor control device with a control unit generating multiple PWM signals across phases, dividing the PWM cycle into two periods for current detection and adjusting pulse widths to improve voltage modulation rate, allowing for efficient current detection without signal misalignment.

Benefits of technology

Enhances voltage modulation rate by redistributing excess pulse widths across PWM cycles, ensuring accurate current detection and maintaining motor performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007589477000001
    Figure 0007589477000001
  • Figure 0007589477000002
    Figure 0007589477000002
  • Figure 0007589477000003
    Figure 0007589477000003
Patent Text Reader

Abstract

To improve a voltage modulation factor.SOLUTION: A motor control device includes a control unit that generates a plurality of PWM signals corresponding to the phases of a motor having a multi-phase coil, and a current detector connected in series to a DC line of an inverter circuit that drives the coil of each phase on the basis of the PWM signal, and one control cycle includes a first PWM cycle and a second PWM cycle, and when a pulse width setting value of a derived first phase PWM signal is p1, and an excess pulse width which is the amount that the pulse width set value p1 does not fit in the first PWM cycle is pe, the pulse width of the first PWM cycle of the first phase PWM signal is (p1-pe), and the pulse width of the second PWM cycle of the first phase PWM signal is (p1 + pe).SELECTED DRAWING: Figure 9
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a motor control device, a motor system, and a motor control method. [Background technology]

[0002] Conventionally, a technique is known in which a single shunt resistor inserted in the DC section of an inverter circuit is used to detect the currents of the U, V, and W phases for controlling a three-phase motor. In this method, a PWM signal is generated for each phase so that the current can be detected during a period when one phase is on and a period when two phases are on within one PWM cycle (see, for example, Patent Documents 1, 2, 3, and 4). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2003-189670 A [Patent Document 2] JP 2010-074902 A [Patent Document 3] JP 2013-055772 A [Patent Document 4] JP 2017-163789 A Summary of the Invention [Problem to be solved by the invention]

[0004] However, in a situation where the current flowing through a current detector such as a shunt resistor becomes large, securing the current detection section may cause a problem in that the pulse width of the PWM signal does not fit into one PWM period. If the voltage modulation rate is limited to prevent such a problem, it may not be possible to obtain the desired rotation speed or torque. The voltage modulation rate represents the ratio of how far the pulse width can be widened (or narrowed) within the range of 0 to 100%.

[0005] The present disclosure provides a motor control device, a motor system, and a motor control method that are capable of improving a voltage modulation rate. [Means for solving the problem]

[0006] In one aspect of the present disclosure, A control unit that generates a plurality of PWM signals corresponding to each phase of a motor having coils of multiple phases; an inverter circuit that drives the coil of each phase based on the PWM signal; a current detector connected in series to the DC line of the inverter circuit, one control period includes a first PWM period and a second PWM period, the first PWM period includes a first period and a remaining second period; The control unit is a current detection unit that detects a current flowing in the current detector during the second period; a setting unit that sets a pulse width setting value of the PWM signal for each phase based on a result of the detection of the current; a PWM signal generating unit that generates the PWM signals for each phase of the first PWM cycle and the second PWM cycle based on the pulse width setting value of the PWM signal for each phase set by the setting unit, Let p1 be the pulse width setting value of the first-phase PWM signal set by the setting unit, and pe be the excess pulse width that is the portion of the pulse width setting value p1 that does not fall within the first PWM period. The pulse width of the first PWM period of the first phase PWM signal is (p1-pe), The pulse width of the second PWM period of the first phase PWM signal is (p1+pe). A motor control device is provided. Effect of the Invention

[0007] According to the present disclosure, the voltage modulation rate can be improved. [Brief description of the drawings]

[0008] [Figure 1] 1 is a diagram showing a configuration example of a motor system according to a first embodiment; [Diagram 2] 2 is a diagram for explaining an overview of a method for detecting phase currents by the motor control device according to the first embodiment. FIG. [Diagram 3] 2 is a diagram for explaining the principle of generation of a PWM signal by the motor control device according to the first embodiment. FIG. [Figure 4] 4 is a flowchart showing the flow of a motor drive control process performed by the motor control device according to the first embodiment. [Diagram 5] 5 is a flowchart showing a process (step S14 in FIG. 4) for generating a PWM signal for each phase based on a set value of the duty ratio. [Figure 6] 5 is a flowchart showing a process (step S14 in FIG. 4) for generating a PWM signal for each phase based on a set value of the duty ratio. [Figure 7] 5 is a flowchart showing a process (step S14 in FIG. 4) for generating a PWM signal for each phase based on a set value of the duty ratio. [Figure 8] 5 is a flowchart showing a process (step S14 in FIG. 4) for generating a PWM signal for each phase based on a set value of the duty ratio. [Figure 9] 11 is a timing chart illustrating waveforms in a first case in which a phase current is detected by a current detection method in which a second period B is in the latter half of a first PWM cycle. [Figure 10] 11 is a timing chart illustrating waveforms in a second case in which a phase current is detected by a current detection method in which a second period B is in the first half of a first PWM cycle. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A motor control device, a motor system, and a motor control method according to embodiments of the present invention will be described in detail below with reference to the drawings.

[0010] First Embodiment Fig. 1 is a diagram showing an example of the configuration of a motor system according to a first embodiment. The motor system 1 shown in Fig. 1 controls the rotational operation of a motor 4. The motor system 1 is mounted on a device such as, but not limited to, a copy machine, a personal computer, or a refrigerator. The motor system 1 includes at least a motor 4 and a motor control device 100.

[0011] The motor 4 has a plurality of coils. The motor 4 has, for example, a three-phase coil including a U-phase coil Lu, a V-phase coil Lv, and a W-phase coil Lw. A specific example of the motor 4 is a three-phase brushless motor. The U-phase coil Lu, the V-phase coil Lv, and the W-phase coil Lw are connected to each other by, for example, a star connection.

[0012] The motor control device 100 controls the driving of the motor 4 by converting DC to three-phase AC by controlling the on / off (ON / OFF) of multiple switching elements connected in a three-phase bridge in accordance with a current pattern including a three-phase PWM signal.

[0013] Specifically, the motor control device 100 includes an inverter circuit 23, a control unit 20, and a current detector 24, and controls the motor 4.

[0014] The inverter circuit 23 is a circuit that converts DC power supplied from the DC power supply 21 into three-phase AC by switching a plurality of switching elements, and rotates the rotor of the motor 4 by passing the three-phase AC drive current through coils of each phase of the motor 4. The inverter circuit 23 drives the motor 4 based on a plurality of current patterns (more specifically, three-phase PWM signals generated by a PWM signal generating unit 32 in the current pattern generating unit 35) generated by a current pattern generating unit 35 described later. In this way, the inverter circuit 23 drives the coils of each phase based on the three-phase PWM signals to drive the motor 4.

[0015] The inverter circuit 23 has a plurality of switching elements 25U+, 25V+, 25W+, 25U-, 25V-, and 25W- connected in a three-phase bridge configuration. The switching elements 25U+, 25V+, and 25W+ are high-side switching elements (upper arms) connected to the positive side of the DC power supply 21 via the positive bus 22a. The switching elements 25U-, 25V-, and 25W- are low-side switching elements (lower arms) connected to the negative side (specifically, the ground side) of the DC power supply 21. The switching elements 25U+, 25V+, 25W+, 25U-, 25V-, and 25W- are turned on or off according to the corresponding drive signals among the drive signals supplied from the drive circuit 33 based on the PWM signal included in the above-mentioned current pattern. Hereinafter, the multiple switching elements 25U+, 25V+, 25W+, 25U-, 25V-, and 25W- may be simply referred to as switching elements when no particular distinction is made.

[0016] A connection point between switching element 25U+ and switching element 25U- is connected to one end of a U-phase coil of motor 4. A connection point between switching element 25V+ and switching element 25V- is connected to one end of a V-phase coil of motor 4. A connection point between switching element 25W+ and switching element 25W- is connected to one end of a W-phase coil of motor 4. The other ends of the U-phase coil, V-phase coil, and W-phase coil are connected to each other.

[0017] Specific examples of the switching element include an N-channel metal oxide semiconductor field effect transistor (MOSFET) and an insulated gate bipolar transistor (IGBT), but the switching element is not limited to these.

[0018] The current detector 24 outputs a detection signal Sd corresponding to the current value of the current flowing through the DC side of the inverter circuit 23. The current detector 24 shown in FIG. 1 generates a detection signal Sd corresponding to the current value of the current flowing through the negative bus 22b. The current detector 24 is, for example, a current detection element disposed on the negative bus 22b, and more specifically, a resistor (shunt resistor) inserted into the negative bus 22b. The current detection element such as a shunt resistor generates a voltage signal corresponding to the current value of the current flowing through itself as the detection signal Sd. The negative bus 22b is an example of a DC line of the inverter circuit 23. The current detector 24 is a device connected in series to the negative bus 22b. Note that the current detector 24 may be a current sensor of another current detection method as long as it outputs a detection signal corresponding to the current value of the current flowing through the negative bus 22b.

[0019] The control unit 20 generates a plurality of PWM signals corresponding to each phase of the motor 4. The control unit 20 is, for example, a program processing device (for example, a microcontroller) having a configuration in which a processor such as a CPU, various storage devices such as a RAM and a ROM, and peripheral circuits such as a counter (timer), an A / D conversion circuit, a D / A conversion circuit, and an input / output I / F circuit are connected to each other via a bus. In this embodiment, the control unit 20 is packaged as an IC (integrated circuit), but is not limited to this.

[0020] The control unit 20 generates a PWM signal for each phase so that the motor 4 operates appropriately, for example, based on a rotation speed command ωref for the motor 4 input from a higher-level device (not shown) and the phase current of each phase of the motor 4 based on the detection signal Sd of the current detector 24.

[0021] In order to measure the phase current of each phase during one period of the PWM signal (hereinafter also referred to as the "PWM period"), a pulse phase adjustment method may be adopted in which the order in which the levels of the PWM signals of each phase change is changed according to the current pattern. In this case, distortion occurs in the current of the motor 4 at the timing when the order in which the signal levels of the PWM signals of each phase change is changed, which may cause noise.

[0022] In the motor control device 100 according to this embodiment, in order to prevent distortion of the current in the motor 4, the PWM period is divided into a first period A for adjusting the duty ratio and a second period B for detecting the phase current of each phase. The control unit 20 generates the PWM signal of each phase such that the signal level of the PWM signal of each phase switches at one or more timings according to the duty ratio in the first period A, and switches at mutually different predetermined timings in the second period B. Then, the control unit 20 measures the phase current at a predetermined current detection timing within the second period B in the PWM period.

[0023] FIG. 2 is a diagram for explaining an overview of a method for detecting phase currents by motor control device 100 according to the first embodiment.

[0024] As shown in FIG. 2, in the motor control device 100 according to this embodiment, two types of carriers C1 and C2 are used as the carriers C of the PWM signals U, V, and W.

[0025] Carrier C1 is a sawtooth carrier whose level increases with a period corresponding to a first period A in the PWM period. Carrier C2 is a sawtooth carrier whose level increases with a period corresponding to a second period B in the PWM period.

[0026] As shown in FIG. 2, the carrier C1 and the carrier C2 are generated alternately, and one period (PWM period) of the PWM signals U, V, and W is determined by a pair of consecutive carriers C1 and C2.

[0027] The PWM signals U, V, and W corresponding to each phase are generated so that the high and low levels are inverted at the timing when a threshold value calculated based on pulse width setting values ​​Udu, Vdu, and Wdu, which will be described later, matches the carriers C1 and C2.

[0028] The PWM signal U is a PWM signal for driving the two switching elements that make up the upper and lower arms of the U phase. When the PWM signal U is at a low level, the switching element of the lower arm of the U phase is on (the switching element of the upper arm of the U phase is off), and when the PWM signal U is at a high level, the switching element of the lower arm of the U phase is off (the switching element of the upper arm of the U phase is on). In response to changes in the level of the PWM signal U, the two switching elements that make up the upper and lower arms of the U phase perform complementarily on and off operations.

[0029] The PWM signal V is a PWM signal for driving the two switching elements that make up the upper and lower arms of the V phase. When the PWM signal V is at a low level, the switching element of the lower arm of the V phase is on (the switching element of the upper arm of the V phase is off), and when the PWM signal V is at a high level, the switching element of the lower arm of the V phase is off (the switching element of the upper arm of the V phase is on). In response to changes in the level of the PWM signal V, the two switching elements that make up the upper and lower arms of the V phase perform complementarily on and off operations.

[0030] The PWM signal W is a PWM signal for driving the two switching elements that make up the upper and lower arms of the W phase. When the PWM signal W is at a low level, the switching element of the lower arm of the W phase is on (the switching element of the upper arm of the W phase is off), and when the PWM signal W is at a high level, the switching element of the lower arm of the W phase is off (the switching element of the upper arm of the W phase is on). In response to changes in the level of the PWM signal W, the two switching elements that make up the upper and lower arms of the W phase perform complementarily on and off operations.

[0031] The timing at which the multiple PWM signals U, V, and W change from low level to high level is slightly delayed from the timing at which the carrier C matches the threshold value based on the pulse width setting values ​​Udu, Vdu, and Wdu of each phase. This is because a dead time is required to prevent short circuits between the upper and lower arms. For ease of explanation, the dead time is omitted in FIG. 2. In the following, when the multiple PWM signals U to W are not distinguished from one another, they may be referred to as "PWM signals."

[0032] In the normal mode, the PWM signals U, V, and W according to the first embodiment switch their signal levels at timings according to the duty ratio during a first period A from time t0 to time t4 determined by the carrier C1, and switch their signal levels at fixed timings different from one another during a second period B from time t4 to time t8 determined by the carrier C2. The normal mode is an example of the first mode, in which the signal levels of the PWM signals U, V, and W switch at timings d1, d2, e1, e2, f1, and f2 set in step S82 in Fig. 8 described later.

[0033] For example, the signal level of the U-phase PWM signal U switches from a low level to a high level at timing (time) t1 in the first period A, and switches from a high level to a low level at timing t5 in the second period B. The signal level of the V-phase PWM signal V switches from a low level to a high level at timing (time) t2 in the first period A, and switches from a high level to a low level at timing t6 in the second period B. The signal level of the W-phase PWM signal V switches from a low level to a high level at timing (time) t3 in the first period A, and switches from a high level to a low level at timing t7 in the second period B.

[0034] In the normal mode, during the first period A, the timing at which the signal levels of the PWM signals U, V, and W are switched varies according to pulse width set values ​​Udu, Vdu, and Wdu that are set by a duty ratio calculation unit 31, which will be described later.

[0035] On the other hand, in the normal mode, the timing at which the signal levels of the PWM signals U, V, and W change (switch) during the second period B is fixed regardless of the duty ratio setting value (pulse width setting values ​​Udu, Vdu, and Wdu). In other words, the order in which the signal levels of the PWM signals U, V, and W switch during the second period B is fixed. For example, as shown in FIG. 2, during the second period B, the signal levels of the PWM signals U, V, and W switch in the order of U phase, V phase, and W phase, and this order is not changed during the drive control of the motor. Note that the order in which the signal levels of the PWM signals U, V, and W switch is not limited to the above example.

[0036] 2, in the second period B, the motor control device 100 measures the current flowing through a current detector 24, such as a shunt resistor, in a period Tu between timing t5 when the U-phase PWM signal U switches and timing t6 when the V-phase PWM signal V switches. The motor control device 100 also measures the current flowing through the current detector 24 in a period Tuv between timing t6 when the V-phase PWM signal V switches and timing t7 when the W-phase PWM signal W switches.

[0037] The current measured during the period Tu represents the U-phase current Iu, and the current measured during the period Tuv represents the sum of the U-phase current Iu and the V-phase current Iv.

[0038] Here, the U-phase, V-phase, and W-phase currents Iu, Iv, and Iw have a relationship of "Iu+Iv+Iw=0." In other words, there is a relationship of "Iw=-(Iu+Iv)."

[0039] Therefore, the W-phase current Iw can be calculated from the above relational expression and the measurement value of the sum (Iu+Iv) of the U-phase and V-phase phase currents measured during the above period Tuv. Also, the V-phase current Iv can be calculated from the measurement value of the U-phase phase current Iu detected during the above period Tu and the measurement value of the W-phase phase current Iw detected during the above period Tuv.

[0040] In this way, the motor control device 100 measures the currents of the U-phase, V-phase, and W-phase by detecting the current of the current detector 24 in the periods Tu and Tuv within the second period of the PWM cycle.

[0041] Next, a specific configuration for generating a PWM signal for each phase and a specific configuration for detecting a phase current in motor control device 100 will be described in detail.

[0042] As shown in FIG. 1, the control unit 20 has a current detection unit 27, a current detection timing adjustment unit 34, a drive circuit 33, a current pattern generation unit 35, a clock generation unit 36, and a carrier generation unit 37 as functional blocks for generating PWM signals for each phase.

[0043] The current detection unit 27 detects the phase currents Iu, Iv, Iw of the U, V, and W phases flowing through the motor 4 by acquiring the detection signal Sd based on a plurality of current patterns (more specifically, a three-phase PWM signal) generated by the current pattern generation unit 35. More specifically, the current detection unit 27 detects the phase currents Iu, Iv, Iw of the U, V, and W phases flowing through the motor 4 by acquiring the detection signal Sd at an acquisition timing synchronized with the plurality of current patterns (more specifically, a three-phase PWM signal). The acquisition timing of the detection signal Sd is set by the current detection timing adjustment unit 34.

[0044] For example, the current detection unit 27 captures an analog voltage detection signal Sd generated by the current detector 24 into an A / D (Analog to Digital) converter at an acquisition timing set by the current detection timing adjustment unit 34. The A / D converter is provided in the current detection unit 27. Then, the current detection unit 27 performs AD conversion of the captured analog detection signal Sd into a digital detection signal Sd, and measures the phase currents Iu, Iv, Iw of the U, V, W phases of the motor 4 by digitally processing the AD-converted digital detection signal Sd.

[0045] The measured values ​​of the phase currents Iu, Iv, Iw of each phase measured by the current detection unit 27 are supplied to the current pattern generation unit 35. The clock generation unit 36 ​​generates a clock of a predetermined frequency using an internal oscillation circuit, and outputs the generated clock to the carrier generation unit 37. The clock generation unit 36 ​​starts operation, for example, at the same time that the motor control device 100 is powered on.

[0046] The current pattern generation unit 35 determines the rotor position of the motor 4 based on the measurement values ​​of the phase currents Iu, Iv, and Iw of the motor 4 measured by the current detection unit 27, and generates a signal specifying a pattern for energizing the inverter circuit 23 (the current pattern of the inverter circuit 23) so that the rotor of the motor 4 follows the determined rotor position.

[0047] Here, the energization pattern of the inverter circuit 23 may be rephrased as a pattern for energizing the motor 4 (energization pattern of the motor 4). A signal specifying the energization pattern of the inverter circuit 23 includes, for example, a three-phase PWM signal for energizing the inverter circuit 23 so as to rotate the motor 4.

[0048] In this embodiment, the energization pattern generator 35 generates the energization pattern of the inverter circuit 23 by vector control. Note that the method of generating the energization pattern of the inverter is not limited to vector control, and may be a method of obtaining the phase voltage of each phase by using vf control or the like.

[0049] Specifically, the energization pattern generating unit 35 has a duty ratio setting unit 39 and a PWM signal generating unit 32 .

[0050] The duty ratio setting unit 39 is a functional unit for generating a PWM signal as a signal for specifying a current conduction pattern of the inverter circuit 23. The duty ratio setting unit 39 sets the duty ratio of the three-phase PWM signal based on the current detection result by the current detection unit 27. The duty ratio setting unit 39 includes, for example, a vector control unit 30 and a duty ratio calculation unit 31.

[0051] When a rotation speed command ωref of the motor 4 is given from the outside, the vector control unit 30 generates a torque current command Iqref and an excitation current command Idref based on the difference between the measured value or estimated value of the rotation speed of the motor 4 and the rotation speed command ωref. The vector control unit 30 calculates the torque current Iq and the excitation current Id by vector control calculation using the rotor position θ based on the measured values ​​of the phase currents Iu, Iv, and Iw by the current detection unit 27.

[0052] The vector control unit 30 performs, for example, a PI control calculation on the difference between the torque current command Iqref and the torque current Iq to generate a voltage command Vq. The vector control unit 30 performs, for example, a PI control calculation on the difference between the excitation current command Idref and the excitation current Id to generate a voltage command Vd.

[0053] The vector control unit 30 calculates the voltage commands Vq and Vd as phase voltage commands Vu for the U, V, and W phases using the rotor position θ. * ,Vv * ,Vw * The phase voltage command Vu * ,Vv * ,Vw * is supplied to the duty ratio calculation unit 31.

[0054] The duty ratio calculation unit 31 calculates the phase voltage command Vu * ,Vv * ,Vw * Based on this, the pulse width setting values ​​Udu, Vdu, and Wdu (setting values ​​of the duty ratio of each phase) for generating a three-phase PWM signal are calculated.

[0055] The PWM signal generating unit 32 generates three-phase PWM signals U, V, W as energization pattern signals based on the pulse width setting values ​​Udu, Vdu, Wdu of each phase set by the duty ratio setting unit 39 and the carriers C1, C2.

[0056] As described above, the carriers C1 and C2 are carrier signals whose levels periodically increase and decrease. The PWM signal generating unit 32 generates three-phase PWM signals U, V, and W based on the results of comparing the carriers C1 and C2 with threshold values ​​based on the pulse width setting values ​​Udu, Vdu, and Wdu of each phase.

[0057] Specifically, the PWM signal U includes a PWM signal UH for driving the switching element of the U-phase upper arm and a PWM signal UL for driving the switching element of the U-phase lower arm. The PWM signal V includes a PWM signal VH for driving the switching element of the V-phase upper arm and a PWM signal VL for driving the switching element of the V-phase lower arm. The PWM signal W includes a PWM signal WH for driving the switching element of the W-phase upper arm and a PWM signal WL for driving the switching element of the W-phase lower arm.

[0058] The PWM signal generating unit 32 outputs the generated PWM signals U, V, and W to the driving circuit 33, respectively.

[0059] The drive circuit 33 outputs drive signals that switch the six switching elements 25U+, 25V+, 25W+, 25U-, 25V-, and 25W- included in the inverter circuit 23 in accordance with a current pattern including a given PWM signal. This causes a three-phase AC drive current to be supplied to the motor 4, causing the rotor of the motor 4 to rotate.

[0060] The current detection timing adjustment unit 34 determines the acquisition timing for the current detection unit 27 to detect phase currents of two of the three phases within one period of the PWM signal, based on the interrupt signal Si described below generated by the PWM signal generation unit 32.

[0061] The current detection unit 27, the energization pattern generation unit 35, and the current detection timing adjustment unit 34 are realized by a processor (e.g., a CPU (Central Processing Unit)) performing various calculations according to a program stored in a readable manner in a storage device (not shown). For example, each of these functions is realized by cooperation between hardware and software in a microcomputer including the CPU.

[0062] 1, the carrier generating unit 37 generates a sawtooth carrier C1 having a cycle corresponding to a first period A in a PWM cycle, and a sawtooth carrier C2 having a cycle corresponding to a second period B in a PWM cycle. The carrier generating unit 37 has a counting unit that starts counting the clock CLK when a counting start signal is given, for example, and outputs carriers C1 and C2, which are sawtooth carriers, by cumulatively adding the count value (adding 1 each time the clock CLK is input).

[0063] The carrier generating unit 37 stores information for specifying the periods of the carriers C1 and C2, i.e., the lengths of the first period A and the second period B in one period of the PWM signal described above. Specifically, the carrier generating unit 37 stores a first upper limit value T1 and a second upper limit value T2.

[0064] The first upper limit T1 is a value that specifies the cycle of the carrier C1, i.e., the length of the first period A in the PWM cycle. The second upper limit T2 is a value that specifies the cycle of the carrier C2, i.e., the length of the second period B in the PWM cycle.

[0065] Here, when the PWM period is T, T=T1+T2, and T1>T2. Note that this is not limited to the case where the PWM period is extremely short or the current detection section is extremely long, and the like, T1 <T2となってもよい。

[0066] FIG. 3 is a diagram for explaining the principle of generation of a PWM signal by the motor control device 100 according to the first embodiment.

[0067] The PWM signal generation unit 32 has a fixed threshold value storage unit that stores information specifying the timing at which the signal level of the PWM signal of each phase changes in the second period B of the PWM period. Specifically, the fixed threshold value storage unit stores fixed threshold values Udu2, Vdu2, and Wdu2.

[0068] The fixed threshold value Udu2 is a value that specifies the switching timing of the signal level of the U-phase PWM signal in the second period B of the PWM period. The fixed threshold value Vdu2 is a value that specifies the switching timing of the signal level of the V-phase PWM signal in the second period B of the PWM period. The fixed threshold value Wdu2 is a value that specifies the switching timing of the signal level of the W-phase PWM signal in the second period B of the PWM period.

[0069] As will be described later, the order in which the signal levels of the PWM signals of each phase change in the second period B of the PWM period is determined based on the magnitude relationship among the fixed threshold values Udu2, Vdu2, and Wdu2. For example, when Udu2 < Vdu2 < Wdu2, in the second period B of the PWM period, the signal levels of the PWM signals of the U-phase, V-phase, and W-phase change in this order.

[0070] The PWM signal generation unit 32 calculates variable threshold values Udu1, Vdu1, and Wdu1 based on the fixed threshold values Udu2, Vdu2, and Wdu2 so that a PWM signal having a duty ratio (pulse widths pu, pv, pw) corresponding to the pulse width setting values Udu, Vdu, and Wdu of the U-phase, V-phase, and W-phase set by the duty ratio setting unit 39 is generated.

[0071] The variable threshold value Udu1 is a value that specifies the switching timing of the signal level of the U-phase PWM signal in the first period A of the PWM period. The variable threshold value Vdu1 is a value that specifies the switching timing of the signal level of the V-phase PWM signal in the first period A of the PWM period. The variable threshold value Wdu1 is a value that specifies the switching timing of the signal level of the W-phase PWM signal in the first period A of the PWM period.

[0072] The PWM signal generating unit 32 calculates the variable threshold Udu1 based on the pulse width setting value Udu of the U phase set by the duty ratio setting unit 39 and the fixed threshold Udu2. For example, the PWM signal generating unit 32 subtracts the fixed threshold Udu2 from the pulse width setting value Udu from the first upper limit value T1 to calculate the variable threshold Udu1 (=T1-(Udu-Udu2)). Similarly, the variable threshold calculating unit 41, for example, calculates the variable threshold Vdu1 (=T1-(Vdu-Vdu2)) by subtracting the fixed threshold Vdu2 from the pulse width setting value Vdu from the first upper limit value T1, and calculates the variable threshold Wdu1 (=T1-(Wdu-Wdu2)) by subtracting the fixed threshold Wdu2 from the pulse width setting value Wdu from the first upper limit value T1.

[0073] The PWM signal generating unit 32 alternately switches between the variable thresholds Udu1, Vdu1, and Wdu1 and the fixed thresholds Udu2, Vdu2, and Wdu2 in response to switching between the first period A and the second period B.

[0074] The motor control device 100 updates the current conduction pattern of each phase (the duty ratio of the PWM signal of each phase) and measures the phase current every n (n is an integer equal to or greater than 2) times the PWM period (T) (T×n). Fig. 3 shows an example in which the motor control device 100 updates the duty ratio of the PWM signal and measures the phase current every two PWM periods (n=2). Hereinafter, the period in which the duty ratio of the PWM signal is updated is also referred to as the "control period."

[0075] First, at time t0, generation of the carrier C1 is started. In a first period A (a period during which the carrier C1 is generated), the PWM signal generating unit 32 compares the carrier C1 with the variable thresholds Udu1, Vdu1, and Wdu1.

[0076] At time t1, when the level of the carrier C1 matches the variable threshold Udu1, the PWM signal generating unit 32 switches the U-phase PWM signal UL from high level to low level, and after a predetermined dead time has elapsed, switches the U-phase PWM signal UH from low level to high level.

[0077] Next, at time t2, when the level of the carrier C1 and the variable threshold Vdu1 match, the PWM signal generating unit 32 switches the V-phase PWM signal VL from high level to low level, and after a predetermined dead time has elapsed, switches the V-phase PWM signal VH from low level to high level.

[0078] Next, at time t3, when the level of the carrier C1 matches the variable threshold Wdu1, the PWM signal generating unit 32 switches the W-phase PWM signal WL from high level to low level, and after a predetermined dead time has elapsed, switches the W-phase PWM signal WH from low level to high level.

[0079] After that, at time t4, generation of the carrier C1 ends and generation of the carrier C2 starts. The PWM signal generating unit 32 compares the carrier C2 with the fixed thresholds Udu2, Vdu2, and Wdu2 during the second period B (the period during which the carrier C2 is generated).

[0080] At time t5, when the level of the carrier C2 matches the fixed threshold Udu2, the PWM signal generating unit 32 switches the U-phase PWM signal UH from high level to low level, and after a predetermined dead time has elapsed, switches the U-phase PWM signal UL from low level to high level.

[0081] Next, at time t6, when the level of the carrier C2 matches the fixed threshold Vdu2, the PWM signal generating unit 32 switches the V-phase PWM signal VH from high level to low level, and after a predetermined dead time has elapsed, switches the V-phase PWM signal VL from low level to high level.

[0082] Next, at time t7, when the level of the carrier C2 matches the fixed threshold Wdu2, the PWM signal generating unit 32 switches the W-phase PWM signal WH from high level to low level, and after a predetermined dead time has elapsed, switches the W-phase PWM signal WL from low level to high level.

[0083] Then, at time t8, generation of carrier C2 ends and generation of carrier C1 starts. After that, the PWM signals of each phase are repeatedly generated by the same process as that from time t0 to t8.

[0084] 3, the phase current of the motor 4 is measured during the second period B (the period from time t10 to time t15) of the latter PWM period of the two PWM periods included in the control period. Note that the phase current of the motor 4 may be measured during the second period B (the period from time t4 to time t8) of the former PWM period of the two PWM periods included in the control period.

[0085] The PWM signal generating unit 32 generates an interrupt signal Si in response to a change in the signal level of the U-phase PWM signal U (for example, the falling edge of the PWM signal UH) during the second period B of the latter PWM cycle. In response to the interrupt signal Si, the PWM signal generating unit 32 issues an A / D conversion command to the current detecting unit 27 before the signal level of the V-phase PWM signal V switches. Specifically, the PWM signal generating unit 32 issues an A / D conversion command to the current detecting unit 27 at a predetermined timing (time) tu during the period Tu from time t11 when the PWM signal UL rises to time t12 when the PWM signal VH falls. The current detecting unit 27 detects the detection signal Sd of the current detector 24 in response to the command.

[0086] Thereafter, the PWM signal generating unit 32 generates an interrupt signal Si in response to a change in the signal level of the V-phase PWM signal V (for example, the falling edge of the PWM signal VH). Before the signal level of the W-phase PWM signal W is changed, the PWM signal generating unit 32 issues an A / D conversion command to the current detecting unit 27. Specifically, the PWM signal generating unit 32 issues an A / D conversion command to the current detecting unit 27 at a predetermined timing (time) tuv in the period Tuv from time t13 when the PWM signal VL rises to time t14 when the PWM signal WH falls. In response to the command, the current detecting unit 27 detects the detection signal Sd of the current detector 24.

[0087] Next, a motor control method executed by motor control device 100 according to the present embodiment will be described.

[0088] 4 is a flowchart showing the flow of motor drive control processing by motor control device 100 according to embodiment 1. For example, when a rotation speed command ωref for motor 4 is input from a higher-level device (not shown), motor control device 100 starts drive control of motor 4 and repeats a series of processes from step S10 to step S14 at a predetermined control period.

[0089] The motor control device 100 performs a process of generating a current pattern for driving the motor 4 (step S10). Specifically, the PWM signal generating unit 32 performs a pulse phase adjustment process of setting fixed thresholds Udu2, Vdu2, and Wdu2 to ensure periods Tu and Tuv in the second period B. The PWM signal generating unit 32 generates PWM signals for each phase whose signal levels change at timings d1, d2, e1, e2, f1, and f2 (described below) that were set in step S14 of the previous control cycle. The inverter circuit 23 drives the coils of each phase of the motor 4 based on the PWM signals for each phase generated by the PWM signal generating unit 32.

[0090] Next, the motor control device 100 measures the phase currents Iu, Iv, and Iw of the U, V, and W phases (step S11). For example, as shown in FIG. 3, the current detection unit 27 acquires the detection signal Sd by an AD converter at a timing (time) tu in the second period B of the PWM cycle, and stores the acquired value (Iu) of the detection signal Sd in a first acquisition register (not shown). The current detection unit 27 also acquires the detection signal Sd by an AD converter at a timing (time) tuv in the second period B of the PWM cycle, and stores the acquired value (Iu+Iw) of the detection signal Sd in a second acquisition register (not shown). The current detection unit 27 calculates the phase currents Iu, Iv, and Iw by the above-mentioned method based on the measurement values ​​of the detection signal Sd stored in the first acquisition register and the second acquisition register, respectively.

[0091] Next, the vector control unit 30 performs current control such as PI control based on the current calculation values ​​of the three-phase currents Iu, Iv, and Iw detected by the current detection unit 27 in step S11 (step S12), and calculates the phase voltage command Vu of each phase. * ,Vv * ,Vw * The duty ratio calculation unit 31 calculates the phase voltage command Vu * ,Vv * ,Vw * The pulse width set values ​​Udu, Vdu, and Wdu may be used as control variables. Hereinafter, for convenience of explanation, the phase voltage command or the pulse width set value is also referred to as the control variable Cq.

[0092] Next, the duty ratio setting unit 39 sets the phase voltage command Vu of each phase calculated in step S13. * ,Vv * ,Vw * Specifically, the duty ratio setting unit 39 updates (sets) the duty ratio of each phase based on the phase voltage command Vu * ,Vv * ,Vw * The PWM signal generating unit 32 calculates the pulse width setting values ​​Udu, Vdu, Wdu based on the calculated pulse width setting values ​​Udu, Vdu, Wdu by the above-mentioned method. The PWM signal generating unit 32 sets (determines) timings d1, d2, e1, e2, f1, f2 (described later) at which the signal levels of the PWM signals of the respective phases in the next control cycle are switched based on the updated (set) variable thresholds Udu1, Vdu1, Wdu1.

[0093] 5, 6, 7, and 8 are flowcharts showing the flow of the process (step S14 in FIG. 4) for setting the timings d1, d2, e1, e2, f1, and f2 at which the signal levels of the PWM signals of the respective phases are switched based on the set values ​​of the duty ratios (pulse width set values). Fig. 9 is a timing chart showing examples of waveforms in the first case in which the phase current is detected by a current detection method in which the second period B, which is the current detection section, is in the latter half of the first PWM period.

[0094] FIG. 9 shows a case where current detection is performed once for every two PWM periods included in one control period. In normal mode, the U-phase PWM signals of the multiple PWM periods included in one control period have the same waveforms (the same goes for the V-phase PWM signals and the W-phase PWM signals). However, in a situation where the rotation speed of the motor 4 is high or a large current flows through the motor 4, if the second period B, which is the current detection section, is secured, a phase may occur in which the pulse width of the PWM signal does not fit within one PWM period. The upper part of FIG. 9 illustrates a case in which the pulse width of the U-phase PWM signal does not fit within the first PWM period.

[0095] In the motor control device 100 according to the first embodiment, the PWM signal generating unit 32 cuts out the pulse width portion that does not fit into one PWM cycle within the current cycle, and distributes the cut portion to the next and subsequent PWM cycles within the same control cycle to balance things out. In a PWM cycle in which current detection is not performed, there is no need for a conduction section for phase current detection, so distributing the cut portion to a PWM cycle in which current detection is not performed does not cause a problem even if the pulse position is distorted.

[0096] Next, the processes shown in FIGS. 5, 6, 7 and 8 performed by motor control device 100 according to the first embodiment will be described with reference to FIGS.

[0097] The PWM signal generating unit 32 refers to count values ​​(e.g., the variable thresholds Udu1, Vdu1, Wdu1 set (updated) by the above-mentioned method) of timings d1, e1, f1 to be compared with the carrier C1 in the first period A (step S20). The variable thresholds Udu1, Vdu1, Wdu1 correspond to values ​​that specify the switching timings d1, e1, f1 of the signal levels of the PWM signals of each phase in the first period A of the first PWM cycle, respectively.

[0098] In step S21, the PWM signal generating unit 32 determines whether the count value at timing d1 is a negative number (for example, determines whether the variable threshold Udu1 is a negative number). If the PWM signal generating unit 32 determines that the count value at timing d1 (for example, the variable threshold Udu1) is not a negative number, it can determine that the pulse width pu of the U-phase PWM signal falls within the first PWM period, and therefore performs the process of step S33. On the other hand, if the PWM signal generating unit 32 determines that the count value at timing d1 (for example, the variable threshold Udu1) is a negative number, it can determine that the pulse width pu of the U-phase PWM signal does not fall within the first PWM period, and therefore performs the process of step S22.

[0099] In step S33, the PWM signal generating unit 32 determines whether the count value at timing e1 is a negative number (for example, determines whether the variable threshold Vdu1 is a negative number). If the PWM signal generating unit 32 determines that the count value at timing e1 (for example, the variable threshold Vdu1) is not a negative number, it can determine that the pulse width pv of the V-phase PWM signal falls within the first PWM period, and therefore performs the process of step S34. On the other hand, if the PWM signal generating unit 32 determines that the count value at timing e1 (for example, the variable threshold Vdu1) is a negative number, it can determine that the pulse width pv of the V-phase PWM signal does not fall within the first PWM period, and therefore performs the process of step S42 in FIG. 6.

[0100] In step S34, the PWM signal generating unit 32 determines whether the count value at timing f1 is a negative number (for example, determines whether the variable threshold Wdu1 is a negative number). If the PWM signal generating unit 32 determines that the count value at timing f1 (for example, the variable threshold Wdu1) is not a negative number, it can determine that the pulse width pw of the W-phase PWM signal falls within the first PWM period, and therefore performs the process of step S82 in Fig. 8. On the other hand, if the PWM signal generating unit 32 determines that the count value at timing f1 (for example, the variable threshold Wdu1) is a negative number, it can determine that the pulse width pw of the W-phase PWM signal does not fall within the first PWM period, and therefore performs the process of step S62 in Fig. 7.

[0101] In step S82 in Fig. 8, the PWM signal generating unit 32 sets timings d1, d2, e1, e2, f1, and f2 at which the signal levels of the PWM signals of each phase in normal mode are switched in the next control cycle, using the control amount Cq calculated in step S13 in Fig. 4 for the current control cycle. By step S82, the PWM signals of each phase have the same waveforms in the first PWM cycle and the second PWM cycle.

[0102] In step S82, the PWM signal generating unit 32 sets the timing d2 to a timing corresponding to the fixed count value of the timing d2 (for example, the fixed threshold value Udu2). Similarly, the PWM signal generating unit 32 sets the timing e2 to a timing corresponding to the fixed count value of the timing e2 (for example, the fixed threshold value Vdu2), and sets the timing f2 to a timing corresponding to the fixed count value of the timing f2 (for example, the fixed threshold value Wdu2). Also, in step S82, the PWM signal generating unit 32 sets the timing d1 to a timing corresponding to the count value of the timing d1 referred to in step S20 (for example, the variable threshold value Udu1). Similarly, the PWM signal generating unit 32 sets the timing e1 to a timing corresponding to the count value of the timing e1 referred to in step S20 (for example, the variable threshold value Vdu1), and sets the timing f1 to a timing corresponding to the count value of the timing f1 referred to in step S20 (for example, the variable threshold value Wdu1).

[0103] Steps S22 to S32 in Fig. 5 are a processing mode when the pulse width pu of the U-phase PWM signal does not fall within the first PWM period, and are an example of the second mode. In step S22 in Fig. 5, the PWM signal generator 32 determines whether the maximum control amount Cq calculated in step S13 in Fig. 4 is large enough to allocate the portion of the pulse width that does not fall within the first PWM period (pulse excess portion) to the second PWM period. The maximum control amount Cq calculated in step S13 in Fig. 4 is the phase voltage command Vu * ,Vv * ,Vw *Alternatively, it may be the maximum value among the pulse width setting values ​​Udu, Vdu, and Wdu.

[0104] For example, when the PWM signal generating unit 32 determines that the maximum control amount Cq is large enough to allocate the pulse excess portion to the second PWM cycle (for example, when the maximum control amount Cq is equal to or smaller than a predetermined value), it performs the process of step S23. On the other hand, when the PWM signal generating unit 32 determines that the maximum control amount Cq is too large to allocate the pulse excess portion to the second PWM cycle (for example, when the maximum control amount Cq is larger than a predetermined value), it performs the process of step S28.

[0105] In step S23, the PWM signal generating unit 32 stores in memory a count width a (e.g., absolute value of variable threshold Udu1) of the pulse excess portion from timing t0 to timing d1. The PWM signal generating unit 32 also sets timings d2, e2, and f2 in the second period B of the first PWM cycle to the timings corresponding to the fixed count values ​​(e.g., fixed thresholds Udu2, Vdu2, and Wdu2) of timings d2-+, e2, and f2. The PWM signal generating unit 32 sets timings e1 and f1 in the first period A of the first PWM cycle to the timings corresponding to the count values ​​(e.g., variable thresholds Vdu1 and Wdu1) of timings e1 and f1 referred to in step S20.

[0106] Next, the PWM signal generating unit 32 derives timings d1, d2, e1, e2, f1, and f2 at which the signal levels of the PWM signals of each phase of the second PWM cycle are switched. In step S24, the PWM signal generating unit 32 provisionally sets the count values ​​of the timings d2, e2, and f2 in the second period B of the second PWM cycle to the maximum count values ​​at the end of the second PWM cycle, as shown in Fig. 9. The PWM signal generating unit 32 derives timings d1, e1, and f1 in the first period A of the second PWM cycle based on the timings d2, e2, and f2 provisionally set to the maximum count values ​​and the pulse width set values ​​Udu, Vdu, and Wdu calculated in step S13 (step S24).

[0107] In step S24, for example, the PWM signal generating unit 32 calculates the count value at timing d1 in the first period A of the second PWM cycle by subtracting the pulse width set value Udu from the count value at timing d2 that is provisionally set to the maximum count value. Similarly, the PWM signal generating unit 32 calculates the count value at timing e1 in the first period A of the second PWM cycle by subtracting the pulse width set value Vdu from the count value at timing e2 that is provisionally set to the maximum count value. Similarly, the PWM signal generating unit 32 calculates the count value at timing f1 in the first period A of the second PWM cycle by subtracting the pulse width set value Wdu from the count value at timing f2 that is provisionally set to the maximum count value.

[0108] The PWM signal generating unit 32 determines whether or not the difference D obtained by subtracting the count width a stored in step S23 from the count value at the timing d1 obtained in step S24 is greater than zero (step S25). If the PWM signal generating unit 32 determines in step S25 that the difference D is greater than zero, it can determine that the pulse excess portion can be allocated to the second PWM cycle, and therefore sets the count value at the timing d1 in the first period A of the second PWM cycle to the minimum value that the control unit 20 can set (step S26).

[0109] In step S26, the PWM signal generating unit 32 sets (confirms) timings d2, e2, and f2 in the second period B of the second PWM cycle to the timings corresponding to the maximum count value provisionally set in step S24. Also, in step S26, the PWM signal generating unit 32 sets (confirms) timings e1 and f1 in the first period A of the second PWM cycle to the timings corresponding to the count values ​​of timings e1 and f1 calculated in step S24. Also, in step S26, the PWM signal generating unit 32 sets (confirms) timing d1 in the first period A of the second PWM cycle to the timing corresponding to the count value obtained by subtracting the pulse width setting value Udu from the count value of timing d2 provisionally set as the maximum count value.

[0110] On the other hand, if the PWM signal generating unit 32 determines in step S25 that the difference D is not greater than zero, it can determine that the pulse excess portion is too large to be allocated to the second PWM period. In this case, in step S27, the PWM signal generating unit 32 sets the PWM signals of each phase to the same output pattern as in the previous control period, that is, it sets the timings d1, d2, e1, e2, f1, and f2 of the first PWM period and the second PWM period to the same timings as those set in the previous control period.

[0111] In step S28, the PWM signal generating unit 32 judges whether or not there is an instruction to set the PWM signal of each phase to the same output pattern as in the previous control cycle. If the PWM signal generating unit 32 judges that there is such an instruction, it sets the PWM signal of each phase to the same output pattern as in the previous control cycle, that is, it sets the timings d1, d2, e1, e2, f1, and f2 of the first PWM cycle and the second PWM cycle to the same timings as those set in the previous control cycle (step S32). On the other hand, if the PWM signal generating unit 32 judges that there is no such instruction, it performs the process of step S29 to set the timings d1, d2, e1, e2, f1, and f2 of the first PWM cycle and the second PWM cycle.

[0112] In step S29, the PWM signal generating unit 32 sets the count values ​​of the timings d2, e2, and f2 in the second period B of the first PWM cycle to the maximum count value at the end of the first PWM cycle. That is, the PWM signal generating unit 32 sets the timings d2, e2, and f2 in the second period B of the first PWM cycle to the timings corresponding to the maximum count value at the end of the first PWM cycle. Similarly, in step S29, the PWM signal generating unit 32 sets the count values ​​of the timings d2, e2, and f2 in the second period B of the second PWM cycle to the maximum count value at the end of the second PWM cycle. That is, the PWM signal generating unit 32 sets the timings d2, e2, and f2 in the second period B of the second PWM cycle to the timings corresponding to the maximum count value at the end of the second PWM cycle.

[0113] In step S30, the PWM signal generating unit 32 sets the difference D obtained by subtracting the count width a of the pulse excess portion from the count value of the timing d1 referred to in step S20 as the count value of the timing d1 in the first period A of the first PWM cycle and the second PWM cycle. In other words, the PWM signal generating unit 32 sets the timing d1 in the first period A of the first PWM cycle and the second PWM cycle to the timing corresponding to the difference D.

[0114] In step S31, the PWM signal generating unit 32 derives timings e1, f1 in the first period A of the first PWM cycle and the second PWM cycle based on the timings e2, f2 set to the maximum count value and the pulse width set values ​​Vdu, Wdu calculated in step S13. For example, the PWM signal generating unit 32 sets timing e1 in the first period A of the first PWM cycle and the second PWM cycle to a timing corresponding to a count value obtained by subtracting the pulse width set value Vdu from the count value of the timing e2 set to the maximum count value. Similarly, for example, the PWM signal generating unit 32 sets timing f1 in the first period A of the first PWM cycle and the second PWM cycle to a timing corresponding to a count value obtained by subtracting the pulse width set value Wdu from the count value of the timing f2 set to the maximum count value.

[0115] Steps S42 to S52 in Fig. 6 are a processing mode when the pulse width pv of the V-phase PWM signal does not fall within the first PWM period, and are an example of the third mode. The processing contents of steps S42 to S52 in Fig. 6 correspond to the processing contents of steps S22 to S32 in Fig. 5, respectively, and therefore the above explanation is used to omit the explanation. In step S43, the PWM signal generating unit 32 saves in memory the count width b of the pulse excess portion from timing t0 to timing e1 (for example, the absolute value of the variable threshold Vdu1).

[0116] Steps S62 to S72 in Fig. 7 are a processing mode when the pulse width pw of the W-phase PWM signal does not fall within the first PWM period, and are an example of the fourth mode. The processing contents of steps S62 to S72 in Fig. 7 correspond to the processing contents of steps S22 to S32 in Fig. 5, respectively, and therefore the above explanations are incorporated herein and will not be repeated. In step S63, the PWM signal generating unit 32 stores in memory the count width c (for example, the absolute value of the variable threshold value Wdu1) of the pulse excess portion from timing t0 to timing f1.

[0117] FIG. 10 is a timing chart illustrating waveforms of the second case in which phase current is detected by a current detection method in which the second period B, which is the current detection section, is in the first half of the first PWM cycle. Like FIG. 9, FIG. 10 illustrates a case in which current detection is performed once per two PWM cycles included in one control cycle. The upper part of FIG. 10 illustrates a case in which the pulse width of the U-phase PWM signal does not fit within the first PWM cycle. Even in the case of FIG. 10, the PWM signal generating unit 32 in the motor control device 100 according to the first embodiment cuts the part of the pulse width that does not fit within one PWM cycle in the current cycle, and distributes the cut part to the next and subsequent PWM cycles in the same control cycle to balance the books. In a PWM cycle in which current detection is not performed, there is no need to have a conduction section for phase current detection, so there is no problem even if the pulse position is distorted by distributing the cut part to a PWM cycle in which current detection is not performed.

[0118] The case of FIG. 10 can be explained by replacing the timings d1, e1, f1, d2, e2, and f2 shown in FIGS. 5 to 8 with the timings d2, e2, f2, d1, e1, and f1, respectively, and therefore a detailed explanation thereof will be omitted.

[0119] Therefore, according to the motor control device 100 of the first embodiment, even if a pulse excess portion occurs in the first PWM period, the pulse excess portion can be added to the second PWM period, improving the voltage modulation rate in one control period. For example, the pulse width setting value of the first-phase PWM signal set by the duty ratio setting unit 39 is p1, and the excess pulse width, which is the portion of the pulse width setting value p1 that does not fit in the first PWM period, is pe. In this case, according to the motor control device 100, the pulse width of the first-phase PWM signal in the first PWM period can be adjusted to (p1-pe), and the pulse width of the first-phase PWM signal in the second PWM period can be adjusted to (p1+pe), improving the voltage modulation rate in one control period. The above-mentioned count widths a, b, and c are examples of the excess pulse width pe.

[0120] Furthermore, in the case of the motor control device 100 according to the first embodiment, the second PWM period is a period in which current detection is not performed by the current detection unit 27. Therefore, as described above, even if a pulse excess portion is added to the second PWM period, it is possible to prevent the opportunity for current detection from being excessively limited.

[0121] Furthermore, according to the motor control device 100 according to the first embodiment, the signal levels of the PWM signals of the respective phases in the second PWM cycle are switched at the same timing, making it easier to ensure a period in which the pulse excess portion is added to the second PWM cycle.

[0122] Although the motor control device, motor system, and motor control method have been described above by way of embodiments, the present invention is not limited to the above-mentioned embodiments. Various modifications and improvements, such as combinations and substitutions with part or all of the other embodiments, are possible within the scope of the present invention.

[0123] For example, in the above embodiment, the current conduction pattern of each phase (duty ratio of the PWM signal of each phase) is updated and the phase current is measured every two PWM cycles, but this is not limiting. For example, the current conduction pattern of each phase (duty ratio of the PWM signal of each phase) may be updated and the phase current may be measured every three PWM cycles (n=3).

[0124] In addition, the above-mentioned flowchart shows an example for explaining the operation, and is not limited to this. That is, the steps shown in each figure of the flowchart are specific examples, and are not limited to this flow. For example, the order of some processes may be changed, other processes may be inserted between each process, and some processes may be performed in parallel. [Explanation of symbols]

[0125] 1 Motor System 4 Motors 20 Control section 21 DC power supply 22a Positive side bus bar 22b Negative bus bar 23 Inverter circuit 24 Current detector 25U+, 25V+, 25W+, 25U-, 25V-, 25W- Switching elements 27 Current detection section 30 Vector control unit 31 Duty ratio calculation section 32 PWM signal generation section 33 Drive circuit 34 Current detection timing adjustment section 35 Current pattern generator 36 Clock Generation Section 37 Carrier Generation Section 39 Duty ratio setting section 100 Motor control device

Claims

1. A control unit that generates a plurality of PWM signals corresponding to each phase of a motor having coils of multiple phases; an inverter circuit that drives the coil of each phase based on the PWM signal; a current detector connected in series to the DC line of the inverter circuit, one control period includes a first PWM period and a second PWM period, the first PWM period includes a first period and a remaining second period; The control unit is a current detection unit that detects a current flowing in the current detector during the second period; a setting unit that sets a pulse width setting value of the PWM signal for each phase based on a result of the current detection; a PWM signal generating unit that generates the PWM signals for each phase in the first PWM cycle and the second PWM cycle based on the pulse width setting values ​​of the PWM signals for each phase that are set by the setting unit, Let p1 be the pulse width setting value of the first-phase PWM signal set by the setting unit, and pe be the excess pulse width that is the portion of the pulse width setting value p1 that does not fall within the first PWM period, The pulse width of the first PWM period of the first phase PWM signal is (p1-pe), The pulse width of the second PWM period of the first-phase PWM signal is (p1+pe), The second PWM cycle is a cycle in which current detection is not performed by the current detection unit. Motor control device.

2. A memory for storing an excess pulse width pe, adding the excess pulse width pe stored in the memory to the second PWM period; The motor control device according to claim 1 .

3. A method for determining whether a pulse width of the first-phase PWM signal falls within the first PWM period, and if the pulse width of the first-phase PWM signal does not fall within the first PWM period, adding an excess pulse width pe stored in the memory to the second PWM period. The motor control device according to claim 2 .

4. A timing for switching the signal level of the first-phase PWM signal is determined, and if the switching timing does not fall within the first period, an excess pulse width pe stored in the memory is added to the second PWM period. The motor control device according to claim 2 .

5. The signal levels of the PWM signals of each phase in the second PWM cycle are switched at the same timing. The motor control device according to any one of claims 1 to 4.

6. A motor control device according to any one of claims 1 to 5, The motor. Motor system.

7. A motor control method executed by a motor control device including: a control unit that generates a plurality of PWM signals corresponding to each phase of a motor having coils of multiple phases; an inverter circuit that drives the coils of each phase based on the PWM signals; and a current detector that is connected in series to a DC line of the inverter circuit, one control period includes a first PWM period and a second PWM period, the first PWM period includes a first period and a remaining second period; Detecting a current flowing in the second period by the current detector; Deriving a pulse width setting value of the PWM signal for each phase based on the detection result of the current; generating the PWM signals for each phase in the first PWM cycle and the second PWM cycle based on the derived pulse width setting values ​​of the PWM signals for each phase; Let p1 be the pulse width setting value of the derived first-phase PWM signal, and pe be the excess pulse width that is the portion of the pulse width setting value p1 that does not fall within the first PWM period, The pulse width of the first PWM period of the first phase PWM signal is (p1-pe), The pulse width of the second PWM period of the first-phase PWM signal is (p1+pe), the second PWM cycle is a cycle in which current detection is not performed by a current detection unit that detects a current flowing in the current detector during the second period; Motor control methods.

8. The excess pulse width pe is stored in a memory; adding the excess pulse width pe stored in the memory to the second PWM period; 8. The motor control method according to claim 7.

9. A method for determining whether a pulse width of the first-phase PWM signal falls within the first PWM period, and if the pulse width of the first-phase PWM signal does not fall within the first PWM period, adding an excess pulse width pe stored in the memory to the second PWM period.

9. The motor control method of claim 8.

10. A timing for switching the signal level of the first-phase PWM signal is determined, and if the switching timing does not fall within the first period, an excess pulse width pe stored in the memory is added to the second PWM period.

9. The motor control method of claim 8.

Citation Information

Patent Citations

  • Motor drive and freezer unit using same

    JP2003189670A

  • Controller of multi-phase electric motor

    JP2009118621A

  • Control method of motor drive unit

    JP2010074902A

  • Electric power conversion device, freezing air conditioner and control method of electric power conversion device

    JP2013055772A

  • Power conversion device

    JP2013162536A