CONTROLLER FOR MACHINE TOOL

A thermal displacement state (target thermal displacement state) in which thermal displacement of a machine tool is saturated when the machine tool is operated based on a machining program is previously stored, and a warm-up operation pattern of a motor is determined so as to approach the target thermal displacement state. The motor is driven based on the warm-up operation pattern and the warm-up operation of the motor is stopped if the thermal displacement state of the machine tool is within a predetermined range.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description
BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a controller for a machine tool, and more particularly, to a controller for a machine tool configured to perform efficient warm-up control based on a thermal displacement state at the point in time when thermal displacement is saturated.

2. Description of the Related Art

In a machine tool, a feed screw and a spindle are driven by a motor, so that they are expanded to inevitably change the machine position by heating of the motor, frictional heat due to rotation of a bearing, and frictional heat from a contact portion between a ball screw and a ball nut. Thus, the relative positions of a tool and a workpiece to be machined are shifted. This change of the machine position due to the heating causes a problem in high-precision machining.

The displacement of the machine position by heat can be removed by using the following methods. One of these methods is a technique in which a command position is compensated based on a detected displacement or temperature measured by a displacement or temperature sensor (thermal displacement compensation). In another method, initial tension is applied to a feed screw to avoid the influence of thermal expansion. A third method is a warm-up method in which a machine is operated to stabilize accuracy before machining a workpiece.

In warm-up operation, the spindle is rotated at a speed used for actual workpiece machining or idling is repeated to run a machining program without a workpiece mounted in the machine. The machining accuracy can be stabilized by performing idling until the thermal displacement of the machine tool is stabilized. However, the time and details of the idling are determined based on the experience and intuition of a skilled operator, so that wasteful warm-up time may possibly occur. To overcome this, a method for determining the timing for ending warm-up operation and a method for efficiently performing warm-up operation are proposed in, for example, Japanese Patent Applications Laid-Open Nos. 07-124846, 2004-261934, and 08-215981.

A machine tool described in Japanese Patent Application Laid-Open No. 07-124846 is constructed based on the observation that the motion of a hydraulic actuator is less smooth than usual in the first morning operation and inevitably fails to pass various abnormality tests during warm-up operation. When a warm-up mode is selected in this machine tool, the position tolerance of a hydraulic servo system and the set value of position arrival time are increased so that some predetermined operations can be omitted by ignoring detection signals from a workpiece detection switch. Thus, the machine tool can smoothly perform warm-up operation without a useless interruption of operation.

Although the warm-up time is reduced by obviating a useless operation stop according to the technique described above, however, a machining program for idling is one designed for use in actual machining. Therefore, the warm-up operation involves many wasteful operations, such as a dwelling operation commanded during machining, low-speed machining operation, and tool change operation, and entails extra time for that.

A machine tool described in Japanese Patent Application Laid-Open No. 2004-261934 can reduce the warm-up time by such control as to prevent wasteful warm-up operation. In this control, the cutting-edge position of a tool is detected during warm-up operation of a spindle, and it is determined that there is no need of warm-up operation if the change of the tool cutting-edge position is within a preset tolerance.

Although the timing for ending the warm-up operation can be determined according to the technique described above, the reduction of the warm-up time is limited, since the efficiency of the warm-up operation is invariable. Further, the object to be the warmed up is limited to the spindle, and there is no description of warm-up operation of a feed screw in the patent document.

A machine tool described in Japanese Patent Application Laid-Open No. 08-215981 can reduce the warm-up time in the following manner. A spindle is rotated at a speed used for actual machining and a thermal displacement amount at the time of saturation of thermal displacement is measured in advance. In actual warm-up operation, the spindle is rotated at a higher speed for preheating so that a thermal displacement amount equal to the measured value is reached. Thereafter, the rotational speed for the actual machining is restored, and machining is started with relative positions compensated by an amount corresponding to the generated thermal displacement amount. In this way, a high machining accuracy equivalent to that for the case where the stability of the thermal displacement is awaited before starting the machining can be obtained, and at the same time, the warm-up time can be reduced.

According to the technique described above, the timing for ending the warm-up operation is determined by comparing a thermal displacement amount in a case where the thermal displacement is saturated with a current thermal displacement amount. Since a thermal displacement amount of a spindle involves deformations of a spindle mount and a column and the thermal displacement does not simply increase but complicatedly changes, however, the warm-up operation may sometimes be ended in an untimely manner. Further, the above patent document describes only the warm-up operation at a certain rotational speed for preheating and does not describe efficient warm-up operation taking into consideration acceleration and deceleration of the spindle. Furthermore, the object to be warmed up is limited to the spindle, and there is no description of warm-up operation of a feed screw in that patent document.

