JPS61110206A - Coordinate system setting device of machine tool - Google Patents

Coordinate system setting device of machine tool

Info

Publication number
JPS61110206A
JPS61110206A JP23256484A JP23256484A JPS61110206A JP S61110206 A JPS61110206 A JP S61110206A JP 23256484 A JP23256484 A JP 23256484A JP 23256484 A JP23256484 A JP 23256484A JP S61110206 A JPS61110206 A JP S61110206A
Authority
JP
Japan
Prior art keywords
coordinate system
workpiece
system setting
gate
tool
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.)
Granted
Application number
JP23256484A
Other languages
Japanese (ja)
Other versions
JPH0554125B2 (en
Inventor
Hidefumi Shiratori
白鳥 秀文
Kiyokuni Kawashima
川島 清洲
Hideki Sasaki
佐々木 英記
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.)
Hitachi Seiki Co Ltd
Original Assignee
Hitachi Seiki Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Seiki Co Ltd filed Critical Hitachi Seiki Co Ltd
Priority to JP23256484A priority Critical patent/JPS61110206A/en
Publication of JPS61110206A publication Critical patent/JPS61110206A/en
Publication of JPH0554125B2 publication Critical patent/JPH0554125B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/182Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by the machine tool function, e.g. thread cutting, cam making, tool direction control
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/50Machine tool, machine tool null till machine tool work handling
    • G05B2219/50135Tool touches box, sensor to give a contact signal
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/50Machine tool, machine tool null till machine tool work handling
    • G05B2219/50137Contact in probe, touch probe to detect contact, touch trigger
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/50Machine tool, machine tool null till machine tool work handling
    • G05B2219/50291Multi-tool, several tools

Abstract

PURPOSE:To automatically set working operations on a work so as to improve the accuracy and efficiency of the working operations, by measuring the position on the work fitting surface side with a measuring means on the tool rest side. CONSTITUTION:A work W is grasped by the clicks D of a chuck C fitted to the front end section of a main spindle S supported by a head stock H. More over, a tool holder Ta is fixed to a turret Th which is fitted to the front face of a tool rest Tr under a dividable condition and a touch sensor Ts is fitted to the holder Ta under an insertable and removable condition. The sensor Ts is always forced forward by a spring Sp and, when the tool rest Tr moves, the sensors Ts touches the end face of the work W or clicks D and the rear end of the sensor Ts is contacted with a limit switch Ls, and thus, the moved position is detected. In addition, whenever the sensor Ts or edge of each tool touches a preset sensor Ps, coordinate values from the origin OM are detected and correcting values for each tool are obtained.

Description

【発明の詳細な説明】 (1)  産業上の利用分野 本発明は工作機械特に旋削加工機でワ7りを加工する際
のワーク取付面側からの位置を基準にした工作機械の座
標系設定装置に関する。
[Detailed Description of the Invention] (1) Industrial Field of Application The present invention relates to the setting of the coordinate system of a machine tool based on the position from the workpiece mounting surface when machining a burr with a machine tool, particularly a turning machine. Regarding equipment.

(2)従来の技術 従来、工作機械のNC加工機では、機械制御用の座標と
ワーク加工用の座標の2つを有し、旋削加工に先だって
機械座標系位置をt1認した後、加ニブログラムに対す
るワーク取付位置の変化分を手動操作で補正していた。
(2) Conventional technology Conventionally, NC processing machines for machine tools have two coordinates: one for machine control and one for machining the workpiece. The change in the workpiece mounting position was manually corrected.

(3)発明が解決しようとする問題点 しかしながら、前述した従来の手動操作による補正には
、計測操作と手計算とを必要とし、更に複雑な機械操作
が伴っている。この為、誤動作、段取り時間の長期化お
よび不良品の発生等をもたらすという問題点があった。
(3) Problems to be Solved by the Invention However, the conventional manual correction described above requires measurement operations and manual calculations, and is accompanied by more complicated mechanical operations. This has resulted in problems such as malfunctions, prolongation of setup time, and occurrence of defective products.

また、作業者がワークのどの点を基準(プログラム原点
)にして加ニブログラムを作製するか、さらに加工に先
立つ取り代とその振分けによってプログラム原点そのも
のが機械原点に対して変動することが自動化における問
題点として残っていた。
Another problem in automation is that the program origin itself varies with respect to the machine origin depending on which point on the workpiece the operator uses as a reference (program origin) to create the cannibal program, and the machining allowance and its distribution prior to machining. It remained as a dot.

(4)   目  的 本発明の目的は上記事情に鑑み、問題を解決するために
提案されたものであって、刃物台側の計測手段でワーク
W取付面の位置を測定し、加ニブログラムに沿った座標
系を設定することにより自動操作で、かつ容易に行える
ようにした工作機械の座標系設定装置を提供するにある
(4) Purpose The purpose of the present invention is to measure the position of the mounting surface of the workpiece W using a measuring means on the turret side and to measure the position of the mounting surface of the workpiece W in view of the above-mentioned circumstances. An object of the present invention is to provide a coordinate system setting device for a machine tool that allows automatic and easy operation by setting a coordinate system.

(5)  問題を解決するための手段と作用本発明は工
作機械の座標系設定装置の改良であって、刃物台側に取
付けた計測手段で、ワーク取付面の位置を測定し加ニブ
ログラムに沿った座標系を自動で設定し、ワークに所定
の旋削加工をするようにしたものである。
(5) Means and action for solving the problem The present invention is an improvement of a coordinate system setting device for a machine tool, and a measuring means attached to the tool rest side measures the position of the workpiece mounting surface and moves it along the machine tool program. This system automatically sets the coordinate system based on the specified coordinate system and performs the specified turning process on the workpiece.

すなわち、本発明は主軸台の主軸に取付けられ、ワーク
把持用の爪を有したチャックと、該チャックに把持され
たワークを加工するため直交する2平面内を移動可能な
刃物台と、該刃物台に取付けた計測手段と、該計測手段
の信号で刃物台の移動量を検知する位置検知手段と、前
記計測手段の基準長さを設定する手段と、計測手段の検
知箇所が爪の面かワークの面かを判別する手段と、ワー
クの長さと、取り代の蛍およびプログラム原点が爪側の
ワーク基準か刃物台側のワーク基準かを設定する入力手
段と、前記各入力手段の入力設定に基づき、座標系設定
値を演算する演算手段とから構成されている。
That is, the present invention provides a chuck that is attached to the main shaft of a headstock and has claws for gripping a workpiece, a tool rest that is movable in two orthogonal planes in order to process the workpiece gripped by the chuck, and the tool. a measuring means attached to the base; a position detecting means for detecting the amount of movement of the tool post based on a signal from the measuring means; a means for setting a reference length of the measuring means; means for determining whether the workpiece is on the surface; input means for setting the length of the workpiece, machining allowance and whether the program origin is the work reference on the jaw side or the work reference on the turret side; and input settings for each of the input means. and calculation means for calculating coordinate system setting values based on the coordinate system setting values.

而して本発明の座標系設定装置を採用することにより手
動操作で補正するのでなく、自動操作で、かつ容易に補
正することができる。
By employing the coordinate system setting device of the present invention, correction can be easily performed automatically, rather than manually.

(6)実施例 以下、本発明の一実施態様を、図面に基づいて詳細に説
明する。
(6) Example Hereinafter, one embodiment of the present invention will be described in detail based on the drawings.

第1図は本発明の座標系設定装置を説明するための概略
構成図である。第1図において、主軸台Hに軸承された
主軸Sの先端部にチャックCが取付けられている。該チ
ャックCの先端部における爪りによりワークWを把持す
る。該チャックCに対向する側に機械原点0.4を有し
ている。また酸チャックCに対向する側に刃物台T、が
設けられ、X軸とZ軸の2平面内に移動し得るようにな
っている。
FIG. 1 is a schematic configuration diagram for explaining the coordinate system setting device of the present invention. In FIG. 1, a chuck C is attached to the tip of a main spindle S that is supported on a headstock H. The workpiece W is gripped by the claw at the tip of the chuck C. It has a machine origin of 0.4 on the side facing the chuck C. Further, a tool rest T is provided on the side facing the acid chuck C, and is movable within two planes of the X axis and the Z axis.

刃物台T1の前面にはタレットThが割出し可能に取付
けられている。該タレットT1には工具ホルダT、が固
定され、その工具ホルダT、に、後に詳述される本発明
装置に使用するタッチセンサT、が挿脱可能に取付けら
れている。タッチセンサT、は常時前方ヘスプIIング
S、により付勢され、かつ刃物台Trには高精度リミッ
トスイッチL、が取付けられている。ワークWの端面あ
るいは爪りの端面へ刃物台T、の移動によりタッチセン
サT、が接触することにより、タッチセンサT、の後端
部かりミントスイッチL、を踏接するごとによって移動
位置を検知するようになっている。
A turret Th is attached to the front of the tool post T1 so as to be indexable. A tool holder T is fixed to the turret T1, and a touch sensor T used in the apparatus of the present invention, which will be described in detail later, is removably attached to the tool holder T. The touch sensor T is always energized by the front hesp II ring S, and a high precision limit switch L is attached to the tool rest Tr. When the touch sensor T comes into contact with the end face of the workpiece W or the end face of the claw when the turret T moves, the moving position is detected every time the rear end touch switch L of the touch sensor T is touched. It looks like this.

また、このタッチセンサT、を使用して各工具の補正も
求めることができる。工具刃先の補正値すなわち取付偏
差値を検出する手段としては、近時、同一出願人の実願
昭58−171627号に明示されているようなツール
プリセンタと呼ばれる自動検、出手段が使用されている
。これは工作機械の主軸台Hに揺動自在に取付けられた
アームLの先端にX軸およびZ軸それぞれ双向のプリセ
ットセンサP、を備えたもので、アームLにより検出位
置と待機位置とを有し、検出位置になる時は、第1図に
示す如(プリセットセンサP、は、機械原点OHからの
相対位置が常に一定で、パラメータ入力が出来るように
なっている。このプリセットセンサP、はZ軸の2方向
およびX軸の2方向の計4方向で検出できる構成となっ
ている。第1図では+2軸方向のパラメータ値Z0のみ
示しである。
Furthermore, correction of each tool can also be determined using this touch sensor T. As a means for detecting the correction value, that is, the installation deviation value, of the tool cutting edge, an automatic detection and output means called a tool precenter, as disclosed in Utility Application No. 171627/1980, filed by the same applicant, has recently been used. ing. This is equipped with two-way preset sensors P for the X and Z axes at the tip of an arm L that is swingably attached to the headstock H of a machine tool.The arm L has a detection position and a standby position. However, when the detection position is reached, as shown in Fig. 1 (the preset sensor P, the relative position from the machine origin OH is always constant, and parameters can be input. The configuration is such that detection can be performed in a total of four directions, two directions along the Z axis and two directions along the X axis.In FIG. 1, only the parameter value Z0 in the +2 axis direction is shown.

プリセットセンサP、にタッチセンサT、あるいは各工
具の刃先を接触させその都度、機械原点ONからの座標
値を検出することにより、各工具の補正値を得ることが
できる。
A correction value for each tool can be obtained by bringing the touch sensor T or the cutting edge of each tool into contact with the preset sensor P and detecting the coordinate value from the machine origin ON each time.

すなわち、計測手段であるタッチセンサの設定長さをZ
P、各工具における機械原点OHからプリセットセンサ
P、までの刃物台T、の移動量をZ、lとすれば、各工
具の補正値 Z。Fn−(ZQ−ZF )−Z。
In other words, the set length of the touch sensor that is the measuring means is Z
P, the amount of movement of the turret T from the machine origin OH to the preset sensor P for each tool is Z, l, then the correction value Z for each tool. Fn-(ZQ-ZF)-Z.

で求めることが出来る。従って、本発明は座標系設定値
を求めると共に各工具の補正値も求められる。なお、第
1図でZ。はワーク素材Wの長さ、δはワーク素材Wの
取り化量である。
It can be found by Therefore, in the present invention, the coordinate system setting values are determined, and the correction values for each tool are also determined. In addition, Z in Figure 1. is the length of the work material W, and δ is the amount of the work material W collected.

次に、本発明の具体的な例について説明する。Next, a specific example of the present invention will be described.

ここで、機械原点OHからプログラム原点までの座標系
設定値を求める場合、タッチセンサT3を爪の端面ある
いはワーク端面にあてて位置検知を行なうのか、また、
プログラム原点基準を爪の端面側にするのか、ワーク端
面であるのかは、その都度任意のことであり、取り化量
δの加味についしも同様であって、座標系設定値は機械
固有のものではなく、変動するため、自動設計を行なう
には柔軟な設定が必要である。第2図の(A)〜()l
)は前述した第1図におけるタッチセンサT3によりZ
軸方向の座標系設定値を求める場合の種々の適用例であ
る。すなわちタッチセンサT、の検知箇所がワーク端面
かあるいは爪端面であるかの違い、プログラム原点0.
が爪端面であるか、ワーク端面であるかの違いおよび取
り化量δが有るか無いか(すなわち、第1工程か第2工
程であるか)の場合の例で、8通りの例を示したもので
ある。なお、プリセットセンサP、はすでに待機位置に
ある。
Here, when calculating the coordinate system settings from the machine origin OH to the program origin, do you want to detect the position by applying the touch sensor T3 to the end face of the claw or the end face of the workpiece?
Whether the program origin reference is the end face of the jaw or the end face of the workpiece is a matter of discretion in each case, and the same applies to the addition of the removal amount δ, and the coordinate system settings are machine-specific. However, it varies, so flexible settings are required for automatic design. (A) to ()l in Figure 2
) is Z by the touch sensor T3 in FIG.
These are various application examples when determining coordinate system setting values in the axial direction. That is, the difference in whether the detection point of the touch sensor T is the workpiece end face or the claw end face, and the program origin 0.
Eight examples are shown, depending on whether is the claw end face or the workpiece end face, and whether or not there is a removal amount δ (i.e., whether it is the first process or the second process). It is something that Note that the preset sensor P is already at the standby position.

