JPS63133210A - Program preparation system for nc device - Google Patents

Program preparation system for nc device

Info

Publication number
JPS63133210A
JPS63133210A JP28139586A JP28139586A JPS63133210A JP S63133210 A JPS63133210 A JP S63133210A JP 28139586 A JP28139586 A JP 28139586A JP 28139586 A JP28139586 A JP 28139586A JP S63133210 A JPS63133210 A JP S63133210A
Authority
JP
Japan
Prior art keywords
command
program
simulation
editing
equal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP28139586A
Other languages
Japanese (ja)
Other versions
JPH0677208B2 (en
Inventor
Junichi Wada
順一 和田
Takahiro Yamaguchi
隆宏 山口
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.)
Okuma Corp
Original Assignee
Okuma Machinery Works 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 Okuma Machinery Works Ltd filed Critical Okuma Machinery Works Ltd
Priority to JP61281395A priority Critical patent/JPH0677208B2/en
Publication of JPS63133210A publication Critical patent/JPS63133210A/en
Publication of JPH0677208B2 publication Critical patent/JPH0677208B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To improve efficiency for preparation, correction and operation of a working program by confirming the working between optional blocks at an optional time point when the working program of an NC device is prepared. CONSTITUTION:It is discriminated whether an instruction IN received by a command reception discriminating part 1 is equal to a program editing operation command, an action confirming command or an editing end command. Then the reception of commands is set under a waiting state when the command IN is not equal to any of said three commands. If the command IN is equal to the editing operation command, an operator secures a coaction between an editing operation part 2 and a program memory part 3 to perform an editing job with reference to the screen of a display device 5 and stores a working program into the part 3. While the program is analyzed at a high speed by a high-speed program analyzing part 6 from the head block through the final one when the command IN is equal to an action confirming command OC. Then a simulation command SI is produced by a simulation command generating part 7 and a simulation executing part 8 performs simulation. The result of this simulation is displayed at a program display part 4 and a CRT 5.

Description

【発明の詳細な説明】 (発明の技術分野) 本発明は、NC装置(数値制御装置)の加工プログラム
を作成するための方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Technical Field of the Invention) The present invention relates to a method for creating a machining program for an NC device (numerical control device).

(発明の技術的背景とその問題点) 従来、NC装置の加工プログラムを作成する方式として
、加工プログラムを1ブロツクずつ入力して行き、1ブ
ロツク入力毎にそのブロックの動作確認を行ない、この
動作を繰返すことで加工プログラムを完成させる方式が
あった。
(Technical background of the invention and its problems) Conventionally, as a method of creating a machining program for an NC device, the machining program is inputted one block at a time, and the operation of the block is checked for each block input. There was a method of completing a machining program by repeating the steps.

しかしながら、この加工プログラム作成方式では、加工
プログラムの先頭ブロックから順番に、1ブロツクずつ
人力していかなければ動作の確認を行なうことが出来ず
、任意ブロックの修正や確認を行ないたい場合も多く、
加工プログラムの作成、修正における操作性や効率が悪
い欠点がある。
However, with this machining program creation method, the operation cannot be checked unless the machining program is manually created one block at a time, starting from the first block, and there are many cases where it is desired to modify or check arbitrary blocks.
It has the disadvantage of poor operability and efficiency in creating and modifying machining programs.

(発明の目的) 本発明は上述のような1$情よりなされたものであり、
本発明の目的は、NC装置の加工プログラムの作成の際
、任意の時点で任意のブロック区間の動作確認を可能と
し、加工プログラムの作成、修正の操作性及び効率を良
くした加工プログラム作成方式を提供することにある。
(Object of the invention) The present invention was made based on the above-mentioned circumstances,
An object of the present invention is to provide a machining program creation method that makes it possible to check the operation of any block section at any time when creating a machining program for an NC device, and improves the operability and efficiency of creating and modifying machining programs. It is about providing.

(発明の概要) 本発明はNC装置の加工プログラム作成方式に関するも
ので、NC装置の加工プログラムの作成時に、任意の時
点で作成プログラムの先頭から高速解析し、前記加工プ
ログラムの任意ブロック区間のシミュレーションを行な
う機能を有し、前記加工プログラムの作成と同時に視覚
的に動作確認を行ない得るようにしたものである。
(Summary of the Invention) The present invention relates to a method for creating a machining program for an NC device. When creating a machining program for an NC device, high-speed analysis is performed from the beginning of the created program at an arbitrary point, and simulation of an arbitrary block section of the machining program is performed. The present invention has a function to perform the above-mentioned machining program, and is designed to visually confirm the operation at the same time as creating the machining program.

(発明の実施例) 第1図はこの発明方式を実現する装置のブロック4’!
1成を示しており、キーボード等からの指令INを人力
して、編集指令EDであるか、又はシミュレーションに
よる動作確認を行なう動作確認指令OCであるかを判別
する指令受付判別部1と、作成された加工プログラムを
記憶するプログラム記憶部3と、指令受付判別部1から
の編集指令EDに従って編集を行なう編集操作部2と、
プログラム記憶部3に記憶されている加工プログラムを
読出してCRT等の表示装置5に表示するためのプログ
ラム表示部4と、指令受付判別部lからの動作確認指令
OCに基づいてプログラム記憶部3に記fQされている
加工プログラムを高速解析するプログラム高速解析部6
と、解析された加工プログラムに従ってシミュレーショ
ン指令STを生成するシミュレーション指令生成部7と
、生成されたシミュレーション指令5丁に基づいてシミ
ュレーションを実行するシミュレーション実行部8とで
構成されている。
(Embodiment of the Invention) Figure 1 shows a block 4' of a device that realizes the method of this invention!
1 configuration, and a command acceptance determination unit 1 that manually inputs a command IN from a keyboard or the like and determines whether it is an editing command ED or an operation confirmation command OC for performing operation confirmation by simulation; a program storage unit 3 that stores the processed machining program; an editing operation unit 2 that performs editing in accordance with the editing command ED from the command acceptance determination unit 1;
A program display section 4 reads the machining program stored in the program storage section 3 and displays it on a display device 5 such as a CRT, and a program display section 4 reads out the machining program stored in the program storage section 3 and displays it on a display device 5 such as a CRT. A program high-speed analysis unit 6 that performs high-speed analysis of the machining program described in fQ.
, a simulation command generation unit 7 that generates a simulation command ST according to the analyzed machining program, and a simulation execution unit 8 that executes a simulation based on the five generated simulation commands.

そして、m集操作部2と、プログラム記憶部3と、プロ
グラム表示部4と、表示装置5とによって一般的なスク
リーンエディタを構成している。スクリーンエディタの
機能は、スクリーンモードにおいては表示装置5上を自
由に移動できるカーソル位置に人力された1文字を格納
し、コマンドモードにおいてはカーソル位置の1文字を
削除するとか、空白(スペース)を挿入するとか、或い
は指定したブロック区間を他の位置に移動したり、コピ
ーするどいりた機能で、この他にも加工プログラムの作
成効率を高めるためのいくつかの機能を有している。
The m-collection operation section 2, program storage section 3, program display section 4, and display device 5 constitute a general screen editor. In the screen mode, the function of the screen editor is to store a manually entered character at a cursor position that can be moved freely on the display device 5, and in the command mode, to delete a character at the cursor position or to remove a blank space. In addition to functions such as inserting, moving or copying a specified block section to another position, it also has several functions to improve the efficiency of creating machining programs.

