Numerical control device, machine tool, method for controlling power consumption of machine tool, program, and computer-readable storage medium

JPWO2024095409A5Active Publication Date: 2024-09-26YAMAZAKI MAZAK KK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023532232
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-11-02
Filing Date
2022-11-02
Publication Date
2024-09-26
Estimated Expiration
2042-11-02

AI Technical Summary

Technical Problem

Existing technologies for reducing machine tool power consumption lack the ability to finely set power consumption for each device and select equipment to be turned off, leading to inefficient power management.

Method used

A method and system that displays power consumption of each device in the machine tool, allows selection and input of target devices and drive parameters, and controls these devices based on those parameters to achieve specific power consumption levels.

Benefits of technology

Enables fine-tuned power consumption settings for each device, allowing for detailed reduction in power usage without affecting machining speed or efficiency.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

A method for controlling the power consumption of a machine tool includes displaying the power consumption consumed by each of at least one device provided on the machine tool while the machine tool is in operation as an initial power value, accepting input to select a target device from the at least one device whose power consumption is to be changed from the initial power value, accepting input of drive parameters for changing the power consumption of the target device, and controlling the target device based on the drive parameters.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to a numerical control device, a machine tool, a method for controlling power consumption of a machine tool, a program, and a computer-readable storage medium. [Background technology]

[0002] Known technologies for reducing the power consumption of machine tools include those disclosed in Patent Documents 1 and 2. Patent Document 1 discloses a technology for reducing power consumption by switching various devices on and off based on whether an operator is present in front of the machine tool or whether the machine tool is operating automatically. Patent Document 2 discloses a technology for reducing power consumption by turning off unnecessary power when the machine tool is suspended. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Japanese Patent Application Laid-Open No. 2016-048449 [Patent Document 2] Japanese Patent Application Laid-Open No. 2001-277071 Summary of the Invention [Problem to be solved by the invention]

[0004] The technology disclosed in Patent Document 1 cannot set power consumption for each device, and therefore has the problem of being unable to achieve fine-tuned reductions in power consumption. The technology disclosed in Patent Document 2 only allows for turning off unnecessary power that is not needed when the machine tool is stopped, but does not allow for selection of devices to be turned off, and therefore has the problem of being unable to achieve fine-tuned control such as reducing wasted power while the machine tool is running.

[0005] The purpose of the technology disclosed in this application is to provide a numerical control device, a machine tool, a method for controlling power consumption of a machine tool, a program, and a computer-readable storage medium that enable detailed setting of power consumption for each device and detailed reduction of power consumption. [Means for solving the problem]

[0006] A method for controlling power consumption of a machine tool according to a first aspect of the present disclosure includes displaying the power consumption consumed by each of at least one device provided on the machine tool while the machine tool is operating as an initial power value, accepting input to select a target device from the at least one device whose power consumption is to be changed from the initial power value, accepting input of driving parameters for changing the power consumption of the target device, and controlling the target device based on the driving parameters.

[0007] According to a second aspect of the present disclosure, the control method according to the first aspect further includes receiving an input for selecting a target program to be set from among a plurality of machining programs executable by the machine tool. The power consumption is the power consumed when each of at least one device executes the target program. Note that in the control method according to the second aspect, it is desirable to execute the target program.

[0008] According to a third aspect of the present disclosure, the control method according to the second aspect further includes receiving an input for selecting at least one machining process from among a plurality of machining processes included in the target program. Controlling the target device includes controlling the target device in the at least one machining process based on drive parameters. Note that the at least one machining process is preferably a machining process being executed when the target program is being executed, or all machining processes of the target program.

[0009] According to a fourth aspect of the present disclosure, the control method according to the second aspect further includes receiving a program application instruction to apply the drive parameters to the target program, and upon receiving the program application instruction, storing in memory an output of the target device corresponding to the drive parameters, or a correspondence between the drive parameters and the target device, in association with the target program.

[0010] According to a fifth aspect of the present disclosure, the control method according to the third aspect further includes receiving a program application instruction to apply the driving parameters to the target program, and upon receiving the program application instruction, storing in memory an output of the target device corresponding to the driving parameters, or a correspondence between the driving parameters and the target device, in association with at least one processing step of the target program.

[0011] According to a sixth aspect of the present disclosure, the control method according to the fourth or fifth aspect further includes controlling the target device so that, when the target program with which the correspondence is associated is launched, the power consumption reaches a target power value corresponding to the driving parameters.

[0012] According to a seventh aspect of the present disclosure, the control method according to any one of the first to sixth aspects further includes displaying a target power value of the power consumption corresponding to the drive parameter.

[0013] According to an eighth aspect of the present disclosure, the control method according to the seventh aspect further includes displaying an initial output value representing the output of the target device corresponding to the initial power value, and a target output value representing the output of the target device corresponding to the target power value.

[0014] According to a ninth aspect of the present disclosure, in a control method according to the seventh or eighth aspect, controlling a target device based on driving parameters includes receiving a control instruction to control the target device based on driving parameters, and, upon receiving the control instruction, controlling the target device based on the driving parameters.

[0015] According to a tenth aspect of the present disclosure, in the control method according to any one of the first to ninth aspects, receiving an input of a drive parameter includes receiving an input for selecting, from a plurality of candidate ratios, a ratio of a target output value to a reference value among values ​​representing the output of the target device. Note that the reference value is preferably the output of the target device when the target device operates at rated power consumption.

[0016] According to an eleventh aspect of the present disclosure, in the control method according to any one of the first to tenth aspects, the at least one device includes at least one of a first actuator configured to drive a pump that supplies coolant to a nozzle of the machine tool, a second actuator configured to drive a pump that supplies coolant stored in a coolant tank to a heat exchanger, a third actuator configured to drive a chip conveyor of the machine tool, and a fourth actuator configured to drive a fan for exhausting mist accumulated in the body of the machine tool.

[0017] According to a twelfth aspect of the present disclosure, in the control method according to the eleventh aspect, the value representing the output of the target equipment includes any one of the amount of coolant discharged per unit time calculated from the operating frequency or rotational speed of the first actuator, the amount of coolant supplied per unit time calculated from the operating frequency or rotational speed of the second actuator, the belt speed of the chip conveyor, the start-up time of the fourth actuator per unit time, or the operating frequency or rotational speed of the fourth actuator.

[0018] A numerical control device according to a thirteenth aspect of the present disclosure includes a means for executing the control method according to any one of the first to twelfth aspects. Preferably, the numerical control device includes the memory according to the fourth aspect and an electronic circuit such as a hardware processor configured to execute the control method according to any one of the first to twelfth aspects. Note that the device according to the thirteenth aspect may be a computer or a computer system rather than a numerical control device. A computer system refers to a collection of multiple computers that process at least a part of the means for executing the control method according to any one of the first to twelfth aspects.

[0019] A machine tool according to a fourteenth aspect of the present disclosure includes the numerical control device according to the thirteenth aspect, an input interface configured to receive an input for selecting a target device and an input for a drive parameter, a display configured to display an initial power value, and at least one device. Preferably, the input interface further receives an input for selecting a target program, an input for selecting at least one machining process, and an input for selecting a target output value ratio from a plurality of candidate ratios. Preferably, the display further displays the target power value, the initial output value, and the target output value.

[0020] A program according to a fifteenth aspect of the present disclosure includes instructions that, when executed by a hardware processor, cause the hardware processor to perform the processing of the control method according to any one of the first to twelfth aspects.

[0021] A computer-readable storage medium according to a sixteenth aspect of the present disclosure comprises instructions for causing a hardware processor to execute the processing of the control method according to any one of the first to twelfth aspects.

[0022] The control method according to the first aspect, the numerical control device according to the thirteenth aspect having means for executing the processing of the control method of the first aspect, the machine tool having the numerical control device, the program having instructions for causing a hardware processor to execute the processing of the control method of the first aspect, and the computer-readable storage medium having instructions for causing a hardware processor to execute the processing of the control method of the first aspect display the initial power value of each of at least one device, making it easy for an operator to consider devices requiring changes in power consumption. Also, by accepting input for selecting the target device and input for drive parameters related to the power consumption of the target device, it is possible to perform detailed power consumption reduction for each device.

[0023] In the control method according to the second aspect, the numerical control device according to the thirteenth aspect having means for executing the processing of the control method of the second aspect, the machine tool equipped with the numerical control device, the program having instructions for causing a hardware processor to execute the processing of the control method of the second aspect, and the computer-readable storage medium having instructions for causing a hardware processor to execute the processing of the control method of the second aspect, by accepting input to select the target program, it is possible to change the power consumption settings for each machining program, making it even possible to achieve more detailed power consumption reductions.

[0024] The control method according to the third aspect, the numerical control device according to the thirteenth aspect having means for executing the processing of the control method of the third aspect, the machine tool equipped with the numerical control device, the program having instructions for causing a hardware processor to execute the processing of the control method of the third aspect, and the computer-readable storage medium having instructions for causing a hardware processor to execute the processing of the control method of the third aspect allow power consumption to be set for specific machining steps of the machining program, making it even more possible to achieve fine-tuned power consumption reductions.

[0025] In the control method according to the fourth aspect, the numerical control device according to the thirteenth aspect having means for executing the processing of the control method of the fourth aspect, the machine tool having the numerical control device, the program having instructions for causing a hardware processor to execute the processing of the control method of the fourth aspect, and the computer-readable storage medium having instructions for causing a hardware processor to execute the processing of the control method of the fourth aspect, the target program can be rewritten to include the target equipment and its operating parameters, or the processor executing the target program can read out the target equipment and its operating parameters related to the target program.

[0026] In the control method according to the fifth aspect, the numerical control device according to the thirteenth aspect having means for executing the processing of the control method of the fifth aspect, the machine tool having the numerical control device, the program having instructions for causing a hardware processor to execute the processing of the control method of the fifth aspect, and the computer-readable storage medium having instructions for causing a hardware processor to execute the processing of the control method of the fifth aspect, it is possible to rewrite the location where the processing of at least one machining step of the target program is described to include the target equipment and its drive parameters, or the processor that executes the at least one machining step can read out the target equipment related to the at least one machining step and its drive parameters.

[0027] In the control method according to the sixth aspect, the numerical control device according to the thirteenth aspect having means for executing the processing of the control method of the sixth aspect, the machine tool equipped with the numerical control device, the program having instructions for causing a hardware processor to execute the processing of the control method of the sixth aspect, and the computer-readable storage medium having instructions for causing a hardware processor to execute the processing of the control method of the sixth aspect, when the setting of the fourth or fifth aspect is performed, when the target program is subsequently started, the target equipment is controlled to reach the target power value, thereby facilitating the setting of the power consumption of the target program.

[0028] The control method according to the seventh aspect, the numerical control device according to the thirteenth aspect having means for executing the processing of the control method of the seventh aspect, the machine tool equipped with the numerical control device, the program having instructions for causing a hardware processor to execute the processing of the control method of the seventh aspect, and the computer-readable storage medium having instructions for causing a hardware processor to execute the processing of the control method of the seventh aspect enable the decision of whether or not to control the target equipment based on the drive parameters to be made based on the control instructions, and the extent to which power consumption will be reduced is presented to the operator, making it easier to set the drive parameters.

[0029] The control method according to the eighth aspect, the numerical control device according to the thirteenth aspect having means for executing the processing of the control method of the eighth aspect, the machine tool equipped with the numerical control device, the program having instructions for causing a hardware processor to execute the processing of the control method of the eighth aspect, and the computer-readable storage medium having instructions for causing a hardware processor to execute the processing of the control method of the eighth aspect make it easier to set the drive parameters because the operator can set the drive parameters while observing the decrease in output of the target equipment due to a decrease in power consumption.

[0030] The control method according to the ninth aspect, the numerical control device according to the thirteenth aspect having means for executing the processing of the control method of the ninth aspect, the machine tool equipped with the numerical control device, the program having instructions for causing a hardware processor to execute the processing of the control method of the ninth aspect, and the computer-readable storage medium having instructions for causing a hardware processor to execute the processing of the control method of the ninth aspect improve operator convenience by allowing the operator to check the changed state of power consumption and control the target equipment.

[0031] The control method according to the tenth aspect, the numerical control device according to the thirteenth aspect having means for executing the processing of the control method of the tenth aspect, the machine tool equipped with the numerical control device, the program having instructions for causing a hardware processor to execute the processing of the control method of the tenth aspect, and the computer-readable storage medium having instructions for causing a hardware processor to execute the processing of the control method of the tenth aspect can display the effect of reducing power consumption in an easy-to-understand manner to the operator. Also, by narrowing down the proportion of multiple candidates to be input and accepting them, the setting information can be made easier for the operator to remember and can be easily applied to other machining, thereby improving convenience for the operator.

[0032] The control method according to the 11th aspect, the numerical control device according to the 13th aspect having means for executing the processing of the control method of the 11th aspect, the machine tool equipped with the numerical control device, the program having instructions for causing a hardware processor to execute the processing of the control method of the 11th aspect, and the computer-readable storage medium having instructions for causing a hardware processor to execute the processing of the control method of the 11th aspect control actuators that control equipment used incidentally during machining, thereby enabling the operator to selectively reduce power consumption without affecting the machining speed.

[0033] In the control method according to the 12th aspect, the numerical control device according to the 13th aspect having means for executing the processing of the control method of the 12th aspect, the machine tool equipped with the numerical control device, the program having instructions for causing a hardware processor to execute the processing of the control method of the 12th aspect, and the computer-readable storage medium having instructions for causing a hardware processor to execute the processing of the control method of the 12th aspect, the output is displayed using parameters that directly affect the environment in which the machining work is performed, unlike the direct output of the actuator, making it easier for the operator to estimate the impact of a decrease in output. [Effects of the Invention]

[0034] The technology disclosed in this application makes it easy for an operator to consider devices that require changes in power consumption by displaying the initial power value of at least one device. Also, by accepting input to select a target device and input of drive parameters related to the power consumption of the target device, it is possible to reduce power consumption in a detailed manner for each device. [Brief explanation of the drawings]

[0035] [Figure 1] FIG. 1 is a diagram showing a schematic configuration of a machine tool according to an embodiment. [Figure 2] FIG. 2 is a block diagram of a hardware configuration of the machine tool according to the embodiment. [Figure 3] FIG. 3 shows in table form the types and values ​​of data stored as device setting data. [Figure 4] FIG. 4 shows an example of a common unit of a machining program. [Figure 5] FIG. 5 shows an example of a machining unit of a machining program. [Figure 6] Figure 6 shows an example of the energy saving level settings for external devices that are set for each EIA / ISO format machining program. [Figure 7] Figure 7 is an example of an EIA / ISO format program in which an energy saving level is set for each processing step. [Figure 8] FIG. 8 is another example of an EIA / ISO format program in which an energy saving level is set for each processing step. [Figure 9] FIG. 9 is a flowchart showing the process flow of a method for executing an interactive machining program for a machine tool. [Figure 10] FIG. 10 is a flowchart showing the process flow of step S20 in FIG. [Figure 11] FIG. 11 is a flowchart showing the process flow of a method for executing an EIA / ISO format program for a machine tool. [Figure 12]FIG. 12 is a flowchart showing the process flow of step S40 in FIG. [Figure 13] FIG. 13 shows an example of a selection interface for a machining program. [Figure 14] FIG. 14 shows an example of the main screen of the device setting data change interface. [Figure 15] FIG. 15 shows an example of a setting change interface for the first pump device. [Figure 16] FIG. 16 shows an example of a setting change interface for the second pump device. [Figure 17] FIG. 17 shows an example of a setting change interface for the tip collector device. [Figure 18] FIG. 18 shows an example of a setting change interface for the mist collector device. [Figure 19] FIG. 19 shows another example of a setting change interface for the first pump device. [Figure 20] FIG. 20 shows another example of a setting change interface for a mist collector device. [Figure 21] FIG. 21 is a flowchart showing the flow of processing in a method for controlling power consumption of a machine tool. [Figure 22] FIG. 22 shows an example of a processing unit selection interface. [Figure 23] FIG. 23 shows another example of the main screen of the device setting data change interface. [Figure 24] FIG. 24 shows an example of a setting change interface for the first pump device. [Figure 25] FIG. 25 shows an example of a setting change interface for the second pump device. [Figure 26] FIG. 26 shows an example of a setting change interface for the tip collector device. [Figure 27] FIG. 27 shows an example of a setting change interface for the mist collector device. DETAILED DESCRIPTION OF THE INVENTION

[0036] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will now be described in detail with reference to the accompanying drawings showing embodiments thereof, in which the same reference numerals designate corresponding or substantially identical components. <Embodiment> <Configuration of machine tool 1> FIG. 1 is a block diagram showing the configuration of a machine tool system 100 including a machine tool 1 according to an embodiment of the present invention. The machine tool system 100 includes the machine tool 1 and a computer 99 connected to the machine tool 1 via a network NW. The computer 99 may be a general-purpose computer including electronic circuits such as a hardware processor and memory. The computer 99 is used to create machining programs used in the machine tool 1. The network NW may be a wired network such as an intranet or a wireless network such as a wireless LAN.

[0037] The machine tool 1 includes a numerical control device 2, a base 3, a table 4 on which a workpiece W is placed, a spindle unit 5 on which a tool T is attached, a housing 6, a power distribution panel 9, a coolant supply device 10, a chip collector device 20, and a mist collector device 30. The machine tool 1 includes a spindle movement device (not shown) that holds the spindle unit 5 and moves the spindle unit 5 in the X-, Y-, and Z-axis directions in FIG. 1. The machine tool 1 also includes a table movement device (not shown) that moves the table 4 in the X-, Y-, and Z-axis directions in FIG. 1. The numerical control device 2 controls the spindle movement device and the table movement device to rotate the tool T. The housing 6 covers a machining area defined by the movement ranges of the spindle movement device and the table movement device. For ease of explanation, in FIG. 1, the wall on the near side of the housing 6 (in the positive X-axis direction and negative Y-axis direction from the table 4 and spindle unit 5 in the figure) is shown with a dashed line, and the interior is shown with a solid line.

[0038] The numerical control device 2 includes an electronic circuit such as an electronic control unit, an information processing means such as a hardware processor 2P, and a storage means such as a memory 2M (see FIG. 2). The numerical control device 2 includes a control panel 2CP such as a touch panel display that allows an operator to input and output information. The touch panel of the control panel 2CP may be referred to as an input interface 2IF, and the display of the control panel 2CP may be referred to as a display 2DS. In addition to the touch panel, the numerical control device 2 may further include an input interface 2IF such as a button or a dial.

[0039] The power distribution panel 9 supplies electricity to the numerical control device 2, the coolant supply device 10, the chip collector device 20, and the mist collector device 30. The machine tool 1 uses a tool T attached to the tip of the spindle unit 5 to machine a workpiece W placed on a table 4. Here, the tool rotation axis A TW The axis along this line is defined as the Z axis, the axis perpendicular to the Z axis and along the upper surface of the base 3 is defined as the Y axis, and the axis perpendicular to the Y axis and the Z axis is defined as the X axis.

[0040] The coolant supply device 10 includes a coolant tank 11, multiple nozzles 12, multiple coolant supply paths 13, a first pump device 15, a second pump device 16, a heat exchanger 17, and a circulation circuit 18. To recover the coolant sprayed onto the workpiece W, the base 3 includes an outlet 3E connected to the coolant tank 11 located at the center of the base 3, and multiple raked floors 3F sloping downward toward the outlet 3E. The coolant tank 11 is configured to store the coolant. The multiple coolant supply paths 13 connect the multiple nozzles 12 to the coolant tank 11. The multiple nozzles 12 are attached to the machine tool 1 and configured to spray the coolant. The first pump device 15 is configured to pump the coolant from the coolant tank 11 and supply it to the multiple nozzles 12 through the multiple coolant supply paths 13. The coolant is sprayed from the multiple nozzles 12 and applied to the workpiece W being machined to remove chips.

