JP7413729B2 - Machine tools and machine tool control methods - Google Patents

Machine tools and machine tool control methods Download PDF

Info

Publication number
JP7413729B2
JP7413729B2 JP2019203201A JP2019203201A JP7413729B2 JP 7413729 B2 JP7413729 B2 JP 7413729B2 JP 2019203201 A JP2019203201 A JP 2019203201A JP 2019203201 A JP2019203201 A JP 2019203201A JP 7413729 B2 JP7413729 B2 JP 7413729B2
Authority
JP
Japan
Prior art keywords
tool
command
workpiece
unit
feed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019203201A
Other languages
Japanese (ja)
Other versions
JP2021077083A (en
Inventor
信博 村瀬
秀貢 河合
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Murata Machinery Ltd
Original Assignee
Murata Machinery Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP2019203201A priority Critical patent/JP7413729B2/en
Publication of JP2021077083A publication Critical patent/JP2021077083A/en
Application granted granted Critical
Publication of JP7413729B2 publication Critical patent/JP7413729B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、工作機械及び工作機械の制御方法に関する。 The present invention relates to a machine tool and a method for controlling a machine tool.

旋盤等の工作機械では、工具を所定の方向に送ることによりワークを加工している。この工作機械において、2つの工具を用いてワークを加工するために、2つの工具をそれぞれ独立した工具駆動部により送ることが提案されている(例えば、特許文献1参照)。特許文献1の工作機械では、工具の移動に関して数値制御を行っており、動作プログラム(加工プログラム)の各動作指令(各ブロック)において、工具の送り位置及び送り速度についての指示値を含む構成が開示されている。工作機械における数値制御では、例えば、1つのブロックである動作指令にX方向及びZ方向などの2つの送り位置(2つの座標値)を含んでいると、2つの送り位置を合成した座標値(X、Z)に向けて工具を直線で移動させるように、直線補間を行っている。 Machine tools such as lathes process workpieces by feeding tools in predetermined directions. In this machine tool, in order to process a workpiece using two tools, it has been proposed to send the two tools by independent tool drive units (for example, see Patent Document 1). In the machine tool of Patent Document 1, numerical control is performed on the movement of the tool, and each operation command (each block) of the operation program (machining program) has a configuration that includes instruction values for the feed position and feed rate of the tool. Disclosed. In numerical control of machine tools, for example, if a motion command that is one block includes two feed positions (two coordinate values) such as the X direction and the Z direction, the coordinate value (two coordinate values) that is the composite of the two feed positions is Linear interpolation is performed to move the tool in a straight line toward X, Z).

特許第5132842号公報Patent No. 5132842

上記した工作機械のように、2つの工具をそれぞれ移動させる場合、1つの動作プログラム(1つのブロックである動作指令)により2つの工具駆動部を動作させれば制御が容易となる。しかしながら、1つのブロックである動作指令に2つの工具に対する2つの送り位置を含ませると、上記のように2つの送り位置に基づいて直線補間されてしまい、2つの工具による加工を同時に開始させかつ同時に終了させるように制御される。その結果、2つの工具のそれぞれにおいて、ワークを加工する際の適した送り速度(適した加工条件)から外れてしまう場合がある。 When moving two tools, as in the machine tool described above, control becomes easier if the two tool drive units are operated according to one operation program (one block of operation commands). However, if one block of motion commands includes two feed positions for two tools, linear interpolation will be performed based on the two feed positions as described above, and machining with the two tools will start at the same time. Controlled to terminate at the same time. As a result, each of the two tools may deviate from the appropriate feed rate (suitable machining conditions) when machining the workpiece.

本発明は、1つのブロックである動作指令における工具駆動部ごとの個別の送り位置及び送り速度に基づいて、2つの工具をそれぞれ適した速度で送りつつワークを加工することが可能な工作機械及び工作機械の制御方法を提供することを目的とする。 The present invention provides a machine tool and a machine tool capable of machining a workpiece while feeding two tools at appropriate speeds based on individual feed positions and feed speeds for each tool drive unit in a motion command that is one block. The purpose is to provide a control method for machine tools.

本発明の態様に係る工作機械は、ワークを加工するための第1工具を送る第1工具駆動部と、ワークを加工するための第2工具を送る第2工具駆動部と、第1工具駆動部及び第2工具駆動部の動作を制御する制御装置と、を備え、制御装置は、第1工具駆動部に対する第1工具の送り位置及び第1工具の送り速度に関する第1指令と、第2工具駆動部に対する第2工具の送り位置及び第2工具の送り速度に関する第2指令とを含む1つのブロックである動作指令を受け付ける指令受付部と、指令受付部で受け付けた動作指令から第1指令と第2指令とをそれぞれ識別する指令識別部と、指令識別部により識別された第1指令を第1工具駆動部に出力する第1指令出力部と、指令識別部より識別された第2指令を第2工具駆動部に出力する第2指令出力部と、を備え、動作指令は、第1工具によるワークに対する加工動作と、第2工具によるワークに対する加工動作とを含む。 A machine tool according to an aspect of the present invention includes a first tool drive unit that sends a first tool for processing a workpiece, a second tool drive unit that sends a second tool for processing the workpiece, and a first tool drive unit that sends a second tool for processing the workpiece. and a control device for controlling operations of the first tool drive section and the second tool drive section, the control device configured to send a first command regarding the feed position of the first tool and the feed speed of the first tool to the first tool drive section; a command reception unit that receives an operation command, which is one block including a second command regarding the feed position of the second tool with respect to the tool drive unit and a second command regarding the feed speed of the second tool, and a first command from the operation command received by the command reception unit; a first command output unit that outputs the first command identified by the command identification unit to the first tool driving unit; and a second command identified by the command identification unit. a second command output section that outputs the second tool to the second tool driving section, and the operation command includes a machining operation on the workpiece by the first tool and a machining operation on the workpiece by the second tool.

また、ワークを保持する主軸をさらに備え、第1工具駆動部及び第2工具駆動部のそれぞれは、主軸に保持されたワークの異なる位置に対してそれぞれ第1工具及び第2工具を送るようにしてもよい。また、第1工具駆動部による第1工具の送り位置と、第2工具駆動部による第2工具の送り位置とが異なってもよい。また、第1工具駆動部による第1工具の送り速度と、第2工具駆動部による第2工具の送り速度とが異なってもよい。 The invention further includes a spindle that holds the workpiece, and the first tool drive section and the second tool drive section are adapted to feed the first tool and the second tool, respectively, to different positions of the workpiece held by the spindle. You can. Furthermore, the position at which the first tool is fed by the first tool drive section and the position at which the second tool is fed by the second tool drive section may be different. Further, the feed speed of the first tool by the first tool drive section and the feed speed of the second tool by the second tool drive section may be different.

本発明の態様に係る工作機械の制御方法は、ワークを加工するための第1工具を送る第1工具駆動部と、ワークを加工するための第2工具を送る第2工具駆動部とを備える工作機械の制御方法であって、外部から、第1工具駆動部に対する第1工具の送り位置及び第1工具の送り速度に関する第1指令と、第2工具駆動部に対する第2工具の送り位置及び第2工具の送り速度に関する第2指令とを含む1つのブロックである動作指令を受け付けることと、動作指令から第1指令と前記第2指令とをそれぞれ識別することと、第1指令を第1工具駆動部に出力することと、第2指令を第2工具駆動部に出力することと、を含み、動作指令は、第1工具によるワークに対する加工動作と、第2工具によるワークに対する加工動作とを含む。 A method for controlling a machine tool according to an aspect of the present invention includes a first tool drive section that sends a first tool for processing a workpiece, and a second tool drive section that sends a second tool for processing the workpiece. A method for controlling a machine tool, the method comprising: externally receiving a first command regarding a feed position of a first tool and a feed rate of the first tool to a first tool drive section; a feed position and a feed rate of a second tool to a second tool drive section; receiving a motion command that is one block including a second command regarding the feed rate of the second tool; identifying the first command and the second command from the motion command; and outputting a second command to the second tool drive unit, and the operation command includes a machining operation for the workpiece by the first tool and a machining operation for the workpiece by the second tool. including.

本発明の態様に係る工作機械及び工作機械の制御方法によれば、第1指令と第2指令とを含む1つのブロックである動作指令を受け付けた場合、動作指令から第1指令と第2指令とをそれぞれ識別して第1指令を第1工具駆動部に出力し、第2指令を第2工具駆動部に出力する。その結果、第1工具駆動部は、第1指令に基づいた第1工具の送り位置及び第1工具の送り速度により第1工具を送ってワークを加工する。また、第2工具駆動部は、第2指令に基づいた第2工具の送り位置及び第2工具の送り速度により第2工具を送ってワークを加工する。このように、ワークを加工する際に、第1工具駆動部と第2工具駆動部とをそれぞれ第1指令、第2指令に基づいた個別の送り位置、送り速度により第1工具及び第2工具を送ってワークを加工するので、2つの第1工具及び第2工具をそれぞれ適した送り速度で送りつつワークを加工することができる。 According to the machine tool and the control method for a machine tool according to aspects of the present invention, when an operation command that is one block including a first command and a second command is received, the first command and the second command are and a first command is output to the first tool drive section, and a second command is output to the second tool drive section. As a result, the first tool driving section processes the workpiece by feeding the first tool at the feeding position and feeding speed of the first tool based on the first command. Further, the second tool driving section processes the workpiece by feeding the second tool at a feeding position and a feeding speed of the second tool based on the second command. In this way, when machining a workpiece, the first tool drive section and the second tool drive section are controlled to the first tool and the second tool by the individual feed positions and feed speeds based on the first command and the second command, respectively. Since the workpiece is machined by feeding the two tools, the workpiece can be machined while feeding the two first tools and the second tool at appropriate feed rates.

また、ワークを保持する主軸をさらに備え、第1工具駆動部及び第2工具駆動部のそれぞれは、主軸に保持されたワークの異なる位置に対してそれぞれ第1工具及び第2工具を送る形態では、2つの第1工具及び第2工具がワークの異なる位置を加工するので、ワークの加工効率を向上させることができる。また、第1工具駆動部による第1工具の送り位置と、第2工具駆動部による第2工具の送り位置とが異なる形態では、2つの第1工具及び第2工具によってワークの異なる位置を精度よく加工することができる。また、第1工具駆動部による第1工具の送り速度と、第2工具駆動部による第2工具の送り速度とが異なる形態では、2つの第1工具及び第2工具における適した送り速度が異なる場合に、2つの第1工具及び第2工具をそれぞれ適した送り速度で送りつつワークを加工することができる。 The invention further includes a spindle that holds the workpiece, and each of the first tool drive section and the second tool drive section is configured to send the first tool and the second tool, respectively, to different positions of the workpiece held by the spindle. Since the two first tools and the second tool process different positions of the workpiece, the efficiency of machining the workpiece can be improved. In addition, in a configuration in which the feeding position of the first tool by the first tool driving section and the feeding position of the second tool by the second tool driving section are different, the two first tools and the second tool can accurately move the workpiece at different positions. Can be processed well. Furthermore, in a configuration in which the feed speed of the first tool by the first tool drive section and the feed speed of the second tool by the second tool drive section are different, the suitable feed speeds for the two first tools and the second tool are different. In this case, the workpiece can be machined while feeding the two first tools and the second tool at appropriate feed rates.

第1実施形態に係る旋盤の一例を示す概略構成図である。FIG. 1 is a schematic configuration diagram showing an example of a lathe according to a first embodiment. 図1に示す旋盤の制御に用いられる動作指令の一例を示す図である。2 is a diagram showing an example of an operation command used to control the lathe shown in FIG. 1. FIG. 制御装置の機能ブロック構成の一例を示す図である。FIG. 2 is a diagram showing an example of a functional block configuration of a control device. 制御装置の動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation of a control device. 第1実施形態に係る旋盤において、動作プログラムの具体例を示す図である。FIG. 3 is a diagram showing a specific example of an operation program in the lathe according to the first embodiment. 比較例に係る旋盤において、動作プログラムを示す図である。FIG. 6 is a diagram showing an operation program in a lathe according to a comparative example. 第2実施形態に係る旋盤の一例を示す概略構成図である。FIG. 2 is a schematic configuration diagram showing an example of a lathe according to a second embodiment. 第2実施形態に係る旋盤において、動作プログラムの具体例を示す図である。FIG. 7 is a diagram showing a specific example of an operation program in a lathe according to a second embodiment.

