JPH06202906A - Nc program editing device - Google Patents

Nc program editing device

Info

Publication number
JPH06202906A
JPH06202906A JP4348526A JP34852692A JPH06202906A JP H06202906 A JPH06202906 A JP H06202906A JP 4348526 A JP4348526 A JP 4348526A JP 34852692 A JP34852692 A JP 34852692A JP H06202906 A JPH06202906 A JP H06202906A
Authority
JP
Japan
Prior art keywords
program
tool path
editing
area
display
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
JP4348526A
Other languages
Japanese (ja)
Inventor
Toshifumi Satake
竹 利 文 佐
Kunihiko Noda
田 邦 彦 野
Yutaka Kamata
田 豊 鎌
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.)
Shibaura Machine Co Ltd
Original Assignee
Toshiba Machine 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 Toshiba Machine Co Ltd filed Critical Toshiba Machine Co Ltd
Priority to JP4348526A priority Critical patent/JPH06202906A/en
Publication of JPH06202906A publication Critical patent/JPH06202906A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To confirm and correct the NC program supplied to an NC device in the same environment and to improve the operability and the efficiency of an NC program editing device by providing a program editing area where a program is displayed on a screen and a plotting area where a tool path is shown based on the displayed program. CONSTITUTION:An input program is edited by a program editing part 20 and displayed on a program editing area of a display device 400 by a 1st display data constructing part 30. A tool path plotting data constructing part 40 acquires the plotting data on the tool path from the tool path information included in the program. The plotting data are shown on the plotting area of the device 400 by a 2nd display data constructing part 50. In such a constitution of an NC program editing device, the tool path is immediately corrected and displayed based on the correcting contents of the program. Thus, these correcting contents can be immediately and easily confirmed on a screen and the program editing efficiency is improved.

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 program editing device, and is particularly suitable for checking and modifying an NC program.

【0002】[0002]

【従来の技術】従来のNC装置におけるプログラム編集
作業においては、作成したプログラムの良否を確認する
ために、作成したプログラムで工作機械を実際に動作さ
せて動作状況を確認したり、NC装置自信の持つ描画機
能を用いて画面上で確認すること等が行われている。近
年は、確認のためにNC装置を占有することなく工作物
を加工中に確認を行うことができる描画機能を用いるこ
とが能率向上のために広く行われている。
2. Description of the Related Art In a conventional NC device program editing work, in order to confirm the quality of a created program, a machine tool is actually operated by the created program to check the operation status, Confirmation on the screen is performed using the drawing function of the computer. In recent years, it has been widely practiced to improve efficiency by using a drawing function capable of performing confirmation during machining of a workpiece without occupying an NC device for confirmation.

【0003】一方、編集作業は、描画機能とは通常独立
に設けられたスクリーンエディタ機能を用いて行われ
る。
On the other hand, the editing work is performed using a screen editor function which is usually provided independently of the drawing function.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、このよ
うに従来はプログラムチェックのための描画とプログラ
ム編集は異なった環境で行われるため、編集を行うべき
修正箇所をオペレータが記憶しておく必要があり、また
編集作業においては修正箇所を探す手間がかかるという
問題がある。
However, since the drawing for program checking and the program editing are conventionally performed in different environments as described above, it is necessary for the operator to memorize the correction points to be edited. Moreover, there is a problem that it takes time and effort to find a corrected portion in editing work.

【0005】このため、本発明はNC装置に入力された
NCプログラムの確認、修正を同一の環境で行え、操作
性の良いNCプログラムの編集装置を提供するNC装置
に入力されたNCプログラムの確認、修正を同一の環境
で行え、操作性および効率を向上させたNCプログラム
編集装置を提供することを目的とする。
Therefore, according to the present invention, the NC program input to the NC device can be confirmed and modified in the same environment, and the NC program input to the NC device which provides the editing device of the NC program with good operability can be confirmed. It is an object of the present invention to provide an NC program editing device that can be modified in the same environment and that has improved operability and efficiency.

