JP2993538B2 - Numerical controller with multiple program functions - Google Patents

Numerical controller with multiple program functions

Info

Publication number
JP2993538B2
JP2993538B2 JP3304015A JP30401591A JP2993538B2 JP 2993538 B2 JP2993538 B2 JP 2993538B2 JP 3304015 A JP3304015 A JP 3304015A JP 30401591 A JP30401591 A JP 30401591A JP 2993538 B2 JP2993538 B2 JP 2993538B2
Authority
JP
Japan
Prior art keywords
program
multiplex
child
name
machining
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.)
Expired - Fee Related
Application number
JP3304015A
Other languages
Japanese (ja)
Other versions
JPH05113818A (en
Inventor
祐二 近藤
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.)
OOKUMA KK
Original Assignee
OOKUMA KK
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 OOKUMA KK filed Critical OOKUMA KK
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

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 multi-program function of a machining program.

【0002】[0002]

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

【0003】[0003]

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

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

【0005】[0005]

【課題を解決するための手段】本発明は、加工プログラ
ムの多重プログラム機能を有する数値制御装置に関する
ものであり、本発明の上記目的は、加工プログラムを解
析して、前記加工プログラムから呼出される子プログラ
ム名と呼出元の加工プログラム名を記憶する第一の記憶
手段と、前記子プログラムから呼出される孫プログラム
名と呼出元の子プログラム名を記憶する第二の記憶手段
と、前記第一の記憶手段と第二の記憶手段で記憶した内
容に基づき加工プログラム名、子プログラム名、孫プロ
グラム名の順にツリー状に一覧表として表示する表示手
段とを具備することによって達成される。
SUMMARY OF THE INVENTION The present invention relates to a numerical control device having a function of multiplexing a machining program, and an object of the present invention is to analyze a 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 child program name of a calling source; And a display means for displaying a machining program name, a child program name, and a grandchild program name in the order of a tree based on the contents stored in the second storage means.

【0006】[0006]

【作用】本発明の多重プログラム機能を有する数値制御
装置によれば、多重プログラムの各プログラム名をツリ
ー状に一覧表として表示することができるので、多重プ
ログラムの階層構造が一目でわかるようになる。
According to the numerical controller having a multi-program function of the present invention, each program name of the multi-program can be displayed in a tree-like list, so that the hierarchical structure of the multi-program can be understood 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として表示さ
れる。
FIG. 1 is a block diagram showing an example of a numerical control apparatus having a multiplex program function according to the present invention in correspondence with FIG. 5, and the same components are denoted by the same reference numerals and description thereof is omitted.
A machining program is stored in the machining program memory 1. When an operator or the like instructs an operation panel (not shown) such as a keyboard, the machining program is read from the machining program memory 1 for each block via the readout circuit 2. A multiplexed program command PC is selected by a multiplexed program command selecting circuit 3 which reads out and selects a CALL command and an O command which are program call commands and an RTS which is a return code. 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 multiplex program list display circuit 7 and displayed on the CRT display 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で終了している。
Next, before describing the flow of the operation of the apparatus of the present invention, the flow of a machining program using a general multiplex program will be described using an example of a machining program shown in FIG. The machining program starts with the program name O1000 and ends with M02. The command “CALLO1100” that calls the child program is included in the machining program.
And 'CALL O1200'. The child programs start with program names O1100 and O1200 and end with RTS. Further child program O11
00 is a command to call the grandchild program, 'CALL
O1110 'and' CALL O1120 '. The grandchild programs are program names O1110 and O1
It starts from 120 and ends with 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 program is executed in the order of the arrows shown in FIG.
It starts from 1000 and proceeds to the block of 'CALL O1100' (B1). Next, from O1100, 'CALL
Proceed to the block of O1110 '(B2) and then O11
From 10 advance to the block of RTS (B3), 'CAL
Return to the next block of “LO1110”
The process proceeds to the block 120 '(B4). Next, O1120
Continue to the RTS block (B5), and call 'CALL
Return to the block next to O1120 'and proceed to RTS (B
6). Next, the process returns to the next block of 'CALL O1100' and proceeds to the block of 'CALL O1200' (B
7). Next, the process proceeds from O1200 to the block of RTS (B8), returns to the block next to '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 flowchart showing an operation example of the apparatus of the present invention. First, it is checked whether or not an operator or the like has input a multiplex program list display command from an operation panel such as a keyboard (step S1). If not, the process proceeds to step S15. On the other hand, when the multi-program list display command is input in the determination step S1,
In accordance with the operation order, the readout circuit 2
1 block of the machining program is read out (step S
2) The multiplex program command selection circuit 3 checks whether there is a multiplex program command in this block (step S3), and if there is no multiplex program command, step S1.
Proceed 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 multiplex program command in the judgment step S3, the multiplex program command selection circuit 3 checks whether or not the multiplex program command is CALL (step S4). COUNT "is incremented by 1 (step S5), and step S5 is performed.
Proceed to 14. On the other hand, if the determination in step S4 is NO, the multiplex program command selection circuit 3 checks whether the multiplex program command is RTS (step S6). If the RTS is RTS, the memory write counter variable "COUNT" is decremented by -1. (Step S7), proceed to step S14. On the other hand, if the determination in step S6 is NO, the multiplex program command selection circuit 3 checks whether 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 judgment in step S8 is NO, the multiplex program command selection circuit 3 checks whether or not the content of the memory write counter variable "COUNT" is 1 (step S10). Is written into the child program memory 5 as a child program name (step S11),
Proceed to step S14. On the other hand, if 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 last in the child program memory 5 Is written into the grandchild program memory 6 as the program name of the call destination (step S13). Next, the multiplex program command selection circuit 3 checks whether 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 multiplex program list display circuit 7 reads the contents of the child program memory 5 and the grandchild program memory 6 (step S15), and creates 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 the multiplex program list displayed on the CRT display device. In the present embodiment, a case has been described in which one grandchild program memory is provided. However, if the hierarchy of a multiplex program further increases, the grandchild program memory may be increased.

