JPH05113818A - Numerical controller with multi-program function - Google Patents

Numerical controller with multi-program function

Info

Publication number
JPH05113818A
JPH05113818A JP3304015A JP30401591A JPH05113818A JP H05113818 A JPH05113818 A JP H05113818A JP 3304015 A JP3304015 A JP 3304015A JP 30401591 A JP30401591 A JP 30401591A JP H05113818 A JPH05113818 A JP H05113818A
Authority
JP
Japan
Prior art keywords
program
child
programs
machining
grandchild
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
JP3304015A
Other languages
Japanese (ja)
Other versions
JP2993538B2 (en
Inventor
Yuji Kondo
祐二 近藤
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 JP3304015A priority Critical patent/JP2993538B2/en
Publication of JPH05113818A publication Critical patent/JPH05113818A/en
Application granted granted Critical
Publication of JP2993538B2 publication Critical patent/JP2993538B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To obtain the numerical controller with the multi-program function which enables plural programs to easily be confirmed by listing the respective program names of the programs in a tree state on a display device. CONSTITUTION:A multi-program command selecting circuit 3 reads a machining program, block by block, through a read circuit 2, analyzes the hierarchic structure of child programs and grandchild programs, and stores the names of programs at a call source and a call destination in a child program memory 5 and a grandchild program memory 6 through a memory writing switching circuit 4. Then a multi-program list display circuit 7 displays the machining program name, child program names, and grandchild program names in tree structure in this order on a CRT 8 according to the stored contents.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、加工プログラムの多重
プログラム機能を有する数値制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a numerical controller having a multiple program function for machining programs.

【0002】[0002]

【従来の技術】数値制御用加工プログラムのチェック方
法としては、プログラムを画面に表示して行なう方法が
一般的である。図5は数値制御用加工プログラムを画面
に表示する機能を備えた従来の多重プログラム機能を有
する数値制御装置の一例を示すブロック図であり、加工
プログラムメモリ1には加工プログラムが記憶されてお
り、オペレータ等がキーボード等の操作盤(図示せず)
で指示することにより、加工プログラムメモリ1から加
工プログラムのブロックPBが読出回路2により順次読
出され、加工プログラム表示回路9によりCRT表示装
置8にプログラムリストPLとして表示されるようにな
っている。
2. Description of the Related Art As a method of checking a numerical control machining program, a method of displaying the program on a screen is generally used. FIG. 5 is a block diagram showing an example of a conventional numerical control device having a multiple program function having a function of displaying a numerical control machining program on a screen. The machining program memory 1 stores the machining program. An operator operates a keyboard or other operation panel (not shown)
The block PB of the machining program is sequentially read from the machining program memory 1 by the reading circuit 2 and is displayed by the machining program display circuit 9 on the CRT display device 8 as a program list PL.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の多重プ
ログラム機能を有する数値制御装置によれば、多重プロ
グラム機能を用いた加工プログラムのチェックの場合、
先頭からプログラムの実行順方向に行うときには先ず子
プログラムを呼出した箇所をチェックしておき、呼出さ
れた子プログラムの確認を終えた後にチェックした呼出
箇所に戻って確認を続けることは容易である。ところ
が、子プログラムの途中から確認する場合、子プログラ
ムの呼出箇所を捜出すときにはプログラム全てを検索す
ることになり、多重度が増すにつれてより困難になる。
また、多重プログラムの階層の確認に際しては、オペレ
ータ等がプログラムの全てのプログラム名を検索して確
認しなければならない。従って、多重プログラムの加工
プログラム確認に多大な手間を要するという問題があっ
た。
According to the above-described conventional numerical control device having the multiple program function, in the case of checking the machining program using the multiple program function,
When the program is executed in the forward direction from the beginning, it is easy to first check the location where the child program is called, and after checking the called child program, return to the checked calling location and continue the checking. However, in the case of checking from the middle of the child program, all the programs are searched when the calling point of the child program is searched, which becomes more difficult as the multiplicity increases.
Also, when confirming the hierarchy of multiple programs, an operator or the like must search and confirm all program names of the programs. Therefore, there is a problem that it takes a lot of time and effort to confirm the machining program of the multiple programs.

【0004】本発明は上述した事情より成されたもので
あり、本発明の目的は、多重プログラムの各プログラム
名をツリー状に一覧表として表示することにより多重プ
ログラムの確認を容易に行うことができる多重プログラ
ム機能を有する数値制御装置を提供することにある。
The present invention has been made under the circumstances described above, and an object of the present invention is to facilitate confirmation of a multiple program by displaying each program name of the multiple program as a list in a tree form. It is to provide a numerical controller having a multi-program function that can be performed.

【0005】[0005]

【課題を解決するための手段】本発明は、加工プログラ
ムの多重プログラム機能を有する数値制御装置に関する
ものであり、本発明の上記目的は、加工プログラムを解
析して、前記加工プログラムから呼出される子プログラ
ム名と呼出元の加工プログラム名を記憶する第一の記憶
手段と、前記子プログラムから呼出される孫プログラム
名と呼出元の子プログラム名を記憶する第二の記憶手段
と、前記第一の記憶手段と第二の記憶手段で記憶した内
容に基づき加工プログラム名、子プログラム名、孫プロ
グラム名の順にツリー状に一覧表として表示する表示手
段とを具備することによって達成される。
The present invention relates to a numerical controller having a multi-program function of a machining program, and the above object of the present invention is to analyze the machining program and call it from the machining program. First storage means for storing a child program name and a processing program name of a calling source; second storage means for storing a grandchild program name called from the child program and a calling source child program name; This is achieved by providing the storage means and the display means for displaying a machining program name, a child program name, and a grandchild program name in the order of a tree as a list based on the contents stored in the second storage means.

【0006】[0006]

【作用】本発明の多重プログラム機能を有する数値制御
装置によれば、多重プログラムの各プログラム名をツリ
ー状に一覧表として表示することができるので、多重プ
ログラムの階層構造が一目でわかるようになる。
According to the numerical controller having the multiple program function of the present invention, each program name of the multiple programs can be displayed as a list in a tree form, so that the hierarchical structure of the multiple programs can be seen at a glance. ..

【0007】[0007]

【実施例】図1は本発明の多重プログラム機能を有する
数値制御装置の一例を図5に対応させて示すブロック図
であり同一構成箇所は同符号を付して説明を省略する。
加工プログラムメモリ1には加工プログラムが記憶され
ており、オペレータ等がキーボード等の操作盤(図示せ
ず)で指示することにより、加工プログラムメモリ1か
ら加工プログラムがブロック毎に読出回路2を介して読
出され、プログラム呼出指令であるCALL指令,O指
令及び戻りコードであるRTSを選別する多重プログラ
ム指令選別回路3により多重プログラム指令PCが選別
され、メモリ書込切替回路4によりCALLとRTSに
基づいて親プログラム内のO指令PC1及び子プログラ
ム内のO指令PC2が子プログラムメモリ5及び孫プロ
グラムメモリ6に書込まれ記憶される。記憶されたO指
令PC1,PC2は多重プログラム一覧表表示回路7に
より子プログラムメモリ5と孫プログラムメモリ6より
読出されCRT表示装置8に一覧表PTBとして表示さ
れる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing an example of a numerical controller having a multiple program function of the present invention in correspondence with FIG. 5, and the same components are designated by the same reference numerals and the description thereof will be omitted.
A machining program is stored in the machining program memory 1, and the machining program is read from the machining program memory 1 for each block via the reading circuit 2 by an operator or the like instructing with an operation panel (not shown) such as a keyboard. The multiple program instruction selection circuit 3 for selecting the CALL instruction, the O instruction which is the program call instruction, and the RTS which is the return code is selected, and the multiple program instruction PC is selected by the memory write switching circuit 4 based on the CALL and RTS. The O command PC1 in the parent program and the O command PC2 in the child program are written and stored in the child program memory 5 and the grandchild program memory 6. The stored O commands PC1 and PC2 are read from the child program memory 5 and the grandchild program memory 6 by the multiple program list display circuit 7 and displayed on the CRT display device 8 as a list PTB.

【0008】次に、本発明装置の動作のフローを説明す
る前に、一般的な多重プログラムを用いた加工プログラ
ムの流れを、図2で示す加工プログラムの一例を用いて
説明する。加工プログラムはプログラム名O1000よ
り始まりM02で終了している。加工プログラムには子
プログラムを呼出す指令である‘CALLO1100’
及び‘CALL O1200’が含まれている。子プロ
グラムはプログラム名O1100及びO1200より始
まりRTSで終了している。さらに子プログラムO11
00には孫プログラムを呼出す指令である‘CALL
O1110’及び‘CALL O1120’が含まれて
いる。孫プログラムはプログラム名O1110及びO1
120より始まりRTSで終了している。
Before describing the operation flow of the apparatus of the present invention, the flow of a machining program using a general multiple program will be described with reference to an example of the machining program shown in FIG. The machining program starts with the program name O1000 and ends with M02. The machining program is a command to call a child program, 'CALLO1100'.
And'CALL O1200 '. The child program starts with program names O1100 and O1200 and ends with RTS. Further child program O11
00 is a command to call the grandchild program, 'CALL
O1110 'and'CALL O1120' are included. The grandchild programs are program names O1110 and O1.
It starts at 120 and ends at RTS.

【0009】プログラムは、図中に示す矢印の順に、O
1000より始まり‘CALL O1100’のブロッ
クまで進む(B1)。次にO1100より‘CALL
O1110’のブロックまで進み(B2)、次にO11
10よりRTSのブロックまで進み(B3)、‘CAL
L O1110’の次のブロックに戻り‘CALLO1
120’のブロックまで進む(B4)。次にO1120
よりRTSのブロックまで進み(B5)、‘CALL
O1120’の次のブロックに戻りRTSまで進む(B
6)。次に‘CALL O1100’の次のブロックに
戻り‘CALL O1200’のブロックまで進む(B
7)。次にO1200よりRTSのブロックまで進み
(B8)、‘CALL O1200’の次のブロックに
戻りM02まで進んで(B9)、動作を終了する。
The programs are written in the order of the arrows shown in FIG.
Start from 1000 and proceed to the block "CALL O1100" (B1). Then from O1100, 'CALL
Proceed to block O1110 '(B2), then O11
Proceed to block 10 of RTS from 10 (B3), 'CAL
Return to the block next to LO1110 'and call'CALLO1
Proceed to block 120 '(B4). Then O1120
Go further to the RTS block (B5), 'CALL
Return to the block next to O1120 'and proceed to RTS (B
6). Then return to the next block of'CALL O1100 'and proceed to the block of'CALL O1200' (B
7). Next, the process proceeds from O1200 to the RTS block (B8), returns to the next block of'CALL O1200 ', proceeds to M02 (B9), and ends the operation.

