Motor control device, motor module, motor control program, and motor control method

By adopting 120 degrees or 180 degrees of power-on mode in the three-phase motor control device, and combining the section switching compensation technology of the inverter circuit and the conduction control unit, the problem of lowering output torque during section switching is solved, and the problem of improving the Motor control efficiency.

CN119096465APending Publication Date: 2024-12-06NIDEC CORP(JP)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380030611.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-03-28
Filing Date
2023-03-24
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The prior art output torque is easily reduced during the switching of the motor section, resulting in a decrease in efficiency.

Method used

Using a three-phase motor control device, the powered-on phase of PWM control is set to be set to at least one phase, and the remaining phase is set to a 120-degree or 180-degree powered-on mode of non-energized phase, combined with inverter The device circuit and the conduction control unit suppress the decrease in the output torque during the segment switching using the segment switching compensation unit.

Benefits of technology

It effectively suppresses the reduction of output torque during segment switching, and improves the control accuracy and efficiency of the motor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119096465A_ABST
    Figure CN119096465A_ABST
Patent Text Reader

Abstract

A motor control device according to one embodiment of the present invention is provided with an inverter circuit, a segment determination unit, and a conduction control unit, and controls a motor by a 120-degree energization method or a 180-degree energization method. The inverter circuit has an upper leg and a lower leg for each of the three phases. The section determination unit determines a section corresponding to the electrical angle of the motor among a plurality of sections divided by mutually different ranges of the electrical angle of the motor. The conduction control unit controls conduction of the upper legs and the lower legs of the plurality of energization phases in the inverter circuit on the basis of the segments determined by the segment determination unit. The conduction control unit is provided with a segment switching compensation unit that, when switching to the segment determined by the segment determination unit, performs processing that suppresses the negative current of the energization phase having the highest voltage or the positive current of the energization phase having the lowest voltage among the plurality of energization phases in the switching target segment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a motor control device, a motor module, a motor control program and a motor control method.

[0002] This application is based on Japanese Patent Application No. 2022-052562 filed on March 28, 2022. The present application claims priority from the Japanese Patent Application No. 2022-052562, the entire contents of which are incorporated herein by reference. Background Art

[0003] Conventionally, there are known technologies for controlling a motor by a 120-degree energization method in which two of the three phases are energized phases and the remaining one phase is a non-energized phase, or a 180-degree energization method in which three phases are energized phases. For example, there is known a technology for performing PWM (Pulse Width Modulation) control on the energized phase in a segment corresponding to the electrical angle of the motor among a plurality of segments having different combinations of energized phases and non-energized phases among the three phases (for example, refer to Patent Document 1).

[0004] Prior art literature

[0005] Patent Literature

[0006] Patent Document 1: International Publication No. 2020 / 059111 Summary of the invention

[0007] Problems to be solved by the invention

[0008] However, in the conventional technology, there is a possibility that the output torque may decrease when switching between sections.

[0009] The present disclosure provides a technology for suppressing a decrease in output torque when switching between ranges.

[0010] Solutions to Solve Problems

[0011] A motor control device according to one embodiment of the present invention is a motor control device that controls a motor by setting two of the three phases as energized phases controlled by PWM and the remaining phase as a non-energized phase in a 120-degree energization mode, or by setting the three phases as energized phases controlled by PWM in a 180-degree energization mode, and includes an inverter circuit, a segment determination unit, and a conduction control unit. The inverter circuit has an upper bridge arm and a lower bridge arm for each of the three phases. The segment determination unit determines a segment corresponding to the electrical angle of the motor among a plurality of segments divided by mutually different ranges of the electrical angle of the motor. The conduction control unit controls the conduction of the upper bridge arm and the lower bridge arm of the plurality of energized phases in the inverter circuit based on the segment determined by the segment determination unit. The conduction control unit includes: a segment switching compensation unit, which, when switching to the segment determined by the segment determination unit, performs a process of suppressing the negative current of the energized phase with the highest voltage or the positive current of the energized phase with the lowest voltage among the plurality of energized phases in the switching target segment.

[0012] According to the present invention, it is possible to suppress a decrease in output torque when switching between ranges. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is a diagram showing an example of the structure of a motor module according to the embodiment.

[0014] Figure 2 This is a diagram showing an example of a configuration of an inverter circuit in the motor control device according to the first embodiment.

[0015] Figure 3 It is a diagram showing the state of each phase in each section of the 120-degree energization method in the motor control device according to the embodiment.

[0016] Figure 4 It is a diagram showing the state of each phase in each section of the 180-degree energization method in the motor control device according to the embodiment.

[0017] Figure 5 This is a diagram showing an example of control when the conduction type used in the motor control device according to the embodiment is a valley ON type.

[0018] Figure 6 This is a diagram showing an example of control when the conduction type used in the motor control device according to the embodiment is a peak ON type.

[0019] Figure 7 This is a diagram showing an example of control of a 120-degree energization method and high-side PWM control type inverter circuit in the motor control device according to the embodiment.

[0020] Figure 8This is a diagram showing another example of control of the inverter circuit of the 120-degree energization method and high-side PWM control type in the motor control device according to the embodiment.

[0021] Fig. 9 This is a diagram showing an example of control of a 120-degree energization method and low-side PWM control type inverter circuit in the motor control device according to the embodiment.

[0022] Fig.10 This is a diagram showing another example of control of the 120-degree energization method and low-side PWM control type inverter circuit in the motor control device according to the embodiment.

[0023] Fig.11 This is a diagram showing an example of control of a 120-degree energization method and double-side PWM control type inverter circuit in the motor control device according to the embodiment.

[0024] Fig.12 This is a diagram showing another example of control of a 120-degree energization method and double-side PWM control type inverter circuit in the motor control device according to the embodiment.

[0025] Fig.13 This is a diagram showing an example of the on-off state of the upper and lower arms of each phase before and after switching from the segment 5 to the segment 0 when the segment switching compensation is not performed in the motor control device according to the embodiment.

[0026] Fig.14 This is a diagram showing another example of the on-off state of the upper and lower arms of each phase before and after switching from segment 5 to segment 0 when the segment switching compensation unit does not perform segment switching compensation in the motor control device according to the embodiment.

[0027] Fig.15 The diagram shows the U-phase voltage, U-phase current, and output torque before and after switching from the segment 5 to the segment 0 when the segment switching compensation unit does not perform segment switching compensation in the motor control device according to the embodiment.

[0028] Fig.16 1 is a diagram showing an example of control of an inverter circuit using a first switching compensation method in a conduction control unit of a motor control device according to an embodiment.

[0029] Fig.17 This is a flowchart showing an example of control of an inverter circuit using a first switching compensation method in a conduction control unit of the motor control device according to the embodiment.

[0030] Fig.181 is a diagram showing an example of control of an inverter circuit using a second switching compensation method in a conduction control unit of the motor control device according to the embodiment.

[0031] Fig.19 This is a flowchart showing an example of control of the inverter circuit using the second switching compensation method in the conduction control unit of the motor control device according to the embodiment.

[0032] Fig. 20 1 is a diagram showing an example of control of an inverter circuit using a third switching compensation method in a conduction control unit of the motor control device according to the embodiment.

[0033] Fig.21 This is a flowchart showing an example of control of the inverter circuit using the third switching compensation method in the conduction control unit of the motor control device according to the embodiment.

[0034] Fig. 22 This is a flowchart showing an example of a forced conduction process in a conduction control unit of the motor control device according to the embodiment.

[0035] Fig.23 1 is a diagram showing an example of control of an inverter circuit using a fourth switching compensation method in a conduction control unit of the motor control device according to the embodiment.

[0036] Fig.24 This is a flowchart showing an example of control of the inverter circuit using the fourth switching compensation method in the conduction control unit of the motor control device according to the embodiment.

[0037] Fig.25 1 is a diagram showing an example of control of an inverter circuit using a fifth switching compensation method in a conduction control unit of the motor control device according to the embodiment.

[0038] Fig.26 This is a flowchart showing an example of control of the inverter circuit using the fifth switching compensation method in the conduction control unit of the motor control device according to the embodiment.

[0039] Fig. 27 This is a flowchart showing an example of a forced cutoff process in a conduction control unit of the motor control device according to the embodiment.

[0040] Fig.28 1 is a diagram showing an example of control of an inverter circuit using a sixth switching compensation method in a conduction control unit of the motor control device according to the embodiment.

[0041] Fig.29This is a flowchart showing an example of control of the inverter circuit using the sixth switching compensation method in the conduction control unit of the motor control device according to the embodiment.

[0042] Fig.30 1 is a diagram showing an example of control of an inverter circuit using a seventh switching compensation method in a conduction control unit of the motor control device according to the embodiment.

[0043] Fig.31 This is a flowchart showing an example of control of the inverter circuit using the seventh switching compensation method in the conduction control unit of the motor control device according to the embodiment.

[0044] Fig.32 1 is a diagram showing an example of control of an inverter circuit using an eighth switching compensation method in a conduction control unit of the motor control device according to the embodiment.

[0045] Fig.33 FIG. 1 is a diagram showing another example of control of the inverter circuit using the eighth switching compensation method in the conduction control unit of the motor control device according to the embodiment.

[0046] Fig.34 This is a flowchart showing an example of control of the inverter circuit using the eighth switching compensation method in the conduction control unit of the motor control device according to the embodiment.

[0047] Fig.35 The diagram shows the U-phase voltage, U-phase current, and output torque before and after switching from the segment 5 to the segment 0 when the segment switching compensation unit performs segment switching compensation in the motor control device according to the embodiment.

[0048] Fig.36 1 is a diagram showing an example of a hardware configuration of a control unit of a motor control device according to an embodiment. DETAILED DESCRIPTION

[0049] Hereinafter, the motor control device, motor module, motor control program and motor control method for implementing the present invention (hereinafter referred to as "implementation method") will be described in detail with reference to the accompanying drawings. In addition, the present invention is not limited to the implementation method. In addition, the various implementation methods can be appropriately combined within the scope of the processing content. In addition, in the following implementation methods, the same parts are marked with the same figure marks, and repeated descriptions are omitted.

[0050] <1. Motor module>

[0051] Figure 1 1 is a diagram showing an example of the structure of a motor module according to an embodiment. Figure 1As shown, the motor module 100 according to the embodiment includes a motor control device 1, a motor 2 controlled by the motor control device 1, and a position θ detecting device for detecting a rotor of the motor 2. e Position detection device 3. Position θ e is the electrical angle position of the motor 2. The motor 2 is a three-phase motor.

[0052] The position detection device 3 detects the position θ of the rotor of the motor 2 e , and the detected position θ e The position detection device 3 is, for example, a magnetic sensor using a Hall element, but is not limited to this example and may also be a rotary transformer. In addition, the position detection device 3 may also detect the position θ of the rotor of the motor 2. m Optical encoder. Position θ m is the mechanical angle position of the motor 2. In addition, a magnetic sensor or a rotary transformer may also be used to detect the position θ of the rotor of the motor 2. m In addition, the motor control device 1 may have a function of performing position sensorless control. In this case, the position detection device 3 may not be provided in the motor module 100 .

[0053] The motor control device 1 drives the motor 2 by a method selected from a 120-degree energization method and a 180-degree energization method. The 120-degree energization method used by the motor control device 1 is a energization method in which two of the three phases are set as energized phases in which at least one phase is PWM-controlled and the remaining one phase is set as a non-energized phase. In addition, the 180-degree energization method used by the motor control device 1 is a energization method in which at least one phase of the three phases is set as a conducting phase in which at least one phase is PWM-controlled.

[0054] <2. Motor control device 1>

[0055] like Figure 1 As shown, the motor control device 1 includes an inverter circuit 10, a current sensor 20, and a control unit 30. Hereinafter, the inverter circuit 10, the current sensor 20, and the control unit 30 will be described in this order.

[0056] <2.1. Inverter circuit 10>

[0057] The inverter circuit 10 converts DC power into AC power, and outputs the converted AC power to the motor 2. The inverter circuit 10 is connected to, for example, a converter circuit (not shown) that converts AC power supplied from an AC power source (not shown) into DC power, converts the DC power output from the converter circuit into AC power, and outputs the converted AC power to the motor 2. In addition, the inverter circuit 10 may be connected to a DC power source (not shown) without using a converter circuit.

[0058] Figure 2 1 is a diagram showing an example of the configuration of the inverter circuit 10 in the motor control device 1 according to the first embodiment. Figure 2 As shown, the inverter circuit 10 includes upper bridge arms 111, 112, 113, lower bridge arms 121, 122, 123, and a gate driver 15. In addition, the inverter circuit 10 is provided with a filter (not shown) composed of a coil and a capacitor in the U phase, the V phase, and the W phase. In addition, the inverter circuit 10 may also be a structure without a filter.

[0059] The upper bridge arm 111 and the lower bridge arm 121 form a U-phase half-bridge circuit, the upper bridge arm 112 and the lower bridge arm 122 form a V-phase half-bridge circuit, and the upper bridge arm 113 and the lower bridge arm 123 form a W-phase half-bridge circuit.

[0060] The upper bridge arm 111 includes a switching element 131 and a diode 141 connected in reverse parallel to the switching element 131. The lower bridge arm 121 includes a switching element 132 and a diode 142 connected in reverse parallel to the switching element 132. The upper bridge arm 112 includes a switching element 133 and a diode 143 connected in reverse parallel to the switching element 133. The lower bridge arm 122 includes a switching element 134 and a diode 144 connected in reverse parallel to the switching element 134. The upper bridge arm 113 includes a switching element 135 and a diode 145 connected in reverse parallel to the switching element 135. The lower bridge arm 123 includes a switching element 136 and a diode 146 connected in reverse parallel to the switching element 136.

[0061] Each switch element 131, 132, 133, 134, 135, 136 is, for example, an IGBT (Insulated Gate Bipolar Transistor) or a MOSFET (Metal Oxide Semiconductor Field Effect Transistor). The switch elements 131, 132, 133, 134, 135, 136 are, for example, switch elements formed of silicon-based materials or switch elements formed of wide bandgap semiconductors. Wide bandgap semiconductors are, for example, silicon carbide (SiC), gallium nitride (GaN), gallium oxide (Ga2O3), or diamond.

