JPH10118890A - Control device of machine tool - Google Patents

Control device of machine tool

Info

Publication number
JPH10118890A
JPH10118890A JP27833596A JP27833596A JPH10118890A JP H10118890 A JPH10118890 A JP H10118890A JP 27833596 A JP27833596 A JP 27833596A JP 27833596 A JP27833596 A JP 27833596A JP H10118890 A JPH10118890 A JP H10118890A
Authority
JP
Japan
Prior art keywords
tool
length
tool length
spindle
control device
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
JP27833596A
Other languages
Japanese (ja)
Inventor
Atsuhisa Asada
敦久 浅田
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.)
Toyoda Koki KK
Original Assignee
Toyoda Koki KK
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 Toyoda Koki KK filed Critical Toyoda Koki KK
Priority to JP27833596A priority Critical patent/JPH10118890A/en
Publication of JPH10118890A publication Critical patent/JPH10118890A/en
Pending legal-status Critical Current

Links

Landscapes

  • Automatic Control Of Machine Tools (AREA)
  • Machine Tool Sensing Apparatuses (AREA)

Abstract

PROBLEM TO BE SOLVED: To automatically and effectively measure the length of a tool whose length is required to be measured in the control device of a machine tool, in the main spindle of which a plurality of tools is selectively secured to perform machining. SOLUTION: Whether measuring the length of the tool T secured in a main spindle 15 based on the command from a machining program is necessary or not is judged, and when it was judged necessary, the length of the tool T is measured. This control device is provided with a memory means to store whether measuring the length of each tool is required or not. The memory contents of the memory means is rewritten so that the measurement of the length of a tool whose length was measured once is omitted when and after the tool is used twice. In addition, this control device is provided with an input device, in which whether or not tool length measurement is required and approximate tool length are input for calculating the tool length from travel amount from the start points of the tool T and the datum face of a reference block to the contact point of the tool T and the datum face by relatively moving the tool T and the datum face of the reference block 12 based on the approximate tool length.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は複数の工具を備え
た工具マガジンとこの工具マガジンと主軸との間で工具
の交換を行う自動工具交換装置とを備えたマシニングセ
ンタ等の工作機械の制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control device for a machine tool such as a machining center having a tool magazine having a plurality of tools and an automatic tool changing device for exchanging tools between the tool magazine and a spindle. .

【0002】[0002]

【従来の技術】数値制御装置によって制御されるマシニ
ングセンタ等の工作機械において、自動加工を行うため
には、加工に先立って使用する工具の工具長を数値制御
装置に登録しておく必要がある。この工具長の登録の仕
方として以下のものが知られている。
2. Description of the Related Art In a machine tool such as a machining center controlled by a numerical controller, in order to perform automatic machining, it is necessary to register a tool length of a tool to be used prior to machining in the numerical controller. The following methods are known for registering the tool length.

【0003】一つは機外にて工具長を測定するものであ
り、ツールプリセッタにて測定した工具長を作業者が数
値制御装置の操作盤から手入力するものである。他の方
法は工作機械内にて工具長を測定するものであり、作業
者が数値制御装置の操作盤からMDI操作により制御指
令を与えることによって、工具長を測定すべき工具を工
具マガジンの工具交換位置に割り出し、この工具交換位
置に割り出された工具を自動工具交換装置により主軸に
装着し、さらに工具長の測定用のプログラムの動作指令
を与えることにより、工具がテーブル上に設けられた基
準ブロックに当接するまで主軸が移動され、このときの
移動量から工具長が演算されて、数値制御装置に登録さ
れるものである。
One is to measure the tool length outside the machine, and the operator manually inputs the tool length measured by the tool presetter from the operation panel of the numerical control device. Another method is to measure a tool length in a machine tool, and an operator gives a control command from an operation panel of a numerical control device by an MDI operation, so that a tool whose tool length is to be measured is a tool in a tool magazine. The tool was set on the table by indexing to the change position, attaching the tool indexed to this tool change position to the spindle by an automatic tool changer, and further giving an operation command of a program for measuring the tool length. The spindle is moved until it comes into contact with the reference block, the tool length is calculated from the movement amount at this time, and registered in the numerical controller.

【0004】[0004]

【発明が解決しようとする課題】前者の場合、作業者が
ツールプリセッタを用いて工具長を測定しなければなら
ない。後者の場合、作業者が直接工具長を測定すること
はなくなるが、作業者が数値制御装置に測定する工具の
割り出し、主軸への装着、工具長の測定といった制御指
令をMDI操作にて与えなければならず、いずれにして
も作業者の手作業が必要である。
In the former case, an operator must measure the tool length using a tool presetter. In the latter case, the operator will not directly measure the tool length, but the operator must give control commands such as indexing the tool to be measured to the numerical control device, attaching to the spindle, and measuring the tool length by MDI operation. In any case, manual work by the operator is required.

【0005】また、前者の場合、通常はツールプリセッ
タと工作機械とは離れた場所に設置されているので、作
業者はツールプリセッタで測定した工具長をデータシー
ト等に記録しておき、そのデータシートを見ながら数値
制御装置にキー入力することになり、記録ミスや入力ミ
スといった人為的なミスが生じることがある。さらに、
後者のように工作機械内で工具長を測定する場合、加工
作業の開始前に、あるいは加工中に加工作業を中断して
工具長を測定しなければならず、作業効率が悪化するこ
とになる。
In the case of the former, since the tool presetter and the machine tool are usually set apart from each other, the operator records the tool length measured by the tool presetter on a data sheet or the like. Key input to the numerical controller while viewing the data sheet may result in human error such as recording error or input error. further,
When measuring the tool length in a machine tool as in the latter, the machining length must be measured before starting the machining operation or by interrupting the machining operation during the machining, resulting in a decrease in work efficiency. .

【0006】[0006]

