Motor control device and motor system
The motor control device addresses noise distortion and control accuracy issues by switching between duty ratio adjustment methods based on motor speed, enabling effective control at high rotation speeds.
Patent Information
- Application Number
- JP2024030123
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-02-29
- Publication Date
- 2025-09-10
AI Technical Summary
Existing motor control methods using PWM signals for three-phase motors can cause noise distortion and fail to output the required control amount at high rotation speeds due to modulation rate limitations.
A motor control device that switches between two current detection methods based on motor speed, adjusting duty ratios and fixed signal levels to suppress noise while maintaining control accuracy.
The device effectively outputs the required control amount while suppressing noise, ensuring accurate motor operation across varying speeds.
Smart Images

Figure 2025132502000001_ABST
Abstract
Description
[Technical Field]
[0001] The present invention relates to a motor control device and a motor system. [Background technology]
[0002] Conventionally, a technique for controlling a three-phase motor has been known in which a single shunt resistor inserted in a DC section of an inverter circuit is used to detect currents in the U, V, and W phases. For example, a common method for detecting all three currents involves generating PWM (Pulse Width Modulation) signals (energization patterns) for each phase so that currents in two or more phases can be detected within one cycle of the PWM signal (carrier) for driving the motor, and detecting the current by changing the order in which the levels of the PWM signals for each phase are switched depending on the energization pattern (see, for example, Patent Document 1).
[0003] However, when the phase of the PWM signal is changed using the above method, distortion occurs in the current flowing through the DC bus when the order in which the signal levels of the PWM signals for each phase change, resulting in a waveform that appears to have a large amount of noise superimposed on it, which can cause noise.
[0004] Therefore, Patent Document 2 proposes a technique for adjusting the phase of PWM by providing, in one PWM cycle, a first period in which the signal level changes at a timing according to a set duty ratio, and a second period in which the signal level changes at fixed timing different from the first period and in which the current is detected.This technique fixes the order in which the signal levels of the PWM signals change without sudden changes, thereby suppressing distortion of the motor current and preventing noise. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Japanese Patent Application Laid-Open No. 2015-84632 [Patent Document 2] Patent Publication No. 2021-19458 Summary of the Invention [Problem to be solved by the invention]
[0006] However, while the noise can be eliminated by constantly using the PWM control method described in the above document 2, there is a risk that the required control amount may not be output if the motor rotation speed becomes high or the calculated modulation rate exceeds a certain range.
[0007] Therefore, the present invention provides a motor control device that can output a required control amount while suppressing noise. [Means for solving the problem]
[0008] A motor control device according to a representative embodiment of the present invention includes a control unit that generates PWM signals corresponding to each phase of a motor having coils for multiple phases, an inverter circuit that drives the coils of each phase based on the PWM signals, and a current detector connected in series to a DC line of the inverter circuit, wherein the control unit includes a current detection unit that detects a current of the current detector, a duty ratio setting unit that sets a duty ratio of the PWM signal for each phase based on a detection result of the current detection unit, a PWM signal generation unit that generates the PWM signal for each phase based on the duty ratio set by the duty ratio setting unit, and a speed monitoring unit that monitors the rotational speed of the motor for each PWM period, and the duty ratio setting unit switches a current detection method between a first method and a second method that differ in how the duty ratio is adjusted. a switching unit, wherein in the first method, the signal level changes at arbitrary timings that are different from each other throughout one cycle of the PWM signal of each phase, and the current detection unit detects the current of the current detector throughout the entire period; and in the second method, one cycle of the PWM signal of each phase includes a first period and a second period, and the signal level of the PWM signal of each phase changes during the first period at a timing according to the set duty ratio, and during the second period, the signal level changes at fixed timings that are different from each other, and the order in which the PWM signals of each phase are switched is fixed regardless of the set value of the duty ratio, and the current detection unit detects the current of the current detector during the second period; and the current detection method switching unit switches between the first method and the second method based on the rotational speed of the motor. [Effects of the Invention]
[0009] The motor control device according to the present invention can output a required control amount while suppressing noise. [Brief explanation of the drawings]
[0010] [Figure 1] 1 is a diagram showing an example of the configuration of a motor system according to a first embodiment. [Figure 2]FIG. 3 is a diagram illustrating an overview of a first method for detecting phase currents by the motor control device according to the first embodiment. [Figure 3] FIG. 10 is a diagram illustrating an overview of a second method for detecting phase currents by the motor control device according to the first embodiment. [Figure 4] 6A and 6B are diagrams for explaining the principle of generating a PWM signal according to a second method by the motor control device according to the first embodiment. [Figure 5] 3 is a flowchart showing the flow of a motor drive control process performed by the motor control device according to the embodiment. [Figure 6] 10A and 10B are diagrams showing current waveforms of a motor when the motor is driven by PWM signals generated while detecting currents by the first and second methods according to the first embodiment. [Figure 7] FIG. 10 is a diagram showing noise levels when a motor is driven by PWM signals generated while detecting currents using the first and second methods according to the first embodiment. [Figure 8] 4 is a flowchart of a method switching determination for each PWM cycle according to the first embodiment. [Figure 9] 4A and 4B are diagrams illustrating the motor rotation speed and the control amounts of the first and second methods used in the method switching determination in the first embodiment. [Figure 10] FIG. 10 is a diagram illustrating an example of the configuration of a motor system according to a second embodiment. [Figure 11] 10 is a flowchart of a method switching determination for each PWM cycle according to the second embodiment. [Figure 12] FIG. 10 is a diagram illustrating the sum of three duty start setting values and a threshold value for switching between the first method and the second method according to the second embodiment. [Figure 13] 10 is a diagram for explaining detection timings of PWM signals and phase currents in a modified example of the second method in the motor control devices according to the first and second embodiments. FIG. DETAILED DESCRIPTION OF THE INVENTION
[0011] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The following describes embodiments of the present invention with reference to the accompanying drawings. In the following drawings, the same components are designated by the same reference numerals, and redundant explanations may be omitted.
[0012] <Embodiment 1> 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 may be installed in a device such as a copy machine, a personal computer, or a refrigerator, but is not limited to these. The motor system 1 includes at least a motor 4 and a motor control device 100.
[0013] The motor 4 has a plurality of coils. The motor 4 has, for example, three-phase coils 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, for example, by star connection.
[0014] The motor control device 100 converts direct current into three-phase alternating current and drives a motor by controlling the on / off (ON / OFF) of multiple switching elements connected in a three-phase bridge according to a current pattern including a three-phase PWM signal.
[0015] Specifically, the motor control device 100 includes an inverter circuit 23, a control unit 20, and a current detector 24.
[0016] 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 passes the three-phase AC drive current through the motor 4, thereby rotating the rotor of the motor 4. The inverter circuit 23 drives the motor 4 based on a plurality of current conduction patterns (more specifically, three-phase PWM signals generated by a PWM signal generation unit 32 in the current conduction pattern generation unit 35) that are generated by a current conduction pattern generation unit 35, which will be described later.
[0017] 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-side 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 each turned on or off in accordance with a corresponding one of a plurality of drive signals supplied from the drive circuit 33 based on the PWM signal included in the above-mentioned conduction 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.
[0018] The connection point between switching element 25U+ and switching element 25U- is connected to one end of a U-phase coil of motor 4. The connection point between switching element 25V+ and switching element 25V- is connected to one end of a V-phase coil of motor 4. The 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.
[0019] Specific examples of switching elements include N-channel metal oxide semiconductor field effect transistors (MOSFETs) and insulated gate bipolar transistors (IGBTs), but the switching elements are not limited to these.
[0020] The current detector 24 outputs a detection signal Sd corresponding to the current value of the current flowing on 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 on 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 on the negative bus 22b. A current detection element such as a shunt resistor generates a voltage signal corresponding to the current value of the current flowing through it as the detection signal Sd. Note that the current detector 24 may be any element that outputs a detection signal corresponding to the current value of the current flowing on the negative bus 22b, and may be a sensor such as a CT (Current Transformer).
[0021] The control unit 20 generates a plurality of PWM signals corresponding to the respective phases of the motor 4. The control unit 20 is, for example, a program processing device (e.g., a microcontroller) having a configuration in which a processor such as a CPU, various storage devices such as RAM and 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 one another via a bus. In this embodiment, the control unit 20 is packaged as an IC (integrated circuit), but is not limited to this.
[0022] The control unit 20 generates a PWM signal so that the motor 4 operates appropriately, for example, based on a rotation speed command ωref of 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.
[0023] 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.
[0024] The current pattern generating unit 35 includes a duty ratio setting unit 39, a PWM signal generating unit 32, and a speed monitoring unit .
[0025] The duty ratio setting unit 39 is a functional unit for generating PWM signals as signals that specify the current conduction pattern of the inverter circuit 23. The duty ratio setting unit 39 sets the duty ratios of the three-phase PWM signals based on the current detection results obtained 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.
[0026] The duty ratio calculation unit 31 according to this embodiment includes a duty ratio / duty start setting value calculation unit 311, a current detection method switching unit 312, and a PWM limit detection unit 313.
[0027] The motor control device 100 according to this embodiment switches between two current detection methods, which differ in the way they shift the phase of the PWM signal used for current detection (how they adjust the duty ratio). Specific examples of the two types of current detection will be described using Figures 2 and 3. A specific configuration for generating three-phase PWM signals and a specific method and entity for detecting phase currents in the control unit 20 of the motor control device 100 in Figure 1 will be described later after the explanation of Figures 2 and 3.
[0028] <Current detection method: Method 1> 2 is a diagram illustrating a pulse phase adjustment method according to a first technique for adjusting the phase of a PWM signal for each phase in order to detect the phase current of a three-phase brushless motor. As shown in FIG. 2, in the pulse phase adjustment method according to the first technique, the phase of the PWM signal for each phase is adjusted so that the center points of the PWM signal waveforms for each phase are aligned.
[0029] In Figure 2(a), the duty ratio Udu of the U-phase PWM signal U is higher than the duty ratio Vdu of the V-phase PWM signal V. That is, in Figure 2(a), the U-phase PWM signal U changes at change point t4, and the V-phase PWM signal V changes at change point t5. On the other hand, in Figure 2(b), the duty ratio Udu of the U-phase PWM signal U is lower than the duty ratio Vdu of the V-phase PWM signal V. That is, in Figure 2(b), the V-phase PWM signal changes at change point t4, and the U-phase PWM signal changes at change point t5.
[0030] 2(a), in one cycle of the PWM signal, the motor control device 100 measures the current flowing through the current detector (shunt resistor) 24 during a period T21 between timing t4 when the U-phase PWM signal U switches and timing t5 when the V-phase PWM signal V switches. The motor control device 100 also measures the current flowing through the current detector (shunt resistor) 24 during a period T22 between timing t5 when the V-phase PWM signal V switches and timing t6 when the W-phase PWM signal W switches.
[0031] 2(a), the current measured during period T21 represents the U-phase current Iu, and the current measured during period T22 represents the sum of the U-phase current Iu and the V-phase current Iv.
[0032] Here, the U-phase, V-phase, and W-phase currents Iu, Iv, and Iw have a relationship of "Iu+Iv+Iw=0." That is, there is a relationship of "Iw=-(Iu+Iv)."
[0033] 2(a), 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 currents measured during the period T22. Furthermore, the V-phase current Iv can be calculated from the measurement value of the U-phase current Iu detected during the period T21 and the measurement value of the W-phase current Iw detected during the period T22.
[0034] In this way, in FIG. 2(a), 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 during periods T21 and T22 of the PWM cycle.
[0035] 2(b), in one cycle of the PWM signal, the motor control device 100 measures the current flowing through the current detector (shunt resistor) 24 during a period T21 between timing t4 when the V-phase PWM signal V switches and timing t5 when the U-phase PWM signal U switches. The motor control device 100 also measures the current flowing through the current detector (shunt resistor) 24 during a period T22 between timing t5 when the U-phase PWM signal U switches and timing t6 when the W-phase PWM signal W switches.
[0036] 2(b), the current measured during period T21 represents the V-phase current Iv, and the current measured during period T22 represents the sum of the U-phase current Iu and the V-phase current Iv.
[0037] 2(b), 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 currents measured during the period T22. Also, the U-phase current Iu can be calculated from the measurement value of the V-phase current Iv detected during the period T21 and the measurement value of the W-phase current Iw detected during the period T22.
[0038] In this way, in FIG. 2(b), 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 during periods T21 and T22 of the PWM cycle.
[0039] 2(a) and 2(b), the order in which the PWM signals of each phase are switched varies depending on the set value of the duty ratio, so the signal levels change at different arbitrary timings throughout one cycle of the PWM signals of each phase. Then, the current detection unit 27 detects the current of the current detector (shunt resistor) 24 during periods T21 and T22, the timing of which varies throughout one cycle of the PWM signals.
[0040] <Current detection method: Method 2> FIG. 3 is a diagram for explaining an overview of the second method of detecting phase currents by the motor control device 100 according to the first embodiment.
[0041] More specifically, in the motor control device 100 according to the second technique of the first embodiment shown in FIG. 3, two types of carriers C1 and C2 are used as the carrier C of the PWM signals U, V, and W.
[0042] Carrier C1 is a sawtooth carrier (carrier wave signal) whose level increases in a cycle corresponding to first period A in the PWM cycle. Carrier C2 is a sawtooth carrier whose level increases in a cycle corresponding to second period B in the PWM cycle.
[0043] As shown in FIG. 3, the carrier C1 and the carrier C2 are generated alternately, and one cycle (PWM cycle) of the PWM signals U, V, and W is determined by a pair of consecutive carriers C1 and C2.
[0044] The PWM signals U, V, and W corresponding to each phase are generated so that their high and low levels are inverted at the timing when the carriers C1 and C2 match a threshold calculated based on the duty ratios Udu, Vdu, and Wdu, which will be described later.
[0045] 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 a threshold based on the duty ratios 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 not shown in Figures 2 and 3. Hereinafter, when the multiple PWM signals U to W are not distinguished from one another, they may be referred to as "PWM signals."
[0046] In the second technique, the PWM signals U, V, and W have their signal levels switched at timings according to the duty ratio during a first period A from time t0 to time t4 determined by the carrier C1, and their signal levels switched at mutually different fixed timings during a second period B from time t4 to time t8 determined by the carrier C2.
[0047] For example, the signal level of the U-phase PWM signal U switches from low to high at timing (time) t1 in the first period A, and switches from high to low at timing t5 in the second period B. The signal level of the V-phase PWM signal V switches from low to high at timing (time) t2 in the first period A, and switches from high to low at timing t6 in the second period B. The signal level of the W-phase PWM signal V switches from low to high at timing (time) t3 in the first period A, and switches from high to low at timing t7 in the second period B.
[0048] In the first period A, the timing at which the signal levels of the PWM signals U, V, and W are switched varies according to the duty ratios Udu, Vdu, and Wdu set by the duty ratio calculation unit 31.
[0049] On the other hand, in the second period B, the timing at which the signal levels of the PWM signals U, V, and W change (switch) is fixed regardless of the set value of the duty ratio. In other words, the order in which the signal levels of the PWM signals U, V, and W switch is fixed in the second period B. For example, as shown in FIG. 3, in 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 does not change 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.
[0050] 3, in second period B, motor control device 100 measures the current flowing through current detector (shunt resistor) 24 during period Tu between timing t5 when U-phase PWM signal U switches and timing t6 when V-phase PWM signal V switches. Motor control device 100 also measures the current flowing through current detector (shunt resistor) 24 during period Tuv between timing t6 when V-phase PWM signal V switches and timing t7 when W-phase PWM signal W switches.
[0051] 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.
[0052] Here, the U-phase, V-phase, and W-phase currents Iu, Iv, and Iw have a relationship of "Iu+Iv+Iw=0." That is, there is a relationship of "Iw=-(Iu+Iv)."
[0053] 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 currents measured during the period Tuv. Furthermore, the V-phase current Iv can be calculated from the measurement value of the U-phase current Iu detected during the period Tu and the measurement value of the W-phase current Iw detected during the period Tuv.
[0054] In this way, motor control device 100 measures the currents of the U-phase, V-phase, and W-phase by detecting the currents of current detector 24 during periods Tu and Tuv in the second period of the PWM cycle.
[0055] That is, in the second technique, in order to prevent distortion of the current of 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 a PWM signal for each phase so that the signal level of the PWM signal for each phase switches at a timing corresponding to the duty ratio in the first period A and switches at predetermined timings different from each other in the second period B. The control unit 20 then measures the phase current at a predetermined timing within the second period B of the PWM period. Furthermore, in the second period B, the order in which the PWM signals for each phase switch is fixed regardless of the set value of the duty ratio.
[0056] Returning to FIG. 1, 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.
[0057] The current detection unit 27 acquires a detection signal Sd based on a plurality of energization patterns (more specifically, three-phase PWM signals) generated by the energization pattern generation unit 35, thereby detecting phase currents Iu, Iv, Iw of the U, V, and W phases that flow through the motor 4. More specifically, the current detection unit 27 acquires the detection signal Sd at acquisition timings synchronized with the plurality of energization patterns (more specifically, three-phase PWM signals), thereby detecting phase currents Iu, Iv, Iw of the U, V, and W phases that flow through the motor 4. The acquisition timing of the detection signal Sd is set by the current detection timing adjustment unit 34.
[0058] For example, the current detection unit 27 inputs 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 input analog detection signal Sd to 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.
[0059] The measured values of the phase currents Iu, Iv, and 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. Note that the clock generation unit 36 starts operating, for example, at the same time as the motor control device 100 is powered on.
[0060] The current pattern generation unit 35 determines the rotor position of the motor 4 based on the measured 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 (current pattern of the inverter circuit 23) so that the rotor of the motor 4 follows the determined rotor position.
[0061] 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). The 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.
[0062] In this embodiment, the current conduction pattern generation unit 35 generates the current conduction pattern of the inverter circuit 23 by vector control. Note that the method for generating the current conduction pattern of the inverter is not limited to vector control, and may be a method for determining the phase voltage of each phase using VF control or the like.
[0063] The speed monitoring unit 38 of the current conduction pattern generation unit 35 monitors the rotation speed of the motor 4. For example, the speed monitoring unit 38 calculates and monitors the rotation speed of the motor 4 based on the measured values of the phase currents Iu, Iv, and Iw of the motor 4 measured by the current detection unit 27.
[0064] The vector control unit 30 of the energization pattern generation unit 35 calculates the phase difference between the rotor position and the command value from the induced voltage obtained by the extended induced voltage observer in the speed monitoring unit 38, and generates a torque current command Iqref and an excitation current command Idref based on this. 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. It is also possible to obtain a measured value of the rotational speed of the motor 4 by a sensor without using the extended induced voltage observer, and generate the torque current command Iqref and the excitation current command Idref based on the difference between the measured rotational speed value and the rotational speed command.
[0065] 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.
[0066] The vector control unit 30 converts the voltage commands Vq and Vd into phase voltage commands Vu*, Vv*, and Vw* for the U, V, and W phases using the rotor position θ. The phase voltage commands Vu*, Vv*, and Vw* for the respective phases are supplied to a duty ratio setting unit 39.
[0067] The duty ratio setting unit 39 of the current conduction pattern generating unit 35 is a functional unit for generating a PWM signal as a signal that specifies the current conduction pattern of the inverter circuit 23.
[0068] The duty ratio setting unit 39 calculates the duty ratios of the three-phase PWM signals based on the current detection results from the current detection unit 27, sets a current detection method, and then sets the duty ratios according to the method. The duty ratio refers to the ratio of the H period to the total period of the H and L periods in the PWM signal of each phase.
[0069] The duty ratio / duty start setting value calculation unit 311 in the duty ratio calculation unit 31 calculates the duty ratios (setting values of the duty ratios of each phase) Udu, Vdu, and Wdu for generating three-phase PWM signals based on the input phase voltage commands Vu*, Vv*, and Vw* of each phase.
[0070] Here, a specific example of a method for calculating the duty ratios Udu, Vdu, and Wdu of each phase will be described. The duty ratios Udu, Vdu, and Wdu of each phase are calculated based on the modulation factors modU, modV, and modW, as shown in the following equations (1) to (3).
[0071] The duty ratios Udu, Vdu, and Wdu of the respective phases obtained based on the following equations (1) to (3) have sinusoidal waveforms with phases that differ from each other by, for example, 120 degrees. Examples of the waveforms of the duty ratios Udu, Vdu, and Wud of the respective phases will be described later.
[0072] Udu = modU × (carrier upper limit) (1) Vdu = modV × (carrier upper limit) (2) Wdu = modW × (carrier upper limit) (3)
[0073] The duty ratio / duty start set value calculation unit 311 further calculates, for each PWM period, duty start set values (Tsu, Tsv, Tsw) that are the time periods from the start of the PWM interval until the three-phase PWM signals change to H for the next PWM period based on the duty ratio. In this example, the PWM signals change from L to H at t1, t2, and t3, but the PWM signals may also change from H to L at t1, t2, and t3. In other words, the duty start set values (Tsu, Tsv, Tsw) are the time periods from the start of the PWM interval until the three-phase PWM signals change from the first level to the second level for the next PWM period. In the examples of FIGS. 2 to 4, the first level indicates the L state, and the second level indicates the H state.
[0074] Specifically, in the first technique, in FIG. 2(a), the time period T03 from t0 to t3 is the duty start setting value Tsu of the PWM signal U. The time period T02 from t0 to t2 is the duty start setting value Tsv of the PWM signal V. The time period T01 from t0 to t1 is the duty start setting value Tsw of the PWM signal W. In FIG. 2(b), the time period T02 from t0 to t2 is the duty start setting value Tsu of the PWM signal U. The time period T01 from t0 to t1 is the duty start setting value Tsv of the PWM signal V. The time period T03 from t0 to t3 is the duty start setting value Tsw of the PWM signal W.
[0075] 3 of the second technique, the time period T01 from t0 to t1 is the duty start setting value Tsu of the PWM signal U. The time period T02 from t0 to t2 is the duty start setting value Tsv of the PWM signal V. The time period T03 from t0 to t1 is the duty start setting value Tsw of the PWM signal W.
[0076] The PWM limit detection unit 313 detects the setting limit of the PWM according to the second method calculated by the duty ratio / duty start setting value calculation unit 311. The PWM limit detection unit 313 can also detect the setting limit of the PWM according to the first method calculated by the duty ratio / duty start setting value calculation unit 311.
[0077] The current detection method switching unit 312 switches the current detection method between a first method and a second method, which differ in how the duty ratio is adjusted. In this embodiment, the current detection method switching unit 312 selects and switches between the first method and the second method based on the rotation speed and control amount of the motor 4. Then, it outputs a duty ratio according to the selected method.
[0078] The PWM signal generating unit 32 generates three-phase PWM signals U, V, and W as energization pattern signals based on the duty ratios Udu, Vdu, and Wdu of each phase set by the duty ratio setting unit 39 and the carriers C1 and C2. As described above, the carriers C1 and C2 are carrier wave signals whose levels periodically increase and decrease.
[0079] The PWM signal generating unit 32 generates three-phase PWM signals U, V, and W based on the results of comparison between the carriers C1 and C2 and threshold values based on the duty ratios Udu, Vdu, and Wdu of the respective phases.
[0080] FIG. 4 is a diagram for explaining the principle of generating a PWM signal according to the second method by the motor control device according to the first embodiment.
[0081] 4, the PWM signal generating unit 32 determines the timing at which the signal level of the PWM signal for each phase switches during the first period A based on the result of comparing the level of the first carrier C1 with first thresholds (Udu1, Vdu1, Wdu1) set based on the duty ratio. The PWM signal generating unit 32 also determines the timing at which the signal level of the PWM signal for each phase switches during the second period B based on the result of comparing the level of the second carrier C2 with second thresholds (Udu2, Vdu2, Wdu2), which are fixed values.
[0082] The two switching elements that make up the upper and lower arms of the U, V, and W phases respectively perform complementary on / off operations in response to changes in the levels of the PWM signals U, V, and W. However, there is a slight time lag between the timing of the complementary on / off operations; for example, the off operation may precede the on operation, and the on operation may lag behind.
[0083] However, in Figure 4, the complementary on / off times are not taken into consideration because they are slight differences, and the duty ratio is defined as the time from when the upper arm turns on to when the upper arm turns off. Therefore, in Figure 4, the time period T01 from t0 to time t1 when the upper arm of the U-phase PWM signal turns on is the duty start set value Tsu for the U-phase. Similarly, for the V-phase and W-phase, the time periods T02 and T03 from t0 to times t2 and t3 when the upper arms turn on based on the V-phase and W-phase PWM signals are the duty start set values Tsv and Tsw.
[0084] 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 the applied 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.
[0085] The current detection timing adjustment unit 34 determines the acquisition timing for the current detection unit 27 to detect the 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.
[0086] The current detection unit 27, the current 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 in accordance with 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.
[0087] <Overall control> Here, a description will be given of the flow of the motor drive control process performed by the motor control device 100 according to this embodiment. Fig. 5 is a flowchart showing the flow of the motor drive control process performed by the motor control device 100 according to this embodiment.
[0088] For example, when a rotation speed command ωref for the motor 4 is input from a higher-level device (not shown), the motor control device 100 starts drive control of the motor 4.
[0089] First, the motor control device 100 starts the process of generating a current conduction pattern for driving the motor 4 (step S1). Specifically, the duty ratio setting unit 39 sets initial values for the duty ratios Udu, Vdu, and Wdu of the U, V, and W phases, respectively, the carrier generation unit 37 generates carriers C1 and C2, and the PWM signal generation unit 32 generates a PWM signal based on the carriers C1 and C2 and the set duty ratios Udu, Vdu, and Wdu using the method described above, and provides the PWM signal to the motor 4.
[0090] Next, the motor control device 100 measures the phase currents Iu, Iv, and Iw of the U, V, and W phases (step S2). For example, the current detection unit 27 acquires the detection signal Sd using an AD converter at times t4, t5, and t6 during 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 using an AD converter at time tuv during 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 using the method described above, based on the measured values of the detection signal Sd stored in the first and second acquisition registers, 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 S2 (step S3), and calculates the phase voltage commands Vu*, Vv*, and Vw* (control variables) for each phase (step S4).
[0092] Next, in step S5, the duty ratio setting unit 39 calculates the duty ratios and duty start set values (Tsu, Tsv, Tsw) for each of the three phases based on the phase voltage commands Vu*, Vv*, and Vw* for each phase calculated in step S4, and sets the current detection method for the next period (step S5). Note that if the current detection method is switched from the current method to another method in the next PWM period, the duty ratios and duty start set values (Tsu, Tsv, and Tsw) for each of the three phases are recalculated as necessary. Details of the conditions for performing the recalculation will be described later with reference to FIGS. 8 and 11.
[0093] In step S6, the PWM signal generating unit 32 generates a PWM signal based on the duty ratio and duty start setting value set by the method designed in step S5.
[0094] Thereafter, motor control device 100 determines whether or not a command to stop the motor has been input from a higher-level device (step S7). If a command to stop the motor has been input, motor control device 100 stops generating the PWM signal and stops driving motor 4.
[0095] On the other hand, if a command to stop the motor has not been input, motor control device 100 proceeds to step S2 and repeats the above-described processing (S1 to S6) until a command to stop the motor is input.
[0096] Note that the overall configuration of the motor control device 100 other than the duty ratio calculation unit 31 and the speed monitoring unit 38, and the specific aspects of the carrier wave using the carrier generation unit and PWM signal generation unit, can be incorporated and applied by incorporating the configuration and control behavior of the motor control device 100 described in Japanese Patent Application No. 2019-134650 previously filed by the applicant. Therefore, the contents of the description and drawings of the previously filed Japanese Patent Application No. 2019-134650 are incorporated herein by reference, and the contents of the description and drawings of the previously filed application are deemed to be described herein.
[0097] <Current ripple and noise> FIG. 6 shows the current waveform of a motor when it is driven by a PWM signal. Specifically, FIG. 6(a) shows the current waveform when the motor is driven while detecting the current using the first method, and FIG. 6(b) shows the current waveform when the motor is driven while detecting the current using the second method. In FIG. 6, the horizontal axis represents frequency and the vertical axis represents current. In FIG. 5, the solid line represents the U-phase current and the dashed line represents the V-phase current.
[0098] In Figure 6(a), as indicated by the arrows, large ripple currents are present in both the U and V phases. For example, when the current flow pattern changes from the state shown in Figure 2(a) to the state shown in Figure 2(b), the time-series order of the timing at which each of the multiple PWM signals changes suddenly changes. Therefore, in the first method, distortion of the motor current occurs at the timing at which the order in which the PWM signal levels of each phase change suddenly changes.
[0099] In contrast, in Figure 6(b), a small amount of ripple current is generated in the V phase, but almost no ripple current is generated in the U phase.
[0100] Therefore, by comparing FIG. 6(a) and FIG. 6(b), it can be seen that the second method causes less distortion of the current than the first method.
[0101] Fig. 7 shows the noise level when the motor is driven by a PWM signal while detecting the current using the first and second methods. In Fig. 7, the horizontal axis represents frequency and the vertical axis represents noise level (dB). In Fig. 7, the thin line represents the noise level using the first method, and the thick line represents the noise level using the second method.
[0102] Generally, the greater the amount of distortion in the current, the greater the noise level. As shown in Figure 7, the second method produces less noise across all frequency bands than the first method. Also, as shown in Figure 7, the overall average noise level is also lower with the second method, at 49.52 dB for the first method and 37.30 dB for the second method.
[0103] For this reason, it is preferable to drive the motor with a PWM signal while detecting the current using the second method. However, because the second method has a lower limit of control amount than the first method, if the second method is always executed, there may be cases where the output cannot be at an appropriate control amount, which could cause problems with the motor.
[0104] Therefore, in the motor control device 100 according to this embodiment, the current detection method switching unit 312 switches the current detection method between a first method and a second method, which differ in how the duty ratio is adjusted. More specifically, when the duty ratio adjustment method is switched, the method (algorithm) for shifting the phase of the PWM signal is switched in one-shunt vector PWM control. The switching method is described in detail below.
[0105] <Control method 1> In this control method, the current detection method switching unit 312 selects either the first method or the second method based on the rotation speed and control amount of the motor. The switching of the current detection method will be explained below with reference to Figures 8 and 9, along with the decision flow executed for each PWM cycle.
[0106] Fig. 8 is a flowchart of the method switching determination for each PWM cycle according to embodiment 1. Fig. 9 is a diagram illustrating the motor rotation speed and the control amounts of the first and second methods used in the method switching determination according to embodiment 1.
[0107] 8, if the current detection method in the current PWM cycle is the first method in step S101, the determinations in steps S102 to S104 are performed, and if it is the second method, the process proceeds to a loop in S105.
[0108] In step S102, the immediately preceding switching speed is subjected to Schmitt trigger processing to set the range of application of the second method. More specifically, in the case of a transition from low speed to high speed, when the limit of the PWM setting is detected using the second method, the current detection method is switched to the first method, and the switching speed at that time is stored.
[0109] On the other hand, when switching from high speed to low speed, the current detection method is switched from the first method to the second method in the PWM cycle following the one in which it is detected that the predetermined speed has become lower than the immediately preceding switching speed. That is, as shown in Fig. 9, the application range of the second method is set so that the first method is switched to the second method when the speed becomes sufficiently low, which is preset with respect to the switching speed from the second method to the first method.
[0110] In this embodiment, two variable thresholds with hysteresis are set as the speed for switching the current detection method. That is, the threshold for switching from the second method to the first method when the speed increases is the upper threshold that changes depending on the situation when the setting limit is detected, and the threshold for switching from the first method to the second method when the speed decreases is the lower threshold that is a predetermined speed lower than the upper threshold.
[0111] Then, in step S103, it is determined whether the detected speed is within the range applicable to the second method, that is, whether it is equal to or less than the lower threshold set in S102.
[0112] If the detected speed is within the range of application of the second method in step S103, the method is switched in the next PWM period in step S104, and the second current detection method is set to be applied, and a loop is entered in step S105.
[0113] In step S103, if the detected speed is greater than the applicable range of the second method, the process skips step S104 and enters a loop in step S105 while remaining in the state of the first method.
[0114] In step S106, it is determined whether or not there is an output setting retry in the immediately preceding loop. If there is no retry setting, the process proceeds to step S107. If there is a retry, this will be described later.
[0115] In step S107, based on the current detection results, the duty ratio and duty start setting values (Tsu, Tsv, Tsw), which are the time periods from the start of the PWM interval until each of the three-phase PWM signals becomes H, are calculated for the next PWM cycle.
[0116] Then, in step S108, if the current detection method for the current PWM cycle is the second method, or if the method was switched in step S104 and the second method is set for the next PWM cycle, the process proceeds to step S109. On the other hand, if the first method is used and step S104 has not been executed, the process proceeds to step S113.
[0117] In step S109, it is determined whether the current detection method is the second method and PWM expression is not possible in the next PWM period. Here, "PWM expression is not possible" refers to a state in which, when the PWM setting of the duty ratio / duty start setting value calculation unit (microcomputer) 311 is derived from the control amount calculated by the vector control unit 30, it becomes a value that cannot be set. Figure 9 shows a state in which the control amount at speed Sa has reached a value that cannot be set.
[0118] If the result of step S109 is not expressible, the first method is applied to the next PWM cycle in step S110, and a retry of the PWM output setting is performed in step S111. Since the control amount is greater than the first method, if the result cannot be expressed by the second method, the process switches to the first method.
[0119] On the other hand, if it is not impossible to express in step S109, the second method is set to be maintained in the next PWM period in S112.
[0120] If step S108 determines that the current detection method for the current PWM cycle is the first method and step S104 has not been performed, step S113 determines whether the current detection method for the next PWM cycle is the first method and PWM expression is not possible. Here, "PWM expression not possible" refers to a state in which, when a PWM setting is derived from the control amount calculated by vector control unit 30, a value that cannot be set is obtained. If the control amount is not possible to express using the first method because the second method is lower than the first method, the process proceeds to step S114 and adjustment is performed within the range of the first method.
[0121] In step S114, the limit output of the first method is determined, and the control amount is adjusted to the maximum control amount that can be set in the microcomputer. More specifically, in step S113, it is determined that the control amount is the limit output because it is clear that the control amount exceeds the settable range in the microcomputer. Even if the limit is reached, current detection must be performed using the first method in the next PWM cycle, so the input control amount is adjusted to the maximum control amount that can be set in the microcomputer, as shown in Figure 9.
[0122] Then, at the end point of the loop in step S115, it is checked whether there is a retry of the PWM output setting, and if there is no retry, the flow proceeds to step S117, the microcomputer register is set, and the flow ends.
[0123] In this control example, a retry of step S111 is set after step S110, so the loop is repeated only when it is determined that the current detection method should be switched from the second method to the first method.
[0124] Then, in the second loop, there is an output setting retry in the loop immediately before S106 (YES), so the flow proceeds to step S116, where the current actual speed is thresholded as the switching speed. Then, when the second loop is executed, the first method is confirmed, so S107 to S110 are not passed, and the flow moves from step S116 to step S113. After that, step S115 is reached, and there is no retry for the third time, so the microcomputer register is set in step S117, and the flow ends.
[0125] In the flow of Fig. 8, when switching from the second method to the first method, executing the loop twice means that the duty ratio / duty start setting value is recalculated in (2) at S5 in the overall flow of Fig. 5. In this control example, when switching from the first method to the second method, the method switch is determined by the motor speed before the duty ratio / duty start setting calculation, so the loop is executed only once, and the recalculation of (2) at S5 in the overall flow of Fig. 5 is not executed, and only the second method after the method switch is calculated.
[0126] By performing such control, in this embodiment, while the rotation speed of the motor 4 is increasing by detecting the current using the second method and controlling the rotation of the motor, when PWM expression is not possible in step S109, i.e., when the limit of the PWM setting is detected, the current detection method is switched to the first method.
[0127] The speed at which the PWM setting limit is detected varies depending on the application, temperature, and other conditions, for example.
[0128] Then, in step S116, while the rotation speed of the motor 4 is increasing, the rotation speed of the motor when the current detection method is switched from the second method to the first method is stored as the switching speed.
[0129] On the other hand, when transitioning from high speed to low speed, if step S103 detects that the motor speed has become a predetermined speed lower than the stored previous switching speed, i.e., that the motor speed has entered the range in which the second method is applicable, then in the next PWM period, the current detection method is switched from the first method to the second method.
[0130] This determination method allows switching from the first method to the second method at a speed that has a predetermined buffer relative to the switching speed from the second method to the first method, thereby preventing frequent switching between the first and second current detection methods.
[0131] With this type of control, the motor control device of this embodiment can appropriately switch between two current detection methods that use different methods of PWM phase adjustment, thereby suppressing noise while outputting the required control amount without excessive control.
[0132] <Embodiment 2> 10 is an overall view of a motor control system according to embodiment 2. Only the differences from embodiment 1 will be described below.
[0133] In this embodiment, the duty ratio calculation unit 31A has a duty ratio / duty start setting value calculation unit 311A, a current detection method switching unit 312A, a setting impossibility detection unit 314, a start setting value summation unit 315, and a total maximum value discrete determination unit 316. Also, no speed monitoring unit is provided.
[0134] Based on the detection result of the current detection unit 27, the duty ratio / duty start setting value calculation unit 311A calculates, for each PWM period, the duty ratio and the duty start setting value, which is the time period from the start of the PWM interval until each of the three-phase PWM signals becomes H, for the next PWM period.
[0135] In this embodiment, the current detection method switching unit 312A switches between the first method and the second method based on a duty start set value that is the time period from the start of the PWM period until each of the three-phase PWM signals becomes H.
[0136] The setting failure detection unit 314 detects whether or not any one of the three duty start setting values calculated for the next PWM period is a value that cannot be set.
[0137] When all three duty start setting values are settable values, the start setting value summing unit 315 calculates the sum of the three duty start setting values (Tsu, Tsv, Tsw) for each PWM period.
[0138] The sum of the three duty start setting values changes, repeatedly taking maximum and minimum values for each PWM period. The sum maximum value discrete determination unit 316 determines whether the discrete maximum value of the sum of the three duty start setting values exceeds the switching threshold value a predetermined number of times in succession.
[0139] Next, the determination of switching of the PWM current detection method according to this embodiment will be described with reference to FIGS.
[0140] Fig. 11 is a flowchart of PWM method determination according to embodiment 2. Fig. 12 shows the sum of three duty start set values according to embodiment 2 and a threshold value for switching between the first method and the second method.
[0141] 11 is executed for each PWM period. More specifically, it is executed for each PWM period to determine the current detection method to be set for the next PWM period.
[0142] In the method determination of FIG. 11, a loop is immediately entered in step S201.
[0143] Then, in step S202, the duty ratio / duty start setting value calculation unit 311A calculates, for each PWM period, based on the detection result of the current detection unit 27, the duty ratios of the three phases and the duty start setting values, which are the time periods from the start of the PWM interval until each of the three-phase PWM signals becomes H, for the next PWM period.
[0144] Steps S203 to S210 are an example of software-implemented microcomputer control that is used to detect whether the duty start setting value for the next PWM cycle will be an unsettable value. Other methods may be used as long as it can be detected that even one of the three-phase duty start setting values calculated for the next PWM cycle will be an unsettable value.
[0145] In step S203, if the duty start setting value Tsu<0, that is, if the calculation result shows that any of the values t1, t2, and t3 corresponding to the U phase is before the start of the PWM period (t0), proceed to step S204 and set the sign state variable a=1.
[0146] In step S203, if Tsu≧0, that is, if the calculation result shows that any one of the values of t1, t2, and t3 corresponding to the U phase is the same as or after the start of the PWM period, the process proceeds to step S205.
[0147] Similarly, if the duty start set value Tsv<0 in step S205, the process proceeds to step S206, where the sign state variable b is set to 1. On the other hand, if Tsv≧0 in step S205, the process proceeds to step S207.
[0148] Furthermore, if the duty start setting value Tsw<0 in step S207, the process proceeds to step S208, where the C language code state variable c is set to 1. On the other hand, if Tsw≧0 in step S205, the process proceeds to step S209. If the variable a is a local variable, it is assumed that it is initialized (=0) when declared outside the loop, so there is no need to set it to 0.
[0149] In step S209, the variables a, b, and c are converted to bitOR, where bitOR is the original variable.
[0150] Then, in step S210, it is determined whether bitOR is 0. More specifically, the variable bitOR=a|b|c| is calculated, and when bitOR is other than 0, it indicates that at least one 1 appears in the three numerical values a, b, and c. More specifically, when a=0, b=1, 0|1=1...bitOR=1, and when c=0, bitOr=1, 0|1=1...bitOr=1, 0|0=0, 1|1=1, the determination in step S210 intends to indicate a state in which at least one of the duty start setting values (Tsu, Tsv, Tsw) for the next PWM cycle is an unsettable value.
[0151] In this case, that is, if the answer is NO in step S210, the process proceeds to step S212, where the current detection method for the next PWM period is set to method 1. Then, in step S213, a PWM output setting retry is set.
[0152] On the other hand, if bitOR is 0 in step S210, that is, if the three numerical values of the code state variables a, b, and c are all 0 and the time periods of the three duty start setting values to be set in the next PWM cycle can all be set, proceed to step S211.
[0153] Then, in S211, Σt=T01+T02+T03 is calculated. Specifically, the sum Σt of the duty start set values Tsu+Tsv+Tsw is calculated (added up).
[0154] Then, in step S214, it is determined whether the sum Σt is equal to or greater than the switching threshold value. If the sum Σt is less than the switching threshold value, the process proceeds to step S212, where the current detection method for the next PWM period is set to the first method.
[0155] On the other hand, if the sum Σt is equal to or greater than the switching threshold (YES in S214), the process proceeds to step S215 for discrete determination of maximum values.
[0156] Here, the sum of the three duty start set values and the maximum value discrete determination will be described in detail with reference to Fig. 12. In Fig. 12, the horizontal axis represents time (seconds) and the vertical axis represents Σt = T01 + T02 + T03.
[0157] 12 is a value before the PWM setting of duty ratio / duty start setting value calculation unit 311A becomes impossible to set when the PWM setting is derived from the control amount calculated by vector control unit 30. For example, when the value at which the control amount becomes impossible to set is 1, the value is 0.6 to 0.95, and more preferably, 0.7 to 0.9.
[0158] 12, the sum Σt of the three duty start setting values alternates between a maximum value (Max peak value) and a minimum value (Minimum peak value). The maximum value of the sum Σt is larger in the second method.
[0159] In step S216, it is determined whether the number of times it has been determined that the maximum value of the sum has exceeded the switching threshold is equal to or greater than a given number (determination threshold).
[0160] If the number of times that the maximum value of the sum Σt is determined to have continuously exceeded the switching threshold is equal to or greater than a predetermined number (YES in S216), the process proceeds to step S217, where the second method is set to be applied in the next PWM period.
[0161] On the other hand, if the number of times that the maximum value of the sum Σt continuously exceeds the switching threshold is less than the predetermined number (No in S216), the process proceeds to step S212, and the first method is set to be applied in the next PWM period.
[0162] Then, in step S218, it is determined whether or not the PWM output setting is to be retried. If it is not necessary, the flow ends, and if it is necessary to retry, a retry is performed.
[0163] In more detail, if the second method is used for the current PWM cycle and it is determined in S216 that the second method will remain the same for the next cycle, or if the first method is used for the current PWM cycle and it is determined in S216 that the second method will be used for the next cycle, then S201 to S218 are looped only once.
[0164] On the other hand, if the first method is used for the current PWM cycle and it is determined in any of S210, S214, and S216 that the first method should remain the same for the next cycle, or if the second method is used for the current PWM cycle and it is determined in step S210 that the first method should be used for the next cycle, the loop from S201 to S218 is executed twice in one PWM cycle. Executing the loop twice means that the recalculation of (2) is executed in S6 in the overall flow of FIG. 5.
[0165] By switching the current detection method in this way, when switching from the second method to the first method, if it becomes impossible to set the duty start setting value in S210, the transition occurs immediately, so there is no shortage of control amount. Furthermore, thereafter, calculation of the sum or discrete determination of the maximum value is not performed, so the amount of processing can be minimized.
[0166] On the other hand, when switching the current detection method from the first method to the second method, (1) In S210, for each PWM period, the duty ratio and the duty start setting value, which is the time period from the start of the PWM section until each of the three-phase PWM signals becomes H, are calculated for the next PWM period, and values that can be set for all three duty start setting values (time periods) are detected. (2) In S211, the sum of the three duty start setting values is calculated, (3) In S214, it is determined whether the maximum value of the sum exceeds the switching threshold. If the maximum value of the sum exceeds the switching threshold, and if the number of times that the discrete maximum values exceed the switching threshold continues for more than an arbitrary number of times in S216, Once these three conditions are met, we can finally move on to the second method.
[0167] In other words, even if all three duty start setting values are settable in S210, the sum Zt of the three calculated duty start setting values is calculated, and if the maximum value of the sum Zt does not exceed the switching threshold in S215, the current detection method for the next PWM period is maintained as the first method.
[0168] Furthermore, even if all three duty start setting values are settable in S210 and the maximum value of the calculated sum Zt exceeds the switching threshold in S215, if the number of times that the discrete maximum values of the sum Zt continuously exceed the switching threshold is less than an arbitrary number of times, the current detection method for the next PWM period will be maintained as the first method.
[0169] In this control, this determination method can prevent frequent switching between the first and second current detection methods.
[0170] With this type of control, the motor control device of this embodiment can appropriately switch between two current detection methods that use different methods for adjusting the PWM phase, thereby suppressing noise while outputting the required control amount without excessive control.
[0171] <<Modification of the second method>> In the above example, as an example of the second technique, the current detection technique for adjusting the PWM phase shown in Fig. 3 has been described. However, other waveform control may be used as long as the PWM signal for each phase has the following behavior: "One cycle of the PWM signal for each phase includes a first period and a remaining second period, the signal level of the PWM signal for each phase changes at a timing according to a set duty ratio in the first period, and the signal level changes at mutually different fixed timings in the second period, and the current detection unit detects the current of the current detector in the second period."
[0172] FIG. 13 is a diagram illustrating the detection timing of the PWM signal and the phase current in the motor control device according to the first and second embodiments, in a modification of the second technique.
[0173] In this technique, a carrier generating unit generates a triangular carrier (C) whose level increases in a cycle corresponding to a first period A and decreases in a cycle corresponding to a second period B. The PWM signal generating unit determines the timing at which the signal level of the PWM signal for each phase changes during the first period based on the result of comparing the level of the carrier C with a first threshold (Udu1, Vdu1, Wdu1) set based on the duty ratio. The PWM signal generating unit also determines the timing at which the signal level of the PWM signal for each phase changes during the second period based on the result of comparing the level of the carrier C with a second threshold (Udu2, Vdu2, Wdu2), which is a fixed value. Furthermore, during the second period B, the order in which the PWM signals for each phase change is fixed regardless of the set value of the duty ratio.
[0174] In the motor control according to the modified example of the second technique shown in Fig. 13, similar to the motor control shown in Fig. 3, distortion of the motor current can be suppressed compared to the pulse phase adjustment control according to the first technique shown in Fig. 2. This makes it possible to prevent noise caused by distortion of the current in the motor 4.
[0175] Therefore, even when the control method of FIG. 8 or control method 1 of FIG. 11 is realized using the second method of this modified example, by appropriately switching between the two types of PWM control methods, it is possible to suppress noise while adjusting the control amount so that it is not excessive.
[0176] Note that specific aspects of the carrier generating unit and PWM signal generating unit for realizing the control according to the modified example of the second method can be applied by incorporating the configuration and control behavior of the motor control device 100A described in Japanese Patent Application No. 2019-134650 previously filed by the applicant. Therefore, the contents of the description and drawings of the previously filed Japanese Patent Application No. 2019-134650 are incorporated herein by reference, and the contents of the description and drawings of the previously filed application are deemed to be described herein.
[0177] <<Extension of Embodiment>> The invention made by the present inventors has been specifically described above based on an embodiment, but it goes without saying that the invention is not limited thereto and can be modified in various ways without departing from the spirit of the invention.
[0178] 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 one PWM cycle (n=1).
[0179] Furthermore, the above-described flowcharts are merely examples for explaining the operation, and are not intended to be limiting. That is, the steps shown in each diagram of the flowchart are specific examples, and the present invention is not limited to these flows. For example, the order of some processes may be changed, other processes may be inserted between processes, or some processes may be performed in parallel. [Explanation of symbols]
[0180] 1...motor system, 4...motor, 20, 20A...control unit, 21...DC power supply, 22a...positive bus, 22b...negative bus, 23...inverter circuit, 24...current detector (shunt resistor), 25U, 25U-, 25V, 25V-, 25W, 25W-...switching element, 27...current detection unit, 30...vector control unit, 31, 31A...duty ratio calculation unit, 32...PWM signal generation unit, 33...drive circuit, 34...current detection timing adjustment unit, 35, ...energization pattern generation unit, 36...clock generation unit , 37...carrier generation unit, 38...speed monitoring unit, 39...duty ratio setting unit, 100, 100A...motor control device, 311, 311A...duty ratio / duty start setting value calculation unit (duty start setting value calculation unit), 312, 312A...current detection method switching unit, 313...PWM limit detection unit, 314...unable to set detection unit, 315...start setting value summation unit, 316...sum maximum value discrete judgment unit, A...first period, B...second period, C, C1, C2...carrier, Udu, Vdu, Wdu...duty ratio.
Claims
1. a control unit that generates PWM signals corresponding to the respective phases of a motor having coils for multiple phases; an inverter circuit that drives the coils of each phase based on the PWM signal; a current detector connected in series to the DC line of the inverter circuit, The control unit a current detection unit that detects the current of the current detector; a duty ratio setting unit that sets a duty ratio of the PWM signal for each phase based on a detection result of the current detection unit; a PWM signal generating unit that generates the PWM signal for each phase based on the duty ratio set by the duty ratio setting unit; a speed monitoring unit that monitors the rotation speed of the motor for each PWM period, The duty ratio setting unit a current detection method switching unit that switches a current detection method between a first method and a second method that have different ways of adjusting the duty ratio; In the first method, the signal level changes at mutually different arbitrary timings during an entire period of one cycle of the PWM signal of each phase, and the current detection unit detects the current of the current detector during the entire period; In the second technique, one cycle of the PWM signal of each phase includes a first period and a second period, the signal level of the PWM signal of each phase changes at a timing according to the set duty ratio during the first period, and the signal level changes at fixed timings different from each other during the second period, and the order in which the PWM signals of each phase are switched is fixed regardless of the set value of the duty ratio, and the current detection unit detects the current of the current detector during the second period, The current detection method switching unit switches between the first method and the second method based on the rotation speed of the motor. Motor control device.
2. The current detection method switching unit While the rotation speed of the motor is increasing, the rotation speed of the motor when the current detection method is switched from the second method to the first method is stored as a switching speed; Thereafter, when the rotation speed becomes lower than the stored switching speed by a predetermined speed while the rotation speed is decreasing, the first method is switched to the second method. The motor control device according to claim 1 .
3. The current detection method switching unit switches the current detection method from the first method to the second method in a PWM period following a period in which the speed monitoring unit detects that the speed has become lower than the stored immediately previous switching speed by a predetermined speed. The motor control device according to claim 2 .
4. The duty ratio setting unit a limit detection unit for detecting a setting limit of the PWM by the second method; when the limit detection unit detects a limit of a PWM setting while the rotation of the motor is controlled while detecting the current by the second method and the speed of the motor is increasing, the current detection method switching unit switches the current detection method in the next PWM period to the first method; The speed at which the PWM setting limit is detected varies depending on the situation. The motor control device according to claim 2 .
5. a control unit that generates PWM signals corresponding to the respective phases of a motor having three-phase coils; an inverter circuit that drives the coils of each phase based on the PWM signal; a current detector connected in series to the DC line of the inverter circuit, The control unit a current detection unit that detects the current of the current detector; a duty ratio setting unit that sets a duty ratio of the PWM signal for each phase based on a detection result of the current detection unit; a PWM signal generating unit that generates the PWM signal for each phase based on the duty ratio set by the duty ratio setting unit, The duty ratio setting unit a current detection method switching unit that switches the current detection method between a first method and a second method that differ in how the duty ratio is adjusted; In the first method, the signal level changes at mutually different arbitrary timings during an entire period of one cycle of the PWM signal of each phase, and the current detection unit detects the current of the current detector during the entire period; In the second technique, one cycle of the PWM signal of each phase includes a first period and a second period, the signal level of the PWM signal of each phase changes at a timing according to the set duty ratio during the first period, and the signal level changes at fixed timings different from each other during the second period, and the current detection unit detects the current of the current detector during the second period; The current detection method switching unit switches between the first method and the second method based on a duty start setting value that is a time period from the start of a PWM period until each of the three-phase PWM signals changes from a first level to a second level. Motor control device.
6. The duty ratio setting unit a duty start set value calculation unit that calculates, for each PWM period, a duty start set value that is a time period from the start of a PWM interval until each of the three-phase PWM signals changes from a first level to a second level, for the next PWM period, based on the detection result of the current detection unit and the calculated duty ratio; an unsettable detection unit that detects whether any one of the three duty start setting values calculated for the next PWM period is an unsettable value; a sum maximum value discrete determination unit that calculates the sum of the three duty start setting values for each PWM period when all of the three duty start setting values are settable values, and determines whether or not the discrete maximum value of the sum of the three duty start setting values, which changes while repeatedly taking maximum and minimum values, exceeds a switching threshold value a predetermined number of times in succession; The motor control device according to claim 5 .
7. The current detection method switching unit switches the current detection method in the next PWM period from the second method to the first method when the setting failure detection unit detects that at least one of the three duty start setting values calculated for the next PWM period is an unsettable value while the motor speed is increasing by controlling the rotation of the motor while detecting the current by the second method. The motor control device according to claim 6.
8. The current detection method switching unit When the rotation of the motor is controlled while detecting the current by the first method, When the setting impossible detection unit detects that all three calculated duty start setting values are settable values, When the three duty start setting values are all settable values, the sum maximum value discrete determination unit calculates the sum of the three duty start setting values for each PWM period, and when the discrete maximum value of the sum of the three duty start setting values, which changes while repeating maximum and minimum values, does not exceed a switching threshold, the current detection method for the next PWM period is maintained as the first method. The motor control device according to claim 6.
9. The current detection method switching unit When the rotation of the motor is controlled while detecting the current by the first method, When the setting impossible detection unit detects that all three duty start setting values calculated for the next PWM period are settable values, When the three duty start setting values are all settable values, the sum maximum value discrete determination unit calculates the sum of the three duty start setting values for each PWM period, and when the discrete maximum value of the sum of the three duty start setting values, which changes while repeatedly taking maximum and minimum values, exceeds a switching threshold value less than a predetermined number of times, the current detection method for the next PWM period is maintained as the first method. The motor control device according to claim 6.
10. The current detection method switching unit When the rotation of the motor is controlled while detecting the current by the first method, When the setting impossible detection unit detects that all three duty start setting values calculated for the next PWM period are settable values, When the three duty start setting values are all settable values, the sum maximum value discrete determination unit calculates the sum of the three duty start setting values for each PWM period, and when the discrete maximum value of the sum of the three duty start setting values, which changes while repeatedly changing between maximum and minimum values, exceeds a switching threshold value a predetermined number of times in a row, the unit switches the current detection method for the next PWM period from the first method to the second method. The motor control device according to claim 6.
11. the duty ratio setting unit further includes a vector control unit that calculates a phase voltage command for each phase and a control amount that is a sum of the phase voltage commands, based on current calculation values of the three-phase currents detected by the current detection unit; The switching threshold value of the maximum value of the sum of the three duty start setting values is a value before the setting becomes impossible when the PWM setting is derived from the calculated control amount. The motor control device according to claim 9.
12. A motor control device according to any one of claims 1 to 11; The motor and Motor system.
Citation Information
Patent Citations
Motor controller and air conditioner
JP2015084632A
Motor controller and motor system
JP2021019458A