JP3873773B2 - Numerical control apparatus and numerical control method - Google Patents

Numerical control apparatus and numerical control method Download PDF

Info

Publication number
JP3873773B2
JP3873773B2 JP2002046563A JP2002046563A JP3873773B2 JP 3873773 B2 JP3873773 B2 JP 3873773B2 JP 2002046563 A JP2002046563 A JP 2002046563A JP 2002046563 A JP2002046563 A JP 2002046563A JP 3873773 B2 JP3873773 B2 JP 3873773B2
Authority
JP
Japan
Prior art keywords
program
block
numerical control
execution block
editing
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 - Lifetime
Application number
JP2002046563A
Other languages
Japanese (ja)
Other versions
JP2003248507A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2002046563A priority Critical patent/JP3873773B2/en
Publication of JP2003248507A publication Critical patent/JP2003248507A/en
Application granted granted Critical
Publication of JP3873773B2 publication Critical patent/JP3873773B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Numerical Control (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、プログラムの変更を短時間で行うことができる数値制御装置及び数値制御方法に関する。
【0002】
【従来の技術】
従来より、プログラムに従って、工作機械等の機器の運転を数値制御する数値制御装置が用いられてきた。
一般に、工作機械等の機器においては、本格的な加工を開始する前に、最適な運転条件(プログラムの設定)を定めるために、試し運転を行う。この試し運転では、プログラムをブロックごとに実行しながら、その時点で実行しているブロック(実行ブロック)のデータ(例えば穴深さや送り速度に関するパラメータ)を変更してゆく。
【0003】
プログラムの実行ブロックを変更する場合、作業者は、CRT等の表示装置に実行ブロックを表示し、キーボード等の入力手段を用いて、必要な変更を行う。
【0004】
【発明が解決しようとする課題】
しかし、実行ブロックを変更しようとして、プログラムを表示装置に表示した場合、表示装置には、まず、プログラムのうち、一定の部分(例えば、プログラムの先頭部分)が表示され、実行ブロックは必ずしも表示されていない。
【0005】
従って、作業者は、実行ブロックを、表示装置の画面をスクロールさせながら探さなければならないので、プログラムの変更に長時間を要するという問題があった。
また、1のブロックを修正する際に、それに伴って修正すべき他のブロックがある場合、作業者は、個々のブロックをそれぞれ、上記のようにして探さなければならないので、変更に要する時間が一層長くかかってしまうという問題があった。
【0006】
本発明は以上の点に鑑みなされたものであり、プログラムの変更を短時間で行うことができる数値制御装置及び数値制御方法を提供することを目的とする。
【0007】
【課題を解決するための手段及び発明の効果】
(1)請求項1の発明は、
複数のブロックで構成されたプログラムに従って、数値制御による機器の運転を行うとともに、前記運転中のプログラムと同一のプログラムを編集することができるプログラム編集手段を有する数値制御装置であって、前記運転中に、前記プログラム編集手段を実行する場合に、その時点で実行されているブロックである実行ブロックを検索するとともに、前記実行ブロックと関連づけられた所定の関連ブロックを検索する実行ブロック検索手段を備えることを特徴とする数値制御装置を要旨とする。
【0008】
本発明の数値制御装置では、運転中に、その時点で実行されているブロックである実行ブロックを変更(編集)したい場合に、その実行ブロックを検索することができる。
そのことにより、本発明の数値制御装置では、プログラムの中から実行ブロックを探すことが容易であるので、運転中にプログラムの編集を行う場合の所要時間を短縮することができる。
また、本発明の数値制御装置は、実行ブロックを検索した場合に、その実行ブロックに基づいて、関連ブロックを検索することができるので、その関連ブロックを個別に探す必要がない。
そのため、プログラム編集に要する時間を一層短縮することができる。
・前記関連ブロックとは、プログラムにおいて、所定のブロックを変更する場合には、それに伴って、変更するべきブロックをいう。
【0009】
・前記運転中とは、例えば、機器の運転に用いるプログラムの実行開始から、そのプログラムの実行終了までをいう。
(2)請求項2の発明は、
前記実行ブロック検索手段は、前記ブロックに付された番号であるブロック番号に基づいて、前記実行ブロックを検索することを特徴とする前記請求項1に記載の数値制御装置を要旨とする。
【0010】
本発明の数値制御装置では、プログラムを構成するブロックごとに付された番号であるブロック番号に基づいて、実行ブロックを検索するので、実行ブロックを、確実且つ迅速に検索することができる。そのため、運転中にプログラムの編集を行う場合の所要時間を短縮することができる
【0011】
(3)請求項の発明は、
前記実行ブロック検索手段は、前記プログラム編集の開始に応じて検索を行うことを特徴とする前記請求項1又は2に記載の数値制御装置を要旨とする。
【0012】
本発明の数値制御装置では、プログラム編集の開始に応じて実行ブロックの検索を行うので、例えば、作業者の指示が無くとも、実行ブロックの検索が行われる。
そのため、本発明の数値制御装置は、実行ブロックを検索し、表示するまでの時間が一層短くて済み、それにともなって、運転中にプログラムの編集を行う場合の所要時間を一層短縮することができる
【0013】
【0014】
)請求項の発明は、
前記関連ブロックを登録する関連ブロック登録手段を備えることを特徴とする前記請求項1〜3のいずれかに記載の数値制御装置を要旨とする。
【0015】
本発明の数値制御装置では、プログラムのうち、例えば、所定のブロックを変更する際には、それに伴って変更するブロックを、前記所定のブロックの関連ブロックとして、予め登録することができる。
そのことにより、前記所定のブロックを実行ブロックとして検索した際には、そこから、関連ブロックを検索することができ、関連ブロックを個別に探す必要がない。そのため、プログラム編集に要する時間を一層短縮することができる。
【0016】
【0017】
【0018】
【0019】
【0020】
(5)請求項5の発明は、
メインプログラムと、該メインプログラムからコールされるサブプログラムとから成り、複数のブロックで構成されたプログラムに従って、数値制御による機器の運転を行うとともに、前記運転中のプログラムと同一のプログラムを編集することができるプログラム編集手段を有する数値制御装置であって、前記運転中に、前記プログラム編集手段を実行する場合に、その時点で実行されているブロックである実行ブロックを、前記メインプログラム及びサブプログラムにそれぞれ付された番号であるプログラム番号と、前記ブロックに付された番号であるブロック番号とに基づいて、検索する実行ブロック検索手段を備えることを特徴とする数値制御装置を要旨とする。
本発明の数値制御装置では、運転中に、その時点で実行されているブロックである実行ブロックを変更(編集)したい場合に、その実行ブロックを検索することができる。そのことにより、本発明の数値制御装置では、プログラムの中から実行ブロックを探すことが容易であるので、運転中にプログラムの編集を行う場合の所要時間を短縮することができる。
【0021】
特に、本発明の数値制御装置は、プログラム番号とブロック番号とに基づいて実行ブロックを検索するので、例えば、メインプログラムとサブプログラムのいずれが実行されている場合でも(つまり、編集するプログラムがメインプログラム又はサブプログラムのいずれである場合にも)、実行ブロックを検索することができる。
【0022】
そのことにより、作業者は、その時点でどのプログラムが実行されているかに依らず、常に実行ブロックを検索することができるので、プログラムの編集に要する時間を一層短縮することができる。
(6)請求項6の発明は、
前記実行ブロック検索手段は、前記プログラム編集の開始に応じて検索を行うことを特徴とする前記請求項5に記載の数値制御装置を要旨とする。
本発明の数値制御装置では、プログラム編集の開始に応じて実行ブロックの検索を行うので、例えば、作業者の指示が無くとも、実行ブロックの検索が行われる。
そのため、本発明の数値制御装置は、実行ブロックを検索し、表示するまでの時間が一層短くて済み、それにともなって、運転中にプログラムの編集を行う場合の所要時間を一層短縮することができる。
(7)請求項7の発明は、
前記実行ブロック検索手段により検索された実行ブロックを表示する実行ブロック表示手段を備えることを特徴とする前記請求項5又は6に記載の数値制御装置を要旨とする。
本発明の数値制御装置は、検索された実行ブロックを実行ブロック表示手段に表示することができる。そのことにより、作業者は、例えば、実行ブロック表示手段を見ながら、容易に実行ブロックを変更することができる。
・前記実行ブロック表示手段としては、例えば、CRT、液晶ディスプレイ等がある。
(8)請求項8の発明は、
前記実行ブロック表示手段は、前記実行ブロックにカーソルを付して表示することを特徴とする前記請求項7に記載の数値制御装置を要旨とする。
本発明の数値制御装置では、実行ブロック表示手段において、実行ブロックにカーソルを付して表示するので、作業者は、実行ブロックを迅速且つ確実に認識することができる。
そのことにより、プログラムの編集に要する時間を短縮することができるとともに、作業者による入力ミス(例えば、実行ブロック以外のブロックを誤って変更してしまうこと)を防止できる。
(9)請求項9の発明は、
前記実行ブロック表示手段は、前記実行ブロックを、他のブロックとは異なる色で表示することを特徴とする前記請求項7又は8に記載の数値制御装置を要旨とする。
本発明の数値制御装置では、実行ブロック表示手段において、実行ブロックは他のブロックとは異なる色で表示されるので、作業者は、実行ブロックを迅速且つ確実に認識することができる。
そのことにより、プログラムの編集に要する時間を短縮することができるとともに、作業者による入力ミス(例えば、実行ブロック以外のブロックを誤って変更してしまうこと)を防止できる。
10)請求項10の発明は、
複数のブロックで構成されるプログラムを用いて、機器の運転を数値制御する数値制御方法であって、前記運転中に、前記運転に用いるプログラムと同一のプログラムを編集することができるとともに、前記運転中に、前記プログラムの編集を行う場合に、その時点で実行されているブロックである実行ブロックとともに、前記実行ブロックと関連づけられた所定の関連ブロックを検索することができることを特徴とする数値制御方法を要旨とする。
【0023】
本発明の数値制御方法では、運転中に実行ブロックを変更したい場合に、その実行ブロックを検索することができる。
そのことにより、本発明の数値制御方法では、プログラムの中から実行ブロックを探すことが容易であり、プログラムの編集に要する所要時間を短縮することができる。
また、本発明の数値制御方法では、実行ブロックを検索した場合に、その実行ブロックに基づいて、関連ブロックを検索することができるので、その関連ブロックを個別に探す必要がない。そのため、プログラム編集に要する時間を一層短縮することができる。
【0024】
・本発明の数値制御方法では、例えば、ブロックに付された番号であるブロック番号に基づいて、実行ブロックを検索することができる。
・本発明の数値制御方法では、例えば、作業者の指示に応じて、実行ブロックを検索することができる。
【0025】
・本発明の数値制御方法では、例えば、プログラム編集の開始に応じて、実行ブロックを検索することができる
【0026】
・本発明の数値制御方法は、例えば、前記関連ブロックを登録する関連ブロック登録手段を備えることができる。
・本発明の数値制御方法は、例えば、検索された実行ブロックを実行ブロック表示手段にて表示することができる。
【0027】
・本発明の数値制御方法では、例えば、前記実行ブロック表示手段において、実行ブロックにカーソルを付して表示することができる。
本発明の数値制御方法では、例えば、前記実行ブロック表示手段において、実行ブロックを、他のプログラムのブロックとは異なる色で表示することができる。
【0028】
・本発明の数値制御方法では、例えば、前記実行ブロック表示手段において、 プログラムのブロックを、実行される順番に並べて表示することができる。
・本発明の数値制御方法では、例えば、プログラムが、メインプログラムと、該メインプログラムからコールされるサブプログラムとから成るとともに、それらメインプログラム及びサブプログラムにそれぞれ付された番号であるプログラム番号と、前記ブロック番号とに基づいて、実行ブロックを検索することができる。
(11)請求項11の発明は、
メインプログラムと、該メインプログラムからコールされるサブプログラムとから成り、複数のブロックで構成されたプログラムを用いて、機器の運転を数値制御する数値制御方法であって、前記運転中に、前記運転に用いるプログラムと同一のプログラムを編集することができるとともに、前記運転中に、前記プログラム編集手段を実行する場合に、その時点で実行されているブロックである実行ブロックを、前記メインプログラム及びサブプログラムにそれぞれ付された番号であるプログラム番号と、前記ブロックに付された番号であるブロック番号とに基づいて、検索することができることを特徴とする数値制御方法を要旨とする。
本発明の数値制御方法では、運転中に実行ブロックを変更したい場合に、その実行ブロックを検索することができる。そのことにより、本発明の数値制御方法では、プログラムの中から実行ブロックを探すことが容易であり、プログラムの編集に要する所要時間を短縮することができる。
特に、本発明の数値制御方法では、プログラム番号とブロック番号とに基づいて実行ブロックを検索するので、例えば、メインプログラムとサブプログラムのいずれが実行されている場合でも(つまり、編集するプログラムがメインプログラム又はサブプログラムのいずれである場合にも)、実行ブロックを検索することができる。
そのことにより、作業者は、その時点でどのプログラムが実行されているかに依らず、常に実行ブロックを検索することができるので、プログラムの編集に要する時間を一層短縮することができる。
・本発明の数値制御方法では、例えば、ブロックに付された番号であるブロック番号に基づいて、実行ブロックを検索することができる。
・本発明の数値制御方法では、例えば、作業者の指示に応じて、実行ブロックを検索することができる。
・本発明の数値制御方法では、例えば、プログラム編集の開始に応じて、実行ブロックを検索することができる。
・本発明の数値制御方法では、例えば、実行ブロックを検索するとともに、実行ブロックと関連づけられた所定の関連ブロックを検索することができる。
・本発明の数値制御方法は、例えば、前記関連ブロックを登録する関連ブロック登録手段を備えることができる。
・本発明の数値制御方法は、例えば、検索された実行ブロックを実行ブロック表示手段にて表示することができる。
・本発明の数値制御方法では、例えば、前記実行ブロック表示手段において、実行ブロックにカーソルを付して表示することができる。
・本発明の数値制御方法では、例えば、前記実行ブロック表示手段において、実行ブロックを、他のプログラムのブロックとは異なる色で表示することができる。
・本発明の数値制御方法では、例えば、前記実行ブロック表示手段において、 プログラムのブロックを、実行される順番に並べて表示することができる。
【0029】
【発明の実施の形態】
以下に本発明の数値制御装置及び数値制御方法の実施の形態の例(実施例)を説明する。
参考例1
a)本参考例1の数値制御装置は、プログラムに従って、機器の運転を数値制御することができるものである。この数値制御装置の構成を図1を用いて説明する。
【0030】
参考例1の数値制御装置は、CPU10を中心として、そのCPU10にそれぞれ接続したROM11と、RAM12と、RAM13と、表示装置14と、キーボード15と、モータ(駆動装置)16と、から成る。
上記CPU10は、機器の数値制御やプログラムの編集に必要な各種演算を実行する。
【0031】
上記ROM11には、数値制御装置自体を制御するプログラムが記憶されている。
上記RAM12には、機器の数値制御に用いるプログラムであって、作業者が編集することができるもの(数値制御プログラム)が記憶されている。このRAM12には、複数の数値制御プログラムを記憶することができ、運転時においては、選択して用いることができる。
【0032】
上記RAM13には、運転中には、運転に用いている数値制御プログラムのプログラム番号、その時点で実行しているプログラムのブロックに付された番号であるブロック番号を記憶する。また、数値制御プログラムの編集中には、その数値制御プログラムのプログラム番号を記憶する。
【0033】
上記表示装置14は、運転中又は編集中の数値制御プログラムの内容を表示することができる。
上記キーボード15は、数値制御プログラムの編集において、必要な情報を入力することができる。
【0034】
上記モータ16は、数値制御プログラムに従って動作し、研削装置等の機器の駆動源となる。
b)次に、本参考例1の数値制御装置に用いられる数値制御プログラムの構造について説明する。
【0035】
数値制御プログラムは、図2に示す様に、メインプログラムと、そのメインプログラムからコールされるサブプログラムから成る。また、サブプログラムは、更に、別のサブプログラムをコールするものであってもよい。
メインプログラム及びサブプログラムは、それぞれ、プログラム番号を付されている。図2に示す数値制御プログラムにおいては、メインプログラムのプログラム番号は0001であり、そのメインプログラムからコールされるサブプログラムのプログラム番号は1234であり、そのサブプログラムから更にコールされるもう一つのサブプログラムのプログラム番号は2468である。
【0036】
c)次に、本参考例1の数値制御装置の動作の概略を説明する。
参考例1の数値制御装置は、RAM12に記憶された数値制御プログラムに従って、モータ16の動作(回転数、動作時間等)を数値制御することができる。従って、このモータ16を、機器(例えば研削装置)の駆動モータとすることにより、本参考例1の数値制御装置は、その機器の運転を数値制御することができる。運転中においては、表示装置14に、現在使用している数値制御プログラムが表示される。
【0037】
また、この数値制御装置は、運転中に、その運転に使用している数値制御プログラム(運転プログラム)を表示装置14に表示し、キーボード15からの入力により、編集することができる(プログラム編集手段)。編集後の運転プログラムは、RAM12に上書きされ、それ以降は、編集後の運転プログラムに従って、機器の運転が数値制御される。
【0038】
特に、本参考例1の数値制御装置では、運転中に運転プログラムの編集を行う場合に、その時点で実行されているブロック(実行ブロック)を検索し(実行ブロック検索手段)、その実行ブロックを表示装置14に表示することができる(実行ブロック表示手段)。
【0039】
尚、上記運転中とは、キーボード15に設けられた起動キー(図示略)を押すことにより、運転プログラムの内容が実行され始めてから、その全てが終了するまでをいう。
d)次に、本参考例1の数値制御装置において、運転プログラムを編集する時の処理を詳細に説明する。
【0040】
(i)運転を開始する前に、作業者は、RAM12に記憶された数値制御プログラムの中から、運転に使用するもの(運転プログラム)を選択する。そして、その運転プログラムのメインプログラムのプログラム番号を、運転プログラム番号として、RAM13に記憶する。
【0041】
(ii)運転を開始すると、前記(i)で選択した運転プログラムに従って、機器の数値制御が行われる。
運転時において(プログラム編集を行っていない場合は)、表示装置14は、図3に示す様に、運転画面を表示する。
【0042】
この運転画面には、画面上方に、運転プログラムのうち、その時点で実行されているプログラムのプログラム番号が表示される。具体的には、運転プログラムのうち、メインプログラムが実行されている時には、そのメインプログラムのプログラム番号が表示され、サブプログラムが実行されている時には、そのサブプログラムのプログラム番号が表示される。
【0043】
また、画面中央には、運転プログラムのうち、その時点で実行されているプログラム(メインプログラム又はサブプログラム)の内容であって、実行ブロックを含む部分が表示される。
更に、運転画面では、実行ブロックの左側に、カーソル32が表示される。
【0044】
運転中においては、実行ブロックに付された番号(実行ブロック番号)が、RAM13に記憶される。この実行ブロック番号は、プログラムが進行するにつれて、次々に書き換えられる。
尚、運転プログラムの実行は、所定のキー入力をするごとに、1ブロックずつ進行するマニュアル運転と、一旦運転プログラムの実行が開始されると、自動的に次々とブロックが実行される自動運転のどちらでもよいが、運転プログラムの編集中に、実行ブロックが移動してしまわない点で、マニュアル運転の方が望ましい。
【0045】
(iii)運転中に、運転プログラムの編集を行いたい場合は、キーボード15の所定のキー(編集開始キー、図示略)を入力する。
すると、表示装置14は、図4に示す様な、編集画面に切り替わる。この編集画面の画面上方には、運転プログラムのうち、編集開始キーを押した時点で実行されていたプログラム(編集プログラム)のプログラム番号(編集プログラム番号)を表示し、画面中央に、編集プログラムの内容のうち、先頭の部分を表示するとともに、画面下方に、コントロールキーの機能を表示する。
【0046】
また、編集開始キー入力時に、RAM13には、編集プログラム番号が記憶される。
(iv)この編集画面において、作業者が実行ブロック検索キー30を押すと(作業者の指示に応じて)、編集プログラムのうち、編集開始キー入力時点で実行されていた実行ブロックが検索され(実行ブロック検索手段)、表示装置14には、編集プログラムのうち、その実行ブロックを中心とする部分の内容が表示される(実行ブロック表示手段)。この処理を図5のフローチャートを用いて説明する。
【0047】
ステップ100では、編集画面において、作業者が実行ブロック検索キー30を押す。
ステップ110では、RAM13に記憶されている運転プログラム番号と、同じくRAM13に記憶されている編集プログラム番号とが同じであるか否かを判断する。
【0048】
つまり、運転プログラム番号は、上述したように、運転プログラムのうちのメインプログラムのプログラム番号であるので、このステップ110では、編集プログラムがメインプログラムであるか否かを判断する。
運転プログラム番号と編集プログラム番号とが同じであると判断した場合は、ステップ120に進み、同じでないと判断した場合は、ステップ140に進む。
【0049】
ステップ120では、編集プログラムの先頭から、RAM13に記憶されている実行ブロック番号に基づいて、実行ブロックを検索する。
ステップ130では、編集プログラムのうち、実行ブロックを含む部分を、画面中央に表示し、カーソル32を実行ブロックの先頭に表示する。また、実行ブロックは、他のブロックとは異なる色で表示する(実行ブロック表示手段)。
【0050】
一方、前記ステップ110にて、運転プログラム番号と編集プログラム番号とが同じでないと判断した場合は、ステップ140に進み、「メインプログラムでないためサーチできません」というエラーメッセージを表示する。
(v)運転プログラムの編集の終了後、作業者が編集画面左下の編集終了キー40(図3)を押すと、運転プログラムは、編集後の内容に書き換えられる。
【0051】
そして、表示装置14の表示は、図3の運転画面に戻り、それ以降は、編集後の運転プログラムに従って、機器の数値制御が行われる。
e)次に、本参考例1の数値制御装置が奏する効果を説明する。
参考例1の数値制御装置は、運転中に、運転プログラム中の実行ブロックの部分を編集したい場合に、実行ブロックを容易且つ迅速に検索し、表示することができる。
【0052】
そのため、運転中に実行ブロックの部分を編集するための所要時間を短縮することができる。
参考例2
a)本参考例2の数値制御装置の構成は、前記参考例1の数値制御装置と同一である。尚、以下では、前記参考例1と同様の部分は記載を省略する。
【0053】
b)本参考例2の数値制御装置が実行する処理は、基本的には、前記参考例1の数値制御装置の処理とほぼ同じであるが、実行ブロック検索手段において異なる。以下具体的に説明する。
参考例2の数値制御装置において、運転中に編集開始キーを押すと、表示装置14は、編集画面に切り替わる。そして、この編集画面の画面中央には、編集プログラムのうち、実行ブロックを中心とする部分の内容が表示される(実行ブロック表示手段)。
【0054】
つまり、この参考例2では、編集開始キーを押すと、直ちに(実行ブロック検索キー30を押さなくても)、実行ブロック検索手段及び実行ブロック表示手段が実行される。つまり、プログラム編集の開始に応じて実行ブロック検索手段及び実行ブロック表示手段が実行される。
【0055】
この本参考例2における実行ブロック検索手段及び実行ブロック表示手段の処理を、図6に示す。
ステップ200において、編集開始キー(図示略)が押されると、実行ブロック検索手段及び実行ブロック表示手段が開始される。尚、以降のステップ210、ステップ220、ステップ230、ステップ240は、それぞれ、前記参考例1のステップ110、ステップ120、ステップ130、ステップ140と同様である。
【0056】
c)本参考例2の数値制御装置の奏する効果を説明する。
参考例2の数値制御装置は、前記参考例1の数値制御装置と同様に、運転中に、運転プログラムの実行ブロックを編集する場合の所要時間を短縮することができる。
【0057】
特に本参考例2では、編集開始キーを押して表示装置14の表示を編集画面にすると、直ちに実行ブロック検索手段及び実行ブロック表示手段が実行されるので、一層、運転中に実行ブロックの部分を編集するための所要時間を短縮することができる。
(実施例
a)本実施例の数値制御装置の構成は、前記参考例1の数値制御装置と同一である。尚、以下では、前記参考例1と同様の部分の記載は省略する。
【0058】
b)本実施例の数値制御装置が実行する処理は、基本的には、前記参考例1の数値制御装置の処理とほぼ同じであるが、実行ブロック検索手段において相違点を有する。以下具体的に説明する。
本実施例の数値制御装置では、前記参考例1と同様に、運転中に編集開始キー(図示略)を押すと、表示装置14の表示は編集画面に切り替わる。この編集画面において、作業者がF1キー(実行ブロック検索キー30)を押すと、編集プログラムのうち、編集開始キー入力時点で実行されていたブロック(実行ブロック)が検索され(実行ブロック検索手段)、表示装置14には、編集プログラムのうち、その実行ブロックを中心とする部分の内容が表示される(実行ブロック表示手段)。
【0059】
特に、本実施例の数値制御装置では、運転プログラムのうち、サブプログラムが実行されている時に編集開始キーを押した場合でも、そのサブプログラムの中から、実行ブロックを検索することができる。
図7のフローチャートを用いて、本実施例の数値制御装置における実行ブロック検索手段及び実行ブロック表示手段の処理を更に詳細に説明する。
【0060】
ステップ300では、編集画面において、作業者が実行ブロック検索キー30を押す。
ステップ310では、RAM13に記憶されている編集プログラム番号と、同じくRAM13に記憶されている実行ブロック番号とに基づいて、実行ブロックを検索する。
【0061】
つまり、まず、編集プログラム番号に基づいて、編集プログラム(メインプログラム又はサブプログラム)を読み出し、次に、その編集プログラムの中から、実行ブロック番号に基づいて、実行ブロックを検索する。
ステップ320では、編集プログラムのうち、実行ブロックを含む部分を、画面中央に表示し、カーソルを実行ブロックの先頭に表示する。
【0062】
c)次に、本実施例の数値制御装置が奏する効果を説明する。
本実施例の数値制御装置は、前記参考例1の数値制御装置と同様に、運転中に、運転プログラムの実行ブロックの部分を編集する場合の所要時間を短縮することができる。
【0063】
特に、本実施例の数値制御装置は、編集プログラム番号と実行ブロック番号とに基づいて、実行ブロックを検索するので、編集プログラムがメインプログラムである場合だけではなく、サブプログラムである場合にも、実行ブロックを検索し、表示手段14に表示することができる。そのため、運転中に運転プログラムを編集するための所要時間を一層短縮することができる。
(実施例
a)本実施例の数値制御装置の構成は、前記参考例1の数値制御装置と同一である。尚、以下では、前記参考例1と同様の部分の記載は省略する。
【0064】
b)本実施例の数値制御装置が実行する処理は、基本的には、前記参考例1の数値制御装置の処理とほぼ同じである。
(i)ただし、本実施例では、予め、運転プログラムにおける所定のブロックの組み合わせを、被関連ブロック及び関連ブロックとして登録しておくことができる(関連ブロック登録手段)。
【0065】
この被関連ブロック及び関連ブロックとは、被関連ブロックを実行ブロックとして検索し、表示した際には、そこから、関連ブロックを即座に表示することができるように設定されたブロックの組み合わせをいう。
被関連ブロック及び関連ブロックを登録する具体的な方法としては、まず、作業者が所定のキー(関連ブロック登録開始キー、図示略)を押す。すると、表示装置14には、図8に示す関連ブロック登録画面が表示される。この画面において、作業者は、被関連ブロック及び関連ブロックのプログラム番号及びブロック番号をそれぞれ入力することにより、被関連ブロック及び関連ブロックを登録することができる。
【0066】
尚、この登録は、数値制御装置の停止中、運転中、または編集中のいずれの時に行っても良い。また、被関連ブロックと関連ブロックとは、同一のプログラムに属しても、異なるプログラムに属してもよい。
(ii)作業者が、運転プログラムの編集において、上記のように登録しておいた被関連ブロックを、実行ブロックとして検索し、編集画面に表示した際には、図9に示すように、編集画面の右下に、関連ブロック表示キー34が表示される。
【0067】
この関連ブロック表示キー34を押すと、その被関連ブロック(実行ブロック)に対応する関連ブロックとその前後のブロックが編集画面に表示される(関連ブロックが検索される)。登録しておいた関連ブロックが複数ある場合には、関連ブロック表示キー34を押す度に、次の関連ブロックに表示が切り替わる。
【0068】
作業者は、上記のようにして呼び出された関連ブロックを、キーボード15を用いて変更することができる。
c)本実施例の数値制御装置の奏する効果を説明する。
本実施例の数値制御装置は、前記参考例1の数値制御装置と同様に、運転中に運転プログラムの実行ブロックの部分を編集する場合の所要時間を短縮することができる。
【0069】
特に、本実施例の数値制御装置では、被関連ブロックを実行ブロックとして表示した状態から、容易に、それに関連する関連ブロックを呼び出すことができる。従って、例えば、運転プログラムのうち、互いに関連があるブロック(一方のブロックを変更すれば、それにともなって他方のブロックも変更する関係にあるブロック)を、予め、被関連ブロックと関連ブロックとして登録しておけば、被関連ブロックを変更した際に、続けて関連ブロックを呼び出し、変更することができるので、運転プログラムの編集に要する時間を一層短縮できる。
参考例3
a)本参考例3の数値制御装置の構成は、前記参考例1の数値制御装置と同一である。尚、以下では、前記参考例1と同様の部分の記載は省略する。
【0070】
b)本参考例3の数値制御装置が実行する処理は、基本的には、前記参考例1の数値制御装置の処理とほぼ同じである。
ただし、本参考例3の数値制御では、編集画面において、図10に示す様に、順番表示キー36が表示される。
【0071】
この順番表示キー36を押すと、編集画面には、実際に処理される順序で、編集プログラムのブロックが表示される。つまり、編集プログラムのブロックが、編集プログラムに含まれる論理判断(IF、THEN)や、特定のブロックへのジャンプの指示(GOTO)等に従いながら、実際に処理される順番に、上から下へと表示される(実行順番表示機能)。
【0072】
また、順番表示キー36を再度押すと、編集プログラムのブロックが通常の順序で表示された状態に戻る。
c)本参考例3の数値制御装置の奏する効果を説明する。
参考例3の数値制御装置は、前記参考例1の数値制御装置と同様に、運転中に、運転プログラムの実行ブロックの部分を編集する場合の所要時間を短縮することができる。
【0073】
特に、本参考例3の数値制御装置は、編集画面において、編集プログラムのブロックを実行順に表示することができるので、作業者は、編集プログラムを容易に理解することができ、編集時間を短縮することができる。また、編集における入力ミスを減少させることもできる。
【0074】
尚、本発明は上記の形態に何等限定されるものではなく、本発明の要旨を逸脱しない範囲で種々の形態で実施することができる。
・前記実施例1〜2、参考例1〜3の数値制御装置において、数値制御プログラムは、メインプログラムのみから構成されるものであってもよい。
【0075】
・前記実施例1〜2、参考例1〜3の数値制御装置は、運転プログラム以外の数値制御プログラムを編集できるものとすることができる。例えば、作業者が、運転中に、キーボード入力により所望の数値制御プログラム(運転プログラム以外の数値制御プログラムを含む)を指定し、その数値制御プログラムを編集できるものとすることができる。
【図面の簡単な説明】
【図1】 参考例1の数値制御装置の構成を示す説明図である。
【図2】 参考例1における数値制御プログラムの構造を示す説明図である。
【図3】 参考例1における運転画面を示す説明図である。
【図4】 参考例1における編集画面を示す説明図である。
【図5】 参考例1における実行ブロック検索手段及び実行ブロック表示手段の処理を示すフロー図である。
【図6】 参考例2における実行ブロック検索手段及び実行ブロック表示手段の処理を示すフロー図である。
【図7】 実施例における実行ブロック検索手段及び実行ブロック表示手段の処理を示すフロー図である。
【図8】 実施例における関連ブロック登録画面を示す説明図である。
【図9】 実施例における編集画面を示す説明図である。
【図10】 参考例3における編集画面を示す説明図である。
【符号の説明】
10・・・CPU
11・・・ROM
12、13・・・RAM
14・・・表示装置
15・・・キーボード
16・・・モータ
30・・・実行ブロック検索キー
32・・・カーソル
34・・・関連ブロック表示キー
36・・・順番表示キー
40・・・編集終了キー
[0001]
BACKGROUND OF THE INVENTION
  The present invention relates to a numerical control apparatus and a numerical control method capable of changing a program in a short time.
