1. Field of the Invention
The present invention relates to a spindle motor drive controller for a machine tool and in particular to a PWM spindle motor drive controller that controls the current flowing into a spindle motor to control the operation thereof by applying a pulse-width modulated voltage from an inverter to the windings of the spindle motor.
2. Description of the Related Art
As a motor for driving a spindle of a machine tool is required to control the spindle at any speed, a voltage command value computed from a current command and a current feedback value is modulated using a pulse width modulation (PWM) technique and the modulated voltage is applied to the windings of the motor driving the spindle to control the operation of the motor.
The voltage command, which is output from a current controller, is compared with a triangular wave and the power switching element in the inverter that drives the motor is switched on or off depending on whether or not the voltage command value is above the triangular wave voltage. To prevent the power switching element in the inverter from short-circuiting the DC power supply during the switching operations, the power switching element operates with a deadband. As the PWM cycle (triangular wave cycle) shortens, the deadband increases relative to the pulse width and consequently reduces the torque. To avoid this torque reduction, it is known art to switch the PWM cycle with commands programmed to shorten the PWM cycle when high-precision control is required for machining and other operations, and to lengthen the PWM cycle when torque is required, as described in Japanese Patent Application Laid-Open No. 2001-275394, for example.
An inverter that drives a motor produces considerable noise while the motor is running at low speed with constant torque and produces less noise while the motor is running at high speed with constant output. Low-noise inverters are known which reduce motor noise by increasing the PWM frequency in the constant torque range below a specified switching speed and decreasing the PWM frequency gradually in the low output range above the switching speed. It is also known art to reduce motor noise by increasing the PWM frequency only in the positional command mode, in which the noise is loud, and to suppress the generation of heat in the power switching element while suppressing motor noise by decreasing the PWM frequency as the load on the motor increases, as described in Japanese Patent Application Laid-Open No. 07-222478.
Both of the patent documents mentioned above disclose PWM cycle (PWM frequency) switching techniques. The purpose of the PWM cycle switching technique described in Japanese Patent Application Laid-Open No. 2001-275394, however, is to reduce the effect of the deadband during PWM-controlled switching, because the deadband affects the output torque. The purpose of the PWM cycle switching technique described in Japanese Patent Application Laid-Open No. 07-222478 is to reduce noise.
One problem found in the prior art is heat generation in the motor and drive unit. Shortening the PWM cycle, i.e., increasing the PWM frequency, reduces the high frequency components superimposed on the current flowing into the motor and consequently reduces heat generation in the motor, but the power switching element operates more frequently, so heat generation in the drive unit increases.
On the other hand, lengthening the PWM cycle, i.e., decreasing the PWM frequency, allows the power switching element to operate less frequently and consequently reduces heat generation in the drive unit, but increases the high frequency components superimposed on the current and consequently increases heat generation in the motor.
The present invention provides a spindle motor drive controller using a PWM technique for driving the spindle motor in a machine tool, characterized in that heat generation in the motor and drive unit is suppressed by changing the PWM cycle according to the magnitude of a current value. When the current value is above a threshold, the PWM cycle is lengthened to reduce heat generation in the drive unit; when the current value is equal to or less than a threshold, the PWM cycle is shortened to reduce heat generation in the motor.
More specifically, if the excitation frequency is higher than a frequency determined by the thermal time constant of the power switching element, the current limit value for switching the PWM frequency is set to a fixed value; if the excitation frequency is lower than the frequency determined by the thermal time constant of the power switching element, the current limit value is lowered in accordance with the excitation frequency. Alternatively, if the excitation frequency is higher than the frequency determined by the thermal time constant of the power switching element, the current threshold level for changing the PWM frequency is set to a fixed value; if the excitation frequency is lower than the frequency determined by the thermal time constant of the power switching element, the current threshold level is lowered according to the excitation frequency.
To prevent generation of chattering when the PWM cycle is changed (i.e., the PWM frequency is switched) according to the magnitude of the current value, the magnitude of a current feedback signal obtained through a filter is used to determine the magnitude of the current value. The switching of the PWM cycle is also performed with hysteresis.
The present invention takes account of both heat generation in a spindle motor due to high frequency components superimposed by pulse-width modulation on the current flowing into the spindle motor and heat generation in the spindle motor drive controller due to the switching operation of the power switching element caused by pulse-width modulation, and can suppress heat generation in the spindle motor and the spindle motor drive controller in a well balanced way.
The forgoing and other objects and feature of the invention will be apparent from the following description of preferred embodiments of the invention with reference to the accompanying drawings, in which:
An embodiment of a spindle motor drive controller according to the present invention will be described with reference to the block diagram in
A subtractor 1 obtains a speed deviation by subtracting a speed feedback signal, received from a speed detector 11 that detects the speed of the motor 10, from a speed command received from a higher controller such as a numerical control device (or a positional loop control unit). A speed controller 2 obtains a torque current command by performing proportional-plus-integral control or other speed loop processing based on the speed deviation. An excitation frequency computing unit 6 computes an excitation frequency or from the torque current command and the speed feedback signal.
The processing by which the torque current command and excitation frequency ωr are obtained is also performed by conventional PWM spindle motor drive controllers. In a conventional spindle motor drive controller, a subtractor 3 obtains a current deviation by subtracting a current feedback signal, received from a current detector (not shown in the drawing) that detects the motor driving current, from the torque current command. A current controller 4 then determines a voltage command from the current deviation and a current deadband correction; the current deadband correction is determined from the excitation frequency ωr and the (fixed) PWM frequency; the voltage command is used to obtain a PWM command.
In the present invention, considering that the effect of the current deadband varies with the PWM frequency, the PWM frequency (PWM cycle) to be input to the current controller 4 is made variable and the current deadband correction is determined from the PWM frequency.
To make the PWM frequency (PWM cycle) variable, the present invention adds a threshold level computing unit 7, a PWM frequency setting unit 8, and a filter 9 to the conventional spindle motor drive controller. From the excitation frequency ωr and set parameters, the threshold level computing unit 7 computes a threshold level Lt with which the current flowing through the spindle motor is compared in order to change the PWM frequency.
How the threshold level Lt computing unit 7 computes the threshold level Lt will be described below with reference to
The preset excitation frequency parameter ω1 is determined by the thermal time constant of the power switching element in the inverter unit 5. If the excitation frequency ωr drops and the excitation cycle time exceeds the thermal time constant of the power switching element, the power switching element is loaded with the equivalent of a direct current having the same amplitude as a sinusoidal current corresponding to the voltage command. To protect the power switching element, when the excitation frequency ωr is equal to or less than the preset excitation frequency ω1 determined by the thermal time constant, the current limit value is lowered by lowering the threshold level Lt as the excitation frequency ωr drops.
The PWM frequency setting unit 8 determines the PWM frequency from the threshold level Lt, a hysteresis value Lh (described later) set as a parameter, and the current feedback signal If. In this embodiment, the PWM frequency is switched between 6 kHz and 12 kHz. As shown in
How the PWM frequency (PWM cycle) is switched between 6 kHz and 12 kHz according to the current feedback signal If input through the filter 9 will be described with reference to
In the example shown in
When the current feedback signal If drops from a value above the threshold level Lt to a value equal to or less than the threshold level Lt minus the hysteresis parameter Lh (or equal to or less than Lt−Lh), the PWM frequency is switched from 6 kHz to 12 kHz. The PWM frequency is kept at 12 kHz while the current feedback signal If remains below this value (Lt−Lh).
The PWM frequency setting unit 8 switches the PWM frequency as described above and outputs a 6 kHz or 12 kHz PWM frequency to the current controller 4 and the inverter unit 5.
The PWM frequency (PWM cycle) switching operation will be described with reference to
The PWM frequency determined by the PWM frequency setting unit 8 is input to the inverter unit 5, in addition to the current controller 4 as described above, and set in a frequency setting register in the triangular wave generator circuit 51. The triangular wave generator circuit 51 outputs a triangular wave at the frequency thus set. The comparator 52 in the inverter unit 5 compares the voltage command from the current controller 4 with the triangular wave from the triangular wave generator circuit 51 and outputs a PWM command to the power switching unit 53. According to this PWM command, the power switching unit 53 controls the on-off operation of the power switching element through which driving current flows into the windings of the spindle motor 10 to drive the spindle motor 10.
First, the excitation frequency ωr is read (Step S1). Then, the excitation frequency ωr is compared with the parameter setting ω1 (Step S2). If the ωr value is below the parameter setting ω1, the threshold level Lt is obtained by the following equation (1) (Step S3).
Lt=L0+(L1−L0)×(ωr/ω1) (1)
If the excitation frequency ωr is equal to or greater than the parameter setting ω1, the threshold level Lt is set to the parameter L1 (Step S4).
Then, the PWM frequency is checked to see if it is currently set at 12 kHz (Step S5). Incidentally, the PWM frequency is initialized to 12 kHz when the spindle motor drive controller is powered on. If the PWM frequency is currently set at 12 kHz, the current feedback value If is checked to see if it is equal to or less than the threshold level Lt obtained above (Step S6). If the current feedback value If is equal to or less than the threshold level Lt, the PWM frequency is set to 12 kHz (Step S7). If the current feedback value If is above the threshold level Lt, the PWM frequency is set to 6 kHz (Step S9). In short, as the excitation frequency ωr drops, the threshold level Lt is lowered according to the equation (1) above and consequently the current limit value for keeping the PWM frequency at 12 kHz is lowered.
Since the current feedback value If at which the PWM frequency is switched from 12 kHz to 6 kHz is lowered in Step S6, the PWM frequency is switched to 6 kHz at increasingly lower current values as the excitation frequency ωr drops. Thus, the power switching element is protected.
If the current PWM frequency setting is 6 kHz and not 12 kHz in Step S5, the current feedback value If is checked to see if it is equal to or greater than the threshold level Lt minus the hysteresis setting Lh (or equal to or greater than (Lt−Lh)) (Step S8); if so, the PWM frequency is set to 6 kHz (Step S9). If the current feedback value If drops below the value (Lt−Lh), the PWM frequency is set to 12 kHz (Step S7).
The PWM frequency is thus switched. When the motor is driven with a high current during acceleration or deceleration, for example, the PWM frequency is switched to the lower frequency of 6 kHz, so the PWM cycle becomes longer, the power switching element operates less frequently, and heat generation in the drive unit is suppressed. On the other hand, when the motor is driven with a low current in the range where heat generation in the drive unit is acceptable, the PWM frequency is switched to 12 kHz, to shorten the PWM cycle, and heat generation in the motor is suppressed.
Number | Date | Country | Kind |
---|---|---|---|
2003-273647 | Jul 2003 | JP | national |