JPH04245503A - Editing device for machining program - Google Patents

Editing device for machining program

Info

Publication number
JPH04245503A
JPH04245503A JP3154091A JP3154091A JPH04245503A JP H04245503 A JPH04245503 A JP H04245503A JP 3154091 A JP3154091 A JP 3154091A JP 3154091 A JP3154091 A JP 3154091A JP H04245503 A JPH04245503 A JP H04245503A
Authority
JP
Japan
Prior art keywords
machining program
tool path
display device
code
tool
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
JP3154091A
Other languages
Japanese (ja)
Inventor
Hideto Funabashi
船橋 秀人
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 JP3154091A priority Critical patent/JPH04245503A/en
Publication of JPH04245503A publication Critical patent/JPH04245503A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To shorten the editing time of a machining program by deciding the corrected part of the program and at the same time pointing a desired position where a new tool path is set so as to add an operating instruction code to the corrected part of the program. CONSTITUTION:The corrected part of a machining program is decided when the tool paths TP1-TP3 existing right before a tool path TP4 that has the interference with a work shape WK are shown on a graphic display device 6. In addition, a desired position P3' where a new tool path TP3' is set is pointed on the device 6 with an added bypass point PL. Thus an operating instruction code to be added to the machining program is produced and then added to the corrected part of the machining program. As a result, the editing time of the machining program is shortened.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、数値制御工作機械にお
いて使用される加工プログラムの編集装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a machining program editing device used in numerically controlled machine tools.

【0002】0002

【従来の技術】従来、数値制御工作機械において実際の
加工を行うのに先立って、使用される加工プログラムに
指示された工具経路(刃先経路)とワークをCRT表示
装置等に図示することによって、当該加工プログラムが
正しく作成されているか否かをプログラマ等がチェック
している。そして、工具経路のチェックによって、工具
とワークが干渉する工具経路や無駄な工具経路が発見さ
れると、プログラマ等は、当該加工プログラム中の対応
する所定のシーケンス番号の動作命令コードを変更して
、加工プログラムを正しく修正している。
2. Description of the Related Art Conventionally, prior to actual machining using a numerically controlled machine tool, the tool path (cutting edge path) and workpiece instructed by the machining program used are illustrated on a CRT display device or the like. A programmer or the like checks whether the machining program has been created correctly. If a tool path that causes interference between the tool and workpiece or a useless tool path is discovered by checking the tool path, the programmer, etc. changes the operation command code of the corresponding predetermined sequence number in the machining program. , the machining program has been corrected.

【0003】0003

【発明が解決しようとする課題】加工プログラムを修正
するに際して、CRT表示装置が工具経路チェック画面
からプログラム作成画面に切り換えられるので、プログ
ラマ等は、加工プログラム上の対応する(変更する)部
分を捜すために、工具とワークが干渉する工具経路や無
駄な工具経路を記憶しておかねばならい。また、プログ
ラマ等は、加工プログラム上の変更する部分の動作命令
コードを作成するために、工具とワークの干渉を回避で
きる工具経路の座標を計算しなければならない。更に、
加工プログラムが修正されると、CRT表示装置をプロ
グラム作成画面から再び工具経路チェック画面に切り換
えて、修正された加工プログラムに関して、工具経路等
を新ためてCRT表示装置等に図示して、加工プログラ
ムの修正が正しく行われたか否かをチェックしなけらば
ならないので、煩雑であった。
[Problem to be Solved by the Invention] When modifying a machining program, the CRT display device is switched from the tool path check screen to the program creation screen, so the programmer etc. searches for the corresponding (changed) part on the machining program. Therefore, it is necessary to memorize tool paths where the tool and workpiece interfere and unnecessary tool paths. Furthermore, in order to create operation instruction codes for parts of the machining program to be changed, programmers and the like must calculate the coordinates of a tool path that can avoid interference between the tool and the workpiece. Furthermore,
When the machining program is corrected, the CRT display device is switched from the program creation screen to the tool path check screen again, the tool path etc. are newly shown on the CRT display device etc. regarding the corrected machining program, and the machining program is It was complicated because it had to be checked whether the modification was done correctly.

【0004】本発明は、上記事情に鑑み、加工プログラ
ムの修正を容易に行うことが出来る加工プログラム編集
装置を提供することを目的とする。
SUMMARY OF THE INVENTION In view of the above circumstances, it is an object of the present invention to provide a machining program editing device that can easily modify a machining program.

【0005】[0005]

【課題を解決するための手段】本発明は、図形表示装置
(6)を有し、前記図形表示装置(6)に、ワーク形状
(WK)を図示するワーク形状図示手段(10)を設け
、ワーク形状(WK)が図示されている前記図形表示装
置(6)に、加工プログラム(PRO)中に格納された
各動作命令コード(GCD)に基づいて、工具経路(T
P)を当該加工プログラム(PRO)の実行順序に従っ
て逐次図示する工具経路図示手段(11)を設け、前記
図形表示装置(6)に図示されている工具経路(TP)
の中で最後に図示された工具経路(TP)に対応する動
作命令コード(GCD)の前記加工プログラム(PRO
)中の実行位置(SN)を判定する実行位置判定手段(
12)を設け、ワーク形状(WK)と工具経路(TP)
が図示されている前記図形表示装置(6)の所望の位置
(P3′)に、追加経由点(PL)を図示する経由点指
示手段(9o、9p、9q、9r、15)を設け、前記
図形表示装置(6)に図示されている追加経由点(PL
)の座標(CD3′)を判定する経由点座標判定手段(
16)を設け、前記経由点座標判定手段(16)によっ
て判定された追加経由点(PL)の座標(CD3′)に
基づいて動作命令コード(GCD3′)を作成し、当該
動作命令コード(GCD3′)を、前記実行位置判定手
段によって判定された実行位置(SN3)の動作命令コ
ード(GCD3)の直後に追加する形で、前記加工プロ
グラム(PRO1)中に格納する動作命令コード追加手
段(22)を設けて構成される。
[Means for Solving the Problems] The present invention has a graphic display device (6), and the graphic display device (6) is provided with a work shape illustrating means (10) for illustrating a work shape (WK), The tool path (T
A tool path illustrating means (11) is provided for sequentially illustrating the tool path P) according to the execution order of the machining program (PRO), and the tool path (TP) illustrated on the graphic display device (6) is provided.
The machining program (PRO) of the movement instruction code (GCD) corresponding to the last illustrated tool path (TP)
) for determining the execution position (SN) in
12) to determine the workpiece shape (WK) and tool path (TP).
Way point indicating means (9o, 9p, 9q, 9r, 15) for illustrating an additional way point (PL) is provided at a desired position (P3') of the graphic display device (6) where PL is shown; Additional way points (PL) shown on the graphic display device (6)
way point coordinate determination means (CD3') for determining the coordinates (CD3') of
16), creates a motion command code (GCD3') based on the coordinates (CD3') of the additional waypoint (PL) determined by the waypoint coordinate determining means (16), and generates a motion command code (GCD3'). ') is stored in the machining program (PRO1) immediately after the motion command code (GCD3) at the execution position (SN3) determined by the execution position determination means (22). ).

【0006】また、本発明は、加工プログラム(PRO
2)中の前記実行位置判定手段(12)によって判定さ
れた実行位置(SN4)に格納されている動作命令コー
ド(GCD4)を削除する動作命令コード削除手段(2
3)を設けて構成される。
[0006] The present invention also provides a machining program (PRO
2) operation instruction code deletion means (2) for deleting the operation instruction code (GCD4) stored at the execution position (SN4) determined by the execution position determination means (12);
3).

【0007】なお、(  )内の番号等は、図面におけ
る対応する要素を示す、便宜的なものであり、従って、
本記述は図面上の記載に限定拘束されるものではない。 以下の「作用」の欄についても同様である。
[0007] Numbers in parentheses are for convenience and indicate corresponding elements in the drawings.
This description is not limited to the description on the drawings. The same applies to the "effect" column below.

【0008】[0008]

