JP2007326174A - Numerical control device - Google Patents
Numerical control device Download PDFInfo
- Publication number
- JP2007326174A JP2007326174A JP2006159020A JP2006159020A JP2007326174A JP 2007326174 A JP2007326174 A JP 2007326174A JP 2006159020 A JP2006159020 A JP 2006159020A JP 2006159020 A JP2006159020 A JP 2006159020A JP 2007326174 A JP2007326174 A JP 2007326174A
- Authority
- JP
- Japan
- Prior art keywords
- tool
- offset amount
- numerical control
- tool length
- update information
- 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
Links
Images
Landscapes
- Machine Tool Sensing Apparatuses (AREA)
- Numerical Control (AREA)
Abstract
Description
この発明は、数値制御工作機械に用いられる数値制御装置に関するものである。 The present invention relates to a numerical control device used for a numerically controlled machine tool.
数値制御装置によって動作を制御されてワークを所定形状に加工する数値制御工作機械は、今日、種々の物品の製造に利用されている。この数値制御工作機械では、1つのワークを所定形状の製品または中間製品に加工する際に複数種の工具が使い分けられており、工具の交換等、様々な動作が数値制御装置により自動化されている。 A numerically controlled machine tool whose operation is controlled by a numerical control device to process a workpiece into a predetermined shape is now used for manufacturing various articles. In this numerically controlled machine tool, multiple types of tools are used properly when machining a workpiece into a product of a predetermined shape or an intermediate product, and various operations such as tool replacement are automated by a numerical control device. .
例えば、数値制御工作機械を制御するためのプログラムの作成時に想定していた基準工具の長さとは異なる長さの工具を用いて数値制御工作機械がワークを加工する際には、加工に先だって当該工具の長さ(以下、「工具長」という。)についてのオフセット量を求め、このオフセット量(以下、「工具長オフセット量」という。)に応じてワーク座標系の原点の位置を補正する工具長補正が行われるわけであるが、工具長オフセット量の測定や工具長補正を自動化した数値制御工作機械も開発されている。 For example, when a numerically controlled machine tool processes a workpiece using a tool whose length is different from the length of the reference tool assumed when creating a program for controlling the numerically controlled machine tool, A tool that calculates an offset amount for a tool length (hereinafter referred to as “tool length”) and corrects the position of the origin of the workpiece coordinate system in accordance with the offset amount (hereinafter referred to as “tool length offset amount”). Although length compensation is performed, numerically controlled machine tools that have automated tool length offset measurement and tool length compensation have been developed.
ただし、工具長オフセット量の測定を自動化した数値制御工作機械は高価であるので、当該工具長オフセット量の測定を手作業で行う数値制御工作機械も広く用いられている。工具長オフセット量の測定を手作業で行った場合でも工具長補正自体は数値制御装置により行われるが、一般には、この工具長補正が行われた後に数値制御工作機械のオペレータがゲージを用いて実際の工具長補正量を測定し、検証している。 However, since numerically controlled machine tools that automate the measurement of the tool length offset amount are expensive, numerically controlled machine tools that manually measure the tool length offset amount are also widely used. Even when the measurement of the tool length offset is performed manually, the tool length correction itself is performed by a numerical controller, but in general, the operator of the numerically controlled machine tool uses a gauge after the tool length correction is performed. The actual tool length compensation amount is measured and verified.
数値制御装置による数値制御工作機械の動作制御が多岐に亘ることから、通常は、ユーザの便宜を図るために、数値制御装置から数値制御工作機械への指令の内容が当該数値制御装置に付設された表示部に表示される。例えば特許文献1には、座標系設定時に、座標系設定指示値から工具長補正量を減算した値をZ軸実行レジスタに格納すると共に数値制御プログラムのZ軸指令値を補正しないままZ軸指令レジスタに入力することによって、数値制御工作機械へのZ軸指令値と操作パネルに表示されるZ軸指示値とを一致させた数値制御装置が記載されている。
Since the operation control of a numerically controlled machine tool by a numerical control device is diverse, normally, for the convenience of the user, the contents of commands from the numerically controlled device to the numerically controlled machine tool are attached to the numerically controlled device. Displayed on the display. For example, in
しかしながら、工具長オフセット量の測定を自動化しているか否かに拘わらず、従来の数値制御装置では、ワークの加工に使用する複数の工具の中から工具長オフセット量の測定が必要な工具、すなわち工具長オフセット量が未だ測定されていない工具を自動的に選別することはできない。このため、当該工具の選別は、装置制御装置や数値制御工作機械を操作するオペレータが行っている。同様に、工具長オフセット量の測定を手作業で行ったときに工具長補正量の検証が必要な工具の選別も、オペレータが行っている。このため、数値制御工作機械によりワークを加工するにあたってオペレータが行わなければならない段取り作業の作業量は比較的多く、当該段取り作業には大きな労力を要する。 However, regardless of whether or not the measurement of the tool length offset amount is automated, in the conventional numerical control device, a tool that requires measurement of the tool length offset amount among a plurality of tools used for machining a workpiece, that is, It is not possible to automatically select a tool whose tool length offset amount has not yet been measured. For this reason, the selection of the tool is performed by an operator who operates the apparatus control device and the numerical control machine tool. Similarly, when the tool length offset amount is measured manually, the operator also selects a tool that requires verification of the tool length correction amount. For this reason, the amount of setup work that must be performed by an operator when machining a workpiece with a numerically controlled machine tool is relatively large, and the setup work requires a large amount of labor.
この発明は上記に鑑みてなされたものであり、数値制御工作機械によりワークを加工するのに先だってオペレータが行わなければならない段取り作業の作業量を軽減させることができる数値制御装置を得ることを目的とする。 The present invention has been made in view of the above, and it is an object of the present invention to obtain a numerical control device capable of reducing the amount of setup work that an operator must perform prior to processing a workpiece with a numerically controlled machine tool. And
上記の目的を達成するこの発明の数値制御装置は、複数種の工具を使い分けてワークを所定形状に加工する数値制御工作機械の動作を制御する数値制御装置であって、複数種の工具毎に登録されて該工具を識別する識別データと、工具毎の工具長オフセット量と、数値制御工作機械および当該数値制御装置の動作を規定するプログラムとが格納されると共に、工具毎に設定されて該工具が新規に登録されたものであるか否を表す工具更新情報および工具長オフセット量が新規に入力されたものであるか否かを表すオフセット量更新情報の少なくとも一方が格納される記憶部と、識別データと工具更新情報とに基づいて工具長オフセット量の測定が済んでいない工具を選び出すか、または識別データとオフセット量更新情報とに基づいて工具長補正量の検証が済んでいない工具を選び出し、該選び出した工具を数値制御工作機械の所定箇所に装着させて、予め定められた工具長オフセット量測定用のレファレンス点または工具長補正量検証用のレファレンス点にまで移動させる測定・検証制御部と、を有することを特徴とするものである。 A numerical control device according to the present invention that achieves the above object is a numerical control device that controls the operation of a numerically controlled machine tool that uses a plurality of types of tools to process a workpiece into a predetermined shape. The registered identification data for identifying the tool, the tool length offset amount for each tool, and the program for defining the operation of the numerically controlled machine tool and the numerical control device are stored and set for each tool. A storage unit for storing at least one of tool update information indicating whether or not a tool is newly registered and offset amount update information indicating whether or not a tool length offset amount is newly input; Select a tool whose tool length offset amount has not been measured based on the identification data and tool update information, or select a tool length based on the identification data and offset amount update information. Select a tool that has not been verified for the correct amount, attach the selected tool to a predetermined location on the numerically controlled machine tool, and verify the reference point for measuring the tool length offset amount or verifying the tool length correction amount. And a measurement / verification control unit that moves to a reference point.
この発明の数値制御装置では、該数値制御装置が上述の測定・検証制御部を有していることから、複数種の工具の中から工具長オフセット量の測定が済んでいない工具および工具長補正量の検証が済んでいない工具の少なくとも一方が自動的に選別される。このため、オペレータは工具長オフセット量の測定が済んでいない工具または工具長補正量の検証が済んでいない工具を自ら選別することなく、工具長オフセット量の測定作業または工具長補正量の検証作業を進めることができる。したがって、この発明の数値制御装置によれば、数値制御工作機械によりワークを加工するのに先だってオペレータが行わなければならない段取り作業の作業量が軽減される。 In the numerical control device of the present invention, since the numerical control device has the above-described measurement / verification control unit, a tool whose tool length offset amount has not been measured from a plurality of types of tools and tool length correction. At least one of the tools whose quantity has not been verified is automatically selected. Therefore, the operator does not select a tool for which the tool length offset amount has not been measured or a tool for which the tool length correction amount has not been verified. Can proceed. Therefore, according to the numerical control device of the present invention, the amount of setup work that must be performed by the operator prior to machining the workpiece by the numerically controlled machine tool is reduced.
以下、この発明の数値制御装置の実施の形態について、図面を参照して詳細に説明する。なお、この発明は以下に説明する実施の形態に限定されるものではない。 Embodiments of a numerical control apparatus according to the present invention will be described below in detail with reference to the drawings. The present invention is not limited to the embodiments described below.
この発明の数値制御装置は、数値制御工作機械の動作を制御するものであり、当該数値制御装置によって動作を制御される数値制御工作機械としては、複数種の工具が収容されたマガジンと、当該数値制御工作機械への工具の装着および当該数値制御工作機械に装着された工具の交換を数値制御装置からの指令に応じて行う工具交換部とを備えているものが好ましい。 The numerical control device of the present invention controls the operation of the numerical control machine tool. The numerical control machine tool whose operation is controlled by the numerical control device includes a magazine containing a plurality of types of tools, It is preferable to include a tool changer that attaches the tool to the numerically controlled machine tool and replaces the tool attached to the numerically controlled machine tool in accordance with a command from the numerical control device.
図1は、この発明の数値制御装置および該数値制御装置によって動作を制御される数値制御工作機械それぞれの一例を概略的に示すブロック図である。同図に示す数値制御120は装置本体100を備えていると共に、該装置本体100に接続された入力部105および表示部110を備えており、装置本体100は、図示を省略した記憶部および制御部等を有している。一方、数値制御工作機械200は、ワークを実際に加工する加工部150と、複数種の工具が収容されたマガジン160と、数値制御装置120からの指令に応じてマガジン160から所定の工具を取り出して加工部150の所定箇所に装着する工具交換部170とを備えており、工具交換部170は加工部150に装着された工具の交換も行う。
FIG. 1 is a block diagram schematically showing an example of each of the numerical control device of the present invention and the numerically controlled machine tool whose operation is controlled by the numerical control device. The
数値制御工作機械200が数値制御装置120に制御されて工具を交換したときには、既に説明したように、当該工具の工具長オフセット量に応じて、工具長補正が行われる。数値制御装置120および数値制御工作機械200は、工具長オフセット量を自動的に測定する機能(以下、「長オフセット量自動測定機能」という。)を有しているものであってもよいし、長オフセット量自動測定機能を有していないものであってもよい。数値制御装置120および数値制御工作機械200が長オフセット量自動測定機能を有していないものであるときには、工具長オフセット量の測定をオペレータが手作業で行う。工具長補正量の検証は、長オフセット量自動測定機能を有している場合には省略することができ、長オフセット量自動測定機能を有していない場合はオペレータが手作業で行う。
When the numerically controlled
数値制御装置120および数値制御工作機械200が長オフセット量自動測定機能を有しているか否かに拘わらず、工具長オフセット量の測定が済んでいない工具の選別および工具長オフセット量測定用のレファレンス点への当該工具の移動は、数値制御装置120および数値制御工作機械200が自動的に行う。同様に、工具長補正量の検証が済んでいない工具の選別および工具長補正量測定用のレファレンス点への当該工具の移動は、数値制御装置120および数値制御工作機械200が自動的に行う。
Regardless of whether or not the
このため、オペレータは、工具長オフセット量の測定が済んでいない工具や工具長補正量の検証が済んでいない工具を自ら選別しなくも、工具長オフセット量の測定作業や工具長補正量の検証作業を進めることができる。その結果として、数値制御装置120によれば、数値制御工作機械200によりワークを加工するのに先だってオペレータが行わなければならない段取り作業の作業量が軽減される。以下、このような技術的効果を奏する数値制御装置120の構成を詳述する。
For this reason, the operator does not select a tool for which the tool length offset amount has not been measured or a tool for which the tool length correction amount has not been verified, and the tool length offset amount can be measured and the tool length correction amount can be verified. Work can proceed. As a result, according to the
図2は、図1に示した数値制御装置120の構成を概略的に示す機能ブロック図である。同図に示すように、数値制御装置120における装置本体100は、記憶部50、工具登録・変更部55、オフセット量登録・変更部60、パラメータ設定部65、プログラム修正部70、制御部80およびモード切替部85を有しており、この装置本体100には入力部105および表示部110が接続されている。
FIG. 2 is a functional block diagram schematically showing the configuration of the
装置本体100を構成する上記の記憶部50は、数値制御工作機械200(図1参照)の動作制御に用いられるデータやプログラムを格納するものであり、当該記憶部50は、不揮発性メモリからなる第1記憶部40と、揮発性メモリからなる第2記憶部45とを有している。
The
第1記憶部40には工具データ領域10とプログラム領域30とが設けられている。これらの領域のうちの工具データ領域10には、工具毎の識別データ1、工具毎の工具長オフセット量3、工具毎に設定されて該工具が新規に登録されたものであるか否かを表す工具更新情報5および工具毎に設定されて工具長オフセット量が新規に入力されたものであるか否かを表すオフセット量更新情報7等が格納されている。識別データ1としては、例えば数値データや品名に対応するデータ等が用いられ、工具長オフセット量3としては具体的な数値に対応するデータが用いられる。工具更新情報5やオフセット量更新情報7としては、例えばフラグ(変数)や、文字あるいはキャラクタに対応するデータが用いられる。
The
また、プログラム領域30には、数値制御装置120および数値制御工作機械200(図1参照)それぞれの動作制御に用いられる加工プログラム25や、数値制御装置120の状態制御に用いられる状態制御プラグラム28(例えばラダープログラム)等が格納されており、加工プログラム25には、数値制御工作機械200の動作のうちでワークの加工に係る動作を規定するプログラム(図示せず。)と、工具長の測定や工具長補正量の検証に係る動作を規定する動作プログラム20とが含まれている。そして、動作プログラム20には、該動作プログラム20中のパラメータの設定に係るプログラム11(図2では「パラメータの設定11」と表記)、ワーク座標系の設定に係るプログラム13(図2では「座標系の設定13」と表記)、オフセット量の測定に係るプログラム15(図2では「オフセット量の測定15」と表記)、工具長補正に係るプログラム17(図2では「工具長補正17」と表記)および補正量の検証に係るプログラム19(図2では「補正量の検証19」と表記)等が含まれている。
The
一方、第2記憶部45には、数値制御装置120の動作モードを規定する情報が格納されている。図示の例では、後述する測定・検証制御部75による制御の下での動作モードである工具確認モードに対応した工具確認モードフラグ42と、動作プログラム20を起動させる動作モードである自動起動モードに対応した自動起動モードフラグ43とが格納されている。或るモードが指定されると、該モードに対応したフラグが所定の値、例えば「1」になって当該モードが指定されたことを表し、他のモードに対応したフラグは所定の値、例えば「0」になって当該モードが指定されていないことを表す。
On the other hand, the
工具登録・変更部55は、入力部105から入力されたデータに基づいて、記憶部50への新たな工具の識別データ1の登録(格納)、あるいは記憶部50に既に登録(格納)されている識別データ1の変更を行う。また、オフセット量登録・変更部60は、入力部105から入力されたデータに基づいて、記憶部50への新たな工具長オフセット量3の登録(格納)、あるいは記憶部50に既に登録(格納)されている工具長オフセット量3の変更を行う。
Based on the data input from the
パラメータ設定部65は、入力部105から入力されたデータに基づき、動作プログラム20に予め組み込まれている所定のシステム変数にパラメータを設定する。プログラム修正部70は、動作プログラム20の内容を数値制御工作機械200(図1参照)の構成や性能等に応じてユーザが変更することを可能にするものであり、入力部105から入力されたデータに基づいて動作プログラム20を修正する。
The
制御部80は、記憶部50に格納されているデータやプログラムに基づいて数値制御装置120の動作や数値制御工作機械200を動作制御するものであり、上述した工具登録・変更部55、オフセット量登録・変更部60、パラメータ設定部65およびプログラム修正部70、ならびに後述するモード切替部85も当該制御部80により動作制御される。この制御部80は、以下に説明する加工制御部73、測定・検証制御部75および表示制御部77を含んでいる。
The
上記の加工制御部73は、数値制御装置120の動作モードが工具確認モードではないときに動作して、加工プログラム25のうちでワークの加工に係る動作を規定しているプログラムに基づき、数値制御工作機械200(図1参照)の動作を制御する。
The
測定・検証制御部75は、数値制御装置120の動作モードが工具確認モードになった後に当該工具確認モードのまま更に自動起動モードになったときに動作を開始して、工具長オフセット量の測定が済んでいない工具を選別して当該工具を工具長オフセット量測定用のレファレンス点に移動させ、さらに、工具長補正量の検証が済んでいない工具を選別して当該工具を工具長補正量検証用のレファレンス点に移動させる。測定・検証制御部75による数値制御工作機械200の動作制御の詳細については後述する。
The measurement /
制御部80を構成している表示制御部77は、記憶部50に格納された所定の表示プログラム(図示せず。)に基づいて表示部110の動作を制御して、該表示部110に工具データの管理画面や、工具更新情報5およびオフセット量更新情報7それぞれの内容、動作プログラム20中のシステム変数にパラメータを設定するための画面、動作プログラム20を修正するための画面等を表示させる。
The
モード切替部85は、制御部80により動作を制御されて、工具確認モードまたは自動起動モードへの切り替えを指示するモード切替指示信号の入力の有無の確認動作を一定周期(例えば十ミリ秒〜数十ミリ秒周期)で繰り返し行う。ただし、状態制御プログラム28の制御の下で制御部80がモード切替部85の動作を認めないときには、次の動作周期まで動作を休止する。制御部80により動作を許可され、かつモード切替指示信号の入力があったときには、制御部80に当該モード切替指示信号の入力があったことを伝えると共に、第2記憶部45に格納されている工具確認モードフラグ42および自動記号モードフラグ43のうちで上記のモード切替指示信号に対応するモードフラグの値を当該動作モードが指示されたことを表す値に変更する。
The
数値制御装置120の現在の動作モードをオペレータが誤認することがないように、モード切替部85によるモード切り替えの結果は、表示部110に例えば所定の文字やキャラクタ等を表示させたり、装置本体100に付設された所定のランプ(図示せず。)を点灯させたり等して、オペレータに報知することが好ましい。モード切り替えの結果の表示に係る動作は、例えば制御部80によって制御される。
As a result of mode switching by the
一方、入力部105は有線または無線によって装置本体100に接続されており、記憶部50に登録(格納)すべき工具毎の識別データや工具毎の工具長オフセット量等のデータの入力や、装置本体100への種々の指示の入力、例えば起動、フィードホールド、シングルブロック、オーバーライド、リセット、動作モード等の指示の入力等に使用される。この入力部105の具体例としては操作パネルや管理端末等が挙げられる。
On the other hand, the
なお、入力部105を無線によって装置本体100に接続する場合には、装置本体100に送受信処理部が更に設けられる。入力部105によるデータや指示等の入力は、送受信処理部を介して工具登録・変更部55、オフセット量登録・変更部60、パラメータ設定部65、プログラム修正部70、制御部80またはモード切替部85に伝えられる。
When the
表示部110は、表示制御部77によって動作を制御されて、工具データの管理画面や、工具更新情報5およびオフセット量更新情報7それぞれの内容、動作プログラム20中のシステム変数にパラメータを設定するための画面、動作プログラム20を修正するための画面、あるいは数値制御工作機械200(図1参照)の運転状況等を表示する。
The
上述した構成を有する数値制御装置120により数値制御工作機械200(図1参照)の動作を制御してワークから所望の製品または中間製品を製造するにあたっては、まず、従来と同様に工具データの入力、工具長オフセット量の測定および工具長補正量の検証の順番で段取り作業が行われる。
In manufacturing a desired product or intermediate product from a workpiece by controlling the operation of the numerically controlled machine tool 200 (see FIG. 1) by the
ただし、工具長オフセット量の測定が済んでいない工具の選別および工具長オフセット量測定用のレファレンス点への当該工具の移動は、既に説明したように、数値制御装置120および数値制御工作機械200が自動的に行う。同様に、工具長補正量の検証が済んでいない工具の選別および工具長補正量測定用のレファレンス点への当該工具の移動は、数値制御装置120および数値制御工作機械200が自動的に行う。ワークの加工は、段取り作業が終了した後に開始される。
However, as described above, the selection of a tool for which the measurement of the tool length offset amount has not been completed and the movement of the tool to the reference point for measuring the tool length offset amount are performed by the
以下、図1または図2で用いた参照符号を適宜引用して、段取り作業で行われる各工程、すなわち工具データ入力工程、工具長オフセット量測定工程および工具長補正量検証工程の各々について詳述する。 Hereinafter, the reference numerals used in FIG. 1 or FIG. 2 will be referred to as appropriate, and each process performed in the setup operation, that is, each of the tool data input process, the tool length offset amount measurement process, and the tool length correction amount verification process will be described in detail. To do.
(工具データ入力工程)
工具データ入力工程では、ワークの加工に使用する複数種の工具それぞれについて、その識別データや工具長オフセット量等をツーリングリスト等に基づいて入力部105から記憶部50に入力する。このとき、工具長オフセット量を未だ測定していない工具については、工具長オフセット量の入力が省略される。また、工具データの入力とは別に、数値制御工作機械200を構成しているマガジン160(図1参照)中の各ポットに所定の工具を収容する。これらの作業はオペレータにより行われる。
(Tool data input process)
In the tool data input process, the identification data, the tool length offset amount, and the like are input from the
図3は、上記の識別データや工具長オフセット量等の入力を終えた段階で表示部110に表示される工具データの管理画面の一例を示す概略図である。同図に示す管理画面115には、マガジン160でのポット番号、個々のポットに収容された工具についての識別データ1(図2参照)である工具番号、この工具番号に対応して設けられた補正番号および工具長オフセット量の各欄が設けられており、それぞれに所定のデータが表示されている。なお、上記の補正番号も識別データ1の1つである。
FIG. 3 is a schematic diagram illustrating an example of a tool data management screen displayed on the
この管理画面115は、数値制御工作機械200によって或る製品または中間製品を製造した後に他の製品または中間製品を製造する際の管理画面であり、工具番号3,4,6,7の各工具のみが今回新たに採用され、残りの工具番号1,2,5,8,9,10の各工具は前回使用したものと同じである。新たに採用された工具番号3,4,6,7の各工具のうち、工具番号4の工具についてのみ、その工具長オフセット量が入力されている。また、工具番号1,2,8の各工具については、その工具長オフセット量がオペレータにより入力し直されている。工具番号5,9,10の各工具については、データの変更がない。
This
今回新たに採用された工具番号3,4,6,7の各工具の工具更新情報5(図2参照)は、管理画面115上でその工具番号を入力または上書き入力することにより、新規に登録されたものであることを表す情報に自動的に設定される。また、今回工具長オフセット量が入力された工具番号1,2,4,8の各工具のオフセット量更新情報は、オフセット量が新規に入力されたものであることを表す情報に自動的に設置される。一方、データの変更がない工具番号5,9,10の各工具では、工具更新情報5は新規に登録されたものではないことを表す情報に、またオフセット量更新情報7は工具長オフセット量が新規に入力されたものではないことを表す情報になっている。
The tool update information 5 (see FIG. 2) for each of the
図4は、図3に示した工具データの管理画面115での表示内容に対応する工具データの一例を一覧にして示す図表である。図示の例では、工具データ領域10(図2参照)でのメモリ番地と工具番号、補正番号が対応しており、工具番号1,2,5,8,9,10の各工具での工具更新情報はフラグ「0」、すなわち新規に登録されたものではないことを表す情報に設定され、工具番号3,4,6,7の各工具での工具更新情報はフラグ「1」、すなわち、新規に登録されたものであることを表す情報に設定されている。また、工具番号1,2,4,8の各工具でのオフセット量更新情報はフラグ「1」、すなわち工具長オフセット量が新規に入力されたものであることを表す情報に設定され、工具番号3,5,6,7,9,10の各工具でのオフセット量更新情報がフラグ「0」、すなわち工具長オフセット量が新規に入力されたものではないことを表す情報に設定されている。
FIG. 4 is a chart showing a list of examples of tool data corresponding to the display contents on the tool
なお、ユーザにより任意に設定可能なシステム変数が動作プログラム20中に予め組み込まれている場合には、以下に説明する工具長オフセット量測定工程で工具長オフセット量の測定を開始する前に、パラメータ設定部65および入力部105により当該システム変数へのパラメータの設定を行う。
When system variables that can be arbitrarily set by the user are incorporated in the
(工具長オフセット量測定工程)
工具長オフセット量測定工程では、測定・検証制御75(図2参照)により数値制御工作機械200の動作を制御して、工具長オフセット量の測定が済んでいない工具の選別および当該工具の工具長オフセット量測定用のレファレンス点への移動を行い、その後、当該工具の工具長オフセット量を自動または手作業で測定する。
(Tool length offset measurement process)
In the tool length offset amount measuring step, the operation of the numerically controlled
工具データ入力工程から当該工具長オフセット量測定工程に移行するにあたっては、入力部105から装置本体100に所定のモード切替指示信号を入力して、モード切替部85(図2参照)により数値制御装置120の動作モードを工具確認モードにし、次いで工具確認モードのまま自動起動モードにする。数値制御装置120の動作モードが工具確認モードになると測定・検証制御部75が動作プログラム20(図2参照)を読み込み、その後に工具確認モードのまま動作モードが自動起動モードに切り替えられると測定・検証制御部75が動作を開始する。
In shifting from the tool data input process to the tool length offset amount measuring process, a predetermined mode switching instruction signal is input from the
動作を開始した測定・検証制御部75は、まず、工具データ領域10に格納されている識別データ1と工具更新情報3とオフセット量更新情報7(図2参照)とに基づいて、工具長オフセット量の測定が済んでいない工具に対応する識別データ1(工具番号または補正番号;図4参照)を選別する。すなわち工具更新情報がフラグ「1」に設定され、かつオフセット量更新情報がフラグ「0」に設定されている識別データ1を選び出す。
The measurement /
そして、工具長オフセット量の測定が済んでいない工具に対応する識別データ1を1つ選別するたび毎に、この識別データ1とオフセット量の測定に係るプログラム15(オフセット量の測定15;図2参照)とに基づいて数値制御工作機械200の動作を制御して、当該識別データ1に対応する工具をマガジン160(図1参照)のポットから取り出して数値制御工作機械200の所定箇所に装着させ、予め定められた工具長オフセット量測定用のレファレンス点に移動させる。
Each time one piece of
なお、図4に示す工具番号4の工具のように、工具更新情報のフラグとオフセット量更新情報のフラグとの両方が「1」に設定されている工具については、予め測定された正確な工具長オフセット量が入力されている可能性が高いので、工具長オフセット量の測定対象から外れるように測定・検証制御部75を構成することができる。
For a tool in which both the tool update information flag and the offset amount update information flag are set to “1”, such as the tool of
数値制御装置120および数値制御工作機械200の各々が長オフセット量自動測定機能を有しているものである場合には、上記のレファレンス点まで工具を移動させることにより当該工具の工具長オフセット量が数値制御装置120によって自動的に測定され、その結果が工具の識別データ1と対応付けされて記憶部50(図2参照)に格納される。また、数値制御装置120および数値制御工作機械200のいずれかが長オフセット量自動測定機能を有していないものである場合には、上記のレファレンス点まで工具が移動されてきてからオペレータが当該工具の工具長オフセット量を手作業で測定し、その結果を工具の識別データ1と対応付けして記憶部50に格納する。
When each of the
このようにして工具長オフセット量が記憶部50に格納されると、あるいは工具長オフセット量の測定が済んでいない工具に対応した識別データ1を測定・検証制御部75が選び出すと、当該工具の工具更新情報5(図2参照)は工具長オフセット量の測定が不要であることを表す情報、例えばフラグ「0」に自動的に設定される。なお、長オフセット量自動測定機能により工具長オフセット量を測定する場合には、この工具についての工具長補正量の検証を省略することができるので、所望の時期に当該工具のオフセット量更新情報7(図2参照)が所定の情報、すなわち工具長補正量の検証が不要であることを表す情報、例えばフラグ「0」に自動的に設定されるように、測定・検証制御部75が構成される。
When the tool length offset amount is stored in the
図5は、長オフセット量自動測定機能を有している数値制御装置および数値制御工作機械によって工具長オフセット量を測定するときの工具の移動の一例を示す概略図である。同図に示す例では、数値制御工作機械を構成しているテーブル210上に接触センサー215が配置されている。ワークWはテーブル210上に配置される。
FIG. 5 is a schematic diagram showing an example of tool movement when measuring a tool length offset amount by a numerical control device having a long offset amount automatic measurement function and a numerically controlled machine tool. In the example shown in the figure, a
工具長オフセット量が測定される工具220は、ツールポジションTPにおいて数値制御工作機械の所定箇所(図示の例では主軸225の下端)に装着される。工具220が装着された主軸225は、工具長オフセット量測定用のレファレンス点RP1の上方にまで移動した後に下降する。工具220がレファレンス点RP1に達すると、すなわち工具220の先端が接触センサー215の上面に接するまで主軸225が下降すると、接触センサー215から所定の信号が測定・検証制御部75(図2参照)に送られ、当該信号を受信した測定・検証制御部75が主軸225の移動を停止させる。数値制御装置120は、接触センサー215の上面の機械座標と、工具215がレファレンス点RP1(接触センサー215の上面)に達した時点での主軸225の機械座標と、基準工具の長さとから工具長オフセット量OVを自動的に算出し、工具220の識別データに対応付けして記憶部50に格納する。
The
(工具長補正量検証工程)
工具長補正量検証工程では、測定・検証制御75(図2参照)により数値制御工作機械200(図1参照)の動作を制御して、工具長補正量の検証が済んでいない工具の選別および当該工具の工具長補正量検証用のレファレンス点への移動を行い、その後、当該工具の工具長補正量を手作業で測定して検証する。
(Tool length compensation amount verification process)
In the tool length correction amount verification step, the operation of the numerically controlled machine tool 200 (see FIG. 1) is controlled by the measurement / verification control 75 (see FIG. 2) to select the tool whose tool length correction amount has not been verified. The tool is moved to a reference point for verifying the tool length correction amount, and then the tool length correction amount of the tool is manually measured and verified.
このとき、測定・検証制御部75は、工具データ領域10に格納されている識別データ1と工具更新情報3とオフセット量更新情報7(図2参照)とに基づいて、工具長補正量の検証が済んでいない工具に対応する識別データ1(工具番号または補正番号;図4参照)を選別する。すなわちオフセット量更新情報がフラグ「1」に設定されている識別データ1を選び出す。
At this time, the measurement /
そして、工具長補正量の検証が済んでいない工具に対応する識別データ1を1つ選別するたび毎に、この識別データ1に対応する工具長オフセット量3(図2参照)に基づいて数値制御工作機械200でのワーク座標系の原点の位置を変更すると共に、当該識別データ1と補正量の検証に係るプログラム19(補正量の検証19;図2参照)とに基づいて数値制御工作機械200の動作を制御して、上記の識別データ1に対応する工具をマガジン160(図1参照)のポットから取り出して数値制御工作機械200の所定箇所に装着させ、予め定められた工具長補正量検証用のレファレンス点にまで移動させる。オペレータは、工具が工具長補正量検証用のレファレンス点にまで移動した後に手動で工具長補正量を測定して検証する。
Each time one piece of
なお、上述のようにして工具長補正量の検証が済んでいない工具に対応した識別データ1を測定・検証制御部75が選び出すと、当該工具のオフセット量更新情報5(図2参照)は工具長補正量の検証が不要であることを表す情報、例えばフラグ「0」に自動的に設定される。
When the measurement /
図6は、工具長補正量を検証するときの工具の移動の一例を示す概略図である。同図に示す構成部材は全て図5を参照して既に説明しているので、これらの構成部材については図5で用いた参照符号と同じ参照符号を付してその説明を省略する。 FIG. 6 is a schematic diagram showing an example of tool movement when verifying the tool length correction amount. Since all the structural members shown in the figure have already been described with reference to FIG. 5, the same reference numerals as those used in FIG.
工具長補正量が検証される工具220は、ツールポジションTPにおいて数値制御工作機械の主軸225の下端に装着されて工具長補正量検証用のレファレンス点RP3の上方にまで移動した後に下降する。主軸225の移動は、工具220がレファレンス点RP3に達した時点、例えばワークWの上面から50mm上方の地点に工具220の先端が達したものと数値制御装置120(図2参照)が判断した時点で停止する。工具長補正量CVは、工具220の先端とワークWの上面との距離をオペレータがゲージ等を用いて手作業で測定することにより求められる。オペレータは、この測定値と前述した工具長オフセット量とを比較して、工具長補正が正しく行われているか否かを検証する。なお、既に説明したように、長オフセット量自動測定機能により工具長オフセット量を測定した場合には、工具長補正量検証工程を省略することができる。
以上説明したように、数値制御装置120により数値制御工作機械200(図1参照)の動作を制御してワークから所望の製品または中間製品を製造するにあたっても、従来と同様に工具データの入力、工具長オフセット量の測定および工具長補正量の検証の順番で段取り作業が行われるものの、オペレータは、工具長オフセット量の測定が済んでいない工具や工具長補正量の検証が済んでいない工具を自ら選別しなくも、工具長オフセット量の測定作業や工具長補正量の検証作業を進めることができる。このため、数値制御装置120によれば、数値制御工作機械200によりワークを加工するのに先だってオペレータが行わなければならない段取り作業の作業量が軽減される。
As described above, when the desired product or intermediate product is manufactured from the workpiece by controlling the operation of the numerically controlled machine tool 200 (see FIG. 1) by the
このような技術的効果を奏する数値制御装置120で用いられる動作プログラム20(図2参照)の仕様をどのようなものにするかは、適宜選定可能である。以下、動作プログラム20の基となるソースプログラムの一例を説明する。
The specifications of the operation program 20 (see FIG. 2) used in the
図7は、数値制御装置120で用いられる動作プログラム20の基となるソースプログラムの一例を示す概略図である。同図に示すソースプログラム20Sは、数値制御装置120および数値制御工作機械200(図1参照)の各々が長オフセット量自動測定機能を有している場合および有していない場合のどちらであっても用いることができるものであり、システム変数#10000〜#10008をコモン変数に代入することでプログラムの内容が規定される。
FIG. 7 is a schematic diagram showing an example of a source program that is the basis of the
システム変数#10000は工具長オフセット量を自動で測定するか否かについて定めたパラメータを呼び出すためのものであり、システム変数#10001は工具長補正量を検証するか否かについて定めたパラメータを呼び出すためのものである。工具長オフセット量を自動で測定した工具につては、工具長補正量の検証を省略することができる。
また、システム変数#10004は工具交換指令を呼び出すためのものであり、システム変数#10005は予め定めた複数のワーク座標系の中からどのワーク座標系を使用するかを指定するパラメータを呼び出すためのものである。システム変数#10006は工具長補正量の検証位置(レファレンス点)について定めたパラメータを呼び出すためのものであり、システム変数#10007はプログラムエンド指令を呼び出すためのものである。そして、システム変数#10008は、工具長オフセット量の測定位置(レファレンス点)について定めたパラメータを呼び出すためのものである。
なお、システム変数#10002は工具長オフセット量の測定が済んでいない工具の工具番号(補正番号)、システム変数#10003は工具長補正量の検証が済んでいない工具の工具番号(補正番号)であり、これらは測定・検証制御部75によって工具データ領域10(図2参照)から読み出されて動作プログラム20に格納される。また、システム変数#10002,#10003以外のシステム変数は、入力部105からの入力に基づいてパラメータ設定部65により設定される。
ソースプログラム20Sにおけるシーケンス番号N120〜N210の各ブロックは、工具長オフセット量の測定が済んでいない工具についてその工具長オフセット量を自動測定するためのものである。また、シーケンス番号N310〜N390の各ブロックは、工具長補正量の検証が済んでいない工具を工具長補正量検証用のレファレンス点にまで移動させるためのブロックであり、1つの工具を工具長補正量検証用のレファレンス点にまで移動させ終わった段階で数値制御装置120(測定・検証制御部75;図2参照)がブロック停止状態になるように組まれている。
Each block of sequence numbers N120 to N210 in the
上述の構成を有するソースプログラム20Sに基づいて工具長オフセット量を測定する際の制御装置120による数値制御工作機械200(図1参照)の動作制御と、ソースプログラム20に基づいて工具長補正量を検証する際の制御装置120による数値制御工作機械200(図1参照)の動作制御とは互いに類似している。以下では、図2で用いた参照符号を適宜引用しつつ、工具長補正量を検証する際の制御装置120による数値制御工作機械200の動作制御の具体例についてフローチャートを用いて詳述し、工具長オフセット量を測定する際の制御装置120による数値制御工作機械200の動作制御についてはその説明を省略する。
Operation control of the numerically controlled machine tool 200 (see FIG. 1) by the
図8は、モード切替部85によって数値制御装置120の動作モードが工具確認モードに切り替えられるときの手順を示すフローチャートである。前述のように、モード切替部85はモード切替指示信号の入力の有無の確認動作を一定周期で繰り返し行うわけであるが、状態制御プログラム28の制御の下で制御部80(図2参照)がモード切替部85の動作を認めないときには、次の動作周期まで動作を休止する。
FIG. 8 is a flowchart illustrating a procedure when the operation mode of the
同図に示すステップS210でモード切替部85の動作が許可されると、モード切替部85はステップS212において工具確認モードへの切り替えを指示するモード切替指示信号が入力されているか否かを判断する。そして、工具確認モードへの切り替えを指示するモード切替指示信号が入力されていたときには、ステップS214において測定・検証制御部75にこの指示信号の入力があったことを伝えることで当該測定・検証制御部75による動作プログラム20(図2参照)のサーチおよび読み込みを開始させる。その一方で、ステップS216において動作プログラム20のサーチ中であることを示すサーチ中信号を表示制御部77(図2参照)に出力する。その後、ステップS218で工具確認モードフラグ42をオンに、すなわち工具確認モードが指定されたことを表す値に変える。これにより、数値制御装置120の動作モードが工具確認モードに切り替えられる。
When the operation of the
なお、ステップS216でサーチ中信号を受けた表示制御部77は、動作プログラム20のサーチ中であることを示す文字やキャラクタ等を表示部110に表示させるか、または所定のランプを点灯させる。ステップS212においてモード切替指示信号が工具確認モードへのモード切り替えを指示する信号ではないと判断されたときには処理を終了し、モード切替指示信号の入力の有無の確認動作を再び一定周期で行う。
The
図9は、工具確認モードでの測定・検証制御部75の動作を示すフローチャートである。測定・検証制御部75は状態制御プログラム28(図2参照)に基づく状態制御を受けており、状態制御プログラム28に基づく制御の下で許可された時期に周期的(例えば10ミリ秒周期)に動作する。
FIG. 9 is a flowchart showing the operation of the measurement /
同図に示すステップS220で測定・検証75の動作が許可されると、当該測定・検証制御部75はステップS222においてリセット信号がオフになっているか否かを判断し、リセット信号がオフになっていたときにはステップS230に進んで自動起動モードになっているか否かを判断する。そして、自動起動モードになっていると判断したときにはステップS240に進んで、前回動作したときに1ブロック(動作プログラム20における1ブロック)分の処理が中断したままになっているか否か、換言すれば1ブロック分の処理が終了済みであるか否かを判断する。上記のステップS240で1ブロック分の処理が終了済みであると判断したときにはステップS242に進んで次の1ブロックを読み出し、該ブロックの記述内容をステップS244で解析した後にステップS246で当該1ブロック分の処理を実行してから1動作周期の動作を終了する。
When the operation of the measurement /
一方、上記のステップS222でリセット信号がオフになっていないと判断したときにはステップS224に進み、自動起動モードになっているか否かに拘わらず自動起動モードを終了させるための処理動作を行い、その後、ステップS226で自動起動モードフラグ43(図2参照)をオフに、すなわち自動起動モードが指定されていないことを表す値に変える指示をモード切替部85に送ってから1動作周期の動作を終了する。
On the other hand, when it is determined in step S222 that the reset signal has not been turned off, the process proceeds to step S224, where a processing operation for ending the automatic start mode is performed regardless of whether the automatic start mode is set. In step S226, an instruction to turn off the automatic start mode flag 43 (see FIG. 2), that is, a value indicating that the automatic start mode is not specified is sent to the
また、上記のステップS230で自動起動モードになっていないと判断したときにはステップS232に進み、自動起動モードへのモード切替指示信号が入力されているか否かを判断する。そして、当該モード切替指示信号が入力されていないと判断したときには1動作周期の動作を終了し、当該モード切替指示信号が入力されていると判断したときにはステップS234で自動起動モードフラグ43をオンに、すなわち自動起動モードが指定されていることを表す値に変える指示をモード切替部85に送ってから1動作周期の動作を終了する。
If it is determined in step S230 that the automatic start mode is not set, the process advances to step S232 to determine whether or not a mode switching instruction signal for the automatic start mode is input. When it is determined that the mode switching instruction signal is not input, the operation of one operation cycle is terminated. When it is determined that the mode switching instruction signal is input, the automatic
上記のステップS240で1ブロック分の処理が終了済みではないと判断したときにはステップS246に進んで、当該終了済みでない1ブロック分の処理を実行してから1動作周期の動作を終了する。 When it is determined in step S240 that the process for one block has not been completed, the process proceeds to step S246, where the process for one block that has not been completed is executed, and then the operation in one operation cycle is completed.
数値制御装置120の動作モードが工具確認モードであるとき、測定・検証制御部75(図2参照)は、ステップS246の1ブロック分の処理を所定数の動作周期に亘って行うことで動作プログラム20(図2参照)の各ブロックを順次実行し、これにより数値制御装置120および数値制御工作機械200(図1参照)の動作を制御する。以下、図9に示すステップS242での1ブロックの読み出し、ステップS244での1ブロックのプログラム解析およびステップS246での1ブロック分の処理の実行について、図10〜図13を参照して具体的に説明する。
When the operation mode of the
図10〜図11は、測定・検証制御部75によって行われる1ブロックの読み出しから1ブロック分の処理の実行までの制御の一例を示すフローチャートである。これらの図に示す例では、まず、読み出した1ブロック中にシステム変数#10000が記述されているか否かをステップS250(図10参照)で判断する。そして、システム変数#10000が記述されていると判断したときにはステップS251に進んで当該ブロックの内容を解析し、解析結果に基づいて工具長オフセット量を自動で測定するか否かについて定めたパラメータを呼び出してから1動作周期の動作を終了する。また、ステップS250でシステム変数#10000が記述されていないと判断したときには、ステップS253に進む。
10 to 11 are flowcharts showing an example of control from reading of one block to execution of processing for one block performed by the measurement /
ステップS253では、読み出した1ブロック中にシステム変数#10001が記述されているか否かを判断し、システム変数#10001が記述されていると判断したときにはステップS254に進んで当該ブロックの内容を解析し、解析結果に基づいて工具長補正量を検証するか否かについて定めたパラメータを呼び出してから1動作周期の動作を終了する。また、ステップS253でシステム変数#10001が記述されていないと判断したときにはステップS256に進む。
In step S253, it is determined whether or not system
ステップS256では、読み出した1ブロック中にシステム変数#10004が記述されているか否かを判断し、システム変数#10004が記述されていると判断したときにはステップS257に進んで当該ブロックの内容を解析し、解析結果に基づいて工具交換指令を呼び出してから1動作周期の動作を終了する。また、ステップS256でシステム変数#10004が記述されていないと判断したときにはステップS260に進む。
In step S256, it is determined whether or not system
ステップS260では、読み出した1ブロック中にシステム変数#10005が記述されているか否かを判断し、システム変数#10005が記述されていると判断したときにはステップS261に進んで当該ブロックの内容を解析し、解析結果に基づいてワーク座標系指定用のパラメータを呼び出してから1動作周期の動作を終了する。また、ステップS260でシステム変数#10005が記述されていないと判断したときにはステップS263に進む。 In step S260, it is determined whether or not system variable # 10005 is described in one read block. If it is determined that system variable # 10005 is described, the process proceeds to step S261 to analyze the contents of the block. Then, after calling the parameter for designating the workpiece coordinate system based on the analysis result, the operation in one operation cycle is finished. If it is determined in step S260 that the system variable # 10005 is not described, the process proceeds to step S263.
ステップS263では、読み出した1ブロック中にシステム変数#10006が記述されているか否かを判断し、システム変数#10006が記述されていると判断したときにはステップS264に進んで当該ブロックの内容を解析し、解析結果に基づいて工具長補正量の検証位置について定めたパラメータを呼び出してから1動作周期の動作を終了する。また、ステップS263でシステム変数#10006が記述されていないと判断したときにはステップS266に進む。
In step S263, it is determined whether or not system
ステップS266では、読み出した1ブロック中にシステム変数#10007が記述されているか否かを判断し、システム変数#10007が記述されていると判断したときにはステップS267に進んで当該ブロックの内容を解析し、解析結果に基づいてプログラムエンド指令を呼び出してから1動作周期の動作を終了する。また、ステップS266でシステム変数#10007が記述されていないと判断したときにはステップS270(図11参照)に進む。
In step S266, it is determined whether or not system
図11に示すステップS270からステップS298は、測定・検証制御部75により所定の工具、すなわち工具長オフセット量の測定が済んでいない工具または工具長補正量の検証が済んでいない工程が選別されるときのステップである。これらの工具の選別に際しては、まず、読み出した1ブロック中にシステム変数#10002もしくは#10003が記述されているか否かがステップS270で判断される。
In steps S270 to S298 shown in FIG. 11, the measurement /
読み出した1ブロック中にシステム変数#10002もしくは#10003が記述されていないとステップS270で判断したときには、1動作周期の動作を終了する。一方、システム変数#10002もしくは#10003が記述されていると判断したときにはステップS272に進んで、各工具についての工具更新情報を1つのレコードとしてその先頭位置にインデックスを付与する。次いでステップS274に進んで、各工具についてのオフセット量更新情報を1つのレコードとしてその先頭位置にインデックスを付与する。
When it is determined in step S270 that the system
この後、工具データ領域10に格納されている識別データ1によって特定される各工具の工具更新情報およびオフセット量更新情報の各々を1動作周期につき1工具分ずつ読み出してゆくわけであるが、既に工具更新情報およびオフセット量更新情報の読み出しを終えている工具に対応する識別データ1(工具番号)については、再び読み出すことがないようにステップS276において例えば「0(ゼロ)」で初期化する。
Thereafter, each of the tool update information and offset amount update information of each tool specified by the
上記のステップS276を行った後に、識別データ1によって特定される各工具の全てについて工具更新情報およびオフセット量更新情報を読み出し終えているか否かをステップS278で判断し、全て読み出し終えているときには1動作周期の動作を終了する。一方、読み出し終えていない工具があったときには、当該工具のうちで先頭の工具についての工具更新情報をステップS280で読み出し、更にそのオフセット量更新情報をステップS282で読み出してから、ステップS284に進む。
After performing the above step S276, it is determined in step S278 whether or not the tool update information and the offset amount update information have been read for all the tools specified by the
ステップS284では、読み出した1ブロック中にシステム変数#10002が記述されているか否かを判断し、システム変数#10002が記述されていると判断したときにはステップS286に進み、ステップS280で読み出した工具更新情報のフラグが「1」で、かつステップS282で読み出したオフセット量更新情報のフラグが「0」であるか否かを判断する。工具更新情報のフラグが「1」であるとは、当該工具更新情報に対応する工具が新規に登録されたものであることを意味し、オフセット量更新情報のフラグが「0」であるとは、当該オフセット量更新情報に対応する工具の工具長オフセット量が新規に入力されたものではないことを意味する。
In step S284, it is determined whether or not system
ステップS286での判断条件が成立するときにはステップS288に進んで当該工具の工具更新情報をクリアし、すなわち当該工具の工具更新情報のフラグを「0」にし、その後にステップS290に進んで当該工具の識別データ1(工具番号)を読み出す。すなわち、工具長オフセット量の測定が済んでいない1つの工具に対応する識別データ1(工具番号)を読み出す。この後、1動作周期の動作を終了する。 When the determination condition in step S286 is satisfied, the process proceeds to step S288 to clear the tool update information of the tool, that is, the tool update information flag of the tool is set to “0”, and then the process proceeds to step S290 and the tool is updated. Read identification data 1 (tool number). That is, the identification data 1 (tool number) corresponding to one tool whose tool length offset amount has not been measured is read out. Thereafter, the operation in one operation cycle is finished.
一方、ステップ286で判断条件が成立しないとき、当該工具のオフセット量は新規に入力されたものであり工具長オフセット量の測定および工具長補正量の検証は不要であると考えられるので、この工具の工具更新情報をクリアする、すなわち当該工具の工具更新情報のフラグを「0」にするステップS298を行ってから上述のステップS278に戻る。 On the other hand, when the determination condition is not satisfied in step 286, it is considered that the offset amount of the tool is newly input and it is considered unnecessary to measure the tool length offset amount and verify the tool length correction amount. The tool update information is cleared, that is, step S298 for setting the tool update information flag of the tool to “0” is performed, and then the process returns to step S278 described above.
なお、上述のステップS284でシステム変数#10002が記述されていないと判断したときには、読み出した1ブロック中にシステム変数#10003が記述されていることになるので、当該工具のオフセット量更新情報のフラグが「1」であるか否かをステップS294で判断する。そして、フラグが「1」ではないと判断したときには、当該工具のオフセット量は新規に入力されたものではなく工具長補正量の検証は不要であると考えられるので、上述のステップS278に戻る。また、上記のステップS294でフラグが「1」であると判断したときには当該オフセット量更新情報をステップS296でクリアし、すなわち当該工具のオフセット量更新情報のフラグをステップS296で「0」にしてから上述のステップS288,S290に順次進み、その後に1動作周期の動作を終了する。このときステップS290で読み出される識別データ1(工具番号)は、工具長オフセット量の検証が済んでいない1つの工具に対応する識別データ1(工具番号)である。
If it is determined in step S284 that the system
測定・検証制御部75は、工具長オフセット量の測定が済んでいない工具に対応する識別データ1(工具番号)を上述のステップS290で読み出したときには、次の動作周期で当該工具の工具長オフセット量を自動測定するための制御を行う。また、工具長補正量の測定が済んでいない工具に対応する識別データ1(工具番号)を上述のステップS290で読み出したときには、次の動作周期で当該工具の工具長補正量を検証するための制御を行う。ここでは、工具長補正量を検証するための制御について具体的に説明する。
When the identification data 1 (tool number) corresponding to the tool whose tool length offset amount has not been measured is read in step S290 described above, the measurement /
図12は、工具長補正量を検証する際の測定・検証制御部75による制御の一例を示すフローチャートである。同図に示す例では、まず、読み出した1ブロック中に制御動作モードを指定する指令の1つであるG500指令(図7参照)が記述されているか否かをステップS300で判断し、G500指令が記述されていないと判断したときには1動作周期の動作を終了する。一方、G500指令が記述されていると判断したときにはステップS302に進んで、工具長補正量の検証対象の工具の工具長オフセット量を記憶部50(図2参照)から読み出す。
FIG. 12 is a flowchart illustrating an example of control by the measurement /
ステップS302に続いて行われるステップS304では、工具長補正量の検証を行う際のワーク座標系を特定するために予め設定されているモーダルなワーク原点オフセット量を読み込み、その後、ステップS306に進んで工具長補正量検証用のレファレンス点の座標を算出してから1動作周期の動作を終了する。上記のレファレンス点の座標は、G500指令で指定される座標位置と、ステップS302で読み出した工具長オフセット量と、ステップS304で読み出したワーク原点オフセット量とから算出される。 In step S304, which is performed following step S302, a modal work origin offset amount set in advance for specifying a work coordinate system for verifying the tool length correction amount is read, and then the process proceeds to step S306. After calculating the coordinates of the reference point for verifying the tool length correction amount, the operation in one operation cycle is finished. The coordinates of the reference point are calculated from the coordinate position specified by the G500 command, the tool length offset amount read in step S302, and the workpiece origin offset amount read in step S304.
測定・検証制御部75は、この後の動作周期で工具長補正量の検証対象の工具を数値制御工作機械200(図1参照)の所定箇所(以下の例では主軸)に装着させ、当該工具がステップS306で算出したレファレンス点にくるまで数値制御工作機械200の主軸を移動させる。オペレータは、主軸の移動が完了した後に手作業により工具長補正量を測定して、工具長補正量が正しい値か否かを検証する。検証の終了後に、入力部105から検証終了信号を装置本体120(図2参照)に入力する。
The measurement /
必要に応じて、工具長補正量の検証が終了する前に装置本体120に検証終了信号を入力して、検証のための制御を中止させることができる。検証のための制御を途中で中止させる機能を数値制御装置120に付与すれば、例えば工具長補正量を検証する過程で工具長補正量が大幅に間違っていることに気づいた時等に検証作業を中止して、次の工具の工具長補正量の検証に移行することができるようになるので、段取り作業に要する時間を短縮することが容易になる。
If necessary, a verification end signal can be input to the apparatus
図13は、工具長補正量の検証対象の工具を数値制御工作機械の所定箇所に装着させた後に当該工具を工具長補正量検証用のレファレンス点にまで移動させる際の測定・検証制御部75による制御の一例を示すフローチャートである。同図に示す例では、まず、検証終了信号が入力されたか否かをステップS310で判断し、検証終了信号が入力されていないと判断したときにはステップS312に進んで、数値制御工作機械200の主軸を1動作周期に移動可能な距離の範囲内で工具長補正量検証用のレファレンス点に向けて移動させる。
FIG. 13 shows a measurement /
次いで、ステップS314で工具が工具長補正量検証用のレファレンス点に到達したか否かを判断し、到達していないときには1動作周期の動作を終了する。また、工具が工具長補正量検証用のレファレンス点に到達していたときにはステップS316に進んでG500指令(図12参照)を実行済みであるか否かを判断する。そして、G500指令を実行済みでないときには1動作周期の動作を終了し、G500指令を実行済みであったときには、ステップS318で自動起動モードフラグ43(図2参照)をオフにする指示をモード切替部85(図2参照)に与えてから1動作周期の動作を終了する。このとき、測定・検証制御部75はブロック停止状態となる。
Next, in step S314, it is determined whether or not the tool has reached the reference point for verifying the tool length correction amount. If not, the operation for one operation cycle is terminated. If the tool has reached the reference point for verifying the tool length correction amount, the process proceeds to step S316 to determine whether or not the G500 command (see FIG. 12) has been executed. When the G500 command has not been executed, the operation of one operation cycle is terminated. When the G500 command has been executed, an instruction to turn off the automatic start mode flag 43 (see FIG. 2) is issued in step S318. After giving to 85 (see FIG. 2), the operation of one operation cycle is finished. At this time, the measurement /
工具長補正量の検証は、工具が工具長補正量検証用のレファレンス点に到達して測定・検証制御部75がブロック停止状態となっているときに行う。ブロック停止状態となった測定・検証制御部75は、自動起動モードへの切り替えを指示するモード切替指示信号または検証終了信号が再度入力されたときに再起動して動作プログラム20(図2参照)を読み込む。
The verification of the tool length correction amount is performed when the tool reaches the reference point for verifying the tool length correction amount and the measurement /
一方、上述のステップS310で検証終了信号が入力されていると判断したときにはステップS320に進んで、G500指令を実行済みであるか否かを判断する。そして、G500指令を実行済みでないときには1動作周期の動作を終了し、G500指令を実行済みであったときにはステップS322に進む。 On the other hand, when it is determined in step S310 that the verification end signal is input, the process proceeds to step S320, and it is determined whether or not the G500 command has been executed. Then, when the G500 command has not been executed, the operation of one operation cycle is ended, and when the G500 command has been executed, the process proceeds to step S322.
ステップS322では、測定・検証制御部75がブロック停止状態か否かを判断し、ブロック停止状態と判断したときには、ステップS324で自動起動モードフラグ43をオンにする指示をモード切替部85(図2参照)に与える共に次のブロックの読出し要求をしてから1動作周期の動作を終了する。また、ステップS322でブロック停止状態ではないと判断したときには、ステップS326で現在の主軸の位置座標をプログラム解析時の始点座標に設定した後にステップS328で次のブロックの読み出し要求をしてから1動作周期の動作を終了する。
In step S322, the measurement /
動作プログラム20が図7に示したソースプログラム20Sに基づくものである場合、全ての工具についてその工具長補正量の検証が終了すると、数値制御工作機械200の主軸が機械座標原点に自動的に戻される。
When the
以上、図7〜図13を参照して数値制御装置120で用いられる動作プログラム20、モード切替部85による動作モードの切り替え、工具確認モードでの測定・検証制御部75による制御それぞれの具体例について説明したが、この発明の数値制御装置は、図7〜図13を参照して説明した具体例に限定されるものではない。
As described above, specific examples of the
図1〜図6を参照して説明したように、この発明の数値制御装置は、数値制御工作機械によってワークを所定形状に加工する際に使用される複数の工具の中から工具長オフセット量の測定が済んでいない工具および工具長補正量の検証が済んでいない工具を自動的に選別し、当該工具を所定のレファレンス点にまで移動させることができるものでればよい。さらには、複数の工具の中から工具長オフセット量の測定が済んでいない工具および工具長補正量の検証が済んでいない工具の少なくとも一方を自動的に選別し、当該工具を所定のレファレンス点にまで移動させることができるものであってもよい。 As described with reference to FIGS. 1 to 6, the numerical control device of the present invention has a tool length offset amount among a plurality of tools used when a workpiece is machined into a predetermined shape by a numerically controlled machine tool. It is only necessary to automatically select a tool that has not been measured and a tool whose tool length correction amount has not been verified, and move the tool to a predetermined reference point. Furthermore, at least one of a plurality of tools that have not been measured for the tool length offset amount and a tool that has not been verified for the tool length correction amount is automatically selected, and the tool is set to a predetermined reference point. It may be one that can be moved to.
工具長オフセット量の測定が済んでいない工具および工具長補正量の検証が済んでいない工具のいずれか一方のみを自動的に選別し、当該工具を所定のレファレンス点にまで移動させる数値制御装置は、例えば両方の工具を自動的に選別してそれぞれを当該工具を所定のレファレンス点にまで移動させる前述の数値制御装置から他方の工具の自動選別機能を削除することにより得られるので、ここではその説明を省略する。その他、この発明の数値制御装置については、種々の変形、修飾、組合せ等が可能である。 A numerical controller that automatically selects only one of the tools for which the tool length offset amount has not been measured and the tools for which the tool length correction amount has not been verified, and moves the tool to a predetermined reference point. For example, it is obtained by deleting the automatic selection function of the other tool from the above-mentioned numerical control device that automatically selects both tools and moves each of the tools to a predetermined reference point. Description is omitted. In addition, various modifications, modifications, combinations, and the like are possible for the numerical control device of the present invention.
1 識別データ
3 工具長オフセット量
5 工具更新情報
7 オフセット量更新情報
20 動作プログラム
25 加工プログラム
28 状態制御プログラム
50 記憶部
65 パラメータ設定部
70 プログラム修正部
75 測定・検証制御部
85 モード切替部
105 入力部
120 数値制御装置
200 数値制御工作機械
220 工具
W ワーク
RP1 工具長オフセット量測定用のレファレンス点
RP2 工具長補正量検証用のレファレンス点
DESCRIPTION OF
Claims (5)
前記複数種の工具毎に登録されて該工具を識別する識別データと、工具毎の工具長オフセット量と、前記数値制御工作機械および当該数値制御装置の動作を規定するプログラムとが格納されると共に、前記工具毎に設定されて該工具が新規に登録されたものであるか否を表す工具更新情報および前記工具長オフセット量が新規に入力されたものであるか否かを表すオフセット量更新情報の少なくとも一方が格納される記憶部と、
前記識別データと前記工具更新情報とに基づいて工具長オフセット量の測定が済んでいない工具を選び出すか、または前記識別データと前記オフセット量更新情報とに基づいて工具長補正量の検証が済んでいない工具を選び出し、該選び出した工具を前記数値制御工作機械の所定箇所に装着させて、予め定められた工具長オフセット量測定用のレファレンス点または工具長補正量検証用のレファレンス点にまで移動させる測定・検証制御部と、
を有することを特徴とする数値制御装置。 A numerical control device that controls the operation of a numerically controlled machine tool that uses a plurality of types of tools to process a workpiece into a predetermined shape,
The identification data registered for each of the plurality of types of tools to identify the tool, the tool length offset amount for each tool, and a program for defining the operation of the numerical control machine tool and the numerical control device are stored. Tool update information that is set for each tool and indicates whether or not the tool is newly registered, and offset amount update information that indicates whether or not the tool length offset amount is newly input A storage unit storing at least one of
Based on the identification data and the tool update information, select a tool that has not been measured for the tool length offset amount, or verify the tool length correction amount based on the identification data and the offset amount update information. A non-existing tool is selected, and the selected tool is mounted at a predetermined position of the numerically controlled machine tool, and moved to a predetermined reference point for measuring a tool length offset amount or a reference point for verifying a tool length correction amount. A measurement and verification control unit;
A numerical control device comprising:
入力されたデータに基づいて前記システム変数に所定のパラメータを設定するパラメータ設定部を更に有することを特徴とする請求項1に記載の数値制御装置。 The program includes system variables;
The numerical control apparatus according to claim 1, further comprising a parameter setting unit configured to set a predetermined parameter in the system variable based on input data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006159020A JP2007326174A (en) | 2006-06-07 | 2006-06-07 | Numerical control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006159020A JP2007326174A (en) | 2006-06-07 | 2006-06-07 | Numerical control device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007326174A true JP2007326174A (en) | 2007-12-20 |
Family
ID=38927019
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006159020A Pending JP2007326174A (en) | 2006-06-07 | 2006-06-07 | Numerical control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007326174A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103769946A (en) * | 2014-01-28 | 2014-05-07 | 苏州大学 | Tool setting device used for numerical control machine tool |
JPWO2015029232A1 (en) * | 2013-08-30 | 2017-03-02 | 株式会社牧野フライス製作所 | Tool management system |
JP2021037575A (en) * | 2019-09-03 | 2021-03-11 | ビアメカニクス株式会社 | Board drilling device and board drilling method |
CN116890263A (en) * | 2023-09-04 | 2023-10-17 | 山东豪迈数控机床有限公司 | Tool setting method and device of numerical control machine tool, controller and numerical control machine tool |
-
2006
- 2006-06-07 JP JP2006159020A patent/JP2007326174A/en active Pending
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPWO2015029232A1 (en) * | 2013-08-30 | 2017-03-02 | 株式会社牧野フライス製作所 | Tool management system |
US10078324B2 (en) | 2013-08-30 | 2018-09-18 | Makino Milling Machine Co., Ltd. | Tool management system |
CN103769946A (en) * | 2014-01-28 | 2014-05-07 | 苏州大学 | Tool setting device used for numerical control machine tool |
CN103769946B (en) * | 2014-01-28 | 2015-11-18 | 苏州大学 | For the tool setting equipment of Digit Control Machine Tool |
JP2021037575A (en) * | 2019-09-03 | 2021-03-11 | ビアメカニクス株式会社 | Board drilling device and board drilling method |
JP7180960B2 (en) | 2019-09-03 | 2022-11-30 | ビアメカニクス株式会社 | Board drilling device and board drilling method |
CN116890263A (en) * | 2023-09-04 | 2023-10-17 | 山东豪迈数控机床有限公司 | Tool setting method and device of numerical control machine tool, controller and numerical control machine tool |
CN116890263B (en) * | 2023-09-04 | 2023-11-24 | 山东豪迈数控机床有限公司 | Tool setting method and device of numerical control machine tool, controller and numerical control machine tool |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5193598B2 (en) | Method for creating CNC machine tool control program, computer program for executing said method, method for producing workpiece and workpiece production CNC program | |
US8155789B2 (en) | Device, method, program and recording medium for robot offline programming | |
US10379523B2 (en) | Machining program editing assist apparatus | |
JP5414948B1 (en) | Numerical controller | |
US7110837B2 (en) | Control system and method for on-line editing of user program | |
JP4097670B2 (en) | Monitor device for machine tools | |
JP6677706B2 (en) | Link information generation device, link information generation method, and link information generation program | |
JPH09269808A (en) | Cnc data correcting method | |
EP1308806B1 (en) | Monitoring device for production equipment controlled by programmable logic controller | |
JP5906956B2 (en) | NC machine tool control method, control program, and control apparatus | |
JP2007326174A (en) | Numerical control device | |
JPH0584631A (en) | Numerical controller and cell controller | |
JP4266893B2 (en) | Robot control apparatus and robot system | |
JP4216808B2 (en) | Numerical controller | |
KR101468751B1 (en) | Numerical control system having graphic-based user interface | |
JP2005084800A (en) | Programmable controller | |
CA2246573C (en) | Method for setting tool-based working condition in off-line teaching | |
JPWO2005114344A1 (en) | How to select engineering tool and engineering tool startup program and add new program | |
US20040210338A1 (en) | Numerical control apparatus | |
KR101610386B1 (en) | Cutting shape input apparatus and method using cutting program in computer numarical control machine tools | |
JPH10161719A (en) | System constructing simulation device for industrial robot | |
JP3660038B2 (en) | Numerical controller | |
US20240116191A1 (en) | Robot control device, robot control system, and robot control method | |
JP4628967B2 (en) | Programmable display, its program and recording medium | |
JP2707031B2 (en) | Method and apparatus for checking machining program |