JPH0415805A - Composite working machine tool and control method for the machine tool - Google Patents

Composite working machine tool and control method for the machine tool

Info

Publication number
JPH0415805A
JPH0415805A JP11921290A JP11921290A JPH0415805A JP H0415805 A JPH0415805 A JP H0415805A JP 11921290 A JP11921290 A JP 11921290A JP 11921290 A JP11921290 A JP 11921290A JP H0415805 A JPH0415805 A JP H0415805A
Authority
JP
Japan
Prior art keywords
machining
headstock
display
tool
program
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.)
Pending
Application number
JP11921290A
Other languages
Japanese (ja)
Inventor
Kunio Hatta
八田 邦夫
Masaru Kato
勝 加藤
Katsumi Suzumura
鈴村 克己
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.)
Yamazaki Mazak Corp
Original Assignee
Yamazaki Mazak Corp
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 Yamazaki Mazak Corp filed Critical Yamazaki Mazak Corp
Priority to JP11921290A priority Critical patent/JPH0415805A/en
Publication of JPH0415805A publication Critical patent/JPH0415805A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To simulate a working program on a display device by providing a working pattern discriminating means which discriminates the working pattern of a working program and a tool route calculating means which displays the tool route on a display means. CONSTITUTION:At the time of simulation of the working program, a working pattern discriminating part 25 reads out a control code to discriminate the working pattern of the working program, and a simulation control part 23 calculates the tool route in accordance with working commands in the working program. A work 40 held on a first main shaft base and a tool 10 on a first tool post are displayed in a first main shaft base-side picture GW1 on a display device 29, and the working program is simulated before working. Thus, test cut is unnecessary to shorten the working preparation time. Processes are checked by simulation with respect to various working patterns to perform efficient working.

Description

【発明の詳細な説明】 (a)、産業上の利用分野 本発明は、2つの主軸台と2つの刃物台を有する複合加
工工作機械及び該工作機械の制御方法に関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Field of Industrial Application The present invention relates to a multi-tasking machine tool having two headstocks and two tool rests, and a control method for the machine tool.

(b)、従来の技術 最近、相対向する第1主軸台と第2主軸台を有し、各主
軸台に対応した第1刃物台と第2刃物台を有する複合加
工工作機械が提案されている。
(b), Prior Art Recently, a multitasking machine tool has been proposed which has a first headstock and a second headstock facing each other, and has a first tool rest and a second tool rest corresponding to each headstock. There is.

当該複合工作機械においては、第1主軸台側(第1主軸
台及び第1刃物台)と、第2主軸台側(第2主軸台及び
第2刃物台)とが相異なる制御系統に属しており、第1
主軸台及び第1刃物台のX8軸動作又はZ□軸動作に関
する第1主軸台側のX1Zi軸制御と、第2主軸台及び
第2刃物台のX2軸動作又はz22軸動に関する第2主
軸台側のX2Z2軸制御とを、独立して行うことにより
、2個のワークの加工を同時に独立して行うと共に、第
1主軸台側と第2主軸台側とでワークを受は渡して第1
工程と第2工程を連続的に行うことが出来る(即ち1通
常のNG旋盤2台を有機的に結合したのと同様に制御し
て加工を行うことが出来る)。
In the compound machine tool, the first headstock side (the first headstock and the first tool rest) and the second headstock side (the second headstock and the second tool rest) belong to different control systems. 1st
X1Zi-axis control on the first headstock side regarding X8-axis movement or Z□-axis movement of the headstock and first tool rest, and second headstock side control regarding X2-axis movement or z22-axis movement of the second headstock and second tool rest. By independently controlling the two X2Z axes on the side, two workpieces can be machined simultaneously and independently, and the workpiece can be passed between the first and second headstock sides and then transferred to the first headstock.
The process and the second process can be performed continuously (that is, processing can be performed under the same control as when two ordinary NG lathes are organically combined).

そして、このような独立加工に先立って加工プログラム
をチェックする際には1表示装置上で当該加工プログラ
ム中の加工指令を工具経路として描画する形でシミュレ
ーションしている。即ち、表示装置には、工具経路が適
正に表示されるように、予め表示座標系が前記Xユ2工
軸制御又はX2Z2軸制御と対応する形で設定されてお
り、加工プログラム中のX、Z、軸制御又はX2Z2軸
制御に関する加工指令を当該表示座標系上に展開させる
ことにより、第1主軸台側の第1主軸台及び第1刃物台
に関するX8軸動作又は2□軸動作のシミュレーション
と、第2主軸台側の第2主軸台及び第2刃物台に関する
X2軸動作又はz22軸動のシミュレーションとを1画
面を切り換える形で選択的に行っている。
When checking the machining program prior to such independent machining, a simulation is performed by drawing the machining instructions in the machining program as a tool path on one display device. That is, in order to properly display the tool path, the display coordinate system is set in advance on the display device in a manner that corresponds to the XY2 machining axis control or the X2Z 2 axis control, and the X, By developing machining commands related to Z, axis control or X2Z 2-axis control on the display coordinate system, simulation of X8-axis operation or 2□-axis operation regarding the first headstock and first tool rest on the first headstock side , X2-axis motion or z22-axis motion simulation regarding the second headstock and second tool rest on the second headstock side is selectively performed by switching one screen.

(C)0発明が解決すべき問題点 前記複合工作機械においては、前述の独立加工以外にも
種々の加工パターンで加工を行うことが可能であり、相
異なる制御系統に属する主軸台と刃物台(第1主軸台と
第2刃物台、又は、第2主軸台と第1刃物台)とで行う
クロス加工などがある(この場合1通常のNC旋盤等の
XZ軸制御とは異なり、補間制御により加工を行う)。
(C) 0 Problems to be Solved by the Invention In the multi-purpose machine tool, it is possible to perform machining with various machining patterns in addition to the above-mentioned independent machining, and the headstock and tool rest belonging to different control systems are used. (1st headstock and 2nd tool post, or 2nd headstock and 1st tool post) (In this case, 1. Unlike the XZ-axis control of normal NC lathes, etc., interpolation control is used. processing).

ところが1表示装置の表示座標系は、(通常のNC旋盤
等と同様な)XXZ、軸制御又はX2z2軸制御に対応
するように設定されているため、前述の独立加工に関し
てのみ加工プログラムのシミュレーションが可能であり
、クロス加工などの、X1Z1軸制御又はX2Z、軸制
御のいづれでもない、補間制御による加工パターンに関
しては、加工プログラムを表示装置上でシミュレーショ
ンすることが出来なかった。
However, since the display coordinate system of the first display device is set to correspond to XXZ, axis control or X2Z two-axis control (similar to a normal NC lathe, etc.), the machining program simulation can only be performed for the above-mentioned independent machining. However, for machining patterns such as cross machining, which are not X1Z single-axis control or X2Z axis control, but are based on interpolation control, the machining program could not be simulated on the display device.

従って、このような加工パターンに関しては、加工に先
立って加工開始位置のチェックなどの為にテストカット
を必要とし、加工段取りに時間が掛かると共に、シミュ
レーションによる工程のチェックが行われないので効率
的な加工を行うことが出来なかった。
Therefore, for such machining patterns, a test cut is required to check the machining start position prior to machining, which takes time to set up the machining process, and the process is not checked by simulation, making it less efficient. It was not possible to process it.

本発明は、前述の欠点を解消すべく、加工パターンに対
応して、好適に、加工プログラムを表示装置でシミュレ
ーションすることが出来る複合加工工作機械及び該工作
機械の制御方法を提供することを目的とするものである
SUMMARY OF THE INVENTION In order to eliminate the above-mentioned drawbacks, the present invention aims to provide a multi-tasking machine tool that can suitably simulate a machining program on a display device in accordance with a machining pattern, and a control method for the machine tool. That is.

(d)0問題点を解決するための手段 即ち1本発明は、互いに対向した形で相対的に接近離反
自在に設けられた第1の主軸台(3)及び第2の主軸台
(5)を有し、それ等第1及び第2の主軸台に対応した
形で第1の刃物台(7)及び第2の刃物台(9)を前記
主軸台に対して相対的に移動駆動自在に設けた複合加工
工作機械(1)において、工具経路を所定の表示座標系
に基づいて表示する表示手段(29)を設け、加工プロ
グラム(PRO)を格納する加工プログラム格納手段(
15)を設け、前記加工プログラム(PRO)の加工パ
ターンを示す加工パターン指令(FAT)を格納する加
工パターン指令格納手段(PRO)を設け、前記加工パ
ターン指令格納手段(PRO)に格納された加工パター
ン指令(FAT)に基づいて、前記加工プログラム(P
RO)の加工パターンを判定する加工パターン判定手段
(25)を設け、前記加工プログラム(PRO)を解析
して、前記加工パターン判定手段(25)により判定さ
れた当該前ニブログラム(PRO)の加工パターンに基
づいて、当該前ニブログラム(PRO)中の加工指令を
前記表示座標系に座標変換する形で、当該前ニブログラ
ム(PRO)の前記工具経路を求め、第1の主軸台(3
)に保持されたワーク(40)の表示と第1の刃物台(
7)の表示若しくは第2の刃物台(9)の表示とを選択
的に組合せる形で、又は、第2の主軸台(5)に保持さ
れたワーク(40)の表示と第2の刃物台(9)の表示
若しくは第1の刃物台(7)の表示とを選択的に組合せ
る形で、当該水ぬられた工具経路を前記表示手段(29
)上に表示する工具経路演算手段(23)を設けて構成
される。
(d) Means for Solving Zero Problems, ie 1 The present invention provides a first headstock (3) and a second headstock (5) that are provided facing each other so as to be able to approach and separate from each other. The first tool rest (7) and the second tool rest (9) can be freely moved and driven relative to the head stock in a manner corresponding to the first and second head stock. The multi-tasking machine tool (1) is provided with a display means (29) for displaying the tool path based on a predetermined display coordinate system, and a machining program storage means (29) for storing a machining program (PRO).
15), and a machining pattern command storage means (PRO) for storing a machining pattern command (FAT) indicating a machining pattern of the machining program (PRO), and Based on the pattern command (FAT), the machining program (P
A machining pattern determining means (25) is provided for determining a machining pattern of the previous nib program (PRO), which analyzes the machining program (PRO) and determines the machining pattern of the previous nib program (PRO) determined by the machining pattern determining means (25). Based on this, the tool path of the previous nibrow program (PRO) is determined by coordinate transformation of the machining command in the previous nibrow program (PRO) to the display coordinate system, and
) and the display of the workpiece (40) held on the first tool rest (
7) or the display of the second tool rest (9), or the display of the workpiece (40) held on the second headstock (5) and the second tool rest. By selectively combining the display on the stand (9) or the display on the first turret (7), the wet tool path is indicated by the display means (29).
) is provided with a tool path calculation means (23) displayed on the top.