以下、本発明の実施形態について図面を参照しながら説明する。ただし、本発明はこの形態に限定されない。また、図面においては実施形態を説明するため、一部分を大きく又は強調して記載するなど適宜縮尺を変更して表現しており、実際の製品とは形状又は大きさが異なっている場合がある。また、図面における旋盤(工作機械)100、100Aは、要部について示している。各図においては、XYZ座標系を用いて図中の方向を説明する。このXYZ座標系において、Z方向は、水平面に沿った主軸10の回転軸11の方向をZ方向と表記し、水平面に直交する鉛直方向をX方向と表記する。また、図示を省略しているが、水平面に沿う方向であってZ方向と直交する方向をY方向とする。X方向及びZ方向のそれぞれは、図中の矢印の指す方向が+方向であり、矢印の方向と反対の方向が-方向であるとして説明する。 Embodiments of the present invention will be described below with reference to the drawings. However, the present invention is not limited to this form. Further, in order to explain the embodiments in the drawings, the scale is appropriately changed, such as by enlarging or emphasizing a part, and the shape or size may differ from the actual product. Further, the main parts of the lathes (machine tools) 100 and 100A in the drawings are shown. In each figure, directions in the figure will be explained using an XYZ coordinate system. In this XYZ coordinate system, the direction of the rotation axis 11 of the main shaft 10 along the horizontal plane is expressed as the Z direction, and the vertical direction perpendicular to the horizontal plane is expressed as the X direction. Further, although not shown, the direction along the horizontal plane and orthogonal to the Z direction is defined as the Y direction. The X direction and the Z direction will be explained assuming that the direction indicated by the arrow in the figure is the + direction, and the direction opposite to the direction of the arrow is the - direction.

[第1実施形態]
第1実施形態について説明する。図1は、第1実施形態に係る旋盤100の一例を示す概略構成図である。旋盤(工作機械)100は、図1に示すように、主軸10と、刃物台20と、制御装置50と、を備える。主軸10は、旋盤100に備える不図示の軸受に、水平軸方向(Z方向)に沿った回転軸11周りに回転可能に支持されている。主軸10は、旋盤100に備える不図示のモータによって、回転軸11周りに回転駆動される。主軸10には、ワーク1を保持するための不図示の主軸チャックが設けられている。主軸チャックは、例えば、三つの爪部が回転軸11周りに配置され、各爪部が回転軸11を中心とする放射方向に進退可能に設けられている。主軸10は、主軸チャックにより保持した状態で回転駆動することにより、ワーク1を回転軸11周りに回転させる。
[First embodiment]
A first embodiment will be described. FIG. 1 is a schematic configuration diagram showing an example of a lathe 100 according to the first embodiment. The lathe (machine tool) 100 includes a main spindle 10, a tool rest 20, and a control device 50, as shown in FIG. The main shaft 10 is rotatably supported by a bearing (not shown) provided in the lathe 100 around a rotating shaft 11 along a horizontal axis direction (Z direction). The main shaft 10 is rotationally driven around a rotating shaft 11 by a motor (not shown) provided in the lathe 100. The main spindle 10 is provided with a main spindle chuck (not shown) for holding the workpiece 1 . The main shaft chuck has, for example, three claws arranged around the rotating shaft 11, and each claw is provided so as to be movable in radial directions about the rotating shaft 11. The main spindle 10 rotates the workpiece 1 around the rotating shaft 11 by being rotationally driven while being held by the main spindle chuck.

刃物台20は、第1刃物台21と、第2刃物台22と、第1工具駆動部23と、第2工具駆動部24と、を備えている。第1刃物台21は、主軸10に保持されたワーク1を加工する第1工具41を保持する。第1工具41は、第1刃物台21に備える不図示のホルダによって第1刃物台21の所定位置に着脱可能に保持される。第1刃物台21は、例えば、タレット状刃物台又はくし歯状刃物台など、複数の第1工具41を保持可能な形態であってもよい。この場合、複数の第1工具41のうちワーク1の加工に用いられる第1工具41が選択されて用いられる。 The tool rest 20 includes a first tool rest 21 , a second tool rest 22 , a first tool drive section 23 , and a second tool drive section 24 . The first tool post 21 holds a first tool 41 that processes the workpiece 1 held by the spindle 10. The first tool 41 is detachably held at a predetermined position on the first tool rest 21 by a holder (not shown) provided in the first tool rest 21 . The first tool rest 21 may have a form capable of holding a plurality of first tools 41, such as a turret-like tool rest or a comb-like tool rest, for example. In this case, the first tool 41 used for machining the workpiece 1 is selected from among the plurality of first tools 41 and used.

第1工具駆動部23は、主軸10に保持されたワーク1に対して、X方向に第1刃物台21を送る。第1刃物台21がX方向に送られることにより、主軸10に保持されて回転するワーク1は、第1工具41によってX方向に加工される。第1工具駆動部23は、例えば、電動モータ及びボールねじ機構を用いた構成等が用いられる。本実施形態において、第1工具駆動部23は、第1刃物台21をX方向に送っているが、この形態に限定されず、例えば、第1刃物台21をX方向、Y方向(X方向とZ方向とに直交する方向)、Z方向のそれぞれの方向、及びこれらの方向を合成した方向に送るような形態であってもよい。 The first tool drive unit 23 sends the first tool rest 21 in the X direction to the workpiece 1 held by the main spindle 10. By moving the first tool post 21 in the X direction, the workpiece 1 held by the main shaft 10 and rotating is machined in the X direction by the first tool 41. The first tool drive unit 23 uses, for example, a configuration using an electric motor and a ball screw mechanism. In the present embodiment, the first tool drive unit 23 moves the first tool rest 21 in the X direction, but is not limited to this form. For example, the first tool drive section 23 moves the first tool rest 21 in the and Z direction), each direction of the Z direction, or a direction in which these directions are combined.

第2刃物台22は、主軸10に保持されたワーク1を加工する第2工具42を保持する。第2工具42は、第2刃物台22に備える不図示のホルダによって第2刃物台22の所定位置に着脱可能に保持される。第2刃物台22は、例えば、タレット状刃物台又はくし歯状刃物台など、複数の第2工具42を保持可能な形態であってもよい。この場合、複数の第2工具42のうちワーク1の加工に用いられる第2工具42が選択されて用いられる。 The second tool rest 22 holds a second tool 42 that processes the workpiece 1 held by the main spindle 10. The second tool 42 is detachably held at a predetermined position on the second tool rest 22 by a holder (not shown) provided in the second tool rest 22 . The second tool rest 22 may have a form capable of holding a plurality of second tools 42, such as a turret-like tool rest or a comb-like tool rest, for example. In this case, the second tool 42 used for machining the workpiece 1 is selected from among the plurality of second tools 42 and used.

第2工具駆動部24は、主軸10に保持されたワーク1に対して、Z方向に第2刃物台22を送る。第2刃物台22がZ方向に送られることにより、主軸10に保持されて回転するワーク1は、第2工具42によってZ方向に加工される。第2工具駆動部24は、例えば、電動モータ及びボールねじ機構を用いた構成等が用いられる。本実施形態において、第2工具駆動部24は、第2刃物台22をZ方向に送っているが、この形態に限定されず、例えば、第2刃物台22をX方向、Y方向、Z方向のそれぞれの方向、及びこれらの方向を合成した方向に送るような形態であってもよい。 The second tool drive unit 24 sends the second tool rest 22 in the Z direction to the workpiece 1 held by the main spindle 10. By moving the second tool post 22 in the Z direction, the workpiece 1 held by the main spindle 10 and rotating is processed in the Z direction by the second tool 42. The second tool drive section 24 uses, for example, a configuration using an electric motor and a ball screw mechanism. In the present embodiment, the second tool drive unit 24 moves the second tool rest 22 in the Z direction, but is not limited to this form. For example, the second tool drive unit 24 moves the second tool rest 22 in the The data may be sent in each direction or in a combined direction of these directions.

第1刃物台21と第2刃物台22とは、旋盤100において異なる位置に設けられている。従って、第1刃物台21の第1工具41と、第2刃物台22の第2工具42とは、ワーク1の異なる位置に対して加工を行う。また、第1工具41と第2工具42とは、第1工具駆動部23及び第2工具駆動部24のそれぞれによって異なる方向(X方向、Z方向)に移動しつつワーク1を加工する。すなわち、第1工具駆動部23による第1工具41の送り位置(座標値)と、第2工具駆動部24による第2工具42の送り位置(座標値)とは、互いに異なっている。なお、ワーク1への加工は、主軸10を回転軸11周りに回転させて行うことに限定されない。ワーク1を主軸10に保持させて回転させずに第1工具41等により加工する形態であってもよい。この場合、第1工具41等としては、例えば、ドリル、タップ、エンドミル、フライスなどの回転工具が用いられる。 The first tool rest 21 and the second tool rest 22 are provided at different positions in the lathe 100. Therefore, the first tool 41 of the first tool rest 21 and the second tool 42 of the second tool rest 22 perform processing on different positions of the workpiece 1. Further, the first tool 41 and the second tool 42 process the workpiece 1 while moving in different directions (X direction, Z direction) by the first tool drive section 23 and the second tool drive section 24, respectively. That is, the feeding position (coordinate values) of the first tool 41 by the first tool driving section 23 and the feeding position (coordinate values) of the second tool 42 by the second tool driving section 24 are different from each other. Note that the processing on the workpiece 1 is not limited to rotating the main shaft 10 around the rotating shaft 11. The workpiece 1 may be held by the spindle 10 and processed by the first tool 41 or the like without being rotated. In this case, as the first tool 41 etc., a rotary tool such as a drill, tap, end mill, milling cutter, etc. is used, for example.

制御装置50は、第1工具駆動部23及び第2工具駆動部24の動作を制御する。制御装置50は、例えば、CPU(中央演算処理装置)、記憶装置、通信装置等を備えており、各種情報の処理を行うコンピュータ装置である。制御装置50は、例えば、各種の情報(データ)の処理、情報の記憶、情報の入出力、情報の通信(送受信)等を行う。制御装置50は、例えば、外部から受け付ける動作プログラム60に含まれる動作指令70に基づいて、第1工具駆動部23及び第2工具駆動部24の動作を制御する。動作プログラム60は、例えば、オペレータによって制御装置50に入力されてもよいし、他の制御装置から通信等により制御装置50に送られてもよい。すなわち、動作プログラム60は、他の装置から(外部から)制御装置50に送られてもよいし、制御装置50の内部(例えば、後述するプログラム記憶部32など)に予め記憶されていてもよい。 The control device 50 controls the operations of the first tool drive section 23 and the second tool drive section 24. The control device 50 is a computer device that includes, for example, a CPU (central processing unit), a storage device, a communication device, etc., and processes various information. The control device 50 processes, for example, various types of information (data), stores information, inputs and outputs information, communicates (transmits and receives) information, and the like. The control device 50 controls the operations of the first tool drive section 23 and the second tool drive section 24 based on, for example, an operation command 70 included in an operation program 60 received from the outside. The operation program 60 may be input into the control device 50 by an operator, for example, or may be sent to the control device 50 from another control device via communication or the like. That is, the operation program 60 may be sent to the control device 50 from another device (from the outside), or may be stored in advance inside the control device 50 (for example, in the program storage unit 32 described later). .

図2は、旋盤100の制御に用いられる動作指令の一例を示す図である。動作プログラム60は、動作指令70を複数備えることにより構成されている。図2では、動作プログラム60における1つのブロックである動作指令70を示している。このブロックは、例えば制御装置50により同時に処理される単位である。制御装置50は、動作プログラム60に含まれる複数の動作指令70に基づいた動作を、動作プログラム60により示された動作指令70の順番で第1工具駆動部23及び第2工具駆動部24に対して実行させる。 FIG. 2 is a diagram showing an example of operation commands used to control the lathe 100. The operation program 60 is configured by including a plurality of operation commands 70. FIG. 2 shows an operation command 70, which is one block in the operation program 60. This block is a unit that is simultaneously processed by the control device 50, for example. The control device 50 causes the first tool drive section 23 and the second tool drive section 24 to perform operations based on the plurality of operation commands 70 included in the operation program 60 in the order of the operation commands 70 indicated by the operation program 60. and execute it.

図2に示すように、1つのブロックである動作指令70は、第1工具駆動部23に対する第1工具41の送り位置、及び第1工具41の送り速度に関する第1指令70aと、第2工具駆動部24に対する第2工具42の送り位置、及び第2工具42の送り速度に関する第2指令70bとを含んでいる。なお、以下の説明で用いる「原点」は、ワーク基準における原点である。ワーク基準の原点は、例えば、ワーク1において主軸10と反対側の端面と回転軸11との交点に設定される。なお、各ブロックの末尾に示されている「;」(セミコロン)は、1つのブロックの終わりを示している。 As shown in FIG. 2, the operation command 70, which is one block, includes a first command 70a regarding the feed position and feed speed of the first tool 41 with respect to the first tool drive unit 23, and a second tool It includes a second command 70b regarding the feed position of the second tool 42 with respect to the drive unit 24 and the feed speed of the second tool 42. Note that the "origin" used in the following explanation is the origin in the work reference. The origin of the workpiece reference is set, for example, at the intersection of the rotary shaft 11 and the end surface of the workpiece 1 on the opposite side to the main shaft 10 . Note that the ";" (semicolon) shown at the end of each block indicates the end of one block.

第1指令70aは、第1工具駆動部23における第1工具41の送り方向(X方向)を表す識別子「X」と、原点を基準としたX方向における第1工具41の送り位置として送り先の座標値「△△△(△は数字)」と、第1工具駆動部23における第1工具41の送り速度を表す識別子「F」と、第1工具41の送り速度を示す数値「○○○(○は数字、単位はmm/分)」とを含む。第2指令70bは、第2工具駆動部24における第2工具42の送り方向(Z方向)を表す識別子「Z」と、原点を基準としたZ方向における第2工具42の送り位置として送り先の座標値「□□□(□は数字)」と、第2工具駆動部24における第2工具42の送り速度を表す識別子「FF」と、第2工具42の送り速度を示す数値「***(*は数字、単位はmm/分)」とを含む。 The first command 70a includes an identifier "X" representing the feeding direction (X direction) of the first tool 41 in the first tool driving section 23, and a destination as the feeding position of the first tool 41 in the X direction with reference to the origin. The coordinate value “△△△ (△ is a number)”, the identifier “F” representing the feed speed of the first tool 41 in the first tool drive section 23, and the numerical value “○○○” representing the feed speed of the first tool 41 (○ is a number, the unit is mm/min). The second command 70b includes an identifier "Z" representing the feeding direction (Z direction) of the second tool 42 in the second tool driving section 24, and a destination as the feeding position of the second tool 42 in the Z direction with reference to the origin. The coordinate value “□□□ (□ is a number)”, the identifier “FF” representing the feed speed of the second tool 42 in the second tool drive section 24, and the numerical value “***” representing the feed speed of the second tool 42 (* is a number, the unit is mm/min).

なお、この動作指令70(第1指令70a及び第2指令70b)は、送り位置として送り先の座標値を用いているが、この形態に限定されない。例えば、送り位置として送り先までの送り量を用いる形態であってもよい。この場合、第1指令70aにおける「△△△(△は数字)」は、送り量(単位はmm)であり、第2指令70bにおける「□□□(□は数字)」は、送り量(単位はmm)である。 Note that although this operation command 70 (the first command 70a and the second command 70b) uses the coordinate value of the destination as the sending position, it is not limited to this form. For example, the feed amount to the destination may be used as the feed position. In this case, "△△△ (△ is a number)" in the first command 70a is the feed amount (unit: mm), and "□□□ (□ is a number)" in the second command 70b is the feed amount ( The unit is mm).

1つのブロックである動作指令70は、第1指令70a、第2指令70bの順に記述されている。動作プログラム60は、上記したような動作指令70を複数備えている。なお、第1工具駆動部23及び第2工具駆動部24のいずれか一方を動作させる場合、すなわち、第1工具41及び第2工具42のいずれか一方によりワーク1を加工させる場合、動作指令70には、第1指令70a及び第2指令70bのいずれか一方が記述される。 The operation command 70, which is one block, is written in the order of a first command 70a and a second command 70b. The operation program 60 includes a plurality of operation commands 70 as described above. Note that when operating either the first tool drive section 23 or the second tool drive section 24, that is, when processing the workpiece 1 with either the first tool 41 or the second tool 42, the operation command 70 , one of the first command 70a and the second command 70b is written.

図3は、制御装置50の機能ブロック構成の一例を示す図である。図3に示すように、制御装置50は、プログラム入力部31と、プログラム記憶部32と、指令読み出し部33と、指令受付部34と、指令識別部35と、第1指令出力部36と、第2指令出力部37と、を備える。プログラム入力部31は、外部に設けられた不図示の上位コントローラ、CADシステム、プログラム作成装置等から、動作プログラム60が入力される。プログラム入力部31に対する動作プログラム60の入力は、無線LAN(Local Area Network)、有線LAN等のネットワークを介して行ってもよいし、例えばCD-ROM、USBメモリ等をはじめとする各種の記憶媒体を介して行ってもよい。 FIG. 3 is a diagram showing an example of a functional block configuration of the control device 50. As shown in FIG. 3, the control device 50 includes a program input section 31, a program storage section 32, a command reading section 33, a command reception section 34, a command identification section 35, a first command output section 36, A second command output section 37 is provided. The program input unit 31 receives an operation program 60 from an externally provided host controller (not shown), CAD system, program creation device, or the like. The operation program 60 may be input to the program input unit 31 via a network such as a wireless LAN (Local Area Network) or a wired LAN, or via various storage media such as a CD-ROM, USB memory, etc. It may also be done via

プログラム記憶部32は、プログラム入力部31に入力された動作プログラム60を記憶する。指令読み出し部33は、プログラム記憶部32に記憶された動作プログラム60から、動作プログラム60を構成する動作指令70を1つずつ読み出し、読み出した1つのブロックである動作指令70を指令受付部34に送る。指令受付部34は、指令読み出し部33から送られた動作指令70を受け付ける。指令受付部34は、受け付けた動作指令70を、指令識別部35に送る。 The program storage unit 32 stores the operation program 60 input to the program input unit 31. The command reading section 33 reads out the motion commands 70 constituting the motion program 60 one by one from the motion program 60 stored in the program storage section 32 and sends the read motion command 70, which is one block, to the command reception section 34. send. The command reception unit 34 receives the operation command 70 sent from the command reading unit 33. The command reception unit 34 sends the received operation command 70 to the command identification unit 35.

指令識別部35は、指令受付部34により受け付けた動作指令70から、第1指令70aと第2指令70bとをそれぞれ識別する。第1工具駆動部23及び第2工具駆動部24の双方を同時に動作させる場合、動作指令70には、第1指令70aと第2指令70bとが含まれている。また、第1工具駆動部23のみを動作させる場合、動作指令70には、第1指令70aを含んでいるが、第2指令70bは含んでいない。第2工具駆動部24のみを動作させる場合、動作指令70には、第2指令70bを含んでいるが、第1指令70aを含んでいない。 The command identification unit 35 identifies the first command 70a and the second command 70b from the operation command 70 received by the command reception unit 34. When operating both the first tool drive section 23 and the second tool drive section 24 at the same time, the operation command 70 includes a first command 70a and a second command 70b. Further, when operating only the first tool driving section 23, the operation command 70 includes the first command 70a, but does not include the second command 70b. When operating only the second tool driving section 24, the operation command 70 includes the second command 70b, but does not include the first command 70a.

指令識別部35は、動作指令70から、第1工具駆動部23における第1工具41の送り方向を表す識別子「X」と、第1工具駆動部23における第1工具41の送り速度を表す識別子「F」とが含まれている部分を、第1指令70aであると識別して抽出する。また、指令識別部35は、動作指令70から、第2工具駆動部24における第2工具42の送り方向を表す識別子「Z」と、第2工具駆動部24における第2工具42の送り速度を表す識別子「FF」とが含まれている部分を、第2指令70bであると識別して抽出する。 The command identification unit 35 extracts from the operation command 70 an identifier “X” representing the feeding direction of the first tool 41 in the first tool driving unit 23 and an identifier representing the feeding speed of the first tool 41 in the first tool driving unit 23. The part containing "F" is identified as the first command 70a and extracted. Further, the command identification unit 35 receives the identifier “Z” representing the feeding direction of the second tool 42 in the second tool driving unit 24 and the feeding speed of the second tool 42 in the second tool driving unit 24 from the operation command 70. The part containing the identifier "FF" is identified as the second command 70b and extracted.

なお、指令識別部35は、1つのブロックである動作指令70において、左側の記述を第1指令70aと識別し、第1指令70aに続く記述を第2指令70bと識別してもよい。また、1つのブロックである動作指令70において、第1指令70aの記述と第2指令70bの記述との間に特定の記述(例えば「//」、「・」、「*」、「-」などの記号、「S」などの特定の文字)を加え、指令識別部35が特定の記述に基づいて、特定の記述よりも前の記述を第1指令70aと識別し、特定の記述よりも後の記述を第2指令70bと識別してもよい。 In addition, in the operation command 70 that is one block, the command identification unit 35 may identify the description on the left side as the first command 70a, and identify the description following the first command 70a as the second command 70b. In addition, in the operation command 70 that is one block, a specific description (for example, "//", "・", "*", "-") is inserted between the description of the first command 70a and the description of the second command 70b. , a specific character such as "S"), and the command identification unit 35 identifies the description earlier than the specific description as the first command 70a based on the specific description, and The latter description may be identified as the second command 70b.

指令識別部35は、動作指令70から抽出した第1指令70aを、第1指令出力部36に送る。また、指令識別部35は、動作指令70から抽出した第2指令70bを、第2指令出力部37に送る。第1指令出力部36は、指令識別部35から送られた第1指令70aを第1工具駆動部23に出力する。第2指令出力部37は、指令識別部35から送られた第2指令70bを第2工具駆動部24に出力する。 The command identification unit 35 sends the first command 70a extracted from the operation command 70 to the first command output unit 36. Further, the command identification unit 35 sends the second command 70b extracted from the operation command 70 to the second command output unit 37. The first command output section 36 outputs the first command 70a sent from the command identification section 35 to the first tool drive section 23. The second command output section 37 outputs the second command 70b sent from the command identification section 35 to the second tool drive section 24.

図4は、制御装置50の動作の一例を示すフローチャートである。まず、不図示のワーク搬送装置等によりワーク1が主軸10に搬送され、不図示の主軸チャックによりワーク1が主軸10に保持される。また、ワーク1の加工に先立って、動作プログラム60が制御装置50に入力される。制御装置50のプログラム入力部31は、外部から入力された動作プログラム60を受け付け、プログラム記憶部32に記憶させる。 FIG. 4 is a flowchart showing an example of the operation of the control device 50. First, the work 1 is transported to the main spindle 10 by a work transport device (not shown) or the like, and the work 1 is held on the main spindle 10 by a main spindle chuck (not shown). Furthermore, prior to machining the workpiece 1, the operation program 60 is input to the control device 50. The program input unit 31 of the control device 50 receives an externally input operation program 60 and stores it in the program storage unit 32.

旋盤100において、ワーク1の加工が開始されると、図4に示すように、ステップS1において、制御装置50の指令読み出し部33は、プログラム記憶部32に記憶された動作プログラム60から、動作プログラム60を構成する各動作指令70を1つずつ読み出す。指令読み出し部33は、読み出した動作指令70を、指令受付部34に送る。続いて、ステップS2において、制御装置50の指令受付部34は、指令読み出し部33から送られた1つのブロックである動作指令70を受け付ける。指令受付部34は、受け付けた動作指令70を、指令識別部35に送る。 When machining of the workpiece 1 is started in the lathe 100, as shown in FIG. Each operation command 70 constituting 60 is read out one by one. The command reading section 33 sends the read operation command 70 to the command receiving section 34 . Subsequently, in step S2, the command reception unit 34 of the control device 50 receives the operation command 70, which is one block, sent from the command reading unit 33. The command reception unit 34 sends the received operation command 70 to the command identification unit 35.

続いて、ステップS3において、制御装置50の指令識別部35は、指令受付部34で受け付けた動作指令70から、第1指令70aと第2指令70bとをそれぞれ識別する。また、指令識別部35は、動作指令70から第1指令70aを抽出し、動作指令70から第2指令70bを抽出する。指令識別部35は、動作指令70から抽出した第1指令70aを、第1指令出力部36に送る。指令識別部35は、動作指令70から抽出した第2指令70bを、第2指令出力部37に送る。 Subsequently, in step S3, the command identification unit 35 of the control device 50 identifies the first command 70a and the second command 70b from the operation command 70 received by the command reception unit 34. Further, the command identification unit 35 extracts the first command 70a from the operation command 70, and extracts the second command 70b from the operation command 70. The command identification unit 35 sends the first command 70a extracted from the operation command 70 to the first command output unit 36. The command identification unit 35 sends the second command 70b extracted from the operation command 70 to the second command output unit 37.

続いて、ステップS4において、制御装置50の第1指令出力部36は、指令識別部35により抽出された第1指令70aを第1工具駆動部23に出力する。また、ステップS5において、制御装置50の第2指令出力部37は、指令識別部35より抽出された第2指令70bを第2工具駆動部24に出力する。 Subsequently, in step S4, the first command output section 36 of the control device 50 outputs the first command 70a extracted by the command identification section 35 to the first tool drive section 23. Further, in step S5, the second command output section 37 of the control device 50 outputs the second command 70b extracted from the command identification section 35 to the second tool drive section 24.

第1指令70aの出力を受けた第1工具駆動部23は、第1指令70aに基づいて、第1工具41を、第1指令70aに含まれる第1工具41の送り方向(X方向)に沿って、送り位置である送り先の座標値「△△△」まで、送り速度「○○○」mm/分で移動させる。この第1工具41の送り(移動)により第1指令70aに基づいたワーク1の所定位置が加工される。また、第2指令70bの出力を受けた第2工具駆動部24は、第2指令70bに基づいて、第2工具42を、第2指令70bに含まれる第2工具42の送り方向(Z方向)に沿って、送り位置である送り先の座標値「□□□」まで、送り速度「***」mm/分で移動させる。この第2工具42の送り(移動)により第2指令70bに基づいたワーク1の所定位置が加工される。 The first tool driving unit 23 that has received the output of the first command 70a moves the first tool 41 in the feeding direction (X direction) of the first tool 41 included in the first command 70a based on the first command 70a. It is moved at a feed rate of ``○○○'' mm/min to the coordinate value ``△△△'' of the destination, which is the feed position. By this feeding (movement) of the first tool 41, a predetermined position of the workpiece 1 is machined based on the first command 70a. Further, the second tool driving unit 24 that has received the output of the second command 70b moves the second tool 42 in the feeding direction (Z direction) of the second tool 42 included in the second command 70b based on the second command 70b. ) at a feed rate of ``***'' mm/min to the coordinate value ``□□□'' of the destination, which is the feed position. By this feeding (movement) of the second tool 42, a predetermined position of the workpiece 1 is machined based on the second command 70b.

