Motor control device and electric power steering device
The motor control device stabilizes motor control in electric power steering systems by limiting the on-time of switching elements to ensure current detection, addressing issues with duty cycle reductions caused by external forces.
Patent Information
- Application Number
- PCT/JP2025/017450
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2026-11-19
AI Technical Summary
In electric power steering systems, the motor can rotate in the opposite direction due to external forces, causing a decrease in the duty cycle of PWM control, which can lead to the inability to detect motor current and disrupt current feedback.
A motor control device with a current control circuit, drive circuit, and current detection circuit that limits the on-time of switching elements to ensure current detection, even under conditions where the duty cycle of PWM control is small, using a configuration that includes positive and negative switching elements connected in series with the motor coil terminals and a drive signal control device to manage the on-time of switching elements.
Enables stable motor control by ensuring current detection even when the duty cycle is small, preventing disruptions to current feedback and maintaining motor control stability.
Smart Images

Figure JP2025017450_19112026_PF_FP_ABST
Abstract
Description
Motor Control Device and Electric Power Steering Device
[0001] The present disclosure relates to a motor control device and an electric power steering device.
[0002] Electric power steering devices have been manufactured in which a motor control device controls the driving of a motor to assist the steering of a vehicle. The electric power steering device performs processing to control the output of the motor through current feedback, calculates an operation amount based on the deviation between a target motor current calculated based on signals obtained from various sensors and a detected motor current detected by a current detection unit, converts the operation amount into a duty value for PWM control for driving the motor, and outputs the duty value.
[0003] As the current detection unit, there is a sampling method for sampling the amount of current flowing from the positive electrode side of a power supply to the negative electrode side of the power supply via the motor at the timing when the PWM drive signal is ON. In this case, as the duty value decreases, the period during which the PWM drive signal is ON becomes shorter, so the timing for sampling the current amount becomes limited, and eventually sampling becomes impossible. If the current amount cannot be sampled, the motor current cannot be detected, and the current feedback will no longer function.
[0004] For this reason, a means is disclosed that increases the duty value of PWM control by interspersing motor driving in the direction opposite to the motor driving direction under conditions where the motor output is low, so that the duty value of PWM control does not decrease to a value at which current amount sampling cannot be performed (see, for example, Patent Document 1).
[0005] On the other hand, in order to ensure safety in electric power steering devices, a means is disclosed that provides a mechanism for prohibiting motor driving in the direction opposite to the motor driving direction (see, for example, Patent Document 2). According to this mechanism, even if the motor attempts to be driven in the direction opposite to the intended motor driving direction due to a failure in the motor drive system circuit, safety is ensured because the motor driving is prohibited.
[0006] Japanese Patent No. 5277671 Japanese Patent No. 3285490
[0007] In electric power steering systems, the motor may be rotated in the opposite direction to its driving direction due to external forces from the tires. In this case, the motor generates a back electromotive force, and the duty cycle of the PWM control decreases accordingly. If the duty cycle of the PWM control becomes too small to detect the motor current, the current feedback will cease to function.
[0008] While Patent Document 1 discloses a method for controlling a motor when the duty cycle of PWM control is small, the electric power steering system employs the technology disclosed in Patent Document 2, which prohibits motor drive in the reverse direction to the motor's drive direction. Therefore, the technology disclosed in Patent Document 1, which performs motor drive in the reverse direction to the motor's drive direction, cannot be applied.
[0009] This disclosure is made in view of the circumstances described above, and one of its objectives is to provide a motor control device and an electric power steering device that perform stable motor control even under conditions where the duty cycle of PWM control is small.
[0010] The motor control device according to this disclosure comprises a current control circuit having a plurality of legs provided with a positive-side switching element connected to the positive terminal of a DC power supply, a negative-side switching element connected to the negative terminal of the DC power supply, and an external connection point that connects the positive-side switching element and the negative-side switching element in series and is connected to the coil terminal of a motor; a drive circuit that outputs a drive signal to drive the switching element on and off; a current detection circuit that detects the current flowing through the motor coil when the switching element is turned on; and an output signal control device that limits the on time of the switching element to be at least longer than a first predetermined time during which the current detection circuit can detect the current flowing through the motor coil.
[0011] Furthermore, the electric power steering device according to this disclosure comprises the motor and the motor control device described above.
[0012] According to this disclosure, the motor control device can perform stable motor control even under conditions where the duty cycle of PWM control is small.
[0013] This is a configuration diagram showing an example of a motor control device according to Embodiment 1. This is a hardware configuration diagram of the output signal control device of the motor control device according to Embodiment 1. This is a diagram showing an example of the current supply path when the motor is driven according to Embodiment 1. This is a diagram showing the relationship between motor current, motor electromotive force, and PWM control drive duty cycle value with respect to motor rotation speed according to Embodiment 1. This is a first flowchart showing the processing of the drive processing unit according to Embodiment 1. This is a second flowchart showing the processing of the drive processing unit according to Embodiment 1. This is a third flowchart showing the processing of the drive processing unit according to Embodiment 1. This is a time chart showing an example of operation when the PWM control drive duty cycle value of the motor control device according to Embodiment 1 is limited. This is a configuration diagram showing an example of an electric power steering device according to Embodiment 1. This is a configuration diagram showing an example of a motor control device according to Embodiment 2. This is a diagram showing the first example of the relationship between motor current, motor electromotive force, and PWM control drive duty cycle value with respect to motor rotation speed according to Embodiment 2. This is a diagram showing the second example of the relationship between motor current, motor electromotive force, and PWM control drive duty cycle value with respect to motor rotation speed according to Embodiment 2. This is a second flowchart showing the processing of the drive processing unit according to Embodiment 2. This is a time chart showing an example of operation when the drive duty cycle value of the PWM control of the motor control device according to Embodiment 3 is limited. This is a configuration diagram showing an example of the motor control device according to Embodiment 3. This is a second flowchart showing the processing of the drive processing unit according to Embodiment 3. This is a flowchart showing an example of the current detection value selection process according to Embodiment 3. This is a time chart showing an example of operation when the drive duty cycle value of the PWM control of the motor control device according to Embodiment 3 is limited. This is a configuration diagram showing an example of the motor control device according to Embodiment 4. This is a second flowchart showing the processing of the drive processing unit according to Embodiment 4. This is a time chart showing an example of operation when the drive duty cycle value of the PWM control of the motor control device according to Embodiment 4 is limited.
[0014] Hereinafter, embodiments of the motor control device and electric power steering device according to this disclosure will be described with reference to the drawings. In each figure, the same or corresponding parts are denoted by the same reference numerals, and redundant explanations are omitted.
[0015] 1. Embodiment 1 First, the motor control device according to Embodiment 1 will be described with reference to the drawings. <Configuration of the motor control device> Figure 1 is a configuration diagram showing an example of the motor control device according to Embodiment 1. The motor control device 1 shown in Figure 1 controls the electric power steering device (described later with reference to Figure 9). The motor control device 1 receives signals from a torque sensor 2 that measures the driver's steering force, a vehicle speed sensor 3 that measures the vehicle's speed, and a steering angle sensor 4 that measures the steering angle. The motor control device 1 then controls the output of the motor 5 that generates power for the electric power steering device based on the input signals from the torque sensor 2, the vehicle speed sensor 3, and the steering angle sensor 4.
[0016] Motor 5 is driven to the right (clockwise rotation; forward rotation) by passing current from the motor positive terminal M+ to the motor negative terminal M-. Conversely, motor 5 is driven to the left (counterclockwise rotation; reverse rotation) by passing current from the motor negative terminal M- to the motor positive terminal M+.
[0017] The motor control device 1 comprises an output signal control device 11, a drive circuit 12, a current control circuit 15, and a current detector 16. The output signal control device 11 performs calculations based on signals input from outside the motor control device 1 and signals generated internally, and outputs signals to control the circuits built into the motor control device 1.
[0018] The current control circuit 15 supplies current to the motor 5. The current control circuit 15 has positive-side switching elements FET1 and FET2 connected to the positive terminal of the DC power supply, and negative-side switching elements FET3 and FET4 connected to the negative terminal of the DC power supply. The positive-side switching elements and the negative-side switching elements are connected in series to form two sets of legs. Current is then supplied from the connection point between the positive-side and negative-side switching elements to the motor's coil terminals, namely the motor's positive terminal M+ and motor's negative terminal M-.
[0019] The drive circuit 12 converts the control signals SD1 to SD4 output from the output signal control device 11 into drive signals D1 to D4 that drive the gates of the switching elements, and outputs them to the current control circuit 15.
[0020] The current detector 16 is positioned between the negative terminal of the current control circuit 15 and the ground terminal (GND) and detects the current flowing through the coil of the motor 5. When the motor 5 is energized, the current detector 16 detects the current flowing from the current control circuit 15 to the ground terminal and outputs the detected current value as the current detection value SCU to the output signal control device 11.
[0021] <Output Signal Control Device> The output signal control device 11 is equipped with a target current calculation unit 21 and a drive processing unit 22. The target current calculation unit 21 calculates the target current value TCU of the motor 5 based on a signal input from outside the motor control device 1 and outputs it to the drive processing unit 22.
[0022] The drive processing unit 22 receives the target current value TCU output by the target current calculation unit 21 and the current detection value SCU output by the current detector 16 as input. The drive processing unit 22 then outputs control signals SD1 to SD4 to the drive circuit 12 so that the input target current value TCU and current detection value SCU match.
[0023] Specifically, the drive processing unit 22 includes a deviation calculation process 22a, an manipulated variable calculation process 22b, and a duty cycle limiting process 22c. The deviation calculation process 22a calculates the difference between the target current value TCU and the current detection value SCU and outputs it as a deviation DCU to the manipulated variable calculation process 22b. The deviation calculation process 22a also determines the driving direction of the motor 5 based on the polarity of the target current value TCU and outputs a motor driving direction DIR indicating the driving direction of the motor 5 to the duty cycle limiting process 22c.
[0024] The manipulated variable calculation process 22b receives the deviation DCU output from the deviation calculation process 22a as input. Based on the input deviation DCU, the manipulated variable calculation process 22b calculates the voltage to be applied to the motor 5, calculates the duty cycle (ratio of on time to one period) for PWM (Pulse Width Modulation) drive, and outputs a duty cycle signal SDT indicating the calculated duty cycle value to the duty cycle limiting process 22c.
[0025] The duty cycle limiting process 22c receives the duty cycle signal SDT output from the manipulated variable calculation process 22b and the motor drive direction DIR output from the deviation calculation process 22a. The duty cycle limiting process 22c determines whether the input duty cycle signal SDT is a value that can be detected by the current detector 16. If the duty cycle limiting process 22c determines that the value cannot be detected, it replaces it with a value that can be detected and outputs control signals SD1 to SD4 corresponding to the motor drive direction DIR as PWM signals to the drive circuit 12.
[0026] <Current Control Circuit> The current control circuit 15 is equipped with switching elements FET1 to FET4. The current control circuit 15 is also called an H-bridge circuit.
[0027] A leg is formed by connecting the positive-side switching element FET2 and the negative-side switching element FET3 in series. The motor's positive terminal M+, which is the coil terminal of the motor 5, is connected to the connection point of this series-connected leg. Another leg is formed by connecting the positive-side switching element FET1 and the negative-side switching element FET4 in series. The motor's negative terminal M-, which is the coil terminal of the motor 5, is connected to the connection point of this other leg.
[0028] The switching elements FET1 to FET4 are each semiconductors. The switching elements FET1 to FET4 may consist of one or more MOSFETs (Metal oxide Semiconductor Field Effect Transistors) with a parasitic diode built into the source-drain junction, or SiC-MOSFETs using SiC (Silicon Carbide). Alternatively, the switching elements FET1 to FET4 may consist of an IGBT (Insulated Gate Bipolar Transistor) and a diode connected in antiparallel between the emitter and collector of the IGBT. Hereafter, the switching elements FET1 to FET4 may be simply referred to as FET1 to FET4.
[0029] <Hardware Configuration of Output Signal Control Device> Figure 2 is a hardware configuration diagram of the output signal control device 11 of the motor control device 1 according to Embodiment 1. In this embodiment, the output signal control device 11 is a control device that controls the motor control device 1. Each function of the output signal control device 11 is realized by the processing circuits provided in the output signal control device 11. Specifically, the output signal control device 11 includes, as processing circuits, a arithmetic processing unit 90 (computer) such as a CPU (Central Processing Unit), a storage device 91 that exchanges data with the arithmetic processing unit 90, an input circuit 92 that inputs external signals to the arithmetic processing unit 90, and an output circuit 93 that outputs signals from the arithmetic processing unit 90 to the outside.
[0030] The arithmetic processing unit 90 may include an ASIC (Application Specific Integrated Circuit), an IC (Integrated Circuit), a DSP (Digital Signal Processor), an FPGA (Field Programmable Gate Array), various logic circuits, and various signal processing circuits. Furthermore, multiple arithmetic processing units 90 of the same or different types may be provided, and each processing unit may be assigned to a specific task.
[0031] The storage device 91 includes a RAM (Random Access Memory) configured to allow data to be read from and written to the arithmetic processing unit 90, and a ROM (Read Only Memory) configured to allow data to be read from the arithmetic processing unit 90.
[0032] The input circuit 92 is connected to various sensors and switches, including a torque sensor 2, a vehicle speed sensor 3, a steering angle sensor 4, and a current detector 16. The input circuit 92 includes interface circuits such as an AD conversion unit and an input circuit for inputting the output signals of the connected sensors and switches to the arithmetic processing unit 90.
[0033] The output circuit 93 is connected to an electrical load such as a switching element or actuator, which includes the drive circuit 12. The output circuit 93 includes interface circuits such as a drive circuit and a communication circuit that convert and output the output signal from the arithmetic processing unit 90 to the connected electrical load. The output signal control device 11 may also incorporate some or all of the functions of the drive circuit 12 internally.
[0034] Each function of the output signal control device 11 is realized, for example, by the arithmetic processing unit 90 executing software (programs) stored in a storage device 91 such as ROM, and cooperating with other hardware of the output signal control device 11, such as the storage device 91, input circuit 92, and output circuit 93. The setting data such as thresholds and judgment values used by the output signal control device 11 are stored in the storage device 91 such as ROM as part of the software (program).
[0035] Furthermore, each function of the output signal control device 11 may be composed of a software module, or it may be composed of a combination of software and hardware. The entire output signal control device 11 may also be integrated into a single package, or it may be treated as a so-called one-chip microcontroller.
[0036] <Motor Drive Control and Current Detector> Figure 3 is a diagram showing an example of the current supply path when a motor is driven according to Embodiment 1. This Figure 3 shows the current supply path of the motor current when FET2 and FET4 are driven by PWM control and current is supplied to the motor 5 from the motor positive terminal M+ to the motor negative terminal M-. The current flowing through the motor 5 when the PWM is on flows to the current detector 16. Therefore, the drive processing unit 22 acquires the output of the current detector 16 as a current detection value SCU when the PWM is on. When detecting the current flowing through the motor 5 using this method, it is necessary to ensure that the PWM is on for a predetermined time or longer (for example, 10 us or more) in order to acquire the current detection value SCU.
[0037] Furthermore, if we generally denote the back electromotive force constant of a motor as Ke, the electromotive force e of the motor is proportional to the angular velocity ω of the motor and can be expressed by the following "Equation 1".
[0038] e=Keω...(Formula 1)
[0039] When motor 5 is rotated while current feedback is being performed, the duty cycle value when driven by PWM control (hereinafter referred to as the "drive duty cycle value") changes to compensate for the electromotive force e of motor 5.
[0040] Figure 4 is a diagram showing the relationship between motor current, motor electromotive force, and PWM control drive duty cycle with respect to motor speed according to Embodiment 1. In Figure 4, with motor 5 receiving current feedback to a target current value TCU, the horizontal axis represents motor speed, and the relationship between motor current, motor electromotive force, and PWM control drive duty cycle with respect to motor speed is shown. Note that the motor current value is assumed to be detected correctly regardless of the PWM control drive duty cycle.
[0041] When the motor 5 is rotated in the right direction while the motor 5 is being driven in the right direction, the electromotive force of the motor 5 increases to the negative side as the rotation speed of the motor 5 increases. Therefore, in order to maintain the motor current at the target current value TCU, the drive duty value of PWM control increases and finally reaches 100%. If the rotation speed is further increased after the drive duty value reaches 100%, the drive duty value of PWM control is saturated, so that the motor current cannot be maintained at the target current value TCU and decreases.
[0042] On the other hand, when the motor 5 is rotated in the left direction while the motor 5 is being driven in the right direction, the electromotive force of the motor 5 increases to the positive side as the rotation speed of the motor 5 increases. Therefore, in order to maintain the motor current at the target current value TCU, the drive duty value of PWM control decreases and finally reaches 0%. If the rotation speed is further increased after the drive duty value reaches 0%, the drive duty value of PWM control is saturated, so that the motor current cannot be maintained at the target current value TCU and increases.
[0043] From the above, it is necessary to take into consideration that when the motor 5 is rotated at a high speed (for example, 1000 rpm) in the direction opposite to the driving direction of the motor 5, the drive duty value of PWM control becomes small, so that the current detector 16 cannot correctly detect (measure) the current.
[0044] <Processing of Drive Processing Unit> Next, the operation of the processing executed by the drive processing unit 22 of the motor control device 1 will be described with reference to FIGS. 5 to 7.
[0045] FIG. 5 is a first flowchart showing the processing of the drive processing unit 22 according to the first embodiment, and shows the processing up to calculating the drive duty value of PWM control. This processing is processing executed by the deviation calculation processing 22a and the manipulated variable calculation processing 22b of the drive processing unit 22.
[0046] <Deviation Calculation Processing> (Step S1) The deviation calculation processing 22a calculates a deviation DCU from the difference between the target current value TCU and the detected current value SCU (DCU = TCU - SCU). Then, the deviation calculation processing 22a outputs the calculated deviation DCU to the manipulated variable calculation processing 22b. Thereafter, the process proceeds to step S2.
[0047] (Step S2) The deviation calculation process 22a determines the motor drive direction DIR based on the polarity of the target current value TCU (DIR = sign(TCU)), and outputs the result to the duty limiting process 22c. Thereafter, the process proceeds to step S3.
[0048] <Manipulated Variable Calculation Process> (Step S3) The manipulated variable calculation process 22b calculates a duty signal SDT (drive duty value for PWM control) based on the deviation DCU calculated in step S1. For example, the manipulated variable calculation process 22b performs PID control or the like to calculate the duty signal SDT (SDT = PID control (DCU)). Since this process is a general process, detailed description thereof is omitted. Thereafter, the processing of the first flowchart shown in FIG. 5 ends (the process proceeds to step S4 in FIG. 6).
[0049] FIG. 6 is a second flowchart showing processing of the drive processing unit 22 according to the first embodiment, and shows processing for imposing a limit on the drive duty value of PWM control. The processing of the second flowchart shown in FIG. 6 is processing executed by the duty limiting process 22c of the drive processing unit 22, and is executed after the processing of the first flowchart shown in FIG. 5 is completed.
[0050] <Duty Limiting Process> (Step S4) The duty limiting process 22c determines whether or not the duty signal SDT is less than a predetermined value THDT (SDT < THDT). Here, the predetermined value THDT is a threshold for determining whether or not current detection of the motor 5 is possible, and specifically, is the lower limit value of the duty at which current detection is possible (for example, 10%).
[0051] When the duty signal SDT is less than the predetermined value THDT (YES), the duty limiting process 22c proceeds to step S5. On the other hand, when the duty signal SDT is equal to or greater than the predetermined value THDT (NO), the duty limiting process 22c does not perform the processing of step S5, and terminates the processing of the second flowchart shown in FIG. 6 (proceeds to step S6 in FIG. 7).
[0052] (Step S5) The duty limiting process 22c sets a predetermined value THDT to the duty signal SDT (SDT = THDT). This limits the lower limit of the duty signal SDT so that it does not fall below the predetermined value THDT. Then, the process of the second flowchart shown in Figure 6 is completed (proceed to step S6 in Figure 7).
[0053] Figure 7 is a third flowchart showing the processing of the drive processing unit 22 according to Embodiment 1, and shows the process of outputting a PWM signal according to the drive direction. The processing of this third flowchart shown in Figure 7 is executed after the processing of the second flowchart shown in Figure 6 is completed.
[0054] (Step S6) The duty cycle limiting process 22c determines whether the motor drive direction DIR is to the right based on the motor drive direction DIR determined in step S2. If the duty cycle limiting process 22c determines that the motor drive direction DIR is to the right (YES), it proceeds to step S7. On the other hand, if the duty cycle limiting process 22c determines that the motor drive direction DIR is not to the right (YES), it proceeds to step S8.
[0055] (Step S7) The duty cycle limiting process 22c sets the duty cycle signal SDT to control signals SD2 and SD4 (SD2=SDT, SD4=SDT), and sets control signals SD1 and SD3 to OFF (SD1=OFF, SD3=OFF), and outputs a signal to the drive circuit 12 to drive the motor 5 to the right with the duty cycle signal SDT.
[0056] (Step S8) The duty cycle limiting process 22c sets the duty cycle signal SDT to control signals SD1 and SD3 (SD1=SDT, SD3=SDT), and sets control signals SD2 and SD4 to OFF (SD2=OFF, SD=OFF), and outputs a signal to the drive circuit 12 to drive the motor 5 to the left with the duty cycle signal SDT.
[0057] In this embodiment, the processes shown in Figures 5 to 7 described above are explained as being executed at predetermined intervals (for example, every 100 μs), but they may also be executed at events such as every predetermined distance traveled or every time a new sensor signal is received.
[0058] <Time Chart under Duty Cycle Limitation Conditions> Figure 8 is a time chart showing an example of operation when the drive duty cycle value of the PWM control of the motor control device 1 according to Embodiment 1 is limited. In Figure 8, the horizontal axis represents time, and it shows a state in which the motor 5 rotates to the left and gradually increases its rotational speed under the condition that the target current value TCU is output at a constant value to the right.
[0059] As the motor speed increases, the duty cycle signal SDT gradually decreases, and when it reaches a predetermined value THDT, the duty cycle signal SDT is clipped to the predetermined value THDTTHDT. As a result, the on-output time of the PWM signal maintains a state where current detection is possible, and the current detection value SCU is output correctly. However, at this time, since the duty cycle signal SDT is higher than the calculated value for current feedback control, the motor current will be output at a value higher than the target current value.
[0060] As described above, the motor control device 1 according to Embodiment 1 comprises a current control circuit 15, a drive circuit 12, a current detector 16 (an example of a current detection circuit), and an output signal control device 11. The current control circuit 15 has multiple legs, each of which is provided with a positive-side switching element (FET1, FET2, etc.) connected to the positive terminal of a DC power supply, a negative-side switching element (FET3, FET4, etc.) connected to the negative terminal of a DC power supply, and an external connection point that connects the positive-side switching element and the negative-side switching element in series and is connected to the coil terminals of the motor 5 (motor positive terminal M+, motor negative terminal M-, etc.). The drive circuit 12 outputs a drive signal to drive the switching elements on and off. The current detector 16 detects the current flowing through the coil of the motor 5 when the switching elements are turned on. The output signal control device 11 limits the on-time of the switching element (PWM on-time) to be at least longer than a first predetermined time (for example, 10 us or more) during which the current detector 16 can detect the current flowing through the coil of the motor 5.
[0061] Here, the "first predetermined time" is the time corresponding to the "predetermined value THDT," which indicates a threshold (lower limit of the duty cycle at which current can be detected) used to determine whether the duty cycle signal SDT (the driving duty cycle value for PWM control) is a driving duty cycle value that allows detection of the current flowing through the coil of the motor 5. In other words, the output signal control device 11 limits the PWM on time to be longer than the "first predetermined time," thereby ensuring that the current detector 16 can reliably detect the current flowing through the coil of the motor 5.
[0062] As a result, even under conditions where the drive duty cycle of the PWM control is small, the motor control device 1 limits the drive duty cycle so that the PWM on time is longer than the time for which the current flowing through the coil of the motor 5 can be detected, thereby enabling stable motor control.
[0063] For example, the output signal control device 11 limits the on-time of the switching element (PWM on-time) to be at least longer than a first predetermined time (e.g., 10 u or more) when the motor 5 is rotating in the opposite direction to the direction in which the motor 5 is being driven.
[0064] As a result, even when the motor control device 1 is rotated in the opposite direction to the drive direction of the motor 5, the drive duty cycle is limited so that the PWM on time is longer than the time for which the current flowing through the coil of the motor 5 can be detected, thereby enabling stable motor control.
[0065] In the motor control device 1 configured in this way, even when the motor 5 is rotated at a high speed in the opposite direction to the drive direction of the motor 5, the drive duty cycle of the motor 5 can be kept within the range in which current can be detected, so that the current feedback operates correctly. In addition, when the drive duty cycle of the motor 5 is limited, the motor current will be higher than the target current value, but this does not become a problem because when the motor 5 is rotated in the opposite direction to the drive direction of the motor 5, the steering feel of the electric power steering system is not a condition under which this is a concern.
[0066] <Electric Power Steering System> Here, we will describe an example in which the motor control device 1 and motor 5 are applied to an electric power steering system installed in a vehicle.
[0067] Figure 9 is a configuration diagram showing an example of an electric power steering device 160 according to Embodiment 1. The electric power steering device 160 shown in Figure 9 is an example of a column-type electric power steering device. The electric power steering device 160 comprises a motor control device 1, a torque sensor 2, a vehicle speed sensor 3, a motor 5, a reduction gear 6, a steering wheel 161, and front wheels 164 (wheels).
[0068] When the driver operates the steering wheel 161, generating steering torque in the vehicle's steering mechanism, the torque sensor 2 detects this steering torque and outputs it to the motor control device 1. The vehicle speed sensor 3 also detects the vehicle's speed and outputs it to the motor control device 1. Based on the inputs from the torque sensor 2 and the vehicle speed sensor 3, the motor control device 1 supplies current to the motor 5, which assists the steering torque. As a result, the motor control device 1 drives the motor 5 to generate auxiliary torque, which is supplied to the steering mechanism of the vehicle's front wheels 164 via the reduction gear 6.
[0069] The torque sensor 2 and the vehicle speed sensor 3 are some of the various sensors shown in Figure 1. The motor control device 1 may generate auxiliary torque based on inputs other than the torque sensor 2 and the vehicle speed sensor 3. By generating appropriate auxiliary torque, the steering force can be satisfied, and a motor control device 1 with improved steering feel can be obtained. This makes it possible to achieve miniaturization, weight reduction, and cost reduction of the motor control device 1 and the electric power steering device 160 while meeting the required performance.
[0070] As described above, the motor control device 1 and electric power steering device 160 according to Embodiment 1 can perform stable motor control even under conditions where the drive duty cycle value of PWM control is small. For example, the motor control device 1 and electric power steering device 160 determine conditions that do not impair the functions of the device (for example, conditions that do not affect the steering feel), and when those conditions are met, they limit the drive duty cycle value of PWM control so that the current flowing through the coil of the motor 5 can be reliably detected and measured, thereby enabling stable motor control even under conditions where the drive duty cycle value of PWM control is small.
[0071] 2. Embodiment 2 Next, a motor control device according to Embodiment 2 will be described. In Embodiment 1 described above, the drive duty cycle value of the PWM control was limited by determining when it was small, but the drive duty cycle value may also be limited by determining when the measured value of the motor's rotational speed is in the opposite direction to the motor's driving direction.
[0072] Figure 10 is a configuration diagram showing an example of a motor control device according to Embodiment 2. The motor control device 1 shown in Figure 10 differs from the motor control device 1 according to Embodiment 1 shown in Figure 1 in that the drive processing unit 22 is provided with a motor rotation speed calculation process 22d, and a motor rotation speed signal NMTR is added to perform a duty cycle limiting process 22e.
[0073] <Motor rotation speed calculation process> The motor rotation speed calculation process 22d takes in the steering angle SAGL output by the steering angle sensor 4 and calculates the motor rotation speed NMTR. The motor rotation speed NMTR is calculated from the steering angle SAGL by, for example, the following calculation.
[0074] If the reduction gear ratio is n (for example, 18.33) and the change in steering angle per unit time of 1 second is dθ [deg], the motor rotation speed NMTR [rpm] per minute can be calculated using the following "Equation 2".
[0075] NMTR=dθ÷360×60×n (Formula 2)
[0076] Figure 11 is a diagram showing a first example of the relationship between motor current, motor electromotive force, and PWM control drive duty cycle with respect to motor speed according to Embodiment 2. The example shown in Figure 11 shows the relationship between motor current, motor electromotive force, and PWM control drive duty cycle with respect to motor speed while motor 5 is receiving current feedback to a target current value TCU in the right direction.
[0077] Furthermore, the motor current value is assumed to be detected correctly regardless of the drive duty cycle of the PWM control. Also, the motor rotation speed is expressed with positive values for the rightward direction and negative values for the leftward direction.
[0078] In this case, the region where the PWM control drive duty cycle becomes small corresponds to the motor rotating to the left. Therefore, a predetermined value TH_NMTR is set relative to the motor rotation speed, and the duty cycle limit is enabled when the motor rotation speed is faster than the predetermined value TH_NMTR.
[0079] Figure 12 is a diagram showing a second example of the relationship between motor current, motor electromotive force, and PWM control drive duty cycle with respect to motor speed according to Embodiment 2. The example shown in Figure 12 shows the relationship between motor current, motor electromotive force, and PWM control drive duty cycle with respect to motor speed while motor 5 is receiving current feedback to a target current value TCU in the left direction.
[0080] Furthermore, the motor current value is assumed to be detected correctly regardless of the drive duty cycle of the PWM control. Also, the motor rotation speed is expressed with positive values for the rightward direction and negative values for the leftward direction.
[0081] In this case, the region where the PWM control drive duty cycle becomes small corresponds to the motor rotating to the right. Therefore, a predetermined value TH_NMTR is set relative to the motor rotation speed, and the duty cycle limit is enabled when the motor rotation speed is faster than the predetermined value TH_NMTR.
[0082] <Processing of the drive processing unit> Next, the operation of the processing performed by the drive processing unit 22 according to Embodiment 2 will be explained. In Embodiment 2, the processing performed by the deviation calculation processing 22a and the manipulated amount calculation processing 22b of the drive processing unit 22 is the same as the first flowchart shown in Figure 5 according to Embodiment 1, so its explanation will be omitted. The processing in Figure 13 is a continuation of the processing in Figure 5.
[0083] Figure 13 is a second flowchart showing the processing of the drive processing unit 22, which is executed after the processing of the first flowchart shown in Figure 5 in Embodiment 2. Although the processing shown in Figure 13 is described as being executed at predetermined time intervals (for example, every 100 μs), it may also be executed at events such as after a predetermined distance traveled or after receiving a new sensor signal.
[0084] <Motor Speed Calculation Process> First, the operation of the process performed by the motor speed calculation process 22d of the drive processing unit 22 will be explained. When the process of the first flowchart shown in Figure 5 is completed, the motor speed calculation process 22d starts the process of the second flowchart shown in Figure 13.
[0085] (Step S11) The motor rotation speed calculation process 22d calculates the steering angle change amount dθ from the difference between the steering angle SAGL 1 second after the previous calculation and the previous steering angle SAGL_old (dθ = SAGL - SAGL_old). Then proceed to step S12.
[0086] (Step S12) The motor rotation speed calculation process 22d updates the previous steering angle SAGL_old with the steering angle SAGL (SAGL_old = ASGL), and proceeds to step S13.
[0087] (Step S13) The motor rotation speed calculation process 22d calculates the motor rotation speed NMTR based on the equation (2) described above. Here, the motor rotation speed NMTR is assumed to be a positive value when moving to the right and a negative value when moving to the left.
[0088] <Duty Limit Processing> Next, the operation of the processing performed by the duty limit processing 22e of the drive processing unit 22 will be explained. When the processing in step S13 is completed, the process proceeds to step S21.
[0089] (Step S21) The duty cycle limiting process 22e determines whether the motor drive direction DIR is to the right. If the duty cycle limiting process 22e determines that the motor drive direction DIR is to the right (YES), the process proceeds to step S22. On the other hand, if the duty cycle limiting process 22e determines that the motor drive direction DIR is not to the right (YES), the process proceeds to step S23.
[0090] (Step S22) The duty cycle limiting process 22e determines whether the motor is rotating in the left direction and the motor rotation speed NMTR is rotating at a speed faster than a predetermined value TH_NMTR. If the duty cycle limiting process 22e determines that the conditions are met (YES), it terminates the process of the second flowchart shown in Figure 13. If it determines that the conditions are not met (NO), it proceeds to step S23.
[0091] (Step S23) The duty cycle limiting process 22e determines whether the motor drive direction DIR is to the left or not. If the duty cycle limiting process 22e determines that the motor drive direction DIR is to the left (YES), the process proceeds to step S24. On the other hand, if the duty cycle limiting process 22e determines that the motor drive direction DIR is not to the left (NO), the process proceeds to step S25.
[0092] (Step S24) The duty cycle limiting process 22e determines whether the motor is rotating in the rightward direction and at a speed higher than a predetermined value TH_NMTR. If the duty cycle limiting process 22e determines that the conditions are met (YES), it terminates the process of the second flowchart shown in Figure 13. If it determines that the conditions are not met (NO), it proceeds to step S25.
[0093] (Step S25) The duty limit process 22e compares the duty signal SDT with a predetermined value THDT (the predetermined value is, for example, 10%) and determines whether the duty signal SDT is less than the predetermined value THDT. If the duty limit process 22e determines that the duty signal SDT is less than the predetermined value THDT (YES), it proceeds to step S26. On the other hand, if the duty limit process 22e determines that the duty signal SDT is not less than the predetermined value THDT (NO), it terminates the process of the second flowchart shown in Figure 13.
[0094] When the duty limit process 22e completes the process shown in the second flowchart of Figure 13, it starts the same process as the process shown in the third flowchart of Figure 7 according to Embodiment 1.
[0095] In the motor control device 1 according to the second embodiment, the output signal control device 11 limits the on-time of the switching element (PWM on-time) to be longer than at least a first predetermined time (for example, 10 u or more) only when the motor 5 is rotating in the opposite direction to the direction in which the motor 5 is being driven.
[0096] As a result, when the motor control device 1 is rotated in the opposite direction to the drive direction of the motor 5, it limits the drive duty cycle so that the PWM on time is longer than the time for which the current flowing through the coil of the motor 5 can be detected, thereby enabling stable motor control.
[0097] Furthermore, in the motor control device 1, the condition under which the limit on the drive duty cycle becomes effective is limited to when the motor 5 is rotated at a high rotational speed in the opposite direction to the drive direction of the motor 5. Therefore, it is possible to prevent the limit on the drive duty cycle from occurring under unintended conditions.
[0098] 3. Embodiment 3 Next, a motor control device according to Embodiment 3 will be described. In Embodiments 1 to 2 described above, the duty signal SDT was limited so as not to fall below a predetermined value THDT (threshold). In contrast, Embodiment 3 provides two thresholds: a first threshold and a second threshold that is smaller than the first threshold. When the duty signal is between the first and second thresholds, the output value of the duty signal is set to the first threshold, and when it is smaller than the second threshold, the output value of the duty signal is set to the calculated duty signal value. The calculated duty signal value is the value of the duty signal SDT (drive duty value for PWM drive) calculated by the manipulated variable calculation process 22b.
[0099] However, if the duty cycle signal is smaller than the second threshold, current detection cannot be performed correctly, so current control is performed using a pseudo-calculated current value.
[0100] Figure 14 is a time chart showing an example of operation when the drive duty cycle of the PWM control of the motor control device 1 according to Embodiment 3 is limited. In Figure 14, the horizontal axis represents time, and it shows a state in which the motor 5 rotates to the left and gradually increases its rotational speed under the condition that the target current value TCU is output at a constant value to the right.
[0101] In the following, the duty cycle signal calculation value will be referred to as the duty cycle signal calculation value SDT, and the duty cycle signal output value will be referred to as the duty cycle signal output value SDT_out. Furthermore, the two thresholds will be referred to as the first threshold THDT1 and the second threshold THDT2. For example, the first threshold THDT1 corresponds to the predetermined value THDT in Embodiments 1 and 2.
[0102] As the motor speed increases, the calculated duty cycle signal value SDT gradually decreases, and the duty cycle signal output value SDT_out, which is set to the calculated duty cycle signal value SDT, also gradually decreases. When the calculated duty cycle signal value SDT reaches the first threshold THDT1 as the motor speed increases, the duty cycle signal output value SDT_out is set to the first threshold THDT1 (for example, a predetermined value THDT). As a result, the ON output time of the PWM signal maintains a state where current detection is possible, and the current detection value SCU is output correctly.
[0103] As the motor speed increases further, the duty cycle signal calculation value SDT decreases to the second threshold THDT2. From the time the duty cycle signal calculation value SDT reaches the first threshold THDT1 until it reaches the second threshold THDT2, the duty cycle signal output value SDT_out is set to the first threshold THDT1 (for example, a predetermined value THDT). However, when the duty cycle signal calculation value SDT reaches the second threshold THDT2, the value of the duty cycle signal calculation value SDT is output as the duty cycle signal output value SDT_out. Current detection sets a pseudo value according to the calculation described later, and the drive duty cycle value is intermittently set to a value greater than or equal to the first threshold THDT1 to obtain the actual current.
[0104] When the duty cycle signal output value SDT_out is less than the second threshold THDT2, the motor is basically controlled with a drive duty cycle value smaller than the first threshold THDT1, and intermittently controlled to have a drive duty cycle value greater than the first threshold THDT1. As a result, the average motor current is lower than in the methods of Embodiments 1 and 2.
[0105] Figure 15 is a configuration diagram showing an example of a motor control device according to Embodiment 3. The motor control device 1 shown in Figure 15 differs from the motor control device 1 according to Embodiment 1 shown in Figure 1 in that the output signal control device 11 is provided with a current detection value selection process 23.
[0106] The current detection value selection process 23 selects the value of the pseudo-current detection value SCU_v when the pseudo-current detection value SCU_v is valid, and selects the value of the current detection value SCU when the pseudo-current detection value SCU_v is invalid, and outputs the selected value as the current detection value SCU_m.
[0107] Furthermore, the deviation calculation process 22f of the drive processing unit 22 differs from Embodiment 1 in that it takes the selected current detection value SCU_m as the current detection value, and the duty cycle limiting process 22g outputs a pseudo current detection value SCU_v. The pseudo current detection value SCU_v represents the current value when it is positive, and indicates that it is invalid when it is negative.
[0108] Figure 16 is a second flowchart showing the processing of the drive processing unit 22 (duty limit processing 22g) that is executed after the processing of the first flowchart shown in Figure 5 in Embodiment 3. In Embodiment 3, the processing performed by the deviation calculation processing 22a and the manipulated amount calculation processing 22b of the drive processing unit 22 is the same as the first flowchart shown in Figure 5 in Embodiment 1, so its explanation is omitted. The processing in Figure 16 is a continuation of the processing in Figure 5.
[0109] <Duty Limit Processing> When the processing of the first flowchart shown in Figure 5 is completed, the duty limit processing 22g starts the processing of the second flowchart shown in Figure 16.
[0110] (Step S31) The duty limiting process 22g compares the duty signal calculation value SDT with a first threshold THDT1 (for example, 10%) and determines whether it is less than the first threshold THDT1. If the duty limiting process 22g determines that the duty signal calculation value SDT is less than the first threshold THDT1 (YES), it proceeds to step S32. On the other hand, if the duty limiting process 22g determines that the duty signal calculation value SDT is not less than the first threshold THDT1 (NO), it proceeds to step S41.
[0111] (Step S32) The duty limiting process 22g compares the duty signal calculation value SDT with the second threshold THDT2 and determines whether it is less than the second threshold THDT2. If the duty limiting process 22g determines that the duty signal calculation value SDT is less than the second threshold THDT2 (YES), it proceeds to step S33. On the other hand, if the duty limiting process 22g determines that the duty signal calculation value SDT is not less than the second threshold THDT2 (NO), it proceeds to step S39.
[0112] (Step S33) The duty limiting process 22g sets the duty signal output value SDT_out to the value of the duty signal calculation value SDT (SDT_out = SDT). Then proceed to step S34.
[0113] (Step S34) The duty cycle limiting process 22g determines whether the pseudo-current detection value SCU_v is invalid or not. If the duty cycle limiting process 22g determines that the pseudo-current detection value SCU_v is invalid (YES), it proceeds to step S35. On the other hand, if the duty cycle limiting process 22g determines that the pseudo-current detection value SCU_v is not invalid (NO), it proceeds to step S36.
[0114] (Step S35) The duty cycle limiting process 22g sets the pseudo-current detection value SCU_v to 30 [A] (SCU_v = 30 "A"). After that, the process of the second flowchart shown in Figure 16 is terminated. Here, the pseudo-current detection value SCU_v is set to a specific current value, but it may also be set to a value based on the target current value TCU or the previously acquired value of the current detection value SCU (for example, target current value TCU + 12 [A]).
[0115] (Step S36) The duty cycle limiting process 22g reduces the pseudo-current detection value SCU_v by 5 [A] from the previous value (SCU_v = SCU_v - 5 [A]). Then proceed to step S37. Here, we have an example in which the pseudo-current detection value SCU_v is reduced by a constant 5 [A] from the previous value, but the amount of reduction may be changed according to the behavior of the vehicle, or the amount of change may be changed over time.
[0116] (Step S37) The duty cycle limiting process 22g determines whether the pseudo-current detection value SCU_v, which was subtracted from the previous value in step S36, is a negative value. If the duty cycle limiting process 22g determines that the pseudo-current detection value SCU_v is not a negative value (NO), it terminates the process of the second flowchart shown in Figure 16. On the other hand, if the duty cycle limiting process 22g determines that the pseudo-current detection value SCU_v is a negative value (YES), it proceeds to step S38.
[0117] (Step S38) The duty cycle limiting process 22g sets the pseudo-current detection value SCU_v to 0 [A] (SCU_v = 0 [A]). In other words, the duty cycle limiting process 22g clips the pseudo-current detection value SCU_v to 0 [A] so that it does not become a negative value in the processes of steps S37 and S38. After that, the process of the second flowchart shown in Figure 16 is terminated.
[0118] (Step S39) If it is determined in step S32 that the duty signal calculation value SDT is not less than the second threshold THDT2 (NO), the duty limiting process 22g sets the duty signal output value SDT_out to the value of the first threshold THDT1. Then proceed to step S40.
[0119] (Step S40) The duty cycle limiting process 22g disables the pseudo-current detection value SCU_v, and then terminates the process of the second flowchart.
[0120] (Step S41) If it is determined in step S31 that the duty signal calculation value SDT is not less than the first threshold THDT1 (NO), the duty limiting process 22g sets the duty signal output value SDT_out to the value of the duty signal calculation value SDT. Then proceed to step S42.
[0121] (Step S42) The duty cycle limiting process 22g disables the pseudo-current detection value SCU_v, and then terminates the process of the second flowchart.
[0122] According to the second flowchart in Figure 16, the duty cycle limiting process 22g sets the duty cycle output value SDT_out to the value of the duty cycle calculated value SDT if the duty cycle calculated value SDT is greater than or equal to the first threshold THDT1. Then, when the duty cycle limiting process 22g reaches the first threshold THDT1 (or falls below the first threshold THDT1), it sets the duty cycle output value SDT_out to the value of the first threshold THDT1 until it reaches the second threshold THDT2. Furthermore, when the duty cycle limiting process 22g reaches the second threshold THDT2 (or falls below the second threshold THDT2), it sets the duty cycle output value SDT_out to the value of the duty cycle calculated value SDT.
[0123] Once the processing of the second flowchart in Figure 16 is completed, the processing of the third flowchart in Figure 7 according to Embodiment 1 is started.
[0124] <Current Detection Selection Process> Next, the operation of the current detection value selection process 23 shown in Figure 15 will be explained with reference to Figure 17. Figure 17 is a flowchart showing an example of the current detection value selection process according to Embodiment 3.
[0125] (Step S45) The current detection value selection process 23 determines whether the pseudo-current detection value SCU_v is invalid or not. If the current detection value selection process 23 determines that the pseudo-current detection value SCU_v is invalid (YES), it proceeds to step S46. On the other hand, if the current detection value selection process 23 determines that the pseudo-current detection value SCU_v is not invalid (NO), it proceeds to step S47.
[0126] (Step S46) The current detection value selection process 23 selects the value of the current detection value SCU as the value of the current detection value SCU_m after selection (SCU_m = SCU). After that, the process shown in the flowchart in Figure 17 is terminated.
[0127] (Step S47) The current detection value selection process 23 selects the value of the pseudo-current detection value SCU_v as the value of the current detection value SCU_m after selection (SCU_m = SCU_v). After that, the process shown in the flowchart in Figure 17 is terminated.
[0128] <Time Chart under Duty Cycle Limitation Conditions> Figure 18 is a time chart showing an example of operation when the drive duty cycle value of the PWM control of the motor control device 1 according to Embodiment 3 is limited. In Figure 18, the horizontal axis represents time, and it shows the state in which the motor 5 rotates to the left and the duty cycle signal calculation value SDT becomes smaller than the second threshold THDT2, under the condition that the target current value TCU is output at a constant value to the right (not shown).
[0129] The operation repeats two patterns: interval P1 is defined as the interval in which the duty cycle signal calculation value SDT is between the first threshold THDT1 and the second threshold THDT2, and interval P2 is defined as the interval in which the duty cycle signal calculation value SDT falls below the second threshold THDT2.
[0130] In section P1, the rotational speed of motor 5, which is rotating in the opposite direction, is accelerating. Consequently, the current detection value SCU increases. Since the target current value TCU is constant, as the current detection value SCU increases relative to the target current value TCU, the duty cycle signal calculation value SDT decreases, and when it falls below the second threshold THDT2, the system switches to section P2.
[0131] In section P2, the value of the pseudo-current detection value SCU_v is selected as the post-selection current detection value SCU_m. When switching to section P2, the pseudo-current detection value SCU_v is set to a high value and decreases over time. Therefore, the duty cycle signal calculation value SDT decreases in the initial stages of section P2 and then gradually increases, resulting in pseudo-current feedback. When the duty cycle signal calculation value SDT rises to the second threshold THDT2, the system switches to section P1.
[0132] In the motor control device 1 according to Embodiment 3, the output signal control device 11 is provided with a second predetermined time (a time corresponding to a second threshold THDT2) that is sufficiently shorter than a first predetermined time (a time corresponding to a first threshold THDT1), and when the on time of the switching element (PWM on time) is between the first predetermined time and the second predetermined time, the on time of the switching element (PWM on time) is limited to be at least longer than the first predetermined time (for example, 10us or more).
[0133] As a result, even under conditions where the drive duty cycle of the PWM control is small, the motor control device 1 limits the drive duty cycle so that the on-time of the switching element (PWM on-time) is equal to or greater than the time for which the current flowing through the coil of the motor 5 can be detected, between the first predetermined time and the second predetermined time, thereby enabling stable motor control.
[0134] Furthermore, if the on-time of the switching element (on-time of the PWM) is shorter than a second predetermined time, the output signal control device 11 sets the current detection value SCU to a pseudo-current detection value SCU_v (an example of a pseudo-value) and changes it over time.
[0135] As a result, the motor control device 1 can reduce the drive duty cycle of the PWM control, and when the drive duty cycle is limited, the motor current will increase. However, if the drive duty cycle becomes even smaller, it can further reduce the drive duty cycle by using a pseudo-current detection value. Therefore, the motor control device 1 can suppress the motor current, and consequently, the heat generated by the motor 5 and the current control circuit 15 can be suppressed.
[0136] 4. Embodiment 4 Next, a motor control device according to Embodiment 4 will be described. In Embodiment 3 described above, when the duty signal calculation value SDT is smaller than the second threshold THDT2, the duty signal output value SDT_out is set to the duty signal calculation value SDT, and current control is performed using a pseudo-calculated current value as the current detection value. In Embodiment 4, however, current control is performed using the previously detected current detection value as the current detection value.
[0137] Figure 19 is a configuration diagram showing an example of a motor control device according to Embodiment 4. The configuration shown in Figure 19 differs from the motor control device 1 according to Embodiment 3 shown in Figure 15 in that the current detection value SCU is input to the duty cycle limiting process 22h.
[0138] The duty cycle limiting process 22h, if the duty cycle signal calculation value SDT is smaller than the second threshold THDT2, sets the duty cycle output value SDT_out to the duty cycle signal calculation value SDT and performs current control using the previously detected current detection value SCU.
[0139] Figure 20 is a second flowchart showing the processing of the drive processing unit 22 (duty limit processing 22h) that is executed after the processing of the first flowchart shown in Figure 5 in Embodiment 4. In Embodiment 4, the processing performed by the deviation calculation processing 22a and the manipulated amount calculation processing 22b of the drive processing unit 22 is the same as the first flowchart shown in Figure 5 in Embodiment 1, so its explanation is omitted. The processing in Figure 20 is a continuation of the processing in Figure 5.
[0140] <Duty Limit Processing> When the processing of the first flowchart shown in Figure 5 is completed, the duty limit processing 22h starts the processing of the second flowchart shown in Figure 20.
[0141] (Step S51) The duty limiting process 22h compares the duty signal calculation value SDT with a first threshold THDT1 (e.g., 10%) and determines whether the duty signal calculation value SDT is less than the first threshold THDT1 (e.g., 10%). If the duty limiting process 22h determines that the duty signal calculation value SDT is less than the first threshold THDT1 (YES), it proceeds to step S52. On the other hand, if the duty limiting process 22h determines that the duty signal calculation value SDT is not less than the first threshold THDT1 (NO), it proceeds to step S61.
[0142] (Step S52) The duty limit process 22h compares the duty signal calculated value SDT with the second threshold THDT2 and determines whether the duty signal calculated value SDT is less than the second threshold THDT2. If the duty limit process 22h determines that the duty signal calculated value SDT is less than the second threshold THDT2 (YES), it proceeds to step S53. On the other hand, if the duty limit process 22h determines that the duty signal calculated value SDT is not less than the second threshold THDT2 (NO), it proceeds to step S57.
[0143] (Step S53) The duty limit process 22h compares the elapsed time T with a predetermined value THT1 and determines whether the elapsed time T is less than or equal to the predetermined value THT1. If the duty limit process 22h determines that the elapsed time T is less than or equal to the predetermined value THT1 (YES), it proceeds to step S54. On the other hand, if the duty limit process 22h determines that the elapsed time T is not less than or equal to the predetermined value THT1 (NO), it proceeds to step S57.
[0144] (Step S54) The duty cycle limiting process 22h adds 1 to the elapsed time T (T = T + 1) and advances the elapsed time. Then proceed to step S55.
[0145] (Step S55) The duty limiting process 22h sets the duty signal output value SDT_out to the value of the duty signal calculation value SDT (SDT_out = SDT). Then proceed to step S56.
[0146] (Step S56) The duty cycle limiting process 22h sets the pseudo-current detection value SCU_v to the previous value of the current detection value SCU_pre (SCU_v = SCU_pre). After that, the process of the second flowchart shown in Figure 20 is terminated.
[0147] (Step S57) If NO is determined in step S52 or S53, the duty limit process 22h initializes the elapsed time T to 0 (T=0), and then proceeds to step S58.
[0148] (Step S58) The duty limiting process 22h sets the duty signal output value SDT_out to the first threshold THDT1 (SDT_out = THDT1). Then proceed to step S59.
[0149] (Step S59) The duty cycle limiting process 22h updates the current detection value SCU by setting the current detection value SCU to the previous value SCU_pre (SCU_pre = SCU). Then proceed to step S60.
[0150] (Step S60) The duty cycle limiting process 22h sets the pseudo-current detection value SCU_v to invalid (SCU_v: invalid), and then terminates the process of the second flowchart shown in Figure 20.
[0151] (Step S61) If NO is determined in step S51, the duty limit process 22h initializes the elapsed time T to 0 (T=0), and then proceeds to step S62.
[0152] (Step S62) The duty limiting process 22h sets the duty signal output value SDT_out to the duty signal calculation value SDT (SDT_out = SDT). Then proceed to step S63.
[0153] (Step S63) The duty cycle limiting process 22h updates the current detection value SCU by setting the current detection value SCU to the previous value SCU_pre (SCU_pre = SCU). Then proceed to step S64.
[0154] (Step S64) The duty cycle limiting process 22h sets the pseudo-current detection value SCU_v to disabled (SCU_v: disabled), and then terminates the process of the second flowchart shown in Figure 20.
[0155] Once the processing of the second flowchart in Figure 20 is completed, the processing of the third flowchart in Figure 7 according to Embodiment 1 is started.
[0156] <Time Chart under Duty Cycle Limitation Conditions> Figure 21 is a time chart showing an example of operation when the drive duty cycle value of the PWM control of the motor control device 1 according to Embodiment 4 is limited. In Figure 20, the horizontal axis represents time, and it shows the state in which the motor 5 rotates to the left and the duty cycle signal calculation value SDT becomes smaller than the second threshold THDT2, under the condition that the target current value TCU is output at a constant value to the right (not shown).
[0157] The operation repeats two patterns: interval P3 is defined as the interval in which the duty cycle signal calculation value SDT is between the first threshold THDT1 and the second threshold THDT2, and interval P4 is defined as the interval in which the duty cycle signal calculation value SDT falls below the second threshold THDT2.
[0158] In section P3, the rotational speed of motor 5 accelerates to the left, and the current detection value SCU increases accordingly. Since the target current value TCU is constant, as the current detection value SCU increases relative to the target current value TCU, the duty cycle signal calculation value SDT decreases, and when it falls below the second threshold THDT2, the system switches to section P4.
[0159] In section P4, the value of the pseudo-current detection value SCU_v is selected as the current detection value SCU_m after selection. The pseudo-current detection value SCU_v holds the current detection value SCU at the time of switching to section P4. When the state of section P4 has elapsed for a predetermined value THT1 or more, the duty signal output value SDT_out is set to the first threshold THDT1, the pseudo-current detection value SCU_v is disabled, and the system switches to section P3.
[0160] In the motor control device 1 according to Embodiment 4, if the (PWM on time) is shorter than a second predetermined time, the output signal control device 11 uses the previously detected value (for example, the previous value of the current detection value SCU_pre) for the current detection value SCU.
[0161] As a result, the motor control device 1 can reduce the drive duty cycle of the PWM control, and when the drive duty cycle is limited, the motor current will increase. However, when the drive duty cycle becomes even smaller, the motor control device 1 can reduce the drive duty cycle by using the previously detected current detection value SCU_pre as a pseudo (substitute) current detection value SCU. Therefore, the motor control device 1 can suppress the motor current, and consequently, the heat generated by the motor 5 and the current control circuit 15 can be reduced.
[0162] Furthermore, if the on-time of the switching element (PWM on-time) remains shorter than a second predetermined time for a predetermined period of time, the output signal control device 11 limits the on-time of the switching element to be at least longer than the first predetermined time, and updates the current detection value SCU.
[0163] As a result, if the motor control device 1 has been in a state where the on-time of the switching element (on-time of the PWM) is shorter than the second predetermined time for a long period of time, it updates the value used as a pseudo (alternative) current detection value SCU according to the elapsed time, thereby maintaining the accuracy of detecting the current flowing through the motor 5.
[0164] Although the embodiments have been described in detail above with reference to the drawings, the specific configurations are not limited to these embodiments, and each embodiment can be modified or omitted as appropriate.
[0165] For example, while this disclosure describes various exemplary embodiments and examples, the various features, aspects, and functions described in one or more embodiments are not limited to the application of a particular embodiment, but are applicable individually or in various combinations to the embodiments. Accordingly, countless variations not illustrated are envisioned within the scope of the disclosed art. These include, for example, modifying, adding or omitting at least one component, or even extracting at least one component and combining it with components of other embodiments.
[0166] 1 Motor control device, 2 Torque sensor, 3 Vehicle speed sensor, 4 Steering angle sensor, 5 Motor, 11 Output signal control device, 12 Drive circuit, 15 Current control circuit, 16 Current detector, 21 Target current calculation unit, 22 Drive processing unit, 22a, 22f Deviation calculation processing, 22b Manipulated amount calculation processing, 22c, 22e, 22h, 22g Duty cycle limiting processing, 22d Motor rotation speed calculation processing, 23 Current detection value selection processing, 90 Arithmetic processing unit, 160 Electric power steering device, FET1, FET2, FET3, FET4 Switching element
Claims
1. A motor control device comprising: a current control circuit having a plurality of legs provided with a positive-side switching element connected to the positive terminal of a DC power supply, a negative-side switching element connected to the negative terminal of the DC power supply, and an external connection point that connects the positive-side switching element and the negative-side switching element in series and is connected to the coil terminal of a motor; a drive circuit that outputs a drive signal to drive the switching element on and off; a current detection circuit that detects the current flowing through the motor coil when the switching element is turned on; and an output signal control device that limits the on time of the switching element to be at least longer than a first predetermined time during which the current detection circuit can detect the current flowing through the motor coil.
2. The motor control device according to claim 1, wherein the output signal control device limits the on time of the switching element to be at least longer than the first predetermined time only when the motor is rotating in the opposite direction to the direction in which the motor is being driven.
3. The motor control device according to claim 1, wherein the output signal control device is provided with a second predetermined time that is sufficiently shorter than the first predetermined time, and when the on time of the switching element is between the first predetermined time and the second predetermined time, the on time of the switching element is limited to be at least longer than the first predetermined time.
4. The motor control device according to claim 3, wherein the output signal control device sets the current detection value to a pseudo value and changes it over time when the on time of the switching element is shorter than the second predetermined time.
5. The motor control device according to claim 3, wherein the output signal control device uses the previously detected value as the current detection value when the on time of the switching element is shorter than the second predetermined time.
6. The motor control device according to claim 3, wherein if the on-time of the switching element remains shorter than the second predetermined time for a predetermined period of time, the output signal control device limits the on-time of the switching element to be at least longer than the first predetermined time, and updates the current detection value.
7. An electric power steering device comprising the motor and a motor control device according to any one of claims 1 to 6.
