JPH07285049A - Method and device for editing nc data - Google Patents

Method and device for editing nc data

Info

Publication number
JPH07285049A
JPH07285049A JP8062094A JP8062094A JPH07285049A JP H07285049 A JPH07285049 A JP H07285049A JP 8062094 A JP8062094 A JP 8062094A JP 8062094 A JP8062094 A JP 8062094A JP H07285049 A JPH07285049 A JP H07285049A
Authority
JP
Japan
Prior art keywords
data
tool
tool number
number command
editing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8062094A
Other languages
Japanese (ja)
Inventor
Takeomi Kikuchi
武臣 菊地
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.)
Hitachi Seiki Co Ltd
Original Assignee
Hitachi Seiki Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Seiki Co Ltd filed Critical Hitachi Seiki Co Ltd
Priority to JP8062094A priority Critical patent/JPH07285049A/en
Publication of JPH07285049A publication Critical patent/JPH07285049A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide an NC data editing device capable of automatically editing a plurality of NC data to one by a simple operation even when an operator is not so knowledgeable about NC data making, its operation and its editing operation in a case where a plurality of NC data are edited as one. CONSTITUTION:An NC data editing method is for editing a plurality of NC data made to process one or more articles to be processed to one in order to perform processing on the same machine tool. This method comprises a step (S5) for sequentially extracting tool number command data from the lead program of the NC data with respect to each NC data from the plurality of NC data, a step (S6) for comparing the tool number command data thereof and lumping the same tool number having similar processing steps together to one and editing process steps (S8 and S9) for rearraying the NC data for each tool number command data in order of the lumped together tool number command data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は異種ワーク(被加工
物)または同一ワークの表裏加工を同時に加工できるよ
うに複数のNCデータを自動編集処理するNCデータ編
集装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an NC data editing apparatus for automatically editing a plurality of NC data so that different kinds of workpieces (workpieces) or front and back processing of the same workpiece can be simultaneously processed.

【0002】[0002]

【従来の技術】異種ワークの各々の加工用NCデータを
用いて1本のNCデータに編集し、異種ワークを同時に
加工する場合がある。例えば、異種ワークW1 ,W2
3 ,W4 (図10参照)のそれぞれを個別に加工する
NCデータが既に作成されてあって、立形マシニングセ
ンタのテーブルB上またはテーブル上に位置決めされた
パレットPの所定の位置に位置決めされた異種ワークW
1 ,W2 ,W3 ,W4 を加工する場合、異種ワークそれ
ぞれのNCデータを用いて加工するより1本のNCデー
タに編集して加工するほうが、加工時間の短縮が図れる
ためのNCデータの編集を行う。かかる場合の従来の編
集作業は、各NCデータをCRT画面に表示させ、この
NCデータを参照しながら、作業者自身が新しいプログ
ラムの中で使用工具毎、加工方法毎にNCデータをまと
めたり、所定の加工プログラムをサブプログラムに指定
したり、前記各NCデータの不要部分を削除したりして
1本のNCデータに編集する。
2. Description of the Related Art In some cases, NC data for machining different kinds of workpieces are edited into one NC data, and different kinds of workpieces are simultaneously processed. For example, different kinds of works W 1 , W 2 ,
NC data for individually processing each of W 3 and W 4 (see FIG. 10) has already been created and is positioned at a predetermined position on the table B of the vertical machining center or the pallet P positioned on the table. Different work W
1, W 2, W 3, when processing W 4, better processing edit to one of the NC data from the machining with a heterologous workpiece respective NC data, NC data for can be shortened machining time Edit. In the conventional editing work in such a case, each NC data is displayed on the CRT screen, and while referring to this NC data, the worker himself or herself puts together the NC data in each new tool in each program in a new program, A predetermined machining program is designated as a sub-program, and unnecessary portions of each NC data are deleted to edit into one NC data.

【0003】[0003]

【発明が解決しようとする課題】ところで、従来複数本
のNCデータを編集して一本にまとめる為には、作業者
自身が複数本のNCデータを使用工具毎、あるいは加工
方法毎に組換えて新たなNCデータを作成しなければな
らず、ワークの加工方法、加工手順やNCデータ編集操
作を充分に理解していないとできないという問題があっ
た。以上からこの発明は、複数本のNCデータを一本に
まとめて編集する際に、作業者がワークの加工方法やN
Cデータ編集操作に習熟していなくても、簡単な操作だ
けで複数本のNCデータが1本に自動編集できるNCデ
ータ編集装置を提供することを目的とする。
By the way, in the past, in order to edit a plurality of NC data and combine them into one, the operator himself recombines the plurality of NC data for each tool used or for each machining method. Therefore, there is a problem that it is necessary to create new NC data, and it cannot be done unless the working method of the work, the working procedure and the NC data editing operation are sufficiently understood. From the above, according to the present invention, when a plurality of NC data are collectively edited, a worker can perform a work processing method and an N process.
An object of the present invention is to provide an NC data editing device capable of automatically editing a plurality of NC data into one by a simple operation even if the user is not familiar with the C data editing operation.

【0004】[0004]

【課題を解決するための手段】本願の発明は、前記課題
を解決するために創案されたものであって、その第1の
発明は一つまたは一つ以上の被加工物を加工するために
作成された複数のNCデータを、同一の工作機械上で加
工を行うためにNCデータを一本化の編集をするための
NCデータ編集方法であって、複数のNCデータから各
々のNCデータ毎に工具番号指令データを、順次、この
NCデータのプログラム先頭から抽出する処理を行う工
程と、このNCデータ毎工具番号指令データを各々比較
し、加工工程順位が近似している同一の工具番号指令デ
ータをまとめて一本化する処理を行う工程と、前記まと
めて一本化された工具番号指令データの順番に前記工具
番号指令データ毎NCデータを並べなおす編集処理を行
う工程とからなることを特徴とするNCデータ編集方
法。その第2の発明は、一つまたは一つ以上の被加工物
を加工するために作成された複数のNCデータを、同一
の工作機械上で加工を行うためにNCデータを一本化の
編集をするためのNCデータ編集装置であって、前記複
数のNCデータが登録されるNCデータメモリと、この
NCデータメモリに登録されたNCデータの中から、各
々のNCデータのプログラム番号毎に、前記NCデータ
のプログラム先頭から順番に工具番号指令データをサー
チし抽出する処理を行う工具番号データサーチ部と、こ
の抽出された工具番号指令データが記憶されるプログラ
ム番号毎工具番号ファイルメモリと、このプログラム番
号毎工具番号ファイルメモリに記憶された複数のプログ
ラム番号毎工具番号指令データを比較し、加工工程順番
が近似している同一の工具番号指令データをまとめて一
本化した工具番号指令データに作成する工具番号データ
順作成部と、この工具番号データ順作成部で作成される
一本化工具番号指令データが記憶される工具番号データ
順ファイルメモリと、前記NCデータメモリに登録され
ているNCデータを前記工具番号指令データ毎の加工工
程プログラムであるNCデータを取り出す処理を行う工
具毎NCデータ取り出し部と、この工具毎NCデータ取
り出し部で取り出された工具番号指令データ毎のNCデ
ータが記憶される工具毎NCデータファイルメモリと、
前記工具番号データ順ファイルメモリの一本化工具番号
指令データと、前記工具毎NCデータファイルメモリに
記憶された工具番号指令データ毎のNCデータとから、
この工具番号指令データに対応したNCデータを前記工
具番号指令データ順に並びかえる編集をして一本化する
処理を行うNCデータ編集部と、前記各メモリ、前記各
部を統轄制御する中央処理装置とからなることを特徴と
するNCデータ編集装置。
The invention of the present application was conceived to solve the above-mentioned problems, and the first invention thereof is to process one or more workpieces. An NC data editing method for editing a plurality of created NC data to unify the NC data for machining on the same machine tool, and for each NC data from the plurality of NC data. The process for sequentially extracting the tool number command data from the beginning of the program of this NC data and the tool number command data for each NC data are compared, and the same tool number command with a similar machining step order It includes a step of performing a process of unifying the data collectively and a process of performing an editing process of rearranging the NC data for each of the tool number command data in the order of the tool number command data integrated and unified. NC data editing method comprising and. The second aspect of the invention is to edit a plurality of NC data created for processing one or more workpieces into a single NC data for processing on the same machine tool. In the NC data editing apparatus for performing the following, among the NC data memory in which the plurality of NC data are registered and the NC data registered in the NC data memory, for each program number of each NC data, A tool number data search unit for performing a process of searching for and extracting tool number command data in order from the beginning of the NC data program, a tool number file memory for each program number in which the extracted tool number command data is stored, Tool number for each program number File number command data for each program number stored in the file memory are compared and the machining process order is similar. Tool number data order creation unit that creates tool number command data that is a collection of tool number command data and a tool number that stores the unified tool number command data created by this tool number data order creation unit A data sequential file memory, an NC data extraction section for each tool that performs processing for extracting NC data, which is a machining process program for each tool number command data, from the NC data registered in the NC data memory, and this NC data for each tool An NC data file memory for each tool in which NC data for each tool number command data extracted by the extraction unit is stored,
From the unified tool number command data of the tool number data sequential file memory and the NC data of each tool number command data stored in the NC data file memory of each tool,
An NC data editing unit that edits NC data corresponding to the tool number command data in the order of the tool number command data to perform a process of unifying, and a central processing unit that controls the respective memories and the respective units. An NC data editing device comprising:

