JPH0394307A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPH0394307A
JPH0394307A JP23205889A JP23205889A JPH0394307A JP H0394307 A JPH0394307 A JP H0394307A JP 23205889 A JP23205889 A JP 23205889A JP 23205889 A JP23205889 A JP 23205889A JP H0394307 A JPH0394307 A JP H0394307A
Authority
JP
Japan
Prior art keywords
program
editing
machining program
working
graphic
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
JP23205889A
Other languages
Japanese (ja)
Inventor
Yoshihiro Tomoguchi
友口 喜広
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP23205889A priority Critical patent/JPH0394307A/en
Publication of JPH0394307A publication Critical patent/JPH0394307A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To save the time required for generation of a working program by executing the plotting of a working shape and program check on a graphic simultaneously with the formation and edition of the working program. CONSTITUTION:The numerical controller has a working program 1, an edition means 2b, a buffer 3, a display processing means 4, a display means 5, a memory 6, a data analysis means 7, and a graphic means 8. The edition means 2b is provided with a condition information deciding means 9 for deciding the validity of execution of one block so that the working shape can be plotted on a graphic simultaneously with the formation/edition of the working program. After checking the formation of one-block data, the program is analyzed and displayed as a graphic and a program error is detected by program analysis. Consequently, the generating time of the working program can be shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は,加工プログラム作成・編集機能により,生
成されたプログラムを工具軌跡としてグラフィック表示
する数値制御装置(以下CNCという)に関するもので
ある。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a numerical control device (hereinafter referred to as CNC) that uses a machining program creation/editing function to graphically display a generated program as a tool trajectory.

〔従来の技術〕[Conventional technology]

第4図は,加玉プログラムを作成・編集,表示する場合
の従来の構成図を示す。
FIG. 4 shows a conventional configuration diagram for creating, editing, and displaying a bonus program.

次に従来技術の動作を第5図のフローチャートについて
説明する。第5図(a)は,新規に加工プログラムを作
成する場合のフローチャートである。
Next, the operation of the prior art will be explained with reference to the flowchart of FIG. FIG. 5(a) is a flowchart for creating a new machining program.

ステソプ1で編集バッフ1(3)上に編集手段(2a)
を用いて加工プログラム(1)を人力し,ステップ2で
表示処理手段(4)は,編集バ7ファ(3)上の加工プ
ログラムを読み込み表示手段(5)上に表示するステソ
プ3で入力操作終了か否かを判定し,終了でなければス
テップ1に戻って次ブロックを入力し,終了であればス
テップ4でバッファ(3)の内容をメモリ(6)に記憶
させて処理を終わる。
Edit means (2a) on editing buffer 1 (3) in step 1
In step 2, the display processing means (4) reads the machining program on the editing buffer (3) and performs an input operation using the processor 3 that displays it on the display means (5). It is determined whether or not the process has ended. If not, the process returns to step 1 and the next block is input. If the process has ended, the contents of the buffer (3) are stored in the memory (6) in step 4, and the process ends.