[0062] The gate driver 15 amplifies gate signals Sup, Svp, Swp, Sun, Svn, and Swn, which are described later, output from the control unit 30. Then, the gate driver 15 outputs the amplified gate signals Sup, Svp, Swp, Sun, Svn, and Swn to the gates of the upper bridge arms 111, 112, and 113 and the lower bridge arms 121, 122, and 123.

[0063] Specifically, the gate driver 15 outputs the amplified gate signal Sup to the upper bridge arm 111 of the U phase, and outputs the amplified gate signal Sun to the lower bridge arm 121 of the U phase. In addition, the gate driver 15 outputs the amplified gate signal Svp to the upper bridge arm 112 of the V phase, and outputs the amplified gate signal Svn to the lower bridge arm 122 of the V phase.

[0064] In addition, the gate driver 15 outputs the amplified gate signal Swp to the upper bridge arm 113 of the W phase, and outputs the amplified gate signal Swn to the lower arm 123 of the W phase. Hereinafter, each of the upper bridge arms 111, 112, and 113 is sometimes described as the upper bridge arm 11 when not separately distinguished, and each of the lower bridge arms 121, 122, and 123 is sometimes described as the lower bridge arm 12 when not separately distinguished.

[0065] <2.2. Current sensor 20>

[0066] Figure 1 The current sensor 20 shown detects the instantaneous value of the three-phase current flowing from the inverter circuit 10 to the motor 2, that is, the three-phase current value I UVW The detected three-phase current value I UVW Output to the control unit 30. The three-phase current value I UVW The instantaneous value of the U-phase current I U 、V-phase current value I as the instantaneous value of V-phase current V And the W-phase current value I which is the instantaneous value of the W-phase current W .

[0067] The current sensor 20 is, for example, a current sensor using a Hall element, but is not limited to this example, and may be a current sensor using a current transformer called a CT (Current Transformer) or a current sensor using a shunt resistor.

[0068] <2.3. Control unit 30>

[0069] like Figure 1 As shown, the control unit 30 includes a torque command output unit 31 , a duty ratio calculation unit 32 , a carrier generation unit 33 , a segment determination unit 34 , a setting unit 35 , and a conduction control unit 36 ​​.

[0070] <2.3.1. Torque command output unit 31>

[0071] The torque command output unit 31 outputs a torque command T*. The torque command T* is an example of a target output torque. The torque command output unit 31 may generate a torque command T* so that the speed of the motor 2 matches the speed command, and output the generated torque command T*.

[0072] <2.3.2 Duty ratio calculation unit 32>

[0073] The duty ratio calculation unit 32 calculates the torque command T* output from the torque command output unit 31 and the three-phase current value I* output from the current sensor 20. UVW , calculates the duty ratio values ​​Sduty of the U phase, V phase, and W phase. For example, the duty ratio calculation unit 32 calculates the duty ratio values ​​Sduty of the U phase, V phase, and W phase based on the torque command T* and the three-phase current value I UVW The duty ratio calculation unit 32 calculates the duty ratio values ​​Sduty of the U phase, V phase, and W phase so that the output torque of the motor 2 becomes the torque corresponding to the torque command T*. The duty ratio calculation unit 32 outputs the calculated duty ratio values ​​Sduty of the U phase, V phase, and W phase to the conduction control unit 36.

[0074] <2.3.3. Carrier Generation Unit 33>

[0075] The carrier wave generator 33 generates a triangular wave carrier wave Scw, and outputs the generated triangular wave carrier wave Scw to the conduction controller 36. The carrier wave generator 33 may use a sawtooth wave carrier wave Scw instead of the triangular wave carrier wave Scw.

[0076] <2.3.4. Segment determination unit 34>

[0077] The segment determination unit 34 determines a segment corresponding to the electrical angle of the motor 2 among the six segments 0 to 5 divided into different ranges of the electrical angle of the motor 2 .

[0078] Segment 0 is a range where the electric angle is greater than or equal to 30° and less than 90°, segment 1 is a range where the electric angle is greater than or equal to 90° and less than 150°, and segment 2 is a range where the electric angle is greater than or equal to 150° and less than 210°. In addition, segment 3 is a range where the electric angle is greater than or equal to 210° and less than 270°, segment 4 is a range where the electric angle is greater than or equal to 270° and less than 330°, and segment 5 is a range where the electric angle is greater than or equal to 0° and less than 30°, and greater than or equal to 330° and less than 360°.

[0079] The segment determination unit 34 determines the position θ of the rotor of the motor 2 based on the position θ of the rotor of the motor 2. e In addition, the segment determination unit 34 outputs the position θ from the position detection device 3. m In the case of m Calculate the position θ using the number of pole pairs P of motor 2 e , and based on the calculated position θe to determine the section.

[0080] First, the case of the 120-degree current conduction method will be described. Figure 3 1 is a diagram showing the state of each phase in each section of the 120-degree energization method in the motor control device 1 according to the embodiment. Figure 3 As shown, in the 120-degree energization mode, the combinations of the high-side conduction phase, the low-side conduction phase, and the non-energized phase in the three phases of the six segments 0 to 5 are different from each other. The high-side conduction phase and the low-side conduction phase are energized phases, and the high-side conduction phase is a phase with a higher voltage than the low-side conduction phase.

[0081] The high-side conduction phase is a phase in which current flows actively in the positive direction on average in one PWM cycle by PWM control of the upper bridge arm 11 or fixing it in the conduction state. The low-side conduction phase is a phase in which current flows actively in the negative direction on average in one PWM cycle by PWM control of the lower bridge arm 12 or fixing it in the conduction state. The non-energized phase is a phase in which both the upper bridge arm 11 and the lower bridge arm 12 are fixed in the off state and current does not flow actively.

[0082] In segment 0, U phase is the high-side conduction phase, V phase is the low-side conduction phase, and W phase is the non-energized phase. In segment 1, U phase is the high-side conduction phase, W phase is the low-side conduction phase, and V phase is the non-energized phase. In segment 2, V phase is the high-side conduction phase, W phase is the low-side conduction phase, and U phase is the non-energized phase.

[0083] In section 3, the V phase is the high-side conduction phase, the U phase is the low-side conduction phase, and the W phase is the non-energized phase. In section 4, the W phase is the high-side conduction phase, the U phase is the low-side conduction phase, and the V phase is the non-energized phase. In section 5, the W phase is the high-side conduction phase, the V phase is the low-side conduction phase, and the U phase is the non-energized phase.

[0084] Next, the 180-degree energization method will be described. Figure 4 1 is a diagram showing the state of each phase in each section of the 180-degree energization method in the motor control device 1 according to the embodiment. Figure 4 As shown, in the 180-degree energization method, the combinations of high-side conduction phases and low-side conduction phases in the three phases of the six segments 0 to 5 are different. The high-side conduction phase and the low-side conduction phase are energized phases, and the high-side conduction phase is a phase with a higher voltage than the low-side conduction phase.

[0085] In section 0, the high-side conduction phases are U phase and W phase, and the low-side conduction phase is V phase. In section 1, the high-side conduction phase is U phase, and the low-side conduction phases are V phase and W phase. In section 2, the high-side conduction phases are U phase and V phase, and the low-side conduction phase is W phase.

[0086] In section 3, the high-side conduction phase is V phase, and the low-side conduction phases are U phase and W phase. In section 4, the high-side conduction phases are V phase and W phase, and the low-side conduction phase is U phase. In section 5, the high-side conduction phase is W phase, and the low-side conduction phases are U phase and V phase.

[0087] As described above, the segment determination unit 34 determines the segment corresponding to the electrical angle of the motor 2 among the six segments. e <90°, segment 0 is determined as the segment corresponding to the electrical angle of motor 2. e When <150°, segment 1 is determined as a segment corresponding to the electrical angle of the motor 2 .

[0088] The segment determination unit 34 sets the e <210°, segment 2 is determined as the segment corresponding to the electrical angle of motor 2. e When θ<270°, the segment 3 is determined as a segment corresponding to the electrical angle of the motor 2. The segment determination unit 34 determines that when 270°≤θ e When the angle of the motor 2 is less than 330°, the segment 4 is determined as the segment corresponding to the electrical angle of the motor 2. e <30°or 330°≤θ e When <360°, segment 5 is determined as a segment corresponding to the electrical angle of the motor 2 .

[0089] <2.3.5. Setting unit 35>

[0090] The setting unit 35 stores setting information. The setting information includes conduction type information, control type information, switching compensation method information, and energization pattern information.

[0091] The conduction type information is information indicating a conduction type selected from a plurality of conduction types. The control type information is information indicating a control type selected from a plurality of control types. The switching compensation method information is information indicating a switching compensation method selected from a plurality of switching compensation methods. The power-on mode information is information indicating a power-on mode selected from a 120-degree power-on mode and a 180-degree power-on mode.

[0092] The conduction type, control type, switching compensation method, and energization method are selected by the manufacturer of the motor control device 1, but may be selected by the user of the motor control device 1. The switching compensation method will be described in detail later.

[0093] First, a plurality of conduction types are described. The plurality of conduction types include a valley-ON type and a peak-ON type. The comparison result of the carrier Scw and the comparison value Scomp of the valley-ON type and the peak-ON type is different from the combination of the bridge arms that are turned on in the upper bridge arm 11 and the lower bridge arm 12.

[0094] Figure 5 1 is a diagram showing an example of control in the case where the conduction type used in the motor control device 1 according to the embodiment is a valley ON type. In the valley ON type, Figure 5 As shown, when the comparison value Scomp is higher than the carrier Scw, the upper bridge arm 11 is set to the on state to be turned on, and when the comparison value Scomp is lower than the carrier Scw, the lower bridge arm 12 is set to the on state to be turned on.

[0095] Figure 6 1 is a diagram showing an example of control in the case where the conduction type used in the motor control device 1 according to the embodiment is a peak ON type. In the peak ON type, Figure 6 As shown, when the comparison value Scomp is lower than the carrier Scw, the upper bridge arm 11 is set to the on state to be turned on, and when the comparison value Scomp is higher than the carrier Scw, the lower bridge arm is set to the on state to be turned on.

[0096] Next, a plurality of control types will be described, including a high-side PWM control type, a low-side PWM control type, and a double-side PWM control type.

[0097] In the high-side PWM control type, the upper arm 11 and the lower arm 12 of the high-side conduction phase are turned on and off by PWM control, and the lower arm 12 of the low-side conduction phase is fixed in the conduction state.

[0098] Figure 7 1 is a diagram showing an example of control of the inverter circuit 10 of the 120-degree conduction method and high-side PWM control type in the motor control device 1 according to the embodiment. Figure 7 In the example shown, an example is shown in which the conduction type is the valley ON type and the segment determined by the segment determination unit 34 is the segment 0.

[0099] In segment 0, the U phase is the high-side conduction phase, the V phase is the low-side conduction phase, and the W phase is the non-conducting phase. Figure 7 As shown, the upper bridge arm 111 and the lower bridge arm 121 of the U phase are PWM controlled, and the lower bridge arm 122 of the V phase is fixed in the on state. In addition, since the conduction type is a valley ON type, when the comparison value Scomp is higher than the carrier Scw, the upper bridge arm 111 of the U phase becomes the on state, and when the comparison value Scomp is lower than the carrier Scw, the lower bridge arm 121 of the U phase becomes the on state.

[0100] Figure 8 FIG. 2 is a diagram showing another example of control of the inverter circuit 10 of the 120-degree conduction method and high-side PWM control type in the motor control device 1 according to the embodiment. Figure 8In the example shown, an example is shown in which the conduction type is the peak ON type and the segment determined by the segment determination unit 34 is the segment 0. Figure 8 In the example shown, since the conduction type is a peak ON type, when the comparison value Scomp is lower than the carrier Scw, the upper bridge arm 111 of the U phase becomes a conduction state, and when the comparison value Scomp is higher than the carrier Scw, the lower bridge arm 121 of the U phase becomes a conduction state. Figure 7 The examples shown are different. Figure 8 In the example shown, the conduction control unit 36 ​​uses the value obtained by inverting the duty cycle value Sduty output from the duty cycle calculation unit 32 with respect to the center value of the carrier wave Ssw as the comparison value Scomp to be compared with the carrier wave Scw. In this case, the comparison value Scomp is expressed as Scomp=1-Sduty. Figure 7 In the example shown, in the conduction control unit 36 ​​, the duty value Sduty output from the duty calculation unit 32 is directly compared with the carrier Scw as the comparison value Scomp.

[0101] In the low-side PWM control type, the upper arm 11 of the high-side conduction phase is fixed in the conduction state, and the upper arm 11 and the lower arm 12 of the low-side conduction phase are controlled to be turned on and off by PWM control.

[0102] Fig. 9 1 is a diagram showing an example of control of the inverter circuit 10 of the 120-degree conduction method and the low-side PWM control type in the motor control device 1 according to the embodiment. Fig. 9 In the example shown, Figure 8 The example shown is also low, and shows an example in which the conduction type is the peak ON type and the segment determined by the segment determination unit 34 is the segment 0.

[0103] In segment 0, the U phase is the high-side conduction phase, the V phase is the low-side conduction phase, and the W phase is the non-conducting phase. Fig. 9 As shown, the upper bridge arm 111 of the U phase is fixed to the on state, and the upper bridge arm 112 and the lower bridge arm 122 of the V phase are controlled by PWM. In addition, since the conduction type is a peak ON type, when the comparison value Scomp is lower than the carrier Scw, the upper bridge arm 112 of the V phase becomes the on state, and when the comparison value Scomp is higher than the carrier Scw, the lower bridge arm 122 of the V phase becomes the on state. In addition, Fig. 9 In the illustrated example, in the conduction control unit 36 ​​, the duty value Sduty output from the duty calculation unit 32 is directly compared with the carrier Scw as the comparison value Scomp.

[0104] Fig.10FIG. 2 is a diagram showing another example of control of the inverter circuit 10 of the 120-degree conduction method and the low-side PWM control type in the motor control device 1 according to the embodiment. Fig.10 In the example shown, an example is shown in which the conduction type is the valley ON type and the segment determined by the segment determination unit 34 is the segment 0. Fig.10 In the example shown, since the conduction type is a valley ON type, when the comparison value Scomp is higher than the carrier Scw, the upper bridge arm 112 of the V phase becomes a conduction state, and when the comparison value Scomp is lower than the carrier Scw, the lower bridge arm 122 of the V phase becomes a conduction state. Fig. 9 The examples shown are different. In addition, Fig.10 In the example shown, the conduction control unit 36 ​​uses a value obtained by inverting the duty value Sduty output from the duty calculation unit 32 with respect to the center value of the carrier wave Ssw as a comparison value Scomp to be compared with the carrier wave Scw.