【作用】上記した構成により、ワーク形状(WK)と干
渉する工具経路(TP4)の直前までの工具経路(TP
1、TP2、TP3)を図形表示装置(6)上に図示さ
せることによって、加工プログラム(PRO1)の修正
すべき部分が判定され、更に、新たに工具経路(TP3
′)を設定したい位置(P3′)を図形表示装置(6)
上で追加経由点(PL)によって指示することによって
、加工プログラム(PRO1)に追加すべき動作命令コ
ード(GCD3′)が作成され、当該動作命令コード(
GCD3′)が加工プログラム(PRO1)の前記修正
すべき部分に追加されるように作用する。
[Operation] With the above configuration, the tool path (TP4) up to just before the tool path (TP4) that interferes with the workpiece shape (WK)
1, TP2, TP3) on the graphic display device (6), the part to be corrected in the machining program (PRO1) is determined, and furthermore, a new tool path (TP3
') on the graphic display device (6)
By instructing with the additional route point (PL) above, a motion command code (GCD3') to be added to the machining program (PRO1) is created, and the motion command code (GCD3') is created.
GCD3') is added to the part to be corrected in the machining program (PRO1).

【0009】また、無駄な工具経路(TP4′)までの
工具経路(TP1、TP2、TP3、TP3′、TP4
′)を図形表示装置(6)上に図示させることによって
、加工プログラム(PRO2)中の無駄な動作命令コー
ド(GCD4)が格納されている実行位置(SN4)が
判定され、当該実行位置(SN4)の動作命令コード(
GCD4)が削除されるように作用する。
[0009] Also, the tool paths (TP1, TP2, TP3, TP3', TP4) up to the useless tool path (TP4')
') on the graphic display device (6), the execution position (SN4) where the wasteful operation command code (GCD4) in the machining program (PRO2) is stored is determined, and the execution position (SN4) is ) operation instruction code (
GCD4) is deleted.

【0010】0010

【実施例】以下、図面に基づき、本発明の実施例を説明
する。図1は、本発明による加工プログラム編集装置の
一実施例を示す制御ブロック図、図2は、図1に示す加
工プログラム編集装置の入力装置を示す図、図3は、工
具経路編集プログラムを示すフローチャート、図4は、
加工プログラムの一例を示す図、図5は、表示装置上に
、図4に示す加工プログラムに関して、全ての工具経路
を図示した状態を示す図、図6は、表示装置上に、図4
に示す加工プログラムに関して、工具とワークが干渉す
る工具経路の直前までの工具経路を図示した状態を示す
図、図7は、表示装置上で、図6に示す状態から、工具
とワークの干渉を回避し得る追加経由点を設定する様子
を示す図、図8は、表示装置上に、図9に示す加工プロ
グラムに関して、全ての工具経路を図示した状態を示す
図、図9は、図4に示す加工プログラムに、工具とワー
クの干渉を回避し得る動作命令コードが追加された、加
工プログラムを示す図、図10は、表示装置上に、図9
に示す加工プログラムに関して、無駄な工具経路までの
工具経路を図示した状態を示す図、図11は、表示装置
上で、図10に示す状態から、無駄な工具経路を消去し
た状態を示す図、図12は、表示装置上に、図13に示
す加工プログラムに関して、全ての工具経路を図示した
状態を示す図、図13は、図9に示す加工プログラムか
ら、無駄な動作命令コードが削除された、加工プログラ
ムを示す図である。
Embodiments Hereinafter, embodiments of the present invention will be explained based on the drawings. FIG. 1 is a control block diagram showing an embodiment of a machining program editing device according to the present invention, FIG. 2 is a diagram showing an input device of the machining program editing device shown in FIG. 1, and FIG. 3 is a diagram showing a tool path editing program. The flowchart, FIG.
FIG. 5 is a diagram showing an example of a machining program. FIG. 5 is a diagram showing all tool paths regarding the machining program shown in FIG. 4 on a display device. FIG. 6 is a diagram showing an example of a machining program shown in FIG.
7 is a diagram illustrating the tool path up to just before the tool path where the tool and workpiece interfere, regarding the machining program shown in FIG. FIG. 8 is a diagram showing how to set additional route points that can be avoided. FIG. 8 is a diagram showing all tool paths for the machining program shown in FIG. 9 on the display device. FIG. 10 is a diagram showing a machining program in which an operation command code that can avoid interference between a tool and a workpiece is added to the machining program shown in FIG.
11 is a diagram illustrating a state in which the tool path up to a useless tool path is illustrated for the machining program shown in FIG. FIG. 12 shows a state in which all tool paths are illustrated on the display device for the machining program shown in FIG. 13, and FIG. 13 shows a state in which useless operation command codes have been deleted from the machining program shown in FIG. 9. , is a diagram showing a machining program.

【0011】本発明による加工プログラム編集装置1は
、図1に示すように、主制御部2を有しており、主制御
部2には、バス線3を介して、表示制御部5、入力制御
部7、ワーク形状表示演算部10、工具経路表示演算部
11、シーケンス番号判定部12、シーケンス番号メモ
リ13、刃先点表示制御部15、刃先点座標判定部16
、刃先点座標メモリ17、Gファンクション判定部19
、Gファンクションメモリ20、送り速度メモリ21、
Gコード作成挿入部22、Gコード消去部23、加工プ
ログラムメモリ25、システムプログラムメモリ26等
が接続されている。表示制御部5には、CRT表示装置
6が接続されており、入力制御部7には、キーボード、
タッチスイッチ等の入力装置9が接続されている。 そして、入力装置9には、図2に示すように、工具経路
チェックキー9a、9b、9c、9d、編集モードキー
9e、9f、9g、送り選択キー9h、9i、9j、送
り速度設定キー9k、移動倍率モード選択キー9l、9
m、9n、カーソルキー9o、9p、9q、9r、設定
キー9s等が設けられている。
As shown in FIG. 1, the machining program editing device 1 according to the present invention has a main control section 2. The main control section 2 is connected to a display control section 5, an input control section, Control section 7, workpiece shape display calculation section 10, tool path display calculation section 11, sequence number determination section 12, sequence number memory 13, cutting edge point display control section 15, cutting edge point coordinate determination section 16
, cutting edge point coordinate memory 17, G function determination section 19
, G function memory 20, feed speed memory 21,
A G code creation/insertion section 22, a G code erasure section 23, a machining program memory 25, a system program memory 26, etc. are connected. A CRT display device 6 is connected to the display control section 5, and a keyboard, a keyboard, and an input control section 7 are connected to the display control section 5.
An input device 9 such as a touch switch is connected. As shown in FIG. 2, the input device 9 includes tool path check keys 9a, 9b, 9c, 9d, edit mode keys 9e, 9f, 9g, feed selection keys 9h, 9i, 9j, and a feed speed setting key 9k. , movement magnification mode selection keys 9l, 9
m, 9n, cursor keys 9o, 9p, 9q, 9r, setting key 9s, etc. are provided.

【0012】加工プログラム編集装置1は以上のような
構成を有するので、工具経路チェックに際して、主制御
部2は、システムプログラムメモリ26から図3に示す
工具経路編集プログラムTPEを読み出し、当該工具経
路編集プログラムTPEに基づいて、以下のようにして
、加工プログラムPRO(尚、本明細書において、複数
の加工プログラムを包括的に示す場合または複数の加工
プログラムの内の任意の加工プログラムを示す場合には
符号PROのみを使用し、複数の加工プログラムの内の
特定の加工プログラムを示す場合には符号PRO1、P
RO2、PRO3等の符号PROの末尾に所定の数字等
が付加された符号を使用する。GコードGCD、GCD
1、工具経路TP、TP4、シーケンス番号SN、SN
3、点P、P3′等についても同様である。)の編集を
行う。まず、図3ステップS1において、主制御部2は
、加工プログラムメモリ25から加工プログラムPRO
を読み出して、表示制御部5、ワーク形状表示演算部1
0、工具経路表示演算部11を介して、当該加工プログ
ラムPROに関するワーク形状WK、工具経路TPをC
RT表示装置6上に図示する。即ち、ワーク形状表示演
算部10は、加工プログラムPRO中に格納されている
素材長さ、素材半径等の加工情報に基づいてワーク形状
WKを算出して、当該ワーク形状WKを、表示制御部5
を介して、CRT表示装置6上に図示する。また、工具
経路表示演算部11は、加工プログラムPROに格納さ
れているGコードGCDに基づいて、各GコードGCD
に指示された座標を終点Pとする工具経路TPを算出し
て、表示制御部5を介して、当該工具経路TPを、既に
ワーク形状WKが図示されているCRT表示装置6上に
図示する。
Since the machining program editing device 1 has the above configuration, when checking the tool path, the main control section 2 reads the tool path editing program TPE shown in FIG. 3 from the system program memory 26 and edits the tool path. Based on the program TPE, the machining program PRO (in this specification, when multiple machining programs are comprehensively indicated or any machining program among the multiple machining programs is indicated, When only the symbol PRO is used to indicate a specific machining program among multiple machining programs, the symbols PRO1, P
Codes such as RO2 and PRO3 are used in which a predetermined number or the like is added to the end of code PRO. G code GCD, GCD
1. Tool path TP, TP4, sequence number SN, SN
3. The same applies to points P, P3', etc. ). First, in step S1 in FIG.
The display control unit 5 and the workpiece shape display calculation unit 1
0, the workpiece shape WK and tool path TP related to the machining program PRO are displayed via the tool path display calculation unit 11.
It is illustrated on the RT display device 6. That is, the workpiece shape display calculation unit 10 calculates the workpiece shape WK based on machining information such as material length and material radius stored in the machining program PRO, and displays the workpiece shape WK in the display control unit 5.
The image is shown on the CRT display device 6 via the screen. Further, the tool path display calculation unit 11 calculates each G code GCD based on the G code GCD stored in the machining program PRO.
A tool path TP is calculated whose end point P is the coordinates instructed by , and the tool path TP is illustrated on the CRT display device 6 on which the workpiece shape WK is already illustrated via the display control section 5.

【0013】図4に示す加工プログラムPRO1に関し
ては、図5に示すように、ワーク形状WK、工具経路T
PがCRT表示装置6上に図示される(尚、図中斜線部
分はワーク形状を示す)。この際、加工プログラムPR
O1のGコードGCD1に指示された座標「X62.Z
−70.」はCRT表示装置6上に図示された工具経路
TP1の終点(工具経路TP2の始点)P1に対応して
おり、GコードGCD2の座標「X30.」、Gコード
GCD3の座標「Z−58.」、GコードGCD4の座
標「Z12.」、GコードGCD5の座標「U0.W0
.」は、それぞれ、工具経路TP2の終点(工具経路T
P3の始点)P2、工具経路TP3の終点(工具経路T
P4の始点)P3、工具経路TP4の終点(工具経路T
P5の始点)P4、工具経路TP5の終点PEに対応し
ている。工具経路TPをCRT表示装置6上に図示する
に際して、オペレータ(プログラマ等)によって図2に
示す入力装置9の工具経路チェックキー9a(チェック
連続キー)が押された場合、工具経路表示演算部11は
、一連の工具経路TP1、TP2、TP3、TP4、T
P5を、連続して、加工プログラムPRO1のシーケン
ス番号SN通りの順序でCRT表示装置6に図示して行
く。また、オペレータによって工具経路チェックキー9
b(チェックステップキー)が押された場合、工具経路
表示演算部11は、一連の工具経路TP1、TP2、T
P3、TP4、TP5を、当該工具経路チェックキー9
bが1回押される毎にシーケンス番号SNを1つだけ進
める形で、1ステップ毎に、加工プログラムPRO1の
シーケンス番号SN通りの順序で図示して行く。また、
オペレータによって工具経路チェックキー9c(チェッ
ク逆転連続キー)が押された場合、工具経路表示演算部
11は、既にCRT表示装置6に図示されている工具経
路TP5、TP4、TP3、TP2、TP1を、連続し
て、加工プログラムPRO1のシーケンス番号SNと逆
の順序で消去して行く。また、オペレータによって工具
経路チェックキー9d(チェック逆転ステップキー)が
押された場合、工具経路表示演算部11は、既にCRT
表示装置6に図示されている工具経路TP5、TP4、
TP3、TP2、TP1を、当該工具経路チェックキー
9dが1回押される毎にシーケンス番号SNを1つだけ
戻す形で、1ステップ毎に、加工プログラムPRO1の
シーケンス番号SNと逆の順序で消去して行く。
Regarding the machining program PRO1 shown in FIG. 4, as shown in FIG.
P is illustrated on the CRT display device 6 (the shaded area in the figure indicates the shape of the workpiece). At this time, the machining program PR
The coordinates specified by O1's G code GCD1 are "X62.Z
-70. ” corresponds to the end point P1 of the tool path TP1 (starting point of the tool path TP2) illustrated on the CRT display device 6, and the coordinates “X30.” of the G code GCD2 and the coordinates “Z-58.” of the G code GCD3. ”, G code GCD4 coordinates “Z12.”, G code GCD5 coordinates “U0.W0
.. ” are the end points of the tool path TP2 (the tool path T
P2 (start point of P3), end point of tool path TP3 (tool path T
start point of P4) P3, end point of tool path TP4 (tool path T
The starting point of P5) P4 corresponds to the end point PE of the tool path TP5. When the operator (programmer, etc.) presses the tool path check key 9a (continuous check key) of the input device 9 shown in FIG. is a series of tool paths TP1, TP2, TP3, TP4, T
P5 are successively shown on the CRT display device 6 in the order according to the sequence number SN of the machining program PRO1. The tool path check key 9 can also be set by the operator.
b (check step key) is pressed, the tool path display calculation unit 11 displays a series of tool paths TP1, TP2, T
P3, TP4, TP5 with the relevant tool path check key 9
Each time b is pressed, the sequence number SN advances by one, and each step is illustrated in the same order as the sequence number SN of the machining program PRO1. Also,
When the operator presses the tool path check key 9c (check reverse continuous key), the tool path display calculation unit 11 displays the tool paths TP5, TP4, TP3, TP2, and TP1 already shown on the CRT display device 6. Continuously, the data are erased in the reverse order of the sequence number SN of the machining program PRO1. Further, when the tool path check key 9d (check reverse step key) is pressed by the operator, the tool path display calculation section 11 has already
Tool paths TP5, TP4, illustrated on the display device 6;
TP3, TP2, and TP1 are deleted in the reverse order of the sequence number SN of the machining program PRO1 for each step, in the form that the sequence number SN is returned by one each time the tool path check key 9d is pressed. Go.

【0014】こうして、加工プログラムPRO1に基づ
いてCRT表示装置6に図示されたワーク形状WKと工
具経路TPを見て、オペレータは、加工プログラムPR
O1が正しく作成されているか否かをチェックする。そ
して、オペレータは、図5に示すように工具経路TP4
がワーク形状WKと干渉していることを発見すると、図
2に示す入力装置9の工具経路チェックキー9b、9d
を適宜操作して、図6に示すように、干渉が発見された
工具経路TP4の直前までの工具経路TP1、TP2、
TP3をCRT表示装置6に図示させる。尚、上述のよ
うに加工プログラムPROの途中までの工具経路TPが
CRT表示装置6に図示されている際には、刃先点表示
制御部15は、CRT表示装置6の現在図示されている
工具経路TPの内の最後に図示された工具経路TPの終
点Pの位置に、刃先点PLを表示制御部5を介して図示
する。即ち、上述の場合には、CRT表示装置6の最後
に図示されている工具経路TP3の終点P3の位置に、
刃先点PLが図示される。
In this way, the operator sees the workpiece shape WK and the tool path TP illustrated on the CRT display device 6 based on the machining program PRO1.
Check whether O1 is created correctly. Then, the operator selects the tool path TP4 as shown in FIG.
When it is discovered that the tool path check keys 9b and 9d of the input device 9 shown in FIG.
As shown in FIG. 6, the tool paths TP1, TP2, up to just before the tool path TP4 where the interference was detected are
TP3 is shown on the CRT display device 6. Note that when the tool path TP up to the middle of the machining program PRO is illustrated on the CRT display device 6 as described above, the cutting edge point display control unit 15 displays the tool path currently illustrated on the CRT display device 6. A cutting edge point PL is illustrated via the display control unit 5 at the position of the end point P of the last illustrated tool path TP. That is, in the above case, at the position of the end point P3 of the tool path TP3 shown at the end of the CRT display device 6,
A cutting edge point PL is illustrated.

【0015】そして、オペレータは、工具経路TP4を
変更するために、図2に示す入力装置9の編集モードキ
ー9e(TPE有効キー)を押す。オペレータによって
入力装置9の編集モードキー9eが押されると、図3ス
テップS2からステップS3に入り、シーケンス番号判
定部12は、CRT表示装置6に現在図示されている工
具経路TPの内の最後に図示された工具経路TP3に対
応するGコードGCD3のシーケンス番号SN3を判定
し、シーケンス番号SN3として判定された「07」を
シーケンス番号メモリ13に格納する。そして、図3ス
テップS3からステップS4に入る。
Then, the operator presses the edit mode key 9e (TPE valid key) of the input device 9 shown in FIG. 2 in order to change the tool path TP4. When the operator presses the edit mode key 9e of the input device 9, the process enters step S3 from step S2 in FIG. The sequence number SN3 of the G code GCD3 corresponding to the illustrated tool path TP3 is determined, and "07" determined as the sequence number SN3 is stored in the sequence number memory 13. Then, the process proceeds from step S3 in FIG. 3 to step S4.

【0016】次に、オペレータは、図2に示す入力装置
9の3個の送り選択キー9h、9i、9jの内、ワーク
との干渉を回避するのが目的であるので、早送りを指示
する送り選択キー9i(G00キー)を選択して押す。 オペレータによって図2に示す入力装置9の何れかの送
り選択キー9h、9i、9jが押されると、図3ステッ
プS4からステップS5に入り、Gファンクション判定
部19は、何れの送り選択キー9h、9i、9jが押さ
れたかを判定する。そして、この場合は、早送りを指示
する送り選択キー9iが押されているので、図3ステッ
プS5からステップS6へ入り、Gファンクション判定
部19は、GファンクションGF3′として「G00」
をGファンクションメモリ(以下、Gメモリという。)
20に格納する。そして、図3ステップS6からステッ
プS10へ入る。尚、モーダル情報を指示する送り選択
キー9h(モーダルキー)が押された場合は、何もせず
に、図3ステップS5からステップS10へ入る。また
、切削送りを指示する送り選択キー9j(G01キー)
が押された場合は、図3ステップS5からステップS7
へ入り、Gファンクション判定部19は、Gファンクシ
ョンGFとして「G01」をGメモリ20に格納する。 そして、図3ステップS7からステップS8へ入り、オ
ペレータによって入力装置9の送り速度設定キー9k(
Fキー)が押され、更に、送り速度設定値が入力される
と、図3ステップS8からステップS9へ入り、Gファ
ンクション判定部19は、入力された送り速度設定値F
を送り速度メモリ(以下、Fメモリという。)21に格
納する。そして、図3ステップS9からステップS10
へ入る。
Next, the operator selects one of the three feed selection keys 9h, 9i, and 9j of the input device 9 shown in FIG. 2 to instruct rapid feed, since the purpose is to avoid interference with the workpiece. Select and press selection key 9i (G00 key). When the operator presses any of the feed selection keys 9h, 9i, and 9j of the input device 9 shown in FIG. 2, the process proceeds from step S4 to step S5 in FIG. It is determined whether 9i or 9j has been pressed. In this case, since the feed selection key 9i that instructs fast forwarding is pressed, the process moves from step S5 in FIG.
G function memory (hereinafter referred to as G memory)
20. Then, the process proceeds from step S6 in FIG. 3 to step S10. Incidentally, if the feed selection key 9h (modal key) for instructing modal information is pressed, the process proceeds from step S5 in FIG. 3 to step S10 without doing anything. Also, a feed selection key 9j (G01 key) that instructs cutting feed.
If is pressed, steps S5 to S7 in FIG.
Then, the G function determining unit 19 stores "G01" in the G memory 20 as the G function GF. Then, from step S7 in FIG. 3 to step S8, the operator inputs the feed rate setting key 9k (
When the F key) is pressed and the feed rate setting value is further input, the process moves from step S8 to step S9 in FIG.
is stored in the feed rate memory (hereinafter referred to as F memory) 21. Then, from step S9 to step S10 in FIG.
Enter.

【0017】次に、オペレータは、入力装置9の移動倍
率モード選択キー9l、9m、9n及びカーソルキー9
o、9p、9q、9rを適宜操作して、CRT表示装置
6上に前述のように図示されている刃先点PLを、図7
に示すように、同時にCRT表示装置6に図示されてい
るワーク形状WKを考慮しながら、ワーク形状WKと工
具経路TPの干渉を回避できる位置まで移動させる。即
ち、図3ステップS10、11において、オペレータに
よって図2に示す入力装置9のカーソルキー9o、9p
、9q、9rが操作されると、刃先点表示制御部15は
、図7に示すように、上述の刃先点PLをCRT表示装
置6上を適宜移動させる。この際、オペレータによって
入力装置9の移動倍率モード選択キー9l(100倍モ
ードキー)が押された場合には、刃先点表示制御部15
は、カーソルキー9o、9p、9q、9rが1回押され
ると、100μに相当する距離だけ刃先点PLをCRT
表示装置6上で移動させ、カーソルキー9o、9p、9
q、9rが押し続けられると、連続的に刃先点PLをC
RT表示装置6上で移動させる。同様に、移動倍率モー
ド選択キー9m(10倍モードキー)が押された場合に
は、刃先点表示制御部15は、10μに相当する距離ず
つ刃先点PLをCRT表示装置6上で移動させ、移動倍
率モード選択キー9n(1倍モードキー)が押された場
合には、刃先点表示制御部15は、1μに相当する距離
ずつ刃先点PLをCRT表示装置6上で移動させる。
Next, the operator presses the movement magnification mode selection keys 9l, 9m, 9n and the cursor key 9 of the input device 9.
o, 9p, 9q, and 9r as appropriate to set the cutting edge point PL shown on the CRT display device 6 as described above in FIG.
As shown in FIG. 3, the workpiece shape WK is moved to a position where interference between the workpiece shape WK and the tool path TP can be avoided while simultaneously considering the workpiece shape WK shown on the CRT display device 6. That is, in steps S10 and 11 in FIG. 3, the operator presses the cursor keys 9o and 9p of the input device 9 shown in FIG.
, 9q, and 9r are operated, the cutting edge point display control section 15 moves the above-mentioned cutting edge point PL on the CRT display device 6 as appropriate, as shown in FIG. At this time, if the operator presses the movement magnification mode selection key 9l (100x mode key) of the input device 9, the blade edge point display control unit 15
When the cursor keys 9o, 9p, 9q, 9r are pressed once, the cutting edge point PL is moved to the CRT by a distance corresponding to 100μ.
Move it on the display device 6 and press the cursor keys 9o, 9p, 9
When q and 9r are kept pressed, the cutting edge point PL is continuously moved to C.
Move it on the RT display device 6. Similarly, when the moving magnification mode selection key 9m (10x mode key) is pressed, the cutting edge point display control unit 15 moves the cutting edge point PL on the CRT display device 6 by a distance corresponding to 10μ, When the moving magnification mode selection key 9n (1x mode key) is pressed, the cutting edge point display control section 15 moves the cutting edge point PL on the CRT display device 6 by a distance corresponding to 1 μ.

【0018】そして、CRT表示装置6上で刃先点PL
を適切な点P3′の位置に移動させると、オペレータは
、図2に示す入力装置9の設定キー9sを押す。オペレ
ータによって入力装置9の設定キー9sが押されると、
図3ステップS11からステップS12に入り、刃先点
座標判定部16は、CRT表示装置6に現在図示されて
いる刃先点PL(点P3′)のXZ座標CD3′を判定
し、XZ座標CD3′として判定された「X70.Z−
25.」を刃先点座標メモリ(以下、Cメモリという。 )17に格納する。
Then, the cutting edge point PL is displayed on the CRT display device 6.
2 to the appropriate point P3', the operator presses the setting key 9s of the input device 9 shown in FIG. When the operator presses the setting key 9s of the input device 9,
Step S12 is entered from step S11 in FIG. 3, and the cutting edge point coordinate determination unit 16 determines the XZ coordinate CD3' of the cutting edge point PL (point P3') currently shown on the CRT display device 6, and sets it as the XZ coordinate CD3'. Determined “X70.Z-
25. " is stored in the blade edge point coordinate memory (hereinafter referred to as C memory) 17.

【0019】次に、図3ステップS13において、Gコ
ード作成挿入部22は、Gメモリ20にGファンクショ
ンGF3′として格納されている「G00」と、Cメモ
リ17に刃先点PLのXZ座標CD3′として格納され
ている「X70.Z−25.」を、読み出して合成し、
新たなGコードGCD3′として「G00X70.Z−
25.」を作成する。この場合は、Fメモリ21の内容
は使用されない。尚、Gメモリ20に格納されているG
ファンクションGFが切削送りを示す「G01」である
場合には、Gコード作成挿入部22は、Gメモリ20中
のGファンクションGFとCメモリ17中のXZ座標C
DとFメモリ21中の送り速度設定値Fを合成して、新
たなGコードGCDを作成する。また、ステップS5に
おいて、送り選択キー9h(モーダルキー)が押された
場合には、Gコード作成挿入部22は、Gメモリ17中
のXZ座標CDに基づいて、GファンクションGFの含
まれていないXZ座標CDのみのGコードGCDを作成
する。即ち、送り選択キー9h(モーダルキー)が押さ
れた場合には、Gメモリ20、Fメモリ21の内容は使
用されない。そして、図3ステップS14において、G
コード作成挿入部22は、Sメモリ13中にシーケンス
番号SN3として格納されている「07」を読み出して
、図4に示す加工プログラムPRO1中の当該シーケン
ス番号SN3「07」のGコードGCD3の次に、新た
に作成されたGコードGCD3′を追加して、加工プロ
グラムPRO1を図9に示す加工プログラムPRO2に
修正する。即ち、加工プログラムPRO2においては、
GコードGCD3とGコードGCD4の間に、新たに作
成されたGコードGCD3′が挿入された形となる。ま
た、Gコード作成挿入部22は、修正された加工プログ
ラムPRO1の、従ってPRO2のシーケンス番号SN
を降順に図9に示すように編集し直す形で更新する。そ
して、当該加工プログラムPRO2は、加工プログラム
PRO1に代わって、加工プログラムメモリ25に格納
される。
Next, in step S13 in FIG. 3, the G code creation/insertion unit 22 stores "G00" stored in the G memory 20 as the G function GF3' and the XZ coordinates CD3' of the cutting edge point PL in the C memory 17. Read and synthesize "X70.Z-25." stored as
"G00X70.Z-" as a new G code GCD3'
25. ”. In this case, the contents of F memory 21 are not used. Note that the G stored in the G memory 20
When the function GF is "G01" indicating cutting feed, the G code creation and insertion section 22 generates the G function GF in the G memory 20 and the XZ coordinate C in the C memory 17.
D and the feed rate setting value F in the F memory 21 are combined to create a new G code GCD. Further, in step S5, when the feed selection key 9h (modal key) is pressed, the G code creation/insertion unit 22 determines whether the G function GF is included or not, based on the XZ coordinates CD in the G memory 17. Create a G code GCD with only the XZ coordinate CD. That is, when the feed selection key 9h (modal key) is pressed, the contents of the G memory 20 and F memory 21 are not used. Then, in step S14 of FIG.
The code creation/insertion unit 22 reads “07” stored as the sequence number SN3 in the S memory 13, and reads the sequence number “07” from the sequence number SN3 “07” in the machining program PRO1 shown in FIG. , the newly created G code GCD3' is added, and the machining program PRO1 is modified to the machining program PRO2 shown in FIG. That is, in machining program PRO2,
The newly created G code GCD3' is inserted between the G code GCD3 and the G code GCD4. Further, the G code creation and insertion unit 22 generates a sequence number SN of the modified machining program PRO1, and therefore of PRO2.
are updated in descending order by re-editing them as shown in FIG. The machining program PRO2 is then stored in the machining program memory 25 instead of the machining program PRO1.

【0020】また、図3ステップS15において、シー
ケンス番号判定部12は、新たに追加されたGコードG
CD3′のシーケンス番号SN3′として「08」を、
Sメモリ13に格納する。そして、オペレータによって
図2に示す入力装置9の編集モードキー9f(TPE終
了キー)が押されるまで、図3ステップS4からステッ
プS16までを繰返して、加工プログラムPROの修正
を行う。
Further, in step S15 in FIG. 3, the sequence number determination unit 12 selects the newly added G code G
Set "08" as the sequence number SN3' of CD3',
The data is stored in the S memory 13. Then, the machining program PRO is modified by repeating steps S4 to S16 in FIG. 3 until the operator presses the edit mode key 9f (TPE end key) of the input device 9 shown in FIG.

【0021】図3ステップS16において、オペレータ
によって入力装置9の編集モードキー9fが押されると
、ステップS22に入り、加工プログラムPROの編集
が未だ終了していない場合には、ステップS1に戻る。 すると、上述の修正された加工プログラムPRO2に基
づく工具経路TPが、図8に示すようにCRT表示装置
6に図示される。そして、加工プログラムPRO2に基
づく工具経路TPにおいては、GコードGCD3′(点
P3′)が追加されたことによって、図5に示す(前の
加工プログラムPRO1に基づく)工具経路TP4(始
点P3、終点P4)が、図8に示すように、工具経路T
P3′(始点P3、終点P3′)と工具経路TP4′(
始点P3′、終点P4′)に変更され、ワーク形状WK
(ワーク)との干渉が回避されている。尚、GコードG
CD3′の追加に伴って、GコードGCD4により指示
される経由点は、点P4から点P4′に変更される。従
って、工具経路チェック中にワーク形状WKと干渉する
工具経路TP4が発見された場合に、オペレータは、C
RT表示装置6の画面を切り換えることなく加工プログ
ラムPRO1の編集が行えるので、オペレータは、修正
すべき工具経路TP4を覚えておく必要もなく、新たな
工具経路TP3′の終点P3′のXZ座標CD3′を計
算する必要もないので、加工プログラムPRO1の編集
が容易になり、編集時間を短縮することが出来る。
In step S16 of FIG. 3, when the operator presses the edit mode key 9f of the input device 9, the process proceeds to step S22, and if the editing of the machining program PRO has not yet been completed, the process returns to step S1. Then, the tool path TP based on the above-mentioned modified machining program PRO2 is illustrated on the CRT display device 6 as shown in FIG. Then, in the tool path TP based on the machining program PRO2, due to the addition of the G code GCD3' (point P3'), the tool path TP4 (based on the previous machining program PRO1) shown in FIG. 5 (start point P3, end point P4) is the tool path T as shown in FIG.
P3' (starting point P3, ending point P3') and tool path TP4' (
starting point P3', ending point P4'), and the workpiece shape WK
(workpiece) is avoided. In addition, G code G
With the addition of CD3', the way point designated by G code GCD4 is changed from point P4 to point P4'. Therefore, when tool path TP4 that interferes with workpiece shape WK is discovered during tool path check, the operator
Since the machining program PRO1 can be edited without switching the screen of the RT display device 6, the operator does not need to remember the tool path TP4 to be modified, and can edit the XZ coordinates CD3 of the end point P3' of the new tool path TP3'. Since there is no need to calculate ', editing of the machining program PRO1 becomes easy and the editing time can be shortened.