【0010】図3は本発明装置の動作例を示すフローチ
ャートであり、先ずオペレータ等がキーボード等の操作
盤で多重プログラム一覧表表示指令を入力したか否かを
確認し(ステップS1)、入力していない場合にはステ
ップS15へ進む。一方、判断ステップS1において多
重プログラム一覧表表示指令を入力した場合には、図1
の動作順に従って読出回路2は加工プログラムメモリ1
より加工プログラムを1ブロック読出し(ステップS
2)、多重プログラム指令選別回路3でこのブロックの
中に多重プログラム指令が有るか否かを確認し(ステッ
プS3)、多重プログラム指令がなければステップS1
4へ進む。
FIG. 3 is a flow chart showing an example of the operation of the apparatus of the present invention. First, it is confirmed whether or not an operator or the like has input a multiple program list display command using an operation panel such as a keyboard (step S1), and then input. If not, the process proceeds to step S15. On the other hand, when the multiple program list display command is input in the judgment step S1,
In accordance with the operation order of
Read one block of machining program (step S
2) The multi-program command selection circuit 3 confirms whether there is a multi-program command in this block (step S3). If there is no multi-program command, step S1.
Go to 4.

【0011】一方、判断ステップS3において多重プロ
グラム指令が有れば、多重プログラム指令選別回路3は
多重プログラム指令がCALLか否かを確認し(ステッ
プS4)、CALLであればメモリ書込カウンタ変数
“COUNT”を+1し(ステップS5)、ステップS
14に進む。一方、判断ステップS4において否であれ
ば、多重プログラム指令選別回路3は多重プログラム指
令がRTSか否かを確認し(ステップS6)、RTSで
あればメモリ書込カウンタ変数“COUNT”を−1し
(ステップS7)、ステップS14に進む。一方、判断
ステップS6において否であれば、多重プログラム指令
選別回路3はメモリ書込カウンタ変数“COUNT”の
内容が0か否かを確認し(ステップS8)、0であれば
O指令を親プログラム名として子プログラムメモリ5の
親プログラム名エリアに書込み(ステップS9)、ステ
ップS14に進む。
On the other hand, if there is a multiple program command in the judgment step S3, the multiple program command selection circuit 3 checks whether the multiple program command is CALL (step S4). If it is CALL, the memory write counter variable " COUNT "is incremented by 1 (step S5), and step S
Proceed to 14. On the other hand, if the result is NO in the judgment step S4, the multiple program command selection circuit 3 confirms whether or not the multiple program command is RTS (step S6), and if it is RTS, the memory write counter variable "COUNT" is decremented by one. (Step S7), the process proceeds to step S14. On the other hand, if the result is NO in the judgment step S6, the multiple program command selection circuit 3 confirms whether or not the content of the memory write counter variable "COUNT" is 0 (step S8). The name is written in the parent program name area of the child program memory 5 (step S9), and the process proceeds to step S14.