SUMMARY OF THE INVENTION

Accordingly, an object of the present invention is to provide a controller for a machine tool, capable of performing warm-up operation without entailing wasteful operation so that the warm-up time is reduced.

A controller for a machine tool according to the present invention drives a motor based on a machining program, thereby driving a spindle and a feed screw. The controller includes: a storage unit that stores therein, as a target thermal displacement state, a thermal displacement state in which thermal displacement of the machine tool is saturated when the machine tool is operated in advance based on the machining program; a warm-up operation determination unit configured to determine a warm-up operation pattern of the motor so as to approach the target thermal displacement state; a thermal displacement state calculation unit configured to calculate the thermal displacement state of the machine tool; a motor drive unit configured to drive the motor according to the warm-up operation pattern determined by the warm-up operation determination unit; and a motor stop unit configured to calculate the thermal displacement state of the machine tool for each predetermined period by means of the thermal displacement state calculation unit, compare the calculated thermal displacement state with the target thermal displacement state, and stop the motor drive unit if the difference between the calculated thermal displacement state and the target thermal displacement state is within a predetermined threshold value.

The thermal displacement state calculation unit may include a temperature distribution estimation unit configured to grasp a spindle portion as a model divided into a plurality of sections and estimate the respective temperatures of the individual sections, and a spindle thermal displacement amount estimation unit configured to estimate a thermal displacement amount by the temperature distribution estimation unit. The warm-up operation determination unit may determine the warm-up operation pattern for driving the spindle based on the estimated values of the temperature distribution estimation unit. And the motor stop unit may be configured to stop the motor drive unit if the difference between the temperature calculated by the temperature distribution estimation unit and a temperature in the target thermal displacement state is within a predetermined threshold value.

The thermal displacement state calculation unit may include a heating portion estimation unit configured to estimate thermal displacement amounts for a plurality of sections obtained by dividing the feed screw, and a feed screw thermal displacement amount estimation unit configured to estimate a thermal displacement amount for the entire feed screw by adding up the estimated thermal displacement amounts. The warm-up operation determination unit may determine the warm-up operation pattern for driving the feed screw based on the estimated values of the heating portion estimation unit, and the motor stop unit may be configured to stop the motor drive unit if the difference between the thermal displacement amount for the feed screw calculated by the feed screw thermal displacement amount estimation unit and a feed screw thermal displacement amount in the target thermal displacement state is within a predetermined threshold value.

The controller may calculate the thermal displacement amount by means of the thermal displacement state calculation unit even after the motor drive unit is stopped and resumes the drive of the motor by the motor drive unit if the calculated thermal displacement state does not agree with the target thermal displacement state.

According to the present invention configured as described above, the feed screw and the spindle are driven so as to agree with the thermal displacement state at the time of saturation of the thermal displacement, whereby warm-up operation can be achieved without entailing wasteful operation and the warm-up time can be reduced. The spindle is intermittently accelerated and decelerated at a rotational speed not lower than that for actual workpiece machining, while the feed screw is reciprocated in a certain section so as to be partially heated. In this way, the warm-up operation can be performed efficiently.

Moreover, the timing for ending the warm-up operation is determined based on comparison between the thermal displacement state at the time of saturation of the thermal displacement and the current thermal displacement state. Thus, wasteful warm-up time can be obviated so that the warm-up time can be further reduced.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other objects and features of the present invention will be obvious from the ensuing description of embodiments with reference to the accompanying drawings, in which:

FIG. 1 is a block diagram showing a controller for a machine tool according to the present invention;

FIG. 2 is a diagram showing a two-dimensional model of a spindle;

FIG. 3 is a schematic diagram showing the transfer of a heat quantity on the spindle;

FIG. 4 is a diagram showing a one-dimensional model of a feed screw;

FIG. 5 is a schematic diagram showing the transfer of a heat quantity on the feed screw;

FIGS. 6A and 6B are flowcharts showing steps of processing of warm-up operation performed by the numerical controller of FIG. 1;

FIG. 7 is a diagram showing an example of a warm-up program for the spindle performed by the numerical controller of FIG. 1;

FIG. 8 is a flowchart of processing for determining a warm-up operation pattern for the spindle performed by the numerical controller of FIG. 1;

FIG. 9 is a diagram showing an example of a warm-up program for the feed screw performed by the numerical controller of FIG. 1;

FIG. 10 is a flowchart of processing for determining a warm-up operation pattern for the feed screw performed by the numerical controller of FIG. 1; and