【課題を解決するための手段】本発明は上述した課題を
解決し、工具長の測定を自動的かつ効率的に行うことを
目的とするものであり、請求項1に記載の発明は、複数
の工具を選択的に主軸に装着して加工を行う工作機械の
制御装置であって、工作機械による加工を制御する加工
プログラムと、主軸に装着すべく選択された工具の工具
長測定の要否を判定する判定手段と、加工プログラムの
指令により主軸に装着された工具がこの判定手段にて工
具長測定が必要と判定されたとき当該工具の工具長を測
定する工具長測定手段とを備えたことを特徴とするもの
である。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems and to automatically and efficiently measure a tool length. A machine tool control device that selectively mounts a tool on a spindle to perform machining, comprising: a machining program for controlling machining by the machine tool; and necessity of measuring a tool length of a tool selected to be mounted on the spindle. And a tool length measuring means for measuring the tool length of the tool mounted on the spindle according to a command of the machining program when the tool length measurement is determined to be necessary by the determining means. It is characterized by the following.

【0007】また、請求項2に記載の発明は、工作機械
による加工を制御する加工プログラムと、予め複数の工
具の工具長測定の要否を記憶した記憶手段と、この記憶
手段に基づいて主軸に装着すべく選択された工具の工具
長測定の要否を判定する判定手段と、加工プログラムの
指令により主軸に装着された工具がこの判定手段にて工
具長測定が必要と判定されたとき当該工具の工具長を測
定する工具長測定手段と、この工具長測定手段にて工具
長が測定された工具の以後の工具長測定を不要とすべく
記憶手段の記憶内容を書換える書換手段とを備えたこと
を特徴とするものである。
According to a second aspect of the present invention, there is provided a machining program for controlling machining by a machine tool, storage means for storing in advance the necessity of tool length measurement of a plurality of tools, and a spindle based on the storage means. Determining means for determining whether or not the tool length measurement of the tool selected to be mounted on the spindle is necessary; and determining that the tool mounted on the spindle is required by the processing program command when the tool length measurement is determined to be necessary. Tool length measuring means for measuring the tool length of the tool, and rewriting means for rewriting the storage contents of the storage means so that subsequent tool length measurement of the tool whose tool length has been measured by the tool length measuring means is unnecessary. It is characterized by having.

【0008】また、請求項3に記載の発明は、工作機械
による加工を制御する加工プログラムと、複数の工具の
工作機械への取付けに際して各工具の工具長測定の要否
および概算工具長を入力する入力装置と、入力された工
具長測定の要否および概算工具長を記憶する記憶手段
と、この記憶手段に基づいて前記主軸に装着すべく選択
された工具の工具長測定の要否を判定する判定手段と、
加工プログラムの指令により主軸に装着された工具がこ
の判定手段にて工具長測定が必要と判定されたとき当該
工具の工具長を測定する工具長測定手段と、この工具長
測定手段にて工具長が測定された工具の以後の工具長測
定を不要とすべく記憶手段の記憶内容を書換える書換手
段と、工具長測定手段にて測定された工具長を記憶する
工具情報テーブルとを備え、工具長測定手段は前記主軸
に装着された工具と工作機械上に設けられた基準面との
接触を検出する接触検出機能を有し、概算工具長に基づ
いて前記工具と前記基準面とを相対的に移動させ両者が
接触するまでの移動量から工具長を演算することを特徴
とするものである。
According to a third aspect of the present invention, there is provided a machining program for controlling machining by a machine tool, and input of necessity of tool length measurement of each tool and an approximate tool length when a plurality of tools are mounted on the machine tool. An input device, a storage unit for storing the necessity of the input tool length measurement and an approximate tool length, and determining whether the tool length measurement of the tool selected to be mounted on the spindle is required based on the storage unit. Means for determining
Tool length measuring means for measuring the tool length of the tool mounted on the spindle according to a command of the machining program when the tool length measurement is required by the determining means, and tool length measuring means for measuring the tool length of the tool. A rewriting means for rewriting the storage content of the storage means so that subsequent tool length measurement of the tool for which the measurement is performed is unnecessary, and a tool information table for storing the tool length measured by the tool length measurement means, The length measuring means has a contact detection function of detecting contact between a tool mounted on the spindle and a reference surface provided on a machine tool, and relatively measures the tool and the reference surface based on an approximate tool length. And the tool length is calculated from the amount of movement until the two come into contact with each other.

【0009】さらに、請求項4に記載の発明は、上記入
力装置が工作機械の工具取付け位置の近傍に設けられて
いることを特徴とするものであり、請求項5に記載の発
明は、工具長測定手段にて測定された工具長を記憶する
工具情報テーブルを備え、この工具情報テーブルに記憶
された工具長に基づいて工具長補正を行うことを特徴と
するものである。
Further, the invention according to a fourth aspect is characterized in that the input device is provided in the vicinity of a tool mounting position of a machine tool. A tool information table for storing the tool length measured by the length measuring means is provided, and the tool length is corrected based on the tool length stored in the tool information table.

【0010】[0010]

【発明の実施の形態】本発明の実施の形態を図面に基づ
いて説明する。図1はマシニングセンタ1を示し、ベッ
ド10上にはX軸(図1紙面に垂直)方向に移動可能に
テーブル11が設けられており、このテーブル11上に
は工作物Wが載置されると共に、後述する基準ブロック
12が取付けられている。また、ベッド10上にはコラ
ム13がZ軸方向に移動可能に設置されており、このコ
ラム13内でスピンドルヘッド14がY軸方向に移動可
能に設けられている。スピンドルヘッド14には主軸1
5が回転可能に保持されており、モータ16によって回
転駆動される。そして、X軸駆動モータ17、Y軸駆動
モータ18およびZ軸駆動モータ19を適宜制御するこ
とにより、主軸15の先端に取付けられた工具Tによっ
て、テーブル11上に載置された工作物Wの加工が行わ
れるものである。なお、主軸15に取付けられる複数の
工具を備えた工具マガジンおよびこの工具マガジンと主
軸15との間で工具を交換する自動工具交換装置につい
ては公知のものを用いればよいので図示していない。
Embodiments of the present invention will be described with reference to the drawings. FIG. 1 shows a machining center 1. A table 11 is provided on a bed 10 so as to be movable in the X-axis direction (perpendicular to the plane of FIG. 1). , A reference block 12 described below is attached. A column 13 is provided on the bed 10 so as to be movable in the Z-axis direction, and a spindle head 14 is provided in the column 13 so as to be movable in the Y-axis direction. Spindle head 14 has spindle 1
5 is rotatably held and driven to rotate by a motor 16. Then, by appropriately controlling the X-axis drive motor 17, the Y-axis drive motor 18, and the Z-axis drive motor 19, the tool T mounted on the tip of the main shaft 15 can be used to move the workpiece W placed on the table 11 Processing is performed. A tool magazine provided with a plurality of tools attached to the main shaft 15 and an automatic tool changing device for exchanging tools between the tool magazine and the main shaft 15 are not shown because a known device may be used.