【0022】こうして、加工プログラムPRO1を修正
して加工プログラムPRO2とすることによってワーク
形状WKと工具経路TPの干渉を回避することが出来た
が、修正された当該加工プログラムPRO2には、図8
に示すように無駄な工具経路TP4′、TP5′が含ま
れているので、以下のようにして、加工プログラムPR
O2の当該工具経路TP4′、TP5′に対応する部分
を更に修正する。オペレータは、図8に示すようにCR
T表示装置6に図示された加工プログラムPRO2の工
具経路TPをチェックして、工具経路TP4′、TP5
′が無駄であると判断すると、図2に示す入力装置9の
工具経路チェックキー9b、9dを適宜操作して、図1
0に示すように、無駄な工具経路TP4′までをCRT
表示装置6に図示させる。
In this way, by modifying the machining program PRO1 to create the machining program PRO2, it was possible to avoid interference between the workpiece shape WK and the tool path TP.
As shown in the figure, since useless tool paths TP4' and TP5' are included, the machining program PR is changed as follows.
The portions of O2 corresponding to the tool paths TP4' and TP5' are further modified. The operator selects the CR as shown in Figure 8.
Check the tool path TP of the machining program PRO2 shown on the T display device 6, and set the tool path TP4' and TP5.
' If it is determined that the tool path check keys 9b and 9d of the input device 9 shown in FIG.
As shown in 0, the useless tool path up to TP4' is
It is shown on the display device 6.