[0105] In the double-side PWM control type, the following control is performed: the upper bridge arm 11 and the lower bridge arm 12 of the high-side conduction phase are turned on and off by PWM control, and the upper bridge arm 11 and the lower bridge arm 12 of the low-side conduction phase are turned on and off by PWM control complementary to the PWM control of the high-side conduction phase. In the high-side conduction phase, the upper bridge arm 11 and the lower bridge arm 12 are turned on and off by PWM control in which the conduction ratio of the upper bridge arm 11 is larger than the conduction ratio of the lower bridge arm 12. In addition, in the low-side conduction phase, the upper bridge arm 11 and the lower bridge arm 12 are turned on and off by PWM control in which the conduction ratio of the upper bridge arm 11 is smaller than the conduction ratio of the lower bridge arm 12.

[0106] Fig.11 1 is a diagram showing an example of control of the inverter circuit 10 of the double-side PWM control type in the motor control device 1 according to the embodiment. Fig.11 In the example shown, Figure 7 The illustrated example also illustrates a case where the conduction type is the valley ON type and the segment determined by the segment determination unit 34 is the segment 0 .

[0107] In segment 0, the U phase is the high-side conduction phase, the V phase is the low-side conduction phase, and the W phase is the non-conducting phase. Fig.11As shown, the upper bridge arm 111 of the U phase is controlled by PWM in which the conduction ratio of the upper bridge arm 111 is larger than the conduction ratio of the lower bridge arm 121, so that the upper bridge arm 111 and the lower bridge arm 121 of the U phase are turned on and off, and the upper arm 112 and the lower arm 122 of the V phase are controlled by PWM in which the conduction ratio of the upper bridge arm 112 of the V phase is smaller than the conduction ratio of the lower bridge arm 122. Furthermore, since the conduction type is a valley ON type, when the comparison value Scomp is higher than the carrier Scw, the upper bridge arm 111 of the U phase and the lower bridge arm 122 of the V phase are turned on, and when the comparison value Scomp is lower than the carrier Scw, the lower bridge arm 121 of the U phase and the upper bridge arm 112 of the V phase are turned on. In addition, Fig.11 In the example shown, a value obtained by multiplying the duty value Sduty output from the duty calculation unit 32 by 0.5 and adding 0.5 is used as a comparison value Scomp to be compared with the carrier Scw. In this case, the comparison value Scomp is expressed as Scomp=Sduty×0.5+0.5.

[0108] Fig.12 FIG. 2 is a diagram showing another example of control of the inverter circuit 10 of the double-side PWM control type and the 120-degree energization method in the motor control device 1 according to the embodiment. Fig.12 In the example shown, an example is shown in which the conduction type is the peak ON type and the segment determined by the segment determination unit 34 is the segment 0. Fig.12 In the example shown, since the conduction type is a peak ON type, when the comparison value Scomp is lower than the carrier Scw, the upper bridge arm 111 of the U phase and the lower bridge arm 122 of the V phase are in the conduction state, and when the comparison value Scomp is higher than the carrier Scw, the lower bridge arm 121 of the U phase and the upper bridge arm 112 of the V phase are in the conduction state. Fig.12 In the example shown, a value obtained by subtracting a value obtained by multiplying the duty value Sduty output from the duty calculation unit 32 by 0.5 and adding 0.5 is used as a comparison value Scomp for comparison with the carrier Scw. In this case, the comparison value Scomp is expressed as Scomp=1-(Sduty×0.5+0.5).

[0109] <2.3.6. Conductivity control unit 36>

[0110] The conduction control unit 36 ​​includes a conduction switching unit 40 that generates gate signals Sup, Sun, Svp, Svn, Swp, and Swn, and a segment switching compensation unit 41 that performs segment switching compensation processing.

[0111] <2.3.6.1. Conductivity switch 40>

[0112] The conduction switching unit 40 generates gate signals Sup, Sun, Svp, Svn, Swp, and Swn based on the duty cycle value Sduty output from the duty cycle calculation unit 32, the carrier Scw output from the carrier generation unit 33, the control information including the segment switching request output from the segment switching compensation unit 41, and the setting information output from the setting unit 35.

[0113] For example, it is assumed that the control type and energization method indicated by the setting information are the high-side PWM control type and the 120-degree energization method, and the segment determined by the segment determination unit 34 is segment 0 .

[0114] In this case, if the conduction type indicated by the setting information is the valley ON type, the conduction switching unit 40 directly compares the duty value Sduty output from the duty calculation unit 32 with the carrier Scw as the comparison value Scomp, and Figure 7 As shown, gate signals Sup, Sun, Svp, Svn, Swp, and Swn for controlling the inverter circuit 10 are generated.

[0115] In addition, if the conduction type indicated by the setting information is the peak ON type, the conduction switching unit 40 calculates a value obtained by inverting the duty cycle value Sduty output from the duty cycle calculation unit 32 as the comparison value Scomp. In this case, the comparison value Scomp is expressed as Scomp=1-Sduty. Then, the conduction switching unit 40 compares the calculated comparison value Scomp with the carrier Scw, and Figure 8 As shown, gate signals Sup, Sun, Svp, Svn, Swp, and Swn for controlling the inverter circuit 10 are generated.

[0116] In addition, it is assumed that the control type and the energization method indicated by the setting information are the low-side PWM control type and the 120-degree energization method, and the segment determined by the segment determination unit 34 is the segment 0 .

[0117] In this case, if the conduction type indicated by the setting information is the valley ON type, the conduction switching unit 40 calculates a value obtained by inverting the duty cycle value Sduty output from the duty cycle calculation unit 32 as the comparison value Scomp. In this case, the comparison value Scomp is expressed as Scomp=1-Sduty. Then, the conduction switching unit 40 compares the calculated comparison value Scomp with the carrier Scw, and Fig. 9 As shown, gate signals Sup, Sun, Svp, Svn, Swp, and Swn for controlling the inverter circuit 10 are generated.

[0118] If the conduction type indicated by the setting information is the peak ON type, the conduction switching unit 40 directly compares the duty cycle value Sduty output from the duty cycle calculation unit 32 with the carrier Scw as the comparison value Scomp, and performs a comparison as follows: Fig.10 As shown, gate signals Sup, Sun, Svp, Svn, Swp, and Swn for controlling the inverter circuit 10 are generated.

[0119] In addition, it is assumed that the control type and the energization method indicated by the setting information are the double-side PWM control type and the 120-degree energization method, and the segment determined by the segment determination unit 34 is the segment 0 .

[0120] In this case, if the conduction type indicated by the setting information is the valley ON type, the conduction switching unit 40 calculates a value obtained by multiplying the duty cycle value Sduty output from the duty cycle calculation unit 32 by 0.5 and adding 0.5 as the comparison value Scomp. In this case, the comparison value Scomp is expressed as Scomp=Sduty×0.5+0.5. Then, the conduction switching unit 40 compares the calculated comparison value Scomp with the carrier Scw, and performs the comparison as shown in FIG. Fig.11 As shown, gate signals Sup, Sun, Svp, Svn, Swp, and Swn for controlling the inverter circuit 10 are generated.

[0121] In addition, if the conduction type indicated by the setting information is the peak ON type, the conduction switching unit 40 calculates a value obtained by subtracting a value obtained by multiplying the duty cycle value Sduty output from the duty cycle calculation unit 32 by 0.5 and adding 0.5 from 1 as the comparison value Scomp. In this case, the comparison value Scomp is expressed as Scomp=1-(Sduty×0.5+0.5). Then, the conduction switching unit 40 compares the calculated comparison value Scomp with the carrier Scw, and performs the comparison as shown in FIG. Fig.12 The gate signals Sup, Sun, Svp, Svn, Swp, and Swn for controlling the inverter circuit 10 are generated as shown. In addition, in the above example, the maximum value of the duty cycle value Sduty is the same as the value of the peak position of the carrier Scw, but this is not limited to this example. For example, the value of the peak position of the carrier Scw may be a value greater than the maximum value of the duty cycle value Sduty. In this case, the conduction switching unit 40 calculates the comparison value Scomp using, for example, a coefficient corresponding to the ratio of the maximum value of the duty cycle value Sduty to the value of the peak position of the carrier Scw.

[0122] <2.3.6.2. Segment switching compensation unit 41>

[0123] The section switching compensation unit 41 performs section switching compensation processing for suppressing negative current of the high-side conduction phase, which is the highest voltage energized phase among a plurality of energized phases in the switching target section, when switching to the section determined by the section determination unit 34 .

[0124] Here, the switching of the sections in the case where the section switching compensation section 41 does not perform the section switching compensation in the conduction control section 36 will be described. Fig.13 1 is a diagram showing an example of the on-off state of the upper and lower arms of each phase before and after switching from segment 5 to segment 0 when segment switching compensation is not performed in the motor control device 1 according to the embodiment. Fig.13 The example shown shows a case where the conduction type, control type and energization method are valley ON type, high-side PWM control type and 120-degree energization method, and the switching timing from segment 5 to segment 0 is the peak position of the carrier Scw.

[0125] like Fig.13 As shown, in each section 5 and 0, the lower bridge arm 122 of the V phase is fixed to the on state, and when switching from section 5 to section 0 without section switching compensation by the section switching compensation unit 41, the lower bridge arm 121 of the U phase is turned on. In this case, as described later, a negative current is generated in the U phase as the high-side conduction phase, and the output torque of the motor 2 is instantly reduced.

[0126] Fig.14 1 is a diagram showing another example of the on-off state of the upper and lower arms of each phase before and after switching from segment 5 to segment 0 when the segment switching compensation unit 41 is not used to perform segment switching compensation in the motor control device 1 according to the embodiment. Fig.14 In the example shown, the switching timing from segment 5 to segment 0 is the trough position of the carrier Scw, which is consistent with Fig.13 The examples shown are different.

[0127] like Fig.14 As shown, when the timing from segment 5 to segment 0 is the valley position of the carrier Scw, the upper arm 111 of the U phase is turned on when switching from segment 5 to segment 0. In this case, as described later, no negative current is generated in the U phase as the high-side conduction phase.

[0128] Fig.15 1 is a diagram showing the U-phase voltage, U-phase current, and output torque before and after switching from segment 5 to segment 0 when the segment switching compensation unit 41 does not perform segment switching compensation in the motor control device 1 according to the embodiment. Fig.15 In the example shown, the conduction type, control type and power-on method are valley-ON type, high-side PWM control type and 120-degree power-on method. Fig.15 In the figure, the horizontal axes of the three graphs are time, and the vertical axes of the three graphs are U-phase voltage, U-phase current and output torque.

[0129] In the case where the section switching compensation unit 41 is not used for section switching compensation, Fig.15 As shown, when switching from segment 5 to segment 0, when starting from the conduction of the upper bridge arm 111, no negative current flows in the U phase, but when starting from the conduction of the lower bridge arm 121, a negative current flows in the U phase, and the output torque of the motor 2 is instantly reduced.

[0130] This is not limited to the switching from segment 5 to segment 0. In the switching between the other two segments, a negative current flows in any one of the U phase, the V phase, and the W phase according to the switching timing when the segment is switched. That is, when the control type is a high-side PWM control type, when the segment is switched, when the lower bridge arm 12 is turned on, a negative current flows in the high-side conduction phase, and the torque of the motor 2 is instantly reduced.

[0131] Therefore, the segment switching compensation unit 41 performs segment switching compensation. For example, when the control type is a high-side PWM control type, the segment switching compensation is performed by controlling the conduction switching unit 40 so as to start from the conduction of the upper bridge arm 11 of the high-side conduction phase controlled by PWM during segment switching. As a result, it is possible to suppress the flow of negative current in the high-side conduction phase controlled by PWM, thereby suppressing the reduction in the output torque of the motor 2. When the control type is a high-side PWM control type, the high-side conduction phase controlled by PWM can also be referred to as a phase in which current flows in the positive direction on average in one PWM cycle.

[0132] When the range switching compensation unit 41 does not perform range switching compensation, the output torque of the motor 2 also decreases instantaneously when the control type is the low-side PWM control type or the double-side PWM control type.

[0133] For example, when the control type is a low-side PWM control type, when the segment is switched, if the upper bridge arm 11 of the PWM-controlled conduction phase is turned on, a positive current flows in the PWM-controlled low-side conduction phase, and the output torque of the motor 2 is instantly reduced.

[0134] Therefore, when the control type is a low-side PWM control type, the section switching compensation unit 41 controls the conduction switching unit 40 to start from the conduction of the lower bridge arm 12 of the low-side conduction phase controlled by PWM during the section switching. As a result, it is possible to suppress the positive current from flowing in the low-side conduction phase controlled by PWM, thereby suppressing the reduction of the output torque when the section is switched. When the control type is a low-side PWM control type, the low-side conduction phase controlled by PWM can also be referred to as a phase in which current flows in the negative direction on average in one PWM cycle.

[0135] In addition, when the control type is a double-side PWM control type, when the section is switched, if the lower bridge arm 12 of the first conduction phase is turned on, a negative current flows in the first conduction phase, and the output torque of the motor 2 is instantly reduced. The first conduction phase is a high-side conduction phase controlled by PWM, and is a phase in which a current flows in the positive direction on average in one PWM cycle.

[0136] Therefore, when the control type is double-side PWM control type, the section switching compensation unit 41 controls the conduction switching unit 40 to start from the conduction of the upper bridge arm 11 of the first conduction phase during section switching. Thus, it is possible to suppress the negative current from flowing in the first energized phase, thereby suppressing the reduction of the output torque of the motor 2.

[0137] Furthermore, the range switching compensating unit 41 can also forcibly set the conducting phase under PWM control to a non-conducting state during range switching, thereby also being able to suppress a reduction in the output torque of the motor 2 .