【0011】ここで、スピンドルヘッド14の先端外周
部には電流検出用の抵抗Rを介して交流電源20に接続
された接触検出用のコイル21が取付けられており、主
軸15の周囲を取り巻くような磁束が発生している。こ
のため、工具Tが基準ブロック12に接触すると、図1
に破線で示すような誘導電流回路を介して誘導電流が流
れ、コイル21のインピーダンスを低下させる。コイル
21のインピーダンスが低下すると励磁電流が増加して
抵抗Rの両端に発生する電圧が増加するため、接触検出
装置22には高い電圧信号が与えられるようになる。接
触検出装置22はこの電圧信号の増加によって工具Tと
基準ブロック12とが接触したことを検出するようにな
っており、接触が検出されると接触検出信号TSが後述
する数値制御装置30に送出される。
Here, a contact detection coil 21 connected to an AC power supply 20 via a current detection resistor R is attached to the outer periphery of the tip of the spindle head 14 so as to surround the main shaft 15. Magnetic flux is generated. For this reason, when the tool T contacts the reference block 12, FIG.
, An induced current flows through an induced current circuit as indicated by a broken line, and lowers the impedance of the coil 21. When the impedance of the coil 21 decreases, the exciting current increases and the voltage generated across the resistor R increases, so that a high voltage signal is supplied to the contact detection device 22. The contact detection device 22 detects the contact between the tool T and the reference block 12 based on the increase of the voltage signal. When the contact is detected, a contact detection signal TS is sent to the numerical control device 30 described later. Is done.

【0012】数値制御装置30は図2に示すように、C
PU31と、CPU31に接続された記憶装置であるR
OM32、RAM33およびCPU31にインターフェ
イス34を介して接続された入力装置としてのキーボー
ド35、出力装置としてのCRT36から構成されてい
る。ここで、RAM33には、図3に示すような工具情
報テーブルが記憶されている。この工具情報テーブルに
は、工具マガジンのPOT番号に対応して、そのPOT
に収納されている工具の工具番号、工具長、工具径、あ
るいは工具寿命等の工具に関する各種データが格納され
ており、これらのデータは必要に応じて書換え可能であ
る。そして、数値制御装置30はこれらのデータを参照
して加工を制御するものであり、本発明に係わる工具長
データは、この工具長データに基づいて数値制御装置3
0は工具長補正を行って、例えば、加工プログラム用の
NCデータにおけるZ軸の指令位置データを補正するよ
うに用いられるものである。
As shown in FIG. 2, the numerical controller 30
PU 31 and R as a storage device connected to CPU 31
It comprises a keyboard 35 as an input device connected to the OM 32, a RAM 33 and the CPU 31 via an interface 34, and a CRT 36 as an output device. Here, the RAM 33 stores a tool information table as shown in FIG. The POT number of the tool magazine corresponds to the POT number of the tool magazine.
Stores various data on the tool such as the tool number, the tool length, the tool diameter, and the tool life of the tools stored therein, and these data can be rewritten as necessary. The numerical controller 30 controls machining with reference to these data. The tool length data according to the present invention is based on the tool length data.
Numeral 0 is used to perform tool length correction to correct, for example, the Z-axis command position data in the NC data for the machining program.

【0013】また、CPU31にはインターフェイス3
7を介して、X軸駆動モータ17を駆動するデジタルサ
ーボユニット38が接続されており、同様にY軸、Z軸
駆動モータ18、19を駆動するデジタルサーボユニッ
ト39、40が接続されている。また、各駆動モータ1
7、18、19にはエンコーダ41、42、43が取付
けられており、各駆動モータ17、18、19の現在位
置信号が各デジタルサーボユニット38、39、40お
よびCPU31にフィードバックされるように構成され
ている。
The CPU 31 has an interface 3
7, a digital servo unit 38 for driving the X-axis drive motor 17 is connected, and similarly, digital servo units 39 and 40 for driving the Y-axis and Z-axis drive motors 18 and 19 are connected. In addition, each drive motor 1
Encoders 41, 42, and 43 are attached to 7, 18, and 19, respectively, so that current position signals of the drive motors 17, 18, and 19 are fed back to the digital servo units 38, 39, and 40 and the CPU 31. Have been.