また、本発明は、互いに対向した形で相対的に接近離反
自在に設けられた第1の主軸台(3)及び第2の主軸台
(5)を有し、それ等第1及び第2の主軸台に対応した
形で第1の刃物台(7)及び第2の刃物台(9)を前記
主軸台に対して相対的に移動駆動自在に設けた複合加工
工作機械(1)において、加工プログラム(PRO)中
に加工パターン指令(FAT)を格納しておき、加工に
先立って前記加工プログラム(PRO)をチェックする
に際して、当該前ニブログラム(PRO)から前記加工
パターン指令(FAT)を読み出し、該読み出された加
工パターン指令(FAT)に基づいて、当該前ニブログ
ラム(PRO)の加工パターンを判定し、当該前ニブロ
グラム(PRO)を解析して、前記判定された当該前ニ
ブログラム(PRO)の加工パターンに基づいて、当該
前ニブログラム(PRO)中の加工指令を座標変換する
形で、当該前ニブログラム(PRO)の工具経路を求め
、第1の主軸台(3)に保持されたワーク(4o)の表
示と第1の刃物台(7)の表示若しくは第2の刃物台(
9)の表示とを選択的に組合せる形で、又は、第2の主
軸台(5)に保持されたワーク(40)の表示と第2の
刃物台(9)の表示若しくは第1の刃物台(7)の表示
とを選択的に組合せる形で、前記水められた工具経路を
表示手段(29)に表示するようにして構成される。
Further, the present invention has a first headstock (3) and a second headstock (5) that are provided facing each other so as to be able to approach and separate from each other. In a multi-tasking machine tool (1) in which a first tool rest (7) and a second tool rest (9) are provided in correspondence with the head stock so as to be movable and driven relative to the head stock, A machining pattern command (FAT) is stored in a program (PRO), and when checking the machining program (PRO) prior to machining, the machining pattern command (FAT) is read from the previous nib program (PRO), Based on the read machining pattern command (FAT), the machining pattern of the previous nib program (PRO) is determined, the pre nib program (PRO) is analyzed, and the machining pattern of the determined pre nib program (PRO) is determined. Based on the machining pattern, the tool path of the previous nib program (PRO) is determined by coordinate transformation of the machining command in the pre nib program (PRO), and the workpiece (4o) held on the first headstock (3) is ) and the display of the first tool rest (7) or the second tool rest (
9), or the display of the workpiece (40) held on the second headstock (5) and the display of the second tool rest (9) or the first cutter. The submerged tool path is displayed on the display means (29) in selective combination with the display on the stand (7).

なお、括弧内の番号などは、図面における対応する要素
を示す1便宜的なものであり、従って、本記述は図面上
の記載に限定されるものでは無い。
Note that the numbers in parentheses are for convenience and indicate corresponding elements in the drawings, and therefore, this description is not limited to the descriptions on the drawings.

以下の、r(e)、作用」の欄についても同様である。The same applies to the column "r(e), action" below.

(e)0作用 上記した構成により、本発明は1種々の加工パターンの
加工プログラム(PRO)が表示手段(29)上でシミ
ュレーションされるように作用する。
(e) 0 Effect With the above-described configuration, the present invention operates so that machining programs (PRO) of one variety of machining patterns are simulated on the display means (29).

(f)、実施例 以下、本発明の実施例を図面に基づき説明する。(f), Example Embodiments of the present invention will be described below based on the drawings.

第1図は、本発明による複合加工工作機械の1実施例を
示す平面図、 第2図は、第1図に示す複合加工工作機械の刃物台の移
動領域を示す図、 第3図は、本発明による複合加工工作機械の1実施例を
示す制御ブロック図、 第4図は、第1図に示す複合加工工作機械における独立
加工を示す平面図。
FIG. 1 is a plan view showing one embodiment of a multi-tasking machine tool according to the present invention, FIG. 2 is a diagram showing a moving area of the tool rest of the multi-tasking machine tool shown in FIG. 1, and FIG. FIG. 4 is a control block diagram showing one embodiment of the multi-tasking machine tool according to the present invention; FIG. 4 is a plan view showing independent machining in the multi-tasking machine tool shown in FIG. 1;

第5図は、第1図に示す複合加工工作機械における第1
主軸台側のクロス加工を示す平面図。
Figure 5 shows the first part of the multi-tasking machine tool shown in Figure 1.
A plan view showing cross processing on the headstock side.

第6図は、第1図に示す複合加工工作機械における第2
主軸台側のクロス加工を示す平面図、第7図は、第1図
に示す複合加工工作機械におけるスイス加工を示す平面
図、 第8図は、包括加工プログラムを示す模式図、第9図は
、第4図に示す独立加工のシミュレーションにおける表
示装置の第1主軸台側画面の表示形態を示す図、 第10図は、第4図に示す独立加工のシミュレーション
における表示装置の第2主軸台側画面の表示形態を示す
図、 第11図は、第5図に示す第1主軸台側のクロス加工の
シミュレーションにおける表示装置の第1主軸台側画面
の表示形態を示す図、第12図は、第S図に示す第1主
軸台側のクロス加工のシミュレーションにおける表示装
置の第2主軸台側画面の表示形態を示す図、第13図は
、第6図に示す第2主軸台側のクロス加工のシミュレー
ションにおける表示装置の第1主軸台側画面の表示形態
を示す図、第14図は、第6図に示す第2主軸台側のク
ロス加工のシミュレーションにおける表示装置の第2主
軸台側画面の表示形態を示す図である。
Figure 6 shows the second part of the multi-tasking machine tool shown in Figure 1.
Fig. 7 is a plan view showing cross machining on the headstock side, Fig. 7 is a plan view showing Swiss machining in the multitasking machine tool shown in Fig. 1, Fig. 8 is a schematic diagram showing the comprehensive machining program, and Fig. 9 is a plan view showing cross machining on the headstock side. , a diagram showing the display form of the screen on the first headstock side of the display device in the simulation of independent machining shown in FIG. 4, and FIG. FIG. 11 is a diagram showing the display form of the screen on the first headstock side of the display device in the simulation of cross machining on the first headstock side shown in FIG. A diagram showing the display form of the second headstock side screen of the display device in the simulation of cross machining on the first headstock side shown in Figure S, and Figure 13 is a diagram showing the cross machining on the second headstock side shown in Figure 6. FIG. 14 is a diagram showing the display form of the first headstock side screen of the display device in the simulation of FIG. It is a figure showing a display form.

複合加工工作機械1は、第1図に示すように。A multi-tasking machine tool 1 is shown in FIG.

機体2を有しており、機体2の両側には5第1主軸台3
がZ0軸方向である矢印A□5B1方向に。
It has a fuselage 2, and 5 first headstocks 3 are installed on both sides of the fuselage 2.
in the direction of arrow A□5B1, which is the Z0 axis direction.