続いて、ステップS6において、制御装置50は、動作プログラム60の最終の動作指令70まで処理を終えたか否かを判定する。最終の動作指令70まで処理を終えていない場合(ステップS6のNo)、ステップS1に戻り、指令読み出し部33は、動作プログラム60の次の動作指令70を読み出し、指令受付部34に送る。すなわち、ステップS1からステップS6までの処理を順次実行する。 Subsequently, in step S6, the control device 50 determines whether the processing up to the final operation command 70 of the operation program 60 has been completed. If the processing up to the final operation command 70 has not been completed (No in step S6), the process returns to step S1, and the command reading section 33 reads out the next operation command 70 of the operation program 60 and sends it to the command receiving section 34. That is, the processes from step S1 to step S6 are sequentially executed.

ステップS6において、制御装置50が、動作プログラム60の最終ブロックまで処理を終えたと判定した場合(ステップS6のYes)、制御装置50は、処理を終了する。なお、制御装置50は、例えば、第1工具駆動部23及び第2工具駆動部24に対して、第1工具41及び第2工具42を、それぞれの初期位置(ワーク1から退避した位置)に戻すように制御してもよい。第1工具駆動部23及び第2工具駆動部24は、この制御によって、第1工具41及び第2工具42をそれぞれワーク1から退避した退避位置に移動させる。このようにして、旋盤100によるワーク1の加工が終了する。 In step S6, if the control device 50 determines that the processing up to the final block of the operation program 60 has been completed (Yes in step S6), the control device 50 ends the processing. Note that, for example, the control device 50 causes the first tool drive section 23 and the second tool drive section 24 to move the first tool 41 and the second tool 42 to their respective initial positions (positions evacuated from the workpiece 1). It may be controlled to return. Through this control, the first tool drive section 23 and the second tool drive section 24 move the first tool 41 and the second tool 42 to the retracted positions from the workpiece 1, respectively. In this way, machining of the workpiece 1 by the lathe 100 is completed.

(具体例)
図5に、上記した動作プログラム60の具体例を示す。図5に示す動作プログラム60は、1つのブロックである動作指令70を複数有している。図5に示す動作プログラム60を制御装置50に入力すると、制御装置50は、各動作指令70(1)~70(5)のそれぞれに対して、上記したようなステップS1からステップS6の処理を順次実行する。まず、動作プログラム60の第1の動作指令70(1)では、「X0.0Z0.0」と記述されている。この第1の動作指令70(1)は、第1工具駆動部23及び第2工具駆動部24によって、第1工具41及び第2工具42(第1刃物台21及び第2刃物台22)が、それぞれ所定の加工開始位置(座標値「X」=「0.0」、Z=「0.0」)に配置されていることを示している。
(Concrete example)
FIG. 5 shows a specific example of the operation program 60 described above. The operation program 60 shown in FIG. 5 has a plurality of operation commands 70 that are one block. When the operation program 60 shown in FIG. 5 is input to the control device 50, the control device 50 performs the processing from step S1 to step S6 as described above for each of the operation commands 70(1) to 70(5). Execute sequentially. First, in the first operation command 70(1) of the operation program 60, "X0.0Z0.0" is written. This first operation command 70(1) is transmitted by the first tool drive section 23 and the second tool drive section 24 to the first tool 41 and the second tool 42 (the first tool rest 21 and the second tool rest 22). , respectively, indicate that they are arranged at predetermined machining start positions (coordinate values "X" = "0.0", Z = "0.0").

次に、動作プログラム60の第2の動作指令70(2)では、図4のステップS3により、識別子「X」及び識別子「F」が含まれているので、指令識別部35は、第2の動作指令70(2)が第1指令70a2であると識別する。すなわち、第2の動作指令70(2)は、第1指令70a2に相当する。なお、第2の動作指令70(2)には識別子「Z」及び識別子「FF」が含まれていないので、指令識別部35は、第2の動作指令70(2)から第2指令70bを抽出しない。 Next, since the second operation command 70(2) of the operation program 60 includes the identifier "X" and the identifier "F" in step S3 of FIG. The operation command 70(2) is identified as the first command 70a2. That is, the second operation command 70(2) corresponds to the first command 70a2. Note that since the second operation command 70(2) does not include the identifier "Z" and the identifier "FF", the command identification unit 35 extracts the second command 70b from the second operation command 70(2). Not extracted.

この第1指令70a2は、第1指令出力部36により第1工具駆動部23に出力される。第1工具駆動部23は、第1指令70aに基づいて、第1の動作指令70(1)を実行した後の第1工具41のX方向の座標値「0.0」から、X方向の送り位置である座標値「10.0」まで、送り速度「120」mm/分で第1工具41を送る。この第1工具41の移動により、ワーク1の加工対象部分が加工される。 This first command 70a2 is outputted to the first tool drive unit 23 by the first command output unit 36. Based on the first command 70a, the first tool driving unit 23 moves the The first tool 41 is sent at a feed rate of "120" mm/min to the coordinate value "10.0" which is the feed position. By this movement of the first tool 41, the part of the workpiece 1 to be machined is machined.

続いて、動作プログラム60の第3の動作指令70(3)では、図4のステップS3により、識別子「Z」と識別子「FF」とが含まれているので、指令識別部35は、第3の動作指令70(3)が第2指令70b3であると識別する。すなわち、第3の動作指令70(3)は、第2指令70b3に相当する。なお、第3の動作指令70(3)には識別子「X」及び識別子「F」が含まれていないので、指令識別部35は、第3の動作指令70(3)から第1指令70aを抽出しない。 Subsequently, since the third operation command 70(3) of the operation program 60 includes the identifier "Z" and the identifier "FF" in step S3 of FIG. The operation command 70(3) is identified as the second command 70b3. That is, the third operation command 70(3) corresponds to the second command 70b3. Note that since the third operation command 70(3) does not include the identifier "X" and the identifier "F", the command identification unit 35 extracts the first command 70a from the third operation command 70(3). Not extracted.

この第2指令70b3は、第2指令出力部37により第2工具駆動部24に出力される。第2工具駆動部24は、第2指令70bに基づいて、第1の動作指令70(1)を実行した後の第2工具42のZ方向の座標値「0.0」から、Z方向の送り位置である座標値「15.0」まで、送り速度「300」mm/分で第2工具42を送る。この第2工具42の移動により、ワーク1の加工対象部分が加工される。なお、上記した第3の動作指令70(3)では、識別子「FF」を用いているが、第2の動作指令70(2)と同様に識別子「F」が用いられてもよい。すなわち、動作指令70が、第1指令70a又は第2指令70bのいずれか一方である場合は、送り速度を示す識別子を共通化してもよい。第3の動作指令70(3)は、図5に示す形態に代えて、「Z15F300」と記述されてもよい。指令識別部35は、第2の動作指令70(2)に識別子「X」が含まれていることにより第1指令70a2であると識別し、第3の動作指令70(3)に識別子「Z」が含まれていることにより第2指令70b3であると識別して、識別子「F」に続く送り速度で第1工具駆動部23又は第2工具駆動部24をそれぞれ制御する。 This second command 70b3 is outputted to the second tool drive unit 24 by the second command output unit 37. Based on the second command 70b, the second tool driving unit 24 moves the second tool 42 from the Z-direction coordinate value "0.0" after executing the first operation command 70(1) to the Z-direction coordinate value "0.0". The second tool 42 is sent at a feed rate of 300 mm/min to the feed position of coordinate value 15.0. By this movement of the second tool 42, the part of the workpiece 1 to be machined is machined. Note that although the third operation command 70(3) described above uses the identifier "FF," the identifier "F" may be used similarly to the second operation command 70(2). That is, when the operation command 70 is either the first command 70a or the second command 70b, the identifier indicating the feed rate may be shared. The third operation command 70(3) may be written as "Z15F300" instead of the form shown in FIG. The command identification unit 35 identifies the second operation command 70(2) as the first command 70a2 by including the identifier "X", and assigns the identifier "Z" to the third operation command 70(3). " is included, it is identified as the second command 70b3, and the first tool drive section 23 or the second tool drive section 24 is controlled respectively at the feed rate following the identifier "F".

続いて、動作プログラム60の第4の動作指令70(4)では、図4のステップS3により、指令識別部35は、第4の動作指令70(4)において、識別子「X」と識別子「F」とが含まれている部分を第1指令70a4であると識別する。また、指令識別部35は、第4の動作指令70(4)において、識別子「Z」と識別子「FF」とが含まれている部分を第2指令70b4であると識別する。1つのブロックである第4の動作指令70(4)は、第1指令70a4と第2指令70b4とを含んでいる。なお、指令識別部35は、第4の動作指令70(4)において、最初の記述部分を第1指令70a4と識別し、後の記述部分又は第1指令70a4に続く記述部分を第2指令70b4と識別してもよい。指令識別部35により抽出された第1指令70a4は、第1指令出力部36により第1工具駆動部23に出力される。また、指令識別部35により抽出された第2指令70b4は、第2指令出力部37により第2工具駆動部24に出力される。 Subsequently, in the fourth operation command 70(4) of the operation program 60, in step S3 of FIG. ” is identified as the first command 70a4. Further, the command identification unit 35 identifies the portion of the fourth operation command 70(4) that includes the identifier "Z" and the identifier "FF" as the second command 70b4. The fourth operation command 70(4), which is one block, includes a first command 70a4 and a second command 70b4. Note that in the fourth operation command 70(4), the command identification unit 35 identifies the first written part as the first command 70a4, and identifies the later written part or the written part following the first command 70a4 as the second command 70b4. It may be identified as The first command 70a4 extracted by the command identification section 35 is outputted to the first tool drive section 23 by the first command output section 36. Further, the second command 70b4 extracted by the command identification section 35 is outputted to the second tool drive section 24 by the second command output section 37.