[0041] The second pump device 16 and the heat exchanger 17 are connected to the coolant tank 11 via a circulation circuit 18 that is different from the multiple coolant supply paths 13. The second pump device 16 is configured to pump up the coolant from the coolant tank 11 and supply it to the heat exchanger 17 through the circulation circuit 18. The heat exchanger 17 removes the heat of the coolant using another refrigerant and discharges the heat to the outside of the machine tool 1.

[0042] The chip collector device 20 is a device that uses a chip conveyor to discharge chips from the workpiece W that have fallen into the discharge port 3E to the outside of the machine tool 1. The chip conveyor preferably has a bank (external wall) to prevent chips from falling outside the chip conveyor and a scraper for easy transportation. In FIG. 1, the chip collector device 20 is shown by a dotted line. The mist collector device 30 has a device main body 31 that has a fan device 33 and a filter 34 inside, and a duct 32 that is attached to the housing 6 and connects to the device main body 31. After rotating the fan, the mist-like coolant and oil inside the housing 6 are sucked out.

[0043] FIG. 2 is a block diagram of the hardware configuration of a machine tool 1 according to an embodiment. As shown in FIG. 2, the numerical control device 2 is a type of computer and includes a hardware processor 2P, a memory 2M, a display 2DS, an input interface 2IF, a system bus 2SB, an external I / O interface 2IO, and a communication interface 2CF. The system bus 2SB includes an address bus, a data bus, and a control bus, similar to a general computer. The external I / O interface 2IO is connected to external devices (e.g., a first pump device 15, a second pump device 16, a chip collector device 20, and a fan device 33). These external devices may also be referred to as at least one device. The communication interface 2CF is connected to a network CW.

[0044] The memory 2M is installed with a machining program 41, a device control program 42, a device setting program 45, and device setting data 46 for machining the workpiece W. The memory 2M is configured to store the machining program 41, the device control program 42, the device setting program 45, and the device setting data 46. The device control program 42 includes an interpreter for the machining program 41 and is programmed to read the settings of the external device described in the machining program 41, read the control signal values ​​corresponding to the settings stored in the device setting data 46, and output a control signal corresponding to the external device. If the external device is not set in the machining program 41, the device control program 42 is programmed to read default setting values ​​from the device setting data 46, read the control signal values ​​corresponding to the default setting values, and output a control signal corresponding to the external device. The hardware processor 2P executes the machining program 41 and the device control program 42 to control the spindle unit 5. The hardware processor 2P executes at least the device control program 42 to control the external device. The device control program 42 has instructions to cause the hardware processor 2P to execute the execution process of the machining program 41 shown in Figures 9 to 11, which will be described later. The device setting program 45 is a program that rewrites the device setting data 46 or the settings of the machining program 41. The device setting program 45 has instructions to cause the hardware processor 2P to execute the process of the power consumption control method shown in Figure 21, which will be described later.

[0045] The first pump device 15 includes a first inverter 15I, a first motor 15M, and a first pump 15P. The first inverter 15I drives the first motor 15M in response to a drive signal from the numerical control device 2 transmitted via the external I / O interface 2IO. The first inverter 15I controls the rotation speed / operating frequency of the first motor 15M in response to the drive signal from the numerical control device 2. The first motor 15M rotates the swash plate of the first pump 15P. The first pump 15P is connected to a coolant tank 11. The first pump 15P is configured to discharge coolant from the coolant tank 11 and supply the coolant to the multiple nozzles 12. In the following embodiments, the first motor 15M may be referred to as a first actuator. That is, the first actuator (first motor 15M) is configured to drive a pump (first pump 15P) that supplies coolant to the nozzles 12 of the machine tool 1. The power distribution panel 9 includes a power source PS that supplies electricity to the first inverter 15I. The power supply PS is preferably an AC power supply.

[0046] The second pump device 16 includes a second inverter 16I, a second motor 16M, and a second pump 16P. The second inverter 16I drives the second motor 16M in response to a drive signal from the numerical control device 2 transmitted via the external I / O interface 2IO. The second inverter 16I controls the rotation speed / operating frequency of the second motor 16M in response to the drive signal from the numerical control device 2. The second motor 16M rotates the swash plate of the second pump 16P. The second pump 16P is connected to the coolant tank 11. The second pump 16P is configured to discharge coolant from the coolant tank 11 and supply the coolant to the heat exchanger 17. In the following embodiments, the second motor 16M may be referred to as a second actuator. That is, the second actuator (second motor 16M) is configured to drive a pump (second pump 16P) that supplies the coolant stored in the coolant tank 11 to the heat exchanger 17. The power supply PS of the switchboard 9 also supplies electricity to the second inverter 16I.

[0047] The chip collector device 20 includes a third inverter 20I and a third motor 20M. The third inverter 20I drives the third motor 20M in response to a drive signal from the numerical control device 2 transmitted via the external I / O interface 2IO. The third inverter 20I controls the rotation speed / operating frequency of the third motor 20M in response to the drive signal from the numerical control device 2. The third motor 20M is configured to drive a belt conveyor via a reducer or the like (not shown). In the following embodiments, the third motor 20M may be referred to as a third actuator. In other words, the third actuator (third motor 20M) is configured to drive the chip conveyor of the machine tool 1. The power supply PS of the distribution board 9 also supplies electricity to the third inverter 20I.

[0048] The fan device 33 of the mist collector device 30 includes a fourth inverter 33I and a fourth motor 33M. The fourth inverter 33I drives the fourth motor 33M in response to a drive signal from the numerical control device 2 transmitted via the external I / O interface 2IO. The fourth inverter 33I controls the rotation speed / operating frequency of the fourth motor 33M in response to the drive signal from the numerical control device 2. The fourth motor 33M is configured to drive a belt conveyor via a reducer or the like (not shown). In the following embodiments, the fourth motor 33M may be referred to as a fourth actuator. In other words, the fourth actuator (fourth motor 33M) is configured to drive a fan (fan device 33) for discharging mist accumulated in the body of the machine tool 1. The power source PS of the switchboard 9 also supplies electricity to the fourth inverter 33I.

[0049] The computer 99 is used to generate, for example, a machining program 41. The computer 99 includes a hardware processor 99P, a memory 99M, a display 99DS, an input interface 99IF, a system bus 99SB, and a communication interface 99CF, which have substantially the same functions as the hardware processor 2P, the memory 2M, the display 2DS, the input interface 2IF, the system bus 2SB, and the communication interface 2CF. A machining program 41, a device setting program 45, and device setting data 46 are installed in the memory 99M of the computer 99, and the memory 99M is configured to store the machining program 41, the device control program 42, and the device setting data 46. When the device control program 42 is executed by the computer 99, it performs device settings for the machining program 41 stored in the memory 99M, and the results are stored in the device setting data 46 in the memory 99M. The machining program 41 generated by the computer 99 and the device setting data 46 set by the computer 99 are sent to the numerical control device 2 via the communication interface 99CF, the network NW, and the communication interface 2CF.

[0050] Next, the device setting data 46, which is read by the device control program 42 and written and read by the device setting program 45, will be described. The device setting data 46 includes multiple energy-saving levels (energy-saving levels) for the external devices (e.g., the first pump device 15, the second pump device 16, the chip collector device 20, and the fan device 33), the output and power consumption of the external devices at each level, and control signal values ​​for the external devices. These energy-saving levels may be referred to as drive parameters. The device setting data 46 also includes default energy-saving level settings for each external device. FIG. 3 shows the types and values ​​of data stored as the device setting data 46 in a table format. Note that the table format is used for convenience of explanation; any data format is acceptable as long as the values ​​of each data are identifiable and stored in a computer-readable format. Examples of data formats include a CSV file, an XML file, and a database. Furthermore, the device setting data 46 does not need to include data indicating the type of data as long as the values ​​of each data are stored at predetermined addresses.

[0051] 3, Table T1 shows multiple energy saving levels of the first pump device 15, the amount of coolant discharged per unit time calculated from the operating frequency or rotational speed of the first motor 15M (first actuator) corresponding to those levels, the power consumption consumed by the first inverter 15I when driving the first motor 15M at those operating frequencies or rotational speeds, and the value of a control signal (control current value) output from the external I / O interface 2IO to drive the first motor 15M at those operating frequencies or rotational speeds. Table T2 shows multiple energy saving levels of the second pump device 16, the amount of coolant supplied per unit time to the heat exchanger 17 calculated from the operating frequency or rotational speed of the second motor 16M (second actuator) corresponding to those levels, the power consumption consumed by the second inverter 16I when driving the second motor 16M at those operating frequencies or rotational speeds, and the value of a control signal (control current value) output from the external I / O interface 2IO to drive the second motor 16M at those operating frequencies or rotational speeds. In the following embodiments, the amount of coolant supplied to the heat exchanger 17 per unit time is referred to as the circulation speed.

[0052] Table T3 shows multiple energy saving levels of the chip collector device 20, the belt speed of the chip conveyor calculated from the operating frequency or rotation speed of the third motor 20M (third actuator) corresponding to those levels, the power consumption consumed by the first inverter 15I when driving the third motor 20M at that operating frequency or that rotation speed, and the value of the control signal (control current value) output from the external I / O interface 2IO to drive the first motor 15M at that operating frequency or that rotation speed. Table T4 shows multiple energy saving levels of the fan device 33, the operating frequency or rotation speed of the fourth motor 33M (fourth actuator) corresponding to those levels, or the operation rate calculated from the ratio of start-up time to unit time, the power consumption consumed by the fourth inverter 33I when driving the fourth motor 33M at that operation rate, and the value of the control signal (control current value) output from the external I / O interface 2IO to drive the fourth motor 33M at that operation rate. In the following embodiments, the discharge amount, circulation speed, belt speed, and operation rate may be collectively referred to as the output of the external device.

[0053] Level 1 is the energy-saving level when the external device generates an output that is empirically known to be sufficient for all of the wide variety of machining operations performed by machine tool 1. Most Level 1 levels are set when the actuator operates at its rated power consumption. As the level value increases, the output of the external device decreases. The number of levels from Level 2 onward is determined based on whether the difference in output of each external device at each level is easily noticeable to the operator. For example, the amount of chip discharged by the in-machine coolant varies depending on the machining load, such as roughing or finishing, and also varies depending on the tool used, such as a drill or milling mill. Therefore, three levels are provided to allow adjustment according to the amount of discharged chips. However, the operation of mist collector 30 significantly affects the operator's visibility inside the machine, so five levels are provided.

[0054] The output and power consumption of the external device are expressed as percentages, with 100 being the maximum. Here, the values ​​listed in the table for power consumption at each level are values ​​indicating the ratio of power consumption at each level to the rated power consumption when the rated power consumption of each actuator is taken as 100%, as a percentage. The value listed for the output of the external device at level 1 is an output that has been empirically proven to be capable of handling any of the wide variety of machining operations performed by the machine tool 1, and is a value indicating the ratio of the output of the external device when the external device is driven at that power consumption, when the output of the external device when each actuator is driven at the rated power consumption is taken as 100%. According to Table T2, it is empirically proven that even if the power consumption of the second motor 16M (second actuator) is 40% of the rated power consumption, it is capable of handling any of the wide variety of machining operations performed by the machine tool 1, so 40% of the rated power consumption is set as level 1.

[0055] The control signal values ​​written in each level are examples of control signals that are assumed when the first to fourth inverters 15I to 33I operate at rated power consumption when a control signal of 20 mA is output to the first to fourth inverters 15I to 33I, and the power consumption of the first to fourth inverters 15I to 33I changes proportionally to the value of the control signal. In reality, values ​​according to the characteristics of the first to fourth inverters 15I to 33I are stored.

[0056] Table T5 shows the default energy saving levels of the first pump device 15, the second pump device 16, the chip collector device 20, and the fan device 33. In this example, "in-machine coolant" refers to the first pump device 15, "coolant tank" refers to the second pump device 16, "chip collector" refers to the chip collector device 20, and "mist collector" refers to the fan device 33 inside the mist collector device 30. The default energy saving level refers to the energy saving level set for any of the first pump device 15, the second pump device 16, the chip collector device 20, and the fan device 33 when the energy saving level for that device is not set in the machining program 41. When the energy saving level for any of the first pump device 15, the second pump device 16, the chip collector device 20, and the fan device 33 is set in the machining program 41, the energy saving level set in the machining program 41 takes precedence. The above-mentioned devices are just examples, and devices that can set energy saving levels may be a pump device that uses coolant to clean a filter in a conveyor with a high filtering accuracy installed in the chip collector device 20 to prevent the filter from clogging, or a pump device that agitates chips and creates a flow by sucking up coolant that has accumulated in a coolant tank and discharging it back into the coolant tank to send it to a filter that filters chips that have settled in the coolant tank.

[0057] Next, the contents of the machining program 41 will be described. In this embodiment, the formats of the machining program 41 that can be processed by the device control program 42 and the device setting program 45 are both an interactive program format and an EIA / ISO (Electronic Industries Alliance / International Organization for Standardization) program format. In the interactive machining program 41, at least the following contents are defined: (1) Common unit: Material and shape of workpiece W before machining (2) Basic coordinate unit: How to set the work coordinate system and machine coordinate system (3) Processing unit: The processing method and processing shape of each part in the final processed shape Each of the common unit, basic coordinate unit, and processing unit has a unit number.

[0058] 4, the common unit further includes arrangement data AD indicating the settings of the chuck, jaws, etc. that grip the workpiece W, in addition to data indicating the material and shape of the workpiece W, and energy saving setting data ECO that is used when setting an energy saving level for any of the first pump device 15, the second pump device 16, the chip collector device 20, and the fan device 33 during the entire processing of the machining program 41. The energy saving setting data ECO is set to the same content as in table T5 of the device setting data 46. Note that an external device at level 0 indicates that no energy saving level is set in the common unit.

[0059] As shown in Figure 5, a machining unit includes a unit number UNo., common setting data CS shared by all machining units, information identifying the machining content (unit name), a tool sequence TS that sets the tool Ta and its cutting conditions, and a shape sequence SS that defines the machining shape to be machined within the machining unit. The tool sequence TS refers to a series of machining stages required to form the machining shape of a part defined by the machining unit (e.g., one bar stock, one screw hole). The shape sequence SS refers to a set of segments defined by the start point, end point, and connection relationship (straight line, arc, etc.) between the start point and end point of the tool cutting edge in the workpiece coordinate system to determine the machining shape.

[0060] The example in Figure 5 shows an example in which a machining unit has one tool sequence TS and one shape sequence SS. However, a machining unit may also have two tool sequences: one for rough machining and one for finish machining. To accommodate complex machining shapes, a machining unit may have multiple shape sequences. When a machining unit has multiple tool sequences and multiple shape sequences, the machining unit is first executed by moving the tool in the order of the tool sequences so that the shapes shown in all shape sequences can be generated for each tool sequence. Each tool sequence is distinguished by a sequence number SNo. Each shape sequence is distinguished by the number listed in the FIG item. In this embodiment, the entire process applied to a machining unit is called a machining process.

[0061] The common setting data CS of the machining unit further includes energy saving setting data ECO, which is used when setting an energy saving level for any of the first pump device 15, the second pump device 16, the chip collector device 20, and the fan device 33 throughout the entire processing of the machining unit. The energy saving setting data ECO is set to the same content as table T5 of the equipment setting data 46, except for the setting of the second pump device 16 ("coolant tank"). Since settings for the second pump device 16 are not provided for each machining unit, the second pump device 16 is controlled in a single method for the entire machining program 41. Note that the external device ("chip collector") set to level 0 in FIG. 5 indicates that no energy saving level is set in the machining unit.

[0062] If the energy saving level set in the processing unit is not level 0, when the processing unit is being executed, the external device is controlled according to the energy saving level set in the processing unit, taking priority over the energy saving level set in the common unit and the default energy saving level set in the device setting data 46. However, if the energy saving level set in the processing unit is level 0, the energy saving level set in the common unit is referenced, and if that energy saving level is level 0, the default energy saving level set in the device setting data 46 is referenced according to that level. An external device for which an energy saving level higher than that of the processing unit is referenced is controlled according to the referenced energy saving level other than level 0. Note that the device setting data 46 restricts the energy saving level so that it cannot be set to level 0.

[0063] In the example of FIG. 5, when the common unit having the unit number UNo. 4 is running, the first pump device 15 and the fan device 33 are controlled so that their energy saving levels are level 2 and level 1, respectively. Since the energy saving levels of the second pump device 16 and the chip collecting device 20 are set to level 0, the energy saving setting data ECO of the common unit is referenced. In the example of FIG. 4, in the common unit, the energy saving level of the chip collecting device 20 is set to level 1, so when the common unit having the unit number UNo. 4 is running, the chip collecting device 20 is controlled so that its energy saving level is level 1. In the second pump device 16, the energy saving levels of the common unit and the processing unit are both set to level 0, so the energy saving level of the device setting data 46 of FIG. 3 is referenced. Since the device setting data 46 is set to level 1, the second pump device 16 is controlled so that its energy saving level is level 1.

[0064] The machining program 41 is not limited to the examples shown in FIGS. 4 and 5 and may be a program based on the EIA / ISO format (an EIA / ISO-format program). An EIA / ISO-format program is stored in a format different from that of the interactive machining program 41. Referring to FIG. 2, individual data 47 corresponding to the EIA / ISO-format machining program 41 is further installed in the memory 2M, and the memory 2M is configured to further store the individual data 47. The same applies to the memory 99M. The individual data 47 is uniquely set for each machining program 41 and is associated with the workpiece number WNo. used when the machining program 41 is called and executed by the machine tool 1. This association may be achieved by a well-known method, such as including the workpiece number WNo. in the file name or in the file header. Therefore, the same number of individual data 47 as the number of EIA / ISO-format machining programs 41 are provided. FIG. 6 shows an example of setting the energy-saving level of an external device using the individual data 47 set for each EIA / ISO-format program. Table T6 in FIG. 6 is an example showing the energy saving levels of the first pump device 15, the second pump device 16, the chip collector device 20, and the fan device 33.

[0065] FIG. 6 shows in table format the types and values ​​of data stored as individual data 47. The table format is used for convenience of explanation; any data format is acceptable as long as the values ​​of each data are identifiable and stored in a computer-readable format. Examples of data formats include a CSV file, an XML file, and a database. Furthermore, as long as the values ​​of each data are stored at predetermined addresses, the device setting data 46 does not need to include data indicating the data type. Table T6 contains the same content as table T5 of the device setting data 46. Note that FIG. 6 is merely an example, and settings corresponding to FIG. 6 may be set in G code at the beginning of an EIA / ISO format program (e.g., after the program number and variable definitions).

[0066] FIG. 7 is an example of an EIA / ISO format program in which an energy-saving level is set for each machining process. FIG. 8 is another example of an EIA / ISO format program in which an energy-saving level is set for each machining process. A machining process in an EIA / ISO format program is the period from when one tool is called by a T code until the next T code is called, or until the M30 code indicating the end of the program is called. In the EIA / ISO format programs of FIGS. 7 and 8, one machining process begins with the command "T01T02M06" after sequence number "N100" to change the tool to T01, and ends with the command "T02T03M06" after sequence number "N200" to change the tool to T02. For ease of explanation, this process will be referred to as process 1. Next, one machining process is from the command to change the tool to T02 by "T02T03M06" after sequence number "N200" to the command to change the tool to T03 by "T03T00M06" after sequence number "N300". For convenience of explanation, this process will be called process 2. Furthermore, one machining process is from the command to change the tool to T03 by "T03T00M06" after sequence number "N300" to the command to "M30" indicating the end of the program. For convenience of explanation, this process will be called process 3.

[0067] FIG. 7 shows an example in which different energy-saving levels are set for each machining process, while FIG. 8 shows an example in which the same energy-saving level is set across multiple machining processes. In FIGS. 7 and 8, the G500 code immediately below the M06 code represents a command to operate each external device at the energy-saving level for each external device specified by A* B* C* D* (where * represents a number) from the machining process specified by the T code immediately above the G500 code until the G501 code is called, or in the machining process until another G500 code is called. A indicates the energy-saving level corresponding to the first pump device 15 ("on-board coolant"). B indicates the energy-saving level corresponding to the second pump device 16 ("coolant tank"). C indicates the energy-saving level corresponding to the chip collector device 20 ("chip collector"). D indicates the energy-saving level corresponding to the fan device 33 ("mist collector") of the mist collector device 30.

[0068] The numbers following each symbol A, B, C, and D correspond to the numbers in the first row of Tables T1 to T4 in FIG. 3. If there is no corresponding number, the energy saving level is considered to be 0, and the settings of the machining program or the default settings are referenced. (a)*(b)*(c)*(d)* (* represents a number) in FIGS. 7 and 8 indicate the energy saving level set for the corresponding machining process. The number following (a) is the energy saving level set for the first pump device 15 ("in-machine coolant"). The number following (b) is the energy saving level set for the second pump device 16 ("coolant tank"). The number following (c) is the energy saving level set for the chip collector device 20 ("chip collector"). The number following (d) is the energy saving level corresponding to the fan device 33 ("mist collector") of the mist collector device 30.

[0069] In the program of FIG. 7, in step 1, the setting of (a)2(b)1(c)1(d)1 set in the G500 code is executed. In step 2, since no G500 code is set after the G501 code, the setting of the individual data 47 is referenced, and for the energy saving level that is not set in the individual data 47 either (in the example of FIG. 6, the second pump device 16 ("coolant tank")), the default setting (table T5 of the device setting data 46) is referenced. As a result, in step 2, the setting of (a)1(b)1(c)1(d)1 is executed. In step 3, the setting of (a)2(b)3(c)2(d)2 set in another G500 code is executed.

[0070] In the program in Figure 8, the G501 code that was in the program in Figure 7 has been omitted. In this case, the settings of process 1 are applied as is to process 2 as well. Although not shown in Figures 7 and 8, if another T-code is set before the "T01T02M06" command and another machining process is also set, the individual data 47 and default settings will be referenced in both Figures 7 and 8, just like the example of process 2 in Figure 7.

[0071] Next, the operation of the device control program 42 of the machine tool 1 will be described. FIG. 9 is a flowchart showing the process flow of a method for executing an interactive machining program 41 of the machine tool 1. FIG. 10 is a flowchart showing the process flow of step S20 of FIG. 9. FIG. 11 is a flowchart showing the process flow of a method for executing an EIA / ISO-format machining program 41 of the machine tool 1. In FIG. 9, in step S10, the processor 2P executing the device control program 42 reads the workpiece number WNo. of the machining program to be executed, selected, for example, in the machining program interface INT0 shown in FIG. 13. In FIG. 13, as an example, a screen is displayed in which the selection of a line of the machining program to be executed, performed by, for example, clicking, is detected via the input interface 2IF, the selected line is highlighted HL1, and the workpiece number WNo. of the selected line is displayed in a text box TB1. When the input interface 2IF detects pressing of the OK button BT1 on this screen, the workpiece number WNo. of the machining program displayed in the text box TB1 is read. In the following embodiments, the machining program 41 corresponding to the read workpiece number WNo. may be referred to as the target program. Note that FIG. 13 is just an example, and the workpiece number WNo. may be selected and read using other interfaces (such as a drop-down list or radio buttons) used in general-purpose computers.

[0072] In step S11, the processor 2P executing the device control program 42 executes a process of reading common units and basic coordinate units from the machining program 41. In step S12, the processor 2P executing the device control program 42 determines whether execution of all machining units has been completed. If execution of all machining units has been completed (Yes in step S12), execution of the machining program 41 ends. If not (No in step S12), in step S13, the processor 2P executing the device control program 42 executes a process of reading a new machining unit. In step S14, the processor 2P executing the device control program 42 executes a process of determining whether settings of all external devices have been completed for the new machining unit.

[0073] If the settings for all external devices have not been completed (No in step S14), the processor 2P executing the device control program 42 executes a process of determining an energy saving level for a new external device in step S20. Specifically, in step S21 of FIG. 10, the processor 2P executing the device control program 42 executes a process of determining whether an energy saving level other than level 0 has been set for the external device. If an energy saving level other than level 0 has been set for the machining unit (YES in step S21), the processor 2P executing the device control program 42 executes a process of setting the energy saving level set for the machining unit as the energy saving level for the new external device in step S22. If the energy saving level set for the machining unit is level 0 or no energy saving level has been set for the machining unit, such as the second pump device 16 (NO in step S22), the processor 2P executing the device control program 42 executes a process of checking the energy saving level for the external device set for the common unit in step S23. If the energy saving level set in the common unit is other than level 0, in step S24 the processor 2P executing the device control program 42 executes processing to set the energy saving level set in the common unit as the energy saving level of the new external device. If the energy saving level set in the common unit is level 0, in step S25 the processor 2P executing the device control program 42 executes processing to set the default energy saving level (the energy saving level set as in table T5 of the device setting data 46) as the energy saving level of the new external device.

[0074] Returning to FIG. 9, after step S20 is completed, the processor 2P executing the device control program 42 controls the new external device based on the determined energy saving level in step S16. Specifically, the processor 2P executing the device control program 42 reads a control current value corresponding to the energy saving level from one of tables T1 to T4 of the device setting data 46, and outputs a control signal based on the control current value to the inverter corresponding to the new external device (one of the first to fourth inverters 15I to 33I). After step S16, the process returns to step S14. If the settings for all external devices have been completed in step S14 (Yes in step S14), the processor 2P executing the device control program 42 executes processing of the read machining unit in step S17. After step S17 is completed, the process returns to step S12.

[0075] Next, the process flow for executing the EIA / ISO format machining program 41 will be described. FIG. 11 is a flowchart showing the process flow for the method for executing the EIA / ISO format machining program 41 on the machine tool 1. FIG. 12 is a flowchart showing the process flow for step S40 in FIG. 11. In FIG. 11, the same processes as in FIG. 9 are assigned the same reference numerals, and detailed explanations will be omitted. After step S10 in FIG. 11 is completed, in step S31, individual data 47 corresponding to the workpiece number WNo. of the machining program being executed is read. In step S32, the processor 2P executing the device control program 42 executes a process for determining whether the machining program 47 has ended by determining whether the M30 code has been read. If the machining program 47 has not ended (No in step S32), the processor 2P executing the device control program 42 executes a process for reading a new T code from table T6 of the device setting data 46 in step S33. The above process shows the tool change process including the M06 code, but depending on the type of machine tool, the tool may be changed just by calling the T code without calling the M06 code, so the start of the machining process is determined by reading the T code.

[0076] Next, in step S34, the processor 2P executing the device control program 42 executes a process of determining whether the settings of all external devices in the new processing step have been completed. If the settings of all external devices have not been completed (No in step S34), the processor 2P executing the device control program 42 executes a process of determining the energy saving level of the new external device in step S40. Specifically, in step S41 of FIG. 12, the processor 2P executing the device control program 42 executes a process of determining whether a G500 code exists immediately after the T code. If a G500 code exists immediately after the T code (Yes in step S41), the processor 2P executing the device control program 42 executes a process of determining whether an energy saving level other than level 0 for the external device is set in the G500 code (Yes in step S42). If an energy saving level other than level 0 is set in the G500 code (Yes in step S42), the processor 2P executing the device control program 42 executes a process of setting the energy saving level set in the G500 code as the energy saving level for the new external device in step S43.

[0077] If the G500 code does not exist immediately after the T code (No in step S41), in step S44, the processor 2P executing the device control program 42 executes a process to determine whether or not the G501 code exists immediately before the T code. If the G501 code does not exist immediately before the T code (No in step S44), the processor 2P executing the device control program 42 executes a process to determine whether or not the current machining process is the first machining process of the machining program 41 in step S45. This process can be determined by whether or not the energy saving level setting of the immediately previous machining process stored in step S35, which will be described later, is stored in memory. If it is not the first machining process (No in step S45), in step S46, the processor 2P executing the device control program 42 sets the energy saving level of the new machining device to the energy saving level used in the immediately previous machining process stored in step S35.

[0078] When the energy saving level of the external device is set to level 0 in the G500 code immediately following the T code in step S42, if there is no G500 code immediately following the T code and there is a G501 code immediately before the T code (Yes in step S44), or if the current machining process is the first machining process (Yes in step S45), in step S47, the processor 2P executing the device control program 42 executes processing to check the energy saving level of the external device set in the individual data 47. If the energy saving level set in the individual data 47 is other than level 0, in step S48, the processor 2P executing the device control program 42 executes processing to set the energy saving level set in the individual data 47 as the energy saving level of the new external device. If the energy saving level set in the individual data 47 is level 0, in step S49, the processor 2P executing the device control program 42 executes processing to set the default energy saving level (the energy saving level set as in table T5 of the device setting data 46) as the energy saving level of the new external device.

[0079] When the energy saving level of the new external device is determined, in step S35, the processor 2P executing the device control program 42 associates the determined energy saving level with the new external device and stores it in the memory 2M. This data is separate from the individual data 47. In step S36, the processor 2P executing the device control program 42 reads a control current value corresponding to the determined energy saving level from one of tables T1 to T4 of the device setting data 46, and executes a process of outputting a control signal based on the control current value to the inverter (one of the first to fourth inverters 15I to 33I) corresponding to the new external device. If the settings for all external devices have been completed in step S32 (Yes in step S32), in step S37, the processor 2P executing the device control program 42 executes the processing of the machining program 41 until the next T code or M30 code is read. When the M30 code has been read and the machining program 47 has ended (Yes in step S32), the processor 2P executing the device control program 42 executes a process of clearing the data stored in step S35 in step S38. If the data is stored in a volatile memory and is automatically deleted from the memory when the machining program 41 is terminated, the processing of step S38 may be omitted. <Changing the device setting data 46 while executing the machining program 41> Next, a method for changing the device setting data 46 will be described. The operator can change the device setting data 46 while executing the machining program 41. This is an operation that cannot be performed by the computer 99. The processor 2P that executes the device setting program 45 is configured to execute a process that causes the control panel 2CP to display an interface INT1 table as shown in FIG. 14 during execution of step S17 in FIG. 9 for an interactive machining program 41, or during execution of step S37 in FIG. 11 for an EIA / ISO format machining program 41. In the example of FIG. 14, an example will be described in which 1000 is selected as the workpiece number in interface INT0 as shown in FIG. 13, and the machining unit shown in FIG. 5 with unit number 4 is currently being executed in the machining program 41 shown in FIGS. 4 and 5 (the machining program shown in FIGS. 7 and 8 is the program for workpiece number 1000, and process 1 is currently being executed).

[0080] In the interface INT1, the upper window WIN1 displays the overall status of the current power consumption. The lower window WIN2 displays the current energy-saving levels of the first pump device 15, the second pump device 16, the chip collector device 20, and the fan device 33. The terms "internal coolant," "coolant tank," "chip collector," and "mist collector" are the same as those in Table T5 of FIG. 3 and refer to the first pump device 15, the second pump device 16, the chip collector device 20, and the fan device 33 inside the mist collector device 30, respectively. The bar graph BAR1 displayed to the right of the external device indicates the energy-saving level currently being implemented for that external device. Since the energy-saving level corresponds to the power consumption, it can be said that the bar graph BAR1 displays the power consumption. The currently implemented energy-saving level may also be referred to as the initial power value. The bar graph BAR1 may also display the percentage of power consumption corresponding to the energy-saving level (see Tables T1 to T4 of FIG. 3). The bar graph BAR1 has a scale equal to the number of maximum energy saving levels of the external device, and the energy saving levels can be identified by the length of the bar.

[0081] The text STA written below the bar graph BAR1 indicates whether the energy saving level displayed in the bar graph BAR1 is set in Table T5 of the device setting data 46, the common unit (or, for EIA / ISO format programs, Table T6 of the individual data 47), or the machining unit (or, for EIA / ISO format programs, the G500 code). The word "default" indicates the default energy saving level set in Table T5 of the device setting data 46. The word "program" indicates the energy saving level set in the common unit (or, for EIA / ISO format programs, Table T5 of the device setting data 46). The word "machining process" indicates the energy saving level set in the machining unit (or, for EIA / ISO format programs, the G500 code). Note that "default," "program," and "machining process" are merely examples, and may be represented by other character strings or symbols.

[0082] The toggle switch TSW is a switch that sets whether or not to change the energy saving level of an external device corresponding to the name displayed on the left side of the toggle switch TSW ("In-machine coolant," "Coolant tank," "Chip collector," "Mist collector"). When the toggle switch TSW is set to the right side, pressing the arrow button AB1 on the right side causes the processor 2P executing the device setting program 45 to display setting change interfaces INT2 to INT5 (see FIGS. 15 to 18 described later) for changing the settings of the external device on the control panel 2CP, and permits the setting of the external device to be changed. In the following embodiments, the external device corresponding to the pressed arrow button AB1 may be referred to as the target device. However, when the toggle switch TSW is set to the left side, pressing the arrow button AB1 on the right side does not display the setting change interfaces INT2 to INT5. Furthermore, the processor 2P executing the device control program 42 temporarily sets the energy saving level to the default energy saving level and controls the external device for which the toggle switch TSW is set to the left side.

[0083] 15 to 18 show the setting change interfaces INT2 to INT5 for the first pump device 15, the second pump device 16, the chip collector device 20, and the fan device 33 of the mist collector device 30, respectively, which are displayed when the arrow button AB1 is pressed. In FIGS. 15 to 18, interfaces with the same functions are assigned the same reference numerals, and redundant descriptions are omitted. The arrow button AB2 in the upper left corner of the interfaces INT2 to INT5 is pressed to return to the interface INT1. Below the arrow button AB2, the workpiece number WNo. of the currently executing machining program 41, the unit number UNNo. for identifying the machining unit, the sequence number SNo. of the tool sequence, and the sequence number BNo. of the shape sequence are displayed. For EIA / ISO format programs, the T-code of the currently used tool and the number of lines of the currently executing program may be displayed instead of the UNNo., SNo., and BNo.

[0084] Below the unit number UNo. for identifying the machining unit, the sequence number SNo. for the tool sequence, and the sequence number BNo. for the shape sequence, are listed "Default," "Program," and "Machining Process," which have the same meanings as those described in the description of interface INT1. To the right of these, a bar graph BAR2 is displayed indicating the corresponding energy-saving levels. The interface INT3, which sets the energy-saving settings for the second pump device 16, does not include an item related to "Machining Process." The bar graph BAR2 has a scale equal to the maximum energy-saving level of the external device, and the energy-saving level can be identified by the length of the bar. Note that no bar indicates that an energy-saving level has not been set (energy-saving level 0). Among "Default," "Program," and "Machining Process," the one highlighted HL2 indicates the current energy-saving level of the external device. The pie chart PC1 to the right of bar graph BAR2 represents the current output of the external device as a percentage, and the pie chart PC2 further to the right represents the current power consumption of the external device as a percentage. These percentages are the same as the values ​​shown in tables T1 to T4 in Figure 3.

[0085] Below the bar graph BAR2 and the pie charts PC1 and PC2, there are provided a selection button SEL1 for selecting "Program" and a selection button SEL2 for selecting "Process." Note that the interface INT3 for setting the energy saving mode for the second pump device 16 does not have a selection button SEL2 for selecting "Process." When the interfaces INT2 to INT5 are started, a button corresponding to the one displayed in advance in highlight HL2 is preselected and highlighted. However, when an energy saving level has not been set in the processing program 41 (when "Default" is displayed in highlight HL2), "Program" is preselected and highlighted. Thereafter, when the input interface 2IF detects that one of the selection buttons SEL1 and SEL2 that has not been preselected is pressed, the selected button is highlighted.

[0086] Pie charts PC3, PC4, PC5, and PC6 are displayed below the selection buttons SEL1 and SEL2. Pie chart PC3 essentially displays the percentage of the output of the external device selected by the selection buttons SEL1 and SEL2. Pie chart PC4 essentially displays the percentage of the power consumption of the external device selected by the selection buttons SEL1 and SEL2. These percentages are the same as the values ​​shown in tables T1 to T4 in FIG. 3. However, as shown in FIG. 16, if an energy saving level is not set for the common unit (or individual data 47) when selection button SEL1 is selected, the "default" setting value is displayed. As shown in FIG. 17, if an energy saving level is not set for the machining unit (or G500 code) when selection button SEL2 is selected, the energy saving level of the common unit (or individual data 47) is referenced, and if the energy saving level of the common unit (or individual data 47) is set to a value other than level 0, a setting value according to the energy saving level of the common unit (or individual data 47) is displayed. If the energy saving level of the common unit (or individual data 47) is not set, the "default" setting value is displayed. Also, for example, if the selection button SEL1 is selected in the state of Fig. 15 as shown in Fig. 19, the values ​​corresponding to the energy saving level of the common unit (or individual data 47) are displayed in the pie charts PC3 and PC4 even if the external device is controlled by the energy saving level of the machining unit (or G500 code).

[0087] Below the pie charts PC3, PC4, PC5, and PC6, sliders SL1, SL2, SL3, and SL4 are provided. The sliders SL1, SL2, SL3, and SL4 include an indicator IND indicating the energy saving level and a runner RUN provided at the tip of the indicator IND. The sliders SL1, SL2, SL3, and SL4 each have a scale equal to the maximum energy saving level of the first pump device 15, the second pump device 16, the chip collector device 20, and the fan device 33, and are configured so that the runner RUN can be moved only to the positions of those scales. P0 to P5 shown in Figures 15 to 18 correspond to the positions of those scales. P0 to P5 correspond to levels 0 to 5, respectively. The hatched area indicates the movement trajectory of the runner RUN from its initial position. In reality, the indicator IND is displayed between position P0 and the runner RUN.

[0088] Pie chart PC5 represents the output of the external device as a percentage corresponding to the energy saving level set by indicator IND. Pie chart PC6 represents the power consumption of the external device as a percentage corresponding to the energy saving level set by indicator IND. These percentages are the same as the values ​​shown in tables T1 to T4 in FIG. 3. If the selection button SEL1 is selected and the position of the runner RUN is set to P0, the "default" setting value is displayed. If the selection button SEL2 is selected and the position of the runner RUN is set to P0, the energy saving level of the common unit (or individual data 47) is referenced. If the energy saving level of the common unit (or individual data 47) is set to a value other than level 0, the setting value according to the energy saving level of the common unit (or individual data 47) is displayed. If the energy saving level of the common unit (or individual data 47) is not set, the "default" setting value is displayed. FIG. 20 shows an example in which the position of the runner RUN is set to P0 from the state of FIG. 18, and therefore the setting value according to the energy saving level of the common unit (or individual data 47) is displayed.

[0089] When the apply button AB3 is pressed in the above-mentioned setting state, the following process is executed. When the machining program 41 is interactive, the processor 2P executing the device control program 42 temporarily suspends the process of step S17 in Fig. 9 and executes a process of writing the energy saving levels set by the sliders SL1, SL2, SL3, and SL4 to the positions in the machining program 41 corresponding to the selection buttons SEL1 and SEL2. Then, the processor 2P executing the device control program 42 executes steps S14 to S16 again, and when the result of step S14 is YES, executes a process of resuming the process of step S17.

[0090] When the machining program 41 is in EIA / ISO format and the selection button SEL1 is selected, the processor 2P executing the device control program 42 temporarily suspends the processing of step S37 in Fig. 11 and executes a process of writing the energy saving levels set by the sliders SL1, SL2, SL3, and SL4 to the individual data 47. When the selection button SEL2 is selected, the processor 2P executing the device control program 42 temporarily suspends the processing of step S37 in Fig. 11, searches backward from the currently executed program line for the nearest T-code line, and writes a G500 code including the energy saving levels set by the sliders SL1, SL2, SL3, and SL4 to the EIA / ISO format machining program 41 in the line following that T-code line. The energy saving levels of external devices not set by the sliders SL1, SL2, SL3, and SL4 may be set to level 0. The processor 2P executing the device control program 42 then executes steps S32 to S36 and S40 again, and when step S34 returns YES, resumes the process of step S37. When the process of step S37 ends, the processor 2P executing the device control program 42 may write a G501 code into the EIA / ISO-format machining program 41 immediately before the next T code or M30 code, or may not write a G501 code. If the G501 code is written, the energy-saving level set by the sliders SL1, SL2, SL3, and SL4 is set only to the machining process being executed when the Apply button AB3 is pressed. If the G501 code is not written, the energy-saving level set by the sliders SL1, SL2, SL3, and SL4 is set from the machining process being executed when the Apply button AB3 is pressed to the machining process immediately before the machining process being executed the next time the Apply button AB3 is pressed. Therefore, whether the machining program 41 is in interactive format or EIA / ISO format, accepting the press of the apply button AB3 means accepting a program application instruction to apply the driving parameters (energy saving level) to the target program, and also accepting a control instruction to control the target equipment based on the driving parameters (energy saving level).

[0091] As shown in FIG. 19, even if the energy saving level setting of the common unit (or individual data 47) is changed while the energy saving level setting of the machining unit (or G500 code) is set, the control of the external device itself remains unchanged before and after the suspension; only the display of the bar graph BAR2 related to the "program" changes before and after the suspension. As shown in FIG. 20, when the energy saving level of the machining unit (or G500 code) is set to level 0, processing resumes with the energy saving level of the common unit (or individual data 47) applied, and the display of the highlight HL2 and the bar graph BAR2 changes accordingly. Similarly, when the energy saving level of the machining unit (or G500 code) is originally level 0 and the energy saving level of the common unit (or individual data 47) is set to level 0, processing resumes with the default energy saving level applied, and the display of the highlight HL2 and the bar graph BAR2 changes accordingly. <Processing flow of the method for controlling power consumption of machine tool 1> Next, the processing of the method for controlling power consumption of the machine tool 1, which is processed by the processor 2P executing the device setting program 45, will be described. Figure 21 is a flowchart showing the processing flow of the method for controlling power consumption of the machine tool 1, which is processed by the processor 2P executing the device setting program 45. In Figure 21, in step S41, the processor 2P executing the device setting program 45 executes a process to accept an input for selecting a target program to be set from among a plurality of machining programs 41 executable by the machine tool 1. Specifically, for example, the processor 2P executing the device setting program 45 communicates with the device control program 42 to acquire the workpiece number WNo. of the currently executing machining program 41, or acquires the workpiece number WNo. of the currently executing machining program 41 by acquiring the process ID of the currently executing program using an existing method.

[0092] In step S42, the processor 2P executing the device setting program 45 executes a process of displaying, as an initial power value, the power consumption consumed by each of at least one device (external device) provided on the machine tool 1 while the machine tool 1 is operating. This power consumption is the power consumed by each of the at least one device when the target program is executed. Specifically, the processor 2P executing the device setting program 45 executes a process of displaying the energy saving level on the display 2DS in the bar graph BAR1 of the interface INT1. In step S43, the processor 2P executing the device setting program 45 executes a process of accepting an input to select a target device, of the at least one device, whose power consumption is to be changed from its initial power value. Specifically, the processor 2P executing the device setting program 45 executes a process of accepting pressing of the arrow button AB1 of the interface INT1, thereby accepting an input to select the external device corresponding to the arrow button AB1 as the target device.

[0093] In step S44, the processor 2P executing the device setting program 45 executes a process of displaying an initial output value indicating the output of the target device corresponding to the initial power value by displaying a pie chart PC1 of the interfaces INT2 to 5 on the display 2DS. Similarly, the processor 2P executing the device setting program 45 executes a process of displaying an initial power value by displaying a pie chart PC2 of the interfaces INT2 to 5 on the display 2DS. In step S45, the processor 2P executing the device setting program 45 executes a process of accepting an input for selecting at least one machining process from among a plurality of machining processes included in the target program by accepting pressing of the selection buttons SEL1 and SEL2.

[0094] In step S46, the processor 2P executing the device setting program 45 receives the positions of the runners RUN of the sliders SL1, SL2, SL3, and SL4 from the input interface 2IF, thereby accepting input of drive parameters (energy saving levels) for changing the power consumption of the target device. The energy saving levels correspond to the values ​​(second rows of tables T1 to T4 in FIG. 3) that represent the percentage of the output of the external device when the external device is driven at the specified power consumption, assuming that the output of the external device when each actuator is driven at the specified power consumption is 100%. Therefore, accepting the input of the drive parameters includes accepting an input for selecting from multiple candidate ratios the ratio of the target output value to a reference value (the output when the target device is driven at the specified power consumption) among values ​​representing the output of the target device. This drive parameter is, for example, the energy saving level. In step S47, the processor 2P executes a process of displaying the target power value of the power consumption corresponding to the drive parameters and the target output value representing the output of the target device corresponding to the target power value by displaying the pie charts PC5 and PC6 of interfaces INT2 to INT5 on the display 2DS.

[0095] In step S48, the processor 2P executing the device setting program 45 executes a process to determine whether pressing of the Apply button AB3 has been accepted. If pressing of the Apply button AB3 has not been accepted (No in step S48), the process returns to step S45. In this embodiment, accepting pressing of the Apply button AB3 means accepting a program application instruction to apply the driving parameters to the target program and accepting a control instruction to control the target device based on the driving parameters.

[0096] When the processor 2P executing the device setting program 45 receives a press of the apply button AB3 (No in step S48), it executes the process of accepting a program application instruction to apply the driving parameters to the target program and a control instruction to control the target device based on the driving parameters. At this time, in step S49, the processor 2P executing the device setting program 45 executes a process of receiving the program application instruction, and associating the target device output corresponding to the driving parameters or the correspondence between the driving parameters and the target device with the target program and storing it in the memory 2M. More specifically, the processor 2P executing the device setting program 45 executes a process of receiving the program application instruction, and associating the target device output corresponding to the driving parameters or the correspondence between the driving parameters and the target device with at least one machining process of the target program and storing it in the memory 2M.

[0097] In step S50, the processor 2P executing the device control program 42 receives the control instruction and executes processing to control the target device based on the drive parameters. Controlling the target device includes controlling the target device in at least one processing step based on the drive parameters. Specifically, when the processor 2P executing the device control program 42 starts the target program associated with the correspondence, it executes processing to control the target device so that the power consumption reaches the target power value corresponding to the drive parameters.

[0098] The above interfaces INT1 to INT5 are used while the machining program 41 is being executed by the machine tool 1. This allows the operator to make settings to reduce power consumption while watching the operation of the machining program 41 and checking whether the external device is producing the necessary output while suppressing power consumption. <Changing the device setting data 46 when the machining program 41 is not running> The device setting program 45 according to this embodiment can be executed even when the machining program 41 is not in use while it is being executed on the machine tool 1. In this case, after selecting the machining program 41 using the interface shown in FIG. 13, the device setting program 45 selects a machining unit within the machining program 41 using the interface INT0a shown in FIG. 22. FIG. 22 shows an example of an interface for an interactive machining program 41. The interface INT0a displays machining units grouped by tool, with different machining units being displayed in different rows. FIG. 4 shows an example in which the machining unit shown in FIG. 5 with unit number UNo. 4 is selected by clicking or the like and displayed in highlight HL3. Note that the interface INT0a is merely an example, and any interface may be used as long as it allows the selection of a machining unit. When a machining unit is selected in the interface INT0a and the input interface 2IF detects the pressing of the OK button BT1, the interface transitions to the interface INT1a shown in FIG. 23. INT1a is, for example, an interface in which the window WIN1 is omitted from the interface INT1. However, any interface may be used as long as it allows the selection of an external device. In the case of an EIA / ISO format machining program 41, for example, the source code can be displayed, the part corresponding to the T-code highlighted, and the processing from the selected T-code to the next T-code can be regarded as the selected machining process.

[0099] 24 to 27 show setting change interfaces INT2a to INT5a of the first pump device 15, the second pump device 16, the tip collector device 20, and the fan device 33 of the mist collector device 30, respectively, which are displayed when the arrow button AB1 in Fig. 23 is pressed. In Figs. 24 to 27, the same reference numerals are used to denote interfaces having the same functions as those in Figs. 15 to 18, and redundant explanations will be omitted.

[0100] The main difference between the setting change interfaces INT2a to INT5a and the setting change interfaces INT2 to INT5 is that INT2a to INT5a include a selection button SEL3 for changing the default energy saving level. When the selection button SEL3 is pressed, the pie chart PC3 displays the output percentage of the external device set in table T5 of the device setting data 46. The pie chart PC4 displays the power consumption percentage of the external device set in table T5 of the device setting data 46. When the selection button SEL3 is selected, the runners RUN of the sliders SL1, SL2, SL3, and SL4 are restricted from moving to position P0. When the selection button SEL3 is selected, pressing the apply button AB3 after operating the sliders SL1, SL2, SL3, and SL4 executes a process of writing the data to table T5 of the device setting data 46. Note that even if the selection button SEL1 or SEL2 is selected, only the process of writing the data to the positions of the machining program 41 corresponding to the selection buttons SEL1 and SEL2 is executed.

[0101] Next, the process flow when the interfaces INT0a to INT5a are used will be described. In principle, the process flow is the same as that shown in FIG. 21. However, the input for selecting one machining process in step S45 is realized by selecting a machining unit in the interface INT0a and selecting either the selection button SEL1 or SEL2, or by selecting a T-code and selecting either the selection button SEL1 or SEL2 in the case of an EIA / ISO-format machining program 41. Step S50 is realized by pressing the Apply button AB3 and then individually calling the device control program 42 and executing the machining program 41. For example, when the Apply button AB3 is pressed in the device setting program 45 of the computer 99, the processor 99P executing the device setting program 45 may rewrite the program data, device setting data 46, and individual data 47 of the machining program 41 of the computer 99, transfer these data to the numerical control device 2, and send a command to the numerical control device 2 to externally launch the device control program 42. Alternatively, the processor 99P that executes the device setting program 45 may rewrite the program data, device setting data 46, and individual data 47 of the machining program 41 in the computer 99, and only perform the process of transferring these data to the numerical control device 2, and then start the device control program 42 on the numerical control device 2 again, and after pressing the apply button AB3, perform the process of individually calling the device control program 42 and executing the machining program 41. When the process of Fig. 21 is implemented in multiple devices (numerical control device 2, computer 99) in this way, the multiple devices may be collectively referred to as a computer system. <Features and Effects of the Method for Controlling Power Consumption of Machine Tools in the Present Embodiment> The numerical control device 2, computer 99, machine tool 1, and method for controlling power consumption of machine tool 1 in this embodiment include displaying the power consumption consumed by at least one device provided on machine tool 1 while machine tool 1 is in operation as an initial power value, accepting input to select a target device from the at least one device whose power consumption is to be changed from the initial power value, accepting input of drive parameters (energy saving levels) for changing the power consumption of the target device, and controlling the target device based on the drive parameters. This allows power consumption to be set in detail for each device, enabling fine-tuned power consumption reduction. <Modification> The G500 and G501 codes shown in Figures 7 and 8 are merely examples, and any G code that has not already been reserved or used for other purposes may be used. Furthermore, instead of the G500 and G501 codes, an M code that has not already been reserved or used for other purposes may be used. Furthermore, the interfaces INT0 to INT5 or INT0 to INT5a are merely examples of interfaces, and other interfaces may be used as long as they realize the display and selection functions shown in Figure 21.

[0102] In step S45 of FIG. 21, instead of selecting at least one machining process using the selection buttons SEL1 and SEL2, multiple machining processes may be selected using check boxes or the like. Alternatively, multiple machining units may be selectable using the interface of FIG. 22. When multiple machining units are selected, multiple interfaces INT1 to INT5 or INT1a to INT5a may be displayed to allow multiple settings. In the case of an EIA / ISO-format machining program 41, if a G501 code is not set, a G500 code is set, and the energy-saving level for the machining process up to the next G500 code is set. Therefore, if there are multiple machining processes up to the next G500 code, multiple machining processes will necessarily be set. In the case of an interactive machining program 41, when the Apply button AB3 is pressed with the Select button SEL21 selected, the energy-saving levels set with the sliders SL1, SL2, SL3, and SL4 may be set for the currently executed machining process up to the machining process immediately preceding the machining process being executed when the Apply button AB3 is pressed with the Select button SEL21 selected.

[0103] Some or all of the logic functions of the above-mentioned device control program 42 and device setting program 45 may be realized by a dedicated processor or integrated circuit. The above-mentioned device control program 42 and device setting program 45 may be recorded not only in the memory 2M built into the numerical control device 2 or the computer 99 but also in a storage medium that is removable from the numerical control device 2 or the computer 99 and readable by the numerical control device 2 or the computer 99, such as a disk such as a floppy disk, optical disk, CD-ROM or magnetic disk, an SD card, a USB memory, or an external hard disk.

[0104] In this application, the term "comprises" and its derivatives are open-ended terms that describe the presence of elements and do not exclude the presence of other elements not listed. This also applies to the terms "have," "include," and their derivatives.

[0105] The terms "member," "part," "element," "body," and "structure" may have multiple meanings, such as a single part or multiple parts.

[0106] Ordinal numbers such as "first" and "second" are merely terms used to identify components and do not have any other meaning (e.g., a particular order). For example, the presence of a "first element" does not imply the presence of a "second element," and the presence of a "second element" does not imply the presence of a "first element."

[0107] Words expressing degrees, such as "substantially," "about," and "approximately," can mean a reasonable deviation that does not significantly change the final result, unless otherwise specified in the embodiment. All numerical values ​​described in this application can be interpreted to include words such as "substantially," "about," and "approximately."

[0108] In this application, the phrase "at least one of A and B" should be interpreted to include A only, B only, and both A and B.

[0109] It is apparent that various changes and modifications of the present invention are possible in light of the above disclosure, and therefore, the present invention may be practiced otherwise than as specifically disclosed herein without departing from the spirit of the present invention.

Claims

1. A method for selecting a target program to be set from among a plurality of machining programs executable by a machine tool is received, displaying, as an initial power value, power consumption consumed by each of at least one device provided in the machine tool when the target program is executed; receiving an input for selecting a target device, the power consumption of which is to be changed from the initial power value, from among the at least one device; receiving an input for selecting at least one processing step among a plurality of processing steps included in the target program; Accepting an input of a driving parameter for changing the power consumption of the target device; Controlling the target device based on the drive parameters; Including, Controlling the target equipment includes controlling the target equipment in the at least one processing step based on the drive parameters. A method for controlling power consumption of a machine tool.

2. A method for selecting a target program to be set from among a plurality of machining programs executable by a machine tool is received, displaying, as an initial power value, power consumption consumed by each of at least one device provided in the machine tool when the target program is executed; receiving an input for selecting a target device, the power consumption of which is to be changed from the initial power value, from among the at least one device; Accepting an input of a driving parameter for changing the power consumption of the target device; Controlling the target device based on the drive parameters; receiving a program application instruction to apply the driving parameters to the target program; receiving the program application instruction, storing in a memory an output of the target device corresponding to the drive parameters or a correspondence between the drive parameters and the target device in association with the target program; A method for controlling power consumption of a machine tool, comprising:

3. When the target program with which the correspondence is associated is started, the target device is controlled so that the power consumption reaches a target power value corresponding to the drive parameter. The control method of claim 2 , further comprising:

4. receiving a program application instruction to apply the driving parameters to the target program; receiving the program application instruction, storing in a memory an output of the target device corresponding to the drive parameters, or a correspondence between the drive parameters and the target device, in association with the at least one machining process of the target program; The control method of claim 1 , further comprising:

5. when the target program associated with the correspondence relationship is started, the target device is controlled so that the power consumption reaches a target power value corresponding to the drive parameter. The control method of claim 4 , further comprising:

6. The control method according to claim 1 , further comprising displaying a target power value of the power consumption corresponding to the driving parameter.

7. The control method according to claim 6, further comprising displaying an initial output value representing an output of the target device corresponding to the initial power value, and a target output value representing an output of the target device corresponding to the target power value.

8. Controlling the target device based on the drive parameters includes: receiving a control instruction to control the target device based on the drive parameters; The control method according to claim 6 , further comprising receiving the control instruction and controlling the target device based on the drive parameters.

9. Controlling the target device based on the drive parameters includes: receiving a control instruction to control the target device based on the drive parameters; The control method according to claim 7 , further comprising receiving the control instruction and controlling the target device based on the drive parameters.

10. Receiving the input of the drive parameters includes: receiving an input for selecting a ratio of the target output value to a reference value among values ​​representing an output of the target device from a plurality of candidate ratios; The control method according to claim 7.

11. The at least one device comprises: a first actuator configured to drive a pump that supplies coolant to a nozzle of the machine tool; A second actuator configured to drive a pump that supplies the coolant stored in the coolant tank to the heat exchanger; a third actuator configured to drive a chip conveyor of the machine tool; A fourth actuator configured to drive a fan for discharging mist accumulated in a body of the machine tool; at least one of A control method according to any one of claims 1 to 10.

12. The value representing the output of the target device is a discharge amount of the coolant per unit time calculated from an operating frequency or a rotation speed of the first actuator; and a supply amount of the coolant per unit time calculated from an operation frequency or a rotation speed of the second actuator; and The belt speed of the chip conveyor; a start-up time of the fourth actuator per unit time, or an operation frequency or a rotation speed of the fourth actuator; Contains any of the following: The control method according to claim 11.

13. A numerical control device comprising means for executing the control method according to any one of claims 1 to 10.

14. The numerical control device according to claim 13 ; an input interface configured to receive an input for selecting the target device and to receive the input of the drive parameters; a display configured to display the initial power value; the at least one device; A machine tool comprising:

15. 11. A program comprising instructions which, when executed by a hardware processor, cause the hardware processor to perform the process of the control method according to claim 1.

16. A computer readable storage medium comprising instructions that, when executed by a hardware processor, cause the hardware processor to perform the process of the control method according to any one of claims 1 to 10.