(A)第2図(A)はタッチセンサTSの検知箇所がワ
ーク端面であって、プログラム原点O2が爪端面にあり
、取り化量δが無い場合の例である。
(A) FIG. 2 (A) is an example in which the detection point of the touch sensor TS is the end face of the workpiece, the program origin O2 is at the end face of the claw, and there is no amount of scraping δ.

第1に仮りの座標系設定値20′として、Z0′*zp
+z14を求め、次にプログラム原点O7による真の座
標系設定値Z。は、 Zo =Zo ’ +2%1  (=ZP ”Zs +
Zin )で求められる。
First, as a temporary coordinate system setting value 20', Z0'*zp
+z14 is determined, and then the true coordinate system setting value Z is determined by the program origin O7. is, Zo = Zo' +2%1 (=ZP ”Zs +
Zin).

但し、20 ′:仮の座標系設定値 ZP :タッチセンサT、の設定長さ Z、:機械原点0.1からの刃物台の移動量Z0 :真
の座標系設定値 Zo :ワーク素材の長さ すなわち、予めZ、、Z、4を求めて入力されているの
で、刃物台の移動量Z、4のみを求めること  ′によ
って、真の座標系設定値が求められるのである。
However, 20': Temporary coordinate system setting value ZP: Setting length Z of the touch sensor T,: Movement amount of the tool post from the machine origin 0.1 Z0: True coordinate system setting value Zo: Length of the workpiece material In other words, since Z, , Z, and 4 have been previously determined and input, the true coordinate system settings can be determined by determining only the amount of movement of the tool rest, Z and 4.

(B)第2図(B)はタッチセンサTSの検知箇所がワ
ーク端面であって、プログラム原点02が爪端面にあり
、取り化量δが有る場合の例である。
(B) FIG. 2(B) is an example in which the detection point of the touch sensor TS is the end face of the workpiece, the program origin 02 is at the end face of the claw, and there is a scraping amount δ.

仮の座標系設定値z01は、ZO’ =ZF +Z11
となり、プログラム原点0.による真の座標系設定値Z
0は、 ZO=RZo ’ +zw+δ(=ZF +Zs +Z
w+δ)で求められる。
The temporary coordinate system setting value z01 is ZO' = ZF + Z11
Therefore, the program origin is 0. The true coordinate system setting value Z by
0 is ZO=RZo' +zw+δ(=ZF +Zs +Z
w+δ).

従って、取り化量δの加算によって求められた真の座標
系設定値Z。はワークWがあたかも、第2図(B)の二
点類vA(想像線)の位置にあるかの如くとなる。
Therefore, the true coordinate system setting value Z is obtained by adding the amount of conversion δ. is as if the workpiece W were at the position of the two-point class vA (imaginary line) in FIG. 2(B).

前述した(A)と同様に、予めZp、Zwおよびδを求
めて入力されているので、やはり刃物台の移動Bzイの
みを求めることによって、真の座標系設定値Z0が求め
られるのである。
As in (A) above, since Zp, Zw, and δ have been determined and input in advance, the true coordinate system setting value Z0 can be determined by determining only the movement Bzi of the tool rest.

(C)タッチセンサTSの検知箇所がワーク端面であっ
て、プログラム原点もワーク端面にあり、取り化量δが
無い場合の例は第2図の(C)に示した通りである。
(C) An example in which the detection point of the touch sensor TS is on the workpiece end face, the program origin is also on the workpiece end face, and there is no scraping amount δ is as shown in FIG. 2(C).

仮の座標系設定値20 ′は、zo  ’=ZP +2
Mとなり、プログラム原点Orによる真の座標系設定値
Z0は、 Zo =Zo ’  (=ZP +Z、)で求められる
The temporary coordinate system setting value 20' is zo'=ZP +2
M, and the true coordinate system setting value Z0 based on the program origin Or can be found by Zo = Zo' (=ZP +Z,).

(D)タッチセンサTSの検知箇所がワーク端面であっ
て、プログラム原点が上記(C)と同様にワーク端面に
あり、取り化量δが有る場合の例は第2図の(D)に示
した通りである。
(D) An example in which the detection point of the touch sensor TS is on the workpiece end face, the program origin is on the workpiece end face as in (C) above, and there is a pick-up amount δ is shown in Fig. 2 (D). That's right.

仮の座標系設定値Z。′は2゜’=ZP+Xイとなり、
プログラム原点O1による真の座標系設定値z0は、 
Zo=Zo’+δ(=ZP”ZM+δ) で求められる。
Temporary coordinate system setting value Z. ' becomes 2゜'=ZP+Xi,
The true coordinate system setting value z0 based on the program origin O1 is
Zo=Zo'+δ (=ZP''ZM+δ).

(E)タッチセンサTSの検知箇所が爪端面であって、
プログラム原点0.も爪端面にあり、取り化量δが無い
場合の例は第2図の(E)に示した通りである。
(E) The detection point of the touch sensor TS is the nail end surface,
Program origin 0. An example of a case in which there is also an amount δ on the end face of the nail and there is no removal amount δ is as shown in FIG. 2(E).

仮の座標系設定値20 ′はZO’=zp +zイとな
り、プログラム原点0.による真の座標系設定値Z0は
、 Zo =Zo ’  (=ZP +2M )で求められ
る。
The temporary coordinate system setting value 20' becomes ZO' = zp + z, and the program origin is 0. The true coordinate system setting value Z0 is obtained by Zo = Zo' (=ZP +2M).

CF)タッチセンサTSの検知箇所が爪端面であって、
プログラム原点O7も爪端面であり、取り代■δが有る
場合の例は第2図の(F)に示した通りである 仮の座標系設定値Z。′は、Zo  ’ ” Zr +
 Zwiとなり、プログラム原点OFによる真の座標系
設定値Z0は、 Zo”Zo’+δ(=ZP +2M +δ)で求められ
る。
CF) The detection point of the touch sensor TS is the nail end surface,
The program origin O7 is also the claw end face, and an example where there is a machining allowance ■δ is the provisional coordinate system setting value Z as shown in FIG. 2(F). ' is Zo' ” Zr +
Zwi, and the true coordinate system setting value Z0 based on the program origin OF is determined by Zo''Zo'+δ (=ZP +2M +δ).

CG)タッチセンサTSの検知箇所が爪端面であって、
プログラム原点OFがワーク端面にあり、取り代置δが
無い場合の例は第2図の(G)に示した通りである。
CG) The detection point of the touch sensor TS is the nail end surface,
An example where the program origin OF is on the end face of the workpiece and there is no machining allowance δ is as shown in FIG. 2(G).

仮の座標系設定値Zo  ’は、ZO’xzp +2M
となり、プログラム原点02による真の座標系設定値Z
。は、 Zo ”Zo ’  Zw  (”ZP +2M −Z
w )で求められる。
The temporary coordinate system setting value Zo' is ZO'xzp +2M
Therefore, the true coordinate system setting value Z based on the program origin 02
. is Zo "Zo ' Zw ("ZP +2M -Z
w).

(H)タッチセンサTSの検知箇所が爪端面であって、
プログラム原点O2がワーク端面にあり、取り化量δが
有る場合の例は第2図の(11)に示した通りである。
(H) The detection point of the touch sensor TS is the nail end surface,
An example in which the program origin O2 is at the end face of the workpiece and there is an amount of scraping δ is as shown in (11) in FIG.

仮の座標系設定値2゜′は、Z0’ x 7.、4Zs
となり、プログラム原点0.による真の座標系設定値Z
0は、 Zo −Zo ’  Zw+δ(=ZP +2M  Z
H+δ)で求められる。
The temporary coordinate system setting value 2°' is Z0' x 7. , 4Zs
Therefore, the program origin is 0. The true coordinate system setting value Z by
0 is Zo −Zo 'Zw+δ(=ZP +2M Z
H+δ).

上述した(A)〜(H)の真の座標系設定値Z0をまと
めると、 Zo・Z、+ZH4Z、・・・・・・・・・ 例(^)
の場合Zo= Zwi ZM+ Zw+δ・・・  例
(8)の場合Z0・Z、+ZN・・・・・・・・・・・
・ 例(C) 、 (E)の場合Zll−ZP+ZM+
6・・・・・・ 例(D) 、 (F)の場合Z0・Z
、+Z、−Z、+δ・・・ 例(H)の場合Z0・ZP
 + Zs −Zw・・・・・・・・・ 例(G)の場
合となる。
If we summarize the true coordinate system settings Z0 of (A) to (H) mentioned above, we get Zo・Z, +ZH4Z, etc. Example (^)
In the case of Zo= Zwi ZM+ Zw+δ... In the case of example (8), Z0・Z, +ZN...
・For examples (C) and (E), Zll-ZP+ZM+
6... For example (D) and (F), Z0・Z
, +Z, -Z, +δ... In case of example (H), Z0・ZP
+Zs -Zw... This is the case of example (G).

これらの20の値はワーク長さZlのプラス。These 20 values are plus the workpiece length Zl.

”フイナス、取り化量δの値が0であることも考慮すれ
ば、Zo =Zr +Zn +Zw+δが一般解となる
``Finus, if we also take into consideration that the value of the amount of conversion δ is 0, the general solution is Zo = Zr + Zn + Zw + δ.

第3図は本発明を実施した座標系設定装置の一例を示す
構成ブロック図である。第3図において、NCデータを
読み取るテープリーダlからその入力回路1aを介して
CPU100によりNCデータが入力され、加ニブコグ
ラム・メモリ6に一時格納されて記憶される。
FIG. 3 is a block diagram showing an example of a coordinate system setting device embodying the present invention. In FIG. 3, NC data is input by a CPU 100 from a tape reader l for reading NC data via its input circuit 1a, and is temporarily stored in a nibcogram memory 6.

ワークの長さZ5.タッチセンサT、の設定長さZpお
よび加工すべきワークWの取り化量δの値は予め設定さ
れて、夫々入力手段である画面付キーボード2から、そ
の入力回路2aを介して夫々のワーク長さZ。のメモリ
7、タッチセンサの設定長さZPのメモリ8および加工
すべきワークWの取り化量δのメモリ9に一旦記憶され
る。
Work length Z5. The values of the set length Zp of the touch sensor T and the amount of pick-up δ of the workpiece W to be machined are set in advance, and the respective workpiece lengths are input from the keyboard 2 with a screen, which is an input means, via the input circuit 2a. SaZ. , the memory 8 for the set length ZP of the touch sensor, and the memory 9 for the amount of pick-up δ of the workpiece W to be machined.

タッチセンサTSをワークWの端面あるいは爪端面に接
触させて、刃物化T、の移動量であるZMを計測し、入
出力回路3を介してその移動量Z9を入力する。
The touch sensor TS is brought into contact with the end surface of the work W or the end surface of the claw to measure the amount of movement ZM of the cutter T, and the amount of movement Z9 is inputted via the input/output circuit 3.

プリセットセンサP、の機械原点OMからの位置Z、を
計測し、プリセットセンサ位置設定データ34にファイ
ルする。
The position Z of the preset sensor P from the mechanical origin OM is measured and filed in the preset sensor position setting data 34.

さらに、送出する位置データ送出手段5から、刃物台の
移動に応じた機械原点O14からの位置データZ。を、
座標値データZaのメモリ11に転送する。
Furthermore, the position data Z from the machine origin O14 corresponding to the movement of the tool rest is sent out from the position data sending means 5. of,
The coordinate value data Za is transferred to the memory 11.

CPU100で処理、夫々記憶されているワーク長さZ
w、取り代データδ、タッチセンサ設定長さZ、および
座標値データZ、、が演算手段12に次の順序で取り込
まれ演算処理される。
Workpiece length Z processed and stored by CPU 100
w, machining allowance data δ, touch sensor setting length Z, and coordinate value data Z, are taken into the calculation means 12 in the following order and are subjected to calculation processing.

まず、タッチセンサT3は、爪の端面がワークの端面に
あてることによってタッチセンサ信号を発するが、この
タッチセンサ信号でメモリ11に記憶されている座標値
データZ、、は7ンドゲート13を通過し、センサ座標
値Z7としてを取り込まれ、センサ座標値メモリ14に
記憶される。
First, the touch sensor T3 emits a touch sensor signal when the end surface of the nail touches the end surface of the workpiece, and the coordinate value data Z, stored in the memory 11 by this touch sensor signal passes through the seventh gate 13. , are taken in as sensor coordinate values Z7 and stored in the sensor coordinate value memory 14.

(ZM =zn) メモリ8に記憶されているタッチセンサ設定長さZ、と
、メモリ14に記憶されたセンサ座標値ZMが演算部1
5によって、Zo ’ =Zr Z、(7)仮の座標系
設定値z01が演算される。
(ZM = zn) The touch sensor setting length Z stored in the memory 8 and the sensor coordinate value ZM stored in the memory 14 are calculated by the calculation unit 1.
5, Zo'=ZrZ, (7) temporary coordinate system setting value z01 is calculated.