【0006】[0006]

【課題を解決するための手段】本発明にかかるNCプロ
グラム編集装置によれば、編集中のプログラム内容を表
示するプログラム編集領域とこのプログラム内容に従っ
た工具経路を表示する工具経路描画領域とを備えた表示
手段と、プログラム編集のための入力を行う入力手段
と、入力されたプログラムの編集を行うプログラム編集
部と、このプログラム編集部により編集されたプログラ
ムの内容を前記表示画面中の前記プログラム編集領域に
表示させる第1の表示データ構成手段と、前記プログラ
ム編集領域に表示されているプログラム中の工具経路情
報を抽出して、その内容に基づいて工具経路を視覚表示
するための描画データを構成する工具経路描画データ構
成手段と、この工具経路描画データ構成手段により構成
された描画データを前記表示手段の表示画面中の前記工
具経路描画領域に表示させる第2の表示データ構成手段
とを備えたことを特徴とする。
According to the NC program editing apparatus of the present invention, there are provided a program editing area for displaying the contents of the program being edited and a tool path drawing area for displaying the tool path according to the contents of the program. Display means provided, an input means for inputting for program editing, a program editing section for editing the inputted program, and the contents of the program edited by the program editing section in the display screen. First display data forming means to be displayed in the editing area, and tool path information in the program displayed in the program editing area are extracted, and drawing data for visually displaying the tool path based on the contents are extracted. The tool path drawing data composing means to be constructed and the drawing data composed by this tool path drawing data composing means Serial characterized by comprising a second display data configuring means for displaying on said tool path drawing region in the display screen of the display means.

【0007】工具経路描画データ構成手段が、編集中の
プログラム部分に対応する工具経路部分を他とは異なる
態様で表示させるものであると良い。
It is preferable that the tool path drawing data forming means displays the tool path part corresponding to the program part being edited in a mode different from the other parts.

【0008】また、プログラムコードに対応して予め準
備された描画プログラムを格納する記憶手段をさらに備
え、工具経路描画データ構成手段は、入力されたプログ
ラム内容に応じて記憶手段から必要な描画プログラムを
取り出して実行するものであると良い。
Further, a storage means for storing a drawing program prepared in advance corresponding to the program code is further provided, and the tool path drawing data forming means stores the necessary drawing program from the storing means in accordance with the inputted program content. It is good that it is taken out and executed.

【0009】[0009]

【作用】入力されたプログラムはプログラム編集部で編
集され、第1の表示データ構成手段により表示手段のプ
ログラム編集領域に表示される。そしてこのプログラム
に含まれる工具経路情報から工具経路描画データ構成手
段により工具経路の描画データが得られ、第2の表示デ
ータ構成手段により表示手段の描画領域に表示される。
この装置ではプログラムの内容を修正すると、その修正
内容に基づいて直ちに工具経路が修正表示されるので、
修正内容を画面上で直ちに容易に確認でき、プログラム
編集を効率的に行うことができる。
The inputted program is edited by the program editing section and displayed by the first display data forming means in the program editing area of the display means. Then, drawing data of the tool path is obtained by the tool path drawing data forming means from the tool path information contained in this program, and is displayed in the drawing area of the displaying means by the second display data forming means.
With this device, if you correct the contents of the program, the tool path will be immediately corrected and displayed based on the correction contents.
The contents of the correction can be easily confirmed on the screen immediately, and the program can be edited efficiently.

【0010】[0010]

【実施例】以下、図面を参照して本発明の実施例を説明
する。図3は本発明にかかるNCプログラム編集装置を
含むNC装置のシステム構成図である。バス700には
マンマシンインタフェースユニット100、メモリユニ
ット300、NC制御ユニット500が接続されてお
り、バス700を介して自由にデータを交換することが
できる。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 3 is a system configuration diagram of an NC device including an NC program editing device according to the present invention. The man-machine interface unit 100, the memory unit 300, and the NC control unit 500 are connected to the bus 700, and data can be freely exchanged via the bus 700.

【0011】マンマシンインタフェースユニット100
にはキーボードおよびディスプレイ200、400が接
続されている。また、NC制御ユニットには工作機械を
駆動するサーボ系600が接続されている。本発明にか
かるNCプログラム編集装置はこのマンマシンインタフ
ェースユニット100の一部として構成される。
Man-machine interface unit 100
A keyboard and displays 200 and 400 are connected to. A servo system 600 that drives a machine tool is connected to the NC control unit. The NC program editing device according to the present invention is configured as a part of the man-machine interface unit 100.

【0012】図1は本発明にかかるNCプログラム編集
装置の概略構成を示すブロック図であり、一点鎖線で囲
んだ部分はマンマシンインタフェースをなす部分を表し
ている。
FIG. 1 is a block diagram showing a schematic configuration of an NC program editing apparatus according to the present invention, and a portion surrounded by an alternate long and short dash line represents a portion forming a man-machine interface.

【0013】キーボード200からのキー入力はキー入
力管理部10により受け付けられ、装置内の各部分と同
期をとった上で、プログラム編集部20および工具経路
描画データ構成部40に送られる。
A key input from the keyboard 200 is accepted by the key input management unit 10, synchronized with each part in the apparatus, and then sent to the program editing unit 20 and the tool path drawing data forming unit 40.

【0014】一方、NC装置のメモリユニット300に
格納されたプログラムはRAM部60のワークエリアに
展開され、このRAM60はプログラム編集部20およ
び工具経路描画データ構成部40により参照される。N
C装置のメモリユニットプログラム編集部20はエディ
タであって、コード単位にプログラムを表示し、編集の
キー入力を受け付けてカーソルの存在位置におけるプロ
グラム内容の挿入、削除、移動、複写などの編集を行
う。また、工具経路描画データ構成部40は、ワークエ
リア上に展開されるプログラム内容のうち、工具経路に
関係する情報をもとに工具経路の表示の為に必要な演算
を行うものである。
On the other hand, the program stored in the memory unit 300 of the NC unit is expanded in the work area of the RAM section 60, and this RAM 60 is referred to by the program editing section 20 and the tool path drawing data forming section 40. N
The memory unit program editing unit 20 of the C device is an editor, displays a program in code units, accepts a key input for editing, and performs editing such as insertion, deletion, movement, and copying of program contents at the position where the cursor exists. . Further, the tool path drawing data configuration unit 40 performs an operation necessary for displaying the tool path based on the information related to the tool path in the program contents developed in the work area.

【0015】プログラム編集部20での編集結果は、第
1の表示データ構成部30により画面上の表示データと
して構成される。この際、プログラム編集状態は図2に
示されるように、画面401の右上部に設けられたプロ
グラム編集領域403に表示される。この領域における
表示の際には、編集のためのカーソル405が同時に表
示され、プログラム部分を走査できるようになってい
る。
The editing result of the program editing section 20 is configured as display data on the screen by the first display data configuration section 30. At this time, the program editing state is displayed in the program editing area 403 provided in the upper right part of the screen 401, as shown in FIG. When displaying in this area, a cursor 405 for editing is simultaneously displayed so that the program portion can be scanned.

【0016】同様に、工具経路描画データ構成部40で
の演算結果は、第2の表示データ構成部50により、画
面上の表示データとして構成される。この工具経路は図
2の画面401の左上部に設けられた工具経路表示領域
402に表示される。この際、カーソルが位置している
プログラム部分に対応する工具経路は通常とは異なる態
様、例えば異なる色で表示するようにしている。
Similarly, the calculation result in the tool path drawing data forming unit 40 is formed as display data on the screen by the second display data forming unit 50. This tool path is displayed in the tool path display area 402 provided in the upper left part of the screen 401 in FIG. At this time, the tool path corresponding to the program portion where the cursor is positioned is displayed in a different mode than usual, for example, in a different color.

【0017】編集画面の様子を示す図2を再び参照する
と、この表示画面401は工具経路表示領域402、プ
ログラム編集領域403、およびこれらの下部に設けら
れた編集用メニュー領域404の3つの領域を有してい
る。図2では現在、プログラム編集領域403にはキー
ボードから入力された命令コードG01(X,Y)がプ
ログラム編集部20および第1の表示データ構成部30
の作動により表示されている。
Referring again to FIG. 2 showing the state of the edit screen, this display screen 401 has three areas, that is, a tool path display area 402, a program edit area 403, and an edit menu area 404 provided below these areas. Have In FIG. 2, the instruction code G01 (X, Y) input from the keyboard is currently stored in the program editing area 403 in the program editing section 20 and the first display data forming section 30.
Is displayed by the operation of.

【0018】次に、工具経路の描画が工具経路描画デー
タ構成部40と第2の表示データ構成部50により行わ
れる。この描画過程を図4および図5を参照して詳細に
説明する。まず、RAM60中には図4に示されるよう
に、描画を必要とする特定の命令コード61と描画プロ
グラム62との対応関係がテーブルの形で記憶されてい
る。そして、キーボードから命令コードが入力される
と、この命令コードが読取られ(ステップS101)、
この命令コードをもとにコード/描画プログラムテーブ
ルが参照され、描画と関係あるコードの場合には描画プ
ログラムが取り出される(ステップS102)。そし
て、取り出された描画プログラムが表示データ構成部3
0により実行されることにより、画面上への表示が行わ
れる(ステップS103)。
Next, the drawing of the tool path is performed by the tool path drawing data forming section 40 and the second display data forming section 50. This drawing process will be described in detail with reference to FIGS. First, in the RAM 60, as shown in FIG. 4, a correspondence relationship between a specific instruction code 61 requiring drawing and the drawing program 62 is stored in the form of a table. Then, when the instruction code is input from the keyboard, the instruction code is read (step S101),
The code / drawing program table is referred to based on this instruction code, and if the code is related to drawing, the drawing program is taken out (step S102). Then, the extracted drawing program is displayed by the display data configuration unit 3
By being executed by 0, display on the screen is performed (step S103).

【0019】実施例に示された命令コードG01は現在
のカーソル位置(x,y)から指定された座標(X,
Y)まで直線状に工具を移動させる命令であるので、描
画と関係があり、実際にコード/描画プログラムテーブ
ルに含まれている。したがって、入力されたコードにし
たがってコード/描画プログラムテーブルが参照される
結果、描画プログラムが取り出され、この描画プログラ
ムは工具経路描画データ構成部40により実行され、現
在のカーソル位置と指定された座標に基づいて工具経路
表示領域402内での表示アドレスを演算する。この表
示アドレスに基づいて、第2の表示データ構成部50が
VRAM70上に表示データを再構成する。このとき、
現在編集中のプログラム部分に対応する工具経路につい
ては色を変えて表示するようにすると良い。したがっ
て、この例では座標(x,y)と座標(X,Y)とを結
ぶ線が他とは異なる色で表示されることになる。
The instruction code G01 shown in the embodiment is the coordinate (X, y) designated from the current cursor position (x, y).
Since it is a command for linearly moving the tool up to Y), it is related to drawing and is actually included in the code / drawing program table. Therefore, as a result of referring to the code / drawing program table in accordance with the input code, the drawing program is fetched, and this drawing program is executed by the tool path drawing data forming unit 40 to display the current cursor position and the designated coordinates. Based on this, the display address in the tool path display area 402 is calculated. The second display data configuration unit 50 reconfigures the display data on the VRAM 70 based on this display address. At this time,
The tool path corresponding to the program part currently being edited may be displayed in different colors. Therefore, in this example, the line connecting the coordinates (x, y) and the coordinates (X, Y) is displayed in a color different from the others.

【0020】なお、異なる表示態様としては色の相違の
みでなく、線の太さを変えたり、破線で表示したり、点
滅させたりしても良い。
The different display modes are not limited to the difference in color, but the line thickness may be changed, the display may be made as a broken line, or the display may blink.

【0021】[0021]

【発明の効果】以上のように、本発明によれば、画面上
にプログラムを表示するプログラム編集領域と、表示さ
れたプログラムに基づいた工具経路を表示する描画領域
とを有して、プログラム編集結果が直ちに工具経路とし
て視覚的に確認できるため、効率的なNCプログラム編
集が可能となる。
As described above, according to the present invention, the program edit area having the program edit area for displaying the program on the screen and the drawing area for displaying the tool path based on the displayed program are provided. Since the result can be immediately visually confirmed as a tool path, efficient NC program editing becomes possible.

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

【図1】本発明にかかるNCプログラム編集装置の概略
構成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of an NC program editing device according to the present invention.

【図2】本発明にかかるNCプログラム編集装置におけ
る表示画面を示す説明図である。
FIG. 2 is an explanatory diagram showing a display screen in the NC program editing device according to the present invention.

【図3】本発明にかかるNCプログラム編集装置を含む
NC装置のシステム構成図である。
FIG. 3 is a system configuration diagram of an NC device including an NC program editing device according to the present invention.

【図4】命令コードと描画プログラムとの対応テーブル
の説明図である。
FIG. 4 is an explanatory diagram of a correspondence table between instruction codes and drawing programs.

【図5】本発明にかかるNCプログラム編集装置におけ
る描画過程を説明するフローチャートである。
FIG. 5 is a flowchart illustrating a drawing process in the NC program editing device according to the present invention.

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

10 キー入力管理部 20 プログラム編集部 30 第1表示データ構成部 40 工具経路描画データ構成部 50 第2表示データ構成部 60 RAM 61 命令コード 62 描画プログラム 70 VRAM 100 マンマシンインタフェースユニット 200 キーボード 300 メモリユニット 400 表示装置 401 表示画面 402 工具経路表示領域 403 プログラム編集領域 404 編集用メニュー領域 405 カーソル 500 NC制御ユニット 600 サーボ系 10 key input management unit 20 program editing unit 30 first display data configuration unit 40 tool path drawing data configuration unit 50 second display data configuration unit 60 RAM 61 instruction code 62 drawing program 70 VRAM 100 man-machine interface unit 200 keyboard 300 memory unit 400 display device 401 display screen 402 tool path display area 403 program editing area 404 editing menu area 405 cursor 500 NC control unit 600 servo system

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】編集中のプログラム内容を表示するプログ
ラム編集領域とこのプログラム内容に従った工具経路を
表示する工具経路描画領域とを備えた表示手段と、 プログラム編集のための入力を行う入力手段と、 入力されたプログラムの編集を行うプログラム編集部
と、 このプログラム編集部により編集されたプログラムの内
容を前記表示画面中の前記プログラム編集領域に表示さ
せる第1の表示データ構成手段と、 前記プログラム編集領域に表示されているプログラム中
の工具経路情報を抽出して、その内容に基づいて工具経
路を視覚表示するための描画データを構成する工具経路
描画データ構成手段と、 この工具経路描画データ構成手段により構成された描画
データを前記表示手段の表示画面中の前記工具経路描画
領域に表示させる第2の表示データ構成手段と、 を備えたことを特徴とするNCプログラム編集装置。
1. A display means having a program edit area for displaying the content of a program being edited and a tool path drawing area for displaying a tool path according to the program content, and an input means for inputting for program editing. A program editing section for editing the inputted program; a first display data configuring means for displaying the contents of the program edited by the program editing section in the program editing area in the display screen; Tool path drawing data configuration means for extracting tool path information in the program displayed in the editing area and forming drawing data for visually displaying the tool path based on the contents, and this tool path drawing data configuration Displaying the drawing data constituted by the means in the tool path drawing area in the display screen of the display means. NC program editing apparatus characterized by comprising: a second display data configuration unit.
【請求項2】工具経路描画データ構成手段が、編集中の
プログラム部分に対応する工具経路部分を他とは異なる
態様で表示させるものであることを特徴とする請求項1
に記載のNCプログラム編集装置。
2. The tool path drawing data forming means displays the tool path part corresponding to the program part being edited in a manner different from the other parts.
The NC program editing device described in 1.
【請求項3】前記プログラムのプログラムコードに対応
して予め準備された描画プログラムを格納する記憶手段
をさらに備え、工具経路描画データ構成手段は、入力さ
れたプログラム内容に応じて前記記憶手段から必要な描
画プログラムを取り出して実行するものである請求項1
に記載のNCプログラム編集装置。
3. A storage means for storing a drawing program prepared in advance corresponding to the program code of the program, wherein the tool path drawing data forming means is required from the storage means in accordance with the inputted program content. 2. A drawing program for extracting and executing the drawing program.
The NC program editing device described in 1.
JP4348526A 1992-12-28 1992-12-28 Nc program editing device Pending JPH06202906A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4348526A JPH06202906A (en) 1992-12-28 1992-12-28 Nc program editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4348526A JPH06202906A (en) 1992-12-28 1992-12-28 Nc program editing device

Publications (1)

Publication Number Publication Date
JPH06202906A true JPH06202906A (en) 1994-07-22

Family

ID=18397608

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4348526A Pending JPH06202906A (en) 1992-12-28 1992-12-28 Nc program editing device

Country Status (1)

Country Link
JP (1) JPH06202906A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102016014382A1 (en) 2015-12-03 2017-06-08 Fanuc Corporation Numerical control
EP3176660A4 (en) * 2014-09-03 2017-11-29 Yamazaki Mazak Corporation Machining program editing assistance device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3176660A4 (en) * 2014-09-03 2017-11-29 Yamazaki Mazak Corporation Machining program editing assistance device
US10295987B2 (en) 2014-09-03 2019-05-21 Yamazaki Mazak Corporation Machining program editing assist apparatus
DE102016014382A1 (en) 2015-12-03 2017-06-08 Fanuc Corporation Numerical control
CN106843141A (en) * 2015-12-03 2017-06-13 发那科株式会社 Numerical control device
US10437229B2 (en) 2015-12-03 2019-10-08 Fanuc Corporation Numerical controller
CN106843141B (en) * 2015-12-03 2019-12-13 发那科株式会社 numerical controller

Similar Documents

Publication Publication Date Title
US4646228A (en) Graphic display device
JP2773517B2 (en) Program display device
WO1990005327A1 (en) Pert program execution method
JPS58217223A (en) Numerically controlled electric discharge machine equipped with display device
JPH07311612A (en) Method and device for editing machining program of numerical controller
JPH06202906A (en) Nc program editing device
JPH01316804A (en) Contour shape defining method
JPH02151908A (en) Numerical controller with simulation function
JPH03294906A (en) Editing system for working program
JP2771701B2 (en) Interactive numerical controller
JP3660038B2 (en) Numerical controller
JP2000039909A (en) Numerical control information creating device
JPH0677208B2 (en) NC device machining program creation method
JPH1049211A (en) Method and device for displaying name of numerical control program for machining
JPH04252307A (en) Interactive numerical controller
JPH07302107A (en) Numerical controller
JPS6165314A (en) Graphic display method and apparatus for computer numerical controller
JPH0519817A (en) System for editing sequence program
JP2869105B2 (en) Workpiece processing data editing method
JPS63282504A (en) Display system
JPS61278909A (en) Interactive programming device
JPH10161724A (en) Numerical controller
JPH05210409A (en) Numeric controller
JPH06131024A (en) Shape input system
JPH06320386A (en) Interlocutory type automatic programming device