第2主軸台5が22軸方向である矢印A2、B2方向に
それぞれ移動駆動自在に設けられており、両生軸台3.
5は、各々の移動方向である矢印A□、B工方向と矢印
A2.B2方向とが一致して互いに対向する形で配置さ
れている。各主軸台3.5にはワーク主軸3a、5aが
その軸心を一致させた形で回転髪動自在に支持されてお
り、ワーク主軸3a、5aには主軸軸心方向に貫通孔3
c、5cが貫通穿設され、更にワーク主軸3a、5aの
先端にはチャック3b、5bが装着されている。また、
機体2には、キャリッジ6.8が駆動ネジ6a、8aを
介してZ、軸方向、Z4軸方向である矢印A3.B、方
向、矢印A4.B4方向に移動位置決め自在な形で支持
さ九ている。キャリッジ6には第1刃物台7がX1軸方
向である矢印C,,D□力方向、キャリッジ8には第2
刃物台9がX2軸方向である矢印C2、B2方向にそれ
ぞれ移動駆動自在に設けられており、各刃物台7.9は
、移動方向である矢印C工、D工方向、矢印C2、B2
方向が各主軸台3.5の移動方向である矢印A□、B2
方向、矢印A2、B2方向と垂直になる形(従って、矢
印C□、D□力方向矢印C2、B2方向が平行になる形
)で配置されている。各刃物台7.9には多角形の筒状
に形成されたタレット7a、9aが装着されており、そ
れら各タレット7a、9aは互いに側面7b、9bが向
い合った配置、即ち背面的な配置で装着されている。各
タレット7a、9aには、バイトなどの旋削工具10や
ミーリング等の回転工具10が工具交換自在に装着され
ている。
A second headstock 5 is provided so as to be freely movable and driven in the directions of arrows A2 and B2, which are the 22-axis directions.
5 indicates the respective movement directions of arrows A□ and B, and arrows A2. They are arranged so that their directions coincide with the B2 direction and face each other. Workpiece spindles 3a and 5a are rotatably supported on each headstock 3.5 with their axes aligned, and through holes 3 are provided in the workpiece spindles 3a and 5a in the direction of the spindle axis.
chucks 3b, 5b are attached to the tips of the workpiece spindles 3a, 5a. Also,
The carriage 6.8 is mounted on the fuselage 2 in the direction of the Z axis and the arrow A3. B. Direction, arrow A4. It is supported so that it can be moved and positioned in the B4 direction. The carriage 6 has the first tool rest 7 in the direction of the X1 axis, arrows C, , D
The tool rest 9 is provided so as to be freely movable and driven in the directions of arrows C2 and B2, which are the X2-axis directions, and each tool rest 7.9 is moved in the directions of arrows C and D, which are the moving directions, and arrows C2 and B2.
Arrows A□, B2 whose directions are the movement directions of each headstock 3.5
They are arranged in a form perpendicular to the directions of the arrows A2 and B2 (therefore, the directions of the arrows C□, D□ and the force directions of the arrows C2 and B2 are parallel). Each tool rest 7.9 is equipped with a polygonal cylindrical turret 7a, 9a, and each of the turrets 7a, 9a is arranged with side surfaces 7b, 9b facing each other, that is, a rear arrangement. It is installed with. Each turret 7a, 9a is equipped with a turning tool 10 such as a cutting tool and a rotary tool 10 such as a milling tool so as to be replaceable.

また、第1刃物台7、第2刃物台9は、第2図に示すよ
うに、矢印A、B方向に移動領域AREl、ARE2を
それぞれ有しており、それら移動領域AREI、ARE
2は互いに重複した共有移動領域ARE3を有している
Further, as shown in FIG. 2, the first tool rest 7 and the second tool rest 9 have moving areas AREl and ARE2 in the directions of arrows A and B, respectively.
2 have mutually overlapping shared movement areas ARE3.

また、複合加工工作機械1には数値制御装置11が設け
られており、数値制御装置11は、第3図に示すように
、主制御部12を有している。
Further, the multitasking machine tool 1 is provided with a numerical control device 11, and the numerical control device 11 has a main control section 12, as shown in FIG.

主制御部12には、バス線13を介して、加工プログラ
ムメモリ15、第1軸制御部19.第2軸制御部20、
入力制御部21、表示制御部22、シミュレーション制
御部23、加工パターン判定部25等が接続されている
。そして、第1軸制御部19及び第2軸制御部20には
各制御軸を駆動する駆動モータ30が複数個接続されて
おり、入力制御部21にはキーボード等の入力装置27
が接続されており、表示制御部22にはCRTデイスプ
レィ等の表示装置29が接続されている。
The main control section 12 is connected to a machining program memory 15, a first axis control section 19. second axis control section 20,
An input control section 21, a display control section 22, a simulation control section 23, a machining pattern determination section 25, and the like are connected. A plurality of drive motors 30 for driving each control axis are connected to the first axis control section 19 and the second axis control section 20, and an input device 27 such as a keyboard is connected to the input control section 21.
is connected to the display control section 22, and a display device 29 such as a CRT display is connected to the display control section 22.

複合加工工作機械1は以上のような構成を有するので、
ワークの加工に際して、主制御部12は加工プログラム
メモリ15から当該ワークに対応する加工プログラムP
R○を読み出す。そして、該加工プログラムPR○に基
づいて、第1軸制御部19、第2軸制御部20は、各駆
動モータ30を介して、第1主軸台3、第1刃物台7、
第2主軸台5、第2刃物台9を適宜移動駆動し、ワーク
主軸3a又はワーク主軸5aにより把持されたワ一りの
加工を種々の加工パターンで行う。
Since the multi-tasking machine tool 1 has the above configuration,
When machining a workpiece, the main control unit 12 selects a machining program P corresponding to the workpiece from the machining program memory 15.
Read R○. Then, based on the machining program PR○, the first axis control section 19 and the second axis control section 20 control the first spindle stock 3, the first tool rest 7,
The second headstock 5 and the second tool rest 9 are moved and driven as appropriate, and a single piece of wire gripped by the workpiece spindle 3a or the workpiece spindle 5a is machined in various machining patterns.

加工パターンの一例として第4rj!iに示す独立加工
においては、第1軸制御部19は、加工プログラムPR
O中の加工指令に基づいて、第1主軸台3をZ□軸制御
して矢印A□、B□力方向適宜移動駆動し、第1刃物台
7をX□軸制御して矢印C1、D□力方向適宜移動駆動
して、第1主軸台3のワーク主軸3aに把持されたワー
ク40の加工を第1刃物台7上の工具10により行う。
As an example of the processing pattern, the 4th rj! In the independent machining shown in i, the first axis control unit 19 executes the machining program PR.
Based on the machining command during O, the first headstock 3 is controlled on the Z□ axis to move appropriately in the arrow A□, B□ force directions, and the first tool rest 7 is controlled on the X□ axis to move in the arrow C1, D direction. □The tool 10 on the first tool rest 7 processes the workpiece 40 gripped by the workpiece spindle 3a of the first headstock 3 by appropriately moving and driving in the force direction.

また、第2軸制御部20は、加工プログラムPRO中の
加工指令に基づいて、第2主軸台5をZ2軸制御して矢
印A2、B2方向へ適宜移動駆動し、第2刃物台9をX
2軸制御して矢印C2、B2方向へ適宜移動駆動して、
第2主軸台5のワーク主軸5aに把持されたワーク40
の加工を第2刃物台9上の工具10により行う。こうし
て、第1主軸台3側で所定のワーク40に対して第1工
程の加工が行われている間に、第2主軸台5側では別の
ワーク40に対して第2工程の加工が行われる形で、第
1主軸台3側と第2主軸台5側とがそれぞれ独立して、
同時に2個のワーク40の加工が行われる。また。
Further, the second axis control unit 20 controls the second headstock 5 along the Z2 axis to appropriately move the second headstock 5 in the directions of arrows A2 and B2, and moves the second tool rest 9 along the X axis.
By controlling the two axes and driving appropriately in the directions of arrows C2 and B2,
Workpiece 40 gripped by workpiece spindle 5a of second headstock 5
This processing is performed using the tool 10 on the second tool post 9. In this way, while the first process is being performed on a predetermined workpiece 40 on the first headstock 3 side, the second process is being performed on another workpiece 40 on the second headstock 5 side. In this way, the first headstock 3 side and the second headstock 5 side are each independently,
Two workpieces 40 are processed simultaneously. Also.

第2主軸台5で第2工程の終了したワーク40は当該複
合加工工作機械1がら搬出され、第1主軸台3側で第1
工程の終了したワーク4oは第1主軸台3から第2主軸
台5へ受は渡され、第1主軸台3には新たなワーク4o
が搬入される形で、1個のワーク40に対して、第1主
軸台3側での第1工程の加工と、第2主軸台5側での第
2工程の加工が連続的に行われる。
The workpiece 40 that has completed the second process in the second headstock 5 is carried out from the multitasking machine tool 1, and is transferred to the first headstock 3 side.
The workpiece 4o whose process has been completed is transferred from the first headstock 3 to the second headstock 5, and a new workpiece 4o is transferred to the first headstock 3.
is carried in, and the first process on the first headstock 3 side and the second process on the second headstock 5 side are continuously performed on one workpiece 40. .

また、既に述べたように、第1刃物台7、第2刃物台9
は、第2図に示す共有移動領域ARE3を有しているの
で、当該複合加工工作機械1では、上述の独立加工のみ
ならず、第1主軸台3に保持さ九たワークに対して、第
2刃物台9を用いて加工を行う所謂クロス加工、更には
2つの刃物台7.9を共に用いた加工をも行なうことが
可能となる。また、このことは第2主軸台5に保持され
たワークに対しても同様である。更に、2つの主軸台3
.5でシャフトワークを貫通孔3c、5Cを介して保持
し、2つの主軸台3.5を同期的に移動させて振れ止め
を使用することなくシャフトワークを加工する加工動作
と、シャフトワークを貫通孔3c、5cから引き比す引
出動作とを繰り返して、長尺のシャフトワークの加工を
行う所謂スイス加工も可能である。
In addition, as already mentioned, the first tool rest 7 and the second tool rest 9
has a shared movement area ARE3 shown in FIG. It becomes possible to perform so-called cross machining in which machining is performed using two turrets 9, and even machining in which both turrets 7.9 are used together. Further, this also applies to the workpiece held on the second headstock 5. Furthermore, two headstocks 3
.. 5 holds the shaft work through the through holes 3c and 5C, and moves the two headstocks 3.5 synchronously to process the shaft work without using a steady rest. It is also possible to perform so-called Swiss processing in which a long shaft workpiece is processed by repeating the drawing operation of drawing from the holes 3c and 5c.