演算部15で演算された仮の座標系設定値z01は、ア
ンド・ゲート16にワーク端面タッチ信号が取り込まれ
ると、アンド・ゲート16を閉じ仮の座標系設定値Z。
The temporary coordinate system setting value z01 calculated by the calculation unit 15 is changed to the temporary coordinate system setting value Z by closing the AND gate 16 when the workpiece edge touch signal is taken into the AND gate 16.

′を通過させる。またアンド・ゲート18に爪端面基準
プログラム信号が取り込まれると、仮の座標系設定値2
0 ′がアンド・ゲート18を通過して演算部22に取
り込まれる。
′ is passed. Also, when the claw end surface reference program signal is taken into the AND gate 18, the temporary coordinate system setting value 2
0' passes through the AND gate 18 and is taken into the arithmetic unit 22.

一方、アンド・ゲート16を通過した仮の座標系設定値
20 ′は、アンド・ゲート19にワーク端面基準プロ
グラム信号が取り込まれると、仮の座標系設定値20 
′がアンド・ゲート19を通過し、オア・ゲート23を
通過する。
On the other hand, the temporary coordinate system setting value 20' passed through the AND gate 16 becomes the temporary coordinate system setting value 20' when the workpiece end face reference program signal is taken into the AND gate 19.
' passes through the AND gate 19 and passes through the OR gate 23.

また、演算部15で演算処理された仮の座標系設定値2
0 ′は、アンド・ゲート17に爪端面タッチ信号が取
り込まれると、仮の座標系設定値20 ′がアンド・ゲ
ート17を通過する。仮の座標系設定値Z01は、アン
ド・ゲート20に爪端面基準プログラム信号が取り込ま
れると、仮の座標系設定値20 ′がアンド・ゲート2
0を通過し、オアゲート23を通過する。
In addition, the temporary coordinate system setting value 2 calculated by the calculation unit 15
0', when the claw end face touch signal is taken into the AND gate 17, the provisional coordinate system setting value 20' passes through the AND gate 17. The temporary coordinate system setting value Z01 is set to
0 and passes through the OR gate 23.

アンド・ゲート17を通過した仮の座標系設定値20 
′は、アンド・ゲート21にワーク端面基準プログラム
信号を取り込ませると、仮の座標系設定値Zo ′がア
ンド・ゲート21を通過し演算部24に取り込まれる。
Temporary coordinate system setting value 20 that passed through AND gate 17
When the workpiece end face reference program signal is taken into the AND gate 21, the provisional coordinate system set value Zo' passes through the AND gate 21 and is taken into the calculation section 24.

演算部22では、アンド・ゲー)18を通過して取り込
まれた仮の座標系設定値Z。′と、ワーク長さ28メモ
リ7に記憶されていたワーク長さZwが取り込まれて、
ZI−Zo’+Zwの演算処理が行なわれ、その演算さ
れた値ZIがオアゲート25を通過する。アンド・ゲー
ト19あるいはアンド・ゲート20を通過した仮の座標
系設定値 20 ′は、夫々そのまま通過しくこの場合
ZW−Oであるため、Zr−Zo’である。)、Zlの
値がオア・ゲート25を通過する。
In the arithmetic unit 22, the temporary coordinate system setting value Z that has passed through the AND game) 18 is taken in. ' and the workpiece length Zw stored in the workpiece length 28 memory 7 are imported,
The calculation process ZI-Zo'+Zw is performed, and the calculated value ZI passes through the OR gate 25. The temporary coordinate system setting value 20' that has passed through the AND gate 19 or 20 is Zr-Zo' because it passes through the AND gate 19 or 20 as it is, and in this case is ZW-O. ), the value of Zl passes through the OR gate 25.

演算部24では、アンド・ゲート21を通過し ′て取
り込まれた仮の座標系設定値20 ′と、ワーク長さ2
゜メモリ7に記憶されていたワーク長さZ−が取り込ま
れて、ZI −Zo  ’−Zwの演算処理が行なわれ
、その演算された値Z1がオア・ゲート25を通過する
In the calculation section 24, the temporary coordinate system setting value 20' that has passed through the AND gate 21 and the workpiece length 2 are calculated.
The workpiece length Z- stored in the memory 7 is taken in, the calculation process of ZI -Zo'-Zw is performed, and the calculated value Z1 passes through the OR gate 25.

オア・ゲート25を通過したZlO値は、取り代データ
をの信号がアンド・ゲート26に取り込まれると、Zl
の値がアンド・ゲート26を通過して演算部28に取り
込まれ、さらに取り代デークδ・メモリ9に記憶されて
いた取り代データδが演算部28に取り込まれる。演算
部28で、Zo”ZI  +δの演算処理が行なわれる
The ZlO value that has passed through the OR gate 25 becomes ZlO when the signal representing the machining allowance data is taken into the AND gate
The value of is passed through the AND gate 26 and taken into the calculation unit 28, and the machining allowance data δ stored in the machining allowance data δ/memory 9 is also taken into the calculation unit 28. The arithmetic unit 28 performs arithmetic processing of Zo''ZI +δ.

オア・ゲート25を通過したZIの値は、取り化データ
無の信号がアンド・ゲート27に取り込れると、アンド
・ゲート27を通過し、そのまま演算部29に取り込ま
れる。演算部29では、取り代データδが無いので、Z
o”ZI として代入処理される。演算部28もしくは
演算部29で演算処理されたZoの値がオア・ゲート3
0を通過し、真の座標系設定データZ0として、メモリ
31に真の座標系データZoを記憶する。さらにメモリ
31から真の座標系設定データZ。を加ニブログラム・
メモリに記憶する。
The value of ZI that has passed through the OR gate 25 passes through the AND gate 27 and is taken into the arithmetic unit 29 as it is when the signal indicating no data to be retrieved is taken into the AND gate 27 . In the calculation unit 29, since there is no machining allowance data δ, Z
o”ZI. The value of Zo processed by the calculation unit 28 or 29 is assigned to the OR gate 3.
0, and the true coordinate system data Zo is stored in the memory 31 as the true coordinate system setting data Z0. Furthermore, the true coordinate system setting data Z is stored in the memory 31. Canadian program
Store in memory.

次に、ワークWを加工するのに使用される各工具の補正
について説明する。
Next, correction of each tool used to process the workpiece W will be explained.

ブリセ7トサンセP、における+Z用の機械原点OMか
らの座標値(設定データ)Zoはプリセント位置設定デ
ータ34にファイルされている。
The coordinate value (setting data) Zo from the machine origin OM for +Z in the precent position setting data 34 is filed in the precent position setting data 34.

本実施例では後で述べる通り+Z用の設定データZ0を
使用して各工具の補正値を求める説明しかしていないが
、実際は、−Z用、+X用および=X用の設定データも
ファイルし使用するが、これらの説明は+Z用と同じで
あるので省略する。
As will be described later, this example only explains how to use setting data Z0 for +Z to obtain correction values for each tool, but in reality, setting data for -Z, +X, and =X are also filed and used. However, since these explanations are the same as for +Z, they will be omitted.

刃物台の移動によって工具がプリセットセンサP、の+
Z用センサに接触するとブリセットセンサP3は+Z用
プリセットセンサ信号をアンド・ゲート32に取り込む
。この信号で、刃物台のその時点の座標値データメモリ
11にある、座標値データZnがアンド・ゲート32を
ill過し、演算部33に取り込まれる。演算部33で
は、タッチセンサ設定長さZ、・メモリ8に記憶されて
いるタッチセンサ設定長さZ、を取り込み、かつプリセ
ント位置設定データファイル34よりプリセットセンサ
設定データZ0 ・メモリ10に記憶されているプリセ
ットセンサ設定データZ、を取り込ませる。
Due to the movement of the tool rest, the tool moves to the + position of the preset sensor P.
Upon contact with the Z sensor, the preset sensor P3 takes in the +Z preset sensor signal to the AND gate 32. With this signal, the coordinate value data Zn stored in the coordinate value data memory 11 of the tool post at that time passes through the AND gate 32 and is taken into the calculation section 33. The calculation unit 33 takes in the touch sensor setting length Z, the touch sensor setting length Z stored in the memory 8, and obtains the preset sensor setting data Z0 from the precent position setting data file 34. Import the preset sensor setting data Z.

演算部33では、Zov−= (ZQ  ZP ) −
2、の演算処理が行なわれ、演算部33から補正データ
・メモリ35中のZ。F項の各工具ごとにファイルされ
る。同様に、説明を省略しているが、X軸の補正も行な
ってX。F項にファイルされる。
In the calculation unit 33, Zov-= (ZQ ZP ) −
2 is performed, and Z is stored in the correction data memory 35 from the calculation section 33. A file is filed for each tool in Section F. Similarly, although the explanation is omitted, the X axis is also corrected. Filed in Section F.

補正データ・メモリ35中のR項は刃先半径によって鋭
利度を示し、T項はタッチセンサの刃先位置の識別番号
である。
The R term in the correction data memory 35 indicates the sharpness by the blade edge radius, and the T term is the identification number of the blade edge position of the touch sensor.

工具の補正データ・メモリ35から補正データZ OF
nを加ニブログラム・メモリ6へ送ることによって座標
系設定と工具の補正が行なわれ、加ニブログラムに従っ
て旋削加工が施こされる。
Correction data Z OF from tool correction data memory 35
Coordinate system setting and tool correction are performed by sending n to the cutting program memory 6, and turning is performed according to the cutting program.

本発明の動作を、第4図のフローチャートに基づいて説
明する。第4図において、まず第0段としてプリセット
センサP、にタッチセンサT、を接触せしめて、プリセ
ットセンサpsの設定データZQを入力させてプリセッ
トセンサ位置設定データ・ファイル34にファイルする
。第0段として予め設定されているタッチセンサP、の
設定長さZ、を画面付キーボード2から、入出力回路2
aを介して、メモリ8に記憶させる。
The operation of the present invention will be explained based on the flowchart of FIG. In FIG. 4, first, as the 0th stage, the touch sensor T is brought into contact with the preset sensor P, and the setting data ZQ of the preset sensor ps is inputted and filed in the preset sensor position setting data file 34. The set length Z of the touch sensor P, which is preset as the 0th stage, is transferred from the keyboard with screen 2 to the input/output circuit 2.
It is stored in the memory 8 via a.

第0段として座標系設定モードを選択し、以後の座標系
設定を行なう。第0段で刃物台T、を移動し、タッチセ
ンサT、を爪の端面またはワークの端面にあてる。タッ
チセンサT、が爪の端面またはワークの端面にあたると
、第0段で刃物台T、の移動が自動停止する。次に第0
段として、アンド・ゲート13にタッチセンサ信号が取
り込まれるので、座標値データZnがアンド・ゲート1
3を通過し、演算部14に入り、センサ座標値L−z、
の処理が行なわれて、センサ座標値2.4の値が演算部
15に入り、さらにメモリ8がらタッチセンサ設定長さ
ZPが演算部15に入って、仮の座標系設定値Zo ’
 ”ZF +2J1の演算処理が行なわれる。
The coordinate system setting mode is selected as the 0th stage, and subsequent coordinate system settings are performed. At the 0th stage, the tool rest T is moved and the touch sensor T is applied to the end face of the claw or the end face of the workpiece. When the touch sensor T hits the end face of the claw or the end face of the workpiece, the movement of the tool rest T automatically stops at the 0th stage. Then the 0th
As a step, the touch sensor signal is taken into the AND gate 13, so the coordinate value data Zn is input to the AND gate 1.
3, enters the calculation unit 14, and calculates the sensor coordinate value L-z,
After processing, the sensor coordinate value 2.4 enters the calculation unit 15, and the touch sensor setting length ZP from the memory 8 enters the calculation unit 15, and the temporary coordinate system setting value Zo'
"ZF + 2J1 calculation processing is performed.

