Numerical control apparatus having function of reducing path to start point in canned cycle
09599978 ยท 2017-03-21
Assignee
Inventors
Cpc classification
G05B19/182
PHYSICS
International classification
G05B19/18
PHYSICS
Abstract
In a canned cycle, a straight path is set from a cutting completion position in a cycle to a cutting start position in a next cycle. Furthermore, when there is a possibility that the set straight path interferes with a workpiece, a region for which the workpiece has been already cut is determined, and a path not interfering with the workpiece is set with as short length as possible.
Claims
1. A numerical control apparatus configured to control a lathe where a workpiece rotates in order to reduce a path length, the lathe upon one instruction, configured to machine a workpiece from a material shape thereof to a finishing shape thereof in accordance with a canned cycle constituted of a plurality of cutting cycles for each cutting cycle of which a movement path from a start position thereof to an end position thereof is formed of a plurality of paths as one cutting cycle, the apparatus comprising: an interference check configured to: determine whether or not interference between the workpiece and the movement path arises when the movement path from a cutting completion position in the one cycle to a cutting start position in a next cycle is straight, change, when the interference is determined not to arise, the movement path from the cutting completion position in the one cycle to the cutting start position in the next cycle to be straight, and when interference is determined to arise, change the movement path from the cutting completion position in the one cycle to the cutting start position in the next cycle so that interference is eliminated, wherein when the interference check determines that the movement path interferes with the workpiece, a straight movement along two blocks of straight lines from the cutting completion position in the one cycle to the cutting start position in the next cycle is made within a range in which no interference with the workpiece is determined, the two straight lines forming an angle of 90 degrees or more and less than 180 degrees.
2. A numerical control apparatus configured to control a lathe where a workpiece rotates in order to reduce a path length, the lathe upon one instruction, configured to machine a workpiece from a material shape thereof to a finishing shape thereof in accordance with a canned cycle constituted of a plurality of cutting cycles for each cutting cycle of which a movement path from a start position thereof to an end position thereof is formed of a plurality of paths as one cutting cycle, the apparatus comprising: an interference check configured to: determine whether or not interference between the workpiece and the movement path arises when the movement path from a cutting completion position in the one cycle to a cutting start position in a next cycle is straight, change, when the interference is determined not to arise, the movement path from the cutting completion position in the one cycle to the cutting start position in the next cycle to be straight, and when interference is determined to arise, change the movement path from the cutting completion position in the one cycle to the cutting start position in the next cycle so that interference is eliminated, wherein when the interference check determines that the movement path interferes with the workpiece, a movement with a shape of an arc is made, the arc passing through three positions of a position which falls within a range in which no interference with the workpiece is determined, the cutting completion position in the one cycle and the cutting start position in the next cycle.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Other aspects and advantages, as well as the above-mentioned ones, of the present invention will be apparent more from the following detailed description of the embodiments with reference to the accompanying drawings which are:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
(22) In the present specification hereafter, a first planar axis designates an X-axis in the case of an XY-plane, designates a Z-axis in the case of a ZX-plane and designates a Y-axis in the case of a YZ-plane. Moreover, a second planar axis designates the Y-axis in the case of the XY-plane, designates the X-axis in the case of the ZX-plane and designates the Z-axis in the case of the YZ-plane.
(23)
(24) The PMC 213 outputs a signal to an auxiliary apparatus, of a machining machine, which is a control object on the basis of a sequence program built in the numerical control apparatus 200, or performs control upon input from a signal from the auxiliary apparatus. Moreover, the PMC 21.3 receives signals of various switches on an operation panel installed in the main body of the machining machine controlled by the numerical control apparatus to perform necessary processing on the signals, and after that, transmits the signals to the CPU 211.
(25) The axis control circuits 217 for three axes in total, for the X-axis, the Y-axis and the Z-axis, receive movement instruction amounts which undergo interpolation processing and are distributed from the CPU 211 to the axes, and output instructions for the axes to servo amplifiers 218, respectively. The servo amplifiers 218 receive the instructions and drive servo motors 219 for the axes of the machine tool, respectively.
(26) Each of the servo motors 219 for the axes includes a position/speed detector 225. A position/speed feedback signal from the position/speed detector 225 is fed back to the axis control circuit 217 to perform feedback control of the speed and position.
(27) Moreover, a drive current outputted from the servo amplifier 218 to the servo motor 219 is detected by a current detector 224 and fed back to the axis control circuit 217 to be used for current control or torque control. The spindle control circuit 220 receives a spindle rotation instruction and outputs a spindle speed signal to a spindle amplifier 221. The spindle amplifier 221 receives the spindle speed signal and the spindle motor 222 rotates at the instructed rotation speed. Meanwhile, a position coder 227 detects the rotation speed of the spindle, feeds it back to the spindle control circuit 220 to perform speed control. Furthermore, the spindle control circuit 220 receives a current feedback signal from a current detector 226 that detects a drive current flowing through a spindle motor 222 to perform current loop control for controlling the rotation speed of the spindle motor 222.
(28) This control is mainly applied to a lathe machine in which a workpiece rotates. The spindle contains the spindle motor 222 inside and the workpiece is mounted on the spindle. In the state where the spindle is fixed as a whole, rotation of the spindle motor 222 causes the workpiece mounted on the spindle to rotate. A tool is mounted on a tool rest and driven by the servo motors 219 for the X-axis, the Y-axis and the Z-axis which are movable axes to operate. The tool mounted on the tool rest is pressed on the workpiece with operation via the X-axis, the Y-axis and the Z-axis which are the movable axes to be moved relatively to the workpiece, which undergoes machining.
(29) The numerical control apparatus 200 has a function of interpreting and executing the machining program constituted of machining cycle instructions. The processor, that is, CPU 211 of the numerical control apparatus 200 analyses the machining program constituted of machining cycle instructions and stores workplace shape data for cycle machining designated by the machining program in the memory 212. It calculates and converts machining paths for cycle machining on the basis of the workpiece shape data into tool path instructions and stores the tool path instruction thus converted in the memory 212.
(30)
(31) In the conventional canned cycle, as illustrated in
(32) On the contrary, in Embodiment. 1, as illustrated in
(33) As illustrated in
(34) (First Piece of Interference Check Means)
(35) A straight movement from the cutting completion position in the cycle to the cutting start position in the next cycle by way of example is described. In
(36)
(37) In the case of ideal operation of the first planar axis and the second planar axis from the cutting completion position 23 in the cycle to the next cutting start position 24, interference does not arise. Nevertheless, in real cycle machining, there is a possibility of the second planar axis to operate earlier microscopically. Therefore, interference is here determined to arise.
(38)
(39) (Second Piece of Interference Check Means)
(40) A straight movement from the cutting completion position in the cycle to the cutting start position in the next cycle by way of example is described. As illustrated in
(41)
(42)
(43)
(44) (Third Piece of Interference Check Means)
(45) In the case of a straight movement from a cutting completion position 65 in the cycle to a cutting start position 66 in the next cycle, a reference value is discussed. The reference value is a distance in, the direction of the second planar axis, or the second planar axis direction, from a position 61 at which the movement direction changes and for which an angle formed by the first planar axis and a straight line connecting the cutting completion position 65 in the cycle to a position at which the movement direction changes in the cycle is at its minimum to the workpiece 21 on the path of the conventional canned cycle, illustrated in
(46) When a distance in the second planar axis direction, to a set path, from the position at which the movement direction changes and for which an angle formed by the first planar axis and a straight line connecting the cutting completion position 65 in the cycle to a position at which the movement direction changes in the cycle is at its minimum, that is, a distance designated by a in
(47) (Fourth Piece of Interference Check Means)
(48) In the case of a straight movement from a cutting completion position 75 in the cycle to a cutting start position. 76 in the next cycle, a reference value is discussed as the fourth piece. The reference value is a distance in the second planar axis from a position 73 at which the movement direction changes and for which an angle formed by the first planar axis and a straight line connecting the cutting start position 76 in the next cycle to a position at which the movement direction changes in the cycle is at its maximum to the workpiece 21 on the path of the conventional canned cycle, illustrated in
(49) When a distance in the second planar axis direction, to a set path, from the position 73 at which the movement direction changes and for which an angle formed by the first planar axis and a straight line connecting the cutting start position 76 in the next cycle to a position at which the movement direction changes in the cycle is at its maximum, that is, a distance designated by b in
(50) In the case where interference between the path and the workpiece is checked by the third piece of interference check means and the fourth piece of interference check means, for the reference values and in
(51) Interference with the workpiece is prevented using one of the first to fourth pieces of interference check means or a combination of these. When no interference with the workpiece is determined by all of the first to fourth pieces of interference check means, cycle operation along a path of a straight movement from the cutting completion position in the cycle to the cutting start position in the next cycle mentioned above is made as illustrated in
(52) A reduced path for each cycle in a simple canned cycle has a high possibility to be the path in Embodiment 1 illustrated in
(53) As illustrated in
(54) Therefore, as illustrated in
(55)
(56)
(57) Herein, the position at which the movement direction changes and for which an angle formed by the first planar axis and a straight line connecting the cutting completion position 100 in the cycle to a position at which the movement direction changes in, the cycle is at its minimum is same as the position at which the movement direction changes and for which an angle formed by the first planar axis and a straight line connecting the cutting start position 102 in the next cycle to a position at which the movement direction changes in the cycle is at its maximum, that is, a position 103 illustrated in
(58)
(59) As illustrated in
(60) Embodiment 3 substitutes an arc movement for the blocks of the straight movements in Embodiment 2. Otherwise, an arc movement allows the two blocks of straight movements to be one block of arc movement. When the path of the two blocks of straight movements exemplarily illustrated in
(61) Moreover, depending on the shape of the workpiece 21, an arc movement between the cutting completion position 120 in the cycle and a position, which falls within a range in which no interference with the workpiece is determined and a straight movement between a position 121 which falls within the succeeding range in which no interference with the workpiece is determined and a cutting start position 122 in the next cycle may be made. Conversely, a straight movement between the cutting completion position 120 in the cycle and the position 121 which falls within the range in which no interference with the workpiece is determined and an arc movement between the position 121 which falls within the succeeding range in which no interference with the workpiece is determined and the cutting start position 122 in the next cycle may be made.
(62) Next, a cycle process in the canned cycle is described using flowcharts.
(63)
(64) [Step SA01] A process A is performed. Details of the process A are a process in the flowchart illustrated in
(65) [Step SA02] A straight path from the cutting completion position in the cycle to the start position of the next cycle is set.
(66) [Step SA03] A process B is performed. Details of the process B are a process in the flowchart illustrated in
(67) [Step SA04] A movement along the set path is made to end the current cycle in the canned cycle.
(68)
(69) [Step SB01] Coordinates of the first position constituting the cycle are read.
(70) [Step SB02] Whether or not it is the cutting start position in the next cycle is determined. When it is the cutting start position in the next cycle (YES), the process is put forward to step SB04, and when it is not the cutting start position in the next cycle (NO), the process is put forward to step SB03.
(71) [Step SB03] Coordinates of the next position constituting the cycle are read. The process is returned to step SB02.
(72) [Step SB04] The coordinates of the position are stored.
(73) [Step SB05] Coordinates of the next position constituting the cycle are read.
(74) [Step SB06] Whether or not it is the cutting completion position in the cycle is determined. When it is the cutting completion position in the cycle (YES), the process is put forward to step SB08, and when it is not the cutting completion position in the cycle (NO), the process is put forward to step SB07.
(75) [Step SB07] Whether or not it is a position at which the movement direction changes in the cycle is determined. When it is a position at which the movement direction changes (YES), the process is returned to step SB04, and when it is a position at which the movement direction does not change (NO), the process is returned to step SB05.
(76) [Step SB08] The coordinates of the position are stored to end the process of storing the position coordinates for obtaining the shape.
(77)
(78) [Step SC01] Whether or not interference is determined by the first piece of interference check means is determined. When interference is determined by the first piece of interference check means (YES), the process is put forward to step SC02, and when no interference is determined by the first piece of interference check means (NO), the process is put forward to step SC09.
(79) [Step SC02] A parallel movement to the first planar axis is made to a position for which no interference is determined by the first piece of interference check means.
(80) [Step SC03] Whether or not interference is determined by the second piece of interference check means is determined. When interference is determined by the second piece of interference check means (YES), the process is put forward to step SC04, and when no interference is determined by the second piece of interference check means (NO), the process is put forward to step SC05.
(81) [Step SC04] A parallel movement to the first planar axis is made to a position for which no interference is determined by the second piece of interference check means.
(82) [Step SC05] Whether or not interference is determined by the third piece of interference check means is determined. When interference is determined by the third piece of interference check means (YES), the process is put forward to step SC06, and when no interference is determined by the third piece of interference check means (NO), the process is put forward to step SC07.
(83) [Step SC06] A parallel movement to the first planar axis is made to a position for which no interference is determined by the third piece of interference check means.
(84) [Step SC07] Whether or not interference is determined by the fourth piece of interference check means is determined. When interference is determined by the fourth piece of interference check means (YES), the process is put forward to step SC08, and when no interference is determined by the fourth piece of interference check means (NO), the process is put forward to step SC10.
(85) [Step SC08] A parallel movement to the first planar axis is made to a position for which no interference is determined by the fourth piece of interference check means. The process is put forward to step SC10.
(86) [Step SC09] A process C is performed. Details of the process C are a flowchart illustrated in
(87) [Step SC10] Two blocks of straight movements or not is determined. In the case of two blocks of straight movements (YES), the process is put forward to step SC11, and in the case of no two blocks of straight movements (NO), the interference check and the reconfiguration process 1 of the path are ended.
(88) [Step SC11] Whether or not the straight movements are changed to an arc movement is determined. In the case of change to an arc movement (YES), the process is put forward to step SC12, and in the case of no change to an arc movement (NO), the interference check and the reconfiguration process 1 of the path are ended.
(89) [Step SC12] The arc movement is set to pass through a position which falls within a range in which no interference with the workpiece is determined, the cutting completion position in the cycle and the cutting start position in the cycle to end the interference check and the reconfiguration process 1 of the path.
(90)
(91) [Step SD01] Whether or not interference is determined by the second piece of interference check means is determined. When interference is determined by the second piece of interference check means (YES), the process is put forward to step SD02, and when no interference is determined by the second piece of interference check means (NO), the process is put forward to step SD03.
(92) [Step SD02] A path, of two straight lines, which passes through a position which is led by parting a position at which the movement direction changes and for which an angle formed by the first planar axis and a straight line connecting the cutting completion position in the cycle to a position at which the movement direction changes in the cycle is at its minimum away from the workpiece by the distance of the reference value in the second planar axis is set to end the interference check and the reconfiguration process 2 of the path.
(93) [Step SD03] A process D is performed and the interference check and the reconfiguration process 2 of the path are ended. Details of the process D are a process in the flowchart illustrated in
(94)
(95) [Step SE01] Whether or not interference is determined by the third piece of interference check means is determined. When interference is determined by the third piece of interference check means, the process is put forward to step SE02, and when no interference is determined by the third piece of interference check means, the process is put forward to step SE05.
(96) [Step SE02] Two straight lines which pass from the cutting completion position in the cycle to a position a and from the position a to the cutting start position in the next cycle, respectively, are set as the path, the position a being set as a position which is led by parting a position at which the movement direction changes and for which an angle formed by the first planar axis and a straight line connecting the cutting completion position in the cycle to a position at which the movement direction changes in the cycle is at its minimum away from the workpiece by the distance of the reference value in the second planar axis direction.
(97) [Step SE03] Whether or not interference is determined by the fourth piece of interference check means is determined. When interference is determined by the fourth piece of interference check means (YES), the process is put forward to step SE04.
(98) [Step SEO4] Two straight lines which are formed of a straight line connecting the cutting completion position in the cycle to a position a and ashraight line connecting a position b to the cutting start position in the next cycle are set as the path, the position b being set as a position which is led by parting a position at which the movement direction changes and for which an angle formed by the first planar axis and a straight line connecting the cutting start position in the next cycle to a position at which the movement direction changes in the cycle is at its maximum away from the workpiece by the distance of the reference value in the second planar axis direction. The interference check and the reconfiguration process 3 of the path are ended.
(99) [Step SE05] Whether or not interference is determined by the fourth piece of interference check means is determined. When interference is determined by the fourth piece of interference check means (YES), the process is put forward to step SE06, and when no interference is determined by the fourth piece of interference check means (NO), the interference check and the reconfiguration process 3 of the path are ended.
(100) [Step SE06] Two straight lines which pass from the cutting completion position in the cycle to a position c and from the position c to the cutting start position in the next cycle, respectively, are set as the path, the position c being set as a position which is led by parting a position at which the movement direction changes and for which an angle formed by the first planar axis and a straight line connecting the cutting start position in the next cycle to a position at which the movement direction changes in the cycle is at its maximum away from the workpiece by the distance of the reference value in the second planar axis direction. The interference check and the reconfiguration process 3 of the path are ended.