This application is a new Patent Application that claims benefit of Japanese Patent Application No. 2017-119941, filed Jun. 19, 2017, the disclosure of this application is being incorporated herein by reference in its entirety for all purposes.
The present invention relates to a numerical controller, and more particularly, to a numerical controller having a tool retraction function.
In some cases, machining of a workpiece by a machine tool may be interrupted in the middle of the machining due to a power failure or tool change. When a signal that requests a stop is turned on manually or automatically in case the machining is expected to be interrupted, a numerical controller for controlling the machine tool senses the signal and stops a servomotor.
Since a tool and the workpiece are in contact with each other during the machining, if the drive of the motor that drives the machine tool is simply stopped, the machine tool is inevitably stopped with the tool and the workpiece in contact, possibly hindering subsequent operations. In general, therefore, control is required to operate a spindle and the like so as to separate the tool and the workpiece from each other when the machining is interrupted, that is, to retract the tool.
For example, Japanese Patent Application Laid-Open No. 62-88546 discloses a conventional technique for tool retraction control, in which an automatic retraction selection program is run to select Z-axis motion retraction, fixed-path motion retraction, and reverse-path motion retraction for processing if a tool is damaged. Moreover, Japanese Patent Application Laid-Open No. 2016-099824 discloses a technique in which a tool is retracted from a workpiece along a stop retraction path, which combines a path for deceleration stop along a movement path and a retraction path receding from the movement path, when a machining stop signal is sensed. Furthermore, Japanese Patent Application Laid-Open No. 2007-249484 discloses a technique for retracting a tool in its offset vector direction.
However, even if the tool is retracted from the workpiece in the Z-axis direction by using the technique disclosed in Japanese Patent Application Laid-Open No. 62-88546 or if the tool is retracted from the workpiece along the stop retraction path by using the technique disclosed in Japanese Patent Application Laid-Open No. 2016-099824, for example, the surface of the workpiece in contact with the tool may possibly be flawed. For example, if the tool is retracted in the retraction direction (Z-axis direction) shown in
On the other hand, the tool can be retracted away from the workpiece by using the technique disclosed in Japanese Patent Application Laid-Open No. 2007-249484. Since this technique is premised on the use of a tool offset function, however, it cannot deal with the case where a G-code command for commanding the tool offset direction is not described in a machining program (e.g., a case where the machining program is created based on the consideration of a tool radius offset from the beginning).
In general, in a case where machining is performed using a blade on the outer peripheral surface of a rotating tool such as that shown in
Accordingly, the object of the present invention is to provide a numerical controller having a tool retraction function for retracting a tool so as not to damage the machined surface of a workpiece when machining of the workpiece by a machine tool is interrupted.
The numerical controller of the present invention solves the above problems by identifying whether a method for machining the workpiece is down-cut or up-cut when the machining by the machine tool is interrupted and determining the direction of retraction of the tool based on the identified machining method, the direction of cutting feed (advance direction of the tool), and the rotation direction of a spindle.
A numerical controller according to the present invention controls a machine tool which includes a spindle and at least two feed axes for relatively moving the spindle and a workpiece and machines the workpiece by rotating a tool mounted on the spindle in accordance with a machining program. The numerical controller is configured to retract the tool from the workpiece with currently performed machining interrupted, based on a command to interrupt the machining while the workpiece is being machined. And the numerical controller comprises: a stop command detection unit configured to detect the command to interrupt the machining; a machining method identification unit configured to identify a machining method for the machining to be interrupted when the command to interrupt the machining is detected by the stop command detection unit; and a retraction path generation unit configured to determine the direction of the retraction of the tool, based on the machining method identified by the machining method identification unit and the feed direction and the rotation direction of the spindle in the machining to be interrupted, and to generate a movement path of the tool in the determined retraction direction.
The machining method can be either down-cut or up-cut.
The retraction path generation unit may assume, in a case where the machining method is down-cut, a leftward direction relative to the feed direction of the spindle to be the tool retraction direction if the rotation direction of the spindle is clockwise as viewed from the base of the spindle, or assume a rightward direction relative to the spindle feed direction to be the tool retraction direction if the spindle rotation direction is counterclockwise, or assume, in a case where the machining method is up-cut, the rightward direction relative to the spindle feed direction to be the tool retraction direction if the spindle rotation direction is clockwise as viewed from the base of the spindle or assume the leftward direction relative to the spindle feed direction to be the tool retraction direction if the spindle rotation direction is counterclockwise.
According to the present invention, the tool can be retracted from the workpiece lest the surface (machined surface) of the workpiece in contact with the tool be flawed even in case a tool offset or the like is not set in the machining program used in interrupting the machining of the workpiece by the machine tool.
The following is a description of a configuration example of a numerical controller for implementing the present invention. The configuration of the numerical controller of the present invention is not limited to the following example and any configuration may be used provided that it can achieve the object of the invention.
A CPU 11 of a numerical controller 1 according to the present embodiment is a processor for generally controlling the numerical controller 1. The CPU 11 reads out a system program in a ROM 12 through a bus 20 and controls the entire numerical controller 1 according to the read system program. A RAM 13 is loaded with temporary calculation data and display data, various data input by an operator through a display/MDI unit 70 (described later), and the like.
A non-volatile memory 14 is constructed as a memory that is, for example, backed up by a battery (not shown) so that its storage state can be maintained even when the numerical controller 1 is turned off. The non-volatile memory 14 is stored with a machining program read in through an interface 15, a machining program input through the display/MDI unit 70 (described later), and the like. While the non-volatile memory 14 is further stored with programs for machining program operation processing used to run the machining programs, these stored programs are developed in the RAM 13 at the time of execution. Moreover, various system programs (including a system program for a tool retraction function) for performing edit mode processing and the like needed to create and edit the machining programs are previously written in the ROM 12.
The interface 15 is an interface for connecting the numerical controller 1 and external equipment 72 such as an adapter. The machining programs and various parameters are read in from the side of the external equipment 72. Moreover, the machining programs edited in the numerical controller 1 can be stored in an external storage means through the external equipment 72. A programmable machine controller (PMC) 16 controls peripheral devices (e.g., an actuator such as a robot hand for tool change) of the machine tool by outputting signals to them through an I/O unit 17 according to a sequential program stored in the numerical controller 1. Furthermore, on receiving signals from various switches on a control panel on the main body of the machine tool, the PMC 16 processes the signals as required and delivers them to the CPU 11.
The display/MDI unit 70 is a manual data input unit equipped with a display, keyboard and the like, and an interface 18 receives commands and data from the keyboard of the display/MDI unit 70 and delivers them to the CPU 11. An interface 19 is connected to a control panel 71 equipped with a manual pulse generator and the like used to manually drive axes.
An axis control circuit 30 for controlling the axes of the machine tool receives a movement command amount of each axis from the CPU 11 and outputs a command for the axis to a servo amplifier 40. On receiving this command, the servo amplifier 40 drives a servomotor 50 for moving the axes of the machine tool. The servomotor 50 for the axes has a position/speed detector built-in, and a position/speed feedback signal from this position/speed detector is fed back to the axis control circuit 30 to perform position and speed feedback control. In the hardware configuration diagram of
A spindle control circuit 60 receives a spindle rotation command for the machine tool and outputs a spindle speed signal to a spindle amplifier 61. On receiving this spindle speed signal, the spindle amplifier 61 rotates a spindle motor 62 of the machine tool at a commanded rotational speed, thereby driving a tool.
A position coder 63 is connected to the spindle motor 62. The position coder 63 outputs feedback pulses in synchronization with the rotation of a spindle and the feedback pulses are read by the CPU 11.
Each of functional blocks shown in
The command analysis unit 100 successively reads out command blocks included in a machining program 200, analyzes the read command blocks, and calculates movement command data including a command value F of the feed rate of the spindle and spindle rotation command data including a command value S of the spindle speed. Moreover, on receiving a command from the stop command detection unit 140, the command analysis unit 100 stops the analysis of the machining program 200 (or interrupts machining).
The interpolation unit 110 generates interpolation data obtained by carrying out interpolation calculation on points on a command path commanded by the movement command data in interpolation cycles (or control cycles), based on the command value F of the spindle feed rate calculated by the command analysis unit 100. Interpolation processing by the interpolation unit 110 is performed in each interpolation cycle (or control cycle).
The servo control unit 120 controls the servomotor 50 for controlling the axes of the machine tool to be controlled, based on the interpolation data generated by the interpolation unit 110.
Moreover, the spindle control unit 130 controls the spindle motor 62 for rotating the spindle of the machine tool to be controlled, based on the spindle rotation command data.
The stop command detection unit 140 detects commands (e.g., a stop signal output as the operator operates the control panel 71) to request the interruption of the machining and a tool retraction operation, outputs an interruption command for the currently performed machining to the command analysis unit 100, and also outputs a command for the start of tool retraction control to the machining method identification unit 150 and the retraction path generation unit 160.
On receiving a command from the stop command detection unit 140, the machining method identification unit 150 identifies the machining method for the currently performed machining, that is, the machining to be interrupted. The machining method identification unit 150 identifies whether the machining to be interrupted is down-cut or up-cut with reference to a setting area, which is provided in, for example, the non-volatile memory 14 of the numerical controller and stores setting information on control, and to setting related to a machining method previously set by the operator's operation or in response to a command from a host device (e.g., host computer or cell computer) for process management. When this is done, a single machining method unified for the entire machining program may be set as the setting related to the machining method, or otherwise, different machining methods may be allowed to be set individually for the block ranges or the blocks of the machining program. Moreover, if the setting related to the machining method can be included in the machining program, the machining method identification unit 150 may be configured to read it out of the machining program.
On receiving a command from the stop command detection unit 140, the retraction path generation unit 160 generates a movement command for a retraction direction in which the tool is retracted from a workpiece and outputs it to the interpolation unit 110, based on the machining method (up-cut or down-cut) for the machining to be interrupted, identified by the machining method identification unit 150, and the feed direction of the tool and the rotation direction of the spindle in a movement command for the machining to be interrupted, analyzed by the command analysis unit 100.
If the machining method is down-cut, as shown in
The amount of movement in the movement command to retract the tool from the workpiece in the retraction direction, which is generated by the retraction path generation unit 160, may be allowed to be previously set in the setting area in the non-volatile memory 14 or the like of the numerical controller 1 by the operator or the host device. Moreover, the retraction path generation unit 160 may be designed to be able to suitably add or synthesize a retraction path created by a conventional technique disclosed in, for example, Japanese Patent Application Laid-Open No. 62-88546 or 2016-099824 to or with the movement command to retract the tool from the workpiece.
According to the above configuration, the tool can be retracted from the workpiece lest the surface (machined surface) of the workpiece in contact with the tool be flawed even in case a tool offset or the like is not set in the machining program used in interrupting the machining. In particular, the tool can be properly retracted even if a G-code command for commanding the tool offset direction is not used in a machining program created by a machining program creator or if a machining program that does not use any G-code command for commanding the tool offset direction is output depending on the setting and specifications of a CAD/CAM, that is, even in case the machining program is created using a command for which a tool radius is added.
While an embodiment of the present invention has been described herein, the invention is not limited to the above-described embodiment and may be suitably modified and embodied in various forms.
Number | Date | Country | Kind |
---|---|---|---|
2017-119941 | Jun 2017 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5060544 | Hanaki | Oct 1991 | A |
6556879 | Matsumoto et al. | Apr 2003 | B1 |
20120265338 | Keibel | Oct 2012 | A1 |
20150137726 | Tang | May 2015 | A1 |
20160147213 | Murakami | May 2016 | A1 |
Number | Date | Country |
---|---|---|
62-88546 | Apr 1987 | JP |
S63250709 | Oct 1988 | JP |
2000235411 | Aug 2000 | JP |
2007188170 | Jul 2007 | JP |
2007-249484 | Sep 2007 | JP |
2015097045 | May 2015 | JP |
2016-99824 | May 2016 | JP |
Entry |
---|
Decision to Grant a Patent for Japanese Application No. 2017-119941, dated Nov. 27, 2018, with translation, 6 pages. |
Chinese Office Action for Chinese Application No. 201810616198.4, dated Jul. 17, 2019, with translation, 13 pages. |
Number | Date | Country | |
---|---|---|---|
20180364681 A1 | Dec 2018 | US |