[0138] When switching the determined segment, the segment determination unit 34 outputs a segment switching request to the conduction control unit 36. The segment switching request includes information indicating the switching target segment. The segment switching compensation unit 41 controls the conduction switch unit 40 based on the segment switching request output from the segment determination unit 34, the carrier Scw output from the carrier generation unit 33, and the setting information output from the setting unit 35.

[0139] Next, the control method of the conduction switch unit 40 by the section switching compensator 41 during section switching is described. The section switching compensator 41 controls the conduction switch unit 40 by a section switching compensation method represented by the switching compensation method information output from the setting unit 35 among a plurality of section switching compensations, and adjusts the conduction timing or cut-off timing of the target bridge arm.

[0140] The plurality of section switching compensation methods include a first switching compensation method, a second switching compensation method, a third switching compensation method, a fourth switching compensation method, a fifth switching compensation method, a sixth switching compensation method, a seventh switching compensation method and an eighth switching compensation method.

[0141] The first and second switching compensation methods are methods of performing section switching compensation by delaying the timing of section switching. The third and fourth switching compensation methods are methods of performing section switching compensation by forcibly turning on the target bridge arm until a predetermined timing is reached during section switching.

[0142] The fifth and sixth switching compensation methods are methods of performing section switching compensation by forcibly turning off the target arm until a predetermined timing during section switching, thereby forcibly turning the conducting phase controlled by PWM into a non-conducting state.

[0143] The seventh switching compensation method is a method of performing sector switching compensation by switching the conduction type when the sector is switched. The eighth switching compensation method is a method of performing sector switching compensation by resetting the carrier Scw.

[0144] The target bridge arm in cases other than the fifth switching compensation method and the sixth switching compensation method is different from that in the case of the fifth switching compensation method or the sixth switching compensation method.

[0145] In the case of a switching compensation method other than the fifth and sixth switching compensation methods, if the control type is a high-side PWM control type, the target arm is the upper arm 11 of the conducting phase controlled by PWM in the switching target section.

[0146] In the case of a switching compensation method other than the fifth switching compensation method and the sixth switching compensation method, if the control type is a low-side PWM control type, the target arm is the lower arm 12 of the conducting phase controlled by PWM in the switching target section.

[0147] In addition, in the case of a switching compensation method other than the fifth switching compensation method and the sixth switching compensation method, if the control type is a double-sided PWM control type, the object bridge arm is the upper bridge arm 11 of the conduction phase in which the upper bridge arm 11 is PWM controlled with a conduction ratio greater than the conduction ratio of the lower bridge arm 12 in the switching target section, and the lower bridge arm 12 of the conduction phase in which the lower bridge arm 12 is PWM controlled with a conduction ratio greater than the conduction ratio of the lower bridge arm 12.

[0148] In addition, in the case of the fifth switching compensation method and the sixth switching compensation method, if the control type is a high-side PWM control type or a low-side PWM control type, the target bridge arm is the upper bridge arm 11 and the lower bridge arm 12 of the conduction phase controlled by PWM in the switching target section.

[0149] In addition, in the case of the fifth and sixth switching compensation methods, if the control type is double-side PWM control type, the target bridge arms are the upper bridge arm 11 and the lower bridge arm 12 of all the conducting phases controlled by PWM in the switching target section.

[0150] <2.3.6.3. Switching compensation method>

[0151] <2.3.6.3.1. First switching compensation method>

[0152] The first switching compensation method is based on the comparison result of the comparison value Scomp and the carrier Scw, delaying the switching timing of the segment to the timing when the object bridge arm becomes conductive, thereby suppressing the negative current in the high-side conduction phase controlled by PWM or the positive current in the low-side conduction phase controlled by PWM when the segment is switched.

[0153] When a segment switching request is output from the segment determination unit 34, the segment switching compensation unit 41 monitors the carrier Scw. When a predetermined condition is satisfied, the segment switching compensation unit 41 outputs a segment switching request to the conduction switching unit 40. The predetermined condition differs depending on the control type and conduction type indicated by the control type information and conduction type information output from the setting unit 35.

[0154] For example, the control type and conduction type are high-side PWM control type and valley ON type, low-side PWM control type and peak ON type, or double-side PWM control type and valley ON type. In this case, when the comparison value Scomp is greater than the carrier Scw, the section switching compensation unit 41 outputs a section switching request to the conduction switching unit 40.

[0155] In addition, the control type and the conduction type are a high-side PWM control type and a peak ON type, a low-side PWM control type and a valley ON type, or a double-side PWM control type and a peak ON type. In this case, when the comparison value Scomp is less than the carrier Scw, the section switching compensation unit 41 outputs a section switching request including information on the switching target section to the conduction switching unit 40.

[0156] Furthermore, when the timing at which the segment switching request is output from the segment determination unit 34 satisfies a predetermined condition, the segment switching compensation unit 41 outputs the segment switching request to the conduction switching unit 40 without delaying the segment switching timing.

[0157] The conduction switching unit 40 performs segment switching based on the segment switching request output from the segment switching compensation unit 41, the comparison value Scomp obtained according to the duty cycle value Sduty output from the duty cycle calculation unit 32, the carrier Scw output from the carrier generation unit 33, and the conduction type information and control type information output from the setting unit 35.

[0158] Fig.16 1 is a diagram showing an example of control of the inverter circuit 10 using the first switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig.16In the example shown, the control type, conduction type, and energization method are high-side PWM control type, valley ON type, and 120-degree energization method, and the situation before and after switching from segment 5 to segment 0 is shown.

[0159] When the timing immediately after the segment switching request is output from the segment determination unit 34 is the peak of the carrier Scw, the segment switching compensation unit 41 waits until the comparison value Scomp becomes larger than the carrier Scw. Then, when the comparison value Scomp becomes larger than the carrier Scw, the segment switching compensation unit 41 outputs the segment switching request to the conduction switching unit 40.

[0160] Therefore, if Fig.16 As shown, the switching timing from segment 5 to segment 0 is delayed to the timing when the upper bridge arm 111 of the U phase, which is the high-side conduction phase controlled by PWM, is turned on. Therefore, when switching from segment 5 to segment 0, the upper bridge arm 111 of the U phase, which is the high-side conduction phase, is turned on, and the negative current in the U phase, which is the high-side conduction phase, is suppressed.

[0161] Fig.17 1 is a flowchart showing an example of control of the inverter circuit 10 using the first switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig.17 The processing shown is an example of a case where the control type is a high-side PWM control type or a double-side PWM control type, and is started when a segment switching request is output from the segment determination unit 34 .

[0162] like Fig.17 As shown, when the segment switching request is output from the segment determination unit 34, the conduction control unit 36 ​​monitors the carrier Scw (step S10). Next, the conduction control unit 36 ​​determines whether the conduction pattern indicated by the conduction pattern information output from the setting unit 35 is the valley ON type (step S11).

[0163] If the conduction type is determined to be the valley ON type (step S11: Yes), the conduction control unit 36 ​​determines whether the comparison value Scomp is greater than the carrier Scw (step S12). If the comparison value Scomp is determined not to be greater than the carrier Scw (step S12: No), the conduction control unit 36 ​​transfers the process to step S10.

[0164] When it is determined that the conduction type is not the valley ON type but the peak ON type (step S11: No), the conduction control unit 36 ​​determines whether the comparison value Scomp is less than the carrier Scw (step S13). When it is determined that the comparison value Scomp is not less than the carrier Scw (step S13: No), the conduction control unit 36 ​​transfers the process to step S10.

[0165] When it is determined that the comparison value Scomp is greater than the carrier Scw (step S12: Yes) or when it is determined that the comparison value Scomp is less than the carrier Scw (step S13: Yes), the conduction control unit 36 ​​performs the segment switching (step S14). When the process of step S14 is completed, the conduction control unit 36 ​​ends. Fig.17 Processing shown.

[0166] Furthermore, when the control type is the low-side PWM control type, in step S11, it is determined whether the conduction type indicated by the conduction type information is the peak ON type. The conduction control unit 36 ​​transfers the process to step S12 when the conduction type is the peak ON type, and transfers the process to step S13 when the conduction type is the valley ON type.

[0167] <2.3.6.3.2. Second switching compensation method>

[0168] The second switching compensation method does not compare the comparison value Scomp with the carrier Scw, but delays the switching timing of the segment until a predetermined timing is reached, thereby suppressing the negative current in the high-side conduction phase or the positive current in the low-side conduction phase controlled by PWM when the segment is switched. Since the second switching compensation method does not compare the comparison value Scomp with the carrier Scw, the processing load of the segment switching compensation unit 41 can be reduced compared with the first switching compensation method. In addition, in the first switching compensation method, the switching timing of the segment can be advanced compared with the second switching compensation method.

[0169] The predetermined timing differs depending on the combination of the control type and the conduction type indicated by the control type information and the conduction type information output from the setting unit 35. For example, in the case where the control type is the high-side PWM control type or the double-side PWM control type, if the conduction type is the valley ON type, the predetermined timing is the timing of reaching the valley position of the carrier Scw, and if the conduction type is the peak ON type, the predetermined timing is the timing of reaching the peak position of the carrier Scw.

[0170] In addition, when the control type is a low-side PWM control type, if the conduction type is a valley ON type, the predetermined timing is the timing of reaching the peak position of the carrier Scw, and if the conduction type is a peak ON type, the predetermined timing is the timing of reaching the valley position of the carrier Scw.

[0171] Furthermore, when the time when the segment switching request is output from the segment determination unit 34 is a predetermined timing, the segment switching compensation unit 41 outputs the segment switching request to the conduction switching unit 40 without delaying the segment switching timing.

[0172] When a segment switching request is output from the segment determination unit 34, the segment switching compensation unit 41 starts monitoring the carrier Scw. When the conduction type indicated by the conduction type information output from the setting unit 35 is the valley ON type, the segment switching compensation unit 41 outputs a segment switching request to the conduction switching unit 40 at the timing of the valley position of the carrier Scw.

[0173] When the conduction pattern indicated by the conduction pattern information output from the setting unit 35 is the peak ON pattern, the segment switching compensating unit 41 outputs a segment switching request including information on the switching target segment to the conduction switching unit 40 at the timing of the peak position of the carrier Scw.

[0174] The conduction switching unit 40 performs segment switching based on the segment switching request output from the segment switching compensation unit 41, the comparison value Scomp obtained according to the duty cycle value Sduty output from the duty cycle calculation unit 32, the carrier Scw output from the carrier generation unit 33, and the conduction type information and control type information output from the setting unit 35.

[0175] Fig.18 1 is a diagram showing an example of control of the inverter circuit 10 using the second switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig.18 In the example shown, the control type, conduction type, and energization method are high-side PWM control type, valley ON type, and 120-degree energization method, and the situation before and after switching from segment 5 to segment 0 is shown.

[0176] When the timing immediately after the segment switching request is output from the segment determination unit 34 is a peak ON type of the carrier Scw, the segment switching compensation unit 41 waits until the carrier Scw reaches a valley position. Then, the segment switching compensation unit 41 outputs the segment switching request to the conduction switching unit 40 at the timing of the valley position of the carrier Scw.

[0177] Therefore, if Fig.18 As shown, the switching timing from segment 5 to segment 0 is delayed until the timing when the upper bridge arm 111 of the U phase, which is the conduction phase controlled by PWM, is turned on. Therefore, when switching from segment 5 to segment 0, the upper bridge arm 111 of the U phase, which is the high-side conduction phase, is turned on, and the negative current in the high-side conduction is suppressed.

[0178] Fig.19 1 is a flowchart showing an example of control of the inverter circuit 10 using the second switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig.18 The processing shown is an example of a case where the control type is a high-side PWM control type or a double-side PWM control type, and is started when a segment switching request is output from the segment determination unit 34 .

[0179] like Fig.19 As shown, when the segment switching request is output from the segment determination unit 34, the conduction control unit 36 ​​monitors the carrier Scw (step S20). Next, the conduction control unit 36 ​​determines whether the conduction type indicated by the conduction type information output from the setting unit 35 is the valley ON type (step S21).

[0180] When it is determined that the conduction type is the valley ON type (step S21: Yes), the conduction control unit 36 ​​determines whether the timing of the valley position of the carrier Scw has been reached (step S22). When it is determined that the timing of the valley position of the carrier Scw has not been reached (step S22: No), the conduction control unit 36 ​​transfers the process to step S20.

[0181] When it is determined that the conduction type is not the valley ON type but the peak ON type (step S21: No), the conduction control unit 36 ​​determines whether the timing of the peak position of the carrier Scw has been reached (step S23). When it is determined that the timing of the peak position of the carrier Scw has not been reached (step S23: No), the conduction control unit 36 ​​transfers the process to step S20.

[0182] When it is determined that the carrier wave Scw has reached the trough position (step S22: Yes) or when it is determined that the carrier wave Scw has reached the peak position (step S23: Yes), the conduction control unit 36 ​​performs the segment switching (step S24). When the processing of step S24 is completed, the conduction control unit 36 ​​ends. Fig.19 Processing shown.

[0183] Furthermore, when the control type is the low-side PWM control type, in step S21, it is determined whether the conduction type indicated by the conduction type information is the peak ON type. The conduction control unit 36 ​​transfers the processing to step S22 when the conduction type is the peak ON type, and transfers the processing to step S23 when the conduction type is the valley ON type.

[0184] <2.3.6.3.3. Third switching compensation method>

[0185] The third switching compensation method is based on the comparison result between the comparison value Scomp and the carrier Scw, and forces the above-mentioned object bridge arm to be turned on until a predetermined timing is reached, thereby suppressing the negative current in the high-side conduction phase or the positive current in the low-side conduction phase controlled by PWM during segment switching.

[0186] The predetermined timing differs depending on the combination of the control type and the conduction type indicated by the control type information and the conduction type information output from the setting unit 35. For example, it is assumed that the control type is the high-side PWM control type or the double-side PWM control type. In this case, if the conduction type is the valley ON type, the predetermined timing is the timing of reaching the valley position of the carrier Scw or the timing of the comparison value Scomp becoming larger than the carrier Scw, and if the conduction type is the peak ON type, the predetermined timing is the timing of reaching the peak position of the carrier Scw or the timing of the comparison value Scomp becoming less than the carrier Scw.