【0014】[0014]

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

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

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

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

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

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

【図5】従来の多重プログラム機能を有する数値制御装
置の一例を示すブロック図である。
FIG. 5 is a block diagram showing an example of a conventional numerical controller 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)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 加工プログラムの子プログラムを多重に
呼出すことができる多重プログラム機能を有する数値制
御装置において、加工プログラムを解析して、前記加工
プログラムから呼出される子プログラム名と呼出元の加
工プログラム名を記憶する第一の記憶手段と、前記子プ
ログラムから呼出される孫プログラム名と呼出元の子プ
ログラム名を記憶する第二の記憶手段と、前記第一の記
憶手段と第二の記憶手段で記憶した内容に基づき加工プ
ログラム名、子プログラム名、孫プログラム名の順にツ
リー状に一覧表として表示する表示手段とを備えたこと
を特徴とする多重プログラム機能を有する数値制御装
置。
In a numerical control device having a multiplex program function capable of calling a child program of a machining program in a multiplex manner, a machining program is analyzed, and a child program name called from the machining program and a machining program of a calling source are analyzed. First storage means for storing the name of the child program, second storage means for storing the name of the grandchild program called from the child program and the name of the child program of the caller, the first storage means and the second storage means And a display means for displaying a list in a tree form in the order of a machining program name, a child program name, and a grandchild program name based on the contents stored in (1).
【請求項2】 前記第二の記憶手段を加工プログラムの
多重度に合わせ複数備えた請求項1に記載の多重プログ
ラム機能を有する数値制御装置。
2. The numerical control device having a multiplex program function according to claim 1, wherein a plurality of said second storage means are provided according to the multiplicity of a 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 JPH05113818A (en) 1993-05-07
JP2993538B2 true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003241807A (en) * 2002-02-19 2003-08-29 Yaskawa Electric Corp Robot control unit
JP4247264B2 (en) * 2006-10-06 2009-04-02 ファナック株式会社 Machine tool controller
JP6708678B2 (en) * 2018-03-02 2020-06-10 ファナック株式会社 Numerical control device
JP7414461B2 (en) 2019-10-18 2024-01-16 ファナック株式会社 Program creation support device, program creation support system, and program creation support method

Also Published As

Publication number Publication date
JPH05113818A (en) 1993-05-07

Similar Documents

Publication Publication Date Title
US7515993B2 (en) Robot control apparatus
JP2004303217A (en) Displaying/editing device, method for displaying, and program product
JP2993538B2 (en) Numerical controller with multiple program functions
US5148531A (en) System for executing a conditional statement without reading program data part that does not satisfy the conditional clause
JPS63288357A (en) Data editing system
JPH06332684A (en) Program correction supporting device
JPH0750480B2 (en) Text data editing device
JPS6386021A (en) Screen control method
JPH0736652A (en) Information display device
JP2518157B2 (en) Method and device for generating revision history of program
JPH0221326A (en) Data sorting system
JPS61131124A (en) Conversation input processing system
JPH05189212A (en) Linking method
JPH07319698A (en) Program execution device
JPH0449421A (en) File editing system
JPH01236309A (en) Display device for numerical controller
JPH0836569A (en) File edition processor
JPH05282134A (en) Divided load module formation system
JPH0344328B2 (en)
JPH04127268A (en) Document editor
KR970067302A (en) How to schedule reservation recording in VISIR system
JPH03204722A (en) Specification review supporting method
JPH02199540A (en) Automatic formation system for calling sentence
JPH03288961A (en) Document data processor
JPH021017A (en) Program coupling control system

Legal Events

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