【0014】次に本実施の形態の作用について、図5〜
図10のフローチャートに基づいて説明する。図5に示
されるように、マシニングセンタにより加工が行われる
加工プログラム処理に先立って、工具の取付作業が行わ
れる。この工具取付作業は、作業者が加工に必要な工具
を工具マガジンに装着するものであるが、この工具の装
着に際して、図6のフローチャートに示すように、工具
長の測定を必要とする工具には工具長測定指示を与える
と共に、およその工具長を入力して置く。具体的には図
4に示すCRT36の画面のように、工具長測定を必要
とする工具を装着したPOTの対応する位置に「*」を
入力し、さらに概算工具長をキーボード37から入力す
る。この入力された工具長測定指示の有無および概算工
具長はRAM33の所定のエリアに記憶される。また、
工具長測定の必要がない工具、例えば、ツールプリセッ
タ等により測定され予め工具長がわかっている工具につ
いては、その工具長を直接入力する。なお、この直接入
力された工具長は前記の工具情報テーブルの対応するエ
リアに登録される。
Next, the operation of this embodiment will be described with reference to FIGS.
This will be described with reference to the flowchart of FIG. As shown in FIG. 5, prior to a machining program process in which machining is performed by the machining center, a tool mounting operation is performed. In this tool mounting operation, an operator mounts a tool necessary for machining on a tool magazine. When mounting the tool, as shown in a flowchart of FIG. Gives a tool length measurement instruction and inputs and puts an approximate tool length. Specifically, as shown on the screen of the CRT 36 shown in FIG. 4, “*” is input at a corresponding position of the POT where a tool requiring tool length measurement is mounted, and further, an approximate tool length is input from the keyboard 37. The presence or absence of the input tool length measurement instruction and the approximate tool length are stored in a predetermined area of the RAM 33. Also,
For a tool that does not require tool length measurement, for example, a tool whose tool length is known in advance by being measured by a tool presetter or the like, the tool length is directly input. The directly input tool length is registered in the corresponding area of the tool information table.

【0015】次に図7に示すフローチャートに基づいて
加工プログラム処理について説明する。まず、S1にて
加工に必要な諸々の初期処理を行った後、S2で工具マ
ガジンの割り出しを指示するTコードの有無が判断さ
れ、Tコードがある場合はS3にて工具マガジンの割り
出し処理が行われる。また、S4にて工具交換を指示す
るM6コードの有無が判断され、M6コードがある場合
はS5にて工具交換処理が行われる。そして、S6にて
早送りや切削送り等の実際の加工に係わる処理が行わ
れ、S7でプログラムエンドを示すM30コードがある
か否かが判断され、M30コードが現れるまで上記の処
理が繰り返される。
Next, the machining program processing will be described with reference to the flowchart shown in FIG. First, after performing various initial processes required for machining in S1, the presence or absence of a T code instructing indexing of a tool magazine is determined in S2. If there is a T code, the indexing process of the tool magazine is performed in S3. Done. In S4, it is determined whether there is an M6 code for instructing a tool change. If there is an M6 code, a tool change process is performed in S5. Then, in S6, processing relating to actual processing such as rapid traverse or cutting feed is performed. In S7, it is determined whether there is an M30 code indicating a program end, and the above processing is repeated until the M30 code appears.

【0016】上記のS3のTコード処理について、図8
に示すフローチャートに基づいて説明する。まず、S3
0にて、工具マガジンの工具交換位置に割り出すべき工
具が先の工具取付作業時に工具長測定指示されたものか
否かが判断され、工具長測定指示された工具である場合
はS31にてコモン変数#559に1が代入され、S3
2にて、同じく工具取付作業時に入力された工具の概算
工具長がコモン変数#560に代入される。また、S3
0で工具長測定指示がない場合はS33に進み、コモン
変数#559には0が代入される。そして、これらの処
理が行われた後にS34にて実際に工具マガジンの割り
出し動作が行われ、加工プログラムで指示された工具が
工具交換位置に割り出される。
FIG. 8 shows the T code processing in S3.
This will be described based on the flowchart shown in FIG. First, S3
At 0, it is determined whether or not the tool to be indexed to the tool change position of the tool magazine has been instructed to measure the tool length during the previous tool mounting operation. 1 is assigned to the variable # 559, and S3
At 2, the approximate tool length of the tool, which was also input during the tool mounting operation, is substituted into the common variable # 560. Also, S3
If it is 0 and there is no tool length measurement instruction, the process proceeds to S33, and 0 is substituted for the common variable # 559. After these processes are performed, the tool magazine is actually indexed at S34, and the tool specified by the machining program is indexed to the tool change position.

【0017】ここで、コモン変数を使用するのは、工具
長測定を行うか否かの管理はC言語等の汎用ソフトウエ
アで行われ、実際に工具長の測定を行う工具長測定処理
は数値制御装置30のマクロプログラムによって行われ
るからであり、汎用ソフトウエアとマクロプログラムと
の間のデータ転送手段としてコモン変数を用いるのであ
る。
Here, the common variable is used for managing whether or not to perform the tool length measurement, using general-purpose software such as C language, and the tool length measurement processing for actually measuring the tool length is a numerical value. This is because the control is performed by the macro program of the control device 30, and a common variable is used as a data transfer means between the general-purpose software and the macro program.

【0018】次に上記加工プログラム処理のS5のM6
コード処理について、図9に基づいて説明する。まず、
S50にて、先のTコード処理にて工具マガジンの工具
交換位置に割り出された工具と主軸15に装着されてい
る工具との交換が自動工具交換装置によって行われる。
そして、S51にてコモン変数#559が1であるか否
か、すなわち、工具長測定をする必要があるか否かを判
断し、工具長測定指示がない場合はM6コード処理は終
了され、工具長測定指示がある場合は、S52にて、後
述する工具長測定処理が行われる。そして、工具長測定
処理が終了するとS53に進み、測定された工具長が工
具情報テーブルの対応するエリアに格納される。次に、
S54にて工具長測定指示をOFFとし、S55にて概
算工具長を0とする。これにより、一度測定された工具
は2回目以降の使用の際は工具長が行われなくなるわけ
である。
Next, M6 of S5 of the above machining program processing
The code processing will be described with reference to FIG. First,
In S50, the automatic tool changer performs the exchange between the tool indexed to the tool exchange position of the tool magazine in the T-code processing and the tool mounted on the spindle 15.
Then, in S51, it is determined whether or not the common variable # 559 is 1, that is, whether or not it is necessary to measure the tool length. If there is no instruction to measure the tool length, the M6 code processing is terminated, and If there is a length measurement instruction, a tool length measurement process described later is performed in S52. When the tool length measurement processing is completed, the process proceeds to S53, where the measured tool length is stored in a corresponding area of the tool information table. next,
At S54, the tool length measurement instruction is turned off, and at S55, the approximate tool length is set to 0. As a result, once the tool is measured, the tool length is not performed in the second and subsequent use.