第1工具駆動部23は、第1指令70a4に基づいて、第2の動作指令70(2)を実行した後の第1工具41のX方向の座標値「10.0」から、X方向の送り位置である座標値「20.0」まで、送り速度「300」mm/分で第1工具41を送る。同時に、第2工具駆動部24は、第2指令70b4に基づいて、第3の動作指令70(3)を実行した後の第2工具42のZ方向の座標値「15.0」から、Z方向の送り位置である座標値「25.0」まで、送り速度「240」mm/分で第2工具42を送る。この第1工具41及び第2工具42のそれぞれの移動により、ワーク1の加工対象部分がそれぞれ加工される。 Based on the first command 70a4, the first tool driving unit 23 converts the X-direction coordinate value "10.0" of the first tool 41 after executing the second operation command 70(2) to the X-direction coordinate value "10.0". The first tool 41 is sent at a feed rate of 300 mm/min to a coordinate value of 20.0, which is the feed position. At the same time, the second tool driving unit 24 changes the coordinate value "15.0" in the Z direction of the second tool 42 after executing the third operation command 70(3) based on the second command 70b4. The second tool 42 is fed at a feed rate of 240 mm/min to a coordinate value of 25.0, which is the feed position in the direction. By each movement of the first tool 41 and the second tool 42, the portions of the workpiece 1 to be machined are machined.

なお、第4の動作指令70(4)において、第1工具41の送り開始(加工開始)のタイミングと、第2工具42の送り開始(加工開始)のタイミングとは同時又はほぼ同時である。ただし、この第4の動作指令70(4)において、第1工具41の送り終了(加工終了)のタイミングと、第2工具42の送り終了(加工終了)のタイミングとは異なっている。なお、第1工具41の送り終了のタイミングと、第2工具42の送り終了のタイミングとが同時又はほぼ同時となるような動作指令70であってもよい。また、上記した第4の動作指令70(4)では、識別子「F」と「FF」とを用いて第1指令70a4の送り速度と、第2指令70b4の送り速度とを示しているが、この形態に限定されない。例えば、第4の動作指令70(4)は、第1指令70a4と第2指令70b4との間に仕切りを示す特定の記述(識別子)「//」、「・」、「*」、「-」など、指令識別部35が読み取り可能な(識別可能な)記述を加えることにより、第1指令70a4と第2指令70b4との送り速度を示す記号「F」を共通化する形態であってもよい。すなわち、第4の動作指令70(4)は、図5に示す形態に代えて、例えば「X20F300//Z25F240」、「X20F300*Z25F240」と表記してもよい。 Note that in the fourth operation command 70(4), the timing of starting feeding (starting machining) of the first tool 41 and the timing of starting feeding (starting machining) of the second tool 42 are the same or almost the same. However, in this fourth operation command 70(4), the timing of the end of feeding of the first tool 41 (end of machining) is different from the timing of the end of feeding of the second tool 42 (end of machining). Note that the operation command 70 may be such that the timing of the end of feeding of the first tool 41 and the timing of the end of feeding of the second tool 42 are the same or almost the same. Furthermore, in the fourth operation command 70(4) described above, the identifiers "F" and "FF" are used to indicate the feed speed of the first command 70a4 and the feed speed of the second command 70b4, It is not limited to this form. For example, the fourth operation command 70(4) includes specific descriptions (identifiers) "//", "・", "*", "-" that indicate a partition between the first command 70a4 and the second command 70b4. ”, etc., by adding a description readable (identifiable) by the command identification unit 35, the first command 70a4 and the second command 70b4 may share the symbol “F” indicating the feed speed. good. That is, the fourth operation command 70(4) may be written as "X20F300//Z25F240" or "X20F300*Z25F240" instead of the form shown in FIG. 5, for example.

このように、第1工具駆動部23及び第2工具駆動部24によって、第1工具41及び第2工具42をそれぞれ異なる送り位置(送り方向)に、異なる送り速度で送ることによりワーク1をそれぞれ加工することが可能となる。なお、第4の動作指令70(4)では、第1指令70a4における送り速度と、第2指令70b4における送り速度とを異ならせているが、第1指令70a4における送り速度と、第2指令70b4における送り速度とが同一であってもよい。 In this way, the first tool driving section 23 and the second tool driving section 24 feed the first tool 41 and the second tool 42 to different feeding positions (feeding directions) at different feeding speeds, so that the workpiece 1 can be moved, respectively. It becomes possible to process. Note that in the fourth operation command 70(4), the feed speed in the first command 70a4 and the feed speed in the second command 70b4 are different, but the feed speed in the first command 70a4 and the feed speed in the second command 70b4 The feed speeds may be the same.

続いて、動作プログラム60の第5の動作指令70(5)では、図4のステップS3により、識別子「Z」と識別子「FF」とが含まれているので、指令識別部35は、第5の動作指令70(5)が第2指令70b5であると識別する。すなわち、第5の動作指令70(5)は、第2指令70b5に相当する。なお、第5の動作指令70(5)には識別子「X」及び識別子「F」が含まれていないので、指令識別部35は、第5の動作指令70(5)から第1指令70aを抽出しない。 Subsequently, since the fifth operation command 70(5) of the operation program 60 includes the identifier "Z" and the identifier "FF" in step S3 of FIG. The operation command 70(5) is identified as the second command 70b5. That is, the fifth operation command 70(5) corresponds to the second command 70b5. Note that since the fifth operation command 70(5) does not include the identifier "X" and the identifier "F", the command identification unit 35 extracts the first command 70a from the fifth operation command 70(5). Not extracted.

この第2指令70b5は、第2指令出力部37により第2工具駆動部24に出力される。第2工具駆動部24は、第2指令70b5に基づいて、第4の動作指令70(4)を実行した後の第2工具42のZ方向の座標値「25.0」から、Z方向の送り位置である座標値「35.0」まで、送り速度「150」mm/分で第2工具42を送る。この第2工具42の移動により、ワーク1の加工対象部分が加工される。 This second command 70b5 is outputted to the second tool drive unit 24 by the second command output unit 37. Based on the second command 70b5, the second tool driving unit 24 moves the Z-direction coordinate value “25.0” of the second tool 42 after executing the fourth operation command 70(4) to the Z-direction coordinate value “25.0”. The second tool 42 is sent at a feed rate of 150 mm/min to the feed position of coordinate value 35.0. By this movement of the second tool 42, the part of the workpiece 1 to be machined is machined.

なお、第5の動作指令70(5)を実行させた後、制御装置50は、図4のステップS6に示すように、動作プログラム60の最終の動作指令(第5の動作指令70(5))まで処理を終えたと判定し、動作プログラム60に関する処理を終了する。なお、制御装置50は、第1工具駆動部23及び第2工具駆動部24に対して、第1工具41及び第2工具42を、それぞれの初期位置(ワーク1から退避した位置)、又は上記した加工開始位置に戻すように制御してもよい。 Note that after executing the fifth operation command 70(5), the control device 50 executes the final operation command (fifth operation command 70(5)) of the operation program 60, as shown in step S6 in FIG. ) is determined to have been completed, and the processing regarding the operation program 60 is ended. Note that the control device 50 controls the first tool drive unit 23 and the second tool drive unit 24 to move the first tool 41 and the second tool 42 to their respective initial positions (positions evacuated from the workpiece 1) or to the above-mentioned positions. It may be controlled to return to the machining start position.

(比較例)
次に、比較のため、従来の旋盤(工作機械)における制御について説明する。従来の旋盤では、複数の送り位置に工具を送る場合、X方向とZ方向とを直線補完した送り方向における送り速度が設定される。図6は、従来の旋盤で用いられる動作プログラムの例を示す図である。図6に示す動作プログラム60xと、上記した図5に示す動作プログラム60とは、第4の動作指令70x4の記述が異なる。従来の旋盤の制御装置は、動作プログラム60xの第1から第3及び第5の動作指令70x1~70x3、70x5では、上記した本実施形態の制御装置50と同様の制御を行う。
(Comparative example)
Next, for comparison, control in a conventional lathe (machine tool) will be explained. In a conventional lathe, when feeding a tool to a plurality of feeding positions, a feeding speed in a feeding direction that linearly complements the X direction and the Z direction is set. FIG. 6 is a diagram showing an example of an operation program used in a conventional lathe. The operation program 60x shown in FIG. 6 and the operation program 60 shown in FIG. 5 described above differ in the description of the fourth operation command 70x4. The conventional lathe control device performs the same control as the control device 50 of the present embodiment described above in the first to third and fifth operation commands 70x1 to 70x3 and 70x5 of the operation program 60x.

従来の旋盤で用いられる動作プログラム60xでは、第4の動作指令70x4のように、第1工具41の送り位置である送り先の座標値と、第2工具42の送り位置である送り先の座標値と、1つの送り速度「F○○○(○は数値、単位はmm/分)」で記述される。この送り速度は、第1工具41のX方向への送り位置と、第2工具42のZ方向への送り位置とを直線補完した後の方向における送り速度である。従って、第1工具駆動部23により第1工具41をX方向に移動させる移動速度の値ではなく、第2工具駆動部24により第2工具42をZ方向に移動させる移動速度の値ではない。 In the operation program 60x used in the conventional lathe, as in the fourth operation command 70x4, the coordinate values of the destination, which is the feed position of the first tool 41, and the coordinate values of the destination, which is the feed position of the second tool 42, are set. , is described as one feed rate "F○○○ (○ is a numerical value, the unit is mm/minute)". This feed rate is the feed rate in the direction obtained by linearly interpolating the feed position of the first tool 41 in the X direction and the feed position of the second tool 42 in the Z direction. Therefore, it is not the value of the moving speed at which the first tool driving section 23 moves the first tool 41 in the X direction, nor is it the value of the moving speed at which the second tool driving section 24 moves the second tool 42 in the Z direction.

従来の旋盤の制御装置では、動作プログラム60xの第4の動作指令70x4に基づいて、第1工具駆動部23がX方向の座標値「10.0」から送り位置である座標値「20.0」まで第1工具41を送り、第2工具駆動部24をZ方向の座標値「15.0」から送り位置である座標値「25.0」まで第2工具42を送る。ただし、第4の動作指令70x4で記述された送り速度F「424.2」mm/分は、X方向及びZ方向の送り位置の座標値に関して直線補完した方向における速度である。 In the conventional lathe control device, the first tool drive section 23 moves from the X-direction coordinate value "10.0" to the feed position coordinate value "20.0" based on the fourth operation command 70x4 of the operation program 60x. '', and the second tool driving unit 24 feeds the second tool 42 from the coordinate value "15.0" in the Z direction to the coordinate value "25.0", which is the feed position. However, the feed speed F "424.2" mm/min described in the fourth operation command 70x4 is a speed in a direction that is linearly interpolated with respect to the coordinate values of the feed position in the X direction and the Z direction.

従来の旋盤の制御装置は、直線補完した距離を送り速度F「424.2」mm/分で第1工具41及び第2工具42を送るように、第1工具駆動部23及び第2工具駆動部24を制御する。その結果、第1工具駆動部23による第1工具41の送り開始のタイミングと、第2工具駆動部24による第2工具42の送り開始のタイミングとが同時であり、かつ、第1工具駆動部23による第1工具41の送り終了のタイミングと、第2工具駆動部24による第2工具42の送り終了のタイミングとが同時となる。従って、第1工具41を送る距離と、第2工具42を送る距離とが異なると、第1工具駆動部23により第1工具41を送る速度と、第2工具駆動部24により第2工具42を送る速度とが異なることになる。 The conventional lathe control device controls the first tool drive unit 23 and the second tool drive unit so as to send the first tool 41 and the second tool 42 over a linearly interpolated distance at a feed rate F of 424.2 mm/min. 24. As a result, the timing at which the first tool drive unit 23 starts feeding the first tool 41 and the timing at which the second tool drive unit 24 starts feeding the second tool 42 are simultaneous, and the first tool drive unit The timing of the end of feeding of the first tool 41 by the second tool drive section 23 and the timing of the end of feeding of the second tool 42 by the second tool drive section 24 are the same. Therefore, if the distance at which the first tool 41 is sent and the distance at which the second tool 42 is sent are different, the speed at which the first tool 41 is sent by the first tool drive unit 23 and the speed at which the second tool 42 is sent by the second tool drive unit 24 are different. The sending speed will be different.