FIG. 11 is a diagram illustrating a method for calculating turning points in the warm-up operation pattern for the feed screw performed by the numerical controller of FIG. 1.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

A controller for a machine tool according to the present invention will be described with reference to the block diagram of FIG. 1 showing a numerical controller.

A numerical controller 10 for controlling a machine tool constitutes a thermal displacement compensation device (described later) for the machine tool. A processor (CPU) 11 of the numerical controller 10 reads a system program stored in a ROM 12 through a bus 21 and generally controls the numerical controller 10 according to the read system program. A RAM 13 is loaded with temporary calculation data, display data, various data input by an operator through an LCD/MDI unit (manual data input device with a liquid crystal display) 70, and the like.

An SRAM 14 is constructed as a nonvolatile memory, which is backed up by a battery (not shown) so that it can maintain its storage state even after the numerical controller 10 is powered off. The SRAM 14 is stored with a program for the measurement of an initial position, a program for thermal displacement compensation of the machine tool, a machining program (described later) read through an interface 15, a machining program input through the LCD/MDI unit 70, and the like. Further, the ROM 12 is preloaded with various system programs for the execution of edit-mode processing required for the creation and editing of the machining programs and processing for automatic operation.

The interface 15 is an interface for external equipment that can be connected to the numerical controller 10, to which an external device 72 such as an external storage device is connected. The machining programs, thermal displacement measurement program, and the like are read from the external storage device. A programmable machine controller (PMC) 16 controls auxiliary devices and the like on the machine-tool side by means of sequential programs in the numerical controller 10. Necessary signals on the auxiliary-device side are converted according to these sequential programs, based on M-, S- and T-functions commanded by the machining programs. The converted signals are output to the auxiliary-device side through an input-output unit 17. The auxiliary devices, e.g., various actuators, are activated by these output signals. When signals are received from various switches of a control panel on the body of the machine tool, moreover, they are processed as required and delivered to the processor 11.

Image signals indicative of current positions of the axes of the machine tool, alarms, parameters, image data, and the like are delivered to the LCD/MDI unit 70 and displayed on its display. The LCD/MDI unit 70 is a manual data input device including the display, a keyboard, and the like. An interface 18 receives data from the keyboard of the LCD/MDI unit 70 and delivers it to the processor 11.

An interface 19 is connected to a manual pulse generator 71. The manual pulse generator 71 is mounted on the control panel of the machine tool and used to precisely position movable parts of the machine tool by individual-axis control with distributed pulses based on manual operation. X- and Y-axis control circuits 30 and 31 for moving a table T of the machine tool and a Z-axis control circuit 32 receive axis movement commands from the processor 11 and output the commands for the individual axes to servo amplifiers 40 to 42. On receiving these commands, the servo amplifiers 40 to 42 drive servomotors 50 to 52 for the individual axes of the machine tool, respectively. Position detectors for position detection are incorporated in the servomotors 50 to 52, individually. Position signals from these position detectors are fed back as pulse trains.

A spindle control circuit 60 receives a spindle rotation command for the machine tool and outputs a spindle rotating speed signal to a spindle amplifier 61. On receiving this spindle speed signal, the spindle amplifier 61 rotates a spindle motor 62 of the machine tool at a commanded rotational speed, thereby driving a tool. A position detector 63 is coupled to the spindle motor 62 by gears, a belt, or the like. The position detector 63 outputs feedback pulses in synchronization with the rotation of a spindle, and the feedback pulses are read through an interface 20 by the processor 11. Reference numeral 65 denotes a clock device adjusted so as to synchronize with the current time.

The following is a description of steps of processing performed by the numerical controller 10.

<1. Calculation of Thermal Displacement State>

A method of thermal displacement state calculation performed by the numerical controller 10 of FIG. 1 will be described first. A thermal displacement state indicates the thermal displacement amounts, thermal displacement distributions, temperature distributions, and the like of constituent elements of the machine tool, such as the spindle and feed screws.

<1.1. Calculation of Spindle Thermal Displacement State>

As an example of a method for calculating the thermal displacement state of the spindle, there is a method in which the thermal displacement state of a spindle system is estimated from the drive state of the machine tool. As shown in FIG. 2, for example, a structure (spindle system) including a spindle 80, spindle mount 81, and column 82 is considered to be a planate two-dimensional model and divided into a plurality of sections (1 to 9). The temperatures of the individual sections are calculated according to calculation formulas that represent heat delivery. Since heat conduction occurs between each two adjacent sections, e.g., between Sections 1 and 2 or between Sections 2 and 3, such heat conduction is calculated for each predetermined period.

