JPH0863218A - Program constitution display system - Google Patents

Program constitution display system

Info

Publication number
JPH0863218A
JPH0863218A JP19508894A JP19508894A JPH0863218A JP H0863218 A JPH0863218 A JP H0863218A JP 19508894 A JP19508894 A JP 19508894A JP 19508894 A JP19508894 A JP 19508894A JP H0863218 A JPH0863218 A JP H0863218A
Authority
JP
Japan
Prior art keywords
program
code
alarm
key
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
JP19508894A
Other languages
Japanese (ja)
Inventor
Toshiaki Otsuki
俊明 大槻
Toshiro Watanabe
敏朗 渡邉
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP19508894A priority Critical patent/JPH0863218A/en
Publication of JPH0863218A publication Critical patent/JPH0863218A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE: To grasp the entire picture of a machining program consisting of plural programs and to check restriction violations of the program. CONSTITUTION: A call code retrieval means 2 performs retrieval to check whether or not there is a call code in a main program 1 of the machining program, a program retrieval means 3 performs retrieval to check whether or not there is a program called by the call code, and code content retrieval means 4 checks the code and an error in its use; and an alarm content retrieval means 5 retrieves the alarm contents of the error found by the retrieval or check by the program retrieval means 3 or the code content retrieval means 4 and the program structure or alarm contents are displayed by a display means 6.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は数値制御装置のプログラ
ム構成表示方式に関し、特に複数のプログラムの呼び出
し関係を表示しプログラムの呼び出しの制約違反をチェ
ックする機能を有する数値制御装置のプログラム構成表
示方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program configuration display system for a numerical control device, and more particularly to a program configuration display system for a numerical control device having a function of displaying a calling relationship between a plurality of programs and checking a constraint violation of program calling. Regarding

【0002】[0002]

【従来の技術】数値制御装置で使用される、ワークを切
削するための加工プログラムにおいては、メインプログ
ラムの中で、普通のプログラムのコール文に相当する、
MSTBコードによるサブプログラム呼び出しや、Gコ
ードやMコードなどによるマクロプログラム呼び出しが
行われている。また、メインプログラムの中で呼び出さ
れたサブプログラムの中から、さらにサブプログラムを
呼び出すという、多重に呼び出す場合もある。
2. Description of the Related Art In a machining program for cutting a work, which is used in a numerical controller, it corresponds to a call statement of an ordinary program in a main program.
Subprogram calls by MSTB code and macro program calls by G code, M code, etc. are performed. Further, there is a case where multiple sub-programs are called from among the sub-programs called in the main program.

【0003】[0003]

【発明が解決しようとする課題】加工プログラムは、呼
び出されるサブプログラム及びマクロプログラムの数が
多いほど、そして呼び出しが多重になるほど、プログラ
ムが大きく、また複雑になっていき、加工プログラムの
全貌がつかみにくくなっていく。
A machining program becomes larger and more complicated as the number of called subprograms and macro programs is increased, and as the number of calls becomes multiple, the machining program becomes larger and more complicated. It gets harder.

【0004】また、呼び出しコードの誤使用によりサブ
プログラムが呼び出しされなかったり、呼び出す先のプ
ログラムがなくてアラームになったり、あるいは呼び出
すプログラムを間違えたりなど、実際にプログラムを運
転するまで、その誤りに気付かない場合がある、という
問題点があった。
In addition, the subprogram is not called due to the misuse of the calling code, an alarm occurs because there is no program to be called, or the called program is wrong. There was a problem that it might not be noticed.

【0005】本発明はこのような点に鑑みてなされたも
のであり、実際に加工を行う前に、加工プログラムの全
貌をつかめ、かつ、プログラムの制約違反をチェックす
ることができる機能を備えた数値制御装置のプログラム
構成表示方式を提供することを目的とする。
The present invention has been made in view of the above points, and has a function of grasping the whole picture of a machining program and checking the constraint violation of the program before actually machining. It is an object to provide a program configuration display method for a numerical control device.

【0006】[0006]

【課題を解決するための手段】本発明では上記課題を解
決するために、複数のプログラムの呼び出し関係を表示
しプログラムの呼び出しの制約違反をチェックする機能
を持った数値制御装置のプログラム構成表示方式におい
て、指定されたプログラムを検索して中に呼び出しコー
ドがあるかどうかを調べる呼び出しコード検索手段と、
検索された呼び出しコードによって呼ばれるプログラム
が内部又は外部メモリにあるかどうかを調べるプログラ
ム検索手段と、前記呼び出しコードの内容を調べるコー
ド内容検索手段と、前記プログラム検索手段及び前記コ
ード内容検索手段にて正しく検索されなかったときに誤
りの内容を検索するアラーム内容検索手段と、前記指定
されたプログラムとこのプログラムから呼ばれるプログ
ラムとの構成及び前記アラーム内容検索手段によって検
索された誤りの内容を表示する表示手段と、を備えたこ
とを特徴とする数値制御装置のプログラム構成表示方式
が提供される。
In order to solve the above problems, the present invention provides a program configuration display system for a numerical control device having a function of displaying a calling relationship between a plurality of programs and checking a constraint violation of calling programs. In, call code search means to search the specified program to see if there is a call code,
Program search means for checking whether the program called by the retrieved call code exists in the internal or external memory, code content search means for examining the content of the call code, and the program search means and the code content search means Alarm content retrieval means for retrieving erroneous content when not retrieved, display means for displaying the configuration of the designated program and a program called from this program, and the erroneous content retrieved by the alarm content retrieval means And a program configuration display method for a numerical control device.

【0007】[0007]

【作用】上述の手段によれば、呼び出しコード検索手段
が指定されたプログラムの中に呼び出しコードがあるか
どうかを検索し、プログラム検索手段が呼び出しコード
によって呼ばれるプログラムが存在するかどうかを検索
し、コード内容検索手段がコード及びコードの使用法に
誤りがないかどうかを検索し、アラーム内容検索手段が
プログラム検索手段又はコード内容検索手段による検索
で誤りを発見した場合のアラーム内容を検索し、表示手
段がプログラム構造又はアラーム内容を表示する。
According to the above-mentioned means, the calling code searching means searches the designated program for the calling code, and the program searching means searches for the program called by the calling code. The code content search means searches the code and the usage of the code for errors, and the alarm content search means searches and displays the alarm content when an error is found by the program search means or the code content search means. The means displays the program structure or alarm content.

【0008】[0008]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図1は本発明の数値制御装置のプログラム構成
表示方式を示す図である。この図において、プログラム
構成表示の対象となるプログラム1がある。このプログ
ラム1は加工プログラムのメインプログラムを構成する
もので、複数あるプログラムの中から指定される。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing a program configuration display system of a numerical controller according to the present invention. In this figure, there is a program 1 which is a program configuration display target. This program 1 constitutes the main program of the machining program and is designated from a plurality of programs.

【0009】数値制御装置のプログラム構成表示方式
は、呼び出しコード検索手段2と、プログラム検索手段
3と、コード内容検索手段4と、アラーム内容検索手段
5と、表示手段6とで構成されている。呼び出しコード
検索手段2は指定されたプログラム1を検索して、その
プログラム1の中に呼び出しコードがあるかどうかを検
索する。プログラム検索手段3はコード検索手段2によ
って検索された呼び出しコードによって呼ばれるプログ
ラムがあるかどうかを調べるもので、内部又は外部のメ
モリ7内にあるプログラムを検索する。ここで、呼び出
しコードによって呼ばれるプログラムがメモリ7内に存
在しなければ、アラームが出される。コード内容検索手
段4は呼び出しコードの使い方に誤りがないかどうかを
検索する。ここで、呼び出しコードの使い方に誤りがあ
れば、アラームが出される。アラーム内容検索手段5は
プログラム検索手段3及びコード内容検索手段4にて出
されたアラームから誤りの内容を検索する。表示手段6
は指定されたプログラム1とこのプログラム1から呼ば
れるプログラムとの構成及びアラーム内容検索手段5に
よって検索された誤りの内容を表示する。
The program configuration display system of the numerical controller comprises a calling code retrieval means 2, a program retrieval means 3, a code content retrieval means 4, an alarm content retrieval means 5 and a display means 6. The calling code search means 2 searches the designated program 1 and searches the program 1 for a calling code. The program search means 3 checks whether or not there is a program called by the calling code searched by the code search means 2, and searches for a program in the internal or external memory 7. Here, if the program called by the calling code does not exist in the memory 7, an alarm is issued. The code content retrieval means 4 retrieves whether the calling code is used correctly. Here, if the calling code is used incorrectly, an alarm is issued. The alarm content retrieval means 5 retrieves the error content from the alarms issued by the program retrieval means 3 and the code content retrieval means 4. Display means 6
Displays the configuration of the designated program 1 and the program called from this program 1 and the content of the error retrieved by the alarm content retrieval means 5.

【0010】図2はプログラムの内容を検索する処理を
示すフローチャートである。プログラム構成表示方式に
よりプログラムの内容を検索するときには、まず、プロ
グラムの中の呼び出しコードを検索する(ステップS
1)。次いで、ステップS1での検索の結果、プログラ
ムの中に呼び出しコードがあるかどうかが判断される
(ステップS2)。ここで、検索されたプログラムに呼
び出しコードがなければ、直接表示処理へ進む。
FIG. 2 is a flow chart showing the processing for searching the contents of the program. When searching the contents of a program by the program structure display method, first, the calling code in the program is searched (step S
1). Next, as a result of the search in step S1, it is determined whether or not there is a calling code in the program (step S2). If there is no call code in the retrieved program, the process directly goes to the display process.

【0011】ステップS2において呼び出しコードがあ
ると判断されれば、コードと呼び出し先のプログラムを
検索する(ステップS3)。呼び出し先のプログラムは
数値制御装置の内部メモリ(RAM)だけではなく、フ
ロッピーディスク、データカセットなどの外部メモリに
も置くことができるので、これらのメモリでも検索され
る。次いで、呼び出し先のプログラムがあるかどうかが
判断され(ステップS4)、内部又は外部メモリに呼び
出し先のプログラムが存在しなければ、アラーム内容の
検索が行われて(ステップS5)、表示処理へ進む。
If it is determined in step S2 that there is a calling code, the code and the called program are searched (step S3). Since the called program can be placed not only in the internal memory (RAM) of the numerical controller but also in the external memory such as a floppy disk or a data cassette, these programs are also searched. Then, it is judged whether or not there is a called program (step S4). If the called program does not exist in the internal or external memory, the alarm contents are searched (step S5) and the process proceeds to the display process. .

【0012】ステップS4の判断にて、呼び出し先のプ
ログラムがあれば、次に、コードの内容の検索が行われ
る(ステップS6)。内容の検索の結果、コードに誤り
がないかどうかが判断され(ステップS7)、コードに
誤りがあれば、アラーム内容の検索が行われて(ステッ
プS8)、表示処理へ進む。
If it is determined in step S4 that there is a called program, then the contents of the code are searched (step S6). As a result of the content search, it is determined whether or not there is an error in the code (step S7), and if there is an error in the code, the alarm content is searched (step S8), and the process proceeds to the display process.

【0013】ステップS7の判断にて、コードに誤りが
なければ、そのコードの使用法に誤りがないかどうかが
判断され(ステップS9)、コードの使用法に誤りがな
ければ、表示処理へ進み、コードの使用法に誤りがあれ
ば、アラーム内容の検索が行われて(ステップS1
0)、表示処理へ進む。
If there is no error in the code in the determination in step S7, it is determined whether there is any error in the usage of the code (step S9). If there is no error in the usage of the code, the process proceeds to the display process. If the usage of the code is incorrect, the alarm content is searched (step S1).
0), proceed to display processing.

【0014】図3はプログラム一覧画面の例を示す図で
ある。図示の画面は、内部メモリ及び外部メモリにプロ
グラムがある場合に、それらのプログラムが数値制御装
置のCRT/MDI(Cathode Ray Tube / Manual Data
Input)ユニットのCRT画面に、たとえば、番号順に
一覧表示されたものである。
FIG. 3 is a diagram showing an example of a program list screen. In the screen shown in the figure, when there are programs in the internal memory and the external memory, those programs are displayed on the CRT / MDI (Cathode Ray Tube / Manual Data) of the numerical controller.
Input) units are listed on the CRT screen in numerical order, for example.

【0015】図4はプログラム一覧表示時のソフトウェ
アキーの表示例を示す図である。プログラム一覧が表示
されているときのソフトウェアキー10には、最初、内
容キー11、一覧キー12、構成キー13及びファイル
キー14が表示されている。内容キー11は編集モード
又はメモリモードのときにプログラムの内容を表示させ
るのに使用される。一覧キー12はプログラム一覧を表
示させるのに使用される。構成キー13は新たに追加し
たキーであって、プログラム構成表示方式を実施する時
に最初に使用される。ファイルキー14は外部のフロッ
ピーディスク又はカセットなどのメモリに入っているプ
ログラム、パラメータ、ピッチデータなどの内容を表示
させるのに使用される。
FIG. 4 is a view showing a display example of the software key when the program list is displayed. When the program list is displayed, the software key 10 initially displays a content key 11, a list key 12, a configuration key 13 and a file key 14. The content key 11 is used to display the content of the program in the edit mode or the memory mode. The list key 12 is used to display a program list. The configuration key 13 is a newly added key and is used first when implementing the program configuration display method. The file key 14 is used to display the contents of programs, parameters, pitch data, etc. stored in a memory such as an external floppy disk or cassette.

【0016】図5は構成キー選択時のソフトウェアキー
の表示例を示す図である。図4に示したソフトウェアキ
ー10の構成キー13が押されると、キーの機能が変更
される。すなわち、ソフトウェアキー10の機能は検索
キー15と、表示キー16と、編集キー17とに切り換
えられる。検索キー15は検索開始時に使用される。表
示キー16はプログラム構成又はアラームが起きたとき
のアラームメッセージを表示するのに使用される。編集
キー17はアラームがあった場合にその場で編集できる
ようにするためのもので、編集モードにあるときだけ使
用することができる。
FIG. 5 is a diagram showing a display example of the software key when the configuration key is selected. When the configuration key 13 of the software key 10 shown in FIG. 4 is pressed, the function of the key is changed. That is, the function of the software key 10 is switched to the search key 15, the display key 16, and the edit key 17. The search key 15 is used when starting the search. The display key 16 is used to display a program configuration or an alarm message when an alarm occurs. The edit key 17 is for editing on the spot when there is an alarm, and can be used only in the edit mode.

【0017】図6は検索キー選択時のソフトウェアキー
の表示例を示す図である。図5に示したソフトウェアキ
ー10の検索キー15が押されると、検索キー15がプ
ログラム番号(PROG#)キー18に変更され、表示
キー16は消される。プログラム構成を表示しようとす
るメインプログラムはこのプログラム番号キー18を押
して番号を入力することで選択される。たとえば、番号
「100」を入力することによってプログラム番号「0
100」のプログラムが選択される。次いで、図示しな
い実行キーが押されると、検索が開始されるとともに、
ソフトウェアキー10の機能は図4に示した機能に切り
換えられる。プログラムの編集についても、図5のソフ
トウェアキー10の編集キー17を押し、次に表示され
るプログラム番号キー18を押して番号を入力すること
によって編集対象のプログラムが選択される。
FIG. 6 is a diagram showing a display example of the software key when the search key is selected. When the search key 15 of the software key 10 shown in FIG. 5 is pressed, the search key 15 is changed to the program number (PROG #) key 18 and the display key 16 is erased. The main program whose program structure is to be displayed is selected by pressing the program number key 18 and inputting a number. For example, by entering the number “100”, the program number “0
The 100 "program is selected. Then, when an execution key (not shown) is pressed, the search is started and
The function of the software key 10 is switched to the function shown in FIG. For editing the program, the program to be edited is selected by pressing the edit key 17 of the software key 10 in FIG. 5 and then pressing the program number key 18 displayed next to input the number.

【0018】図7は表示キー選択時のソフトウェアキー
の表示例を示す図である。図4に示したソフトウェアキ
ー10の構成キー13に続いて、図5に示したソフトウ
ェアキー10の表示キー16が押されると、ソフトウェ
アキー10は構成図キー19、メッセージキー20及び
編集キー17の機能に切り換えられる。構成図キー19
はプログラム構成図を表示させ、メッセージキー20は
アラームが起きたときのアラームメッセージを表示する
のに使用される。編集キー17はアラームがあった場合
にその場で編集できるようにするためのキーである。
FIG. 7 is a view showing a display example of the software key when the display key is selected. When the display key 16 of the software key 10 shown in FIG. 5 is pressed after the configuration key 13 of the software key 10 shown in FIG. 4, the software key 10 becomes one of the configuration diagram key 19, the message key 20 and the edit key 17. Switch to function. Configuration key 19
Shows a program configuration diagram, and the message key 20 is used to display an alarm message when an alarm occurs. The edit key 17 is a key for enabling editing on the spot when there is an alarm.

【0019】図8はプログラム構成図の画面表示例を示
す図である。このプログラム構成図はソフトウェアキー
10の構成キー13、検索キー15を押し、プログラム
番号キー18でメインプログラムを選択したのち、構成
キー13、表示キー16及び図7に示したソフトウェア
キー10の構成図キー19が押されたときに表示され
る。
FIG. 8 is a diagram showing a screen display example of the program configuration diagram. In this program configuration diagram, after pressing the configuration key 13 and the search key 15 of the software key 10 and selecting the main program with the program number key 18, the configuration key 13, the display key 16 and the configuration diagram of the software key 10 shown in FIG. Displayed when the key 19 is pressed.

【0020】この表示例によれば、メインプログラムと
して選択されたプログラムの番号「0100」が表示位
置21に表示され、その下に、メインプログラムから呼
び出しされているサブプログラム又はマクロプログラム
がプログラム番号で階層表示されている。たとえば、図
示の例では、メインプログラムからは、プログラム番号
「0301」のプログラムが呼び出しされ、また、この
プログラムからプログラム番号「0302」のプログラ
ムが呼び出しされ、さらに、このプログラムからプログ
ラム番号「0303」のプログラムが呼び出しされると
いう、多重の呼び出しがなされていることがわかる。
According to this display example, the number "0100" of the program selected as the main program is displayed at the display position 21, and the sub program or macro program called from the main program is displayed below it by the program number. It is displayed hierarchically. For example, in the illustrated example, the program with the program number “0301” is called from the main program, the program with the program number “0302” is called from this program, and the program with the program number “0303” is called from the program. It can be seen that multiple calls are made that the program is called.

【0021】なお、プログラム構成図が1ページの画面
に納まりきらない場合には、CRT/MDIユニットに
おけるMDIキーの「PageUp/Down」キーを
使用して画面を切り換えることにより、すべてのプログ
ラム構成を表示させることができる。
When the program configuration diagram cannot fit on the screen of one page, all the program configurations can be changed by switching the screen using the "PageUp / Down" key of the MDI key in the CRT / MDI unit. Can be displayed.

【0022】図9はアラームが発生した場合のプログラ
ム構成図の画面表示例を示す図である。プログラムを検
索し、そのプログラムにアラーム要因が発見されると、
プログラム構成図を表示させたときに、画面右下に、プ
ログラムに何らかのアラーム要因があることを示す、
[ALM]の点滅表示が行われる。
FIG. 9 is a diagram showing a screen display example of a program configuration diagram when an alarm occurs. When a program is searched and an alarm factor is found in that program,
When the program configuration diagram is displayed, it is displayed in the lower right of the screen that the program has some cause of alarm.
The blinking display of [ALM] is performed.

【0023】図10はアラームメッセージの画面表示例
を示す図である。プログラム構成図を表示させたとき
に、画面に[ALM]の点滅表示があるときにも、ソフ
トウェアキー10は図7の表示の通りになっている。こ
こで、メッセージキー20が選択されると、アラームが
発生しているプログラム番号とアラームの内容とが表示
される。図示の例では、アラーム発生プログラムが、プ
ログラム番号「9002」のプログラムであり、アラー
ム発生要因としては、Mコードで呼ばれるサブプログラ
ムの中からMコードによるサブプログラムを呼んでいる
という、コードの使用法に誤りがあることを示してい
る。これは、Mコードによるサブプログラム呼び出しで
呼び出されたサブプログラムの中で、Mコードによるサ
ブプログラム呼び出しを指令しても、サブプログラムの
呼び出しが行われず、普通のMコードと同様に扱われる
ためである。
FIG. 10 is a diagram showing a screen display example of an alarm message. Even when the program configuration diagram is displayed, even if there is a blinking display of [ALM] on the screen, the software key 10 is as shown in FIG. Here, when the message key 20 is selected, the program number in which the alarm is generated and the content of the alarm are displayed. In the illustrated example, the alarm generation program is the program with the program number "9002", and the alarm generation factor is that the subprogram by the M code is called from the subprograms called by the M code. Is incorrect. This is because even if the subprogram called by the M code is instructed to call the subprogram by the M code, the subprogram is not called, and is treated in the same manner as ordinary M code. is there.

【0024】図11は本発明を実施する対話形数値制御
装置の構成を示すブロック図である。この図において、
プロセッサ31は読取り専用メモリ(ROM)32に格
納されたシステムプログラムに従って対話形数値制御装
置全体を制御する。ランダムアクセスメモリ(RAM)
33には各種のデータあるいは入出力信号が格納され
る。不揮発性メモリ34は図示されていないバッテリに
よってバックアップされており、電源切断後も保持すべ
きパラメータ、ピッチ誤差補正量、工具補正量などが格
納されている。
FIG. 11 is a block diagram showing the configuration of an interactive numerical control apparatus embodying the present invention. In this figure,
The processor 31 controls the entire interactive numerical controller according to a system program stored in a read only memory (ROM) 32. Random access memory (RAM)
Various data or input / output signals are stored in 33. The non-volatile memory 34 is backed up by a battery (not shown), and stores parameters, pitch error correction amount, tool correction amount, etc. that should be retained even after the power is turned off.

【0025】軸制御回路41はプロセッサ31から軸の
移動指令を受けて、軸の指令をサーボアンプ42に出力
する。サーボアンプ42はこの移動指令を受けて、工作
機械50のサーボモータを駆動する。プログラマブル・
マシン・コントローラ(PMC)43はNCプログラム
を実行する際に、T機能信号(工具選択指令)などを受
け取る。そして、これらの信号をシーケンス・プログラ
ムで処理して、動作指令として信号を出力し、工作機械
50を制御する。また、工作機械50から状態信号を受
けて、シーケンス処理を行なって、プロセッサ31へ必
要な入力信号を転送する。
The axis control circuit 41 receives an axis movement command from the processor 31, and outputs the axis command to the servo amplifier 42. The servo amplifier 42 receives the movement command and drives the servo motor of the machine tool 50. Programmable
The machine controller (PMC) 43 receives a T function signal (tool selection command) when executing the NC program. Then, these signals are processed by the sequence program, the signals are output as operation commands, and the machine tool 50 is controlled. It also receives a status signal from the machine tool 50, performs sequence processing, and transfers a necessary input signal to the processor 31.

【0026】なお、上記構成要素はいずれもバス35に
よって互いに結合されており、このバス35には、数値
制御用のCPUであるプロセッサ31とは別に、対話用
のプロセッサ61がバス36によって接続されている。
Note that all of the above components are connected to each other by a bus 35. To this bus 35, in addition to the processor 31 which is a CPU for numerical control, a processor 61 for dialogue is connected by a bus 36. ing.

【0027】プロセッサ61はバス67を有し、読取り
専用メモリ(ROM)62、ランダムアクセスメモリ
(RAM)63、不揮発性メモリ64、ビデオRAM
(VRAM)65及びグラフィック制御回路66が接続
されている。プロセッサ61は読取り専用メモリ62に
格納された対話処理用のプログラムを実行して、対話形
データの入力画面において、プログラム構成図、アラー
ムメッセージ、プログラム、パラメータなどをメニュー
形式で後述する表示装置73に表示する。ランダムアク
セスメモリ(RAM)63には、対話用の各種データな
どが格納される。不揮発性メモリ64は図示されていな
いバッテリによってバックアップされ、電源切断後も保
持すべきプログラムデータ及び加工プログラムなどが格
納される。ビデオRAM65はたとえば、不揮発性メモ
リ64にNC文として格納された上記加工プログラムに
基づき工作機械50の切削シミュレーションを行う際の
アニメーション表示のためのグラフィックデータが格納
される。グラフィック制御回路66はビデオRAM65
に格納されたグラフィックデータを表示用の信号に変換
して出力する。
The processor 61 has a bus 67, and has a read-only memory (ROM) 62, a random access memory (RAM) 63, a non-volatile memory 64, and a video RAM.
The (VRAM) 65 and the graphic control circuit 66 are connected. The processor 61 executes the interactive processing program stored in the read-only memory 62, and on the interactive data input screen, the program configuration diagram, alarm message, program, parameters, etc. are displayed in a menu format on a display device 73 described later. indicate. The random access memory (RAM) 63 stores various data for dialogue. The non-volatile memory 64 is backed up by a battery (not shown), and stores program data, machining programs, etc. that should be retained even after the power is turned off. The video RAM 65 stores, for example, graphic data for displaying an animation when a cutting simulation of the machine tool 50 is performed based on the machining program stored as an NC sentence in the non-volatile memory 64. The graphic control circuit 66 is a video RAM 65.
The graphic data stored in is converted into a signal for display and output.

【0028】また、オペレータとのヒューマンインタフ
ェースをとるCRT/MDIユニット70はバス35に
接続され、グラフィック制御回路71、切換器72、表
示装置73、キーボード74及びソフトウェアキー75
が設けられている。
Further, a CRT / MDI unit 70 which takes a human interface with an operator is connected to the bus 35, and has a graphic control circuit 71, a switch 72, a display device 73, a keyboard 74 and a software key 75.
Is provided.

【0029】グラフィック制御回路71はプロセッサ3
1などから出力されたディジタル信号を表示用の信号に
変換して出力する。切換器72はグラフィック制御回路
66又はグラフィック制御回路71から出力された表示
用の信号を切り換えて表示装置73に与える。キーボー
ド74はシンボリックキー、数値キーなどからなり、必
要な図形データ、NCデータをこれらのキーを使用して
入力する。ソフトウェアキー75はシステムプログラム
などによって機能が変化する指令キーであって、その機
能名称などは表示装置73の所定の画面位置に表示され
る。
The graphic control circuit 71 is the processor 3
The digital signal output from 1 or the like is converted into a display signal and output. The switch 72 switches the display signal output from the graphic control circuit 66 or the graphic control circuit 71 and supplies it to the display device 73. The keyboard 74 is made up of symbolic keys, numerical keys, etc., and necessary graphic data and NC data are input using these keys. The software key 75 is a command key whose function is changed by a system program or the like, and the function name or the like is displayed at a predetermined screen position of the display device 73.

【0030】さらに、バス35には入出力インタフェー
ス76が接続され、フロッピーディスク装置(FD
D)、カセット装置、プリンタ、あるいはPTR(紙テ
ープリーダ)などの外部機器との間で行われるプログラ
ム、パラメータ、NCデータなどのデータの入出力を制
御する。
Further, an input / output interface 76 is connected to the bus 35, and a floppy disk device (FD
D), input / output of data such as programs, parameters, NC data, etc. performed with an external device such as a cassette device, a printer, or a PTR (paper tape reader).

【0031】[0031]

【発明の効果】以上説明したように本発明によれば、メ
インプログラムとサブプログラム及びマクロプログラム
との構成、コードの使い方などをチェックでき、膨大で
複雑なプログラムでもその全貌を把握できる。その結
果、プログラムミスによる障害などを実際に運転してみ
る前に事前に回避することができ、保守性も向上する。
As described above, according to the present invention, it is possible to check the configurations of the main program, the sub-programs and the macro program, how to use the code, etc., and to grasp the whole picture of a huge and complicated program. As a result, a failure due to a program mistake can be avoided in advance before actually driving, and maintainability is also improved.

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

【図1】本発明の数値制御装置のプログラム構成表示方
式を示す図である。
FIG. 1 is a diagram showing a program configuration display system of a numerical controller according to the present invention.

【図2】プログラムの内容を検索する処理を示すフロー
チャートである。
FIG. 2 is a flowchart showing a process of searching the contents of a program.

【図3】プログラム一覧画面の例を示す図である。FIG. 3 is a diagram showing an example of a program list screen.

【図4】プログラム一覧表示時のソフトウェアキーの表
示例を示す図である。
FIG. 4 is a diagram showing a display example of software keys when displaying a program list.

【図5】構成キー選択時のソフトウェアキーの表示例を
示す図である。
FIG. 5 is a diagram showing a display example of software keys when a configuration key is selected.

【図6】検索キー選択時のソフトウェアキーの表示例を
示す図である。
FIG. 6 is a diagram showing a display example of software keys when a search key is selected.

【図7】表示キー選択時のソフトウェアキーの表示例を
示す図である。
FIG. 7 is a diagram showing a display example of software keys when a display key is selected.

【図8】プログラム構成図の画面表示例を示す図であ
る。
FIG. 8 is a diagram showing a screen display example of a program configuration diagram.

【図9】アラームが発生した場合のプログラム構成図の
画面表示例を示す図である。
FIG. 9 is a diagram showing a screen display example of a program configuration diagram when an alarm occurs.

【図10】アラームメッセージの画面表示例を示す図で
ある。
FIG. 10 is a diagram showing a screen display example of an alarm message.

【図11】本発明を実施する対話形数値制御装置の構成
を示すブロック図である。
FIG. 11 is a block diagram showing a configuration of an interactive numerical control device that implements the present invention.

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

1 プログラム 2 呼び出しコード検索手段 3 プログラム検索手段 4 コード内容検索手段 5 アラーム内容検索手段 6 表示手段 7 メモリ 1 Program 2 Call Code Search Means 3 Program Search Means 4 Code Content Search Means 5 Alarm Content Search Means 6 Display Means 7 Memory

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 複数のプログラムの呼び出し関係を表示
しプログラムの呼び出しの制約違反をチェックする機能
を持った数値制御装置のプログラム構成表示方式におい
て、 指定されたプログラムを検索して中に呼び出しコードが
あるかどうかを調べる呼び出しコード検索手段と、 検索された呼び出しコードによって呼ばれるプログラム
が内部又は外部メモリにあるかどうかを調べるプログラ
ム検索手段と、 前記呼び出しコードの内容を調べるコード内容検索手段
と、 前記プログラム検索手段及び前記コード内容検索手段に
て正しく検索されなかったときに誤りの内容を検索する
アラーム内容検索手段と、 前記指定されたプログラムとこのプログラムから呼ばれ
るプログラムとの構成及び前記アラーム内容検索手段に
よって検索された誤りの内容を表示する表示手段と、 を備えたことを特徴とする数値制御装置のプログラム構
成表示方式。
1. In a program configuration display method of a numerical control device having a function of displaying a calling relationship of a plurality of programs and checking a constraint violation of a calling of a program, a calling code is searched when a designated program is searched. A calling code search means for checking whether there is any, a program search means for checking whether the program called by the searched calling code exists in the internal or external memory, a code content search means for checking the contents of the calling code, and the program The alarm content search means for searching for error content when the search means and the code content search means do not search correctly, the configuration of the designated program and a program called from this program, and the alarm content search means Erroneous retrieved Program configuration display apparatus for a numerical control apparatus characterized by comprising display means for displaying the contents, the.
【請求項2】 前記指定されたプログラムは、加工プロ
グラムのメインプログラムであることを特徴とする請求
項1記載の数値制御装置のプログラム構成表示方式。
2. The program configuration display system of a numerical controller according to claim 1, wherein the designated program is a main program of a machining program.
【請求項3】 前記呼び出しコードによって呼ばれるプ
ログラムは、サブプログラムであることを特徴とする請
求項1記載の数値制御装置のプログラム構成表示方式。
3. The program configuration display system for a numerical controller according to claim 1, wherein the program called by the calling code is a subprogram.
【請求項4】 前記呼び出しコードによって呼ばれるプ
ログラムは、マクロプログラムであることを特徴とする
請求項1記載の数値制御装置のプログラム構成表示方
式。
4. The program configuration display system of a numerical controller according to claim 1, wherein the program called by the calling code is a macro program.
【請求項5】 前記コード内容検索手段は、コードに誤
りがないかどうかを調べる手段を有していることを特徴
とする請求項1記載の数値制御装置のプログラム構成表
示方式。
5. The program configuration display system for a numerical controller according to claim 1, wherein said code content retrieval means has means for checking whether or not there is an error in the code.
【請求項6】 前記コード内容検索手段は、コードの使
用法に誤りがないかどうかを調べる手段を有しているこ
とを特徴とする請求項1記載の数値制御装置のプログラ
ム構成表示方式。
6. The program configuration display system for a numerical controller according to claim 1, wherein said code content searching means has means for checking whether the usage of the code is correct.
【請求項7】 前記アラーム内容検索手段は、アラーム
要因があると、アラームの存在を前記表示手段に表示さ
せる手段を有していることを特徴とする請求項1記載の
数値制御装置のプログラム構成表示方式。
7. The program configuration of the numerical controller according to claim 1, wherein the alarm content search means has means for displaying the presence of an alarm on the display means when there is an alarm factor. Display method.
【請求項8】 前記アラーム内容検索手段は、前記表示
手段にアラームの存在を表示させているとき、アラーム
発生プログラム及びアラーム発生要因を前記表示手段に
表示させる手段を有していることを特徴とする請求項1
記載の数値制御装置のプログラム構成表示方式。
8. The alarm content retrieval means has means for displaying an alarm generation program and an alarm generation factor on the display means when the presence of an alarm is displayed on the display means. Claim 1
The program configuration display method of the described numerical control device.
JP19508894A 1994-08-19 1994-08-19 Program constitution display system Pending JPH0863218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19508894A JPH0863218A (en) 1994-08-19 1994-08-19 Program constitution display system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19508894A JPH0863218A (en) 1994-08-19 1994-08-19 Program constitution display system

Publications (1)

Publication Number Publication Date
JPH0863218A true JPH0863218A (en) 1996-03-08

Family

ID=16335344

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19508894A Pending JPH0863218A (en) 1994-08-19 1994-08-19 Program constitution display system

Country Status (1)

Country Link
JP (1) JPH0863218A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005122597A (en) * 2003-10-20 2005-05-12 Mori Seiki Co Ltd Display device of nc machine tool
DE102019001129A1 (en) 2018-03-02 2019-09-05 Fanuc Corporation Numerical control device
JP2020181311A (en) * 2019-04-24 2020-11-05 ファナック株式会社 Numerical control system for industrial machine
JP2021068005A (en) * 2019-10-18 2021-04-30 ファナック株式会社 Programming support device, programming support system, and programming support method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005122597A (en) * 2003-10-20 2005-05-12 Mori Seiki Co Ltd Display device of nc machine tool
DE102019001129A1 (en) 2018-03-02 2019-09-05 Fanuc Corporation Numerical control device
US11340586B2 (en) 2018-03-02 2022-05-24 Fanuc Corporation Numerical controller
JP2020181311A (en) * 2019-04-24 2020-11-05 ファナック株式会社 Numerical control system for industrial machine
US11353849B2 (en) 2019-04-24 2022-06-07 Fanuc Corporation Numerical control system of industrial machine
JP2021068005A (en) * 2019-10-18 2021-04-30 ファナック株式会社 Programming support device, programming support system, and programming support method

Similar Documents

Publication Publication Date Title
US4736340A (en) Processor generating control programs for a programmable controller
EP1186976B1 (en) NC machining simulation apparatus
JPH04176539A (en) Interactive numerical control unit
JPH08123515A (en) Display system for sequence program
JPH0863218A (en) Program constitution display system
JPH06149342A (en) Numerical controller
KR0157147B1 (en) Edit apparatus of sequence program
JPH0580814A (en) Programming device for programmable controller
JPH0519817A (en) System for editing sequence program
JPH08339215A (en) Numerical controller
JP4387288B2 (en) Display device for control, editor device, program, and recording medium
JP3170154B2 (en) SFC program development equipment
JP3000985B2 (en) Numerical control unit
EP0189487B1 (en) Method of automatically forwarding display pictures
JPS6165314A (en) Graphic display method and apparatus for computer numerical controller
JPH07302107A (en) Numerical controller
JPH0887406A (en) Program display device
JPH0720990A (en) Document editing processor
JPH09160611A (en) Programmable controller
JPH05313708A (en) Sequence program editing system
JPH0673084B2 (en) Auxiliary function recovery method in numerical control device
JP2971251B2 (en) SFC programming device
EP0436039A1 (en) System for resuming program for automatic operation
JPH02206805A (en) System for executing part program
JPH04335402A (en) Pc symbol editing system