The present invention relates to a numerical controller, and more particularly, to a numerical controller having the function of restarting a program in the middle of a machining cycle.
Program restart is a function of restarting machining based on a machining program (hereinafter referred to as the program) from a stop position after the machining is stopped in the middle. According to the program restart function, the machining can be restarted without causing idling by specifying the sequence number or block number (number of blocks from the head of the program to a block expected to be restarted) of the block expected to be restarted in the program having been executed before the machining is stopped. The program restart function is useful, for example, if a tool is broken during the machining or the machining interrupted before a holiday break is expected to be restarted just after the break.
Japanese Patent Applications Laid-Open Nos. 2015-153063, 2008-158726, and 2014-026430 disclose prior art techniques related to the program restart. Japanese Patent Application Laid-Open No. 2015-153063 describes a numerical controller capable of checking before program restart whether or not machining conditions are changed without errors after machining is stopped in the middle. Japanese Patent Application Laid-Open No. 2008-158726 describes a machining control device configured to restart machining with an optimal approach after the machining is stopped in the middle. Japanese Patent Application Laid-Open No. 2014-026430 describes a numerical controller configured to display the difference between states (modal information, etc.) of a machine during interruption and at restart of machining at the time of program restart when setting, such as machining program editing, is changed after the machining is stopped in the middle.
In the device described in Japanese Patent Application Laid-Open No. 2015-153063, however, the program cannot be restarted properly if the number of blocks of a machining path is changed as a result of the change of the machining conditions. In the device described in Japanese Patent Application Laid-Open No. 2008-158726, the program cannot be restarted properly if a tool path of a machining cycle is changed as a result of the change of the machining conditions. The device described in Japanese Patent Application Laid-Open No. 2014-026430 only checks whether or not the states (modal information, etc.) of the machine before and after the interruption of the machining are consistent, so that a necessary adjustment for the program restart must be made manually.
The present invention has been made to solve the above problems and has an object to provide a numerical controller capable of properly performing program restart even if machining conditions of a machining cycle are changed after machining is stopped in the middle of the machining cycle.
A numerical controller according to one embodiment of the present invention is a numerical controller which performs program restart after machining is stopped in the middle of a machining cycle and comprises a program restart unit configured to acquire a restart position located in a machining area defined by the machining cycle, create a new machining area by dividing the defined machining area in the restart position, and restart the machining for the new machining area.
In the numerical controller according to the one embodiment of the present invention, the restart position is given by coordinate values.
In the numerical controller according to the one embodiment of the present invention, the restart position is given by a cutting depth at the point in time of interruption of the machining or a machining allowance at the restart of the machining.
In the numerical controller according to the one embodiment of the present invention, the program restart unit stores a tool position at which the machining is stopped as the restart position.
According to the present invention, there can be provided a numerical controller capable of properly performing program restart even if machining conditions of a machining cycle are changed after machining is stopped in the middle of the machining cycle.
The above and other objects and features of the present invention will be obvious from the ensuing description of embodiments with reference to the accompanying drawings, in which:
First, in order to clarify the objective of the present invention, problems that can arise if a program is restarted with machining conditions of a machining cycle changed after machining is stopped in the middle of the machining cycle will be described in the following.
The program may sometimes include a machining cycle. The machining cycle is a group of commands that define cutting conditions and machining areas. A numerical controller generates a group of commands that define a tool path based on the cutting conditions and the machining areas defined by the machining cycle. The numerical controller replaces the command group of the machining cycle with the command group for the tool path and controls operation axes according to the tool path.
G1120 commands cutting conditions (including P: cutting direction, Q: cutting depth, H: cutting depth change rate, C: X-axis direction finishing allowance, D: Z-axis direction finishing allowance, F: cutting direction feed rate, K: first feed override, W: round-up method specification, V: round-up direction feed rate, L: X-axis direction clearance, M: Z-axis direction clearance, Z: approach method specification, X: pocket portion machining method specification, Y: overhanging portion machining method specification, etc.) (cutting condition commands). G1450 to G1456 command machining shapes (shape commands).
In this way, the numerical controller interprets the machining cycle and automatically generates the tool path. In general, the generated tool path varies depending on the cutting conditions. If the tool path varies, the number of generated blocks can also vary. In the case of a machining cycle for rough-turning processing, for example, if the cutting depth as one of the cutting conditions is halved, the number of blocks of the tool path almost doubles. A specific example is given below.
As shown in
A program restart function restarts the machining from a specified block when the sequence number and block number of the block at which the program is expected to be restarted are specified. If the machining cycle resides in the program, the program may sometimes be restarted in the middle of the machining cycle. In this case, for example, the program may be restarted after the cutting conditions are changed with the machining temporarily stopped in the middle of the machining cycle. Specifically, in this case, the machining may be restarted after the cutting depth as a cutting condition is changed a little with the operation temporarily stopped during the operation of the machining cycle, since the machining load is too high. Alternatively, in this case, the machining may be restarted after the cutting depth is changed more drastically with the operation temporarily stopped to accelerate the machining during the operation of the machining cycle.
As described above, the numerical controller performs the machining after replacing the blocks of the machining cycle with those of the machining cycle. Moreover, if the cutting depth is changed, the number of blocks of the tool path generated by the numerical controller varies. Therefore, if the program is restarted after stopping the program, editing the machining cycle, and changing the cutting depth, the number of the block corresponding to a restart position may change inevitably in some cases. If the program is restarted after specifying the block number corresponding to a stop position at which the program is stopped, despite this, an unexpected operation may be performed. Waste may be caused by, for example, inevitable idling. In another case, restarting the operation from a non-machined position may cause a great danger.
A numerical controller 100 according to an embodiment of the present invention has a structure for solving this problem.
The program restart unit 110, like a conventional program restart function, has a function of stopping the machining during the operation of the program, function of specifying the machining restart position, and function of restarting the machining from the specified restart position. The program restart unit 110 of the present embodiment is characterized in that it specifies the machining restart position by using a physical position in the machining area, not the block number that is conventionally used, in interrupting and restarting the machining in the middle of the machining cycle. The physical position in the machining area is given by, for example, coordinate values, a cutting depth obtained after the machining is already finished, or a machining allowance for restarting the machining.
The machining cycle editing unit 120 performs processing for editing the machining cycle according to a user's input operation or the like and changing the cutting conditions and the like. The program restart unit 110 may, for example, be configured to accept the specification of the restart position using the physical position in the machining area when it is detected by the machining cycle editing unit 120 that the machining cycle is edited while the machining is stopped.
As Example 1, an example is given in which the program restart unit 110 restarts the machining after the operation is interrupted (at a point indicated by an arrow in the lower diagram of
An operation performed when the program restart unit 110 restarts the program will be described with reference to the flowchart of
S101: Program restart processing is started. The program restart unit 110 determines whether or not the block for which the execution of the program should be restarted is the machining cycle. If the block concerned is the machining cycle, the operation proceeds to S102 after the coordinate values for the restart position are accepted. If not, the operation proceeds to S107.
S102: The program restart unit 110 calculates a straight line that includes the coordinate values specified as the restart position and is perpendicular to the cutting direction (see the second diagram from the top of
S103: The program restart unit 110 obtains two points of intersection between the straight line calculated in S102 and boundaries of the machining area.
S104: The program restart unit 110 divides the machining area by a line segment that connects the two points of intersection obtained in S103 (see the third diagram from the top of
S105: The program restart unit 110 sets that division of the divided machining area which is located in a positive direction relative to the cutting direction as a new machining area (see the fourth diagram from the top of
S106: The program restart unit 110 temporarily executes the program (to change only modal information and the like without driving a tool) up to the start point of the machining cycle, thereby restoring the modal information and the like. Thereafter, the tool is made to approach the machining start point in the new machining area generated in S105, and the machining is started according to the cutting conditions changed in the machining cycle editing unit 120 (see
S107: If the restart position is not the machining cycle, the program restart unit 110 can accept the specification of the restart position by the block number as usual. The program restart unit 110 restarts the execution of the program after temporarily executing the program up to the specified block number.
According to the present embodiment, the program restart unit 110 divides the machining area by the specified coordinate values and restarts the machining for the divisions of the divided machining area. In this way, the machining can be restarted from a proper position even if the machining conditions of the machining cycle are changed after the machining is stopped in the middle of the machining cycle.
As Example 2, an example is given in which the program restart unit 110 restarts the machining after the operation is interrupted (at a point indicated by an arrow in the lower diagram of
An operation performed when the program restart unit 110 restarts the program will be described with reference to the flowchart of
S201: Program restart processing is started. The program restart unit 110 determines whether or not the block for which the execution of the program should be restarted is the machining cycle. If the block concerned is the machining cycle, the operation proceeds to S202 after the cutting depth at the point in time of the machining interruption or the machining allowance at the restart of the machining is accepted. If not, the operation proceeds to S207.
S202: The program restart unit 110 calculates a straight line that is located in a position corresponding to the specified cutting depth at the point in time of the machining interruption or the machining allowance at the restart of the machining and is perpendicular to the cutting direction (see the second diagram from the top of
S203: The program restart unit 110 obtains two points of intersection between the straight line calculated in S202 and boundaries of the machining area.
S204: The program restart unit 110 divides the machining area by a line segment that connects the two points of intersection obtained in S203 (see the third diagram from the top of
S205: The program restart unit 110 sets that division of the divided machining area which is located in a positive direction relative to the cutting direction as a new machining area (see the fourth diagram from the top of
S206: The program restart unit 110 temporarily executes the program (to change only modal information and the like without driving the tool) up to the start point of the machining cycle, thereby restoring the modal information and the like. Thereafter, the tool is made to approach the machining start point in the new machining area generated in S205, and the machining is started according to the cutting conditions changed in the machining cycle editing unit 120 (see
S207: If the restart position is not the machining cycle, the program restart unit 110 can accept the specification of the restart position by the block number as usual. The program restart unit 110 restarts the execution of the program after temporarily executing the program up to the specified block number.
According to the present embodiment, the program restart unit 110 divides the machining area by the specified cutting depth at the point in time of the machining interruption or the machining allowance at the restart of the machining and restarts the machining for the divisions of the divided machining area. In this way, the machining can be restarted from a proper position even if the machining conditions of the machining cycle are changed after the machining is stopped in the middle of the machining cycle.
While an embodiment of the present invention has been described above, the invention is not limited to the above-described embodiment or examples and may be suitably modified and embodied in various forms.
In the above embodiment, the lathe turning has mainly been described by way of example. However, the present invention is also applicable to milling or other machining. Specifically, the present invention is applicable to any machining in which the machining cycle can be included in the program and the number of blocks can be varied by changing the machining blocks.
While embodiments of the present invention have been described above, the invention is not limited to the above-described embodiments and may be suitably modified and embodied in other forms.
Number | Date | Country | Kind |
---|---|---|---|
2017-194979 | Oct 2017 | JP | national |