Numerical control device and computer-readable storage medium
The numerical control device addresses the challenge of high processing load and power peaks by analyzing machining programs to adjust drive axis control based on time and condition information, reducing power consumption and load on five-axis machines.
Patent Information
- Application Number
- PCT/JP2023/027053
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-07-24
- Publication Date
- 2025-11-06
AI Technical Summary
Existing numerical control devices face increased processing load and risk of adversely affecting drive axis control due to the large number of axes in machines like five-axis processing machines, especially when changing operating speeds based on position information, leading to potential power consumption peaks.
A numerical control device with a discrimination unit to analyze machining programs, acquire time and condition information, set machining conditions for specific time periods, and control drive axes based on these conditions to reduce peak power consumption and processing load.
The solution effectively suppresses peak power consumption and reduces processing load, extending tool and machine life while optimizing power usage and preventing factory power supply overloads.
Smart Images

Figure JP2023027053_06112025_PF_FP_ABST
Abstract
Description
Numerical control device and computer-readable storage medium
[0001] The present disclosure relates to a numerical control device and a computer-readable storage medium.
[0002] Conventionally, a numerical control device has been proposed that can reduce the load when the tool comes into contact with the workpiece by detecting position information of the drive axis and changing the moving speed of the tool based on the detected position information (for example, Patent Document 1). This allows the numerical control device to reduce power consumption when the tool comes into contact with the workpiece. In other words, the numerical control device can reduce peak power consumption.
[0003] Japanese Patent Application Laid-Open No. 2020-86485
[0004] However, for example, when changing the operating speed of each drive axis of a processing machine such as a five-axis processing machine based on position information, the processing load of the numerical control device increases due to the large number of drive axes to be controlled. In this case, there is a risk that the control of the drive axes may be adversely affected. Therefore, a technology that can reduce the processing load while suppressing peak power consumption is required.
[0005] The numerical control device disclosed herein includes a discrimination unit that analyzes a machining program for performing machining including multiple processes and discriminates process switching commands in the machining program; an information acquisition unit that acquires time information regarding a first time period of one of the multiple processes and condition information indicating second machining conditions different from the first machining conditions specified in the machining program; a condition setting unit that sets the machining conditions in the first time period to second machining conditions based on the process switching command, the time information, and the condition information; and a control unit that controls the drive axis in the first time period based on the second machining conditions set by the condition setting unit.
[0006] The computer-readable storage medium of the present disclosure stores instructions that cause a computer to perform the following: analyze a machining program for performing machining including multiple processes, determine a process changeover command in the machining program; obtain time information regarding a first time period of one of the multiple processes and condition information indicating a second machining condition that is different from the first machining condition specified in the machining program; set the machining condition in the first time period to the second machining condition based on the process changeover command, the time information, and the condition information; and control the drive axis in the first time period based on the set second machining condition.
[0007] 1 is a block diagram showing an example of the hardware configuration of a processing machine controlled by a numerical control device; 2 is a block diagram showing an example of the functions of the numerical control device; 3 is an example of a processing program; 4 is a diagram showing an example of the transition of the load applied to a spindle; 5 is a flowchart showing an example of processing executed by the numerical control device; 6 is a block showing an example of the functions of the numerical control device;
[0008] A numerical control device and a computer-readable storage medium according to an embodiment of the present disclosure will be described below with reference to the drawings. In the following description, components having the same or similar functions will be assigned the same reference numerals. Duplicate descriptions of those components may be omitted.
[0009] In this application, "based on XX" means "based on at least XX," and includes cases where it is based on other elements in addition to XX. Furthermore, "based on XX" is not limited to cases where XX is used directly, but also includes cases where it is based on XX that has been calculated or processed. "XX" is any element (for example, any information).
[0010] A numerical control device is a device that controls a processing machine based on a processing program, and controls the processing machine so as to suppress peak power consumption in the processing machine when the processing program is executed.
[0011] 1 is a block diagram showing an example of the hardware configuration of a machining device controlled by a numerical control device. The machining device 1 is, for example, a machine tool, a wire electric discharge machine, or a three-dimensional printer. The machine tool is, for example, a lathe, a machining center, or a multi-tasking machine.
[0012] The processing machine 1 includes a numerical control device 2 , an input / output device 3 , a servo amplifier 4 , a servo motor 5 , a spindle amplifier 6 , a spindle motor 7 , and auxiliary equipment 8 .
[0013] The numerical control device 2 includes, for example, a hardware processor 201 , a bus 202 , a read-only memory (ROM) 203 , a random access memory (RAM) 204 , and a non-volatile memory 205 .
[0014] The hardware processor 201 is a processor that controls the entire numerical control device 2 in accordance with a system program. The hardware processor 201 reads the system program and the like stored in the ROM 203 via the bus 202. The hardware processor 201 is, for example, a CPU (Central Processing Unit) or an electronic circuit.
[0015] The bus 202 is a communication path that connects the various hardware components of the numerical control device 2. The various hardware components of the numerical control device 2 exchange data via the bus 202.
[0016] The ROM 203 is a storage device that stores system programs, etc. The ROM 203 is a computer-readable storage medium.
[0017] The RAM 204 is a storage device that temporarily stores various data and functions as a work area for the hardware processor 201 to process various data.
[0018] The nonvolatile memory 205 is a storage device that retains data even when the power to the numerical control device 2 is turned off. The nonvolatile memory 205 stores, for example, a machining program for machining in the machining machine 1. The nonvolatile memory 205 is a computer-readable storage medium. The nonvolatile memory 205 is, for example, a battery-backed memory or an SSD (Solid State Drive).
[0019] The numerical control device 2 further includes an interface 206 , an axis control circuit 207 , a spindle control circuit 208 , a PLC (Programmable Logic Controller) 209 , and an I / O unit 210 .
[0020] The interface 206 connects the bus 202 and the input / output device 3. The interface 206 sends various data processed by the hardware processor 201 to the input / output device 3, for example.
[0021] The input / output device 3 receives various data via the interface 206 and displays the various data on a display. The input / output device 3 also receives input of various data and sends the various data via the interface 206 to, for example, the hardware processor 201.
[0022] The input / output device 3 is, for example, a touch panel. When the input / output device 3 is a touch panel, the input / output device 3 is, for example, a capacitive touch panel. The touch panel is not limited to a capacitive touch panel and may be a touch panel of another type. The input / output device 3 is installed in an operation panel (not shown) in which the numerical control device 2 is housed.
[0023] The axis control circuit 207 is a circuit for controlling the servo motor 5. The axis control circuit 207 receives control commands from the hardware processor 201 and sends various commands to the servo amplifier 4 for driving the servo motor 5. The axis control circuit 207 sends, for example, a torque command for controlling the torque of the servo motor 5 to the servo amplifier 4.
[0024] The servo amplifier 4 receives a command from the axis control circuit 207 and supplies a current to the servo motor 5 .
[0025] The servo motors 5 are driven by receiving a current supply from the servo amplifier 4. The servo motors 5 are provided corresponding to the respective drive axes of the processing machine 1. If the processing machine 1 is a machine tool having five axes, the servo motors 5 include, for example, an X-axis servo motor, a Y-axis servo motor, a Z-axis servo motor, an A-axis servo motor, and a C-axis servo motor. In this case, an axis control circuit 207 and a servo amplifier 4 are provided for each servo motor 5.
[0026] The servo motor 5 is connected to, for example, a ball screw that drives a tool post. When the servo motor 5 is driven, the structure of the processing machine 1, such as the tool post, moves along a predetermined drive axis.
[0027] The servo motor 5 has a built-in encoder (not shown) that detects the position and feed speed of the drive axis. Position feedback information and speed feedback information indicating the position and feed speed of the drive axis detected by the encoder are fed back to the axis control circuit 207. In this way, the axis control circuit 207 performs feedback control of each drive axis.
[0028] The spindle control circuit 208 is a circuit for controlling the spindle motor 7. The spindle control circuit 208 receives a control command from the hardware processor 201 and sends a command to the spindle amplifier 6 to drive the spindle motor 7. The spindle control circuit 208 sends, for example, a spindle speed command to the spindle amplifier 6 to control the rotation speed of the spindle motor 7.
[0029] The spindle amplifier 6 receives a command from the spindle control circuit 208 and supplies a current to the spindle motor 7 .
[0030] The spindle motor 7 is driven by receiving a current supplied from the spindle amplifier 6. The spindle motor 7 is connected to the main shaft and rotates the main shaft.
[0031] The PLC 209 is a device that executes a ladder program to control the auxiliary device 8. The PLC 209 sends commands to the auxiliary device 8 via an I / O unit 210.
[0032] The I / O unit 210 is the interface 206 that connects the PLC 209 and the auxiliary device 8. The I / O unit 210 sends commands received from the PLC 209 to the auxiliary device 8.
[0033] The auxiliary device 8 is installed in the processing machine 1 and performs auxiliary operations in the processing machine 1. The auxiliary device 8 operates based on commands received from the I / O unit 210. The auxiliary device 8 may be a device installed in the periphery of the processing machine 1. The auxiliary device 8 is, for example, a tool changer, a cutting fluid injection device, or an opening / closing door drive device.
[0034] 2 is a block diagram showing an example of the functions of the numerical control device 2. The numerical control device 2 controls the operation of each drive axis of the processing machine 1 based on a processing program. In this way, the numerical control device 2 processes the workpiece.
[0035] The numerical control device 2 includes, for example, a program acquisition unit 211, a discrimination unit 212, an information acquisition unit 213, a condition setting unit 214, and a control unit 215. The program acquisition unit 211, the discrimination unit 212, the information acquisition unit 213, the condition setting unit 214, and the control unit 215 are realized, for example, by the hardware processor 201 performing arithmetic processing using a system program stored in the ROM 203 and various data and machining programs stored in the non-volatile memory 205.
[0036] The program acquisition unit 211 acquires a machining program used in the processing machine 1. The program acquisition unit 211 acquires, for example, a machining program stored in a storage unit (not shown).
[0037] Figure 3 is an example of a machining program. The T code is a tool preparation command. "T0101" is a command that specifies that the tool number of the tool to be prepared is "01" and the tool offset number of the tool to be prepared is "01".
[0038] "M06" is a tool change command. "M06" causes tool change to the prepared tool.
[0039] "G91" is an incremental command. "G01" is a linear interpolation command. In other words, in the blocks with sequence numbers N1 to N4, the tool's movement path using linear interpolation is specified. The F code is a command that specifies the tool feed rate. "F100" specifies that the tool feed rate is 100 [mm / min]. The S code is a command that specifies the tool rotation rate. "S1000" specifies that the tool rotation rate is 1000 [rpm].
[0040] "T0202" is a tool preparation command to prepare a tool with tool number "02". The tool offset number of the tool to be prepared is also "02". Furthermore, "M06" causes a tool change from tool number "01" to tool number "02". Various commands are specified after "M06", but are not shown in the illustration.
[0041] The discrimination unit 212 analyzes a machining program for performing machining including multiple processes and discriminates process switching commands in the machining program. A process refers to the period from when one process switching command is specified in one machining program to when the next process switching command is specified. One type of machining is performed in one process. An example of one type of machining is end mill machining and drilling. Another example of one type of machining is rough machining and finish machining.
[0042] The process changeover command is a command for changing processes. The process changeover command is, for example, a tool preparation command specified by a T-code. The process changeover command may also be a tool change command. Also, for example, an M-code can be set in advance as the process changeover command. In this case, the set M-code is the process changeover command.
[0043] In the example shown in Figure 3, the blocks from the block designated "T010" to the block with sequence number N4 are blocks that represent one process. Also, the blocks from the block designated "T0202" to the block immediately preceding the block designated with the next process switching command are blocks that represent one process. Now, let's return to the explanation of Figure 2.
[0044] The information acquisition unit 213 acquires time information relating to a first time period of one of the multiple processes, and condition information indicating second processing conditions different from the first processing conditions specified in the processing program.
[0045] The first time period is a time period that includes the timing when the tool starts to come into contact with the workpiece. The first time period is a time period that extends from when a predetermined first time period has elapsed since the process changeover command was executed until when a predetermined second time period has elapsed. In other words, the first time period is a time period that is defined based on the timing when the process changeover command is executed.
[0046] The first time period is, for example, 0 seconds. The second time period is 3 seconds. That is, the first time period is 3 seconds after the process changeover command is executed. During this time period, contact between the tool and the workpiece begins.
[0047] The first time period may include other time periods. For example, the first time period is a three-second period starting 20 seconds after the process changeover command is executed. In this case, contact between the tool and the workpiece ends during the three-second period starting 20 seconds after the process changeover command is executed. Alternatively, contact between the tool and the workpiece restarts during this time period.
[0048] The first machining condition includes a machining condition specified in the machining program. The machining condition is, for example, a tool feed rate. The first machining condition may be the tool feed rate and the spindle output. The first machining condition may be the spindle torque instead of the spindle output.
[0049] The second machining conditions are machining conditions different from the first machining conditions. The second machining conditions are machining conditions that can suppress peak power consumption compared to when machining is performed under the first machining conditions. In other words, the second machining conditions are machining conditions that can suppress the load on the tool compared to when machining is performed under the first machining conditions.
[0050] The second machining conditions are set, for example, by setting parameters in the numerical control device 2. The second machining conditions may be set, for example, using a numerical value indicating the machining conditions or a numerical value indicating a ratio to the first machining conditions.
[0051] The power consumption is, for example, the power consumed by the servo motor 5 that drives each drive axis. The power consumption may also be the power consumed by the spindle motor 7 that drives the main axis.
[0052] The second machining condition is, for example, a machining condition indicating a feed rate slower than the feed rate indicated by the first machining condition, for example, a feed rate that is 50% of the feed rate indicated by the first machining condition.
[0053] [Amendment based on Rule 91 27.08.2025] The second machining condition may be a machining condition that indicates a feed rate slower than the feed rate indicated by the first machining condition and a spindle output lower than the spindle output indicated by the first machining condition. The second machining condition may, for example, be a feed rate that is 50% of the feed rate indicated by the first machining condition and a spindle output that is 80% of the spindle output indicated by the first machining condition.
[0054] When changing the spindle output, the spindle rotation speed can be slowed down to match the feed rate. Alternatively, when changing the spindle output, the spindle rotation speed can be increased to match the material of the workpiece. In other words, the spindle rotation speed can be increased or decreased as long as the peak power consumption is suppressed.
[0055] The condition setting unit 214 sets the machining conditions for the first time period to the second machining conditions based on the process switching command, time information, and condition information. When the machining program shown in Figure 3 is executed, the condition setting unit 214 sets the feed rate to 50 [mm / min] for three seconds after the tool preparation command is executed, for example.
[0056] The control unit 215 controls the drive axis in a first time period based on the second machining conditions set by the condition setting unit 214. Furthermore, the control unit 215 controls the drive axis in a second time period other than the first time period in one process based on the first machining conditions specified in the machining program.
[0057] 4 is a diagram showing an example of the transition of the load applied to the spindle in one process. The dashed line shows the transition of the load when the workpiece is machined under the first machining conditions. The solid line shows the transition of the load when the workpiece is machined under the second machining conditions. The dashed line shows the feed rate of the tool. The load applied to the spindle is roughly proportional to the power consumed by the spindle motor.
[0058] During the first time period, the peak power consumption of the processing machine 1 is lower when the workpiece is processed under the second processing conditions than when the workpiece is processed under the first processing conditions.
[0059] 5 is a flowchart showing an example of processing executed by the numerical control device 2. In the numerical control device 2, first, the program acquisition unit 211 acquires a machining program (step SA1).
[0060] Next, the determination unit 212 determines whether there is a process switching command in the machining program (step SA2), and then the information acquisition unit 213 acquires time information and condition information (step SA3).
[0061] Next, the condition setting unit 214 sets the machining conditions for the first time period (step SA4). Finally, the control unit 215 controls the drive axis (step SA5), and the process ends.
[0062] The numerical control device 2 may output the power consumption when the machining program is executed.
[0063] Fig. 6 is a block diagram showing an example of the functions of the numerical control device 2. The numerical control device 2 shown in Fig. 6 includes a power information acquisition unit 216, a storage unit 217, and an output unit 218 in addition to the program acquisition unit 211, the discrimination unit 212, the information acquisition unit 213, the condition setting unit 214, and the control unit 215 included in the numerical control device 2 shown in Fig. 2. The program acquisition unit 211, the discrimination unit 212, the information acquisition unit 213, the condition setting unit 214, and the control unit 215 have already been described using Fig. 2, so their description will be omitted here.
[0064] The power information acquisition unit 216 and the output unit 218 are realized, for example, by the hardware processor 201 performing arithmetic processing using a system program stored in the ROM 203 and various data stored in the nonvolatile memory 205. The storage unit 217 is realized, for example, by storing power information in the nonvolatile memory 205.
[0065] The power information acquiring unit 216 acquires power information indicating the power consumption in one process. The power information is time-series data indicating the power consumption in one process by the processing machine 1. The power information acquiring unit 216 acquires the power information from, for example, the servo amplifier 4 that supplies power to the servo motor 5. The power information acquiring unit 216 may also acquire the power information from the spindle amplifier 6 that supplies power to the spindle motor 7.
[0066] The storage unit 217 stores the power information acquired by the power information acquisition unit 216 in association with the condition information. The storage unit 217 stores, for example, time-series data of power consumption indicated by the power information in association with the feed speed of the tool.
[0067] The output unit 218 outputs the power information and condition information stored in the memory unit 217. The output unit 218 outputs the power information and condition information to, for example, a display of the input / output device 3. The output unit 218, for example, displays the power information and the condition information side by side on the display. This allows the operator to check the power consumption when the workpiece is machined under the second machining conditions.
[0068] The power information may include first power information indicating the power consumption consumed when the machining conditions in the first time period are the first machining conditions, and second power information indicating the power consumption consumed when the machining conditions in the first time period are the second machining conditions. In this case, the output unit 218 may output at least one of the integrated power consumption indicated by the first power information and the integrated power consumption indicated by the second power information, and the average power consumption indicated by the first power information and the average power consumption indicated by the second power information, in a comparable manner.
[0069] For example, the comparative output means that the cumulative power consumption indicated by the first power information and the cumulative power consumption indicated by the second power information are displayed side by side, and the comparative output means that the average power consumption indicated by the first power information and the average power consumption indicated by the second power information are displayed side by side.
[0070] The power information may further include third power information indicating the power consumption when the machining conditions in a second time period other than the first time period in one process are the first machining conditions. In this case, the output unit 218 may output at least one of the maximum power consumption indicated by the second power information and the maximum power consumption indicated by the third power information, and the minimum power consumption indicated by the second power information and the minimum power consumption indicated by the third power information in a manner that allows comparison.
[0071] When the power consumption indicated by the power information exceeds a predetermined threshold, the condition setting unit 214 may change the first time period to include the time point at which the power consumption indicated by the power information exceeds the predetermined threshold.
[0072] For example, power consumption may exceed a predetermined threshold during a second time period other than the first time period in one process. In this case, the peak power consumption increases at the point when the predetermined threshold is exceeded. Therefore, when power consumption exceeds the predetermined threshold, the condition setting unit 214 extends the first time period to include this point. This makes it possible to suppress the peak power consumption in one process.
[0073] Alternatively, if the difference between the peak power consumption of a process and the average power consumption of a process exceeds a predetermined threshold, the condition setting unit 214 expands the first time period to include the time point at which the peak power consumption is obtained. The predetermined threshold is, for example, 10 kW.
[0074] The numerical control device 2 may perform a machining simulation. By performing the machining simulation, it is possible to obtain optimal machining conditions for suppressing peak power consumption.
[0075] Fig. 7 is a block diagram showing an example of the functions of the numerical control device 2. The numerical control device 2 shown in Fig. 7 includes a simulation unit 219 in addition to the program acquisition unit 211, discrimination unit 212, information acquisition unit 213, condition setting unit 214, control unit 215, power information acquisition unit 216, storage unit 217, and output unit 218 included in the numerical control device 2 shown in Fig. 6. The program acquisition unit 211, discrimination unit 212, information acquisition unit 213, condition setting unit 214, control unit 215, power information acquisition unit 216, storage unit 217, and output unit 218 have already been described using Fig. 6, so description thereof will be omitted here.
[0076] The simulation unit 219 is realized, for example, by the hardware processor 201 performing calculations using a system program stored in the ROM 203 and various data and machining programs stored in the non-volatile memory 205.
[0077] The simulation unit 219 performs a simulation of the operation of the drive axis during at least a first time period based on the first machining conditions and the second machining conditions. The simulation unit 219 performs the simulation using a simulation model of the processing machine 1.
[0078] The simulation model is a model for simulating the operation of the processing machine 1. The simulation model is generated based on the shape, weight, material, etc. of the structures that make up the processing machine 1. The simulation model is generated based on the performance of the servo motor 5 and the spindle motor 7. The simulation unit 219 executes a simulation of the operation of the drive axis based on the first processing condition and the second processing condition, thereby acquiring information indicating the power consumption of the processing machine 1.
[0079] The output unit 218 outputs the results of the simulation for the first time slot performed under the first machining conditions and the results of the simulation for the first time slot performed under the second machining conditions in a manner that allows them to be compared. The output unit 218 displays the results of the simulation for the first time slot performed under the first machining conditions and the results of the simulation for the first time slot performed under the second machining conditions side by side on, for example, the display of the input / output device 3. This allows the operator to estimate to what extent peak power consumption will be reduced when machining is performed under the second machining conditions compared to when machining is performed under the first machining conditions.
[0080] Fig. 8 is a flowchart showing an example of processing executed by the numerical control device 2 having the simulation unit 219. The processing from step SB1 to step SB5 shown in Fig. 8 is the same as the processing from step SA1 to step SA5 shown in Fig. 5. Therefore, the processing from step SB6 onwards will be explained here.
[0081] When the drive shaft is controlled, the information acquisition unit 213 acquires power information indicating the power consumption in one process (step SB6). Next, the storage unit 217 stores the power information acquired by the information acquisition unit 213 in association with the condition information (step SB7).
[0082] Next, the simulation unit 219 executes the simulation (step SB8). Finally, the output unit 218 outputs the results of the simulation (step SB9), and the process ends.
[0083] As described above, the numerical control device 2 includes a discrimination unit 212 that analyzes a machining program for performing machining including a plurality of processes and discriminates a process switching command in the machining program; an information acquisition unit 213 that acquires time information relating to a first time period of one of the plurality of processes and condition information indicating second machining conditions different from the first machining conditions specified in the machining program; a condition setting unit 214 that sets the machining conditions in the first time period to second machining conditions based on the process switching command, the time information, and the condition information; and a control unit 215 that controls the drive axis in the first time period based on the second machining conditions set by the condition setting unit 214.
[0084] Therefore, the numerical control device 2 can suppress the peak power consumption of the processing machine 1 when the processing program is executed. As a result, the peak power consumption of the entire factory can be suppressed. In this case, it is possible to prevent the power consumption of the entire factory from exceeding the power supply capacity of the factory.
[0085] Furthermore, the numerical control device 2 can reduce the load on the tool and the processing machine 1. As a result, the life of the tool and the processing machine 1 is extended.
[0086] Furthermore, the numerical control device 2 determines the timing for changing the machining conditions based on time information, which reduces the processing load of the numerical control device 2 compared to when the numerical control device 2 determines the timing for changing the machining conditions based on position information of the drive axes.
[0087] The numerical control device 2 further includes a power information acquisition unit 216 that acquires power information indicating the power consumption in one process, a storage unit 217 that stores the power information acquired by the power information acquisition unit 216 in association with condition information, and an output unit 218 that outputs the power information and condition information stored in the storage unit 217. Therefore, the operator can confirm to what extent the peak power consumption has been reduced by changing the machining conditions in the first time slot. This allows the operator to adjust the setting parameters of the second machining conditions.
[0088] Furthermore, if the power consumption indicated by the power information exceeds a predetermined threshold, the condition setting unit 214 changes the first time period to include the time point at which the power consumption indicated by the power information exceeds the predetermined threshold. Therefore, the numerical control device 2 can automatically correct the timing at which the machining conditions are changed from the first machining conditions to the second machining conditions.
[0089] The power information includes first power information indicating the power consumption when the machining conditions in the first time slot are the first machining conditions and second power information indicating the power consumption when the machining conditions in the first time slot are the second machining conditions. The output unit 218 outputs the integrated power consumption indicated by the first power information and the integrated power consumption indicated by the second power information, and at least one of the average power consumption indicated by the first power information and the average power consumption indicated by the second power information, in a manner that allows comparison. Therefore, the operator can confirm the extent to which at least one of the integrated power consumption and the average power consumption has decreased as a result of changing the machining conditions in the first time slot. This allows the operator to effectively adjust the setting parameters of the second machining conditions.
[0090] The power information further includes third power information indicating the power consumption when the machining conditions in a second time slot other than the first time slot in one process are the first machining conditions, and the output unit 218 outputs at least one of the maximum power consumption indicated by the second power information and the maximum power consumption indicated by the third power information, and the minimum power consumption indicated by the second power information and the minimum power consumption indicated by the third power information, in a comparable manner. This allows the operator to confirm whether there is a peak in the second time slot that is higher than the peak power consumption in the first time slot. This allows the operator to effectively adjust the setting parameters for the first time slot.
[0091] The numerical control device 2 further includes a simulation unit 219 that executes a simulation of the operation of the drive axis during at least a first time period based on the first machining conditions and the second machining conditions, and the output unit 218 outputs the results of the simulation during the first time period executed based on the first machining conditions and the results of the simulation during the first time period executed based on the second machining conditions so that they can be compared. Therefore, even if the machining machine 1 does not actually machine a workpiece, the operator can adjust the setting parameters of the second machining conditions.
[0092] Although the present disclosure has been described in detail, the present disclosure is not limited to the individual embodiments described above. Various additions, substitutions, modifications, partial deletions, etc. are possible to these embodiments without departing from the gist of the present disclosure or the gist of the present disclosure derived from the content of the claims and their equivalents. Furthermore, these embodiments can also be implemented in combination.
[0093] The following are supplementary notes related to embodiments of the present disclosure. Supplementary note [1] A numerical control device comprising: a discrimination unit that analyzes a machining program for performing machining including a plurality of processes and discriminates a process switching command in the machining program; an information acquisition unit that acquires time information related to a first time period of one of the plurality of processes and condition information indicating second machining conditions different from first machining conditions specified in the machining program; a condition setting unit that sets the machining conditions in the first time period to the second machining conditions based on the process switching command, the time information, and the condition information; and a control unit that controls a drive axis in the first time period based on the second machining conditions set by the condition setting unit. Supplementary note [2] The numerical control device according to supplementary note [1] further comprises: a power information acquisition unit that acquires power information indicating power consumption in the one process; a memory unit that stores the power information acquired by the power information acquisition unit in association with the condition information; and an output unit that outputs the power information and the condition information stored in the memory unit. and a control unit for controlling the power consumption of the power supply in the first time period so as to change the power consumption of the power supply when the power consumption of the power supply exceeds a predetermined threshold. The control unit is configured to control the power consumption of the power supply when the power consumption of the power supply exceeds a predetermined threshold. The control unit is configured to control the power consumption of the power supply when the power consumption of the power supply exceeds a predetermined threshold. The control unit is configured to control the power consumption of the power supply when the power consumption of the power supply exceeds a predetermined threshold. The control unit is configured to control the power consumption of the power supply when the power consumption of the power supply exceeds a predetermined threshold.Supplementary Note [5] The numerical control device according to Supplementary Note [4], wherein the power information further includes third power information indicating power consumption when a machining condition in a second time slot other than the first time slot in the one process is the first machining condition, and the output unit outputs at least one of a maximum power consumption indicated by the second power information and a maximum power consumption indicated by the third power information, and a minimum power consumption indicated by the second power information and a minimum power consumption indicated by the third power information, in a comparable manner.Supplementary Note [6] The numerical control device according to any of Supplementary Note [2] to [5], further comprising a simulation unit that executes a simulation of operation of the drive axis at least during the first time slot based on the first machining conditions and the second machining conditions, and the output unit outputs a result of the simulation for the first time slot executed based on the first machining conditions and a result of the simulation for the first time slot executed based on the second machining conditions, in a comparable manner. Supplementary Note [7] A computer-readable storage medium storing instructions for causing a computer to execute the following: analyzing a machining program for performing machining including a plurality of processes, determining a process changeover command in the machining program; acquiring time information regarding a first time period of one of the plurality of processes and condition information indicating a second machining condition different from a first machining condition specified in the machining program; setting the machining condition in the first time period to the second machining condition based on the process changeover command, the time information, and the condition information; and controlling a drive axis in the first time period based on the set second machining condition.
[0094] REFERENCE SIGNS LIST 1 Machining machine 2 Numerical control device 201 Hardware processor 202 Bus 203 ROM 204 RAM 205 Non-volatile memory 206 Interface 207 Axis control circuit 208 Spindle control circuit 209 PLC 210 I / O unit 211 Program acquisition unit 212 Discrimination unit 213 Information acquisition unit 214 Condition setting unit 215 Control unit 216 Power information acquisition unit 217 Storage unit 218 Output unit 219 Simulation unit 3 Input / output device 4 Servo amplifier 5 Servo motor 6 Spindle amplifier 7 Spindle motor 8 Auxiliary equipment
Claims
1. A numerical control device comprising: a discrimination unit that analyzes a machining program for machining including a plurality of processes and discriminates a process changeover command in the machining program; an information acquisition unit that acquires time information relating to a first time period of one of the plurality of processes and condition information indicating a second machining condition different from the first machining condition specified in the machining program; a condition setting unit that sets the machining condition in the first time period to the second machining condition based on the process changeover command, the time information, and the condition information; and a control unit that controls a drive axis in the first time period based on the second machining condition set by the condition setting unit.
2. A numerical control device as described in claim 1, further comprising: a power information acquisition unit that acquires power information indicating the power consumption consumed in the one process; a memory unit that stores the power information acquired by the power information acquisition unit in association with the condition information; and an output unit that outputs the power information and the condition information stored in the memory unit.
3. A numerical control device as described in claim 2, wherein, when the power consumption indicated by the power information exceeds a predetermined threshold, the condition setting unit changes the first time period so as to include the point in time when the power consumption indicated by the power information exceeds the predetermined threshold.
4. A numerical control device as described in claim 2 or 3, wherein the power information includes first power information indicating the power consumption consumed when the machining conditions in the first time period are the first machining conditions, and second power information indicating the power consumption consumed when the machining conditions in the first time period are the second machining conditions, and the output unit outputs at least one of the integrated power consumption indicated by the first power information and the integrated power consumption indicated by the second power information, and the average power consumption indicated by the first power information and the average power consumption indicated by the second power information in a comparable manner.
5. A numerical control device as described in claim 4, wherein the power information further includes third power information indicating the power consumed when the machining conditions in a second time period other than the first time period in the one process are the first machining conditions, and the output unit outputs at least one of the maximum power consumption indicated by the second power information and the maximum power consumption indicated by the third power information, and the minimum power consumption indicated by the second power information and the minimum power consumption indicated by the third power information in a manner that allows comparison.
6. A numerical control device according to any one of claims 2 to 5, further comprising a simulation unit that executes a simulation of the operation of the drive axis during at least the first time period based on the first machining conditions and the second machining conditions, and the output unit outputs the results of the simulation during the first time period executed based on the first machining conditions and the results of the simulation during the first time period executed based on the second machining conditions in a manner that allows them to be compared.
7. A computer-readable storage medium that stores instructions that cause a computer to execute the following: analyzing a machining program for performing machining including a plurality of processes and determining a process changeover command in the machining program; acquiring time information relating to a first time period of one of the plurality of processes and condition information indicating a second machining condition different from the first machining condition specified in the machining program; setting the machining condition in the first time period to the second machining condition based on the process changeover command, the time information, and the condition information; and controlling a drive axis in the first time period based on the set second machining condition.