【0005】[0005]

【作用】上記の構成を有する発明においては、自動編集
の起動操作を行うと、各NCデータが順次読み取られ、
Tコードのみをサーチして順番に取り出す処理が行わ
れ、ファイルBに記憶される。次に、ファイルBの各々
のNCデータに対応するTコードの順序が比較され、同
じTコードがある場合、工具交換動作をなるたけ削減す
るために同じ工具の加工を共通化するように順番を作り
直す処理が行われ、作り直された新たな工具順はファイ
ルCに登録される。ついで、メモリAにあるNCデータ
の工具交換指令のブロック以降のワーク座標系設定選択
指令を含むブロックが取り出され、次の工具交換指令、
またはプログラムエンド指令のブロックが取り出されて
終了ブロックとされ、更に、その間のNCデータがこの
工具番号指令データの加工工程プログラムとして取り出
される。また、工具交換動作がある場合には、この工具
交換指令データがこのNCデータ間に挿入され、ファイ
ルCの一本化工具番号指令データに対応したNCデータ
を工具番号指令順に編集して一本化し、複数のNCデー
タを編集処理する。
In the invention having the above structure, when the automatic editing start operation is performed, each NC data is sequentially read,
Only the T-code is searched and the process of sequentially extracting the T-code is performed and stored in the file B. Next, the order of the T code corresponding to each NC data of the file B is compared, and if there is the same T code, the order is recreated so that machining of the same tool is made common in order to reduce the tool change operation as much as possible. The processing is performed, and the new tool order recreated is registered in the file C. Then, the block including the work coordinate system setting selection command after the block of the tool replacement command of NC data in the memory A is taken out, and the next tool replacement command,
Alternatively, the block of the program end command is taken out to be the end block, and the NC data between them is taken out as the machining step program of this tool number command data. When there is a tool change operation, the tool change command data is inserted between the NC data, and the NC data corresponding to the unified tool number command data of the file C is edited in the tool number command order to form one tool. And edit a plurality of NC data.

【0006】[0006]

【実施例】以下、図面に沿って、この発明による一実施
例について説明する。図1はこの発明によるNCデータ
編集装置を示すブロック図である。図中、1はNCデー
タ編集装置を統轄制御する処理を行う中央処理装置(C
PU)で、バスライン1aが接続されている。2はNC
機能およびNCデータ編集機能のシステムプログラムを
記憶しているROM(リードオンリーメモリ)、3はパ
ラメータ等データを記憶しているRAM(ランダムアク
セスメモリ)であり、4は編集する対象となる複数本の
NCデータが登録されるNCデータ(NC加工プログラ
ム)メモリ(以下、メモリAと記載)である。5はTコ
ードサーチ部であり、メモリA4に登録された複数のN
Cデータの中からNCデータのプログラム番号(以下、
O番号と記載)毎にTコード(工具番号:T No.)
のみをプログラムの先頭から順番にサーチし取り出す処
理を行う。Tコードサーチ部5にて取り出されたTコー
ドはO番号毎T番号ファイルメモリ(以下、ファイルB
と記載)6にO番号毎のファイルにプログラムの先頭か
ら順番に記憶される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an NC data editing device according to the present invention. In the figure, 1 is a central processing unit (C
PU) is connected to the bus line 1a. 2 is NC
ROM (read only memory) that stores system programs for functions and NC data editing functions, 3 is a RAM (random access memory) that stores data such as parameters, and 4 is a plurality of objects to be edited. It is an NC data (NC processing program) memory (hereinafter referred to as memory A) in which NC data is registered. Reference numeral 5 is a T code search unit, which stores a plurality of N codes registered in the memory A4.
Program number of NC data (hereinafter,
T code (tool number: T No.) for each O number)
Only the program is searched from the beginning of the program and extracted. The T code retrieved by the T code search unit 5 is a T number file memory for each O number (hereinafter referred to as file B).
6) are stored in the file for each O number in order from the beginning of the program.

【0007】7はTコード順作成部であり、ファイルB
6の各々のO番号毎ファイルのTコード順を比較し、共
通のTコード(T No.)をまとめてTコード順番を作り
直す処理を行う。Tコード順作成部7にて作成されたデ
ータは工具番号データ順ファイルメモリ(以下、ファイ
ルCと記載)8に記憶される。9は工具毎NCデータ取
り出し部であり、メモリA4にあるNCデータを各々、
各工具毎にNCデータを取り出す処理を行う。工具毎N
Cデータ取り出し部9にて取り出されたNCデータは工
具毎NCデータファイルメモリ(以下、ファイルDと記
載)10に記憶される。11はNCデータ編集部であ
り、ファイルC8とファイルD10とのデータを合成し
NCデータを1本化する処理を行う。NCデータ編集部
11にて1本のNCデータに編集処理されたデータは前
記したNCデータのO番号と異なるO番号が付加されて
ファイルA4に登録される。13は編集処理中のデータ
を表示するための表示手段(CRT)、14はデータを
入力するためのキーボード、15はメモリカード等の外
部記憶媒体からNCデータを読み取り入力するための入
力手段(以下、NCデータ入力装置と記載)である。
Reference numeral 7 is a T-code sequence creating unit, which is a file B.
The T code order of each O number file of 6 is compared, the common T code (T No.) is collected, and the T code order is recreated. The data created by the T code order creating unit 7 is stored in a tool number data order file memory (hereinafter referred to as file C) 8. Reference numeral 9 denotes an NC data extraction unit for each tool, which reads NC data in the memory A4,
A process of extracting NC data is performed for each tool. For each tool N
The NC data extracted by the C data extracting unit 9 is stored in the NC data file memory for each tool (hereinafter referred to as file D) 10. Reference numeral 11 denotes an NC data editing unit, which performs a process of combining the data of the files C8 and D10 and unifying the NC data. The data edited by the NC data editing unit 11 into one piece of NC data is registered in the file A4 with an O number different from the O number of the NC data. Reference numeral 13 is a display means (CRT) for displaying data being edited, 14 is a keyboard for inputting data, 15 is input means for reading and inputting NC data from an external storage medium such as a memory card (hereinafter referred to as "input means"). , NC data input device).

【0008】図2はこの発明のNCデータ編集方法を示
す流れ図である。次に、図2の流れ図に基づいてこの発
明のNCデータ編集方法を説明する。なお、この実施例
においては図10に示すように、異種ワークW1 ,W
2 ,W3 ,W4 のそれぞれを個別に加工するNCデータ
が既に作成されてあって、立形マシニングセンタのテー
ブルB上の所定の位置に位置決めされ取付けられた異種
ワークW1 ,W2 ,W3,W4 を加工する場合について
説明する。まず、データの自動編集に先だって異種ワー
クW1 ,W2 ,W3 ,W4 のそれぞれを加工するための
NCデータをキーボード14を用いて作成するか、NC
データ入力装置15を介してメモリカードからNCデー
タを読み取り入力し、メモリA4に登録する(ステップ
S1,S2)。図3は作成された各ワークのNCデータ
であり、F1はワークW1 のNCデータを示し、F2は
ワークW2 のNCデータを示し、F3はワークW3 のN
Cデータを示し、F4はワークW4 のNCデータを示
す。
FIG. 2 is a flow chart showing the NC data editing method of the present invention. Next, the NC data editing method of the present invention will be described based on the flow chart of FIG. In this embodiment, as shown in FIG. 10, different kinds of works W 1 , W
NC data for individually machining each of 2 , W 3 and W 4 has already been created, and different types of workpieces W 1 , W 2 and W that are positioned and mounted at a predetermined position on the table B of the vertical machining center. A case of processing 3 and W 4 will be described. First, the NC data for processing each of the different types of workpieces W 1 , W 2 , W 3 , and W 4 is created using the keyboard 14 or the NC is performed prior to the automatic editing of the data.
The NC data is read and input from the memory card via the data input device 15 and registered in the memory A4 (steps S1 and S2). FIG. 3 shows NC data of each created work. F1 shows NC data of the work W 1 , F2 shows NC data of the work W 2 , and F3 shows N data of the work W 3 .
C data is shown, and F4 is NC data of the work W 4 .

【0009】作業者はかかるNCデータをCRT13に
表示し、変更する部分があるかないか判断し(ステップ
S3)、変更部分があれば変更部分を編集する(ステッ
プS4)。例えば、図10のような位置にワークを配置
する場合には、各ワークW1,W2 ,W3 ,W4 に各ワ
ーク座標系を割りつけて設定する。この実施例では、ワ
ークW1 にはワーク座標系設定選択指令G54で選択さ
れるワーク座標系を、同様に、ワークW2 にはワーク座
標系設定選択指令G55で選択されるワーク座標系を、
ワークW3 にはワーク座標系設定選択指令G56で選択
されるワーク座標系を、ワークW4 にはワーク座標系設
定選択指令G57で選択されるワーク座標系を割りつけ
設定した例で説明を行っている。あらかじめ、作成され
ているNCデータ内のワーク座標系設定選択指令がこの
割りつけられたワーク座標系設定選択指令に一致してい
ない場合には変更する必要があるので、この割りつけた
ワーク座標系設定選択指令G54〜G57に変更する手
動編集を行う。また、各ワークのNCデータ内のTコー
ドが共通に使用されているか否かも確認する。例えば、
O番号「O1〜O4」で使用されているT番号「T0
1」が工具径10mmのエンドミルであり、T番号「T0
2」が工具径5mmのドリルを共通に使用しているか否か
を確認し、使用していない場合には手動編集を行う。次
に自動編集の起動操作を行うと、CPU1はメモリA4
にあるNCデータを先頭のブロックから、すなわち、O
番号「O1」から順次読み取り、Tコードのみをサーチ
して順番に取り出す処理を行う。すなわち、O番号「O
1」のNCデータであれば、Tコード「T01」、「T
02」…を順次読み出し、ファイルB6のO番号「O
1」に対してレジスタF1に順次記憶する(ステップS
5)。同様にO番号「O2」、「O3」、「O4」のN
CデータからもTコードを抽出し記憶する。図4はかか
るステップS5の処理で記憶されたファイルB6の一例
である。
The operator displays the NC data on the CRT 13, judges whether there is a portion to be changed (step S3), and if there is a changed portion, edits the changed portion (step S4). For example, when arranging the workpieces at the positions shown in FIG. 10, the workpiece coordinate systems are assigned to the workpieces W 1 , W 2 , W 3 , and W 4 and set. In this embodiment, the work W 1 is the work coordinate system selected by the work coordinate system setting selection command G 54, and the work W 2 is the work coordinate system selected by the work coordinate system setting selection command G 55.
The workpiece coordinate system to the work W 3 is selected in the work coordinate system set selection command G56, been described in example of dividing attached set the work coordinate system selected by the workpiece coordinate system set selection command G57 is the work W 4 ing. If the work coordinate system setting selection command in the created NC data does not match the assigned work coordinate system setting selection command in advance, it is necessary to change it, so this work coordinate system setting selection command must be changed. Manual editing for changing to the setting selection commands G54 to G57 is performed. It is also confirmed whether the T code in the NC data of each work is commonly used. For example,
T number "T0" used in O number "O1 to O4"
1 "is an end mill with a tool diameter of 10 mm, and T number" T0
Check whether "2" commonly uses a drill with a tool diameter of 5 mm, and if not, perform manual editing. Next, when the automatic editing start operation is performed, the CPU 1 causes the memory A4
NC data in the first block, that is, O
A process of sequentially reading from the number "O1", searching for only the T code, and taking out in order is performed. That is, the O number "O
If the NC data is "1", T code "T01", "T"
02 ”... is sequentially read, and the O number“ O ”of the file B6 is read.
1 ”is sequentially stored in the register F1 (step S
5). Similarly, N of O number "O2", "O3", "O4"
The T code is also extracted from the C data and stored. FIG. 4 is an example of the file B6 stored in the process of step S5.

【0010】ファイルB6が作成されれば、CPU1は
ファイルB6の各々のO番号に対応するTコードの順序
を比較し、同じTコードがある場合に共通化するように
順番を作り直す処理を行い、作り直された新たな工具順
はファイルC8に登録される(ステップS6)。即ち、
まず図5に示すように、O番号「O1」(すなわち、F
1)の工具順とO番号「O2」(すなわち、F2)を比
較して加工順が近い同一Tコードの工具はワークW1
ワークW2 とを連続的に加工するように、すなわち、工
具交換動作をなるだけ削減するように共通化して加工を
行うようにまとめられ、新たな工具順F0を作成する。
つまり、O番号「O1」の「T1」「T2」の加工工程
プログラムであるNCデータ後にO番号「O2」の「T
2」の加工工程プログラムであるNCデータを挿入し、
次にO番号「O1」の「T11」、O番号「O2」の
「T2」「T10」の工具順にまとめられ記憶される。
ついで、新たな工具順F0とO番号「O3」(すなわ
ち、F3)の工具順を比較して更に新たな工具順F01
を作成する(図6参照)。更に新たな工具順F01 とO
番号「O4」(すなわち、F4)の工具順を比較して更
に新たな工具順F02 を作成する(図7参照)。なお、
最終的な工具順が図8に示すように、ファイルC8に工
具番号(TNo. )、その所属するプログラム番号(ON
o. )が加工順に登録される。
When the file B6 is created, the CPU 1 compares the order of the T-codes corresponding to the respective O-numbers of the file B6, and when there are the same T-codes, performs a process of recreating the order so as to make them common, The recreated new tool order is registered in the file C8 (step S6). That is,
First, as shown in FIG. 5, the O number “O1” (that is, F number)
The tool order of 1) is compared with the O number “O2” (that is, F2), and the tools of the same T code which are closer in the machining order process the work W 1 and the work W 2 continuously, that is, the tool. A new tool sequence F0 is created by grouping the machining operations in common so as to reduce the exchange operation as much as possible.
In other words, after the NC data which is the machining process program of “T1” and “T2” of the O number “O1”, “T” of the O number “O2”
Insert the NC data which is the machining process program of "2",
Next, the tool numbers “T11” of the O number “O1”, “T2” and “T10” of the O number “O2” are collected and stored in this order.
Then, the new tool order F0 is compared with the tool order with the O number "O3" (that is, F3), and a new tool order F0 1
Is created (see FIG. 6). Further new tool order F0 1 and O
The tool order of the number “O4” (that is, F4) is compared to create a new tool order F0 2 (see FIG. 7). In addition,
As shown in FIG. 8, the final tool order is the file number (TNo.) In the file C8, the program number to which it belongs (ON).
o.) is registered in the processing order.

【0011】ステップS6の処理が終わった時点で、結
果をCRT13の画面にリスト表示し、変更がある場合
は作業者が手動で編集することは可能である(ステップ
S7)。次に、CPU1はメモリA4にあるNCデータ
を各々、各工具毎にNCデータを取り出す処理を行う
(ステップS8)。すなわち、工具交換指令(T**
M06;)のブロック以降の最初に出てくるワーク座標
系設定選択指令(G54〜G59)を含むブロックを取
り出し開始ブロックとし、次の工具交換指令(T**
M06;)、または、プログラムエンド指令(M3
0;)の前のリファレンス点復帰指令(G28・・)を
含まないブロックを取り出し終了ブロックとし、そのあ
いだのブロック(NCデータ)をこの工具番号指令デー
タ(T**)の加工工程プログラムとして取り出す。ま
た、工具交換動作がある場合には、この工具交換指令デ
ータがこのNCデータ間に挿入される。このように取り
出したNCデータをプログラム番号毎、工具番号毎にフ
ァイルD10に登録する。すなわち、ファイルC8の一
本化工具番号指令データとファイルD10の工具番号指
令データ毎NCデータとから、この工具番号指令データ
に対応したNCデータを前記工具番号指令データ順に編
集して一本化する処理を行う(ステップS9)。この一
本化の編集が終了した後、一本化されたNCデータの前
部に、この一本化NCデータに付与されるプログラム番
号(例えば、O1000;)と、O番号「O1」のプロ
グラムの先頭にあるATC位置に移動させるための指令
ブロック(例えば、G91 G28 X0 Y0 Z
0;・・・;G92 X0 Y0 Z0;)を追加す
る。更に一本化されたNCデータの後部に、リファレン
ス点復帰指令(例えば、G91 G28 X0 Y0
Z0;),プログラムエンド指令(例えば、M30;)
を追加する。これにより、NCデータ編集処理を終了す
る。メモリA4にプログラム番号「O1000」のNC
データを登録する。なお、この実施例では異種ワークの
データをまとめて一本化しているが、同一ワークの表裏
加工用のNCデータをまとめて一本化してもよい。ま
た、ワークのワーク座標系設定選択指令をG54〜G5
7で説明しているが、これに限定されるものではない。
更に、立形マシニングセンタのNCデータを横形マシニ
ングセンタ用のNCデータにまとめて一本化する編集も
同様な処理方法で行うことができる。すなわち、ワーク
1 ,W2 ,W3 ,W4 を、パレット上に立設されたイ
ケールの各面に前記ワークW1 ,W2 ,W3 ,W4 を取
り付け、立形マシニングセンタ用のNCデータを横形マ
シニングセンタ用のNCデータに編集すればよい。ただ
し、この場合には、ワークW1 ,W2 ,W3 ,W4 がど
のイケール面に取り付けているのかを示すB軸指令のデ
ータ(B0,B90,B180,B270)が、ワーク
座標系設定選択指令(G54〜G57)と同様に、割り
つけ設定しておく必要がある。
When the processing of step S6 is completed, the results can be displayed in a list on the screen of the CRT 13, and if there is a change, the operator can manually edit it (step S7). Next, the CPU 1 performs a process of extracting the NC data in the memory A4 for each tool (step S8). That is, the tool change command (T **
The block including the work coordinate system setting selection command (G54 to G59) that first appears after the block of M06;) is set as the extraction start block and the next tool change command (T **).
M06;) or program end command (M3
0;) before the reference point return command (G28 ...) Is not taken out as an end block, and the block (NC data) between them is taken out as a machining process program of this tool number command data (T **). . If there is a tool change operation, the tool change command data is inserted between the NC data. The NC data thus extracted is registered in the file D10 for each program number and each tool number. That is, from the unification tool number command data of the file C8 and the NC data for each tool number command data of the file D10, the NC data corresponding to this tool number command data is edited and unified in the order of the tool number command data. Processing is performed (step S9). After the editing of the unified NC data is completed, the program number (for example, O1000;) assigned to the unified NC data and the program of the O number "O1" are added to the front part of the unified NC data. Command block for moving to the ATC position at the beginning of the (eg, G91 G28 X0 Y0 Z
0; ...; G92 X0 Y0 Z0;) is added. A reference point return command (for example, G91 G28 X0 Y0) is added to the rear of the unified NC data.
Z0;), program end command (for example, M30;)
To add. This ends the NC data editing process. NC with program number “O1000” in memory A4
Register the data. In addition, in this embodiment, the data of different kinds of workpieces are collected and unified, but NC data for front and back processing of the same workpiece may be collected and unified. In addition, the work coordinate system setting selection command for the work is set to G54 to G5.
However, the present invention is not limited to this.
Further, the same processing method can be used to edit the NC data of the vertical machining center into the NC data for the horizontal machining center. That is, the works W 1 , W 2 , W 3 and W 4 are attached to the respective surfaces of the scales erected on the pallet, and the works W 1 , W 2 , W 3 and W 4 are attached to the NCs for the vertical machining center. The data may be edited into NC data for a horizontal machining center. However, in this case, the workpiece W 1, W 2, W 3 , W 4 is any tombstone of B-axis command that indicate is attached to surface data (B0, B90, B180, B270 ) is a work coordinate system setting Similar to the selection command (G54 to G57), it is necessary to set the allocation.

【0012】[0012]

【発明の効果】以上説明したように、複数本のNCデー
タを一本にまとめて編集する際に、作業者がNCデータ
作成の操作や編集操作に習熟していなくても、簡単な操
作だけで複数本のNCデータが1本に自動編集できる。
すなわち、立形マシニングセンタ用に作成したNCデー
タを横形マシニングセンタ用に編集できる。更に、異種
ワークや同一のワークの表裏加工ができるように編集で
きる。このことにより機械の生産性の向上や加工のフレ
キシビリティの向上が図れるという顕著な効果を有す
る。
As described above, when a plurality of NC data are collectively edited, a simple operation can be performed even if the operator is not familiar with the operation for creating NC data and the editing operation. With, multiple NC data can be automatically edited into one.
That is, the NC data created for the vertical machining center can be edited for the horizontal machining center. Furthermore, it is possible to edit so that different kinds of workpieces or the same workpiece can be processed on the front and back sides. This has the remarkable effect of improving the productivity of the machine and the flexibility of processing.

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

【図1】本発明によるNCデータ編集装置の一例を示す
図である。
FIG. 1 is a diagram showing an example of an NC data editing device according to the present invention.

【図2】本発明によるNCデータ編集方法を示す流れ図
である。
FIG. 2 is a flowchart showing an NC data editing method according to the present invention.

【図3】本発明のメモリAを示す図である。FIG. 3 is a diagram showing a memory A of the present invention.

【図4】本発明のファイルBを示す図である。FIG. 4 is a diagram showing a file B of the present invention.

【図5】本発明のTコード順作成部の手順を示す図であ
る。
FIG. 5 is a diagram showing a procedure of a T code order creation unit of the present invention.

【図6】本発明のTコード順作成部の手順を示す図であ
る。
FIG. 6 is a diagram showing a procedure of a T code order creation unit of the present invention.

【図7】本発明のTコード順作成部の手順を示す図であ
る。
FIG. 7 is a diagram showing a procedure of a T code order creation unit of the present invention.

【図8】本発明のファイルCを示す図である。FIG. 8 is a diagram showing a file C of the present invention.

【図9】本発明の1本化されたプログラムを示す図であ
る。
FIG. 9 is a diagram showing a unified program of the present invention.

【図10】複数の異種ワークを同時に加工する場合の説
明図である。
FIG. 10 is an explanatory diagram of a case where a plurality of different types of workpieces are simultaneously processed.

【符号の説明】[Explanation of symbols]

1 CPU 2 ROM 3 RAM 4 メモリA 5 Tコードサーチ部 6 ファイルB 7 Tコード順作成部 8 ファイルC 9 工具毎NCデータ取り出し部 10 ファイルD 11 NCデータ編集部 1 CPU 2 ROM 3 RAM 4 Memory A 5 T Code Search Unit 6 File B 7 T Code Sequence Creation Unit 8 File C 9 NC Data Extraction Unit for Each Tool 10 File D 11 NC Data Editing Unit

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成7年6月8日[Submission date] June 8, 1995

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】全文[Correction target item name] Full text

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【書類名】 明細書[Document name] Statement

【発明の名称】 NCデータ編集方法およびその装置Title: NC data editing method and apparatus thereof

【特許請求の範囲】[Claims]

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は異種ワーク(被加工
物)または同一ワークの表裏加工を同時に加工できるよ
うに複数のNCデータを自動編集処理するNCデータ編
集方法およびその装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an NC data editing method and apparatus for automatically editing a plurality of NC data so that different kinds of workpieces (workpieces) or front and back processing of the same workpiece can be simultaneously processed.

【0002】[0002]

【従来の技術】異種ワークの各々の加工用NCデータを
用いて1本のNCデータに編集し、異種ワークを同時に
加工する場合がある。例えば、異種ワークW1 ,W2
3 ,W4 (図10参照)のそれぞれを個別に加工する
NCデータが既に作成されてあって、立形マシニングセ
ンタのテーブルB上またはテーブル上に位置決めされた
パレットPの所定の位置に位置決めされた異種ワークW
1 ,W2 ,W3 ,W4 を加工する場合、異種ワークそれ
ぞれのNCデータを用いて加工するより1本のNCデー
タに編集して加工するほうが、加工時間の短縮が図れる
ためのNCデータの編集を行う。かかる場合の従来の編
集作業は、各NCデータをCRT画面に表示させ、この
NCデータを参照しながら、作業者自身が新しいプログ
ラムの中で使用工具毎、加工方法毎にNCデータをまと
めたり、所定の加工プログラムをサブプログラムに指定
したり、前記各NCデータの不要部分を削除したりして
1本のNCデータに編集する。
2. Description of the Related Art In some cases, NC data for machining different kinds of workpieces are edited into one NC data, and different kinds of workpieces are simultaneously processed. For example, different kinds of works W 1 , W 2 ,
NC data for individually processing each of W 3 and W 4 (see FIG. 10) has already been created and is positioned at a predetermined position on the table B of the vertical machining center or the pallet P positioned on the table. Different work W
1, W 2, W 3, when processing W 4, better processing edit to one of the NC data from the machining with a heterologous workpiece respective NC data, NC data for can be shortened machining time Edit. In the conventional editing work in such a case, each NC data is displayed on the CRT screen, and while referring to this NC data, the worker himself or herself puts together the NC data in each new tool in each program in a new program, A predetermined machining program is designated as a sub-program, and unnecessary portions of each NC data are deleted to edit into one NC data.

【0003】[0003]

【発明が解決しようとする課題】ところで、従来複数本
のNCデータを編集して一本にまとめる為には、作業者
自身が複数本のNCデータを使用工具毎、あるいは加工
方法毎に組換えて新たなNCデータを作成しなければな
らず、ワークの加工方法、加工手順やNCデータ編集操
作を充分に理解していないとできないという問題があっ
た。以上からこの発明は、複数本のNCデータを一本に
まとめて編集する際に、作業者がワークの加工方法やN
Cデータ編集操作に習熟していなくても、簡単な操作だ
けで複数本のNCデータが1本に自動編集できるNCデ
ータ編集方法およびその装置を提供することを目的とす
る。
By the way, in the past, in order to edit a plurality of NC data and combine them into one, the operator himself recombines the plurality of NC data for each tool used or for each machining method. Therefore, there is a problem that it is necessary to create new NC data, and it cannot be done unless the working method of the work, the working procedure and the NC data editing operation are sufficiently understood. From the above, according to the present invention, when a plurality of NC data are collectively edited, a worker can perform a work processing method and an N process.
It is an object of the present invention to provide an NC data editing method and apparatus capable of automatically editing a plurality of NC data into one by a simple operation even if the user is not familiar with C data editing operation.

【0004】[0004]

【課題を解決するための手段】本願の発明は、前記課題
を解決するために創案されたものであって、その第1の
発明は一つまたは一つ以上の被加工物を加工するために
作成された複数のNCデータを、同一の工作機械上で加
工を行うためにNCデータを一本化の編集をするための
NCデータ編集方法であって、複数のNCデータから各
々のNCデータ毎に工具番号指令データを、順次、この
NCデータのプログラム先頭から抽出する処理を行う工
程と、このNCデータ毎工具番号指令データを各々比較
し、加工工程順位が近似している同一の工具番号指令デ
ータをまとめて一本化する処理を行う工程と、前記まと
めて一本化された工具番号指令データの順番に前記工具
番号指令データ毎NCデータを並べなおす編集処理を行
う工程とからなることを特徴とするNCデータ編集方
法。その第2の発明は、一つまたは一つ以上の被加工物
を加工するために作成された複数のNCデータを、同一
の工作機械上で加工を行うためにNCデータを一本化の
編集をするためのNCデータ編集装置であって、前記複
数のNCデータが登録されるNCデータメモリと、この
NCデータメモリに登録されたNCデータの中から、各
々のNCデータのプログラム番号毎に、前記NCデータ
のプログラム先頭から順番に工具番号指令データをサー
チし抽出する処理を行う工具番号データサーチ部と、こ
の抽出された工具番号指令データが記憶されるプログラ
ム番号毎工具番号ファイルメモリと、このプログラム番
号毎工具番号ファイルメモリに記憶された複数のプログ
ラム番号毎工具番号指令データを比較し、加工工程順番
が近似している同一の工具番号指令データをまとめて一
本化した工具番号指令データに作成する工具番号データ
順作成部と、この工具番号データ順作成部で作成される
一本化工具番号指令データが記憶される工具番号データ
順ファイルメモリと、前記NCデータメモリに登録され
ているNCデータを前記工具番号指令データ毎の加工工
程プログラムであるNCデータを取り出す処理を行う工
具毎NCデータ取り出し部と、この工具毎NCデータ取
り出し部で取り出された工具番号指令データ毎のNCデ
ータが記憶される工具毎NCデータファイルメモリと、
前記工具番号データ順ファイルメモリの一本化工具番号
指令データと、前記工具毎NCデータファイルメモリに
記憶された工具番号指令データ毎のNCデータとから、
この工具番号指令データに対応したNCデータを前記工
具番号指令データ順に並びかえる編集をして一本化する
処理を行うNCデータ編集部と、前記各メモリ、前記各
部を統轄制御する中央処理装置とからなることを特徴と
するNCデータ編集装置。
The invention of the present application was conceived to solve the above-mentioned problems, and the first invention thereof is to process one or more workpieces. An NC data editing method for editing a plurality of created NC data to unify the NC data for machining on the same machine tool, and for each NC data from the plurality of NC data. The process for sequentially extracting the tool number command data from the beginning of the program of this NC data and the tool number command data for each NC data are compared, and the same tool number command with a similar machining step order It includes a step of performing a process of unifying the data collectively and a process of performing an editing process of rearranging the NC data for each of the tool number command data in the order of the tool number command data integrated and unified. NC data editing method comprising and. The second aspect of the invention is to edit a plurality of NC data created for processing one or more workpieces into a single NC data for processing on the same machine tool. In the NC data editing apparatus for performing the following, among the NC data memory in which the plurality of NC data are registered and the NC data registered in the NC data memory, for each program number of each NC data, A tool number data search unit for performing a process of searching for and extracting tool number command data in order from the beginning of the NC data program, a tool number file memory for each program number in which the extracted tool number command data is stored, Tool number for each program number File number command data for each program number stored in the file memory are compared and the machining process order is similar. Tool number data order creation unit that creates tool number command data that is a collection of tool number command data and a tool number that stores the unified tool number command data created by this tool number data order creation unit A data sequential file memory, an NC data extraction section for each tool that performs processing for extracting NC data, which is a machining process program for each tool number command data, from the NC data registered in the NC data memory, and this NC data for each tool An NC data file memory for each tool in which NC data for each tool number command data extracted by the extraction unit is stored,
From the unified tool number command data of the tool number data sequential file memory and the NC data of each tool number command data stored in the NC data file memory of each tool,
An NC data editing unit that edits NC data corresponding to the tool number command data in the order of the tool number command data to perform a process of unifying, and a central processing unit that controls the respective memories and the respective units. An NC data editing device comprising:

【0005】[0005]

【作用】上記の構成を有する発明においては、自動編集
の起動操作を行うと、各NCデータが順次読み取られ、
Tコードのみをサーチして順番に取り出す処理が行わ
れ、ファイルBに記憶される。次に、ファイルBの各々
のNCデータに対応するTコードの順序が比較され、同
じTコードがある場合、工具交換動作をなるたけ削減す
るために同じ工具の加工を共通化するように順番を作り
直す処理が行われ、作り直された新たな工具順はファイ
ルCに登録される。ついで、メモリAにあるNCデータ
の工具交換指令のブロック以降のワーク座標系設定選択
指令を含むブロックが取り出され、次の工具交換指令、
またはプログラムエンド指令のブロックが取り出されて
終了ブロックとされ、更に、その間のNCデータがこの
工具番号指令データの加工工程プログラムとして取り出
される。また、工具交換動作がある場合には、この工具
交換指令データがこのNCデータ間に挿入され、ファイ
ルCの一本化工具番号指令データに対応したNCデータ
を工具番号指令順に編集して一本化し、複数のNCデー
タを編集処理する。
In the invention having the above structure, when the automatic editing start operation is performed, each NC data is sequentially read,
Only the T-code is searched and the process of sequentially extracting the T-code is performed and stored in the file B. Next, the order of the T code corresponding to each NC data of the file B is compared, and if there is the same T code, the order is recreated so that machining of the same tool is made common in order to reduce the tool change operation as much as possible. The processing is performed, and the new tool order recreated is registered in the file C. Then, the block including the work coordinate system setting selection command after the block of the tool replacement command of NC data in the memory A is taken out, and the next tool replacement command,
Alternatively, the block of the program end command is taken out to be the end block, and the NC data between them is taken out as the machining step program of this tool number command data. When there is a tool change operation, the tool change command data is inserted between the NC data, and the NC data corresponding to the unified tool number command data of the file C is edited in the tool number command order to form one tool. And edit a plurality of NC data.

【0006】[0006]

【実施例】以下、図面に沿って、この発明による一実施
例について説明する。図1はこの発明によるNCデータ
編集装置を示すブロック図である。図中、1はNCデー
タ編集装置を統轄制御する処理を行う中央処理装置(C
PU)で、バスライン1aが接続されている。2はNC
機能およびNCデータ編集機能のシステムプログラムを
記憶しているROM(リードオンリーメモリ)、3はパ
ラメータ等データを記憶しているRAM(ランダムアク
セスメモリ)であり、4は編集する対象となる複数本の
NCデータが登録されるNCデータ(NC加工プログラ
ム)メモリ(以下、メモリAと記載)である。5はTコ
ードサーチ部であり、メモリA4に登録された複数のN
Cデータの中からNCデータのプログラム番号(以下、
O番号と記載)毎にTコード(工具番号:T No.)
のみをプログラムの先頭から順番にサーチし取り出す処
理を行う。Tコードサーチ部5にて取り出されたTコー
ドはO番号毎T番号ファイルメモリ(以下、ファイルB
と記載)6にO番号毎のファイルにプログラムの先頭か
ら順番に記憶される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an NC data editing device according to the present invention. In the figure, 1 is a central processing unit (C
PU) is connected to the bus line 1a. 2 is NC
ROM (read only memory) that stores system programs for functions and NC data editing functions, 3 is a RAM (random access memory) that stores data such as parameters, and 4 is a plurality of objects to be edited. It is an NC data (NC processing program) memory (hereinafter referred to as memory A) in which NC data is registered. Reference numeral 5 is a T code search unit, which stores a plurality of N codes registered in the memory A4.
Program number of NC data (hereinafter,
T code (tool number: T No.) for each O number)
Only the program is searched from the beginning of the program and extracted. The T code retrieved by the T code search unit 5 is a T number file memory for each O number (hereinafter referred to as file B).
6) are stored in the file for each O number in order from the beginning of the program.

【0007】7はTコード順作成部であり、ファイルB
6の各々のO番号毎ファイルのTコード順を比較し、共
通のTコード(T No.)をまとめてTコード順番を作り
直す処理を行う。Tコード順作成部7にて作成されたデ
ータは工具番号データ順ファイルメモリ(以下、ファイ
ルCと記載)8に記憶される。9は工具毎NCデータ取
り出し部であり、メモリA4にあるNCデータを各々、
各工具毎にNCデータを取り出す処理を行う。工具毎N
Cデータ取り出し部9にて取り出されたNCデータは工
具毎NCデータファイルメモリ(以下、ファイルDと記
載)10に記憶される。11はNCデータ編集部であ
り、ファイルC8とファイルD10とのデータを合成し
NCデータを1本化する処理を行う。NCデータ編集部
11にて1本のNCデータに編集処理されたデータは前
記したNCデータのO番号と異なるO番号が付加されて
ファイルA4に登録される。13は編集処理中のデータ
を表示するための表示手段(CRT)、14はデータを
入力するためのキーボード、15はメモリカード等の外
部記憶媒体からNCデータを読み取り入力するための入
力手段(以下、NCデータ入力装置と記載)である。
Reference numeral 7 is a T-code sequence creating unit, which is a file B.
The T code order of each O number file of 6 is compared, the common T code (T No.) is collected, and the T code order is recreated. The data created by the T code order creating unit 7 is stored in a tool number data order file memory (hereinafter referred to as file C) 8. Reference numeral 9 denotes an NC data extraction unit for each tool, which reads NC data in the memory A4,
A process of extracting NC data is performed for each tool. For each tool N
The NC data extracted by the C data extracting unit 9 is stored in the NC data file memory for each tool (hereinafter referred to as file D) 10. Reference numeral 11 denotes an NC data editing unit, which performs a process of combining the data of the files C8 and D10 and unifying the NC data. The data edited by the NC data editing unit 11 into one piece of NC data is registered in the file A4 with an O number different from the O number of the NC data. Reference numeral 13 is a display means (CRT) for displaying data being edited, 14 is a keyboard for inputting data, 15 is input means for reading and inputting NC data from an external storage medium such as a memory card (hereinafter referred to as "input means"). , NC data input device).

【0008】図2はこの発明のNCデータ編集方法を示
す流れ図である。次に、図2の流れ図に基づいてこの発
明のNCデータ編集方法を説明する。なお、この実施例
においては図10に示すように、異種ワークW1 ,W
2 ,W3 ,W4 のそれぞれを個別に加工するNCデータ
が既に作成されてあって、立形マシニングセンタのテー
ブルB上の所定の位置に位置決めされ取付けられた異種
ワークW1 ,W2 ,W3,W4 を加工する場合について
説明する。まず、データの自動編集に先だって異種ワー
クW1 ,W2 ,W3 ,W4 のそれぞれを加工するための
NCデータをキーボード14を用いて作成するか、NC
データ入力装置15を介してメモリカードからNCデー
タを読み取り入力し、メモリA4に登録する(ステップ
S1,S2)。図3は作成された各ワークのNCデータ
であり、F1はワークW1 のNCデータを示し、F2は
ワークW2 のNCデータを示し、F3はワークW3 のN
Cデータを示し、F4はワークW4 のNCデータを示
す。
FIG. 2 is a flow chart showing the NC data editing method of the present invention. Next, the NC data editing method of the present invention will be described based on the flow chart of FIG. In this embodiment, as shown in FIG. 10, different kinds of works W 1 , W
NC data for individually machining each of 2 , W 3 and W 4 has already been created, and different types of workpieces W 1 , W 2 and W that are positioned and mounted at a predetermined position on the table B of the vertical machining center. A case of processing 3 and W 4 will be described. First, the NC data for processing each of the different types of workpieces W 1 , W 2 , W 3 , and W 4 is created using the keyboard 14 or the NC is performed prior to the automatic editing of the data.
The NC data is read and input from the memory card via the data input device 15 and registered in the memory A4 (steps S1 and S2). FIG. 3 shows NC data of each created work. F1 shows NC data of the work W 1 , F2 shows NC data of the work W 2 , and F3 shows N data of the work W 3 .
C data is shown, and F4 is NC data of the work W 4 .

【0009】作業者はかかるNCデータをCRT13に
表示し、変更する部分があるかないか判断し(ステップ
S3)、変更部分があれば変更部分を編集する(ステッ
プS4)。例えば、図10のような位置にワークを配置
する場合には、各ワークW1,W2 ,W3 ,W4 に各ワ
ーク座標系を割りつけて設定する。この実施例では、ワ
ークW1 にはワーク座標系設定選択指令G54で選択さ
れるワーク座標系を、同様に、ワークW2 にはワーク座
標系設定選択指令G55で選択されるワーク座標系を、
ワークW3 にはワーク座標系設定選択指令G56で選択
されるワーク座標系を、ワークW4 にはワーク座標系設
定選択指令G57で選択されるワーク座標系を割りつけ
設定した例で説明を行っている。あらかじめ、作成され
ているNCデータ内のワーク座標系設定選択指令がこの
割りつけられたワーク座標系設定選択指令に一致してい
ない場合には変更する必要があるので、この割りつけた
ワーク座標系設定選択指令G54〜G57に変更する手
動編集を行う。また、各ワークのNCデータ内のTコー
ドが共通に使用されているか否かも確認する。例えば、
O番号「O1〜O4」で使用されているT番号「T0
1」が工具径10mmのエンドミルであり、T番号「T0
2」が工具径5mmのドリルを共通に使用しているか否か
を確認し、使用していない場合には手動編集を行う。次
に自動編集の起動操作を行うと、CPU1はメモリA4
にあるNCデータを先頭のブロックから、すなわち、O
番号「O1」から順次読み取り、Tコードのみをサーチ
して順番に取り出す処理を行う。すなわち、O番号「O
1」のNCデータであれば、Tコード「T01」、「T
02」…を順次読み出し、ファイルB6のO番号「O
1」に対してレジスタF1に順次記憶する(ステップS
5)。同様にO番号「O2」、「O3」、「O4」のN
CデータからもTコードを抽出し記憶する。図4はかか
るステップS5の処理で記憶されたファイルB6の一例
である。
The operator displays the NC data on the CRT 13, judges whether there is a portion to be changed (step S3), and if there is a changed portion, edits the changed portion (step S4). For example, when arranging the workpieces at the positions shown in FIG. 10, the workpiece coordinate systems are assigned to the workpieces W 1 , W 2 , W 3 , and W 4 and set. In this embodiment, the work W 1 is the work coordinate system selected by the work coordinate system setting selection command G 54, and the work W 2 is the work coordinate system selected by the work coordinate system setting selection command G 55.
The workpiece coordinate system to the work W 3 is selected in the work coordinate system set selection command G56, been described in example of dividing attached set the work coordinate system selected by the workpiece coordinate system set selection command G57 is the work W 4 ing. If the work coordinate system setting selection command in the created NC data does not match the assigned work coordinate system setting selection command in advance, it is necessary to change it, so this work coordinate system setting selection command must be changed. Manual editing for changing to the setting selection commands G54 to G57 is performed. It is also confirmed whether the T code in the NC data of each work is commonly used. For example,
T number "T0" used in O number "O1 to O4"
1 "is an end mill with a tool diameter of 10 mm, and T number" T0
Check whether "2" commonly uses a drill with a tool diameter of 5 mm, and if not, perform manual editing. Next, when the automatic editing start operation is performed, the CPU 1 causes the memory A4
NC data in the first block, that is, O
A process of sequentially reading from the number "O1", searching for only the T code, and taking out in order is performed. That is, the O number "O
If the NC data is "1", T code "T01", "T"
02 ”... is sequentially read, and the O number“ O ”of the file B6 is read.
1 ”is sequentially stored in the register F1 (step S
5). Similarly, N of O number "O2", "O3", "O4"
The T code is also extracted from the C data and stored. FIG. 4 is an example of the file B6 stored in the process of step S5.

【0010】ファイルB6が作成されれば、CPU1は
ファイルB6の各々のO番号に対応するTコードの順序
を比較し、同じTコードがある場合に共通化するように
順番を作り直す処理を行い、作り直された新たな工具順
はファイルC8に登録される(ステップS6)。即ち、
まず図5に示すように、O番号「O1」(すなわち、F
1)の工具順とO番号「O2」(すなわち、F2)を比
較して加工順が近い同一Tコードの工具はワークW1
ワークW2 とを連続的に加工するように、すなわち、工
具交換動作をなるだけ削減するように共通化して加工を
行うようにまとめられ、新たな工具順F0を作成する。
つまり、O番号「O1」の「T1」「T2」の加工工程
プログラムであるNCデータ後にO番号「O2」の「T
2」の加工工程プログラムであるNCデータを挿入し、
次にO番号「O1」の「T11」、O番号「O2」の
「T2」「T10」の工具順にまとめられ記憶される。
ついで、新たな工具順F0とO番号「O3」(すなわ
ち、F3)の工具順を比較して更に新たな工具順F01
を作成する(図6参照)。更に新たな工具順F01 とO
番号「O4」(すなわち、F4)の工具順を比較して更
に新たな工具順F02 を作成する(図7参照)。なお、
最終的な工具順が図8に示すように、ファイルC8に工
具番号(TNo. )、その所属するプログラム番号(ON
o. )が加工順に登録される。
When the file B6 is created, the CPU 1 compares the order of the T-codes corresponding to the respective O-numbers of the file B6, and when there are the same T-codes, performs a process of recreating the order so as to make them common, The recreated new tool order is registered in the file C8 (step S6). That is,
First, as shown in FIG. 5, the O number “O1” (that is, F number)
The tool order of 1) is compared with the O number “O2” (that is, F2), and the tools of the same T code which are closer in the machining order process the work W 1 and the work W 2 continuously, that is, the tool. A new tool sequence F0 is created by grouping the machining operations in common so as to reduce the exchange operation as much as possible.
In other words, after the NC data which is the machining process program of “T1” and “T2” of the O number “O1”, “T” of the O number “O2”
Insert the NC data which is the machining process program of "2",
Next, the tool numbers “T11” of the O number “O1”, “T2” and “T10” of the O number “O2” are collected and stored in this order.
Then, the new tool order F0 is compared with the tool order with the O number "O3" (that is, F3), and a new tool order F0 1
Is created (see FIG. 6). Further new tool order F0 1 and O
The tool order of the number “O4” (that is, F4) is compared to create a new tool order F0 2 (see FIG. 7). In addition,
As shown in FIG. 8, the final tool order is the file number (TNo.) In the file C8, the program number to which it belongs (ON).
o.) is registered in the processing order.

【0011】ステップS6の処理が終わった時点で、結
果をCRT13の画面にリスト表示し、変更がある場合
は作業者が手動で編集することは可能である(ステップ
S7)。次に、CPU1はメモリA4にあるNCデータ
を各々、各工具毎にNCデータを取り出す処理を行う
(ステップS8)。すなわち、工具交換指令(T**
M06;)のブロック以降の最初に出てくるワーク座標
系設定選択指令(G54〜G59)を含むブロックを取
り出し開始ブロックとし、次の工具交換指令(T**
M06;)、または、プログラムエンド指令(M3
0;)の前のリファレンス点復帰指令(G28・・)を
含まないブロックを取り出し終了ブロックとし、そのあ
いだのブロック(NCデータ)をこの工具番号指令デー
タ(T**)の加工工程プログラムとして取り出す。ま
た、工具交換動作がある場合には、この工具交換指令デ
ータがこのNCデータ間に挿入される。このように取り
出したNCデータをプログラム番号毎、工具番号毎にフ
ァイルD10に登録する。すなわち、ファイルC8の一
本化工具番号指令データとファイルD10の工具番号指
令データ毎NCデータとから、この工具番号指令データ
に対応したNCデータを前記工具番号指令データ順に編
集して一本化する処理を行う(ステップS9)。この一
本化の編集が終了した後、一本化されたNCデータの前
部に、この一本化NCデータに付与されるプログラム番
号(例えば、O1000;)と、O番号「O1」のプロ
グラムの先頭にあるATC位置に移動させるための指令
ブロック(例えば、G91 G28 X0 Y0 Z
0;・・・;G92 X0 Y0 Z0;)を追加す
る。更に一本化されたNCデータの後部に、リファレン
ス点復帰指令(例えば、G91 G28 X0 Y0
Z0;),プログラムエンド指令(例えば、M30;)
を追加する。これにより、NCデータ編集処理を終了す
る。メモリA4にプログラム番号「O1000」のNC
データを登録する。なお、この実施例では異種ワークの
データをまとめて一本化しているが、同一ワークの表裏
加工用のNCデータをまとめて一本化してもよい。ま
た、ワークのワーク座標系設定選択指令をG54〜G5
7で説明しているが、これに限定されるものではない。
更に、立形マシニングセンタのNCデータを横形マシニ
ングセンタ用のNCデータにまとめて一本化する編集も
同様な処理方法で行うことができる。すなわち、ワーク
1 ,W2 ,W3 ,W4 を、パレット上に立設されたイ
ケールの各面に前記ワークW1 ,W2 ,W3 ,W4 を取
り付け、立形マシニングセンタ用のNCデータを横形マ
シニングセンタ用のNCデータに編集すればよい。ただ
し、この場合には、ワークW1 ,W2 ,W3 ,W4 がど
のイケール面に取り付けているのかを示すB軸指令のデ
ータ(B0,B90,B180,B270)が、ワーク
座標系設定選択指令(G54〜G57)と同様に、割り
つけ設定しておく必要がある。
When the processing of step S6 is completed, the results can be displayed in a list on the screen of the CRT 13, and if there is a change, the operator can manually edit it (step S7). Next, the CPU 1 performs a process of extracting the NC data in the memory A4 for each tool (step S8). That is, the tool change command (T **
The block including the work coordinate system setting selection command (G54 to G59) that first appears after the block of M06;) is set as the extraction start block and the next tool change command (T **).
M06;) or program end command (M3
0;) before the reference point return command (G28 ...) Is not taken out as an end block, and the block (NC data) between them is taken out as a machining process program of this tool number command data (T **). . If there is a tool change operation, the tool change command data is inserted between the NC data. The NC data thus extracted is registered in the file D10 for each program number and each tool number. That is, from the unification tool number command data of the file C8 and the NC data for each tool number command data of the file D10, the NC data corresponding to this tool number command data is edited and unified in the order of the tool number command data. Processing is performed (step S9). After the editing of the unified NC data is completed, the program number (for example, O1000;) assigned to the unified NC data and the program of the O number "O1" are added to the front part of the unified NC data. Command block for moving to the ATC position at the beginning of the (eg, G91 G28 X0 Y0 Z
0; ...; G92 X0 Y0 Z0;) is added. A reference point return command (for example, G91 G28 X0 Y0) is added to the rear of the unified NC data.
Z0;), program end command (for example, M30;)
To add. This ends the NC data editing process. NC with program number “O1000” in memory A4
Register the data. In addition, in this embodiment, the data of different kinds of workpieces are collected and unified, but NC data for front and back processing of the same workpiece may be collected and unified. In addition, the work coordinate system setting selection command for the work is set to G54 to G5.
However, the present invention is not limited to this.
Further, the same processing method can be used to edit the NC data of the vertical machining center into the NC data for the horizontal machining center. That is, the works W 1 , W 2 , W 3 and W 4 are attached to the respective surfaces of the scales erected on the pallet, and the works W 1 , W 2 , W 3 and W 4 are attached to the NCs for the vertical machining center. The data may be edited into NC data for a horizontal machining center. However, in this case, the workpiece W 1, W 2, W 3 , W 4 is any tombstone of B-axis command that indicate is attached to surface data (B0, B90, B180, B270 ) is a work coordinate system setting Similar to the selection command (G54 to G57), it is necessary to set the allocation.

【0012】[0012]

【発明の効果】以上説明したように、複数本のNCデー
タを一本にまとめて編集する際に、作業者がNCデータ
作成の操作や編集操作に習熟していなくても、簡単な操
作だけで複数本のNCデータが1本に自動編集できる。
すなわち、立形マシニングセンタ用に作成したNCデー
タを横形マシニングセンタ用に編集できる。更に、異種
ワークや同一のワークの表裏加工ができるように編集で
きる。このことにより機械の生産性の向上や加工のフレ
キシビリティの向上が図れるという顕著な効果を有す
る。
As described above, when a plurality of NC data are collectively edited, a simple operation can be performed even if the operator is not familiar with the operation for creating NC data and the editing operation. With, multiple NC data can be automatically edited into one.
That is, the NC data created for the vertical machining center can be edited for the horizontal machining center. Furthermore, it is possible to edit so that different kinds of workpieces or the same workpiece can be processed on the front and back sides. This has the remarkable effect of improving the productivity of the machine and the flexibility of processing.

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

【図1】本発明によるNCデータ編集装置の一例を示す
図である。
FIG. 1 is a diagram showing an example of an NC data editing device according to the present invention.

【図2】本発明によるNCデータ編集方法を示す流れ図
である。
FIG. 2 is a flowchart showing an NC data editing method according to the present invention.

【図3】本発明のメモリAを示す図である。FIG. 3 is a diagram showing a memory A of the present invention.

【図4】本発明のファイルBを示す図である。FIG. 4 is a diagram showing a file B of the present invention.

【図5】本発明のTコード順作成部の手順を示す図であ
る。
FIG. 5 is a diagram showing a procedure of a T code order creation unit of the present invention.

【図6】本発明のTコード順作成部の手順を示す図であ
る。
FIG. 6 is a diagram showing a procedure of a T code order creation unit of the present invention.

【図7】本発明のTコード順作成部の手順を示す図であ
る。
FIG. 7 is a diagram showing a procedure of a T code order creation unit of the present invention.

【図8】本発明のファイルCを示す図である。FIG. 8 is a diagram showing a file C of the present invention.

【図9】本発明の1本化されたプログラムを示す図であ
る。
FIG. 9 is a diagram showing a unified program of the present invention.

【図10】複数の異種ワークを同時に加工する場合の説
明図である。
FIG. 10 is an explanatory diagram of a case where a plurality of different types of workpieces are simultaneously processed.

【符号の説明】 1 CPU 2 ROM 3 RAM 4 メモリA 5 Tコードサーチ部 6 ファイルB 7 Tコード順作成部 8 ファイルC 9 工具毎NCデータ取り出し部 10 ファイルD 11 NCデータ編集部[Explanation of Codes] 1 CPU 2 ROM 3 RAM 4 Memory A 5 T Code Search Unit 6 File B 7 T Code Order Creation Unit 8 File C 9 NC Data Extraction Unit for Each Tool 10 File D 11 NC Data Editing Unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 一つまたは一つ以上の被加工物を加工す
るために作成された複数のNCデータを、同一の工作機
械上で加工を行うためにNCデータを一本化の編集をす
るためのNCデータ編集方法であって、 複数のNCデータから各々のNCデータ毎に工具番号指
令データを、順次、このNCデータのプログラム先頭か
ら抽出する処理を行う工程と、 このNCデータ毎工具番号指令データを各々比較し、加
工工程順位が近似している同一の工具番号指令データを
まとめて一本化する処理を行う工程と、 前記まとめて一本化された工具番号指令データの順番に
前記工具番号指令データ毎NCデータを並べなおす編集
処理を行う工程とからなることを特徴とするNCデータ
編集方法。
1. A plurality of NC data created for machining one or more workpieces are unified and edited for machining on the same machine tool. And a step of performing a process of sequentially extracting tool number command data for each NC data from a plurality of NC data from the program head of this NC data, and a tool number for each NC data. Comparing the command data respectively, a step of performing a process of unifying the same tool number command data having a similar machining step order, and the process of unifying the tool number command data. An NC data editing method comprising a step of performing an editing process of rearranging NC data for each tool number command data.
【請求項2】 一つまたは一つ以上の被加工物を加工す
るために作成された複数のNCデータを、同一の工作機
械上で加工を行うためにNCデータを一本化の編集をす
るためのNCデータ編集装置であって、 前記複数のNCデータが登録されるNCデータメモリ
と、 このNCデータメモリに登録されたNCデータの中か
ら、各々のNCデータのプログラム番号毎に、前記NC
データのプログラム先頭から順番に工具番号指令データ
をサーチし抽出する処理を行う工具番号データサーチ部
と、 この抽出された工具番号指令データが記憶されるプログ
ラム番号毎工具番号ファイルメモリと、 このプログラム番号毎工具番号ファイルメモリに記憶さ
れた複数のプログラム番号毎工具番号指令データを比較
し、加工工程順番が近似している同一の工具番号指令デ
ータをまとめて一本化した工具番号指令データに作成す
る工具番号データ順作成部と、 この工具番号データ順作成部で作成される一本化工具番
号指令データが記憶される工具番号データ順ファイルメ
モリと、 前記NCデータメモリに登録されているNCデータを前
記工具番号指令データ毎の加工工程プログラムであるN
Cデータを取り出す処理を行う工具毎NCデータ取り出
し部と、 この工具毎NCデータ取り出し部で取り出された工具番
号指令データ毎のNCデータが記憶される工具毎NCデ
ータファイルメモリと、 前記工具番号データ順ファイルメモリの一本化工具番号
指令データと、前記工具毎NCデータファイルメモリに
記憶された工具番号指令データ毎のNCデータとから、
この工具番号指令データに対応したNCデータを前記工
具番号指令データ順に並びかえる編集をして一本化する
処理を行うNCデータ編集部と、 前記各メモリ、前記各部を統轄制御する中央処理装置と
からなることを特徴とするNCデータ編集装置。
2. A plurality of NC data created for processing one or more workpieces are unified and edited to perform processing on the same machine tool. And an NC data memory in which the plurality of NC data are registered, and the NC data registered in the NC data memory for each program number of the NC data among the NC data registered in the NC data memory.
A tool number data search unit that searches for and extracts the tool number command data from the beginning of the data program, a tool number file memory for each program number in which the extracted tool number command data is stored, and this program number Each tool number command data stored in the memory of each tool number file is compared, and the same tool number command data that the machining process order is similar to each other is created as a unified tool number command data. A tool number data sequence creation unit, a tool number data sequence file memory in which the integrated tool number command data created by this tool number data sequence creation unit is stored, and NC data registered in the NC data memory N which is a machining process program for each tool number command data
An NC data extracting unit for each tool that performs a process for extracting C data, an NC data file memory for each tool that stores the NC data for each tool number command data extracted by the NC data extracting unit for each tool, and the tool number data Unification of sequential file memory From tool number command data and NC data for each tool number command data stored in the NC data file memory for each tool,
An NC data editing unit that edits NC data corresponding to the tool number command data in the order of the tool number command data to perform a process of unifying, and a central processing unit that controls the respective memories and the respective units. An NC data editing device comprising:
JP8062094A 1994-04-19 1994-04-19 Method and device for editing nc data Pending JPH07285049A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8062094A JPH07285049A (en) 1994-04-19 1994-04-19 Method and device for editing nc data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8062094A JPH07285049A (en) 1994-04-19 1994-04-19 Method and device for editing nc data

Publications (1)

Publication Number Publication Date
JPH07285049A true JPH07285049A (en) 1995-10-31

Family

ID=13723398

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8062094A Pending JPH07285049A (en) 1994-04-19 1994-04-19 Method and device for editing nc data

Country Status (1)

Country Link
JP (1) JPH07285049A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010089226A (en) * 2008-10-09 2010-04-22 Toshiba Corp Machining system and machining method of long strip-like workpiece
CN103197606A (en) * 2013-03-25 2013-07-10 沈阳理工大学 Intelligent and numerical control system based on STEP-NC

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010089226A (en) * 2008-10-09 2010-04-22 Toshiba Corp Machining system and machining method of long strip-like workpiece
CN103197606A (en) * 2013-03-25 2013-07-10 沈阳理工大学 Intelligent and numerical control system based on STEP-NC

Similar Documents

Publication Publication Date Title
EP0148273B1 (en) Numerical control apparatus
US4814999A (en) Automatic programming system
JP2901353B2 (en) Numerical control device with machining program editing function for numerically controlled machine tools
JPH07285049A (en) Method and device for editing nc data
GB2109130A (en) Method of controlling indexing of magazine pockets in a machining centre
JP2008112217A (en) Cam apparatus and synchronization setting method
JPH10113836A (en) Cutting tool checking method and device used for nc machine tool
JPH03219305A (en) Multi-piece layout specification system
JPH04223835A (en) Tool number registering method of nc machine tool
JPS63127853A (en) Method of calculating machining path
JPH0685130B2 (en) Processing area division processing device in automatic processing machine
JPH0457459B2 (en)
JPH0857744A (en) Input data display method in interactive numerical control system
JPH1063323A (en) Nc working program preparing method and device for horizontal type working machine
JP3091604B2 (en) How to create a tool unit shape
JP2002182715A (en) Nc program display device and nc program compiling device
JPH01265308A (en) Method for extracting arrangement information on nc program
JPH05253792A (en) Table processing system for preparation of nc data
JP2603622B2 (en) Numerical control data creation method for machine tools
JP2789982B2 (en) CAD / CAM equipment
JPH0431906A (en) Process editing method
JPH02195404A (en) Numerical controller
JPH07132434A (en) Machining data originating method
JP2002297211A (en) Method for summarizing nc program
JP2001042912A (en) Nc data generation system

Legal Events

Date Code Title Description
A02 Decision of refusal

Effective date: 20040407

Free format text: JAPANESE INTERMEDIATE CODE: A02