第5(;i1(b)は,既にメモリに記憶されている加
工プログラムを編集する場合の処理である。ステップ1
1で編集手段(2a)はメモリ(6)からバノファ(3
)上に指定された加工プログラムを読み出し,ステップ
12で表示処理手段(4)は,編集バ・ソファ(3)L
の加工プログラムを表示手段(5)上に表示する。
Fifth (;i1(b) is the process when editing a machining program already stored in the memory. Step 1
1, the editing means (2a) reads from the memory (6) the vanofa (3).
) The processing program specified above is read out, and in step 12 the display processing means (4) reads the editing bar/sofa (3) L.
The machining program is displayed on the display means (5).

ステップ13で編集手段(2a)によって加工プログラ
ムの編集を行う。ステップ14で編集終了か否かを判定
し,終了でなければステップ12に戻って次編集を行い
,終了であればステップl5でバッファ(3)の内容を
メモリ(6)に記憶させて処理を終わる。
In step 13, the editing means (2a) edits the machining program. In step 14, it is determined whether or not the editing is finished. If not, the process returns to step 12 and the next editing is performed. If the editing is finished, the contents of the buffer (3) are stored in the memory (6) in step 15, and processing is continued. It ends.

第5図(c)は,作成・編集された加工プログラムを実
行する場合の処理である。ステップ21で実行指定加工
プログラムをメモリ(6)からバッファ(3)上に読み
出し,ステップ22で加工プログラムの解析を行い,ス
テップ23で表示処理手段(4)は,解析されたプログ
ラムをもとに表示手段(5)上にグラフィック表示を行
う。ステップ24でチェック終了か否かを判定し,終了
でなければステップ21に戻って次ブロックを読み込み
終了であればチェック終了とし,処理を終わる。
FIG. 5(c) shows the processing when executing the created/edited machining program. In step 21, the machining program specified for execution is read from the memory (6) onto the buffer (3), in step 22 the machining program is analyzed, and in step 23, the display processing means (4) displays the data based on the analyzed program. A graphical display is provided on the display means (5). In step 24, it is determined whether or not the check has been completed. If not, the process returns to step 21, and if the next block has been read, the check is determined to have been completed and the process ends.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来のCNCの加工プログラム作成・編集機能は,以上
の様に構成されているのでプログラムエラーは実行する
までわからず,その都度プログラムエラーを修正してい
くため大変時間がかかるという問題点があった。
Conventional CNC machining program creation/editing functions are configured as described above, so there was a problem that program errors were not known until the program was executed, and it took a lot of time to correct program errors each time. .

この発明は,上記の様な問題を解消するためになされた
もので加工プログラム作成・編集時,同時にグラフィッ
クで加工形状の描画を行い,プログラムのチェックがで
きるCNCを得ることを目的とする。
This invention was made to solve the above-mentioned problems, and aims to provide a CNC that can simultaneously draw a machining shape graphically and check the program when creating and editing a machining program.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係るCNCは,加工プログラムを作成・編集
すると同時にグラフィックにて加工形状を描画できるよ
うに1ブロック実行の可否を判定する条件戊立判定手段
を備えたものである。
The CNC according to the present invention is equipped with a condition determination means for determining whether or not one block can be executed so that the machining shape can be graphically drawn at the same time as the machining program is created and edited.

〔作用〕[Effect]

この発明における条件成立判定手段は,1ブロックデー
夕の成立をチェックして,プログラムを解析し,グラフ
ィック表示させるとともにプログラム解析によりプログ
ラムエラーを検知する。
The condition satisfaction determination means in the present invention checks whether one block data is satisfied, analyzes the program, displays it graphically, and detects a program error through the program analysis.

〔実施例〕〔Example〕

以下,この発明の一実施例を図について説明する。第1
図において加工プログラム(1)は,作成編集を行う加
工プログラムを示す。編集手段(2b)は,編集画面に
おいて加工プログラムの作成・編集を行う。バッファ(
3)は.編集手段(2b)で作成編集されている加工プ
ログラムを格納するバッファを示す。表示処理手段(4
)は,バッファ(3)上の加工プログラムを表示手段(
5)上に表示させるものである。メモリ(6)は,作戊
・編集の終了した加工プログラムを格納するメモリを示
す。データ解析手段(7)は,編集手段(2b)によっ
て作成・編集された加工プログラムの解析を行う。グラ
フィック手段(8)は.データ解析手段(1)によって
解析されたデータをグラフィック表示させるためのもの
である。条件成立判定手段0)は,Iブロックの作成編
集が終了したか否かの判定を行うものである。
An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, machining program (1) indicates a machining program that performs creation and editing. The editing means (2b) creates and edits the machining program on the editing screen. buffer(
3). A buffer for storing a machining program created and edited by the editing means (2b) is shown. Display processing means (4
) displays the machining program on the buffer (3) (
5) It is displayed on top. Memory (6) indicates a memory that stores the machining program that has been created and edited. The data analysis means (7) analyzes the machining program created and edited by the editing means (2b). Graphic means (8) is. This is for graphically displaying the data analyzed by the data analysis means (1). The condition satisfaction determining means 0) determines whether the creation and editing of the I block has been completed.

編集手段(2b)は,従来の編集手段(2a)に条件成
立判定手段(9)が含まれたものである。
The editing means (2b) is the conventional editing means (2a) including a condition satisfaction determining means (9).

次に動作について説明する。第2図は構成図を詳細にフ
ローチャートで示す。ここで,条件成立判定手段は,作
成・編集された1ブロックの完了を判定するものである
が,判定は新規作成の時EOBキーの操作で,また編集
(修正)の時は,変更箇所の示すカーソルの位置が他ブ
ロックまたは変更ブロックのEOBコードの後に位置し
た事をもって条件成立とする。ステップ3lで加工プロ
グラム作成・編集終了か否か判定し,終了であれば作成
・編集終了とし処理を終わる。終了でなければステップ
32で編集であればメモリ(6)からバッファ(3)上
に加工プログラムを読み出し,新規作成であればそのま
ま編集手段(2b)によって作成・編集を行う。ステッ
プ33で実行条件が成立したか否かの判定をし,成立し
ていなければステップ31に戻って作成・編集終了か否
かの判定し,成立であればステップ34で加工プログラ
ム1ブロックをバッファ(3)上から読み出し,データ
解析手段(7)によってプログラムが解析される。ステ
ップ35でステップ34で解析されたデータをもとにし
て表示手段(5)上にグラフィック表示させる。以上の
ようなサイクルで加工プログラム作成・編集が終了する
まで続けられる。その間にプログラムエラーが発生した
場合は,プログラムエラーを表示し処理を終了とする。
Next, the operation will be explained. FIG. 2 shows the configuration diagram in detail in the form of a flowchart. Here, the condition fulfillment determining means is to determine the completion of one created/edited block, and the determination is made by operating the EOB key when creating a new block, and by operating the EOB key when editing (correcting). The condition is satisfied when the indicated cursor is positioned after the EOB code of another block or the changed block. In step 3l, it is determined whether or not the machining program creation/editing is complete, and if it is, the creation/editing is determined to be complete and the process ends. If not completed, in step 32, the machining program is read from the memory (6) onto the buffer (3) if it is to be edited, and if it is to be newly created, it is created and edited by the editing means (2b). In step 33, it is determined whether or not the execution condition is satisfied. If not, the process returns to step 31 to determine whether the creation/editing is finished. If it is satisfied, one block of the machining program is buffered in step 34. (3) Read from above, and the program is analyzed by the data analysis means (7). In step 35, the data analyzed in step 34 is displayed graphically on the display means (5). The above cycle continues until the creation and editing of the machining program is completed. If a program error occurs during this time, the program error will be displayed and the process will end.

なお,上記実施例では,グラフィック表示は編集画面の
右側に表示するようにしたが編集画面とグラフィック表
示が同時に表示されるのであれば右側に限定するもので
はない。
In the above embodiment, the graphic display is displayed on the right side of the editing screen, but the display is not limited to the right side as long as the editing screen and the graphic display are displayed at the same time.

また,条件成立判定手段は,1ブロックのみの条件成立
について判定するようにしたが,複数ブロックで条件が
成立を判定することもある。
Further, although the condition satisfaction determining means determines whether the condition is satisfied in only one block, it may be determined whether the condition is satisfied in a plurality of blocks.

〔発明の効果〕〔Effect of the invention〕

以上のように,この発明によれば,加工プログラム編集
機能の中に,加工プログラムの加工形状の描画機能も合
わせもち,且つlブロックデータ作成または,修正毎に
加工形状を描画するように構成したので,編集時にプロ
グラムエラーが発見でき,直ちに修正・手直しができる
ため加工プログラム作成時間の短縮が図れるという効果
がある
As described above, according to the present invention, the machining program editing function also has the function of drawing the machining shape of the machining program, and the machining shape is drawn every time block data is created or modified. Therefore, program errors can be discovered during editing and can be corrected or revised immediately, which has the effect of shortening the time required to create machining programs.

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