【0019】次に上記M6コード処理のS52の工具長
測定処理について、図10のフローチャートおよび図1
1に基づいて説明する。まず、S520にて、工具Tが
装着された主軸15を所定の測定開始位置SPに移動さ
せる。そして、この測定開始位置SPにおけるZ軸の現
在値を読み取り、この値をBに代入する。ここで、テー
ブル11上の基準ブロック12の基準面44のZ軸方向
の位置は不変であるから、測定開始位置SPにおける主
軸15の基準位置、例えば、主軸端面とテーブル11上
の基準ブロック12の基準面44との間の距離は既知で
あり、この距離をLとする。次に、S522にてZ軸を
早送りするわけであるが、この際の送り量l1 は次式の
ように決定される。
Next, the tool length measuring process in S52 of the M6 code process will be described with reference to the flowchart of FIG.
1 will be described. First, in S520, the spindle 15 on which the tool T is mounted is moved to a predetermined measurement start position SP. Then, the current value of the Z-axis at the measurement start position SP is read, and this value is substituted for B. Here, since the position of the reference surface 44 of the reference block 12 on the table 11 in the Z-axis direction does not change, the reference position of the spindle 15 at the measurement start position SP, for example, between the end surface of the spindle and the reference block 12 on the table 11. The distance from the reference plane 44 is known, and this distance is defined as L. Next, although not fast forward the Z-axis at S522, the feed amount l 1 at this time is determined as follows.

【0020】l1 =L−(#560+50mm) すなわち、測定開始位置SPにおける主軸15の基準位
置とテーブル11上の基準ブロック12の基準面44と
の間の距離(L)から概算工具長(コモン変数#560
に代入されている)および余裕値(上記の式では50m
m)を引いたものである。
L 1 = L − (# 560 + 50 mm) That is, the approximate tool length (common) is calculated from the distance (L) between the reference position of the spindle 15 at the measurement start position SP and the reference surface 44 of the reference block 12 on the table 11. Variable # 560
) And a margin value (50 m in the above equation).
m) is subtracted.

【0021】次にS523でZ軸の送り速度を低速とし
てS524にて工具Tと基準ブロック12との接触が検
出されるまでZ軸の遅送り(送り量l2 )が続けられ
る。工具Tが基準ブロック12の基準面44と接触する
と、上記の接触検出装置22から接触検出信号TSが出
力される。この接触検出信号TSがインターフェイス4
6を介して数値制御装置30のCPU31に入力される
と、CPU31はZ軸の送りを停止し(S525)、こ
の停止位置におけるZ軸の現在値を読み取り、この値を
Cに代入する。(S526)なお、このS523、S5
24における処理は通常スキップ送りといわれ、基準面
44より後方(図11において左方)のある点までの移
動を指令するが、接触検出信号TSにより移動を停止す
る機能である。また、図11における45はスプリング
であり、工具Tのオーバーランによる基準ブロック12
および工具Tの破損を防止するものである。ここで、上
記の接触検出方法においては、概算工具長を入力し、こ
の概算工具長に基づいて接触検出の際の主軸15の早送
り量を決定しているが、本出願人が先に出願した特公昭
61−58263号に開示されるように、早送りで工具
Tを基準ブロック12の基準面44に接触させ、一旦接
触信号がOFFになるまで主軸14を後退させ、遅送り
で再び工具Tを基準面44に接触させるような接触検出
方法を用いれば概算工具長を入力しなくとも、短時間で
正確な接触検出を行うことができる。
Next, in step S523, the feed speed of the Z axis is set to a low speed, and the slow feed (feed amount l 2 ) of the Z axis is continued until the contact between the tool T and the reference block 12 is detected in step S524. When the tool T comes into contact with the reference surface 44 of the reference block 12, the contact detection device 22 outputs a contact detection signal TS. This contact detection signal TS is output to interface 4
When input to the CPU 31 of the numerical control device 30 via 6, the CPU 31 stops the Z-axis feed (S 525), reads the current value of the Z-axis at this stop position, and substitutes this value for C. (S526) Note that S523 and S5
The process in 24 is normally called skip feeding, and has a function of instructing movement to a certain point behind (to the left in FIG. 11) from the reference plane 44, but stopping movement by the contact detection signal TS. In addition, reference numeral 45 in FIG. 11 denotes a spring, which
And to prevent breakage of the tool T. Here, in the contact detection method described above, the approximate tool length is input, and the rapid feed amount of the spindle 15 at the time of contact detection is determined based on the approximate tool length. As disclosed in JP-B-61-58263, the tool T is brought into contact with the reference surface 44 of the reference block 12 at a rapid traverse, the spindle 14 is retracted once until the contact signal is turned off, and the tool T is again moved at a slow traverse. If a contact detection method that makes contact with the reference surface 44 is used, accurate contact detection can be performed in a short time without inputting the approximate tool length.

【0022】次にS527にてZ軸を原位置に戻し、S
528で工具長を演算する。すなわち、工具長Xは次式
によって求められる。 X=L−|B−C| そして、S529にてこの工具長XをRAM33の測定
データ格納エリアに格納して工具長測定処理が終了す
る。ここで、S529で測定データ格納エリアに格納さ
れた工具長Xは、上記した図9のM6コード処理におけ
るS53にて、工具情報テーブルの所定のエリアに格納
され、その後の加工における工具長補正に用いられる。
Next, in S527, the Z axis is returned to the original position.
At 528, the tool length is calculated. That is, the tool length X is obtained by the following equation. X = L− | B−C | Then, in S529, the tool length X is stored in the measurement data storage area of the RAM 33, and the tool length measurement processing ends. Here, the tool length X stored in the measurement data storage area in S529 is stored in a predetermined area of the tool information table in S53 in the M6 code processing of FIG. 9 described above, and is used for tool length correction in subsequent machining. Used.