[0002]
[Prior art]
  Conventionally, a numerical control device that numerically controls the operation of a machine tool or the like according to a program has been used.
  Generally, in a machine tool or the like, a trial operation is performed in order to determine an optimum operation condition (program setting) before starting full-scale machining. In this trial operation, while the program is executed for each block, the data (for example, parameters relating to the hole depth and feed speed) of the block (execution block) being executed at that time is changed.
[0003]
  When changing an execution block of a program, an operator displays the execution block on a display device such as a CRT and makes necessary changes using an input means such as a keyboard.
[0004]
[Problems to be solved by the invention]
  However, when the program is displayed on the display device in an attempt to change the execution block, the display device first displays a certain part of the program (for example, the first part of the program) and does not necessarily display the execution block. Not.
[0005]
  Therefore, since the operator has to search for the execution block while scrolling the screen of the display device, there is a problem that it takes a long time to change the program.
  Also, when modifying one block, if there are other blocks to be modified, the operator must search for each block as described above, so the time required for the modification There was a problem that it took longer.
[0006]
  The present invention has been made in view of the above points, and an object thereof is to provide a numerical control device and a numerical control method capable of changing a program in a short time.
[0007]
[Means for Solving the Problems and Effects of the Invention]
(1) The invention of claim 1
  A numerical control device having a program editing means capable of operating a device by numerical control and editing the same program as the operating program in accordance with a program configured by a plurality of blocks, In addition, when executing the program editing means, an execution block which is a block being executed at that time is searched.And searching for a predetermined related block associated with the execution block.The gist of the present invention is a numerical control device comprising an execution block search means.