[0187] In addition, assuming that the control type is a low-side PWM control type, in this case, if the conduction type is a peak-ON type, the predetermined timing is the timing of reaching the trough position of the carrier Scw or the timing of the comparison value Scomp becoming greater than the carrier Scw, and if the conduction type is a valley-ON type, the predetermined timing is the timing of reaching the peak position of the carrier Scw or the timing of the comparison value Scomp becoming less than the carrier Scw.

[0188] When a segment switching request is output from the segment determination unit 34 , the segment switching compensation unit 41 monitors the carrier Scw. The segment switching compensation unit 41 determines the control type and the conduction type indicated by the control type information and the conduction type information output from the setting unit 35 .

[0189] Here, it is assumed that the control type is a high-side PWM control type or a double-side PWM control type, the conduction type is a valley ON type, and Scomp ≤ Scw. In this case, the segment switching compensation unit 41 outputs a segment switching request to the conduction switching unit 40, for example, and causes the conduction switching unit 40 to perform forced conduction control, which is a control that forces the target bridge arm to be turned on until the valley position of the carrier Scw is reached.

[0190] In addition, assuming that the control type is a high-side PWM control type or a double-side PWM control type, the conduction type is a peak ON type, and Scomp>Scw. In this case, the segment switching compensation unit 41 outputs a segment switching request to the conduction switching unit 40, for example, and causes the conduction switching unit 40 to perform forced conduction control until the peak position of the carrier Scw is reached.

[0191] In addition, assuming that the control type is a low-side PWM control type, the conduction type is a peak ON type, and Scomp ≤ Scw, in this case, the segment switching compensation unit 41 outputs a segment switching request to the conduction switching unit 40, for example, and causes the conduction switching unit 40 to perform forced conduction control, which is a control that forces the target bridge arm to be turned on until the valley position of the carrier Scw is reached.

[0192] In addition, assuming that the control type is a low-side PWM control type, the conduction type is a valley ON type, and Scomp>Scw, in this case, the segment switching compensation unit 41 outputs a segment switching request to the conduction switching unit 40, for example, and causes the conduction switching unit 40 to perform forced conduction control until the peak position of the carrier Scw is reached.

[0193] Then, when a predetermined timing is reached, the section switching compensation unit 41 releases the forced conduction control of the conduction switching unit 40. For example, when the control type and conduction type are the high-side PWM control type and the valley-ON type, when the timing of the valley position of the carrier Scw is reached, the section switching compensation unit 41 releases the forced conduction control of the conduction switching unit 40. In addition, when the control type and conduction type are the high-side PWM control type and the peak-ON type, when the timing of the peak position of the carrier Scw is reached, the section switching compensation unit 41 releases the forced conduction control of the conduction switching unit 40.

[0194] Furthermore, when the timing at which the segment switching request is output from the segment determining unit 34 is a predetermined timing, the segment switching compensating unit 41 outputs the segment switching request to the conduction switching unit 40 without causing the conduction switching unit 40 to perform the above-mentioned forced conduction control.

[0195] The conduction switching unit 40 performs segment switching based on the segment switching request output from the segment switching compensation unit 41, the comparison value Scomp obtained according to the duty cycle value Sduty output from the duty cycle calculation unit 32, the carrier Scw output from the carrier generation unit 33, and the conduction type information and control type information output from the setting unit 35.

[0196] Fig. 20 1 is a diagram showing an example of control of the inverter circuit 10 using the third switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig. 20 In the example shown, the control type, conduction type, and energization method are high-side PWM control type, valley ON type, and 120-degree energization method, and the situation before and after switching from segment 5 to segment 0 is shown.

[0197] When a segment switching request is output from the segment determination unit 34, if Scomp≤Scw, the segment switching compensation unit 41 outputs the segment switching request to the conduction switching unit 40, and causes the conduction switching unit 40 to execute control to force the upper bridge arm 111 of the U phase to be turned on until the timing of the valley position of the carrier Scw is reached.

[0198] Therefore, if Fig. 20As shown, the upper arm 111 of the U phase is forced to be turned on until the timing of the valley position of the carrier Scw is reached. Therefore, when switching from segment 5 to segment 0, the upper arm 111 of the U phase as the high-side conduction phase is turned on, and the negative current in the high-side conduction phase is suppressed.

[0199] Fig.21 1 is a flowchart showing an example of control of the inverter circuit 10 using the third switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig.21 The processing shown is an example of a case where the control type is a high-side PWM control type or a double-side PWM control type, and is started when a segment switching request is output from the segment determination unit 34 .

[0200] like Fig.21 As shown, when the segment switching request is output from the segment determination unit 34, the conduction control unit 36 ​​monitors the carrier Scw (step S30). Next, the conduction control unit 36 ​​determines whether the conduction type indicated by the conduction type information output from the setting unit 35 is the valley ON type (step S31).

[0201] When it is determined that the conduction type is the valley ON type (step S31: Yes), the conduction control unit 36 ​​determines whether Scomp>Scw (step S32). When it is determined that Scomp>Scw is not (step S32: No), the conduction control unit 36 ​​performs forced conduction processing (step S34). The processing of step S34 is Fig. 22 The processing of steps S40 to S45 will be described in detail later.

[0202] If the conduction type is determined to be not a valley ON type but a peak ON type (step S31: No), the conduction control unit 36 ​​determines whether Scomp≤Scw (step S33). If Scomp≤Scw is not determined (step S33: No), the conduction control unit 36 ​​transfers the process to step S34.

[0203] If it is determined that Scomp>Scw (step S32: Yes), the conduction control unit 36 ​​executes the section switching (step S35). If it is determined that Scomp≤Scw (step S33: Yes), the conduction control unit 36 ​​executes the section switching (step S36). If the conduction control unit 36 ​​has completed the processing of steps S34 to S36, the conduction control unit 36 ​​ends. Fig.21 Processing shown.

[0204] Fig. 22 FIG. 1 is a flowchart showing an example of a forced conduction process in a conduction control unit of a motor control device according to an embodiment. Fig. 22As shown, the conduction control unit 36 ​​forcibly turns the target arm on and performs section switching (step S40).

[0205] Next, the conduction control unit 36 ​​monitors the carrier wave Scw (step S41). Then, the conduction control unit 36 ​​determines whether the conduction type indicated by the conduction type information output from the setting unit 35 is the valley ON type (step S42).

[0206] When it is determined that the conduction type is the valley ON type (step S42: Yes), the conduction control unit 36 ​​determines whether the timing of the valley position of the carrier Scw has been reached, that is, whether the valley of the carrier Scw has been reached (step S43). When it is determined that the valley of the carrier Scw has not been reached (step S43: No), the conduction control unit 36 ​​transfers the process to step S41.

[0207] When it is determined that the conduction type is not the valley ON type but the peak ON type (step S42: No), the conduction control unit 36 ​​determines whether the timing of the peak position of the carrier Scw has been reached, that is, whether the peak of the carrier Scw has been reached (step S44). When it is determined that the peak of the carrier Scw has not been reached (step S44: No), the conduction control unit 36 ​​transfers the process to step S41.

[0208] When it is determined that the carrier wave Scw has reached a valley (step S43: Yes), or when it is determined that the carrier wave Scw has reached a peak (step S44: Yes), the conduction control unit 36 ​​performs a process of releasing the forced conduction of the target bridge arm (step S45). When the process of step S45 is completed, the conduction control unit 36 ​​ends. Fig. 22 Processing shown.

[0209] Furthermore, when the control type is the low-side PWM control type, in step S31, it is determined whether the conduction type indicated by the conduction type information output from the setting unit 35 is the peak ON type. The conduction control unit 36 ​​transfers the process to step S32 when the conduction type is the peak ON type, and transfers the process to step S33 when the conduction type is the valley ON type.

[0210] In addition, when the control type is the low-side PWM control type, in step S42, it is determined whether the conduction type indicated by the conduction type information output from the setting unit 35 is the peak ON type. The conduction control unit 36 ​​transfers the process to step S32 when the conduction type is the peak ON type, and transfers the process to step S33 when the conduction type is the valley ON type.

[0211] <2.3.6.3.4. Fourth switching compensation method>

[0212] The fourth switching compensation method does not compare the comparison value Scomp with the carrier Scw, but forcibly turns the target bridge arm on until the timing of the trough or peak of the carrier Scw is reached, thereby suppressing the negative current in the high-side conduction phase or the positive current in the low-side conduction phase controlled by PWM during the segment switching. Since the fourth switching compensation method does not compare the comparison value Scomp with the carrier Scw, it is possible to reduce the processing load of the segment switching compensation unit 41 compared to the third switching compensation method.

[0213] When a segment switching request is output from the segment determination unit 34, the segment switching compensation unit 41 outputs the segment switching request to the conduction switching unit 40, and causes the conduction switching unit 40 to perform control for forcibly conducting the target bridge arm, i.e., forced conduction control. Then, the segment switching compensation unit 41 monitors the carrier Scw. The segment switching compensation unit 41 determines the control type and conduction type indicated by the control type information and the conduction type information.

[0214] Here, it is assumed that the control type is a high-side PWM control type or a double-side PWM control type. In this case, if the conduction type is a valley ON type, the section switching compensation unit 41 causes the conduction switching unit 40 to continue the forced conduction control until the timing of the valley position of the carrier Scw is reached, and if the conduction type is a peak ON type, the section switching compensation unit 41 causes the conduction switching unit 40 to continue the forced conduction control until the timing of the peak position of the carrier Scw is reached.

[0215] Moreover, if the conduction type is a valley ON type, when the timing of the valley position of the carrier Scw is reached, the segment switching compensation unit 41 causes the conduction switching unit 40 to release the forced conduction control; if the conduction type is a peak ON type, when the timing of the peak position of the carrier Scw is reached, the segment switching compensation unit 41 causes the conduction switching unit 40 to release the forced conduction control.

[0216] In addition, assuming that the control type is a low-side PWM control type, in this case, if the conduction type is a valley-ON type, the section switching compensation unit 41 causes the conduction switching unit 40 to continue the forced conduction control until the timing of the peak position of the carrier Scw is reached, and if the conduction type is a peak-ON type, the section switching compensation unit 41 causes the conduction switching unit 40 to continue the forced conduction control until the timing of the valley position of the carrier Scw is reached.

[0217] Moreover, if the conduction type is a valley ON type, when the timing of the peak position of the carrier Scw is reached, the segment switching compensation unit 41 causes the conduction switching unit 40 to release the forced conduction control; if the conduction type is a peak ON type, when the timing of the valley position of the carrier Scw is reached, the segment switching compensation unit 41 causes the conduction switching unit 40 to release the forced conduction control.

[0218] When the timing at which the segment switching request is output from the segment determining unit 34 is the timing for releasing the forced conduction control, the segment switching compensating unit 41 outputs the segment switching request to the conduction switching unit 40 without causing the conduction switching unit 40 to execute the forced conduction control.

[0219] Fig.23 1 is a diagram showing an example of control of the inverter circuit 10 using the fourth switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig.23 The processing shown is started when a segment switching request is output from the segment determination unit 34. Fig.23 In the example shown, the control type, conduction type, and energization method are high-side PWM control type, valley ON type, and 120-degree energization method, and the situation before and after switching from segment 5 to segment 0 is shown.

[0220] When a section switching request is output from the section determination unit 34 , the section switching compensation unit 41 causes the conduction switching unit 40 to execute control to forcibly turn on the upper arm 111 of the U phase from the section switching timing to the timing of the valley position of the carrier Scw.

[0221] Therefore, if Fig.23 As shown, the upper arm 111 of the U phase is forced to conduct until the timing of the valley position of the carrier Scw is reached. Therefore, when switching from segment 5 to segment 0, the upper arm 111 of the U phase as the high-side conduction phase is turned on, and the negative current in the high-side conduction phase is suppressed.

[0222] Fig.24 1 is a flowchart showing an example of control of the inverter circuit 10 using the fourth switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig.24 The processing shown is an example of a case where the control type is a high-side PWM control type or a double-side PWM control type, and is started when a segment switching request is output from the segment determination unit 34 .

[0223] like Fig.24 As shown, when a segment switching request is output from the segment determination unit 34, the conduction control unit 36 ​​forcibly turns on the target bridge arm and performs segment switching (step S50). Then, the conduction control unit 36 ​​monitors the carrier Scw (step S51).

[0224] Next, the conduction control unit 36 ​​determines whether the conduction type indicated by the conduction type information output from the setting unit 35 is the valley ON type (step S52). If it is determined that the conduction type is the valley ON type (step S52: Yes), the conduction control unit 36 ​​determines whether the valley of the carrier Scw has been reached (step S53). If it is determined that the valley of the carrier Scw has not been reached (step S53: No), the conduction control unit 36 ​​transfers the process to step S51.

[0225] When it is determined that the conduction type is not the valley ON type but the peak ON type (step S52: No), the conduction control unit 36 ​​determines whether the peak of the carrier Scw has been reached (step S54). When it is determined that the peak of the carrier Scw has not been reached (step S54: No), the conduction control unit 36 ​​transfers the process to step S51.

[0226] When it is determined that the carrier wave Scw has reached a trough (step S53: Yes), or when it is determined that the carrier wave Scw has reached a peak (step S54: Yes), the conduction control unit 36 ​​releases the forced conduction of the target bridge arm (step S55). When the processing of step S55 is completed, the conduction control unit 36 ​​ends. Fig.24 Processing shown.

[0227] Furthermore, when the control type is the low-side PWM control type, in step S52, it is determined whether the conduction type indicated by the conduction type information output from the setting unit 35 is the peak ON type. The conduction control unit 36 ​​transfers the process to step S53 when the conduction type is the peak ON type, and transfers the process to step S54 when the conduction type is the valley ON type.

[0228] <2.3.6.3.5. Fifth switching compensation method>

[0229] The fifth switching compensation method is based on the comparison result of the comparison value Scomp and the carrier Scw, and forces the above-mentioned object bridge arm to be set to the cut-off state until a predetermined timing is reached, and sets the conduction phase that will be the object of PWM control to be non-conductive, thereby suppressing the negative current in the high-side conduction phase or the positive current in the low-side conduction phase controlled by PWM during segment switching.

