JPH02269541A - Working control method in five planes working machine - Google Patents

Working control method in five planes working machine

Info

Publication number
JPH02269541A
JPH02269541A JP9144889A JP9144889A JPH02269541A JP H02269541 A JPH02269541 A JP H02269541A JP 9144889 A JP9144889 A JP 9144889A JP 9144889 A JP9144889 A JP 9144889A JP H02269541 A JPH02269541 A JP H02269541A
Authority
JP
Japan
Prior art keywords
machining
tool
workpiece
plane
initial
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.)
Granted
Application number
JP9144889A
Other languages
Japanese (ja)
Other versions
JP2918902B2 (en
Inventor
Hirotsugu Sano
佐野 裕嗣
Koji Matsumoto
浩次 松本
Koichiro Kawai
川井 康一郎
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 JP1091448A priority Critical patent/JP2918902B2/en
Publication of JPH02269541A publication Critical patent/JPH02269541A/en
Application granted granted Critical
Publication of JP2918902B2 publication Critical patent/JP2918902B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To dispense with preparation of a troublesome plane movement program by instituting a moving route so as to connect in order the instituted initial planes corresponding to an instituted index plane and a working plane, and moving the blade edge of a tool along the route. CONSTITUTION:Initial planes ILP are respectively instituted with a space by a prescribed distance L on a plurality of working planes 16a - 16e of a work 16 to be worked with a five planes working machine, and an index plane IXP is instituted separating upward by a prescribed distance from the initial plane ILPu of the upper working plane 16a. When a tool mounting means performs plane moving, the instituted initial planes ILP corresponding to worked planes 16a - 16e completed directly before, the index plane IXP, and instituted initial planes ILP corresponding to working planes 16a - 16e to be worked herefrom, are connected in order so as to institute a moving route PAS, and the blade edge 39a of a tool 39 is moved along this. Thus, preparation of the troublesome plane movement program becomes unnecessary and the miss accompanied with preparation can be dissolved.

Description

【発明の詳細な説明】 (a)、産業上の利用分野 本発明は、オペレータが異なる加工面間の面移動プロク
ラムを作成する必要のない5面加工機における加工制御
方法に関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Field of Industrial Application The present invention relates to a machining control method for a five-sided machining machine that does not require an operator to create a surface movement program between different machining surfaces.

(b)、従来の技術 最近、5面加工機を用いてワークを加工するに当たって
、該加工のブロクラミング作業を行なう際に、加工面が
変わるたびにオペレータが座標軸を頭の中で切り替える
という煩雑な作業手間を省くために、例えば特開昭61
−286905に開示されているように、加工面毎に座
標軸を自動的に変換する方法か提案されている。
(b), Conventional technology Recently, when machining a workpiece using a five-sided machining machine, when performing blockramming work for the machining, the operator has to switch the coordinate axes in his head every time the machining surface changes. In order to save time and effort, for example,
286905, a method of automatically converting the coordinate axes for each machined surface has been proposed.

(C)8発明が解決しようとする間層点しかし、この提
案方法では、ワークの異なる加工面間において、ヘッド
の面移動を指示する面移動プログラムをISO或いはE
IA等のコートによりオペレータが作成しなければなら
ない。この面移動プログラムの作成作業も煩雑であり、
従って加工の段取りを十分に簡略化した方法とは言えな
い。
(C) 8 Interlayer points that the invention aims to solve However, in this proposed method, the surface movement program that instructs the surface movement of the head between different machining surfaces of the workpiece is
It must be created by the operator using a code such as IA. The work of creating this plane movement program is also complicated;
Therefore, this cannot be said to be a method that sufficiently simplifies the machining setup.

本発明は、上記事情に鑑み、ヘッドの面移動動作をも自
動化することにより、オペレータが異なる加工面間の面
移動プログラムを作成する必要のない5面加工機におけ
る加工制御方法を提供することを目的とする。
In view of the above circumstances, the present invention aims to provide a machining control method for a five-sided machining machine that eliminates the need for an operator to create a surface movement program between different machining surfaces by automating the surface movement operation of the head. purpose.

(d)1問題点を解決するための手段 即ち、本発明は、工具(39)に対して互いに直交する
水平2方向(矢印A、B方向、矢印C1D方向)に相対
的に移動自在に支持されたテープル(23)及び工具(
39)が着脱自在に装着される工具装着手段(29,3
5)を有し、前記テーブル(23)上に搭載されたワー
ク(16)の上面(16a)及び側面(16b、16c
、16d、16e)を加工し得る5面加工機(1)にお
いて、加工すべきワーク(16)の複数の加工面(16
a、16b、i6c、16d、16e)に該加工面(1
6a、16b、16c、16d、工6e)より所定距離
(L)離れた形でイニシャル面(ILP)をそれぞれ設
定し、前記ワーク(16)の上部加工面(16a)に対
応したイニシャル面(ILPu)から所定距離ワーク(
16)外方に離れた位置にインデックス面(IXP)を
設定し、前記工具装着手段(29,35)が面移動する
際に、直前に加]二を行なった加工面(16a、16b
、16c、16d、16e)に対応して設定された前記
イニシャル面(ILP)、前記設定されたインデックス
面(IXP)及びこれから加工すべき加工面(16a、
16b、16c、16d、16e)に対応して設定され
た前記イニシャル面(ILP)を順次結ぶ形で移動経路
(PAS)を設定し、該設定された移動経路(PAS)
に沿って工具(39)の刃先(39a)を移動させるよ
うに制御して構成される。
(d) Means for solving the first problem, that is, the present invention provides support for the tool (39) so as to be movable relative to each other in two horizontal directions (directions of arrows A, B, and direction of arrow C1D). The table (23) and the tool (
39) is removably attached to the tool attachment means (29, 3).
5), and has a top surface (16a) and side surfaces (16b, 16c) of the workpiece (16) mounted on the table (23).
, 16d, 16e), the five-sided processing machine (1) is capable of processing a plurality of processing surfaces (16) of a workpiece (16) to be processed.
a, 16b, i6c, 16d, 16e) on the processed surface (1
6a, 16b, 16c, 16d, machining 6e), and set the initial plane (ILP) at a predetermined distance (L) away from the workpiece (16). ) to the workpiece (
16) An index plane (IXP) is set at a position away from the outside, and when the tool mounting means (29, 35) moves, the machined plane (16a, 16b) that has been subjected to
, 16c, 16d, 16e), the set index plane (IXP), and the machining surface to be machined (16a,
16b, 16c, 16d, 16e), a moving route (PAS) is set by sequentially connecting the initial planes (ILP) set corresponding to
The cutting edge (39a) of the tool (39) is controlled and configured to move along.

また、本発明は、加工すべきワーク(16)の複数の加
工面(16a、16b、16c、16d、16e)に該
加工面(16a、16b、16C116d、16e)よ
り所定距離(L)離れた形でイニシャル面(ILP)を
それぞれ設定し、前記ワーク(16)の上部加工面(1
6a)に対応したイニシャル面(ILP、J)から所定
距離ワーク(16)外方に離れた位置にインデックス面
(I XP)を設定し、互いに異なる方向を向いた加工
面(16a、16b、16c、16d、16e)間の面
移動を行なう際に、直前に加工を行なった加工面(16
a、16b、16c、16d、16e)に対応して設定
された前記イニシャル面(ILP)、前記設定されたイ
ンデックス面(IXP)及びこれから加工すべき加工面
(16a、16b、16c、16d、16e)に対応し
て設定された前記イニシャル面(工LP)を順次結ふ形
で移動経路(I) A S )を設定し、該設定さ九た
移動経路(PAS)に沿って工具(39)の刃先(39
a)を移動させると共に、前記インデックス面(■xp
)−ヒて、前記工具装着手段(29,35)をこれから
加工すべき加工面(16a、16b、16c、16d、
16e)に前記工具(39)の刃先(39a)が対向す
るように前記ワーク(16)に対して相対的に旋回させ
るように制御して構成される。
Further, the present invention provides a plurality of machining surfaces (16a, 16b, 16c, 16d, 16e) of the workpiece (16) to be machined at a predetermined distance (L) from the machining surface (16a, 16b, 16C116d, 16e). The initial plane (ILP) is set respectively in the shape, and the upper machined surface (1
An index plane (I , 16d, 16e), the machined surface (16
a, 16b, 16c, 16d, 16e), the set index plane (IXP), and the machining surface to be machined (16a, 16b, 16c, 16d, 16e). ) A moving path (I) A S ) is set by sequentially connecting the initial surfaces (work LP) set corresponding to The cutting edge (39
a) and move the index surface (■xp
) - Then, the tool mounting means (29, 35) is attached to the processing surface (16a, 16b, 16c, 16d,
16e), the cutting edge (39a) of the tool (39) is controlled to rotate relative to the workpiece (16) so as to face the cutting edge (39a).

なお、括弧内の番号等は、図面における対応する要素を
示す便宜的なものであり、従って、本記述は図面上の記
載に限定拘束されるものではない。以下のr (e)、
作用」の欄についても同様である。
Note that the numbers in parentheses are for convenience to indicate corresponding elements in the drawings, and therefore, this description is not limited to the descriptions on the drawings. r(e) below,
The same applies to the column "Effect".

(e)8作用 上記した構成により、本発明は、加工面(16a、16
b、16c、コ、6d、16e)間の面移動の際に、工
具(39)の刃先(39a)が。
(e) 8 Effects With the above-described configuration, the present invention has a processing surface (16a, 16
b, 16c, c, 6d, 16e), the cutting edge (39a) of the tool (39).

フ インデックス面及びイニシャル面上を経由して移動制御
されるように作用する。
The movement is controlled via the index surface and the initial surface.

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

第1図は本発明による加工制御方法の一実施例が適用さ
れた5面加工機の一例を示す斜視図、第2図は第1図に
示す5面加工機のヘッド移送装置部分の拡大図。
FIG. 1 is a perspective view showing an example of a five-sided processing machine to which an embodiment of the processing control method according to the present invention is applied, and FIG. 2 is an enlarged view of the head transfer device portion of the five-sided processing machine shown in FIG. 1. .

第3図は第1図に示す5面加工機のアダプタヘッド部分
の拡大図。
FIG. 3 is an enlarged view of the adapter head portion of the five-sided processing machine shown in FIG. 1.

第4図は第3図に示すアダプタヘッドの■矢視図、 第5図は第1図に示す5面加工機の数値制御装置部分を
示す制御ブロック図、 第6図乃至第10図はアダプタヘッドの交換態様を示す
図。
Fig. 4 is a view of the adapter head shown in Fig. 3 in the direction of the ■ arrow, Fig. 5 is a control block diagram showing the numerical control device part of the five-sided machining machine shown in Fig. 1, and Figs. 6 to 10 are the adapter head. FIG. 7 is a diagram showing how the head is replaced.

第11図は5面加ニブログラムの一例を示す図、 第12図は第1図に示す5面加工機の機械座標系とワー
クの各加工面におけるプログラム冷源系との関係を示す
図。
FIG. 11 is a diagram showing an example of a 5-sided nib program, and FIG. 12 is a diagram showing the relationship between the mechanical coordinate system of the 5-sided machining machine shown in FIG. 1 and the programmed cooling source system for each machining surface of the workpiece.

第13図はフラグ表の一例を示す図、 第14図は二二ノ1〜処理プログラムの一例を示すフロ
ーチャート、 第15図は面移動サフルーチンの一例を示すフローチャ
ート、 第16図はイニシャル面及びインデックス面の一例を示
す立面図、 第17図はワークの270°面への面移動の際の工具の
刃先の経路の一例を示す斜視図、第18図はワークの上
面への面移動の際の工具の刃先の経路の一例を示す斜視
図、 第19図はワークの上面からO″′面への面移動の際の
工具の刃先の経路の一例を示す斜視図、第20図はワー
クのO°面から270°面への面移動の際の工具の刃先
の経路の一例を示す斜視図である。
Fig. 13 is a diagram showing an example of a flag table, Fig. 14 is a flowchart showing an example of a processing program from 22-1, Fig. 15 is a flowchart showing an example of a plane movement subroutine, and Fig. 16 is an initial plane and index. Fig. 17 is a perspective view showing an example of the path of the cutting edge of the tool when moving the surface to the 270° plane of the workpiece, and Fig. 18 is a perspective view showing an example of the path of the cutting edge of the tool when moving the surface to the upper surface of the workpiece. Fig. 19 is a perspective view showing an example of the path of the cutting edge of the tool when moving from the upper surface of the workpiece to the O'' plane, and Fig. 20 is a perspective view showing an example of the path of the cutting edge of the tool when moving from the upper surface of the workpiece to the FIG. 6 is a perspective view showing an example of the path of the cutting edge of the tool when the plane moves from the O° plane to the 270° plane.

本発明による加工制御方法か適用された5面加工機上は
、第1図に示すように、機体21を有しており、機体2
1にはテーブル23が矢印A、B方向、即ちX軸方向に
移動駆動自在に設けられている。テーブル23上には、
ワークパレット25が着脱自在に支持されており、更に
テーブル23の両側にはパレットチェンジャ26.26
がワークパレット25をテーブル23との間で移動自在
なる形に設けられている。また、機体21には門形に形
成されたコラム27が該機体21に跨る形で設けられて
おり、コラム27にはサドル22がY軸方向である矢印
C,D方向に移動駆動自在に支持されている。サドル2
2にはヘッド29がZ軸方向である矢印E、F方向に移
動駆動自在に支持されており、ヘッド29にはワーク主
軸30が回転駆動自在に支持されている。
The five-sided machining machine to which the machining control method according to the present invention is applied has a body 21 as shown in FIG.
1 is provided with a table 23 that can be freely moved and driven in the directions of arrows A and B, that is, in the X-axis direction. On table 23,
A work pallet 25 is removably supported, and pallet changers 26 and 26 are mounted on both sides of the table 23.
is provided in such a manner that the work pallet 25 can be freely moved between it and the table 23. Further, a column 27 formed in a gate shape is provided on the fuselage 21 so as to straddle the fuselage 21, and a saddle 22 is supported on the column 27 so as to be movable and driven in the directions of arrows C and D, which are the Y-axis directions. has been done. saddle 2
A head 29 is supported on the head 29 so as to be movable and driven in directions of arrows E and F, which are the Z-axis directions, and a workpiece main shaft 30 is supported on the head 29 so as to be rotatably driven.

一方、機体21の第1図左方には、ヘッド収納マガジン
31が設けられており、ヘット収納マガジン31は、第
2図に示すように、架台31aを有している。架台31
a上には複数の支持台3lbか設けられており、各支持
台3 l bにはヘッドキャリア32が矢印C,D方向
に移動自在に搭載されており、ヘッドキャリア32には
アダプタヘッド35が図中上下方向、即ち矢印E、F方
向に挿抜自在に支持されている。アダプタパノ1−35
は、第3図及び第4図に示すように、本体35aを有し
ており、本体35aの第3図上面には主軸接続部35b
がヘン1−29に対して着脱自在に設けられている。ま
た、本体35aの第3図下面には工具把持部35dが、
ワーク16の上面加工用の工具39を矢印F方向に向け
て装着し得る形で設けられており、本体35aの側面に
は工具把持部35aが、ワーク16の側面加工用の工具
39をZ軸と垂直に把持した形で、該本体35aの矢印
M、N方向の旋回動作により工具39の刃先39aを任
意の水平方向に向は得る形で設けられている。
On the other hand, a head storage magazine 31 is provided on the left side of the machine body 21 in FIG. 1, and the head storage magazine 31 has a pedestal 31a, as shown in FIG. Frame 31
A plurality of support stands 3lb are provided on top a, and a head carrier 32 is mounted on each support stand 3lb so as to be movable in the directions of arrows C and D, and an adapter head 35 is mounted on the head carrier 32. It is supported so that it can be inserted and removed in the vertical direction in the figure, that is, in the directions of arrows E and F. adapter pano 1-35
As shown in FIGS. 3 and 4, the main body 35a has a main shaft connecting portion 35b on the upper surface of the main body 35a in FIG.
is removably attached to the hem 1-29. Further, a tool gripping portion 35d is provided on the bottom surface of the main body 35a in FIG.
The tool 39 for machining the upper surface of the workpiece 16 is provided in such a manner that it can be mounted facing in the direction of the arrow F, and a tool gripping portion 35a is provided on the side surface of the main body 35a to hold the tool 39 for machining the side surface of the workpiece 16 in the Z-axis direction. The cutting edge 39a of the tool 39 can be oriented in any horizontal direction by rotating the main body 35a in the directions of arrows M and N while being held vertically.

また、ヘット収納マカジン31とテーブル23との間に
は、第2図に示すように、ヘッド移送装置33が設けら
れており、ヘッド移送装置33は矢印A、B方向に設置
されたガイトレール33a、33aを有している。ガイ
1〜レール33a、33aにはキャリア33bが矢印A
、B方向に移動自在に設けられており、キャリア33b
には矢印A、B方向に設置された送りネジ33cが螺合
している。送りネジ33cの一端には駆動モータ33d
が接続しており、駆動モータ33dを正逆方向に回転さ
せることにより、キャリア33bは送りネジ33cを介
して矢印A、B方向に移動駆動される。また、キャリア
33bの上面には、2個のヘット搭載部33e、33f
が矢印A、B方向に並列に設けられており、各ヘッド搭
載部33e、33fは支持台33gを有している。ヘッ
ド搭載部33e、33fには、移載装置33hが設けら
れており、移載装置33hはヘッド搭載部33e、33
fとヘット収納マガジン31との間でヘッドキャリア3
2に搭載されたアダプタヘッド35を自由に遺り取りす
ることが出来る。
Further, between the head storage machine 31 and the table 23, as shown in FIG. 2, a head transfer device 33 is provided. 33a. Guy 1~Rail 33a, 33a has carrier 33b as arrow A
, is provided movably in the direction B, and the carrier 33b
A feed screw 33c installed in the directions of arrows A and B is screwed together. A drive motor 33d is attached to one end of the feed screw 33c.
are connected, and by rotating the drive motor 33d in forward and reverse directions, the carrier 33b is driven to move in the directions of arrows A and B via the feed screw 33c. Furthermore, two head mounting portions 33e and 33f are provided on the upper surface of the carrier 33b.
are provided in parallel in the directions of arrows A and B, and each head mounting section 33e, 33f has a support stand 33g. A transfer device 33h is provided in the head mounting portions 33e and 33f, and the transfer device 33h is provided in the head mounting portions 33e and 33f.
The head carrier 3 is inserted between f and the head storage magazine 31.
The adapter head 35 mounted on 2 can be freely left behind.