[0008]
  In the numerical control apparatus of the present invention, when an execution block which is a block executed at that time is to be changed (edited) during operation, the execution block can be searched.
  As a result, in the numerical control device of the present invention, it is easy to search for an execution block in the program, and therefore the time required for editing the program during operation can be shortened.
  Further, when the numerical control device of the present invention searches for an execution block, it can search for a related block based on the execution block, so there is no need to search for the related block individually.
Therefore, the time required for program editing can be further reduced.
The related block is a block to be changed along with a predetermined block in the program.
[0009]
  The term “during operation” refers to, for example, from the start of execution of a program used for operation of equipment to the end of execution of the program.
(2) The invention of claim 2
  The summary of the numerical control apparatus according to claim 1, wherein the execution block search means searches for the execution block based on a block number which is a number assigned to the block.
[0010]
  In the numerical control device of the present invention, the execution block is searched based on the block number that is a number assigned to each block constituting the program, so that the execution block can be searched reliably and quickly. Therefore, the time required to edit the program during operation can be shortened..
[0011]
(3Claim3The invention of
  The gist of the numerical control device according to claim 1 or 2, wherein the execution block search means performs a search in response to the start of the program editing.
[0012]
  In the numerical control apparatus of the present invention, the execution block is searched in response to the start of program editing. For example, the execution block is searched without an instruction from the operator.
  Therefore, the numerical control device of the present invention requires a shorter time to search for and display an execution block, and accordingly, the time required for editing a program during operation can be further shortened..
[0013]
[0014]
(4Claim4The invention of
  The related block registering means for registering the related block is provided.Any one of 1-3The gist of the numerical control device described in 1.
[0015]
  In the numerical control apparatus of the present invention, for example, when a predetermined block is changed in the program, a block to be changed along with the predetermined block can be registered in advance as a related block of the predetermined block.
  As a result, when the predetermined block is searched as an execution block, the related block can be searched from there, and there is no need to search for the related block individually. Therefore, the time required for program editing can be further reduced.
[0016]
[0017]
[0018]
[0019]
[0020]
(5The invention of claim 5
  It consists of a main program and a subprogram called from the main program,A numerical control device having a program editing means capable of operating a device by numerical control and editing the same program as the operating program in accordance with a program configured by a plurality of blocks, In addition, when executing the program editing means, an execution block which is a block being executed at that time,Based on a program number that is a number assigned to each of the main program and subprogram, and a block number that is a number assigned to the block,The gist of the present invention is a numerical control device comprising an execution block search means for searching.
  In the numerical control apparatus of the present invention, when an execution block which is a block executed at that time is to be changed (edited) during operation, the execution block can be searched. As a result, in the numerical control device of the present invention, it is easy to search for an execution block in the program, and therefore the time required for editing the program during operation can be shortened.
[0021]
  In particular,Since the numerical control device of the present invention searches for an execution block based on the program number and the block number, for example, regardless of whether the main program or the subprogram is executed (that is, the program to be edited is the main program or In any of the subprograms), the execution block can be searched.
[0022]
  As a result, the operator can always search for an execution block regardless of which program is being executed at that time, so that the time required for editing the program can be further reduced.
(6) The invention of claim 6
  The gist of the numerical control device according to claim 5, wherein the execution block search means performs a search in response to the start of the program editing.
  In the numerical control apparatus according to the present invention, the execution block is searched in response to the start of program editing.
Therefore, the numerical control device of the present invention requires a shorter time to search for and display an execution block, and accordingly, the time required for editing a program during operation can be further shortened. .
(7) The invention of claim 7
  7. The numerical control apparatus according to claim 5, further comprising an execution block display unit that displays an execution block searched by the execution block search unit.
  The numerical control apparatus of the present invention can display the searched execution block on the execution block display means. Thereby, the operator can easily change the execution block while looking at the execution block display means, for example.
  Examples of the execution block display means include a CRT and a liquid crystal display.
(8) The invention of claim 8
  The summary of the numerical control device according to claim 7, wherein the execution block display means displays the execution block with a cursor attached thereto.
  In the numerical control device of the present invention, the execution block display means displays the execution block with the cursor attached thereto, so that the operator can quickly and reliably recognize the execution block.
  As a result, the time required for editing the program can be shortened, and an input error by the operator (for example, erroneously changing a block other than the execution block) can be prevented.
(9) The invention of claim 9
  The gist of the numerical control device according to claim 7 or 8, wherein the execution block display means displays the execution block in a color different from other blocks.
  In the numerical control apparatus of the present invention, the execution block display means displays the execution block in a color different from the other blocks, so that the operator can recognize the execution block quickly and reliably.
  As a result, the time required for editing the program can be shortened, and an input error by the operator (for example, erroneously changing a block other than the execution block) can be prevented.
(10Claim10The invention of
  A numerical control method for numerically controlling the operation of a device using a program composed of a plurality of blocks, wherein the same program as the program used for the operation can be edited during the operation, and the operation During execution of the program, the execution block that is being executed at that timeAnd a predetermined related block associated with the execution block.The gist of the numerical control method is that it can be searched.
[0023]
  In the numerical control method of the present invention, when an execution block is to be changed during operation, the execution block can be searched.
  Thus, in the numerical control method of the present invention, it is easy to search for an execution block in the program, and the time required for editing the program can be shortened.
  Further, in the numerical control method of the present invention, when an execution block is searched, a related block can be searched based on the execution block, so there is no need to search for the related block individually. Therefore, the time required for program editing can be further reduced.
[0024]
  -In the numerical control method of this invention, an execution block can be searched based on the block number which is the number attached | subjected to the block, for example.
  -In the numerical control method of this invention, an execution block can be searched according to a worker's instruction | indication, for example.
[0025]
  In the numerical control method of the present invention, for example, an execution block can be searched in response to the start of program editing.
[0026]
  -The numerical control method of this invention can be provided with the related block registration means which registers the said related block, for example.
  In the numerical control method of the present invention, for example, the searched execution block can be displayed on the execution block display means.
[0027]
  In the numerical control method of the present invention, for example, the execution block display means can display the execution block with a cursor.
  In the numerical control method of the present invention, for example, in the execution block display means, the execution block can be displayed in a color different from the blocks of other programs.
[0028]
  In the numerical control method of the present invention, for example, in the execution block display means, the program blocks can be displayed in order of execution.
  In the numerical control method of the present invention, for example, the program includes a main program and a subprogram called from the main program, and a program number which is a number assigned to each of the main program and the subprogram, An execution block can be searched based on the block number.
(11) The invention of claim 11
  A numerical control method comprising a main program and a subprogram called from the main program, and numerically controlling the operation of the device using a program composed of a plurality of blocks, wherein the operation is performed during the operation. When the program editing means is executed during the operation, an execution block which is a block executed at that time is designated as the main program and the subprogram. The gist of the numerical control method is that a search can be performed on the basis of a program number that is a number assigned to each block and a block number that is a number assigned to the block.
  In the numerical control method of the present invention, when an execution block is to be changed during operation, the execution block can be searched. Thus, in the numerical control method of the present invention, it is easy to search for an execution block in the program, and the time required for editing the program can be shortened.
  In particular, in the numerical control method of the present invention, an execution block is searched based on a program number and a block number, so that, for example, whether a main program or a subprogram is executed (that is, the program to be edited is the main program). Whether it is a program or a subprogram), the execution block can be retrieved.
  As a result, the operator can always search for an execution block regardless of which program is being executed at that time, so that the time required for editing the program can be further reduced.
  -In the numerical control method of this invention, an execution block can be searched based on the block number which is the number attached | subjected to the block, for example.
  -In the numerical control method of this invention, an execution block can be searched according to a worker's instruction | indication, for example.
  In the numerical control method of the present invention, for example, an execution block can be searched in response to the start of program editing.
  In the numerical control method of the present invention, for example, it is possible to search for an execution block and a predetermined related block associated with the execution block.
  -The numerical control method of this invention can be provided with the related block registration means which registers the said related block, for example.
  In the numerical control method of the present invention, for example, the searched execution block can be displayed on the execution block display means.
  In the numerical control method of the present invention, for example, the execution block display means can display the execution block with a cursor.
  In the numerical control method of the present invention, for example, in the execution block display means, the execution block can be displayed in a color different from the blocks of other programs.
  In the numerical control method of the present invention, for example, in the execution block display means, Program blocks can be displayed in the order in which they are executed.
[0029]
DETAILED DESCRIPTION OF THE INVENTION
  Hereinafter, examples (examples) of the embodiments of the numerical control device and the numerical control method of the present invention will be described.
(Reference example 1)
  a) BooksReference example 1The numerical control apparatus can numerically control the operation of the device according to a program. The configuration of this numerical control apparatus will be described with reference to FIG.
[0030]
  BookReference example 1The numerical control device includes a ROM 11, a RAM 12, a RAM 13, a display device 14, a keyboard 15, and a motor (drive device) 16 that are connected to the CPU 10.
  The CPU 10 executes various calculations necessary for numerical control of the device and editing of the program.
[0031]
  The ROM 11 stores a program for controlling the numerical control device itself.
  The RAM 12 stores a program (numerical control program) that is used for numerical control of the device and can be edited by an operator. A plurality of numerical control programs can be stored in the RAM 12 and can be selected and used during operation.
[0032]
  During the operation, the RAM 13 stores the program number of the numerical control program used for the operation and the block number that is the number assigned to the block of the program being executed at that time. During editing of a numerical control program, the program number of the numerical control program is stored.
[0033]
  The display device 14 can display the contents of the numerical control program being operated or edited.
  The keyboard 15 can input necessary information for editing the numerical control program.
[0034]
  The motor 16 operates in accordance with a numerical control program and serves as a drive source for equipment such as a grinding apparatus.
  b) Next, the bookReference example 1The structure of a numerical control program used in the numerical control apparatus will be described.
[0035]
  As shown in FIG. 2, the numerical control program includes a main program and a subprogram called from the main program. Further, the subprogram may further call another subprogram.
  Each of the main program and the sub program is assigned a program number. In the numerical control program shown in FIG. 2, the program number of the main program is 0001, the program number of the subprogram called from the main program is 1234, and another subprogram further called from the subprogram. The program number is 2468.
[0036]
  c) Next, the bookReference example 1An outline of the operation of the numerical control apparatus will be described.
  BookReference example 1The numerical control device can numerically control the operation (rotation speed, operation time, etc.) of the motor 16 in accordance with a numerical control program stored in the RAM 12. Therefore, this motor 16 is used as a drive motor for equipment (for example, a grinding device), therebyReference example 1The numerical controller can numerically control the operation of the device. During operation, the numerical control program currently used is displayed on the display device 14.
[0037]
  In addition, during the operation, this numerical control device displays the numerical control program (operation program) used for the operation on the display device 14 and can edit it by inputting from the keyboard 15 (program editing means). ). The edited operation program is overwritten in the RAM 12, and thereafter, the operation of the device is numerically controlled according to the edited operation program.
[0038]
  In particular, the bookReference example 1In the numerical control device, when editing an operation program during operation, a block (execution block) executed at that time is searched (execution block search means), and the execution block is displayed on the display device 14. (Execution block display means).
[0039]
  The term “during operation” refers to the time from when the contents of the operation program are executed by pressing an activation key (not shown) provided on the keyboard 15 until the completion of the operation program.
  d) Next, the bookReference example 1In the numerical control apparatus, the processing when editing the operation program will be described in detail.
[0040]
  (i) Before starting the operation, the operator selects one (operation program) to be used for the operation from among the numerical control programs stored in the RAM 12. Then, the program number of the main program of the operation program is stored in the RAM 13 as the operation program number.
[0041]
  (ii) When the operation is started, numerical control of the device is performed according to the operation program selected in (i).
  During operation (when program editing is not performed), the display device 14 displays an operation screen as shown in FIG.
[0042]
  On the operation screen, the program number of the program being executed at that time is displayed at the top of the screen. Specifically, among the operation programs, when the main program is being executed, the program number of the main program is displayed, and when the subprogram is being executed, the program number of the subprogram is displayed.