【0023】なお、上述の実施の形態においては、数値
制御装置30のRAM33に工具情報テーブルを設け、
数値制御装置30のCPU31にて各処理を行っている
が、数値制御装置30とは別に工具管理用のコンピュー
タを設け、この工具管理コンピュータに工具情報テーブ
ルを格納し、数値制御装置30と工具管理コンピュータ
との間で必要なデータを転送するようにしてもよい。
In the above embodiment, a tool information table is provided in the RAM 33 of the numerical controller 30.
Each process is performed by the CPU 31 of the numerical controller 30. A computer for tool management is provided separately from the numerical controller 30, and a tool information table is stored in the tool management computer. Necessary data may be transferred to and from a computer.

【0024】また、他の実施の形態として図12に示す
ような工具段取り操作盤を設けることができる。通常マ
シニングセンタにおいては、工具の装着は工具マガジン
後方あるいは側方から行われ、工具長測定指示はマシニ
ングセンタの前面の操作盤から行われるので作業性が悪
いという問題がある。しかし、図12に示すように、工
具マガジンの工具取り付け場所付近に設けられている工
具段取り操作盤47に、工具長測定指示の有無および概
算工具長の入力手段を設ける。これにより、工具マガジ
ンへの工具の装着を行う際に同時に、工具長測定の有無
を切り換えスイッチ48により選択し、デジタルスイッ
チ49により概算工具長を入力して、工具取付ボタン5
0を押すようにする。このように構成することにより、
工具取り付け作業の作業性が向上すると共に工具長測定
指示の有無および概算工具長の入力ミスが減少される。
Further, as another embodiment, a tool setup operation panel as shown in FIG. 12 can be provided. In a normal machining center, the mounting of a tool is performed from the rear or side of the tool magazine, and the tool length measurement instruction is performed from an operation panel on the front of the machining center, so that there is a problem that workability is poor. However, as shown in FIG. 12, the tool setup operation panel 47 provided near the tool mounting location of the tool magazine is provided with input means for the presence or absence of a tool length measurement instruction and the approximate tool length. Thus, at the same time when the tool is mounted on the tool magazine, the presence or absence of the tool length measurement is selected by the changeover switch 48, the approximate tool length is inputted by the digital switch 49, and the tool mounting button 5
Press 0. With this configuration,
The workability of the tool mounting operation is improved, and the presence / absence of a tool length measurement instruction and the input error of the approximate tool length are reduced.

【0025】さらに、他の実施の形態として以下のよう
に構成することも可能である。すなわち、上述の実施の
形態においては、図9に示すフローチャートのS54に
て工具長測定後は工具長測定指示をOFFとすることに
よって、当該工具の2回目以降の使用に際しては工具長
測定を行わないように構成されている。しかし、高精度
加工が要求されるような場合、例えば工具使用時間を積
算し、この積算された工具使用時間が所定時間を超えた
時工具長測定指示をONとし、再度工具長測定を行って
工具長を更新するように構成すれば、工具摩耗による工
具長の変化を加味した工具長補正を行うことができる。
Further, another embodiment can be configured as follows. That is, in the above embodiment, the tool length measurement instruction is turned off after the tool length measurement in S54 of the flowchart shown in FIG. 9, so that the tool length measurement is performed when the tool is used for the second and subsequent times. Not configured. However, when high-precision machining is required, for example, the tool usage time is integrated, and when the integrated tool usage time exceeds a predetermined time, the tool length measurement instruction is turned ON, and the tool length measurement is performed again. If the configuration is such that the tool length is updated, it is possible to perform tool length correction in consideration of a change in the tool length due to tool wear.

【0026】[0026]

【発明の効果】請求項1に記載の発明によれば、工具長
測定が必要と判定された工具が加工プログラムの指令に
より主軸に装着されたとき当該工具の工具長測定が行わ
れるので、作業者の手作業による工具長測定あるいはM
DI操作による工具長測定指示を行う必要がなくなり、
また、工具長の入力ミスが防止される。さらに、工具が
加工に使用するために主軸に装着されたときに加工に先
立って工具長測定を行うので、工具長測定のためのみに
工具交換を行うことがなくなり、効率的な作業を行うこ
とができる。
According to the first aspect of the present invention, when a tool determined to require tool length measurement is mounted on a spindle according to a command of a machining program, the tool length measurement of the tool is performed. Tool length measurement by hand or M
There is no need to issue a tool length measurement instruction by DI operation,
In addition, an input error of the tool length is prevented. Furthermore, since the tool length measurement is performed prior to machining when the tool is mounted on the spindle for use in machining, it is not necessary to change tools only for tool length measurement, and efficient work can be performed. Can be.

【0027】請求項2に記載の発明によれば、上記の効
果に加えて、一度工具長が測定された工具の工具長補正
を不要とすべく記憶手段の記憶内容を書換えるようにし
たので、二回目以後の使用に際しては工具長測定は行わ
れず、更に効率的な作業を行うことができるという効果
を奏する。請求項3に記載の発明によれば、上記の効果
に加えて、工具と基準面との接触を検出することにより
工具長を測定するようにしたので、正確な工具長の測定
を行うことができ、さらに、この接触検出に際して、概
算工具長に基づいて工具と基準面とを接触させるための
送り量を決定するようにしたので、工具長測定時間を短
縮することができる。
According to the second aspect of the present invention, in addition to the above effects, the stored contents of the storage means are rewritten so that the tool length correction of the tool whose tool length has been measured once is unnecessary. In the second and subsequent uses, the tool length measurement is not performed, so that there is an effect that more efficient work can be performed. According to the third aspect of the invention, in addition to the above effects, the tool length is measured by detecting the contact between the tool and the reference surface, so that the accurate tool length can be measured. Further, at the time of this contact detection, the feed amount for bringing the tool into contact with the reference surface is determined based on the approximate tool length, so that the tool length measurement time can be shortened.

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