即ち、加工パターンの別の例として、第5図に示す第1
主軸台3側のクロス加工においては。
That is, as another example of the processing pattern, the first pattern shown in FIG.
For cross machining on the headstock 3 side.

第2軸制御部20は、第2刃物台9を74軸制御して矢
印A4、B4方向へ適宜移動位置決めした後に、加工プ
ログラムPRO中の加工指令に基づいて、第2刃物台9
をX2軸制御して矢印C2、B2方向へ適宜移動駆動す
る。そして、第1軸制御部19は、クロス制御に必要な
第2刃物台9のZ。
The second axis control unit 20 controls the second tool rest 9 along 74 axes to appropriately move and position the second tool rest 9 in the directions of arrows A4 and B4.
is controlled along the X2 axis and driven to move in the directions of arrows C2 and B2 as appropriate. The first axis control section 19 controls the Z of the second tool post 9 necessary for cross control.

軸位置及び該第2刃物台9に装着された工具10の工具
情報などの加工データを第2軸制御部20から取り込み
、取り込んだ加工データに基づいて特開昭64−822
02に示すように補間制御する形で、加工プログラムP
Ro中の加工指令に基づいて、第1主軸台3LZユ軸制
御して矢印へ〇。
Machining data such as the axis position and tool information of the tool 10 mounted on the second tool post 9 is imported from the second axis control section 20, and based on the imported machining data, the
The machining program P is controlled by interpolation as shown in 02.
Based on the machining command in Ro, control the first headstock 3LZ axis and move to the arrow.

B工方向へ適宜移動駆動して、第1主軸台3のワ−ク主
#3aに把持されたワーク40の加工を第2刃物台9上
の工具1oにより行う。また、第6図に示す第2主軸台
5側のクロス加工においては、第1軸制御部19は、第
1刃物台7を2.軸制御して矢印A3B、方向へ適宜移
動位置決めした後に、加工プログラムPRO中の加工指
令に基づいて、第1刃物台7をX□軸制御して矢印C1
,Dよ方向へ適宜移動駆動する。そして、第2軸制御部
20はクロス制御に必要な第1刃物台7のZ、軸位置及
び該第1刃物台7に装着された工具10の工具情報など
の加工データを第1軸制御部19から取り込み、取り込
んだ加工データに基づいて第1主軸台3側と同様に補間
制御する形で、加工プログラムPRO中の加工指令に基
づいて、第2主軸台5を22軸制御して矢印A2、B2
方向へ適宜移動駆動して、第2主軸台5のワーク主軸5
aに把持されたワーク40の加工を第1刃物台7上の工
具10により行う。
The workpiece 40 gripped by the workpiece main #3a of the first headstock 3 is machined by the tool 1o on the second tool rest 9 by appropriately moving and driving in the B machining direction. In addition, in the cross machining on the second headstock 5 side shown in FIG. After controlling the axis to move and position appropriately in the direction of arrow A3B, the first tool rest 7 is controlled in the direction of arrow C1 based on the machining command in the machining program PRO.
, D as appropriate. Then, the second axis control unit 20 transmits machining data such as Z and axis position of the first tool rest 7 necessary for cross control and tool information of the tool 10 mounted on the first tool rest 7 to the first axis control unit. 19, and performs interpolation control in the same way as the first headstock 3 side based on the imported machining data, and controls the second headstock 5 along 22 axes based on the machining commands in the machining program PRO to move the arrow A2. ,B2
The workpiece spindle 5 of the second headstock 5 is moved in the direction as appropriate.
The workpiece 40 gripped by a is machined by the tool 10 on the first tool post 7.

また、加工パターンの更に別の例として第7図に示すス
イス加工においては、加工プログラムPRO中の加工指
令にに基づいて、第1軸制御部19及び第2軸制御部2
0は、補間制御により5第1主軸台3.第2主軸台5を
Z′軸制御して矢印A、B方向へ同期的に適宜移動駆動
し、第1刃物台7をX、軸制御して矢印C1、B1方向
へ適宜移動駆動して(又は、第2刃物台9をX2軸制御
して矢印C2、B2方向へ適宜移動駆動して)、2つの
主軸台3.5のワーク主軸3a、5aに貫通孔3c、5
cを介して保持さ九た細長いシャフトワーク39の、チ
ャック3b、5b闇に把持された加工すべき部位39a
の加工を第1刃物台7(又は、第2刃物台9)上の工具
10により行う。
Further, in the Swiss machining shown in FIG. 7 as yet another example of the machining pattern, the first axis control section 19 and the second axis control section 2
0 is determined by interpolation control so that 5 first headstock 3. The second headstock 5 is synchronously and appropriately moved in the directions of arrows A and B by controlling the Z' axis, and the first tool rest 7 is appropriately moved and driven in the directions of arrows C1 and B1 by controlling the X and axis. Alternatively, by controlling the second tool rest 9 along the X2 axis and driving it to move in the directions of arrows C2 and B2 as appropriate), the through holes 3c and 5 are formed in the workpiece spindles 3a and 5a of the two headstocks 3.5.
The part 39a to be machined is held by the chucks 3b and 5b of the elongated shaft work 39 held through the chucks 39a and 39c.
This processing is performed using the tool 10 on the first tool rest 7 (or second tool rest 9).

そして、当該部位39aの加工が終了した際には。Then, when the machining of the part 39a is completed.

チャック5bを緩めて第2主軸台5を相対的に第1主軸
台3に接近させて、加工済の部位39aをチャック5b
を緩めると共にチャック3bを緩め。
Loosen the chuck 5b, move the second headstock 5 relatively close to the first headstock 3, and move the machined part 39a onto the chuck 5b.
At the same time, loosen the chuck 3b.

ワーク主軸5aの貫通孔5C内に収納すると共に、第2
主軸台5を第1主軸台3に対して相対的に離反させて、
第2主軸台5のチャック5bにより未加工の部位39b
をワーク主軸3aの貫通孔3Cから引き出す形でシャフ
トワーク39を矢印B方向へ移動させ、その状態でチャ
ック3bを閉じ、チャック3b、5b間に把持された未
加工の部位39bの加工を上述の部位39aの加工と同
様にして行う。
It is stored in the through hole 5C of the workpiece main shaft 5a, and the second
The headstock 5 is moved away from the first headstock 3,
Unprocessed part 39b by the chuck 5b of the second headstock 5
The shaft work 39 is moved in the direction of arrow B by pulling it out from the through hole 3C of the workpiece main shaft 3a, and in this state, the chuck 3b is closed, and the unprocessed part 39b held between the chucks 3b and 5b is machined as described above. This is done in the same manner as the processing of the portion 39a.

このように、複合加工工作機械1においては。In this way, in the multitasking machine tool 1.

族ニブログラムPROに基づいて、種々の加工パターン
で加工が行われるが、加工に先立って、オペレータ又は
プログラマは、当該加工プログラムPROを表示装置2
9上でシミュレーションさせ、族ニブログラムPROの
チェック、修正を行う。
Machining is performed using various machining patterns based on the family program PRO. Prior to machining, the operator or programmer displays the machining program PRO on the display
9 to check and modify the family Niprogram PRO.

シミュレーションされる第8図に示す統括加工プログラ
ムGPRには複数の族ニブログラムPR○が格納されて
おり、各族ニブログラムPR○の先頭には当該加工プロ
グラムPR○の加工パターンを示す制御コードFATが
格納されている。
A plurality of group Niprogram programs PR○ are stored in the general machining program GPR shown in FIG. has been done.

即ち、制御コードPAT工は族ニブログラムPRO□が
第4図に示す第1主軸台3側の独立加工に関するプログ
ラムであることを示し、制御コードPAT2は族ニブロ
グラムPRO2が第4図に示す第2主軸台S側の独立加
工に関するプログラムであることを示し、制御ニードF
AT、は族ニブログラムPRO,が第5図に示す第1主
軸台3側のクロス加工に関するプログラムであることを
示し、制御コードPAT4は族ニブログラムPRO4が
第6図に示す第2主軸台5側のクロス加工に関するプロ
グラムであることを示し、制御コードFAT、は族ニブ
ログラムPROSが第7図に示す第1主軸台3側のスイ
ス加工に関するプログラムであることを示し、また、制
御コートPAT6は族ニブログラムPR○6が第2主軸
台5側のスイス加工に関するプログラムであることを示
す。
That is, the control code PAT indicates that the group Nibra program PRO□ is a program related to independent machining on the first headstock 3 side shown in FIG. Indicates that the program is related to independent machining on the stand S side, and the control need F
AT indicates that the group Niprogram program PRO is a program related to cross machining on the first headstock 3 side shown in FIG. The control code FAT and PROS indicate that the program is related to cross machining, and the control code PAT6 indicates that the program is related to Swiss machining on the first headstock 3 side shown in FIG. ○6 indicates a program related to Swiss machining on the second headstock 5 side.

また、表示装置29には、第9図に示す第1主軸台側画
面GW工と第10図に示す第2主軸台側画面GW2が適
宜切り換えることにより選択的に表示される形で設定さ
れており、第1主軸台側画面GW1には、GX、軸及び
G2□軸から成るG工、G2□表示座標系が、G工□軸
がX□軸と、G2□軸がZ□軸と対応するように予め設
定されており、第2主軸台側画面GW2には、GX2軸
及びGz2軸から成るG工2G22表示座標系が、0.
2軸がX2軸と。
In addition, the display device 29 is set to selectively display the first headstock side screen GW shown in FIG. 9 and the second headstock side screen GW2 shown in FIG. 10 by switching as appropriate. On the first headstock side screen GW1, the G machine and G2□ display coordinate system consisting of GX, axis, and G2□ axis corresponds to the G machine□ axis corresponds to the X□ axis, and the G2□ axis corresponds to the Z□ axis. On the second headstock side screen GW2, the G machining 2G22 display coordinate system consisting of 2 GX axes and 2 Gz axes is set in advance to be 0.
The 2nd axis is the X2 axis.

G2□軸が22軸と対応するように予め設定されている
The G2□ axis is set in advance to correspond to the 22nd axis.

そして、統括加工プログラムGPR中の加工プログラム
PR01のシミュレーションを行う際には、加工パター
ン判定部25は、制御コードPAT工を読み出し、当該
加工プログラムPRO□の加工パターンが第1主軸台3
側の独立加工であることを判定する。そして、シミュレ
ーション制御部23は、当該加工プログラムPRO1を
解析して、当該加工プログラムPR○、中の加工指令か
ら工具経路を算出する。この際、当該加工プログラムP
R○1の加工パターンとして判定された第1主軸台3側
の独立加工はX工2□軸制御に関するものであり、表示
装置29の第1主軸台側画面GW□にはG工□G2□表
示座標系が、G工、軸がX□軸と、Gz□軸が21軸と
対応するように予め設定されているので、加工プログラ
ムPRO工中の加工指令を座標変換せずに工具経路を算
出する。そして、表示装置29の第1主軸台側画面GW
工には、第9図に示すように、第1主軸台3に保持され
たワーク40と第1刃物台7上の工具10が表示される
と共に、独立加工のシミュレーションであることを示す
標fiMK工が表示され、表示装置29上でG工、G2
□表示座標系上にX1軸動作と21軸動作が工具経路と
して展開される形で、加工プログラムPR○1のシミュ
レーションが行われる。また。
Then, when simulating the machining program PR01 in the general machining program GPR, the machining pattern determination unit 25 reads the control code PAT machining, and the machining pattern of the machining program PRO□ is
It is determined that the side is independent machining. Then, the simulation control unit 23 analyzes the machining program PRO1 and calculates a tool path from the machining commands in the machining program PR○. At this time, the processing program P
The independent machining on the first headstock 3 side that was determined as the R○1 machining pattern is related to X machine 2□ axis control, and the first headstock side screen GW□ of the display device 29 shows G machine □G2□. Since the display coordinate system is set in advance so that G machining, the axis corresponds to the calculate. Then, the first headstock side screen GW of the display device 29
As shown in FIG. 9, the workpiece 40 held on the first headstock 3 and the tool 10 on the first tool rest 7 are displayed, and a sign fiMK indicating that the simulation is independent machining is displayed. G is displayed on the display device 29, and G and G2 are displayed on the display device 29.
□ The machining program PR○1 is simulated with the X1-axis motion and 21-axis motion developed as a tool path on the display coordinate system. Also.

同様に、加工プログラムPR○2のシミュレーションを
行う際には、加工パターン判定部25を介して、制御コ
ードFAT、に基づいて、当該加工プログラムPRO2
の加工パターンが第2主軸台5側の独立加工であること
が判定されると、第2主軸台5側の独立加工はX2Z、
軸制御に関するものであり、表示装置29の第2主軸台
側画面GW2にはGzzGz□表示座標系が、GX2軸
がX2軸と、G2□軸が22軸と対応するように予め設
定されているので、シミュレーション制御部2◇は、当
該加工プログラムPR○2を解析して、当該加工プログ
ラムPRO2中の加工指令を座標変換せずに工具経路を
算出する。そして、表示装置29の第2主軸台側画面G
W、には、第2主軸台5に保持されたワーク40と第2
刃物台9上の工具10が表示されると共に、独立加工の
シミュレーションであることを示す標識MK、が表示さ
れ、表示装置29上でG工2G2□表示座標系上にX2
軸動作とZ22軸動が工具経路として展開される形で、
加工プログラムPRO□のシミュレーションが行われる
Similarly, when simulating the machining program PR○2, the machining program PRO2 is
When it is determined that the machining pattern is independent machining on the second headstock 5 side, the independent machining on the second headstock 5 side is X2Z,
This is related to axis control, and the GzzGz□ display coordinate system is preset on the second headstock side screen GW2 of the display device 29 so that the GX2 axis corresponds to the X2 axis and the G2□ axis corresponds to the 22nd axis. Therefore, the simulation control unit 2◇ analyzes the machining program PR○2 and calculates the tool path without performing coordinate transformation on the machining commands in the machining program PRO2. Then, the second headstock side screen G of the display device 29
W, includes a workpiece 40 held on the second headstock 5 and a second
The tool 10 on the tool rest 9 is displayed, and a sign MK indicating that the simulation is an independent machining is displayed, and on the display device 29, G machining 2 G 2 □ X2 on the display coordinate system is displayed.
The axis movement and Z22 axis movement are developed as a tool path,
A simulation of the machining program PRO□ is performed.

また、統括加工プログラムGPR中の加工プログラムP
R03のシミュレーションを行う際には、加工パターン
判定部25は、制御コードPAT3を読み出し、当該加
工プログラムPR○、の加工パターンが第1主軸台3側
のクロス加工であることを判定する。そして、シミュレ
ーション制御部23は、当該加工プログラムPR○3を
解析して、当該前ニブログラムPR○、中の加工指令か
ら工具経路を算出するが、当該加工プログラムPR○3
の加工パターンとして判定された第1主軸台3側のクロ
ス加工はX2軸制御とZ1軸制御に関するものであり1
表示装置29の第1主軸台側画面GW工のG工□G2□
表示座標系とは対応していない。そこで、加工パターン
が第1主軸台3側のクロス加工と判定された場合は、工
具経路を算出するに際して、工具経路を適正に表示する
ために、G工、軸と対応していたX□軸をX2軸に入れ
替える形で、X2軸座標をそのままG工、軸座標に対応
させると共に、それに伴って、2□軸座標をシフトして
G2□軸座標に対応させるように、工具経路を算出する
。即ち、加工プログラムPR○、中の加工指令を特開昭
64−82−202に示すように、2工原点点とz2軸
原点間の距離、第2刃物台9の74軸移動距離等に基づ
いて座標変換する形で工具経路を算出する。そして、表
示装置i29の第1主軸台側画面GW、には、第11図
に示すように、第1刃物台7上の工具10の表示は消去
され、第1主軸台3に保持されたワーク40と第2刃物
台9上の工具10が表示されると共に、クロス加工のシ
ミュレーションであることを示す標識M K3が表示さ
れ1表示装置29上でG工、G20表示座標糸上にX2
軸動作とZ11軸動が工具経路として展開される形で、
加工プログラムPRO3のシミュレーションが行わ九る
。尚、この際1表示装置29の第2主軸台側画面GW、
には、第12図に示すように、第2主軸台9に保持され
たワーク40と第2刃物台9上の工具10がそのまま表
示される。また、同様に、加工プログラムPRO,のシ
ミュレーションを行う際には、加工パターン判定部25
を介して、制御コードFAT4に基づいて、当該加工プ
ログラムPRO,の加工パターンが第2主軸台5側のク
ロス加工であることが判定されると、第2主軸台5側の
クロス加工はX□軸制御と22軸制御に関するものであ
り、表示装置29の第2主軸台側画面GW2のG工2G
2□表示座標系とは対応していないので、シミュレーシ
ョン制御部23は、当該加工プログラムPR04を解析
して、工具経路を適正に表示するために、G工2軸と対
応していたX2軸をX□軸に入れ替える形で、X、軸座
標をそのままGX2軸座標に対応させると共に、それに
伴って、Z2軸座標をシフトしてG2□軸座標に対応さ
せるように、工具経路を算出する。
In addition, the machining program P in the general machining program GPR
When performing the simulation of R03, the machining pattern determination unit 25 reads the control code PAT3 and determines that the machining pattern of the machining program PR○ is cross machining on the first headstock 3 side. Then, the simulation control unit 23 analyzes the machining program PR○3 and calculates a tool path from the machining commands in the previous nib program PR○3.
The cross machining on the first headstock 3 side that was determined as the machining pattern is related to X2-axis control and Z1-axis control, and 1
First headstock side screen of display device 29 G machining □ G2 □ of GW machining
It does not correspond to the display coordinate system. Therefore, if the machining pattern is determined to be cross machining on the first headstock 3 side, when calculating the tool path, in order to properly display the tool path, The tool path is calculated so that the X2 axis coordinates correspond to the G machining and axis coordinates by replacing them with the X2 axis, and the 2□ axis coordinates are shifted accordingly to correspond to the G2□ axis coordinates. . That is, the machining commands in the machining program PR○, as shown in Japanese Patent Laid-Open No. 64-82-202, are based on the distance between the 2nd machining origin point and the z2 axis origin, the 74th axis movement distance of the second tool rest 9, etc. The tool path is calculated by coordinate transformation. Then, on the first headstock side screen GW of the display device i29, as shown in FIG. 40 and the tool 10 on the second turret 9 are displayed, and a sign MK3 indicating that it is a cross machining simulation is displayed.
The axis movement and Z11 axis movement are developed as a tool path,
A simulation of the machining program PRO3 is performed. At this time, the second headstock side screen GW of the first display device 29,
As shown in FIG. 12, the workpiece 40 held on the second headstock 9 and the tool 10 on the second tool rest 9 are displayed as they are. Similarly, when simulating the machining program PRO, the machining pattern determination unit 25
When it is determined based on the control code FAT4 that the machining pattern of the machining program PRO is cross machining on the second headstock 5 side, the cross machining on the second headstock 5 side is This is related to axis control and 22-axis control, and G-work 2G on the second headstock side screen GW2 of the display device 29.
2□ Since it does not correspond to the display coordinate system, the simulation control unit 23 analyzes the machining program PR04 and changes the The tool path is calculated so that the X and axis coordinates correspond to the GX2 axis coordinates as they are by replacing them with the X□ axis, and accordingly, the Z2 axis coordinates are shifted to correspond to the G2□ axis coordinates.

即ち、加工プログラムPRO4中の加工指令を特開昭6
4−82202に示すように、Z8軸原点とz22軸原
、間の距離、第1刃物台7の23軸移動距離等に基づい
て座標変換する形で工具経路を算出する。そして1表示
装置29の第2主軸台側画面GW、には、第14図に示
すように、第2刃物台9上の工具10の表示は消去され
、第2主軸台5に保持されたワーク40と第1刃物台7
上の工具10が表示されると共に、クロス加工のシミュ
レーションであることを示す!1tMK4が表示され、
表示装置29上でG工2G2□表示座標糸上にX□軸動
作と22軸動作が工具経路として展開される形で、加工
プログラムPRO4のシミュレーションが行われる。尚
、この際1表示装置29の第1主軸台側画面GW□には
、第13図に示すように、第1主軸台9に保持されたワ
ーク40と第1刃物台7上の工具10がそのまま表示さ
れる。従って。
That is, the machining command in the machining program PRO4 is
As shown in 4-82202, the tool path is calculated by performing coordinate transformation based on the distance between the Z8 axis origin and the Z22 axis origin, the 23 axis movement distance of the first tool rest 7, etc. Then, on the second headstock side screen GW of the first display device 29, as shown in FIG. 40 and the first turret 7
The tool 10 above is displayed, indicating that it is a cross machining simulation! 1tMK4 is displayed,
A simulation of the machining program PRO4 is performed on the display device 29, with the X□-axis motion and the 22-axis motion developed as a tool path on the G machining 2G2□ display coordinate thread. At this time, the first headstock side screen GW□ of the first display device 29 shows the workpiece 40 held on the first headstock 9 and the tool 10 on the first tool rest 7, as shown in FIG. It will be displayed as is. Therefore.

独立加工のみならずクロス加工に関しても加工プログラ
ムPRO,,PR04を表示装置29上でシミュレーシ
ョンすることが出来るので、加工開始位置のチェックな
どの為のテストカットが不要となって、加工段取りの時
間を短縮出来ると共に、シミュレーションによる工程の
チェックを行って効率的な加工を行うことが出来る。
Since machining programs PRO, PR04 can be simulated on the display device 29 not only for independent machining but also for cross machining, there is no need for test cuts to check the machining start position, reducing machining setup time. In addition to being able to shorten the time, it is also possible to check the process by simulation and perform efficient machining.

また、統括加工プログラムGPR中の加工プログラムP
RO,のシミュレーションを行う際には、加工パターン
判定部25を介して、制御コードFAT、に基づいて、
当該加工プログラムPR○5の加工パターンが第1主軸
台3側のスイス加工であることが判定されると、第1主
軸台3側のスイス加工はX1軸制御と第1.第2主軸台
3.5共通のZ′軸制御に関するものであり、表示装!
i29の第1主軸台側画面GW、のG工、G2□表示座
標系とは対応していないので、シミュレーション制御部
23は、当該加工プログラムPRO5を解析して、工具
経路を算出する際には、工具経路を適正に表示するため
に、G2□軸と対応していたZ□軸を2′軸に入れ替え
る形で、加工プログラムPRO,中の加工指令を2′軸
原点と21軸原点の距離等に基づいて座標変換する形で
工具経路を算出する。そして、表示装置29の第1主軸
台側画面GW、に算出された工具経路を表示する形で、
加工プログラムPR05のシミュレーションが行われる
。同様に、加工プログラムPRO,のシミュレーション
を行う際には、加工パターン判定部25を介して、制御
コードFAT、に基づいて、当該加工プログラムPRO
,の加工パターンが第2主軸台5側のスイス加工である
ことが判定されると、第2主軸台5側のスイス加工はX
2軸制御とZ′軸制御に関するもので9表示装置29の
第2主軸台側画面GW2のG Xi G Z□表示座標
系とは対応していないので、シミュレーション制御部2
3は、当該加工プログラムPRO,を解析して工具経路
を算出する際には、工具経路を適正に表示するために、
G2□軸と対応していたz2軸を2′軸に入れ替える形
で、加工プログラムPROG中の加工指令を2′軸原点
と22軸原点の距離等に基づいて座標変換する形で工具
経路を算出する。
In addition, the machining program P in the general machining program GPR
When simulating RO, the machining pattern determination unit 25 uses the control code FAT to
When it is determined that the machining pattern of the machining program PR○5 is Swiss machining on the first headstock 3 side, the Swiss machining on the first headstock 3 side is performed using X1-axis control and the first. This is related to the Z'-axis control common to the second headstock 3.5, and the display!
Since it does not correspond to the G machining and G2□ display coordinate systems of the first headstock side screen GW of i29, the simulation control unit 23 analyzes the machining program PRO5 and calculates the tool path. In order to properly display the tool path, the Z□ axis that corresponded to the G2□ axis was replaced with the 2' axis, and the machining command in the machining program PRO was changed to the distance between the 2' axis origin and the 21 axis origin. The tool path is calculated by coordinate transformation based on the following. Then, the calculated tool path is displayed on the first headstock side screen GW of the display device 29.
A simulation of machining program PR05 is performed. Similarly, when simulating the machining program PRO, the machining program PRO is
When it is determined that the machining pattern of , is Swiss machining on the second headstock 5 side, the Swiss machining on the second headstock 5 side is
Since it is related to two-axis control and Z'-axis control and does not correspond to the G Xi G Z□ display coordinate system of the second headstock side screen GW2 of the display device 29, the simulation control unit 2
3, when calculating the tool path by analyzing the machining program PRO, in order to properly display the tool path,
The tool path is calculated by replacing the z2 axis, which corresponds to the G2□ axis, with the 2' axis, and converting the machining commands in the machining program PROG into coordinates based on the distance between the 2' axis origin and the 22 axis origin, etc. do.

そして1表示装置29の第2主軸台側画面GW2に算出
された工具経路を表示する形で、加工プログラムPRO
,のシミュレーションが行われる。
Then, the machining program PRO is displayed in the form of displaying the calculated tool path on the second headstock side screen GW2 of the first display device 29.
, is simulated.

従って、スイス加工に関しても加工プログラムPR○6
、PRO,を表示装置29上でシミュレーションするこ
とが出来るので、加工開始位置のチェックなどの為のテ
ストカットが不要となって、加工段取りの時間を短縮出
来ると共に、シミュレーションによる工程のチェックを
行って効率的な加工を行うことが出来る。
Therefore, regarding Swiss processing, the processing program PR○6
, PRO, can be simulated on the display device 29, so there is no need for test cutting to check the machining start position, etc., which reduces machining setup time and allows the process to be checked by simulation. Efficient processing can be performed.

また、上述の実施例においては、第1主軸台3及び第2
主軸台5をそれぞれZ軸方向へ移動駆動自在に設けた場
合について述べたが1両主軸台3.5はワークの受渡に
際して相対的に接近離反することが出来れば良いので、
2つの主軸台3.5の内、一方を機体2に固定するよう
にしてもよい。この場合、少なくとも機体2に固定され
た方の主軸台に対応する刃物台を2軸方向へ移動駆動自
在にする。
In addition, in the above-described embodiment, the first headstock 3 and the second
We have described the case in which the headstocks 5 are each movable and driven in the Z-axis direction, but it is sufficient that the two headstocks 3.5 can be relatively moved toward and away from each other when transferring the workpiece.
One of the two headstocks 3.5 may be fixed to the machine body 2. In this case, at least the tool rest corresponding to the headstock fixed to the machine body 2 is made movable and driven in two axial directions.

尚、上述の実施例においては、クロス加工に際して、刃
物台7.9をZ、軸、z4軸移動させる場合について述
べたが、クロス加工は、第1主軸台3と第2刃物台9、
又は、第2主軸台5と第1刃物台7を、相対的に接近さ
せることが出来ればよいので、刃物台7.9はX1X2
軸方向へのみ移動自在に設け、主軸台3.5を71軸、
z2軸移動させるようにしてもよい。この場合にも、加
工プログラムを座標変換してシミュレーションすること
ができる。
In the above-mentioned embodiment, a case was described in which the tool rest 7.9 was moved in the Z, axis, and z4 axes during cross machining.
Alternatively, it is sufficient if the second headstock 5 and the first tool rest 7 can be made relatively close to each other, so the tool rest 7.9 is
It is movable only in the axial direction, and the headstock 3.5 has 71 axes,
It may also be moved in two z-axes. In this case as well, the machining program can be subjected to coordinate transformation and simulation.

(g)8発明の効果 以上、説明したように、本発明によれば、互いに対向し
た形で相対的に接近離反自在に設けられた第1主軸台3
及び第2主軸台5等の第1の主軸台及び第2の主軸台を
有し、それ等第1及び第2の主軸台に対応した形で第1
刃物台7及び第2刃物台9等の第1の刃物台及び第2の
刃物台を前記主軸台に対して相対的に移動駆動自在に設
けた複合加工工作機械1において、工具経路を所定の表
示座標系に基づいて表示する表示装置29等の表示手段
を設け、加工プログラムPR○を格納する加工プログラ
ムメモリ15等の加工プログラム格納手段を設け、前記
加工プログラムPROの加工パターンを示す制御コード
FAT等の加工パターン指令を格納する加工プログラム
PR○等の加工パターン指令格納手段を設け、前記加工
パターン指令格納手段に格納された加工パターン指令に
基づいて、前記加工プログラムPR○の加工パターンを
判定する加工パターン判定部25等の加工パターン判定
手段を設け、前記加工プログラムPROを解析して、前
記加工パターン判定手段により判定された当該加工プロ
グラムPROの加工パターンに基づいて、当該加工プロ
グラムPRO中の加工指令を前に表示座標系に座標変換
する形で、当該加工プログラムPR○の前記工具経路を
求め、第1の主軸台に保持されたワークの表示と第1の
刃物台の表示若しくは第2の刃物台の表示とを選択的に
組合せる形で、及び又は、第2の主軸台に保持されたワ
ークの表示と第2の刃物台の表示若しくは第1の刃物台
の表示とを選択的に組合せる形で、当該水ぬられた工具
経路を前に表示手段上に表示するシミュレーション制御
部23等の工具経路演算手段を設けて構成したので1種
々の加工パターンに関して加工プログラムPR○を表示
手段上でシミュレーションすることが出来る。従って1
種々の加工パターンに関して、加工に先立って、加工開
始位置のチェックなど加工プログラムPROのチェック
をシミュレーションにより行うことが出来るので、テス
トカットが不要となり加工段取り時間が短縮出来る。ま
た、種々の加工パターンに関して、シミュレーションに
よる工程のチェックを行うことにより効率的な加工を行
うことが出来る。
(g) 8 Effects of the Invention As explained above, according to the present invention, the first headstocks 3 are provided facing each other so as to be able to approach and separate from each other.
and a first headstock such as a second headstock 5, and a second headstock such as a second headstock 5.
In a multi-tasking machine tool 1 in which a first tool rest and a second tool rest such as a tool rest 7 and a second tool rest 9 are provided so as to be movable and driven relative to the headstock, the tool path is set in a predetermined direction. A display means such as a display device 29 for displaying based on a display coordinate system is provided, a machining program storage means such as a machining program memory 15 for storing a machining program PR○ is provided, and a control code FAT indicating a machining pattern of the machining program PRO is provided. A machining pattern command storage means for a machining program PR○ etc. is provided for storing machining pattern commands such as machining program PR○, and the machining pattern of the machining program PR○ is determined based on the machining pattern command stored in the machining pattern command storage means. A machining pattern determining unit such as a machining pattern determining unit 25 is provided to analyze the machining program PRO and determine the machining in the machining program PRO based on the machining pattern of the machining program PRO determined by the machining pattern determining unit. The tool path of the machining program PR○ is determined by coordinate transformation to the display coordinate system before the command, and the display of the workpiece held in the first head stock and the display of the first tool post or the second tool post are calculated. selectively combining the display of the tool post, and/or selectively combining the display of the workpiece held in the second headstock with the display of the second tool post or the display of the first tool post; In combination, the tool path calculation means such as the simulation control unit 23 which displays the wetted tool path on the display means is provided. It can be simulated above. Therefore 1
Regarding various machining patterns, before machining, it is possible to check the machining program PRO, such as checking the machining start position, by simulation, so test cuts are not required and machining setup time can be shortened. Moreover, efficient processing can be performed by checking the process by simulation regarding various processing patterns.

また1本発明は、互いに対向した形で相対的に接近離反
自在に設けられた第1主軸台3及び第2主軸台5等の第
1の主軸台及び第2の主軸台を有し、それ等第1及び第
2の主軸台に対応した形で第1刃物台7及び第2刃物台
9等の第1の刃物台及び第2の刃物台を前記主軸台に対
して相対的に移動駆動自在に設けた複合加工工作機械1
において、加工プログラムPRo中に制御コードFAT
等の加工パターン指令を格納しておき、加工に先立って
前記加工プログラムPROをチェックするに際して、当
該加工プログラムPROから前記加工パターン指令を読
み出し、該読み出された加工パターン指令に基づいて、
当該加工プログラムPR○の加工パターンを判定し、当
該加工プログラムPROを解析して、前記判定された当
該加工プログラムPR○の加工パターンに基づいて、当
該加工プログラムPRO中の加工指令を座標変換する形
で、当該加工プログラムPR○の工具経路を求め、第1
の主軸台に保持されたワークの表示と第1の刃物台の表
示若しくは第2の刃物台の表示とを選択的に組合せる形
で、及び又は、第2の主軸台に保持されたワークの表示
と第2の刃物台の表示若しくは第1の刃物台の表示とを
選択的に組合せる形で、前記求められた工具経路を表示
装置29等の表示手段に表示するようにして構成したの
で、種々の加工パターンに関して、加工開始位置のチェ
ックなど加工プログラムPROのチェックをシミュレー
ションにより行うことが出来るので、テストカットが不
要となり加工段取り時間が短縮出来ると共に1種々の加
工パターンに関して、シミュレーションによる工程のチ
ェックを行うことにより効率的な加工を行うことが出来
る。
In addition, the present invention has a first headstock and a second headstock such as a first headstock 3 and a second headstock 5, which are provided facing each other so as to be able to approach and separate from each other. etc. The first tool rest and the second tool rest, such as the first tool rest 7 and the second tool rest 9, are moved relative to the said head stock in a manner corresponding to the first and second head stock. Multi-tasking machine tool 1 that can be freely installed
, the control code FAT is entered in the machining program PRo.
etc. are stored, and when checking the machining program PRO prior to machining, the machining pattern command is read from the machining program PRO, and based on the read machining pattern command,
A form in which the machining pattern of the machining program PR○ is determined, the machining program PRO is analyzed, and the machining instructions in the machining program PRO are coordinate-transformed based on the determined machining pattern of the machining program PR○. Then, find the tool path for the machining program PR○, and
The display of the workpiece held on the headstock of the headstock and the display of the first toolrest or the display of the second toolpost are selectively combined, and/or the display of the workpiece held on the second headstock. The obtained tool path is displayed on display means such as the display device 29 by selectively combining the display and the display on the second tool post or the first tool post. With regard to various machining patterns, it is possible to check the machining program PRO, such as checking the machining start position, by simulation, so test cuts are not required and machining setup time can be shortened. By checking, efficient processing can be performed.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明による複合加工工作機械の1実施例を
示す平面図、 第2図は、第1図に示す複合加工工作機械の刃物台の移
動領域を示す図、 第3図は1本発明による複合加工工作機械の1実施例を
示す制御ブロック図、 第4図は、第1図に示す複合加工工作機械における独立
加工を示す平面図、 第5図は、第1図に示す複合加工工作機械における第1
主軸台側のクロス加工を示す平面図、第6図は、第1図
に示す複合加工工作機械における第2主軸台側のクロス
加工を示す平面図、第7図は、第1図に示す複合加工工
作機械におけるスイス加工を示す平面図、 第8図は、包括力Uニブログラムを示す模式図、第9図
は5第4図に示す独立加工のシミュレーションにおける
表示装置の第1主軸台側画面の表示形態を示す図、 第1o図は、第4図に示す独立加工のシミュレーション
における表示装置の第2主軸台側画面の表示形態を示す
図、 第11図は、第5図に示す第1主軸台側のクロス加工の
シミュレーションにおける表示装置の第1主軸台側画面
の表示形態を示す図、第12図は、第5図に示す第1主
軸台側のクロス加工のシミュレーションにおける表示装
置の第2主軸台側画面の表示形態を示す図、第13図は
、第6図に示す第2主軸台側のクロス加工のシミュレー
ションにおける表示装置の第1主軸台側画面の表示形態
を示す図、第14図は、第6図に示す第2主軸台側のク
ロス加工のシミュレーションにおける表示装置の第2主
軸台側画面の表示形態を示す図である。 1・・・・・・複合加工工作機械 3・・・・・第1の主軸台(第1主軸台)5・・・・第
2の主軸台(第2主軸台)7・・・・・第1の刃物台(
第1刃物台)9 ・・・第2の刃物台(第2刃物台)1
5・・・加工プログラム格納手段 (加工プログラムメモリ) 23・・・工具経路演算手段 (シミュレーション制御部) 25・・・・加工パターン判定手段 (加工パターン判定部) 29・・・・・表示手段(表示装置) FAT・・・・・加工パターン指令(制御コード)PR
○・・・・・・加工プログラム 加工パターン指令格納手段 出願人  ヤマザキマザック株式会社 代理人   弁理士   相1)伸二 (ばか1名) 第 図 第 図 第10 図 MK□ 第 図
FIG. 1 is a plan view showing one embodiment of a multi-tasking machine tool according to the present invention, FIG. 2 is a diagram showing a moving area of the tool rest of the multi-tasking machine tool shown in FIG. 1, and FIG. A control block diagram showing one embodiment of the multi-tasking machine tool according to the present invention, FIG. 4 is a plan view showing independent machining in the multi-tasking machine tool shown in FIG. 1, and FIG. First in processing machine tools
FIG. 6 is a plan view showing cross machining on the headstock side, FIG. 6 is a plan view showing cross machining on the second headstock side of the multitasking machine tool shown in FIG. Figure 8 is a plan view showing Swiss machining in a processing machine tool, Figure 8 is a schematic diagram showing the comprehensive force U nibogram, Figure 9 is a diagram showing the first headstock side screen of the display device in the independent machining simulation shown in Figure 4. Figure 1o is a diagram showing the display format of the second headstock side screen of the display device in the independent machining simulation shown in Figure 4. Figure 11 is the first spindle shown in Figure 5. FIG. 12 is a diagram showing the display form of the first headstock side screen of the display device in the simulation of cross machining on the table side. FIG. 13 is a diagram showing the display form of the headstock side screen, and FIG. The figure is a diagram showing the display form of the second headstock side screen of the display device in the simulation of cross machining on the second headstock side shown in FIG. 6. 1... Multi-tasking machine tool 3... First headstock (first headstock) 5... Second headstock (second headstock) 7... The first turret (
1st turret) 9...2nd turret (2nd turret) 1
5... Machining program storage means (machining program memory) 23... Tool path calculation means (simulation control section) 25... Machining pattern determining means (machining pattern determining section) 29... Display means ( Display device) FAT... Machining pattern command (control code) PR
○...Machining program Machining pattern command storage means Applicant Yamazaki Mazak Co., Ltd. Agent Patent attorney Phase 1) Shinji (1 idiot) Figure Figure Figure 10 Figure MK□ Figure

Claims (2)

【特許請求の範囲】[Claims] (1)、互いに対向した形で相対的に接近離反自在に設
けられた第1の主軸台及び第2の主軸台を有し、それ等
第1及び第2の主軸台に対応した形で第1の刃物台及び
第2の刃物台を前記主軸台に対して相対的に移動駆動自
在に設けた複合加工工作機械において、 工具経路を所定の表示座標系に基づいて表 示する表示手段を設け、 加工プログラムを格納する加工プログラム 格納手段を設け、 前記加工プログラムの加工パターンを示す 加工パターン指令を格納する加工パターン指令格納手段
を設け、 前記加工パターン指令格納手段に格納され た加工パターン指令に基づいて、前記加工プログラムの
加工パターンを判定する加工パターン判定手段を設け、 前記加工プログラムを解析して、前記加工 パターン判定手段により判定された当該加工プログラム
の加工パターンに基づいて、当該加工プログラム中の加
工指令を前記表示座標系に座標変換する形で、当該加工
プログラムの前記工具経路を求め、第1の主軸台に保持
されたワークの表示と第1の刃物台の表示若しくは第2
の刃物台の表示とを選択的に組合せる形で、及び又は、
第2の主軸台に保持されたワークの表示と第2の刃物台
の表示若しくは第1の刃物台の表示とを選択的に組合せ
る形で、当該求められた工具経路を前記表示手段上に表
示する工具経路演算手段を設けて構成した複合加工工作
機械。
(1) A first headstock and a second headstock are provided facing each other so as to be able to approach and separate from each other, and a second headstock is provided in a manner corresponding to the first and second headstocks. A multitasking machine tool in which a first turret and a second turret are movably driven relative to the headstock, further comprising: a display means for displaying a tool path based on a predetermined display coordinate system; A machining program storage means is provided for storing a machining program, a machining pattern command storage means is provided for storing a machining pattern command indicating a machining pattern of the machining program, and based on the machining pattern command stored in the machining pattern command storage means, , further comprising a machining pattern determining means for determining a machining pattern of the machining program, which analyzes the machining program and determines the machining pattern in the machining program based on the machining pattern of the machining program determined by the machining pattern determining means. The tool path of the machining program is obtained by converting the commands into the display coordinate system, and the display of the workpiece held in the first headstock and the display of the first tool post or the second tool post are determined.
in selective combination with the display on the tool rest, and/or
The determined tool path is displayed on the display means by selectively combining the display of the workpiece held on the second head stock and the display of the second tool post or the first tool post. A multi-tasking machine tool configured with a display tool path calculation means.
(2)、互いに対向した形で相対的に接近離反自在に設
けられた第1の主軸台及び第2の主軸台を有し、それ等
第1及び第2の主軸台に対応した形で第1の刃物台及び
第2の刃物台を前記主軸台に対して相対的に移動駆動自
在に設けた複合加工工作機械において、 加工プログラム中に加工パターン指令を格 納しておき、 加工に先立って前記加工プログラムをチェ ックするに際して、 当該加工プログラムから前記加工パターン 指令を読み出し、 該読み出された加工パターン指令に基づい て、当該加工プログラムの加工パターンを判定し、 当該加工プログラムを解析して、前記判定 された当該加工プログラムの加工パターンに基づいて、
当該加工プログラム中の加工指令を座標変換する形で、
当該加工プログラムの工具経路を求め、 第1の主軸台に保持されたワークの表示と 第1の刃物台の表示若しくは第2の刃物台の表示とを選
択的に組合せる形で、及び又は、第2の主軸台に保持さ
れたワークの表示と第2の刃物台の表示若しくは第1の
刃物台の表示とを選択的に組合せる形で、前記求められ
た工具経路を表示手段に表示するようにして構成した複
合加工工作機械の制御方法。
(2) A first headstock and a second headstock are provided facing each other so as to be able to approach and separate from each other, and a second headstock is provided in a shape corresponding to the first and second headstocks. In a multi-tasking machine tool in which a first turret and a second turret are movably driven relative to the headstock, a machining pattern command is stored in a machining program, and a machining pattern command is stored in the machining program prior to machining. When checking a machining program, read the machining pattern command from the machining program, determine the machining pattern of the machining program based on the read machining pattern command, and analyze the machining program to make the determination. Based on the machining pattern of the machining program,
In the form of coordinate transformation of the machining command in the machining program,
determining the tool path of the machining program, and selectively combining the display of the workpiece held in the first headstock and the display of the first tool post or the second tool post; and/or Displaying the determined tool path on the display means by selectively combining the display of the workpiece held on the second head stock and the display of the second tool post or the display of the first tool post. A control method for a multi-tasking machine tool constructed in this manner.
JP11921290A 1990-05-09 1990-05-09 Composite working machine tool and control method for the machine tool Pending JPH0415805A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11921290A JPH0415805A (en) 1990-05-09 1990-05-09 Composite working machine tool and control method for the machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11921290A JPH0415805A (en) 1990-05-09 1990-05-09 Composite working machine tool and control method for the machine tool

Publications (1)

Publication Number Publication Date
JPH0415805A true JPH0415805A (en) 1992-01-21

Family

ID=14755718

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11921290A Pending JPH0415805A (en) 1990-05-09 1990-05-09 Composite working machine tool and control method for the machine tool

Country Status (1)

Country Link
JP (1) JPH0415805A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0519837A (en) * 1991-07-10 1993-01-29 Fanuc Ltd Animation drawing system of nc device for multi-series lathe

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0519837A (en) * 1991-07-10 1993-01-29 Fanuc Ltd Animation drawing system of nc device for multi-series lathe

Similar Documents

Publication Publication Date Title
JP4580142B2 (en) Numerical control lathe, control device used in numerical control lathe, control method of numerical control lathe, and machining program description method of control device in numerical control lathe
JPH028855B2 (en)
JPS6257852A (en) Automatic programming device
US6741905B1 (en) Visual system for programming of simultaneous and synchronous machining operations on lathes
JPH01246045A (en) Setting control of machining coordinate system in machine tool
JP3199319B2 (en) Multi-axis / multi-path numerical control method
JPH06703A (en) Numerically controlled automatic lathe
JPS58175010A (en) Graphic display method of numerical controller for 4-axis lathe
JPH0415805A (en) Composite working machine tool and control method for the machine tool
JPS619705A (en) Numerically controlled machine tool
JPH1034461A (en) Composite working machine
JP3435229B2 (en) Machining method by NC lathe and NC lathe capable of backup machining
JPH08263114A (en) Control method of nc machine tool
JPH10143213A (en) Multi-surface working machine and multi-surface working method
JPH0419036A (en) Complex processing machine tool and control method therefor
JP2846320B2 (en) Interactive numerical controller
JPH0811321B2 (en) Numerical control compound lathe
JPS63114850A (en) Machining simulation system for numerical control program
JPH07185901A (en) Method for controlling superposed machining and its device numerical control
JPH08118203A (en) Control method of nc lathe and device thereof
JPH04237307A (en) Automatic transformation device for coordinate axis
JPS6324307A (en) Nc data checking method
JPH03270850A (en) Complex processing machine tool and its control method
JPH0262603A (en) Working control method and controller for double spindle machine tool
JPS62255046A (en) Nc programming method for four axis lathe