つまり、第4の動作指令70x4で送り速度Fを設定したとしても、直線補完した方向における送り速度が設定されるので、第1工具41及び第2工具42の双方に対して所望する送り速度で送ることができないことになる。このように、この比較例に係る旋盤では、第1工具41及び第2工具42の双方について、それぞれワーク1の加工に適した送り速度で送ることができない。 In other words, even if the feed rate F is set with the fourth operation command 70x4, the feed rate in the linearly complementary direction is set, so the desired feed rate for both the first tool 41 and the second tool 42 is set. This means that you will not be able to send it. As described above, in the lathe according to this comparative example, both the first tool 41 and the second tool 42 cannot be fed at feed rates suitable for machining the workpiece 1, respectively.

以上の説明のように、本実施形態によれば、第1工具駆動部23に対する第1工具41の送り位置及び送り速度に関する第1指令70aと、第2工具駆動部24に対する第2工具42の送り位置及び送り速度に関する第2指令70bとを含む1つのブロックである動作指令70を受け付けた場合、動作指令70に含まれる第1指令70aに基づいて第1工具41を送り、ワーク1を加工させ、動作指令70に含まれる第2指令70bに基づいて第2工具42を送り、ワーク1を加工させる。このように、ワーク1を加工するに際して、第1工具駆動部23及び第2工具駆動部24により、第1指令70a、第2指令70bに基づいた個別の送り速度で第1工具41及び第2工具42を送ってワーク1を加工することができる。従って、第1工具駆動部23及び第2工具駆動部24により、第1工具41及び第2工具42をそれぞれ適した送り速度(適した加工条件)で送ることができ、ワーク1を精度よく加工することができる。 As described above, according to the present embodiment, the first command 70a regarding the feed position and feed rate of the first tool 41 to the first tool drive unit 23, and the first command 70a regarding the feed position and feed rate of the first tool 41 to the second tool drive unit 24, When a motion command 70 that is one block including a second command 70b regarding a feed position and a feed speed is received, the first tool 41 is sent based on the first command 70a included in the motion command 70 to process the workpiece 1. Then, the second tool 42 is sent to process the workpiece 1 based on the second command 70b included in the operation command 70. In this way, when processing the workpiece 1, the first tool driving section 23 and the second tool driving section 24 control the first tool 41 and the second tool 41 at individual feed rates based on the first command 70a and the second command 70b. The workpiece 1 can be processed by sending the tool 42. Therefore, the first tool drive unit 23 and the second tool drive unit 24 can feed the first tool 41 and the second tool 42 at appropriate feed speeds (suitable machining conditions), and process the workpiece 1 with high precision. can do.

上記した実施形態において、制御装置50のプログラム入力部31、プログラム記憶部32、指令読み出し部33、指令受付部34、指令識別部35、第1指令出力部36、及び第2指令出力部37は、プログラムがコンピュータに読み込まれることにより、ソフトウェアとハードウェア資源とが協働した具体的手段として実現されてもよい。 In the embodiment described above, the program input section 31, program storage section 32, command reading section 33, command reception section 34, command identification section 35, first command output section 36, and second command output section 37 of the control device 50 are By loading the program into a computer, the program may be realized as a concrete means in which software and hardware resources cooperate.

[第2実施形態]
次に、本発明の第2の実施形態について説明する。上記した第1実施形態では、ワーク1に対し、第1工具41をX方向に移動させ、第2工具42をZ方向に移動させる形態について説明したが、この形態に限定されない。図7は、第2の実施形態に係る旋盤(工作機械)100Aの一例を示す概略構成図である。なお、図7において、上記した実施形態と同一の構成については同一の符号を付して、その説明を省略又は簡略化する。また、以下の説明では、区別のためXa方向とXb方向とを用いている。Xa方向及びXb方向は、いずれも第1実施形態のX方向と平行な方向である。図7に示すように、旋盤100Aは、主軸10と、刃物台20Aと、制御装置50と、を備える。
[Second embodiment]
Next, a second embodiment of the present invention will be described. In the first embodiment described above, the first tool 41 is moved in the X direction and the second tool 42 is moved in the Z direction with respect to the workpiece 1, but the present invention is not limited to this embodiment. FIG. 7 is a schematic configuration diagram showing an example of a lathe (machine tool) 100A according to the second embodiment. Note that in FIG. 7, the same components as those in the above-described embodiment are given the same reference numerals, and the description thereof will be omitted or simplified. Furthermore, in the following description, the Xa direction and the Xb direction are used for distinction. The Xa direction and the Xb direction are both parallel to the X direction of the first embodiment. As shown in FIG. 7, the lathe 100A includes a main spindle 10, a tool rest 20A, and a control device 50.

刃物台20Aは、第1刃物台21Aと、第2刃物台22Aと、第1工具駆動部23Aと、第2工具駆動部24Aと、を備えている。第1刃物台21Aは、主軸10に保持されたワーク1を加工する第1工具41Aを保持する。第1工具41Aは、第1刃物台21Aに備える不図示のホルダによって第1刃物台21Aの所定位置に着脱可能に保持される。第1刃物台21Aは、例えば、タレット状刃物台又はくし歯状刃物台など、複数の第1工具41Aを保持可能な形態であってもよい。この場合、複数の第1工具41Aのうちワーク1の加工に用いられる第1工具41Aが選択されて用いられる。 The tool rest 20A includes a first tool rest 21A, a second tool rest 22A, a first tool drive section 23A, and a second tool drive section 24A. The first tool post 21A holds a first tool 41A that processes the workpiece 1 held by the spindle 10. The first tool 41A is removably held at a predetermined position on the first tool rest 21A by a holder (not shown) provided in the first tool rest 21A. The first tool rest 21A may have a form capable of holding a plurality of first tools 41A, such as a turret-like tool rest or a comb-like tool rest, for example. In this case, the first tool 41A used for machining the workpiece 1 is selected and used from among the plurality of first tools 41A.

第1工具駆動部23Aは、主軸2に保持されたワーク1に対して、Xa方向に第1刃物台21Aを送る。第1刃物台21AがXa方向に送られることにより、主軸10に保持されて回転するワーク1は、第1工具41AによってXa方向に加工される。第1工具駆動部23Aは、例えば、電動モータ及びボールねじ機構を用いた構成等が用いられる。本実施形態において、第1工具駆動部23Aは、第1刃物台21AをXa方向に送っているが、この形態に限定されず、例えば、第1刃物台21AをXa方向、Y方向(Xa方向とZ方向とに直交する方向)、Z方向のそれぞれの方向、及びこれらの方向を合成した方向に送るような形態であってもよい。 The first tool drive unit 23A sends the first tool rest 21A to the workpiece 1 held by the main spindle 2 in the Xa direction. By moving the first tool rest 21A in the Xa direction, the workpiece 1 held by the spindle 10 and rotating is machined in the Xa direction by the first tool 41A. The first tool driving section 23A uses, for example, a configuration using an electric motor and a ball screw mechanism. In the present embodiment, the first tool drive section 23A moves the first tool rest 21A in the Xa direction, but is not limited to this form. For example, the first tool drive section 23A moves the first tool rest 21A in the and Z direction), each direction of the Z direction, or a direction in which these directions are combined.

第2刃物台22Aは、主軸10に保持されたワーク1を加工する第2工具42Aを保持する。第2工具42Aは、第2刃物台22Aに備える不図示のホルダによって第2刃物台22Aの所定位置に着脱可能に保持される。第2刃物台22Aは、例えば、タレット状刃物台又はくし歯状刃物台など、複数の第2工具42Aを保持可能な形態であってもよい。この場合、複数の第2工具42Aのうちワーク1の加工に用いられる第2工具42Aが選択されて用いられる。 The second tool post 22A holds a second tool 42A that processes the workpiece 1 held by the spindle 10. The second tool 42A is removably held at a predetermined position on the second tool rest 22A by a holder (not shown) provided in the second tool rest 22A. The second tool rest 22A may have a form capable of holding a plurality of second tools 42A, such as a turret-like tool rest or a comb-like tool rest, for example. In this case, the second tool 42A used for machining the workpiece 1 is selected and used from among the plurality of second tools 42A.

第2工具駆動部24Aは、主軸2に保持されたワーク1に対して、Xb方向に第2刃物台22Aを送る。第2刃物台22AがXb方向に送られることにより、主軸10に保持されて回転するワーク1は、第2工具42AによってXb方向に加工される。第2工具駆動部24Aは、例えば、電動モータ及びボールねじ機構を用いた構成等が用いられる。本実施形態において、第2工具駆動部24Aは、第2刃物台22AをXb方向に送っているが、この形態に限定されず、例えば、第2刃物台22AをXb方向、Y方向(Xb方向とZ方向とに直交する方向)、Z方向のそれぞれの方向、及びこれらの方向を合成した方向に送るような形態であってもよい。 The second tool drive unit 24A sends the second tool rest 22A to the workpiece 1 held by the main spindle 2 in the Xb direction. As the second tool post 22A is sent in the Xb direction, the workpiece 1 held by the spindle 10 and rotated is machined in the Xb direction by the second tool 42A. The second tool driving section 24A uses, for example, a configuration using an electric motor and a ball screw mechanism. In the present embodiment, the second tool drive section 24A sends the second tool rest 22A in the Xb direction, but is not limited to this form. For example, the second tool drive section 24A sends the second tool rest 22A in the and Z direction), each direction of the Z direction, or a direction in which these directions are combined.

第1刃物台21Aと第2刃物台22Aとは、旋盤100Aにおいて異なる位置に設けられている。従って、第1刃物台21Aの第1工具41Aと、第2刃物台22Aの第2工具42Aとは、ワーク1の異なる位置に対して加工を行う。また、第1工具41Aと第2工具42Aとは、第1工具駆動部23A及び第2工具駆動部24Aの同一のX方向(Xa方向、Xb方向)に移動しつつワーク1を加工する。ただし、第1工具駆動部23Aによる第1工具41Aの送り位置(座標値)と、第2工具駆動部24Aによる第2工具42Aの送り位置(座標値)とは、互いに異なっている。 The first tool rest 21A and the second tool rest 22A are provided at different positions in the lathe 100A. Therefore, the first tool 41A of the first tool rest 21A and the second tool 42A of the second tool rest 22A perform processing on different positions of the workpiece 1. Further, the first tool 41A and the second tool 42A process the workpiece 1 while moving in the same X direction (Xa direction, Xb direction) of the first tool drive section 23A and the second tool drive section 24A. However, the feeding position (coordinate values) of the first tool 41A by the first tool driving section 23A and the feeding position (coordinate values) of the second tool 42A by the second tool driving section 24A are different from each other.

図8は、旋盤100Aの制御に用いられる動作指令の一例を示す図である。動作プログラム60Aは、第1実施形態の動作プログラム60と同様に、動作指令70を複数備えることにより構成されている。図8では、動作プログラム60Aにおける1つのブロックである動作指令70を示している。旋盤100Aの制御装置50は、動作プログラム60Aに含まれる複数の動作指令70に基づいた動作を、動作プログラム60Aにより示された動作指令70の順番で第1工具駆動部23A及び第2工具駆動部24Aに対して実行させる。 FIG. 8 is a diagram showing an example of an operation command used to control the lathe 100A. The operation program 60A is configured by including a plurality of operation commands 70, similar to the operation program 60 of the first embodiment. FIG. 8 shows an operation command 70, which is one block in the operation program 60A. The control device 50 of the lathe 100A performs operations based on the plurality of operation commands 70 included in the operation program 60A, in the order of the operation commands 70 indicated by the operation program 60A, in the first tool drive section 23A and the second tool drive section. 24A.

図8に示すように、1つのブロックである動作指令70は、第1工具駆動部23Aに対する第1工具41Aの送り位置、及び第1工具41Aの送り速度に関する第1指令70cと、第2工具駆動部24Aに対する第2工具42Aの送り位置、及び第2工具42Aの送り速度に関する第2指令70dとを含んでいる。 As shown in FIG. 8, the operation command 70, which is one block, includes a first command 70c regarding the feed position and feed speed of the first tool 41A with respect to the first tool drive section 23A, and a second tool 41A. It includes a second command 70d regarding the feed position of the second tool 42A relative to the drive unit 24A and the feed speed of the second tool 42A.

第1指令70cは、第1工具駆動部23Aにおける第1工具41Aの送り方向(Xa方向)を表す識別子「Xa」と、原点を基準としたXa方向における第1工具41Aの送り位置として送り先の座標値「△△△(△は数字)」と、第1工具駆動部23Aにおける第1工具41Aの送り速度を表す識別子「F」と、第1工具41Aの送り速度を示す数値「○○○(○は数字、単位はmm/分)」とを含む。第2指令70dは、第2工具駆動部24Aにおける第2工具42Aの送り方向(Xb方向)を表す識別子「Xb」と、原点を基準としたXb方向における第2工具42Aの送り位置として送り先の座標値「□□□(□は数字)」と、第2工具駆動部24Aにおける第2工具42Aの送り速度を表す識別子「FF」と、第2工具42Aの送り速度を示す数値「***(*は数字、単位はmm/分)」とを含む。 The first command 70c includes an identifier "Xa" representing the feeding direction (Xa direction) of the first tool 41A in the first tool driving unit 23A, and a destination as the feeding position of the first tool 41A in the Xa direction with reference to the origin. The coordinate value "△△△ (△ is a number)", the identifier "F" representing the feed speed of the first tool 41A in the first tool drive section 23A, and the numerical value "○○○" representing the feed speed of the first tool 41A (○ is a number, the unit is mm/min). The second command 70d includes an identifier "Xb" representing the feeding direction (Xb direction) of the second tool 42A in the second tool drive unit 24A, and a destination as the feeding position of the second tool 42A in the Xb direction with reference to the origin. The coordinate value "□□□ (□ is a number)", the identifier "FF" representing the feed speed of the second tool 42A in the second tool drive unit 24A, and the numerical value "***" representing the feed speed of the second tool 42A (* is a number, the unit is mm/min).

なお、この動作指令70(第1指令70c及び第2指令70d)は、送り位置として送り先の座標値を用いているが、この形態に限定されない。例えば、送り位置として送り先までの送り量を用いる形態であってもよい。この場合、第1指令70cにおける「△△△(△は数字)」は、送り量(単位はmm)であり、第2指令70dにおける「□□□(□は数字)」は、送り量(単位はmm)である。 Note that although this operation command 70 (the first command 70c and the second command 70d) uses the coordinate values of the destination as the sending position, it is not limited to this form. For example, the feed amount to the destination may be used as the feed position. In this case, "△△△ (△ is a number)" in the first command 70c is the feed amount (unit: mm), and "□□□ (□ is a number)" in the second command 70d is the feed amount ( The unit is mm).

1つのブロックである動作指令70は、第1指令70c、第2指令70dの順に記述されている。動作プログラム60Aは、上記したような動作指令70を複数備えている。なお、第1工具駆動部23A及び第2工具駆動部24Aのいずれか一方を動作させる場合、すなわち、第1工具41A及び第2工具42Aのいずれか一方によりワーク1を加工させる場合、動作指令70には、第1指令70c及び第2指令70dのいずれか一方が記述される。 The operation command 70, which is one block, is written in the order of a first command 70c and a second command 70d. The operation program 60A includes a plurality of operation commands 70 as described above. Note that when operating either the first tool drive unit 23A or the second tool drive unit 24A, that is, when processing the workpiece 1 with either the first tool 41A or the second tool 42A, the operation command 70 , one of the first command 70c and the second command 70d is written.

旋盤100Aが備える制御装置50は、図3に示す第1実施形態の制御装置50と同様である。旋盤100Aの制御装置50は、上記した図4に示すフローチャートに沿って旋盤100Aを制御する。制御装置50は、指令読み出し部33により動作プログラム60Aから各動作指令70を1つずつ読み出して指令受付部34に送り、その動作指令70を指令識別部35に送る(図4のステップS1からステップS2参照)。続いて、制御装置50の指令識別部35は、指令受付部34で受け付けた動作指令70から、第1指令70cと第2指令70dとをそれぞれ識別する(図4のステップS3参照)。 A control device 50 included in the lathe 100A is similar to the control device 50 of the first embodiment shown in FIG. The control device 50 of the lathe 100A controls the lathe 100A according to the flowchart shown in FIG. 4 described above. The control device 50 uses the command reading unit 33 to read each operation command 70 from the operation program 60A one by one and sends it to the command reception unit 34, and sends the operation command 70 to the command identification unit 35 (step S1 to step in FIG. 4). (See S2). Subsequently, the command identifying unit 35 of the control device 50 identifies the first command 70c and the second command 70d from the operation command 70 received by the command receiving unit 34 (see step S3 in FIG. 4).

指令識別部35は、動作指令70において、識別子「Xa」と識別子「F」とが含まれている部分を第1指令70cであると識別する。また、指令識別部35は、動作指令70において、識別子「Xb」と識別子「FF」とが含まれている部分を第2指令70dであると識別する。なお、指令識別部35は、動作指令70において、最初の記述部分を第1指令70cと識別し、後の記述部分又は第1指令70cに続く記述部分を第2指令70dと識別してもよい。指令識別部35は、動作指令70から第1指令70cから抽出し、動作指令70から第2指令70dを抽出する。 The command identification unit 35 identifies the portion of the operation command 70 that includes the identifier "Xa" and the identifier "F" as the first command 70c. Further, the command identifying unit 35 identifies a portion of the operation command 70 that includes the identifier "Xb" and the identifier "FF" as the second command 70d. In addition, the command identification unit 35 may identify the first written part in the operation command 70 as the first command 70c, and identify the later written part or the written part following the first command 70c as the second command 70d. . The command identification unit 35 extracts the first command 70c from the operation command 70, and extracts the second command 70d from the operation command 70.

指令識別部35は、動作指令70から抽出した第1指令70cを、第1指令出力部36に送る(図4のステップS4参照)。指令識別部35は、動作指令70から抽出した第2指令70bを、第2指令出力部37に送る(図4のステップS5参照)。第1指令70cは、第1指令出力部36により第1工具駆動部23Aに出力される。また、第2指令70dは、第2指令出力部37により第2工具駆動部24Aに出力される。 The command identification unit 35 sends the first command 70c extracted from the operation command 70 to the first command output unit 36 (see step S4 in FIG. 4). The command identification unit 35 sends the second command 70b extracted from the operation command 70 to the second command output unit 37 (see step S5 in FIG. 4). The first command 70c is outputted by the first command output section 36 to the first tool driving section 23A. Further, the second command 70d is outputted by the second command output section 37 to the second tool driving section 24A.

第1工具駆動部23Aは、第1指令70cに基づいて、第1工具41Aを、第1指令70cに含まれる第1工具41Aの送り方向Xa方向に沿って、送り位置である送り先の座標値「△△△」まで、送り速度「○○○」mm/分で移動させる。この第1工具41Aの送り(移動)により第1指令70cに基づいたワーク1の所定位置が加工される。また、第2工具駆動部24Aは、第2指令70dに基づいて、第2工具42Aを、第2指令70dに含まれる第2工具42Aの送り方向Xb方向に沿って、送り位置である送り先の座標値「□□□」まで、送り速度「***」mm/分で移動させる。この第2工具42Aの送り(移動)により第2指令70dに基づいたワーク1の所定位置が加工される。 Based on the first command 70c, the first tool driving unit 23A moves the first tool 41A along the feed direction Xa direction of the first tool 41A included in the first command 70c, to the coordinate value of the destination which is the feed position. Move it to "△△△" at a feed rate of "○○○" mm/min. By this feeding (movement) of the first tool 41A, a predetermined position of the workpiece 1 is machined based on the first command 70c. Further, based on the second command 70d, the second tool driving unit 24A moves the second tool 42A along the feeding direction Move to the coordinate value "□□□" at a feed rate of "***" mm/min. By this feeding (movement) of the second tool 42A, a predetermined position of the workpiece 1 is machined based on the second command 70d.

このように、本実施形態によれば、第1工具41A及び第2工具42Aを平行する同一方向(Xa方向及びXb方向)に送る場合であっても、第1実施形態と同様に、第1工具41A及び第2工具42Aをそれぞれ適した送り速度(適した加工条件)で送ることができ、ワーク1を精度よく加工することができる。 As described above, according to the present embodiment, even when the first tool 41A and the second tool 42A are sent in the same parallel direction (Xa direction and Xb direction), the first tool 41A and the second tool 42A are The tool 41A and the second tool 42A can be fed at appropriate feed speeds (suitable machining conditions), and the workpiece 1 can be machined with high precision.

[他の実施形態]
上記した第1及び第2の実施形態では、第1工具駆動部23、23Aは、第1工具41、41Aを、X方向、Xa方向に移動させ、第2工具駆動部24、24Aは、第2工具42、42Aを、Z方向、Xb方向に移動させている。つまり、第1工具駆動部23、23A、及び第2工具駆動部24、24Aは、第1工具41、41A及び第2工具42、42Aを、それぞれ1方向に移動させる形態を例に挙げて説明しているが、この形態に限定されない。例えば、第1工具駆動部23、23A、第2工具駆動部24、24Aは、第1工具41、41A及び第2工具42、42Aをそれぞれ2方向以上に移動させる形態であってもよい。例えば、第1工具駆動部23、23A、第2工具駆動部24、24Aは、第1工具41、41A及び第2工具42、42Aを、それぞれX方向、Y方向、Z方向の3方向に移動させてもよい。
[Other embodiments]
In the first and second embodiments described above, the first tool drive units 23, 23A move the first tools 41, 41A in the X direction and the Xa direction, and the second tool drive units 24, 24A move the first tools 41, 41A in the X direction and the Xa direction. Two tools 42 and 42A are being moved in the Z direction and the Xb direction. That is, the first tool drive units 23, 23A and the second tool drive units 24, 24A will be described using an example in which the first tools 41, 41A and the second tools 42, 42A are moved in one direction. However, it is not limited to this form. For example, the first tool drive units 23, 23A and the second tool drive units 24, 24A may be configured to move the first tools 41, 41A and the second tools 42, 42A in two or more directions, respectively. For example, the first tool drive units 23, 23A and the second tool drive units 24, 24A move the first tools 41, 41A and the second tools 42, 42A in three directions, the X direction, the Y direction, and the Z direction, respectively. You may let them.

この場合、例えば、1つのブロックである動作指令70において、第1指令70a、70cとして、第1工具駆動部23、23Aの第1工具41、41Aの送り方向の識別子をそれぞれ「Xc、Yc、Zc」とし、この識別子の後にそれぞれ送り位置である送り先の座標値「△△△」を記述し(例えば「Xc△△△、Yc△△△、Zc△△△」)、送り速度の識別子を「F」とし、この識別子の後に第1工具41、41Aの送り速度を示す数値「○○○」を記述する。また、1つのブロックである動作指令70において、第2指令70b、70dとして、第2工具駆動部24、24Aの第2工具42、42Aの送り方向の識別子をそれぞれ「Xd、Yd、Zd」とし、この識別子の後にそれぞれ送り位置である送り先の座標値「□□□」を記述し(例えば「Xd□□□、Yd□□□、Zd□□□」)、送り速度の識別子を「FF」とし、この識別子の後に第2工具42、42Aの送り速度を示す数値「***」を記述する。 In this case, for example, in the operation command 70 that is one block, the identifiers of the feed directions of the first tools 41 and 41A of the first tool drive units 23 and 23A are set as "Xc, Yc," as the first commands 70a and 70c, respectively. After this identifier, write the coordinate value "△△△" of the destination, which is the feed position (for example, "Xc△△△, Yc△△△, Zc△△△"), and write the feed speed identifier. "F" and a numerical value "○○○" indicating the feed speed of the first tools 41, 41A is written after this identifier. In addition, in the operation command 70 that is one block, the identifiers of the feed directions of the second tools 42 and 42A of the second tool drive units 24 and 24A are set as "Xd, Yd, and Zd" as the second commands 70b and 70d, respectively. After this identifier, write the coordinate value "□□□" of the destination, which is the feed position (for example, "Xd□□□, Yd□□□, Zd□□□"), and write the feed rate identifier as "FF". After this identifier, a numerical value "***" indicating the feed speed of the second tools 42, 42A is written.