【図1】本発明のマシニングセンタおよび接触検出装置
を示す図である。
FIG. 1 is a diagram showing a machining center and a contact detection device according to the present invention.

【図2】本発明の数値制御装置を示すブロック図であ
る。
FIG. 2 is a block diagram illustrating a numerical control device according to the present invention.

【図3】工具情報テーブルを示す図である。FIG. 3 is a diagram showing a tool information table.

【図4】CRTの工具長測定指示画面を示す図である。FIG. 4 is a view showing a tool length measurement instruction screen of the CRT.

【図5】本発明の作業の流れを示すフローチャートであ
る。
FIG. 5 is a flowchart showing a work flow of the present invention.

【図6】工具取付作業を示すフローチャートである。FIG. 6 is a flowchart showing a tool mounting operation.

【図7】加工プログラム処理を示すフローチャートであ
る。
FIG. 7 is a flowchart showing a machining program process.

【図8】Tコード処理を示すフローチャートである。FIG. 8 is a flowchart showing T code processing.

【図9】M6コード処理を示すフローチャートである。FIG. 9 is a flowchart showing M6 code processing.

【図10】工具長測定処理を示すフローチャートであ
る。
FIG. 10 is a flowchart illustrating a tool length measurement process.

【図11】工具と基準ブロックとの関係を示す図であ
る。
FIG. 11 is a diagram showing a relationship between a tool and a reference block.

【図12】他の実施の形態における工具段取り操作盤を
示す図である。
FIG. 12 is a view showing a tool setup operation panel according to another embodiment.

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

1 マシニングセンタ 12 基準ブロック 15 主軸 21 コイル 20 交流電源 22 接触検出装置 30 数値制御装置 33 RAM 44 基準面 47 工具段取り操作盤 T 工具 DESCRIPTION OF SYMBOLS 1 Machining center 12 Reference block 15 Spindle 21 Coil 20 AC power supply 22 Contact detection device 30 Numerical control device 33 RAM 44 Reference surface 47 Tool setup operation panel T Tool

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数の工具を選択的に主軸に装着して加
工を行う工作機械の制御装置であって、前記工作機械に
よる加工を制御する加工プログラムと、前記主軸に装着
すべく選択された工具の工具長測定の要否を判定する判
定手段と、前記加工プログラムの指令により前記主軸に
装着された工具が前記判定手段にて工具長測定が必要と
判定されたとき当該工具の工具長を測定する工具長測定
手段とを備えたことを特徴とする工作機械の制御装置。
1. A control device for a machine tool for performing machining by selectively mounting a plurality of tools on a spindle, the machining program controlling machining by the machine tool, and a machine program selected to be mounted on the spindle. Determining means for determining whether or not tool length measurement of a tool is necessary; and determining that the tool mounted on the spindle by the command of the machining program requires tool length measurement by the determining means, the tool length of the tool is determined. A control device for a machine tool, comprising: a tool length measuring means for measuring.
【請求項2】 複数の工具を選択的に主軸に装着して加
工を行う工作機械の制御装置であって、前記工作機械に
よる加工を制御する加工プログラムと、予め前記複数の
工具の工具長測定の要否を記憶した記憶手段と、該記憶
手段に基づいて前記主軸に装着すべく選択された工具の
工具長測定の要否を判定する判定手段と、前記加工プロ
グラムの指令により前記主軸に装着された工具が前記判
定手段にて工具長測定が必要と判定されたとき当該工具
の工具長を測定する工具長測定手段と、該工具長測定手
段にて工具長が測定された工具の以後の工具長測定を不
要とすべく前記記憶手段の記憶内容を書換える書換手段
とを備えたことを特徴とする工作機械の制御装置。
2. A control device for a machine tool for performing machining by selectively mounting a plurality of tools on a spindle, comprising: a machining program for controlling machining by the machine tool; and a tool length measurement of the plurality of tools in advance. Storage means for storing the necessity of the tool, determination means for determining whether or not tool length measurement of a tool selected to be mounted on the spindle is necessary based on the storage means, and mounting to the spindle according to a command of the machining program. Tool length measurement means for measuring the tool length of the tool when the tool length measurement is determined to be necessary by the determination means, and after the tool whose tool length has been measured by the tool length measurement means A control device for a machine tool, comprising: rewriting means for rewriting the storage contents of the storage means so that the tool length measurement is not required.
【請求項3】 複数の工具を選択的に主軸に装着して加
工を行う工作機械の制御装置であって、前記工作機械に
よる加工を制御する加工プログラムと、前記複数の工具
の工作機械への取付けに際して各工具の工具長測定の要
否および概算工具長を入力する入力装置と、入力された
工具長測定の要否および概算工具長を記憶する記憶手段
と、該記憶手段に基づいて前記主軸に装着すべく選択さ
れた工具の工具長測定の要否を判定する判定手段と、前
記加工プログラムの指令により前記主軸に装着された工
具が前記判定手段にて工具長測定が必要と判定されたと
き当該工具の工具長を測定する工具長測定手段と、該工
具長測定手段にて工具長が測定された工具の以後の工具
長測定を不要とすべく前記記憶手段の記憶内容を書換え
る書換手段とを備え、前記工具長測定手段は前記主軸に
装着された工具と工作機械上に設けられた基準面との接
触を検出する接触検出機能を有し、前記概算工具長に基
づいて前記工具と前記基準面とを相対的に移動させ両者
が接触するまでの移動量から工具長を演算することを特
徴とする工作機械の制御装置。
3. A control device for a machine tool for performing machining by selectively mounting a plurality of tools on a spindle, comprising: a machining program for controlling machining by the machine tool; An input device for inputting the necessity of the tool length measurement of each tool and the approximate tool length at the time of mounting, storage means for storing the necessity of the tool length measurement and the approximate tool length inputted, and the main spindle based on the storage means Determining means for determining whether or not tool length measurement of a tool selected to be mounted on the tool is necessary, and determining that the tool mounted on the main spindle requires tool length measurement by a command of the machining program. A tool length measuring means for measuring a tool length of the tool; and a rewriting for rewriting contents stored in the storage means so that subsequent tool length measurement of the tool whose tool length has been measured by the tool length measuring means is unnecessary. With means The tool length measuring means has a contact detection function of detecting contact between a tool mounted on the spindle and a reference surface provided on a machine tool, and based on the approximate tool length, the tool and the reference surface And a tool length is calculated from a moving amount until the two come into contact with each other.
【請求項4】 請求項3に記載の工作機械の制御装置に
おいて、前記入力装置は工作機械の工具取付け位置の近
傍に設けられていることを特徴とする工作機械の制御装
置。
4. The machine tool control device according to claim 3, wherein the input device is provided near a tool mounting position of the machine tool.
【請求項5】 請求項1乃至4に記載の工作機械の制御
装置において、前記工具長測定手段にて測定された工具
長を記憶する工具情報テーブルを備え、該工具情報テー
ブルに記憶された工具長に基づいて工具長補正を行うこ
とを特徴とする工作機械の制御装置。
5. The control device for a machine tool according to claim 1, further comprising a tool information table for storing a tool length measured by said tool length measuring means, wherein said tool information is stored in said tool information table. A machine tool control device for performing a tool length correction based on a length.
JP27833596A 1996-10-21 1996-10-21 Control device of machine tool Pending JPH10118890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27833596A JPH10118890A (en) 1996-10-21 1996-10-21 Control device of machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27833596A JPH10118890A (en) 1996-10-21 1996-10-21 Control device of machine tool

Publications (1)

Publication Number Publication Date
JPH10118890A true JPH10118890A (en) 1998-05-12

Family

ID=17595905

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27833596A Pending JPH10118890A (en) 1996-10-21 1996-10-21 Control device of machine tool

Country Status (1)

Country Link
JP (1) JPH10118890A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008284688A (en) * 2008-07-18 2008-11-27 Towa Corp Machining device and machining method
KR20120062188A (en) * 2010-12-06 2012-06-14 두산인프라코어 주식회사 Controlling method following spindle tool type and tool be or not of automatic tool changing device
JP2012223853A (en) * 2011-04-19 2012-11-15 Makino Milling Mach Co Ltd Tool measuring device
JP2017049656A (en) * 2015-08-31 2017-03-09 ファナック株式会社 Machining system with machining accuracy maintaining function
JPWO2016051543A1 (en) * 2014-09-30 2017-04-27 株式会社牧野フライス製作所 Machine tool control device and machine tool
CN109483322A (en) * 2018-11-12 2019-03-19 山东职业学院 A kind of zero point correction method of five-axle number control machine tool

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008284688A (en) * 2008-07-18 2008-11-27 Towa Corp Machining device and machining method
KR20120062188A (en) * 2010-12-06 2012-06-14 두산인프라코어 주식회사 Controlling method following spindle tool type and tool be or not of automatic tool changing device
JP2012223853A (en) * 2011-04-19 2012-11-15 Makino Milling Mach Co Ltd Tool measuring device
JPWO2016051543A1 (en) * 2014-09-30 2017-04-27 株式会社牧野フライス製作所 Machine tool control device and machine tool
US10248107B2 (en) 2014-09-30 2019-04-02 Makino Milling Machine Co., Ltd. Control device for machine tool, and machine tool
JP2017049656A (en) * 2015-08-31 2017-03-09 ファナック株式会社 Machining system with machining accuracy maintaining function
US10105808B2 (en) 2015-08-31 2018-10-23 Fanuc Corporation Processing system having function for maintaining processing accuracy
US10442051B2 (en) 2015-08-31 2019-10-15 Fanuc Corporation Processing system having function for maintaining processing accuracy
CN109483322A (en) * 2018-11-12 2019-03-19 山东职业学院 A kind of zero point correction method of five-axle number control machine tool

Similar Documents

Publication Publication Date Title
US4497029A (en) Numerical control device
US4281385A (en) Control system for a machine tool
EP0076970A1 (en) Process for inputting coordinate points of a desired path of movement for a preset robot
KR860002004B1 (en) The processing method for numerical control
US4246577A (en) Tool breakage detecting apparatus
US5742140A (en) Numerical-control machine tool
JPH10118890A (en) Control device of machine tool
JPH05150818A (en) Method and device or diagnosing fault of numerical control machine tool
JPH04244347A (en) Life tool change method during machining
EP1457852B1 (en) Method and apparatus for preparing program for die machining
JP3459847B2 (en) Method and apparatus for resetting tool correction amount by tool presetter
JPH0741442B2 (en) Numerical control device with tool compensation amount input function
JP3283278B2 (en) Automatic lathe
JPS6220564B2 (en)
JPH0635092B2 (en) Numerical control device with tool file
JP2829212B2 (en) Automatic tool change control method and device
JP3003490B2 (en) Electric discharge machine and electric discharge method
JPH0630011B2 (en) Numerical control Machining restart control method
JP3751321B2 (en) Control device for printed circuit board drilling machine
JP2001259970A (en) Machine tool with built-in tool presetter
JPS6157151B2 (en)
JP2926524B2 (en) Numerical controller with trial cutting function
JPS5926401B2 (en) Tool position correction method in machine tools
JPS63191552A (en) Numerically controlled (nc) machine tool equipped with measurement probe error compensation function
JPS6374555A (en) Numerically controlled machine tool having measuring function

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041227

A131 Notification of reasons for refusal

Effective date: 20050125

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050323

A131 Notification of reasons for refusal

Effective date: 20050920

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051114

A711 Notification of change in applicant

Effective date: 20060228

Free format text: JAPANESE INTERMEDIATE CODE: A712

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060620

A521 Written amendment

Effective date: 20060810

Free format text: JAPANESE INTERMEDIATE CODE: A523

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070206