1. Field of the Invention
The present invention relates to a numerical controller and particularly relates to a numerical controller that has a cutting control function through turret rotation.
2. Description of the Related Art
In an ordinary lathe, having a straight axis (generally referred to as X axis) that makes a cutter move in radial directions with respect to a work, control over depth of cut is carried out through straight-line movement by the X axis. Meanwhile, machine tools preferably have small number of axes for reduction in costs and sizes. A cost reduction effect and/or a size reduction effect are obtained if the depth of cut can be controlled without use of a straight-line movement mechanism for the X axis and if the straight-line movement mechanism for the X axis can be omitted.
Prior art techniques in which the depth of cut is controlled by means other than the straight-line movement mechanism for the X axis include techniques disclosed in Japanese Patent No. 5287986 and Japanese Patent Application Laid-Open No. 2009-190157. In these techniques, cutting work is performed on a workpiece that does not rotate, by controlling a tool so that it revolves around the workpiece, an eccentric rotation part that holds the tool on a first rotation table is provided in addition to a spindle rotation part that faces a chuck which fixes the workpiece and that rotates as a spindle, and the depth of cut is controlled based on rotation control over the eccentric rotation part.
These techniques, however, are intended for machines of types in which the tool revolves around the fixed workpiece and the machines of such types have problems in that necessary tool change is troublesome because of impossibility to attach a plurality of tools thereto. On the other hand, a machine with a turret to which a plurality of tools can be attached is of a type in which a rotating workpiece is turning-machined by pressing a tool attached to the turret against the rotating workpiece and it is impossible to simply apply the techniques disclosed in Japanese Patent No. 5287986 and Japanese Patent Application Laid-Open No. 2009-190157 described above to the machines of the type.
An object of the present invention is to provide a numerical controller that enables control for turning without use of a straight-line movement mechanism for X axis in a machine with a turret to which one or more tools can be attached.
In the numerical controller of the invention, as illustrated in
The numerical controller according to the invention is configured to control a machine which carries out machining of a rotating workpiece by pressing a tool attached to a turret against the rotating workpiece, based on a program command, and the numerical controller includes a command analysis unit that generates movement command data by analyzing the program command and an axis travel calculation unit that, when the movement command data generated by the command analysis unit is a movement command data for moving the tool in a direction of a first straight axis orthogonal to an axis of rotation of the workpiece, converts a command value based on the program command for the movement of the tool in the direction of the first straight axis into a command value for the rotation angle of the turret. The numerical controller controls a position of the tool in accordance with a rotation command for the turret based on the command value for the rotation angle of the turret calculated by the axis travel calculation unit, instead of a command based on the program command for the movement in the direction of the first straight axis.
A plurality of tools may be attached to the turret, a rotatable angle of the turret for restriction on the rotation angle of the turret and a position of the turret in Z axis direction suitable to change of the tool in use of the tool for the machining may be set in advance for each of the plurality of tools, and, when the program command is a command for change of the tool for use in the machining, movement to the position of the turret in the Z axis direction suitable to the change of the tool and switching of the rotatable angle of the turret to the rotatable angle of the turret set for the tool after the change may be carried out.
The machine may have a second straight axis that enables relative movement of a position of the workpiece and a position of the turret in a direction orthogonal to an axis of rotation of the workpiece and orthogonal to the first straight axis, the axis travel calculation unit may calculate a command value for the second straight axis so that the turret is moved to a position where the tool for use in the machining can cut in to a position of rotation center of the workpiece by means of only rotation of the turret, and the numerical controller may control the relative positions of the workpiece and the turret based on the command value for the second straight axis.
The machine may have the second straight axis that enables the relative movement of the position of the workpiece and the position of the turret in the direction orthogonal to the axis of rotation of the workpiece and orthogonal to the first straight axis and an angle formed between the tool and a radial direction of the workpiece when the tool for use in the machining is pressed against the workpiece by rotation of the turret may be changeable by movement of the second straight axis for change in a life of the tool or cutting resistance.
The invention enables omission of the straight-line movement mechanism for the X axis in a machine with a turret to which one or more tools can be attached and contributes to reduction in costs and sizes of the machine.
A numerical controller according to a first embodiment controls rotation of a turret so as to attain a commanded straight-line depth of cut in X axis direction which is a first straight-line direction orthogonal to a rotation axis of a workpiece.
As illustrated in
As illustrated in
In the numerical controller of the embodiment, the rotation angle θ of the turret 4 is controlled so that a value of X in
In such a mechanical structure, relation between X and θ is expressed in equation (1) stated below. A solution of equation (1) for θ is expressed in equation (2) stated below.
In the numerical controller of the embodiment, the command value for the X axis is converted into a command value θ of the rotation angle of the turret 4 with use of the equation (2).
The numerical controller 1 of the embodiment includes a command analysis unit 10, an axis travel calculation unit 11, an interpolation unit 12, an acceleration/deceleration control unit 13, and a servo control unit 14.
The command analysis unit 10 sequentially reads out and analyzes blocks including commands for travels of axes from a program 20 stored in a memory not illustrated, prepares movement command data to command movement of the axes based on results of such analysis, and outputs the prepared movement command data to the axis travel calculation unit 11.
When a command based on the movement command data received from the command analysis unit 10 is related to the X axis, the axis travel calculation unit 11 converts the command value for the X-axis based on the movement command data into the command value θ of the rotation angle of the turret 4 with use of equation (2) as described above and outputs the converted movement command data to the interpolation unit 12. When the radius value as the command value is 5.0 [mm] and when R is 20.0 [mm], for instance, θ is approximately 7.18 [deg]. When no solution exists for equation (2) in such cases where the radius value as the command value is 100.0, for instance, error handling such as alarm generation is carried out.
The interpolation unit 12 generates data resulting from interpolation calculation of points on a command path at an interpolation cycle based on a movement command given pursuant to the movement command data the axis travel calculation unit 11 outputs.
The acceleration/deceleration control unit 13 carries out an acceleration/deceleration process based on the interpolation data the interpolation unit 12 outputs, calculates speeds of the drive axes for each interpolation cycle, and outputs the interpolation data, to which results of such calculation have been applied, to the servo control unit 14.
The servo control unit 14 controls servo motors 2 for the axes of the machine that is a controlled object, based on output of the acceleration/deceleration control unit 13.
[Step SA01] The command analysis unit 10 sequentially reads out and analyzes the blocks including the commands for the travels of the axes from the program 20 stored in the memory not illustrated, prepares the movement command data to command the movement of the axes based on the results of such analysis, and outputs the prepared movement command data to the axis travel calculation unit 11.
[Step SA02] The axis travel calculation unit 11 determines whether the command value for the X axis commands the diameter value of the workpiece or commands the radius value of the workpiece. The process proceeds to Step SA03 if the command value for the X axis commands the diameter value of the workpiece, or the process proceeds to Step SA04 if the command value for the X axis commands the radius value of the workpiece.
[Step SA03] The axis travel calculation unit 11 halves the command value for the X axis to convert the command value into the radius value.
[Step SA04] The axis travel calculation unit 11 performs a calculation using equation (2) based on the given command value for the X axis and determines whether the solution of equation (2) exists or not. The process proceeds to Step SA05 if the solution of equation (2) exists, or the process proceeds to Step SA07 if the solution of equation (2) does not exist.
[Step SA05] The axis travel calculation unit 11 performs a calculation using equation (2) based on the given command value for the X axis and thereby calculates the rotation angle θ of the turret 4.
[Step SA06] Based on the movement command data to which the rotation angle θ of the turret 4 calculated by the axis travel calculation unit 11 in Step SA05 is applied, the interpolation unit 12 and the acceleration/deceleration control unit 13 carry out an interpolation process and the acceleration/deceleration process and the servo control unit 14 controls the servo motors 2 for the axes based on results of the processes, so that the process is ended.
[Step SA07] The axis travel calculation unit 11 gives an operator a command stating that the given command value for the X axis cannot be converted into the rotation angle θ of the turret 4 and interrupts machining processes.
Thus the servo control unit 14 controls the servo motors 2 for driving and rotating the turret 4 so that the rotation angle θ of the turret 4 may have the value θ calculated pursuant to the processes illustrated in the flow chart of
A numerical controller according to a second embodiment controls a machine in which a plurality of tools are attached to a turret.
Usually, the plurality of tools are attached to the turret and tool change is carried out with the turret rotated. For the tool change, in the numerical controller of the embodiment, switching control of a rotatable angle of the turret, movement of the turret to a position suitable to the tool change, and auto-change control over the value of the rotation angle θ of the turret are carried out. A functional block diagram of the numerical controller according to the embodiment is similar to the functional block diagram illustrated in
Hereinbelow, details of the control that is carried out by the above-mentioned numerical controller of the embodiment will be described.
The switching control of the rotatable angle of the turret 4 for the tool change is carried out in order to ensure safety during tool switching and to enable tool change operations. For instance, it is assumed that a front view of the turret 4 is as illustrated in
When the turret 4 is rotated in order to isolate the first tool T1 from the workpiece W during machining with use of the first tool T1 in this configuration, as illustrated in
During a cutting operation, therefore, the rotation of the turret 4 is controlled with the rotation angle θ of the turret 4 restricted within a safe range. The safe range of the rotation angle θ of the turret 4 is determined differently for each tool in accordance with a mechanical structure and the ranges of such restriction are respectively set as parameters in advance for the tools. In case where any deviation from the set range occurs, an alarm is generated.
On the other hand, the tool change is usually carried out with the turret 4 isolated from the workpiece W as illustrated in
The movement of the turret 4 to the position suitable to the tool change is carried out in order to increase the safety during the tool switching operation and in order to reduce burdens on the operator. When the tool change is commanded, movement of the workpiece W and the tools T1 and T2 to positions isolated in the Z axis direction as illustrated in
The auto-change control over the value of the rotation angle θ of the turret is carried out in order to reduce the burdens on the operator. For instance, it is assumed that the value of θ is 45° as illustrated in
[Step SB01] The command analysis unit 10 reads out a tool change command from the program 20, then reads out a position in the Z axis direction that is suitable to the tool change and that is set as the parameter, and prepares the movement command data for the position. The servo control unit 14 controls the servo motor 2 that drives the turret 4 in the Z axis direction and thereby moves the turret 4 to the position suitable to the tool change.
[Step SB02] Upon readout of the tool change command from the program 20, the command analysis unit 10 disables the restriction so that the turret 4 which has made rotating motions only within the angle range may freely move 360°. Thus the tool change operation is enabled.
[Step SB03] Based on the movement command data on the tool change that has been prepared by the command analysis unit 10, the servo control unit 14 controls the servo motor 2 that drives the turret 4 and thereby carries out the tool change.
[Step SB04] Tool numbers before and after the tool change are acquired. A currently selected tool number is stored in a memory upon each tool change and the tool number before the tool change is acquired from the memory. The tool number after the tool change can be acquired from a command value because a usual command for tool selection has a format including a tool number, such as T0001.
[Step SB05] The difference between the angle for the tool before the tool change and the angle for the tool after the tool change is acquired based on the tool numbers before and after the tool change, which are acquired in Step SB04. The differences between the angles for the tools are set as the parameters in advance and the difference between the angles before and after the tool change is acquired from the parameter setting values with use of the tool numbers before and after the tool change, which are acquired in Step SB04.
[Step SB06] The difference between the angles for the tools, acquired in Step SB05, is added to the current rotation angle θ of the turret 4 and a resultant value is set as the new rotation angle θ of the turret 4. Thus the rotation angle θ of the turret 4 is changed from the value of the angle for the tool before the tool change to the value of the angle for the tool after the tool change.
[Step SB07] The angle range within which the tool after the tool change is movable is acquired from the parameter setting values. Then the restriction on the rotation angle of the turret 4 is enabled within the acquired angle range, so that the turret 4 may be rotated within the safe range.
The first and second embodiments described above are intended for machines that allow the straight-line movement of the turret 4 only in the Z axis direction. Provided that a mechanism which causes straight-line movement of the turret 4 in Y axis direction perpendicular to the Z axis direction can be added thereto as illustrated in
Hereinbelow, details of control that is carried out by the above-mentioned numerical controller of the embodiment will be described.
Control that makes the edge of the tool pass through the center of the workpiece even if the distances from the center of the turret to the edges of the tools are different is carried out in order to cope with difference in the distances from the center of the turret to the tools (first tool T1 and second tool T2) as illustrated in
In order that cutting to the center of the workpiece may be enabled, however, the center of the workpiece is required to be positioned on the movement path of the edge of the tool that is provided by the rotation of the turret, as described for the first embodiment. For the change to the second tool T2, accordingly, the turret 4 is moved in the Y axis direction perpendicular to the Z axis direction so that the center of the workpiece may be positioned on the movement path of the edge of the tool that is provided by the rotation of the turret, as illustrated in
A travel of the turret 4 in the Y axis direction that is required for attainment of positional relation in
Y=√{square root over (R22−R12)} (3)
For the change from the first tool T1 to the second tool T2, movement of the Y axis by the travel calculated by the equation causes the center of the workpiece W to be positioned on the movement path of the edge of the tool that is provided by the rotation of the turret.
When equation (1) and equation (2), described for the first embodiment, are used with the movement of the Y axis, the value of θ needs to be changed so as to coincide with an angle illustrated in
Here, θorg denotes the value of θ in a state before movement of the turret in the Y axis direction. When the turret is moved in the Y axis direction, the change in the value of θ in accordance with equation (4) makes the value of θ coincide with the angle illustrated in
Meanwhile, control for changing the inclination of the tool in contact with the workpiece W is carried out therein so that the movement of the turret in the Y axis direction may make the center of the workpiece deviate from the movement path of the edge of the tool that is provided by the rotation of the turret, as illustrated in
The angle formed between the radial direction of the workpiece and the direction of the tool relates to a life of the tool, cutting resistance, and the like and thus change in the angle may extend the life of the tool.
With definitions of the distance from the center of the workpiece to the edge of the tool after the movement of the turret in the Y axis direction as a variable X, the travel distance of the turret in the Y axis direction as Y, and the turret rotation angle as θ, as illustrated in
Herein, the operator specifies the travel of the Y axis, using the machining program. When a command for the value of X is given by the machining program in a state in which the turret has been moved in the Y axis direction, the distance from the center of the workpiece to the edge of the tool can be made to coincide with the command value by calculation of θ in accordance with the equation and by the control for attainment of the rotation angle of θ of the turret.
When this method is applied, the cutting to the center of the workpiece cannot be attained because the center of the workpiece is not on the movement path of the edge of the tool that is provided by the rotation of the turret and thus a machinable range is limited. In case where the command for the value of X that cannot be attained is given, error handling such as alarm generation is carried out.
Though the embodiments of the invention have been described above, the invention is not limited to examples of the embodiments described above and can be embodied in various manners with appropriate modification. Though the turret is moved in the Z axis direction in the above examples, the invention can be implemented in examples such as automatic lathe in which a workpiece is moved in the Z axis direction and in which a turret is not moved in the Z axis direction, for instance.
Number | Date | Country | Kind |
---|---|---|---|
2016-006392 | Jan 2016 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
3987350 | Pomella | Oct 1976 | A |
4090281 | Hautau | May 1978 | A |
4899094 | Pilborough | Feb 1990 | A |
5815400 | Hirai | Sep 1998 | A |
5842392 | Pfeifer | Dec 1998 | A |
5974643 | Hays | Nov 1999 | A |
6775586 | Shibata | Aug 2004 | B2 |
7869897 | Otsuki | Jan 2011 | B2 |
20060111019 | Hyatt | May 2006 | A1 |
20090214313 | Kato et al. | Aug 2009 | A1 |
20110080673 | Aoshima | Apr 2011 | A1 |
20120065768 | Sakata | Mar 2012 | A1 |
20140114465 | Terada | Apr 2014 | A1 |
20150134101 | Iuchi | May 2015 | A1 |
20150151445 | Masumiya | Jun 2015 | A1 |
20150227130 | Terada et al. | Aug 2015 | A1 |
20160224006 | Otomo | Aug 2016 | A1 |
20170008109 | Wuerfel | Jan 2017 | A1 |
20170113313 | Aoyagi | Apr 2017 | A1 |
20170131692 | Kawai | May 2017 | A1 |
20170160722 | Kawai | Jun 2017 | A1 |
20180117681 | Aoyagi | May 2018 | A1 |
20180369978 | Persico | Dec 2018 | A1 |
20190201988 | Ibarra Garces | Jul 2019 | A1 |
Number | Date | Country |
---|---|---|
0241801 | Feb 1990 | JP |
1058279 | Mar 1998 | JP |
2009-190157 | Aug 2009 | JP |
5287986 | Jun 2013 | JP |
2013088884 | Jun 2013 | WO |
2014038101 | Mar 2014 | WO |
Entry |
---|
Notification of Reasons for Refusal for Japanese Application No. 2016-006392, dated Dec. 5, 2017 with translation, 6 pages. |
Number | Date | Country | |
---|---|---|---|
20170203371 A1 | Jul 2017 | US |