Program creation device
11092941 · 2021-08-17
Assignee
Inventors
Cpc classification
G05B19/40937
PHYSICS
G05B19/408
PHYSICS
Y02P90/02
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
G05B19/182
PHYSICS
International classification
G05B19/18
PHYSICS
G05B19/408
PHYSICS
G05B19/416
PHYSICS
Abstract
A program creation device includes an analysis unit that analyzes a composite fixed cycle in which a predetermined cycle is repeated multiple times to create a plurality of command blocks CB1 to CB4 for each of the cycles for executing the cycle; a distribution unit that distributes the plurality of command blocks CB1 to CB4 created by the analysis unit sequentially as a command program for each of the plurality of tools; and a command adding unit that adds a first command word indicating a delay amount of delaying a start timing of the cycle of the second tool from a start timing of the cycle of the first tool on the basis of an analysis result obtained by the analysis unit to the command block CB2 or CB4.
Claims
1. A program creation device that creates a control program for a machine tool that performs balance cut in which a first tool among a plurality of tools performs cutting into a rotating work and a second tool performs cutting while following the first tool and cutting deeper into the rotating work than does the first tool, the program creation device comprising: a processor configured to analyze a composite fixed cycle in which a predetermined cycle for causing a tool to perform cutting into a work and feeding the tool is repeated multiple times, and then create a plurality of command blocks for each of the cycles for executing the cycle based on the composite fixed cycle; distribute command blocks of the plurality of command blocks created sequentially as a command program for each of the plurality of tools; and add a first command word indicating a delay amount of delaying a start timing of the cycle of the second tool from a start timing of the cycle of the first tool on the basis of an analysis result obtained to a command block of a command program for one of the plurality of tools.
2. The program creation device according to claim 1, wherein the processor is further configured to add a second command word that waits for the start timing of the cycle of the first tool and the start timing of the cycle of the second tool on the basis of the analysis result obtained and then add the first command word to the command block of the command program for one of the plurality of tools.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
DETAILED DESCRIPTION OF THE INVENTION
(14) Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.
First Embodiment
(15) First, a configuration of a program creation device 1 will be described with reference to
(16) The program creation device 1 illustrated in
(17) The CPU 2 is a processor that controls the program creation device 1 in an integrated manner. The CPU 2 is connected to the memory 3, the display 4, the input unit 5, and the interface 6 via the bus 7. The memory 3 includes a ROM 31, a RAM 32, and a nonvolatile memory 33. The display 4 displays information necessary for an operator when creating the command programs P1 and P2 (see
(18) The CPU 2 functions as an analysis unit 21, a distribution unit 23, and a command adding unit 22. The analysis unit 21 analyzes a composite fixed cycle CCY (see
(19) The command adding unit 22 adds various command words to the command blocks CB1 to CB4. Hereinafter, adding of various command words will be described.
(20) First, the command adding unit 22 adds a second command word that waits for a start timing of the cycle CY of the first tool CU1 and a start timing of the cycle CY of the second tool CU2 on the basis of an analysis result obtained by the analysis unit 21 to each of the command blocks CB1 to CB4. With the waiting for the start timings by the second command word, the start timing of the cycle of the first tool CU1 and the start timing of the cycle of the second tool CU2 are rearranged to the same timing, and after that, a delay amount resulting from adding of a first command word to be described later is set.
(21) Waiting for the start timings by the second command word is effective when the length of the cycle CY of the first tool CU1 is different from the length of the cycle CY of the second tool CU2. For example, when a machining shape of the rotating work W is a shape (for example, such a tapered shape as illustrated in
(22) Specifically, waiting M codes are used as the second command word (see
(23) The command adding unit 22 adds a first command word indicating a delay amount for delaying the start timing of the cycle CY of the second tool CU2 from the start timing of the cycle CY of the first tool CU1 to the command blocks (CB2, CB4, and the like in
(24) Here, a delay amount of half the rotation of a spindle is set as the delay amount. In the present embodiment, since the pair of tools CU1 and CU2 are disposed at symmetrical positions with respect to the work W so as to sandwich the rotating work W, if the delay amount is smaller than half the rotation of the spindle, a portion which has not been cut by the first tool CU1 may be cut abruptly by the second tool CU2, the cutting depth may become too large, and the cutting volume may become excessively large. For example, a delay amount of one or two rotations of the spindle is set as the delay amount.
(25) Specifically, a dwell command G04 is used as the first command word (see
(26)
(27) The command adding unit 22 adds a command word for doubling the amount of an approach CY1 (see
(28) The distribution unit 23 distributes the plurality of command blocks (CB1 to CB4 in
(29) Next, the composite fixed cycle CCY analyzed by the program creation device 1 will be described with reference to
(30) In
(31) The composite fixed cycle CCY illustrated in
(32) As illustrated in
(33) Next, a machine tool control program created by the program creation device 1 will be described with reference to
(34) When the analysis unit 21 analyzes the composite fixed cycle CCY, the plurality of command blocks CB1 to CB4 and the like are created as illustrated in
(35) As illustrated in
(36) As illustrated in
(37) As shown in
(38) Next, the moving paths of the tools CU1 and CU2 will be described with reference to
(39) As illustrated in
(40) The relation between the command blocks CB1, CB3, and CB5 of the first tool CU1 which is the first system and the command blocks CB2, CB4, and CB6 of the second tool CU2 which is the second system will be described.
(41) As illustrated in
(42) Similarly, the same waiting M code M102 is added to the command block CB3 of the first system (the first tool CU1) and the command block CB4 of the second system (the second tool CU2), and waiting is performed. A dwell command G04X2.0 indicating a delay amount is added to the command block CB4 of the second system (the second tool CU2) immediately after a waiting M code command, and the second system performs machining with the delay amount set from the first system.
(43) The same relation is applied to the command blocks CB5 and CB6, and delayed machining after waiting can be executed between both systems.
(44) Next, a flow in which the program creation device 1 distributes the plurality of command blocks CB1 to CB4 and the like will be described with reference to
(45) The distribution unit 23 distributes the plurality of command blocks CB1 to CB4 and the like created by the analysis unit 21, to which an M code command indicating waiting and a dwell command indicating a delay amount are added by the command adding unit 22, alternately to the two systems of the first and second tools CU1 and CU2.
(46) Specifically, as illustrated in
(47) After that, the flow proceeds to step S13, and the amount of the approach CY1 (see
(48) When a determination result in step S11 is NO, the flow proceeds to step S14 and it is determined whether it is an operation of the cutting CY2 (see
(49) Specifically, as described above, when the machining shape of the rotating work W is a shape (for example, such a tapered shape as illustrated in
(50) Subsequently, in step S18, it is determined whether a command block is of the delaying-side system. When a determination result is YES, since the command block is of the delaying-side system, the flow proceeds to step 19, a dwell command is added to the command block and the flow proceeds to step S20. When a determination result is NO, since the command block is not of the delaying-side system, the flow proceeds to step S20 without adding a dwell command to the command block.
(51) In step S20, the command blocks CB1 to CB4 and the like to which the waiting command and the dwell command are added as described above are distributed to the respective subject systems, and the present process ends. Specifically, since the pair of tools CU1 and CU2 is used in the present embodiment, the command blocks CB1 to CB4 are alternately distributed to the first and second tools CU1 and CU2.
(52) In the present embodiment, a command for performing balance cut may be added to a command format of the composite fixed cycle CCY (see
(53) “B2.0” meaning delaying the spindle by two rotations may be added immediately after “G71U5.0R2.0”, for example, as a command word (a first command word) indicating a delay amount between systems that perform balance cut to create “G71U5.0R2.0B2.0”.
(54) As described above, according to the program creation device 1 according to the present embodiment, it is possible to create the program P1 and P2 for executing balance cut in which one tool CU1 or CU2 performs cutting and the other tool CU2 or CU1 performs cutting while following the one tool and cutting deeper into a work using a composite fixed cycle.
Second Embodiment
(55) A program creation device according to the second embodiment has a similar configuration to the program creation device 1 according to the first embodiment except that the command adding unit has a different configuration from that of the first embodiment. Specifically, the program creation device according to the present embodiment is different from that of the first embodiment in that the command adding unit adds a dwell command indicating a delay amount without adding a waiting M code as the second command word.
(56) The program creation device according to the present embodiment is effective when a machining shape is a shape such as a cylindrical shape in which the diameter does not change in an axial direction. That is, in this case, since the cutting lengths of the respective cycles CY that form the composite fixed cycle CCY are equal, when these cycles are distributed, the lengths of the cycles performed alternately by the first and second tools CC1 and CU2 are equal, and the periods required for the respective cutting steps are equal. As a result, a timing deviation does not occur. Therefore, when an initial delay amount is set, since no deviation occurs, it is not necessary to wait.
(57) While the embodiments of the present invention have been described, the present invention is not limited to the above-described embodiments. The advantageous effects described in the embodiments of the present invention are only exemplary ones of most preferable effects produced by the present invention, and the advantageous effects of the present invention are therefore not limited to those described in the above embodiments of the present invention.
(58) As described above, according to the program creation device according to the present embodiment, it is possible to create the program P1 and P2 for executing balance cut in which one tool CU1 or CU2 performs cutting and the other tool CU2 or CU1 performs cutting while following the one tool and cutting deeper into a work using a composite fixed cycle depending on a machining shape.
(59) In the above-described embodiments, although a case in which the first and second tools CU1 and CU2 are disposed at symmetrical positions with respect to the work W to perform balance cut has been described as an example, the present invention is not limited thereto. The present invention can be applied to a case of performing balance cut using three or more tools. In this case, it is preferable to arrange a plurality of tools at equal intervals in a circumferential direction and a delay amount and a waiting amount are set appropriately on the basis of an arrangement of the tools and a shape of the work W.
EXPLANATION OF REFERENCE NUMERALS
(60) 1: Program creation device 2: CPU 21: Analysis unit 22: Command adding unit 23: Distribution unit 3: Memory 31: ROM 32: RAM 33: Nonvolatile memory 4: Display 5: Input unit 6: Interface W: Work CU1: First tool CU2: Second tool P1: First command program P2: Second command program CCY: Composite fixed cycle CY: Cycle CB1, CB2, CB3, CB4: Command block