なお、コラム27の第1図後方には、公知の工具交換装
置36及び工具マガジン37が設けられている。
A known tool changer 36 and a tool magazine 37 are provided behind the column 27 in FIG.

また、5面加工機1は、第5図に示すように、主制御部
2を有しており、主制御部2にはハス線3を介してキー
ボード等の人力部5、デイスプレィ6、システムプロク
ラムメモリ7、加ニブログラムメモリ9.プログラム解
析部1o、テータメモリ17、テーブル制御部上1、サ
ドル制御部12、ヘット制御部13、イニシャル面設定
部19、フラク表メモリ20、ヘッド補正量演算部4o
、工具経路演算部41及び座標変換部42等が接続して
いる。テーブル制御部11は駆動モータエ4を介して前
記テーブル23に、該テーブル23をX軸方向に移動f
iIg動自在な形で接続しており、サドル制御部12は
駆動モータ15を介して前記サドル22に、該サドル2
2をY軸方向に移動駆動自在な形で接続している。更に
、ヘット制御部」。
Further, the five-sided processing machine 1 has a main control section 2, as shown in FIG. 5, and a human power section 5 such as a keyboard, a display 6, a system Program memory 7, Canadian program memory 9. Program analysis section 1o, data memory 17, table control section upper 1, saddle control section 12, head control section 13, initial plane setting section 19, flak table memory 20, head correction amount calculation section 4o
, a tool path calculation section 41, a coordinate transformation section 42, and the like are connected. The table control unit 11 moves the table 23 in the X-axis direction via the drive motor 4.
iIg is connected in a freely movable manner, and the saddle control section 12 connects the saddle 22 to the saddle 22 via the drive motor 15.
2 are connected in such a way that they can be freely moved and driven in the Y-axis direction. Furthermore, the head control section.

3は駆動モータ18を介して前記ヘット29に、該ヘッ
ド29をZ軸方向に移動駆動自在な形で接続している。
3 is connected to the head 29 via a drive motor 18 so that the head 29 can be freely moved and driven in the Z-axis direction.

5面加工機1は、以上のような構成を有するので、第1
2図に示すように、6面体のワーク16の底面16fを
除く5面(上面16a及び4つの側面16b、16c、
16d、16e)に対してそれぞれ所定の加工を行なう
、所謂5面加工に際して作業者は、ワーク16の加]二
面及び各加工面での加工形状等を入力部5を介して加工
データDATとして入力し、該入力された加工データD
A Tは加ニブログラムメモリ9に5面加エブロクラム
FPRとして格納される。
Since the five-sided processing machine 1 has the above configuration, the first
As shown in FIG. 2, five sides of the hexahedral workpiece 16 excluding the bottom surface 16f (top surface 16a and four side surfaces 16b, 16c,
16d, 16e), in so-called 5-face machining, the operator inputs the machining shape, etc. on the two faces and each machining face of the workpiece 16 as machining data DAT via the input unit 5. Input the input processing data D
AT is stored in the computer program memory 9 as a five-sided program program FPR.

この5回加ニブログラムFPRは、ワーク16の単一面
(上面16a又は側面16b、16c、16d、16e
)に対する種々の加工を実行する単一面加工プログラム
OPRを統括するプログラムであり、例えば第11図に
示すように、ユニット指定プロセスUDP及び加工プロ
セスPROから構成されている。ユニット指定プロセス
UDPは、5面加工に使用するアダプタヘッド35及び
該アダプタヘッド35の旋回位置を指定するものであり
、また加工プロセスPR○は、シーケンス番号SN○が
それぞれ付された1個以上の加ニステップPR(PR0
、PR2、PR3等)から構成されており、各加ニステ
ンプPRには加工if+i、 、’4’−−面加工プロ
グラムOPR及びプログラム座標系を指定するデータか
それぞれ格納されている。
This five-time nib program FPR is based on a single surface of the workpiece 16 (top surface 16a or side surfaces 16b, 16c, 16d, 16e).
This is a program that supervises the single-face machining program OPR that executes various machining operations on ).For example, as shown in FIG. 11, it is composed of a unit designation process UDP and a machining process PRO. The unit specification process UDP specifies the adapter head 35 used for five-sided machining and the rotation position of the adapter head 35, and the machining process PR○ specifies one or more units each having a sequence number SN○. Kani Step PR (PR0
.

即ち、第11図における5面加工ブロクラムF PRの
ユニット指定プロセスUDPにおいて、「ユニット」の
桁に格納された指令は、ワーク16に対してどのような
加工を行なうのかを指示する加」二指示指令PKであり
、当該加工指示指令PKが「5面加工」である場合には
、第12図に示すように、6面体のワーク16の底面1
6fを除く5面、即ち上面16a及び4つの側面16b
、16c、16d、」−68に対してそれぞれ所定の加
工を行なう5面加工を指示するものである。また、同ユ
ニット指定プロセスUDPにおいて、「ヘッドNO8」
の桁に格納された数字は、5面加工に際してどのアダプ
タヘット35を使用するかを定義するヘット番号HN 
Oであり、 「インデックス点−Z」の桁に格納された
数字は、第16図に示すように、5面加工に使用するア
ダプタヘッド35の旋回高さを表わすインデックス面I
XPの機械座標系におけるZ座標Z工(即ち、5面加工
機1の所定の機械原点MOからのZ軸方向の位置)を指
定するものである。
That is, in the unit specification process UDP of the five-sided machining block FPR in FIG. command PK, and if the machining instruction command PK is "5-sided machining", as shown in FIG.
5 sides except 6f, i.e. top surface 16a and four side surfaces 16b
, 16c, 16d,''-68, respectively. In addition, in the unit specification process UDP, "Head No. 8"
The number stored in the digit is the head number HN that defines which adapter head 35 is used for five-sided machining.
O, and the number stored in the "index point - Z" digit is the index plane I representing the turning height of the adapter head 35 used for five-sided machining, as shown in FIG.
This designates the Z-coordinate Z-work in the XP machine coordinate system (that is, the position in the Z-axis direction from a predetermined machine origin MO of the five-face processing machine 1).

また、第11図における5回加ニブログラムFPRの加
工プロセスPR○において、r S N o 。
Further, in the processing process PR○ of the 5-times nib program FPR in FIG. 11, r S N o .

」の桁に格納された数字は、各加ニステップPRの実行
順序を定義するシーケンス番号SNOであり、該シーケ
ンス番号SN○の小さい加ニステップPRから順次実行
される。また、同加工プロセスPROにおいて、「加工
面」の桁に格納された指令は、ワーク16の底面16f
を除く5面の内、どの面を加工するかを定義する加工面
定義指令PFであり、当該加工面定義指令PFが「土面
」の場合には、第12図に示すように、ワーク16の上
面16aが加工面となり、当該加工面定義指令PFが角
度、即ちro’ J 、r90°J、r180°」、r
270’ Jの場合には、+Y軸方向から見たワーク1
6の側面を0°面16bとし、該○°面16bを基準に
C軸の正方向である矢印N方向に90’、180°、2
70°回転した方向から見た側面をそれぞれ90°面1
6c、180°面16d、270°面16eと定義する
。なお、ワーク16の各加工面(上面16a及び側面1
6b、16c、16d、16e)において、第12図に
示すように、5面加工機1の機械座標系(XY、Z)と
対応したプログラム座標系(X+、Y+Z)をそれぞれ
設定する。即ち、ワーク16の土面16aにおいては、
5面加工機]の機械座標系と各軸の方向が完全に一致し
たブロクラム座標系を定義する。また、ワーク」、6の
側面16b、16c、16d及び16eにおいては、当
該側面16b、16c、16d及び16eに垂直でワー
ク16の外部に向かう方向をプログラム座標系における
y軸の正方向(+y軸)と定義し、機械座標系における
y軸の正方向と平行な方向をプログラム座標系における
y軸の正方向(+y軸)と定義し、更にプログラム座標
系の+y軸から+2軸に右ねじの頭を回転させたときに
該右ねじの進む方向をプログラム座標系にお心ブるX軸
の正方向(十X軸)と定義する。例えば、ワーク16の
○°面16bにおいては、該0°面16bに想定される
プログラム座標系における+y軸、+y軸及び+y軸は
、それぞれ機械座標系における一X軸、+y軸及び+y
軸に一致する。
The number stored in the ``digit'' is a sequence number SNO that defines the execution order of each Kni-step PR, and the Kni-step PRs with the lowest sequence number SN○ are sequentially executed. In addition, in the same machining process PRO, the command stored in the "machining surface" digit is the bottom surface 16f of the workpiece 16.
This is a machining surface definition command PF that defines which surface is to be machined among the five surfaces excluding The upper surface 16a of the is the machining surface, and the machining surface definition command PF is the angle, i.e., ro' J , r90°J, r180°'', r
In the case of 270' J, workpiece 1 viewed from the +Y-axis direction
The side surface of 6 is the 0° surface 16b, and the angles are 90', 180°, 2 in the direction of the arrow N, which is the positive direction of the C axis, with the
The sides viewed from the direction rotated by 70° are each 90° plane 1.
6c, 180° surface 16d, and 270° surface 16e. Note that each processed surface of the workpiece 16 (top surface 16a and side surface 1
6b, 16c, 16d, 16e), as shown in FIG. 12, program coordinate systems (X+, Y+Z) corresponding to the machine coordinate system (XY, Z) of the five-sided processing machine 1 are set, respectively. That is, on the soil surface 16a of the workpiece 16,
Define a block diagram coordinate system in which the directions of each axis completely match the machine coordinate system of the 5-sided machining machine. In addition, for the side surfaces 16b, 16c, 16d, and 16e of the workpiece 6, the direction perpendicular to the side surfaces 16b, 16c, 16d, and 16e toward the outside of the workpiece 16 is the positive direction of the y-axis (+y-axis ), and the direction parallel to the positive direction of the y-axis in the machine coordinate system is defined as the positive direction of the y-axis (+y-axis) in the program coordinate system. The direction in which the right-handed screw moves when the head is rotated is defined as the positive direction of the X-axis (10X-axis) centered on the program coordinate system. For example, in the ○° plane 16b of the workpiece 16, the +y axis, +y axis, and +y axis in the program coordinate system assumed for the 0° plane 16b are the 1X axis, +y axis, and +y axis in the machine coordinate system, respectively.
coincides with the axis.