[0230] The predetermined timing differs depending on the combination of the control type and the conduction type indicated by the control type information and the conduction type information output from the setting unit 35. For example, it is assumed that the control type is the high-side PWM control type or the double-side PWM control type. In this case, if the conduction type is the valley ON type, the predetermined timing is the timing of reaching the valley position of the carrier Scw or the timing of the comparison value Scomp becoming larger than the carrier Scw, and if the conduction type is the peak ON type, the predetermined timing is the timing of reaching the peak position of the carrier Scw or the timing of the comparison value Scomp becoming less than the carrier Scw.

[0231] In addition, assuming that the control type is a low-side PWM control type, in this case, if the conduction type is a peak-ON type, the predetermined timing is the timing of reaching the trough position of the carrier Scw or the timing of the comparison value Scomp becoming greater than the carrier Scw, and if the conduction type is a valley-ON type, the predetermined timing is the timing of reaching the peak position of the carrier Scw or the timing of the comparison value Scomp becoming less than the carrier Scw.

[0232] When the sector switching request is output from the sector determination unit 34 , the sector switching compensation unit 41 monitors the carrier Scw. The sector switching compensation unit 41 determines the control type and the conduction type indicated by the control type information and the conduction type information output from the setting unit 35 .

[0233] The section switching compensator 41 outputs a section switching request to the conduction switcher 40 and causes the conduction switcher 40 to perform forced turn-off control, which is control for forcibly turning off the target arm, until a predetermined timing is reached, based on the comparison result between the comparison value Scomp and the carrier Scw.

[0234] Here, it is assumed that the control type is a high-side PWM control type or a double-side PWM control type, the conduction type is a valley ON type, and Scomp ≤ Scw. In this case, the segment switching compensation unit 41 outputs a segment switching request to the conduction switching unit 40, for example, and causes the conduction switching unit 40 to perform a control of forcibly turning off the target bridge arm until the valley of the carrier Scw is reached, i.e., forced turn-off control.

[0235] In addition, assuming that the control type is a high-side PWM control type or a double-side PWM control type, the conduction type is a peak ON type, and Scomp>Scw. In this case, the segment switching compensation unit 41 outputs a segment switching request to the conduction switching unit 40, for example, and causes the conduction switching unit 40 to perform forced cutoff control until the peak of the carrier Scw is reached.

[0236] In addition, assuming that the control type is a low-side PWM control type, the conduction type is a peak ON type, and Scomp ≤ Scw, in this case, the segment switching compensation unit 41 outputs a segment switching request to the conduction switching unit 40, for example, and causes the conduction switching unit 40 to perform control of forcibly turning on the target bridge arm until the trough of the carrier Scw is reached, i.e., forced conduction control.

[0237] In addition, assuming that the control type is a low-side PWM control type, the conduction type is a valley ON type, and Scomp>Scw, in this case, the segment switching compensation unit 41 outputs a segment switching request to the conduction switching unit 40, for example, and causes the conduction switching unit 40 to perform forced conduction control until the peak of the carrier Scw is reached.

[0238] Then, when a predetermined timing is reached, the section switching compensation unit 41 causes the conduction switching unit 40 to release the forced cutoff control. For example, it is assumed that the control type is a high-side PWM control type or a double-side PWM control type. In this case, if the conduction type is a valley ON type, the section switching compensation unit 41 causes the conduction switching unit 40 to release the forced cutoff control when the timing of the valley position of the carrier Scw is reached, and if the conduction type is a peak ON type, the section switching compensation unit 41 causes the conduction switching unit 40 to release the forced cutoff control when the timing of the peak position of the carrier Scw is reached.

[0239] In addition, assuming that the control type is a low-side PWM control type, in this case, if the conduction type is a peak-ON type, when the timing of the trough position of the carrier Scw is reached, the section switching compensation unit 41 causes the conduction switching unit 40 to release the forced cutoff control, and if the conduction type is a trough-ON type, when the timing of the peak position of the carrier Scw is reached, the section switching compensation unit 41 causes the conduction switching unit 40 to release the forced cutoff control.

[0240] Furthermore, when the time when the segment switching request is output from the segment determination unit 34 is a predetermined timing, the segment switching compensation unit 41 outputs the segment switching request to the conduction switching unit 40 without causing the conduction switching unit 40 to perform the above-mentioned forced OFF control.

[0241] The conduction switching unit 40 performs segment switching based on the segment switching request output from the segment switching compensation unit 41, the comparison value Scomp obtained according to the duty cycle value Sduty output from the duty cycle calculation unit 32, the carrier Scw output from the carrier generation unit 33, and the conduction type information and control type information output from the setting unit 35.

[0242] Fig.25 1 is a diagram showing an example of control of the inverter circuit 10 using the fifth switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig.25In the example shown, the control type, conduction type, and energization method are high-side PWM control type, valley ON type, and 120-degree energization method, and the situation before and after switching from segment 5 to segment 0 is shown.

[0243] When a segment switching request is output from the segment determination unit 34, if Scomp≤Scw, the segment switching compensation unit 41 outputs the segment switching request to the conduction switching unit 40, and causes the conduction switching unit 40 to execute control to forcibly cut off the upper bridge arm 111 and the lower bridge arm 121 of the U phase until the timing of the valley position of the carrier Scw is reached.

[0244] Therefore, if Fig.25 As shown, the upper bridge arm 111 and the lower bridge arm 121 of the U phase are forced to be disconnected until the timing of the valley position of the carrier Scw is reached. Therefore, when switching from segment 5 to segment 0, the upper arm 111 and the lower arm 121 of the U phase as the high-side conduction phase are disconnected, and the negative current in the high-side conduction phase is suppressed.

[0245] Fig.26 1 is a flowchart showing an example of control of the inverter circuit 10 using the fifth switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig.26 The processing shown is started when a segment switching request is output from the segment determination unit 34 . Fig.26 The processing of steps S60 to S63, S65, and S66 shown in FIG. Fig.21 The processes of steps S30 to S33, S35, and S36 are the same, and thus their description is omitted.

[0246] like Fig.26 As shown in FIG. 1 , when it is determined that Scomp>Scw is not (step S62: No) or when it is determined that Scomp≤Scw is not (step S63: No), the conduction control unit 36 ​​performs forced cutoff processing (step S64). The processing of step S64 is Fig. 27 The processing of steps S70 to S75 shown will be described in detail later.

[0247] Fig. 27 This is a flowchart showing an example of a forced cutoff process in a conduction control unit of the motor control device according to the embodiment. Fig. 27 The illustrated processing is an example of a case where the control type is a high-side PWM control type or a double-side PWM control type. Fig. 27 The processing of steps S71 to S74 shown in FIG. Fig. 22 The processes of steps S41 to S44 shown are the same, and thus description thereof will be omitted.

[0248] like Fig. 27As shown, the conduction control unit 36 ​​forcibly turns off the target arm and performs section switching (step S70).

[0249] In addition, when it is determined that the carrier wave Scw has reached a trough (step S73: Yes), or when it is determined that the carrier wave Scw has reached a peak (step S74: Yes), the conduction control unit 36 ​​executes a process of releasing the forced cutoff of the target bridge arm (step S75). When the process of step S75 is completed, the conduction control unit 36 ​​ends. Fig. 27 Processing shown.

[0250] Furthermore, when the control type is the low-side PWM control type, in step S72, it is determined whether the conduction type indicated by the conduction type information output from the setting unit 35 is the peak ON type. The conduction control unit 36 ​​transfers the process to step S73 when the conduction type is the peak ON type, and transfers the process to step S74 when the conduction type is the valley ON type.

[0251] <2.3.6.3.6. Sixth switching compensation method>

[0252] The sixth switching compensation method does not compare the comparison value Scomp with the carrier Scw, but forcibly sets the above-mentioned target bridge arm to the off state until the timing of the trough or peak of the carrier Scw is reached and sets it to non-conduction, thereby suppressing the negative current in the high-side conduction phase or the positive current in the low-side conduction phase controlled by PWM during the segment switching. Since the sixth switching compensation method does not compare the comparison value Scomp with the carrier Scw, it can reduce the processing load of the segment switching compensation unit 41 compared with the fifth switching compensation method.

[0253] When a section switching request is output from the conduction switching unit 40, the section switching compensation unit 41 outputs the section switching request to the conduction switching unit 40, and causes the conduction switching unit 40 to perform control for forcibly turning off the target bridge arm, i.e., forced turn-off control. Then, the section switching compensation unit 41 monitors the carrier Scw. The section switching compensation unit 41 determines the control type and conduction type indicated by the control type information and conduction type information output from the setting unit 35.

[0254] Here, it is assumed that the control type is a high-side PWM control type or a double-side PWM control type. In this case, if the conduction type is a valley ON type, the section switching compensation unit 41 causes the conduction switching unit 40 to continue the forced cutoff control until the timing of the valley position of the carrier Scw is reached, and if the conduction type is a peak ON type, the section switching compensation unit 41 causes the conduction switching unit 40 to continue the forced cutoff control until the timing of the peak position of the carrier Scw is reached.

[0255] Furthermore, if the conduction type is a valley ON type, when the timing of the valley position of the carrier Scw is reached, the segment switching compensation unit 41 causes the conduction switching unit 40 to release the forced cutoff control; if the conduction type is a peak ON type, when the timing of the peak position of the carrier Scw is reached, the segment switching compensation unit 41 causes the conduction switching unit 40 to release the forced cutoff control.

[0256] In addition, assuming that the control type is a low-side PWM control type, in this case, if the conduction type is a peak ON type, the section switching compensation unit 41 causes the conduction switching unit 40 to continue the forced cutoff control until the timing of the valley position of the carrier Scw is reached, and if the conduction type is a valley ON type, the section switching compensation unit 41 causes the conduction switching unit 40 to continue the forced cutoff control until the timing of the peak position of the carrier Scw is reached.

[0257] Furthermore, if the conduction type is a peak ON type, when the timing of the trough position of the carrier Scw is reached, the segment switching compensation unit 41 causes the conduction switching unit 40 to release the forced cutoff control; if the conduction type is a trough ON type, when the timing of the peak position of the carrier Scw is reached, the segment switching compensation unit 41 causes the conduction switching unit 40 to release the forced cutoff control.

[0258] When the segment determination unit 34 outputs the segment switching request at the timing of releasing the forced cutoff control, the segment switching compensation unit 41 outputs the segment switching request to the conduction switch unit 40 without causing the conduction switch unit 40 to execute the forced cutoff control.

[0259] Fig.28 1 is a diagram showing an example of control of the inverter circuit 10 using the sixth switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig.28 In the example shown, the control type, conduction type, and energization method are high-side PWM control type, valley ON type, and 120-degree energization method, and the situation before and after switching from segment 5 to segment 0 is shown.

[0260] When the section switching request is output from the section determination unit 34 , the section switching compensation unit 41 controls the conduction switch unit 40 to forcibly turn off the upper arm 111 and the lower arm 121 of the U phase from the section switching timing to the timing of the valley position of the carrier Scw.

[0261] Therefore, if Fig.28 As shown, the upper bridge arm 111 and the lower bridge arm 121 of the U phase are forced to be turned off until the timing position of the valley position of the carrier Scw is reached. Therefore, when switching from segment 5 to segment 0, the upper bridge arm 111 and the lower bridge arm 121 of the U phase as the high-side conduction phase are turned off, and the negative current in the high-side conduction phase is suppressed.

[0262] Fig.29 1 is a flowchart showing an example of control of the inverter circuit 10 using the sixth switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig.29 The processing shown is an example of a case where the control type is a high-side PWM control type or a double-side PWM control type, and is started when a segment switching request is output from the segment determination unit 34 . Fig.29 The processing of steps S81 to S84 shown in FIG. Fig.24 The processes in steps S51 to S54 are the same and their description is omitted.

[0263] like Fig.29 As shown, when the segment switching request is output from the segment determination unit 34, the conduction control unit 36 ​​forcibly turns off the target arm and performs segment switching (step S80). Then, the conduction control unit 36 ​​monitors the carrier Scw (step S81).

[0264] In addition, when it is determined that the carrier wave Scw has reached a trough (step S83: Yes), or when it is determined that the carrier wave Scw has reached a peak (step S84: Yes), the conduction control unit 36 ​​releases the forced cutoff of the target bridge arm (step S85). When the processing of step S85 is completed, the conduction control unit 36 ​​ends. Fig.29 Processing shown.

[0265] When the control type is the low-side PWM control type, in step S82, it is determined whether the conduction type indicated by the conduction type information output from the setting unit 35 is the peak ON type. When the conduction type is the peak ON type, the conduction control unit 36 ​​transfers the processing to step S83, and when the conduction type is the valley ON type, the processing is transferred to step S84.

[0266] <2.3.6.3.7. Seventh switching compensation method>

[0267] The seventh switching compensation method is based on the comparison result of the comparison value Scomp and the carrier Scw, and when the predetermined conduction type switching condition is satisfied, the conduction type is switched to suppress the negative current in the high-side conduction phase or the positive current in the low-side conduction phase controlled by PWM when the segment is switched. The conduction type switching is performed, for example, in the following manner: when the conduction type in the segment before switching is the valley ON type, the conduction type in the switching target segment is changed to the peak ON type, and when the conduction type in the segment before switching is the peak ON type, the conduction type in the switching target segment is changed to the valley ON type.

[0268] The segment switching compensator 41 monitors the carrier Scw when the segment switching request is output from the segment decision unit 34. The segment switching compensator 41 determines the control type indicated by the control type information output from the setting unit 35 and the conduction type in the segment before switching.

[0269] Here, it is assumed that the control type is a high-side PWM control type or a double-side PWM control type. In this case, if the conduction type in the segment before switching is a valley ON type, the segment switching compensation unit 41 determines whether Scomp≤Scw, and if the conduction type in the segment before switching is a peak ON type, the segment switching compensation unit 41 determines whether Scomp>Scw.

[0270] In addition, assuming that the control type is a low-side PWM control type, in this case, if the conduction type in the segment before switching is a peak ON type, the segment switching compensation unit 41 determines whether Scomp≤Scw, and if the conduction type in the segment before switching is a valley ON type, the segment switching compensation unit 41 determines whether Scomp>Scw.

[0271] The segment switching compensator 41 outputs a segment switching request to the conduction switching unit 40 based on the determination result of the conduction type in the segment before switching and the comparison result between the comparison value Scomp and the carrier Scw.

[0272] The conduction switching unit 40 performs segment switching based on the segment switching request output from the segment switching compensation unit 41, the comparison value Scomp obtained according to the duty cycle value Sduty output from the duty cycle calculation unit 32, the carrier Scw output from the carrier generation unit 33, and the conduction type information and control type information output from the setting unit 35.

[0273] Here, it is assumed that the control type is a high-side PWM control type or a double-side PWM control type, and the conduction type in the segment before switching is a valley ON type. In this case, if Scomp≤Scw, the predetermined conduction type switching condition is satisfied. Therefore, if Scomp≤Scw, the segment switching compensation unit 41 outputs a segment switching request including information indicating the switching target segment and information indicating that the conduction type in the switching target segment is a peak ON type to the conduction switching unit 40. In this case, the conduction switching unit 40 uses a value obtained by inverting the comparison value Scomp when the conduction type is a valley ON type, that is, a value obtained by inverting the duty cycle value Sduty output from the duty cycle calculation unit 32 as the comparison value Scomp, and changes the conduction type from the valley ON type to the peak ON type to perform segment switching.

[0274] In addition, it is assumed that the control type is a high-side PWM control type or a double-side PWM control type, and the conduction type in the segment before switching is a peak ON type. In this case, if Scomp>Scw, the predetermined conduction type switching condition is satisfied. Therefore, if Scomp>Scw, the segment switching compensation unit 41 outputs a segment switching request including information indicating the switching target segment and information indicating that the conduction type in the switching target segment is a valley ON type to the conduction switching unit 40. In this case, the conduction switching unit 40 uses a value obtained by inverting the comparison value Scomp compared to the conduction type being the peak ON type, that is, the duty cycle value Sduty output from the duty cycle calculation unit 32 as the comparison value Scomp, and changes the conduction type from the peak ON type to the valley ON type to perform segment switching.

[0275] In addition, it is assumed that the control type is a low-side PWM control type, and the conduction type in the segment before switching is a valley ON type. In this case, if Scomp>Scw, the predetermined conduction type switching condition is satisfied. Therefore, if Scomp>Scw, the segment switching compensation unit 41 outputs a segment switching request including information indicating the switching target segment and information indicating that the conduction type in the switching target segment is a peak ON type to the conduction switching unit 40. In this case, the conduction switching unit 40 uses the value obtained by inverting the comparison value Scomp when the conduction type is a valley ON type, that is, the duty cycle value Sduty output from the duty cycle calculation unit 32 as the comparison value Scomp, and changes the conduction type from the valley ON type to the peak ON type to perform segment switching.

[0276] In addition, it is assumed that the control type is a low-side PWM control type, and the conduction type in the segment before switching is a peak ON type. In this case, if Scomp≤Scw, the predetermined conduction type switching condition is satisfied. Therefore, if Scomp≤Scw, the segment switching compensation unit 41 outputs a segment switching request including information indicating the switching target segment and information indicating that the conduction type in the switching target segment is a valley ON type to the conduction switching unit 40. In this case, the conduction switching unit 40 uses a value obtained by inverting the comparison value Scomp compared to the conduction type being the peak ON type, that is, a value obtained by inverting the duty cycle value Sduty output from the duty cycle calculation unit 32 as the comparison value Scomp, and changes the conduction type from the peak ON type to the valley ON type to perform segment switching.

[0277] Furthermore, when the above-mentioned conduction type switching condition is not satisfied, the section switching compensation unit 41 does not cause the conduction switching unit 40 to perform conduction type switching.

[0278] Fig.301 is a diagram showing an example of control of the inverter circuit 10 using the seventh switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig.30 In the example shown, the control type, conduction type, and energization method are high-side PWM control type, valley ON type, and 120-degree energization method, and the situation before and after switching from segment 5 to segment 0 is shown.

[0279] When the segment switching request is outputted from the segment determination unit 34, if Scomp≤Scw, the segment switching compensator 41 outputs the segment switching request to the conduction switcher 40. The segment switching request includes information indicating the switching target segment and information indicating that the conduction type in the switching target segment is the peak ON type.

[0280] Therefore, if Fig.30 As shown, the conduction type changes from the valley ON type to the peak ON type when switching from segment 5 to segment 0. Therefore, when switching from segment 5 to segment 0, the upper arm 111 of the U phase as the high-side conduction phase is turned on, and the negative current in the high-side conduction phase is suppressed.

[0281] Fig.31 1 is a flowchart showing an example of control of the inverter circuit 10 using the seventh switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig.31 The processing shown is an example of a case where the control type is a high-side PWM control type or a double-side PWM control type, and is started when a segment switching request is output from the segment determination unit 34 . Fig.31 The processing of steps S90 to S93 and S95 shown in FIG. Fig.21 The processes in steps S30 to S33 and S35 are the same, and the description thereof is omitted.

[0282] like Fig.31 As shown, when it is determined that Scomp>Scw is not (step S92: No) or when it is determined that Scomp≤Scw is not (step S93: No), the conduction control unit 36 ​​switches the conduction type (step S94).

[0283] In the process of step S94, when the conduction type in the section before switching is the valley ON type, the conduction control unit 36 ​​switches the conduction type in the switching target section to the peak ON type. In addition, in the process of step S94, when the conduction type in the section before switching is the peak ON type, the conduction control unit 36 ​​switches the conduction type in the switching target section to the valley ON type. In addition, the conduction control unit 36 ​​uses the value obtained by inverting the comparison value Scomp before the conduction type switching as the comparison value Scomp after the conduction type switching in accordance with the switching of the conduction type.

[0284] Furthermore, when the control type is the low-side PWM control type, in step S91, it is determined whether the conduction type indicated by the conduction type information output from the setting unit 35 is the peak ON type. The conduction control unit 36 ​​transfers the process to step S92 when the conduction type is the peak ON type, and transfers the process to step S93 when the conduction type is the valley ON type.

[0285] <2.3.6.3.8. Eighth switching compensation method>

[0286] The eighth switching compensation method suppresses the negative current in the high-side conduction phase or the positive current in the low-side conduction phase controlled by PWM during the segment switching by resetting the carrier Scw.

[0287] When a segment switching request is output from the segment determination unit 34 , the segment switching compensation unit 41 initializes the value of the counter of the carrier generation unit 33 to reset the carrier Scw, and outputs a segment switching request to the conduction switching unit 40 .

[0288] Here, it is assumed that the control type is a high-side PWM control type or a double-side PWM control type. In this case, if the conduction type is a valley ON type, the section switching compensation unit 41 sets the value of the counter of the carrier generation unit 33 to the value of the valley position of the carrier Scw (for example, 0), and if the conduction type is a peak ON type, the section switching compensation unit 41 sets the value of the counter of the carrier generation unit 33 to the value of the peak position of the carrier Scw.

[0289] In addition, it is assumed that the control type is a low-side PWM control type. In this case, if the conduction type is a peak ON type, the section switching compensation unit 41 sets the value of the counter of the carrier generation unit 33 to the value of the valley position of the carrier Scw (for example, 0), and if the conduction type is a valley ON type, the section switching compensation unit 41 sets the value of the counter of the carrier generation unit 33 to the value of the peak position of the carrier Scw.

[0290] The conduction switching unit 40 performs segment switching based on the segment switching request output from the segment switching compensation unit 41, the comparison value Scomp obtained according to the duty cycle value Sduty output from the duty cycle calculation unit 32, the carrier Scw output from the carrier generation unit 33, and the conduction type information and control type information output from the setting unit 35.

[0291] Fig.32 1 is a diagram showing an example of control of the inverter circuit 10 using the eighth switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig.32 In the example shown, the control type, conduction type, and energization method are high-side PWM control type, valley ON type, and 120-degree energization method, and the situation before and after switching from segment 5 to segment 0 is shown.

[0292] When a segment switching request is output from the segment determination unit 34 , the segment switching compensation unit 41 sets the value of the counter of the carrier generation unit 33 to the value of the valley position of the carrier Scw (for example, 0) to reset the carrier Scw.

[0293] Therefore, if Fig.32 As shown, the timing of switching from segment 5 to segment 0 reaches the valley position of carrier Scw. When switching from segment 5 to segment 0, the upper arm 111 of the U phase as the high-side conduction phase is turned on, and the negative current in the high-side conduction phase is suppressed.

[0294] Fig.33 FIG. 2 is a diagram showing another example of control of the inverter circuit 10 using the eighth switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig.33 In the example shown, the control type, conduction type, and energization method are high-side PWM control type, peak ON type, and 120-degree energization method, and the situation before and after switching from segment 5 to segment 0 is shown.

[0295] When a segment switching request is output from the segment determination unit 34 , the segment switching compensation unit 41 sets the value of the counter of the carrier generation unit 33 to the value of the peak position of the carrier Scw to reset the carrier Scw.

[0296] Therefore, if Fig.33 As shown, the timing of switching from segment 5 to segment 0 reaches the valley position of carrier Scw. When switching from segment 5 to segment 0, the upper arm 111 of the U phase as the high-side conduction phase is turned on, and the negative current in the high-side conduction phase is suppressed.

[0297] Fig.34 1 is a flowchart showing an example of control of the inverter circuit 10 using the eighth switching compensation method in the conduction control unit 36 ​​of the motor control device 1 according to the embodiment. Fig.34 The processing shown is an example of a case where the control type is a high-side PWM control type or a double-side PWM control type, and is started when a segment switching request is output from the segment determination unit 34 .

[0298] like Fig.34 As shown in FIG. 1 , when the segment switching request is output from the segment determination unit 34, the conduction control unit 36 ​​determines whether the conduction type indicated by the conduction type information output from the setting unit 35 is the valley ON type (step S100). When it is determined that the conduction type is the valley ON type (step S100: Yes), the conduction control unit 36 ​​sets the value of the counter of the carrier generation unit 33 to the value of the valley position of the carrier Scw to reset the carrier Scw (step S101).

[0299] When determining that the conduction type is not the valley ON type but the peak ON type (step S100 : No), the conduction control unit 36 ​​sets the counter value of the carrier generation unit 33 to the value of the peak position of the carrier Scw to reset the carrier Scw (step S102 ).

[0300] When the process of step S101 is completed or when the process of step S102 is completed, the conduction control unit 36 ​​performs the segment switching (step S103). When the process of step S103 is completed, the conduction control unit 36 ​​ends. Fig.34 Processing shown.

[0301] Furthermore, when the control type is the low-side PWM control type, in step S100, it is determined whether the conduction type indicated by the conduction type information output from the setting unit 35 is the peak ON type. The conduction control unit 36 ​​transfers the process to step S101 when the conduction type is the peak ON type, and transfers the process to step S102 when the conduction type is the peak ON type.

[0302] <2.3.6.3.9. Effect of Segment Switching Compensation>

[0303] The conduction control unit 36 ​​performs the above-described section switching compensation, thereby suppressing the flow of negative current from the high-side conduction phase among the plurality of conduction phases when switching sections, thereby suppressing a decrease in the output torque of the motor 2 .

[0304] Fig.35 1 is a diagram showing the U-phase voltage, U-phase current, and output torque before and after switching from segment 5 to segment 0 when segment switching compensation is performed by the segment switching compensation unit 41 in the motor control device 1 according to the embodiment. Fig.35 In the example shown, the conduction type, control type and energization method are valley ON type, high-side PWM control type and 120-degree energization method. Fig.34 In the figure, the horizontal axes of the two graphs are time, and the vertical axes of the two graphs are U-phase voltage and U-phase current.

[0305] When the section switching compensation unit 41 performs section switching compensation, as shown in FIG. Fig.35 As shown, when switching from segment 5 to segment 0, even in the case where the switching timing from segment 5 to segment 0 is the peak position of the carrier Scw or the peak position timing, no negative current flows in the U phase which is the high-side conduction phase. Therefore, the motor control device 1 can suppress the negative current from flowing in the high-side conduction phase, thereby suppressing the reduction in the output torque of the motor 2.

[0306] <2.3.7. Hardware structure>

[0307] Fig.36 1 is a diagram showing an example of a hardware configuration of the control unit 30 of the motor control device 1 according to the embodiment. Fig.36 As shown, the control unit 30 includes a computer having a processor 101, a memory 102, an input / output unit 103, and a bus 104. The processor 101, the memory 102, and the input / output unit 103 can transmit and receive information to and from each other via the bus 104.

[0308] The processor 101 reads and executes the motor control program stored in the memory 102 to perform the functions of the control unit 30. The processor 101 is an example of a processing circuit, and includes one or more of a CPU (Central Processing Unit), a DSP (Digital Signal Processor), and a system LSI (Large Scale Integration).

[0309] The memory 102 includes one or more of RAM (Random Access Memory), ROM (Read Only Memory), flash memory, EPROM (Erasable Programmable Read Only Memory), and EEPROM (registered trademark) (Electrically Erasable Programmable Read Only Memory). The input / output unit 103 includes, for example, an AD converter, a DA converter, and an input / output port.

[0310] In addition, the motor control device 1 may also be configured to include a data reading unit that reads the motor control program from a recording medium that records the motor control program readable by a computer. The processor 101 can control the data reading unit to obtain the motor control program recorded in the recording medium from the data reading unit, and store the obtained motor control program in the memory 102. The recording medium includes, for example, one or more of a nonvolatile or volatile semiconductor memory, a magnetic disk, a flexible memory, an optical disk, a compact disk, and a DVD (Digital Versatile Disc).

[0311] The motor control device 1 may include a communication unit for receiving the motor control program from the server via the network. In this case, the processor 101 may obtain the motor control program from the server via the communication unit and store the obtained motor control program in the memory 102 .

[0312] In addition, the control unit 30 may include an integrated circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array).

[0313] <3. Effect>

[0314] As described above, the motor control device 1 according to the embodiment controls the motor 2 by a 120-degree energization method in which two of the three phases are set as energized phases in which at least one phase is PWM controlled and the remaining one phase is set as a non-energized phase, or a 180-degree energization method in which the three phases are set as energized phases in which at least one phase is PWM controlled. The motor control device 1 includes an inverter circuit 10, a segment determination unit 34, and a conduction control unit 36. The inverter circuit 10 has an upper bridge arm 11 and a lower bridge arm 12 for each of the three phases. The segment determination unit 34 determines a segment corresponding to the electrical angle of the motor 2 among a plurality of segments divided by mutually different ranges of the electrical angle of the motor 2. The conduction control unit 36 ​​controls the conduction of the upper bridge arm 11 and the lower bridge arm 12 of the plurality of energized phases in the inverter circuit 10 based on the segment determined by the segment determination unit 34. The conduction control unit 36 ​​includes a section switching compensation unit 41, which performs processing to suppress the negative current of the energized phase with the highest voltage or the positive current of the energized phase with the lowest voltage among the multiple energized phases in the switching target section when switching to the section determined by the section determination unit 34. As a result, the motor control device 1 can suppress the reduction of the output torque when switching the section.

[0315] In addition, the conduction control unit 36 ​​performs the following control: the upper bridge arm 11 and the lower bridge arm 12 of one or more energized phases among the multiple energized phases are turned on and off by PWM control, and the lower bridge arm 12 of the remaining energized phases among the multiple energized phases is fixed in the on state. When switching the segment, the segment switching compensation unit 41 uses the upper bridge arm 11 of one or more energized phases in the switching target segment as the target bridge arm and starts from the on state. As a result, the motor control device 1 can suppress the reduction of the output torque when switching the segment in the high-side PWM control type control.

[0316] In addition, the conduction control unit 36 ​​performs the following control: the upper bridge arm 11 of one or more energized phases among the multiple energized phases is fixed in the conduction state, and the upper bridge arm 11 and the lower bridge arm 12 of the remaining energized phases among the multiple energized phases are turned on and off through PWM control. The segment switching compensation unit 41 uses the lower bridge arm 12 of the remaining energized phases in the switching target segment as the target bridge arm and starts from the conduction state. As a result, the motor control device 1 can suppress the reduction of the output torque when switching the segment in the low-side PWM control type control.

[0317] In addition, the conduction control unit 36 ​​turns on and off the upper bridge arm 11 and the lower bridge arm 12 of one or more energized phases among the multiple energized phases through PWM control in which the conduction ratio of the upper bridge arm 11 is larger than the conduction ratio of the lower bridge arm 12, and turns on and off the upper bridge arm 11 and the lower bridge arm 12 of the remaining energized phases among the multiple energized phases through PWM control that is complementary to the PWM control of one or more energized phases and in which the conduction ratio of the upper bridge arm 11 is smaller than the conduction ratio of the lower bridge arm 12. When switching the segment, the segment switching compensation unit 41 uses the upper bridge arm 11 of one or more energized phases and the lower bridge arm 12 of the remaining energized phases in the switching target segment as the target bridge arm and starts from the conduction state. As a result, the motor control device 1 can suppress the reduction of the output torque when switching the segment in the double-side PWM control type control.

[0318] Furthermore, the section switching compensating unit 41 delays the switching timing to the switching target section, and thus starts the target arm in the switching target section from the on state during the switching. Thus, the motor control device 1 can suppress the reduction of the output torque during the section switching.

[0319] In addition, the section switching compensation unit 41 forcibly sets the target bridge arm in the switching target section to the on state until a predetermined timing is reached during section switching, thereby starting the target bridge arm in the switching target section from the on state during section switching. Thus, the motor control device 1 can suppress the reduction of the output torque during section switching.

[0320] In addition, the conduction control unit 36 ​​can selectively use a first conduction type and a second conduction type, wherein the first conduction type turns on the upper bridge arm 11 when the comparison value Scomp calculated based on the target output torque is higher than the carrier Scw, and turns on the lower bridge arm 12 when the comparison value Scomp is lower than the carrier Scw, and the second conduction type turns on the upper bridge arm 11 when the comparison value Scomp is lower than the carrier Scw, and turns on the lower bridge arm 12 when the comparison value Scomp is higher than the carrier Scw. The section switching compensation unit 41 inverts the comparison value Scomp based on the central value of the carrier Scw at the time of section switching, and changes from the first conduction type to the second conduction type or from the second conduction type to the first conduction type, thereby starting the target bridge arm in the switching target section from the conduction state at the time of section switching. The valley ON type is an example of the first conduction type, and the peak ON type is an example of the second conduction type. As a result, the motor control device 1 can suppress the reduction of the output torque at the time of section switching.

[0321] In addition, the conduction control unit 36 ​​can selectively use a first conduction type and a second conduction type, wherein the first conduction type turns on the lower bridge arm 12 when the comparison value Scomp calculated based on the target output torque is higher than the carrier Scw, and turns on the upper bridge arm 11 when the comparison value Scomp is lower than the carrier Scw, and the second conduction type turns on the lower bridge arm 12 when the comparison value Scomp is lower than the carrier Scw, and turns on the upper bridge arm 11 when the comparison value Scomp is higher than the carrier Scw. The section switching compensation unit 41 inverts the comparison value Scomp based on the central value of the carrier Scw at the time of section switching, and changes from the first conduction type to the second conduction type or from the second conduction type to the first conduction type, thereby starting the target bridge arm in the switching target section from the conduction state at the time of section switching. The peak ON type is an example of the first conduction type, and the valley ON type is an example of the second conduction type. As a result, the motor control device 1 can suppress the reduction of the output torque at the time of section switching.

[0322] In addition, the conduction control unit 36 ​​conducts the upper bridge arm 11 when the comparison value Scomp calculated based on the target output torque is higher than the carrier Scw, and conducts the lower bridge arm 12 when the comparison value Scomp is lower than the carrier Scw. The section switching compensation unit 41 resets the carrier Scw at the time of section switching, so that the carrier Scw starts from the valley position, thereby starting the target bridge arm in the switching target section from the conduction state at the time of section switching. As a result, the motor control device 1 can suppress the reduction of the output torque when switching the section.

[0323] In addition, the conduction control unit 36 ​​turns on the upper bridge arm 11 when the comparison value Scomp calculated based on the target output torque is lower than the carrier Scw, and turns on the lower bridge arm 12 when the comparison value Scomp is higher than the carrier Scw. The section switching compensation unit 41 resets the carrier Scw at the time of section switching, so that the carrier Scw starts from the peak position, and thus the target bridge arm in the switching target section starts from the conduction state at the time of section switching. In this way, the motor control device 1 can suppress the reduction of the output torque when switching the section.

[0324] In addition, the range switching compensation unit 41 forcibly turns off the energized phase to be the target of PWM control among the plurality of energized phases until a predetermined timing is reached during range switching. Thus, the motor control device 1 can suppress a decrease in output torque during range switching.

[0325] It should be understood that the embodiments disclosed herein are illustrative in all respects and are not restrictive. In fact, the above embodiments can be implemented in a variety of ways. In addition, the above embodiments can be omitted, replaced, and changed in various ways without departing from the attached claims and their gist.

[0326] Description of Reference Numerals

[0327] 1 motor control device, 2 motor, 3 position detection device, 10 inverter circuit, 11, 111, 112, 113 upper bridge arm, 12, 121, 122, 123 lower bridge arm, 131, 132, 133, 134, 135, 136 switching element, 141, 142, 143, 144, 145, 146 diode, 15 gate driver, 20 current sensor, 30 control unit, 31 torque command output unit, 32 duty cycle calculation unit, 33 carrier generation unit, 34 segment determination unit, 35 setting unit, 36 conduction control unit, 40 conduction switching unit, 41 segment switching compensation unit, 100 motor module.

Claims

1. A motor control device, which controls a motor by a 120-degree energization method in which two of three phases are set as energized phases with at least one phase controlled by PWM and the remaining phase is set as a non-energized phase, or a 180-degree energization method in which three phases are set as energized phases with at least one phase controlled by PWM, It is characterized in that The motor control device comprises: An inverter circuit having an upper bridge arm and a lower bridge arm for each of the three phases; a segment determination unit that determines a segment corresponding to the electric angle of the motor among a plurality of segments divided into different ranges of the electric angle of the motor; a conduction control unit that controls conduction of the upper bridge arm and the lower bridge arm of a plurality of energized phases in the inverter circuit based on the segment determined by the segment determination unit, The conduction control unit includes: a section switching compensation unit that, when switching to the section determined by the section determination unit, suppresses negative current of the highest voltage energized phase or positive current of the lowest voltage energized phase among the plurality of energized phases in the switching target section.

2. The motor control device according to claim 1, characterized in that: The conduction control unit performs the following control: the upper bridge arm and the lower bridge arm of one or more energized phases among the plurality of energized phases are turned on and off through PWM control, and the lower bridge arm of the remaining energized phases among the plurality of energized phases is fixed in the conduction state. The section switching compensating unit uses the upper arm of the one or more energized phases in the switching target section as a target arm during the switching and starts from a conducting state.

3. The motor control device according to claim 1, characterized in that: The conduction control unit performs the following control: fixes the upper bridge arm of one or more energized phases among the plurality of energized phases to a conduction state, and turns on and off the upper bridge arm and the lower bridge arm of the remaining energized phases among the plurality of energized phases through PWM control, The section switching compensating unit uses the lower arm of the remaining energized phase in the switching target section as a target arm during the switching and starts from a conducting state.

4. The motor control device according to claim 1, characterized in that: The conduction control unit turns on and off the upper bridge arm and the lower bridge arm of one or more energized phases among the multiple energized phases through PWM control in which the conduction ratio of the upper bridge arm is larger than the conduction ratio of the lower bridge arm, and turns on and off the upper bridge arm and the lower bridge arm of the remaining energized phases among the multiple energized phases through PWM control that is complementary to the PWM control of the one or more energized phases and in which the conduction ratio of the upper bridge arm is smaller than the conduction ratio of the lower bridge arm. The section switching compensating unit uses the upper bridge arms of the one or more energized phases and the lower bridge arms of the remaining energized phases in the switching target section as target bridge arms during the switching and starts from a conducting state.

5. The motor control device according to any one of claims 2 to 4, characterized in that: The section switching compensation unit delays the switching timing to the switching target section, thereby starting the target arm in the switching target section from a conducting state at the time of the switching.

6. The motor control device according to any one of claims 2 to 4, characterized in that: The section switching compensation unit forcibly sets the target arm in the switching target section to the on state until a predetermined timing is reached during the switching, thereby causing the target arm in the switching target section to start from the on state during the switching.

7. The motor control device according to claim 2 or 4, characterized in that: The conduction control unit can selectively use a first conduction type and a second conduction type, wherein the first conduction type turns on the upper bridge arm when a comparison value calculated based on the target output torque is higher than a carrier, and turns on the lower bridge arm when the comparison value is lower than the carrier, and the second conduction type turns on the upper bridge arm when the comparison value is lower than the carrier, and turns on the lower bridge arm when the comparison value is higher than the carrier. The segment switching compensation unit inverts the comparison value based on the central value of the carrier during the switching, and changes from the first conduction type to the second conduction type or from the second conduction type to the first conduction type, thereby starting the object bridge arm in the switching target segment from a conducting state during the switching.

8. The motor control device according to claim 3, characterized in that: The conduction control unit can selectively use a first conduction type and a second conduction type, wherein the first conduction type turns on the lower bridge arm when a comparison value calculated based on the target output torque is higher than a carrier, and turns on the upper bridge arm when the comparison value is lower than the carrier, and the second conduction type turns on the lower bridge arm when the comparison value is lower than the carrier, and turns on the upper bridge arm when the comparison value is higher than the carrier. The segment switching compensation unit inverts the comparison value based on the central value of the carrier during the switching, and changes from the first conduction type to the second conduction type or from the second conduction type to the first conduction type, thereby starting the object bridge arm in the switching target segment from a conducting state during the switching.

9. The motor control device according to any one of claims 2 to 4, characterized in that: The conduction control unit turns on the upper bridge arm when a comparison value calculated based on the target output torque is higher than a carrier, and turns on the lower bridge arm when the comparison value is lower than the carrier. The section switching compensation unit resets the carrier wave at the time of the switching so that the carrier wave starts from a valley position, thereby causing the target arm in the switching target section to start from a conducting state at the time of the switching.

10. The motor control device according to any one of claims 2 to 4, characterized in that: The conduction control unit turns on the upper arm when a comparison value calculated based on the target output torque is lower than a carrier, and turns on the lower arm when the comparison value is higher than the carrier. The section switching compensation unit resets the carrier wave at the time of the switching so that the carrier wave starts from a peak position, thereby starting the target arm in the switching target section from a conducting state at the time of the switching.

11. The motor control device according to claim 1, characterized in that: The section switching compensating unit forcibly makes the energized phase to be the target of PWM control among the plurality of energized phases non-conductive until a predetermined timing is reached during the switching.

12. A motor module, characterized in that: A motor control device according to any one of claims 1 to 11 and the motor.

13. A motor control program that causes a computer to execute a process of controlling a motor by setting two of the three phases to be energized phases controlled by PWM and the remaining one phase to be a non-energized phase in a 120-degree energization mode, or setting the three phases to be energized phases controlled by PWM in a 180-degree energization mode, It is characterized in that The motor control program causes the computer to execute: a segment determination step of determining a segment corresponding to the electrical angle of the motor among a plurality of segments divided into different ranges of the electrical angle of the motor; a conduction control step, based on the segment determined by the segment determination step, controlling the conduction of the upper bridge arm and the lower bridge arm of the energized phase in the inverter circuit having an upper bridge arm and a lower bridge arm for each of the three phases; The conduction control step includes: a section switching compensation step, which, when switching to the section determined by the section determination step, suppresses the negative current of the energized phase with the highest voltage or the positive current of the energized phase with the lowest voltage among multiple energized phases in the switching target section.

14. A motor control method, comprising controlling a motor by setting two of three phases to be energized phases with at least one phase controlled by PWM and setting the remaining phase to be a non-energized phase in a 120-degree energization mode, or setting three phases to be energized phases with at least one phase controlled by PWM in a 180-degree energization mode, It is characterized in that The motor control method comprises: a segment determination step of determining a segment corresponding to the electrical angle of the motor among a plurality of segments divided into different ranges of the electrical angle of the motor; a conduction control step, based on the segment determined by the segment determination step, controlling the conduction of the upper bridge arm and the lower bridge arm of the energized phase in the inverter circuit having an upper bridge arm and a lower bridge arm for each of the three phases; The conduction control process includes a segment switching compensation process, which suppresses the negative current of the highest voltage energized phase or the positive current of the lowest voltage energized phase among multiple energized phases in the switching target segment when switching to the segment determined by the segment determination process.