旋盤100、100Aの制御装置50は、指令識別部35により1つのブロックである動作指令70から第1指令70a、70cと第2指令70b、70dとを識別して、それぞれを第1工具駆動部23、23A及び第2工具駆動部24、24Aに出力する。第1工具駆動部23、23Aは、第1指令70a、70cに基づいて第1工具41、41Aを送り、ワーク1を加工させる。第2工具駆動部24、24Aは、第2指令70b、70dに基づいて第1工具41、41Aを送り、ワーク1を加工させる。 The control device 50 of the lathe 100, 100A uses the command identification unit 35 to identify the first commands 70a, 70c and the second commands 70b, 70d from the operation command 70, which is one block, and assigns each to the first tool drive unit. 23, 23A and the second tool drive section 24, 24A. The first tool driving units 23 and 23A send the first tools 41 and 41A to process the workpiece 1 based on the first commands 70a and 70c. The second tool driving units 24 and 24A send the first tools 41 and 41A to process the workpiece 1 based on the second commands 70b and 70d.

このように、第1工具41等を2方向以上に移動させる場合であっても、上記した第1及び第2の実施形態と同様の制御を行うことにより、第1工具41等を適した送り速度(適した加工条件)で送ることができ、ワーク1を精度よく加工することができる。 In this way, even when moving the first tool 41, etc. in two or more directions, the first tool 41, etc. can be moved appropriately by performing the same control as in the first and second embodiments described above. It can be fed at a high speed (suitable machining conditions), and the workpiece 1 can be machined with high precision.

以上、本発明の実施形態について説明したが、本発明の技術的範囲は、上記した実施形態に限定されない。上記した実施形態に、多様な変更又は改良を加えることが可能であることは当業者において明らかである。また、そのような変更又は改良を加えた形態も本発明の技術的範囲に含まれる。また、上記した実施形態などで説明した要件の1つ以上は、省略されることがある。また、上記した実施形態などで説明した要件は、適宜組み合わせることができる。また、法令で許容される限りにおいて、上述の実施形態などで引用した全ての文献の開示を援用して本文の記載の一部とする。また、本実施形態において示した各処理の実行順序は、前の処理の出力を後の処理で用いない限り、任意の順序で実現可能である。また、上記した実施形態における動作に関して、便宜上「まず」、「次に」、「続いて」等を用いて説明したとしても、この順序で実施することが必須ではない。 Although the embodiments of the present invention have been described above, the technical scope of the present invention is not limited to the above-described embodiments. It will be apparent to those skilled in the art that various changes or improvements can be made to the embodiments described above. Furthermore, forms with such changes or improvements are also included within the technical scope of the present invention. Furthermore, one or more of the requirements described in the above-described embodiments may be omitted. Furthermore, the requirements described in the above-described embodiments and the like can be combined as appropriate. In addition, to the extent permitted by law, the disclosures of all documents cited in the above-mentioned embodiments are incorporated into the description of the main text. Moreover, the execution order of each process shown in this embodiment can be realized in any order as long as the output of the previous process is not used in the subsequent process. Further, even if the operations in the above-described embodiments are described using "first", "next", "successively", etc. for convenience, it is not essential that they be performed in this order.

また、上記した実施形態では、2つの第1工具41及び第2工具42(又は第1工具41A及び第2工具42A)を用いる場合について説明しているが、この形態に限定されない。例えば、旋盤100、100Aにおいて、3つ以上の工具を用いる形態であってもよい。この場合、上記した実施形態の第1工具41、第2工具42のように、3つ以上の工具をそれぞれ所定方向に独立して移動させる形態であってもよいし、3つ以上の工具のうち、少なくとも2つの工具を上記した実施形態の第1工具41、第2工具42のようにそれぞれ所定方向に独立して移動させる形態であってもよい。 Furthermore, in the embodiment described above, a case has been described in which two first tools 41 and second tools 42 (or first tools 41A and second tools 42A) are used, but the present invention is not limited to this embodiment. For example, the lathes 100 and 100A may use three or more tools. In this case, like the first tool 41 and the second tool 42 in the above-described embodiment, three or more tools may be moved independently in a predetermined direction, or three or more tools may be moved independently in a predetermined direction. Of these, at least two tools may be moved independently in predetermined directions, like the first tool 41 and the second tool 42 in the above-described embodiment.

1・・・ワーク
10・・・主軸
20、20A・・・刃物台
23、23A・・・第1工具駆動部
24、24A・・・第2工具駆動部
34・・・指令受付部
35・・・指令識別部
36・・・第1指令出力部
37・・・第2指令出力部
41、41A・・・第1工具
42、42A・・・第2工具
50・・・制御装置
60、60A・・・動作プログラム
70・・・動作指令
70a、70c・・・第1指令
70b、70d・・・第2指令
100、100A・・・旋盤(工作機械)
1... Workpiece 10... Spindle 20, 20A... Turret 23, 23A... First tool drive section 24, 24A... Second tool drive section 34... Command receiving section 35... - Command identification section 36... First command output section 37... Second command output section 41, 41A... First tool 42, 42A... Second tool 50... Control device 60, 60A. ...Movement program 70...Movement commands 70a, 70c...First commands 70b, 70d...Second commands 100, 100A...Lathe (machine tool)

Claims (5)

ワークを加工するための第1工具を送る第1工具駆動部と、
ワークを加工するための第2工具を送る第2工具駆動部と、
前記第1工具駆動部及び前記第2工具駆動部の動作を制御する制御装置と、を備え、
前記制御装置は、
前記第1工具駆動部に対する前記第1工具の送り位置及び前記第1工具の送り速度に関する第1指令と、前記第2工具駆動部に対する前記第2工具の送り位置及び前記第2工具の送り速度に関する第2指令とを含む1つのブロックである動作指令を受け付ける指令受付部と、
前記指令受付部で受け付けた前記動作指令から前記第1指令と前記第2指令とをそれぞれ識別する指令識別部と、
前記指令識別部により識別された前記第1指令を前記第1工具駆動部に出力する第1指令出力部と、
前記指令識別部より識別された前記第2指令を前記第2工具駆動部に出力する第2指令出力部と、を備え
前記動作指令は、前記第1工具による前記ワークに対する加工動作と、前記第2工具による前記ワークに対する加工動作とを含む、工作機械。
a first tool drive unit that sends a first tool for processing the workpiece;
a second tool drive unit that sends a second tool for processing the workpiece;
a control device that controls operations of the first tool drive section and the second tool drive section,
The control device includes:
a first command regarding a feed position of the first tool and a feed rate of the first tool with respect to the first tool drive unit; a feed position of the second tool and a feed rate of the second tool with respect to the second tool drive unit; a command reception unit that receives an operation command, which is one block including a second command related to the operation;
a command identification unit that identifies the first command and the second command from the operation commands received by the command reception unit;
a first command output unit that outputs the first command identified by the command identification unit to the first tool drive unit;
a second command output unit that outputs the second command identified by the command identification unit to the second tool drive unit ,
The operation command includes a machining operation on the workpiece by the first tool and a machining operation on the workpiece by the second tool .
ワークを保持する主軸をさらに備え、
前記第1工具駆動部及び前記第2工具駆動部のそれぞれは、前記主軸に保持されたワークの異なる位置に対してそれぞれ前記第1工具及び前記第2工具を送る、請求項1に記載の工作機械。
It is further equipped with a main shaft that holds the workpiece,
The workpiece according to claim 1, wherein each of the first tool drive section and the second tool drive section sends the first tool and the second tool, respectively, to different positions of the workpiece held by the main spindle. machine.
前記第1工具駆動部による前記第1工具の送り位置と、前記第2工具駆動部による前記第2工具の送り位置とが異なる、請求項2に記載の工作機械。 The machine tool according to claim 2, wherein a feeding position of the first tool by the first tool driving section and a feeding position of the second tool by the second tool driving section are different. 前記第1工具駆動部による前記第1工具の送り速度と、前記第2工具駆動部による前記第2工具の送り速度とが異なる、請求項2又は請求項3に記載の工作機械。 The machine tool according to claim 2 or 3, wherein the feed speed of the first tool by the first tool drive section and the feed speed of the second tool by the second tool drive section are different. ワークを加工するための第1工具を送る第1工具駆動部と、ワークを加工するための第2工具を送る第2工具駆動部とを備える工作機械の制御方法であって、
前記第1工具駆動部に対する前記第1工具の送り位置及び前記第1工具の送り速度に関する第1指令と、前記第2工具駆動部に対する前記第2工具の送り位置及び前記第2工具の送り速度に関する第2指令とを含む1つのブロックである動作指令を受け付けることと、
前記動作指令から前記第1指令と前記第2指令とをそれぞれ識別することと、
前記第1指令を前記第1工具駆動部に出力することと、
前記第2指令を前記第2工具駆動部に出力することと、を含み、
前記動作指令は、前記第1工具による前記ワークに対する加工動作と、前記第2工具による前記ワークに対する加工動作とを含む、工作機械の制御方法。
A method for controlling a machine tool, comprising: a first tool drive section that sends a first tool for processing a workpiece; and a second tool drive section that sends a second tool for processing the workpiece.
a first command regarding a feed position of the first tool and a feed rate of the first tool with respect to the first tool drive unit; a feed position of the second tool and a feed rate of the second tool with respect to the second tool drive unit; receiving an operation command that is one block including a second command regarding the
identifying the first command and the second command from the operation command;
outputting the first command to the first tool drive unit;
outputting the second command to the second tool drive section ,
A method for controlling a machine tool, wherein the operation command includes a machining operation on the workpiece by the first tool and a machining operation on the workpiece by the second tool .
JP2019203201A 2019-11-08 2019-11-08 Machine tools and machine tool control methods Active JP7413729B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019203201A JP7413729B2 (en) 2019-11-08 2019-11-08 Machine tools and machine tool control methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019203201A JP7413729B2 (en) 2019-11-08 2019-11-08 Machine tools and machine tool control methods

Publications (2)

Publication Number Publication Date
JP2021077083A JP2021077083A (en) 2021-05-20
JP7413729B2 true JP7413729B2 (en) 2024-01-16

Family

ID=75900023

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019203201A Active JP7413729B2 (en) 2019-11-08 2019-11-08 Machine tools and machine tool control methods

Country Status (1)

Country Link
JP (1) JP7413729B2 (en)

Also Published As

Publication number Publication date
JP2021077083A (en) 2021-05-20

Similar Documents

Publication Publication Date Title
JP5372320B2 (en) Work machine control program and work machine control apparatus for executing the control program
JP5562411B2 (en) Synchronous machining system and synchronous machining method
JPH0325603A (en) Numerical controller
GB1567762A (en) Machine-tool control
WO2013118169A1 (en) Numerical control device
US20160274560A1 (en) Numerical controller performing reciprocal turning in complex fixed cycle
KR910007664B1 (en) Numerical controller
JP2008023611A (en) Composite nc lathe
JP3199319B2 (en) Multi-axis / multi-path numerical control method
JP7413729B2 (en) Machine tools and machine tool control methods
JP5059360B2 (en) Rapid feed control method for machine tools
JP6444923B2 (en) Numerical controller
JPS61293704A (en) Numerical controller for automatic lathe
JPWO2002091090A1 (en) Automatic lathe, its control method and its control device
JP3572113B2 (en) Control method of NC machine tool
JP2003275941A (en) Nc machine tool
JPH08263115A (en) Interference evading method for nc machine tool
CN112462685A (en) Control method for avoiding collision and automatically converting 3+2 processing and application thereof
JPH0255161B2 (en)
JP3440149B2 (en) Control method of NC lathe
JP2008087144A (en) Main spindle moving type automatic lathe
JP3640618B2 (en) Numerically controlled lathe having comb-type counter tool post, workpiece machining method using this numerically controlled lathe, and program thereof
JPH08112701A (en) Machining method executed on nc-lathe and nc-lathe capable of back up machining
JP2008126371A (en) Machine tool
JP3313001B2 (en) Control method at the start and end of machining of NC lathe

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220826

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230905

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20231024

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20231128

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231211

R150 Certificate of patent or registration of utility model

Ref document number: 7413729

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150