JPH1055209A - Working program processing method in numerical controller and numerical controller - Google Patents

Working program processing method in numerical controller and numerical controller

Info

Publication number
JPH1055209A
JPH1055209A JP21246796A JP21246796A JPH1055209A JP H1055209 A JPH1055209 A JP H1055209A JP 21246796 A JP21246796 A JP 21246796A JP 21246796 A JP21246796 A JP 21246796A JP H1055209 A JPH1055209 A JP H1055209A
Authority
JP
Japan
Prior art keywords
machining program
check
tool
syntax error
date
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
JP21246796A
Other languages
Japanese (ja)
Inventor
Seiichiro Horie
誠一郎 堀江
Hiroshi Katano
宏 片野
Tomomitsu Niwa
友光 丹羽
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP21246796A priority Critical patent/JPH1055209A/en
Publication of JPH1055209A publication Critical patent/JPH1055209A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To accelerate a processing speed of a numerical controller by checking a working program only in the case that a check of a working program is required. SOLUTION: A working program syntax error check necessity judgment processing means 22 decides a necessity of a syntax error check of a working program based on information relating to a check completion of a syntax check of a working program. A working program syntax error check processing means 5 executes a syntax error check only in the case that the syntax error check of the working program is required by the judged result. Then, a tool interference check necessity judgment processing means 24 decides a necessity of a tool interference check of the working program based on the information relating to the tool interference check completion of the working program and a tool interference check processing means 8 executes the tool interference check only in the case that the tool interference check is required by the judged result.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、数値制御装置に
おける加工プログラム処理方法及び数値制御装置に関
し、特に加工プログラムのチェック機能を有する数値制
御装置における加工プログラム処理方法及び数値制御装
置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a machining program processing method and a numerical controller in a numerical controller, and more particularly to a machining program processing method and a numerical controller in a numerical controller having a function of checking a machining program.

【0002】[0002]

【従来の技術】図6は加工プログラムのチェック機能
(手段)を有する従来の数値制御装置を示している。こ
の数値制御装置1は、加工プログラムを一つのファイル
として格納する加工プログラムファイルメモリ2と、加
工プログラムファイルメモリ2より加工プログラムを読
み込む加工プログラムファイル読込み処理手段3と、加
工プログラム読込み処理手段3が読み込んだ加工プログ
ラムの構文を解析する加工プログラム構文解析処理手段
4および構文のエラーチェックを行う加工プログラム構
文エラーチェック処理手段5と、加工プログラム構文解
析処理手段4より加工プログラムの構文の解析データを
与えられ、工具の移動量を計算する工具移動量計算処理
手段6と、工具の移動量などを画面表示する表示部7
と、工具移動量計算処理手段6が計算した工具移動量に
基づいて工具、機械、素材の干渉をチェックする工具干
渉チェック処理手段8と、工具移動量計算処理手段6が
計算した工具移動量の信号を工作機械100の駆動部1
01へ出力する移動量出力処理手段9とを有している。
2. Description of the Related Art FIG. 6 shows a conventional numerical controller having a machining program check function (means). The numerical control device 1 includes a machining program file memory 2 that stores a machining program as one file, a machining program file reading processing unit 3 that reads a machining program from the machining program file memory 2, and a machining program read processing unit 3 that reads the machining program. The machining program syntax analysis processing means 4 for analyzing the syntax of the machining program, the machining program syntax error check processing means 5 for checking syntax errors, and the machining program syntax analysis processing means 4 are provided with analysis data of the syntax of the machining program. Tool movement amount calculation processing means 6 for calculating the movement amount of the tool, and a display unit 7 for displaying the movement amount of the tool on the screen.
Tool interference check processing means 8 for checking the interference between the tool, the machine, and the material based on the tool movement calculated by the tool movement calculation processing means 6, and the tool movement calculated by the tool movement calculation processing means 6. The drive unit 1 of the machine tool 100
01, and a movement amount output processing means 9 for outputting the movement amount to the first position.

【0003】数値制御装置1は、加工プログラムのプロ
グラミングのために、キーボード等の操作部10による
入力により加工プログラムを作成、編集する加工プログ
ラム作成・編集処理手段11と、工具関連データを設
定、編集する工具関連データ設定・編集処理手段12と
を有しており、加工プログラム作成・編集処理手段11
によって作成、編集された加工プログラムは加工プログ
ラムファイルメモリ2に格納され、工具関連データ設定
・編集処理手段12によって設定、編集された工具関連
データは工具関連データファイルメモリ13に格納され
る。
The numerical control device 1 includes a machining program creation / edit processing means 11 for creating and editing a machining program by input from an operation unit 10 such as a keyboard for programming the machining program, and setting and editing of tool-related data. Tool-related data setting / editing processing means 12
The machining program created and edited by this is stored in the machining program file memory 2, and the tool-related data set and edited by the tool-related data setting / editing processing means 12 is stored in the tool-related data file memory 13.

【0004】つぎに図7のフローチャートを参照して従
来の数値制御装置1の動作手順を説明する。
Next, an operation procedure of the conventional numerical controller 1 will be described with reference to a flowchart of FIG.

【0005】先ず、加工プログラムファイル作成・編集
処理手段11を使用してユーザにより加工プログラムの
作成、編集を行う(ステップS10)。次に工具関連デ
ータ設定・編集処理手段12を使用してユーザにより工
具関連データの設定、編集を行う(ステップS20)。
なお、工具関連データが既に設定されていて変更する必
要がない場合にはステップS20における工具関連デー
タ設定・編集は省略される。
First, a machining program is created and edited by a user using the machining program file creation / edit processing means 11 (step S10). Next, the user sets and edits the tool-related data using the tool-related data setting / editing processing means 12 (step S20).
If the tool-related data has already been set and does not need to be changed, the setting and editing of the tool-related data in step S20 is omitted.

【0006】工具経路チェックを行う場合には(ステッ
プS30肯定)、加工プログラムファイル読込み処理手
段3によって加工プログラムを読込み(ステップS4
0)、加工プログラム構文解析処理手段4によって加工
プログラムの構文解析を行い(ステップS50)、加工
プログラム構文エラーチェック処理手段5によって加工
プログラムの構文エラーチェックを行う(ステップS6
0)。
If a tool path check is to be performed (Yes at step S30), the machining program is read by the machining program file reading processing means 3 (step S4).
0), the syntax of the machining program is analyzed by the machining program syntax analysis means 4 (step S50), and the syntax error of the machining program is checked by the machining program syntax error check processing means 5 (step S6).
0).

【0007】構文エラーチェックの結果が不適(NG)
の場合には(ステップS70否定)、加工プログラムの
変更のためにステップS10に戻る。これに対し、構文
エラーチェックの結果が適正(OK)の場合には(ステ
ップS70肯定)、工具移動量計算処理手段6によって
工具の移動量を計算し(ステップS80)、この計算結
果に基づく工具の移動量、工具経路を表示部7に出力、
表示する(ステップS90)。
[0007] The result of the syntax error check is inappropriate (NG)
In the case of (No at Step S70), the process returns to Step S10 to change the machining program. On the other hand, if the result of the syntax error check is proper (OK) (Yes at step S70), the tool movement amount is calculated by the tool movement amount calculation processing means 6 (step S80), and the tool based on the calculation result is used. The movement amount of the tool and the tool path are output to the display unit 7,
It is displayed (step S90).

【0008】工具経路チェックの適否判定はユーザが表
示部7の画面表示を目視等で確認することにより行わ
れ、工具経路チェックの結果が不適(NG)の場合には
(ステップS100否定)、加工プログラムの変更のた
めにステップS10に戻り、これに対し、工具経路チェ
ックの結果が適正(OK)の場合には(ステップS10
0肯定)にはルーチンを終了する。
[0008] The appropriateness of the tool path check is determined by the user visually confirming the screen display on the display unit 7. If the result of the tool path check is inappropriate (NG) (No at step S100), the machining is performed. The process returns to step S10 to change the program. On the other hand, if the result of the tool path check is appropriate (OK) (step S10
If the result is "0", the routine ends.

【0009】試加工を行う場合には(ステップS110
肯定)、工具経路チェック時と同様に、加工プログラム
ファイル読込み処理手段3によって加工プログラムを読
込み(ステップS120)、加工プログラム構文解析処
理手段4によって加工プログラムの構文解析を行い(ス
テップS130)、加工プログラム構文エラーチェック
処理手段5によって加工プログラムの構文エラーチェッ
クを行う(ステップS140)。
In the case of performing trial machining (step S110)
Affirmative), as in the tool path check, the machining program is read by the machining program file reading processing means 3 (step S120), and the syntax of the machining program is analyzed by the machining program syntax analysis processing means 4 (step S130). A syntax error check of the machining program is performed by the syntax error check processing means 5 (step S140).