第0段としてタッチセンサの検知箇所が爪の端面かワー
クの端面かを信毎により判別し、爪の端面である場合は
、第■で、プログラム原点がワーク端面基準であるか、
爪端面基準であるかを判断し、ワーク端面基準の場合に
は、第0段として演算部24でZ+ =Zo ’  Z
wの演算処理が施こされる。すなわち演算部15より仮
の座標系設定値20 ′が爪端面タッチ信号によってア
ンド・ゲート17に取り込まれて、仮の座標系設定値2
0 ′がアンド・ゲート17を通過し、さらにワーク端
面基準プログラム信号によって、仮の座標系設定(pZ
o’がアンド・ゲート21を通過して演算部24に取り
込み、かつメモリ7よりワーク長さZ−を演算部24に
取り込ませることによって上述のZ+ −Zo  ’ 
 Zwの演算処理が行なわれる。
As the 0th stage, it is determined based on the signal whether the detection point of the touch sensor is the end face of the claw or the end face of the workpiece, and if it is the end face of the claw, in step
It is determined whether the claw end face is referenced, and if the workpiece end face is referenced, the calculation unit 24 calculates Z+ =Zo 'Z as the 0th stage.
Arithmetic processing of w is performed. That is, a temporary coordinate system setting value 20' is taken into the AND gate 17 by the claw end face touch signal from the calculation unit 15, and the temporary coordinate system setting value 2
0' passes through the AND gate 17, and furthermore, a temporary coordinate system setting (pZ
o' passes through the AND gate 21 and is taken into the calculation section 24, and the workpiece length Z- is taken into the calculation section 24 from the memory 7, thereby obtaining the above-mentioned Z+ -Zo'.
Zw calculation processing is performed.

第0段で爪端面基準であると判断されると、第[相]段
に移り、オア・ゲート23を通過しZ+”Zo’として
取り込まれる。すなわち、アンド・ゲート17を通過し
た仮の座標系設定値20 ′が爪端面基準プログラム信
号によってアンド・ゲート2゜を通過し、Z+=Zo’
としてオア・ゲート23を通過する。
When it is determined that the claw end surface is the reference in the 0th stage, the process moves to the [phase] stage, passes through the OR gate 23, and is taken in as Z+"Zo".In other words, the temporary coordinates that have passed through the AND gate 17 The system setting value 20' passes through the AND gate 2° according to the claw end surface reference program signal, and Z+=Zo'
Pass through OR Gate 23 as follows.

第0段でタッチセンサの検知箇所がワーク端面であると
、第0段で、さらにプログラム原点がワーク端面基準で
あるか、爪端面基準であるか判断し、ワーク端面基準と
判断されると、第[相]段と同様にZ+ =Zo  ’
の処理が行なわれる。すなわち演算部15で演算処理さ
れた仮の座標値20 ′がワーク端面タッチ信号によっ
てアンド・ゲート16を通過する。さらにワーク端面基
準プログラム信号をアンド・ゲート19に取り込ませる
ことによって、仮の座標系設定値20 ′がアンド・ゲ
ート19を通過しZ+=Zo’としてオア・ゲート23
を通過する。
If the detection point of the touch sensor is the workpiece end face in the 0th stage, it is further determined in the 0th stage whether the program origin is based on the workpiece end face or the claw end face, and if it is determined that it is the workpiece end face reference, Similarly to the [phase] stage, Z+ = Zo'
processing is performed. That is, the temporary coordinate value 20' calculated by the calculation unit 15 passes through the AND gate 16 in response to the workpiece end surface touch signal. Furthermore, by inputting the workpiece end face reference program signal into the AND gate 19, the provisional coordinate system setting value 20' passes through the AND gate 19 and is output to the OR gate 23 as Z+=Zo'.
pass through.

第0段でプログラム原点が爪端面基準として判断される
と、第0段でZ+ ”Zo  ’ +2wの演算処理が
行われる。すなわちアンド・ゲート16を通過した仮の
座標系設定値Z0 ′が爪端面基準プログラム信号によ
ってアンド・ゲート18を通過して演算部22に取り込
む。演算部22にはメモリ7からワーク長さZ。を取り
込んで、Z1=ZO’+Zkの演算処理が演算部22で
jテなわれる。
When the program origin is determined to be the claw end surface reference in the 0th stage, the calculation process of Z + "Zo ' + 2w is performed in the 0th stage. In other words, the temporary coordinate system setting value Z0 ' that has passed through the AND gate 16 is The end face reference program signal passes through the AND gate 18 and is taken into the calculation section 22.The calculation section 22 takes in the workpiece length Z from the memory 7, and the calculation processing of Z1=ZO'+Zk is performed in the calculation section 22. Te is called.

演算部22.オア・ゲート23および演算部24を通過
したハの値はオア・ゲート25を通過する。
Arithmetic unit 22. The value of Ha that has passed through the OR gate 23 and the arithmetic unit 24 passes through the OR gate 25.

次に第0段で加工するワークWに取り代置が有るか、あ
るいは無いかを判断する。取り代置δがある場合には第
[相]段で、20−2.  +6の演算処理がなされる
。すなわち、オア・ゲート25を通過したZIの値が取
り化データ有の信号によってアンド・ゲート26を通過
し、演算部28に取り込み、さらに、 メモリ9が取り
代置δを演算部28に取り込ませて、Zo−ZI  +
δの演算処理が行なわれ、オア・ゲート30を通り、座
標系設定データメモリ31に記憶される。
Next, it is determined whether the workpiece W to be machined in the 0th stage has a machining substitute or not. If there is a removal substitution δ, in the [phase] stage, 20-2. +6 calculation processing is performed. That is, the value of ZI that has passed through the OR gate 25 passes through the AND gate 26 and is taken into the arithmetic unit 28 by the signal indicating that there is data to be substituted, and furthermore, the memory 9 causes the value of substitution δ to be taken into the arithmetic unit 28. Te, Zo-ZI +
The arithmetic processing of δ is performed, passes through the OR gate 30, and is stored in the coordinate system setting data memory 31.

第0段で、取り代置が無い場合には、第[相]段で2、
=2.の代入処理が行なわれる。オア・ゲート25を通
過したZ、の値が取り化データ無の信号によってアンド
・ゲート27を通過し演算部29でZo”ZIの代入処
理が行なわれて、オア・ゲート30を通って、メモリ3
】に真の座標系設定値Z。が座標系設定データ31に一
旦記憶される。
If there is no replacement in the 0th stage, 2 in the [phase] stage,
=2. Assignment processing is performed. The value of Z, which has passed through the OR gate 25, is passed through the AND gate 27 by the signal indicating no data, and is substituted with Zo''ZI in the arithmetic unit 29, and then passed through the OR gate 30 and stored in the memory. 3
] is the true coordinate system setting value Z. is temporarily stored in the coordinate system setting data 31.

第0段までで座標系設定が終了すると、第[相]で刃物
台T、を原点に復帰させる。第0段でタッチセンサT、
を刃物台から取り外し、この位置に工具があれば取付け
る。
When the coordinate system setting is completed up to the 0th stage, the tool rest T is returned to the origin in the [phase]. Touch sensor T at stage 0,
Remove the tool from the turret, and install the tool at this location, if any.

次に、第[相]段で工具補正モードを選択し、第0段で
工具補正動作を開始する。すなわちプリセ。
Next, the tool correction mode is selected in the 0th stage, and the tool correction operation is started in the 0th stage. In other words, plisse.

トセンサP、を主軸台Hから振り込んでセットし、各工
具の補正値を求める。第[相]段でZ。r、、=(z。
Transfer the sensor P from the headstock H and set it, and find the correction value for each tool. Z in the [phase] stage. r,,=(z.

ZP ) z、の演算処理を行う。すなわらメモリ11
にある座標値データZ1は、+Z用ブリセントセンサ信
号によってアンド・ゲート32を通過して演算部33に
取り込ませる。さらに演算部33に、メモリ8からタッ
チセンサ設定長さZ。
ZP) Performs arithmetic processing of z. In other words, memory 11
The coordinate value data Z1 at , passes through the AND gate 32 and is taken into the arithmetic unit 33 by the +Z recent sensor signal. Furthermore, the touch sensor setting length Z is input to the calculation unit 33 from the memory 8.

メモリ10からプリセットセンサ設定長さZoを夫々取
り込ませることによって、ZOF−=(Z。
By respectively importing the preset sensor setting lengths Zo from the memory 10, ZOF-=(Z.

−ZP )−z、の演算処理をして工具補正Hz。、が
求まり、補正データ・メモリ35に記憶させる。
-ZP)-z, and performs the calculation process to correct the tool in Hz. , is determined and stored in the correction data memory 35.

第0段で通常モードに選択し、第0段で、加ニブログラ
ム・メモリ6から加ニブログラムを取り出し、工作機械
で所定の加工を行う。
At the 0th stage, the normal mode is selected, and at the 0th stage, the cannibal program is taken out from the cannibal program memory 6 and predetermined processing is performed with the machine tool.

なお、本発明の実施例では刃物台にタッチセンサを取付
けて座標系設定値を求めたが、主軸台の固定側にセンサ
を配し、ワークあるいはチャック爪に、刃物台に固定さ
れた工具あるいは基準片とが導体接触した瞬間に閉回路
を形成して閉回路に流れるt磁誘導等で検出して座標系
設定値を求めても一向に構わない。
In the embodiment of the present invention, a touch sensor was attached to the tool post to obtain the coordinate system setting values, but the sensor was placed on the fixed side of the headstock, and the touch sensor was installed on the workpiece or chuck jaw, and the touch sensor was attached to the tool post to determine the coordinate system settings. There is no problem even if a closed circuit is formed the moment the reference piece comes into conductive contact with the reference piece, and the coordinate system set value is determined by detecting the t-magnetic induction flowing in the closed circuit.

(7)効果 以上説明したとおり、本発明によれば刃物台側の計測手
段でワークW取付面側の位置を測定することによって、
真の座標系設定値を演算手段で演算し、プログラム原点
からワーク加工を容易に自動設定出来る工作機械の座標
系設定装置であって、正確かつ容易に制御できる。従っ
て、誤動作が生じずに加工作業の精度向上およびオート
メーション化と能率向上に貢献するのである。
(7) Effects As explained above, according to the present invention, by measuring the position on the workpiece W mounting surface side using the measuring means on the turret side,
This is a coordinate system setting device for a machine tool that calculates true coordinate system setting values with a calculation means and can easily and automatically set workpiece machining from a program origin, and can be accurately and easily controlled. Therefore, it contributes to improved precision, automation, and efficiency in machining operations without causing malfunctions.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の座標系設定装置を説明するための概略
構成図である。第2図の(A)〜(H)は第1図におけ
るタッチセンサT、の検知箇所、プログラム原点の位置
および取り代置の有無を変えた場合の実施例図である。 第3図は、本発明を実施した座標系設定装置の一例を示
す構成ブロック図である。 第4図は本発明の詳細な説明するためのフローチャート
図である。 H・・・主軸台      S・・・主 軸C・・・チ
ャック     D・・・爪0イ・・・機械原点   
 O7・・・プログラム原点T、・・・刃物台    
 T、・・・タレットT、・・・タッチセンサ PS・
・・プリセットセンサし、・・・リミットスイッチ  
し・・・アームZP・・・タッチセンサの長さ Zい・・・ワーク素材の長さ  δ・・・取り代置ZH
・・・刃物台の移動量 Zo・・・プリセットセンサの移動量 Z0・・・真の座標系設定値 Zo  ’・・・仮の座標系設定値 2.・・・タッチセンサの長さ  100・・・CPU
12・・・演算手段     15,22.28・・・
演算部第1図 (A) (C) (D) (G) 2図 、、) (H) 手続事甫正W(自発) 昭和60年2月ご日 (特許庁審査官        殿) 1、事件の表示  特願昭59−第232564号2、
 発明の名称  工作機械の座標系設定装置3、補正を
する者 事件との関係 出願人 住所  東京都千代田区丸の内2の4の1名称   日
立精機株式会社 代表者 出用金穴 4、代理人 6、補正の内容 111  明細書を別紙のとおり全文訂正します。 (2)図面のうち、第1図、第2図(^)〜(H)およ
び第3図を別紙のとおり補正します。 全文訂正明細書 1、発明の名称 工作機械の座標系設定装置 2、特許請求の範囲 主軸台の主軸に取付けられ、ワーク把持用の爪を有した
チャックと、該チャックに把持されたワークを加工する
ため直交する2平面内を移動可能な刃物台と、該刃物台
に取付けた計測手段と、該計測手段の信号で刃物台の移
動量を検知する位置検知手段と、前記計測手段の基準長
さを設定する手段と、計測手段の検知箇所が爪の面がワ
ークの面かを判別する手段と、ワークの長さと、取り代
の量およびプログラム原点が爪側のワーク基準か刃物台
側のワーク基準かを設定する入力手段と、前記各入力手
段の入力設定に基づき、座標系設定値を演算する演算手
段とからなることを特徴とする工作機械の座標系設定装
置 3、発明の詳細な説明 +11  産業上の利用分野 本発明は工作機械特に旋削加工機でワークを加工する際
のワーク取付面側からの位置を基準にした工作機械の座
標系設定装置に関する。 (2)従来の技術 従来、工作機械のNC加工機では、機械制御用の座標と
ワーク加工用の座標の2つを有し、旋削加工に先だって
機械座標系位置を確認した後、加ニブログラムに対する
ワーク取付位置の変化分を手動操作で補正していた。 (3)発明が解決しようとする問題点 しかしながら、前述した従来の手動操作による補正には
、計測操作と手計算とを必要とし、更に複雑な機械操作
が伴っている。この為、誤動作、段取り時間の長期化お
よび不良品の発生等をもたらすという問題点があった。 また、作業者がワークのどの点を基準(プログラム原点
)にして加ニブログラムを作製するか、さらに加工に先
立つ取り代とその振分けによってプログラム原点そのも
 、のが機械原点に対して変動することが自動化におけ