【0012】一方、判断ステップS8において否であれ
ば、多重プログラム指令選別回路3はメモリ書込カウン
タ変数“COUNT”の内容が1か否かを確認し(ステ
ップS10)、1であればO指令を子プログラム名とし
て子プログラムメモリ5に書込み(ステップS11)、
ステップS14に進む。一方、判断ステップS10にお
いて否であれば、多重プログラム指令選別回路3はO指
令を孫プログラム名として孫プログラムメモリ6に書込
み(ステップS12)、子プログラムメモリ5の最後に
書込まれているO指令を呼出先のプログラム名として孫
プログラムメモリ6に書込む(ステップS13)。次
に、多重プログラム指令選別回路3は加工プログラムの
全ブロックの読出しを終了したか否かを確認し(ステッ
プS14)、終了していない場合にはステップS2へリ
ターンして上述の動作を繰返す。
On the other hand, if the decision step S8 is negative, the multiple program command selection circuit 3 confirms whether or not the content of the memory write counter variable "COUNT" is 1 (step S10), and if it is 1, the O command is issued. Is written in the child program memory 5 as a child program name (step S11),
It proceeds to step S14. On the other hand, if the result is NO in the judgment step S10, the multiple program command selection circuit 3 writes the O command as the grandchild program name in the grandchild program memory 6 (step S12), and the O command written at the end of the child program memory 5 is written. Is written in the grandchild program memory 6 as the callee program name (step S13). Next, the multiple program command selection circuit 3 confirms whether or not the reading of all blocks of the machining program has been completed (step S14), and if not completed, returns to step S2 and repeats the above operation.