【0010】構文エラーチェックの結果が不適(NG)
の場合には(ステップS150否定)、加工プログラム
の変更のためにステップS10に戻る。これに対し、構
文エラーチェックの結果が適正(OK)の場合には(ス
テップS150肯定)、工具移動量計算処理手段6によ
って工具の移動量を計算し(ステップS160)、この
計算結果と工具関連データファイルメモリ13の工具関
連データとに基づいて工具干渉チェック処理手段8によ
り工具干渉チェックを行う(ステップS170)。工具
干渉チェックは、指定工具を算出された移動量だけ動か
しても、工具が機械や素材に干渉しないかを演算処理に
よりチェックすることである。
[0010] The result of the syntax error check is inappropriate (NG)
In the case of (No at Step S150), the process returns to Step S10 to change the machining program. On the other hand, if the result of the syntax error check is proper (OK) (Yes at step S150), the tool movement amount is calculated by the tool movement amount calculation processing means 6 (step S160), and the calculation result and the tool related value are calculated. A tool interference check is performed by the tool interference check processing means 8 based on the tool-related data in the data file memory 13 (step S170). The tool interference check is to check by arithmetic processing whether the tool does not interfere with the machine or the material even if the designated tool is moved by the calculated movement amount.

【0011】工具干渉チェックの結果が不適(NG)の
場合には(ステップS180否定)、加工プログラムや
工具関連データの変更のためにステップS10、ステッ
プS20に戻り、これに対し、工具干渉チェックの結果
が適正(OK)の場合には、工具移動量をマシンロック
状態で表示部7へ出力、表示する(ステップS19
0)。
If the result of the tool interference check is inappropriate (NG) (No at Step S180), the process returns to Steps S10 and S20 to change the machining program and the tool-related data. If the result is appropriate (OK), the tool moving amount is output and displayed on the display unit 7 in the machine locked state (step S19).
0).

【0012】試加工の適否判定はユーザが表示部7の画
面表示を目視等で確認することにより行われ、試加工の
結果が不適(NG)の場合には(ステップS200否
定)、加工プログラムや工具関連データの変更のために
ステップS10、ステップS20に戻り、これに対し、
試加工の結果が適正(OK)の場合には(ステップS2
00肯定)にはルーチンを終了する。
The determination of the suitability of the trial machining is performed by the user visually confirming the screen display on the display unit 7. If the result of the trial machining is not appropriate (NG) (No at step S200), the machining program or Return to step S10 and step S20 for changing the tool-related data.
If the result of the trial machining is appropriate (OK) (step S2
(00 affirmation), the routine is ended.

【0013】実加工を行う場合には(ステップS110
否定)、試加工時と同様に、加工プログラムファイル読
込み処理手段3によって加工プログラムを読込み(ステ
ップS210)、加工プログラム構文解析処理手段4に
よって加工プログラムの構文解析を行い(ステップS2
20)、加工プログラム構文エラーチェック処理手段5
によって加工プログラムの構文エラーチェックを行う
(ステップS230)。
When performing actual machining (step S110)
No), as in the trial machining, the machining program is read by the machining program file read processing means 3 (step S210), and the syntax of the machining program is analyzed by the machining program syntax analysis processing means 4 (step S2).
20), machining program syntax error check processing means 5
Then, a syntax error check of the machining program is performed (step S230).

【0014】構文エラーチェックの結果が不適(NG)
の場合には(ステップS240否定)、加工プログラム
の変更のためにステップS10に戻る。これに対し、構
文エラーチェックの結果が適正(OK)の場合には(ス
テップS240肯定)、工具移動量計算処理手段6によ
って工具の移動量を計算し(ステップS250)、この
計算結果と工具関連データファイルメモリ13の工具
関連データとに基づいて工具干渉チェック処理手段8に
より工具干渉チェックを行う(ステップS260)。
The result of the syntax error check is inappropriate (NG)
In the case of (No at Step S240), the process returns to Step S10 to change the machining program. On the other hand, if the result of the syntax error check is proper (OK) (Yes at step S240), the tool movement amount is calculated by the tool movement amount calculation processing means 6 (step S250), and the calculation result and the tool relation are calculated. A tool interference check is performed by the tool interference check processing means 8 based on the tool-related data in the data file memory 13 (step S260).

【0015】工具干渉チェックの結果が不適(NG)の
場合には(ステップS270否定)、加工プログラムや
工具関連データの変更のためにステップS10、ステッ
プS20に戻り、これに対し、工具干渉チェックの結果
が適正(OK)の場合には(ステップS270肯定)、
機械運転のために工具移動量を駆動部101へ出力する
(ステップS280)。
If the result of the tool interference check is inappropriate (NG) (No at Step S270), the process returns to Steps S10 and S20 to change the machining program and tool-related data. If the result is appropriate (OK) (Yes at step S270),
The tool moving amount is output to the drive unit 101 for the machine operation (step S280).

【0016】[0016]

【発明が解決しようとする課題】加工プログラムの構文
エラーチェックや工具干渉チェックは、加工プログラ
ム、工具関連データが変更されない限り、一度実施され
れば、再度行われる必要がないが、しかし、従来の数値
制御装置では、加工プログラムの構文解析の度に構文エ
ラーチェックが実施され、また移動量計算の度に工具干
渉チェックが実施される。
The syntax error check and the tool interference check of the machining program need not be performed again once executed unless the machining program and the tool-related data are changed. In the numerical controller, a syntax error check is performed each time a syntax analysis of a machining program is performed, and a tool interference check is performed each time a movement amount is calculated.

【0017】このため、加工プログラム、工具関連デー
タが変更されない場合の2回目以降の加工プログラムの
構文エラーチェックや工具干渉チェックは冗長で、それ
らチェックに要する時間は全て無駄時間になり、数値制
御装置の処理速度を遅らせることになる。
For this reason, the syntax error check and the tool interference check of the second and subsequent machining programs when the machining program and the tool-related data are not changed are redundant, and the time required for these checks is wasted time. Will slow down the processing speed.

【0018】この発明は、上述の如き問題点に着目して
なされたものであり、加工プログラム、工具関連データ
が変更されない限り、加工プログラムの構文エラーチェ
ックや工具干渉チェックが一度実施されれば、2回目以
降の加工プログラムの構文エラーチェックや工具干渉チ
ェックが無駄に行われることを自動的に省略し、数値制
御装置の処理速度を向上させることができる数値制御装
置における加工プログラム処理方法及び数値制御装置を
提供することを目的としている。
The present invention has been made in view of the above-mentioned problems. As long as the machining program and the tool-related data are not changed, the syntax error check and the tool interference check of the machining program are performed once. A machining program processing method and a numerical control in a numerical control device that can automatically omit wasteful checking of syntax errors and tool interference checks of the second and subsequent machining programs and improve the processing speed of the numerical control device. It is intended to provide a device.

【0019】[0019]

【課題を解決するための手段】上述の目的を達成するた
めに、この発明による数値制御装置における加工プログ
ラム処理方法は、加工プログラムのチェック機能を有す
る数値制御装置における加工プログラム処理方法におい
て、加工プログラムのチェックの実行によりチェック済
みに関する情報を保有し、この情報に基づいて加工プロ
グラムのチェックの要否を判定し、この判定結果により
加工プログラムのチェックが必要な場合にのみ加工プロ
グラムのチェックの実行するものである。
In order to achieve the above object, a processing program processing method in a numerical control device according to the present invention is directed to a processing program processing method in a numerical control device having a processing program check function. The information on the checked status is held by executing the check, and the necessity of the check of the machining program is determined based on this information, and the check of the machining program is executed only when the check of the machining program is necessary based on the determination result. Things.

【0020】この発明による数値制御装置における加工
プログラム処理方法では、加工プログラムのチェックが
必要な場合にのみ加工プログラムのチェックが行われ、
チェック済みの場合には、加工プログラムのチェックが
重複して無駄に行われることが回避される。
In the machining program processing method in the numerical controller according to the present invention, the machining program is checked only when the machining program needs to be checked.
In the case where the check has been made, it is avoided that the check of the machining program is redundantly performed in vain.

【0021】つぎの発明による数値制御装置における加
工プログラム処理方法は、上述の数値制御装置における
加工プログラム処理方法において、チェック済みに関す
る情報は加工プログラムの構文エラーチェックの実施日
時と加工プログラム作成・編集日時を示す情報であり、
構文エラーチェックの実施日時と加工プログラム作成・
編集日時との比較により構文エラーチェックの要否を判
定するものである。
According to the machining program processing method of the numerical control device according to the next invention, in the above-described machining program processing method of the numerical control device, the information relating to the checked status is the execution date and time of the syntax error check of the machining program and the creation date and time of the machining program. Is information indicating
Execution date of syntax error check and creation of machining program
It is determined whether or not a syntax error check is necessary by comparing with the editing date and time.

【0022】この発明による数値制御装置における加工
プログラム処理方法では、構文エラーチェックの実施日
時と加工プログラム作成・編集日時との比較により構文
エラーチェックの要否判定が行われる。この場合、構文
エラーチェックの実施日時が加工プログラム作成・編集
日時より後の日時であれば、構文エラーチェックが必要
で、そうでない場合には、チェック済みで、構文エラー
チェックが不要であると、単純明解に判定することがで
きる。
In the machining program processing method in the numerical controller according to the present invention, the necessity of the syntax error check is determined by comparing the execution date and time of the syntax error check with the creation program / edit date and time of the machining program. In this case, if the execution date of the syntax error check is later than the machining program creation / edit date and time, a syntax error check is necessary. Otherwise, the check is completed and the syntax error check is unnecessary. It can be determined simply.

【0023】つぎの発明による数値制御装置における加
工プログラム処理方法は、上述の数値制御装置における
加工プログラム処理方法において、チェック済みに関す
る情報は加工プログラムの工具干渉チェックの実施日時
と工具関連データ設定・変更日時とを示す情報であり、
工具干渉チェックの実施日時と工具関連データ設定・変
更日時との比較により工具干渉チェックの要否を判定す
るものである。
According to the machining program processing method in the numerical control device according to the next invention, in the above-described machining program processing method in the numerical control device, the information on the checked state is the execution date and time of the tool interference check of the machining program and the setting / change of the tool-related data. Information indicating the date and time,
The necessity of the tool interference check is determined by comparing the execution date and time of the tool interference check and the tool related data setting / change date and time.

【0024】この発明による数値制御装置における加工
プログラム処理方法では、工具干渉チェックの実施日時
と工具関連データ設定・変更日時との比較により工具干
渉チェックの要否判定が行われる。この場合、工具干渉
チェックの実施日時が工具関連データの設定・変更日時
より後の日時であれば、構文エラーチェックが必要で、
そうでない場合にはチェック済みで、構文エラーチェッ
クが不要であると、単純明解に判定することができる。
In the machining program processing method in the numerical controller according to the present invention, the necessity of the tool interference check is determined by comparing the execution date and time of the tool interference check with the date and time of setting and changing the tool-related data. In this case, if the execution date and time of the tool interference check is later than the date and time of setting and changing the tool-related data, a syntax error check is required.
Otherwise, it has already been checked, and it can be simply determined that syntax error checking is unnecessary.

【0025】つぎの発明による数値制御装置における加
工プログラム処理方法は、上述の数値制御装置における
加工プログラム処理方法において、チェックの要否判定
に用いる情報を加工プログラムファイルとは別の情報フ
ァイルに記録するものである。
According to the machining program processing method in the numerical control device according to the next invention, in the machining program processing method in the numerical control device described above, information used for determining whether or not a check is necessary is recorded in an information file different from the machining program file. Things.

【0026】この発明による数値制御装置における加工
プログラム処理方法では、チェックの要否判定に用いる
情報が加工プログラムファイルとは別の情報ファイルに
記録され、加工プログラムファイルが冗長なものになる
ことがない。
In the machining program processing method in the numerical controller according to the present invention, the information used for determining the necessity of the check is recorded in an information file different from the machining program file, and the machining program file does not become redundant. .

【0027】つぎの発明による数値制御装置における加
工プログラム処理方法は、上述の数値制御装置における
加工プログラム処理方法において、チェックの要否判定
に用いる情報を加工プログラムのコメントとして書き込
むものである。
In the machining program processing method in the numerical control device according to the next invention, in the above-described machining program processing method in the numerical control device, information used for judging the necessity of the check is written as a comment of the machining program.

【0028】この発明による数値制御装置における加工
プログラム処理方法では、チェックの要否判定に用いる
情報が加工プログラムのコメントとして書き込まれ、別
の情報ファイルを必要としない。
In the machining program processing method in the numerical control device according to the present invention, information used for determining whether or not a check is necessary is written as a comment of the machining program, and does not require another information file.

【0029】また上述の目的を達成するために、この発
明による数値制御装置は、加工プログラムの構文エラー
チェックを行う構文エラーチェック処理手段を有する数
値制御装置において、加工プログラムの構文エラーチェ
ックのチェック済みに関する情報に基づいて加工プログ
ラムの構文エラーチェックの要否を判定する構文エラー
チェック要否判定処理手段を有し、前記構文エラーチェ
ック処理手段は前記構文エラーチェック要否判定処理手
段による判定結果により加工プログラムのチェックが必
要な場合にのみ構文エラーチェックを実行するものであ
る。
According to another aspect of the present invention, there is provided a numerical controller having a syntax error check processing unit for checking a syntax error of a machining program. Syntax error check necessity determination processing means for determining the necessity of a syntax error check of the machining program based on the information on the The syntax error check is executed only when the program needs to be checked.

【0030】この発明による数値制御装置では、チェッ
ク要否判定処理手段が加工プログラムの構文エラーチェ
ックのチェック済みに関する情報に基づいて加工プログ
ラムの構文エラーチェックの要否を判定し、この判定結
果により加工プログラムの構文エラーチェックが必要な
場合にのみ構文エラーチェック処理手段が構文エラーチ
ェックを行う。
In the numerical controller according to the present invention, the check necessity determination processing means determines whether the syntax error check of the machining program is necessary or not based on the information on the completion of the syntax error check of the machining program. The syntax error check processing means performs a syntax error check only when a syntax error check of the program is necessary.

【0031】つぎの発明による数値制御装置は、上述の
数値制御装置において、チェック済みに関する情報は加
工プログラムの構文エラーチェックの実施日時と加工プ
ログラム作成・編集日時とを示す情報であり、前記構文
エラーチェック要否判定処理手段は構文エラーチェック
の実施日時と加工プログラム作成・編集日時との比較に
より構文エラーチェックの要否を判定するものである。
In the numerical control device according to the next invention, in the numerical control device described above, the information on the checked status is information indicating a date and time of execution of a syntax error check of the machining program and a date and time of creation / editing of the machining program. The check necessity determination processing means determines whether or not the syntax error check is necessary by comparing the execution date and time of the syntax error check and the processing program creation / edit date and time.

【0032】この発明による数値制御装置では、構文エ
ラーチェック要否判定処理手段は構文エラーチェックの
実施日時と加工プログラム作成・編集日時との比較によ
り構文エラーチェックの要否を判定する。この場合、構
文エラーチェックの実施日時が加工プログラム作成・編
集日時より後の日時であれば、構文エラーチェックが必
要で、そうでない場合には、チェック済みで、構文エラ
ーチェックが不要であると、単純明解に判定することが
できる。
In the numerical controller according to the present invention, the syntax error check necessity determination processing means determines whether the syntax error check is necessary by comparing the execution date and time of the syntax error check with the date and time of creation and editing of the machining program. In this case, if the execution date of the syntax error check is later than the machining program creation / edit date and time, a syntax error check is necessary. Otherwise, the check is completed and the syntax error check is unnecessary. It can be determined simply.

【0033】つぎの発明による数値制御装置は、上述の
数値制御装置において、加工プログラムの工具干渉チェ
ックを行う工具干渉チェック処理手段を有する数値制御
装置において、加工プログラムの工具干渉チェックのチ
ェック済みに関する情報に基づいて加工プログラムの工
具干渉チェックの要否を判定する工具干渉チェック要否
判定処理手段を有し、前記工具干渉チェック処理手段は
前記工具干渉チェック要否判定処理手段による判定結果
により工具干渉チェックが必要な場合にのみ工具干渉チ
ェックを実行するものである。
The numerical control apparatus according to the next invention is the above-mentioned numerical control apparatus, wherein the numerical control apparatus has a tool interference check processing means for performing a tool interference check of a machining program. Tool interference check necessity determination processing means for judging the necessity of a tool interference check of a machining program based on the tool interference check necessity determination processing means. Is executed only when it is necessary.

【0034】この発明による数値制御装置では、工具干
渉チェック要否判定処理手段が加工プログラムの工具干
渉チェックのチェック済みに関する情報に基づいて加工
プログラムの工具干渉チェックの要否を判定し、この判
定結果により加工プログラムのチェックが必要な場合に
のみ工具干渉チェック処理手段が工具干渉チェックを行
う。
In the numerical controller according to the present invention, the tool interference check necessity determination processing means determines whether the tool interference check of the machining program is necessary or not based on the information on the checked tool interference check of the machining program. Therefore, the tool interference check processing means performs the tool interference check only when it is necessary to check the machining program.

【0035】つぎの発明による数値制御装置は、上述の
数値制御装置において、チェック済みに関する情報は加
工プログラムの工具干渉チェックの実施日時と工具関連
データ設定・変更日時とを示す情報であり、前記工具干
渉チェック要否判定処理手段は工具干渉チェックの実施
日時と工具関連データ設定・変更日時との比較により工
具干渉チェックの要否を判定するものである。
In the numerical control device according to the next invention, in the above-mentioned numerical control device, the information on the checked state is information indicating a date and time of execution of a tool interference check of a machining program and a date and time of setting and changing tool-related data. The interference check necessity determination processing means determines the necessity of the tool interference check by comparing the execution date and time of the tool interference check with the tool related data setting / change date and time.

【0036】この発明による数値制御装置では、工具干
渉チェック要否判定処理手段は工具干渉チェックの実施
日時と工具関連データ設定・変更日時との比較により工
具干渉チェックの要否を判定する。この場合、工具干渉
チェックの実施日時が工具関連データ設定・変更日時よ
り後の日時であれば、工具干渉チェックが必要で、そう
でない場合にはチェック済みで、工具干渉チェックが不
要であると、単純明解に判定することができる。
In the numerical control apparatus according to the present invention, the tool interference check necessity determination processing means determines whether the tool interference check is necessary by comparing the execution date and time of the tool interference check and the tool related data setting / change date and time. In this case, if the execution date and time of the tool interference check is a date and time after the tool related data setting / change date and time, the tool interference check is required, otherwise, it is checked and the tool interference check is not required. It can be determined simply.

【0037】つぎの発明による数値制御装置は、上述の
数値制御装置において、チェックの要否判定に用いる情
報を記録される情報ファイルを加工プログラムファイル
とは別に有しているものである。
A numerical control device according to the next invention is the above-described numerical control device, wherein an information file for recording information used to determine whether or not a check is required is provided separately from the machining program file.

【0038】この発明による数値制御装置では、チェッ
クの要否判定に用いる情報が加工プログラムファイルと
は別の情報ファイルに記録され、加工プログラムファイ
ルが冗長なものになることがない。
In the numerical control device according to the present invention, the information used to determine the necessity of the check is recorded in an information file different from the machining program file, and the machining program file does not become redundant.

【0039】つぎの発明による数値制御装置は、上述の
数値制御装置において、チェックの要否判定に用いる情
報を加工プログラムのコメントとして書き込むものであ
る。
A numerical control device according to the next invention is a numerical control device according to the above-described numerical control device, in which information used for judging the necessity of a check is written as a comment of a machining program.

【0040】この発明による数値制御装置では、チェッ
クの要否判定に用いる情報が加工プログラムのコメント
として書き込まれ、別の情報ファイルを必要としない。
In the numerical controller according to the present invention, the information used for determining whether or not the check is necessary is written as a comment of the machining program, and does not require another information file.

【0041】[0041]

【発明の実施の形態】以下に添付の図を参照してこの発
明の実施の形態を詳細に説明する。なお、以下に説明す
るこの発明の実施の形態において上述の従来例と同一構
成の部分は、上述の従来例に付した符号と同一の符号を
付してその説明を省略する。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings. In the embodiments of the present invention described below, the same components as those of the above-described conventional example are denoted by the same reference numerals as those of the above-described conventional example, and description thereof will be omitted.

【0042】図1はこの発明による数値制御装置の一つ
の実施の形態を示している。
FIG. 1 shows an embodiment of a numerical controller according to the present invention.

【0043】この発明による数値制御装置は、図7に示
されている従来の数値制御装置の構成要件に加えて、加
工プログラム情報ファイルを格納する加工プログラム情
報ファイルメモリ21と、加工プログラム構文エラーチ
ェック要否判定処理手段22と、工具関連データ情報フ
ァイルを格納する工具関連データ情報ファイルメモリ2
3と、工具干渉チェック要否判定処理手段24とを有し
ている。
The numerical controller according to the present invention has a machining program information file memory 21 for storing a machining program information file and a machining program syntax error check in addition to the components of the conventional numerical controller shown in FIG. Necessity determination processing means 22 and a tool-related data information file memory 2 for storing a tool-related data information file
3 and a tool interference check necessity determination processing means 24.

【0044】加工プログラム情報ファイルメモリ21に
格納される加工プログラム情報ファイルは、図2に例示
されていように、加工プログラム番号と、加工プログラ
ムファイル作成・編集日時(加工プログラムファイル作
成・編集を行った日時で更新されるタイムスタンプ)
と、構文エラーチェック実施日時(構文エラーチェック
を実施した日時で更新されるタイムスタンプ)と、工具
干渉チェック実施日時(工具干渉チェックを実施した日
時で更新されるタイムスタンプ)の各々をデータフィル
ドとするデータファイルであり、加工プログラム番号を
検索キーとして、加工プログラムファイル作成・編集日
時、構文エラーチェック実施日時、工具干渉チェック実
施日時を読み出すことができる。
As shown in FIG. 2, the machining program information file stored in the machining program information file memory 21 includes a machining program number, a machining program file creation / edit date and time (the machining program file creation / edit Timestamp updated with date and time)
And the syntax error check execution date and time (the time stamp updated with the date and time when the syntax error check was performed) and the tool interference check execution date and time (the time stamp updated with the date and time when the tool interference check was performed) as data fields. This is a data file to be executed, and the date and time of creation and editing of the machining program file, the date and time of execution of a syntax error check, and the date and time of execution of a tool interference check can be read using the machining program number as a search key.

【0045】加工プログラム構文エラーチェック要否判
定処理手段22は、加工プログラムの構文エラーチェッ
クのチェック済みに関する情報に基づいて加工プログラ
ムの構文エラーチェックの要否を判定するものであり、
加工プログラム構文エラーチェック処理手段5は加工プ
ログラム構文エラーチェック要否判定処理手段22によ
る判定結果により加工プログラムの構文エラーチェック
が必要な場合にのみ構文エラーチェックを実行する。
The processing program syntax error check necessity determination processing means 22 determines the necessity of the processing program syntax error check based on the information on the checked syntax error check of the processing program.
The machining program syntax error check processing means 5 executes a syntax error check only when a syntax error check of the machining program is required based on the determination result by the machining program syntax error check necessity determination processing means 22.

【0046】この場合のチェック済みに関する情報は、
加工プログラム情報ファイルメモリ21に格納される加
工プログラム情報ファイルに記録されている加工プログ
ラムの構文エラーチェックの実施日時と加工プログラム
作成・編集日時を示す情報であり、加工プログラム構文
エラーチェック要否判定処理手段22は、構文エラーチ
ェックの実施日時と加工プログラム作成・編集日時との
比較により、構文エラーチェックの実施日時が加工プロ
グラム作成・編集日時より後の日時であれば、構文エラ
ーチェックが必要で、そうでない場合には、チェック済
みで、構文エラーチェックが不要であると判定する。
In this case, the information on the checked status is
Information indicating the execution date and time of the syntax error check of the machining program and the creation and editing date of the machining program recorded in the machining program information file stored in the machining program information file memory 21. The means 22 compares the execution date and time of the syntax error check with the creation and editing date and time of the machining program, and if the execution date and time of the syntax error check is later than the creation and editing date and time of the machining program, the syntax error check is necessary. Otherwise, it is already checked and it is determined that syntax error checking is unnecessary.

【0047】工具関連データ情報ファイルメモリ23に
格納される工具関連データ情報ファイルには、図3に示
されているように、工具関連データを設定、変更した日
時で更新されるタイムスタンプによる工具関連データ設
定・変更日時が記録、保存される。
As shown in FIG. 3, the tool-related data information file stored in the tool-related data information file memory 23 stores the tool-related data with a time stamp updated with the date and time when the tool-related data is set and changed. Data setting / change date and time are recorded and saved.

【0048】工具干渉チェック要否判定処理手段24
は、加工プログラムの工具干渉チェックのチェック済み
に関する情報に基づいて加工プログラムの工具干渉チェ
ックの要否を判定し、工具干渉チェック処理手段8は工
具干渉チェック要否判定処理手段24による判定結果に
より工具干渉チェックが必要な場合にのみ工具干渉チェ
ックを実行する。
Tool interference check necessity determination processing means 24
Determines the necessity of the tool interference check of the machining program on the basis of the information on the checked tool interference check of the machining program. Execute tool interference check only when interference check is necessary.

【0049】この場合のチェック済みに関する情報は、
加工プログラム情報ファイルメモリ21に格納される加
工プログラム情報ファイルに記録されている加工プログ
ラムの工具干渉チェックの実施日時と、工具関連データ
情報ファイルメモリ23に格納される工具関連データ情
報ファイルに記録されている工具関連データ設定・変更
日時を示す情報であり、工具干渉チェック要否判定処理
手段24は工具干渉チェックの実施日時と工具関連デー
タ設定・変更日時との比較により、工具干渉チェックの
実施日時が工具関連データ設定・変更日時より後の日時
であれば、構文エラーチェックが必要で、そうでない場
合にはチェック済みで、構文エラーチェックが不要であ
る判定する。
In this case, the information on the checked status is
The execution date and time of the tool interference check of the machining program recorded in the machining program information file stored in the machining program information file memory 21 and the tool-related data information file stored in the tool-related data information file memory 23 The tool interference check necessity determination processing means 24 compares the tool interference check execution date and time with the tool-related data setting / change date and time to determine the tool interference check execution date and time. If the date and time is after the tool-related data setting / change date and time, a syntax error check is required. Otherwise, it is determined that the syntax error check is not required and the syntax error check is unnecessary.

【0050】つぎに図4に示されているフローチャート
を参照してこの発明による数値制御装置の動作手順(加
工プログラム処理手順)を説明する。なお、図4に示さ
れているフローチャートが図7に示されているフローチ
ャートと相違点は、ステップS15、ステップS25、
ステップS55、ステップS75、ステップS135、
ステップS155、ステップS165、ステップS18
5、ステップS225、ステップS245、ステップS
255、ステップS275が追加されたことである。こ
の追加のステップ以外のステップは図7に付けたステッ
プ番号と同じステップ番号を付けてその説明を省略す
る。
Next, the operation procedure (processing program processing procedure) of the numerical controller according to the present invention will be described with reference to the flowchart shown in FIG. The difference between the flowchart shown in FIG. 4 and the flowchart shown in FIG.
Step S55, step S75, step S135,
Step S155, Step S165, Step S18
5, Step S225, Step S245, Step S
255 is that step S275 is added. Steps other than the additional steps are given the same step numbers as those given in FIG. 7 and their description is omitted.

【0051】加工プログラムの作成、編集が行われると
(ステップS10)、この時の加工プログラム作成・編
集日時を加工プログラム情報ファイルメモリ21に格納
されている加工プログラム情報ファイルに記録し(ステ
ップS15)、また工具関連データの設定、編集が行わ
れると(ステップS20)、この時の工具関連データ設
定・変更日時を工具関連データ情報ファイルメモリ23
に格納されている工具関連データ情報ファイルに記録す
る(ステップS25)。
When the machining program is created and edited (step S10), the date and time at which the machining program was created and edited is recorded in the machining program information file stored in the machining program information file memory 21 (step S15). When the setting and editing of the tool-related data are performed (step S20), the tool-related data setting / change date and time at this time are stored in the tool-related data information file memory 23.
(Step S25).

【0052】工具経路チェックでは、加工プログラム構
文エラーチェック(ステップS60)の実行に先立って
加工プログラム構文エラーチェック要否判定処理手段2
2により加工プログラムの構文エラーチェックの要否を
判定する(ステップS55)。この場合、加工プログラ
ム構文エラーチェック要否判定処理手段22は加工プロ
グラム情報ファイルメモリ21に格納されている加工プ
ログラム情報ファイルに記録されている構文エラーチェ
ックの実施日時と加工プログラム作成・編集日時との比
較により、構文エラーチェックの実施日時が加工プログ
ラム作成・編集日時より後の日時であれば、構文エラー
チェックが必要で、そうでない場合には、チェック済み
で、構文エラーチェックが不要であると判定する。
In the tool path check, prior to the execution of the machining program syntax error check (step S60), the machining program syntax error check necessity determination processing means 2 is performed.
Then, it is determined whether or not a syntax error check of the machining program is necessary (Step S55). In this case, the processing program syntax error check necessity determination processing means 22 determines the execution date and time of the syntax error check recorded in the processing program information file stored in the processing program information file memory 21 and the processing program creation / edit date and time. By comparison, if the execution date and time of the syntax error check is later than the date and time when the machining program was created / edited, a syntax error check is necessary; otherwise, it has been checked and it is determined that a syntax error check is unnecessary. I do.

【0053】構文エラーチェックが不要であると判定さ
れれば(ステップS55否定)、不要な構文エラーチェ
ックが繰り返し実行されることを回避すべくステップS
80へジャンプする。
If it is determined that the syntax error check is unnecessary (No at Step S55), Step S is performed to avoid the unnecessary execution of the unnecessary syntax error check.
Jump to 80.

【0054】これに対し、構文エラーチェックが必要な
場合には(ステップS55肯定)、ステップS60へ進
んで加工プログラム構文エラーチェックを行い、構文エ
ラーチェックがOKの場合には(ステップS70肯
定)、加工プログラム情報ファイルメモリ21に格納さ
れている加工プログラム情報ファイルの構文エラーチェ
ック実施日時を更新する(ステップS75)。
On the other hand, if a syntax error check is necessary (Yes at step S55), the process proceeds to step S60 to perform a machining program syntax error check. If the syntax error check is OK (step S70 affirmation), The syntax error check execution date and time of the machining program information file stored in the machining program information file memory 21 is updated (step S75).

【0055】試し加工においても、加工プログラム構文
エラーチェック(ステップS140)の実行に先立って
加工プログラム構文エラーチェック要否判定処理手段2
2により加工プログラムの構文エラーチェックの要否を
判定する(ステップS135)。この場合も、加工プロ
グラム構文エラーチェック要否判定処理手段22は加工
プログラム情報ファイルメモリ21に格納されている加
工プログラム情報ファイルに記録されている構文エラー
チェックの実施日時と加工プログラム作成・編集日時と
の比較により、構文エラーチェックの実施日時が加工プ
ログラム作成・編集日時より後の日時であれば、構文エ
ラーチェックが必要で、そうでない場合には、チェック
済みで、構文エラーチェックが不要であると判定する。
Also in the trial machining, prior to the execution of the machining program syntax error check (step S140), the machining program syntax error check necessity determination processing means 2 is performed.
Then, it is determined whether or not a syntax error check of the machining program is necessary (Step S135). Also in this case, the processing program syntax error check necessity determination processing means 22 determines the execution date and time of the syntax error check recorded in the machining program information file stored in the machining program information file memory 21 and the machining program creation / edit date and time. According to the comparison, if the execution date and time of the syntax error check is later than the date and time when the machining program was created / edited, the syntax error check is required. Otherwise, the syntax error check is completed and the syntax error check is unnecessary. judge.

【0056】構文エラーチェックが不要であると判定さ
れれば(ステップS125否定)、不要な構文エラーチ
ェックが繰り返し実行されることを回避すべくステップ
S160へジャンプする。
If it is determined that the syntax error check is unnecessary (No at Step S125), the process jumps to Step S160 to prevent the unnecessary syntax error check from being repeatedly executed.

【0057】これに対し、構文エラーチェックが必要な
場合には(ステップS125肯定)、ステップS140
へ進んで加工プログラム構文エラーチェックを行い、構
文エラーチェックがOKの場合には(ステップS150
肯定)、加工プログラム情報ファイルメモリ21に格納
されている加工プログラム情報ファイルの構文エラーチ
ェック実施日時を更新する(ステップS155)。
On the other hand, if a syntax error check is required (Yes at Step S125), Step S140 is performed.
The processing proceeds to step S150, where a machining program syntax error check is performed. If the syntax error check is OK (step S150)
Affirmative), the syntax error check execution date and time of the machining program information file stored in the machining program information file memory 21 is updated (step S155).

【0058】また工具干渉チェック(ステップS17
0)の実行に先立って工具干渉チェック要否判定処理手
段24により工具干渉チェックの要否を判定する(ステ
ップS165)。工具干渉チェック要否判定処理手段2
4は加工プログラム情報ファイルメモリ21に格納され
ている加工プログラム情報ファイルに記録されている工
具干渉チェックの実施日時と工具関連データ情報ファイ
ルメモリ23に格納されている工具関連データ情報ファ
イルに記録されている工具関連データ設定・変更日時と
の比較により、工具干渉チェックの実施日時が工具関連
データ設定・変更日時より後の日時であれば、工具干渉
チェックが必要で、そうでない場合には、チェック済み
で、工具干渉チェックが不要であると判定する。
Also, a tool interference check (step S17)
Prior to the execution of 0), the necessity of the tool interference check is determined by the tool interference check necessity determination processing means 24 (step S165). Tool interference check necessity determination processing means 2
Reference numeral 4 denotes the execution date of the tool interference check recorded in the machining program information file stored in the machining program information file memory 21 and the tool-related data information file stored in the tool-related data information file memory 23. Compared with the tool-related data setting / change date and time, if the tool collision check execution date and time is later than the tool-related data setting / change date and time, the tool collision check is required. It is determined that the tool interference check is unnecessary.

【0059】工具干渉チェックが不要であると判定され
れば(ステップS165否定)、不要な工具干渉チェッ
クが繰り返し実行されることを回避すべくステップS1
90へジャンプする。
If it is determined that the tool interference check is unnecessary (No at Step S165), Step S1 is performed to prevent the unnecessary tool interference check from being repeatedly executed.
Jump to 90.

【0060】これに対し、工具干渉チェックが必要な場
合には(ステップS165肯定)、ステップS170へ
進んで工具干渉チェックを行い、工具干渉チェックがO
Kの場合には(ステップS180肯定)、加工プログラ
ム情報ファイルメモリ21に格納されている加工プログ
ラム情報ファイルの工具干渉チェック実施日時を更新す
る(ステップS185)。
On the other hand, if a tool interference check is necessary (Yes at Step S165), the process proceeds to Step S170 to perform a tool interference check.
In the case of K (Yes at step S180), the tool interference check execution date and time of the machining program information file stored in the machining program information file memory 21 is updated (step S185).