また、第11図における5回加エプロクラムFPRの加
工プロセスPROにおいて、「ワークNo、Jの桁に格
納された数字は5当該加ニステツプPRにおける加工面
での加工形状に対応して、との単一面加工ブロクラム○
P Rを実行するかと定義する加ニブログラム番号PN
Oであり、当該加ニブログラム番号PN○に対応した単
一面加工プログラムOPRは、加ニブログラムメモリ9
に格納されている。また、同加工プロセスPROにおい
て、rEFR−No、Jの桁に格納された数字は、ワー
ク16の各加工面において、前記プログラム座標系の原
点を当該加工面のどの位置に設定するかを定義する基本
座標番号FN○であり、該基本座標番号FN○に対応し
た基本座標FRMは、データメモリ17に格納さ九てい
る。データメモリ17に格納されていない基本座標FR
Mを設定する場合には、りくの「F″RM −X J、
rFRM−YJ、rFRM−OJ及びrFRM−ZJ 
(7)桁において、第12図に示す加工面のワーク原点
W○、即ち単一面加工に際して基亭となる点の各座標W
X、WY、WZ及び座標設定角度αを指定することによ
り、当該加工面における基本座標FRMを設定すること
もIJ能である。ここて、[1SRM−XJ、rFRM
−YJ及びrFRM−ZJの桁に格納されたワーク原点
WOの機械座標系における各座標wx、wy及びWzは
、第12図に示す5面加工機1の所定の機械原点MOか
らの各軸(y軸、y軸及びZ軸)方向のワーク原点WO
の位置を表わすものであり、rFRM−(IJの桁に格
納された数字は、プログラム座標系か該プログラム座標
系のy軸の回りに機械座標系からどれだけ回転している
かを表わす座標設定角度αである。従って、加工プロセ
スP R○の各加ニステップPRにおいては、当該加ニ
ステップP Rの加工]9 面におけるプログラム座標系が、rEFR−No。
In addition, in the machining process PRO of the 5-time machining step PR in FIG. 11, the number stored in the digit of work No. One-sided processing brocrum○
P Canadian program number PN that defines whether to execute R.
O, and the single surface machining program OPR corresponding to the machine program number PN○ is stored in the machine program memory 9.
is stored in. In addition, in the same machining process PRO, the numbers stored in the rEFR-No and J digits define at which position on each machining surface of the workpiece 16 the origin of the program coordinate system is set. The basic coordinate number is FN○, and the basic coordinate FRM corresponding to the basic coordinate number FN○ is stored in the data memory 17. Basic coordinates FR not stored in data memory 17
When setting M, use Riku's "F"RM -X J,
rFRM-YJ, rFRM-OJ and rFRM-ZJ
(7) In the girder, the workpiece origin W○ of the machining surface shown in Fig. 12, that is, each coordinate W of the point that becomes the base point during single-surface machining.
It is also possible to set the basic coordinates FRM on the processing surface by specifying X, WY, WZ and coordinate setting angle α. Here, [1SRM-XJ, rFRM
The coordinates wx, wy, and Wz in the machine coordinate system of the workpiece origin WO stored in the -YJ and rFRM-ZJ digits are the coordinates wx, wy, and Wz of the workpiece origin WO stored in the digits of Workpiece origin WO in the y-axis, y-axis and Z-axis) directions
rFRM-(The number stored in the IJ digit is the coordinate setting angle that indicates how much the machine coordinate system is rotated around the program coordinate system or the y-axis of the program coordinate system. Therefore, in each two-step PR of the machining process P R○, the program coordinate system in the machining plane of the two-step PR is rEFR-No.

」の桁に格納された基本座標番号FN○とrFRM−X
J、rFRM−YJ、rFRM−θ」及びrFRM−Z
Jの桁に格納されたワーク原点W○の各座標wx、wy
、wz及び座標設定角度αの内、どちらか一方のみによ
り設定されることになる。
” Basic coordinate numbers FN○ and rFRM-X stored in the digits
J, rFRM-YJ, rFRM-θ” and rFRM-Z
Each coordinate wx, wy of the workpiece origin W○ stored in the J digit
, wz and the coordinate setting angle α.

こうして、5回加ニブログラムFPRが加ニブログラム
メモリ9に格納されたところで、パレットチェンジャ2
Gにより加工すべきワーク1Gの搭載されたワークパレ
ット25をテーブル23上に載置し、その状態で作業者
は、入力部5を介して加工開始指令を主制御部2に対し
て出力する。
In this way, when the five-time Niprogram program FPR is stored in the Niprogram program memory 9, the palette changer 2
The work pallet 25 on which the workpiece 1G to be machined is mounted is placed on the table 23, and in this state, the operator outputs a machining start command to the main control unit 2 via the input unit 5.

すると、主制御部2はプログラム解析部10に対して5
回加ニブログラムFPRの解析を指令する。
Then, the main control unit 2 sends 5 messages to the program analysis unit 10.
Commands analysis of the recursive program FPR.

これを受けてプログラム解析部10は、5面加ニブログ
ラムFPR中の「ユニット」の桁に加工指示指令PKと
して格納された「5面加工」を参照して、これから行な
う加工がワーク16の5面加工であると認識し、該5面
加工に対応したユニツー20= ト処理プログラムUPPをシステt1ブロタラムメモリ
7から読み出して、該二ニット処理プログラムUPPに
基づいて、5回加ニブログラムF P Rの解析動作及
びそれに続く加工動作を実行する。
In response to this, the program analysis unit 10 refers to the "5-face machining" stored as the machining instruction command PK in the "unit" digit of the 5-face machining program FPR, and determines that the machining to be performed from now on will be performed on the 5 faces of the workpiece 16. It recognizes that it is processing, reads out the processing program UPP corresponding to the five-sided processing from the system t1 block processing program UPP, and executes the five-time processing program F P R based on the two-knit processing program UPP. Perform analysis operations and subsequent processing operations.

即ち、第14図に示す二二ノ1〜処理プログラムUPP
のステップS1て、加ニブログラムメモリ9に格納され
た5回加ニブログラムF P Rを読み出し、該読み出
された5面別エプロクラムFPRに格納された各加工デ
ータDATを読み込む。
That is, the processing program UPP shown in FIG.
In step S1, the 5-times Niprogram program FPR stored in the Cannibal program memory 9 is read out, and each processed data DAT stored in the read five-sided Niprogram program FPR is read.

次いで、該読み込まれた加工データDATの内、全顎ニ
ステップPRにおけるrsNo、Jの桁に格納されたシ
ーケンス番号SNO及び「加工面」の桁に格納された加
工面定義指令PFに基づいて、5面加工におけるアダプ
タヘッド35の面移動の指標となるフラグ表FTを作成
し、該作成されたフラグ表FTをフラグ表メモリ20に
格納する。
Next, based on the read machining data DAT, the rsNo in the full-jaw two-step PR, the sequence number SNO stored in the J digit, and the machining surface definition command PF stored in the "machining surface" digit, A flag table FT is created that serves as an index for surface movement of the adapter head 35 in five-face machining, and the created flag table FT is stored in the flag table memory 20.

このフラグ表FTは、例えば第13図に示すように、5
回加ニブログラムFPRの加工プロセスPROに格納さ
れた加ニステップ数と同数のフラグステップFS (F
Sl、FS2、FS3等)から構成されており、各フラ
グステップFSには面移動の実行順序を意味する面移動
番号TN○及び該面移動番号TNOに対応したフラグF
LGが、それぞれrTNo、J及び「F」の桁に格納さ
れている。即ち、rTNo、Jの桁に格納された面移動
番号T N Oが「1」である第1フラグステツプFS
1は、第11図に示す5面別エプロクラムFPRの加工
プロセスPROにおける第1加ニステツプPR□に対応
するものであり、該第1フラグステップFS、における
「F」の桁に格納されたフラグFLGは、前記第1加ニ
ステツプPR□における「加工面」の桁に格納された加
工面定義指令PFに基づいて立てられたものであり、第
1加ニステツプPR1を実行する際の面移動座標を示す
ものである(その詳細については後述)。また、rTN
o、Jの桁に格納された面移動番号TN○が「2」であ
る第2フラグステツプFS2は、第11図に示す5回加
ニブログラムFPRの加工プロセスPR○における第1
及び第2加ニステツプPRよ、PR2に対応するもので
あり、該第2フラグステップFS2における「F」の桁
に格納されたフラグFLGは、前記第1及び第2加ニス
テツプPR1、PR2における[加工面」の桁に格納さ
れた加工面定義指令PF、PFに基づいて立てられたも
のであり、第2加ニステツプPR2を実行する際の面移
動座標を示すものである。更に、rTNo、Jの桁に格
納された面移動番号TN○が「3」、「4」等である第
3及び第4フラノステップFS3.FS、等は、前述の
第2フラグステツプFS2と同様の構成である。即ち、
rTNo。
This flag table FT has, for example, 5 flags as shown in FIG.
The flag step FS (F
Sl, FS2, FS3, etc.), and each flag step FS includes a surface movement number TN○ indicating the execution order of surface movement and a flag F corresponding to the surface movement number TNO.
LG is stored in rTNo, J and "F" digits, respectively. That is, rTNo, the first flag step FS where the surface movement number TNO stored in the J digit is "1"
1 corresponds to the first press step PR□ in the machining process PRO of the five-sided apron frame FPR shown in FIG. 11, and the flag FLG stored in the "F" digit in the first flag step FS. is set based on the machining surface definition command PF stored in the "machining surface" digit in the first machining step PR□, and indicates the surface movement coordinate when executing the first machining step PR1. (more on that later). Also, rTN
The second flag step FS2 in which the surface movement number TN○ stored in the o and J digits is "2" is the first flag step FS2 in the machining process PR○ of the 5-time Niprogram FPR shown in FIG.
The flag FLG stored in the "F" digit in the second flag step FS2 corresponds to the [processing] step in the first and second processing steps PR1 and PR2. It is set based on the machining surface definition commands PF and PF stored in the "plane" digit, and indicates the surface movement coordinates when executing the second machining step PR2. Furthermore, rTNo, the third and fourth flannel steps FS3. in which the surface movement number TN○ stored in the J digit are "3", "4", etc. FS, etc. have the same configuration as the second flag step FS2 described above. That is,
rT No.

」の桁に格納された面移動番号TN○かrnJ(ここで
、nは2以上の整数)である第1フラグステツプFS□
は、第1土図に示す5回加ニブログラムFPRの加工プ
ロセスPROにおける第n−1及び第n加ニステップP
R,,,,PR,に対応するものであり、該第1フラグ
ステツプFS、、における「F」の桁に格納されたフラ
グFLGは、前記第n−1及び第1加ニステツプPR,
−,、PRoにおける「加工面」の桁に格納された加工
面定義指令PF、PFに基づいて立てられたものであり
、第1加ニステツプPR,を実行する際の面移動座標を
示すものである。
” The first flag step FS□ is the plane movement number TN○ or rnJ (where n is an integer of 2 or more) stored in the digit.
are the n-1st and n-th steps P in the processing process PRO of the 5-times Kniprogram FPR shown in the first soil map.
The flag FLG stored in the "F" digit in the first flag step FS, , corresponds to the n-1st and first step PR,
It is set based on the machining surface definition commands PF and PF stored in the "machining surface" digit in PRo, and indicates the surface movement coordinates when executing the first machining step PR. be.

例えば、第13図に示すフラグ表FTは第11図に示す
5回加ニブログラムFPRに基づいて作成されたもので
あり、該フラグ表FTにおいては、rTNo、Jの桁に
格納された面移動番号TN○が「1」である第1フラグ
ステツプFS□は第11図に示す5回加ニブログラムF
PRの第1加ニステツプPR□に対応するものである。
For example, the flag table FT shown in FIG. 13 is created based on the 5-time addition program FPR shown in FIG. The first flag step FS□ where TN○ is “1” is the 5-time addition program F shown in FIG.
This corresponds to the first addition step PR□ of PR.

即ち、該第1加エステノブPR□の「加工面」の桁には
加工面定義指令PFとして[上面」が格納されているの
で、該第1フラグステツプFSユの「F」の桁には、当
該フラグ表FTにおいてワーク16の上面16aを意味
する「FU」がフラグFLGとして格納される。従って
、該第1フラグステップFS、は、当該5面加工におい
て第1番目の面移動、即ち第1加ニステップPR,で定
義された加工を行なう際に、アダプタヘラ1〜35をワ
ーク1Gの上面16aに移動させることを意味する。
That is, since the "top surface" is stored in the "machining surface" digit of the first machining aesthetic knob PR□ as the machining surface definition command PF, the "F" digit of the first flag step FS is In the flag table FT, "FU" meaning the upper surface 16a of the workpiece 16 is stored as a flag FLG. Therefore, the first flag step FS moves the adapter spatulas 1 to 35 to the workpiece 1G when performing the first surface movement in the five-face machining, that is, the machining defined in the first two-step PR. This means moving it to the upper surface 16a.

また、第13図に示すフラグ表FTのrT”No、Jの
桁に格納された面移動番号TN○が「2」である第2フ
ラグステツプFS2は、第11図に示す5回加ニブログ
ラムFPRの第1及び第2加ニステップPR,、PH1
0に対応するものであり、該第1及び第2加ニステツプ
PR□、PR7の「加工面」の桁には加工面定義指令P
Fとしてそれぞれ「上面」及び「0°」が格納されてい
るので、該第1フラグステップFS、の「F」の桁には
、当該フラグ表FTにおいてワーク16の上面16aか
ら06面16bへの移動を意味する’ F u−+F 
o JかフラグFLGとして格納される。従って、該第
2フラグステツプFS2は、当該5面加工において第2
番目の面移動、即ち、実行すべき加ニステップPRが第
1加ニステツプPR□から第2加ニステツプPR2に移
行する際に、アダプタヘッド35をワーク16の上面1
6aから00面16bに移動させることを意味する。な
お、第13図に示すフラグ表FT中の第3フラグステツ
プFS3以降のフラグステップp″Sは、上述の第2フ
ラグステツプFS2と同様の構成であるか、この「−→
」のフラグFLGにおいて、矢印「→」の左側の記号は
前回の加工面を表わすものであり、矢印「→」の右側の
記号は今回の加工面を表わすものである。なお、これ等
の記号として用いられるFU、 Fo、 Fl、F2及
びF3は、それぞれワーク16の上面16a、O’面1
.6 b、90″面L6c、180″′面16d及び2
70°面L6eを意味する。
Further, the second flag step FS2 in which the surface movement number TN○ stored in the digit rT"No and J of the flag table FT shown in FIG. The first and second Canadian steps PR, PH1
0, and the "machining surface" digit of the first and second machining steps PR□ and PR7 has a machining surface definition command P.
Since "top surface" and "0°" are stored as F, respectively, the "F" digit of the first flag step FS contains the information from the top surface 16a of the workpiece 16 to the 06 surface 16b in the flag table FT. 'F u-+F which means movement
o J is stored as a flag FLG. Therefore, the second flag step FS2 is the second flag step FS2 in the five-sided machining.
When the machining step PR to be executed moves from the first machining step PR□ to the second machining step PR2, the adapter head 35 is moved to the upper surface of the workpiece 16.
6a to the 00 plane 16b. The flag steps p''S after the third flag step FS3 in the flag table FT shown in FIG.
'' flag FLG, the symbol to the left of the arrow "→" represents the previous machined surface, and the symbol to the right of the arrow "→" represents the current machined surface. Note that FU, Fo, Fl, F2, and F3 used as these symbols refer to the upper surface 16a and O' surface 1 of the workpiece 16, respectively.
.. 6b, 90″ surface L6c, 180″′ surface 16d and 2
This means the 70° plane L6e.

こうして、第14図に示すユニット処理プログラムUP
PのステップS1で、5回加ニブログラムFPRに対応
したフラグ表FTが作成さ九て、フラグ表メモリ20に
格納されたところで、まず第11図に示す5回加ニブロ
グラムFPRの第1加ニステツプPRえて定義された加
工、即ちワーク16の上面16aに対する加ニブログラ
ム番号PNOrl 11Jに対応した加工を実施すべく
、ステップS2に入り、これから行なう加工、即ち前記
第1加ニステツプPR工で定義された加工が当該ワーク
16に関する初めての加工であるか否かを判定する。そ
れには、当該加ニステップPRのrsNo、Jの桁に格
納されたシーケンス番号SN○が「1」であるかを判断
し、当該シーケンス番号SN○が「1」であると判断さ
れた場合には、これから行なう加工か当該ワーク16に
関する初めての加工であると判定され、また当該シーケ
ンス番号SN○が「1」でないと判断された場合には、
これから行なう加工が当該ワーク16に関する初めての
加工でないと判定される。
In this way, the unit processing program UP shown in FIG.
In Step S1 of P, when the flag table FT corresponding to the 5-time Niprogram program FPR is created and stored in the flag table memory 20, the first step PR of the 5-time Niprogram program FPR shown in FIG. In order to perform the previously defined machining, that is, the machining corresponding to the machining program number PNOrl 11J on the upper surface 16a of the workpiece 16, the process proceeds to step S2, in which the machining that will be performed from now on, that is, the machining defined in the first machining step PR machining, is executed. It is determined whether or not this is the first machining of the workpiece 16. To do this, it is determined whether the sequence number SN○ stored in the rsNo, J digit of the Canadian step PR is "1", and if the sequence number SN○ is determined to be "1", then is determined to be the machining to be performed from now on or the first machining for the workpiece 16, and if it is determined that the sequence number SN○ is not "1",
It is determined that the machining to be performed from now on is not the first machining for the workpiece 16.

こうして、ステップS2でのフラグ表F Tに基づく判
定の結果、これから行なう加工、即ち第1加エステノブ
P R□で定義された加工は、シーケンス番号SNOが
「1」であるので、当該ワーク16に関する初めての加
工であると判定されて、ステップS3に入り、第11図
に示す5回加ニブログラムFPRの二二ノ1−指定プロ
セスUDPにおける「ヘットNo、Jの桁にヘット番号
HNOとして格納された「9」に基づき、アダプタヘッ
ド35の交換を行なって、これから行なう5面加工に対
応したアタブタヘッjく35をヘッド29に装着する。
In this way, as a result of the determination based on the flag table F T in step S2, the processing to be performed from now on, that is, the processing defined by the first machining esthetic knob PR, has a sequence number SNO of "1", so It is determined that this is the first machining, and the process proceeds to step S3, in which the head number HNO is stored in the digit J of the 22-no-1 designated process UDP of the 5-time Niprogram FPR shown in FIG. Based on "9", the adapter head 35 is replaced, and the adapter head 35 corresponding to the five-sided machining to be performed from now on is attached to the head 29.

このアダプタヘッド35の交換動作は、以下の手順で行
なわれる。即ち、第2図に示すように、ヘッド移送装置
33の駆動モータ33dを駆動して、送りネジ33cを
介してキャリア33bをガイドレール33a、33aに
沿って矢印A、B方向に駆動し、これから行なう5面加
工においてヘッド29に装着すべきアダプタヘッド35
が収納されているヘッド収納マカジン31の支持台31
bとキャリア33bの図中右方のヘット搭載部33eを
対向させる。この状態で、ヘッド搭載部33eの移載装
置33hを駆動して、ヘット収納マガジン31内のアダ
プタヘット35をキャリア33bのヘッド搭載部33e
に移載する。
This replacement operation of the adapter head 35 is performed in the following steps. That is, as shown in FIG. 2, the drive motor 33d of the head transfer device 33 is driven to drive the carrier 33b along the guide rails 33a, 33a in the directions of arrows A and B via the feed screw 33c. Adapter head 35 to be attached to head 29 in five-sided machining
The support stand 31 of the head storage machine 31 in which is stored
b and the head mounting portion 33e on the right side in the figure of the carrier 33b are opposed to each other. In this state, the transfer device 33h of the head mounting section 33e is driven to transfer the adapter head 35 in the head storage magazine 31 to the head mounting section 33e of the carrier 33b.
Transferred to.

こうして、キャリア33bの一方のヘッド搭載部33e
に交換すべきアダプタヘッド35が移載されたところで
、他方のヘッド搭載部33fを空席のままキャリア33
bを矢印入方向に移動させ、第6図に示すように、空席
のヘッド搭載部33fを所定のヘッド交換位置に位置決
めする。この状態で、サドル22を第2図矢印C方向に
移動させて、第6図に示すように、ヘラ1−29をキャ
リア33b上方で、空席のヘラ1〜搭載部33fと対向
する位置P1に位置決めする。吹に、ヘッド29を矢印
F方向に移動駆動して、第6図乃至第8図に示すように
、それまでヘッド29に装着されていたアタプタヘッ1
く35を、空席のヘット搭載部33f上に載置する。次
に、ヘッド29を矢印E方向に上昇させると共に、キャ
リア33bを矢印B方向に所定距離たけ移動させて、ア
ダプタヘット35の取り外された状態のヘット29とキ
ャリア33bのヘッド搭載部33eに搭載さ九た装着す
べきアダプタヘッド35を、第9図に示すように、対向
させる。この状態で、第9図及び第10図に示すように
、ヘッド29を矢印F方向に移動させて、ヘット29に
アダプタヘラ1く35を装着する。
In this way, one head mounting portion 33e of the carrier 33b
When the adapter head 35 to be replaced has been transferred, the other head mounting section 33f is left vacant on the carrier 33.
b is moved in the direction of the arrow to position the vacant head mounting section 33f at a predetermined head exchange position as shown in FIG. In this state, the saddle 22 is moved in the direction of arrow C in FIG. 2, and as shown in FIG. Position. Next, the head 29 is moved in the direction of arrow F, and as shown in FIGS. 6 to 8, the adapter head 1 that was previously attached to the head 29 is
35 is placed on the vacant head mounting section 33f. Next, the head 29 is raised in the direction of arrow E, and the carrier 33b is moved a predetermined distance in the direction of arrow B, so that the head 29 of the adapter head 35 is mounted on the removed head 29 and the head mounting portion 33e of the carrier 33b. The adapter heads 35 to be attached are placed facing each other as shown in FIG. In this state, as shown in FIGS. 9 and 10, the head 29 is moved in the direction of arrow F, and the adapter spatula 1 is attached to the head 29.

こうして、ステップS3て、これから行なう5面加工に
対応したアダプタヘッド35がヘット29に装着された
ところで、ステップS4に入り、ワーク16の上面16
aに対する加工動作に先立って自動工具交換を行なう。
In this way, in step S3, when the adapter head 35 corresponding to the five-sided machining to be performed from now on is attached to the head 29, the process proceeds to step S4, in which the upper surface 16 of the workpiece 16 is attached.
Automatic tool exchange is performed prior to the machining operation for a.

即ち、第1加ニステツプPR1における「ワークNO5
」の桁に加ニブログラム番号PNOとして格納されたr
l’liJに対応した加工に使用すべき工具39を、工
具交換装置36により工具マカジン37からアダプタ/
ベツド35の工具把持部35d又は35eに装着した後
、該工具39の装着されたアダプタヘット35を所定の
待機位置に位置決めする。
That is, "Work No. 5" in the first control step PR1
” digit is stored as the Canadian program number PNO.
The tool 39 to be used for machining compatible with l'liJ is transferred from the tool machine 37 to the adapter/tool changer 36.
After the tool 39 is attached to the tool gripping portion 35d or 35e of the bed 35, the adapter head 35 with the tool 39 attached thereto is positioned at a predetermined standby position.

こうして、ステップS4で、第1の加工面であるワーク
16の上面16aに対して使用すべき工具39がアダプ
タヘッド35に装着されたところで、ステップS5に入
り、第5図に示す主制御部2はイニシャル面設定部」、
9に対して、ワーク16の5面加工におけるアダプタヘ
ット35の面移動の際の工具39の刃先39aの経路と
なるイニシャル画工LPの設定を指令する。これを受け
てイニシャル面設定部19は、第11図に示す5回加ニ
ブログラムFPRの加工プロセスPR○におけるrEF
R−No、Jの桁に格納された基本座標番号FNO又は
rFRM−XJ、r F RMY」、rFRM−θ」及
びrFRM  ZJ(1)桁に格納されたワーク原点W
Oの各座標WX、WY、WZ及び座標設定角度αにより
設定されたプログラム座標系に基づいて、第16図及び
第」7図に示すように、各プログラム座標系のZの値か
一定となる位置、即ちワーク]6の各加工面から+Z軸
方向に所定距離りだけばれた位置に、該加工面を取り囲
む形でイニシャル面iLPを設定する。
In this way, in step S4, when the tool 39 to be used for the upper surface 16a of the workpiece 16, which is the first machining surface, is attached to the adapter head 35, the process proceeds to step S5, and the main control unit 2 shown in FIG. is the initial surface setting section",
9, the setting of the initial painter LP, which is the path of the cutting edge 39a of the tool 39 when the adapter head 35 moves in the five-sided machining of the workpiece 16, is commanded. In response to this, the initial surface setting unit 19 sets the rEF in the machining process PR○ of the 5-time Niprogram FPR shown in FIG.
Basic coordinate number FNO stored in R-No, J digit or rFRM-XJ, rFRMY", rFRM-θ" and workpiece origin W stored in rFRM ZJ (1) digit
Based on the program coordinate system set by the coordinates WX, WY, WZ of O and the coordinate setting angle α, the value of Z in each program coordinate system becomes constant, as shown in Figure 16 and Figure 7. Initial plane iLP is set at a position separated by a predetermined distance in the +Z-axis direction from each machined surface of [position, that is, workpiece] 6, in a manner that surrounds the machined surface.

即ち、第17図に示す直方体状のワーク16の場合には
、ワーク16の上面16aに対応してイニシャル面IL
1’uが、ワーク16のO″面16bに対応してイニシ
ャル面ILPoが、90″′面16cに対応してイニシ
ャル面IL?1が、180°面16dに対応してイニシ
ャル面ILP2が。
That is, in the case of the rectangular parallelepiped-shaped work 16 shown in FIG. 17, the initial surface IL corresponds to the upper surface 16a of the work 16.
1'u corresponds to the O'' surface 16b of the workpiece 16, and the initial surface ILPo corresponds to the 90'' surface 16c, and the initial surface IL? 1, and the initial plane ILP2 corresponds to the 180° plane 16d.

270°面16eに対応してイニシャル面ILP3が設
定される。なお、ワーク16の加工面に凹凸がある場合
には、当該加工面の最大突出部位から+Z軸方向に距離
りだけ離れた位置にイニシャル面ILPを設定する。従
って、ワーク16の加工面の形状に拘らず、当該加工面
のどの部位からも距14L以上離れた位置にイニシャル
面ILPが設定されるので、アダプタヘノ1へ35の面
移動に際して、工具39の刃先39aが該設定されたイ
ニシャル面x LPに沿って移動するときに該工具39
がワーク16と干渉するようなことはない。
An initial plane ILP3 is set corresponding to the 270° plane 16e. Note that when the machined surface of the workpiece 16 has irregularities, the initial surface ILP is set at a position separated by a distance in the +Z-axis direction from the maximum protrusion portion of the machined surface. Therefore, regardless of the shape of the machined surface of the workpiece 16, the initial plane ILP is set at a distance of 14L or more from any part of the machined surface. When the tool 39a moves along the set initial plane
will not interfere with the workpiece 16.

こうして、ステップS5で、ワーク16の加工面の周囲
にイニシャル面NLPが設定されたところで、ステップ
S6に入り、第S図に示す主制御部2はヘッド補正量演
算部40に対して、ヘット補正量の算出を指令する。こ
れを受けてヘット補正量演算部40は、第11図に示す
5面加ニブログラムFPRのユニット指定プロセスUD
PのFヘットNo、Jの桁にヘッド番号1−I N O
として格納された「9」に対応したヘッドデータi(D
 Aと、前記装着された工具39に対応したツールデー
タTDAをそれぞオtデータメモリ17から読み出し、
該読み出されたヘッドデータHDA及びツールデータT
DAに基づき、X軸、Y軸及びZ軸方向の3次元のヘッ
ド補正量を算出する。即ち、ヘッドデータHDAには、
第3図及び第4図に示すように、アダプタヘノ1−35
の/\)1〜29への装着の基準となる/\ノット着点
PO3」−から各アダプタヘッド35における工具装着
点PO32までの3軸方向(X軸、Y軸及びZ軸方向)
のオフセット量X L ]、、YL]−及びZ L 1
が格納されており、ツールデータTDAには、各工具3
9をアダプタヘット35に装着した際の工具装着点IF
 O32から工具39の刃先39aまでの工具軸心方向
(X軸、Y軸又はzlIiI11方向)のオフセフ1−
量XL2、YL2又はZL2が格納されている。従って
、アダプタヘット35に工具39か装着された際には、
該工具39の刃先位置を前記オフセンl−量に基づいて
演算し、該求められた刃先位置に基づいて5面加工ブロ
クラムFPRを実行する。
In this way, in step S5, when the initial plane NLP is set around the machining surface of the workpiece 16, the process proceeds to step S6, in which the main control section 2 shown in FIG. Command to calculate the amount. In response to this, the head correction amount calculation unit 40 performs a unit designation process UD for the five-sided addition program FPR shown in FIG.
F head No. of P, head number 1-I N O in J digit
Head data i (D
A and the tool data TDA corresponding to the mounted tool 39 are read from the Ot data memory 17, respectively;
The read head data HDA and tool data T
Based on DA, three-dimensional head correction amounts in the X-axis, Y-axis, and Z-axis directions are calculated. That is, in the head data HDA,
As shown in Figures 3 and 4, the adapter connector 1-35
3-axis directions (X-axis, Y-axis, and Z-axis directions) from /\knot attachment point PO3'' - which serves as a reference for attachment to /\) 1 to 29 of /\) to tool attachment point PO32 in each adapter head 35.
offset amount X L ], , YL] - and Z L 1
are stored, and each tool 3 is stored in the tool data TDA.
Tool attachment point IF when attaching 9 to adapter head 35
Offset 1- in the tool axis direction (X-axis, Y-axis or zlIiI11 direction) from O32 to the cutting edge 39a of the tool 39
The quantities XL2, YL2 or ZL2 are stored. Therefore, when the tool 39 is attached to the adapter head 35,
The position of the cutting edge of the tool 39 is calculated based on the offset l-amount, and five-sided machining block diagram FPR is executed based on the calculated cutting edge position.

