Motor Control Method
The motor control device uses a target duty correction method to accurately derive phase current values in systems without phase current sensors, addressing inaccuracy issues and improving control reliability.
Patent Information
- Application Number
- JP2021000062
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-01-04
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-01-04
AI Technical Summary
In motor control systems without phase current sensors, the calculated phase current values derived from power supply current are inaccurate due to delays in the control circuit.
A motor control device that includes a setting section for setting a target duty, a timer output generation unit, a drive unit for switching elements, a first acquisition unit for power supply current, and a phase current calculation unit to derive accurate phase current values based on power supply currents, using a predetermined correction value to account for control circuit delays.
Accurately derives phase current values without a phase current sensor, enhancing control reliability and accuracy by reducing errors caused by control circuit delays.
Smart Images

Figure 0007570931000001 
Figure 0007570931000002 
Figure 0007570931000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a motor control device and a motor control method, and more particularly to a motor control device and a motor control method for controlling a phase current flowing through a motor electrically connected to a power source so as to follow a target phase current. [Background technology]
[0002] Conventionally, taking into consideration that the generated voltage and current are not the same when the control method for generating voltage is different, a technique has been known that attempts to suppress fluctuations in the rotation speed of a motor by correcting a PWM (Pulse Width Modulation) control signal when changing the drive method for generating voltage according to the rotation speed of the motor (see, for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2017-028944 A Summary of the Invention [Problem to be solved by the invention]
[0004] When controlling the phase current flowing through the motor so that it follows a target phase current, it is desirable to be able to detect the phase current with high accuracy. In this regard, in a configuration that does not have a sensor for detecting the phase current, a delay in the control circuit may cause a problem in that the calculated value of the phase current based on the power supply current cannot be derived with high accuracy.
[0005] The present invention has been made to solve the above problem, and has an object to accurately derive a calculated value of a phase current based on a power supply current in a configuration that does not have a sensor for detecting the phase current. [Means for solving the problem]
[0006] In order to solve the above problems, one aspect of the present invention is a motor control device that controls a phase current flowing through a motor electrically connected to a power supply via an inverter circuit so as to follow a target phase current, A setting unit that sets a target duty; a timer output generating unit that generates a timer output based on the target duty set by the setting unit and a predetermined correction value; a drive unit that generates a drive signal for turning on / off a switching element of the inverter circuit based on the timer output generated by the timer output generation unit; a first acquisition unit that acquires a detection value of a power supply current flowing between the power supply and the inverter circuit; a phase current calculation unit that derives a calculated value of the phase current based on the target duty set by the setting unit and the detection value of the power supply current acquired by the first acquisition unit, There is provided a motor control device in which the setting unit sets the target duty based on a calculated value of the phase current calculated by the phase current calculation unit and the target phase current. Effect of the Invention
[0007] According to the present invention, in a configuration that does not have a sensor for detecting a phase current, it is possible to accurately derive a calculated value of a phase current based on a power supply current. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a schematic diagram illustrating an embodiment of a motor drive system. [Diagram 2] 1 is a functional block diagram illustrating an embodiment of a motor control device. [Diagram 3] FIG. 4 is a schematic block diagram illustrating speed control realized by a speed control unit. [Figure 4] FIG. 4 is a functional block diagram showing a detailed example of a current PI control unit. [Diagram 5] 10 is an explanatory diagram of a method for generating a PWM timer output according to a comparative example. FIG. [Figure 6] 4 is an explanatory diagram of a method for generating a PWM timer output according to the present embodiment. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0010] FIG. 1 is a diagram illustrating a schematic diagram of an embodiment of a motor drive system 2.
[0011] The motor drive system 2 is mounted on, for example, a vehicle. The motor drive system 2 may also be used for purposes other than vehicles.
[0012] As shown in FIG. 1, the motor drive system 2 includes a power supply 3, a motor control device 10, a motor 12, and a current sensor 14.
[0013] The power source 3 is, for example, a DC power source, and may be any power source such as a lead battery, a lithium ion battery, or a fuel cell.
[0014] The motor control device 10 controls a motor 12. The motor control device 10 is a processing device including, for example, a microcomputer. The hardware configuration of the motor control device 10 is arbitrary and may be similar to that of an in-vehicle ECU (Electronic Control Unit).
[0015] In the example shown in FIG. 1, the motor control device 10 includes a CPU (Central Processing Unit) 101, a gate drive circuit 102, and an inverter circuit 103.
[0016] The gate drive circuit 102 is in the form of, for example, an IC (Integrated Circuit). The gate drive circuit 102 includes six input ports 1021-1 to 1021-6 and six output ports 1022-1 to 1022-6. The CPU 101 is electrically connected to the six input ports 1021-1 to 1021-6, and the inverter circuit 103 is electrically connected to the six output ports 1022-1 to 1022-6.
[0017] The CPU 101 provides a PWM timer output (an example of a timer output) to each of six input ports 1021-1 to 1021-6 of the gate drive circuit 102. The PWM timer output is in the form of a pulse signal, and in this embodiment, a rising edge from Low to High turns on a corresponding switching element (high potential side switching element SW1 or low potential side switching element SW2) of the inverter circuit 103, and a falling edge from High to Low turns off a corresponding switching element (high potential side switching element SW1 or low potential side switching element SW2) of the inverter circuit 103.
[0018] The gate drive circuit 102 outputs a drive signal for driving the inverter circuit 103 via six output ports 1022-1 to 1022-6 based on a PWM timer output from the CPU 101 input via six input ports 1021-1 to 1021-6. In this embodiment, the drive signal is realized by a time series of voltages at each of the output ports 1022-1 to 1022-6.
[0019] For example, the gate drive circuit 102 raises the output (port output) at the output port 1022-1 to a predetermined voltage [V] based on the rise of the PWM timer output at the input port 1021-1 from Low to High. Also, the gate drive circuit 102 lowers the output (port output) at the output port 1022-1 from a predetermined voltage [V] to 0 [V] based on the fall of the PWM timer output at the input port 1021-1 from High to Low. The same operation is performed for the other five input ports 1021-2 to 1021-6. The predetermined voltage is set to a voltage value required to turn on the corresponding switching element (high potential side switching element SW1 or low potential side switching element SW2).
[0020] The inverter circuit 103 is electrically connected to the coils 13u, 13v, and 13w of each phase (u-phase, v-phase, and w-phase). The inverter circuit 103 has a high-potential side switching element SW1 and a low-potential side switching element SW2 for each phase. In this embodiment, an example is shown in which n-type field effect transistors (FETs) are used as the high-potential side switching element SW1 and the low-potential side switching element SW2, but any elements can be used.
[0021] The gates of the high potential side switching element SW1 and the low potential side switching element SW2 of each phase are electrically connected to the output ports 1022-1 to 1022-6 of the gate drive circuit 102 via drive lines independent of each other. Therefore, for example, when the output (port output) of the output port 1022-1 of the gate drive circuit 102 rises to a predetermined voltage [V], the corresponding switching element (i.e., the high potential side switching element SW1 of the U phase electrically connected to the output port 1022-1) is turned on, and when the output (port output) of the output port 1022-1 of the gate drive circuit 102 falls to 0 [V], the corresponding switching element is turned off. The other five output ports 1022-2 to 1022-6 operate in a similar manner.
[0022] The motor 12 is, for example, a three-phase brushless motor, and has coils 13u, 13v, and 13w for each phase (u-phase, v-phase, and w-phase). The motor 12 can be used for any purpose, and may be used, for example, to drive a hydraulic pump.
[0023] The current sensor 14 is provided to detect the power supply current flowing between the power supply 3 and the inverter circuit 103. The current sensor 14 includes, for example, a shunt resistor R1. The voltage across the shunt resistor R1 is supplied to the CPU 101 via the amplifier 41. Note that, although the current sensor 14 is arranged on the high potential side of the inverter circuit 103 in FIG. 1, it may be arranged on the low potential side.
[0024] Fig. 2 is a functional block diagram showing an outline of one embodiment of the motor control device 10. Note that Fig. 2 also shows the host ECU 4, together with the motor 12, the rotation sensor 13, and the current sensor 14, as related components.
[0025] The host ECU 4 is a control device that is higher in level than the motor control device 10, and provides various commands (e.g., command current) to the motor control device 10. The rotation sensor 13 supplies an electric signal corresponding to the rotation speed of the motor 12 to the motor control device 10 as sensor information.
[0026] 2, the motor control device 10 includes a motor drive unit 110 (an example of a drive unit), a current control unit 112, a rotation speed calculation unit 114, a target value acquisition unit 116, and a speed control unit 118. The motor drive unit 110 may be realized by the gate drive circuit 102 and the inverter circuit 103 shown in FIG 1, and the current control unit 112, the rotation speed calculation unit 114, the target value acquisition unit 116, and the speed control unit 118 may be realized by the CPU 101 shown in FIG 1.
[0027] The motor drive unit 110 controls the inverter circuit 103 based on the PWM timer output provided from the current control unit 112 and the speed control unit 118, and provides the motor 12 with a drive current (for example, a three-phase drive current) according to the PWM timer output.
[0028] The current control unit 112 performs current control for rotating the motor 12 from a stopped state. That is, the current control unit 112 performs current control for starting the motor 12.
[0029] The rotation speed calculation unit 114 calculates the rotation speed (actual rotation speed) of the motor 12 based on sensor information from the rotation sensor 13. In another example, the rotation speed calculation unit 114 may calculate (estimate) the actual rotation speed of the motor 12 based on a parameter such as a drive current.
[0030] The target value acquisition unit 116 acquires a target rotation speed, which is a target value related to the rotation speed of the motor 12. The target value acquisition unit 116 acquires (calculates) the target rotation speed based on a command rotation speed from the upper ECU 4. For example, the target value acquisition unit 116 may use the command rotation speed from the upper ECU 4 as the target rotation speed as it is. Alternatively, the target value acquisition unit 116 may perform filtering and acquire the command rotation speed after filtering as the target rotation speed. For example, the target value acquisition unit 116 may calculate a difference between the command rotation speed from the upper ECU 4 and the command rotation speed after filtering, multiply the difference by a filter gain, and add the difference multiplied by the filter gain to the command rotation speed after filtering, thereby acquiring the command rotation speed after filtering as the target rotation speed.
[0031] The speed control unit 118 controls the speed of the motor 12 so that the actual rotation speed of the motor 12 calculated by the rotation speed calculation unit 114 becomes the target rotation speed acquired by the target value acquisition unit 116. The speed control by the speed control unit 118 can be realized, for example, in the manner shown in FIG. 3. FIG. 3 is a schematic block diagram for explaining the speed control realized by the speed control unit 118. In the example shown in FIG. 3, in the speed control unit 118, a target phase current is calculated by a speed PI control unit 1181 based on the deviation between the target rotation speed acquired by the target value acquisition unit 116 and the actual rotation speed calculated by the rotation speed calculation unit 114. Then, a PWM timer output is generated by a current PI control unit 1182 based on the deviation between the target phase current and the phase current (calculated value), and the PWM timer output is supplied to the motor drive unit 110.
[0032] At the start of the motor 12, the speed control by the speed control unit 118 is executed following the current control by the current control unit 112. In this embodiment, the control state of the motor control device 10 selectively includes a speed control state by the speed control unit 118 and a current control state by the current control unit 112, and a transition from the current control to the speed control state at the start of the motor 12 is realized when a predetermined transition condition is satisfied. The predetermined transition condition is satisfied, for example, when the actual rotation speed calculated by the rotation speed calculation unit 114 exceeds a threshold value. Alternatively, the predetermined transition condition may be satisfied when the current control state by the current control unit 112 continues for a predetermined time or more. Alternatively, the predetermined transition condition may also be satisfied when the amount of rotation of the motor 12 exceeds a threshold value (for example, one rotation).
[0033] Next, a detailed example of the current PI control unit 1182 will be described with reference to FIG.
[0034] FIG. 4 is a functional block diagram showing an example of the current PI control unit 1182 in detail.
[0035] As shown in FIG. 4, the current PI control unit 1182 includes a setting unit 70, a timer output generating unit 72, a phase current calculating unit 74, and a parameter acquiring unit 76.
[0036] As shown in Fig. 4, the setting unit 70 sets (calculates) the target duty based on the deviation between the target phase current and the phase current (calculated value) by PI control. Specifically, the setting unit 70 calculates the deviation ΔI between the target phase current and the phase current (calculated value) (see reference numeral 701), and multiplies the deviation ΔI by a proportional gain Kp to calculate the value of the P term (=ΔI x Kp) (see reference numeral 702). The setting unit 70 also integrates the deviation ΔI over time to derive an integrated value ΣΔI (see reference numeral 703), and multiplies the integrated value ΣΔI by an integral gain Ki to calculate the value of the I term (=ΣΔI x Ki) (see reference numeral 704). The setting unit 70 then adds the value of the P term (=ΔI x Kp) and the value of the I term (=ΣΔI x Ki) together (see reference numeral 705) to obtain the target duty α [%].
[0037] The timer output generating unit 72 generates a PWM timer output based on the target duty α set by the setting unit 70 and a predetermined correction value β. As described above, the PWM timer output is in the form of a pulse signal, and serves as a signal for turning on / off each switching element (high potential side switching element SW1 or low potential side switching element SW2) of the inverter circuit 103.
[0038] The predetermined correction value β functions to reduce or eliminate the difference between the actual duty and the target duty α caused by the delay of the control circuit. The unit of the predetermined correction value β may be the same as that of the target duty, that is, [%].
[0039] The timer output generating unit 72 calculates a timer setting value (=α+β) (see reference numeral 7201) by adding the target duty α and a predetermined correction value β acquired by the parameter acquiring unit 76. The timer output generating unit 72 then generates and outputs a PWM timer output based on the timer setting value (see reference numeral 7202). For example, the timer output generating unit 72 generates a PWM timer output such that the time obtained by adding the time related to the target duty α to the time related to the predetermined correction value β is the duration of the High state in the PWM timer output (hereinafter also referred to as the "on period"). In other words, the timer output generating unit 72 generates a PWM timer output such that the percentage of the on period (on duty) of the entire PWM timer output matches the timer setting value.
[0040] The phase current calculation unit 74 calculates the target duty α set by the setting unit 70 and the detected value I of the power supply current acquired by the parameter acquisition unit 76. B Specifically, the phase current calculation unit 74 calculates the phase current [A]=I B The calculated value of the phase current is derived as [A] / α[%] × 100. The calculated value of the phase current derived in this way is used when the setting unit 70 calculates the deviation ΔI (see reference numeral 701) as shown in FIG.
[0041] The parameter acquiring unit 76 includes a first acquiring unit 761 .
[0042] The first acquisition unit 761 acquires a detection value I of the power supply current supplied from the power supply 3 to the motor 12 from the current sensor 14. B Get the.
[0043] The parameter acquiring section 76 may further include a second acquiring section 762 in addition to the first acquiring section 761. In this case, the timer output generating section 72 may include a correction value calculating section 721.
[0044] The second acquisition unit 762 acquires a detection value of a parameter indicating at least one of the power supply voltage of the power supply 3 and the temperature of the motor drive unit 110. The power supply voltage of the power supply 3 may be acquired from, for example, a voltage sensor. The temperature of the motor drive unit 110 may be acquired from a temperature sensor (for example, a thermistor) provided in the motor drive unit 110.
[0045] When such a second acquisition unit 762 is provided, the above-mentioned predetermined correction value β may be a variable value. Specifically, the correction value calculation unit 721 calculates the predetermined correction value β based on the detection value of the parameter acquired by the second acquisition unit 762. In this case, the correction value calculation unit 721 may change the predetermined correction value β in a manner in which, for example, the higher the power supply voltage of the power supply 3, the larger the predetermined correction value β becomes linearly or nonlinearly. Also, the correction value calculation unit 721 may change the predetermined correction value β in a manner in which, for example, the higher the temperature of the motor drive unit 110, the smaller the predetermined correction value β becomes linearly or nonlinearly.
[0046] According to this embodiment, the PWM timer output is generated not by directly using the target duty α set by the setting unit 70, but by applying a predetermined correction value β to the target duty α set by the setting unit 70, so that the error between the actual duty and the target duty can be reduced or eliminated. That is, according to this embodiment, the PWM timer output is generated by applying a predetermined correction value β to the target duty α set by the setting unit 70, so that the error between the actual duty and the target duty that may occur due to the delay of the control circuit can be reduced or eliminated. This effectively improves the accuracy of the phase current calculated by the phase current calculation unit 74. As a result, the accuracy of the target duty α set by the setting unit 70 is also improved, and the reliability of the control of the motor 12 can be improved.
[0047] Next, a preferred method for setting the predetermined correction value β and the effects of this embodiment will be described with reference to FIGS.
[0048] Fig. 5 is an explanatory diagram of a method for generating a PWM timer output according to a comparative example, and Fig. 6 is an explanatory diagram of a method for generating a PWM timer output according to this embodiment. Figs. 5 and 6 show time-series waveforms of the PWM timer output, the pre-driver input, the port output, the gate voltage, and the phase voltage, with the horizontal axis representing time. The pre-driver input refers to an input to one of the input ports 1021-1 to 1021-6 of the gate drive circuit 102, and the port output refers to an output from one of the output ports 1022-1 to 1022-6 of the gate drive circuit 102. Here, as a representative, a waveform related to one high-potential side switching element SW1 of the six switching elements of the inverter circuit 103 is shown.
[0049] In the comparative example, the PWM timer output is generated by directly using the target duty α set by the setting unit 70. That is, the timer setting value is the same as the target duty α, and the on-period of the PWM timer output corresponds to the time related to the target duty α.
[0050] In such a comparative example, as shown in FIG. 5, an error is likely to occur between the actual duty and the target duty due to a delay in the control circuit.
[0051] Specifically, there are four delay times that may occur in the control circuit when turning on the high-side switching element SW1 that is in the off state: a first delay time ΔT1, a second delay time ΔT2, a third delay time ΔT3, and a fourth delay time ΔT4, as follows.
[0052] The first delay time ΔT1 corresponds to the delay from time t1 when the PWM timer output changes to High (an example of a first state) to time t2 when the change (ie, a rising edge) is input to the gate drive circuit 102.
[0053] The second delay time ΔT2 corresponds to the delay from time t2 when the change of the PWM timer output to High is input to the gate drive circuit 102 to time t3 when the voltage of the output port (eg, output port 1022-1) of the gate drive circuit 102 rises.
[0054] The third delay time ΔT3 corresponds to the delay from time t3 when the voltage of the output port (eg, output port 1022-1) of the gate drive circuit 102 rises to time t4 when the gate voltage of the high potential side switching element SW1 starts to rise.
[0055] The fourth delay time ΔT4 corresponds to the delay from time t4 when the gate voltage of the high potential side switching element SW1 starts to rise to time t5 when the high potential side switching element SW1 is turned on.
[0056] In this way, the time from when the PWM timer output changes to High to when the high potential side switching element SW1 turns on (an example of the first time) tends to be significantly greater than zero due to various delays in the control circuit.
[0057] In addition, there are four times (an example of the second time) that may occur as a delay in the control circuit when turning off the high potential side switching element SW1 in the on state: a fifth delay time ΔT5, a sixth delay time ΔT6, a seventh delay time ΔT7, and an eighth delay time ΔT8, as follows.
[0058] The fifth delay time ΔT5 corresponds to the delay from time t15 when the PWM timer output changes to Low (an example of the second state) to time t16 when the change is input to the gate drive circuit 102.
[0059] The sixth delay time ΔT6 corresponds to the delay from time t16 when the change of the PWM timer output to low is input to the gate drive circuit 102 to time t17 when the voltage of the output port (eg, output port 1022-1) of the gate drive circuit 102 falls.
[0060] The seventh delay time ΔT7 corresponds to the delay from time t17 when the voltage of the output port (eg, output port 1022-1) of the gate drive circuit 102 falls to time t18 when the gate voltage of the high potential side switching element SW1 starts to fall.
[0061] The eighth delay time ΔT8 corresponds to the delay from time t18 when the gate voltage of the high potential side switching element SW1 starts to fall to time t19 when the high potential side switching element SW1 is turned off.
[0062] In this way, the time from when the PWM timer output changes to low to when the high potential side switching element SW1 turns off (an example of the second time) tends to be significantly greater than zero due to various delays in the control circuit.
[0063] In this case, the time converted value of the effective duty is as follows: Note that the time converted value indicates the time related to the duty (value obtained by converting % into time). Actual duty = Timer setting value (time conversion value) - (ΔT1 + ΔT2 + ΔT3 + ΔT4) + (ΔT5 + ΔT6 + ΔT7 + ΔT8) In the comparative example where the timer set value=the target duty α, the actual duty is as follows: Actual duty (time conversion value) = Target duty α (time conversion value) - (ΔT1 + ΔT2 + ΔT3 + ΔT4) + (ΔT5 + ΔT6 + ΔT7 + ΔT8) At this time, if the delay time on the ON side (=ΔT1+ΔT2+ΔT3+ΔT4) does not match the delay time on the OFF side (=ΔT5+ΔT6+ΔT7+ΔT8), an error corresponding to the difference occurs between the actual duty and the target duty α. When such an error occurs, an error occurs in the phase current calculated based on the target duty α (see the above description of the phase current calculation unit 74) with respect to the actual phase current.
[0064] In contrast, according to this embodiment, even if the on-side delay time (= ΔT1 + ΔT2 + ΔT3 + ΔT4) and the off-side delay time (= ΔT5 + ΔT6 + ΔT7 + ΔT8) do not match, the error that occurs in the comparative example as described above can be reduced by appropriately setting a predetermined correction value β as described above.
[0065] Specifically, in this embodiment, the predetermined correction value β is preferably a value corresponding to the difference obtained by subtracting the OFF-side delay time (=ΔT5+ΔT6+ΔT7+ΔT8) from the ON-side delay time (=ΔT1+ΔT2+ΔT3+ΔT4). Specifically, the predetermined correction value β is as follows. Predetermined correction value β (time conversion value) = ΔT1 + ΔT2 + ΔT3 + ΔT4 - (ΔT5 + ΔT6 + ΔT7 + ΔT8) In this case, as shown in Fig. 6, even if the ON delay time (= ΔT1 + ΔT2 + ΔT3 + ΔT4) and the OFF delay time (= ΔT5 + ΔT6 + ΔT7 + ΔT8) do not match, the actual duty and the target duty α can be made to match. As a result, as described above, the accuracy of the phase current calculated by the phase current calculation unit 74 can be effectively improved. Furthermore, the accuracy of the target duty α set by the setting unit 70 is improved, and the reliability of the control related to the motor 12 can be improved.
[0066] The ON-side delay time and the OFF-side delay time may differ slightly for each individual due to individual differences in the control circuit, but a common value may be used for each model number, for example. In this case, the ON-side delay time and the OFF-side delay time may be measured by testing or the like at the design stage, and a predetermined correction value β (common value) may be adapted to the measurement results. In this case, the common value may be updated periodically.
[0067] In the modified example, the predetermined correction value β can be set in various ways by appropriately changing the ON-side delay time and the OFF-side delay time. The predetermined correction value β may be set in various ways, for example, as follows. Predetermined correction value β (time conversion value) = ΔT1 + ΔT2 - (ΔT5 + ΔT6) Predetermined correction value β (time conversion value) = ΔT1 + ΔT2 + ΔT3 - (ΔT5 + ΔT6 + ΔT7) Predetermined correction value β (time conversion value) = ΔT1 + ΔT2 + ΔT4 - (ΔT5 + ΔT6 + ΔT8) Predetermined correction value β (time conversion value) = ΔT1 + ΔT2 - (ΔT7 + ΔT8) Although an embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and designs that do not deviate from the gist of the present invention are also included.
[0068] In addition, the following supplementary notes are disclosed regarding the above-mentioned embodiment of the present invention.
[0069] (Appendix 1) A motor control device 10 that controls a phase current flowing through a motor 12 electrically connected to a power source 3 via an inverter circuit 103 so that the phase current follows a target phase current, A setting unit 70 that sets a target duty α; a timer output generating unit 72 that generates a timer output based on the target duty set by the setting unit and a predetermined correction value β; a drive unit (motor drive unit 110) that generates a drive signal for turning on / off a switching element of the inverter circuit based on the timer output generated by the timer output generation unit; a first acquisition unit 761 that acquires a detection value of a power supply current flowing between the power supply and the inverter circuit; a phase current calculation unit that derives a calculated value of the phase current based on the target duty set by the setting unit and the detection value of the power supply current acquired by the first acquisition unit, A motor control device, wherein the setting unit sets the target duty based on a calculated value of the phase current calculated by the phase current calculation unit and the target phase current.
[0070] According to Supplementary Note 1, even if an error occurs between the target duty and the actual duty due to a delay in the control circuit, the error can be reduced or eliminated by applying a predetermined correction value. This provides a motor control device that can accurately calculate a phase current value based on the power supply current without using a sensor that detects the phase current.
[0071] (Appendix 2) 2. The motor control device of claim 1, wherein the predetermined correction value is adapted based on a first time from when the timer output changes to a first state that turns on the switching element to when the switching element is turned on, and a second time from when the timer output changes to a second state that turns off the switching element to when the switching element is turned off.
[0072] According to Supplementary Note 2, the delay in turning on the switching element and the delay in turning off the switching element can be taken into consideration among the delays of the control circuit, so that the accuracy of the predetermined correction value for the error between the target duty and the actual duty can be improved.
[0073] (Appendix 3) the predetermined correction value is a value based on a difference between the first time and the second time, The motor control device described in Appendix 2, wherein the timer output generation unit generates the timer output so that a time related to the target duty plus a time related to the predetermined correction value becomes a duration of the first state in the timer output.
[0074] According to Supplementary Note 3, the difference between the delay when turning on the switching element and the delay when turning off the switching element can be taken into account, so that the accuracy of the predetermined correction value for the error between the target duty and the actual duty can be improved.
[0075] (Appendix 4) The first time period is a first delay time from a point in time when the timer output changes to the first state until the change in the timer output to the first state is input to the drive unit; a second delay time from a point in time when the change to the first state is input to the drive unit until a voltage at an output port of the drive unit, which is related to the drive signal, rises; a third delay time from when the voltage at the output port of the drive unit rises to when the gate voltage of the switching element starts to rise; and a fourth delay time from when the gate voltage of the switching element starts to rise until the switching element is turned on; 4. The motor control device according to claim 2 or 3, comprising at least one of the following:
[0076] According to supplementary note 4, since the first time period can be appropriately set, it is possible to improve the accuracy of a predetermined correction value for the error between the target duty and the actual duty.
[0077] (Appendix 5) The second time period is a fifth delay time from a point in time when the timer output changes to the second state until the change in the timer output to the second state is input to the drive unit; a sixth delay time from a point in time when the change to the second state is input to the drive unit until a voltage at an output port of the drive unit and related to the drive signal falls; a seventh delay time from when the voltage at the output port of the drive unit falls to when the gate voltage of the switching element starts to fall; and an eighth delay time from when the gate voltage of the switching element starts to fall to when the switching element is turned off; 5. The motor control device according to claim 2, further comprising at least one of the above.
[0078] According to supplementary note 5, since the second time period can be appropriately set, it is possible to improve the accuracy of a predetermined correction value for the error between the target duty and the actual duty.
[0079] (Appendix 6) In the motor control device according to any one of Supplementary Note 1 to Supplementary Note 5, a second acquisition unit that acquires a detection value of a parameter that indicates at least one of a power supply voltage of the power supply and a temperature of the driving unit; The motor control device further comprises a correction value calculation unit 721 that calculates the predetermined correction value based on the detection value of the parameter acquired by the second acquisition unit.
[0080] According to Supplementary Note 6, even if the power supply voltage of the power supply or the temperature of the drive unit fluctuates, an appropriate predetermined correction value can be set, and the accuracy of the predetermined correction value for the error between the target duty and the actual duty can be improved.
[0081] (Appendix 7) A motor control method for controlling a phase current flowing through a motor electrically connected to a power supply via an inverter circuit so as to follow a target phase current, comprising: A setting step for setting a target duty; a timer output generating step of generating a timer output based on the target duty set in the setting step and a predetermined correction value; a driving step of generating a driving signal for turning on / off a switching element of the inverter circuit based on the timer output generated in the timer output generating step; a first acquisition step of acquiring a detection value of a power supply current flowing between the power supply and the inverter circuit; a phase current calculation step of deriving a calculated value of the phase current based on the target duty set in the setting step and the detection value of the power supply current acquired in the first acquisition step, A motor control method, wherein the setting step sets the target duty based on the calculated value of the phase current calculated in the phase current calculation step and the target phase current.
[0082] According to Supplementary Note 7, even if an error occurs between the target duty and the actual duty due to a delay in the control circuit, such an error can be reduced or eliminated by applying a predetermined correction value. This provides a motor control method that can accurately derive a calculated value of the phase current based on the power supply current without using a sensor that detects the phase current. [Explanation of symbols]
[0083] 2 Motor drive system 3 Power supply 10 Motor control device 12 Motor 13 Rotation Sensor 13u, 13v, 13w coil 14 Current Sensor 41 Amplifier 70 Setting section 72 Timer output generator 74 Phase current calculation section 76 Parameter Acquisition Section 102 Gate drive circuit 103 Inverter circuit 110 Motor drive unit 112 Current control section 114 Rotational speed calculation unit 116 Target value acquisition unit 118 Speed control section 1181 Speed PI control unit 1182 Current PI control unit 721 Correction value calculation unit 761 First acquisition part 762 Second acquisition part 1021-1~1021-6 Input ports 1022-1~1022-6 Output ports
Claims
1. A motor control method for controlling a phase current flowing through a motor electrically connected to a power supply via an inverter circuit so as to follow a target phase current, comprising: A setting step for setting a target duty; a timer output generating step of generating a timer output based on the target duty set in the setting step and a predetermined correction value; a driving step of generating a driving signal for turning on / off a switching element of the inverter circuit based on the timer output generated in the timer output generating step; a first acquisition step of acquiring a detection value of a power supply current flowing between the power supply and the inverter circuit; a phase current calculation step of deriving a calculated value of the phase current based on the target duty set in the setting step and the detection value of the power supply current acquired in the first acquisition step, the setting step sets the target duty based on a calculated value of the phase current calculated in the phase current calculation step and the target phase current; the predetermined correction value is a value based on a difference between a first time from when the timer output changes to a first state for turning on the switching element to when the switching element is turned on, and a second time from when the timer output changes to a second state for turning off the switching element to when the switching element is turned off, the timer output generating step generates the timer output such that a time obtained by adding a time related to the target duty to a time related to the predetermined correction value becomes a duration of the first state in the timer output; The motor control method further comprises a measuring step of measuring the first time and the second time in advance.
2. The first time period is a first delay time from a point in time when the timer output changes to the first state until the change in the timer output to the first state is input to a drive unit that generates the drive signal; a second delay time from a time point when the change to the first state is input to the drive unit until a voltage at an output port of the drive unit, which is related to the drive signal, rises; a third delay time from when the voltage at the output port of the drive unit rises to when the gate voltage of the switching element starts to rise; and a fourth delay time from the time when the gate voltage of the switching element starts to rise until the switching element is turned on; 2. The motor control method according to claim 1, further comprising at least one of the following:
3. The second time period is: a fifth delay time from a point in time when the timer output changes to the second state until the change in the timer output to the second state is input to a drive unit that generates the drive signal; a sixth delay time from a time point when the change to the second state is input to the drive unit until a voltage at an output port of the drive unit and related to the drive signal falls; a seventh delay time from the time when the voltage at the output port of the drive unit falls to the time when the gate voltage of the switching element starts to fall; and an eighth delay time from the time when the gate voltage of the switching element starts to fall to the time when the switching element is turned off; The motor control method according to claim 1 or 2, further comprising at least one of the following:
4. A second acquisition step of acquiring a detection value of a parameter representing at least one of a power supply voltage of the power supply and a temperature of a drive unit that generates the drive signal; 4. The motor control method according to claim 1, further comprising: a correction value calculation step of calculating the predetermined correction value based on the detection value of the parameter acquired in the second acquisition step.
Citation Information
Patent Citations
Power conversion device
JP2013055801A
Driving method of motor, motor drive and hard disc device
JP2016152631A
Motor controller
JP2017028944A
Motor drive device
JP2019205269A