【0013】一方、判断ステップS14において読出し
が終了した場合には多重プログラム一覧表表示回路7が
子プログラムメモリ5と孫プログラムメモリ6の内容を
読出し(ステップS15)、ツリー状のプログラム名一
覧表としてCRT表示装置8に表示する(ステップS1
6)。ここで、図4はCRT表示装置に表示された多重
プログラム一覧表の一例を示す図である。尚、本実施例
においては孫プログラムメモリを1つの場合について説
明したが、さらに多重プログラムの階層が増す場合には
孫プログラムメモリを増してゆけばよい。
On the other hand, when the reading is completed in the judgment step S14, the multiple program list display circuit 7 reads the contents of the child program memory 5 and the grandchild program memory 6 (step S15) to form a tree-like program name list. Display on the CRT display device 8 (step S1)
6). Here, FIG. 4 is a diagram showing an example of a multiple program list displayed on the CRT display device. In this embodiment, the case of one grandchild program memory has been described, but if the hierarchies of multiple programs are further increased, the grandchild program memory may be increased.

【0014】[0014]

【発明の効果】以上のように本発明の多重プログラム機
能を有する数値制御装置によれば、多重プログラムの各
プログラム名をツリー状に一覧表として表示することが
できるので、多重プログラムの内容確認や階層の確認が
容易になり、確認時間を短縮することができる。
As described above, according to the numerical controller having the multiple program function of the present invention, since each program name of the multiple programs can be displayed as a list in a tree form, the contents of the multiple programs can be confirmed and The confirmation of the hierarchy becomes easy and the confirmation time can be shortened.

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