こうして、ステップS6で、ヘラ1〜補正量の算出が行
なわれて、工具39の刃先位置か演算されたところで、
面移動サフルーチン5UBIに入り、以下に説明するよ
うに、該算出されたヘット補正量を考慮した形で、これ
から加工を行なう加工面、即ちワーク16の上面16a
に対応したイニシャル面ILPU上の所定の基拳位置P
5に工具39の刀先39aを、該上面1.6 aに距離
りを隔てて対向する形で位置決めする。
In this way, in step S6, after the spatula 1 to correction amounts have been calculated and the cutting edge position of the tool 39 has been calculated,
The surface movement subroutine 5UBI is entered, and as explained below, the surface to be machined, that is, the upper surface 16a of the workpiece 16, is moved in consideration of the calculated head correction amount.
A predetermined base fist position P on the initial plane ILPU corresponding to
5, the tip 39a of the tool 39 is positioned so as to face the upper surface 1.6a at a distance.

即ち、面移動サブルーチン5UBIでは、第15図に示
すように、まずステップS20で、第13図に示すフラ
グ表FTをフラグ表メモリ2゜から読み出し、該読み出
されたフラグ表FT中の面移動番号TNOが「】、Jで
ある第1フラグステツプFS工の「F」の桁にフラグF
LGとして格納された「F、J」 を読み込む。次に、
ステップS21に入り、該読み込まれたフラグFLGが
どういうものであるかを判定する。
That is, in the surface movement subroutine 5UBI, as shown in FIG. 15, first, in step S20, the flag table FT shown in FIG. 13 is read from the flag table memory 2°, and the surface movement in the read flag table FT is Flag F is placed in the "F" digit of the first flag step FS whose number TNO is "]" and "J".
Read "F, J" stored as LG. next,
In step S21, it is determined what the read flag FLG is.

ステップS21でのフラグ判定において、フラグFLG
が待機位置からワーク16の上面16a、0°面16b
、90’面16c、180°面16d又は27o°面1
6eへの移動を示す「*」(ここで、木はF、、1. 
Fo、 Fl、F′2又はp’ a )であると判定さ
れた場合には、ステップS22に入り、該フラグFLG
に従って、アダプタヘッド35の今回の加工面への移動
経路PAS及び駆動軸を設定する。例えば、フラグFL
Gがワークコ−6の270″面16eへの移動を示す「
F3」であると判定された場合には、第17図に示すよ
うに、今回の加工面であるワーク」−6の270°面1
6eにおけるワーク原点WO等の加工基準位置に対応し
たイニシャル面ILP3上の基準位置P5からインデッ
クス面IXPに降ろした垂線の足を通過点P4と設定し
、インデックス面IXP上の基準位置P2から通過点P
4、基$位置P5を順に直線で結ぶ形で移動経路PAS
を決定し、それに対応して駆動すべき制御軸を決定する
。第13図に示すフラグ表FTにおいては、当該フラグ
FLGがワーク16の上面16aへの移動を示す「Fu
Jであると判定されて、第18図に示すように、今回の
加工面であるワーク16の」二面16aにおけるワーク
原点WO等の加工基準位置に対応したイニシャル面I 
L P u上の基準位置P5からインデックス面IXP
に降ろした垂線の足を通過点P4と設定し、インデック
ス面IXP上の基準位置P2から通過点P4、基準位置
P5を順に直線て結ぶ形で移動経路PASを決定し、そ
れに対応して駆動すべき制御軸を決定する。
In the flag determination in step S21, the flag FLG
from the standby position to the upper surface 16a and 0° surface 16b of the workpiece 16.
, 90' plane 16c, 180° plane 16d or 27o plane 1
"*" indicates movement to 6e (here, the tree is F,,1.
Fo, Fl, F'2 or p'a), the process goes to step S22 and the flag FLG is
Accordingly, the moving path PAS of the adapter head 35 to the current processing surface and the drive axis are set. For example, flag FL
``G'' indicates movement of workpiece co-6 to 270'' surface 16e.
If it is determined that the surface is "F3", as shown in FIG.
The foot of the perpendicular line drawn from the reference position P5 on the initial surface ILP3 corresponding to the machining reference position such as the workpiece origin WO in 6e to the index surface IXP is set as the passing point P4, and from the reference position P2 on the index surface IXP to the passing point P
4. Create a moving route PAS by sequentially connecting the base $ positions P5 with straight lines.
is determined, and the control axis to be driven is determined accordingly. In the flag table FT shown in FIG. 13, the flag FLG is "Fu
As shown in FIG.
From reference position P5 on L P u to index plane IXP
The leg of the perpendicular line dropped to Determine the control axis to be controlled.

こうして、ステップS22で、今回の加工面、即ちワー
ク16の上面16aへの移動経路PAS及び駆動軸が設
定されたところで、ステップs23に入り、主制御部2
はテーブル制御部11、サドル制御部12及びヘッド制
御部13に対して、工具39のインデックス画工XPへ
の移動指令を出力する。これを受けてテーブル制御部1
1、サドル制御部12及びヘッド制御部13は、前記算
出されたヘット補正量を考慮した形で、各駆動モータ1
4、工5.18を介して、前記待機位置に位置決めされ
ているアダプタヘッド35に装着された工具39の刀先
39aが、第16図破線で示すように、第11図に示す
5面加ニブロタラムFPRのユニット指定プロセスUD
Pの「インデックス点−Z」の桁にZ座標Z工として格
納されたr−300,0OOJで表わされるインデック
ス画工XPにおける所定の基準位置P2まで移動するよ
うに、テーブル23、サドル22及びヘッド29を適宜
移動させる。
In this way, in step S22, when the movement path PAS and the drive axis to the current machining surface, that is, the upper surface 16a of the workpiece 16 are set, the process proceeds to step s23, where the main control unit 2
outputs a command to move the tool 39 to the index painter XP to the table control section 11, saddle control section 12, and head control section 13. In response to this, table control unit 1
1. The saddle control section 12 and the head control section 13 control each drive motor 1 in consideration of the calculated head correction amount.
4. Through step 5.18, the tip 39a of the tool 39 attached to the adapter head 35 positioned at the standby position is machined on the five sides shown in FIG. 11, as shown by the broken line in FIG. Nibrotarum FPR unit specification process UD
The table 23, the saddle 22, and the head 29 are moved to a predetermined reference position P2 in the index painter XP represented by r-300,0OOJ stored as the Z coordinate Z work in the digit of "index point - Z" of P. Move as appropriate.

こうして、ステップS23で、アダプタヘッド35に装
着された工具39の刃先39aがインデックス面IXP
上の所定の基準位置丁)2に位置決めされたところで、
ステップS24に入り、該工具39の刃先39aをイン
デックス面IXP内に保持した状態で今回の加工面に対
向する方向に向くまで、アダプタヘット35を矢印M又
はN方向に旋回させる。(但し、第13図に示すフラグ
表FTにおいては、当該フラグFLGはワーク16の上
面16aへの移動を示す「F、J」であるのて、工具3
9は既に、第3図及び第16図想像線で示すように、ア
ダプタヘッド35の下面の工具把持部35dに刀先39
aを矢印F方向、即ち今回の加工面であるワーク16の
上面16aに向けて装着された形でインデックス面I 
’X Pに位置決めされているので、該アダプタヘッド
35の矢印M又はN方向の旋回動作を行なう必要はない
。)例えば、フラグFLGかワーク16の2706面1
6eへの移動を示す「F3」であると判定された場合に
は5今回の加工面であるワーク16の2700面16e
は、第」−2図に示すように、YZ平面に平行で+X軸
方向に面しているので、アダプタヘッド35に装着され
た工具39が−X軸方向に向くまでインデックス面IX
Pにおいて旋回させる。
In this way, in step S23, the cutting edge 39a of the tool 39 attached to the adapter head 35 is aligned with the index surface IXP.
Once positioned at the predetermined reference position 2) above,
In step S24, the adapter head 35 is rotated in the direction of arrow M or N until it faces the direction facing the current machining surface while the cutting edge 39a of the tool 39 is held within the index plane IXP. (However, in the flag table FT shown in FIG. 13, the flag FLG is "F, J" indicating movement to the upper surface 16a of the workpiece 16, so the tool 3
9 has already attached the tip 39 to the tool grip portion 35d on the lower surface of the adapter head 35, as shown by the imaginary lines in FIGS. 3 and 16.
The index surface I is mounted with a facing the arrow F direction, that is, the upper surface 16a of the workpiece 16, which is the current machining surface.
' ) For example, flag FLG or 2706 surface 1 of work 16
If it is determined that it is "F3" indicating movement to 6e, 5
As shown in Fig. 2, the index plane I
Turn at P.

こうして、ステップS24で、アダプタヘット35が工
具39と共に矢印M又はN方向に所定の角度位置まで旋
回したところで、ステップS25に入り、前記設定され
た移動経路PAS及び駆動軸に基づいて、工具39の刃
先39aをインデックス面IXP上の基準位置P2から
イニシャル面ILP上の基準位置P5に位置決めする。
In this manner, in step S24, when the adapter head 35 has turned together with the tool 39 to a predetermined angular position in the direction of the arrow M or N, the process proceeds to step S25, in which the tool 39 is rotated based on the set movement path PAS and the drive shaft. The cutting edge 39a is positioned from the reference position P2 on the index plane IXP to the reference position P5 on the initial plane ILP.

例えば、フラグFLGがワーク16の270°面16e
への移動を示す「F3」であると判定され、それに対応
した移動経路PAS及び駆動軸が設定された場合には、
主制御部2はテーブル制御部11、サドル制御部12及
びヘッド制御部13に対して、工具39のインデックス
面IXP上の通過点P4への移動指令を出力する。これ
を受けてテーブル制御部11は、駆動モータ14を介し
てテーブル23をX軸方向へ移動させると共に、サドル
制御部12は駆動モータ15を介してヘッド29をY軸
方向へ移動させて、第17図に示すように、工具39の
刃先39aを基準位置P2から削記設定された移動経路
PASに沿って、即ち最短経路で通過点P4までインデ
ックス面IXP上を移動させる。こうして、アダプタヘ
ッド35の角度位置を保持した状態で、]二工具9の刀
先39aがイ〉テックス面IXP上の通過点P4、即ち
イニシャル面ILP3上方に到達したところで、主制御
部2はヘット制御部13に対して、イニシャル面ILP
3上の基準位置P5への移動指令を出力する。
For example, if the flag FLG is the 270° plane 16e of the workpiece 16,
If it is determined that it is "F3" indicating movement to , and the corresponding movement path PAS and drive axis are set,
The main control section 2 outputs a movement command to the table control section 11, saddle control section 12, and head control section 13 to move the tool 39 to the passing point P4 on the index plane IXP. In response to this, the table control section 11 moves the table 23 in the X-axis direction via the drive motor 14, and the saddle control section 12 moves the head 29 in the Y-axis direction via the drive motor 15. As shown in FIG. 17, the cutting edge 39a of the tool 39 is moved from the reference position P2 along the set moving path PAS, that is, along the shortest path, on the index plane IXP to the passing point P4. In this way, while maintaining the angular position of the adapter head 35, when the tip 39a of the second tool 9 reaches the passage point P4 on the ITEX plane IXP, that is, above the initial plane ILP3, the main control unit 2 For the control unit 13, the initial plane ILP
A command to move to the reference position P5 above 3 is output.

これを受けてヘッド制御部13は、駆動モータ18を介
して、アダプタヘット35の角度位置を保持した状態で
、第17図に示すように、工具39の刃先39aがイニ
シャル面ILPU上の通過点P4から矢印F方向に前記
設定された移動経路PASに沿ってイニシャル面ILP
3上の基準位置P5まで移動するように、ヘラF29を
矢印F方向に降下させる。すると、工具39の刀先39
aは、イニシャル面ILP、上の基準位置P5に該イニ
シャル面ILP3に垂直に、即ちワーク16の270°
面16eに距離りを隔てて対向する形で位置決めされる
In response to this, the head control unit 13 uses the drive motor 18 to maintain the angular position of the adapter head 35, and as shown in FIG. The initial plane ILP is moved from P4 along the set movement path PAS in the direction of arrow F.
3, the spatula F29 is lowered in the direction of arrow F so as to move to the reference position P5 on the top. Then, the tip 39 of the tool 39
a is perpendicular to the initial surface ILP3, that is, 270° of the workpiece 16, at the reference position P5 on the initial surface ILP.
They are positioned opposite to the surface 16e with a distance between them.

なお、第13図に示すフラグ表FTにおいては、轟該フ
ラグFLGはワーク16の上面ユ6aへの移動を示す「
FIJ」であるので、主制御部2はテーブル制御部11
、サドル制御部12及びヘッド制御部13に対して、工
具39のインデックス面IXP上の通過点P4への移動
指令を出力する。これを受けてテーブル制御部11は、
駆動モータ14を介してテーブル23をX軸方向へ移動
させると共に、サドル制御部12は駆動モータ15を介
してヘット29をY軸方向へ移動させて、第18図に示
すように、工具39の刃先39aを基準位置P2から前
記設定された移動経路PASに沿って、即ち最短経路で
通過点P4までインデックス面IXP上を移動させる。
In the flag table FT shown in FIG.
FIJ", the main control section 2 is the table control section 11.
, outputs a command to move the tool 39 to the passing point P4 on the index plane IXP to the saddle control section 12 and the head control section 13. In response to this, the table control unit 11
The table 23 is moved in the X-axis direction via the drive motor 14, and the saddle control section 12 moves the head 29 in the Y-axis direction via the drive motor 15 to move the tool 39 as shown in FIG. The cutting edge 39a is moved on the index plane IXP from the reference position P2 along the set moving path PAS, that is, along the shortest path to the passing point P4.

こうして、工具39の刃先39aがインデックス面IX
P上の通4〇− 適止P4、即ちイニシャル面ILP、、上方に到達した
ところで、主制御部2はヘン1〜制御部13に対して、
イニシャル面ILPU上の基準位置P5への移動指令を
出力する。これを受けてヘッド制御部13は、駆動モー
タ18を介して、第18図に示すように、工具39の刃
先39aがイニシャル面I L P u上の通過点P4
から矢印F方向に前記設定された移動経路PASに沿っ
てイニシャル画工LPu上の基準位置P5まで移動する
ように、ヘッド29を矢印F方向に降下させる。すると
In this way, the cutting edge 39a of the tool 39 is aligned with the index surface IX.
When reaching the upper part of P40--appropriate P4, that is, the initial plane ILP, the main control section 2 controls Hen 1 to control section 13 to
A movement command to the reference position P5 on the initial surface ILPU is output. In response to this, the head control unit 13 controls, via the drive motor 18, the cutting edge 39a of the tool 39 to a passing point P4 on the initial surface I L P u, as shown in FIG.
The head 29 is lowered in the direction of the arrow F so as to move from there to the reference position P5 on the initial painter LPu along the set moving path PAS in the direction of the arrow F. Then.

