Electric motor control device, electric motor system and electric motor control method
By designing the inverter unit, the current detection unit, the duty cycle setting unit and the PWM signal generation unit in the motor control device, the current distortion and noise problems caused by phase changes of the PWM signal are solved, and the stable operation and low-noise operation of the motor are realized.
Patent Information
- Application Number
- CN202080023078.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-03-25
- Filing Date
- 2020-03-23
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2040-03-23
AI Technical Summary
In the motor control system, the phase change of the PWM signal causes distortion of the current in the DC bus, becoming a waveform superimposed with large noise, affecting the user experience.
A motor control device is designed to generate and adjust the duty cycle of the PWM signal through the coordination of the inverter unit and the current detector to suppress noise. The device includes an inverter unit, a current detecting unit, a duty cycle setting unit, and a PWM signal generation unit. By detecting the current value and adjusting the phase of the PWM signal, the current detection is ensured to be performed accurately during the half-period period of the carrier wave.
It effectively suppresses the generation of noise, improves the operating stability and user experience of the motor, and reduces power loss.
Smart Images

Figure CN113615072B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a motor control device, a motor system and a motor control method. Background Art
[0002] Patent document 1 discloses a technique for detecting the current of each phase U, V, and W for controlling a motor by using a shunt resistor inserted into the DC portion of an inverter circuit. In order to detect all currents of the three phases in this manner, it is necessary to generate a three-phase PWM signal pattern in such a manner that currents of two or more phases can be detected within one cycle of a PWM (Pulse Width Modulation) carrier.
[0003] <Prior Art Literature>
[0004] <Patent Documents>
[0005] Patent Document 1: Japanese Patent Application Publication No. 2015-84632 Summary of the invention
[0006] <Problems to be Solved by the Invention>
[0007] However, in the conventional technology, when the phase of the PWM signal changes, the current flowing through the DC bus is distorted accordingly, and becomes a waveform with a large noise superimposed. There is a problem that the current distortion becomes a cause of noise, and sometimes causes discomfort to the user depending on the application connected to the motor.
[0008] The present invention is made in view of the above, and its object is to provide a motor control device capable of suppressing noise.
[0009] <Methods used to solve the problem>
[0010] The motor control device of the embodiment of the present invention includes: an inverter unit that drives the motor based on a first PWM signal, a second PWM signal, and a third PWM signal; and a current detector that outputs a detection signal corresponding to the current value of the current flowing through the DC side of the inverter unit. The motor control device includes a current detection unit that detects the phase current flowing through each phase of the motor by obtaining the detection signal. The motor control device includes a duty ratio setting unit that sets the duty ratio of the first PWM signal, the second PWM signal, and the third PWM signal based on the detection value of the phase current of each phase. The motor control device includes a PWM signal generation unit that generates the first PWM signal, the second PWM signal, and the third PWM signal by comparing the setting value of the duty ratio with the level of a carrier whose level increases and decreases periodically. The PWM signal generating unit adjusts the arrangement order of the time series of the timing changes of the first PWM signal, the second PWM signal and the third PWM signal after the change of the set value to the same arrangement order as the arrangement order of the time series of the timing changes of the first PWM signal, the second PWM signal and the third PWM signal before the change of the set value when the set value changes, and ensures the first energization time during the half cycle of the carrier during which the current detection unit can detect the energization width of the phase current of one phase and the second energization time during which the current detection unit can detect the energization width of the phase current of one phase.
[0011] <Effects of the Invention>
[0012] The motor control device of the present invention has the effect of being able to suppress noise. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a diagram showing a configuration example of a motor system 1 - 1 according to Embodiment 1 of the present invention.
[0014] Figure 2 It is shown Figure 1 The diagram shows an example of the configuration of the carrier generator 37, the PWM signal generator 32, etc.
[0015] Figure 3 This is a diagram for explaining the principle of generating a triangular wave carrier of each phase.
[0016] Figure 4 The diagram shows waveforms of a plurality of PWM signals U, V, and W, a waveform of a carrier wave C per cycle of these PWM signals, and waveforms of duty ratios Udu, Vdu, and Wdu of each phase.
[0017] Figure 5This is the first diagram for explaining the operation of pulse phase adjustment according to the first embodiment of the present invention.
[0018] Figure 6 This is a second diagram for explaining the operation of pulse phase adjustment according to the first embodiment of the present invention.
[0019] Figure 7 This is the third diagram for explaining the operation of pulse phase adjustment according to the first embodiment of the present invention.
[0020] Figure 8 This is a fourth diagram for explaining the operation of pulse phase adjustment according to the first embodiment of the present invention.
[0021] Fig. 9 1 is a flowchart showing the operation of the motor control device 100 - 1 .
[0022] Fig.10 : is a flowchart showing an example of the first current detection process.
[0023] Fig.11 : is a flowchart showing an example of the second current detection process.
[0024] Fig.12 This is a flowchart for explaining the operation of the pulse phase adjustment process.
[0025] Fig.13 It is a diagram showing a configuration example of a motor system 1 - 2 according to a second embodiment of the present invention.
[0026] Fig.14 2 is a flowchart showing the operation of the motor control device 100 - 2 .
[0027] Fig.15 This is a diagram showing the current detected when the applied voltage is 0 (V). DETAILED DESCRIPTION
[0028] Hereinafter, a motor control device, a motor system, and a motor control method according to embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0029] [Implementation Method 1]
[0030] Figure 1 It is a diagram showing a configuration example of a motor system 1 - 1 according to Embodiment 1 of the present invention. Figure 2 It is shown Figure 1 The diagram shows an example of the configuration of the carrier generator 37, the PWM signal generator 32, etc. Figure 1The motor system 1-1 shown controls the rotation of the motor 4. The device on which the motor system 1-1 is mounted is, for example, a copy machine, a personal computer, a refrigerator, etc., but the device is not limited thereto. The motor system 1-1 includes at least the motor 4 and the motor control device 100-1.
[0031] The motor 4 has a plurality of windings. The motor 4 has, for example, a three-phase winding including a U-phase winding, a V-phase winding, and a W-phase winding. As a specific example of the motor 4, a three-phase brushless motor or the like can be cited.
[0032] The motor control device 100-1 drives the motor through an inverter, which converts direct current into three-phase alternating current by controlling the on / off (ON, OFF) of a plurality of switching elements connected in a three-phase bridge according to an energization pattern of a PWM signal including three phases. The motor control device 100-1 includes an inverter 23, a current detection unit 27, a current detection timing adjustment unit 34, a drive circuit 33, an energization pattern generation unit 35, a carrier generation unit 37, and a clock pulse generation unit 36.
[0033] The inverter 23, which is an inverter unit, is a circuit that converts the DC supplied from the DC power supply 21 into a three-phase AC by switching a plurality of switching elements, and causes the three-phase AC driving current to flow through the motor 4, thereby rotating the rotor of the motor 4. The inverter 23 drives the motor 4 based on a plurality of energization patterns generated by the energization pattern generation unit 35 (more specifically, a three-phase PWM signal generated by the PWM signal generation unit 32 in the energization pattern generation unit 35).
[0034] The inverter 23 has a plurality of switching elements 25U+, 25V+, 25W+, 25U-, 25V-, and 25W- connected in a three-phase bridge. The switching elements 25U+, 25V+, and 25W+ are high-side switching elements (upper bridge arms) connected to the positive side of the DC power supply 21 via the positive bus 22a, respectively. The switching elements 25U-, 25V-, and 25W- are low-side switching elements (lower bridge arms) connected to the negative side (specifically, the ground side) of the DC power supply 21, respectively. The plurality of switching elements 25U+, 25V+, 25W+, 25U-, 25V-, and 25W- are turned on or off according to corresponding drive signals among the plurality of drive signals supplied from the drive circuit 33 based on the PWM signal included in the above-mentioned power-on mode. Hereinafter, when no particular distinction is made, the plurality of switching elements 25U+, 25V+, 25W+, 25U-, 25V-, and 25W- may be referred to simply as switching elements.
[0035] The connection point of the switching element 25U+ and the switching element 25U- is connected to one end of the U-phase winding of the motor 4. The connection point of the switching element 25V+ and the switching element 25V- is connected to one end of the V-phase winding of the motor 4. The connection point of the switching element 25W+ and the switching element 25W- is connected to one end of the W-phase winding of the motor 4. The other ends of the U-phase winding, the V-phase winding, and the W-phase winding are connected to each other.
[0036] Specific examples of the switching element include N-channel MOSFET (Metal Oxide Semiconductor Field Effect Transistor), IGBT (Insulated Gate Bipolar Transistor), etc. However, the switching element is not limited to these.
[0037] The current detector 24 s outputs a detection signal Sd corresponding to the current value of the current flowing through the DC side of the inverter 23 . Figure 1 The current detector 24 shown 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 configured on the negative bus 22b, and more specifically, it is a shunt resistor inserted into the negative bus 22b. The current detection element such as the shunt resistor generates a voltage signal corresponding to the current value of the current flowing through itself as the detection signal Sd. It should be noted that the current detector 24 can be an element that outputs a detection signal corresponding to the current value of the current flowing through the negative bus 22b, and it can be a sensor such as a CT (Current Transformer).
[0038] The current detection unit 27 acquires the detection signal Sd based on the multiple energization patterns (more specifically, the three-phase PWM signals) generated by the energization pattern generation unit 35, thereby detecting the phase currents Iu, Iv, and Iw flowing through the U, V, and W phases of the motor 4. More specifically, the current detection unit 27 acquires the detection signal Sd at an acquisition timing synchronized with the multiple energization patterns (more specifically, the three-phase PWM signals), thereby detecting the phase currents Iu, Iv, and Iw flowing through the U, V, and W phases of the motor 4. The acquisition timing of the detection signal Sd is set by the current detection timing adjustment unit 34.
[0039] For example, the current detection unit 27 introduces the detection signal Sd of the analog voltage generated by the current detector 24 into an AD (Analog to Digital) converter at the acquisition timing set by the current detection timing adjustment unit 34. The AD converter is provided in the current detection unit 27. In addition, the current detection unit 27 detects the phase currents Iu, Iv, and Iw of the U, V, and W phases of the motor 4 by performing AD conversion on the imported analog detection signal Sd to make it a digital detection signal Sd, and digitally processes the digital detection signal Sd after the AD conversion. The detection values of the phase currents Iu, Iv, and Iw of each phase detected by the current detection unit 27 are supplied to the power-on pattern generation unit 35. The clock pulse generation unit 36 generates a clock pulse of a predetermined frequency through a built-in oscillation circuit, and outputs the generated clock pulse to the carrier generation unit 37. It should be noted that the clock pulse generation unit 36 starts to operate at the same time as the power supply of the motor control device 100-1 is turned on.
[0040] The energizing pattern generation unit 35 includes a duty ratio setting unit 31 and a PWM signal generation unit 32. The energizing pattern generation unit 35 generates a pattern for energizing the inverter 23 (energizing pattern of the inverter 23) based on the detection values of the phase currents Iu, Iv, and Iw of the motor 4 detected by the current detection unit 27. The energizing pattern of the inverter 23 can be said to be a pattern for energizing the motor 4 (energizing pattern of the motor 4). The energizing pattern of the inverter 23 includes, for example, a three-phase PWM signal for energizing the inverter 23 in a manner that the motor 4 rotates.
[0041] In addition, when the energization pattern generation unit 35 generates the energization pattern of the inverter 23 by vector control, it has a vector control unit 30 in addition to the duty ratio setting unit 31 and the PWM signal generation unit 32. It should be noted that although the energization pattern of the inverter is generated by vector control in this embodiment, it is not limited to this, and the phase voltage of each phase can also be obtained by VF control or the like.
[0042] After the 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 based on the phase currents Iu, Iv, and Iw of the U, V, and W phases of the motor 4 by vector control calculation using the rotor position θ. The vector control unit 30 generates a voltage command Vq by, for example, performing a PI control calculation on the difference between the torque current command Iqref and the torque current Iq. The vector control unit 30 generates a voltage command Vd by, for example, performing a PI control calculation on the difference between the excitation current command Idref and the excitation current Id. The vector control unit 30 converts the voltage commands Vq and Vd into phase voltage commands Vu*, Vv*, and Vw* of the U, V, and W phases using the above-mentioned rotor position θ. The phase voltage commands Vu*, Vv*, and Vw* of the respective phases are supplied to the duty ratio setting unit 31 .
[0043] The duty ratio setting unit 31 sets the duty ratios Udu, Vdu, and Wdu for generating three-phase PWM signals (set values of the duty ratios of the phases) based on the input phase voltage commands Vu*, Vv*, and Vw* of the phases.
[0044] A specific example of the method for setting the duty ratio Udu, Vdu, and Wdu of each phase is described. As shown in the following formulas (1) to (3), the duty ratio Udu, Vdu, and Wdu of each phase are set based on the modulation rates modU, modV, and modW. The duty ratios Udu, Vdu, and Wdu of each phase obtained based on the following formulas (1) to (3) are, for example, sinusoidal waveforms with phases that differ by 120 degrees. It should be noted that examples of the waveforms of the duty ratios Udu, Vdu, and Wud of each phase will be described later.
[0045] Udu = modU × (carrier upper limit value) (1)
[0046] Vdu=modV×(carrier upper limit value)···(2)
[0047] Wdu=modW×(carrier upper limit value)···(3)
[0048] The PWM signal generating unit 32 generates a power-on pattern including a 3-phase PWM signal by comparing the duty ratios Udu, Vdu, and Wdu of each phase set by the duty ratio setting unit 31 with the level of the carrier C. The carrier C is a carrier signal whose level increases and decreases periodically. The PWM signal generating unit 32 compares each set value of the duty ratio of each phase with the level of the carrier C. Based on the comparison result, the PWM signal generating unit 32 sets the level of the PWM signal to a high level during a period when the set value of the duty ratio of the PWM signal is greater than the level of the carrier C. On the other hand, based on the comparison result, the PWM signal generating unit 32 sets the level of the PWM signal to a low level during a period when the set value of the duty ratio of the PWM signal is less than the level of the carrier C. The PWM signal generating unit 32 also generates a PWM signal for driving the lower bridge arm by inverting the 3-phase PWM signal for driving the upper bridge arm, and outputs the generated power-on pattern including the PWM signal to the driving circuit 33 after adding a dead time as needed.
[0049] The drive circuit 33 outputs a drive signal for switching the six switching elements 25U+, 25V+, 25W+, 25U-, 25V-, and 25W- included in the inverter 23 according to the power-on pattern including the PWM signal given. As a result, a three-phase AC drive current is supplied to the motor 4, and the rotor of the motor 4 rotates.
[0050] The current detection timing adjustment unit 34 determines the acquisition timing for the current detection unit 27 to detect the phase currents of two phases (two phases) among the phase currents of three phases (three phases) within one cycle of the carrier C based on the carrier C supplied from the PWM signal generation unit 32 and the PWM signal generated by the PWM signal generation unit 32.
[0051] It should be noted that the functions of the current detection unit 27, the energization pattern generation unit 35, and the current detection timing adjustment unit 34 are implemented by the CPU (Central Processing Unit) operating a program stored in a storage device (not shown) in a readable manner. For example, these functions are implemented by the cooperation of hardware and software in a microcomputer including a CPU.
[0052] Next, use Figure 2 The carrier generation unit 37 and the PWM signal generation unit 32 will be described in detail.
[0053] The carrier generation unit 37 includes an up-down counter 12 , a comparator 13 , a comparator 14 , and a flip-flop 15 .
[0054] since Figure 1 The clock pulse, count start signal, and count initial value signal outputted from the clock pulse generating section 36 are inputted into the up-down counter 12 .
[0055] After receiving the count start signal, the up-down counter 12 starts counting the clock pulses, and outputs a triangular wave carrier, namely, carrier C, through cumulative addition operation (adding 1 for each input clock pulse) or cumulative subtraction operation (subtracting 1 for each input clock pulse) of the count value.
[0056] In addition, an initial value of the count is set in the up-down counter 12, and the initial value is set by the above-mentioned count initial value signal.
[0057] The comparator 13 compares the count value of the up-down counter 12 with a predetermined upper limit value, detects that the count value reaches the upper limit value, and outputs a detection signal INT1.
[0058] The comparator 14 compares the count value of the up-down counter 12 with a predetermined lower limit value, detects that the count value reaches the lower limit value, and outputs a detection signal INT2.
[0059] The flip-flop 15 outputs a low-level “L” signal to the up-down counter 12 through the output from the comparator 13 , and outputs a high-level “H” signal to the up-down counter 12 through the output from the comparator 14 .
[0060] The up-down counter 12 performs cumulative addition operation on the count value of the clock pulse after the "H" signal is input from the trigger 15, and performs cumulative subtraction operation on the count value of the clock pulse after the "L" signal is input. Therefore, the "H" signal from the trigger 15 is an addition operation instruction for cumulative addition operation, and the "L" signal is a subtraction operation instruction for cumulative subtraction operation.
[0061] An initial command value signal is given to the flip-flop 15. Whether the initial state of the flip-flop 15 is "H" or "L" is set by the initial command value signal.
[0062] The detection output of the comparator 13, that is, the signal detecting that the count value has reached the upper limit value, is given to the flip-flop 15 as described above, and is output as the detection signal INT1.
[0063] Furthermore, the detection output of the comparator 14 of each phase, that is, the signal detecting that the count value has reached the lower limit value, is given to the flip-flop 15 as described above, and is output as the detection signal INT2.
[0064] The PWM signal generating unit 32 includes three comparators 16 , 17 , and 18 , a PWM circuit 108 , and an interrupt controller 109 .
[0065] The comparator 16 compares the duty cycle Udu of the U phase with the carrier C, and outputs the comparison result as a pulse. Specifically, the comparator 16 compares the value of the duty cycle Udu with the amplitude of the carrier C, and outputs an "H" signal in a range where the amplitude of the carrier C is greater than the duty cycle Udu, and outputs an "L" signal in a range where the amplitude of the carrier C is less than the duty cycle Udu.
[0066] The comparator 17 compares the duty cycle Vdu of the V phase with the carrier C, and outputs the comparison result as a pulse. Specifically, the comparator 17 compares the value of the duty cycle Vdu with the amplitude of the carrier C, and outputs an "H" signal in a section where the amplitude of the carrier C is greater than the duty cycle Vdu, and outputs an "L" signal in a section where the amplitude of the carrier C is less than the duty cycle Vdu.
[0067] The comparator 18 compares the duty cycle Wdu of the W phase with the carrier C, and outputs the comparison result as a pulse. Specifically, the comparator 18 compares the value of the duty cycle Wdu with the amplitude of the carrier C, and outputs an "H" signal in a section where the amplitude of the carrier C is greater than the duty cycle Wdu, and outputs an "L" signal in a section where the amplitude of the carrier C is less than the duty cycle Wdu.
[0068] The PWM circuit 108 outputs six PWM signals having on-off intervals corresponding to the changes in the voltage commands of each phase based on the outputs from the comparators 16, 17, and 18. The six PWM signals include a PWM signal for driving the switch element of the upper bridge arm of the U phase, a PWM signal for driving the switch element of the lower bridge arm of the U phase, a PWM signal for driving the switch element of the upper bridge arm of the V phase, a PWM signal for driving the switch element of the lower bridge arm of the V phase, a PWM signal for driving the switch element of the upper bridge arm of the W phase, and a PWM signal for driving the switch element of the lower bridge arm of the W phase. The six PWM signals are given to the gates of the switch elements of the inverter 23. Under the action of the six PWM signals, the on-off actions of the switch elements are performed. As a result, the voltages of the U phase, the V phase, and the W phase are output from the inverter 23 and applied to the motor 4. It should be noted that, as for the specific power supply method, although the triangle wave comparison method is used in Implementation 1, it is not limited to the triangle wave comparison method, and other methods such as the space vector method can be used to output the voltage of each phase.
[0069] In addition, the PWM circuit 108 generates an interrupt signal at the timing of the rise of the PWM signal, for example, and inputs it to the interrupt controller 109. The interrupt controller 109 receives the interrupt signal from the PWM circuit 108 and gives an A / D conversion instruction to the current detection unit 27. As a result, the current detection unit 27 performs A / D conversion of the detection signal Sd at the timing of the interrupt signal generation.
[0070] Next, use Figure 2 as well as Figure 3 , the principle of generating a triangular wave carrier of each phase is explained. Figure 3 This is a diagram for explaining the principle of generating a triangular wave carrier of each phase. Figure 3 The waveform of carrier C is shown in FIG.
[0071] exist Figure 2 In the embodiment, after the count start signal is input to the up-down counter 12, the up-down counter 12 starts counting the clock pulses from the clock pulse generating unit 36. As described above, an initial value is set in the up-down counter 12, and the initial value is set to 0, for example. Therefore, the up-down counter 12 starts counting from 0. In addition, the output of the trigger 15 that instructs the up-down counter 12 to perform cumulative addition and cumulative subtraction operations is set to "H" in the initial state. The initial state is the output state of the trigger 15 at the moment when the initial instruction value signal is given. Therefore, if the up-down counter 12 starts counting, the cumulative addition operation of the count value is performed. As a result of the above, if Figure 3 As shown, the output of the up-down counter 12 increases with time from the lower limit value (initial value), that is, 0, toward the upper limit value T as indicated by arrow a1.
[0072] And, if the count value reaches the upper limit value T, the comparator 13 detects it and gives the detection signal INT1 to the trigger 15. The trigger 15 is inverted based on the signal, thereby outputting "L". Therefore, the operation of the up-down counter 12 is changed from cumulative addition operation to cumulative subtraction operation, such as Figure 3 As shown, the output decreases with time from the upper limit value T toward the lower limit value 0 as shown by arrow b1.
[0073] And, if the count value reaches the lower limit value 0, the comparator 14 detects it and gives the detection signal INT2 to the trigger 15. The trigger 15 is inverted based on the signal, and outputs "H". Therefore, the action of the up-down counter 12 is changed to cumulative addition operation again, and its output increases from the lower limit value 0 to the upper limit value T as shown by the arrow c1.
[0074] By repeating such cumulative addition and cumulative subtraction operations, the output of the self-up / down counter 12 is Figure 3 The carrier C of the triangle wave shown.
[0075] It should be noted that, in Embodiment 1, although the carrier C is generated from the valley (lower limit), the carrier C may also be generated from the mountain (upper limit). In this case, the initial value of the carrier C is T (upper limit), and the initial command value is "L", which is phase-shifted by 1 / 2 cycle compared to the carrier generated from the valley.
[0076] It should be noted that, in the first embodiment, the carrier wave C is output as a triangular wave, but it may be output as a sawtooth wave or the like using an output comparator.
[0077] Figure 4 The diagram shows waveforms of a plurality of PWM signals U, V, and W, a waveform of a carrier C per cycle of these PWM signals, and waveforms of duty ratios Udu, Vdu, and Wdu of each phase.
[0078] like Figure 4 As shown, a plurality of PWM signals U to W are generated in such a manner that the high level and the low level are inverted at the timing consistent with the carrier C at the duty ratios Udu, Vdu, and Wdu of each phase.
[0079] The PWM signal U is a PWM signal for driving the two switching elements of the upper and lower bridge arms constituting the U phase. Figure 4 In the figure, the PWM signal U is expressed as "U-phase PWM signal (U)". When the PWM signal U is at a low level, the switch element of the lower bridge arm of the U phase is turned on (the switch element of the upper bridge arm of the U phase is turned off), and when the PWM signal U is at a high level, the switch element of the lower bridge arm of the U phase is turned off (the switch element of the upper bridge arm of the U phase is turned on). In response to the change in the level of the PWM signal U, the two switch elements constituting the upper and lower bridge arms of the U phase are turned on and off complementarily.
[0080] The PWM signal V is a PWM signal for driving the two switching elements of the upper and lower bridge arms constituting the V phase. Figure 4 In the figure, the PWM signal V is expressed as "V-phase PWM signal (V)". When the PWM signal V is at a low level, the switch element of the lower bridge arm of the V phase is turned on (the switch element of the upper bridge arm of the V phase is turned off), and when the PWM signal V is at a high level, the switch element of the lower bridge arm of the V phase is turned off (the switch element of the upper bridge arm of the V phase is turned on). In response to the change in the level of the PWM signal V, the two switch elements constituting the upper and lower bridge arms of the V phase are turned on and off complementarily.
[0081] The PWM signal W is a PWM signal for driving the two switching elements of the upper and lower bridge arms constituting the W phase. Figure 4 In the figure, the PWM signal W is expressed as "W-phase PWM signal (W)". When the PWM signal W is at a low level, the switch element of the lower bridge arm of the W phase is turned on (the switch element of the upper bridge arm of the W phase is turned off), and when the PWM signal W is at a high level, the switch element of the lower bridge arm of the W phase is turned off (the switch element of the upper bridge arm of the W phase is turned on). With respect to the change in the level of the PWM signal W, the two switch elements constituting the upper and lower bridge arms of the W phase are turned on and off complementarily.
[0082] It should be noted that the timing of the multiple PWM signals U~W changing from low level to high level is slightly later than the timing when the duty ratios Udu, Vdu, and Wdu of each phase are consistent with the carrier C. This is because a dead time is required to prevent short circuits between the upper and lower bridge arms. Figure 4 In the description, the dead time is omitted for convenience of explanation. Hereinafter, when the plurality of PWM signals U to W are not distinguished from each other, they are sometimes referred to as "PWM signals".
[0083] like Figure 4 As shown, in one cycle Tpwm of each of the plurality of PWM signals U to W, the change points (t1 to t6) of each of the plurality of PWM signals U to W are defined as follows.
[0084] The change point t1 is the timing when the lower bridge arm of the W phase changes from being connected to being disconnected (the timing when the upper bridge arm of the W phase changes from being disconnected to being connected). The change point t2 is the timing when the lower bridge arm of the V phase changes from being connected to being disconnected (the timing when the upper bridge arm of the V phase changes from being disconnected to being connected). The change point t3 is the timing when the lower bridge arm of the U phase changes from being connected to being disconnected (the timing when the upper bridge arm of the U phase changes from being disconnected to being connected). The change point t4 is the timing when the lower bridge arm of the U phase changes from being disconnected to being connected (the timing when the upper bridge arm of the U phase changes from being connected to being disconnected). The change point t5 is the timing when the lower bridge arm of the V phase changes from being disconnected to being connected (the timing when the upper bridge arm of the V phase changes from being connected to being disconnected). The change point t6 is the timing when the lower bridge arm of the W phase changes from being disconnected to being connected (the timing when the upper bridge arm of the W phase changes from being connected to being disconnected).
[0085] In the present embodiment, the period from t4 to t5 is defined as the first current detection timing Tm1 and the period from t5 to t6 is defined as the second current detection timing Tm2, but the periods of the first current detection timing Tm1 and the second current detection timing Tm2 are not limited thereto.
[0086] When the inverter 23 is outputting PWM modulated three-phase AC, the current detection unit 27 can detect the current of a specific phase according to the power-on pattern of the switch elements 25U+, 25V+, and 25W+ on the upper bridge arm side. Alternatively, when the inverter 23 is outputting PWM modulated three-phase AC, the current detection unit 27 can detect the current of a specific phase according to the power-on pattern of the switch elements 25U-, 25V-, and 25W on the lower bridge arm side.
[0087] For example Figure 4As shown, during the power-on time T21, the voltage value of the voltage generated at both ends of the current detector 24 corresponds to the current value of the positive phase current Iu+. The power-on time T21 is the time from t4 to t5. The power-on time T21 corresponds to the period of the state in which the switch element of the lower bridge arm of the U phase is turned on, the switch element of the lower bridge arm of the V phase is turned off, and the switch element of the lower bridge arm of the W phase is turned off. Therefore, the current detection unit 27 can detect the current value of the positive phase current Iu+ by obtaining the detection signal Sd at the first current detection timing Tm1 during the power-on time T21.
[0088] The current detection timing adjustment unit 34 sets the first current detection timing Tm1 when a predetermined delay time td has elapsed since one phase of the PWM signal transitions to a logic level different from the other two phases (for example, the timing when the PWM signal of the U phase transitions from a high level that is the same as the V phase and the W phase to a low level that is different from the V phase and the W phase: t4). At this time, the current detection timing adjustment unit 34 sets the first current detection timing Tm1 within the energization time T21.
[0089] The delay time td is expressed by the following equation (4): Tdead is the dead time. Tring is the time required for the damped oscillation generated when the PWM signal changes to converge (damped oscillation convergence time).
[0090] td=Tdead+Tring…(4)
[0091] In addition, for example Figure 4 As shown, during the power-on time T22, the voltage value of the voltage generated at both ends of the current detector 24 corresponds to the current value of the negative phase current Iw-. The power-on time T22 is the time from t5 to t6. The power-on time T22 corresponds to the period when the switch element of the lower bridge arm of the U phase is turned on, the switch element of the lower bridge arm of the V phase is turned on, and the switch element of the lower bridge arm of the W phase is turned off. Therefore, the current detection unit 27 can detect the current value of the negative phase current Iw- by acquiring the detection signal Sd at the first current detection timing Tm1 within the power-on time T21.
[0092] The current detection timing adjustment unit 34 sets the second current detection timing Tm2 when a predetermined delay time td has elapsed since one phase of the PWM signal transitions to a logic level different from the other two phases (for example, the timing at which the PWM signal of the V phase transitions from a high level that is the same as the W phase to a low level that is the same as the U phase, so that the W phase is at a logic level different from the U phase and the V phase: t5). At this time, the current detection timing adjustment unit 34 sets the second current detection timing Tm2 within the energization time T22.
[0093] Similarly, the current detection unit 27 can also detect the current values of other phase currents.
[0094] In this way, if the phase currents of two phases among the phase currents Iu, Iv, and Iw are detected and stored in sequence according to the energization pattern of the PWM signal including the three phases, the currents of the three phases can be detected in time division. Since the sum of the phase currents of the three phases is zero, the current detection unit 27 can detect the phase current of the remaining one phase as long as it can detect the phase currents of two phases among the three phases in the case of three-phase modulation.
[0095] Here, when the magnitude relationship of the duty ratios Udu, Vdu, and Wdu changes, the on-duty ratios of the first PWM signal, the second PWM signal, and the third PWM signal change. A specific example of the case where the magnitude relationship of the duty ratios Udu, Vdu, and Wdu changes will be described later. The first PWM signal is, for example, a PWM signal for driving the lower bridge arm switching element of the U phase. The second PWM signal is, for example, a PWM signal for driving the lower bridge arm switching element of the V phase. The third PWM signal is, for example, a PWM signal for driving the lower bridge arm switching element of the W phase.
[0096] The motor control device 100-1 of the first embodiment is characterized in that, even when the magnitude relationship of the duty ratios Udu, Vdu, and Wdu changes, the pulse phase is adjusted in such a way that the arrangement order of the time series of the timings of the respective changes of the first PWM signal, the second PWM signal, and the third PWM signal does not change. The "timings of the respective changes of the first PWM signal, the second PWM signal, and the third PWM signal" is, for example, Figure 4 The timing of the level change of the U-phase PWM signal (for example, the change point t4), Figure 4 The timing of the level change of the V-phase PWM signal (for example, the change point t5), Figure 4 The timing of the level change of the W-phase PWM signal shown in FIG. 1 (e.g., the change point t6), etc. The pulse phase adjustment is to shift the phases of the first PWM signal, the second PWM signal, and the third PWM signal. Specifically, the pulse phase adjustment is to shift the phases of the first PWM signal, the second PWM signal, and the third PWM signal. Figure 4 The timing of the level change of the U-phase PWM signal (for example, the change point t4), Figure 4 The timing of the level change of the V-phase PWM signal (for example, the change point t5), and Figure 4 The timing of the level change of the W-phase PWM signal (for example, the change point t6) is shifted. Figure 5 to Figure 7 An operation example of pulse phase adjustment will be described.
[0097] Figure 5 This is the first diagram for explaining the operation of pulse phase adjustment according to the first embodiment of the present invention. Figure 6 This is a second diagram for explaining the operation of pulse phase adjustment according to the first embodiment of the present invention. Figure 7This is the third diagram for explaining the operation of pulse phase adjustment according to the first embodiment of the present invention. Figure 8 This is a fourth diagram for explaining the operation of pulse phase adjustment according to the first embodiment of the present invention.
[0098] Figure 5 The duty cycle Udu is shown as a higher value than the duty cycle Vdu. Figure 6 The duty cycle Udu shown is a value lower than the duty cycle Vdu. In this way, when the magnitude relationship between the duty cycle Udu and the duty cycle Vdu changes, it can be known that Figure 6 The timing of the change of the U-phase PWM signal and the V-phase PWM signal is shown in FIG. Figure 5 The timing of the change of the U-phase PWM signal and the V-phase PWM signal is different. Figure 5 In the example, at the change point t4, the PWM signal of the U phase changes, and at the change point t5, the PWM signal of the V phase changes. Figure 6 In the figure, at the changing point t4, the PWM signal of the V phase changes, and at the changing point t5, the PWM signal of the U phase changes.
[0099] Even in this case, since the energization time T21 and the energization time T22 are ensured, the current detection timing adjustment unit 34 sets the first current detection timing Tm1 in the energization time T21 and sets the second current detection timing Tm2 in the energization time T22. Therefore, even when the magnitude relationship between the duty ratio Udu and the duty ratio Vdu changes, current detection is possible.
[0100] However, if Figure 7 As shown in FIG. 1 , the detected current is distorted as the power-on mode changes. This is because the timing of the changes in the multiple PWM signals and the time series arrangement order change. Specifically, Figure 5 In the example, the order of level changes of multiple PWM signals is U, V, W. In contrast, in Figure 6 In the embodiment, since the magnitude relationship of the duty ratios Udu and Vdu is reversed, the order of level changes of the multiple PWM signals is V, U, and W.
[0101] If the timing (phase) of the change of the multiple PWM signals changes, the current flowing through the DC bus (positive bus 22a, negative bus 22b) is distorted accordingly, and becomes a waveform with a large noise superimposed. The distortion of the current becomes the cause of noise, and sometimes gives the user a sense of discomfort depending on the device connected to the motor 4.
[0102] In order to suppress the occurrence of such current distortion, the motor control device 100-1 of this embodiment performs pulse phase adjustment so that even when the magnitude relationship between the duty ratios Udu and Vdu changes, the timing and time series arrangement order of the respective changes of multiple PWM signals are fixed to one arrangement order.
[0103] exist Figure 8 In FIG. 1 , the pulse phase adjustment is performed for multiple PWM signals. Figure 8 In the example, the timing (phase) of the change of the U-phase PWM signal is shifted to the advance side. In addition, the timing (phase) of the change of the V-phase PWM signal is shifted to the delay side. Moreover, the time width from the phase of the shifted U-phase PWM signal to the phase of the V-phase PWM signal is set to a width that can obtain the detection signal Sd at the first current detection timing Tm1.
[0104] Next, the operation of the motor control device 100 - 1 will be described. Fig. 9 is a flowchart showing the operation of the motor control device 100-1. In this embodiment, at each timing of the phase ta at the bottom of the carrier C, a Fig. 9 PWM counter interrupt processing is shown.
[0105] In step S10, the PWM signal generating unit 32 performs a pulse phase adjustment process. The pulse phase adjustment process will be described in detail later.
[0106] In step S11, the current detection unit 27 detects the phase currents Iu, Iv, and Iw of the U, V, and W phases. The current detection unit 27 obtains the current detection interrupt processing of the detection signal Sd (for example, the interrupt processing of performing AD conversion on the detection signal Sd) and Fig. 9 The treatments shown are separated (see Fig.10 , 11 ), is executed twice within one cycle Tpwm of carrier C.
[0107] Fig.10 1 is a flowchart showing an example of the first current detection process. If the count value of the carrier counter matches the value corresponding to the time when the delay time td has passed since t4, the current detection timing adjustment unit 34 sets (asserts) the setting register of the first current detection timing Tm1. If the setting register of the first current detection timing Tm1 is set, the current detection unit 27 obtains the detection signal Sd through the AD converter (step S41), and stores the obtained value of the detection signal Sd in the first acquisition register.
[0108] Fig.111 is a flowchart showing an example of the second current detection process. If the count value of the carrier counter matches the value corresponding to the time when the delay time td has passed since t5, the current detection timing adjustment unit 34 sets the setting register of the second current detection timing Tm2. If the setting register of the second current detection timing Tm2 is set, the current detection unit 27 obtains the detection signal Sd through the AD converter (step S51), and stores the obtained value of the detection signal Sd in the second acquisition register.
[0109] The current detection unit 27 detects the three-phase currents Iu, Iv, and Iw based on the set values of the detection signal Sd stored in the first acquisition register and the second acquisition register.
[0110] 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 (step S13), and calculates the phase voltage commands Vu*, Vv*, and Vw* (control amounts) of each phase (step S14).
[0111] In step S15, the duty ratio setting unit 31 sets the duty ratio of each phase based on the phase voltage commands Vu*, Vv*, and Vw* of each phase calculated in step S14. In step S16, the PWM signal generating unit 32 determines which of the plurality of energizing modes is used to control the energization of the inverter 23 based on the duty ratio of each phase set by the duty ratio setting unit 31.
[0112] Next, the operation of the pulse phase adjustment process will be described. Fig.12 2 is a flowchart for explaining the operation of the pulse phase adjustment process. It is assumed that the following plurality of pulse conditions are given to the PWM signal generation unit 32 .
[0113] The pulse phase conditions shown below are conditions for detecting the change timing of the pulse related to the detection in the order of UVW. When the pulse change timing related to the detection is detected in the order of VUW, for example, in this order, the phase is replaced without changing. In other cases, the phase is replaced by shifting.
[0114] The first pulse phase condition is when the carrier counter is counting down, and the configuration of each PWM signal U, V, W has the relationship of U→V→W in sequence from the leading side of the phase.
[0115] The second pulse phase condition is when the carrier counter is counting down, and the configuration of each PWM signal U, V, W has the relationship of U→W→V in sequence from the leading side of the phase.
[0116] The third pulse phase condition is when the carrier counter is counting down, and the configuration of each PWM signal U, V, and W has a relationship of V→U→W in sequence from the leading side of the phase.
[0117] The fourth pulse phase condition is when the carrier counter is counting down, and the configuration of each PWM signal U, V, and W has a relationship of V→W→U in sequence from the leading side of the phase.
[0118] The fifth pulse phase condition is when the carrier counter is counting down, and the configuration of each PWM signal U, V, and W has the relationship of W→U→V in sequence from the leading side of the phase.
[0119] The sixth pulse phase condition is when the carrier counter is counting down, and the configuration of each PWM signal U, V, and W has a relationship of W→V→U in sequence from the leading side of the phase.
[0120] In step S100 , the PWM signal generating unit 32 determines whether or not the first pulse phase condition is satisfied.
[0121] When the first pulse phase condition is satisfied (step S100, Yes), the timing of the change of the U-phase PWM signal, the V-phase PWM signal, and the W-phase PWM signal when the carrier counter counts down is in the order of U, V, and W. Therefore, the PWM signal generating unit 32 does not change the phases of the U-phase PWM signal, the V-phase PWM signal, and the W-phase PWM signal (step S110), and performs the process of ensuring the current detection interval (power-on time T21, T22) in step S111, and then performs Fig. 9 The process of step S11.
[0122] When the first pulse phase condition is not satisfied (step S100, No), the process of step S101 is executed. In step S101, the PWM signal generating unit 32 determines whether the second pulse phase condition is satisfied.
[0123] When the second pulse phase condition is satisfied (step S101, Yes), the timing of the change of the U-phase PWM signal, the V-phase PWM signal, and the W-phase PWM signal when the carrier counter counts down is in the order of U, W, and V. Therefore, the PWM signal generating unit 32 changes the phases of the W-phase PWM signal and the V-phase PWM signal (step S120), and performs the process of ensuring the current detection interval (power-on time T21, T22) in step S121, and then performs Fig. 9 In step S120, for example, the timing (phase) of the change of the PWM signal of the W phase is shifted to the delay side. In addition, the timing (phase) of the change of the PWM signal of the V phase is shifted to the advance side.
[0124] When the second pulse phase condition is not satisfied (step S101, No), the process of step S102 is executed. In step S102, the PWM signal generating unit 32 determines whether the third pulse phase condition is satisfied.
[0125] When the third pulse phase condition is satisfied (step S102, Yes), the timing of the change of the U-phase PWM signal, the V-phase PWM signal, and the W-phase PWM signal when the carrier counter counts down is in the order of V, U, and W. Therefore, the PWM signal generating unit 32 changes the phase of the V-phase PWM signal and the U-phase PWM signal (step S130), and performs the process of ensuring the current detection interval (power-on time T21, T22) in step S131, and then performs Fig. 9 In step S130, for example, the timing (phase) of the change of the PWM signal of the V phase is shifted to the delay side. In addition, the timing (phase) of the change of the PWM signal of the U phase is shifted to the advance side.
[0126] When the third pulse phase condition is not satisfied (step S102, No), the process of step S103 is executed. In step S103, the PWM signal generating unit 32 determines whether the fourth pulse phase condition is satisfied.
[0127] When the fourth pulse phase condition is satisfied (step S103, Yes), the timing of the change of the U-phase PWM signal, the V-phase PWM signal, and the W-phase PWM signal when the carrier counter counts down is the order of the V-phase PWM signal, the W-phase PWM signal, and the U-phase PWM signal. Therefore, the PWM signal generating unit 32 changes the phases of the V-phase PWM signal, the W-phase PWM signal, and the U-phase PWM signal (step S140), and performs the process of ensuring the current detection interval (power-on time T21, T22) in step S141, and then performs Fig. 9 In step S140, for example, the timing (phase) of the PWM signal change of the V phase is shifted to the delay side. In addition, the timing (phase) of the PWM signal change of the W phase is shifted to the delay side. In addition, the timing (phase) of the PWM signal change of the U phase is shifted to the advance side.
[0128] When the fourth pulse phase condition is not satisfied (step S103, No), the process of step S104 is executed. In step S104, the PWM signal generating unit 32 determines whether the fifth pulse phase condition is satisfied.
[0129] When the fifth pulse phase condition is satisfied (step S104, Yes), the timing of the change of the U-phase PWM signal, the V-phase PWM signal, and the W-phase PWM signal when the carrier counter counts down is in the order of W, U, and V. Therefore, the PWM signal generating unit 32 changes the phase of each PWM signal (step S150), performs the process of ensuring the current detection interval (power-on time T21, T22) in step S151, and then performs Fig. 9 In step S150, for example, the timing (phase) of the PWM signal change of the W phase is shifted to the delay side. In addition, the timing (phase) of the PWM signal change of the U phase is shifted to the advance side. In addition, the timing (phase) of the PWM signal change of the V phase is shifted to the advance side.
[0130] If the fifth pulse phase condition is not satisfied (step S104, No), the process of step S160 is executed. The remaining pulse phase condition is the sixth pulse phase condition, or two or more phases in each phase have the same pulse change timing, and the timing of the respective changes of the U-phase PWM signal, the V-phase PWM signal, and the W-phase PWM signal when the carrier counter counts down is in the order of W, V, and U. Therefore, the PWM signal generating unit 32 changes the phase of each PWM signal (step S160), and the process of ensuring the current detection interval (power-on time T21, T22) is performed in step S161, and then, the current detection interval (power-on time T21, T22) is performed. Fig. 9 In step S160, for example, the timing (phase) of the PWM signal change of the W phase is shifted to the delay side. In addition, the timing (phase) of the PWM signal change of the V phase is shifted to the delay side. In addition, the timing (phase) of the PWM signal change of the U phase is shifted to the advance side, etc., so that the detection sequence becomes the order of U, V, W.
[0131] It should be noted that the PWM signal generating unit 32 of the present embodiment uses a common carrier C in each phase to generate the PWM signal of each phase. That is, the present embodiment is not a method of generating carriers C corresponding to each phase. Moreover, in the present embodiment, since a left-right symmetrical triangle wave centered on phase tb is set as carrier C, the circuit configuration for generating the waveform of the PWM signal of each phase can be simplified. For the carrier counter, the count is decreased until phase ta, the count is increased from phase ta to phase tb, and the count is decreased from phase tb. In this way, the count increase period and the count decrease period are repeated.
[0132] It should be noted that, in this embodiment, the case where the first PWM signal is a U-phase PWM signal, the second PWM signal is a V-phase PWM signal, and the third PWM signal is a W-phase PWM signal is described, but the types of the first PWM signal, the second PWM signal, and the third PWM signal are not limited to this.
[0133] As described above, the motor control device 100-1 of embodiment 1 includes: an inverter that drives the motor based on the first PWM signal, the second PWM signal and the third PWM signal; a current detector that outputs a detection signal corresponding to the current value of the current flowing through the DC side of the inverter; a current detection unit that detects the phase current flowing through each phase of the motor by obtaining the detection signal; a duty ratio setting unit that sets the duty ratio of the first PWM signal, the second PWM signal and the third PWM signal based on the detection value of the phase current of each phase; and a PWM signal generating unit that generates the duty ratio by setting the setting value of the duty ratio. The first PWM signal, the second PWM signal and the third PWM signal are generated by comparing with the level of the carrier wave whose level increases and decreases periodically. The PWM signal generating unit is constructed as follows: when the setting value changes, the arrangement order of the time series of the timing changes of the first PWM signal, the second PWM signal and the third PWM signal after the setting value changes is adjusted to the same arrangement order as the arrangement order of the time series of the timing changes of the first PWM signal, the second PWM signal and the third PWM signal before the setting value changes, and the first power-on time and the second power-on time within the half cycle of the carrier wave are ensured.
[0134] With this configuration, the timing of the phase of the PWM signal does not change, and the current flowing through the DC bus (positive bus 22a, negative bus 22b) does not distort. Therefore, the noise that causes the noise is not superimposed on the current, and the generation of noise can be suppressed. In addition, since the current does not distort, higher harmonics can be suppressed, the power factor can be kept high, and the power loss when the motor 4 is driven can be reduced.
[0135] [Implementation Method 2]
[0136] Fig.13 1 is a diagram showing a configuration example of a motor system 1-2 according to Embodiment 2 of the present invention. The difference from Embodiment 1 is that the motor system 1-2 includes a motor control device 100-2 instead of the motor control device 100-1, and the motor control device 100-2 includes a current detection unit 27A instead of the current detection unit 27.
[0137] Fig.15 is a graph showing the current detected when the applied voltage V=0. Fig.15As shown in FIG. 1 , when the on-duty ratio of each of the three PWM signals is set to 50% (applied voltage V=0), the current detection unit 27A Fig.15 As shown in FIG. 1 , current detection is performed twice at different timings, and the detected current value (detection value) is saved. Fig.15 In the embodiment, the first current detection is performed when the PWM signal of the U-phase lower bridge arm is turned on, the PWM signal of the V-phase lower bridge arm is turned off, and the PWM signal of the W-phase lower bridge arm is turned off. In addition, the second current detection is performed when the PWM signal of the U-phase lower bridge arm is turned on, the PWM signal of the V-phase lower bridge arm is turned on, and the PWM signal of the W-phase lower bridge arm is turned off. Furthermore, the current detection unit 27A is configured to perform current detection twice during operation, subtract the detection value stored in advance from the value of the detected current (to offset the current), and use the current value obtained as a result for control.
[0138] The current detection unit 27A outputs as detection values a first current value obtained by subtracting a second current flowing when only the first PWM signal (for example, UH) is turned on when a voltage other than an average voltage value of 0 V is applied to the motor 4 (average voltage value ≠ 0) from a first current flowing when a voltage other than an average voltage value of 0 V is applied to the motor 4 (average voltage value ≠ 0), for example, only the first PWM signal is turned on; and a second current value obtained by subtracting a fourth current flowing when only the second PWM signal or only the third PWM signal is turned off when a voltage other than an average voltage value of 0 V is applied to the motor 4 (average voltage value ≠ 0) from a third current flowing when only the second PWM signal or only the third PWM signal is turned off when a voltage other than an average voltage value of 0 V is applied to the motor 4 (average voltage value ≠ 0)
[0139] The second current is a current detected when only the first PWM signal is turned on when the on-duty ratio of each of the three PWM signals is set to 50% so that a voltage having an average voltage value of 0 V is applied to the motor 4. The current detection unit 27A stores information indicating the value of the second current.
[0140] The first current is a current detected in a state where only the first PWM signal is turned on when the motor 4 is driven.
[0141] The fourth current is a current detected when only the second PWM signal or only the third PWM signal is turned off when the on-duty ratio of each of the three PWM signals is set to 50% in such a manner that a voltage having an average voltage value of 0 V is applied to the motor 4. The current detection unit 27A stores value information indicating the fourth current.
[0142] The third current is a current detected in a state where only the second PWM signal or only the third PWM signal is turned off when the motor 4 is driven.
[0143] When the motor 4 is driven, the current detection unit 27A subtracts the value of the second current stored in advance from the value of the first current, and outputs the result as a detection value. In addition, the current detection unit 27A subtracts the value of the fourth current stored in advance from the value of the third current, and outputs the result as a detection value. The energization pattern generation unit 35 generates a PWM signal using the output result of the current detection unit 27A, that is, the current value obtained by subtracting the second current from the first current and the current value obtained by subtracting the fourth current from the third current. As a result, an effect of averaging the detected current can be obtained. Even when the on-duty ratio of all phases is 50%, that is, the average voltage applied to the motor 4 is 0 (V), if a current detection interval is set as T21 and T22 by pulse phase adjustment, a voltage is applied in the interval and a current flows. Therefore, by detecting the current and setting the current value as a reference (offset), the current changes in a sinusoidal wave shape based on the value. As a result, the amount of increase (decrease) becomes the current value, and an effect of averaging the detected current can be obtained without performing arithmetic processing to average the current.
[0144] It should be noted that the current offset control by the current detection unit 27A in the second embodiment can be combined with the current detection phase fixing method (pulse phase adjustment control) by the energization pattern generation unit 35 in the first embodiment.
[0145] It should be noted that in the conventional current detection averaging method, due to the deviation of the current detection position and the current detection timing, even within the PWM1 cycle, the detected current value will be different depending on which part of the current pulsation is sampled. Therefore, the conventional current detection averaging method includes a method of measuring the current value of the same phase multiple times and averaging it, and a method of correcting the current detected in the current cycle using the current value detected in the previous cycle. However, by combining the current detection phase fixing method (pulse phase adjustment control) of implementation mode 1 and the current offset control of implementation mode 2, the current detection is performed in the same power-on mode and at the same detection timing, and the pulsation behavior of the current actually flowing in the current detection interval is always the same. That is, the same step voltage is always applied, and the current responds accordingly, so the behavior of the current is also the same.
[0146] Fig.14 is a flowchart showing the operation of the motor control device 100 - 2. Fig. 9 The difference of the flowchart is that the processing of step S10A is provided instead of the processing of step S10. In step S10A, current offset control is performed. The processing after step S10A is the same as that in step S10A. Fig. 9 The processing described in is the same as that described in, and its description is omitted.
[0147] The motor control device, the motor system, and the motor control method are described above by using the embodiments, but the present invention is not limited to the above embodiments. Various modifications and improvements such as combination and replacement with part or all of other embodiments are possible within the scope of the present invention.
[0148] This international application claims the benefit of priority based on Japanese Patent Application No. 2019-057288 filed on March 25, 2019, and the entire contents of Japanese Patent Application No. 2019-057288 are cited in this international application.
[0149] Description of Reference Numerals
[0150] 1-1 Motor system, 1-2 Motor system, 4 Motor, 12 Up / down counter, 13 Comparator, 14 Comparator, 15 Flip-flop, 16 Comparator, 17 Comparator, 18 Comparator, 21 DC power supply, 22a Positive bus, 22b Negative bus, 23 Inverter, 24 Current detector, 25U Switching element, 25V Switching element, 25W Switching element, 27 Current detection unit, 27A Current detection unit, 30 Vector control unit, 31 Duty ratio setting unit, 32 PWM signal generation unit, 33 Drive circuit, 34 Current detection timing adjustment unit, 35 Power-on pattern generation unit, 36 Clock pulse generation unit, 37 Carrier generation unit, 100-1 Motor control device, 100-2 Motor control device, 108 PWM circuit, 109 Interrupt controller.
Claims
1. A motor control device, comprising: an inverter unit that drives the motor based on the first PWM signal, the second PWM signal, and the third PWM signal; a current detector that outputs a detection signal corresponding to a current value of a current flowing through the DC side of the inverter unit; a current detection unit, which detects the phase current flowing through each phase of the motor by acquiring the detection signal; a duty ratio setting unit that sets the duty ratios of the first PWM signal, the second PWM signal, and the third PWM signal based on the detected values of the phase currents of the phases; and a PWM signal generating unit that generates the first PWM signal, the second PWM signal, and the third PWM signal by comparing the set value of the duty ratio with the level of a carrier wave whose level increases and decreases periodically, The PWM signal generating unit adjusts the arrangement order of the time series of the timing changes of the first PWM signal, the second PWM signal and the third PWM signal after the change of the set value to the same arrangement order as the arrangement order of the time series of the timing changes of the first PWM signal, the second PWM signal and the third PWM signal before the change of the set value when the set value changes, and ensures the first energization time during the half cycle of the carrier during which the current detection unit can detect the energization width of the phase current of one phase and the second energization time during which the current detection unit can detect the energization width of the phase current of one phase.
2. The motor control device according to claim 1, wherein: The current detection unit outputs a first current value and a second current value as the detection value. The first current value is a current value obtained by subtracting the current flowing when only the first PWM signal is turned on when a voltage other than an average voltage value of 0 V is applied to the motor from the current flowing when only the first PWM signal is turned on when a voltage with an average voltage value of 0 V is applied to the motor. The second current value is a current value obtained by subtracting the current flowing when only the second PWM signal is turned off or only the third PWM signal is turned off when a voltage is not applied to the motor from the current flowing when only the second PWM signal is turned off or only the third PWM signal is turned off when a voltage is not applied to the motor.
3. A motor control device, comprising an inverter unit that drives the motor based on the first PWM signal, the second PWM signal, and the third PWM signal; a current detector that outputs a detection signal corresponding to a current value of a current flowing through the DC side of the inverter unit; a current detection unit, which detects the phase current flowing through each phase of the motor by acquiring the detection signal; a duty ratio setting unit that sets the duty ratios of the first PWM signal, the second PWM signal, and the third PWM signal based on the detected values of the phase currents of the phases; and a PWM signal generating unit, which compares the set value of the duty ratio with the level of the carrier wave whose level increases and decreases periodically, thereby generating the first PWM signal, the second PWM signal and the third PWM signal, The current detection unit outputs a first current value and a second current value as the detection value. The first current value is a current value obtained by subtracting the current flowing when the first PWM signal is turned on when a voltage other than an average voltage value of 0 V is applied to the motor from the current flowing when the first PWM signal is turned on when the average voltage value of 0 V is applied to the motor. The second current value is a current value obtained by subtracting the current flowing when the second PWM signal is turned off when a voltage other than an average voltage value of 0 V is applied to the motor or when the third PWM signal is turned off when the average voltage value of 0 V is applied to the motor from the current flowing when the second PWM signal is turned off when the average voltage value of 0 V is applied to the motor or when the third PWM signal is turned off when the average voltage value of 0 V is applied to the motor.
4. A motor system, comprising: The motor control device according to claim 1; and The above motor.
5. A motor control method, which is performed in a motor control device for controlling a motor, the motor control method comprising the following steps: an output step of outputting a detection signal corresponding to a current value of a current flowing through a DC side of an inverter unit for driving the motor based on the first PWM signal, the second PWM signal, and the third PWM signal; A detection step, which detects the phase current flowing through each phase of the motor by acquiring the detection signal; a setting step, which sets the duty ratios of the first PWM signal, the second PWM signal, and the third PWM signal based on the detected values of the phase currents of the phases; A generating step, which generates the first PWM signal, the second PWM signal and the third PWM signal by comparing the set value of the duty cycle with the level of the carrier whose level increases and decreases periodically; and A step of ensuring that, in the case where the above-mentioned set value changes, the arrangement order of the timing time series of the changes of the above-mentioned first PWM signal, the above-mentioned second PWM signal and the above-mentioned third PWM signal after the above-mentioned set value changes is adjusted to the same arrangement order as the arrangement order of the timing time series of the changes of the above-mentioned first PWM signal, the above-mentioned second PWM signal and the above-mentioned third PWM signal before the above-mentioned set value changes, and ensuring that the current detection unit within the half cycle of the above-mentioned carrier can detect the first power-on time of the power-on width of the phase current of one phase and the second power-on time of the current detection unit can detect the power-on width of the phase current of one phase.
6. A motor control method, which is performed in a motor control device for controlling a motor, the motor control method comprising: an output step of outputting a detection signal corresponding to a current value of a current flowing through a DC side of an inverter unit for driving the motor based on the first PWM signal, the second PWM signal, and the third PWM signal; A detection step, which detects the phase current flowing through each phase of the motor by acquiring the detection signal; a setting step, which sets the duty ratios of the first PWM signal, the second PWM signal, and the third PWM signal based on the detected values of the phase currents of the phases; A generating step, which generates the first PWM signal, the second PWM signal and the third PWM signal by comparing the set value of the duty cycle with the level of the carrier whose level increases and decreases periodically; and A step of outputting a first current value and a second current value as the above-mentioned detection value, the first current value being a current value obtained by subtracting a current flowing when only the first PWM signal is turned on when a voltage other than an average voltage value of 0V is applied to the above-mentioned motor from a current flowing when only the first PWM signal is turned on when a voltage other than an average voltage value of 0V is applied to the above-mentioned motor, and the second current value being a current value obtained by subtracting a current flowing when only the second PWM signal is turned off when a voltage other than an average voltage value of 0V is applied to the above-mentioned motor or when only the third PWM signal is turned off when a voltage other than an average voltage value of 0V is applied to the above-mentioned motor from a current flowing when only the second PWM signal is turned off when a voltage other than an average voltage value of 0V is applied to the above-mentioned motor or when only the third PWM signal is turned off when a voltage other than an average voltage value of 0V is applied to the above-mentioned motor.
7. A motor system, comprising: The motor control device according to claim 2; and The above motor.
8. A motor system comprising: The motor control device according to claim 3; and The above motor.
Citation Information
Patent Citations
Motor controller and air conditioner
JP2015084632A
Electronic apparatus
JP2019057288A
Electric motor control method and device adopting space vector pulse width modulation
CN101174811A
Power conversion apparatus and electric power steering apparatus having the same
CN104467494A