【0023】そして、オペレータは、工具経路TP4′
、TP5′を変更するために、図2に示す入力装置9の
編集モードキー9g(ムダパス消去キー)を押す。 オペレータによって入力装置9の編集モードキー9gが
押されると、図3ステップS2、S17からステップS
18に入り、シーケンス番号判定部12は、CRT表示
装置6に現在図示されている工具経路TPの内の最後に
図示された工具経路TP4′に対応するGコードGCD
4のシーケンス番号SN4を判定し、シーケンス番号S
N4として判定された「09」をSメモリ13に格納す
る。
Then, the operator selects the tool path TP4'
, TP5', the edit mode key 9g (waste path deletion key) of the input device 9 shown in FIG. 2 is pressed. When the operator presses the edit mode key 9g of the input device 9, steps S2 and S17 to step S in FIG.
18, the sequence number determination unit 12 determines the G code GCD corresponding to the last tool path TP4' among the tool paths TP currently shown on the CRT display device 6.
4, the sequence number SN4 is determined, and the sequence number S
“09” determined as N4 is stored in the S memory 13.

【0024】そして、図3ステップS19において、G
コード消去部23は、Sメモリ13中にシーケンス番号
SN4として格納されている「09」を読み出して、図
9に示す加工プログラムPRO2中の当該シーケンス番
号SN4「09」のGコードGCD4を削除して、加工
プログラムPRO2を図13に示す加工プログラムPR
O3に修正する。即ち、修正された加工プログラムPR
O3においては、GコードGCD3′とGコードGCD
5の間にあったGコードGCD4が削除された形となる
。また、Gコード消去部23は、修正された加工プログ
ラムPRO2の、従ってPRO3のシーケンス番号SN
を降順に図13に示すように編集し直す形で更新する。 そして、当該加工プログラムPRO3は、加工プログラ
ムPRO2に代わって、加工プログラムメモリ25に格
納される。
Then, in step S19 of FIG.
The code erasing unit 23 reads "09" stored as the sequence number SN4 in the S memory 13, deletes the G code GCD4 of the sequence number SN4 "09" in the machining program PRO2 shown in FIG. , machining program PR shown in FIG.
Correct to O3. That is, the modified machining program PR
In O3, G code GCD3' and G code GCD
The G code GCD4 that was between 5 and 5 has been deleted. In addition, the G code erasing unit 23 erases the sequence number SN of the modified machining program PRO2, therefore, the sequence number SN of PRO3.
are updated by re-editing them in descending order as shown in FIG. The machining program PRO3 is then stored in the machining program memory 25 instead of the machining program PRO2.

【0025】また、図3ステップS20において、シー
ケンス番号判定部12は、削除されたGコードGCD4
の直前のGコードGCD3′のシーケンス番号SN3′
として「08」を、Sメモリ13に格納する。そして、
図3ステップS21において、工具経路表示演算部11
は、Sメモリ13中にシーケンス番号SN3′として格
納されている「08」を読み出して、CRT表示装置6
に図示されている工具経路TPを、図11に示すように
、当該シーケンス番号SN3′「08」のGコードGC
D3′に対応する工具経路TP3′まで戻す。即ち、削
除されたGコードGCD4に対応する工具経路TP4′
が、CRT表示装置6上において消去される。
Further, in step S20 of FIG. 3, the sequence number determination unit 12 selects the deleted G code GCD4
Sequence number SN3' of G code GCD3' immediately before
"08" is stored in the S memory 13. and,
In step S21 of FIG. 3, the tool path display calculation section 11
reads "08" stored as sequence number SN3' in the S memory 13 and displays it on the CRT display device 6.
As shown in FIG. 11, the tool path TP shown in FIG.
Return to tool path TP3' corresponding to D3'. That is, the tool path TP4' corresponding to the deleted G code GCD4
is erased on the CRT display device 6.

【0026】加工プログラムPROの編集が未だ終了し
ていない場合には、図3ステップS22からステップS
1に戻る。すると、上述の修正された加工プログラムP
RO3に基づく工具経路TPが、図12に示すようにC
RT表示装置6に図示される。そして、加工プログラム
PRO3に基づく工具経路TPにおいては、GコードG
CD4(点P4′)が削除されたことによって、図10
に示す(前の加工プログラムPRO2に基づく)工具経
路TP4′(始点P3′、終点P4′)と工具経路TP
5′(始点P4′、終点PE)が、図12に示すように
、工具経路TP5″(始点P3′、終点PE)に変更さ
れ、無駄な工具経路TPが排除されている。従って、工
具経路チェック中に無駄な工具経路TP4′、TP5′
が発見された場合にCRT表示装置6の画面を切り換え
ることなく加工プログラムPRO2の編集が行えるので
、オペレータは、修正すべき工具経路TP4′を覚える
必要がなく、加工プログラムPRO2の編集が容易にな
り、編集時間を短縮することが出来る。
If the editing of the machining program PRO has not yet been completed, steps S22 to S in FIG.
Return to 1. Then, the above-mentioned modified machining program P
The tool path TP based on RO3 is C as shown in FIG.
Illustrated on the RT display device 6. In the tool path TP based on the machining program PRO3, the G code G
By deleting CD4 (point P4'), Figure 10
Tool path TP4' (starting point P3', ending point P4') and tool path TP (based on the previous machining program PRO2) shown in
5' (start point P4', end point PE) is changed to tool path TP5'' (start point P3', end point PE), as shown in FIG. 12, and unnecessary tool path TP is eliminated. Useless tool paths TP4' and TP5' during checking
If the tool path TP4' is found, the machining program PRO2 can be edited without switching the screen of the CRT display device 6, so the operator does not have to memorize the tool path TP4' to be corrected, making it easier to edit the machining program PRO2. , editing time can be shortened.

【0027】[0027]

【発明の効果】以上、説明したように、本発明によれば
、CRT表示装置6等の図形表示装置を有し、前記図形
表示装置に、ワーク形状WKを図示するワーク形状表示
演算部10等のワーク形状図示手段を設け、ワーク形状
WKが図示されている前記図形表示装置に、加工プログ
ラムPRO中に格納されたGコードGCD等の各動作命
令コードに基づいて、工具経路TPを当該加工プログラ
ムPROの実行順序に従って逐次図示する工具経路表示
演算部11等の工具経路図示手段を設け、前記図形表示
装置に図示されている工具経路TPの中で最後に図示さ
れた工具経路TPに対応する動作命令コードの前記加工
プログラムPRO中のシーケンス番号SN等の実行位置
を判定するシーケンス番号判定部12等の実行位置判定
手段を設け、ワーク形状WKと工具経路TPが図示され
ている前記図形表示装置の点P3′等の所望の位置に、
刃先点PL等の追加経由点を図示するカーソルキー9o
、9p、9q、9r、刃先点表示制御部15等の経由点
指示手段を設け、前記図形表示装置に図示されている追
加経由点のXZ座標CD3′等の座標を判定する刃先点
座標判定部16等の経由点座標判定手段を設け、前記経
由点座標判定手段によって判定された追加経由点の座標
に基づいてGコードGCD3′等の動作命令コードを作
成し、当該動作命令コードを、前記実行位置判定手段に
よって判定されたシーケンス番号SN3等実行位置のG
コードGCD3等の動作命令コードの直後に追加する形
で、前記加工プログラムPRO1中に格納するGコード
作成挿入部22等の動作命令コード追加手段を設けて構
成したので、ワーク形状WKと干渉する工具経路TP4
の直前までの工具経路TP1、TP2、TP3を図形表
示装置上に図示させることによって、加工プログラムP
RO1の修正すべき部分が判定され、更に、新たに工具
経路TP3′を設定したい位置を図形表示装置上で追加
経由点によって指示することによって、加工プログラム
PRO1に追加すべき動作命令コードが作成され、当該
動作命令コードが加工プログラムPRO1の前記修正す
べき部分に追加される。従って、工具経路チェック中に
ワークと干渉する工具経路TP4が発見された場合に図
形表示装置の画面を切り換えることなく加工プログラム
PRO1の編集が行えるので、プログラマ等は、修正す
べき工具経路TP4等を覚える必要もなく、新たな工具
経路TP3′等の座標を計算する必要もないので、加工
プログラムPRO1の編集時間を短縮することが出来る
。また、工具経路TPを図形表示装置上で確認しつつ加
工プログラムPROの修正を行なうことが出来るので、
プログラムの修正動作と、当該修正プログラムの確認動
作を表示装置上で同時に行なうことが出来、極めて便利
である。
As described above, according to the present invention, the workpiece shape display calculation unit 10, etc., which has a graphical display device such as a CRT display device 6, and shows the workpiece shape WK on the graphical display device. A workpiece shape illustrating means is provided, and the tool path TP is displayed on the graphic display device in which the workpiece shape WK is illustrated, based on each operation command code such as the G code GCD stored in the machining program PRO. A tool path illustrating means such as a tool path display calculation unit 11 is provided that sequentially illustrates the tool path in accordance with the execution order of PRO, and an operation corresponding to the tool path TP illustrated last among the tool paths TP illustrated on the graphic display device is provided. An execution position determination means such as a sequence number determination unit 12 for determining the execution position of the sequence number SN in the machining program PRO of the instruction code is provided, and the graphic display device in which the workpiece shape WK and the tool path TP are illustrated. At a desired position such as point P3',
Cursor key 9o for illustrating additional route points such as the cutting edge point PL
, 9p, 9q, 9r, a cutting edge point coordinate determination unit which is provided with way point indicating means such as a cutting edge point display control unit 15, and determines the coordinates such as the XZ coordinates CD3' of the additional way point shown on the graphic display device. 16 or the like is provided, a motion command code such as a G code GCD3' is created based on the coordinates of the additional waypoint determined by the waypoint coordinate determination means, and the motion command code is executed as described above. G of the execution position such as sequence number SN3 determined by the position determination means
Since the configuration includes an operation instruction code addition means such as the G code creation insertion section 22 stored in the machining program PRO1, which is added immediately after the operation instruction code such as the code GCD3, the tool that interferes with the workpiece shape WK is provided. Route TP4
The machining program P
The portion of RO1 to be corrected is determined, and furthermore, the position where the tool path TP3' is to be newly set is indicated by an additional way point on the graphic display device, thereby creating an operation command code to be added to the machining program PRO1. , the operation instruction code is added to the portion to be modified in the machining program PRO1. Therefore, if a tool path TP4 that interferes with the workpiece is found during tool path checking, the machining program PRO1 can be edited without switching the screen of the graphic display device, so programmers etc. can edit the tool path TP4 etc. to be corrected. Since there is no need to memorize or calculate the coordinates of a new tool path TP3', etc., the editing time of the machining program PRO1 can be shortened. In addition, since it is possible to modify the machining program PRO while checking the tool path TP on the graphic display device,
It is extremely convenient to be able to simultaneously perform a program modification operation and a confirmation operation for the modification program on the display device.

【0028】また、本発明は、加工プログラムPRO2
中の前記実行位置判定手段によって判定されたシーケン
ス番号SN4等の実行位置に格納されているGコードG
CD4等の動作命令コードを削除するGコード消去部2
3等の動作命令コード削除手段を設けて構成したので、
無駄な工具経路TP4′までの工具経路TP1、TP2
、TP3、TP3′、TP4′を図形表示装置上に図示
させることによって、加工プログラムPRO2中の無駄
な動作命令コードが格納されている実行位置が判定され
、当該実行位置の動作命令コードが削除される。従って
、工具経路チェック中に無駄な工具経路TP4′が発見
された場合に図形表示装置の画面を切り換えることなく
加工プログラムPRO2の編集が行えるので、プログラ
マ等は、修正すべき工具経路TP4′を覚える必要がな
く、加工プログラムPRO2の編集時間を短縮すること
が出来る。
[0028] Furthermore, the present invention provides a machining program PRO2.
The G code G stored at the execution position of sequence number SN4 etc. determined by the execution position determination means in
G code erasing unit 2 that deletes operation instruction codes of CD4 etc.
Since it is configured with a means for deleting operation command codes such as 3,
Tool paths TP1 and TP2 up to useless tool path TP4'
, TP3, TP3', and TP4' on the graphic display device, the execution position in the machining program PRO2 where the useless operation command code is stored is determined, and the operation command code at the execution position is deleted. Ru. Therefore, if a useless tool path TP4' is found during tool path checking, the machining program PRO2 can be edited without switching the graphic display screen, so the programmer etc. can memorize the tool path TP4' to be corrected. This is not necessary, and the editing time of the machining program PRO2 can be shortened.

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

【図1】本発明による加工プログラム編集装置の一実施
例を示す制御ブロック図である。
FIG. 1 is a control block diagram showing an embodiment of a machining program editing device according to the present invention.

【図2】図1に示す加工プログラム編集装置の入力装置
を示す図である。
FIG. 2 is a diagram showing an input device of the machining program editing device shown in FIG. 1;

【図3】工具経路編集プログラムを示すフローチャート
である。
FIG. 3 is a flowchart showing a tool path editing program.

【図4】加工プログラムの一例を示す図である。FIG. 4 is a diagram showing an example of a machining program.

【図5】表示装置上に、図4に示す加工プログラムに関
して、全ての工具経路を図示した状態を示す図である。
5 is a diagram illustrating all tool paths regarding the machining program shown in FIG. 4 on a display device; FIG.

【図6】表示装置上に、図4に示す加工プログラムに関
して、工具とワークが干渉する工具経路の直前までの工
具経路を図示した状態を示す図である。
6 is a diagram illustrating a state in which a tool path up to just before the tool path where the tool and the workpiece interfere is shown on the display device in relation to the machining program shown in FIG. 4; FIG.

【図7】表示装置上で、図6に示す状態から、工具とワ
ークの干渉を回避し得る追加経由点を設定する様子を示
す図である。
7 is a diagram illustrating how additional way points that can avoid interference between the tool and the workpiece are set on the display device from the state shown in FIG. 6; FIG.

【図8】表示装置上に、図9に示す加工プログラムに関
して、全ての工具経路を図示した状態を示す図である。
8 is a diagram illustrating all tool paths regarding the machining program shown in FIG. 9 on a display device; FIG.

【図9】図4に示す加工プログラムに、工具とワークの
干渉を回避し得る動作命令コードが追加された、加工プ
ログラムを示す図である。
9 is a diagram showing a machining program in which an operation command code that can avoid interference between a tool and a workpiece is added to the machining program shown in FIG. 4. FIG.

【図10】表示装置上に、図9に示す加工プログラムに
関して、無駄な工具経路までの工具経路を図示した状態
を示す図である。
10 is a diagram illustrating a tool path up to a wasteful tool path regarding the machining program shown in FIG. 9 on a display device; FIG.

【図11】表示装置上で、図10に示す状態から、無駄
な工具経路を消去した状態を示す図である。
11 is a diagram showing a state in which useless tool paths have been deleted from the state shown in FIG. 10 on the display device; FIG.

【図12】表示装置上に、図13に示す加工プログラム
に関して、全ての工具経路を図示した状態を示す図であ
る。
12 is a diagram illustrating all tool paths regarding the machining program shown in FIG. 13 on a display device; FIG.

【図13】図9に示す加工プログラムから、無駄な動作
命令コードが削除された、加工プログラムを示す図であ
る。
13 is a diagram showing a machining program from which useless operation command codes have been deleted from the machining program shown in FIG. 9; FIG.

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

1……加工プログラム編集装置 6……図形表示装置(CRT表示装置)9o、9p、9
q、9r……経由点指示手段(カーソルキー) 10……ワーク形状図示手段(ワーク形状表示演算部)
11……工具経路図示手段(工具経路表示演算部)12
……実行位置判定手段(シーケンス番号判定部)15…
…経由点指示手段(刃先点表示制御部)16……経由点
座標判定手段(刃先点座標判定部)22……動作命令コ
ード追加手段(Gコード作成挿入部) 23……動作命令コード削除手段(Gコード消去部)C
D……座標(XZ座標) GCD……動作命令コード(Gコード)PL……追加経
由点(刃先点) PRO……加工プログラム SN……実行位置(シーケンス番号) TP……工具経路 WK……ワーク形状
1... Machining program editing device 6... Graphic display device (CRT display device) 9o, 9p, 9
q, 9r...Measure point indicating means (cursor key) 10...Workpiece shape illustration means (workpiece shape display calculation section)
11... Tool path illustration means (tool path display calculation section) 12
...Execution position determining means (sequence number determining section) 15...
... Way point indicating means (cutting edge point display control section) 16 ... Way point coordinate determining means (cutting edge point coordinate determining section) 22 ... Operation command code addition means (G code creation insertion section) 23 ... Operation command code deletion means (G code erase section) C
D...Coordinates (XZ coordinates) GCD...Movement command code (G code) PL...Additional transit point (cutting edge point) PRO...Machining program SN...Execution position (sequence number) TP...Tool path WK... Work shape

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】図形表示装置を有し、前記図形表示装置に
、ワーク形状を図示するワーク形状図示手段を設け、ワ
ーク形状が図示されている前記図形表示装置に、加工プ
ログラム中に格納された各動作命令コードに基づいて、
工具経路を当該加工プログラムの実行順序に従って逐次
図示する工具経路図示手段を設け、前記図形表示装置に
図示されている工具経路の中で最後に図示された工具経
路に対応する動作命令コードの前記加工プログラム中の
実行位置を判定する実行位置判定手段を設け、ワーク形
状と工具経路が図示されている前記図形表示装置の所望
の位置に、追加経由点を図示する経由点指示手段を設け
、前記図形表示装置に図示されている追加経由点の座標
を判定する経由点座標判定手段を設け、前記経由点座標
判定手段によって判定された追加経由点の座標に基づい
て動作命令コードを作成し、当該動作命令コードを、前
記実行位置判定手段によって判定された実行位置の動作
命令コードの直後に追加する形で、前記加工プログラム
中に格納する動作命令コード追加手段を設けて構成した
加工プログラム編集装置。
1. A graphic display device, wherein the graphic display device is provided with a work shape illustrating means for illustrating the shape of the workpiece, and the graphic display device in which the shape of the workpiece is illustrated is stored in a machining program. Based on each operation instruction code,
A tool path illustrating means is provided for sequentially illustrating a tool path according to the execution order of the machining program, and the machining of the operation command code corresponding to the tool path illustrated last among the tool paths illustrated on the graphic display device is provided. Execution position determining means for determining an execution position in a program is provided; way point indicating means for illustrating an additional way point at a desired position of the graphic display device where the workpiece shape and tool path are illustrated; A waypoint coordinate determination means is provided for determining the coordinates of the additional waypoint shown on the display device, and an operation command code is created based on the coordinates of the additional waypoint determined by the waypoint coordinate determination means, and the operation is performed. A machining program editing device comprising operation instruction code adding means for storing an instruction code in the machining program in a form that adds the instruction code immediately after the operation instruction code at the execution position determined by the execution position determination means.
【請求項2】前記加工プログラム中の前記実行位置判定
手段によって判定された実行位置に格納されている動作
命令コードを削除する動作命令コード削除手段を設けて
構成した請求項1記載の加工プログラム編集装置。
2. A machining program editor according to claim 1, further comprising motion command code deletion means for deleting a motion command code stored at an execution position determined by said execution position determination means in said machining program. Device.
JP3154091A 1991-01-31 1991-01-31 Editing device for machining program Pending JPH04245503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3154091A JPH04245503A (en) 1991-01-31 1991-01-31 Editing device for machining program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3154091A JPH04245503A (en) 1991-01-31 1991-01-31 Editing device for machining program

Publications (1)

Publication Number Publication Date
JPH04245503A true JPH04245503A (en) 1992-09-02

Family

ID=12334026

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3154091A Pending JPH04245503A (en) 1991-01-31 1991-01-31 Editing device for machining program

Country Status (1)

Country Link
JP (1) JPH04245503A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01260052A (en) * 1988-04-11 1989-10-17 Happy Kogyo Kk Apparatus for attaching embroidery frame
JPH05289728A (en) * 1992-04-09 1993-11-05 Mitsubishi Electric Corp Machining program generating method
JPH05297929A (en) * 1992-04-15 1993-11-12 Okuma Mach Works Ltd Numerical control program editing method
WO2005003870A1 (en) * 2003-07-04 2005-01-13 Mitsubishi Denki Kabushiki Kaisha Automatic programming method and device
WO2019082394A1 (en) * 2017-10-27 2019-05-02 三菱電機株式会社 Numerical control device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01260052A (en) * 1988-04-11 1989-10-17 Happy Kogyo Kk Apparatus for attaching embroidery frame
JPH05289728A (en) * 1992-04-09 1993-11-05 Mitsubishi Electric Corp Machining program generating method
JPH05297929A (en) * 1992-04-15 1993-11-12 Okuma Mach Works Ltd Numerical control program editing method
WO2005003870A1 (en) * 2003-07-04 2005-01-13 Mitsubishi Denki Kabushiki Kaisha Automatic programming method and device
KR100745916B1 (en) * 2003-07-04 2007-08-02 미쓰비시덴키 가부시키가이샤 Automatic programming method and device
US7577492B2 (en) 2003-07-04 2009-08-18 Mitsubishi Denki Kabushiki Kaisha Automatic programming method and automatic programming device
WO2019082394A1 (en) * 2017-10-27 2019-05-02 三菱電機株式会社 Numerical control device

Similar Documents

Publication Publication Date Title
JP4390093B2 (en) Automatic programming and simulation equipment
CN110737244A (en) Numerical controller and data editing method
JPH04245503A (en) Editing device for machining program
JP2773517B2 (en) Program display device
KR960001291B1 (en) Numerical control unit
US5699080A (en) Programming method and apparatus for programmable controller
JPS61170807A (en) Numerical controller
JPS6347805A (en) Override playback system
JPS62130405A (en) Nc data correction method
JPH02151908A (en) Numerical controller with simulation function
JPH0677208B2 (en) NC device machining program creation method
WO2022185712A1 (en) Program editing device and program
JP2005122584A (en) Nc program editing apparatus
JPH03294906A (en) Editing system for working program
JPH1024372A (en) Device for teaching welding robot
JPH06270082A (en) Control of robot having auxiliary shaft
JPH06100931B2 (en) Method for creating change program in control information creation device for industrial robot
JPH06131024A (en) Shape input system
JPH064214B2 (en) Machining sequence control method for numerically controlled machine tools
JPH0675243B2 (en) Machine program creation device for numerical control
JPH06202906A (en) Nc program editing device
JP2836217B2 (en) Parametric figure registration processing method
JPH0358202A (en) Numerical controller with simulation function
JP3283055B2 (en) Program editing device
JPH05233054A (en) Tool locus plotting system for automatic programming system