このような構成において、その動作を第2図のフローチ
ャー(・を参照して説明する。
In such a configuration, its operation will be explained with reference to the flowchart (.) in FIG.

指令受付部1においてキーボード等から人力された指令
INを受付け(ステップS1)、これがプログラム編集
を行なう編集操作指令であるのか(ステップS2)、シ
ミュレーションによる動作確認を行なう動作確認指令O
Cであるのか(ステップS4) 、ai&終了指令であ
るのか(ステップS8)を判別する。そして、いずれに
も該当しない場合は、無意味な入力指令と見なしてステ
ップ51へリターンし、指令受付の待機状態となる。人
力された指令INが編集操作指令の場合には、キーボー
ド等の入力に従ってm集操作部2及びプログラム記憶部
3が協働して、オペレータは表示装置5の画面を見なが
ら編集操作を行なうことができる(ステップS3)。編
集操作指令の人力によって上記動作を繰返して行ない、
修正や編集等で作成した加工プログラムをプログラム記
憶部3に格納する。
The command reception unit 1 receives a command IN entered manually from a keyboard or the like (step S1), determines whether this is an editing operation command for editing a program (step S2), and issues an operation check command O to check the operation by simulation.
It is determined whether the command is C (step S4) or the ai&end command (step S8). If none of the above applies, it is assumed that the input command is meaningless, and the process returns to step 51, where it enters a standby state for command reception. When the manually input command IN is an editing operation command, the m collection operation section 2 and the program storage section 3 cooperate according to the input from the keyboard, etc., and the operator performs the editing operation while looking at the screen of the display device 5. (Step S3). The above operations are repeatedly performed by manual editing commands,
A machining program created through modification, editing, etc. is stored in the program storage unit 3.

一方、指令INとして動作確認指令OCが人力された場
合は指令受付判別部1でこれが判別され、プログラム高
速解析部6に動作確認指令OCが入力されることにより
、ブロック区間の直前のモーダル情報を確立する目的と
、ブロック区間の情報を得る目的とで、プログラム記憶
部3に格納されている加工プログラムの先頭ブロックか
ら、動作確認をすべきブロック区間(1ブロツクもしく
はそれ以上の複数ブロック)の最後のブロックまでを高
速解析する(ステップS5)。従って、任意の時点で任
意のブロック区間の指令情報が確立するので、シミュレ
ーションによる動作確認が可能となる。シミュレーショ
ン指令生成部7はプログラム高速解析部6で得られたブ
ロック区間直前の干−ダル情報と、ブロック区間の指令
情報とから、動作確認をすべきブロック区間のシミュレ
ーション指令Slを生成する(ステップS6)。そして
、シミュレーション実行部8はこのシミュレーション指
令srを実行し、実行結果を表示装置5に表示すること
で視覚的にシミュレーションによる動作確認を行なうこ
とができる(ステップS7)。
On the other hand, if the operation confirmation command OC is manually input as the command IN, the command acceptance determination unit 1 determines this, and the operation confirmation command OC is input to the program high-speed analysis unit 6 to read the modal information immediately before the block section. For the purpose of establishing and obtaining information on the block section, from the first block of the machining program stored in the program storage unit 3 to the end of the block section (one block or more blocks) to be checked for operation. High-speed analysis is performed on blocks up to (step S5). Therefore, command information for an arbitrary block section is established at an arbitrary point in time, making it possible to confirm the operation by simulation. The simulation command generation section 7 generates a simulation command Sl for the block section whose operation should be checked from the block section information immediately before the block section obtained by the program high-speed analysis section 6 and the block section command information (step S6 ). Then, the simulation execution unit 8 executes this simulation command sr and displays the execution result on the display device 5, so that the operation can be visually confirmed by the simulation (step S7).

なお、上記ステップ51.S2,54,58において人
力された指令INが編集終了指令である場合には、ステ
ップS8においてシーケンス終了となり、加工プログラ
ムの作成作業は終了となる。
Note that step 51. If the command IN manually entered in S2, 54, and 58 is an editing end command, the sequence ends in step S8, and the machining program creation work ends.

次に、第3図のワーク形状へBCDを切削する加工プロ
グラムを作成する場合を例に挙げて、本発明を説明する
。なお、上記ワークのへB部分とDC’D’の部分の形
状は同一である。
Next, the present invention will be explained by taking as an example a case where a machining program for cutting a BCD into the workpiece shape shown in FIG. 3 is created. Note that the shapes of the portion B and the portion DC'D' of the workpiece are the same.

シーケンス動作を開始し、先ず点Aから点Bまでの形状
を切削する加工プログラムを作成する。前述したように
編集操作部2と、プログラム記憶部3と、プログラム表
示部4とで一般的なスクリーンエディタを構成しており
、プログラムを1文字ずつ人力したり、文字削除やコピ
ー等の機能を有している。したがって、上記ステップ5
1,52.S3においてプログラム作成のために必要な
1文字を人力し、以下この入力を繰返すことによって加
工プログラムを作成して行く。そして、点Aから点Bま
での形状の加工プログラムは、相対位置指令によって作
成する。
A sequence operation is started, and first a machining program for cutting a shape from point A to point B is created. As mentioned above, the editing operation section 2, program storage section 3, and program display section 4 constitute a general screen editor, which allows you to manually edit programs character by character, and perform functions such as character deletion and copying. have. Therefore, step 5 above
1,52. In S3, one character required for creating the program is entered manually, and the machining program is created by repeating this input. A machining program for the shape from point A to point B is created using relative position commands.

この部分では、動作確認すべきブロック区間は1ブロツ
ク人力毎に入力されたブロックのみと指定しておき、動
作確認指令OCをキーボード等から入力してシミュレー
ションを実行させて動作確認を行なう(ステップSt、
S2.S4〜57)。この動作を繰返して、点Aから点
Bまでの加工プログラムを作成している途中の表示状態
を第4図に示す。
In this part, the block section to be checked for operation is specified as only the block input manually for each block, and the operation is checked by inputting the operation check command OC from the keyboard, etc., to execute the simulation (step St ,
S2. S4-57). FIG. 4 shows a display state in the middle of creating a machining program from point A to point B by repeating this operation.

次に、[lCDの形状を切削するプログラムを作成する
。ここではA8部分とnc’o“の部分の形状が同一で
あることに着目し、スクリーンエディタの一般的機能で
あるコピー機能を用いてシーケンス番号N003〜N0
06までをコピーし、Coに至る指令をCまでの指令に
修正して作成する方が効率が良い。このようにしてBC
[)の形状の加工プログラムを作成した表示状態を第5
図に示す。ここでは、各シーケンス番号及びシーケンス
番号N09のZの指令値を修正している。この後、今作
成したシーケンス番号NO7〜NIOまでの4ブロツク
をブロック区間とした動作確認指令OCを人力し、上述
と同様にシミュレーションを実行して動作確認を行なう
。この場合の表示状態を第6図に示す。
Next, create a program to cut the shape of the ICD. Here, we focused on the fact that the shapes of the A8 part and the nc'o" part are the same, and used the copy function, which is a general function of the screen editor, to copy the sequence numbers N003 to N0.
It is more efficient to copy the commands up to 06 and modify the commands up to Co to create the commands up to C. In this way B.C.
The display state in which the machining program for the shape of [) was created is the fifth one.
As shown in the figure. Here, the command value of Z for each sequence number and sequence number N09 is corrected. Thereafter, an operation confirmation command OC is manually generated in which the four blocks from sequence numbers NO7 to NIO just created are set as a block section, and a simulation is executed in the same manner as described above to confirm the operation. The display state in this case is shown in FIG.

もし、動作確認をしたブロック区間において、作成した
加工プログラムに誤りがあることが検出された場合には
、スクリーンエディタ機能によって直ちに誤り個所の修
正が可能である。さらに修正後、再度修正個所あるいは
修正個所を含む複数ブロックをブロック区間とした動作
確認が可能である。
If it is detected that there is an error in the created machining program in the block section where the operation has been checked, the error can be immediately corrected using the screen editor function. Furthermore, after modification, it is possible to check the operation again using the modified portion or a plurality of blocks including the modified portion as a block section.

最後にプログラム終了コードのブロックを入力すること
により、第3図に示すワークの切削プログラムが完成す
る。このようにして加工プログラムが完成した後、編集
終了指令を人力することによりシーケンスを終了させる
Finally, by inputting the program end code block, the workpiece cutting program shown in FIG. 3 is completed. After the machining program is completed in this way, the sequence is ended by manually issuing an editing end command.

なお、上述の実施例では説明を簡単にするため、動作確
認として位置指令のみのシミュレーションを行なりてい
るが、送り機能指令、主軸回転指令、工具指令、補助機
能指令等のシミュレーションも同一構成で行なうことが
可能である。
In addition, in the above example, in order to simplify the explanation, only the position command is simulated to confirm the operation, but the simulation of the feed function command, spindle rotation command, tool command, auxiliary function command, etc. also has the same configuration. It is possible to do so.

(発明の効果) 以上のように本発明方式では、加工プログラムの編集中
に、任意の時点で任意のブロック区間のシミュレーショ
ンによる動作確認が可能であり、加工プログラムを作成
しながら動作確認を行なうことができるので、効率が非
常に高い。さらに、スクリーンエディタや文字削除。
(Effects of the Invention) As described above, in the method of the present invention, it is possible to check the operation by simulating any block section at any time while editing the machining program, and it is possible to check the operation while creating the machining program. It is very efficient as it can do this. Additionally, screen editor and character deletion.

コピーといった編集操作機能を充分に生かすことができ
るので、操作性や効率がより向上している。
Since editing functions such as copying can be fully utilized, operability and efficiency are further improved.

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

第1図は本発明方式を実現する装置の一例を示すブロッ
ク構成図、第2図は本発明方式の動作例を示すフローチ
ャート、第3図はワークの加工形状を示す図、第4図〜
第6図は本発明による表示状態の一例を示す図である。 1・・・指令受付判別部、2・・・編集操作部、3・・
・プログラム記憶部、4・・・プログラム表示部、5・
・・表示装置、6・・・プログラム高速解析部、7・・
・シミュレーション指令生成部、8・・・シミュレーシ
ョン実行部。 出願人代理人  安 形 雄 三 第3 図
Fig. 1 is a block configuration diagram showing an example of a device that implements the method of the present invention, Fig. 2 is a flowchart showing an example of the operation of the method of the present invention, Fig. 3 is a diagram showing the machining shape of a workpiece, and Figs.
FIG. 6 is a diagram showing an example of a display state according to the present invention. 1... Command reception determination unit, 2... Editing operation unit, 3...
・Program storage section, 4...Program display section, 5.
...Display device, 6...Program high-speed analysis section, 7...
-Simulation command generation unit, 8...Simulation execution unit. Applicant's agent Yu Yasugata Figure 3

Claims (1)

【特許請求の範囲】[Claims] NC装置の加工プログラムの作成時に、任意の時点で作
成プログラムの先頭から高速解析し、前記加工プログラ
ムの任意ブロック区間のシミュレーションを行なう機能
を有し、前記加工プログラムの作成と同時に視覚的に動
作確認を行ない得るようにしたことを特徴とするNC装
置の加工プログラム作成方式。
When creating a machining program for the NC device, it has a function that performs high-speed analysis from the beginning of the created program at any time and simulates any block section of the machining program, and visually confirms the operation at the same time as the machining program is created. A method for creating a machining program for an NC device, characterized in that it is capable of performing the following steps.
JP61281395A 1986-11-26 1986-11-26 NC device machining program creation method Expired - Fee Related JPH0677208B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61281395A JPH0677208B2 (en) 1986-11-26 1986-11-26 NC device machining program creation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61281395A JPH0677208B2 (en) 1986-11-26 1986-11-26 NC device machining program creation method

Publications (2)

Publication Number Publication Date
JPS63133210A true JPS63133210A (en) 1988-06-06
JPH0677208B2 JPH0677208B2 (en) 1994-09-28

Family

ID=17638546

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61281395A Expired - Fee Related JPH0677208B2 (en) 1986-11-26 1986-11-26 NC device machining program creation method

Country Status (1)

Country Link
JP (1) JPH0677208B2 (en)

Cited By (6)

* 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
JPH02133802A (en) * 1988-11-15 1990-05-23 Okuma Mach Works Ltd Graphic display system for numerical controller
WO1991014215A1 (en) * 1990-03-08 1991-09-19 Fanuc Ltd Interactive automatic programming method
JPH0428307U (en) * 1990-06-25 1992-03-06
WO1992013303A1 (en) * 1991-01-28 1992-08-06 Fanuc Ltd Interactive numerical controller
JPH05289728A (en) * 1992-04-09 1993-11-05 Mitsubishi Electric Corp Machining program generating method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5971515A (en) * 1982-10-16 1984-04-23 Fanuc Ltd Graphic display device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5971515A (en) * 1982-10-16 1984-04-23 Fanuc Ltd Graphic display device

Cited By (8)

* 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
JPH02133802A (en) * 1988-11-15 1990-05-23 Okuma Mach Works Ltd Graphic display system for numerical controller
WO1991014215A1 (en) * 1990-03-08 1991-09-19 Fanuc Ltd Interactive automatic programming method
EP0476139A1 (en) * 1990-03-08 1992-03-25 Fanuc Ltd. Interactive automatic programming method
EP0476139A4 (en) * 1990-03-08 1992-11-04 Fanuc Ltd. Interactive automatic programming method
JPH0428307U (en) * 1990-06-25 1992-03-06
WO1992013303A1 (en) * 1991-01-28 1992-08-06 Fanuc Ltd Interactive numerical controller
JPH05289728A (en) * 1992-04-09 1993-11-05 Mitsubishi Electric Corp Machining program generating method

Also Published As

Publication number Publication date
JPH0677208B2 (en) 1994-09-28

Similar Documents

Publication Publication Date Title
US4835700A (en) Numerical control data creation method
JP3347964B2 (en) Automatic programming device and method
JPH03154105A (en) Nc program generating device
EP0130219B1 (en) Method of preparing part program
JP4329248B2 (en) NC machining simulation equipment
JPH04181403A (en) Interactive numerical controller
JPS63133210A (en) Program preparation system for nc device
JPH01200413A (en) Production of analogous part program
JPH01200412A (en) Statement inserting method
JPH0194404A (en) Nc data generation system
JPS6222107A (en) Nc data preparing method
JPS62251044A (en) Nc program preparing method for four-spindle lathe
JP3619539B2 (en) Tool path editing method
JP3437218B2 (en) Method and device for confirming and editing machining data in automatic programming device
JP3259987B2 (en) Interactive numerical controller
JP2993288B2 (en) Machining program creation device
JPH0643923A (en) Numerical control program editing device
JPH07302107A (en) Numerical controller
JPH0358202A (en) Numerical controller with simulation function
JPH0346007A (en) Nc information generation system
JPH04229304A (en) Nc data generating method
JPH0588735A (en) Nc program editing device
JPS63128431A (en) Producing device for process language string collation type flow chart
JPH0720918A (en) Numerical controller with guidance function
JPH04275854A (en) Set-up data managing method for nc machine tool

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees