JPH1153016A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPH1153016A
JPH1153016A JP21356897A JP21356897A JPH1153016A JP H1153016 A JPH1153016 A JP H1153016A JP 21356897 A JP21356897 A JP 21356897A JP 21356897 A JP21356897 A JP 21356897A JP H1153016 A JPH1153016 A JP H1153016A
Authority
JP
Japan
Prior art keywords
analysis data
program
file
analysis
control
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
JP21356897A
Other languages
Japanese (ja)
Inventor
Yoshito Inagaki
吉人 稲垣
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 JP21356897A priority Critical patent/JPH1153016A/en
Publication of JPH1153016A publication Critical patent/JPH1153016A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Numerical Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve the processing speed by omitting unnecessary computing processes and to prevent an adequate program check from being made. SOLUTION: Analytic data generated when a machining program is analyzed are stored in an analytic data file 40 through an analytic data storage 48. An editing confirmation part 42 judges whether or not the machining program and tool relative data are edited and when it is judged that the program and data are edited, an analytic data erasing process part 44 erases the analytic data in the analytic data file 40 and calculates a movement quantity according to analytic data obtained by analyzing the machining program stored in a machining program file 16. When it is judged that the program and data are not edited, an analytic data read-in part 50 reads in the analytic data stored in the analytic data file 40 and calculates the movement quantity to check the machining program.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、数値制御装置に係
り、さらに詳しくは、加工プログラムをチェックする数
値制御装置であって、例えば、NC工作機械等の加工プ
ログラムをチェックする数値制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a numerical controller, and more particularly to a numerical controller for checking a machining program, for example, a NC program for an NC machine tool.

【0002】[0002]

【従来の技術】近年、数値制御装置としては、工業生産
用工作機械の加工制御を数値データで行うNC(Numeri
cal Control :数値制御)工作機械などが知られてい
る。
2. Description of the Related Art In recent years, as a numerical control device, an NC (Numeri) which performs machining control of a machine tool for industrial production using numerical data has been used.
cal Control: Numerical control) Machine tools and the like are known.

【0003】従来のNC工作機械などの数値制御装置6
0は、例えば、図3に示されるように構成されている。
すなわち、図3において、数値制御装置60は、数値デ
ータで制御を行う数値制御部62、その数値制御部62
をユーザが操作する操作部64、数値制御装置60を制
御する加工プログラムが格納される加工プログラムファ
イル66、数値制御装置60の工具関連のデータが格納
されている工具関連データファイル68、工具の移動量
などをグラフィック表示等を使って画面に表示する表示
部70、数値制御部62により制御される工作機械7
2、およびその工作機械72の動作を制御する駆動部7
4などを備えている。
[0003] Conventional numerical control device 6 such as an NC machine tool
0 is configured, for example, as shown in FIG.
That is, in FIG. 3, the numerical control device 60 includes a numerical control unit 62 that performs control using numerical data,
, A machining program file 66 in which a machining program for controlling the numerical controller 60 is stored, a tool-related data file 68 in which tool-related data of the numerical controller 60 is stored, and tool movement A display unit 70 for displaying the amount and the like on a screen using a graphic display or the like, and a machine tool 7 controlled by a numerical control unit 62
2 and a drive unit 7 for controlling the operation of the machine tool 72
4 and so on.

【0004】また、上記した数値制御部62は、図3に
示されるように、ユーザが操作部64にて加工プログラ
ムファイル66に格納される加工プログラムを作成・編
集する加工プログラムファイル作成・編集処理部76、
ユーザが操作部64にて工具関連データファイル68に
格納される工具関連データを設定・変更する工具データ
設定・変更処理部78、加工プログラムファイル66に
格納された加工プログラムを読み込む加工プログラムフ
ァイル読込み処理部80、加工プログラムファイル読込
み処理部80で読み込まれた加工プログラムを解析する
加工プログラム解析処理部82、加工プログラム解析処
理部82で解析された解析データに基づいて移動量を計
算する移動量計算処理部84、およびその移動量計算処
理部84で計算された工具の移動量を駆動部74に出力
する移動量出力処理部86などを備えている。
[0004] Further, as shown in FIG. 3, the numerical control unit 62 performs a machining program file creation / editing process in which a user creates / edits a machining program stored in a machining program file 66 using an operation unit 64. Part 76,
A tool data setting / change processing unit 78 in which a user sets / changes tool-related data stored in a tool-related data file 68 with the operation unit 64, and a machining program file reading process for reading a machining program stored in the machining program file 66 Unit 80, a machining program analysis processing unit 82 that analyzes the machining program read by the machining program file read processing unit 80, and a movement amount calculation process that calculates a movement amount based on the analysis data analyzed by the machining program analysis processing unit 82. And a movement amount output processing unit 86 that outputs the movement amount of the tool calculated by the movement amount calculation processing unit 84 to the drive unit 74.

【0005】図4は、図3の数値制御装置60における
加工プログラムのチェック動作を説明するフローチャー
トである。この図4のフローチャートのいくつかのステ
ップには、動作説明を分かりやすくするため、当該ステ
ップに関連した数値制御装置60の構成要素を併せて図
示している。
FIG. 4 is a flow chart for explaining the checking operation of the machining program in the numerical controller 60 of FIG. Some steps of the flowchart in FIG. 4 also include components of the numerical control device 60 related to the steps in order to make the operation description easy to understand.

【0006】まず、図4に示されるように、ユーザは、
操作部64を用いて加工プログラムファイル作成・編集
処理部76により加工プログラムの新規作成や編集処理
を行い、その処理された加工プログラムを加工プログラ
ムファイル66に格納する(ステップS200)。
[0006] First, as shown in FIG.
A new machining program is created and edited by the machining program file creation / editing processing unit 76 using the operation unit 64, and the processed machining program is stored in the machining program file 66 (step S200).

【0007】つぎに、ユーザは、操作部64を用いて工
具関連データ設定・変更処理部78により工具関連デー
タの設定・変更を行い、その設定・変更された工具関連
データを工具関連データファイル68に格納する(ステ
ップS202)。このステップ202における工具関連
データの設定・変更作業は、すでに工具関連データが設
定されていて、変更する必要の無い場合は省略される。
Next, the user sets / changes the tool-related data using the tool-related data setting / change processing unit 78 using the operation unit 64, and stores the set / changed tool-related data in the tool-related data file 68. (Step S202). The operation of setting and changing the tool-related data in step 202 is omitted when the tool-related data has already been set and it is not necessary to change the data.

【0008】このように、図4のフローチャートのステ
ップS200、ステップS202まで行った後、作成さ
れた加工プログラムが正しいかどうか、あるいは、構文
エラー等がないかどうかを検証するための工具経路チェ
ックが行われる(ステップS204)。
As described above, after performing steps S200 and S202 in the flowchart of FIG. 4, a tool path check for verifying whether the created machining program is correct or whether there is a syntax error or the like is performed. This is performed (Step S204).

【0009】この工具経路チェックは、図3に示される
加工プログラムファイル読込み処理部80で読み込まれ
た加工プログラムを加工プログラム解析処理部82で解
析し、移動量計算処理部84にて工具の移動量の算出が
行われる。この工具経路チェックの結果は、表示部70
にて工具の移動量などが表示される。
In this tool path check, the machining program read by the machining program file read processing unit 80 shown in FIG. 3 is analyzed by the machining program analysis processing unit 82, and the movement amount of the tool is calculated by the movement amount calculation processing unit 84. Is calculated. The result of this tool path check is displayed on the display 70
Displays the moving amount of the tool.

【0010】表示部70にて表示された工具経路チェッ
ク(ステップS204)の結果は、ユーザが目視してこ
れを判定する(ステップS206)。工具経路チェック
の結果が良くなければNOへ進み、再び加工プログラム
ファイル作成・編集処理(ステップS200)に戻って
上記処理が繰り返されたり、または工具関連データ設定
・変更処理(ステップS202)が再度行われる。ま
た、ステップS206で工具経路チェックの結果が良け
ればYESに進み、つぎの試加工(ステップS208)
が行われる。
The result of the tool path check (step S204) displayed on the display unit 70 is visually checked by the user to determine the result (step S206). If the result of the tool path check is not good, the process proceeds to NO and returns to the machining program file creation / editing process (step S200) again to repeat the above process, or the tool related data setting / change process (step S202) is performed again. Will be If the result of the tool path check is good in step S206, the process proceeds to YES, and the next trial machining (step S208).
Is performed.

【0011】この試加工とは、実際にワークの加工をせ
ずに、マシンロック等で機械を運転させて加工プログラ
ムのチェックを行い、工具がワークに衝突しないか否
か、あるいは機械のストローク内で加工することが可能
か否かをチェックするものである。この試加工時であっ
ても、工具経路チェック時(ステップS204)と同様
に加工プログラムファイル読込み処理部80にて読み込
まれた加工プログラムを加工プログラム解析処理部82
で解析し、移動量計算処理部84にて工具の移動量の算
出が行われる。
[0011] The trial machining refers to checking a machining program by operating a machine with a machine lock or the like without actually machining the work, and confirming whether or not a tool collides with the work, or whether or not the tool has a stroke. It is to check whether or not it is possible to perform the processing. Even at the time of this trial machining, the machining program read by the machining program file read processing unit 80 is converted to the machining program analysis
The movement amount calculation processing section 84 calculates the movement amount of the tool.

【0012】ステップS208における試加工のチェッ
クは、ステップS210で行われ、そのチェック結果が
悪ければNOへ進んで、再び加工プログラムファイル作
成・編集処理(ステップS200)に戻って上記処理が
繰り返されたり、または工具関連データ設定・変更処理
(ステップS202)が再度行われ、試加工処理(ステ
ップS208)が行われる。
The check of the trial machining in step S208 is performed in step S210. If the check result is not good, the process proceeds to NO, returns to the machining program file creation / editing process (step S200), and repeats the above process. Alternatively, the tool-related data setting / change processing (step S202) is performed again, and the trial machining processing (step S208) is performed.

【0013】また、ステップS210における試加工の
チェック結果が良ければYESに進んで、実加工が行わ
れる(ステップS212)。実加工の場合も、工具経路
チェック時(ステップS204)と同様に加工プログラ
ム読込み処理部80にて読み込まれた加工プログラムを
加工プログラム解析処理部82で加工プログラムを解析
する。その後、移動量計算処理部84にて計算された移
動量を移動量出力処理部86により工作機械72の動作
を制御する駆動部74に出力されていた。
If the check result of the trial machining in step S210 is good, the process proceeds to YES, and actual machining is performed (step S212). Also in the actual machining, the machining program read by the machining program read processing unit 80 is analyzed by the machining program analysis processing unit 82 in the same manner as in the tool path check (step S204). Thereafter, the movement amount calculated by the movement amount calculation processing unit 84 has been output to the drive unit 74 that controls the operation of the machine tool 72 by the movement amount output processing unit 86.

【0014】[0014]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の数値制御装置にあっては、同じ加工プログラ
ムを動かす場合であっても、毎回加工プログラムの解析
を行い、移動量の算出を行っていた。ところが、加工プ
ログラムの中には、例えば、工具径を補正する場合のよ
うに非常に処理時間のかかる複雑な処理が含まれてい
る。このため、同じ加工プログラムを動かす場合でも、
工具経路チェックを行った時と同様の複雑な処理が毎回
繰り返されるため、無駄な処理が行われていたという不
都合があった。
However, in such a conventional numerical control device, even when the same machining program is operated, the analysis of the machining program is performed every time to calculate the amount of movement. Was. However, the machining program includes a complicated process that requires a very long processing time, for example, when correcting a tool diameter. Therefore, even when running the same machining program,
Since the same complicated processing as when the tool path check is performed is repeated every time, there is an inconvenience that useless processing is performed.

【0015】また、本出願人が既に提案している特願平
8−212467号公報に記載の技術では、構文のエラ
ーチェックや工具の干渉チェックを省くことはできる
が、解析処理に関し依然として毎回複雑な計算を行わな
ければならないという不都合があった。
In the technique described in Japanese Patent Application No. 8-212467, which has already been proposed by the present applicant, syntax error checking and tool interference checking can be omitted, but the analysis processing is still complicated every time. There was a disadvantage that a complicated calculation had to be performed.

【0016】さらに、特開平5−11831号公報に記
載の技術では、一度動作確認を行った加工プログラムを
編集する際に、編集前に保存しておいた古い解析データ
を、そのまま使用するという不都合があった。すなわ
ち、制御プログラムや制御に関わるデータを再編集処理
した場合に、編集前に保存しておいた解析データを消去
せずに用い、以前からの解析データを用いた不適切なプ
ログラムチェックが行われる不都合がある。
Further, the technique described in Japanese Patent Application Laid-Open No. 5-11831 has a disadvantage that when editing a machining program whose operation has been confirmed once, old analysis data stored before editing is directly used. was there. In other words, when the control program or the data related to the control is re-edited, the analysis data stored before the editing is used without erasing, and an inappropriate program check using the analysis data from before is performed. There are inconveniences.

【0017】本発明は、かかる従来技術の有する不都合
に鑑みてなされたもので、制御プログラムを解析した解
析データを保存することにより、無駄な計算処理を省略
して処理速度を向上させるとともに、制御プログラムや
制御に関わるデータを再編集処理した場合は、編集前に
保存しておいた解析データを消去することで、以前から
の解析データを用いた不適切なプログラムチェックを防
止することができる数値制御装置を得ることを目的とし
ている。
The present invention has been made in view of the inconvenience of the prior art, and saves analysis data obtained by analyzing a control program, thereby improving the processing speed by eliminating useless calculation processing and improving the control speed. If the data related to the program or control is re-edited, the analysis data saved before editing is deleted, thereby preventing inappropriate program checks using the previously analyzed data. The purpose is to obtain a control device.

【0018】[0018]

【課題を解決するための手段】上記目的を達成するため
に、この発明に係る数値制御装置にあっては、制御プロ
グラムが正しいか否かを検証するプログラムチェック手
段を備えた数値制御装置において、前記プログラムチェ
ック手段により前記制御プログラムをチェックする際に
制御プログラムを解析するプログラム解析手段と、前記
プログラム解析手段により解析された解析データの保存
を制御する解析データ保存手段と、前記解析データ保存
制御手段により解析データを保存する解析データファイ
ルと、前記制御プログラムや制御に関わるデータの編集
処理が行われたか否かを確認する編集確認手段と、前記
編集確認手段により制御プログラムや制御に関わるデー
タの編集処理が行われたことを確認した場合に、前記解
析データファイルに保存されている解析データを消去す
る解析データ消去処理手段と、前記編集確認手段により
制御プログラムや制御に関わるデータの編集処理が行わ
れていないことを確認した場合に、前記解析データファ
イルに解析データが保存されているか否かを確認する解
析データ保存確認手段と、前記解析データ保存確認手段
により前記解析データファイルに解析データが保存され
ていることを確認した場合に、その解析データを解析デ
ータファイルから読み込む解析データ読込み手段と、を
備え、制御プログラムや制御に関わるデータの編集処理
が行われておらず、前記解析データファイルに解析デー
タが保存されていない場合は、前記プログラム解析手段
で解析した解析データを前記解析データファイルに格納
し、つぎに編集処理の確認が行われて前記解析データフ
ァイルに解析データが保存されている場合は、この解析
データに基づいて制御量を計算してプログラムチェック
を行い、制御プログラムや制御に関わるデータの編集処
理が行われた場合は、前記解析データ消去処理手段によ
り前記解析データファイルに保存されている解析データ
を消去し、前記プログラム解析手段で制御プログラムの
解析処理を行い、その解析データに基づいて制御量を計
算してプログラムチェックを行うものである。
In order to achieve the above object, a numerical control device according to the present invention comprises: a numerical control device having program check means for verifying whether a control program is correct; Program analysis means for analyzing a control program when the control program is checked by the program check means, analysis data storage means for controlling storage of analysis data analyzed by the program analysis means, and analysis data storage control means An analysis data file for storing the analysis data according to the above, an editing confirmation means for confirming whether or not the editing processing of the control program and the data relating to the control has been performed, and an editing of the control program and the data relating to the control by the editing confirmation means When it is confirmed that the processing has been performed, the analysis data file Analysis data erasing processing means for erasing the stored analysis data; and when the editing confirmation means confirms that the editing processing of the control program or the data relating to the control has not been performed, the analysis data is stored in the analysis data file. Analysis data storage confirmation means for confirming whether or not the analysis data is stored; and when the analysis data storage confirmation means confirms that the analysis data is stored in the analysis data file, the analysis data is stored in the analysis data file. Analysis data reading means for reading data from the control program or control-related data is not edited, and if the analysis data is not stored in the analysis data file, the analysis is performed by the program analysis means. The analysis data is stored in the analysis data file, and then the editing process is confirmed. When the analysis data is stored in the analysis data file, the control amount is calculated based on the analysis data and a program check is performed. The analysis data stored in the analysis data file is deleted by the analysis data deletion processing means, the control program is analyzed by the program analysis means, the control amount is calculated based on the analysis data, and the program is checked. Things.

【0019】これによれば、制御プログラムのプログラ
ムチェックを行う際に、制御プログラムや制御に関わる
データの編集処理が行われておらず、解析データファイ
ルに解析データが保存されていない場合は、プログラム
解析手段で解析した解析データを解析データファイルに
格納するようにする。このように、解析データが解析デ
ータファイルに保存されているため、この解析データを
用いて制御量を計算してプログラムチェックを行うこと
ができるので、無駄な計算処理を省略することが可能と
なり、プログラムチェックの処理速度を向上させること
ができる。また、制御プログラムをチェックする際に、
制御プログラムや制御に関わるデータを再編集処理して
いる場合は、編集前に解析データファイルに保存してあ
る解析データを解析データ消去処理手段により消去する
ため、以前からの解析データを用いて行われる不適切な
プログラムチェックを防止することができる。
According to this, when the program check of the control program is performed, if the editing process of the control program or the data related to the control is not performed and the analysis data is not stored in the analysis data file, the program The analysis data analyzed by the analysis means is stored in the analysis data file. As described above, since the analysis data is stored in the analysis data file, it is possible to calculate a control amount using the analysis data and perform a program check, thereby making it possible to omit useless calculation processing. The processing speed of the program check can be improved. Also, when checking the control program,
If the control program or data related to control is being re-edited, the analysis data saved in the analysis data file is deleted by the analysis data deletion processing means before editing. Inappropriate program check can be prevented.

【0020】つぎの発明に係る数値制御装置にあって
は、前記制御プログラムとそれを解析した解析データと
をリンクさせるリンク情報を保存する制御プログラム解
析データリンクファイルをさらに備え、前記解析データ
保存手段により前記リンク情報を前記制御プログラム解
析データリンクファイルに保存するとともに、前記解析
データ消去処理手段により前記制御プログラム解析デー
タリンクファイルに保存された前記リンク情報を消去す
るようにしたものである。
The numerical control device according to the next invention further comprises a control program analysis data link file for storing link information for linking the control program with analysis data obtained by analyzing the control program, wherein the analysis data storage means The link information is stored in the control program analysis data link file, and the link information stored in the control program analysis data link file is deleted by the analysis data deletion processing means.

【0021】これによれば、制御プログラムとそれを解
析した解析データとをリンクさせるリンク情報を保存す
る制御プログラム解析データリンクファイルをさらに備
えているため、制御プログラムと解析データとをリンク
させて管理することが可能となり、制御プログラムのプ
ログラムチェックを適切に処理することができる。
According to this, since the control program further includes a control program analysis data link file for storing link information for linking the control program and the analysis data obtained by analyzing the control program, the control program and the analysis data are linked and managed. It is possible to appropriately perform the program check of the control program.

【0022】[0022]

【発明の実施の形態】以下、この発明に係る数値制御装
置の実施の形態を図面に基づいて詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of a numerical controller according to the present invention will be described below in detail with reference to the drawings.

【0023】図1には、本実施の形態に係る数値制御装
置10の全体構成図が示されている。この実施の形態に
係る数値制御装置10は、ワークに対して工具を数値デ
ータで制御しながら工作するNC工作機械として実施し
たものである。
FIG. 1 shows an overall configuration diagram of a numerical controller 10 according to the present embodiment. The numerical control device 10 according to the present embodiment is implemented as an NC machine tool that performs a work on a workpiece while controlling a tool with numerical data.

【0024】この数値制御装置10は、図1において、
数値データで制御を行う数値制御部12、その数値制御
部12をユーザが操作する操作部14、数値制御装置1
0の制御を行う制御プログラムとしての加工プログラム
が格納される加工プログラムファイル16、数値制御装
置10の工具関連のデータが格納される工具関連データ
ファイル18、工具の移動量などをグラフィック表示等
を使って画面に表示する表示部20、数値制御部12に
より制御される工作機械22、およびその工作機械22
の動作を制御する駆動部24などを備えている。
This numerical control device 10 is shown in FIG.
Numerical control unit 12 for performing control with numerical data, operation unit 14 for operating the numerical control unit 12 by a user, numerical control device 1
A machining program file 16 in which a machining program as a control program for performing control of 0 is stored, a tool-related data file 18 in which tool-related data of the numerical controller 10 is stored, and a moving amount of a tool are graphically displayed. Display unit 20 for displaying on a screen, machine tool 22 controlled by numerical control unit 12, and machine tool 22
And a drive unit 24 for controlling the operation of.

【0025】そして、本実施の形態では、加工プログラ
ム解析データリンクファイル38、および解析データフ
ァイル40をさらに備えている。
In this embodiment, a machining program analysis data link file 38 and an analysis data file 40 are further provided.

【0026】また、上記した数値制御部12は、図1に
おいて、ユーザが操作部14にて加工プログラムファイ
ル16に格納される加工プログラムを作成・編集する加
工プログラムファイル作成・編集処理部26、ユーザが
操作部14にて工具関連データファイル18に格納され
る工具関連データを設定・変更する工具データ設定・変
更処理部28、後述する解析データ保存確認部46で解
析データが無いと判断された場合に、加工プログラムフ
ァイル16より加工プログラムを読み込む加工プログラ
ムファイル読込み処理部30、加工プログラムファイル
読込み処理部30で読み込まれた加工プログラムを解析
処理するプログラム解析手段としての加工プログラム解
析処理部32、加工プログラム解析処理部32で解析さ
れた解析データに基づいて工具の移動量を計算する移動
量計算処理部34、およびその移動量計算処理部34で
計算された工具の移動量を駆動部24に出力する移動量
出力処理部36などを備えている。
In FIG. 1, the numerical control unit 12 includes a machining program file creation / edit processing unit 26 for creating / editing a machining program stored in the machining program file 16 by the operation unit 14; When the operation unit 14 determines that there is no analysis data in the tool data setting / change processing unit 28 that sets / changes the tool-related data stored in the tool-related data file 18 and the analysis data storage confirmation unit 46 described later A machining program file read processing unit 30 that reads a machining program from the machining program file 16; a machining program analysis processing unit 32 as a program analysis unit that analyzes the machining program read by the machining program file read processing unit 30; Analysis data analyzed by the analysis processing unit 32 A movement amount calculation processing unit 34 for calculating the movement amount of the tool based on the movement amount, and a movement amount output processing unit 36 for outputting the movement amount of the tool calculated by the movement amount calculation processing unit 34 to the drive unit 24. .

【0027】そして、本実施の形態の数値制御部12で
は、上記以外に工具経路チェック結果の善し悪しに応じ
て加工プログラムファイル作成・編集処理や工具関連デ
ータ設定・変更処理を再度行うか否かの編集の有無を判
断する編集確認手段としての編集確認部42、編集確認
部42で編集有りと判断された場合に、加工プログラム
解析データリンクファイル38に格納されたリンク情報
と解析データファイル40に格納された解析データ19
とを消去する解析データ消去処理手段としての解析デー
タ消去処理部44、編集確認部42で編集無しと判断さ
れた場合に、解析データの保存を確認する解析データ保
存確認手段としての解析データ保存確認部46、加工プ
ログラム解析処理部32で解析された解析データを解析
データファイル40に格納するとともに、加工プログラ
ムと解析データとをリンクさせるためのリンク情報を加
工プログラム解析データリンクファイルに格納する解析
データ保存手段としての解析データ保存部48、および
工具経路チェックの結果が善くて編集確認部42で加工
プログラム・工具関連データの変更が無いことが確認さ
れ、解析データ保存確認部46で解析データ有りと判断
された場合に、解析データファイル40から以前保存し
ておいた解析データを読み込む解析データ読込み手段と
しての解析データ読込み部50などをさらに備えてい
る。
In addition to the above, the numerical controller 12 according to the present embodiment determines whether or not to execute the machining program file creation / editing process and the tool-related data setting / change process again according to the quality of the tool path check result. An edit confirmation unit 42 as an edit confirmation unit for judging the presence or absence of an edit. When the edit confirmation unit 42 determines that there is an edit, the link information stored in the machining program analysis data link file 38 and the link information stored in the analysis data file 40 are stored. Analysis data 19
Analysis data deletion processing unit 44 as analysis data deletion processing means for deleting the data, and analysis data storage confirmation as analysis data storage confirmation means for confirming the storage of analysis data when the edit confirmation unit 42 determines that there is no editing. Analysis data storing the analysis data analyzed by the processing program analysis processing unit 32 in the analysis data file 40 and link information for linking the processing program and the analysis data in the processing program analysis data link file The analysis data storage unit 48 as storage means and the result of the tool path check are good, and the edit confirmation unit 42 confirms that there is no change in the machining program / tool related data, and the analysis data storage confirmation unit 46 determines that there is analysis data. If it is determined, the analysis data file 40 previously stored analysis data Further comprising a like analysis data reading section 50 as the analysis data reading means for reading the.

【0028】つぎに、図1の数値制御装置10における
加工プログラムのチェック動作を図2のフローチャート
に基づいて説明する。なお、図2のフローチャートのい
くつかのステップには、動作説明を分かりやすくするた
め、所定のステップに対応した数値制御装置10の構成
要素を併せて図示している。
Next, the checking operation of the machining program in the numerical controller 10 of FIG. 1 will be described with reference to the flowchart of FIG. Note that some steps of the flowchart of FIG. 2 also include components of the numerical control device 10 corresponding to predetermined steps in order to make the operation description easy to understand.

【0029】まず、図2に示されるように、ユーザは、
操作部14を用いて加工プログラムファイル作成・編集
処理部26により加工プログラムの新規作成や編集処理
が行われ、その加工プログラムが加工プログラムファイ
ル16に格納される(ステップS100)。
First, as shown in FIG.
A new machining program is created and edited by the machining program file creation / edit processing unit 26 using the operation unit 14, and the machining program is stored in the machining program file 16 (step S100).

【0030】つぎに、ユーザは、操作部14を用いて工
具関連データ設定・変更処理部28により工具関連デー
タの設定・変更が行われ(編集処理)、その設定・変更
された工具関連データが工具関連データファイル18に
格納される(ステップS102)。このステップ102
における工具関連データの設定・変更処理は、すでに工
具関連データが設定されていて、変更する必要の無い場
合は省略される。
Next, the user sets / changes the tool-related data by the tool-related data setting / change processing unit 28 using the operation unit 14 (editing process), and the set / changed tool-related data is displayed. It is stored in the tool-related data file 18 (step S102). This step 102
The setting / change processing of the tool-related data in is omitted when the tool-related data has already been set and it is not necessary to change the data.

【0031】このように、図2のフローチャートのステ
ップS100およびステップS102を行った後、作成
された加工プログラムが正しいか否かを検証するための
工具経路チェックが行われる(ステップS104)。
After performing steps S100 and S102 in the flowchart of FIG. 2, a tool path check is performed to verify whether the created machining program is correct (step S104).

【0032】この工具経路チェックは、図1に示される
加工プログラムファイル読込み処理部30で読み込まれ
た加工プログラムを加工プログラム解析処理部32で解
析する。この加工プログラム解析処理部32で解析され
た解析データは、解析データ保存部48により解析デー
タファイル40に格納されて保存される(ステップS1
06)。
In this tool path check, the machining program read by the machining program file read processing unit 30 shown in FIG. 1 is analyzed by the machining program analysis processing unit 32. The analysis data analyzed by the machining program analysis processing unit 32 is stored and stored in the analysis data file 40 by the analysis data storage unit 48 (step S1).
06).

【0033】さらに、解析データ保存部48は、加工プ
ログラムと解析データとをリンクさせるためのリンク情
報を加工プログラム解析データリンクファイル38に格
納する(ステップS108)。そして、移動量計算処理
部34にて工具の移動量の算出が行われ、工具経路チェ
ックの結果は、表示部20にて工具の移動量などが表示
される。
Further, the analysis data storage unit 48 stores link information for linking the processing program and the analysis data in the processing program analysis data link file 38 (step S108). Then, the movement amount of the tool is calculated by the movement amount calculation processing unit 34, and the result of the tool path check is displayed on the display unit 20 such as the movement amount of the tool.

【0034】表示部20に表示された工具経路チェック
(ステップS104)の結果は、ユーザが目視等で判定
する(ステップS110)。この工具経路チェックの結
果が良くなければNOへ進み、再び加工プログラムファ
イル作成・編集処理(ステップS100)に戻って上記
処理が繰り返され、また工具関連データ設定・変更処理
(ステップS102)が再度行われる。
The result of the tool path check (step S104) displayed on the display unit 20 is visually determined by the user (step S110). If the result of the tool path check is not good, the process proceeds to NO, returns to the machining program file creation / editing process (step S100) and repeats the above process, and the tool-related data setting / change process (step S102) is performed again. Will be

【0035】このように、加工プログラムファイル作成
・編集処理や工具関連データ設定・変更処理が行われる
と、図1の数値制御部12内の編集確認部42が編集有
りと判断すると、解析データ消去処理部44により加工
プログラム解析データリンクファイル38に格納された
リンク情報と、解析データファイル40内の解析データ
とが消去される。
As described above, when the machining program file creation / editing process and the tool-related data setting / change process are performed, if the editing confirmation unit 42 in the numerical control unit 12 in FIG. The processing section 44 deletes the link information stored in the machining program analysis data link file 38 and the analysis data in the analysis data file 40.

【0036】その後は、工具経路チェック(ステップS
104)と同様に、解析データ保存確認部46にて解析
データの有無が確認されるが、無いと判断され、加工プ
ログラムファイル読込み処理部30により加工プログラ
ムファイル16から加工プログラムを読み込んで、加工
プログラム解析処理部32にて加工プログラムの解析が
行われる。
Thereafter, a tool path check (step S)
As in the case of 104), the presence / absence of analysis data is confirmed by the analysis data storage / confirmation unit 46. However, it is determined that there is no analysis data, and the machining program is read from the machining program file 16 by the machining program file read processing unit 30, and the machining program is read. The analysis processing unit 32 analyzes the machining program.

【0037】また、ステップS110にて工具経路チェ
ックの結果が良ければYESに進んで、つぎの試加工
(ステップS112)が行われる。このとき、上述した
編集確認部42にて加工プログラムや工具関連データの
変更が無いことを確認する。加工プログラムや工具関連
データの変更がなければ、解析データ保存確認部46に
て解析データの有無が確認され、解析データがあれば解
析データ読込み部50により解析データファイル40に
以前から保存されている解析データが読み込まれる。
If the result of the tool path check is good in step S110, the operation proceeds to YES, and the next trial machining (step S112) is performed. At this time, the above-mentioned editing confirmation unit 42 confirms that there is no change in the machining program or the tool-related data. If there is no change in the machining program or the tool-related data, the presence / absence of the analysis data is confirmed by the analysis data storage / confirmation unit 46, and if there is the analysis data, the analysis data reading unit 50 has previously stored the analysis data in the analysis data file 40. The analysis data is read.

【0038】解析データ保存確認部46にて解析データ
が無いと判断されると、従来例と同様に加工プログラム
ファイル読込み処理部30により加工プログラムファイ
ル16から加工プログラムを読み込み、加工プログラム
解析処理部32にて解析される。その後、解析データま
たは読み込まれたデータに基づいて移動量計算処理部3
4にて工具の移動量が計算され、工具がワークに衝突し
ないか否か、あるいは機械のストローク内で加工するこ
とが可能か否か等を確認する。この試加工は、実際にワ
ークを加工せずにマシンロック等で機械を運転させて加
工プログラムをチェックするものである。
When the analysis data storage / confirmation section 46 determines that there is no analysis data, the machining program is read from the machining program file 16 by the machining program file read-in processing section 30 and the machining program analysis processing section 32 is executed as in the conventional example. Is analyzed by After that, the movement amount calculation processing unit 3 based on the analysis data or the read data.
In step 4, the amount of movement of the tool is calculated, and it is confirmed whether the tool does not collide with the work or whether machining can be performed within the stroke of the machine. In this trial machining, the machining program is checked by operating the machine with a machine lock or the like without actually machining the work.

【0039】このようにして、試加工のチェック結果が
ステップS114で判断され、試加工のチェック結果が
良ければYESに進んで、実加工が行われる(ステップ
S116)。実加工の場合でも、上述した試加工の場合
(ステップS112)と同様に処理される。その後、移
動量計算処理部34で計算された工具の移動量は、移動
量出力処理部36により工作機械22の動作を制御する
駆動部24に出力される。
In this way, the check result of the trial machining is determined in step S114. If the check result of the trial machining is good, the process proceeds to YES and the actual machining is performed (step S116). In the case of actual machining, the same processing is performed as in the case of the trial machining described above (step S112). After that, the movement amount of the tool calculated by the movement amount calculation processing unit 34 is output by the movement amount output processing unit 36 to the drive unit 24 that controls the operation of the machine tool 22.

【0040】以上説明したように、本実施の形態にかか
る数値制御装置10によれば、一度でも工具経路チェッ
ク(ステップS104)、試加工(ステップS11
2)、または実加工(ステップS116)が行われた加
工プログラムは、そのときの解析データを保存すること
ができるため、その解析データを次回以降に使用するこ
とで工具径補正のような複雑な計算を繰り返す必要が無
くなり、数値制御装置の全体の処理速度を向上させるこ
とができる。
As described above, according to the numerical controller 10 according to the present embodiment, the tool path is checked at least once (step S104), and the trial machining is performed (step S11).
2) Or, the machining program in which the actual machining (step S116) has been performed can store the analysis data at that time, so that the analysis data can be used for the next and subsequent times, thereby complicating the complicated processing such as tool diameter correction. There is no need to repeat the calculation, and the overall processing speed of the numerical control device can be improved.

【0041】また、加工プログラムや加工に関わる工具
関連データ等を再編集して変更した場合は、編集前に保
存しておいた解析データを消去して、再度解析データを
作成し直すようにしたため、以前に保存しておいた解析
データで動作させる危険性を回避することができる。
When a machining program or tool-related data related to machining is re-edited and changed, the analysis data saved before editing is deleted, and the analysis data is created again. Thus, the risk of operating on previously stored analysis data can be avoided.

【0042】[0042]

【発明の効果】以上説明したように、この発明に係る数
値制御装置によれば、制御プログラムを解析した解析デ
ータを保存するようにしたので、無駄な計算処理を省略
することができ、制御プログラムのチェックの処理速度
を向上させることができる。
As described above, according to the numerical controller according to the present invention, since the analysis data obtained by analyzing the control program is stored, useless calculation processing can be omitted, and the control program can be omitted. Check processing speed can be improved.

【0043】つぎの発明に係る数値制御装置によれば、
制御プログラムや制御に関わるデータを再編集処理した
場合は、編集前に保存しておいた解析データを消去する
ようにしたので、以前からの解析データを用いた不適切
なプログラムチェックを防止することができる。
According to the numerical control device of the next invention,
When the control program and data related to control are re-edited, the analysis data saved before editing is deleted, so that inappropriate program check using the old analysis data is prevented. Can be.

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

【図1】 本発明の実施の形態に係る数値制御装置の全
体構成を示すブロック図である。
FIG. 1 is a block diagram illustrating an overall configuration of a numerical control device according to an embodiment of the present invention.

【図2】 図1に示した数値制御装置における加工プロ
グラムのチェック動作を説明するフローチャートであ
る。
FIG. 2 is a flowchart illustrating a check operation of a machining program in the numerical control device illustrated in FIG. 1;

【図3】 従来における数値制御装置の全体構成を示す
ブロック図である。
FIG. 3 is a block diagram showing the entire configuration of a conventional numerical control device.

【図4】 従来の数値制御装置における加工プログラム
のチェック動作を説明するフローチャートである。
FIG. 4 is a flowchart illustrating a check operation of a machining program in a conventional numerical control device.

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

10 数値制御装置,12 数値制御部,16 加工プ
ログラムファイル,20 表示部,26 加工プログラ
ムファイル作成・編集処理部,28 工具関連データ設
定・変更処理部,30 加工プログラムファイル読込み
処理部,32加工プログラム解析処理部,34 移動量
計算処理部,38 制御プログラム解析データリンクフ
ァイル,42 編集確認部,44 解析データ消去処理
部,46 解析データ保存確認部,48 解析データ保
存部,50 解析データ読込み部。
Reference Signs List 10 Numerical control device, 12 Numerical control unit, 16 Machining program file, 20 Display unit, 26 Machining program file creation / edit processing unit, 28 Tool-related data setting / change processing unit, 30 Machining program file read processing unit, 32 Machining program Analysis processing section, 34 movement amount calculation processing section, 38 control program analysis data link file, 42 editing confirmation section, 44 analysis data deletion processing section, 46 analysis data storage confirmation section, 48 analysis data storage section, 50 analysis data reading section.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 制御プログラムが正しいか否かを検証す
るプログラムチェック手段を備えた数値制御装置におい
て、 前記プログラムチェック手段により前記制御プログラム
をチェックする際に制御プログラムを解析するプログラ
ム解析手段と、 前記プログラム解析手段により解析された解析データの
保存を制御する解析データ保存手段と、 前記解析データ保存制御手段により解析データを保存す
る解析データファイルと、 前記制御プログラムや制御に関わるデータの編集処理が
行われたか否かを確認する編集確認手段と、 前記編集確認手段により制御プログラムや制御に関わる
データの編集処理が行われたことを確認した場合に、前
記解析データファイルに保存されている解析データを消
去する解析データ消去処理手段と、 前記編集確認手段により制御プログラムや制御に関わる
データの編集処理が行われていないことを確認した場合
に、前記解析データファイルに解析データが保存されて
いるか否かを確認する解析データ保存確認手段と、 前記解析データ保存確認手段により前記解析データファ
イルに解析データが保存されていることを確認した場合
に、その解析データを解析データファイルから読み込む
解析データ読込み手段と、 を備え、 制御プログラムや制御に関わるデータの編集処理が行わ
れておらず、前記解析データファイルに解析データが保
存されていない場合は、前記プログラム解析手段で解析
した解析データを前記解析データファイルに格納し、つ
ぎに編集処理の確認が行われて前記解析データファイル
に解析データが保存されている場合は、この解析データ
に基づいて制御量を計算してプログラムチェックを行
い、 制御プログラムや制御に関わるデータの編集処理が行わ
れた場合は、前記解析データ消去処理手段により前記解
析データファイルに保存されている解析データを消去
し、前記プログラム解析手段で制御プログラムの解析処
理を行い、その解析データに基づいて制御量を計算して
プログラムチェックを行うことを特徴とする数値制御装
置。
1. A numerical control device comprising a program check unit for verifying whether or not a control program is correct, wherein the program check unit analyzes the control program when checking the control program. Analysis data storage means for controlling storage of analysis data analyzed by the program analysis means; analysis data file for storing analysis data by the analysis data storage control means; and editing processing of the control program and data relating to control. Editing confirmation means for confirming whether or not the editing data of the control program or control-related data has been edited by the editing confirmation means, the analysis data stored in the analysis data file Analysis data erasure processing means for erasing; An analysis data storage confirming means for confirming whether or not analysis data is stored in the analysis data file when it is confirmed that a control program or data relating to control is not edited by the step; Analysis data reading means for reading the analysis data from the analysis data file when it is confirmed by the data storage confirmation means that the analysis data is stored in the analysis data file, comprising: If the editing process has not been performed and the analysis data file does not store the analysis data, the analysis data analyzed by the program analysis means is stored in the analysis data file, and then the editing process is confirmed. If the analysis data is stored in the analysis data file, The control amount is calculated based on the program check, and if the control program or the data related to the control is edited, the analysis data stored in the analysis data file is deleted by the analysis data deletion processing means. A numerical control device for analyzing the control program by the program analysis means, calculating a control amount based on the analysis data, and performing a program check.
【請求項2】 前記制御プログラムとそれを解析した解
析データとをリンクさせるリンク情報を保存する制御プ
ログラム解析データリンクファイルをさらに備え、 前記解析データ保存手段により前記リンク情報を前記制
御プログラム解析データリンクファイルに保存するとと
もに、前記解析データ消去処理手段により前記制御プロ
グラム解析データリンクファイルに保存された前記リン
ク情報を消去することを特徴とする請求項1に記載の数
値制御装置。
2. A control program analysis data link file for storing link information for linking the control program and analysis data obtained by analyzing the control program, wherein the analysis data storage unit converts the link information into the control program analysis data link. 2. The numerical control apparatus according to claim 1, wherein the link information stored in the control program analysis data link file is deleted by the analysis data deletion processing means while the link information is stored in a file.
JP21356897A 1997-08-07 1997-08-07 Numerical controller Pending JPH1153016A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21356897A JPH1153016A (en) 1997-08-07 1997-08-07 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21356897A JPH1153016A (en) 1997-08-07 1997-08-07 Numerical controller

Publications (1)

Publication Number Publication Date
JPH1153016A true JPH1153016A (en) 1999-02-26

Family

ID=16641372

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21356897A Pending JPH1153016A (en) 1997-08-07 1997-08-07 Numerical controller

Country Status (1)

Country Link
JP (1) JPH1153016A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017134505A (en) * 2016-01-26 2017-08-03 ファナック株式会社 Numerical value control system using data analyzed in processing simulation for actual processing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017134505A (en) * 2016-01-26 2017-08-03 ファナック株式会社 Numerical value control system using data analyzed in processing simulation for actual processing

Similar Documents

Publication Publication Date Title
JP4390093B2 (en) Automatic programming and simulation equipment
US7155303B2 (en) Numeric control method and numeric control system
EP0740240A2 (en) Numerical control unit
JP3399419B2 (en) Numerical control simulation device
CN107664985B (en) CAD/CAM-CNC integrated system
JP4329248B2 (en) NC machining simulation equipment
WO2000038881A1 (en) Method and apparatus for providing numerical control information
JPH0219906A (en) Numerical control program correcting system for interactive numerical controller
JPH1153016A (en) Numerical controller
JPH07311612A (en) Method and device for editing machining program of numerical controller
JPH08328829A (en) Parameter change history managing system
JPH0562364B2 (en)
JP2019159478A (en) Controller, data creation device, and control method and control program
JPH11165239A (en) Numerical control data editing device and editing method of numerical control data
JP3193072B2 (en) Numerical control program editing device
JP2875135B2 (en) Program device for programmable controller
JP3660038B2 (en) Numerical controller
JPH10124124A (en) Working program drawing method for numerical controller, and numerical controller provided with drawing function
JPH0511831A (en) Machining program analyzing method for nc controller
JPH05303415A (en) Method for generating control information for working groove
JPH0566819A (en) Interactive automatic programming method
JP3000986B2 (en) Machining program creating device and machining program creating method
JPH0455909A (en) Producing device for numerically controlling information
JPH0394307A (en) Numerical controller
JPH09244717A (en) Controller