【図1】本発明の多重プログラム機能を有する数値制御
装置の一例を示すブロック図である。
FIG. 1 is a block diagram showing an example of a numerical control device having a multiple program function of the present invention.

【図2】一般的な多重プログラム機能を用いた加工プロ
グラムの一例を示す図である。
FIG. 2 is a diagram showing an example of a machining program using a general multi-program function.

【図3】本発明装置の動作例を示すフローチャートであ
る。
FIG. 3 is a flowchart showing an operation example of the device of the present invention.

【図4】本発明装置における多重プログラム一覧表の表
示画面の一例を示す図である。
FIG. 4 is a diagram showing an example of a display screen of a multiple program list in the device of the present invention.

【図5】従来の多重プログラム機能を有する数値制御装
置の一例を示すブロック図である。
FIG. 5 is a block diagram showing an example of a conventional numerical control device having a multiple program function.

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

3 多重プログラム指令選別回路 4 メモリ書込切替回路 5 子プログラムメモリ 6 孫プログラムメモリ 7 多重プログラム一覧表表示回路 3 multiple program command selection circuit 4 memory write switching circuit 5 child program memory 6 grandchild program memory 7 multiple program list display circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 加工プログラムの子プログラムを多重に
呼出すことができる多重プログラム機能を有する数値制
御装置において、加工プログラムを解析して、前記加工
プログラムから呼出される子プログラム名と呼出元の加
工プログラム名を記憶する第一の記憶手段と、前記子プ
ログラムから呼出される孫プログラム名と呼出元の子プ
ログラム名を記憶する第二の記憶手段と、前記第一の記
憶手段と第二の記憶手段で記憶した内容に基づき加工プ
ログラム名、子プログラム名、孫プログラム名の順にツ
リー状に一覧表として表示する表示手段とを備えたこと
を特徴とする多重プログラム機能を有する数値制御装
置。
1. A numerical controller having a multi-program function capable of calling child programs of a machining program multiple times, analyzing the machining program, and calling the child program name and the machining program of the calling program from the machining program. A first storage means for storing a name, a second storage means for storing a grandchild program name called from the child program and a child program name of a calling source, the first storage means and the second storage means A numerical control device having a multiple program function, comprising display means for displaying a machining program name, a child program name, and a grandchild program name in the order of a tree as a list based on the contents stored in 1.
【請求項2】 前記第二の記憶手段を加工プログラムの
多重度に合わせ複数備えた請求項1に記載の多重プログ
ラム機能を有する数値制御装置。
2. A numerical controller having a multi-program function according to claim 1, wherein a plurality of the second storage means are provided in accordance with the multiplicity of the machining program.
JP3304015A 1991-10-23 1991-10-23 Numerical controller with multiple program functions Expired - Fee Related JP2993538B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3304015A JP2993538B2 (en) 1991-10-23 1991-10-23 Numerical controller with multiple program functions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3304015A JP2993538B2 (en) 1991-10-23 1991-10-23 Numerical controller with multiple program functions