第l図は,この発明の一実施例によるCNCのプログラ
ム作成・編集,プログラム表示,グラフィック表示の構
成図.第2図は,処理手順を示すフローチャート,第3
図は編集画面を示す図,第4図は,従来のプログラム作
成・編集,表示の構成図,第5図は,処理手順を示すフ
ローチャート第6図は,編集画面を示す図である。
FIG. 1 is a configuration diagram of CNC program creation/editing, program display, and graphic display according to an embodiment of the present invention. Figure 2 is a flowchart showing the processing procedure, and Figure 3 is a flow chart showing the processing procedure.
4 is a diagram showing the configuration of conventional program creation, editing, and display. FIG. 5 is a flowchart showing the processing procedure. FIG. 6 is a diagram showing the editing screen.

Claims (1)

【特許請求の範囲】[Claims] 加工プログラム作成・編集機能とグラフィック表示機能
を備えた数値制御装置において、加工プログラムを実行
する為の条件が成立したか否かを判定する条件成立判定
手段を備え、上記加工プログラムを作成・編集により新
しく作成または、修正されたブロックの実行条件が成立
したか否かを上記条件成立判定手段により判定し、条件
が成立していれば上記作成または、修正されたブロック
を解析し、グラフィック表示機能により工具軌跡として
グラフィック表示することを特徴とする数値制御装置。
A numerical control device equipped with a machining program creation/editing function and a graphic display function is equipped with a condition establishment determination means for determining whether conditions for executing a machining program are met, and the above-mentioned machining program can be created and edited. The above-mentioned condition establishment determination means determines whether the execution condition of the newly created or modified block is satisfied, and if the condition is satisfied, the created or modified block is analyzed and the graphic display function is used to analyze the newly created or modified block. A numerical control device characterized by graphically displaying tool paths.
JP23205889A 1989-09-07 1989-09-07 Numerical controller Pending JPH0394307A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23205889A JPH0394307A (en) 1989-09-07 1989-09-07 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23205889A JPH0394307A (en) 1989-09-07 1989-09-07 Numerical controller

Publications (1)

Publication Number Publication Date
JPH0394307A true JPH0394307A (en) 1991-04-19

Family

ID=16933317

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23205889A Pending JPH0394307A (en) 1989-09-07 1989-09-07 Numerical controller

Country Status (1)

Country Link
JP (1) JPH0394307A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10295987B2 (en) 2014-09-03 2019-05-21 Yamazaki Mazak Corporation Machining program editing assist apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10295987B2 (en) 2014-09-03 2019-05-21 Yamazaki Mazak Corporation Machining program editing assist apparatus

Similar Documents

Publication Publication Date Title
US4646228A (en) Graphic display device
JP4329248B2 (en) NC machining simulation equipment
JPH04181403A (en) Interactive numerical controller
JPH0219906A (en) Numerical control program correcting system for interactive numerical controller
WO1990005327A1 (en) Pert program execution method
JPH0394307A (en) Numerical controller
CN108788772B (en) Work-piece processing system
JPH07120285B2 (en) How to use the syntax checker and text editor
JPS63133210A (en) Program preparation system for nc device
JP2875135B2 (en) Program device for programmable controller
JPH03207628A (en) Method and apparatus for editing sequence program of injection molding machine
JPH0392907A (en) Numerical controller
JPH04252307A (en) Interactive numerical controller
JPH0511831A (en) Machining program analyzing method for nc controller
JPS6115236A (en) Partial production of object list
JPH09160620A (en) Numerical controller
JPS63298406A (en) Automatic programming device
JPH02206805A (en) System for executing part program
JP2003281206A (en) Design support device
JPH0358202A (en) Numerical controller with simulation function
JPS60263210A (en) Program generating method of numerical control device
JPH05113816A (en) Interactive numerical controller
JPS63292304A (en) Display method for locus of tool movement in numerical controller
JPH01304504A (en) Display method for remaining working time
JPH04148305A (en) Edited part confirming system