る問題点として残っていた。 (4)目的 本発明の目的は上記事情に鑑み、問題を解決するために
提案されたものであって、刃物台側の計測手段でワーク
取付面の位置を測定し、加ニブログラムに沿った座標系
を設定することにより自動操作で、かつ容易に行えるよ
うにした工作機械の座標系設定装置を提供するにある。 (5)問題を解決するための手段と作用本発明は工作機
械の座標系設定装置の改良であって、刃物台側に取付け
た計測手段で、ワーク取付面の位置を測定し加ニブログ
ラムに沿った座標系を自動で設定し、ワークに所定の旋
削加工をするようにしたものである。 すなわち、本発明は主軸台の主軸に取付けられ、ワーク
把持用の爪を有したチャックと、該チャックに把持され
たワークを加工するため直交する2平面内を移動可能な
刃物台と、該刃物台に取付けた計測手段と、該計測手段
の信号で刃物台の移動量を検知する位置検知手段と、前
記計測手段の基準長さを設定する手段と、計測手段の検
知箇所が爪の面かワークの面かを判別する手段と、ワー
クの長さと、取り代の量およびプログラム原点が爪側の
ワーク基準か刃物台側のワーク基準かを設定する入力手
段と、前記各入力手段の入力設定に基づき、座標系設定
値を演算する演算手段とから構成されている。 而して本発明の座標系設定装置を採用することにより手
動操作で補正するのでな(、自動操作で、かつ容易に補
正することができる。 (6)実施例 以下、本発明の一実施態様を、図面に基づいて詳細に説
明する。 第1図は本発明の座標系設定装置を説明するための概略
構成図である。第1図において、主軸台Hに軸承された
主軸Sの先端部にチャックCが取付けられている。該チ
ャックCの先端部における爪りによりワークWを把持す
る。該チャックCに対向する側に機械原点0.4を有し
ている。また該チャックCに対向する側に刃物台T、が
設けられ、X軸とZ軸の2平面内に移動し得るようにな
っている。 刃物台Trの前面にはタレットTゎが割出し可能に取付
けられている。該タレットThには工具ホルダT1が固
定され、その工具ホルダT1に、後に詳述される本発明
装置に使用するタッチセンサT、が挿脱可能に取付けら
れている。タッチセンサT、は常時前方へスプリングS
、により付勢され、かつ刃物台Trには高精度リミット
スイッチL、が取付けられている。ワークWの端面ある
いは爪りの端面へ刃物台Trの移動によりタッチセンサ
T、が接触することにより、タッチセンサT、の後端部
がリミットスイッチL、を踏接することによって移動位
置を検知するようになっている。 また、このタッチセンサT、を使用して各工具の補正も
求めることができる。工具刃先の補正値すなわち取付偏
差値を検出する手段としては、近時、同一出願人の実願
昭58−171627号に明示されているようなツール
ブリ七ツタと呼ばれる自動検出手段が使用されている。 これは工作機械の主軸台Hに揺動自在に取付けられたア
ームLの先端にX軸およびZ軸それぞれ双方向のプリセ
ットセンサP、を備えたもので、アームLにより検出位
置と待機位置とを有し、検出位置になる時は、第1図に
示す如くプリセ−/ )センサP、は、機械原点OMか
らの相対位置が常に一定で、パラメータ入力が出来るよ
うになっている。このプリセットセンサP、はZ軸の2
方向およびX軸の2方向の計4方向で検出できる構成と
なっている。 第1図では+Z軸方向のパラメータ値Z0のみ示しであ
る。 プリセットセンサP、にタッチセンサT、あるいは各工
具の刃先を接触させその都度、機械原点08からの座標
値を検出することにより、各工具の補正値を得ることが
できる。 すなわち、計測手段であるタッチセンサT、の設定長さ
をZp、各工具における機械原点08からプリセットセ
ンサP、までの刃物台T1の移動量を21とすれば、各
工具の補正値 Zo、、1−(ZQ  ZF)−Z− で求めることが出来る。従って、本発明は座標系設定値
を求めると共に各工具の補正値も求められる。なお、第
1図でZwはワーク素材Wの長さ、δはワーク素材Wの
取り代置である。 次に、本発明の具体的な例について説明する。 ここで、機械原点0.からプログラム原点までの座標系
設定値を求める場合、タッチセンサT、を爪の端面ある
いはワーク端面にあてて位置検知を行なうのか、また、
プログラム原点基準を爪の端面側にするのか、ワーク端
面であるのかは、その都度任意のことであり、取り代置
δの加味についても同様であって、座標系設定値は機械
固有のものではなく、変動するため、自動設定を行なう
には柔軟な設定が必要である。第2図の(A)〜(H)
は前述した第1図におけるタッチセンサTsによりZ軸
方向の座標系設定値を求める場合の種々の通用例である
。すなわちタッチセンサT、の検知箇所がワーク端面か
あるいは爪端面であるかの違い、プログラム原点OFが
爪端面であるか、ワーク端面であるかの違いおよび取り
代置δが有るか無いか(すなわち、第1工程か第2工程
であるか)の場合の例で、8通りの例を示したものであ
る。なお、プリセットセンサP、はすでに待機位置にあ
る。 (A)第2図(A)はタッチセンサT、の検知箇所がワ
ーク端面であって、プログラム原点O7が爪端面にあり
、取り代置δが無い場合の例である。 第1に仮りの座標系設定値20′として、z 01−2
 p + Z Mを求め、次にプログラム原点O7によ
る真の座標系設定値Z0は、 Zo =Zo ’ +2w  (−ZP +ZH+2w
 )で求められる。 20 ′:仮の座標系設定値 Z、:タッチセンサT、の設定長さ Z、4=機械原点0゜からの刃物台の移動量Zo :真