The friction of the spindle and the spindle motor are assumed to be heat sources, and heat from these heat sources applied to the adjacent sections is calculated. Since each section radiates heat into the atmosphere, moreover, heat removed from each section is also calculated. The temperature distribution of each section is estimated by combining these calculations.

FIG. 3 is a schematic diagram showing the transfer of a heat quantity Q in Section 1. Section 1 is in contact with the outside air, as well as with Sections 2 and 3. Further, the spindle motor and the frictional heat of the spindle itself serve as adjacent heat sources. In this case, a heat quantity Q1 exchanged between Section 1 and the outside is given by expression (1) as follows:


Q1=Q21+Q31+QSM+QSP−Qair,  (1)

where Q21 and Q31 are heat quantities exchanged between Section 1 and Sections 2 and 3, respectively, and Qair is a heat quantity exchanged between Section 1 and the outside air. Further, QSM and QSP are heat quantities given from the spindle motor and the spindle as the heat sources to Section 1.

The heat quantities Q21 and Q31 can be obtained based on temperature differences between the sections and are given by expression (2) as follows:


Q21=k21·(T2−T1),


Q31=k31·(T3−T1)  (2)

T1, T2 and T3 of expression (2) are temperatures of Sections 1, 2 and 3, respectively. Further, k21 and k31 are coefficients of heat transfer between Sections 2 and 1 and between Sections 3 and 1, respectively, and are previously calculated by experiment or the like and loaded into a memory.

Furthermore, the heat quantity Qair can be obtained based on the difference between the temperature of Section 1 and the outside air temperature and is given by expression (3) as follows:


Qair=f1·(Tair−T1).  (3)

Here f1 of expression (3) is a function indicative of the state of heat dissipation to the outside air and is previously obtained in the form of a function or a table for each section by experiment or the like and loaded into the memory or the like.

For the heat quantities QSM and QSP, moreover, relation between parameters such as the temperature of the winding of the spindle motor and number of revolutions of the spindle and the given heat quantities QSM and QSP are previously obtained in the form of a table by experiment or the like and loaded into the memory or the like.

A temperature change ΔT1 in Section 1 due to the heat exchange can be obtained by dividing the heat quantity Q1 by a heat capacity q1 for Section 1 according to expression (4) as follows:


ΔT1=Q1/q1.  (4)

Thus, a temperature T1 of Section 1 can be obtained by calculating the temperature change ΔT1 in Section 1 for each predetermined period and adding the change ΔT1 to the temperature T1 of Section 1 according to expression (5) as follows:


T1←T1+ΔT1.  (5)

While the above expression is a calculation formula for the estimation of the temperature of Section 1 in the two-dimensional model of FIG. 2, temperatures Ti of the individual sections can be estimated by creating similar calculation formulas for the other sections in consideration of the adjacent state of the sections in the two-dimensional model. The expansion and contraction of the sections are estimated based on the temperatures Ti estimated in this manner, whereby the elongation and inclination of the spindle are calculated. The expansion and contraction of each section due to the temperature change can be estimated by, for example, previously measuring the amount of change of each of the sections due to the temperature change by experiment or the like and storing the change amounts in a table or the like or by calculation based on conventional thermal expansion simulation. The thermal displacement amounts and temperature distributions can be simultaneously estimated by using this method.

The method of division into the sections of FIG. 2 is given by way of example only and the estimation of the thermal displacement state of the spindle of the present invention is not limited to the aforementioned method.

Instead of estimating the thermal displacement state, moreover, measured values of the thermal displacement amounts and thermal displacement distributions may be obtained by means of a position sensor or measured values of temperature distributions may be obtained by means of a temperature sensor. Alternatively, these two methods may be combined so that a measured value of the thermal displacement state of a part is obtained and the thermal displacement state of the remaining part is estimated from the obtained value.

<1.2. Calculation of Feed Screw Thermal Displacement State>

As an example of a method for calculating the thermal displacement state of the feed screws by the controller of the present invention, there is a method in which the thermal displacement state of the feed screws is estimated from the drive state of the machine tool. As shown in FIG. 4, for example, the entire stroke of a feed screw 90 is considered to be a one-dimensional model and divided into a plurality of sections (1 to X). The temperatures of the individual sections are calculated according to calculation formulas that represent heat delivery. Since heat conduction occurs between each two adjacent sections, e.g., between Sections I and (I−1) or between Sections I and (I+1), it is calculated for each predetermined period.

Frictional heat between the feed screw 90 and a ball nut 91 due to axial movement is assumed to be a heat source, and heat from the heat source applied to the adjacent sections is calculated. Since each section radiates heat into the atmosphere, moreover, heat removed from each section is also calculated. The temperature distribution of each section is estimated by combining these calculations.

FIG. 5 is a schematic diagram showing the transfer of a heat quantity Q in Section 1. Section 1 is in contact with the outside air, as well as with Sections (I−1) and (I+1). Further, the heat of friction with the ball nut serves as an adjacent heat source. In this case, a heat quantity QI exchanged between Section I and the outside is given by expression (6) as follows:


QI=QI−1+QI+1+QBN−Qair,  (6)

where QI−1 and QI+1 are heat quantities exchanged between Section I and Sections (I−1) and (I+1), respectively, and Qair is a heat quantity exchanged between Section I and the outside air. Further, QBN is a heat quantity given from the heat of friction with the ball nut to Section I. The heat quantities QI−1 and QI+1 can be obtained based on the temperature differences between the sections and are given by expression (7) as follows:


QI−1=kI·(TI−1−TI),


QI+1=kI·(TI+1−TI).  (7)

TI, TI−1 and TI+1 of expression (7) are temperatures of Sections I, (I−1) and (I+1), respectively. Further, kI is a coefficient of heat transfer between Section I and Sections (I−1) and (I+1) and is previously calculated by experiment or the like and loaded into a memory. Furthermore, the heat quantity Qair can be obtained based on the difference between the temperature of Section I and the outside air temperature and is given by expression (8) as follows:


Qair=gI·(Tair−TI).  (8)

Here gI of expression (8) is a function indicative of the state of heat dissipation to the outside air and is previously obtained in the form of a function or a table for each section by experiment or the like and loaded into the memory or the like. For the heat quantity QBN, moreover, the relationship between the moving speed of the ball nut 91 and the heat quantity QBN is previously obtained in the form of a table by experiment or the like and loaded into the memory or the like.

A temperature change ΔT1 in Section I due to the heat exchange expressed by expression (6) can be obtained by dividing the heat quantity QI by a heat capacity qI for Section I according to expression (9) as follows:


ΔTI=QI/qI.  (9)

Thus, a temperature T1 of Section I can be obtained by calculating the temperature change ΔT1 in Section I for each predetermined period and adding the change ΔT1 to the temperature T1 of Section I according to expression (10) as follows:


TI←TI+ΔT1.  (10)

If the ball nut 91 is not in contact with Section I in a period to be calculated, the heat quantity QBN as a term of expression (6) is treated as zero.

The expansion and contraction of each section are estimated based on the temperature TI estimated in this manner, whereby the elongation of the feed screws is calculated. A thermal displacement amount δnI for each section (Section 0 to Section X) is estimated from the estimated temperature TI according to expression (11) as follows:


δnII·WI·(TI−T0).  (11)

In expression (11), T0, WI and αI are an initial temperature, length of Section I, and linear expansion coefficient, respectively. Further, a thermal displacement distribution LnI in each position of the feed screw is estimated according to expression (12) as follows:


LnIn0n1+ . . . +δnI.  (12)

The thermal displacement amounts and thermal displacement distributions can be simultaneously estimated by this method. In the present invention, the estimation of the thermal displacement state of the feed screw is not limited to the aforementioned method and can alternatively be achieved by a conventional method disclosed in, for example, Japanese Patent Application Laid-Open No. 2002-018677.

Instead of estimating the thermal displacement state, moreover, measured values of the thermal displacement amounts and thermal displacement distributions may be obtained by means of a position sensor or measured values of temperature distributions may be obtained by means of a temperature sensor. Alternatively, these two methods may be combined so that a measured value of the thermal displacement state of a part is obtained and the thermal displacement state of the remaining part is estimated from the obtained value.

<2. Entire Flow of Warm-Up Operation>

The following is a description of the entire flow of warm-up operation performed by the numerical controller 10 of FIG. 1.

FIGS. 6A and 6B are flowcharts showing steps of processing of the warm-up operation. The flow of this warm-up operation comprises a process for previously performing regular operation and recording necessary data (FIG. 6A) and a process for actually performing efficient warm-up operation based on the recorded data (FIG. 6B).

In the process shown in the flowchart of FIG. 6A, the machine tool is operated to a point in time when the thermal displacement is saturated and the thermal displacement state based on the saturated thermal displacement is recorded on a memory or the like. This process need not always be performed every day before the start of the operation and should only be first performed once unless the machining programs or machining intervals are changed.

[Step SA01] The same operation as actual workpiece machining operation is performed until the thermal displacement of the machine tool is saturated. Whether or not the thermal displacement of the machine tool is saturated should only be determined by measuring the displacements of each feed screw and the spindle for each predetermined period during the same operation as the actual workpiece machining operation. In this case, it can be determined that the thermal displacement is saturated when the displacement is stabilized.

[Step SA02] The thermal displacement state of each feed screw and the spindle is calculated based on the drive state of the machine tool when the thermal displacement of the machine tool is saturated. In the present embodiment, the thermal displacement state is calculated by, for example, the method described in “<1. Calculation of Thermal Displacement State>”.

[Step SA03] The thermal displacement state calculated in Step SA02 is stored in the memory and warm-up operation patterns for each feed screw and the spindle is determined. A method for determining the warm-up operation pattern will be described later.

In the process shown in the flowchart of FIG. 6B, warm-up control is performed according to the determined warm-up operation pattern, based on the thermal displacement state stored in the memory in Step SA03 in the flowchart of FIG. 6A. This process is performed before the start of daily operation.

[Step SB01] The warm-up control is repeated according to the warm-up operation pattern determined in the processing of Step SA03 in the flowchart of FIG. 6A.

[Step SB02] The current thermal displacement state of each feed screw and the spindle calculated during the warm-up operation is compared with the thermal displacement state of each feed screw and the spindle at the point in time when the thermal displacement is saturated, which is stored in Step SA03. If the comparison indicates that the difference between the current thermal displacement state and the thermal displacement state at the point in time when the thermal displacement of the machine tool is saturated is larger than a predetermined threshold value, the processing proceeds to Step SB01. If the difference is not larger than the predetermined threshold value, in contrast, the processing proceeds to Step SB03.

[Step SB03] The warm-up operation ends.

<3. Method for Determining Warm-Up Operation Pattern>

The following is a description of a method for determining a warm-up operation pattern performed by the numerical controller 10 of FIG. 1.

In this determination of the warm-up operation pattern, a warm-up program is used in place of the machining programs that are used for the actual workpiece machining operation. The warm-up operation pattern for each feed screw and the spindle is described in the warm-up program, and each feed screw and the spindle can be individually activated and stopped by changing the parameters.

<3.1. Determination of Warm-Up Operation Pattern for Spindle>

In determining the warm-up operation pattern that reproduces a situation in which thermal displacement of a spindle is saturated, it is desirable to reproduce the temperature distribution of the entire spindle system, as well as the partial temperature of the spindle. This is because deformations of the spindle mount and the column vary depending on the temperature distribution of the spindle system and the thermal displacement amount due to the inclination of the spindle changes.

In general, the spindle warms more easily at high rotation than at lower. If the spindle is continuously rotated, the spindle motor and the spindle are gradually increased in temperature, providing a gentle temperature distribution such that the temperature is high in the sections near the spindle and lower in the sections distant from the spindle. If the spindle is intermittently rotated, that is, repeatedly rotated and stopped, the spindle motor easily gets warm, in particular. If the spindle motor suddenly warms, the temperatures of the adjacent sections drastically increase, so that a sharp temperature distribution is provided. The warm-up operation pattern is determined so that these gentle and sharp temperature distributions can be reproduced by the warm-up operation.

The warm-up operation pattern according to the present embodiment is based on a spindle rotating speed RS and a frequency f as parameters. The spindle repeats rotation and stop at the frequency f and is commanded with the spindle rotating speed RS when it is rotated. Such a program as shown in FIG. 7 is used, for example. The frequency f is assumed to be the number of times of acceleration and deceleration within one minute.

The warm-up operation pattern is determined based on the processing as shown in the flowchart of FIG. 8. Description is given below in line with the steps of the flowchart.

Before performing this processing, the relationship of a total value TSUM of temperatures and an average value TDIF of temperature differences and the spindle rotating speed RS and the spindle frequency f is previously measured by experiment or the like. A table in which these values are associated with one another is previously stored as a database in a memory such as the SRAM 14 of the numerical controller. Based on this table, the spindle rotating speed RS and the spindle frequency f are obtained in Steps SC03 and SC04. In the experiment, the total value TSUM of the temperatures and the average value TDIF of the temperature differences are recorded at the point in time when the thermal displacement is saturated with the spindle being intermittently rotated at the spindle rotating speed RS and the spindle frequency f, for example.

[Step SC01] The total value TSUM of the temperatures of all the sections of the spindle system at the time of saturation of the thermal displacement is calculated. If TI is the temperature of Section I, the total value TSUM of the temperatures, in the two-dimensional model of FIG. 2, is given by expression (13) as follows:


TSUM=T1+T2+ . . . +T9.  (13)

[Step SC02] The average value TDIF of the temperature differences between the adjacent sections of the spindle system at the time of saturation of the thermal displacement is calculated. In the two-dimensional model of FIG. 2, the average value TDIF of the temperature differences is given by expression (14) as follows:


TDIF=(|T1−T2|+|T1−T3|+ . . . +|T8−T9|)/13.  (14)

[Step SC03] Based on data on the spindle rotating speed and the total value TSUM of the temperatures, the spindle rotating speed RS corresponding to the total value TSUM of the temperatures is determined. If the total value TSUM of the temperatures is large, the determined spindle rotating speed RS is high. If the total value TSUM of the temperatures is small, the determined spindle rotating speed RS is low.

[Step SC04] Based on data on the spindle rotating speed and the average value TDIF of the temperature differences, for the spindle rotating speed RS determined in Step SC03, the spindle frequency f corresponding to the average value TDIF of the temperature differences is determined. If the average value TDIF of the temperature differences is large, the determined frequency f is short. If the average value TDIF of the temperature differences is small, the determined frequency f is long. [Step SC05] The warm-up operation pattern for the spindle is determined from the spindle rotating speed RS and the spindle frequency f, and the warm-up program based on the determined warm-up operation pattern is created.

<3.2. Determination of Warm-Up Operation Pattern for Feed Screw>

In determining the warm-up operation pattern that reproduces situation in which thermal displacement is saturated, it is desirable to reproduce a range in which heat is produced by the actual workpiece machining operation, as well as to equalize the thermal displacement amount of the entire feed screw. This is because the feed screw is not uniformly heated, in general, and its parts exposed to the movement of the ball nut are locally heated, so that the thermal displacement is large in some parts and small in others.

In general, the feed screw warms more easily when it is rotated at a high speed that produces higher friction than at a lower speed. That part of the feed screw in contact with the ball nut generates heat, which propagates to the ends of the feed screw with time. The warm-up operation pattern is determined by the warm-up operation so that the thermal displacement distributions can be reproduced.

In the warm-up operation pattern performed by the numerical controller 10 of FIG. 1, turning points R1 and R2 and a feed rate FB are used as parameters. The table of the machine tool is reciprocated between the turning points R1 and R2. Such a program as shown in FIG. 9 is used, for example. Here FBX represents an X-axis feed rate. RX1 and Rx2 represent turning points. FBY represents a Y-axis feed rate. RY1 and RY2 represent turning points. FBZ represents a Z-axis feed rate. And RZ1 and RZ2 represent turning points.

The warm-up operation pattern is determined with reference to the flowchart of FIG. 10. Description is given below in line with the steps of the flowchart.

Before performing this processing, the relationship between the feed rate and a total value LnX of thermal displacement amounts described in Step SD01 is previously measured by experiment or the like. A table in which these values are associated with one another is previously loaded as a database into a memory such as the SRAM 14 of the numerical controller. Based on this table, the feed rate FB is obtained from the total value LnX of the thermal displacement amounts in Step SD03 described later. The total value LnX of the thermal displacement amounts is recorded at the point in time when the thermal displacement is saturated as the table of the machine tool is reciprocated at the feed rate FB, for example. Further, an offset amount α, which is determined depending on the thermal conductivity characteristics of the feed screw, is also determined in advance.

[Step SD01] The total value LnX of the thermal displacement amounts is calculated according to expression (15) as follows:


LnXn0n1+ . . . +δnI+ . . . +δnX.  (15)

[Step SD02] The turning points R1 and R2 are calculated. Processing for the calculation of the turning points R1 and R2 will be described with reference to FIG. 11. First, the thermal displacement amounts δnI for the adjacent sections of the feed screw are connected and graphically represented, as shown in graph A of FIG. 11. The range of intersection of this graph and the X-axis (abscissa representing the sections) represents a range in which the feed screw generates heat. Then, as shown in graph B of FIG. 11, graph A is offset in such a direction that the displacement amount is reduced by the preset offset amount a. Further, the points of intersection of graph B and the X-axis or the ends of the feed screw are calculated as the turning points R1 and R2. On account of heat conduction, the feed screw causes thermal displacement in a range wider than the range of movement of the ball nut. Therefore, the turning points R1 and R2 are assumed to correspond to a range made narrower than graph A by the offset amount α. Depending on the machining programs, there may be two or more turning points. In such a case, a thermal displacement distribution is represented by creating such a warm-up operation pattern that the range of reciprocation is periodically changed.

[Step SD03] The feed rate FB corresponding to the total value LnX of the thermal displacement amounts is determined based on data on the feed rate and the total value LnX of the thermal displacement amounts. If the total value LnX of the thermal displacement amounts is large, the determined feed rate FB is high. If the total value LnX of the thermal displacement amounts is small, the determined feed rate FB is low.

[Step SD04] The warm-up operation pattern for the feed screw is determined from the turning points R1 and R2 and the feed rate FBI and the warm-up program based on the determined warm-up operation pattern is created.

In order to reduce the influence of ambient temperature change and the like, the warm-up operation pattern may be switched in real time based on the result of calculation of the temperature and thermal displacement amount during the warm-up operation.

<4. Determination of Termination of Warm-Up Operation>

The following is a description of means for determining termination of warm-up operation.

<4.1. Determination of Termination of Warm-Up Operation of Spindle>

The warm-up operation is performed as the thermal displacement state of the spindle is calculated for each predetermined period. The temperatures of the individual sections calculated in Step SA02 are compared with the current temperature. If the differences for all the sections are not larger than a predetermined threshold value, the warm-up of the spindle is stopped by changing the parameters.

<4.2. Determination of Termination of Warm-Up Operation of Feed Screw>

The warm-up operation is performed as the thermal displacement state of each feed screw is calculated for each predetermined period. The thermal displacement amounts calculated in Step SA02 are compared with the current thermal displacement amounts δnI for all Sections 0 to X. If the comparison indicates the difference for any of the sections is not larger than a predetermined threshold value, the warm-up operation of the feed screw concerned is stopped by changing the parameters.

Claims

1. A controller for a machine tool, which drives a motor based on a machining program, thereby driving a spindle and a feed screw, the controller comprising:

a storage unit that stores therein, as a target thermal displacement state, a thermal displacement state in which thermal displacement of the machine tool is saturated when the machine tool is operated in advance based on the machining program;
a warm-up operation determination unit configured to determine a warm-up operation pattern of the motor so as to approach the target thermal displacement state;
a thermal displacement state calculation unit configured to calculate the thermal displacement state of the machine tool;
a motor drive unit configured to drive the motor according to the warm-up operation pattern determined by the warm-up operation determination unit; and
a motor stop unit configured to calculate the thermal displacement state of the machine tool for each predetermined period by means of the thermal displacement state calculation unit, compare the calculated thermal displacement state with the target thermal displacement state, and stop the motor drive unit if the difference between the calculated thermal displacement state and the target thermal displacement state is within a predetermined threshold value.

2. The controller for a machine tool according to claim 1, wherein the thermal displacement state calculation unit comprises a temperature distribution estimation unit configured to grasp a spindle portion as a model divided into a plurality of sections and estimate the respective temperatures of the individual sections, and a spindle thermal displacement amount estimation unit configured to estimate a thermal displacement amount by the temperature distribution estimation unit, and wherein

the warm-up operation determination unit determines the warm-up operation pattern for driving the spindle based on the estimated values of the temperature distribution estimation unit, and
the motor stop unit is configured to stop the motor drive unit if the difference between the temperature calculated by the temperature distribution estimation unit and a temperature in the target thermal displacement state is within a predetermined threshold value.

3. The controller for a machine tool according to claim 1, wherein the thermal displacement state calculation unit comprises a heating portion estimation unit configured to estimate thermal displacement amounts for a plurality of sections obtained by dividing the feed screw, and a feed screw thermal displacement amount estimation unit configured to estimate a thermal displacement amount for the entire feed screw by adding up the estimated thermal displacement amounts, and wherein

the warm-up operation determination unit determines the warm-up operation pattern for driving the feed screw based on the estimated values of the heating portion estimation unit, and
the motor stop unit is configured to stop the motor drive unit if the difference between the thermal displacement amount for the feed screw calculated by the feed screw thermal displacement amount estimation unit and a feed screw thermal displacement amount in the target thermal displacement state is within a predetermined threshold value.

4. The controller for a machine tool according to claim 1, wherein the controller calculates the thermal displacement amount by means of the thermal displacement state calculation unit even after the motor drive unit is stopped and resumes the drive of the motor by the motor drive unit if the calculated thermal displacement state does not agree with the target thermal displacement state.

Patent History
Publication number: 20160001410
Type: Application
Filed: Jun 30, 2015
Publication Date: Jan 7, 2016
Patent Grant number: 9956660
Inventor: Yasuaki KOYAMA (Yamanashi)
Application Number: 14/755,907
Classifications
International Classification: B23Q 11/14 (20060101); G05B 19/404 (20060101); B23Q 15/18 (20060101); B23Q 11/00 (20060101); B23Q 15/12 (20060101);