[0043]
  In the center of the screen, a part of the operation program that is executed at that time (main program or subprogram) and that includes an execution block is displayed.
  Further, on the operation screen, a cursor 32 is displayed on the left side of the execution block.
[0044]
  During operation, the number assigned to the execution block (execution block number) is stored in the RAM 13. This execution block number is rewritten one after another as the program progresses.
  It should be noted that the execution of the operation program includes manual operation that proceeds one block each time a predetermined key is input, and automatic operation in which blocks are automatically executed one after another once execution of the operation program is started. Either method is acceptable, but manual operation is preferable because the execution block does not move during editing of the operation program.
[0045]
  (iii) To edit the operation program during operation, a predetermined key (edit start key, not shown) on the keyboard 15 is input.
  Then, the display device 14 is switched to an edit screen as shown in FIG. In the upper part of the editing screen, the program number (editing program number) of the operation program (editing program) that was being executed when the editing start key was pressed is displayed in the upper part of the operating program. The top part of the content is displayed, and the function of the control key is displayed at the bottom of the screen.
[0046]
  In addition, the edit program number is stored in the RAM 13 when the edit start key is input.
  (iv) In this editing screen, when the operator presses the execution block search key 30 (in response to the operator's instruction), the execution block executed at the time of input of the editing start key is searched for in the editing program ( (Execution block search means) and display device 14 display the contents of the editing program centered on the execution block (execution block display means). This process will be described with reference to the flowchart of FIG.
[0047]
  In step 100, the operator presses the execution block search key 30 on the editing screen.
  In step 110, it is determined whether or not the operation program number stored in the RAM 13 is the same as the editing program number stored in the RAM 13 as well.
[0048]
  That is, as described above, since the operation program number is the program number of the main program in the operation program, it is determined in this step 110 whether or not the editing program is the main program.
  If it is determined that the operation program number and the editing program number are the same, the process proceeds to step 120, and if it is determined that they are not the same, the process proceeds to step 140.
[0049]
  In step 120, the execution block is searched from the head of the editing program based on the execution block number stored in the RAM 13.
  In step 130, the part including the execution block in the editing program is displayed at the center of the screen, and the cursor 32 is displayed at the head of the execution block. The execution block is displayed in a different color from the other blocks (execution block display means).
[0050]
  On the other hand, if it is determined in step 110 that the operation program number and the editing program number are not the same, the process proceeds to step 140, and an error message “search is not possible because it is not the main program” is displayed.
  (v) After the operation program has been edited, when the operator presses the edit end key 40 (FIG. 3) at the lower left of the edit screen, the operation program is rewritten with the edited content.
[0051]
  And the display of the display apparatus 14 returns to the driving | running screen of FIG. 3, and numerical control of an apparatus is performed according to the driving | running program after editing after that.
  e) Next, bookReference example 1The effects produced by the numerical control apparatus will be described.
  BookReference example 1The numerical control device can easily and quickly search and display an execution block when it is desired to edit a portion of the execution block in the operation program during operation.
[0052]
  Therefore, the time required for editing the execution block portion during operation can be shortened.
(Reference example 2)
  a) BooksReference example 2The configuration of the numerical controller isReference example 1It is the same as the numerical control device. In the following, the aboveReference example 1The description of the same part as is omitted.
[0053]
  b) BooksReference example 2The processing executed by the numerical control device is basically the above-mentionedReference example 1This processing is almost the same as that of the numerical control device, but differs in the execution block search means. This will be specifically described below.
  BookReference example 2In the numerical control apparatus, when the edit start key is pressed during operation, the display device 14 is switched to the edit screen. In the center of the editing screen, the contents of the editing program centered on the execution block are displayed (execution block display means).
[0054]
  That is, thisReference example 2Then, when the edit start key is pressed, the execution block search means and the execution block display means are executed immediately (without pressing the execution block search key 30). That is, the execution block search means and execution block display means are executed in response to the start of program editing.
[0055]
  this bookReference example 2The processing of the execution block search means and execution block display means in FIG. 6 is shown in FIG.
  In step 200, when an edit start key (not shown) is pressed, execution block search means and execution block display means are started. The following Step 210, Step 220, Step 230, and Step 240 are the same as the above.Reference example 1Step 110, step 120, step 130, and step 140 are the same.
[0056]
  c) BooksReference example 2The effects of the numerical control device will be described.
  BookReference example 2The numerical controller of the aboveReference example 1Similarly to the numerical control apparatus, it is possible to shorten the time required for editing the execution block of the operation program during operation.
[0057]
  Especially booksReference example 2Then, when the edit start key is pressed and the display on the display device 14 is changed to the edit screen, the execution block search means and the execution block display means are immediately executed. Therefore, the time required for further editing the execution block portion during operation Can be shortened.
(Example1)
  a) This example1The configuration of the numerical controller isReference example 1It is the same as the numerical control device. In the following, the aboveReference example 1Description of the same part as is omitted.
[0058]
  b) Example1The processing executed by the numerical control device is basically the above-mentionedReference example 1This processing is almost the same as the processing of the numerical control device, but there is a difference in the execution block search means. This will be specifically described below.
  Example1In the numerical controller ofReference example 1Similarly to the above, when an edit start key (not shown) is pressed during operation, the display on the display device 14 is switched to the edit screen. When the operator presses the F1 key (execution block search key 30) on this edit screen, the block (execution block) executed at the time of input of the edit start key in the edit program is searched (execution block search means). The display device 14 displays the contents of the editing program centered on the execution block (execution block display means).
[0059]
  In particular, this example1In the numerical control apparatus, even when the editing start key is pressed while the subprogram is being executed, the execution block can be searched from the subprogram.
  Using the flowchart of FIG.1The processing of the execution block search means and execution block display means in the numerical control apparatus will be described in more detail.
[0060]
  In step 300, the operator presses the execution block search key 30 on the editing screen.
  In step 310, an execution block is searched based on the editing program number stored in the RAM 13 and the execution block number also stored in the RAM 13.
[0061]
  That is, first, the editing program (main program or subprogram) is read based on the editing program number, and then the execution block is searched from the editing program based on the execution block number.
  In step 320, the part including the execution block in the editing program is displayed at the center of the screen, and the cursor is displayed at the head of the execution block.
[0062]
  c) Next, this example1The effects produced by the numerical control apparatus will be described.
  Example1The numerical controller of the aboveReference example 1Similarly to the numerical control apparatus, it is possible to shorten the time required for editing the execution block portion of the operation program during operation.
[0063]
  In particular, this example1Since the numerical control device searches for the execution block based on the editing program number and the execution block number, the execution block is searched not only when the editing program is a main program but also when it is a subprogram. Can be displayed on the display means 14. Therefore, the time required for editing the driving program during driving can be further shortened.
(Example2)
  a) This example2The configuration of the numerical controller isReference example 1It is the same as the numerical control device. In the following, the aboveReference example 1Description of the same part as is omitted.
[0064]
  b) Example2The processing executed by the numerical control device is basically the above-mentionedReference example 1This is almost the same as the processing of the numerical controller.
  (i) However, this example2Then, a combination of predetermined blocks in the operation program can be registered in advance as a related block and a related block (related block registration means).
[0065]
  The related block and the related block refer to a combination of blocks set so that when the related block is searched as an execution block and displayed, the related block can be displayed immediately.
  As a specific method for registering the related block and the related block, first, the operator presses a predetermined key (related block registration start key, not shown). Then, the related block registration screen shown in FIG. 8 is displayed on the display device 14. On this screen, the operator can register the related block and the related block by inputting the program number and the block number of the related block and the related block, respectively.
[0066]
  This registration may be performed at any time during stoppage, operation, or editing of the numerical controller. Further, the related block and the related block may belong to the same program or different programs.
  (ii) When the operator searches for the related block registered as described above in the editing of the driving program as an execution block and displays it on the editing screen, as shown in FIG. A related block display key 34 is displayed at the lower right of the screen.
[0067]
  When the related block display key 34 is pressed, a related block corresponding to the related block (execution block) and blocks before and after the related block are displayed on the edit screen (related blocks are searched). When there are a plurality of registered related blocks, the display switches to the next related block every time the related block display key 34 is pressed.
[0068]
  The operator can change the related block called as described above by using the keyboard 15.
  c) Example2The effects of the numerical control device will be described.
  Example2The numerical controller of the aboveReference example 1Similar to the numerical control apparatus, it is possible to shorten the time required for editing the execution block portion of the operation program during operation.
[0069]
  In particular, this example2In the numerical control apparatus, the related block can be easily called from the state in which the related block is displayed as the execution block. Therefore, for example, in the driving program, blocks that are related to each other (blocks that have a relationship in which if one block is changed, the other block is changed accordingly) are registered in advance as related blocks and related blocks. Then, when the related block is changed, the related block can be called and changed continuously, so that the time required for editing the operation program can be further reduced.
(Reference example 3)
  a) BooksReference example 3The configuration of the numerical controller isReference example 1It is the same as the numerical control device. In the following, the aboveReference example 1Description of the same part as is omitted.
[0070]
  b) BooksReference example 3The processing executed by the numerical control device is basically the above-mentionedReference example 1This is almost the same as the processing of the numerical controller.
  However, the bookReference example 3In the numerical control, an order display key 36 is displayed on the editing screen as shown in FIG.
[0071]
  When the order display key 36 is pressed, the editing program blocks are displayed on the editing screen in the order of actual processing. That is, from the top to the bottom in the order in which the blocks of the editing program are actually processed while following the logic judgment (IF, THEN) included in the editing program, the instruction to jump to a specific block (GOTO), etc. Displayed (execution order display function).
[0072]
  When the order display key 36 is pressed again, the editing program blocks are returned to the normal display order.
  c) BooksReference example 3The effects of the numerical control device will be described.
  BookReference example 3The numerical controller of the aboveReference example 1Similarly to the numerical control apparatus, it is possible to shorten the time required for editing the execution block portion of the operation program during operation.
[0073]
  In particular, the bookReference example 3Since the numerical control device can display the blocks of the editing program on the editing screen in the order of execution, the operator can easily understand the editing program and can shorten the editing time. In addition, input errors in editing can be reduced.
[0074]
  In addition, this invention is not limited to said form at all, It can implement with a various form in the range which does not deviate from the summary of this invention.
  ・ Example 1-2, Reference Examples 1-3In the numerical control apparatus, the numerical control program may be composed of only the main program.
[0075]
  ・ Example 1-2, Reference Examples 1-3The numerical control apparatus can edit numerical control programs other than the operation program. For example, the operator can specify a desired numerical control program (including numerical control programs other than the operation program) by keyboard input during operation, and can edit the numerical control program.
[Brief description of the drawings]
[Figure 1]Reference example 1It is explanatory drawing which shows the structure of this numerical control apparatus.
[Figure 2]Reference example 1It is explanatory drawing which shows the structure of the numerical control program in.
[Fig. 3]Reference example 1It is explanatory drawing which shows the driving | operation screen in.
[Fig. 4]Reference example 1It is explanatory drawing which shows the edit screen.
[Figure 5]Reference example 1It is a flowchart which shows the process of the execution block search means in FIG.
[Fig. 6]Reference example 2It is a flowchart which shows the process of the execution block search means in FIG.
FIG. 7 Example1It is a flowchart which shows the process of the execution block search means in FIG.
FIG. 8 Example2It is explanatory drawing which shows the related block registration screen in.
FIG. 9 Example2It is explanatory drawing which shows the edit screen.
FIG. 10Reference example 3It is explanatory drawing which shows the edit screen.
[Explanation of symbols]
        10 ... CPU
        11 ... ROM
        12, 13 ... RAM
        14 ... Display device
        15 ... Keyboard
        16 ... Motor
        30 ... Execution block search key
        32 ... Cursor
        34 ... Related block display key
        36 ... Order display key
        40 ... Edit end key

Claims (11)

複数のブロックで構成されたプログラムに従って、数値制御による機器の運転を行うとともに、
前記運転中のプログラムと同一のプログラムを編集することができるプログラム編集手段を有する数値制御装置であって、
前記運転中に、前記プログラム編集手段を実行する場合に、その時点で実行されているブロックである実行ブロックを検索するとともに、前記実行ブロックと関連づけられた所定の関連ブロックを検索する実行ブロック検索手段を備えることを特徴とする数値制御装置。
In accordance with a program composed of multiple blocks, the device is operated by numerical control,
A numerical control device having a program editing means capable of editing the same program as the program in operation,
When executing the program editing means during the operation, the execution block search means searches for an execution block which is a block executed at that time and searches for a predetermined related block associated with the execution block. A numerical control device comprising:
前記実行ブロック検索手段は、前記ブロックに付された番号であるブロック番号に基づいて、前記実行ブロックを検索することを特徴とする前記請求項1に記載の数値制御装置。  The numerical control device according to claim 1, wherein the execution block search unit searches for the execution block based on a block number that is a number assigned to the block. 前記実行ブロック検索手段は、前記プログラム編集の開始に応じて検索を行うことを特徴とする前記請求項1又は2に記載の数値制御装置。  The numerical control apparatus according to claim 1, wherein the execution block search unit performs a search in response to the start of the program editing. 前記関連ブロックを登録する関連ブロック登録手段を備えることを特徴とする前記請求項1〜3のいずれかに記載の数値制御装置。Numerical control device according to any one of the claims 1-3, characterized in that an associated block registration means for registering the relevant block. メインプログラムと、該メインプログラムからコールされるサブプログラムとから成り、複数のブロックで構成されたプログラムに従って、数値制御による機器の運転を行うとともに、
前記運転中のプログラムと同一のプログラムを編集することができるプログラム編集手段を有する数値制御装置であって、
前記運転中に、前記プログラム編集手段を実行する場合に、その時点で実行されているブロックである実行ブロックを、前記メインプログラム及びサブプログラムにそれぞれ付された番号であるプログラム番号と、前記ブロックに付された番号であるブロック番号とに基づいて、検索する実行ブロック検索手段を備えることを特徴とする数値制御装置。
It consists of a main program and a subprogram called from the main program, and according to a program composed of a plurality of blocks, operates the device by numerical control,
A numerical control device having a program editing means capable of editing the same program as the program in operation,
When executing the program editing means during the operation, an execution block that is a block that is being executed at that time is changed to a program number that is a number assigned to each of the main program and the subprogram, and the block. A numerical control apparatus comprising: execution block search means for searching based on a block number which is a number assigned thereto.
前記実行ブロック検索手段は、前記プログラム編集の開始に応じて検索を行うことを特徴とする前記請求項5に記載の数値制御装置。6. The numerical control apparatus according to claim 5, wherein the execution block search means performs a search in response to the start of the program editing. 前記実行ブロック検索手段により検索された実行ブロックを表示する実行ブロック表示手段を備えることを特徴とする前記請求項5又は6に記載の数値制御装置。The numerical control apparatus according to claim 5 , further comprising an execution block display unit that displays an execution block searched by the execution block search unit. 前記実行ブロック表示手段は、前記実行ブロックにカーソルを付して表示することを特徴とする前記請求項7に記載の数値制御装置。  8. The numerical control apparatus according to claim 7, wherein the execution block display means displays the execution block with a cursor attached thereto. 前記実行ブロック表示手段は、前記実行ブロックを、他のブロックとは異なる色で表示することを特徴とする前記請求項7又は8に記載の数値制御装置。  The numerical control apparatus according to claim 7 or 8, wherein the execution block display means displays the execution block in a color different from that of other blocks. 複数のブロックで構成されるプログラムを用いて、機器の運転を数値制御する数値制御方法であって、
前記運転中に、前記運転に用いるプログラムと同一のプログラムを編集することができるとともに、
前記運転中に、前記プログラムの編集を行う場合に、その時点で実行されているブロックである実行ブロックとともに、前記実行ブロックと関連づけられた所定の関連ブロックを検索することができることを特徴とする数値制御方法。
A numerical control method for numerically controlling the operation of a device using a program composed of a plurality of blocks,
During the operation, you can edit the same program as the program used for the operation,
When editing the program during the operation, it is possible to search for a predetermined related block associated with the execution block together with an execution block which is a block currently being executed. Control method.
メインプログラムと、該メインプログラムからコールされるサブプログラムとから成り、複数のブロックで構成されたプログラムを用いて、機器の運転を数値制御する数値制御方法であって、A numerical control method that consists of a main program and a subprogram called from the main program, and numerically controls the operation of the device using a program composed of a plurality of blocks,
前記運転中に、前記運転に用いるプログラムと同一のプログラムを編集することができるとともに、  During the operation, you can edit the same program as the program used for the operation,
前記運転中に、前記プログラム編集手段を実行する場合に、その時点で実行されているブロックである実行ブロックを、前記メインプログラム及びサブプログラムにそれぞれ付された番号であるプログラム番号と、前記ブロックに付された番号であるブロック番号と  When the program editing means is executed during the operation, an execution block which is a block executed at that time is changed to a program number which is a number assigned to each of the main program and the sub program, and the block. The block number which is the number に基づいて、検索することができることを特徴とする数値制御方法。A numerical control method characterized by being able to search based on the above.
JP2002046563A 2002-02-22 2002-02-22 Numerical control apparatus and numerical control method Expired - Lifetime JP3873773B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002046563A JP3873773B2 (en) 2002-02-22 2002-02-22 Numerical control apparatus and numerical control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002046563A JP3873773B2 (en) 2002-02-22 2002-02-22 Numerical control apparatus and numerical control method

Publications (2)

Publication Number Publication Date
JP2003248507A JP2003248507A (en) 2003-09-05
JP3873773B2 true JP3873773B2 (en) 2007-01-24

Family

ID=28659925

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002046563A Expired - Lifetime JP3873773B2 (en) 2002-02-22 2002-02-22 Numerical control apparatus and numerical control method

Country Status (1)

Country Link
JP (1) JP3873773B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015207135A (en) * 2014-04-21 2015-11-19 村田機械株式会社 Machine tool, program searching method, and control program
JP6693988B2 (en) * 2018-03-22 2020-05-13 ファナック株式会社 Processing program editing device
JP7328475B1 (en) * 2023-02-13 2023-08-16 ファナック株式会社 Machining program management device and computer-readable storage medium

Also Published As

Publication number Publication date
JP2003248507A (en) 2003-09-05

Similar Documents

Publication Publication Date Title
US6290403B1 (en) Sequence program execution control system
JP3873773B2 (en) Numerical control apparatus and numerical control method
JPH07311612A (en) Method and device for editing machining program of numerical controller
JP2003075472A (en) Servo information waveform displaying method and display using the same
KR100339699B1 (en) Embroidery machine that has a working save function and embroidery control method of it
JPS61173842A (en) Numerical control device
JPH10244437A (en) Automatic cutting lubricant feeding device for machine tool
JP4474371B2 (en) Data storage method for injection molding machine
JPH03219305A (en) Multi-piece layout specification system
JPH10113836A (en) Cutting tool checking method and device used for nc machine tool
JP3170154B2 (en) SFC program development equipment
JP7130157B1 (en) Numerical controller
JP5007801B2 (en) NC program editing device
JPH077839U (en) Numerical control device
JPH0264711A (en) Method for monitoring set-up procedure of interactive system
JP4261710B2 (en) NC machining equipment
JPH1049210A (en) Numerically controlled electric discharge machine with operation checking function
JPH08168581A (en) Sewing device
JPH09319419A (en) Processing method for working graphic
JP2001137580A (en) System of recovering sewing start point of automatic embroidering machine
JPH0852290A (en) Embroidering device for sewing machine
JPH04305703A (en) Method for starting working program for interactive numerical controller
JP2000051554A (en) Controller for embroidery sewing machine
JPS62162141A (en) Program setting device for control equipment
JP2004220362A (en) Interlock diagnosis display method of numerical control system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040721

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060710

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060718

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060831

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20061003

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061016

R150 Certificate of patent or registration of utility model

Ref document number: 3873773

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091102

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101102

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101102

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111102

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111102

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121102

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131102

Year of fee payment: 7

EXPY Cancellation because of completion of term