Publications (2)

Publication Number Publication Date
JPH05113818A true JPH05113818A (en) 1993-05-07
JP2993538B2 JP2993538B2 (en) 1999-12-20

Family

ID=17928044

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3304015A Expired - Fee Related JP2993538B2 (en) 1991-10-23 1991-10-23 Numerical controller with multiple program functions

Country Status (1)

Country Link
JP (1) JP2993538B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003071368A1 (en) * 2002-02-19 2003-08-28 Kabushiki Kaisha Yaskawa Denki Robot control device
EP1909154A2 (en) * 2006-10-06 2008-04-09 Fanuc Ltd Controller for machine tool
DE102019001129A1 (en) 2018-03-02 2019-09-05 Fanuc Corporation Numerical control device
US11442723B2 (en) 2019-10-18 2022-09-13 Fanuc Corporation Programing support device, programing support system, and programing support method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003071368A1 (en) * 2002-02-19 2003-08-28 Kabushiki Kaisha Yaskawa Denki Robot control device
US7515993B2 (en) 2002-02-19 2009-04-07 Kabushiki Kaisha Yaskawa Denki Robot control apparatus
EP1909154A2 (en) * 2006-10-06 2008-04-09 Fanuc Ltd Controller for machine tool
EP1909154A3 (en) * 2006-10-06 2008-10-29 Fanuc Ltd Controller for machine tool
DE102019001129A1 (en) 2018-03-02 2019-09-05 Fanuc Corporation Numerical control device
US20190271968A1 (en) * 2018-03-02 2019-09-05 Fanuc Corporation Numerical controller
US11340586B2 (en) 2018-03-02 2022-05-24 Fanuc Corporation Numerical controller
US11442723B2 (en) 2019-10-18 2022-09-13 Fanuc Corporation Programing support device, programing support system, and programing support method

Also Published As

Publication number Publication date
JP2993538B2 (en) 1999-12-20

Similar Documents

Publication Publication Date Title
US7515993B2 (en) Robot control apparatus
US5041967A (en) Methods and apparatus for dynamic menu generation in a menu driven computer system
JP2004303217A (en) Displaying/editing device, method for displaying, and program product
JPH05113818A (en) Numerical controller with multi-program function
JPH05313969A (en) File list display method
JPH02275539A (en) Debugging system
JP2575664B2 (en) Screen control method
US5148531A (en) System for executing a conditional statement without reading program data part that does not satisfy the conditional clause
JPH0119170B2 (en)
JPH0833834B2 (en) Display panel generation method
JPH11250037A (en) Content editing device and recording medium
JP3083552B2 (en) Hierarchy editing processor
US5241623A (en) Method and system for delineation of structure and linkages between knowledge base modules
JPH04230517A (en) Hierarchical menu processor
JPS61131124A (en) Conversation input processing system
JP2518157B2 (en) Method and device for generating revision history of program
JPH0736652A (en) Information display device
JPH06149776A (en) Simulation device based upon petri net
JPH09160611A (en) Programmable controller
JPH01236309A (en) Display device for numerical controller
JPH06222914A (en) Electronic equipment
JPH08190638A (en) Diagram editor
JPH04127268A (en) Document editor
JPH03116223A (en) Screen control system for input of variable length data
JPH0371328A (en) Sort key information defining/processing system

Legal Events

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