工具39の刃先39aは、イニシャル面I L P u
上の基準位置P5に該イニシャル面I L P uに垂
直に、即ちワーク16の上面16aに距離りを隔てて対
向する形で位置決めされる。
The cutting edge 39a of the tool 39 has an initial surface I L P u
It is positioned at the upper reference position P5 perpendicularly to the initial surface I L P u, that is, facing the upper surface 16a of the work 16 at a distance.

こうして、面移動サブルーチン5UBIで、工具39の
刃先39aがこれから加工すべき加工面、即ちワーク1
6の上面16aに対応したイニシャル面I L P u
における所定の基準位置P5に、該上面16aに距離り
を隔てて対向する形で位置決めされたところで、第14
図に示すユニット処理プログラムUPPのステップS7
に入り、第5図に示す主制御部2は工具経路演算部41
に対して、ワーク16の上面16aに対する加ニブログ
ラムの工具経路の算出を指令する。これを受けて工具経
路演算部41は、第11図に示す5回加ニブログラムF
PRの第1加ニステップPR,における「ワークNo、
Jの桁に加ニブログラム番号PN○として格納された「
111」に対応した加ニブログラムに基づいて、工具経
路の算出を行なう。
In this way, in the surface movement subroutine 5UBI, the cutting edge 39a of the tool 39 moves to the surface to be machined, that is, the workpiece 1.
Initial surface I L P u corresponding to the upper surface 16a of 6
When the fourteenth
Step S7 of the unit processing program UPP shown in the figure
The main control section 2 shown in FIG.
is instructed to calculate the tool path of the cutting program for the upper surface 16a of the workpiece 16. In response to this, the tool path calculation unit 41 generates a 5-time nib program F shown in FIG.
"Work No.," in the first step of PR,
`` is stored in the J digit as the Canadian program number PN○.
The tool path is calculated based on the cutting program corresponding to "111".

こうして、ステップS7で、加ニブログラムの工具経路
の算出が行なわれたところで、ステップS8に入り、第
5図に示す主制御部2は座標変換部42に対して、機械
座標系とこれから加工動作の行なわれる加工面、即ちワ
ーク16の上面16aに設定されたプログラム座標系と
の間で座標変換動作を指令する。これを受けて座標変換
部42は座標変換動作を行ない、第11図に示す5回加
ニブログラムFPRの第1加ニステツプPR工における
rEFR−No、Jの桁に基本座標番号FNOとして格
納さ九た「↓」により設定されたプログラム座標系を基
準にプログラムさ汎た加ニブログラムを5面加工機1が
実行可能な機械座標系に変換する。この座標変換の方法
については、例えば特開昭61−286905に開示さ
れているので、ここではその詳細な説明を省略する。
In this way, after the tool path of the machine program has been calculated in step S7, the process proceeds to step S8, where the main control section 2 shown in FIG. A coordinate conversion operation is commanded between the program coordinate system set on the surface to be machined, that is, the upper surface 16a of the workpiece 16. In response to this, the coordinate transformation unit 42 performs a coordinate transformation operation, and stores rEFR-No in the J digit as a basic coordinate number FNO in the first machining step PR process of the five-time Niprogram FPR shown in FIG. The machine program that has been programmed based on the program coordinate system set by "↓" is converted into a machine coordinate system that can be executed by the five-face machining machine 1. This method of coordinate transformation is disclosed in, for example, Japanese Patent Application Laid-Open No. 61-286905, so a detailed explanation thereof will be omitted here.

こうして、ステップS8で、座標変換動作が行なわれた
ところで、ステップS9に入り、主制御部2は、第11
図に示す5面別エプロクラムFPHの第1加ニステツプ
PR工における「ワークNo、Jの桁に加ニブログラム
番号PNOとして格納されたrl 11Jに対応した単
一面加工プログラムOPRを加ニブログラムメモリ9か
ら読み出し、該読み出された単一面加工プログラムOP
Rに基づいて加工動作を開始するように、テーブル制御
部11.サドル制御部12及びヘット制御部13に対し
て指令する。これを受けてテーブル制御部11、サドル
制御部12及びヘット制御部13は、該単一面加工プロ
グラム○PRに基づき各駆動モータ14.15.18を
駆動して、工具39の刃先39aを前記算出された工具
経路に沿って移動させて、ワーク16の上面16aに対
する所定の加工動作を行ない、該加工動作終了後、工具
39の刀先39aを当該ワーク16の上面16aに対応
したイニシャル面ILPUにおける基準位置P5に位置
決めする。
In this way, after the coordinate transformation operation has been performed in step S8, the process proceeds to step S9, and the main control unit 2
The single-face machining program OPR corresponding to rl 11J stored in the J digit as the machine program number PNO in the first machining step PR machining of the five-sided aprogram FPH shown in the figure is retrieved from the machine program memory 9. Read out the read single-surface machining program OP
The table controller 11.R starts the machining operation based on R. A command is given to the saddle control section 12 and the head control section 13. In response to this, the table control unit 11, saddle control unit 12, and head control unit 13 drive each drive motor 14, 15, and 18 based on the single surface machining program ○PR to adjust the cutting edge 39a of the tool 39 to the above-described calculation. The tool 39 is moved along the created tool path to perform a predetermined machining operation on the upper surface 16a of the workpiece 16, and after the machining operation is completed, the cutting edge 39a of the tool 39 is moved along the initial surface ILPU corresponding to the upper surface 16a of the workpiece 16. Position to reference position P5.

こうして、ステップS9で、ワーク16の上面16aに
対する加工が終了し、該ワーク16の上面16aの加工
に使用した工具39の刃先39aが当該ワーク16の上
面コ−6aに対応したイニシャル面ILPUにおける基
準位置P5に位置決めされたところで、ステップSIO
に入り、主制御部2は、第11図に示す5回加ニブログ
ラムFPRの加工プロセスPROを参照して、加工すべ
き加工面が残っているか否かを判定する。即ち。
In this way, in step S9, the machining of the upper surface 16a of the workpiece 16 is completed, and the cutting edge 39a of the tool 39 used for machining the upper surface 16a of the workpiece 16 is set to the standard in the initial surface ILPU corresponding to the upper surface 6a of the workpiece 16. Once positioned at position P5, step SIO
Then, the main control section 2 refers to the machining process PRO of the 5-time nib program FPR shown in FIG. 11 and determines whether or not there remains a machining surface to be machined. That is.

第11図に示す5回加ニブログラムFPRの第1゜加ニ
ステップPR1の次に第2加ニステツプPR2が格納さ
れているので、該第2加ニステツプPR2で定義された
加工、即ちワーク16の0°面16bに対する加ニブロ
グラム番号PNOr222Jに対応した加工を実施すへ
く、ステップS2に戻る。ステップS2では、これから
行なう加工、即ち前記第2加ニステツプPR2で定義さ
れた加工は、シーケンス番号SNOが「2」であるので
、当該ワーク16に関する初めての加工てないと判定さ
れ、ステップSLLに入って、こ汎から加工する加工面
か前回加工した加工面と同しであるか否かを判定する。
Since the second machining step PR2 is stored next to the first machining step PR1 of the five-time machining program FPR shown in FIG. The process returns to step S2 to perform the machining corresponding to the Canadian program number PNOr222J on the ° surface 16b. In step S2, since the sequence number SNO of the machining to be performed from now on, that is, the machining defined in the second machining step PR2, is "2", it is determined that this is not the first machining for the workpiece 16, and step SLL is entered. Then, it is determined whether the machined surface to be machined from this part is the same as the previously machined surface.

この場合、今回加工する加工面、即ちワーク16のO°
面16bが前回の加工面、即ちワーク]−6の上面16
aと同してないと判定され、ステップS6に入る。ステ
ップS6において、ワーク16のO″面16bの加工に
使用する工具39が装着された際のヘット補正量の算出
を前述の手順と同様に行なった後、面移動サブルーチン
5UBIに入り、以下に説明するように、ワーク16の
上面16aに対応したイニシャル面ILPU上に位置決
めされている前記工具39をワーク16の00面16b
の加工に使用する工具39に交換すると共に、該O°面
16bの加工に使用する工具39の刃先39aを、第1
9図に示すように、前記算出されたヘッド補正量を考慮
した形で、これから加工を行なうワーク16のO°面1
6bに対応したイニシャル面iLP、上の基準位置P5
に、該0°面16bに距離りを隔てて対向する形で位置
決めする。
In this case, the machined surface to be machined this time, that is, the O° of the workpiece 16
The surface 16b is the previously machined surface, that is, the upper surface 16 of the workpiece ]-6
It is determined that it is not the same as a, and the process proceeds to step S6. In step S6, after calculating the head correction amount when the tool 39 used for machining the O'' surface 16b of the workpiece 16 is installed in the same manner as the above-mentioned procedure, the surface movement subroutine 5UBI is entered, which will be explained below. The tool 39, which is positioned on the initial surface ILPU corresponding to the upper surface 16a of the work 16, is moved to
At the same time, replace the cutting edge 39a of the tool 39 used for machining the O° surface 16b with the first one.
As shown in Fig. 9, the O° surface 1 of the workpiece 16 to be machined is adjusted in consideration of the calculated head correction amount.
Initial plane iLP corresponding to 6b, upper reference position P5
Then, it is positioned so as to face the 0° plane 16b at a distance.

即ち、第15図に示す面移動ザブルーチンSU B ’
1のステップS20で、既に述へたように、第11図に
示す5回加ニブログラムFPRに基づいて作成されたフ
ラグ表FTをフラグ表メモリ20から読み出し、該読み
出されたフラグ表FT中の面移動番号TNOが「2」で
ある第2フラグステツプFS2の「F」の桁に格納され
たフラグFLGを読み込む。次に、ステップS21に入
り、該読み込まれたフラグFLGがどういうものである
かを判定し、フラグFLGがワーク16の上面16aか
ら側面、即ち0°面16b、90″′面16c、180
’面16d又は270’面16eへの移動を示す「FI
、→*」(ここで、木はF。、F□、F2又はF3)で
あると判定された場合には、ステップS26に入り、前
述の手順と同様に、該フラグFLGに従って、アダプタ
ヘッド35の次に移動ずにき加工面への移動経路PAS
及び駆動軸を設定する。第13図に示すフラグ表FTに
おいては、当該フラグFLGが「F、J→F0」、即ち
加工面がワーク16の上面16aから○°而面6bに移
行するものと判定され、第19図に示すように、直前に
加工した加工面であるワーク16の上面16aにおける
ワーク原点W○等の加工基準位置に対応したイニシャル
面■LPl]上の基準位置P6からインデックス面IX
Pに降ろした垂線の足を通過点P3と設定し、一方、吹
に移動すノ\き加工面であるワーク16のO°面16b
におけるワーク原点WO等の加工基準位置に対応したイ
ニシャル面ILP、上の基準位置P5からインデックス
面IXPに降ろした垂線の足を通過点P4と設定する。
That is, the surface movement subroutine SU B' shown in FIG.
1, in step S20, as already mentioned, the flag table FT created based on the five-time addition program FPR shown in FIG. 11 is read out from the flag table memory 20, and the The flag FLG stored in the "F" digit of the second flag step FS2 whose surface movement number TNO is "2" is read. Next, in step S21, it is determined what the read flag FLG is.
``FI'' indicating movement to ``plane 16d or 270'' plane
, →*" (here, the tree is F., F□, F2, or F3), the process goes to step S26, and the adapter head 35 Moving path PAS to the machined surface without moving next
and set the drive shaft. In the flag table FT shown in FIG. 13, it is determined that the flag FLG is "F, J→F0", that is, the machining surface shifts from the upper surface 16a of the workpiece 16 to the ○° surface 6b, and as shown in FIG. As shown, from the reference position P6 on the initial surface ■LPl] corresponding to the processing reference position such as the workpiece origin W○ on the upper surface 16a of the workpiece 16, which is the processing surface that was processed immediately before, to the index surface IX
The leg of the perpendicular line dropped to P is set as the passing point P3, and on the other hand, the O° surface 16b of the workpiece 16, which is the machining surface that moves in the direction
The leg of the perpendicular line drawn from the initial plane ILP corresponding to the processing reference position such as the workpiece origin WO, and the upper reference position P5 to the index plane IXP is set as the passing point P4.

更に、イニシャル面ILP、I上の基準位置P6からイ
ンデックス面IXP上の通過点P3、通過点P4及びイ
ニシャル面ILPo上の基準位置P5を順に直線で結ぶ
形で移動経路I) ASを決定し、それに対応して駆動
すべき制御軸を決定する。
Furthermore, a moving route I) AS is determined by sequentially connecting the reference position P6 on the initial plane ILP, I with a straight line from the passing point P3 on the index plane IXP, the passing point P4, and the reference position P5 on the initial plane ILPo, The control axis to be driven is determined accordingly.

こうして、ステップS26で、ワーク16の上面16a
から0°面16bへの移動経路PAS及び駆動軸が設定
さ才したところで、ステップS27に入り、主制御部2
はヘッド制御部13に対して、工具39の上昇指令を出
力する。これを受けてヘッド制御部13は、駆動モータ
18を介して、第19図想像線で示すように、アダプタ
ヘッド35に装着された上面加工用の工具39の刀先3
9aが該設定された移動経路PASに沿ってイニシャル
面ILPoから矢印E方向にインデックス面IXPまで
上昇するように、ヘッド29を矢印E方向に上昇させる
。すると、それまでイニシャル面I L P u上の基
準位置P6に下向きに、即ちワーク16の上部工6aに
距離りを隔てて対向する形で位置決めされていた上面加
工用の工具39の刃先39aは、移動経路PASに沿っ
て下向きのままインデックス面IXP上の通過点P3に
位置決めされる。
In this way, in step S26, the upper surface 16a of the workpiece 16
When the movement path PAS and the drive shaft from the plane 16b to the 0° plane 16b have been set, step S27 is entered, and the main control unit 2
outputs a command to raise the tool 39 to the head control section 13. In response to this, the head control unit 13, via the drive motor 18, controls the tip 3 of the upper surface machining tool 39 attached to the adapter head 35, as shown by the imaginary line in FIG.
The head 29 is raised in the direction of the arrow E so that the head 9a rises from the initial surface ILPo in the direction of the arrow E to the index surface IXP along the set movement path PAS. Then, the cutting edge 39a of the tool 39 for upper surface machining, which had been positioned downward at the reference position P6 on the initial surface I L P u, that is, facing the upper machining 6a of the workpiece 16 at a distance, , is positioned at a passing point P3 on the index plane IXP while facing downward along the movement route PAS.

こうして、ステップS27で、上面加工用の工具39の
刃先39aが1′ニシャル面I L P ll上の基準
位置P6から移動経路PASに沿ってインデックス面I
XP上の通過点P3に位置決めさ九たところで、該上面
加工用の工具39を次の加工面の加工に使用する側面加
工用の工具39に交換する必要があるので、ステップS
28に入り、工具交換装置36による自動工具交換を前
述の手順と同様に行なって、第11図に示す5面加工ブ
ロクラムFPRの第2加ニステツプPR2における「ワ
ークNo、Jの桁に加ニブログラム番号PN○として格
納されたr222Jに対応した加工に使用すべき工具3
9をアダプタヘット35の工具把持部35eに装着した
後、該工具39の装着されたアダプタヘッド35を所定
の待機位置に位置決めする。
In this way, in step S27, the cutting edge 39a of the tool 39 for upper surface machining moves from the reference position P6 on the 1' initial surface I L P ll to the index surface I along the movement path PAS.
After positioning at the passing point P3 on the
28, the automatic tool change by the tool change device 36 is performed in the same manner as the above-mentioned procedure, and the program number is added to the workpiece No. Tool 3 to be used for machining compatible with r222J stored as PN○
9 is attached to the tool gripping portion 35e of the adapter head 35, the adapter head 35 with the tool 39 attached thereto is positioned at a predetermined standby position.

次いで、ステップS23に入り、既に述へた手順に従っ
て、アダプタヘッド35に装着された側面加工用の工具
39の刀先39aを工具交換後の待機位置からインデッ
クス面IXP上の通過点P3に戻して位置決めした後、
ステップS24に入り、該工具39の刃先39aをイン
デックス面IXP内に保持した状態で、該工具39が装
着さ九たアダプタヘット35を次に移動すべき加工面に
対向する角度位置まで矢印M又はN方向に旋回させる。
Next, in step S23, the tip 39a of the side machining tool 39 mounted on the adapter head 35 is returned from the standby position after the tool exchange to the passing point P3 on the index plane IXP according to the procedure already described. After positioning,
Step S24 is entered, and with the cutting edge 39a of the tool 39 held within the index plane IXP, the adapter head 35 with the tool 39 attached is moved to the angular position facing the machining surface to be moved next using the arrow M or Turn in the N direction.

第13図に示すフラグ表FTにおいては、当該フラグF
LGが「FIJ−+FO」、即ち加工面がワーク16の
上面16aから00面16bに移行するものと判定され
、次に移動すべき加工面であるワーク16のO°面16
bは、第12図に示すように、X−Z平面に平行で+Y
Y軸方向面しているので、アダプタヘッド35に装着さ
れた工具39が、第19図実線で示すように、−Y軸方
向である矢印C方向に向くまで矢印M又はN方向に旋回
させる。
In the flag table FT shown in FIG.
It is determined that LG is "FIJ-+FO", that is, the machining surface shifts from the upper surface 16a of the workpiece 16 to the 00 surface 16b, and the O° surface 16 of the workpiece 16, which is the next machining surface to be moved.
b is parallel to the X-Z plane and +Y as shown in FIG.
Since it faces in the Y-axis direction, the tool 39 attached to the adapter head 35 is turned in the arrow M or N direction until it faces in the -Y-axis direction, which is the arrow C direction, as shown by the solid line in FIG.

こうして、ステップS24で、アダプタヘッド35が側
面加工用の工具39と共に矢印M又はN方向に所定の角
度位置まで旋回したところで、ステップS25に入り、
前述の手順と同様に、前記設定された移動経路PAS及
び駆動軸に基づいて、工具39の刃先39aを次に移動
すべき加工面に対応したイニシャル面I T= P上の
基1′<ム位ニI〕5に位置決めする。第13図に示す
フラグ表FTにおいては、当該フラグFLGがrFu−
+Fo」、即ち加工面がワーク16の上面16aからO
°面16bに移行するものと判定され、主制御部2はチ
ーフル制御部11、サドル制御部12及びヘッド制御部
13に対して、工具39のインテンクス面IXP上の通
過点P4への移動指令を出力する。
In this way, in step S24, when the adapter head 35 has turned to a predetermined angular position in the direction of the arrow M or N together with the side surface machining tool 39, the process enters step S25.
Similarly to the above-mentioned procedure, based on the set movement path PAS and the drive axis, the cutting edge 39a of the tool 39 is moved to the initial surface I T=P on the base 1'<M which corresponds to the machining surface to be moved next. Position [I]5. In the flag table FT shown in FIG. 13, the flag FLG is rFu-
+Fo", that is, the machining surface is O from the upper surface 16a of the workpiece 16.
It is determined that the tool 39 will move to the angle plane 16b, and the main control unit 2 instructs the chief control unit 11, saddle control unit 12, and head control unit 13 to move the tool 39 to the passing point P4 on the intensive plane IXP. Output.

これを受けてテーブル制御部11は、駆動モータ14を
介してテーブル23をX軸方向へ移動させると共に、サ
ドル制御部12は駆動モータ15を介してヘッド29を
Y軸方向へ移動させて、第19図実線で示すように、工
具39の刃先39aを通過点P3から前記設定された移
動経路I) A Sに沿って、即ち最短経路で通過点P
4までインデックス面IXP上を移動させる。こうして
、アダプタヘッド35の角度位置を保持した状態て、工
具39の刃先39aがインデックス面iXP上の通過点
P4.即ちイニシャル面1LPo土方に到達したところ
で、主制御部2はヘット制御部1−3に対して、イニシ
ャル面ILPo上の基準位置P5への移動指令を出力す
る。これを受けてヘソ1へ制御部13は、駆動モータ1
8を介して、アダプタヘッド35の角度位置を保持した
状態で、第19図実線で示すように、工具39の刀先3
9aがインデックス面IXP上の通過点P4から矢印F
方向に前記設定された移動経路PASに冶ってイニシャ
ル面丁LP、上の基準位置P5まで移動するように、ヘ
ッド29を矢印F方向に降下させる。
In response to this, the table control section 11 moves the table 23 in the X-axis direction via the drive motor 14, and the saddle control section 12 moves the head 29 in the Y-axis direction via the drive motor 15. As shown by the solid line in Fig. 19, the cutting edge 39a of the tool 39 is moved from the passing point P3 along the set movement path I)A, that is, along the shortest path to the passing point P.
4 on the index plane IXP. In this way, while maintaining the angular position of the adapter head 35, the cutting edge 39a of the tool 39 moves to the passing point P4 on the index surface iXP. That is, when the initial plane 1LPo reaches Hijikata, the main control section 2 outputs a movement command to the head control section 1-3 to move to the reference position P5 on the initial plane ILPo. In response to this, the control unit 13 controls the drive motor 1 to the navel 1.
8, while maintaining the angular position of the adapter head 35, as shown by the solid line in FIG.
9a is from the passing point P4 on the index plane IXP to the arrow F
The head 29 is lowered in the direction of arrow F so as to follow the set movement path PAS and move to the reference position P5 above the initial surface LP.

すると、工具39の刃先39aは、第19図実線で示す
ように、1′ニシャル面ILPo上の基準位置P5に該
イニシャル面ILP、に垂直に、即ちワーク16のO°
面16bに距離りを隔てて対向する形で位置決めされる
Then, the cutting edge 39a of the tool 39 is moved to the reference position P5 on the 1' initial surface ILPo perpendicularly to the initial surface ILP, as shown by the solid line in FIG.
They are positioned opposite to the surface 16b with a distance between them.

こうして、面移動サブルーチン5UBIで、工具39の
刀先39aがこれから加工すべき加工面、即ちワーク1
6のO°面16bに対応したイニシャル面ILPo上の
基準位置P5に、該00面16bに距離りを隔てて対向
する形で位に決めされたところで、第14図に示すユニ
ット処理ブログラムUPPのステップS7に入り、前述
の手順と同様に、第11図に示す5回加ニブログラムF
PRの第2加エステノブPR,lにおける[ワークNo
、Jの桁に加工プロクラム番号P N Oとして格納さ
れたr222Jに対応した加工ブロクラムに基づいて、
工具経路の算出を行なう。
In this way, in the surface movement subroutine 5UBI, the tip 39a of the tool 39 moves to the surface to be machined, that is, the workpiece 1.
When the reference position P5 on the initial plane ILPo corresponding to the 0° plane 16b of No. 6 has been determined to face the 00 plane 16b at a distance, the unit processing program UPP shown in FIG. Step S7 is entered, and the 5-time addition program F shown in FIG.
[Work No. 2 in PR's second esthetic knob PR,l
, based on the machining program corresponding to r222J stored as the machining program number P N O in the J digit,
Calculate the tool path.

こうして、ステップS7で、工具経路の算出が行なわれ
たところで、ステップS8に入り、既に述べたように、
主制御部2は座標変換部42に対して、機械座標系とこ
れから加工動作の行なわれる加工面、即ちワーク16の
O°面16bに設定されたプログラム座標系との間で座
標変換動作を指令する。これを受けて座標変換部42は
座標変換動作を行ない、第11図に示す5回加ニブログ
ラムFPRの第2加ニステツプPR2におけるrFRM
−XJ、r F RM、 −Y J、rFRM−D」及
びrFRM−ZJの桁にワーク原点WOの各座標wx、
wy、wz及び座標設定角度αとして格納さ九たr−3
00J 、  r−300J 、 「−300」及び「
○」により設定されたプログラム座標系を基準にプログ
ラムされた加ニブログラムを5面加工機1が実行可能な
機械座標系に変換する。
In this way, after the tool path has been calculated in step S7, step S8 is entered, and as already mentioned,
The main control unit 2 instructs the coordinate conversion unit 42 to perform a coordinate conversion operation between the machine coordinate system and the program coordinate system set on the machining surface where the machining operation will be performed from now on, that is, the O° surface 16b of the workpiece 16. do. In response to this, the coordinate conversion unit 42 performs a coordinate conversion operation, and converts the rFRM in the second step PR2 of the five-step nib program FPR shown in FIG.
-XJ, rF RM, -Y J, rFRM-D" and rFRM-ZJ, each coordinate wx of the workpiece origin WO,
Nine r-3 stored as wy, wz and coordinate setting angle α
00J, r-300J, "-300" and "
The machine program programmed based on the program coordinate system set by "○" is converted into a machine coordinate system that can be executed by the five-face machining machine 1.

こうして、ステップS8で、座標変換動作が行なわれた
ところで、ステップs9に入り、主制御部2は、第11
図に示す5回加ニブログラムFPRの第2加ニステツプ
PR2における「ワークNo、Jの桁に加ニブログラム
番号PNOとして格納されたr222Jに対応した単一
面加工プログラムOPRを加ニブログラムメモリ9がら
読み出し、該読み出された単一面加工プログラム○PR
に基づいて加工動作を開始するように、テーブル制御部
11.サドル制御部12及びヘッド制御部13に対して
指令する。これを受けてテーブル制御部11.サドル制
御部12及びヘッド制御部13は、該単一面加工プログ
ラムOPHに基づき各駆動モータ14.15.18を駆
動して、工具39の刃先39aを前記算出された工具経
路に沿って移動させて、ワーク16の○°面16bに対
する所定の加工動作を行ない、該加工動作終了後、工具
39の刃先39aを当該○°面16bに対応したイニシ
ャル面ILPoにおける基1′告位置P5に位置決めす
る。
In this way, after the coordinate transformation operation has been performed in step S8, the process proceeds to step s9, and the main control unit 2
In the second machining step PR2 of the 5-time Nipro program FPR shown in the figure, the single surface machining program OPR corresponding to r222J stored in the J digit as the Nipro program number PNO is read from the Niprogram memory 9. The read single surface machining program ○PR
The table controller 11 . A command is given to the saddle control section 12 and head control section 13. In response to this, the table control unit 11. The saddle control section 12 and the head control section 13 drive each drive motor 14, 15, 18 based on the single-face machining program OPH to move the cutting edge 39a of the tool 39 along the calculated tool path. , a predetermined machining operation is performed on the ○° surface 16b of the workpiece 16, and after the machining operation is completed, the cutting edge 39a of the tool 39 is positioned at the base position P5 on the initial surface ILPo corresponding to the ○° surface 16b.

こうして、ステップS9で、ワーク16の00面16b
に対する加工が終了し、該O°面16bの加工に使用し
た工具39の刀先39aが当該O″面16bに対応した
イニシャル面■LPl+における基準位置P5に位置決
めされたところで。
In this way, in step S9, the 00 side 16b of the work 16 is
When the machining has been completed and the tip 39a of the tool 39 used for machining the O'' surface 16b has been positioned at the reference position P5 on the initial surface ■LPl+ corresponding to the O'' surface 16b.

ステップSIOに入り、主制御部2は、第11図に示す
5回加ニブログラムF P Rの加工プロセスPR○を
参照して、加工すべき加工面が残っているか否かを判定
する。即ち、第11図に示す5面別ニブログラムFPR
の第2加ニステツプPR2の次に第3加ニステップI−
’R3が格納されているので、該第3加ニステツプPR
3で定義された加工、即ちワーク16の270°面16
eに対する加ニブログラム番号PN○IF 33Jに対
応した加工を実施すべく、ステップS2に戻る。ステッ
プS2では、これから行なう加工、即ち前記第3加ニス
テツプPR3て定義された加工は、シーケンス番号SN
Oが「3」であるので、当該ワーク16に関する初めて
の加工でないと判定され、ステップSllに入り、これ
から加工する加工面、即ちワーク16の270°面16
eが前回の加工面、即ちワーク16のO″′面16bと
同じでないと判定され、ステップS6に入る。ステップ
S6において、ワーク16の270°面16eの加工に
使用する工具39が装着さ九た際のヘット補正量の算出
を削述の手順と同様に行なった後、面移動サブルーチン
5UBIに入り、以下に説明するように、ワーク16の
0°面16bに対応したイニシャル商工LPo上に位置
決めされている前記工具39をワーク16の270°面
16eの加工に使用する工具39に交換する(使用する
工具39が同じである場合には、該工具交換は行なわな
い。)と共に、該270″′面16eの加工に使用する
工具39の刀先39aを、第20図に示すように、前記
算出されたヘッド補正量を考慮した形で、これから加工
を行なうワーク16の270゜面16eに対応したイニ
シャル面ILPJ上の基準位置P5に、該27Q°面1
6eに距離りを隔てて対向する形で位置決めする。
In step SIO, the main control unit 2 refers to the machining process PR○ of the five-time nib program FPR shown in FIG. 11 and determines whether or not there remains a machining surface to be machined. That is, the five-sided Niprogram FPR shown in FIG.
After the second applying step PR2, the third applying step I-
'R3 is stored, so the third control step PR
3, that is, the 270° surface 16 of the workpiece 16
In order to perform the processing corresponding to the Canadian program number PN○IF 33J for e, the process returns to step S2. In step S2, the processing to be performed from now on, that is, the processing defined in the third machining step PR3, has a sequence number SN.
Since O is "3", it is determined that this is not the first machining for the work 16, and the process proceeds to step Sll, where the machining surface to be machined from now on, that is, the 270° surface 16 of the work 16, is processed.
It is determined that e is not the same as the previous machining surface, that is, the O'' surface 16b of the workpiece 16, and the process proceeds to step S6.In step S6, the tool 39 used for machining the 270° surface 16e of the workpiece 16 is attached After calculating the head correction amount in the same manner as described above, the surface movement subroutine 5UBI is entered and positioning is performed on the initial chamber LPo corresponding to the 0° surface 16b of the workpiece 16, as described below. Replace the tool 39 used for machining the 270° surface 16e of the workpiece 16 with the tool 39 used for machining the 270° surface 16e of the workpiece 16 (if the same tool 39 is used, do not change the tool), and As shown in FIG. 20, the tip 39a of the tool 39 used for machining the surface 16e is adjusted to correspond to the 270° surface 16e of the workpiece 16 to be machined, taking into consideration the calculated head correction amount. The 27Q° plane 1 is placed at the reference position P5 on the initial plane ILPJ.
6e so as to face each other with a distance between them.

即ち、第1−5図に示す面移動サブルーチン5UBIの
ステップS20で、既に述へたように、第11図に示す
5回加エプロクラムF PRに基ついて作成されたフラ
グ表FTをフラグ表メモリ20から読み出し、該読み出
されたフラグ表FT中の面移動番号TN○が「3」であ
る第3フラグステツプFS3の「Iパ」の桁に格納され
ノーフラグFLGを読み込む。次に、ステップS21に
入り、該読み込まれたフラグFLGがどういうものであ
るかを判定し、フラグFLGかワーク16の側面、例え
ば0°面16bからそれ以外の加工面、即ち上面16a
、90°面16c、180°面16d又は270’面1
6eへの移動を示す「Fo→*」(ここで、*はFu、
F□、F7.又はF3)であると判定された場合には、
ステップS29に入り、前述の手順と同様に、該フラグ
F L Gに従って、アダプタヘッド35の次に移動す
べき加工面への移動経gPAs及び駆動軸を設定する。
That is, in step S20 of the plane movement subroutine 5UBI shown in FIGS. 1-5, the flag table FT created based on the 5-time addition program FPR shown in FIG. The no-flag FLG stored in the "I-pa" digit of the third flag step FS3 where the surface movement number TN○ in the read flag table FT is "3" is read. Next, in step S21, it is determined what the read flag FLG is, and whether the flag FLG is the side surface of the workpiece 16, for example, the 0° surface 16b, or the other machining surface, that is, the upper surface 16a.
, 90° plane 16c, 180° plane 16d or 270' plane 1
"Fo → *" indicating movement to 6e (here, * is Fu,
F□, F7. or F3), if it is determined that
Step S29 is entered, and in accordance with the flag FLG, the movement path gPAs and drive axis of the adapter head 35 to the processing surface to be moved next are set, as in the above-described procedure.

第13図に示すフラグ表FTにおいては、当該フラグF
LGは’Fo−I’:+J、即ち加工面がワーク16の
0゜面16bから270°面16eに移行するものと判
定され、第20図に示すように、直前に加工した加工面
であるワーク16のO°面16bにおけるワーク原点W
○等の加工基準位置に対応したイニシャル面ILPo上
の基準位置P6からインデックス面IXPに降ろした垂
線の足を通過点P3と設定し、一方、次に移動すべき加
工面であるワーク16の270°面16eにおけるワー
ク原点WO等の加工基準位置に対応したイニシャル画工
LP、上の基準位置P5からインデックス面IXPに降
ろした垂線の足を通過点P4と設定する。
In the flag table FT shown in FIG.
LG is 'Fo-I': +J, that is, it is determined that the machined surface shifts from the 0° plane 16b of the workpiece 16 to the 270° plane 16e, and as shown in FIG. 20, it is the machined surface that was machined immediately before. Work origin W on O° plane 16b of work 16
The leg of the perpendicular line drawn from the reference position P6 on the initial surface ILPo corresponding to the processing reference position such as ○ to the index surface IXP is set as the passing point P3, and on the other hand, 270 of the workpiece 16, which is the processing surface to be moved next, is set as the passing point P3. The foot of the perpendicular line drawn from the initial painter LP corresponding to the processing reference position such as the work origin WO on the ° plane 16e and the upper reference position P5 to the index plane IXP is set as the passing point P4.

更に、イニシャル面ILP、上の基準位置P6からイン
デックス面IXP上の通過点P3、通過点P4及びイニ
シャル面ILP、上の基準位置P5を順に直線で結ぶ形
で移動経路PASを決定し、それに対応して即動すべき
制御軸を決定する。
Furthermore, a moving route PAS is determined by connecting the initial plane ILP, the upper reference position P6, the passing point P3, the passing point P4, the initial plane ILP, and the upper reference position P5 on the index plane IXP with a straight line in order, and the corresponding movement path is determined. to determine the control axis that should be moved immediately.

こうして、ステップS29で、次に移動すべき加工面へ
の移動経路PAS及び駆動軸が設定されたところで、ス
テップS30に入り、主制御部2はヘッド制御部13に
対して、工具39の上背。
In this way, in step S29, when the movement path PAS and the drive axis to the next processing surface are set, the process proceeds to step S30, and the main control unit 2 instructs the head control unit 13 to .

指令を出力する。これを受けてヘッド制御部13は、駆
動モータ1−8を介して、第20図実線で示すように、
アダプタヘン1〜35に装着された側面加工用の工具3
9の刃先39aが該設定された移動経路P A Sに沿
ってイニシャル面ILP、から矢印E方向にインデック
ス面IXPまで上Hするように、八ツ1−29を矢印E
方向に」二昇させる。
Output the command. In response to this, the head control section 13, via the drive motor 1-8, as shown by the solid line in FIG.
Tool 3 for side processing attached to adapter hens 1 to 35
9. Move the 8tsu 1-29 along the arrow E so that the blade edge 39a of the 9 moves upward from the initial surface ILP in the direction of the arrow E to the index surface IXP along the set movement path PAS.
``in the direction''.

すると、それまでイニシャル面ILPo上の基準位置P
6に矢印C方向に向けて、即ちワーク16のO″面16
bに距離りを隔てて対向する形で位置決めされていた側
面加工用の工具39の刃先39aは、矢印C方向に向い
たまま移動経路P A、 Sに沿ってインデックス面I
XP上の通過点P3に位置決めされる。
Then, until then, the reference position P on the initial plane ILPo
6 in the direction of arrow C, that is, the O'' surface 16 of the workpiece 16.
The cutting edge 39a of the side machining tool 39, which had been positioned so as to be opposed to each other at a distance from b, moves toward the index plane I along the movement path PA, S while facing in the direction of the arrow C.
It is positioned at passing point P3 on XP.

こうして、ステップS30で、直前の加工面であるワー
ク16のO°面16bの加工に使用した工具39の刃先
39aがイニシャル面ILP。
Thus, in step S30, the cutting edge 39a of the tool 39 used for machining the O° surface 16b of the workpiece 16, which is the immediately previous machining surface, is the initial surface ILP.

上の基準位置P6から移動経路PASに沿ってインデッ
クス面IXP上の通過点P3に位置決めされたところて
、ステップS31に入り1次の加工面の加工に使用する
工具39か直前の加工面であるワーク16のO°面16
bの加工に使用した工具39、即ちインデックス面I 
X、 P上の通過点P3に位置決めされている工具39
と同しであるか否かを判定し、直前の加工面の加工に使
用した工具39と同じ工具39てないと判定された場合
には、そのままでは270°面16eの加工を行なうこ
とが出来ないので、ステップS28に入って、工具交換
装置36による自動工具交換を前述の手順と同様に行な
って、第3加ニステップPR,における「ワークNO9
」の桁に加ニブログラム番号PNOとして格納された「
333Jに対応した加工に使用すべき工具39をアダプ
タヘット35の工具把持部35eに装着した後、該工具
39の装着されたアダプタヘッド35を所定の待機位置
に位置決めする。ステップ828での工具交換が完了し
たところで、ステップS23に入り、次の加工面の加工
に使用する工具39の刃先39aを工具交換後の待機位
置からインデックス面IXP上の通過点I) 3に再度
位置決めし、ステップS24で、アダプタヘット35を
矢印M又はN方向に旋回させて、次に移動すべき加工面
に対向する形で工具39の刀先39aをインデックスし
く但し、フラグFL’GがrFo→FIIJ、即ち加工
面かワーク16のO″面16bから」二面16aに移行
するものと判定された場合には、工具39は既に、第3
図想像線で示すように、アダプタヘッド35の下面の工
具把持部3bdに刀先39aを矢印F方向、即ち今回の
加工面であるワーク16の上面」。
When the tool 39 is positioned from the reference position P6 above to the passing point P3 on the index plane IXP along the movement path PAS, the process proceeds to step S31, where the tool 39 used for machining the first machining surface is the immediately previous machining surface. O° surface 16 of workpiece 16
Tool 39 used for machining b, i.e. index surface I
Tool 39 positioned at passing point P3 on X, P
If it is determined that the tool 39 is not the same as the tool 39 used for machining the immediately previous machined surface, the 270° surface 16e cannot be machined as is. Therefore, the process goes to step S28, where the automatic tool change by the tool change device 36 is performed in the same manner as the above-mentioned procedure, and the "workpiece No. 9" in the third cutting step PR is changed.
” digit stored as the Canadian program number PNO.
After the tool 39 to be used for processing corresponding to 333J is attached to the tool gripping portion 35e of the adapter head 35, the adapter head 35 with the tool 39 attached is positioned at a predetermined standby position. When the tool exchange in step 828 is completed, step S23 is entered, and the cutting edge 39a of the tool 39 used for machining the next machined surface is moved from the standby position after the tool exchange to the passing point I) 3 on the index plane IXP again. After positioning, in step S24, the adapter head 35 is rotated in the direction of arrow M or N, and the tip 39a of the tool 39 is indexed so as to face the surface to be machined next. →FIIJ, that is, when it is determined that the machining surface shifts from the O'' surface 16b of the workpiece 16 to the O'' surface 16a, the tool 39 has already moved to the third
As shown by the imaginary line in the figure, the tip 39a is attached to the tool gripping portion 3bd on the lower surface of the adapter head 35 in the direction of arrow F, that is, the upper surface of the workpiece 16, which is the current machining surface.

6aに向けて装着された形でインデックス面IXPに位
置決めされているので、該アダプタヘッド35の矢印M
又はN方向の旋回動作を行なう必要はない。)、更にス
テップS25で、前述の手順と同様に、前記設定された
移動経路PAS及び駆動軸に基づいて、工具39の刀先
39aを今回の加工面に対応したイニシャル面ILP上
の基準位置P5に位置決めする。第13図に示すフラグ
表FTにおいては、当該フラグFLGは’ F n−+
F 3 J、即ち加工面がワーク16の0°面16bか
ら270’面16eに移行するものと判定され、主制御
部2はテーブル制御部11、サドル制御部12及びヘッ
ド制御部13に対して、工具39の通過点P4への移動
指令を出力する。これを受けてテーブル制御部11は、
駆動モータ14を介してテーブル23をX軸方向へ移動
させると共に、サドル制御部12は駆動モータ15を介
してヘット29をY軸方向へ移動させて、第20図実線
で示すように、工具39の刀先39aをインデックス面
IXP上の通過点P3から前記設定された移動経路PA
Sに沿って、即ち最短経路でインデックス面IXP上の
通過点P4までインデックス面IXP上を移動させる。
6a and is positioned on the index surface IXP, so that the arrow M of the adapter head 35
Alternatively, there is no need to perform a turning operation in the N direction. ), and further in step S25, similarly to the above-described procedure, based on the set movement path PAS and drive axis, the cutting edge 39a of the tool 39 is moved to a reference position P5 on the initial surface ILP corresponding to the current machining surface. position. In the flag table FT shown in FIG. 13, the flag FLG is 'F n-+
F 3 J, that is, it is determined that the machining surface shifts from the 0° surface 16b of the workpiece 16 to the 270' surface 16e, and the main controller 2 controls the table controller 11, saddle controller 12, and head controller 13. , outputs a movement command for the tool 39 to the passing point P4. In response to this, the table control unit 11
The table 23 is moved in the X-axis direction via the drive motor 14, and the saddle control unit 12 moves the head 29 in the Y-axis direction via the drive motor 15, so that the tool 39 is moved as shown by the solid line in FIG. The knife tip 39a is moved from the passing point P3 on the index plane IXP to the set movement path PA.
The index plane IXP is moved along S, that is, along the shortest route, to a passing point P4 on the index plane IXP.

こうして、アダプタヘッド35の角度位置を保持した状
態で、工具39の刃先39aがインデックス画工XP上
の通過点P4、即ちイニシャル面ILP3上方に到達し
たところで、主制御部2はヘッド制御部13に対して、
イニシャル面ILP、上の基準位置P5への移動指令を
出力する。これを受けてヘッド制御部13は、駆動モー
タ18を介して、アダプタヘッド35の角度位置を保持
した状態で、第20図実線で示すように、工具39の刀
先39aがインデックス面IXP上の通過点P4から矢
印F方向に前記設定された移動経路PASに沿ってイニ
シャル面I LP3上の基準位置P5まで8動するよう
に、へy[く29を矢印F方向に降下させる。すると、
工具39の刃先39aは、第20図実線で示すように、
イニシャル面ILP、上の基41位MP5に該イニシャ
ル面ILP3に垂直に、即ちワーク16の270°面1
6eに距離りを隔てて対向する形で位置決めされる。
In this way, while maintaining the angular position of the adapter head 35, when the cutting edge 39a of the tool 39 reaches the passage point P4 on the index painter XP, that is, above the initial surface ILP3, the main control section 2 controls the head control section 13. hand,
A movement command to the reference position P5 on the initial plane ILP is output. In response to this, the head control unit 13 uses the drive motor 18 to maintain the angular position of the adapter head 35, and as shown by the solid line in FIG. The machine 29 is lowered in the direction of the arrow F so as to move from the passing point P4 in the direction of the arrow F along the set moving path PAS to the reference position P5 on the initial surface ILP3. Then,
The cutting edge 39a of the tool 39 is as shown by the solid line in FIG.
Initial plane ILP, perpendicular to the initial plane ILP3 at the upper base 41 position MP5, that is, 270° plane 1 of the workpiece 16.
6e, and are positioned facing each other with a distance between them.

一方、ステップS3]での判定の結果、次の加工面の加
工に使用する工具39が直前の加工面であるワーク16
のO°面16bの加工に使用した工具39、即ちインデ
ックス面IX、P上の通過点P3に位置決めさ九でいる
工具39と同しであると判定された場合には、加工面の
移動に伴なって工具交換する必要かないので、ステップ
S 24に入り、アダプタヘッド35を直前の加工面で
あるワーク16の0°面16bの加工に使用した工具3
9と共に矢印M又はN方向に旋回させて、次に移動すべ
き加工面に対向する形で該工具39の刀先39aをイン
デックスし、更にステップS25で、前述の手順と同様
に、工具39の刀先39aを前記設定された移動経路P
ASに沿って移動させて、今回の加工面に対応したイニ
シャル面ILP上の基準位置P5に、該加工面に距RL
を隔てて対向する形で位置決めする。
On the other hand, as a result of the determination in step S3], the tool 39 to be used for machining the next machining surface is the workpiece 16 that is the previous machining surface.
If it is determined that the tool 39 used for machining the O° plane 16b is the same as the tool 39 positioned at the passing point P3 on the index plane IX, P, Since there is no need to change the tool accordingly, the process proceeds to step S24, and the adapter head 35 is replaced with the tool 3 used for machining the 0° surface 16b of the workpiece 16, which is the immediately previous machining surface.
9 in the direction of the arrow M or N to index the cutting edge 39a of the tool 39 in a manner facing the processing surface to be moved next, and further in step S25, similarly to the above-mentioned procedure, the tool 39 is rotated in the direction of the arrow M or N. The sword tip 39a is moved along the set movement path P.
AS, and move it to the reference position P5 on the initial surface ILP corresponding to the current machining surface, and set the distance RL to the machining surface.
Position them so that they face each other with the two sides in between.

なお、第15図に示す面移動サブルーチン5UBIのス
テップS21でのフラグ判定において。
Note that in the flag determination in step S21 of the surface movement subroutine 5UBI shown in FIG.

フラグFLGがワーク16の90°面16cからそれ以
外の加工面、即ち上面16a、0°面16b、1806
面lad又は270’面16eへの移動を示す「F□→
*」(ここで、*はFU、F、、F2又はF3)、ワー
ク1Gの180°面16dからそわ以外の加工面、即ち
上面16a、O’面]−6b、900面16c又は27
0’面16eへの移動を示す「F2→*」(ここで、*
はFo、Fo、F□又はF3)或いは、ワーク16の2
70°面16eからそれ以外の加工面、即ち上面16a
、00面16b、900面16c又は180’面16d
への移動を示す「F3→木」 (ここで、*はF (+
、Fo、 F、又はFz )であると判定された場合に
も、上述のフラグF L GかFFo→、k」 (ここ
で、才はFU、F、、F2又はF、)であると判定され
た場合と同様の処理手順により、各加工面16c、16
d又は」−60から工具39の刃先39aを今回、即ち
これから加工する加工面に対応したイニシャル面ILP
における所定の基準位置P5に、該加工面に距離りを隔
てて対向する形で位置決めする。
The flag FLG is set from the 90° surface 16c of the workpiece 16 to other machining surfaces, that is, the upper surface 16a, the 0° surface 16b, and 1806.
"F□→" indicating movement to plane lad or 270' plane 16e
*" (here, * is FU, F,, F2 or F3), the machined surface other than the warp from the 180° surface 16d of the workpiece 1G, i.e. the upper surface 16a, O' surface] -6b, 900 surface 16c or 27
"F2→*" indicating movement to 0' plane 16e (here, *
is Fo, Fo, F□ or F3) or work 16-2
Processing surfaces other than the 70° surface 16e, that is, the upper surface 16a
, 00 plane 16b, 900 plane 16c or 180' plane 16d
"F3 → Tree" indicating movement to (here, * is F (+
, Fo, F, or Fz), the above-mentioned flag FLG or FFo→,k'' (here, the value is determined to be FU, F,, F2, or F). Each machined surface 16c, 16
d or "-60 to the cutting edge 39a of the tool 39 this time, that is, the initial surface ILP corresponding to the surface to be machined from now on.
It is positioned at a predetermined reference position P5 in such a manner that it faces the processing surface at a distance.

こうして1面移動サブルーチン5UBIて、工具39の
刃先398がワーク16の2700面16eに対応した
イニシャル面ILP、上の基準位置P5に、該270゛
面16eに距離りを隔てて対向する形で位置決めされた
ところで、第14図に示すユニット処理プログラムUP
PのステップS7に入り、前述の手順と同様に、第11
図に示す5面加ニブログラムFPRの第3加ニステツプ
PR3における[ワークNo、Jの桁に加ニブログラム
番号PNOとして格納さ九たr333Jに対応した加ニ
ブログラムに基づいて、工具経路の算出を行なう。
In this way, by the one-plane movement subroutine 5UBI, the cutting edge 398 of the tool 39 is positioned at the reference position P5 on the initial plane ILP, which corresponds to the 2700° plane 16e of the workpiece 16, in such a manner that it faces the 270° plane 16e at a distance. When the unit processing program UP shown in FIG.
Step S7 of P is entered, and the 11th
In the third machining step PR3 of the five-sided machining program FPR shown in the figure, the tool path is calculated based on the machining program number PNO stored in the digit J of the five-sided machining program FPR corresponding to r333J.

なお、第14図に示すユニット処理プログラムUPPの
ステップ、S11での判定において、これから加工する
加工面が前回の加工面と同じであると判定された場合に
は、アダプタヘッド35の面移動動作及び旋回動作を行
なう必要がないので、ステップS12に入って、前回と
同じ工具3つであるか否かを判定し、前回と同じ工具3
9であると判定された場合には、ステップS7に入り、
方前回と同し工具39てないと判定さ九た場合には、ス
テップ813に入って、工具交換装置36による自動工
具交換を前述の手順と同様に行なった後、ステップS7
に入り、工具経路の算出に移行する。
Incidentally, in the determination at step S11 of the unit processing program UPP shown in FIG. 14, if it is determined that the surface to be machined from now on is the same as the previously machined surface, the surface movement operation of the adapter head 35 and Since there is no need to perform a turning operation, the process proceeds to step S12, where it is determined whether or not the same three tools as last time are used, and the same three tools as last time are used.
If it is determined that the number is 9, the process goes to step S7.
If it is determined that the same tool 39 as before is not present, the process proceeds to step 813, where the tool changer 36 performs automatic tool change in the same manner as described above, and then step S7
and moves on to calculating the tool path.

こうして、ステップS7で、工具経路の算出が行なわれ
たところで、ステップS8に入り、既に述べたように、
主制御部2は座標変換部42に対して、機械座標系とこ
れから加工動作の行なわ九る加工面、即ちワーク16の
270°面16eに設定さ九たプログラム座標系との間
で座標変換動作を指令する。これを受けて座標変換部4
2は座標変換動作を行ない、第11図に示す5面別ニブ
ログラムFPRの第3加ニステップPR,におけるrE
FR−No、Jの桁に基本座標番号FNOとして格納さ
れた「3」により設定されたプログラム座標系を基準に
プログラムされた加工プロクラムを5面加工機1が実行
可能な機械座標系に変換する。
In this way, after the tool path has been calculated in step S7, step S8 is entered, and as already mentioned,
The main control unit 2 causes the coordinate conversion unit 42 to perform a coordinate conversion operation between the machine coordinate system and the program coordinate system set at the machining surface where the machining operation will be performed from now on, that is, the 270° surface 16e of the workpiece 16. command. In response to this, the coordinate transformation unit 4
2 performs a coordinate conversion operation, and rE at the third step PR of the five-sided nib program FPR shown in FIG.
The machining program programmed based on the program coordinate system set by "3" stored as the basic coordinate number FNO in the FR-No and J digits is converted into a machine coordinate system that can be executed by the five-face processing machine 1. .

こうして、ステップS8で、座標変換動作が行なわれた
ところで、ステップS9に入り、主制御部2は、5回加
ニブログラムF P Rの第3加ニステップPR,にお
ける「ワークNo、Jの桁に加ニブログラム番号P N
 Oとして格納された「333」に対応した単一面加工
プログラム○PRを加ニブログラムメモリ9から読み出
し、該読み出された単一面加工プロクラムOPRに基づ
いて加工動作を開始するように、テーブル制御部11、
サドル制御部12及びヘット制御部13に対して指令す
る。これを受けてテーブル制御部11.サ1〜ル制御部
12及びヘット制御部13は、該単一面加工プログラム
OPRに基づき各駆動モータ14.15.18を駆動し
て、工具39の刀先39aを前記算出された工具経路に
治って移動させて、ワーク16の270°面16eに対
する所定の加工動作を行ない、該加工動作終了後、工具
39の刀先39aを当該270°面16eに対応したイ
ニシャル面ILP、における基準位置P5に位置決めす
る。
In this way, after the coordinate conversion operation has been performed in step S8, the main control unit 2 enters step S9, and in the third step PR of the five-time program FPR, Canadian program number P N
Table control is performed so that the single-face machining program ○PR corresponding to "333" stored as O is read from the machine program memory 9, and the machining operation is started based on the read single-face machining program OPR. Part 11,
A command is given to the saddle control section 12 and the head control section 13. In response to this, the table control unit 11. The tool control unit 12 and the head control unit 13 drive each drive motor 14, 15, and 18 based on the single-face machining program OPR to fix the tip 39a of the tool 39 on the calculated tool path. to perform a predetermined machining operation on the 270° surface 16e of the workpiece 16, and after completing the machining operation, move the tip 39a of the tool 39 to the reference position P5 on the initial surface ILP corresponding to the 270° surface 16e. Position.

こうして、ステップS9で、ワーク16の270′″面
16eに対する加工が終了し、該270°面16eの加
工に使用した工具39の刃先39aが当該270°面1
6eに対応したイニシャル面ILP、における基準位置
P5に位置決めされたところで、ステップS10に入り
、主制御部2は、第11図に示す5面別ニブログラムF
PRの加工プロセスPR○を参照して、加工すべき加工
面が残っているか否かを判定する。
In this way, in step S9, the machining of the 270'' surface 16e of the workpiece 16 is completed, and the cutting edge 39a of the tool 39 used for machining the 270° surface 16e is aligned with the 270° surface 16e.
When the initial plane ILP corresponding to 6e is positioned at the reference position P5, step S10 is entered, and the main control unit 2 moves the 5-sided nib program F shown in FIG.
Referring to the machining process PR○ of PR, it is determined whether or not there remains a machining surface to be machined.

このようにして、第11図に示す5回加ニブログラムF
 P Rの加工プロセスPRO内に格納された加ニステ
ップPRで定義された加工を、該加ニステップPRのシ
ーケンス番号SN○に基づいて順次実行していき、最後
の加ニステップPRで定義された加工が終了し、該最終
加工面の加工に使用した工具39の刀先39aが当該最
終加工面に対応したイニシャル面I L Pにおける基
準位置P5に位置決めされたところで、ステップS10
に入り、加工すべき加工面は残っていないと判定され、
ユニソI〜処理プログラムUPPは終了して、ワーク1
6の5面加工が完了する。
In this way, the five-time addition program F shown in FIG.
The machining defined in the crab step PR stored in the machining process PRO of PR is executed sequentially based on the sequence number SN○ of the crab step PR, and the machining defined in the last crab step PR is executed. When the machining is completed and the tip 39a of the tool 39 used for machining the final machined surface is positioned at the reference position P5 on the initial surface ILP corresponding to the final machined surface, step S10
It is determined that there is no machining surface left to be machined,
Uniso I~Processing program UPP is finished and work 1
The 5-sided machining in step 6 is completed.

(g)1発明の詳細 な説明したように、本発明によれば、工具39に対して
互いに直交する、矢印A、B方向及び矢印C,D方向等
の水平2方向に相対的に移動自在に支持されたチーフル
23及び工具39が着脱自在に装着されるヘッド29、
アダプタへソ)〜35等の工具装着手段を有し、前記テ
ーブル23上に搭載されたワーク1Gの上面16a及び
0″′面16b、90″面16c、180″面16d、
2700面16e等の側面を加工し得る5面加工機1に
おいて、加工すべきワーク16の上面16a、00面1
6b、90’面16c、180”面16d、270°面
16e等の複数の加工面に該加工面より所定距離り離れ
た形でイニシャル面■LPをそれぞれ設定し、前記ワー
ク16の上部加工面168に対応したイニシャル面IL
PUから所定距離ワーク16外方に煎れた位置にインデ
ックス面IX、Pを設定し、前記工具装着手段が面移動
する際に、直前に加工を行なった加工面に対応して設定
された前記イニシャル面ILP、前記設定されたインデ
ックス画工XP及びこれから加工すべき加工面に対応し
て設定された前記イニシャル面ILPを順次結ぶ形で移
動経路PASを設定し、該設定された移動経路PASに
沿って工具39の刀先39aを移動させるように制御し
て構成したので、ワーク16の5面加工等の複数面加工
に際して、加工面間の工具の面間移動がワーク16より
所定距離離乳た形で設定されたイニシャル面ILP、イ
ンデックス面IXPに沿って行なわれることがら、工具
39の刀先39aをワーク16に干渉しない形で移動さ
せることが可能となり、作業者はISO或いはEIA等
のコー1〜による煩雑な面移動プログラムを作成する必
要がなくなる。
(g) According to the present invention, the tool 39 is movable relative to the tool 39 in two horizontal directions, such as the directions of arrows A and B and the directions of arrows C and D, which are perpendicular to each other. a head 29 on which a chiffle 23 supported by and a tool 39 are removably attached;
The upper surface 16a of the workpiece 1G mounted on the table 23, the 0'' surface 16b, the 90'' surface 16c, the 180'' surface 16d,
In a five-sided processing machine 1 that can process side surfaces such as a 2700 surface 16e, the upper surface 16a of the workpiece 16 to be processed, and the 00 surface 1
6b, 90' plane 16c, 180'' plane 16d, 270° plane 16e, etc., initial planes LP are set at a predetermined distance from the machined surfaces, and the upper machined surface of the workpiece 16 is Initial surface IL compatible with 168
Index planes IX and P are set at a position that is a predetermined distance outward from the workpiece 16 from PU, and when the tool mounting means moves, the initial plane is set corresponding to the machined surface that was machined immediately before. A moving path PAS is set by sequentially connecting the surface ILP, the set index painter XP, and the initial surface ILP set corresponding to the surface to be machined from now on, and along the set moving path PAS. Since the tip 39a of the tool 39 is controlled to move, when performing multi-face machining such as five-face machining of the workpiece 16, the tool can be moved between the machined surfaces by a predetermined distance away from the workpiece 16. Since the movement is performed along the set initial plane ILP and index plane IXP, it is possible to move the tip 39a of the tool 39 without interfering with the workpiece 16, and the operator can move the tip 39a of the tool 39 without interfering with the workpiece 16. There is no need to create a complicated surface movement program.

従って、ワーク16の加工の段取り手間を大幅に省略し
、面移動プログラムの作成ミスを解消することが可能と
なる。
Therefore, it is possible to greatly reduce the preparation time and effort for machining the workpiece 16, and eliminate mistakes in creating the surface movement program.

また、本発明によれば、加工すべきワーク16の上面1
6a、O’面16b、90″′面16c、180°面1
6d、270°面16e等の複数の加工面に該加工面よ
り所定距離り離れた形でイニシャル面ILPをそれぞれ
設定し、前記ワーク16の上部加工面16aに対応した
イニシャル画工L P uから所定距離ワーク16外方
に離れた位置にインデックス面IXPを設定し、互いに
異なる方向を向いた加工面間の面移動を行なう際に、直
前に加工を行なった加工面に対応して設定された前記イ
ニシャル面ILP、前記設定されたインデックス面IX
P及びこれから加工すべき加工面に対応して設定された
前記イニシャル面NLPを順=71− 次結ぶ形で移動経路PASを設定し、該設定さ九た移動
経路PASに沿って工具39の刃先39aを移動させる
と共に、前記インデックス面IXP上で、前記工具装着
手段をこれから加工すべき加工面に前記工具39の刃先
39aが対向するように前記ワーク16に対して相対的
に旋回させるように制御して構成したので、ワーク16
の5面加工等の複数面加工に際して、互いに異なる方向
を向いた加工面間の工具の面間移動がワーク16より所
定距離前れた形で設定されたイニシャル画工LP、イン
デックス面IXPに沿って行なわれ。
Further, according to the present invention, the upper surface 1 of the workpiece 16 to be machined
6a, O' plane 16b, 90'' plane 16c, 180° plane 1
Initial planes ILP are set on a plurality of machined surfaces such as 6d and 270° planes 16e at a predetermined distance from the machined surfaces, and initial planes ILP are set at a predetermined distance from the initial plane L P u corresponding to the upper machined surface 16a of the workpiece 16. The index plane IXP is set at a position away from the distance work 16, and when performing surface movement between machined surfaces facing in different directions, the index plane IXP is set corresponding to the machined surface that was machined immediately before. Initial plane ILP, the set index plane IX
A movement path PAS is set by connecting P and the initial surface NLP set corresponding to the surface to be machined from now on in order = 71-next, and the cutting edge of the tool 39 is set along the set movement path PAS. 39a, and control the tool mounting means to rotate relative to the workpiece 16 on the index plane IXP so that the cutting edge 39a of the tool 39 faces the surface to be machined. Work 16
When performing multi-face machining such as five-face machining, the inter-face movement of the tool between machining surfaces facing different directions is performed along the initial painter LP and index plane IXP, which are set to be a predetermined distance ahead of the workpiece 16. Be done.

更に工具保持手段のインデックス動作が前記インデック
ス面IXP上で行なわわることから、工具39の刃先3
9aをワーク16に干渉しない形で移動させることが可
能となり、作業者はISO或いはEIA等のコードによ
る煩雑な面移動プログラムを作成する必要がなくなる。
Furthermore, since the indexing operation of the tool holding means is performed on the indexing surface IXP, the cutting edge 3 of the tool 39
It becomes possible to move the workpiece 9a without interfering with the workpiece 16, and the operator does not need to create a complicated surface movement program using codes such as ISO or EIA.

従って、ワーク16の加工の段取り手間を大幅に省略し
、面移動プログラムの作成ミスを解消することが可能と
なる。
Therefore, it is possible to greatly reduce the preparation time and effort for machining the workpiece 16, and eliminate mistakes in creating the surface movement program.

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

第1図は本発明による加工制御方法の一実施例が適用さ
れた5面加工機の一例を示す斜視図、第2図は第1図に
示す5面加工機のヘット移送装置部分の拡大図。 第3図は第1図に示す5面加工機のアダプタヘット部分
の拡大図、 第4図は第3図に示すアダプタ八ツ1〜の■欠視図、 第5図は第1図に示す5面加工機の数値制御装置部分を
示す制御ブロック図、 第6図乃至第10図はアダプタ八ツ1〜の交換態様を示
す図、 第11図は5面移動プログラムの一例を示す図、 第12図は第1図に示す5面加工機の機械座標系とワー
クの各加工面におけるプログラム座標系との関係を示す
図、 第13図はフラグ表の一例を示す図。 第14図はユニット処理プログラムの一例を示すフロー
チャート、 第15図は面移動サブルーチンの一例を示すフローチャ
ート、 第16図はイニシャル面及びインデックス面の一例を示
す立面図、 第17図はワークの270°面への面移動の際の工具の
刃先の経路の一例を示す斜視図、第18図はワークの上
面への面移動の際の工具の刃先の経路の一例を示す斜視
図、 第19図はワークの上面からO°面への面移動の際の工
具の刃先の経路の一例を示す斜視図、第20図はワーク
の06面から270°面への面移動の際の工具の刃先の
経路の一例を示す斜視図である。 1・・・・・5面加工機 16・・・・・・ワーク 16a・・ 加工面(上面) 16b・・・・・加工面(0°面) 16c  ・加工面(90°面) 16d   加工面(180°面) 16 e −加工面(270’面) 23・ テーブル 29・・ 工具装着手段(八ツ1−) 35・・ 工具装着手段(アタプタヘット)39・ 工
具 39a   ・刃先 IXP ・インデックス面 ILP・・・・イニシャル面 PAS・ ・移動経路 L・・・・・・所定距離 出願人  ヤマザキマサック株式会社 代理人   弁理士   相1)伸二 IXP ILP3.(ニシセIし0■
FIG. 1 is a perspective view showing an example of a five-sided processing machine to which an embodiment of the processing control method according to the present invention is applied, and FIG. 2 is an enlarged view of the head transfer device portion of the five-sided processing machine shown in FIG. 1. . Fig. 3 is an enlarged view of the adapter head part of the five-sided processing machine shown in Fig. 1, Fig. 4 is a partially cutaway view of adapter 81~ shown in Fig. 3, and Fig. 5 is shown in Fig. 1. A control block diagram showing the numerical control device part of the 5-face machining machine; Figs. 6 to 10 are diagrams showing how to replace adapters 1 to 8; Fig. 11 is a diagram showing an example of a 5-face movement program; FIG. 12 is a diagram showing the relationship between the machine coordinate system of the five-face machining machine shown in FIG. 1 and the program coordinate system for each machining surface of the workpiece, and FIG. 13 is a diagram showing an example of a flag table. FIG. 14 is a flowchart showing an example of a unit processing program, FIG. 15 is a flowchart showing an example of a surface movement subroutine, FIG. 16 is an elevational view showing an example of the initial surface and index surface, and FIG. 17 is a 270-degree view of the workpiece. FIG. 18 is a perspective view showing an example of the path of the cutting edge of the tool when moving the surface to the top surface of the workpiece; FIG. 20 is a perspective view showing an example of the path of the cutting edge of the tool when moving from the upper surface of the workpiece to the 0° plane, and FIG. It is a perspective view showing an example of a route. 1... 5-sided processing machine 16... Workpiece 16a... Processed surface (top surface) 16b... Processed surface (0° surface) 16c - Processed surface (90° surface) 16d Processed Surface (180° surface) 16 e - Machining surface (270' surface) 23. Table 29... Tool mounting means (Yatsu 1-) 35. Tool mounting means (adapter head) 39. Tool 39a. Cutting edge IXP. Index surface. ILP... Initial surface PAS... Travel route L... Predetermined distance Applicant Yamazaki Masac Co., Ltd. Agent Patent attorney Phase 1) Shinji IXP ILP3. (NishiseIshi0■

Claims (2)

【特許請求の範囲】[Claims] (1)、工具に対して互いに直交する水平2方向に相対
的に該動自在に支持されたテーブル及び工具が着脱自在
に装着される工具装着手段を有し、前記テーブル上に搭
載されたワークの上面 及び側面を加工し得る5面加工機において、加工すべき
ワークの複数の加工面に該加工 面より所定距離離れた形でイニシャル面をそれぞれ設定
し、 前記ワークの上部加工面に対応したイニシャル面から所
定距離ワーク外方に離れた位置にインデックス面を設定
し、 前記工具装着手段が面移動する際に、直前に加工を行な
った加工面に対応して設定された前記イニシャル面、前
記設定されたインデックス面及びこれから加工すべき加
工面に対応して設定された前記イニシャル面を順次結ぶ
形で移動経路を設定し、該設定された移動経路に沿って
工具の刃先を移動させるように制御して構成した5面加
工機における加工制御方法。
(1) A table movably supported relative to the tool in two horizontal directions orthogonal to each other, and a tool mounting means on which the tool is detachably mounted, and a workpiece mounted on the table. In a five-sided machining machine capable of machining the top and side surfaces, an initial surface is set on a plurality of machining surfaces of a workpiece to be machined at a predetermined distance from the machining surface, and corresponds to the top machining surface of the workpiece. An index surface is set at a position a predetermined distance outward from the workpiece from the initial surface, and when the tool mounting means moves the surface, the initial surface is set corresponding to the machining surface that was machined immediately before, A movement path is set by sequentially connecting the set index surface and the initial surface set corresponding to the processing surface to be machined from now on, and the cutting edge of the tool is moved along the set movement path. A machining control method in a five-sided machining machine configured to control.
(2)、工具に対して互いに直交する水平2方向に相対
的に移動自在に支持されたテーブル及び工具が着脱自在
に装着される工具装着手段を有し、前記テーブル上に搭
載されたワークの上面 及び側面を加工し得る5面加工機において、加工すべき
ワークの複数の加工面に該加工 面より所定距離離れた形でイニシャル面をそれぞれ設定
し、 前記ワークの上部加工面に対応したイニシャル面から所
定距離ワーク外方に離れた位置にインデックス面を設定
し、 互いに異なる方向を向いた加工面間の面移動を行なう際
に、直前に加工を行なった加工面に対応して設定された
前記イニシャル面、前記設定されたインデックス面及び
これから加工すべき加工面に対応して設定された前記イ
ニシャル面を順次結ぶ形で移動経路を設定し、該設定さ
れた移動経路に沿って工具の刃先を移動させると共に、
前記インデックス面上で、前記工具装着手段をこれから
加工すべき加工面に前記工具の刃先が対向するように前
記ワークに対して相対的に旋回させるように制御して構
成した5面加工機における加工制御方法。
(2) A table supported movably relative to the tool in two horizontal directions orthogonal to each other, and a tool mounting means on which the tool is detachably mounted, and a workpiece mounted on the table is provided. In a five-sided machining machine capable of machining the top and side surfaces, an initial surface is set on each of a plurality of machining surfaces of a workpiece to be machined at a predetermined distance from the machining surface, and an initial surface corresponding to the top machining surface of the workpiece is set. An index surface is set at a position a predetermined distance away from the surface of the workpiece, and when moving between surfaces facing different directions, the index surface is set to correspond to the surface that was machined immediately before. A movement path is set by sequentially connecting the initial surface, the set index surface, and the initial surface set corresponding to the machining surface to be machined, and the cutting edge of the tool is moved along the set movement path. Along with moving the
Machining in a five-sided machining machine configured to control the tool mounting means to rotate relative to the work on the index surface so that the cutting edge of the tool faces the surface to be machined. Control method.
JP1091448A 1989-04-11 1989-04-11 Machining control method in 5-face machining machine Expired - Lifetime JP2918902B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1091448A JP2918902B2 (en) 1989-04-11 1989-04-11 Machining control method in 5-face machining machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1091448A JP2918902B2 (en) 1989-04-11 1989-04-11 Machining control method in 5-face machining machine

Publications (2)

Publication Number Publication Date
JPH02269541A true JPH02269541A (en) 1990-11-02
JP2918902B2 JP2918902B2 (en) 1999-07-12

Family

ID=14026646

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1091448A Expired - Lifetime JP2918902B2 (en) 1989-04-11 1989-04-11 Machining control method in 5-face machining machine

Country Status (1)

Country Link
JP (1) JP2918902B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59124544A (en) * 1982-12-29 1984-07-18 Mitsubishi Electric Corp Method of machining under numerical control
JPS61286905A (en) * 1985-06-14 1986-12-17 Hitachi Seiki Co Ltd Coordinate axis automatic conversion device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59124544A (en) * 1982-12-29 1984-07-18 Mitsubishi Electric Corp Method of machining under numerical control
JPS61286905A (en) * 1985-06-14 1986-12-17 Hitachi Seiki Co Ltd Coordinate axis automatic conversion device

Also Published As

Publication number Publication date
JP2918902B2 (en) 1999-07-12

Similar Documents

Publication Publication Date Title
JPS59124544A (en) Method of machining under numerical control
JPS60207746A (en) Multiface machine tool
JPH02269541A (en) Working control method in five planes working machine
JP4531297B2 (en) 6-axis control NC program generation method and generation apparatus, 6-axis control NC program generation program, and computer-readable recording medium storing the program
JP2000141164A (en) Numerical control method and device
JPH0482641A (en) Tool changing device of machine tool
JPH10143213A (en) Multi-surface working machine and multi-surface working method
JP2882534B2 (en) Turning center tool calling device Built-in numerical controller
JPH05305540A (en) Tool exchange method for working device
JP4341118B2 (en) Tool changing device and tool changing method
JP3064043B2 (en) Machining method in which workpiece deformation due to clamp is corrected, and NC machine tool for implementing the method
JPH06312347A (en) Nc machine tool
JPH03288910A (en) Teaching method for cast finishing robot
JP4661494B2 (en) Numerical controller
JPH03190602A (en) Numerically controlled composite lathe
EP3781343A1 (en) Method of indicating processing steps and processing machine
JPH02224928A (en) Composite work device and work method thereof
JP2843180B2 (en) Group management control method
JPH0739069B2 (en) Numerical control machine tool
JPH0744215A (en) Method and device for controlling feed axis of machine tool
JPH01228693A (en) Laser beam machine provided with teaching function
JPH05204419A (en) Controller for returning to original point of country loader
JP2841364B2 (en) Processing device positioning method
JPH0262603A (en) Working control method and controller for double spindle machine tool
JPH05158515A (en) Offset correcting method for nc cutting machine with tool turning shaft

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090423

Year of fee payment: 10

EXPY Cancellation because of completion of term