【0061】また実加工においても、試加工時と同様
に、加工プログラム構文エラーチェック(ステップS2
30)の実行に先立って加工プログラム構文エラーチェ
ック要否判定処理手段22により加工プログラムの構文
エラーチェックの要否を判定する(ステップS22
5)。この場合も、加工プログラム構文エラーチェック
要否判定処理手段22は加工プログラム情報ファイルメ
モリ21に格納されている加工プログラム情報ファイル
に記録されている構文エラーチェックの実施日時と加工
プログラム作成・編集日時との比較により、構文エラー
チェックの実施日時が加工プログラム作成・編集日時よ
り後の日時であれば、構文エラーチェックが必要で、そ
うでない場合には、チェック済みで、構文エラーチェッ
クが不要であると判定する。
In the actual machining, as in the trial machining, a machining program syntax error check is performed (step S2).
Prior to the execution of 30), the processing program syntax error check necessity determination processing means 22 determines whether or not the processing program syntax error check is necessary (step S22).
5). Also in this case, the processing program syntax error check necessity determination processing means 22 determines the execution date and time of the syntax error check recorded in the machining program information file stored in the machining program information file memory 21 and the machining program creation / edit date and time. According to the comparison, if the execution date and time of the syntax error check is later than the date and time when the machining program was created / edited, the syntax error check is required. Otherwise, the syntax error check is completed and the syntax error check is unnecessary. judge.

【0062】構文エラーチェックが不要であると判定さ
れれば(ステップS225否定)、要な構文エラーチェ
ックが繰り返し実行されることを回避すべくステップS
250へジャンプする。
If it is determined that the syntax error check is unnecessary (No at Step S225), Step S is performed to prevent the necessary syntax error check from being repeatedly executed.
Jump to 250.

【0063】これに対し、構文エラーチェックが必要な
場合には(ステップS225肯定)、ステップS230
へ進んで加工プログラム構文エラーチェックを行い、構
文エラーチェックがOKの場合には(ステップS240
肯定)、加工プログラム情報ファイルメモリ21に格納
されている加工プログラム情報ファイルの構文エラーチ
ェック実施日時を更新する(ステップS245)。
On the other hand, if a syntax error check is necessary (Yes at Step S225), Step S230 is performed.
To check the machining program syntax error, and if the syntax error check is OK (step S240)
Affirmative), the syntax error check execution date and time of the machining program information file stored in the machining program information file memory 21 is updated (step S245).

【0064】また工具干渉チェック(ステップS26
0)の実行に先立って工具干渉チェック要否判定処理手
段24により工具干渉チェックの要否を判定する(ステ
ップS255)。工具干渉チェック要否判定処理手段2
4は加工プログラム情報ファイルメモリ21に格納され
ている加工プログラム情報ファイルに記録されている工
具干渉チェックの実施日時と工具関連データ情報ファイ
ルメモリ23に格納されている工具関連データ情報ファ
イルに記録されている工具関連データ設定・変更日時と
の比較により、工具干渉チェックの実施日時が工具関連
データ設定・変更日時より後の日時であれば、工具干渉
チェックが必要で、そうでない場合には、チェック済み
で、工具干渉チェックが不要であると判定する。
Further, a tool interference check (step S26)
Prior to the execution of 0), the necessity of the tool interference check is determined by the tool interference check necessity determination processing means 24 (step S255). Tool interference check necessity determination processing means 2
Reference numeral 4 denotes the execution date and time of the tool interference check recorded in the machining program information file stored in the machining program information file memory 21 and the tool-related data information file stored in the tool-related data information file memory 23. Compared with the tool-related data setting / change date and time, if the tool collision check execution date and time is later than the tool-related data setting / change date and time, the tool collision check is required. It is determined that the tool interference check is unnecessary.

【0065】工具干渉チェックが不要であると判定され
れば(ステップS255否定)、不要な工具干渉チェッ
クが繰り返し実行されることを回避すべくステップS2
80へジャンプする。
If it is determined that the tool interference check is unnecessary (No at Step S255), Step S2 is performed to prevent the unnecessary tool interference check from being repeatedly executed.
Jump to 80.

【0066】これに対し、工具干渉チェックが必要な場
合には(ステップS255肯定)、ステップS260へ
進んで工具干渉チェックを行い、工具干渉チェックがO
Kの場合には(ステップS270肯定)、加工プログラ
ム情報ファイルメモリ21に格納されている加工プログ
ラム情報ファイルの工具干渉チェック実施日時を更新す
る(ステップS275)。
On the other hand, if a tool interference check is necessary (Yes at step S255), the process proceeds to step S260 to perform a tool interference check.
In the case of K (Yes at Step S270), the tool interference check execution date and time of the machining program information file stored in the machining program information file memory 21 is updated (Step S275).

【0067】上述のような処理により、加工プログラ
ム、工具関連データが変更されない限り、加工プログラ
ムの構文エラーチェックや工具干渉チェックが一度実施
されれば、2回目以降の加工プログラムの構文エラーチ
ェックや工具干渉チェックが無駄に行われることが自動
的に省略され、数値制御装置の処理速度が向上するよう
になる。
As long as the machining program and the tool-related data are not changed by the processing described above, once the syntax error check and the tool interference check of the machining program are performed once, the syntax error check and the tool of the second and subsequent machining programs are performed. The useless execution of the interference check is automatically omitted, and the processing speed of the numerical controller is improved.

【0068】実加工の前プロセスとして行われる試加工
によって加工プログラムの構文エラーチェックや工具干
渉チェックが一度実施され、多くの場合、試加工より実
加工へ移行する時に加工プログラムや工具関連データが
変更されることがなく、加工プログラムや工具関連デー
タが変更されれば、再度、試加工が行われるから、実加
工時における加工プログラムの構文エラーチェックや工
具干渉チェックが省略される可能性が高いから、特に実
加工時における数値制御装置の処理速度が、ハードウェ
ア資源に関係なく、効果的に向上するようになる。
A syntax error check and a tool interference check of the machining program are performed once by the trial machining performed as a process before the actual machining, and in many cases, the machining program and the tool-related data are changed when shifting from the trial machining to the actual machining. If the machining program or tool-related data is changed without being performed, the trial machining is performed again, so there is a high possibility that the syntax error check and tool interference check of the machining program during actual machining will be omitted. In particular, the processing speed of the numerical controller during actual machining can be effectively improved regardless of hardware resources.

【0069】なお、上述の実施の形態では、加工プログ
ラム情報ファイルメモリ21に格納される加工プログラ
ム情報ファイルに、加工プログラムファイル作成・編集
日時、構文エラーチェック実施日時、工具干渉チェック
実施日時を記録するようにしたが、これらチェックの要
否判定に用いる情報は図5に例示されているように、加
工プログラムのコメント*として書き込み、これによっ
てチェックの要否判定を行うこともできる。なお、図5
において、”*MAKE”は加工プログラムファイル作
成・編集日時を、”*A_CHECK”は構文エラーチ
ェック実施日時を、”*B_CHECK”は工具干渉チ
ェック実施日時を各々示している。
In the above-described embodiment, the date and time of creation and editing of the machining program file, the date and time of execution of the syntax error check, and the date and time of execution of the tool interference check are recorded in the machining program information file stored in the machining program information file memory 21. However, as shown in FIG. 5, the information used for the determination of the necessity of the check can be written as a comment * of the machining program, thereby determining the necessity of the check. FIG.
In the table, "* MAKE" indicates the date and time when the machining program file was created and edited, "* A_CHECK" indicates the date and time when the syntax error check was performed, and "* B_CHECK" indicates the date and time when the tool interference check was performed.

【0070】[0070]

【発明の効果】以上の説明から理解される如く、この発
明による数値制御装置における加工プログラム処理方法
によれば、加工プログラムのチェックが必要な場合にの
み加工プログラムのチェックが行われ、チェック済みの
場合には、加工プログラムのチェックが重複して無駄に
行われることが回避されるから、数値制御装置の処理速
度が向上する。このことにより加工プログラムのチェッ
クを従来に比してより詳細に厳格に行うことも可能にな
る。
As will be understood from the above description, according to the machining program processing method in the numerical controller according to the present invention, the machining program is checked only when the machining program needs to be checked, and the checked machining program is checked. In this case, the processing speed of the numerical control device is improved because the redundant check of the machining program is avoided. This makes it possible to check the machining program more strictly and strictly than before.

【0071】つぎの発明による数値制御装置における加
工プログラム処理方法によれば、構文エラーチェックの
実施日時と加工プログラムの作成・編集を行った日時と
の比較によって構文エラーチェックの要否判定が単純明
解に行われる。
According to the machining program processing method in the numerical controller according to the next invention, the necessity of the syntax error check can be determined simply by comparing the execution date and time of the syntax error check with the date and time when the machining program was created and edited. Done in

【0072】つぎの発明による数値制御装置における加
工プログラム処理方法によれば、工具干渉チェックの実
施日時と工具関連データの設定・変更を行った日時との
比較によって工具干渉チェックの要否判定が単純明解に
行われる。
According to the machining program processing method in the numerical controller according to the next invention, the necessity of the tool interference check can be determined simply by comparing the execution date and time of the tool interference check with the date and time when the setting and change of the tool related data are performed. It is done clearly.

【0073】つぎの発明による数値制御装置における加
工プログラム処理方法によれば、チェックの要否判定に
用いる情報が加工プログラムファイルとは別の情報ファ
イルに記録され、加工プログラムファイルが冗長なもの
になることがない。
According to the machining program processing method in the numerical control device according to the next invention, information used to determine whether or not a check is necessary is recorded in an information file different from the machining program file, and the machining program file becomes redundant. Nothing.

【0074】つぎの発明による数値制御装置における加
工プログラム処理方法によれば、チェックの要否判定に
用いる情報が加工プログラムのコメントとして書き込ま
れ、別の情報ファイルを必要としない。
According to the processing program processing method in the numerical control device according to the next invention, information used for determining whether or not a check is necessary is written as a comment of the processing program, and another information file is not required.

【0075】つぎの発明による数値制御装置によれば、
チェック要否判定処理手段が加工プログラムの構文エラ
ーチェックのチェック済みに関する情報に基づいて加工
プログラムの構文エラチェックの要否を判定し、この判
定結果により加工プログラムのチェックが必要な場合に
のみ構文エラーチェック処理手段が構文エラーチェック
を行うから、加工プログラムの構文エラーチェックが重
複して無駄に行われることが回避され、数値制御装置の
処理速度が向上する。このことにより加工プログラムの
構文エラーチェックを従来に比してより詳細に厳格に行
うことも可能になる。
According to the numerical controller according to the next invention,
The check necessity determination processing means determines whether the syntax error check of the machining program is necessary based on the information on the check of the syntax error check of the machining program, and the syntax error is generated only when the machining program needs to be checked based on the determination result. Since the check processing means performs a syntax error check, it is possible to prevent the syntax error check of the machining program from being redundantly performed in vain, thereby improving the processing speed of the numerical controller. This makes it possible to check the syntax error of the machining program in more detail and strictly than before.

【0076】つぎの発明による数値制御装置によれば、
構文エラーチェック要否判定処理手段は構文エラーチェ
ックの実施日時と加工プログラムの作成・編集を行った
日時との比較により構文エラーチェックの要否を判定す
るから、この判定が単純明解に行われる。
According to the numerical controller according to the next invention,
The syntax error check necessity determination processing means determines the necessity of a syntax error check by comparing the execution date and time of the syntax error check with the date and time of creating and editing the machining program, so that this determination is made simply and clearly.

【0077】つぎの発明による数値制御装置によれば、
工具干渉チェック要否判定処理手段が加工プログラムの
工具干渉チェックのチェック済みに関する情報に基づい
て加工プログラムの工具干渉チェックの要否を判定し、
この判定結果により加工プログラムのチェックが必要な
場合にのみ工具干渉チェック処理手段が工具干渉チェッ
クを行うから、工具干渉チェックが重複して無駄に行わ
れることが回避され、数値制御装置の処理速度が向上す
る。このことにより工具干渉チェックを従来に比してよ
り詳細に厳格に行うことも可能になる。
According to the numerical controller according to the next invention,
The tool interference check necessity determination processing means determines the necessity of the tool interference check of the machining program based on the information on the checked tool interference check of the machining program,
The tool interference check processing means performs the tool interference check only when the machining program needs to be checked based on the result of the determination, so that the tool interference check is prevented from being redundantly and wastefully performed, and the processing speed of the numerical controller is reduced. improves. As a result, the tool interference check can be performed in more detail and strictly as compared with the related art.

【0078】つぎの発明による数値制御装置によれば、
工具干渉チェック要否判定処理手段が工具干渉チェック
の実施日時と工具関連データの設定・変更を行った日時
との比較により工具干渉チェックの要否を判定するか
ら、この判定が単純明解に行われる。
According to the numerical controller according to the next invention,
Since the tool interference check necessity determination processing means determines the necessity of the tool interference check by comparing the execution date and time of the tool interference check with the date and time of setting and changing the tool-related data, this determination is performed simply and clearly. .

【0079】つぎの発明による数値制御装置によれば、
チェックの要否判定に用いる情報が加工プログラムファ
イルとは別の情報ファイルに記録されるから、加工プロ
グラムファイルが冗長なものになることがない。
According to the numerical controller according to the next invention,
Since the information used to determine the necessity of the check is recorded in an information file different from the machining program file, the machining program file does not become redundant.

【0080】つぎの発明による数値制御装置によれば、
チェックの要否判定に用いる情報が加工プログラムのコ
メントとして書き込まれるから、別の情報ファイルを必
要としない。
According to the numerical controller according to the next invention,
Since the information used to determine the necessity of the check is written as a comment of the machining program, another information file is not required.

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

【図1】 この発明による数値制御装置の一つの実施の
形態を示すブロック線図である。
FIG. 1 is a block diagram showing one embodiment of a numerical controller according to the present invention.

【図2】 加工プログラム情報ファイルのデータ構成を
示す説明図である。
FIG. 2 is an explanatory diagram showing a data configuration of a machining program information file.

【図3】 工具関連データ情報ファイルのデータ構成を
示す説明図である。
FIG. 3 is an explanatory diagram showing a data configuration of a tool-related data information file.

【図4】 この発明による数値制御装置の動作手順(加
工プログラム処理手順)を示すフローチャートである。
FIG. 4 is a flowchart showing an operation procedure (processing program processing procedure) of the numerical control device according to the present invention.

【図5】 この発明による数値制御装置で使用される加
工プログラム例を示す説明図である。
FIG. 5 is an explanatory diagram showing an example of a machining program used in the numerical control device according to the present invention.

【図6】 従来の数値制御装置を示すブロック線図であ
る。
FIG. 6 is a block diagram showing a conventional numerical control device.

【図7】 従来の数値制御装置の動作手順を示すフロー
チャートである。
FIG. 7 is a flowchart showing an operation procedure of a conventional numerical control device.

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

1 数値制御装置,2 加工プログラムファイルメモ
リ,3 加工プログラムファイル読込み処理手段,4
加工プログラム構文解析処理手段,5 加工プログラム
構文エラーチェック処理手段 6 工具移動量計算処理
手段,7 表示部,8 工具干渉チェック処理手段,9
工移動量出力処理手段,10 操作部,11 加工
プログラム作成・編集処理手段,12 工具関連データ
設定・編集処理手段,13 工具関連データファイルメ
モリ,21 加工プログラム情報ファイルメモリ,22
加工プログラム構文エラーチェック要否判定処理手
段,23 工具関連データ情報ファイルメモリ23,2
4 工具干渉チェック要否判定処理手段,100 工作
機械,101 駆動部
DESCRIPTION OF SYMBOLS 1 Numerical control apparatus, 2 Processing program file memory, 3 Processing program file reading processing means, 4
Machining program syntax analysis processing means, 5 Machining program syntax error check processing means 6 Tool movement amount calculation processing means, 7 Display unit, 8 Tool interference check processing means, 9
Processing amount output processing means, 10 operation unit, 11 processing program creation / edit processing means, 12 tool-related data setting / edit processing means, 13 tool-related data file memory, 21 processing program information file memory, 22
Machining program syntax error check necessity judgment processing means, 23 Tool-related data information file memory 23, 2
4 Tool interference check necessity determination processing means, 100 machine tool, 101 drive unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 丹羽 友光 東京都千代田区丸の内二丁目2番3号 三 菱電機株式会社内 ────────────────────────────────────────────────── ─── Continued on the front page (72) Inventor Tomitsu Niwa 2-3-2 Marunouchi, Chiyoda-ku, Tokyo Inside Mitsubishi Electric Corporation

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 加工プログラムのチェック機能を有する
数値制御装置における加工プログラム処理方法におい
て、 加工プログラムのチェックの実行によりチェック済みに
関する情報を保有し、この情報に基づいて加工プログラ
ムのチェックの要否を判定し、この判定結果により加工
プログラムのチェックが必要な場合にのみ加工プログラ
ムのチェックの実行することを特徴とする数値制御装置
における加工プログラム処理方法。
1. A method of processing a machining program in a numerical control device having a function of checking a machining program, the method comprising: executing a check of the machining program to retain information on the completion of the machining program, and determining whether the machining program needs to be checked based on the information. A method for processing a machining program in a numerical control device, comprising: making a determination and executing a check of the machining program only when a check of the machining program is necessary based on the result of the determination.
【請求項2】 請求項1に記載の数値制御装置における
加工プログラム処理方法において、 チェック済みに関する情報は加工プログラムの構文エラ
ーチェックの実施日時と加工プログラム作成・編集日時
を示す情報であり、構文エラーチェックの実施日時と加
工プログラム作成・編集日時との比較により構文エラー
チェックの要否を判定することを特徴とする数値制御装
置における加工プログラム処理方法。
2. The machining program processing method in the numerical control device according to claim 1, wherein the information on the checked status is information indicating a date and time of execution of a syntax error check of the machining program and a date and time of creating / editing the machining program. A method of processing a machining program in a numerical control device, comprising determining whether or not a syntax error check is necessary by comparing the date and time of execution of the check with the date and time of creating and editing a machining program.
【請求項3】 請求項1に記載の数値制御装置における
加工プログラム処理方法において、 チェック済みに関する情報は加工プログラムの工具干渉
チェックの実施日時と工具関連データ設定・変更日時を
示す情報であり、工具干渉チェックの実施日時と工具関
連データ設定・変更日時との比較により工具干渉チェッ
クの要否を判定することを特徴とする数値制御装置にお
ける加工プログラム処理方法。
3. The machining program processing method in the numerical control device according to claim 1, wherein the information regarding the checked status is information indicating a date and time of execution of a tool interference check of the machining program and a date and time of setting and changing tool-related data. A machining program processing method in a numerical control device, comprising determining whether or not a tool interference check is necessary by comparing the execution date and time of the interference check with the tool related data setting / change date and time.
【請求項4】 請求項1〜3の何れかに記載の数値制御
装置における加工プログラム処理方法において、 チェックの要否判定に用いる情報を加工プログラムファ
イルとは別の情報ファイルに記録することを特徴とする
数値制御装置における加工プログラム処理方法。
4. A machining program processing method in a numerical control device according to claim 1, wherein information used for judging the necessity of the check is recorded in an information file different from the machining program file. A processing program processing method in a numerical controller.
【請求項5】 請求項1〜3の何れかに記載の数値制御
装置における加工プログラム処理方法において、 チェックの要否判定に用いる情報を加工プログラムのコ
メントとして書き込むことを特徴とする数値制御装置に
おける加工プログラム処理方法。
5. A machining program processing method in a numerical control device according to claim 1, wherein information used for determination of necessity of a check is written as a comment of the machining program. Processing program processing method.
【請求項6】 加工プログラムの構文エラーチェックを
行う構文エラーチェック処理手段を有する数値制御装置
において、 加工プログラムの構文エラーチェックのチェック済みに
関する情報に基づいて加工プログラムの構文エラーチェ
ックの要否を判定する構文エラーチェック要否判定処理
手段を有し、 前記構文エラーチェック処理手段は前記構文エラーチェ
ック要否判定処理手段による判定結果により加工プログ
ラムの構文エラーチェックが必要な場合にのみ構文エラ
ーチェックを実行することを特徴とする数値制御装置。
6. A numerical control device having a syntax error check processing unit for checking a syntax error of a machining program, wherein it is determined whether or not a syntax error check of the machining program is necessary based on information on the checked syntax error check of the machining program. Syntax error check necessity determination processing means, and the syntax error check processing means executes a syntax error check only when a syntax error check of the machining program is necessary based on the determination result by the syntax error check necessity determination processing means. Numerical control device characterized by doing.
【請求項7】 請求項6に記載の数値制御装置におい
て、 チェック済みに関する情報は加工プログラムの構文エラ
ーチェックの実施日時と加工プログラム作成・編集日時
を示す情報であり、前記構文エラーチェック要否判定処
理手段は構文エラーチェックの実施日時と加工プログラ
ム作成・編集日時との比較により構文エラーチェックの
要否を判定することを特徴とする数値制御装置。
7. The numerical controller according to claim 6, wherein the information on the checked status is information indicating a date and time of execution of a syntax error check of the machining program and a date and time of creation / editing of the machining program, and the determination as to whether or not the syntax error check is necessary. A numerical control device, wherein the processing means determines whether or not a syntax error check is necessary by comparing the execution date and time of the syntax error check with the date and time of creation and editing of the machining program.
【請求項8】 加工プログラムの工具干渉チェックを行
う工具干渉チェック処理手段を有する数値制御装置にお
いて、 加工プログラムの工具干渉チェックのチェック済みに関
する情報に基づいて加工プログラムの工具干渉チェック
の要否を判定する工具干渉チェック要否判定処理手段を
有し、 前記工具干渉チェック処理手段は前記工具干渉チェック
要否判定処理手段による判定結果により工具干渉チェッ
クが必要な場合にのみ工具干渉チェックを実行すること
を特徴とする数値制御装置。
8. A numerical control device having a tool interference check processing means for performing a tool interference check of a machining program, wherein a necessity of the tool interference check of the machining program is determined on the basis of information on the checked tool interference check of the machining program. Tool interference check necessity determination processing means, and the tool interference check processing means executes the tool interference check only when the tool interference check is necessary based on the determination result by the tool interference check necessity determination processing means. Numerical control unit characterized.
【請求項9】 請求項8に記載の数値制御装置におい
て、 チェック済みに関する情報は加工プログラムの工具干渉
チェックの実施日時と工具関連データ設定・変更日時を
示す情報であり、前記工具干渉チェック要否判定処理手
段は工具干渉チェックの実施日時と工具関連データ設定
・変更日時との比較により工具干渉チェックの要否を判
定することを特徴とする数値制御装置における加工プロ
グラム処理方法。
9. The numerical controller according to claim 8, wherein the information on the checked status is information indicating the date and time of execution of the tool interference check of the machining program and the date and time of setting and changing the tool-related data. A processing program processing method in a numerical control device, wherein the determination processing means determines whether or not the tool interference check is necessary by comparing the execution date and time of the tool interference check and the tool related data setting / change date and time.
【請求項10】 請求項6〜9の何れかに記載の数値制
御装置において、 チェックの要否判定に用いる情報を記録される情報ファ
イルを加工プログラムファイルとは別に有していること
を特徴とする数値制御装置。
10. The numerical control device according to claim 6, wherein an information file for recording information used for determining whether or not a check is required is provided separately from the machining program file. Numerical control device.
【請求項11】 請求項6〜9の何れかに記載の数値制
御装置において、 チェックの要否判定に用いる情報を加工プログラムのコ
メントとして書き込むことを特徴とする数値制御装置。
11. The numerical control device according to claim 6, wherein information used for judging the necessity of the check is written as a comment of the machining program.
JP21246796A 1996-08-12 1996-08-12 Working program processing method in numerical controller and numerical controller Pending JPH1055209A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21246796A JPH1055209A (en) 1996-08-12 1996-08-12 Working program processing method in numerical controller and numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21246796A JPH1055209A (en) 1996-08-12 1996-08-12 Working program processing method in numerical controller and numerical controller

Publications (1)

Publication Number Publication Date
JPH1055209A true JPH1055209A (en) 1998-02-24

Family

ID=16623135

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21246796A Pending JPH1055209A (en) 1996-08-12 1996-08-12 Working program processing method in numerical controller and numerical controller

Country Status (1)

Country Link
JP (1) JPH1055209A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010015509A (en) * 2008-07-07 2010-01-21 Mori Seiki Co Ltd Machining program checking apparatus
DE102014215738A1 (en) 2013-08-12 2015-02-12 Dmg Mori Seiki Co., Ltd. STÖRUNGSPRÜFVORRICHTUNG
US9229443B2 (en) 2009-12-15 2016-01-05 Yamazaki Mazak Corporation Numerical control machine tool
WO2022224388A1 (en) * 2021-04-21 2022-10-27 ファナック株式会社 Numerical control device and computer-readable storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010015509A (en) * 2008-07-07 2010-01-21 Mori Seiki Co Ltd Machining program checking apparatus
US9229443B2 (en) 2009-12-15 2016-01-05 Yamazaki Mazak Corporation Numerical control machine tool
DE102014215738A1 (en) 2013-08-12 2015-02-12 Dmg Mori Seiki Co., Ltd. STÖRUNGSPRÜFVORRICHTUNG
JP2015036833A (en) * 2013-08-12 2015-02-23 Dmg森精機株式会社 Interference confirmation device
CN104375456A (en) * 2013-08-12 2015-02-25 Dmg森精机株式会社 Interference Checking Device
US9651938B2 (en) 2013-08-12 2017-05-16 Dmg Mori Seiki Co., Ltd. Interference checking device
CN104375456B (en) * 2013-08-12 2018-09-25 Dmg森精机株式会社 Interference confirms device
WO2022224388A1 (en) * 2021-04-21 2022-10-27 ファナック株式会社 Numerical control device and computer-readable storage medium

Similar Documents

Publication Publication Date Title
JPH1055209A (en) Working program processing method in numerical controller and numerical controller
CN108829027A (en) Execute program creating method and its device, medium, terminal
CN108693836A (en) Information processing unit
US5113359A (en) Method for selecting inputs for a pc in which a ladder program is simulated
US10048678B2 (en) Numerical controller
JPH02151908A (en) Numerical controller with simulation function
KR100205337B1 (en) N.c program simulation device and method
JP2018180736A (en) Information processing unit
JPH10247142A (en) System and method for programming process control program
JP2000089813A (en) Working program editing method and controller for machine tool
JP4747632B2 (en) 3D CAD modeling method, program and apparatus for mixing feature-based parametric modeling and direct modeling
JP2875135B2 (en) Program device for programmable controller
JP3660038B2 (en) Numerical controller
JP3083552B2 (en) Hierarchy editing processor
WO2022185712A1 (en) Program editing device and program
JP3216629B2 (en) Numerical control unit
JP3696906B2 (en) Data input method and apparatus
JPH0358202A (en) Numerical controller with simulation function
JPH05250221A (en) Simulator execution system
JPH0659929A (en) Computer device
JPH04148305A (en) Edited part confirming system
JPH04367029A (en) Programming device for programmable controller
JPH01291307A (en) Working program generating system
JP2011048492A (en) Program creation support device, creation support method, and creation support program
JPH0394307A (en) Numerical controller