の座標系設定値 Zw :ワーク素材の長さ すなわち、予めZp、Zwを求めて入力されているので
、刃物台の移動IZ。のみを求めることによって、真の
座標系設定値が求められるのである。 (B)第2図(B)はタッチセンサT、の検知箇所がワ
ーク端面であって、プログラム原点O1が爪端面にあり
、取り代置δが有る場合の例である。 仮の座標系設定値Z0 ′は、Zo ’ −ZP + 
Zlllとなり、プログラム原点0.による真の座標系
設定値z0は、 ZO=Zo  ’ +Zw+δ(=ZP +Z、+Zw
+δ)で求められる。 従って、取り代置δの加算によって求められた真の座標
系設定値Z0はワークWがあたかも、第2図(B)の二
点鎖線(想像線)の位置にあるかの如くとなる。 前述した(A)と同様に、予めZp、Zwおよびδを求
めて入力されているので、やはり刃物台の移動IZ、の
みを求めることによって、真の座標系設定値Z0が求め
られるのである。 (C)タッチセンサT、の検知箇所がワーク端面であっ
て、プログラム原点もワーク端面にあり、取り代置δが
無い場合の例は第2図の(C)に示した遺りである。 仮の座標系設定値20 ′は、zo  l=z、+Zイ
となり、プログラム原点0.による真の座標系設定値Z
0は、 Zo ”Z6  ’  (−ZP +2M )で求めら
れる。 (D)タッチセンサTSの検知箇所がワーク端面であっ
て、プログラム原点が上記(C)と同様にワーク端面に
あり、取り代置δが有る場合の例は第2図の(D)に示
した通りである。 仮の座標系設定値20 ′はZo  ’ −ZP +2
Mとなり、プログラム原点0、による真の座標系設定値
z0は、 Zo=Zo’+δ(=ZP”Zll+δ) で求められる。 (E)タッチセンサT、の検知箇所が爪端面であって、
プログラム原点O2も爪端面にあり、取り代置δが無い
場合の例は第2図の(E)に示した通り  、である。 仮の座標系設定値Zo  ’はzo  ’ =ZP +
2Mとなり、プログラム原点O1による真の座標系設定
値Z0は、 Zo ”Zo ’  (=ZP +Z?I)で求められ
る。 (F)タッチセンサT、の検知箇所が爪端面であって、
プログラム原点OFも爪端面であり、取り代置δが有る
場合の例は第2図の(F)に示した通りである 仮の座標系設定値z、lは、ZO’ = ZF + Z
llとなり、プログラム原点かによる真の座標系設定(
j!zoは、 z、=Z、’+δ (”ZP+ZM +δ)で求められ
る。 (G)タッチセンサT、の検知箇所が爪端面であって、
プログラム原点O1がワーク端面にあり、取り代量δが
無い場合の例は第2図の(G)に示した通りである。 仮(7)座[系設定値Z。′は、Z6  ’ −Zp 
+ZNとなり、プログラム原点0.による真の座標系設
定値Z。は、 Zo =Zo  ’ −Zt、+  (−ZP +Z!
4−zw )で求められる。 (H)タッチセンサT、の検知箇所が爪端面であって、
プログラム原点0.がワーク端面にあり、取り代置δが
有る場合の例は第2図の()l)に示した通りである。 仮の座標系設定値Z。′は、Z O’ =Z P 4Z
8となり、プログラム原点02による真の座標系設定値
Z。は、 Zo−Zo’  Zw+δ(−ZP ” ZM  Zw
+δ)で求められる。 上述した(A)〜()l)の真の座標系設定値Z0をま
とめると、 Z、・Zp+ZM+Zv1・・・・・・・・・ 例(A
)の場合Zo □ Zr + ZM + Zw + 6
・・・  例(B)の場合Z0・Z、+Z、・・・・・
・・・・・・・ 例/C) 、 (E)の場合Zo=L
+L÷δ・・・・・・  例([1) 、 (F)の場
合Zo・Zr÷Zs−Zw十 δ・・・  例(I()
の場合Z0・Zp+Z、−Zw・・・・・・・・・ 例
(G)の場合となる。 これらの20の値はワーク長さZ8のプラス。 マイナス、取り代■δの値がOであることも考慮すれば
、Zo =ZP +ZN +Zw+δが一般解となる。 第3図は本発明を実施した座標系設定装置の一例を示す
構成プロ・ツク図である。第3図において、NCデータ
を読み取るテープリーダ1からその入力回路1aを介し
てCPU100によりNCデータが入力され、加ニブロ
グラム・メモリ6に一時(5納されて記憶される。 ワークの長さZw、タッチセンサT、の設定長さZ、お
よび加工すべきワークWの取り化量δの値は予め設定さ
れて、夫々入力手段である画面付キーボード2から、そ
の入出力回路2aを介して夫々のワーク長さZwのメモ
リ7、タッチセンサの設定長さZ、のメモリ8および加
工すべきワークWの取り化量δのメモリ9に一旦記憶さ
れる。 タッチセンナT、をワークWの端面あるいは爪端面に接
触させて、刃物台T、の移動量である2、を計測し、入
出力回路3を介してその移動量2、を入力する。 プリセットセンサP、の機械原点Oイからの位置Z0を
計測し、プリセットセンサ位置設定データ34にファイ
ルする。 さらに、送出する位置データ送出手段5から、刃物台の
移動に応じた機械原点O8からの位置データZ0を、座
標値データZfiのメモリ11に転送する。 CPU100で処理され、夫々記憶されているワーク長
さZ、4.取り代データδ、タッチセンサ設定長さZ2
および座標値データZ0が演算手段12に次の順序で取
り込まれ演算処理される。 まず、タッチセンサT、は、爪の端面がワークの端面に
あてることによってタッチセンサ信号を発するが、この
タッチセンサ信号でメモリ11に記憶されている座標値
データZ7はアンドゲート13を通過し、センサ座標値
Z1としてを取り込まれ、センサ座標値メモリ14に記
憶される。 (ZM =Z、、) メモリ8に記憶されているタッチセンサ設定長さZ、と
、メモリ14に記憶されたセンサ座標値2、が演算部1
5によって、Zo ””ZP+ZHの仮の座標系設定値
20 ′が演算される。 演算部15で演算された仮の座標系設定値z01は、ア
ンド・ゲート16にワーク端面タッチ信号が取り込まれ
ると、アンド・ゲート16を閉じ仮の座標系設定値20
 ′を通過させる。またアンド・ゲート18に爪端面基
準プログラム信号が取り込まれると、仮の座標系設定値
20 ′がアンド・ゲート18を通過して演算部22に
取り込まれる。 一方、アンド・ゲート16を通過した仮の座標系設定値
20 ′は、アンド・ゲート19にワーク端面基準プロ
グラム信号が取り込まれると、仮の座標系設定値20 
′がアンド・ゲート19を通過し、オア・ゲート23を
通過する。 また、演算部15で演算処理された仮の座標系設定値Z
。′は、アンド・ゲート17に爪端面タッチ信号が取り
込まれると、仮の座標系設定値70 ′がアンド・ゲー
ト17を通過する。仮の座標系設定値20 ′は、アン
ド・ゲート20に爪端面基準プログラム信号が取り込ま
れると、仮の座標系設定値Z。′がアンド・ゲート20
を通過し、オアゲート23を通過する。 アンド・ゲート17を通過した仮の座標系設定値20 
′は、アンド・ゲート21にワーク端面基準プログラム
信号を取り込ませると、仮の座標系設定値70 ′がア
ンド・ゲート21を通過し演算部24に取り込まれる。 演算部22では、アンド・ゲート18を通過して取り込
まれた仮の座標系設定値20 ′と、ワーク長さZ。メ
モリ7に記憶されていたワーク長さZlが取り込まれて
、Zl −Zo ’ +2wの演算処理が行なわれ、そ
の演算された値Z1がオアゲート25を通過する。アン
ド・ゲート19あるいはアンド・ゲート20を通過した
仮の座標系設定値 20 ′は、夫々そのまま通過しく
この場合Zw””Oであるため、Zl ”20  ’で
ある。)、Z、の値がオア・ゲート25を通過する。 演算部24では、アンド・ゲート21を通過して取り込
まれた仮の座標系設定値Z。′と、ワーク長さ28メモ
リ7に記憶されていたワーク長さZ8が取り込まれて、
ZI=Zo  ’  Zwの演算処理が行なわれ、その
演算された値ZIがオア・ゲート25を通過する。 オア・ゲート25を通過したZ、の値は、取り化データ
有の信号がアンド・ゲート26に取り込まれると、Zl
の値がアンド・ゲート26を通過して演算部28に取り
込まれ、さらに取り代データδ・メモリ9に記憶されて
いた取り代データδが演算部28に取り込まれる。演算
部28で、Z。 =Z1 +δの演算処理が行なわれる。 オア・ゲート25を通過したZlの値は、取り化データ
無の信号がアンド・ゲート27に取り込れると、アンド
・ゲート27を通過し、そのまま演算部29に取り込ま
れる。演算部29では、取り代データδが無いので、Z
o”Z+ として代入処理される。演算部28もしくは
演算部29で演算処理されたZoの値がオア・ゲート3
0を通過し、真の座標系設定データZ0として、メモリ
31に真の座標系データZ0を記憶する。さらにメモリ
31から真の座標系設定データZ0を加ニブログラム・
メモリ6に記憶する。 次に、ワークWを加工するのに使用される各工具の補正
について説明する。 プリセットサン七P、における+Z用の機械原点O14
からの座標値(設定データ)ZOはプリセット位置設定
データ34にファイルされている。 本実施例では後で述べる通り+Z用の設定データZ0を
使用して各工具の補正値を求める説明しかしていないが
、実際は、−Z用、+X用および−X用の設定データも
ファイルし使用するが、これらの説明は+Z用と同じで
あるので省略する。 刃物台の移動によって工具がブリセ−/ )センサP3
の+Z用センサに接触するとプリセットセンサP、は+
2用ブリセフトセンサ信号をアンド・ゲート32に取り
込む、この信号で、刃物台のその時点の座標値データメ
モリ11にある、座標値データZ7がアンド・ゲート3
2を通過し、演算部33に取り込まれる。演算部33で
は、タッチセンサ設定長さZ、・メモリ8に記憶されて
いるタッチセンサ設定長さZFを取り込み、かつプリセ
ット位置設定データファイル34よりプリセットセンサ
設定データZ、・メモリ10に記憶されているプリセッ
トセンサ設定データZ0を取り込ませる。 演算部33では、Zorn−(Za  ZP ) −Z
oの演算処理が行なわれ、演算部33から補正データ・
メモリ35中のZ。1項の各工具ごとにファイルされる
。同様に、説明を省略しているが、X軸の補正も行なっ
てX。F項にファイルされる。 補正データ・メモリ35中のR項は刃先半径によって鋭
利度を示し、T項はタッチセンサの刃先位置の識別番号
である。 工具の補正データ・メモリ35から補正データZ OF
nを加ニブログラム・メモリ6へ送ることによって座標
系設定と工具の補正が行なわれ、加ニブログラムに従っ
て旋削加工が施こされる。 本発明の動作を、第4図のフローチャートに基づいて説
明する。第4図において、まず第0段としてプリセット
センサP、にタッチセンサT、を接触せしめて、プリセ
ットセンサP、の設定データZoを入力させてプリセッ
トセンサ位置設定データ・ファイル34にファイルする
。第0段として予め設定されているタッチセンサP、の
設定長さ2.を画面付キーボード2から、入出力回路2
aを介して、メモリ8に記憶させる。 第0段として座標系設定モードを選択し、以後の座標系
設定を行なう。第0段で刃物台Tr・を移動し、タッチ
センサT、を爪の端面またはワークの端面にあてる。タ
ッチセンサT、が爪の端面またはワークの端面にあたる
と、第0段で刃物台T、、の移動が自動停止する。次に
第0段として、アンド・ゲート13にタッチセンサ信号
が取り込まれるので、座標値データZnがアンド・ゲー
ト13を通過し、演算部14に入り、センサ座標値Zs
”’Zfiの処理が行なわれて、センサ座標値2.4の
値が演算部15に入り、さらにメモリ8からタッチセン
サ設定長さZ、が演算部15に入って、仮の座標系設定
値Zo  ’ −Zr +Zsの演算処理が行なわれる
。 第0段としてタッチセンサの検知箇所が爪の端面かワー
クの端面かを信号により判別し、爪の端面である場合は
、第■で、プログラム原点がワーク端面基準であるか、
爪端面基準であるかを判断し、ワーク端面基準の場合に
は、第0段として演算部24でz、=z、’−z、4の
演算処理が施こされる。すなわち演算部15より仮の座
標系設定値Z。′が爪端面タッチ信号によってアンド・
ゲート17に取り込まれて、仮の座標系設定値z、1が
アンド・ゲート17を通過し、さらにワーク端面基準プ
ログラム信号によって、仮の座標系設定値20 ′がア
ンド・ゲート21を通過して演算部24に取り込み、か
つメモリ7よりワーク長さZwを演算部24に取り込ま
せることによって上述のZ+=Zo’Z。の演算処理が
行なわれる。 第0段で爪端面基準であると判断されると、第0段に移
り、オア・ゲート23を通過し7. 、−7. o、 
’として取り込まれる。すなわち、アンド・ゲート17
を通過した仮の座標系設定値20 ′が爪端面基準プロ
グラム信号によってアンド・ゲート20を通過し、Zl
 ”ZO’としてオア・ゲート23を通過する。 第0段でタッチセンサの検知箇所がワーク端面であると
、第0段で、さらにプログラム原点がワーク端面基準で
あるか、爪端面基準であるか判断し、ワーク端面基準と
判断されると、第[相]段と同様にZI=Zo’の処理
が行なわれる。すなわち演算部15で演算処理された仮
の座標値20 ′がワーク端面タッチ信号によってアン
ド・ゲート16を通過する。さらにワーク端面基準プロ
グラム信号をアンド・ゲート19に取り込ませることに
よって、仮の座標系設定値Z。′がアンド・ゲート19
を通過しZl−Zo’としてオア・ゲート23を通過す
る。 第0段でプログラム原点が爪端面基準として判断される
と、第0段で7. 、−7.0’ +7. 、の演算処
理が行われる。すなわちアンド・ゲート16を通過した
仮の座標系設定値z01が爪端面基準プログラム信号に
よってアンド・ゲート18を通過    。 して演算部22に取り込む。演算部22にはメモIJ 
7からワーク長さZ。を取り込んで、Z、−Zo’+Z
wの演算処理が演算部22で行なわれる。 演算部22.オア・ゲート23および演算部24を通過
したZlの値はオア・ゲート25を通過する。 次に第0段で加工するワークWに取り化量が有るか、あ
るいは無いかを判断する。取り化量δがある場合には第
[相]段で、Zo−Zl +δの演算処理がなされる。 すなわち、オア・ゲート25を通過したZl の値が取
り化データ有の信号によってアンド・ゲート26を通過
し、演算部28に取り込み、さらに、 メモリ9が取り
化量δを演算部28に取り込ませて、Zo”Zl +δ
の演算処理が行なわれ、オア・ゲート30を通り、座標
系設定データメモリ31に記憶される。 第0段で、取り化量が無い場合には、第[相]段でZo
”Z、の代入処理が行なわれる。オア・ゲー ゛ト25
を通過したZ、の値が取り化データ無の信号によってア
ンド・ゲート27を通過し演算部29でZo=Zlの代
入処理が行なわれて、オア・ゲート30を通って、メモ
リ31に真の座標系設定値Z0が座標系設定データ31
に一旦記憶される。 第0段までで座標系設定が終了すると、第[相]段で刃
物台T、、を原点に復帰させる。第0段でタッチセンサ
T、を刃物台から取り外し、この位置に工具があれば取
付ける。 次に、第[相]段で工具補正モードを選択゛し、第[相
]段で工具補正動作を開始する。すなわちプリセットセ
ンサP、を主軸台Hから振り込んでセットし、各工具の
補正値を求める。第[相]段でZ。F−−(ZQZP 
)−Z、の演算処理を行う。すなわちメモI711にあ
る座標値データZ。は、+Z用プリセ    −ットセ
ンサ信号によってアンド・ゲート32を通過して演算部
33に取り込ませる。さらに演算部33に、メモリ8か
らタッチセンサ設定長さZP。 メモリ10からプリセットセンサ設定長さZoを夫々取
り込ませることによって、ZOFn−(Za−ZP )
−znの演算処理をして工具補正flzor。 が求まり、補正データ・メモリ35に記憶させる。 第0段で通常モードに選択し、第0段で、加ニブログラ
ム・メモリ6から加ニブログラムを取り出し、工作機械
で所定の加工を行う。 なお、本発明の実施例では刃物台にタッチセンサを取付
けて座標系設定値を求めたが、主軸台の固定側にセンサ
を配し、ワークあるいはチャック爪に、刃物台に固定さ
れた工具あるいは基準片とが導体接触した瞬間に閉回路
を形成して閉回路に流れる電1eft誘導等で検出して
座標系設定値を求めても一向に構わない。 (7)効果 以上説明したとおり、本発明によれば刃物台側の計測手
段でワークW取付面側の位置を測定することによって、
真の座標系設定値を演算手段で演算し、プログラム原点
からワーク加工を容易に自動設定出来る工作機械の座標
系設定装置であって、正確かつ容易に制御できる。従っ
て、誤動作が生じずに加工作業の精度向上およびオート
メーション化と能率向上に貢献するのである。 4、図面の簡単な説明 第1図は本発明の座標系設定装置を説明するための概略
構成図である。第2図の(A)〜(H)は第1図におけ
るタッチセンサT、の検知箇所、プログラム原点の位置
および取り代置の有無を変えた場合の実施例図である。 第3図は、本発明を実施した座標系設定装置の一例を示
す構成ブロック図である。 第4図は本発明の詳細な説明するためのフローチャート
図である。 H・・・主軸台      S・・・主 軸C・・・チ
ャック     D・・・爪0、・・・機械原点   
 02・・・プログラム原点T、・・・刃物台    
 T6・・・タレフトTs・・・夕7チセンサ P、・
・・プリセットセンサL、・・・リミットスイッチ  
L・・・アームZy・・・夕7チセンサの長さ Z−・・・ワーク素材の長さ  δ・・・取り代置ZH
・・・刃物台の移動量 Zo・・・プリセットセンサの移動量 Z0・・・真の座標系設定値 Zo ′・・・仮の座標系設定値 ZF・・・タッチセンサの長さ  lOO・・・CPU
12・・・演算手段     15,22.28・・・
演算部第1図 (A) (C) 2図 (B) (D) (E) (G) 第2図 CF) (H)
FIG. 1 is a schematic configuration diagram for explaining the coordinate system setting device of the present invention. FIGS. 2A to 2H are views of an embodiment in which the detection location of the touch sensor T, the position of the program origin, and the presence or absence of replacement in FIG. 1 are changed. FIG. 3 is a configuration block diagram showing an example of a coordinate system setting device embodying the present invention. FIG. 4 is a flowchart for explaining the present invention in detail. H... Headstock S... Spindle C... Chuck D... Jaw 0i... Machine origin
O7...Program origin T,...Turret
T,...Turret T,...Touch sensor PS・
・・Preset sensor ・・Limit switch
...Arm ZP...Length of touch sensor Z...Length of workpiece material δ...Mapping allowance ZH
...Amount of movement of the turret Zo...Amount of movement of the preset sensor Z0...True coordinate system setting value Zo'...Temporary coordinate system setting value 2. ...Touch sensor length 100...CPU
12... Calculating means 15, 22.28...
Arithmetic Division Figure 1 (A) (C) (D) (G) Figure 2 ,,) (H) Procedural Correction W (Voluntary) February 1985 (Patent Office Examiner) 1. Incident Display of Japanese Patent Application No. 232564-2, 1982,
Title of the invention Coordinate system setting device for machine tools 3, relationship with the case of the person making the amendment Applicant address 2-4-1, Marunouchi, Chiyoda-ku, Tokyo Name Hitachi Seiki Co., Ltd. Representative 4, Agent 6, Contents of amendment 111 The full text of the specification will be corrected as shown in the attached sheet. (2) Among the drawings, Figures 1, 2 (^) to (H), and 3 will be corrected as shown in the attached sheet. Full text correction statement 1, Title of the invention Coordinate system setting device for machine tool 2, Claims A chuck attached to the main shaft of a headstock and having claws for gripping a workpiece, and machining the workpiece gripped by the chuck A turret movable in two orthogonal planes, a measuring means attached to the turret, a position detecting means for detecting the amount of movement of the turret based on a signal from the measuring means, and a reference length of the measuring means. A means for setting the height, a means for determining whether the detection point of the measuring means is the surface of the jaw is the surface of the workpiece, and a means for determining whether the detection point of the measuring means is the surface of the jaw or the surface of the workpiece. Coordinate system setting device 3 for a machine tool, characterized in that it comprises an input means for setting whether it is a work reference, and a calculation means for calculating coordinate system setting values based on the input settings of each of the input means. Description +11 Field of Industrial Application The present invention relates to a coordinate system setting device for a machine tool, in particular, a coordinate system setting device for a machine tool, which is based on the position from the work mounting surface side when processing the work with a turning machine. (2) Conventional technology Conventionally, NC processing machines for machine tools have two coordinates: one for machine control and one for machining the workpiece. Changes in workpiece mounting position were corrected manually. (3) Problems to be Solved by the Invention However, the conventional manual correction described above requires measurement operations and manual calculations, and is accompanied by more complicated mechanical operations. This has resulted in problems such as malfunctions, prolongation of setup time, and occurrence of defective products. In addition, the program origin itself may vary with respect to the machine origin depending on which point on the workpiece the operator uses as a reference (program origin) to create the cannibal program, and the machining allowance and its distribution prior to machining. This remained an issue with automation. (4) Purpose The purpose of the present invention was proposed in view of the above circumstances to solve the problem. To provide a coordinate system setting device for a machine tool that allows automatic and easy operation by setting a system. (5) Means and operation for solving the problem The present invention is an improvement of a coordinate system setting device for a machine tool, in which the position of the workpiece mounting surface is measured by a measuring means attached to the tool rest, and the position is adjusted along the machine tool program. This system automatically sets the coordinate system based on the specified coordinate system and performs the specified turning process on the workpiece. That is, the present invention provides a chuck that is attached to the main shaft of a headstock and has claws for gripping a workpiece, a tool rest that is movable in two orthogonal planes in order to process the workpiece gripped by the chuck, and the tool. a measuring means attached to the base; a position detecting means for detecting the amount of movement of the tool post based on a signal from the measuring means; a means for setting a reference length of the measuring means; means for determining whether the work is on the surface; input means for setting the length of the work, the amount of machining allowance, and whether the program origin is the work reference on the jaw side or the work reference on the turret side; and input settings for each of the input means. and calculation means for calculating coordinate system setting values based on the coordinate system setting values. By employing the coordinate system setting device of the present invention, correction can be performed manually (correction can be performed automatically and easily. (6) Examples Hereinafter, one embodiment of the present invention will be described. will be explained in detail based on the drawings. Fig. 1 is a schematic configuration diagram for explaining the coordinate system setting device of the present invention. In Fig. 1, the tip of the spindle S supported on the headstock H is shown. A chuck C is attached to the chuck C. A workpiece W is gripped by the claw at the tip of the chuck C. The machine origin is 0.4 on the side facing the chuck C. A turret T is provided on the side where the turret is moved, and is movable in two planes, the X-axis and the Z-axis.A turret T is attached to the front of the turret Tr so that it can be indexed. A tool holder T1 is fixed to the turret Th, and a touch sensor T used in the device of the present invention, which will be described in detail later, is removably attached to the tool holder T1.The touch sensor T is always attached to the front. Spring S
, and a high-precision limit switch L is attached to the tool rest Tr. When the touch sensor T comes into contact with the end face of the workpiece W or the end face of the claw due to the movement of the tool rest Tr, the rear end of the touch sensor T touches the limit switch L, so that the moving position is detected. It has become. Furthermore, correction of each tool can also be determined using this touch sensor T. As a means for detecting the correction value of the tool cutting edge, that is, the installation deviation value, an automatic detection means called a toolburi-nanatsuta, as disclosed in Utility Application No. 171627-1980, filed by the same applicant, has recently been used. . This is equipped with two-way preset sensors P for each of the X and Z axes at the tip of an arm L that is swingably attached to the headstock H of a machine tool. As shown in FIG. 1, when the sensor P reaches the detection position, the relative position from the machine origin OM is always constant, and parameters can be input. This preset sensor P is 2 on the Z axis.
It has a configuration that allows detection in a total of four directions: the direction and the X-axis. In FIG. 1, only the parameter value Z0 in the +Z-axis direction is shown. A correction value for each tool can be obtained by bringing the touch sensor T or the cutting edge of each tool into contact with the preset sensor P and detecting the coordinate value from the machine origin 08 each time. That is, if the set length of the touch sensor T, which is the measuring means, is Zp, and the amount of movement of the tool rest T1 from the machine origin 08 to the preset sensor P for each tool is 21, then the correction value for each tool is Zo, . It can be determined by 1-(ZQ ZF)-Z-. Therefore, in the present invention, the coordinate system setting values are determined, and the correction values for each tool are also determined. In addition, in FIG. 1, Zw is the length of the work material W, and δ is the removal position of the work material W. Next, a specific example of the present invention will be described. Here, the machine origin is 0. When calculating the coordinate system setting values from to the program origin, do you want to detect the position by placing the touch sensor T on the end face of the claw or the workpiece end face?
Whether the program origin reference is the end face of the jaw or the end face of the workpiece is a matter of discretion each time, and the same applies to the addition of the machining allowance δ; the coordinate system settings are not unique to the machine. Since the settings do not change and vary, flexible settings are required for automatic settings. (A) to (H) in Figure 2
These are various general examples when determining the coordinate system set value in the Z-axis direction using the touch sensor Ts in FIG. 1 described above. In other words, there are differences in whether the detection point of the touch sensor T is the workpiece end face or the claw end face, the difference in whether the program origin OF is the claw end face or the workpiece end face, and whether or not there is a machining allowance δ (i.e. , the first step or the second step), eight examples are shown. Note that the preset sensor P is already at the standby position. (A) FIG. 2 (A) is an example in which the detection point of the touch sensor T is on the end face of the workpiece, the program origin O7 is on the end face of the claw, and there is no machining allowance δ. First, as a temporary coordinate system setting value 20', z 01-2
p + Z M is calculated, and then the true coordinate system setting value Z0 based on the program origin O7 is as follows: Zo = Zo' +2w (-ZP +ZH+2w
). 20': Temporary coordinate system setting value Z,: Setting length Z of touch sensor T, 4 = Movement amount of the tool post from the machine origin 0° Zo: True coordinate system setting value Zw: Length of workpiece material That is, since Zp and Zw have been calculated and input in advance, the movement IZ of the tool rest. The true coordinate system setting values can be found by finding only . (B) FIG. 2(B) is an example in which the detection point of the touch sensor T is on the end face of the workpiece, the program origin O1 is on the end face of the claw, and there is a machining allowance δ. The temporary coordinate system setting value Z0 ′ is Zo ′ −ZP +
Zllll, and the program origin is 0. The true coordinate system setting value z0 is as follows: ZO=Zo' +Zw+δ(=ZP +Z, +Zw
+δ). Therefore, the true coordinate system set value Z0 obtained by adding the replacement positions δ is as if the workpiece W were at the position indicated by the chain double-dashed line (imaginary line) in FIG. 2(B). As in (A) above, since Zp, Zw, and δ have been determined and inputted in advance, the true coordinate system setting value Z0 can be determined by determining only the movement IZ of the tool rest. (C) An example where the detection point of the touch sensor T is on the end face of the workpiece, the program origin is also on the end face of the workpiece, and there is no machining substitution δ is the same as shown in FIG. 2(C). The temporary coordinate system setting value 20' is zo l = z, +Zi, and the program origin is 0. The true coordinate system setting value Z by
0 is obtained by Zo ``Z6 ' (-ZP + 2M). (D) The detection point of the touch sensor TS is the workpiece end face, the program origin is at the workpiece end face as in (C) above, and there is no machining allowance. An example when there is δ is as shown in Figure 2 (D). The temporary coordinate system setting value 20' is Zo' -ZP +2
M, and the true coordinate system setting value z0 based on the program origin 0 can be found as Zo=Zo'+δ (=ZP"Zll+δ). (E) The detection point of the touch sensor T is the nail end surface,
An example where the program origin O2 is also on the claw end face and there is no machining allowance δ is as shown in FIG. 2(E). The temporary coordinate system setting value Zo' is zo' = ZP +
2M, and the true coordinate system setting value Z0 based on the program origin O1 is obtained by Zo "Zo ' (=ZP + Z?I). (F) The detection point of the touch sensor T is the nail end surface,
The program origin OF is also the claw end face, and an example where there is a machining displacement δ is as shown in (F) in Figure 2. The temporary coordinate system setting values z and l are ZO' = ZF + Z
ll, and the true coordinate system setting depending on the program origin (
j! zo is determined by z,=Z,'+δ ("ZP+ZM +δ). (G) The detection point of the touch sensor T is the nail end surface,
An example where the program origin O1 is on the end face of the workpiece and there is no machining allowance δ is as shown in FIG. 2(G). Temporary (7) Locus [System setting value Z. ′ is Z6 ′ −Zp
+ZN, and the program origin is 0. The true coordinate system setting value Z by. is, Zo = Zo' -Zt, + (-ZP +Z!
4-zw). (H) The detection point of the touch sensor T is the nail end surface,
Program origin 0. is on the end face of the workpiece and there is a machining allowance δ as shown in ()l) of FIG. Temporary coordinate system setting value Z. ' is Z O' = Z P 4Z
8, which is the true coordinate system setting value Z based on the program origin 02. is Zo−Zo' Zw+δ(−ZP ” ZM Zw
+δ). To summarize the true coordinate system setting value Z0 of (A) to ()l) mentioned above, Z, ・Zp+ZM+Zv1...Example (A
), then Zo □ Zr + ZM + Zw + 6
... In case of example (B), Z0・Z, +Z, ...
・・・・・・Example/C) In case of (E), Zo=L
+L÷δ・・・Example ([1), (F) Zo・Zr÷Zs−Zw δ・・・Example (I()
In the case of Z0・Zp+Z, -Zw...Example (G) is the case. These 20 values are plus the workpiece length Z8. Considering that the value of the minus machining allowance ■δ is O, the general solution is Zo = ZP + ZN + Zw + δ. FIG. 3 is a block diagram showing an example of a coordinate system setting device embodying the present invention. In FIG. 3, NC data is inputted by a CPU 100 from a tape reader 1 that reads NC data via its input circuit 1a, and is temporarily stored and stored in a computer program memory 6. Work length Zw, The set length Z of the touch sensor T and the value of the amount δ of the workpiece W to be machined are set in advance, and the respective values are input from the keyboard 2 with a screen, which is an input means, through the input/output circuit 2a. It is temporarily stored in the memory 7 of the workpiece length Zw, the memory 8 of the set length Z of the touch sensor, and the memory 9 of the pick-up amount δ of the workpiece W to be machined. By contacting the end face, the movement amount 2 of the tool rest T is measured, and the movement amount 2 is inputted via the input/output circuit 3. Position Z0 of the preset sensor P from the machine origin Oi is measured and filed in the preset sensor position setting data 34.Furthermore, the position data Z0 from the machine origin O8 corresponding to the movement of the tool post is sent from the position data sending means 5 to the memory 11 of the coordinate value data Zfi. Transfer. Workpiece length Z processed by CPU 100 and stored respectively, 4. Machining allowance data δ, touch sensor setting length Z2
and coordinate value data Z0 are taken into the calculation means 12 in the following order and are subjected to calculation processing. First, the touch sensor T emits a touch sensor signal when the end surface of the nail touches the end surface of the workpiece, and the coordinate value data Z7 stored in the memory 11 by this touch sensor signal passes through the AND gate 13. The sensor coordinate value Z1 is taken in and stored in the sensor coordinate value memory 14. (ZM = Z, ,) The touch sensor setting length Z stored in the memory 8 and the sensor coordinate value 2 stored in the memory 14 are calculated by the calculation unit 1.
5, a temporary coordinate system setting value 20' of Zo ``''ZP+ZH is calculated. The temporary coordinate system setting value z01 calculated by the calculation unit 15 is changed to the temporary coordinate system setting value 20 by closing the AND gate 16 when the workpiece edge touch signal is taken into the AND gate 16.
′ is passed. Further, when the claw end surface reference program signal is taken into the AND gate 18, a temporary coordinate system setting value 20' is passed through the AND gate 18 and taken into the calculation section 22. On the other hand, the temporary coordinate system setting value 20' passed through the AND gate 16 becomes the temporary coordinate system setting value 20' when the workpiece end face reference program signal is taken into the AND gate 19.
' passes through the AND gate 19 and passes through the OR gate 23. In addition, the temporary coordinate system setting value Z calculated by the calculation unit 15
. ′ passes through the AND gate 17 when the claw end face touch signal is taken in, and the temporary coordinate system set value 70 ′ passes through the AND gate 17 . The temporary coordinate system setting value 20' becomes the temporary coordinate system setting value Z when the claw end surface reference program signal is taken into the AND gate 20. ' is and gate 20
and pass through the or gate 23. Temporary coordinate system setting value 20 that passed through AND gate 17
When the workpiece end face reference program signal is taken into the AND gate 21, a temporary coordinate system setting value 70' passes through the AND gate 21 and is taken into the calculation section 24. In the calculation section 22, the temporary coordinate system setting value 20' taken in through the AND gate 18 and the workpiece length Z are calculated. The workpiece length Zl stored in the memory 7 is taken in, the calculation process of Zl - Zo' +2w is performed, and the calculated value Z1 passes through the OR gate 25. The temporary coordinate system setting value 20' that has passed through the AND gate 19 or the AND gate 20 passes through each as is, and in this case Zw''''O, so Zl is ``20''.), Z, the values of It passes through the OR gate 25. In the calculation section 24, the temporary coordinate system setting value Z.' taken in after passing through the AND gate 21 and the workpiece length Z8 stored in the workpiece length 28 memory 7 are calculated. is taken in,
The calculation process ZI=Zo'Zw is performed, and the calculated value ZI passes through the OR gate 25. The value of Z, which has passed through the OR gate 25, becomes
The value of is passed through the AND gate 26 and taken into the calculation unit 28, and the machining allowance data δ and the machining allowance data δ stored in the memory 9 are also taken into the calculation unit 28. In the calculation section 28, Z. The calculation process of =Z1 +δ is performed. The value of Zl that has passed through the OR gate 25 passes through the AND gate 27 when the signal indicating no data to be retrieved is taken in by the AND gate 27, and is taken into the arithmetic unit 29 as it is. In the calculation unit 29, since there is no machining allowance data δ, Z
o”Z+.The value of Zo processed in the calculation unit 28 or 29 is assigned to the OR gate 3.
0, and the true coordinate system data Z0 is stored in the memory 31 as the true coordinate system setting data Z0. Furthermore, the true coordinate system setting data Z0 is added to the program from the memory 31.
Stored in memory 6. Next, correction of each tool used to process the workpiece W will be explained. Mechanical origin O14 for +Z in preset sun 7P
The coordinate values (setting data) ZO from are stored in the preset position setting data 34. As will be described later, this example only explains how to use setting data Z0 for +Z to obtain correction values for each tool, but in reality, setting data for -Z, +X, and -X are also filed and used. However, since these explanations are the same as for +Z, they will be omitted. The tool is brissed due to the movement of the turret./) Sensor P3
When the +Z sensor is touched, the preset sensor P is +
The Briseft sensor signal for 2 is taken into the AND gate 32. With this signal, the coordinate value data Z7 in the coordinate value data memory 11 of the tool post at that time is input to the AND gate 3.
2 and is taken into the calculation section 33. The calculation unit 33 takes in the touch sensor setting length Z, the touch sensor setting length ZF stored in the memory 8, and obtains the preset sensor setting data Z from the preset position setting data file 34, and the touch sensor setting length ZF stored in the memory 10. Import the preset sensor setting data Z0. In the calculation unit 33, Zorn-(Za ZP)-Z
The arithmetic processing of o is performed, and the correction data/
Z in memory 35. A file is filed for each tool in Section 1. Similarly, although the explanation is omitted, the X axis is also corrected. Filed in Section F. The R term in the correction data memory 35 indicates the sharpness by the blade edge radius, and the T term is the identification number of the blade edge position of the touch sensor. Correction data Z OF from tool correction data memory 35
Coordinate system setting and tool correction are performed by sending n to the cutting program memory 6, and turning is performed according to the cutting program. The operation of the present invention will be explained based on the flowchart of FIG. In FIG. 4, the touch sensor T is first brought into contact with the preset sensor P as the 0th stage, and the setting data Zo of the preset sensor P is inputted and filed in the preset sensor position setting data file 34. The set length of the touch sensor P, which is preset as the 0th stage, is 2. from the keyboard with screen 2, input/output circuit 2
It is stored in the memory 8 via a. The coordinate system setting mode is selected as the 0th stage, and subsequent coordinate system settings are performed. At the 0th stage, the tool rest Tr is moved and the touch sensor T is applied to the end face of the claw or the end face of the workpiece. When the touch sensor T hits the end face of the claw or the end face of the workpiece, the movement of the tool rest T automatically stops at the 0th stage. Next, as the 0th stage, the touch sensor signal is taken into the AND gate 13, so the coordinate value data Zn passes through the AND gate 13, enters the calculation unit 14, and becomes the sensor coordinate value Zs.
``'Zfi processing is performed, the sensor coordinate value 2.4 enters the calculation unit 15, and the touch sensor setting length Z from the memory 8 enters the calculation unit 15, and the temporary coordinate system setting value The arithmetic processing of Zo' -Zr +Zs is performed. In the 0th stage, it is determined by the signal whether the detection point of the touch sensor is the end face of the claw or the end face of the workpiece. If it is the end face of the claw, the program origin is set in step 2. Is it based on the workpiece end face?
It is determined whether the claw end face is the reference, and if the workpiece end face is the reference, the arithmetic processing of z,=z,'-z,4 is performed in the arithmetic unit 24 as the 0th stage. That is, the temporary coordinate system setting value Z is determined by the calculation unit 15. ′ is and by the claw end surface touch signal.
The temporary coordinate system setting value z, 1 is taken into the gate 17 and passes through the AND gate 17, and further, the temporary coordinate system setting value 20' passes through the AND gate 21 according to the workpiece end face reference program signal. The above-mentioned Z+=Zo'Z is obtained by importing the workpiece length Zw into the calculation unit 24 and from the memory 7 into the calculation unit 24. calculation processing is performed. When it is determined that the claw end surface is the reference at the 0th stage, the process moves to the 0th stage, passes through the or gate 23, and 7. , -7. o,
' is imported as '. That is, AND gate 17
The temporary coordinate system setting value 20' that has passed through the AND gate 20 is passed through the claw end surface reference program signal, and Zl
It passes through the OR gate 23 as "ZO". If the detection point of the touch sensor at the 0th stage is the workpiece end face, then at the 0th stage it is further determined whether the program origin is based on the workpiece end face or the claw end face. If it is determined that the workpiece end face is the reference, ZI=Zo' is processed in the same way as in the [phase] stage.In other words, the temporary coordinate value 20' calculated by the calculation unit 15 is the workpiece end face touch signal. Then, by inputting the workpiece end face reference program signal into the AND gate 19, the temporary coordinate system setting value Z.' is passed through the AND gate 19.
and passes through the or gate 23 as Zl-Zo'. If the program origin is determined as the claw end surface reference in the 0th stage, 7. , -7.0' +7. , is performed. That is, the temporary coordinate system set value z01 that has passed through the AND gate 16 is passed through the AND gate 18 in response to the claw end surface reference program signal. and input it into the arithmetic unit 22. The calculation unit 22 has a memo IJ.
Work length Z from 7. Take in Z, -Zo'+Z
The arithmetic processing of w is performed in the arithmetic unit 22. Arithmetic unit 22. The value of Zl that has passed through the OR gate 23 and the calculation section 24 passes through the OR gate 25. Next, it is determined whether or not the workpiece W to be machined in the 0th stage has a scraped amount. If there is an amount δ of removal, the arithmetic processing of Zo−Zl+δ is performed in the [phase] stage. That is, the value of Zl that has passed through the OR gate 25 passes through the AND gate 26 and is taken into the arithmetic unit 28 by the signal indicating the presence of decoupled data, and furthermore, the memory 9 prevents the amount of decoupling δ from being taken into the arithmetic unit 28. te, Zo”Zl +δ
is processed, passes through the OR gate 30, and is stored in the coordinate system setting data memory 31. If there is no amount of carbonization in the 0th stage, Zo
”Z, assignment processing is performed. OR gate 25
The value of Z that has passed through is passed through the AND gate 27 by the signal indicating no converted data, the arithmetic unit 29 performs the assignment process of Zo=Zl, and the value of Z is passed through the OR gate 30 and stored in the memory 31 as the true value. Coordinate system setting value Z0 is coordinate system setting data 31
is stored once. When the coordinate system setting is completed up to the 0th stage, the tool rest T, , is returned to the origin in the [phase] stage. At the 0th stage, remove the touch sensor T from the tool rest, and if there is a tool at this position, install it. Next, the tool correction mode is selected in the 1st [phase] stage, and the tool correction operation is started in the 1st [phase] stage. That is, the preset sensor P is transferred and set from the headstock H, and the correction value for each tool is determined. Z in the [phase] stage. F--(ZQZP
)-Z, is calculated. That is, coordinate value data Z in memo I711. The +Z preset sensor signal passes through the AND gate 32 and is taken into the arithmetic unit 33. Furthermore, the touch sensor setting length ZP is input to the calculation unit 33 from the memory 8 . By loading each preset sensor setting length Zo from the memory 10, ZOFn-(Za-ZP)
- Perform arithmetic processing of zn and perform tool correction flzor. is determined and stored in the correction data memory 35. At the 0th stage, the normal mode is selected, and at the 0th stage, the cannibal program is taken out from the cannibal program memory 6 and predetermined processing is performed with the machine tool. In the embodiment of the present invention, a touch sensor was attached to the tool post to obtain the coordinate system setting values, but the sensor was placed on the fixed side of the headstock, and the touch sensor was installed on the workpiece or chuck jaw, and the touch sensor was attached to the tool post to determine the coordinate system settings. There is no problem even if a closed circuit is formed at the moment when the reference piece comes into conductive contact with the reference piece, and the coordinate system set value is determined by detecting the electric current flowing through the closed circuit by induction or the like. (7) Effects As explained above, according to the present invention, by measuring the position on the workpiece W mounting surface side using the measuring means on the turret side,
This is a coordinate system setting device for a machine tool that can easily and automatically set workpiece machining from a program origin by calculating true coordinate system setting values with a calculation means, and can be accurately and easily controlled. Therefore, it contributes to improved precision, automation, and efficiency in machining operations without causing malfunctions. 4. Brief Description of the Drawings FIG. 1 is a schematic configuration diagram for explaining the coordinate system setting device of the present invention. FIGS. 2A to 2H are diagrams showing examples in which the detection location of the touch sensor T in FIG. 1, the position of the program origin, and the presence or absence of replacement are changed. FIG. 3 is a configuration block diagram showing an example of a coordinate system setting device embodying the present invention. FIG. 4 is a flowchart for explaining the present invention in detail. H... Headstock S... Spindle C... Chuck D... Jaw 0,... Machine origin
02...Program origin T,...Turret
T6... Taleft Ts... Evening 7th Sensor P,・
...Preset sensor L, ...limit switch
L...Arm Zy...Y7 Sensor length Z-...Work material length δ...Machining allowance ZH
...Amount of movement of the turret Zo...Amount of movement of the preset sensor Z0...True coordinate system setting value Zo'...Temporary coordinate system setting value ZF...Length of the touch sensor lOO...・CPU
12... Calculating means 15, 22.28...
Arithmetic unit Fig. 1 (A) (C) Fig. 2 (B) (D) (E) (G) Fig. 2 CF) (H)

Claims (1)

【特許請求の範囲】[Claims] 主軸台の主軸に取付けられ、ワーク把持用の爪を有した
チャックと、該チャックに把持されたワークを加工する
ため直交する2平面内を移動可能な刃物台と、該刃物台
に取付けた計測手段と、該計測手段の信号で刃物台の移
動量を検知する位置検知手段と、前記計測手段の基準長
さを設定する手段と、計測手段の検知箇所が爪の面かワ
ークの面かを判別する手段と、ワークの長さと、取り代
の量およびプログラム原点が爪側のワーク基準か刃物台
側のワーク基準かを設定する入力手段と、前記各入力手
段の入力設定に基づき、座標系設定値を演算する演算手
段とからなることを特徴とする工作機械の座標系設定装
A chuck attached to the main shaft of the headstock and having claws for grasping the workpiece, a tool rest movable in two orthogonal planes to process the workpiece held by the chuck, and a measuring instrument attached to the tool rest. a position detection means for detecting the amount of movement of the tool post based on a signal from the measurement means; a means for setting a reference length of the measurement means; a means for determining, an input means for setting the length of the workpiece, the amount of machining allowance, and whether the program origin is the work reference on the jaw side or the work reference on the turret side; and a coordinate system based on the input settings of each of the input means. A coordinate system setting device for a machine tool, comprising a calculation means for calculating set values.
JP23256484A 1984-11-05 1984-11-05 Coordinate system setting device of machine tool Granted JPS61110206A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23256484A JPS61110206A (en) 1984-11-05 1984-11-05 Coordinate system setting device of machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23256484A JPS61110206A (en) 1984-11-05 1984-11-05 Coordinate system setting device of machine tool

Publications (2)

Publication Number Publication Date
JPS61110206A true JPS61110206A (en) 1986-05-28
JPH0554125B2 JPH0554125B2 (en) 1993-08-11

Family

ID=16941310

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23256484A Granted JPS61110206A (en) 1984-11-05 1984-11-05 Coordinate system setting device of machine tool

Country Status (1)

Country Link
JP (1) JPS61110206A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63122806U (en) * 1987-01-30 1988-08-10

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS491511A (en) * 1972-05-02 1974-01-08
JPS4911670A (en) * 1972-05-29 1974-02-01
JPS5047280A (en) * 1973-05-31 1975-04-26
JPS534274A (en) * 1976-07-02 1978-01-14 Osaka Transformer Co Ltd Device for correcting tool position of numeral value controlling machine tool
JPS54114205A (en) * 1978-02-25 1979-09-06 Kyoto Ceramic Pickup cartridge cantilever
JPS5775311A (en) * 1980-10-29 1982-05-11 Yaskawa Electric Mfg Co Ltd Numerical control machine tool performing shift of tool by work coordinate system
JPS58114204A (en) * 1981-12-28 1983-07-07 Mitsubishi Electric Corp Automatic tool length setting system in numerical control working machine

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS491511A (en) * 1972-05-02 1974-01-08
JPS4911670A (en) * 1972-05-29 1974-02-01
JPS5047280A (en) * 1973-05-31 1975-04-26
JPS534274A (en) * 1976-07-02 1978-01-14 Osaka Transformer Co Ltd Device for correcting tool position of numeral value controlling machine tool
JPS54114205A (en) * 1978-02-25 1979-09-06 Kyoto Ceramic Pickup cartridge cantilever
JPS5775311A (en) * 1980-10-29 1982-05-11 Yaskawa Electric Mfg Co Ltd Numerical control machine tool performing shift of tool by work coordinate system
JPS58114204A (en) * 1981-12-28 1983-07-07 Mitsubishi Electric Corp Automatic tool length setting system in numerical control working machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63122806U (en) * 1987-01-30 1988-08-10

Also Published As

Publication number Publication date
JPH0554125B2 (en) 1993-08-11

Similar Documents

Publication Publication Date Title
CN106426189B (en) The automatic correction method of the artificial part clamping of sanding and polishing machine
JP2018101401A5 (en)
CN109623485A (en) A kind of cutting tool for CNC machine length compensation system and method
JPH0525626B2 (en)
CN112705998B (en) Automatic compensation method and device for numerical control machine tool cutter, production line controller and storage medium
JP2007257606A (en) Method for correcting tool alignment error
CN106141810B (en) The ensuring method of cylindrical workpiece embedded SMA actuators wall thickness under robot manipulation
JPS61244444A (en) Work coordinates system setting apparatus for machine tool
JPS61110206A (en) Coordinate system setting device of machine tool
CN217096927U (en) Numerical control machine tool knife repairing detection system
JPH0635092B2 (en) Numerical control device with tool file
JP2020019126A (en) Automatic deburring and/or edge finishing device, and automation method of deburring and/or edge finishing
CN111336962B (en) Method and system for online measuring workpiece by spark machine
JPS58120109A (en) Coordinate measuring system for numerically controlled machine tool
JPH08118103A (en) Centering device for tool
JPS60180749A (en) Correction controlling method for machining reference point in numerically controlled lathe
JP3283278B2 (en) Automatic lathe
JP3015636B2 (en) On-machine shape measurement method and device
CN112705997A (en) Automatic compensation system and method for numerical control machine tool cutter
JPH081405A (en) Device and method for detecting lost motion
JPH08174378A (en) Robot control device
JP3057218B2 (en) Tool edge detection device
JP2507298B2 (en) Method for melting angle steel using industrial robot
JP2581535B2 (en) Machine tool coordinate system setting device
JPS6125208A (en) Automatic coordinate system setting device for machine tool

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees