NUMERICAL CONTROL AND MACHINE SYSTEM
Patent Information
- Application Number
- DE102018201758
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2017-02-28
- Filing Date
- 2018-02-06
- Publication Date
- 2024-09-19
- Estimated Expiration
- 2038-02-06
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
BACKGROUND OF THE INVENTION Field of the invention The present invention relates to a controller that controls machinery in a machining center or the like. More specifically, the present invention relates to a numerical controller that controls machinery based on a program that describes operations or functional steps of the machinery. Furthermore, the present invention relates to a machinery system with a numerical controller. State of the art Conventionally, the changing of a rotating tool used in a machining center or the like is carried out in the following manner. First, Fig. 10 shows examples of commands of a conventional machine program that performs a tool change. As shown in Fig. 10, when a tool is changed, first, a stop command for the rotation of the axis of the rotating tool (M05) is executed. Following this command, a feed axis positioning command (G00) including positioning at a tool change position is executed, and then a tool change command (M06) is executed. Furthermore, during the execution of the tool change command (M06), an operation for axis positioning of the rotating tool and the feed axis is carried out.Rotating tool (rotating tool axis orientation) by rotating an axis of the rotating tool to a position where the rotating tool can be changed, and performing a tool change operation. Therefore, the rotating tool axis orientation is performed after the tool change command begins, and then the tool change operation begins. <begriffe> In a machining center, an axis of a rotating tool or a turning tool axis is generally referred to as a main spindle. However, in a lathe machine tool, a main spindle generally refers to an axis that rotates a workpiece that is the target object for machining. Therefore, in this specification, to clearly indicate a turning target object, the term "turning tool axis" is used instead of the term "main spindle." Furthermore, the "turning tool axis" includes a turning tool axis in a combined machine system, such as a lathe-machine system. In the following specification, "stopping the rotation of a turning tool axis" is simply referred to as "stopping the turning tool axis." Fig.11 is an example of a conceptual view illustrating an aspect of machining in a combined lathe in which a main spindle is an axis that rotates a workpiece and has a turning tool axis separate from the main spindle. As shown in FIG. 11, in an example of a combined lathe, for example, a machining operation is performed such that a workpiece 2 is rotated by a main spindle 4, a cutter 6 machines the workpiece 2, and a turning tool 8 attached to a turning tool axis 12 machines the workpiece 2. <Orientierung der Drehwerkzeugachse> 12A to 12D show a relationship between a turning tool axis and a tool holder of a turning tool. Fig. 12A shows an explanatory view of a turning tool holder (a tool unit 10), and Fig. 12B shows an explanatory view of the turning tool axis 12. Fig. 12C shows a view when the tool unit 10 is viewed from a direction A parallel to the axis of the tool unit 10. Fig. 12D shows a view when the turning tool axis is viewed from a direction B parallel to the axis of the turning tool axis 12. The turning tool is mounted on the turning tool axis 12 such that a tapered portion 10a (see Fig. 12A) of the tool unit (tool holder) for holding the turning tool is inserted and fitted into a tapered portion 12a (see Fig. 12B) of the turning tool axis 12, and a key 12b (see Fig. 12D) of the turning tool axis 12 is engaged with a key groove 10b (see Fig. 12C) of the tool unit. Since the key 12b of the turning tool axis 12 is engaged with the key groove 10b of the tool unit 10, the turning tool can be rotated by rotating the turning tool axis 12. During the change of a turning tool, an operation for detaching the turning tool, which is attached to the turning tool axis 12 in the manner described above, is performed by using a handle and by attaching the next tool. Fig. 13 shows an aspect of a handle 14 during the tool change. As shown in Fig. 13, a key 14a is also provided in the handle 14, and it is necessary to arrange the key 14a so that it engages with the key groove 10b of the tool unit 10 during the tool change. Furthermore, during the tool change, the key 12b of the turning tool axis and the key groove 10b of the tool unit are arranged so that they engage with each other. During the stop of the turning tool axis, the position of the key 12b is fundamentally unpredictable.Therefore, when the tool change is to be performed, it is necessary to position the turning tool axis such that the position of the key 12b (the key groove 10b) is always at a specific position with respect to the handle 14. A positioning operation for positioning the turning tool axis 12 at a specific position is referred to as a turning tool axis orientation. Fig. 14A, Fig. 14B, and Fig. 14C show examples of conventional typical program commands when performing a tool change. In Fig. 14A, Fig. 14B, and Fig. 14C, corresponding commands in the program have the following meanings: M05: Stop command for the turning tool axis G00Zzz: Feed axis positioning command with positioning at the tool change position (Z: feed axis name, zz: positioning or movement amount command) M06Txx: Tool change command (Txx: command for the tool to be changed, xx: tool number) In the example of Fig. 14A, after the turning tool axis stop command (M05) is executed, the feed axis positioning (including positioning at the tool change position) is executed (G00Zzz), and the tool change command (M06Txx) is executed. In this example, the execution of the tool change command (M06Txx) includes a turning tool axis orientation operation and tool change. Figs. 15A and 15B show the execution timing of corresponding commands in the example shown in Fig. 14A. Fig. 15A is a conceptual view showing the meaning of corresponding commands in the example program shown in Fig. 14A. Fig. 15B is a timing chart in which the horizontal axis represents time. First, the turning tool axis stop command (M05) is executed until time t1.Subsequently, a feed axis positioning command (G00Zzz) is executed between times t1 and t2. The tool change command (M06Txx) starts at time t2. As shown in Fig. 15B, in the tool change command (M06Txx), a turning tool axis orientation operation is first executed, and then a tool change operation is executed at time t3. In the example of Fig. 14B, feed axis positioning (with positioning at a tool change position) (G00Zzz) is executed, and a tool change command (M06Txx) is executed. In this example, during the execution of the tool change command (M06Txx), a turning tool axis stop, a turning tool axis orientation, and a tool change operation are executed. Figs. 16A and 16B show timings of execution of respective commands of the example shown in Fig. 14B. Fig. 16A is a conceptual view showing the meaning of the respective commands in the example program shown in Fig. 14B. Fig. 16B is a timing chart in which the horizontal axis represents time. First, a feed axis positioning command (G00Zzz) is executed until time t4. Then, the tool change command (M06Txx) is executed at time t4. As shown in Fig.As shown in Figure 16B, in the tool change command (M06Txx), an operation to stop the turning tool axis is first executed at time t4. Orientation is performed at time t5, and then a tool change operation is executed at time t6. In the example of Fig. 14C, the feed axis positioning (including positioning at a tool change position) (G00Zzz) and the turning tool axis stop command (M05) are executed, and the tool change command (M06Txx) is executed. During the execution of the tool change command (M06Txx), the turning tool axis orientation and the tool change operation are executed in this example. Figs. 17A and 17B show the execution timings of corresponding commands in the example shown in Fig. 14C. Fig. 17A is a conceptual view illustrating the meaning of corresponding commands in the example program shown in Fig. 14C. Fig. 17B is a timing chart in which the horizontal axis represents time. First, at time t7, a feed axis positioning command (G00Zzz) and a turning tool axis stop command (M05) start.Although the turning tool axis stop command ends earlier than the feed axis positioning operation, the feed axis positioning operation continues until time t8 after the turning tool axis stop command ends. The tool change command (M06Txx) is executed at time t8. As shown in Fig. 17B, in the tool change command (M06Txx), the turning tool axis orientation operation is executed first, followed by the tool change operation at time t9. Patent Document 1 listed below discloses an NC machine system in which it is determined whether a main spindle has arrived at a predetermined position and an orientation operation is completed, and a stop of the turning tool axis and an orientation are executed when the orientation has not been achieved. Patent Document 2 relates to a numerical controller having at least two control paths, each of which sequentially pre-reads and analyzes each block of a machining program. A pre-read / analysis operation is suspended by a pre-read / analysis suspension section to judge whether a specified condition is met. Patent Document 3 relates to a multi-channel numerical control system that performs pre-analysis to check whether the tool selection command position is changeable. The goal is to shorten operating time. Patent Document 4 relates to a numerical control system. It decodes a block read from a machine program, calculates execution data used to control a machine tool, and determines whether a feed path resulting from feed commands for control axes of the machine tool exists or not based on the calculated execution data. If the feed path resulting from the feed commands for the control axes does not exist, as a result of such a determination, processes for the current block are omitted, thereby shortening the tact time. Patent Document 5 shows that methods for optimizing numerical control programs are known. Furthermore, Patent Document 6 describes tool changing. Patent Document 1: Unexamined Japanese Patent Application JP 2004-1 229 APatent Document 2: DE 10 2013 015 236 A1Patent Document 3: DE 603 20 164 T2Patent Document 4: JP 2010-069545 A (corresponds to DE 10 2015 010 654 A1)Patent Document 5: US 2004-0236462 A1Patent Document 6: JP 2012-141762 A OVERVIEW OF THE INVENTION In conventional machine tools, there is a problem that the execution time increases because the commands contained in a program are executed sequentially. In the case of the program shown in Fig. 14B (Fig. 16A), the time required to execute the rotation stop is always required because the turning tool axis stop is executed before the turning tool axis orientation operation is executed at the beginning of the tool change command. For example, if the program shown in Fig. 14A (Fig. 15A) or Fig. 14B (Fig. 16A) is modified so that M05 (the turning tool axis stop command) is executed at the same time as the feed axis positioning command, as in the program shown in Fig. 14C (Fig. 17A), the tool change execution time can be shortened by a time required to stop the turning tool axis. However, such program modification must be performed individually for existing programs, and such modification requires laborious operations. Furthermore, there is a concern that modification errors may occur during modification of the programs. Furthermore, there may be a case where modification of programs may not be permitted depending on a usage state of a program by users. However, there are no problems even if the turning tool axis orientation and the turning tool axis stop are performed at any time before the tool change after the end of the cutting process. Therefore, the inventor considers that the processing time can be further shortened by adjusting the timing of these processes. On the other hand, there is a concern that if the program itself is modified, such as the program shown in Fig. 14C (Fig. 17A) as described above, then the process of modifying existing programs may be cumbersome and that an unexpected error may occur due to the modification. Therefore, it is desirable to realize a system that shortens the processing time required for stopping the turning tool axis and orienting the turning tool axis during tool change by adjusting the machining timings as described above without modifying the program in Fig. 14A (Fig. 15A) or Fig. 14B (Fig. 16A), as is achieved for the program shown in Fig. 14C (Fig. 17A). Furthermore, it is desirable to further shorten the processing time with respect to the program shown in Fig. 14C (Fig. 17A). In the technique disclosed in Patent Document 1, it is not possible to execute the rotary tool axis stop and the positioning operation simultaneously if the rotary tool axis stop command is present before a command to move to a predetermined position. In view of the problem described above, it is an object of the present invention to provide a numerical control capable of shortening the processing time during tool change. The inventor conceived the present invention by finding a way to shorten the lead time by adjusting the execution timing of the relevant processes during tool changeover and by creating a special method. The principles of the solution in the present invention are described below. <Prinzip 1 zur Lösung> Principle 1 for solving the problem is to shorten the time for the turning tool axis orientation operation without modifying a program. Specifically, a program command is preemptively set up so that a turning tool axis orientation operation begins during the execution of a feed axis positioning command block. Since the turning tool axis orientation can be executed earlier than the execution of the tool change command without modifying the program command, it is possible to shorten the processing time through such a process. Principle 1 for solving the problem can be applied to all the cases of Figs. 14A, 14B, and 14c. In this specification, a group of operations based on corresponding commands constituting a program is referred to as a block. For example, the execution of a positioning command block means the execution of a group of operations (block) represented by one positioning command. Fig. 1 is a timing chart illustrating the operation of Solution Principle 1. Fig. 1 is a timing chart in which the horizontal axis represents time and shows times at which corresponding processes are executed. As shown in Fig. 1, the execution of a feed-axis positioning command starts at time t10 when a rotary tool axis stop command is executed, and the rotary tool axis stop command ends at the same time t10. Similar to the conventional technique, according to the solution principle 1, the execution of the turning tool axis orientation operation included in the tool change command starts at time t10 (that is, at the same time as the execution of the feed axis positioning command starts), although the tool change command is executed at time t11. Through such a process, the turning tool axis orientation operation, which was conventionally performed during the tool change command and whose execution began at time t11, which is the initial time of the tool change command, can be executed at an earlier time. Consequently, it is possible to shorten the execution time for the tool change command starting at time t11, and thus the runtime can be shortened. As shown in Fig. 1, the execution time of the tool change command, which conventionally starts at t11 and ends at t13, can be shortened by an amount corresponding to the turning tool axis orientation operation, and the tool change command can be completed at time t12. <Prinzip 2 zur Lösung> Solution principle 2 to solve the problem is to shorten the execution time of the turning tool axis stop command without modifying the program. Specifically, a program command is proactively created so that the turning tool axis stop command is executed at the same time as the positioning command (for positioning at the tool change position) before the tool change command is executed. In this way, it is possible to shorten the execution time of a turning tool axis stop command block or the stop time of the turning tool axis without modifying the program command, and the turnaround time during tool change can be shortened. Fig. 2A, Fig. 2B, Fig. 3A, and Fig. 3B show examples of timing charts illustrating the operation of solution principle 2. <Beispiel 1 des Prinzips 2 zur Lösung> Fig. 2A and Fig. 2B show processes when the solution principle 2 is applied to the program instruction shown in Fig. 14A. Fig. 2A shows the program instruction shown in Fig. 14A, and Fig. 2B shows a timing chart showing the execution timings of respective instructions when the solution principle 2 is applied to the program instruction of Fig. 14A. In the program command shown in Fig. 2A, the turning tool axis stop command (M05), the feed axis positioning command (G00Zzz), and the tool change command (M06Txx) are executed sequentially, as in the conventional technique. In contrast, according to the solution principle 2 shown in Fig. 2B, the execution of the turning tool axis stop command block starts at time t14, simultaneously with the feed axis positioning command executed subsequently. Consequently, it is possible to significantly shorten the execution time for the turning tool axis stop command and reduce the cycle time. The execution of the feed axis positioning command is completed at time t15, and the execution of the tool change command starts at the same time t15. <Beispiel 2 des Lösungsprinzips 2> 3A and 3B show processes when Solution Principle 2 is applied to the program command shown in Fig. 14B. Fig. 3A shows the program command shown in Fig. 14B, and Fig. 3B is a timing chart showing execution timings of corresponding commands when the program command shown in Fig. 14B is used in conjunction with Solution Principle 2. In the program command shown in Fig. 3A, the feed axis positioning command (G00Zzz) and the tool change command (M06Txx) are executed sequentially, as in the conventional technique. The tool change command includes a turning tool axis stop command, and both commands are executed simultaneously. In contrast, according to Solution Principle 2, as shown in Fig. 3B, the execution of a turning tool axis stop operation in the tool change command starts at time t16, simultaneously with the execution of a feed axis positioning command that precedes the turning tool axis stop. Consequently, it is possible to significantly shorten the execution time of the turning tool axis stop command and thus shorten the turnaround time. The execution of the feed axis positioning command is completed at time t17, and the execution of the tool change command starts at the same time t17. The execution time of the tool change command can be shortened by an amount equal to the execution time for stopping the turning tool axis, and therefore the turnaround time can be shortened. The present invention is an invention based on the solution principles 1 and 2, and in which the following means are employed. (1) A numerical controller (for example, a numerical controller 100, which will be described below) according to the present invention includes: a program input unit (for example, a program input unit 102, which will be described below) that inputs a program describing operations of a machine; a program evaluation unit (for example, a program evaluation unit 104, which will be described below) that evaluates the input program and outputs an evaluation result;and a program execution unit (for example, a program execution unit 114, described later) that controls the machine based on the evaluation result obtained by the program evaluation unit, the program evaluation unit comprising: a block evaluation unit (for example, a block evaluation unit 106, described later) that evaluates blocks of instructions in the program to obtain an evaluation result and stores the evaluation result in a block information storage unit; the block information storage unit (for example, a block information storage unit 112, described later) that stores the evaluation result;a block information checking unit (for example, a block information checking unit 108 described later) that checks the evaluation result obtained by the block evaluation unit and instructs a block information modifying unit to modify the evaluation result for the instruction block when a predetermined condition is satisfied;and the block information modifying unit (for example, a block information modifying unit 110 described later) that modifies the evaluation result stored in the block information storage unit based on the instruction of the block information checking unit. When it is determined that one or two or more feed-axis positioning commands exist before a tool change command found in the evaluation result, the block information checking unit instructs the block information modifying unit to modify the evaluation result stored in the block information storage unit such that a rotary tool axis orientation operation is executed in the found tool change command during the execution of the feed-axis positioning command in any one of the one or two or more feed-axis positioning command blocks. (2) In the numerical controller according to (1), when it is determined that one or two or more feed-axis positioning commands exist before the tool change command found in the evaluation result, the block information checking unit may instruct the block information modifying unit to modify the evaluation result stored in the block information storing unit such that a turning tool axis orientation operation is executed in the found tool change command during the execution of the first feed-axis positioning command in the one or two or more feed-axis positioning command blocks. (3) When it is determined in the numerical controller according to (1) or (2) that one or two or more feed axis positioning commands exist before the tool change command found in the evaluation result, the block information checking unit may instruct the block information modifying unit to remove a turning tool axis orientation execution step in the found tool change command from the operations or the execution steps in the tool change command. (4) A numerical controller according to the present invention comprises: a program input unit that inputs a program describing operations or execution steps of a machine; a program evaluation unit that evaluates the input program and outputs an evaluation result; and a program execution unit that controls the machine based on the evaluation result obtained by the program evaluation unit, wherein the program evaluation unit comprises: a block evaluation unit that evaluates blocks of instructions in the program to obtain an evaluation result and stores the evaluation result in a block information storage unit; the block information storage unit that stores the evaluation result;a block information checking unit that checks the evaluation result obtained by the block evaluation unit and instructs a block information modifying unit to modify the evaluation result for the instruction block when a predetermined condition is met;and the block information modifying unit that modifies the evaluation result stored in the block information storage unit based on the instruction of the block information checking unit. If it is determined that one or two or more feed-axis positioning commands exist before a tool change command found in the evaluation result, and a rotary tool axis stop command exists before the one or two or more feed-axis positioning commands, then the block information checking unit instructs the block information modifying unit to modify the evaluation result stored in the block information storage unit such that the rotary tool axis stop command operation is executed during the execution of the feed-axis positioning command of any one of the two or more feed-axis positioning command blocks. (5) In the numerical controller according to (4), if it is determined that one or two or more feed-axis positioning commands exist before the tool change command found in the evaluation result, and if a rotary tool axis stop command exists before the one or two or more feed-axis positioning commands, then the block information checking unit may instruct the block information modifying unit to modify the evaluation result stored in the block information storing unit such that the rotary tool axis stop command is executed during the execution of the first feed-axis positioning command in the one or two or more feed-axis positioning command blocks. (6) In the numerical controller according to (4) or (5), when it is determined that one or two or more feed-axis positioning commands exist before the tool change command found in the evaluation result, and when a turning tool axis stop command exists before the one or two or more feed-axis positioning commands, the block information checking unit may instruct the block information modifying unit to remove the evaluation result of the turning tool axis stop command existing before the one or two or more feed-axis positioning commands from the block information storage unit. (7) A numerical controller according to the present invention comprises: a program input unit that inputs a program describing operations of a machine; a program evaluation unit that evaluates the input program and outputs an evaluation result; and a program execution unit that controls the machine based on the evaluation result obtained by the program evaluation unit, wherein the program evaluation unit comprises: a block evaluation unit that evaluates blocks of instructions in the program to obtain an evaluation result and stores the evaluation result in a block information storage unit; the block information storage unit that stores the evaluation result;a block information checking unit that checks the evaluation result obtained by the block evaluation unit and instructs a block information modifying unit to modify the evaluation result for the instruction block when a predetermined condition is met;and the block information modifying unit that modifies the evaluation result stored in the block information storage unit based on the instruction of the block information checking unit. If it is determined that one or two or more feed-axis positioning commands exist before a tool change command found in the evaluation result, and if a rotary tool axis stop command does not exist before the one or two or more feed-axis positioning commands, then the block information checking unit instructs the block information modifying unit to modify the evaluation result stored in the block information storage unit such that a rotary tool axis stop operation is executed in the tool change command during the execution of the feed-axis positioning command in one of the one or two or more feed-axis positioning command blocks. (8) In the numerical controller according to (7), when it is determined that one or two or more feed-axis positioning commands exist before a tool change command found in the evaluation result, and when a rotary tool axis stop command does not exist before the one or two or more feed-axis positioning commands, the block information checking unit may instruct the block information modifying unit to modify the evaluation result stored in the block information storing unit such that the operation of stopping the rotary tool axis in the tool change command is executed during the execution of the first feed-axis positioning command in the one or two or more feed-axis positioning command blocks. (9) In the numerical controller according to (7) or (8), when it is determined that one or two or more feed-axis positioning commands exist before a tool change command found in the evaluation result, and when a rotary tool axis stop command does not exist before the one or two or more feed-axis positioning commands, the block information checking unit may instruct the block information modifying unit to remove the rotary tool axis stop execution step in the tool change command from the operations or execution steps in the tool change command. (10) A numerical controller according to the present invention comprises: a program input unit that inputs a program describing operations of a machine; a program evaluation unit that evaluates the input program and outputs an evaluation result; and a program execution unit that controls the machine based on the evaluation result obtained by the program evaluation unit, wherein the program evaluation unit comprises: a block evaluation unit that evaluates blocks of instructions in the program so as to obtain an evaluation result and stores the evaluation result in a block information storage unit; the block information storage unit that stores the evaluation result; a block information checking unit that checks the evaluation result obtained by the block evaluation unit and instructs a block information modifying unit to modify the evaluation result for the instruction block,if a predetermined condition is met, and the block information modifying unit modifies the evaluation result stored in the block information storage unit based on the instruction of the block information checking unit, wherein, if it is determined that two or more feed-axis positioning commands exist before a tool change command found in the evaluation result, and if a rotary tool axis stop command exists in the same block as one of the two or more feed-axis positioning commands, then the block information checking unit executes a first process of not issuing an instruction to modify the evaluation result stored in the block information storage unit to the block information modifying unit to execute the rotary tool axis stop command in a block in which the rotary tool axis stop command exists,or the block information checking unit performs a second process of instructing the block information modifying unit to modify the evaluation result stored in the block information storage unit such that the turning tool axis stop command is executed during the execution of the other feed axis positioning command from the two or more feed axis positioning command blocks., (11) In the numerical controller according to (10), when the block information checking unit executes the second process, the block information checking unit may instruct the block information modifying unit to remove the evaluation result of the turning tool axis stop command from a block of the block information storage unit in which the turning tool axis stop command is present. (12) In the numerical controller according to (11), when it is determined that two or more feed-axis positioning commands exist before a tool change command found in the evaluation result, and when a rotary tool axis stop command exists in the same block as the second or a subsequent feed-axis positioning command of the two or more feed-axis positioning commands, the block information checking unit may instruct the block information modifying unit to modify the evaluation result stored in the block information storing unit such that the rotary tool axis stop command is executed during the execution of the first feed-axis positioning command in the one or more feed-axis positioning command blocks. (13) In the numerical controller according to (12), the block information checking unit may instruct the block information modifying unit to remove the evaluation result of the turning tool axis stop command from the second or subsequent block of the block information storage unit in which the turning tool axis stop command is present. (14) If it is determined in the numerical controller according to (1) that one or two or more feed-axis positioning commands exist before a tool change command found in the evaluation result, and if a rotary tool axis stop command exists before the one or both or more feed-axis positioning commands, then the block information checking unit may instruct the block information modifying unit to modify the evaluation result stored in the block information storage unit such that the rotary tool axis stop command is executed during the execution of the feed-axis positioning command in any one of the one or both or more feed-axis positioning command blocks, and the block information checking unit may instruct the block information modifying unit to modify the evaluation result stored in the block information storage unit such thatthat the turning tool axis orientation is performed following the execution of the turning tool axis stop command., (15) If it is determined in the numerical controller according to (1) that one or two or more feed-axis positioning commands exist before a tool change command found in the evaluation result, and if a rotary tool axis stop command does not exist before the one or two or more feed-axis positioning commands, then the block information checking unit may instruct the block information modifying unit to modify the evaluation result stored in the block information storage unit such that a rotary tool axis stop is executed in the tool change command during the execution of the feed-axis positioning command in one of the one or two or more feed-axis positioning command blocks, and the block information checking unit may instruct the block information modifying unit to modify the evaluation result stored in the block information storage unit such thatthat the turning tool axis orientation is carried out following the turning tool axis stop., (16) A machinery system according to the present invention comprises the numerical controller according to any one of (1) to (15), wherein the machinery is controlled by the numerical controller. According to the invention, it is possible to provide a numerical control capable of shortening the throughput time during tool change without modifying an existing program. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a timing chart illustrating operations of Solution Principle 1 of the present invention. Fig. 2A shows an example of a program related to the description of operations of Solution Principle 2 of the present invention. Fig. 2B is a timing chart illustrating operations of Solution Principle 2 of the present invention. Fig. 3A shows an example of a program related to the description of operations of Solution Principle 2 of the present invention. Fig. 3B is a timing chart illustrating operations of Solution Principle 2 of the present invention. Fig. 4 is a block view showing a configuration of a numerical controller of an embodiment of the present invention. Fig. 5 is a flowchart illustrating operations when Solution Principle 1 is applied to Embodiment 1 of the present invention. Fig.6 is a flowchart showing operations when solution principle 2 is applied to embodiment 2 of the present invention. Fig. 7 is a flowchart showing operations when solution principles 1 and 2 are applied to embodiment 3 of the present invention. Fig. 8A shows an example of a program related to the description of operations of another embodiment of the present invention. Fig. 8B is a timing chart showing operations of another embodiment of the present invention. Fig. 9A shows an example of a program related to the description of operations of another embodiment of the present invention. Fig. 9B is a timing chart showing operations of another embodiment of the present invention. Fig. 10 is a diagram showing examples of commands of a machine program for executing a tool change. Fig.11 is a diagram showing how machining is performed in such a combined lathe-machinery system having a turning tool axis separate from a main spindle. Fig. 12A is an explanatory view of a holding tool (a tool unit) of a turning tool. Fig. 12B is an explanatory view of a turning tool axis. Fig. 12C is a view when a tool unit is viewed from a direction A parallel to its axis. Fig. 12D is a view when a turning tool axis is viewed from a direction B parallel to its axis. Fig. 13 is a view showing a handle during tool change. Fig. 14A is a diagram showing examples of general program commands when a tool change is executed. Fig. 14B is a view showing examples of general program commands when a tool change is executed.14C is a view showing examples of common program instructions when a tool change is executed. Fig. 15A is a conceptual view showing the meaning of corresponding instructions of the example program shown in Fig. 14A. Fig. 15B is a timing chart showing execution timings of corresponding instructions of the example program shown in Fig. 14A. Fig. 16A is a conceptual view showing the meaning of corresponding instructions of the example program shown in Fig. 14B. Fig. 16B is a timing chart showing execution timings of corresponding instructions of the example program shown in Fig. 14B. Fig. 17A is a conceptual view showing the meaning of corresponding instructions of the example program shown in Fig. 14C. Fig. 17B is a timing chart showing execution timings of corresponding instructions of the example program shown in Fig. 14C. DETAILED DESCRIPTION OF THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. 1. Device structure In the present embodiment, a numerical controller for machinery is described. Although this numerical controller is a device added to a machinery, the numerical controller may be housed in the same casing as the machinery or may be formed as a separate part. As described above, a program describing the operations of a machinery is input to this numerical controller. The numerical controller reads the program and controls the machinery based on the program. Fig. 4 shows a block diagram of a structure of the numerical controller according to the present embodiment. As shown in Fig. 4, a numerical controller 100 includes a program input unit 102, a program evaluation unit 104, and a program execution unit 114. For example, other elements constituting the numerical controller, such as a command generation unit for generating commands for a servo motor, are not shown. The numerical controller 100 may preferably be substantially configured as a computer. The numerical controller 100 is ideally configured to have a predetermined interface for inputting a user's program and operations and an interface for outputting instructions to a machine. It is possible to constitute a machine system using the numerical controller 100 and a machine shown in Fig. 4.The machinery system corresponds to an ideal example of a machinery system described in the claims. The program input unit 102 is an interface for inputting a program describing operations of a machine, and is an interface capable of inputting the program described in Fig. 4A and the like from the outside. For example, when a program is input via a predetermined network, a network interface is ideally suited as the program input unit 102. When a program is input from an external storage device, an IC card reader, a USB interface, or the like is ideally suited as the program input unit 102. In addition to these examples, any interface suitable for inputting a program can be used. The program evaluation unit 104 evaluates the input program and causes the program execution unit 114 to execute a predetermined execution process according to the content of the program.The program evaluation unit 104 is ideally designed as computer software that describes the evaluation process and a CPU (a CPU of a computer constituting the numerical controller 100) that executes the computer software. The program execution unit 114 is a unit that issues instructions to the machine based on the evaluation results obtained by the program evaluation unit 104. For example, the program execution unit 114 is a unit that issues instructions to a servo motor of the machine. As shown in Fig. 4, the program evaluation unit 104 includes a block evaluation unit 106, a block information checking unit 108, a block information modifying unit 110, and a block information storage unit 112. For example, these respective units are ideally implemented by computer software that describes these functions and a CPU that executes these functions. The functions of the respective units of the program evaluation unit 104 are detailed below in the description of the functions. 2. Description of the functions <Ausführungsform 1 (Anwendungsbeispiel der Lösungsmittel 1)> A functional example will now be described when Solution Principle 1 is applied to reduce the time for turning tool axis orientation. In Embodiment 1 described above, an externally supplied program is input to the program input unit 102 and transmitted to the program evaluation unit 104. Subsequently, the program evaluation unit 104 of the numerical controller 100 executes program evaluation according to the following procedure. This procedure is shown in the flowchart of Fig. 5. First, in step S5-1, the block evaluation unit 106 checks whether block information included in a program that is the target object of evaluation is present. The evaluation execution step ends if the block information is not present. The flow proceeds to step S5-2 if a target block for evaluation is present. In step S5-2, the block evaluation unit 106 evaluates the block information that is a target object of evaluation and records the evaluation results in the block information storage unit 110. The block evaluation unit 106 may be embodied as computer software and a CPU that sequentially evaluates instruction blocks in a program. Furthermore, the block information storage unit 110 may be embodied as a predetermined storage device. Any means can be used as long as the means can store information. In the flowchart of Fig.5, the block information storage unit 112 is abbreviated as (A) for simplicity. The evaluation results obtained by the block evaluation unit 106 are simultaneously transmitted to the block information checking unit 108. In step S5-3, the block information checking unit 108 determines whether the evaluated block is a tool change command block. If the evaluated block is not the tool change command (block), the flow proceeds to step S5-1 to evaluate the next block. On the other hand, if the evaluated block is the tool change command (block), the flow proceeds to step S5-4. In the flowchart of Fig. 5, the tool change command is abbreviated as (B) for simplicity. In step S5-4, the block information checking unit 108 determines whether a feed-axis positioning command (block) exists before the retrieved tool change command (block). For the purpose of this determination, the block information checking unit 108 extracts the previous command from the block information storage unit 112 and performs the determination. If it is determined that the feed-axis positioning command (block) exists, then the process of step S5-4 continues, and it is determined whether the positioning command exists in a block from a block before the previous block. This process continues until the feed-axis positioning command still exists in a block from a block before the previous block. For example, as shown in Fig.8B, to be described below, for example, when there are multiple feed-axis positioning commands, this process continues until the first feed-axis positioning command is issued. In the flowchart of Fig. 5, the feed-axis positioning command is abbreviated as (C) for convenience. On the other hand, if it is determined in step S5-4 that the block before the preceding block is not the feed-axis positioning command (C), the process proceeds to step S5-5. In step S5-5, the block information checking unit 108 sets information for executing the turning tool axis orientation along with the positioning execution step as the evaluation content of the feed-axis positioning command (block). Specifically, in step S5-5, the block information modifying unit 110 rewrites the information in the block information storage unit 112 to the previous content in response to an instruction from the block information checking unit (or adds the content to the information). Further, in step S5-5, a content that the turning tool axis orientation is not to be executed is set as the evaluation content of a block of current interest (that is, the tool change command block, which is a current evaluation target).Specifically, in step S5-5, the block information modifying unit 110 removes the turning tool axis orientation from the evaluation information (in the block information storing unit 112) of the tool change command block, which is the currently interested block, in response to an instruction from the block information checking unit to rewrite the evaluation information into a content that only the tool change execution step is to be executed (or deletes information about turning tool axis orientation). Through the above-described processes, it is possible to appropriately rewrite the evaluated content of the instruction based on a series of instructions in a given program. The program execution unit 114 issues commands for corresponding operations to the machine system based on the rewritten evaluation content. Since the program evaluation unit 114 rearranges the evaluation based on a series of instructions without modifying the provided existing program itself, it is consequently possible to modify operations or execution steps based on Solution Principle 1. Therefore, it is possible to shorten the processing time during tool change without modifying an existing program. <Ausführungsform 2-1 (erstes Anwendungsbeispiel der Lösungsmittel 2)> A first embodiment will now be described when the solution principle 2 for reducing the time of a turning tool axis stop is applied. In this embodiment, a procedure when a turning tool axis stop command is provided before a feed axis positioning command is mainly described, as shown in Figs. 2A and 2B. In Embodiment 2-1, as described above, an externally supplied program is input to the program input unit 102, and this is transmitted to the program evaluation unit 104. Subsequently, the program evaluation unit 104 of the numerical controller 100 executes a program evaluation execution step according to the following procedure. This procedure is shown in the flowchart of Fig. 6. First, in step S6-1, the block evaluation unit 106 checks whether block information included in a program that is a target object of evaluation is present. The evaluation step ends if the block information is not present. The process proceeds to step S6-2 if a block as the target of evaluation is present. In step S6-2, the block evaluation unit 106 evaluates block information that is a target object of evaluation and stores the evaluation results in the block information storage unit 110. The block evaluation unit 106 can be configured as computer software and a CPU that sequentially evaluates instruction blocks in a program. Furthermore, the block information storage unit 110 can be configured as a predetermined storage device. Any device can be used as long as the device can store information. In the flowchart of Fig.In Fig. 5, the block information storage unit 112 is abbreviated as (A) for the sake of simplicity, in the same manner as in Fig. 5. The evaluation results obtained by the block evaluation unit 106 are simultaneously transmitted to the block information checking unit 108. In step S6-3, the block information checking unit 108 determines whether the evaluated block is a tool change command block. If the evaluated block is not the tool change command (block), the flow proceeds to step S6-1, so that the next block is evaluated. On the other hand, if the evaluated block is the tool change command (block), the flow proceeds to step S6-4. In the flowchart of Fig. 6, the tool change command is abbreviated as (B) for simplicity, similar to Fig. 5. In step S6-4, the block information checking unit 108 determines whether a feed-axis positioning command (block) exists before the found tool change command (block). For this determination, the block information checking unit 108 reads the previous command from the block information storage unit 112 and performs the determination. If it is determined that the feed-axis positioning command (block) exists, the process of step S6-4 continues, and it is determined whether the positioning command exists in a block of a block before the previous block. This process continues as long as the feed-axis positioning command continues in a block of a block before the previous block. As shown in Fig.8B, which will be described below, for example, this process continues until the first feed-axis positioning command, which is the starting command, when, for example, there are multiple feed-axis positioning commands. In the flowchart of FIG. 5, the feed-axis positioning command is abbreviated as (C) for convenience. On the other hand, if it is determined in step S6-4 that the block of a block before the previous block is not the feed-axis positioning command (C), the flow proceeds to step S6-5. In step S6-5, the block information checking unit 108 determines whether a command of a previous block of the tool change command is the rotating tool axis stop command (block). The determination is performed by referring to the content of the block information storage unit 112. The flow proceeds to step S6-7 if it is determined that the previous block is the rotating tool axis stop command (block). On the other hand, the flow proceeds to step S6-6 if the rotating tool axis stop command (block) is not present in the previous block. A case in which the flow proceeds to step S6-6 is a case in which the rotating tool axis stop command (D) does not exist before the feed axis positioning command (other than in FIGS. 2A and 2B), as shown in FIGS. 3A and 3B. The flow corresponding to this case is described in Embodiment 2-2 for convenience. In the flowchart of FIG.6, the turning tool axis stop command (block) is abbreviated as (D). A case where the preceding block is the turning tool axis stop command (D) corresponds to a case where the turning tool axis stop command (D) is present before one or two or more feed axis positioning commands. In this case, the flow proceeds to step S6-7. An example of a case where a feed axis positioning command is present is shown, for example, in FIGS. 2A and 2B. In step S6-7, the block information checking unit 108 sets information for executing the rotary tool axis stop along with the positioning as the evaluation content of the feed-axis positioning command (block). Specifically, in step S6-7, the block information modifying unit 110 rewrites the information in the block information storage unit 112 to the previous content in response to an instruction from the block information checking unit 108 (or adds the content of the information). In this way, as described with reference to Fig. 2B, the rotary tool axis stop execution step can be executed simultaneously with the execution of the feed-axis positioning command. When there are multiple feed-axis positioning commands, the rotary tool axis stop execution step is executed during the execution of the first feed-axis positioning command. In step S6-8, a determination is made so that the turning tool axis stop command (E) retrieved in step S6-5 is not executed. That is, the block information modifying unit 110 deletes the evaluation content of the turning tool axis stop command (D) (step S6-5) included in the original program command from the block information storage unit 112 (A) in response to an instruction from the block information checking unit 108. Through the above-described processes, it is possible to appropriately rewrite the evaluation result based on a series of instructions in a given program. The program execution unit 114 issues commands for corresponding operations to the machine system based on the rewritten evaluation content. Since the program evaluation unit 114 itself rearranges the evaluation based on a series of instructions without modifying the provided existing program, it is consequently possible to modify operations based on Solution Principle 2. Therefore, it is possible to shorten the processing time during tool change without modifying an existing program. <Ausführungsform 2-2 (zweites Anwendungsbeispiel für die Lösungsmittel 2)> A second embodiment will be described when the solution principle 2 for reducing the time of a turning tool axis stop is applied. In this embodiment, as shown in FIGS. 3A and 3B, an operation will be described mainly when a turning tool axis stop command is not present before a feed axis positioning command and when a turning tool axis stop execution step is included in a tool change command. In Embodiment 2-2, as described above, a program provided from the outside is input to the program input unit 102 and is transmitted to the program evaluation unit 104. Subsequently, in the program evaluation unit 104 of the numerical controller 100, the same processes up to step S6-5 (see FIG. 6) as described in Embodiment 2-1 are executed.In step S6-5, unlike Embodiment 2-1, it is determined that the preceding block is not the rotary tool axis stop command. Therefore, the flow proceeds to step S6-6. The following describes the processes after step S6-6. In step S6-6, the block information checking unit 108 sets information for executing the rotary tool axis stop along with the positioning execution step as the evaluation content of the feed-axis positioning command (block). Specifically, in step S6-6, the block information modifying unit 110 rewrites the information in the block information storage unit 112 to the previous content in response to an instruction from the block information checking unit 108 (or adds the content of the information). In this way, as previously described with reference to Fig. 3B, the rotary tool axis stop execution step can be executed simultaneously with the execution of the feed-axis positioning command. If one or two or more feed-axis positioning commands exist, the rotary tool axis stop execution step is executed during the execution of the first feed-axis positioning command. Further, in step S6-6, a content that the turning tool axis stop execution step is not to be executed is set as the evaluation content of a block of interest (that is, the tool change command block that is the target of the current evaluation). Specifically, in step S6-7, the block information modifying unit 110 removes the turning tool axis stop command from the evaluation information (in the block information storage unit 112) of the tool change command block that is the current block of interest, in response to an instruction from the block information checking unit to rewrite the evaluation information to a content that only the tool change execution step is to be executed (or deletes the information of the turning tool axis stop execution step). Through the above-described processes, it is possible to appropriately rewrite the evaluated execution content of the instruction based on a series of instructions in a provided program. The program execution unit 114 issues commands for corresponding operations to the machine system based on the rewritten evaluation content. Since the program evaluation unit 114 itself rearranges the evaluation based on a series of instructions without modifying the provided existing program, it is consequently possible to modify operations or execution steps based on Solution Principle 2. Therefore, it is possible to shorten the processing time during tool change without modifying an existing program. <Der Fall, in welchem ein Drehwerkzeugachsenstopp in der Mitte vorhanden ist> Although one or two or more feed-axis positioning commands that are present consecutively are detected in step S6-4 of Embodiment 2-2, there may be a case where a rotary tool axis stop command is present in the same block as one of the feed-axis positioning commands (for example, see Fig. 9B, which will be described later). In this case, in step S6-6, an ideal procedure is to execute the rotary tool axis stop command during the execution of the first feed-axis positioning command of the detected one or two or more feed-axis positioning commands (see Fig. 9B, which will be described later).In this case, particularly in step S6-6, it is ideal for the block information modifying unit 110 to rewrite the information in the block information storage unit 112 to a content such that the rotary tool axis stop command is executed together with the first feed axis positioning command from the one or two or more feed axis positioning commands (or the content is added to the information) in response to an instruction from the block information checking unit. In step S6-6, it is ideal to remove the rotary tool axis stop command found between one or two or more feed axis positioning commands from the evaluation information of the corresponding block in the block information storage unit 112. <Ausführungsform 3-1 (erstes Anwendungsbeispiel des Lösungsprinzips 1 und des Lösungsprinzips 2)> A first embodiment will now be described when both the solution principle 1 and the solution principle 2 for reducing the time of a turning tool axis stop are applied. In this embodiment, as shown in Figs. 2A and 2B, an operation when a turning tool axis stop command is present before a feed axis positioning command will be mainly described. In Embodiment 3-1, as described above, an externally specified program is input to the program input unit 102 and is transmitted to the program evaluation unit 104. Subsequently, the program evaluation unit 104 of the numerical controller 100 executes a program evaluation execution step according to the following procedure. This procedure is shown in the flowchart of Fig. 7. First, in step S7-1, the block evaluation unit 106 checks whether there is block information included in the program that is a target object of evaluation. The evaluation execution step ends if the block information is not present. The flow proceeds to step S7-2 if a target block for evaluation exists. In step S7-2, the block evaluation unit 106 evaluates block information that is a target object of evaluation and stores the evaluation results in the block information storage unit 110. The block evaluation unit 106 can be configured as computer software and a CPU that sequentially evaluates instruction blocks in a program. Furthermore, the block information storage unit 112 can be configured as a predetermined storage device. Any device can be used as long as the device can store information. In the flowchart of Fig. 7, for simplicity, similar to Fig. 5 and Fig.6, the block information storage unit 112 is abbreviated as (A). The evaluation results obtained by the block evaluation unit 106 are simultaneously transmitted to the block information checking unit 108. In step S7-3, the block information checking unit 108 determines whether the evaluated block is a tool change command block. If the evaluated block is not the tool change command (block), the flow proceeds to step S7-1 to perform evaluation of the next block. On the other hand, if the evaluated block is the tool change command (block), the flow proceeds to step S7-4. In the flowchart of Fig. 7, for convenience, similar to Figs. 5 and 6, the tool change command is abbreviated as (B). In step S7-4, the block information checking unit 108 determines whether a feed-axis positioning command (block) exists before the found tool change command (block). For the determination, the block information checking unit 108 retrieves the previous command from the block information storage unit 112 and makes the determination. If it is determined that the feed-axis positioning command (block) exists, the process of step S7-4 proceeds, and it is determined whether the positioning command exists in a block of a block before the previous block. This process continues as long as the feed-axis positioning command continues in a block of a block before the previous block. For example, this process continues until the first feed-axis positioning command, as shown in Fig. 8B, to be described below, when multiple feed-axis positioning commands exist. In the flowchart of Fig.7, for convenience, the feed axis positioning command is abbreviated as (C). On the other hand, if it is determined in step S7-4 that the block of a block before the previous block is not the feed axis positioning command (C), the flow proceeds to step S7-5. In step S7-5, the block information checking unit 108 determines whether a command preceding the tool change command block is the turning tool axis stop command (block). The determination is made by referring to the content of the block information storage unit 112. If it is determined that the preceding block is the turning tool axis stop command (block), the flow proceeds to step S6-7. On the other hand, the flow advances to step S7-6 when the rotary tool axis stop command (block) is not present in the preceding block. A case in which the flow advances to step S7-6 is a case in which the rotary tool axis stop command (D) is not present before the feed axis positioning command (other than in FIGS. 2A and 2B) as shown in FIGS. 3A and 3B. The flow corresponding to this case will be described in Embodiment 3-2 for convenience. In the flowchart of FIG. 7, the rotary tool axis stop command (block) is abbreviated as (D). A case where the preceding block is the rotary tool axis stop command (D) corresponds to a case where the rotary tool axis stop command (D) is present before one or two or more feed axis positioning commands. In this case, the flow proceeds to step S7-8. For example, an example of a case where one feed axis positioning command is present is shown in Figs. 2A and 2B. In step S7-8, the block information checking unit 108 sets information for executing the rotary tool axis stop along with the positioning execution step as the evaluation content of the feed-axis positioning command (block). Specifically, in step S7-8, the block information modifying unit 110 rewrites the information in the block information storage unit 112 to the previous content in response to an instruction from the block information checking unit 108 (or adds the content to the information). In this way, as described with reference to Fig. 2B, the rotary tool axis stop execution step can be executed concurrently with the execution of the feed-axis positioning command. If there are multiple feed-axis positioning commands, the rotary tool axis stop command is executed during the execution of the first feed-axis positioning command. In step S7-9, a determination is made that the turning tool axis stop command (D) found in step S7-5 will not be executed. That is, the block information modifying unit 110 deletes the evaluation content of the turning tool axis stop command (D) (step S7-5) included in the original program command from the block information storage unit 112 (A) in response to an instruction from the block information checking unit 108. The operations of steps 7-8 and 7-9 are based on the solution principle 2, and the application state is shown in Fig. 2A and Fig. 2B. In step S7-10, the same process as in step S5-5 is performed. That is, the information that the turning tool axis orientation is performed along with positioning is set as the evaluation content of a currently relevant block (that is, a block immediately before a tool change command, that is, the feed axis positioning command block, which is a target of the current evaluation). Specifically, in step S7-10, the block information modifying unit 110 rewrites the information in the block information storage unit 112 to the content (or adds the content to the information) in response to an instruction from the block information checking unit. Further, in step S7-10, content that the turning tool axis orientation execution step is not to be executed is set as the evaluation content of a current block of interest (that is, the tool change command block, which is the current target of evaluation). Specifically, in step S7-10, the block information modifying unit 110 removes the turning tool axis orientation execution step from the evaluation information (in the block information storage unit 112) of the tool change command block, which is a current block of interest, in response to an instruction from the block information checking unit to rewrite the evaluation information to content that only the tool change execution step is to be executed (or deletes the information regarding the turning tool axis orientation execution step). The process of step S7-10 is based on the solution principle 1, and the application state is shown in Fig. 1. Through the above-described processes, it is possible to appropriately rewrite the evaluation result of the instruction based on a series of instructions in a provided program. The program execution unit 114 issues commands for corresponding operations or execution steps to the machine system based on the rewritten evaluation content. Since the program evaluation unit 114 itself rearranges the evaluation based on a series of instructions without modifying the provided existing program, it is therefore possible to modify operations or execution steps based on solution principles 1 and 2. Even if both solution principles are applied, it is therefore possible to shorten the processing time during tool change without modifying an existing program. <Ausführungsform 3-2 (zweites Anwendungsbeispiel des Lösungsprinzips 1 und des Lösungsprinzips 2)> A second embodiment will now be described, in which both the solution principle 1 of reducing the time of a turning tool axis orientation execution step and the solution principle 2 of reducing the time of a turning tool axis stop are applied. In this second embodiment, a process as shown in FIGS. 3A and 3B when a turning tool axis stop command is not present before a feed axis positioning command will be mainly described. In Embodiment 3-2, as described above, an externally supplied program is input to the program input unit 102 and transmitted to the program evaluation unit 104. Subsequently, in the program evaluation unit 104 of the numerical controller 100, the same processes up to step S7-5 (see Fig. 7) as in Embodiment 3-1 are executed. In step S7-5, it is determined that the preceding block is not the turning tool axis stop command. Therefore, the flow proceeds to step S7-6. The following describes the processes following step S7-6. In step S7-6, the block information checking unit 108 sets information for executing the rotary tool axis stop along with the positioning execution step as the evaluation content of the feed-axis positioning command (block). Specifically, in step S7-6, the block information modifying unit 110 rewrites the information in the block information storage unit 112 to the previous content in response to an instruction from the block information checking unit 108 (or adds the content to the information). In this way, as previously described with reference to Fig. 3B, the rotary tool axis stop can be executed simultaneously with the execution of the feed-axis positioning command. If there are one or two or more feed-axis positioning commands, the rotary tool axis stop is executed during the execution of the first feed-axis positioning command. Further, in step S7-6, content that the turning tool axis stop is not to be executed is set as the evaluation content of a block of interest (i.e., the tool change command block, which is a current target of evaluation). Specifically, in step S7-6, the block information modifying unit 110 removes the turning tool axis stop from the evaluation information (in the block information storage unit 112) of the tool change command block, which is a block of current interest, in response to an instruction from the block information checking unit to rewrite the evaluation information to content that only the tool change execution step is to be executed (or deletes the information about the turning tool axis stop execution step). The process of step S7-7 is a process based on the solution principle 2, and the application state is shown in Figs. 3A and 3B. In step S7-7, the same process as in step S5-5 is executed. That is, information that the turning tool axis orientation is executed together with a positioning execution step is set as the evaluation content of a currently interested block (that is, a block immediately before a tool change command, that is, the feed axis positioning command block, which is the current evaluation target). Specifically, in step S7-7, the block information modifying unit 110 rewrites the information in the block information storage unit 112 to the previous content (or adds the content to the information) in response to an instruction from the block information checking unit. Further, in step S7-7, content that the turning tool axis orientation is not to be executed is set as the evaluation content of a current block of interest (i.e., the tool change command block, which is a current target of evaluation). Specifically, in step S7-7, the block information modifying unit 110 removes the turning tool axis orientation from the evaluation information (in the block information storage unit 112) of the tool change command block, which is a current block of interest, in response to an instruction from the block information checking unit to rewrite the evaluation information to content that only the tool change execution step is to be executed (or deletes information related to the turning tool axis orientation execution step). The process of step S7-7 is based on the solution principle 1, and the application state is shown in Fig. 1. Through the above-described processes, it is possible to appropriately rewrite the evaluated execution content or sequence content of the instruction based on a series of instructions in a provided program. The program execution unit 114 issues commands for corresponding operations or execution steps to the machine system based on the rewritten evaluation content. Since the program evaluation unit 114 itself rearranges the evaluation based on a series of instructions without modifying the provided existing program, it is therefore possible to modify operations or execution steps based on solution principles 1 and 2. Even if both solution principles are applied, it is therefore possible to shorten the processing time during tool change without modifying an existing program. <vorteile> As described above, the present embodiment provides the following advantages. Since conventionally, corresponding instructions in a provided program can only be executed sequentially in this order, the execution time increases. In contrast, according to the previously described embodiments, it is possible to shorten the execution time, especially for the turning tool axis stop and the turning tool axis orientation, since the operations or execution steps of the predetermined instructions are executed simultaneously in parallel. Since conventionally, in the case of the program described with reference to Fig. 14B (Fig. 16A or Fig. 16B), the turning tool axis rotation stop is always executed before the execution of the turning tool axis orientation, which is executed as the start of the tool change command, the time required for the execution of the turning stop is required. In contrast, according to the present embodiment, due to the control of the CNC (computer numerical control), it is possible to shorten the time required for the turning stop because the turning tool axis stop is executed simultaneously with the positioning execution step before the tool change command. If the program shown in Fig. 14A or Fig. 14B is modified so that M05 (the turning tool axis stop command) or the turning tool axis orientation is output simultaneously as the positioning command, as in the program shown in Fig.14C, the execution time required for tool changing can be shortened. However, existing programs must be modified, and such modification requires laborious operations. Furthermore, there is a possibility that modification errors may occur during program modification. In contrast, according to the present embodiment, it is possible to shorten the execution time for the operation of stopping the turning tool axis and orienting the turning tool axis without modifying the program. <Modifizierung 1> With the advantages described above, there may be a case where the execution time of the feed-axis positioning command is shorter than the execution time of the rotary tool axis stop command and / or the rotary tool axis orientation execution step. In such a case, similar to the previously described embodiment, it is of course possible to shorten the execution time by the amount corresponding to the execution time of a command having the shorter execution time. For example, Fig. 1 shows an example in which the execution time of the rotary tool axis orientation execution step is shorter than the execution time of the feed-axis positioning command.However, if the execution time of the feed-axis positioning command is shorter than the execution time of the turning-tool-axis orientation execution step, the execution time of the feed-axis positioning command can be significantly shortened by executing both the feed-axis positioning command and the turning-tool-axis orientation execution step. That is, by executing both operations at the same time, the execution time thereof is set to the longer execution time. Therefore, it is possible to substantially avoid the execution step that has the shorter execution time (compared with a case where the execution steps are executed individually and sequentially). Further, for example, Fig. 2B shows an example in which the execution time for the turning-tool-axis stop execution step is shorter than the execution time of the feed-axis positioning command.Even if the execution time of the feed-axis positioning command is shorter than the execution time of the turning tool axis stop execution step, it is still possible to significantly shorten the execution time of the feed-axis positioning command by executing both the feed-axis positioning command and the turning tool axis stop execution step. In this case, by simultaneously executing both execution steps, it is possible to set the execution time to the longer operation time and essentially avoid the execution step with the shorter execution time. <Modifizierung 2> The process of solution principle 1 or 2 described in the present embodiment and the process of the conventional operation can be interchanged. This interchange can be performed by setting parameters or according to a program command or a signal command. <Modifizierung 3-1> As with the program shown in Fig. 8A, there may be a program that has consecutive feed-axis positioning commands. In such a case, the turning tool axis stop and / or the turning tool axis orientation execution step may be executed at the start time point of the first feed-axis positioning command of the consecutive feed-axis positioning commands. That is, as shown in Fig. 8B, the turning tool axis stop execution step begins at the start time point t18 of the first feed-axis positioning command (Y, Z). If the turning tool axis stop execution step ends at time point t19, then the turning tool axis orientation execution step begins at time point t19. <Modifizierung 3-2> As with the program shown in Fig. 8A, there may be a program in which a turning tool axis stop command is located in the same block as one of consecutive feed-axis positioning commands. In the example of Fig. 9A, the turning tool axis stop command M05 and a feed-axis positioning command G00Yyy exist together. In such a case, the turning tool axis stop execution step in the middle of the consecutive feed-axis positioning commands and / or the turning tool axis orientation execution step in the tool change command may be executed at the start time point of the first feed-axis positioning command of the consecutive feed-axis positioning commands. That is, as shown in Fig. 9B, the turning tool axis stop execution step located in the middle of the consecutive feed-axis positioning commands starts at the start time point t20 of the first feed-axis positioning command (Y, Z).Thereafter, if the turning tool axis stop execution step ends at time t21, the turning tool axis orientation execution step begins at time t21. If the turning tool axis stop command is located in the "first" command block of the multiple consecutive feed axis positioning commands, the timing is not particularly changed. On the other hand, if the turning tool axis stop command is located in a command block that is not the "first" command block of the multiple consecutive feed axis positioning commands, as described above, the turning tool axis stop execution step may be executed at the start time of the first feed axis positioning command. <Modifizierung 3-3> In the embodiments and modifications 3-1 and 3-2 described above, the rotary tool axis stop execution step and / or the rotary tool axis orientation execution step are executed in the first feed-axis positioning command when there are consecutive feed-axis positioning commands. However, the process does not necessarily have to be executed at the time of execution of the "first" feed-axis positioning command. The rotary tool axis stop execution step and / or the rotary tool axis orientation execution step may be executed during the execution time of any of the plurality of feed-axis positioning commands. In such a case, it is also possible to execute the rotary tool axis stop execution step and / or the rotary tool axis orientation execution step in parallel with the feed-axis positioning execution step and shorten the processing time.If the turning tool axis stop execution step and the turning tool axis orientation execution step are executed in parallel with the feed axis positioning execution step, then the turning tool axis orientation execution step may be executed after the turning tool axis stop execution step. <Vergleich mit der Patentschrift> Patent Document 1 discloses a technique in which it is determined whether a main spindle has arrived at a predetermined position and an orientation execution step has ended, and a rotary tool axis stop and orientation are executed when the orientation process is not completed. In contrast, according to the present embodiment, it is determined whether a tool change command is present during program evaluation. If the tool change command is detected, the rotary tool axis stop command and / or orientation are executed at the timing of the first positioning command if (one or two or more) positioning commands are executed before the tool change command. Therefore, unlike the technique disclosed in Patent Document 1, it is not necessary to determine whether the main spindle has arrived at a predetermined position. Specifically, in Patent Document 1, when the rotary tool axis stop command is provided before a movement command for moving the main spindle to a predetermined position, it is not possible to execute the rotary tool axis stop and the positioning execution step simultaneously. On the other hand, in the present embodiment, even when a rotary tool axis stop command is provided, since the commands are generated during evaluation of a program so that the rotary tool axis stop command can be executed simultaneously with the positioning command, it is possible to execute these processes simultaneously. Patent Document 1 does not describe a program command, and such a control, after which the block information is modified to execute a program such that the unnecessary rotary tool axis stop command block is not executed, as described in the present embodiment, is not disclosed therein. For example, the program shown in Fig. 14A is a conventional typical program used during a tool change. When a movement distance of a feed-axis positioning command G00Zzz is large, since it is not necessary to keep the rotary tool axis continuously rotating in view of energy saving, the rotary tool axis stop command (M05) is frequently executed before (G00Zzz), as in the program example shown in Fig. 14A. In such a case, according to Patent Document 1, (M05) and (G00Zzz) cannot be executed simultaneously, but (G00Zzz) is executed after (M05). In contrast, according to the present embodiment, as described in the flowchart of Fig. 6 and in Embodiment 2-1, the block information is modified so that (G00Zzz) and (M05) are executed simultaneously immediately after (M05), and the block information for (M05) is deleted.In this way, even if the program is not revised, (M05) and (G00Zzz) can be executed simultaneously without executing the only block for (M05), and the execution time can be shortened. Therefore, in the program example shown in Fig. 14A, which is generally and frequently used, according to the present embodiment, it is possible to shorten the execution time, unlike in Patent Document 1. As described above, the present embodiment is quite different from Patent Document 1, and the technique disclosed in the present embodiment cannot be easily derived from the technique disclosed in Patent Document 1. Although embodiments of the present invention have been described in detail, the above-described embodiments represent specific examples for carrying out the present invention. The technical scope of the present invention is not limited to the above-described embodiments. Various changes may be made to the present invention without departing from its spirit, and these changes are within the technical scope of the present invention. EXPLANATION OF REFERENCE SYMBOLS 2 Workpiece 4 Main spindle 6 Milling tool 8 Turning tool 10 Tool unit 10a Tapered section 10b Keyway 12 Turning tool axis 12a Tapered section 12b Key 14 Handle 14a Key 100 Numerical control 102 Program input unit 104 Program evaluation unit 106 Block evaluation unit 108 Block information checking unit 110 Block information modifying unit 112 Block information storing unit 114 Program execution unit< / vorteile> < / begriffe>
Claims
A numerical controller (100), comprising: a program input unit (102) that inputs a program describing execution steps of a machine system; a program evaluation unit (104) that evaluates the input program and outputs an evaluation result; and a program execution unit (114) that controls the machine system based on the evaluation result obtained by the program evaluation unit, wherein the program evaluation unit (104) comprises: a block evaluation unit (106) that evaluates blocks of instructions in the program to obtain an evaluation result and stores the evaluation result in a block information storage unit (112); the block information storage unit (112) that stores the evaluation result;a block information checking unit (108) that checks the evaluation result obtained by the block evaluation unit (106) and instructs a block information modifying unit (110) to modify the evaluation result for the instruction block when a predetermined condition is met;and the block information modifying unit (110) that modifies the evaluation result stored in the block information storage unit (112) based on the instruction of the block information checking unit (108), wherein if it is determined that one or two or more feed-axis positioning commands exist before a tool change command found in the evaluation result, the block information checking unit (108) instructs the block information modifying unit (110) to modify the evaluation result stored in the block information storage unit (112) such that a rotary tool axis orientation execution step is executed in the found tool change command during the execution of the feed-axis positioning command in one of the one or two or more feed-axis positioning command blocks. The numerical controller (100) according to claim 1, wherein, when it is determined that one or two or more feed axis positioning commands exist before the tool change command found in the evaluation result, the block information checking unit (108) instructs the block information modifying unit (110) to remove a rotary tool axis orientation execution step in the found tool change command from execution steps in the tool change command. A numerical controller (100), comprising: a program input unit (102) that inputs a program describing execution steps of a machine system; a program evaluation unit (104) that evaluates the input program and outputs an evaluation result; and a program execution unit (114) that controls the machine system based on the evaluation result obtained by the program evaluation unit (104), wherein the program evaluation unit (104) comprises: a block evaluation unit (106) that evaluates blocks of instructions in the program to obtain an evaluation result and stores the evaluation result in a block information storage unit (112); the block information storage unit (112) that stores the evaluation result;a block information checking unit (198) that checks the evaluation result obtained by the block evaluation unit (106) and instructs a block information modifying unit (110) to modify the evaluation result for the instruction block when a predetermined condition is met;and the block information modifying unit (110) that modifies the evaluation result stored in the block information storage unit (112) based on the instruction of the block information checking unit (108), wherein, when it is determined that one or two or more feed-axis positioning commands exist before a tool change command found in the evaluation result, and when a rotary tool axis stop command exists before the one or two or more feed-axis positioning commands, the block information checking unit (108) instructs the block information modifying unit (110) to modify the evaluation result stored in the block information storage unit (112) such that the rotary tool axis stop command execution step is executed during the execution of the feed-axis positioning command in one of the one of the two or more feed-axis positioning command blocks. The numerical controller (100) according to claim 3, wherein:when it is determined that one or two or more feed-axis positioning commands exist before the tool change command found in the evaluation result, and a rotary tool axis stop command exists before the one or two or more feed-axis positioning commands,the block information checking unit (108) instructs the block information modifying unit (110) to remove the evaluation result of the rotary tool axis stop command that exists before the one or two or more feed-axis positioning commands from the block information storage unit (112). A numerical controller (100), comprising: a program input unit (102) that inputs a program describing execution steps of a machine system; a program evaluation unit (104) that evaluates the input program and outputs an evaluation result; and a program execution unit (114) that controls the machine system based on the evaluation result obtained by the program evaluation unit (104), wherein the program evaluation unit (104) comprises: a block evaluation unit (106) that evaluates blocks of instructions in the program to obtain an evaluation result and stores the evaluation result in a block information storage unit (112); the block information storage unit (112) that stores the evaluation result; a block information checking unit (108) that checks the evaluation result obtained by the block evaluation unit (106) and instructs a block information modifying unit (110),to modify the evaluation result for the command block when a predetermined condition is met; and the block information modifying unit (110) that modifies the evaluation result stored in the block information storage unit (112) based on the instruction of the block information checking unit (108), wherein, when it is determined that one or two or more feed axis positioning commands are present before a tool change command found in the evaluation result, and when a turning tool axis stop command for the tool change command is not present before the one or two or more feed axis positioning commands, the block information checking unit (108) instructs the block information modifying unit (110) to modify the evaluation result stored in the block information storage unit (112) such that a turning tool axis stop execution step, which,is executed in the tool change command during the execution of the feed axis positioning command in one of the one or two or more feed axis positioning command blocks., A numerical controller (100), comprising: a program input unit (102) that inputs a program describing execution steps of a machine system; a program evaluation unit (104) that evaluates the input program and outputs an evaluation result; and a program execution unit (114) that controls the machine system based on the evaluation result obtained by the program evaluation unit (104), wherein the program evaluation unit (104) comprises: a block evaluation unit (106) that evaluates blocks of instructions in the program to obtain an evaluation result and stores the evaluation result in a block information storage unit (112); the block information storage unit (112) that stores the evaluation result; a block information checking unit (108) that checks the evaluation result obtained by the block evaluation unit (106) and instructs a block information modifying unit (110),to modify the evaluation result for the command block when a predetermined condition is met; and the block information modifying unit (110) that modifies the evaluation result stored in the block information storage unit (112) based on the instruction of the block information checking unit (108), wherein, if it is determined that one or two or more feed-axis positioning commands are present before a tool change command found in the evaluation result, and if a rotary tool axis stop command is present in the same block in which one of the two or more feed-axis positioning commands is located, the block information checking unit (108) is configured to execute a first process of not outputting an instruction to modify the evaluation result stored in the block information storage unit (112) to the block information modifying unit (110) to execute the rotary tool axis stop command in a block,in which the turning tool axis stop command is present, or the block information checking unit (108) is configured to execute a second process for instructing the block information modifying unit (110) to modify the evaluation result stored in the block information storing unit (112) such that the turning tool axis stop command is executed during the execution of the other feed axis positioning command in the two or more feed axis positioning command blocks during the execution of the feed axis positioning command in one of the one or two or more feed axis positioning command blocks, wherein the first process is executed in the case where the turning tool axis stop command is present in the first command block of the two or more feed axis positioning commands, and the second process is executed in the caseif the turning tool axis stop command is present in a command block other than the first of the two or more feed axis positioning commands. The numerical controller (100) according to claim 6, wherein when the block information checking unit (108) executes the second process, the block information checking unit (108) instructs the block information modifying unit (110) to remove the evaluation result of the turning tool axis stop command from a block of the block information storage unit (112) in which the turning tool axis stop command is present. The numerical controller (100) according to claim 1, wherein, if it is determined that one or two or more feed-axis positioning commands exist before a tool change command found in the evaluation result, and if a rotary tool axis stop command exists before the one or two or more feed-axis positioning commands, the block information checking unit (109) instructs the block information modifying unit (110) to modify the evaluation result stored in the block information storage unit (112) such that the rotary tool axis stop command execution step is executed during the execution of the feed-axis positioning command in one of the one or two or more feed-axis positioning command blocks, and the block information checking unit (108) instructs the block information modifying unit (110) to modify the evaluation result stored in the block information storage unit (112) such thatthat the turning tool axis orientation execution step is executed subsequent to the turning tool axis stop command execution step., The numerical controller (100) according to claim 1, wherein, if it is determined that one or two or more feed-axis positioning commands are present before a tool change command found in the evaluation result, and if a rotary tool axis stop command is not present before the one or two or more feed-axis positioning commands, the block information checking unit (109) instructs the block information modifying unit (110) to modify the evaluation result stored in the block information storage unit (112) so that a rotary tool axis stop execution step in the tool change command is executed during the execution of the feed-axis positioning command in one of the one or two or more feed-axis positioning command blocks, and the block information checking unit (108) instructs the block information modifying unit (110),modifying the evaluation result stored in the block information storage unit (112) such that the turning tool axis orientation execution step is executed subsequent to the turning tool axis stop execution step. A machine system comprising:the numerical controller (100) according to any one of claims 1 to 9; andthe machine controlled by the numerical controller (100).
Citation Information
Patent Citations
Numerical control device with a wait function between paths
DE102013015236A1
numerical control to shorten the cycle time of a machine program
DE102015010654A1
Numerical control device
DE112012006379T5
A numerically controlled machine tool and methods for program conversion therefor
DE60320164T2
Data processing apparatus and data processing method, and computer program
JP2008041229A
