Electric power tool
Patent Information
- Application Number
- JP2023211264
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-12-14
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2038-03-30
AI Technical Summary
【0049】 このため、スイッチング素子のオン時間を直流電源の電源電圧に応じて調整するようにすれば、電源電圧が変動することによる、ブラシレスモータに流れる電流の変動を抑制し、位置検出を安定して実施できるようになる。
Smart Images

Figure 0007631491000001 
Figure 0007631491000002 
Figure 0007631491000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an electric working machine equipped with a brushless motor as a power source. [Background technology]
[0002] A brushless motor needs to switch the current pattern to the stator winding for each specified rotation angle of the rotor. For this reason, an electric work machine equipped with a brushless motor is provided with a detection unit that detects the rotation position of the brushless motor (more specifically, the rotor).
[0003] As the detection section, generally, a rotation sensor that generates a signal according to the rotation angle of the rotor, or a sensorless type that detects the rotation position from an induced voltage generated by the rotation of the rotor, is known.
[0004] Furthermore, according to a sensorless detection unit configured to detect the rotational position of a brushless motor (in other words, the rotor) based on the induced voltage, the voltage at the terminals of each phase of the brushless motor is detected, and a predetermined rotational position is detected when the detected voltage crosses the zero-cross point.
[0005] Therefore, an electric operating machine equipped with a sensorless detection unit can have a simpler device configuration than one that detects the rotational position using a rotation sensor. However, since the induced voltage is proportional to the rotation speed of the brushless motor, when the brushless motor rotates at low speeds, the voltage level required to detect the rotational position may not reach the level required, making it impossible to detect the rotational position.
[0006] In response to this, a sensorless detection unit has been proposed that detects the rotational position of a brushless motor without using induced voltage, by alternating between a current-flow period that generates a rotational torque in the rotor and a detection period for position detection (see, for example, Patent Document 1).
[0007] In this proposed device, a current for position detection is passed through the windings of the brushless motor for a time that is sufficiently shorter than the current-carrying period that generates rotational torque in the brushless motor, the current value is measured, the inductance of the stator winding is calculated, and the timing at which the inductance becomes maximum is detected as the specified rotational position. [Prior art documents] [Patent documents]
[0008] [Patent Document 1] US Patent Application Publication No. 2011 / 0279073 Summary of the Invention [Problem to be solved by the invention]
[0009] According to the above proposed device, the inductance, which changes according to the rotational position of the brushless motor, is calculated, and the rotational position is detected at the timing when the inductance is at its maximum, so that the rotational position can be detected even when the brushless motor is rotating at a low speed.
[0010] However, in the above proposed device, in order to detect the rotational position, a low current for position detection that does not generate rotational torque in the rotor is passed through the rotor, and this current is detected to determine the inductance, which requires high accuracy in calculating the inductance.
[0011] For this reason, although the above proposed device can eliminate the need for a rotation sensor, it is necessary to use an expensive calculation circuit with high calculation power for position detection, which results in an increase in costs.
[0012] In addition, in the proposed device, since it is necessary to alternate between a drive current that generates a rotational torque in the rotor and a position detection current, the rotor cannot generate a rotational torque during the position detection period, which reduces the acceleration characteristics when increasing the rotation speed of the brushless motor, and may cause the brushless motor to stop when a load is applied to the output shaft.
[0013] One aspect of the present disclosure is to desirably enable, in an electric work machine equipped with a brushless motor, to detect the rotational position of the brushless motor at low rotation speeds without using a rotation sensor, and to achieve this at low cost. [Means for solving the problem]
[0014] An electric work machine according to one aspect of the present disclosure includes a brushless motor as a power source, and an inverter unit and a control unit for driving the brushless motor. The inverter unit includes a plurality of switching elements provided in a current path between a DC power source and a plurality of terminals of the brushless motor, and is configured to be able to control the current and current direction to the plurality of windings of the brushless motor via the plurality of switching elements.
[0015] The control unit switches the current pattern for passing current through the multiple windings via the inverter unit at each specified commutation timing of the brushless motor, and turns on and off multiple switching elements of the inverter unit in accordance with the current pattern, thereby PWM-controlling the current passing through the multiple windings.
[0016] The control unit has a plurality of switch patterns with different on / off states of the plurality of switching elements as a current conduction pattern that is switched at each commutation timing during rotation of the brushless motor, and sequentially switches the switch pattern that controls the on / off states of the switching elements to one of the plurality of switch patterns in synchronization with the cycle of PWM control.
[0017] When the switch pattern is switched in this way, the path of the current flowing through the brushless motor changes, and even if the rotational position is the same, the inductance generated for each current path changes due to differences in magnetic permeability caused by the magnets provided in the rotor (so-called rotor saliency).
[0018] In other words, the control unit changes the inductance of the stator winding by sequentially switching the current pattern to one of a plurality of switch patterns within the range of the rotor rotation angle from one commutation timing to the next commutation timing.
[0019] The control unit detects the rotational position of the brushless motor (rotor) from the magnitude relationship of the inductance generated for each different current path by switching the switch pattern, and sets the commutation pattern.
[0020] Therefore, according to the electric operating machine of the present disclosure, the rotational position can be detected without using a rotation sensor even when the brushless motor is rotating at a low speed. Furthermore, unlike the conventional device described above, it is not necessary to alternate between current-flow periods that generate a rotational torque in the rotor and detection periods for position detection, to pass a current for position detection during the detection period, and to accurately calculate the inductance of the winding from the current value.
[0021] In other words, in the electric work machine disclosed herein, in order to detect the rotational position of the brushless motor, it is sufficient to be able to determine the relationship in magnitude of inductance that arises due to differences in switch patterns, and there is no need to accurately calculate the inductance from the position detection current, as in the conventional method.
[0022] Therefore, according to the electric work machine disclosed herein, there is no need to provide an expensive calculation circuit with high computing power like in conventional devices in the control unit that detects the rotational position, and the configuration of the control unit can be simplified to reduce costs.
[0023] Furthermore, in the electric operating machine disclosed herein, the multiple switch patterns are each set so that a rotational torque is generated in the rotor when the on / off state of the switching element is controlled by each switch pattern.
[0024] Therefore, according to the electric working machine of the present disclosure, even if the switch pattern is switched, it is possible to generate a rotational torque in the rotor and drive the motor. Therefore, it is possible to prevent the rotor from being unable to generate a rotational torque during the position detection period, as in the conventional device described above. Therefore, according to the electric working machine of the present disclosure, it is possible to prevent a decrease in acceleration characteristics when increasing the rotation of the brushless motor due to position detection, and a stop of rotation when a load is applied to the output shaft of the brushless motor.
[0025] Furthermore, in order for the control unit to detect the rotational position, it is sufficient to be able to determine the magnitude relationship of the inductance caused by differences in the switch patterns, so there is no need to calculate the inductance from the current flowing through the brushless motor, as in the conventional method.
[0026] Specifically, a current detection unit is provided that detects the current flowing through the brushless motor. The control unit is configured to obtain the current values detected by the current detection unit when the brushless motor is energized with a plurality of switch patterns as parameters representing inductance, and to detect the rotation position based on the magnitude relationship of the obtained current values.
[0027] In this way, the rotational position can be detected only from the magnitude relationship of the current values obtained via the current detection unit, without having to calculate inductance from the current flowing through the brushless motor, thereby making it possible to simplify the device configuration.
[0028] Incidentally, the control unit forms a current path to the brushless motor by turning on the switching element of the inverter unit according to the switch pattern, but even if the switching element is turned off and the current path is interrupted, a reflux current or a regenerative current still flows through the brushless motor.
[0029] This is because when the current to the brushless motor is cut off, a voltage is generated by the energy stored in the windings due to the current flow, and the inverter section is equipped with a reflux or regenerative diode that uses this voltage to keep current flowing to the brushless motor.
[0030] When the on-time of the switching element per PWM control cycle is short (i.e., when the duty ratio is small), the reflux current or regenerative current can be reduced to zero between the time the current path from the DC power supply is cut off via the switching element and the time it is next turned on. This is because the energy stored in the windings of the brushless motor when current is passed from the DC power supply is small.
[0031] However, if the on-time of the switching element per PWM control cycle becomes longer (if the duty ratio becomes larger), the energy stored in the winding increases, causing a reflux current or regenerative current to continue flowing from the time the current path from the DC power supply is cut off until the next time it is turned on.
[0032] When a return current or regenerative current is flowing, and the switching element of the inverter section is turned on in accordance with the switch pattern, the return current or regenerative current flows as an initial current in the current path from the DC power supply to the brushless motor, and the current flowing in the current path thereafter changes from the initial current.
[0033] Therefore, when detecting the rotation position from the magnitude relationship of the current values under operating conditions where the reflux current or regenerative current cannot be reduced to zero within one cycle of PWM control, it is advisable to configure the control unit as follows.
[0034] In other words, when energizing the brushless motor using the switch pattern, the control unit may be configured to acquire the difference between the energization start current when energization begins and the energization end current when energization ends as a parameter representing the inductance of the brushless motor.
[0035] In this way, even if a return current or regenerative current is flowing when the switching element of the inverter section is turned on in accordance with the switch pattern, the control section can use the return current or regenerative current as the initial current flow value and obtain the amount of current change from the initial current flow value to the end current flow value as the current value for position detection.
[0036] Therefore, in this case, even if the duty ratio of the PWM control is large and a reflux current or regenerative current flows when current is applied to the brushless motor with a switch pattern, the rotational position of the brushless motor can be detected without being affected by the reflux current or regenerative current.
[0037] On the other hand, the control unit may measure the time from when current begins to flow to the brushless motor using multiple switch patterns to when the current value detected by the current detection unit reaches a predetermined threshold value, as a parameter representing the inductance of the brushless motor.
[0038] In this way, the rotational position of the brushless motor can be detected just from the relationship in magnitude of the measured time, without having to calculate the inductance, which makes it possible to simplify the device configuration, just as in the case where the rotational position is detected from the relationship in magnitude of the current values.
[0039] In addition, when measuring the time until the current value reaches a predetermined threshold value as a parameter representing inductance under operating conditions where the reflux current or regenerative current cannot be made zero within one cycle of PWM control, it is preferable to configure the control unit as follows.
[0040] In other words, when energizing the brushless motor using the switch pattern, the control unit can be configured to measure the time until the current value changes by a predetermined threshold from the start current when energization begins, as a parameter representing the inductance of the brushless motor.
[0041] In this way, even if a return current or regenerative current flows when current is applied to the brushless motor in the switch pattern, the control unit can use the return current or regenerative current as the initial current application value and obtain the time it takes for the current value to change by a predetermined threshold value from the initial current application value.
[0042] Therefore, even if the control unit is configured in this manner, it is possible to detect the rotational position of the brushless motor without being affected by the reflux current or regenerative current. The control unit may be configured to detect the rotational position using, as the detection timing, a timing at which the magnitude relationship of the inductance of the brushless motor changes by switching between a plurality of switch patterns.
[0043] Specifically, the timing at which the relationship between the magnitudes of the current values acquired as parameters representing the inductance changes, or the timing at which the relationship between the magnitudes of the times acquired as parameters representing the inductance changes, may be detected as a predetermined rotational position of the rotor.
[0044] In this way, the specified rotational position can be detected simply by comparing the latest and previous values of each of these parameters, eliminating the need for correction calculations for each parameter and making it easier to detect the rotational position.
[0045] In addition, since the magnitude relationship of the above parameters (i.e., inductance, current value, time, etc.) may change due to noise, etc., the rotation position may be determined after confirming that the magnitude relationship has stabilized for a certain period of time after the magnitude relationship has changed.
[0046] In addition, since the value of the current flowing through the brushless motor may not be stable immediately after the current pattern is switched at the commutation timing, the position detection operation for determining the magnitude relationship of each of the above parameters may be performed after a predetermined time has elapsed after the commutation timing.
[0047] The control unit may be configured to adjust the ON time of the switching element when PWM-controlling the brushless motor with the switch pattern, in accordance with the power supply voltage of the DC power supply.
[0048] In other words, the current flowing through a brushless motor changes depending on the power supply voltage, and even if the on time of the switching element (in other words, the time that current is applied to the stator windings) is constant, when the power supply voltage changes, the current also changes.
[0049] Therefore, by adjusting the on-time of the switching element in accordance with the power supply voltage of the DC power supply, it is possible to suppress fluctuations in the current flowing through the brushless motor caused by fluctuations in the power supply voltage, thereby enabling stable position detection to be performed. [Brief description of the drawings]
[0050] [Figure 1] 1 is a perspective view illustrating an external appearance of an electric operating machine according to an embodiment. [Diagram 2] FIG. 2 is a block diagram showing the electrical configuration of the electric operating machine of the first embodiment. [Diagram 3] FIG. 4 is an explanatory diagram illustrating a current supply pattern to a motor in a high-speed mode. [Figure 4] FIG. 4 is an explanatory diagram illustrating a current supply pattern to a motor in a low-speed mode. [Diagram 5] 11A and 11B are diagrams illustrating a change in current due to switching of a switch pattern in a low-speed mode. [Figure 6] 4 is a flowchart showing a control process executed by a control unit. [Figure 7] 7 is a flowchart illustrating the motor control process shown in FIG. 6. [Figure 8] 8 is a flowchart illustrating the motor stop process shown in FIG. 7. [Figure 9] 8 is a flowchart illustrating the motor drive process shown in FIG. 7. [Figure 10] 11 is a flowchart showing a PWM carrier interrupt process at an off timing executed by a control unit. [Figure 11] 5 is a time chart showing a position detection operation based on a current value in the first embodiment. [Figure 12] 6 is a time chart illustrating a position detection operation of the first modified example. [Figure 13] 13 is a flowchart showing a PWM carrier interrupt process at an on timing according to a first modified example. [Figure 14] 13 is a flowchart showing a PWM carrier interrupt process at off timing according to a first modified example. [Figure 15] FIG. 6 is a block diagram showing the electrical configuration of an electric operating machine according to a second embodiment. [Figure 16] 10 is a flowchart showing a motor stop process according to a second embodiment. [Figure 17] 10 is a flowchart showing a motor drive process according to a second embodiment. [Figure 18] 10 is a flowchart showing a current value comparison unit output signal interrupt process executed by the control unit. [Figure 19] 11 is a flowchart showing a PWM timer overflow interrupt process executed by a control unit. [Figure 20] 11 is a time chart illustrating a switching operation of a switch pattern using a PWM timer. [Figure 21] 10 is a time chart showing a position detection operation based on a timer value in the second embodiment. [Figure 22] 13 is a time chart illustrating a position detection operation according to a second modified example. [Diagram 23] 13 is a flowchart illustrating a PWM timer overflow interrupt process according to a second modified example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0051] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. [First embodiment] In this embodiment, a grass cutter will be described as an example of an electric working machine.
[0052] As shown in Fig. 1, the electric working machine 1 of this embodiment is a grass cutter including a main pipe 2, a control unit 3, a drive unit 4, and a handle 7. The main pipe 2 is formed in a long, hollow rod shape. The control unit 3 is provided on the rear end side of the main pipe 2, and the drive unit 4 is provided on the front end side of the main pipe 2.
[0053] A rotary blade 5 is detachably and rotatably attached to the drive unit 4. The rotary blade 5 is for cutting objects to be cut such as grass and small trees, and the one shown in Fig. 1 is a so-called chip saw.
[0054] That is, the rotary blade 5 is made of metal, has a disk shape, and has saw-tooth teeth formed around the entire outer periphery. A hard tip is attached to the tip of each tooth. A cover 6 is provided on the front end side of the main pipe 2. This cover 6 is provided to prevent grass and the like cut by the rotary blade 5 from flying towards the worker.
[0055] The drive unit 4 houses a motor 20 (see Figure 2), which is a drive source for rotating the rotary blade 5, and a gear mechanism that transmits the rotation of the motor 20 to an output shaft, and the rotary blade 5 is detachably attached to the output shaft.
[0056] The motor 20 is an IPM (Interior Permanent Magnet) type three-phase brushless motor in which a magnet is embedded in the rotor 22, and is drive-controlled by a control section 30 in the control unit 3 (see FIG. 2).
[0057] The handle 7 is connected to the main pipe 2 near the midpoint in the longitudinal direction of the main pipe 2. The handle 7 is for an operator to hold when performing grass cutting work using the electric working machine 1, and in this embodiment, is configured as a so-called U-shaped handle with grips on both ends. Note that the handle 7 may be another type of handle, such as a loop handle.
[0058] An operation and display unit 8 is provided on one grip portion of the handle 7 so that an operator can operate it with his / her fingers and check the operating state. The operation / display unit 8 is provided with a trigger switch 10, a lock-off switch 12, and a display panel 14.
[0059] The display panel 14 is for displaying the rotation state of the motor 20, the remaining capacity of the battery pack 18 (the amount of power remaining in the battery in the battery pack 18), etc. The display panel 14 is also provided with an operation switch that enables the operator to set the rotation direction of the motor 20 (in other words, the rotary blade 5), etc.
[0060] As shown in FIG. 1, the battery pack 18 is detachably attached to the rear end side of the control unit 3, and serves to supply DC power to the control unit 3. The trigger switch 10 is an operation switch for inputting a drive command for the motor 20, and the lock-off switch 12 is a switch for allowing an operator to operate the trigger switch 10 by pressing it.
[0061] The trigger switch 10 and the display panel 14 are connected to a control unit 30 in the control unit 3 via a cable 19. The control unit 30 monitors the operation states of the trigger switch 10 and the display panel 14, and drives the motor 20, switches the rotation direction, or displays on the display panel 14.
[0062] As shown in FIG. 2, the control unit 3 is provided with an inverter section 32, separate from the control section 30, which energizes the motor 20 to rotate it. The inverter section 32 receives power from the battery pack 18 (more specifically, the battery within the battery pack 18) and passes current through the windings 24A, 24B, and 24C wound around the stator of each phase of the motor 20, and is configured as a three-phase full-bridge circuit.
[0063] That is, the inverter section 32 is composed of six switching elements Q1 to Q6 each of which is made up of a MOSFET. In the inverter section 32, the three switching elements Q1 to Q3 are provided as so-called high-side switches between the three terminals of the U phase, V phase, and W phase of the motor 20 and a power supply line connected to the positive electrode side of the battery pack 18.
[0064] The other three switching elements Q4 to Q6 are provided between the respective terminals of the motor 20 and a ground line connected to the negative electrode side of the battery pack 18 as so-called low-side switches.
[0065] A current detection unit 34 for detecting the current flowing through the motor 20 is provided in the current path from the inverter unit 32 to the negative side of the battery pack 18, and a current detection signal is input from the current detection unit 34 to the control unit 30.
[0066] The control unit 3 also has a position detection section 36 for detecting the rotational position of the motor 20 (more specifically, the rotor) from the terminal voltages of each phase U, V, and W of the motor 20 when the motor 20 is driven in high-speed mode.
[0067] The position detection unit 36 takes in the induced voltage from the terminals of each phase U, V, and W of the motor 20, compares the induced voltage with a reference voltage generated from the power supply voltage, and detects a predetermined rotational position of the motor 20 when the induced voltage crosses the reference voltage.
[0068] That is, in the high-speed mode, as shown in FIG. 3, one of the high-side switches Q1 to Q3 and one of the low-side switches Q4 to Q6 in the inverter unit 32 are sequentially selected for current supply, and the current supply and current direction to each phase winding of the motor 20 are switched.
[0069] For this reason, at each switching, one of the three terminals of the motor 20 is opened, and an induced voltage is generated at that terminal as the motor 20 rotates. This induced voltage changes from the positive side to the negative side of the inverter unit 32 or vice versa, and the rotational position of the motor 20 can be identified by detecting the center of the fluctuation.
[0070] Therefore, in the position detection unit 36, a reference voltage which is the center of fluctuation of the induced voltage is generated by dividing the power supply voltage by half, and this reference voltage is compared with the terminal voltages Vu, Vv, Vw of each phase U, V, W of the motor 20, respectively, by a comparator.
[0071] For this reason, in the position detection unit 36, when the output from the comparator that compares the induced voltage obtained from the open terminal with the reference voltage is inverted, it can be determined that the induced voltage has crossed the reference voltage.
[0072] The position detector 36 detects the timing at which the induced voltage crosses the reference voltage as a zero-cross point, and the controller 30 specifies the rotational position of the motor 20 from the zero-cross point.
[0073] In this embodiment, as shown in Fig. 3, when the motor 20 is driven by applying a positive or negative voltage to the terminals of the U, V, and W phases of the motor 20, the applied voltage is PWM-controlled in the latter half of the voltage application period to each terminal, thereby controlling the current flowing to the motor 20. Hereinafter, this driving method will be referred to as latter-half PWM driving.
[0074] Next, the control unit 30 is composed of a microcomputer including a CPU, a ROM, a RAM, and the like. When the trigger switch 10 is operated and a drive command for the motor 20 is input, the control unit 30 performs initial drive by energizing the motor 20 in a predetermined current pattern. After the initial drive, the control unit 30 determines the rotational position and number of rotations (specifically, the rotational speed, which is the number of rotations per unit time) of the motor 20 based on a detection signal from the position detection unit 36, and continues driving the motor 20.
[0075] Incidentally, since the position detection unit 36 detects the rotational position of the motor 20 based on the induced voltage obtained from the terminals of each phase U, V, and W of the motor 20, when the motor 20 rotates at a low speed, the induced voltage becomes low and it may not be possible to accurately detect the rotational position.
[0076] Therefore, after the initial drive of the motor 20, the control unit 30 drives the motor 20 in low-speed mode until the rotation speed of the motor 20 reaches the reference rotation speed Nth, and when the rotation speed of the motor 20 becomes equal to or greater than the reference rotation speed Nth, the control unit 30 drives the motor 20 in high-speed mode.
[0077] That is, in the high-speed mode, the control unit 30 drives the motor 20 using the second-half PWM driving described above, and in the low-speed mode, the control unit 30 drives the motor 20 while detecting the rotational position by driving the switching elements Q1 to Q6 of the inverter unit 32 using the switch pattern shown in FIG. 4B.
[0078] The switch pattern shown in FIG. 4B defines switching elements Q1 to Q6 to be turned on in inverter unit 32 for each rotation range, as shown in FIG. 4A, by dividing one rotation of rotor 22 into 60 degree increments, and is stored in non-volatile memory 30A in control unit 30.
[0079] The switch patterns are set for each of the positive (+) and negative (-) rotation directions of the motor 20, and for each rotation range and direction, two switch patterns are set that can generate rotational torque in the rotor 22 of the motor 20.
[0080] Then, the control unit 30 alternately switches the switch pattern between two patterns (pattern 1 and pattern 2) in synchronization with a control period for PWM-controlling the motor 20, and turns on the switching elements Q1 to Q6 of the inverter unit 32.
[0081] As a result, the terminals of each phase U, V, W of the motor 20 specified by the switch pattern become positive (UH, VH, WH) or negative (UL, VL, WL) potential, current flows through the windings 24A to 24C between each terminal, and a rotational torque is generated in the rotor 22.
[0082] The period during which current is applied to the motor 20 (ON time) per one PWM control cycle is set, for example, according to the target rotation speed of the motor 20, and becomes shorter as the rotation speed of the motor 20 decreases. Moreover, the switch pattern is alternately switched between pattern 1 and pattern 2 in synchronization with the PWM control period, so that the current detected by the current detection unit 34 changes according to the rotational position of the motor 20.
[0083] Therefore, the control unit 30 detects the rotational position of the motor 20 (rotor 22) based on the current change caused by switching the switch pattern, and specifies the commutation timing for switching the switch pattern for each rotation range.
[0084] The current changes when the switch pattern is switched because in a brushless motor, even if the rotational position is the same, the inductance changes due to differences in magnetic permeability caused by the magnets provided in the rotor 22 (so-called rotor saliency).
[0085] 4B, for example, when the rotational position (rotor position) of motor 20 is 330 degrees, current is passed through windings 24B, 24C through a path from the U- and V-phase terminals to the W-phase terminal in pattern 1 when motor 20 is rotated in the forward direction. In addition, current is passed through windings 24A, 24B through a path from the V-phase terminal to the U- and W-phase terminals in pattern 2.
[0086] When current is applied to windings 24B, 24C or 24A, 24B of motor 20 in patterns 1 and 2, the magnetic path is widened in pattern 1, resulting in high magnetic permeability, while the magnetic path is narrowed in pattern 2, resulting in low magnetic permeability, as shown in Fig. 5. As a result, with regard to the current detected by current detection unit 34 in this case, current I2 detected in pattern 2 is greater than current I1 detected in pattern 1.
[0087] Furthermore, when rotor 22 is rotated in the forward direction without changing the switch pattern, the magnetic permeability in patterns 1 and 2 matches, and currents I1 and I2 match, when the rotation position is 0 degrees. When the rotation position is 60 degrees, the magnitude relationship between the magnetic permeability in patterns 1 and 2 is reversed, and the magnitude relationship between currents I1 and I2 is also reversed.
[0088] Therefore, in the low-speed mode, the switch pattern when driving the motor 20 by PWM in a rotation range of the motor 20 every 60 degrees is alternately switched between pattern 1 and pattern 2, and the currents I1 and I2 are monitored.
[0089] The timing at which the currents I1 and I2 are reversed is detected as a predetermined rotational position of the motor 20 (for example, rotor position: 0 degrees), and the switching timing of the switch pattern for each rotational range (that is, the commutation timing) is identified.
[0090] Hereinafter, the control process executed by the control unit 30 to drive the motor 20 in this manner will be described with reference to the flowcharts shown in FIGS. In the following description, driving of the motor 20 in the low-speed mode is referred to as pattern PWM driving, and the rotational position of the motor 20 is also simply referred to as the rotor position.
[0091] As shown in FIG. 6, this control process is carried out by repeatedly executing the processes of S120 to S140 (S represents a step) at a predetermined control period. That is, in S110, the control unit 30 waits for a predetermined control period to elapse by determining whether or not a reference time (base time) of the control period has elapsed, and if it determines in S110 that the reference time (base time) has elapsed, it proceeds to S120.
[0092] In S120, a drive command acquisition process is executed to acquire a drive command from the trigger switch 10 or an operation switch provided on the display panel 14. In addition, in S130, an error detection process is executed to detect an abnormality in each of the above-mentioned parts in the operation / display unit 8, the motor 20, or the battery pack 18. Then, in the following S140, a motor control process is executed to drive or stop the motor 20, and the process proceeds to S110.
[0093] Next, in the motor control process of S140, as shown in FIG. 7, first in S150, it is determined whether or not a drive command for the motor 20 is currently being input based on the result of the drive command acquisition process of S120.
[0094] If it is determined in S150 that a drive command has been input, the process proceeds to S160, in which it is determined whether or not any abnormality (error) is currently occurring, based on the detection result in the error detection process in S130.
[0095] If it is determined in S150 that a drive command has not been input, or if it is determined in S160 that an error has occurred, the process proceeds to S180, where a motor stop process is executed to stop the motor 20, and the motor control process is terminated.
[0096] If it is determined in S160 that no error has occurred, the process proceeds to S170, where a motor drive process for driving the motor 20 is executed, and the motor control process ends. Next, in the motor stopping process of S180, as shown in FIG. 8, in S200, the output of the drive signal (PWM output) to the inverter unit 32 is stopped, thereby stopping the latter half PWM drive or pattern PWM drive of the motor 20.
[0097] Then, in the following S210 and S220, the flags indicating the first current acquisition and the first low-speed drive are set to "not yet", respectively, and the process proceeds to S230. In S230, the rotor position is obtained from the position detection unit 36, and in S240, it is determined whether or not the rotor position has been detected via the position detection unit 36. That is, since the position detection unit 36 cannot detect the rotor position when the motor 20 is rotating at an extremely slow speed, in S240, it is determined whether or not the motor 20 is substantially stopped depending on whether or not the rotor position has been detected.
[0098] If it is determined in S240 that the position detector 36 has not detected the rotor position, the process proceeds to S250, in which the operation mode of the controller 30 is set to the initial position mode, and the motor stop process is terminated.
[0099] On the other hand, if it is determined in S240 that the position detection unit 36 has detected the rotor position, the process proceeds to S260, and the free-running speed of the motor 20 is detected based on, for example, changes in the terminal voltage of the motor 20 detected by the position detection unit 36.
[0100] In the next step S270, it is determined whether the rotation speed detected in S260 is lower than a reference rotation speed Nth for high speed determination. If the rotation speed is lower than the reference rotation speed Nth, the process proceeds to S280, the operating mode is set to low speed mode, and the motor stop process is terminated.
[0101] If it is determined in S270 that the rotation speed is equal to or greater than the reference rotation speed Nth, the process proceeds to S290, in which the operation mode is set to the high-speed mode, and the motor stopping process is terminated. Next, in the motor drive process of S170, as shown in FIG. 9, first, at 300, it is determined whether the operation mode of the control unit 30 is the above-mentioned initial position mode, the low speed mode, or the high speed mode.
[0102] If the operation mode is the initial position mode, the rotor position is set to a preset initial position in S310, and the process proceeds to S400. In addition, in S310, the rotor position is set to the initial position by, for example, passing current through a preset winding in the motor 20 via the inverter unit 32.
[0103] Next, when it is determined in S300 that the operating mode is the low-speed mode, in order to rotate the motor 20 at a low speed using the above-mentioned pattern PWM drive, in S320 the output method of the drive signal to the inverter unit 32 is set to pattern PWM output, and the process proceeds to S330.
[0104] In S320, when the second half PWM output for driving the motor 20 in the second half PWM mode is set as the output mode of the drive signal, the output mode is switched to the pattern PWM output, and if the pattern PWM output is already set, the process proceeds directly to S330.
[0105] Next, in S330, it is determined whether the low-speed drive first flag is set to "done" to thereby determine whether the low-speed drive of the motor 20 is currently being performed. If the low-speed drive first flag is set to "Done" and low-speed drive has already started, the process proceeds to S380; if the low-speed drive first flag is set to "Not Started" and low-speed drive has not started, the process proceeds to S340.
[0106] In S340, based on the current rotor position and the rotation direction of the motor 20, two types of switch patterns (pattern 1, pattern 2) required to drive the motor 20 at low speed are selected in accordance with the switch pattern settings shown in FIG. 4B.
[0107] Then, in the next S350, one of the two switch patterns selected in S340 (here, pattern 1) is set as the PWM pattern used for driving the motor 20 at low speed via the inverter unit 32, and the process proceeds to S360.
[0108] In S360, the low speed drive first flag is set to "done", and in the following S370, output of the drive signal to the inverter unit 32 (pattern PWM output) is started in pattern 1 set as the pattern PWM in S350.
[0109] It should be noted that when the pattern PWM output is started in S370, a drive signal corresponding to pattern 1 is output to the inverter unit 32 at the ON timing that occurs every control period (fixed time) of the PWM control, and some of the switching elements Q1 to Q6 are turned on.
[0110] Next, when it is determined in S300 that the operating mode is the high-speed mode, the process proceeds to S420, and the output method of the drive signal to the inverter unit 32 is set to the second-half PWM output in order to drive the motor 20 at high speed using the above-mentioned second-half PWM drive.
[0111] In the following S430 and S440, the flags for the first current acquisition and the first low-speed drive, which are used when driving the motor 20 with the pattern PWM in the low-speed mode, are set to "not yet", and the process proceeds to S450.
[0112] In S450, high-speed rotation drive (second half PWM drive) is performed to rotate the motor 20 at high speed using the energization pattern for high-speed drive shown in FIG. 3, and the process proceeds to S380. Next, in S380, the rotation speed of the motor 20 is obtained. Specifically, in the low-speed mode, the rotation speed of the motor 20 is calculated from the update time interval of the rotor position by the PWM carrier interrupt process described later, and in the high-speed mode, the rotation speed of the motor 20 is obtained from the position detection unit 36.
[0113] In the next step S390, it is determined whether the rotation speed obtained in S380 is lower than a reference rotation speed Nth for determining high speed. If the rotation speed is lower than the reference rotation speed Nth, the process proceeds to S400, the operating mode is set to low speed mode, and the motor drive process is terminated.
[0114] If it is determined in S390 that the rotation speed is equal to or greater than the reference rotation speed Nth, the process proceeds to S410, in which the operation mode is set to the high-speed mode, and the motor drive process is terminated. Next, we will explain the PWM carrier interrupt processing that is performed once per PWM control period in the control unit 30 when PWM controlling the motor 20, in response to a timing signal (carrier) output from an oscillator or timer for each PWM control period.
[0115] Specifically, this PWM carrier interrupt processing is not executed at the on timing when a drive signal is output to the inverter unit 32 by PWM control to turn on the switching element, but at the off timing when a predetermined on time has elapsed and the switching element is turned off.
[0116] This PWM carrier interrupt processing is a process for updating the rotor position and switching (commuting) the current supply pattern to the motor 20 based on the current value detected by the current detection unit 34 when the motor 20 is pattern PWM driven in low-speed mode.
[0117] As shown in FIG. 10, in the PWM carrier interrupt process, first in S500 it is determined whether the current operating mode is the low-speed mode or the high-speed mode, and if it is the high-speed mode, the PWM carrier interrupt process is terminated.
[0118] If it is determined in S500 that the operating mode is the low-speed mode, the process proceeds to S510, in which it is determined whether the current interrupt is an interrupt that occurs when the switch pattern is set to pattern 1 or pattern 2.
[0119] When the switch pattern is set to pattern 1, the process proceeds to S520, where the current value I1 detected by the current detection unit 34 when the inverter unit 32 is currently driven in pattern 1 is obtained, and the process proceeds to S530.
[0120] In S530, the switching pattern of the PWM pattern is changed to pattern 2, and the process proceeds to S540, where it is determined whether the current acquisition first flag is set to "completed". If the first current acquisition flag is not set to "Completed", this means that current flow has just started using the switch pattern (pattern 1) at the current rotor position (rotation range), so the process proceeds to S600. If the first current acquisition flag is set to "Completed", the process proceeds to S550.
[0121] Next, in S510, if it is determined that the current interrupt is an interrupt when the switch pattern is set to pattern 2, the process proceeds to S610. Then, in S610, the current value I2 detected by the current detection unit 34 when the inverter unit 32 is currently driven in pattern 2 is obtained, and the process proceeds to S620.
[0122] In S620, the switch pattern of the PWM pattern is changed to pattern 1, and the process proceeds to S630, where the current acquisition first flag is set to "completed", and then the process proceeds to S550. Then, in S550, the magnitude relationship between the latest current values I1, I2 acquired in S520 and S610 is determined, and it is determined whether or not the magnitude relationship has been inverted.
[0123] That is, as shown in FIG. 5, the magnitude relationship between the current values I1, I2 changes in response to the rotation of the rotor 22, and is reversed at a predetermined rotation position (rotor position: 0 degrees in the figure). For this reason, in S550, it is determined whether the magnitude relationship between the current values I1 and I2 has reversed, thereby determining whether the rotor 22 has passed a predetermined rotational position (for example, reference angles of 0 degrees, 60 degrees, 120 degrees, 180 degrees, 240 degrees, and 300 degrees).
[0124] If it is determined in S550 that the magnitude relationship between the current values I1 and I2 has not reversed, the process proceeds to S600, and if it is determined that the magnitude relationship between the current values I1 and I2 has reversed, the process proceeds to S560, where the rotor position is updated.
[0125] In addition, when it is first determined in S550 whether the magnitude relationship between the current values I1 and I2 has been inverted, the previous magnitude relationship is unknown. Therefore, as shown in Fig. 4B, an initial state of this magnitude relationship is set for each rotation range and rotation direction of the motor 20, and is stored together with the switch pattern in the non-volatile memory 30A provided in the control unit 30.
[0126] Next, in S570, a switch pattern (pattern 1 or pattern 2) to be used for driving the motor 20 at a low speed is selected according to the updated rotor position. Then, in S580, one of the two selected switch patterns (here, pattern 1) is set as the PWM pattern used for driving the motor 20 at low speed via the inverter unit 32, and the process proceeds to S590.
[0127] Also, in S590, in order to newly start driving the motor after updating the rotor position, the first current acquisition flag is set to "not yet", and the process proceeds to S600. Then, in S600, pattern PWM output is started in the currently set switch pattern (pattern 2 or pattern 1), and the PWM carrier interrupt process is ended.
[0128] When the pattern PWM output is started in S600, as in the case where the output is started in S370, a drive signal corresponding to the current switch pattern is output to the inverter unit 32 at the on timing of the PWM control, and some of the switching elements Q1 to Q6 are turned on.
[0129] In addition, in the control unit 30, the current values I1 and I2 are acquired in S520 and S610 by A / D conversion, and the timing of the A / D conversion may be set to the off timing when the switching element of the inverter unit 32 is turned off by PWM control. Alternatively, the A / D conversion may be performed a predetermined time before the off timing.
[0130] In this way, it becomes possible to obtain the current values I1 and I2 at or near the maximum value of the currents flowing in Pattern 1 and Pattern 2 shown in Fig. 5, and to increase the difference between the current values I1 and I2 when determining which is larger in magnitude in S550. As a result, it becomes possible to more accurately detect the timing when the magnitude relationship between the current values I1 and I2 is reversed (in other words, the rotor position).
[0131] As described above, in the electric work machine 1 of this embodiment, when the motor 20 rotates at high speed, i.e., the rotation speed is equal to or greater than the reference rotation speed Nth, the control unit 30 controls the drive of the motor 20 in accordance with the rotor position detected by the position detection unit 36 based on the induced voltage.
[0132] On the other hand, when the motor 20 rotates at a low speed lower than the reference rotation speed Nth, the control unit 30 sets switch patterns of pattern 1 and pattern 2 as the current supply pattern for each rotation range in which the current supply pattern to the motor 20 is switched.
[0133] 11, the motor 20 is driven by alternately switching the switch pattern between pattern 1 and pattern 2 in synchronization with the PWM control period. In FIG. 11, P1 represents pattern 1, and P2 represents pattern 2.
[0134] Furthermore, when current is supplied to the motor 20 in each of patterns 1 and 2, the control unit 30 acquires the current values I1 and I2 detected by the current detection unit 34 at the timing when the switching element is turned off. Then, based on the magnitude relationship between the current values I1 and I2 thus acquired, the control unit 30 detects and updates the rotor position, and switches the current supply pattern (switch pattern) to the motor 20 according to the updated rotor position.
[0135] Therefore, according to the electric work machine 1 of this embodiment, even when the motor 20 is rotating at a low speed, at which the position detection unit 36 is unable to accurately detect the rotor position, the rotor position can be accurately detected by the pattern PWM drive of the motor 20 described above.
[0136] Therefore, it becomes possible to grasp the rotational position of the motor 20 over an extremely wide rotation range from extremely low rotation speeds to high rotation speeds, and to appropriately control the current supply pattern to the motor 20.
[0137] In the low-speed mode, the switch patterns for driving the switching elements of the inverter unit 32 are set so as to generate a rotational torque in the rotor 22 of the motor 20 in both patterns 1 and 2.
[0138] Therefore, the electric work machine 1 of this embodiment can prevent a decrease in the acceleration characteristics of the motor 20 caused by a drive stop period during which no rotational torque is generated in the motor 20 due to rotor position detection when the motor 20 is driven at low speed, as in the conventional device described above. Also, when a load is applied to the output shaft of the motor 20, the motor 20 can be prevented from stopping rotation.
[0139] In addition, in this embodiment, since the rotor position is detected when the difference between the current values I1 and I2 caused by switching the switch pattern is reversed, there is no need to calculate the inductance from the current values I1 and I2 as in the past. Therefore, there is no need to provide an expensive calculation circuit capable of high-speed calculations in the control unit 30 in order to calculate the inductance, and the device configuration can be simplified and realized at low cost. (First Modification) Next, a modification (first modification) of the first embodiment will be described.
[0140] In this embodiment, when current is applied to the motor 20 in the low-speed mode with each of the switch patterns 1 and 2, the control unit 30 acquires the current values I1 and I2 at the off timing of the switching elements, and detects the rotor position based on the magnitude relationship between the current values I1 and I2.
[0141] For this reason, if a return current or regenerative current flows through the windings of brushless motor 20 when the switching element is turned on, current values I1 and I2 will increase by the amount of the return current or regenerative current, making it impossible to accurately detect the rotor position based on the magnitude relationship between current values I1 and I2.
[0142] In other words, even if the current path from battery pack 18, which serves as a DC power source, to brushless motor 20 is cut off at the off timing of PWM control, current still flows in brushless motor 20 via well-known parasitic diodes provided in switching elements Q1 to Q6.
[0143] If this current (i.e., the reflux current or regenerative current) is not zero at the on-timing of the PWM control, the reflux current or regenerative current will flow in the current path from the battery pack 18 to the brushless motor 20 after the on-timing ton, as shown in FIG. 12.
[0144] As a result, the current value detected by the current detection unit 34 will thereafter be higher by the amount of the return current or regenerative current, and the rotor position will no longer be able to be accurately detected based on the magnitude relationship between the current values I1, I2 detected at the off timing.
[0145] Therefore, in this modified example, at the on timing ton of the PWM control, the return current or regenerative current is detected as the current flow start current values I11, I21 via the current detection unit 34, and at the off timing of the PWM control, the current flow end current values I12, I22 are detected via the current detection unit 34.
[0146] Then, the energization start current values I11, I21 are subtracted as offset values from the energization end current values I12, I22 detected in this manner, and the differences (I12-I11, I22-I21) resulting from the subtraction are obtained as the current values I1, I2 for position detection, respectively.
[0147] As a result, according to this modified example, even if brushless motor 20 is driven under operating conditions in which the reflux current or regenerative current cannot be reduced to zero within one cycle of PWM control, it becomes possible to detect the rotational position of brushless motor 20 without being affected by the reflux current or regenerative current.
[0148] In order to obtain the energization start current values I11 and I21 as described above, as shown in FIG. 13, a PWM carrier interrupt process is also executed at the ON timing of the PWM control. In this PWM carrier interrupt process, first, in S650, it is determined whether the current operating mode is the low-speed mode or the high-speed mode, and if it is the high-speed mode, the PWM carrier interrupt process is terminated.
[0149] Furthermore, if it is determined in S650 that the operating mode is the low-speed mode, the process proceeds to S660, in which it is determined whether the current interrupt is an interrupt that occurs when the switch pattern is set to pattern 1 or pattern 2.
[0150] If it is determined in S650 that the switch pattern is set to pattern 1, the process proceeds to S670, in which the current supply start current value I11 is obtained via the current detection unit . Furthermore, if it is determined in S650 that the switch pattern is set to pattern 2, the process proceeds to S680, where the energization start current value I21 is obtained via the current detection unit 34. Then, when the energization start current value I11 or I21 is obtained in this manner, the PWM carrier interrupt process ends.
[0151] On the other hand, in the PWM carrier interrupt process executed at the off timing of the PWM control, as shown in FIG. 14, if it is determined in S510 that the switch pattern is set to pattern 1, the processes of S522 and S524 are executed instead of the process of S520.
[0152] Also, if it is determined in S510 that the switch pattern is set to pattern 2, the processes of S612 and S614 are executed instead of the process of S610. In S522, the current end value I12 is obtained via the current detection unit 34, and in S524, the difference between the current end value I12 and the current start current value I11 (I12-I11) is calculated as the current value I1, and the process proceeds to S530.
[0153] In S612, the current end value I22 is obtained via the current detection unit 34, and in S614, the difference between the current end value I22 and the current start current value I21 (I22-I21) is calculated as the current value I2, and the process proceeds to S620.
[0154] In this way, by executing the PWM carrier interrupt process at the on and off timings of the PWM control, it is possible to obtain the current values I1 and I2 that flow when the switching elements of the inverter unit 32 are in the on state, without being affected by the reflux current or regenerative current. As a result, according to this modification, it is possible to more accurately detect the rotor position from the magnitude relationship between the current values I1 and I2.
[0155] In this embodiment, the switch patterns when driving the motor 20 with pattern PWM have been described as being pattern 1 and pattern 2. However, as shown in the dotted frame in FIG. 4B, pattern 3 may be added as a switch pattern.
[0156] In other words, even if three or more switch patterns are set, the rotor position can be detected in the same manner as in the above embodiment by sequentially switching between the patterns in synchronization with the control period of the PWM control and determining the relationship in magnitude between the current values obtained before and after the switching.
[0157] In addition, in this embodiment, when the inverter unit 32 is driven in pattern 1 or pattern 2 to drive the motor 20 at a low speed, the period during which current is supplied to the motor 20 (on time) per PWM control cycle is described as being set according to the target rotation speed of the motor 20, etc.
[0158] However, the current flowing through the motor 20 varies depending on the power supply voltage supplied from the battery pack 18, and when the power supply voltage varies, the current values I1 and I2 also vary. For this reason, when driving motor 20 at low speed in each of patterns 1 and 2, the period during which current is supplied to motor 20 (on time) per PWM control cycle may be set in accordance with the voltage value of the power supply voltage used to drive motor 20, so that the lower the voltage value, the longer the on time.
[0159] In this way, when the motor 20 is driven by the pattern PWM, it is possible to suppress changes in the current flowing through the brushless motor due to fluctuations in the power supply voltage, and it is possible to improve the detection accuracy of the rotor position.
[0160] In the present embodiment, the magnitude relationship of the current values caused by switching the switch pattern is detected by the arithmetic processing of the microcomputer constituting the control unit 30. However, in the present embodiment, the magnitude relationship of the current values caused by switching the switch pattern is detected by the arithmetic processing of the microcomputer constituting the control unit 30.
[0161] Alternatively, for example, current values (more preferably peak current values) detected by the current detection unit 34 in a plurality of switch patterns may be stored in a holding circuit outside the control unit 30, and the current values stored in each storage circuit may be compared by a comparison circuit such as a comparator. In other words, the magnitude relationship of the current values caused by switching the switch pattern may be determined by a circuit external to the control unit 30.
[0162] In this way, the control unit 30 only needs to read the magnitude relationship determined by the external circuit and determine whether or not the magnitude relationship has been inverted, thereby reducing the processing load on the control unit 30. [Second embodiment] Next, in the first embodiment, when the motor 20 is driven at low speed by pattern PWM drive, the rotor position is detected from the magnitude relationship of the current values generated by switching the switch pattern.
[0163] However, the rotor position can be detected from the magnitude relationship of the inductance generated by switching the switch pattern. Therefore, in order to detect the rotor position, it is not necessary to detect the current value when the motor 20 is driven at low speed by sequentially switching the switch pattern between patterns 1 and 2 as in the first embodiment, but it is also possible to measure the time until the current value reaches a predetermined threshold value.
[0164] In this embodiment, an electric operating machine will be described in which the time until the current value reaches a predetermined threshold is measured, and the rotor position is detected based on the magnitude relationship of this time. The electric operating machine 1 of this embodiment has a basic configuration similar to that of the first embodiment, so a description of the common configuration will be omitted and the differences will be mainly described.
[0165] As shown in FIG. 15, the control unit 3 of this embodiment includes a control section 30, an inverter section 32, a current detection section , a position detection section and, in addition, a current value comparison section . The current value comparison unit 38 is configured to compare the current value detected by the current detection unit 34 with a reference current value as a threshold value output from the control unit 30, and output a signal to the control unit 30 when the current value detected by the passage of current through the motor 20 increases and reaches the reference current value.
[0166] Moreover, the control unit 30 performs a current value comparison unit output signal interrupt process shown in Fig. 18 and a PWM timer overflow interrupt process shown in Fig. 19, instead of the PWM carrier interrupt process of the first embodiment. The PWM timer is a timer counter that measures one cycle of PWM control.
[0167] Moreover, as shown in FIG. 16, in the motor stop process, the control unit 30 executes the processes of S212 and S214 instead of the process of S210 in which the current acquisition first time flag is set to "not yet."
[0168] Also, as shown in FIG. 17, in the motor drive processing, the processing of S345 is executed between S340 and S350, and instead of the processing of S370, the processing of S362, S364, and S375 is executed, and further, during the transition from S300 to S420, the processing of S415 is executed.
[0169] Here, the processing of S212 executed in the motor stop processing is processing to prohibit interrupt processing by the output signal from the current value comparison unit 38 (current value comparison unit output signal interrupt processing), and the processing of S214 is processing to set the timer value acquisition first time flag to "not yet".
[0170] The timer value first acquisition flag is a flag used to determine whether or not a timer value has been acquired from the PWM timer after the motor 20 starts to be driven in the pattern 1. Next, the process of S345 executed in the motor drive process is a process for setting an initial state of the magnitude relationship between the timer values T1, T2 obtained from the PWM timer when the motor 20 is driven in pattern 1 or pattern 2.
[0171] Incidentally, the initial state of the magnitude relationship between the timer values T1, T2 is set in advance for each rotation range and direction of the motor 20, as is the initial state of the magnitude relationship between the current values I1, I2, as exemplified in the right column of Fig. 4B, and is stored in the non-volatile memory 30A together with the switch pattern. Therefore, in S345, the initial state of the magnitude relationship between the current values I1, I2 is read from the non-volatile memory 30A and set.
[0172] In addition, in S362 executed in the motor drive process, an interrupt by an output signal from the current value comparison unit 38 is permitted, and in S364 an initial value is set in the PWM timer. In addition, in S375, similar to S370 in the above embodiment, output of a drive signal to the inverter unit 32 (pattern PWM output) is started in pattern 1 set as the pattern PWM in S350, and time measurement (counting operation) by the PWM timer is started.
[0173] As a result, when a drive signal is output to the inverter unit 32 in pattern 1, the PWM timer is simultaneously started from the initial value and the control period of the PWM control is timed. Then, when the PWM timer times the control period of the PWM control, the PWM timer overflows, and the PWM timer overflow interrupt process shown in FIG. 19 is executed.
[0174] In this PWM timer overflow interrupt process, as shown in FIG. 19, in S910, the count operation by the PWM timer is stopped, and in S920, similarly to S364, an initial value is set in the PWM timer for counting the control period of PWM control.
[0175] In the next S930, the output of the drive signal to the inverter unit 32 (pattern PWM output) is started in pattern 1 or pattern 2 currently set as the pattern PWM, and the PWM timer starts timing (counting operation). After the process of S930 is executed, the PWM timer overflow interrupt process is terminated.
[0176] As a result, as shown in FIGS. 20 and 21, the PWM timer counts up the timer value during the time from the initial value until it overflows, with one PWM control period being one period.
[0177] 18, in the current value comparator output signal interrupt process, first in S700, the pattern PWM output in the low speed mode is stopped. Then, in the following S710, it is determined whether the current interrupt is an interrupt when the switch pattern is set to pattern 1 or pattern 2.
[0178] When the switch pattern is set to pattern 1, the process proceeds to S720, where the current timer value T1 is obtained from the PWM timer, and in the following S730, the switch pattern of the PWM pattern is changed to pattern 2, and the process proceeds to S740, where it is determined whether the timer value acquisition first flag is set to "done".
[0179] If the timer value acquisition first flag is not set to "Completed", the operating mode has just been switched to the low-speed mode, so the current value comparison unit output signal interrupt process is terminated, and if the timer value acquisition first flag is set to "Completed", the process proceeds to S750.
[0180] Also, in S710, if it is determined that the current interrupt is an interrupt when the switch pattern is set to pattern 2, the process proceeds to S810. Then, in S810, the current timer value T2 is obtained from the PWM timer, and the process proceeds to S820.
[0181] In S820, the switch pattern of the pattern PWM is changed to pattern 1, and the process proceeds to S830, where the timer value acquisition first flag is set to "completed", and then the process proceeds to S750. Then, in S750, the magnitude relationship between the latest timer values T1, T2 acquired in S720 and S810 is determined, and it is determined whether or not the magnitude relationship has been inverted.
[0182] That is, the current value comparison unit 38 outputs an interrupt signal when the current value detected by the current detection unit 34 reaches the reference current value. Therefore, the timer values T1 and T2 represent the time from when the inverter unit 32 starts to drive in the patterns 1 and 2 until the current value reaches the reference current value from 0, as shown in FIG.
[0183] These timer values T1, T2 change according to the inductance of the motor 20, and therefore the rotational position, and the magnitude relationship is reversed at a predetermined rotational position, just like the magnitude relationship between the current values I1, I2.
[0184] For this reason, in S750, it is determined whether the magnitude relationship between the timer values T1 and T2 has been inverted, thereby determining whether the rotor 22 has passed a predetermined rotational position (for example, reference angles of 0 degrees, 60 degrees, 120 degrees, 180 degrees, 240 degrees, and 300 degrees).
[0185] Then, if it is determined in S750 that the magnitude relationship between the timer values T1 and T2 has not been inverted, the current value comparison unit output signal interrupt process is terminated, and if it is determined that the magnitude relationship between the timer values T1 and T2 has been inverted, the process proceeds to S760 and the rotor position is updated.
[0186] When initially determining in S750 whether the magnitude relationship between the timer values T1 and T2 has been inverted, the initial state of the magnitude relationship between the timer values stored in non-volatile memory 30A is used as the previous magnitude relationship.
[0187] Next, in S770, a switch pattern (pattern 1 or pattern 2) to be used for driving the motor 20 at a low speed is selected according to the updated rotor position. Then, in S780, the magnitude relationship between the current timer values T1 and T2 is stored in RAM or the like as an initial state for comparison with the magnitude relationship between the next timer values T1 and T2, and the process proceeds to S790.
[0188] In S790, one of the two switch patterns selected in S770 (here, pattern 1) is set as the pattern PWM used for driving the motor 20 at low speed via the inverter unit 32, and the process proceeds to S800.
[0189] Then, in S800, in order to newly start driving the motor after updating the rotor position, the timer value first acquisition flag is set to "not yet", and the current value comparison unit output signal interrupt process is terminated. As described above, in the electric operating machine 1 of this embodiment, similar to the first embodiment, the switch pattern is alternately switched between pattern 1 and pattern 2 in synchronization with the control period of PWM control.
[0190] Then, as shown in FIG. 21, the time until the current flowing through the motor 20 reaches the reference current value due to the energization after the switching is measured as timer values T1 and T2 using the count value of the PWM timer.
[0191] Then, each time the timer values T1, T2 are measured in this manner, the magnitude relationship between the timer values T1, T2 and the previously measured timer values T2, T1 is detected, and when the detected magnitude relationship is reversed from the previously detected magnitude relationship (or the initial state), the rotational position of the motor 20 is detected and the current supply pattern is switched.
[0192] Therefore, in this embodiment as well, it is possible to grasp the rotational position of motor 20 over an extremely wide rotation range, from extremely low rotation speeds to high rotation speeds, and to appropriately control the current supply pattern to motor 20, thereby obtaining the same effects as in the first embodiment.
[0193] Furthermore, in this embodiment, the current value detected by the current detection unit 34 is used to be compared with a reference current value in the current value comparison unit 38, and there is no need to A / D convert the current value using an A / D converter and input it to the control unit 30 in order to detect the rotor position.
[0194] Therefore, there is no need to provide the control unit 30 with an A / D converter capable of high-speed A / D conversion of the current value, and the configuration of the control unit 30 can be simplified. (Second Modification) Next, a modification of the second embodiment (second modification) will be described.
[0195] In this embodiment, when current is applied to the motor 20 in low speed mode with each of the switch patterns 1 and 2, the control unit 30 measures the time until the current value detected by the current detection unit 34 reaches the reference current value as timer values T1 and T2.
[0196] For this reason, as explained in the first modified example, if a reflux current or a regenerative current is flowing when the switching element of inverter unit 32 is turned on to start current flow, the rotational position of brushless motor 20 cannot be accurately detected based on the magnitude relationship between the measured timer values T1 and T2.
[0197] In other words, as shown in FIG. 22, if the reflux current or regenerative current cannot be reduced to zero within one cycle of PWM control, the current value detected by current detection unit 34 at the on timing ton of PWM control will be higher by the amount of the reflux current or regenerative current.
[0198] For this reason, if the reference current value output to the current value comparison unit 38 is kept constant, the timer values T1 and T2 will not be the time required for the current value to increase by a predetermined threshold value, and the rotor position cannot be accurately detected from the magnitude relationship between the timer values T1 and T2.
[0199] Therefore, in this modified example, at the on timing ton of the PWM control, the return current or regenerative current is detected as the current flow start current value Ist via the current detection unit 34, and the reference current value to be output to the current value comparison unit 38 is set to a current value obtained by adding a predetermined threshold value and the current flow start current value Ist.
[0200] As a result, the timer values T1 and T2 are the time required for the current flowing through the brushless motor 12 to increase by a predetermined threshold value after the current path from the battery pack 18 to the brushless motor 12 is opened at the off timing of the PWM control.
[0201] Therefore, in this modified example, as in the first modified example, even if brushless motor 20 is driven under operating conditions in which the reflux current or regenerative current cannot be reduced to zero within one cycle of PWM control, the rotational position of brushless motor 20 can be detected without being affected by the reflux current or regenerative current.
[0202] In order to set the reference current value as described above, as shown in FIG. 23, in the PWM timer overflow interrupt processing, a drive signal is output to the inverter unit 32 in S930 to start timing by the PWM timer, and then the processing of S940 and S950 is executed.
[0203] Then, in S940, the current value detected by the current detection unit 34 at that time is obtained as the current flow start current value Ist, and in S950, the current flow start current value Ist is added to a preset threshold value to set a reference current value to be output to the current value comparison unit 38.
[0204] By updating the reference current value in this manner for each cycle of PWM control, the time required for the current value to increase by a threshold value after current starts flowing from the battery pack 18 to the brushless motor 20 can be obtained as timer values T1 and T2.
[0205] In this embodiment, the pattern PWM output is described as being stopped when the current value reaches the reference current value, but the pattern PWM output may be continued even after the current value reaches the reference current value to allow even more current to flow and generate a larger rotational torque. [Other embodiments] Although the embodiments for carrying out the present disclosure have been described above, the present disclosure is not limited to the above-described embodiments and modifications, and can be carried out in various modified forms.
[0206] For example, in the above embodiment, motor 20 has been described as an IPM type three-phase brushless motor in which magnets are embedded in rotor 22, but it may also be an SPM (Surface Permanent Magnet) type brushless motor in which magnets are attached around rotor 22.
[0207] In other words, the present disclosure can be similarly applied to a brushless motor in which the inductance of the stator winding changes depending on the rotational position of the rotor, even if the brushless motor is a surface permanent magnet (SPM) type brushless motor.
[0208] In addition, in the above embodiment, in the brushless motor, the rotor winding is delta-connected to the terminals of each phase, but the present disclosure can be similarly applied to a brushless motor in which the rotor winding is Y-connected.
[0209] In the above embodiment, when it is determined in the judgment process of S550 or S750 that the magnitude relationship between the current values I1 and I2 or the magnitude relationship between the timer values T1 and T2 has been inverted, the rotor position is updated in S560 or S760.
[0210] However, the magnitude relationship between the inductance of the motor 20, the current value corresponding thereto, or the timer time may be changed due to noise, etc. For this reason, when a reversal of the magnitude relationship is detected in S550 or S750, the magnitude relationship may be judged multiple times thereafter to confirm that the magnitude relationship has not been reversed again before updating the rotor position.
[0211] In this way, when the magnitude relationship between the inductance of the motor 20, the corresponding current value, or the timer time temporarily changes due to noise or the like, it is possible to prevent the rotor position from being erroneously detected and updated.
[0212] In addition, in the above embodiment, when a predetermined rotational position (rotor position) of motor 20 is detected, the current supply pattern is changed to a switch pattern (pattern 1, pattern 2) corresponding to that rotational position. However, immediately after the change, the current value flowing through motor 20 may become unstable.
[0213] Therefore, as shown in Figures 11 and 21, when a predetermined rotational position of the motor 20 is detected and the current supply pattern is switched, it is possible to prohibit determining the magnitude relationship between the current values I1, I2 or the timer values T1, T2 for a predetermined mask period.
[0214] In addition, in the above embodiment, a grass cutter was used as an example of an electric working machine of the present disclosure, but the technology of the present disclosure can be applied in the same manner as the above embodiment to any electric working machine equipped with a brushless motor as a power source.
[0215] That is, the technology disclosed herein can be applied to power tools for masonry, metalworking, and woodworking, gardening machines, etc. More specifically, the technology can be applied to various electric work machines such as electric hammers, electric hammer drills, electric drills, electric drivers, electric wrenches, electric grinders, electric circular saws, electric reciprocating saws, electric jigsaws, electric hammers, electric cutters, electric chainsaws, electric planers, electric nail guns (including tack guns), electric hedge trimmers, electric lawn mowers, electric brush cutters, electric cleaners, electric blowers, electric sprayers, electric spreaders, and electric dust collectors.
[0216] In addition, multiple functions possessed by one component in the above embodiments may be realized by multiple components, or one function possessed by one component may be realized by multiple components. Also, multiple functions possessed by multiple components may be realized by one component, or one function realized by multiple components may be realized by one component. Also, a part of the configuration of the above embodiment may be omitted. Also, at least a part of the configuration of the above embodiment may be added to or substituted for the configuration of another of the above embodiments. Note that any aspect included in the technical idea identified only by the wording described in the claims is an embodiment of the present disclosure. [Explanation of symbols]
[0217] 1...electric work machine, 3...control unit, 4...drive unit, 8...operation and display unit, 10...trigger switch, 18...battery pack, 20...motor, 22...rotor, 24A to 24C...windings, 30...control unit, 30A...non-volatile memory, 32...inverter unit, 34...current detection unit, 36...position detection unit, 38...current value comparison unit, Q1 to Q6...switching elements.
Claims
1. An electric work machine equipped with a brushless motor as a power source, an inverter unit including a plurality of switching elements provided in current paths between a DC power source and a plurality of terminals of the brushless motor, the inverter unit being configured to be able to control current flow and current flow direction to a plurality of windings of the brushless motor via the plurality of switching elements; a control unit configured to switch a current pattern for current supply to the plurality of windings via the inverter unit at each predetermined commutation timing of the brushless motor, and to turn on and off the plurality of switching elements of the inverter unit in accordance with the current pattern, thereby PWM-controlling current supply to the plurality of windings; Equipped with The control unit is a plurality of switch patterns in which on / off states of the plurality of switching elements are different as the energization pattern that is switched at each commutation timing during a low-speed rotation in which the rotation speed of the brushless motor has not reached a reference rotation speed; during the low-speed rotation when the rotation speed of the brushless motor has not reached the reference rotation speed, the switch pattern used to control the on / off state of the switching element is switched sequentially to one of the plurality of switch patterns in synchronization with a cycle of the PWM control, an amount of change in current flowing through each of the different current paths is obtained by switching the switch pattern, a rotation position of the brushless motor is detected from the magnitude relationship of the obtained amount of change in current, and the commutation timing is set to thereby control the current flowing through the plurality of windings; During high speed rotation in which the rotation speed of the brushless motor is equal to or higher than the reference rotation speed, the current supply pattern for high speed driving is switched in response to a rotation position of the brushless motor detected based on an induced voltage generated by the rotation of the brushless motor, thereby controlling the current supply to the plurality of windings, the control unit switches between the plurality of switch patterns at each commutation timing during the low-speed rotation of the brushless motor, and each of the switch patterns is set so that a rotational torque is generated in a rotor of the brushless motor when the on / off state of the switching element is controlled by each switch pattern.
2. 2. The electric work machine according to claim 1, wherein the control unit is configured to, when energizing the brushless motor with the switch pattern during the low-speed rotation, acquire as the current change amount the difference between a current start current when energization is started and a current end current when energization is ended.
3. 2. The electric operating machine according to claim 1, wherein the control unit is configured to measure, as the amount of current change, a time from when current flow to the brushless motor begins with the plurality of switch patterns during the low-speed rotation until the current flow reaches a predetermined threshold.
4. An electric work machine equipped with a brushless motor as a power source, an inverter unit including a plurality of switching elements provided in current paths between a DC power source and a plurality of terminals of the brushless motor, the inverter unit being configured to be able to control current flow and current flow direction to a plurality of windings of the brushless motor via the plurality of switching elements; a control unit configured to switch a current pattern for current supply to the plurality of windings via the inverter unit at each predetermined commutation timing of the brushless motor, and to turn on and off the plurality of switching elements of the inverter unit in accordance with the current pattern, thereby PWM-controlling current supply to the plurality of windings; Equipped with The control unit is a plurality of switch patterns in which on / off states of the plurality of switching elements are different as the energization pattern that is switched at each commutation timing during a low-speed rotation in which the rotation speed of the brushless motor has not reached a reference rotation speed; during the low-speed rotation when the rotation speed of the brushless motor has not reached the reference rotation speed, the switch pattern used to control the on / off state of the switching elements is switched sequentially to one of the plurality of switch patterns in synchronization with a cycle of the PWM control, a current value flowing through each of the different current paths is obtained by switching the switch pattern, a rotation position of the brushless motor is detected based on the magnitude relationship of the obtained current values, and the commutation timing is set to control the current flowing through the plurality of windings; During high speed rotation in which the rotation speed of the brushless motor is equal to or higher than the reference rotation speed, the current supply pattern for high speed driving is switched in response to a rotation position of the brushless motor detected based on an induced voltage generated by the rotation of the brushless motor, thereby controlling the current supply to the plurality of windings, the control unit switches between the plurality of switch patterns at each commutation timing during the low-speed rotation of the brushless motor, and each of the switch patterns is set so that a rotational torque is generated in a rotor of the brushless motor when the on / off state of the switching element is controlled by each switch pattern.
Citation Information
Patent Citations
Brushless direct-current motor driving control system
CN105207549A
power tool and motor drive circuit thereof
DE102016116881A1
Moisture separating reheater
JP1987084207A
How to start a brushless DC motor
JP2005513986A
Method for operating an electronically commutated electric motor and apparatus therefor
US20110279073A1