JPH054149A - C-axis control lathe - Google Patents
C-axis control latheInfo
- Publication number
- JPH054149A JPH054149A JP23398091A JP23398091A JPH054149A JP H054149 A JPH054149 A JP H054149A JP 23398091 A JP23398091 A JP 23398091A JP 23398091 A JP23398091 A JP 23398091A JP H054149 A JPH054149 A JP H054149A
- Authority
- JP
- Japan
- Prior art keywords
- axis
- angle
- sensor
- measurement
- reference point
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000005259 measurement Methods 0.000 claims description 79
- 238000003754 machining Methods 0.000 claims description 60
- 238000003801 milling Methods 0.000 abstract description 14
- 238000001514 detection method Methods 0.000 description 29
- 238000000034 method Methods 0.000 description 24
- 238000010586 diagram Methods 0.000 description 14
- 230000002093 peripheral effect Effects 0.000 description 5
- 238000000926 separation method Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Landscapes
- Numerical Control (AREA)
Abstract
Description
【0001】本発明は、加工基準点に対するC軸値が角
度により指定されたC軸値指定形状を有するワークを、
C軸原点を基準としたC軸制御により加工する旋盤に関
する。The present invention relates to a work having a C-axis value designated shape in which the C-axis value with respect to a machining reference point is designated by an angle,
The present invention relates to a lathe that is machined by C-axis control based on the C-axis origin.
【0002】従来、C軸制御旋盤では、加工基準点から
のC軸方向の角度が指定された突起や窪みが、ワークの
内外周部や端面にあって、ワークが軸対称ではない特殊
形状であるとき、C軸制御の基準となるC軸原点に対し
て、加工プログラムにおいて指示された加工基準点を正
確に設定する必要があった。そのため、この種の旋盤で
は、特殊な治具を用いて特殊形状のワークのセッティン
グを行ってC軸制御を伴うミーリングなどの加工を行な
っていた。Conventionally, in a C-axis control lathe, there are projections and depressions whose angles in the C-axis direction from a machining reference point are specified on the inner and outer peripheral portions and end faces of the work, and the work has a special shape that is not axially symmetric. At some point, it was necessary to accurately set the machining reference point designated in the machining program with respect to the C-axis origin, which is the reference for C-axis control. Therefore, in this type of lathe, a special jig is used to set a work of a special shape to perform machining such as milling with C-axis control.
【0003】しかし上記旋盤では、ワークの形状が異な
る毎に、当該ワーク専用の特殊治具を用意しなけらばな
らず、手間がかかり加工効率がきわめて悪いという問題
があり、小量多品種生産の趨勢にある今日、コストの点
や時間の点で大きな不都合を生じている。もちろん、特
殊治具を用いないでワークのセッティングを行うことも
考えられるが、この場合にはセッティングに多大な時間
を要すると共に、正確なセッティングが困難である。However, in the above-mentioned lathe, there is a problem that a special jig dedicated to the work must be prepared every time the shape of the work is different, which is troublesome and the machining efficiency is extremely low. Today, the current trend is that there are major inconveniences in terms of cost and time. Of course, it is possible to set the work without using a special jig, but in this case, it takes a lot of time for setting and it is difficult to set accurately.
【0004】そこで本発明の目的は、加工基準点に対す
るC軸値が角度により指定されたC軸値指定形状を有す
るワークについて、加工基準点のC軸原点からの角度が
容易に検出でき、C軸値指定形状に対して正確な位置関
係を保ちながらC軸加工を伴うミーリングなどの加工を
上記上記特殊形状のワークに行うことができる旋盤を提
供することにある。Therefore, an object of the present invention is to easily detect the angle from the origin of the C-axis of the machining reference point for a work having a C-axis value designated shape in which the C-axis value with respect to the machining reference point is designated by the angle. It is an object of the present invention to provide a lathe capable of performing machining such as milling accompanied by C-axis machining on a work having the above-mentioned special shape while maintaining an accurate positional relationship with respect to the designated axis value.
【0005】本発明の要旨とするところは、加工基準点
に対するC軸値が角度により指定されたC軸値指定形状
を有するワークを、C軸原点を基準としたC軸制御によ
り加工する旋盤において、所定のサーチプログラムに基
づいて前記ワークをC軸制御により回転させることによ
り、前記C軸値指定形状のC軸方向の両側の計測点にお
ける前記C軸原点からの角度を測定する測定手段と、前
記測定された角度及び前記C軸値指定形状の加工基準点
に対する指定角度から、前記加工基準点のC軸原点から
の角度を求める算出手段と、を備えたことを特徴とする
C軸制御旋盤にある。The gist of the present invention resides in a lathe for machining a workpiece having a C-axis value designated shape in which the C-axis value with respect to a machining reference point is designated by an angle, by C-axis control with the C-axis origin as a reference. Measuring means for measuring angles from the C-axis origin at measurement points on both sides in the C-axis direction of the C-axis value designated shape by rotating the work by C-axis control based on a predetermined search program. A C-axis control lathe, comprising: a calculating unit that obtains an angle from the C-axis origin of the machining reference point based on the measured angle and a designated angle of the C-axis value designated shape with respect to the machining reference point. It is in.
【0006】以上のように構成された本発明のC軸制御
旋盤によれば、ワークには、加工基準点に対するC軸値
が角度により指定されたC軸値指定形状があり、このよ
うな特殊形状のワークを、C軸制御旋盤が加工する。こ
の加工の際には、測定手段が、所定のサーチプログラム
に基づいてワークをC軸制御により回転させることによ
り、上記C軸値指定形状のC軸方向の両側での計測点に
ついて、C軸原点からの角度を測定する。続いて、算出
手段が、測定された角度及びC軸値指定形状の加工基準
点に対する指定角度から、加工基準点のC軸原点からの
角度を求める。すると、旋盤では、C軸値指定形状に対
して正確な位置関係を保ちながらC軸加工を伴うミーリ
ングなどの加工をワークに対して行う。According to the C-axis control lathe of the present invention configured as described above, the workpiece has the C-axis value designated shape in which the C-axis value with respect to the machining reference point is designated by the angle, and such a special shape is used. A C-axis control lathe processes a work piece having a shape. At the time of this machining, the measuring means rotates the work by C-axis control based on a predetermined search program, so that the C-axis origin is obtained with respect to the measurement points on both sides of the C-axis value designated shape in the C-axis direction. Measure the angle from. Then, the calculating means obtains the angle of the machining reference point from the C-axis origin from the measured angle and the designated angle of the C-axis value designated shape with respect to the machining reference point. Then, in the lathe, machining such as milling accompanied by C-axis machining is performed on the work while maintaining an accurate positional relationship with the C-axis value designated shape.
【0007】以下に本発明の実施例を図面と共に説明す
る。まず、図1は本発明を適用した旋盤の構成を表すブ
ロック図、図2はワークにおけるC軸原点と加工基準点
及びC軸値指定形状との関係を表す正面図、図3は外径
サーチプログラムの一例を示すフローチャート、図4及
び図5はC軸値指定形状のワーク外周におけるサーチ態
様を表す工程図、図6は外径計測においてC軸の移動角
度を計算するための拡大図、図7は外周計測プログラム
における計測ステップを表す説明図、図8は外周計測プ
ログラムにおける計測態様を表す拡大図、図9は内径・
端面サーチプログラムの一例を示すフローチャート、図
10及び図11はC軸値指定形状のワーク端面における
サーチ態様を表す工程図、図12は内径・端面計測にお
いてC軸の移動角度を計算するための拡大図、図13は
内径・端面計測プログラムにおける計測ステップを表す
説明図、図14は内径・端面計測プログラムによる計測
態様を表す拡大図である。Embodiments of the present invention will be described below with reference to the drawings. First, FIG. 1 is a block diagram showing a configuration of a lathe to which the present invention is applied, FIG. 2 is a front view showing a relationship between a C-axis origin, a machining reference point, and a C-axis value designated shape in a work, and FIG. 3 is an outer diameter search. A flow chart showing an example of a program, FIGS. 4 and 5 are process diagrams showing a search aspect in the outer circumference of a work having a C-axis value designated shape, and FIG. 6 is an enlarged view for calculating the movement angle of the C-axis in outer diameter measurement. 7 is an explanatory view showing the measurement steps in the outer circumference measurement program, FIG. 8 is an enlarged view showing the measurement mode in the outer circumference measurement program, and FIG.
10 and 11 are flow charts showing an example of the end face search program, FIG. 10 and FIG. 11 are process diagrams showing the search mode on the end face of the workpiece having the C-axis value designated shape, and FIG. FIG. 13 is an explanatory diagram showing the measurement steps in the inner diameter / end surface measurement program, and FIG. 14 is an enlarged view showing the measurement mode by the inner diameter / end surface measurement program.
【0008】図1に示すように、C軸制御機能を有する
旋盤1は、主制御部2を有しており、主制御部2にはバ
ス線3を介して、キーボード5、C軸駆動制御部6、加
工基準点メモリ7、C軸角度演算部9、センサ駆動制御
部10、計測プログラムメモリ11、センサ制御部1
2、工具メモリ13、基準点演算部15及び加工プログ
ラムメモリ21などが接続されている。C軸駆動制御部
6には、C軸駆動モータ16が接続され、C軸駆動モー
タ16にはトランスデューサ17が設けられている。こ
のトランスデューサ17は、C軸駆動モータ16の回転
角度量を検出するためのもので、検出信号S2を、C軸
角度演算部9へ出力する。センサ駆動制御部10には、
接触形のセンサ19がセンサ駆動制御部10により移動
駆動自在に接続されている。また、センサ19はセンサ
制御部12にも接続されている。なお、旋盤1の主軸は
C軸駆動モータ16により駆動されるが、図2に示すよ
うに、ワーク20が図示しないチャック装置により着脱
自在に把持されており、ワーク20の外周には外方に突
出した座部20aが形成されている。As shown in FIG. 1, a lathe 1 having a C-axis control function has a main controller 2, and the main controller 2 has a keyboard 5 and a C-axis drive control via a bus line 3. Unit 6, machining reference point memory 7, C-axis angle calculation unit 9, sensor drive control unit 10, measurement program memory 11, sensor control unit 1
2, the tool memory 13, the reference point calculation unit 15, the machining program memory 21, and the like are connected. The C-axis drive motor 16 is connected to the C-axis drive control unit 6, and the C-axis drive motor 16 is provided with a transducer 17. The transducer 17 is for detecting the rotation angle amount of the C-axis drive motor 16, and outputs the detection signal S2 to the C-axis angle calculation unit 9. The sensor drive control unit 10 includes
A contact-type sensor 19 is movably connected by the sensor drive control unit 10. The sensor 19 is also connected to the sensor control unit 12. Although the main shaft of the lathe 1 is driven by the C-axis drive motor 16, the work 20 is detachably held by a chuck device (not shown) as shown in FIG. A protruding seat portion 20a is formed.
【0009】上記構成を有する旋盤1では、主制御部2
が、加工プログラムメモリ21から、加工すべきワーク
20に対応した加工プログラムPROを読み出し実行す
ることで、加工作業のための制御を行う。その加工プロ
グラムPROにおいて、C軸制御を伴うミーリングなど
の加工作業が、ワーク20の加工基準点MPを基準に指
定されている場合には、ワーク20が軸対称部品である
ならばワーク20のどの角度位置から加工を開始しても
よい。しかし図2に示すように、ワーク20の外周に座
部20aなどの突起があって軸対称部品でない場合で、
且つ当該突起などが加工基準点MPに対してC軸値とし
ての角度γが指定されている場合には、加工作業を適切
に行うことはできない(以下、この種のC軸値が指定さ
れた形状を「C軸値指定形状という」)。詳しく述べる
ならば、当該加工基準点MPが、C軸を制御するうえで
の原点となるC軸原点CZPに対して、どの角度θにあ
るかを検出しないかぎり、C軸値指定形状(例えば、座
部20a)に対するC軸制御を伴う加工を適正な状態で
行うことができなくなるのである(即ち、C軸値指定形
状と、ミーリングにより形成される形状とについては、
それらの位置関係が加工基準点MPを介して拘束されて
いるからである)。In the lathe 1 having the above structure, the main controller 2
However, the control for the machining work is performed by reading the machining program PRO corresponding to the workpiece 20 to be machined from the machining program memory 21 and executing it. In the machining program PRO, when a machining operation such as milling accompanied by C-axis control is designated with reference to the machining reference point MP of the work 20, if the work 20 is an axially symmetric part, which of the work 20 is to be processed? The processing may be started from the angular position. However, as shown in FIG. 2, in the case where there is a protrusion such as the seat portion 20a on the outer periphery of the work 20 and the workpiece 20 is not an axially symmetric component,
In addition, when the projection or the like has the angle γ as the C-axis value specified with respect to the processing reference point MP, the processing work cannot be properly performed (hereinafter, this type of C-axis value is specified. The shape is called "C-axis value specified shape"). More specifically, unless it is detected which angle θ the machining reference point MP is with respect to the C-axis origin CZP which is the origin for controlling the C-axis, the C-axis value designation shape (for example, It becomes impossible to perform the machining accompanied by the C-axis control on the seat portion 20a) in an appropriate state (that is, regarding the C-axis value designated shape and the shape formed by milling,
This is because their positional relationship is constrained via the processing reference point MP).
【0010】そこで本実施例では、例えば、加工プログ
ラムPROの中で、座部20aと加工基準点MPとのC
軸値として角度γが指定されている場合には、主制御部
2は直ちに加工基準点MPのサーチを実行する。なお、
加工プログラムPROにおいて、C軸値指定形状と加工
基準点MPとの間のC軸値を指示する場合には、加工プ
ログラムPROは、角度γの他に、C軸値指定形状の角
度位置を測定するための種々の測定情報INFを指示す
る。この測定情報INFは、次のようなデータから構成
される。 ・測定すべきC軸値指定形状がワーク20の外周部又は
端面 ・内径部の何れに存在するのかを示す位置情報。 ・センサ19の計測開始点の座標。 ・ワーク20の回転中心CL(Z軸)に対して直角方向
(X軸方向)における計測点M1及びM2の距離(回転
中心CLから計測点M1,M2までの距離)Rx (又
は、ワーク端面から計測点M3及びM4までのZ軸方向
の距離Rz )。 ・C軸値指定形状の幅W。 ・計測に使用するセンサ19の種類指定情報など。 まず主制御部2は、加工プログラムPROから、上記列
挙した測定情報INFを読み出し、また計測プログラム
メモリ11から、測定情報INFに指定されたC軸値指
定形状の存在位置に対応した計測プログラムを読み出
す。例えば、指定されたC軸値指定形状の存在位置が、
ワーク20の外周部であるときには、最初に、主制御部
2は計測プログラムメモリ11から外径サーチプログラ
ムOPRを読み出す。Therefore, in this embodiment, for example, in the machining program PRO, C of the seat portion 20a and the machining reference point MP is set.
When the angle γ is designated as the axis value, the main control unit 2 immediately executes the search for the machining reference point MP. In addition,
In the machining program PRO, when the C-axis value between the C-axis value designated shape and the machining reference point MP is designated, the machining program PRO measures not only the angle γ but also the angular position of the C-axis value designated shape. Various measurement information INF for performing is specified. The measurement information INF is composed of the following data. -Position information indicating whether the C-axis value designated shape to be measured exists on the outer peripheral portion or end surface of the work 20-inner diameter portion. The coordinates of the measurement start point of the sensor 19. The distance between the measurement points M1 and M2 in the direction (X-axis direction) perpendicular to the rotation center CL (Z axis) of the workpiece 20 (distance from the rotation center CL to the measurement points M1 and M2) R x (or workpiece end surface) From the measurement points M3 and M4 in the Z-axis direction R z ).・ Width W of the C-axis value specified shape. -Type designation information of the sensor 19 used for measurement. First, the main control unit 2 reads the above-mentioned measurement information INF from the machining program PRO, and also reads from the measurement program memory 11 the measurement program corresponding to the existing position of the C-axis value specified shape specified in the measurement information INF. .. For example, the existence position of the designated C-axis value designated shape is
When it is the outer peripheral portion of the work 20, the main control unit 2 first reads the outer diameter search program OPR from the measurement program memory 11.
【0011】続いて、その外径サーチプログラムOPR
に基づいて、C軸値指定形状のC軸原点CZPに対する
角度位置を求めることで、加工基準点MPのC軸原点C
ZPに対する角度θを求める。詳しくは、図2に示すよ
うに、C軸原点CZPに対する座部20aのC軸方向両
側の角度位置α及びβを、センサ19により計測し、そ
の計測角度α,βに基づいて、加工基準点MPのC軸原
点CZPに対する角度θを、次式から求める。 θ={(α+β)/2}−β ・・・(1) このようにして角度θを求めると、主制御部2は、外径
サーチプログラムOPRに基づいて外径計測のための処
理を実行する。以下、図3のフローチャートに沿って順
次説明する。最初のステップS1で、センサ駆動制御部
10に指令して、センサ19を移動させる。即ち、セン
サ19を、まず加工プログラムPROの中の測定情報I
NFによって指定された計測開始位置に移動させて位置
決めし、次いでX軸−方向(図4において下方)に移動
させて上記距離Rx 相当する座標位置(測定情報INF
により指定された)へ送る(図4及び図5において、参
照番号1で表示される工程に当たる)。Subsequently, the outer diameter search program OPR
By calculating the angular position of the C-axis value designated shape with respect to the C-axis origin CZP based on
The angle θ with respect to ZP is obtained. Specifically, as shown in FIG. 2, the angular positions α and β on both sides of the seat portion 20a in the C-axis direction with respect to the C-axis origin CZP are measured by the sensor 19, and based on the measured angles α and β, the machining reference points are set. An angle θ of MP with respect to the C-axis origin CZP is obtained from the following equation. θ = {(α + β) / 2} −β (1) When the angle θ is obtained in this way, the main control unit 2 executes the process for measuring the outer diameter based on the outer diameter search program OPR. To do. Hereinafter, the description will be sequentially made according to the flowchart of FIG. In the first step S1, the sensor drive control unit 10 is instructed to move the sensor 19. That is, the sensor 19 is first set as the measurement information I in the machining program PRO.
The measurement is started by moving to the measurement start position designated by the NF, and then moved in the X-axis direction (downward in FIG. 4) to the coordinate position corresponding to the distance R x (measurement information INF).
(Designated by) (corresponding to the step indicated by reference numeral 1 in FIGS. 4 and 5).
【0012】このX軸サーチ送りの際、図5に示すよう
に、センサ19の真下にC軸指定形状が位置していたと
きには、センサ19が距離Rx に到達する前に、座部2
0aがセンサ19に当接する。したがって、センサ19
がONとなり、センサ制御部12を介して主制御部2へ
検出信号S1を出力する。すると、主制御部2はスッテ
ップS2からスッテップS3へ進み、センサ19による
座部20aの検出が、1回目の検出か否かを判断する。
ステップS3で1回目の検出であると肯定判断されたと
きには、ステップS4へ進み、センサ駆動制御部10に
指令して、センサ19を、X軸+方向(図5において上
方)へ計測開始位置まで、早送りで戻す(図5におい
て、参照番号2で表示される工程)。続くステップS5
では、C軸駆動制御部6に指令して、C軸駆動モータ1
6を、所定角度一定方向へ、即ち時計方向へ回転させ
る。つまり、座部20aをセンサ19の下から退避させ
る(図5において、参照番号3で表示される工程)。At the time of this X-axis search feed, as shown in FIG. 5, when the C-axis designated shape is located directly below the sensor 19, the seat portion 2 is provided before the sensor 19 reaches the distance R x.
0a contacts the sensor 19. Therefore, the sensor 19
Is turned on, and the detection signal S1 is output to the main controller 2 via the sensor controller 12. Then, the main control unit 2 proceeds from step S2 to step S3, and determines whether or not the detection of the seat 20a by the sensor 19 is the first detection.
If an affirmative decision is made in step S3 that this is the first detection, then the flow of control proceeds to step S4, in which the sensor drive control unit 10 is instructed to move the sensor 19 in the X-axis + direction (upward in FIG. 5) to the measurement start position. , Fast forward (step indicated by reference numeral 2 in FIG. 5). Continued Step S5
Then, the C-axis drive control unit 6 is instructed so that the C-axis drive motor 1
6 is rotated in a fixed direction at a predetermined angle, that is, clockwise. That is, the seat 20a is retracted from below the sensor 19 (step indicated by reference numeral 3 in FIG. 5).
【0013】なお図6に示すように、ステップS5にお
けるC軸の回転角度δは、測定情報INFに指定された
C軸値指定形状の幅W、X軸方向における計測点から回
転中心CLまでの距離Rx 及びセンサ19の検出部の直
径2r(工具メモリ13の中に予め格納されている)の
各データと、次式とから求めることができる。 δ=δ1+δ2=tan-1(W/2Rx)+tan-1{(W+4r)/2Rx}・・・(2) ステップS5の処理実行により、C軸値指定形状がセン
サ19の真下位置から退避されると、ステップS1へ戻
る。ステップS1では、センサ駆動制御部10に指令し
て、センサ19を、X軸−方向へ、距離Rx の位置まで
移動させる。この移動過程で、センサ19が再度ONと
なり、センサ制御部12を介して検出信号S1を主制御
部2へ出力する。主制御部2は、検出信号S1が入力さ
れると、ステップS2からステップS3へ進む。ステッ
プS3では、この信号入力が2回目であるので、、測定
情報INFで指定された距離Rx などのデータの設定に
誤りがあるものと判断して、ステップS6へ進む。ステ
ップ6では、図示しない警報手段に指令して所定のアラ
ームをオペレータなどに対して表示させる。As shown in FIG. 6, the rotation angle δ of the C-axis in step S5 is the width W of the C-axis value designated shape designated in the measurement information INF, from the measurement point in the X-axis direction to the rotation center CL. It can be obtained from each data of the distance R x and the diameter 2r (prestored in the tool memory 13) of the detecting portion of the sensor 19 and the following equation. δ = δ 1 + δ 2 = tan −1 (W / 2R x ) + tan −1 {(W + 4r) / 2R x } ... (2) By performing the process of step S5, the C-axis value designation shape is directly below the sensor 19. When it is retracted from the position, the process returns to step S1. In step S1, the sensor drive control unit 10 is instructed to move the sensor 19 in the X-axis-direction to the position of the distance Rx . During this movement process, the sensor 19 is turned on again, and the detection signal S1 is output to the main control unit 2 via the sensor control unit 12. When the detection signal S1 is input, the main control unit 2 proceeds from step S2 to step S3. In step S3, since this signal is input for the second time, it is determined that there is an error in the data setting such as the distance R x specified by the measurement information INF, and the process proceeds to step S6. In step 6, an alarm means (not shown) is instructed to display a predetermined alarm to the operator or the like.
【0014】一方ステップS2にて、センサ19から検
出信号S1の入力がないと否定判断されたときには、ス
テップS7へ進む。即ち、C軸指定形状が退避されたか
(ステップ5の処理が実行された後か)否かにかかわら
ず、測定情報INFで指示された計測座標位置にセンサ
19が到達すると、ステップS7へ進む。ステップS7
では、C軸駆動制御部6に指令して、C軸駆動モータ1
6を駆動しC軸を+方向(図4及び図5において、反時
計方向)へ回転させ、続くステップS8で、センサ19
から検出信号S1が入力されるのを待ってC軸駆動モー
タ16を停止させる(図4及び図5において、参照番号
4で表示される工程)。なお、ステップS7でのC軸回
転速度は、通常の計測動作のときよりも大きく、且つ早
送りのときよりも小さく設定される。つまり、C軸値指
定形状の概略位置を検出するのに適したサーチ送り速度
範囲に設定される。C軸値指定形状が、センサ19に接
触して検出信号S1が入力されると、ステップS8から
ステップS9へ進み、C軸駆動制御部6に指令して、C
軸を−方向へ所定の角度量だけ回転させて、センサ19
を所定のアプローチ点AP1へ移動させる。つまり、C
軸を逆転させてセンサ19の先端とC軸値指定形状とを
離反させる。On the other hand, if it is determined in step S2 that the detection signal S1 is not input from the sensor 19, the process proceeds to step S7. That is, when the sensor 19 reaches the measurement coordinate position designated by the measurement information INF, regardless of whether the C-axis designated shape has been saved (after the processing of step 5 has been executed), the process proceeds to step S7. Step S7
Then, the C-axis drive control unit 6 is instructed so that the C-axis drive motor 1
6 is rotated to rotate the C axis in the + direction (counterclockwise in FIGS. 4 and 5), and in step S8, the sensor 19 is rotated.
Then, the C-axis drive motor 16 is stopped after the detection signal S1 is input (step indicated by reference numeral 4 in FIGS. 4 and 5). The C-axis rotation speed in step S7 is set to be higher than that in the normal measurement operation and smaller than that in the fast-forward operation. That is, the search feed speed range suitable for detecting the approximate position of the C-axis value designated shape is set. When the C-axis value designated shape contacts the sensor 19 and the detection signal S1 is input, the process proceeds from step S8 to step S9, and the C-axis drive control unit 6 is instructed to
The sensor 19 is rotated by rotating the shaft in the-direction by a predetermined angle amount.
Is moved to a predetermined approach point AP1. That is, C
The axis is reversed to separate the tip of the sensor 19 from the C-axis value designated shape.
【0015】また、ステップS8にて、C軸を最大36
0度回転させても、C軸値指定形状がセンサ19に接触
せず検出信号S1が入力されないと否定判断されたとき
には、ステップS6へ移行し、測定情報INFに指示さ
れた計測開始位置のZ座標や、距離Rx の設定に誤りが
あるものとして所定のアラームを表示させる。主制御部
2は、ステップS8が終了すると、外周計測プログラム
OMPに基づく実計測動作へ移行する。即ち、計測プロ
グラムメモリ11から外周計測プログラムOMPを読み
出し、直ちにC軸値指定形状の角度位置の計測動作に入
る。以下、上記の計測動作について、図7に示す動作ス
テップに沿って説明する。各ステップの番号は、実行順
を表している。まずステップ番号1で、C軸を+方向
へ、前述のスッテプS8のサーチ送りより遅い回転速
度、即ち計測用の計測送り速度で回転させる(図8にお
いて、参照番号1で表示される工程)。C軸が回転し
て、C軸値指定形状が、センサ19に、計測点M1で当
接すると、センサ19が検出信号S1を出力する。Further, in step S8, the C axis is set to 36 at maximum.
When it is negatively determined that the C-axis value designated shape does not come into contact with the sensor 19 and the detection signal S1 is not input even if it is rotated by 0 degree, the process proceeds to step S6 and the measurement start position Z indicated by the measurement information INF is detected. A predetermined alarm is displayed assuming that the coordinates and the distance R x are wrongly set. When step S8 ends, the main control unit 2 shifts to the actual measurement operation based on the outer circumference measurement program OMP. That is, the outer circumference measurement program OMP is read from the measurement program memory 11, and the measurement operation of the angular position of the C-axis value designated shape is immediately started. Hereinafter, the above measurement operation will be described along the operation steps shown in FIG. 7. The number of each step represents the order of execution. First, in step number 1, the C-axis is rotated in the + direction at a rotation speed slower than the search feed of step S8 described above, that is, the measurement feed speed for measurement (step indicated by reference number 1 in FIG. 8). When the C-axis rotates and the C-axis value designated shape comes into contact with the sensor 19 at the measurement point M1, the sensor 19 outputs the detection signal S1.
【0016】すると、主制御部2は、C軸角度演算部9
に指令して、計測点M1のC軸原点CZPに対する角度
αを求めさせる。即ち、C軸駆動モータ16に装着され
たトランスデューサ17から、C軸駆動モータ16の所
定回転角度毎に出力される回転信号S2に基づいて、角
度αを求めさせ基準点演算部15へ出力する。一方、セ
ンサ制御部12からの検出信号S1が入力されると、ス
テップ番号2で、C軸駆動制御部6に指令して、直ちに
C軸を−方向へ、センサ19がアプローチ点AP1に達
するまでの所定回転角度だけ回転させる。つまり、セン
サ19とC軸値指定形状とを離反させる(図8におい
て、参照番号2で表示された工程)。離反が完了する
と、ステップ番号3で、センサ駆動制御部10に指令し
て、センサ19をX軸+方向(図8において、上方)
へ、所定距離だけ早送りで移動させる(図8において、
参照番号3で表示される工程)。Then, the main control unit 2 causes the C-axis angle calculation unit 9 to operate.
To the angle α of the measurement point M1 with respect to the C-axis origin CZP. That is, the transducer 17 mounted on the C-axis drive motor 16 calculates the angle α based on the rotation signal S2 output at each predetermined rotation angle of the C-axis drive motor 16 and outputs the angle α to the reference point calculation unit 15. On the other hand, when the detection signal S1 from the sensor control unit 12 is input, in step number 2, the C-axis drive control unit 6 is instructed to immediately move the C-axis in the-direction until the sensor 19 reaches the approach point AP1. Rotate by the specified rotation angle of. That is, the sensor 19 and the C-axis value designated shape are separated from each other (step indicated by reference numeral 2 in FIG. 8). When the separation is completed, in step number 3, the sensor drive control unit 10 is instructed to cause the sensor 19 to move in the X-axis + direction (upward in FIG. 8).
To fast forward by a predetermined distance (in FIG. 8,
Step labeled with reference number 3).
【0017】続いてステップ番号4で、C軸を、+方向
へ所定角度だけ早送りで回転させて、センサ19を点P
1へ移動させる(図8において、参照番号4で表示され
る工程)。図6に示すように、ステップ番号4における
C軸の移動角度量εは、アプローチ点AP1,AP2
と、C軸値指定形状における計測点M1,M2との距離
をaとすると、次式により求められる。 ε=2tan-1{(W+2a)/2Rx} ・・・(3) このようにして点P1にセンサ19が移動すると、ステ
ップ番号5で、センサ駆動制御部10に指令して、セン
サ19を、X軸−方向へ早送り速度で移動させ、C軸値
指定形状の座部20aのアプローチ点AP2(図8にお
いて、座部20aの右側面から右方へ所定距離だけ離れ
た点)に位置決めする(図8において、参照番号5で表
示される工程)。続いてステップ番号6で、前述のステ
ップ番号1と同様にして、計測送り速度でC軸を−方向
へ駆動し、計測点M2とセンサ19とが接触しセンサ1
9から検出信号S1が入力されたところで駆動を停止す
る(図8において、参照番号6で表示される工程)。そ
して、C軸角度演算部9に指令して、計測点M2のC軸
原点CZPに対する角度βを求めさせ、その角度βを基
準点演算部15へ出力する。Then, in step number 4, the C-axis is rotated in the + direction at a predetermined angle in a fast-forwarding manner to move the sensor 19 to the point P.
1 (step indicated by reference numeral 4 in FIG. 8). As shown in FIG. 6, the movement angle amount ε of the C-axis at step number 4 is determined by the approach points AP1 and AP2.
And the distance between the measurement points M1 and M2 in the C-axis value designated shape is a, the distance is calculated by the following equation. ε = 2 tan −1 {(W + 2a) / 2R x } (3) When the sensor 19 moves to the point P1 in this way, in step number 5, the sensor drive control unit 10 is instructed to turn the sensor 19 on. , The X-axis is moved at a fast-forward speed and is positioned at the approach point AP2 of the seat portion 20a having the C-axis value-designated shape (in FIG. 8, a point distant from the right side surface of the seat portion 20a to the right by a predetermined distance). (Step indicated by reference numeral 5 in FIG. 8). Then, in step number 6, the C-axis is driven in the-direction at the measurement feed speed in the same manner as in step number 1 described above, the measurement point M2 and the sensor 19 come into contact, and the sensor 1
The drive is stopped when the detection signal S1 is input from 9 (step indicated by reference numeral 6 in FIG. 8). Then, the C-axis angle calculation unit 9 is instructed to obtain the angle β of the measurement point M2 with respect to the C-axis origin CZP, and the angle β is output to the reference point calculation unit 15.
【0018】一方、センサ制御部12からの検出信号S
1が入力されると、ステップ番号7で、C軸駆動制御部
6に指令して、直ちにC軸を+方向へ、センサ19がア
プローチ点AP2に達するまでの所定回転角度だけ回転
させる。つまり、センサ19とC軸値指定形状とを離反
させる(図8において、参照番号7で表示された工
程)。離反が完了すると、ステップ番号8で、センサ駆
動制御部10に指令して、センサ19を、X軸+方向
(図8において、上方)へ所定距離だけ早送りで、点P
1まで移動させる(図8において、参照番号8で表示さ
れる工程)。これで、外周計測プログラムOMPによる
C軸値指定形状の計測点M1,M2のC軸原点CZPに
対する角度α,βの計測動作を終了する。このようにし
て、上記角度α,βが計測されると、基準点演算部15
は、前述の(1)式から、加工基準点MPのC軸原点C
ZPに対する角度θを演算して求め、その角度θを加工
基準点メモリ7に格納する。すると、ミーリング加工な
どにおいて、当該加工基準点MPを基準にして加工プロ
グラムPROの中で指示された角度に対して、上記角度
θを考慮した形で、C軸をC軸原点CZPを基準に位置
決めする。そして、その位置決めによって、加工基準点
MP、したがってC軸値指定形状に対して、正確な位置
関係を保持しながらミーリング加工などを行うことがで
きる。On the other hand, the detection signal S from the sensor controller 12
When 1 is input, in step number 7, the C-axis drive control unit 6 is instructed to immediately rotate the C-axis in the + direction by a predetermined rotation angle until the sensor 19 reaches the approach point AP2. That is, the sensor 19 and the C-axis value designated shape are separated from each other (step indicated by reference numeral 7 in FIG. 8). When the separation is completed, in step number 8, the sensor drive control unit 10 is instructed to fast-forward the sensor 19 in the + direction of the X-axis (upward in FIG. 8) by a predetermined distance to obtain the point P.
1 (step indicated by reference numeral 8 in FIG. 8). This completes the measurement operation of the angles α and β with respect to the C-axis origin CZP of the measurement points M1 and M2 of the C-axis value designated shape by the outer circumference measurement program OMP. When the angles α and β are measured in this way, the reference point calculation unit 15
Is the C-axis origin C of the machining reference point MP from the above equation (1).
The angle θ with respect to ZP is calculated and obtained, and the angle θ is stored in the processing reference point memory 7. Then, in the milling process or the like, the C axis is positioned with the C axis origin CZP as a reference in consideration of the angle θ with respect to the angle designated in the processing program PRO with the machining reference point MP as a reference. To do. Then, by the positioning, the milling process or the like can be performed on the machining reference point MP, that is, the C-axis value designated shape while maintaining an accurate positional relationship.
【0019】次ぎに、測定情報INFから指定されたC
軸値指定形状の存在位置がワーク20の端面又は内周部
であるときについて説明する。まず主制御部2は、計測
プログラムメモリ11から内径・端面サーチプログラム
IROを読み出す。続いて、その内径・端面サーチプロ
グラムIROに基づいて、C軸値指定形状のC軸原点C
ZPに対する角度位置を求めることで、加工基準点MP
のC軸原点CZPに対する角度θを求める。その角度θ
を求めるには、図9に示すように、内径・端面サーチプ
ログラムIROにおいては、前述した外周部の計測のと
きC軸値指定形状を求める際に設定された距離Rx に代
えて、計測点M1,M2のワーク20の端面からZ軸方
向における距離Rz を示す値を設定する必要がある。上
記角度θを求めると、主制御部2は、内径・端面サーチ
プログラムIROに基づいて内径・端面計測のための処
理を実行する。以下、図9のフローチャートに沿って順
次説明する。Next, C specified from the measurement information INF
A case where the existing position of the designated axial value shape is the end surface or the inner peripheral portion of the work 20 will be described. First, the main controller 2 reads the inner diameter / end face search program IRO from the measurement program memory 11. Then, based on the inner diameter / end face search program IRO, the C-axis origin C of the C-axis value designated shape
By obtaining the angular position with respect to ZP, the machining reference point MP
The angle θ with respect to the C-axis origin CZP is calculated. That angle θ
As shown in FIG. 9, in the inner diameter / end face search program IRO, the measurement point is used instead of the distance R x set when the C-axis value designated shape is obtained when measuring the outer peripheral portion. It is necessary to set a value indicating the distance R z in the Z-axis direction from the end surface of the work 20 of M1 and M2. When the angle θ is obtained, the main control unit 2 executes a process for measuring the inner diameter / end surface based on the inner diameter / end surface search program IRO. Hereinafter, description will be sequentially made according to the flowchart of FIG.
【0020】最初のステップS10で、センサ駆動制御
部10に指令して、センサ19を移動させる。即ち、セ
ンサ19を、まず加工プログラムPROの中の測定情報
INFによって指定された計測開始位置に移動させて位
置決めし、次いでZ軸+方向(図10において下方)に
移動させて上記距離Rz 相当する座標位置(測定情報I
NFにより指定された座標位置)へ送る(図10及び図
11において、参照番号1で表示される工程)。このZ
軸サーチ送りの際、図11に示すように、センサ19の
正面にC軸指定形状が位置していたときには、センサ1
9が距離Rz に到達する前に、座部20aがセンサ19
に当接する。したがって、センサ19がONとなり、セ
ンサ制御部12を介して主制御部2へ検出信号S1を出
力する。すると、主制御部2はスッテップS11からス
ッテップS12へ進み、センサ19による座部20aの
検出が、1回目の検出か否かを判断する。ステップS1
2で1回目の検出であると肯定判断されたときには、ス
テップS13へ進み、センサ駆動制御部10に指令し
て、センサ19を、Z軸−方向(図11において上方)
へ計測開始位置まで、早送りで戻す(図11において、
参照番号2で表示される工程)。In the first step S10, the sensor drive controller 10 is instructed to move the sensor 19. That is, the sensor 19 is first moved to the measurement start position designated by the measurement information INF in the machining program PRO for positioning, and then moved in the Z axis + direction (downward in FIG. 10) to correspond to the distance R z. Coordinate position (measurement information I
To the coordinate position designated by the NF) (step indicated by reference numeral 1 in FIGS. 10 and 11). This Z
When the C-axis designation shape is positioned in front of the sensor 19 during the axis search feed, as shown in FIG.
Before the seat 9 reaches the distance R z
Abut. Therefore, the sensor 19 is turned on, and the detection signal S1 is output to the main controller 2 via the sensor controller 12. Then, the main control unit 2 proceeds from step S11 to step S12, and determines whether or not the detection of the seat portion 20a by the sensor 19 is the first detection. Step S1
When it is affirmatively determined to be the first detection in step 2, the process proceeds to step S13, where the sensor drive control unit 10 is instructed to move the sensor 19 in the Z-axis-direction (upward in FIG. 11).
To the measurement start position by fast-forwarding (in FIG. 11,
Step labeled with reference number 2).
【0021】続くステップS14では、C軸駆動制御部
6に指令して、C軸駆動モータ16を、所定角度一定方
向へ、即ち時計方向へ回転させる。つまり、座部20a
をセンサ19の下から退避させる(図11において、参
照番号3で表示される工程)。なお図12に示すよう
に、ステップS14におけるC軸の回転角度δは、測定
情報INFに指定されたC軸値指定形状の幅W、計測点
のZ軸からのX軸方向へのx及びセンサ19の検出部の
直径2r(工具メモリ13の中に予め格納されている)
のデータと、次式とから求めることができる。 δ=δ1+δ2=tan-1(W/2x)+tan-1{(W+4r)/2x}・・・(4) ステップS14の処理実行により、C軸値指定形状がセ
ンサ19の正面位置から退避されると、ステップS10
へ戻る。ステップS10では、センサ駆動制御部10に
指令して、センサ19を、Z軸+方向へ、距離Rz の位
置まで移動させる。この移動過程で、センサ19が再度
ONとなり、センサ制御部12を介して検出信号S1を
主制御部2へ出力する。主制御部2は、検出信号S1が
入力されると、ステップS11からステップS12へ進
む。ステップS12では、この信号入力が2回目である
ので、、測定情報INFで指定された距離Rz などのデ
ータの設定に誤りがあるものと判断して、ステップS1
5へ進む。ステップ15では、図示しない警報手段に指
令して所定のアラームをオペレータなどに対して表示さ
せる。In a succeeding step S14, the C-axis drive control section 6 is instructed to rotate the C-axis drive motor 16 in a constant direction of a predetermined angle, that is, in a clockwise direction. That is, the seat portion 20a
Is retracted from under the sensor 19 (step indicated by reference numeral 3 in FIG. 11). Note that, as shown in FIG. 12, the rotation angle δ of the C-axis in step S14 is the width W of the C-axis value designated shape designated in the measurement information INF, the x of the measurement point in the X-axis direction from the Z-axis, and the sensor. Diameter 2r of 19 detectors (pre-stored in tool memory 13)
And the following equation. δ = δ 1 + δ 2 = tan −1 (W / 2x) + tan −1 {(W + 4r) / 2x} (4) By executing the process of step S14, the C-axis value designated shape is changed from the front position of the sensor 19. Once saved, step S10
Return to. In step S10, the sensor drive control unit 10 is instructed to move the sensor 19 in the Z axis + direction to the position of the distance R z . During this movement process, the sensor 19 is turned on again, and the detection signal S1 is output to the main control unit 2 via the sensor control unit 12. When the detection signal S1 is input, the main control unit 2 proceeds from step S11 to step S12. Since this signal input is the second time in step S12, it is determined that there is an error in the data setting such as the distance R z specified by the measurement information INF, and step S1 is performed.
Go to 5. In step 15, an alarm means (not shown) is instructed to display a predetermined alarm to the operator or the like.
【0022】一方ステップS11にて、センサ19から
検出信号S1の入力がないと否定判断されたときには、
ステップS16へ進む。即ち、C軸値指定形状が退避さ
れたか(ステップ14の処理が実行された後か)否かに
かかわらず、測定情報INFで指示された計測座標位置
にセンサ19が到達すると、ステップS16へ進む。ス
テップS16では、C軸駆動制御部6に指令して、C軸
駆動モータ16を駆動しC軸を+方向(104及び図1
1において、X−Y面における反時計方向)へ回転さ
せ、続くステップS17で、センサ19から検出信号S
1が入力されるのを待ってC軸駆動モータ16を停止さ
せる(図10及び図11において、参照番号4で表示さ
れる工程)。なお、ステップS16でのC軸回転速度
は、通常の計測動作のときよりも大きく、且つ早送りの
ときよりも小さく設定される。つまり、C軸値指定形状
の概略位置を検出するのに適したサーチ送り速度範囲に
設定される。C軸値指定形状がセンサ19に接触して検
出信号S1が入力されると、ステップS17からステッ
プS18へ進み、C軸駆動制御部6に指令して、C軸を
−方向へ所定の角度量だけ回転させ、センサ19を所定
のアプローチ点AP1へ移動させる。つまり、C軸を逆
転させてセンサ19の先端とC軸値指定形状とを離反さ
せる。On the other hand, if it is determined in step S11 that the detection signal S1 is not input from the sensor 19,
It proceeds to step S16. That is, when the sensor 19 reaches the measurement coordinate position designated by the measurement information INF, regardless of whether the C-axis value designated shape is saved (after the processing of step 14 is executed), the process proceeds to step S16. .. In step S16, the C-axis drive control unit 6 is instructed to drive the C-axis drive motor 16 to move the C-axis in the + direction (104 and FIG.
1, in the counterclockwise direction on the XY plane), and in the subsequent step S17, the detection signal S from the sensor 19 is transmitted.
The C-axis drive motor 16 is stopped after 1 is input (step indicated by reference numeral 4 in FIGS. 10 and 11). The C-axis rotation speed in step S16 is set to be higher than that in the normal measurement operation and smaller than that in the fast-forward operation. That is, the search feed speed range suitable for detecting the approximate position of the C-axis value designated shape is set. When the C-axis value designated shape contacts the sensor 19 and the detection signal S1 is input, the process proceeds from step S17 to step S18, and the C-axis drive control unit 6 is instructed to move the C-axis by a predetermined angle amount in the-direction. And the sensor 19 is moved to a predetermined approach point AP1. That is, the C axis is reversed to separate the tip of the sensor 19 from the C axis value designated shape.
【0023】また、ステップS17にて、C軸を最大3
60度回転させても、C軸値指定形状がセンサ19に接
触しないために、センサ19から検出信号S1が入力さ
れないと否定判断されたときには、ステップS15へ移
行し、測定情報INFに指示された計測開始位置のZ座
標や、距離Rz の設定に誤りがあるものとして所定のア
ラームを表示させる。主制御部2は、ステップS18が
終了すると、内径・端面計測プログラムIMPに基づく
実計測動作へ移行する。即ち、計測プログラムメモリ1
1から内径・端面計測プログラムIMPを読み出し、直
ちにC軸値指定形状の角度位置の計測動作に入る。以
下、上記の計測動作について、図13に示す動作ステッ
プに沿って説明する。各ステップの番号は、実行順を表
している。まずステップ番号1で、C軸を+方向へ、前
述のスッテプS18のサーチ送りより遅い回転速度、即
ち計測用の計測送り速度で回転させる(図14におい
て、参照番号1で表示される工程)。C軸が回転する
と、C軸値指定形状がアプローチ点AP3から移動し、
計測点M1でセンサ19に当接する。すると、センサ1
9が検出信号S1を出力する。センサ19から検出信号
S1が入力されると、主制御部2は、C軸角度演算部9
に指令して、計測点M3のC軸原点CZPに対する角度
αを求めさせる。即ち、C軸駆動モータ16に装着され
たトランスデューサ17から、C軸駆動モータ16の所
定回転角度毎に出力される回転信号S2に基づいて、角
度αを求めさせ基準点演算部15へ出力する。In step S17, the C axis is set to 3 at maximum.
When the determination signal S1 is not input from the sensor 19 because the C-axis value specified shape does not contact the sensor 19 even when rotated by 60 degrees, the process proceeds to step S15, and the measurement information INF is instructed. A predetermined alarm is displayed as an error in the setting of the Z coordinate of the measurement start position or the distance R z . When step S18 ends, the main controller 2 shifts to the actual measurement operation based on the inner diameter / end surface measurement program IMP. That is, the measurement program memory 1
The inner diameter / end surface measurement program IMP is read from 1, and the measurement operation of the angular position of the C-axis value designated shape is immediately started. The above measurement operation will be described below in accordance with the operation steps shown in FIG. The number of each step represents the order of execution. First, in step number 1, the C-axis is rotated in the + direction at a rotation speed slower than the search feed of step S18 described above, that is, the measurement feed speed for measurement (step indicated by reference number 1 in FIG. 14). When the C-axis rotates, the C-axis value specified shape moves from the approach point AP3,
It contacts the sensor 19 at the measurement point M1. Then, sensor 1
9 outputs the detection signal S1. When the detection signal S1 is input from the sensor 19, the main control unit 2 causes the C-axis angle calculation unit 9 to operate.
To determine the angle α of the measurement point M3 with respect to the C-axis origin CZP. That is, the transducer 17 mounted on the C-axis drive motor 16 calculates the angle α based on the rotation signal S2 output at each predetermined rotation angle of the C-axis drive motor 16 and outputs the angle α to the reference point calculation unit 15.
【0024】一方、センサ制御部12からの検出信号S
1が入力されると、ステップ番号2で、C軸駆動制御部
6に指令して、直ちにC軸を−方向へ、センサ19がア
プローチ点AP3に達するまでの所定回転角度だけ回転
させる。つまり、センサ19とC軸値指定形状とを離反
させる(図14において、参照番号2で表示された工
程)。離反が完了すると、ステップ番号3で、センサ駆
動制御部10に指令して、センサ19をZ軸−方向(図
14において、上方)へ、所定距離だけ早送りで移動さ
せる(図14において、参照番号3で表示される工
程)。続いてステップ番号4で、C軸を、+方向へ所定
角度だけ早送りで回転させて、センサ19を点P4へ移
動させる(図14において、参照番号4で表示される工
程)。図12に示すように、ステップ番号4におけるC
軸の移動角度量εは、アプローチ点AP3,AP4と、
C軸値指定形状における計測点M3,M4との距離をa
とすると、次式により求められる。 ε=2tan-1{(W+2a)/2xx} ・・・(5)On the other hand, the detection signal S from the sensor controller 12
When 1 is input, in step number 2, the C-axis drive control unit 6 is instructed to immediately rotate the C-axis in the-direction by a predetermined rotation angle until the sensor 19 reaches the approach point AP3. That is, the sensor 19 and the C-axis value designated shape are separated (step indicated by reference numeral 2 in FIG. 14). When the separation is completed, in step number 3, the sensor drive control unit 10 is instructed to move the sensor 19 in the Z-axis-direction (upward in FIG. 14) by a predetermined distance at a fast feed (in FIG. 14, reference numeral). The process indicated by 3.). Then, in step number 4, the C-axis is rapidly rotated in the + direction by a predetermined angle to move the sensor 19 to the point P4 (step indicated by reference number 4 in FIG. 14). As shown in FIG. 12, C at step number 4
The movement angle amount ε of the axis is determined by the approach points AP3 and AP4,
The distance from the measurement points M3 and M4 in the C-axis value specified shape is a
Then, it is calculated by the following equation. ε = 2 tan −1 {(W + 2a) / 2x x } ... (5)
【0025】このようにして点P4にセンサ19が移動
すると、ステップ番号5で、センサ駆動制御部10に指
令して、センサ19を、Z軸+方向へ早送り速度で移動
させ、C軸値指定形状の座部20aのアプローチ点AP
4(図14において、座部20aの右側面から右方へ所
定距離だけ離れた点)に位置決めする(図14におい
て、参照番号5で表示される工程)。続いてステップ番
号6で、前述のステップ番号1と同様にして、計測送り
速度でC軸を−方向へ駆動し、計測点M4とセンサ19
とが接触しセンサ19から検出信号S1が入力されたと
ころで駆動を停止する(図14において、参照番号6で
表示される工程)。そして、C軸角度演算部9に指令し
て、計測点M2のC軸原点CZPに対する角度βを求め
させ、その角度βを求めさせ基準点演算部15へ出力す
る。一方、センサ制御部12からの検出信号S1が入力
されると、ステップ番号7で、C軸駆動制御部6に指令
して、直ちにC軸を+方向へ、センサ19がアプローチ
点AP2に達するまでの所定回転角度だけ回転させる。
つまり、センサ19とC軸値指定形状とを離反させる
(図14において、参照番号7で表示された工程)。離
反が完了すると、ステップ番号8で、センサ駆動制御部
10に指令して、センサ19をZ軸−方向(図14にお
いて、上方)へ、所定距離だけ早送りで点P4へ移動さ
せる(図14において、参照番号8で表示される工
程)。これで、内径・端面計測プログラムIMPによる
C軸値指定形状の計測点M3,M4のC軸原点CZPに
対する角度α,βの計測動作を終了する。When the sensor 19 moves to the point P4 in this way, in step number 5, the sensor drive control unit 10 is instructed to move the sensor 19 in the Z-axis + direction at the fast-forward speed to specify the C-axis value. Approach point AP of the seat 20a having a shape
4 (in FIG. 14, a point distant from the right side surface of the seat portion 20a to the right by a predetermined distance) (step indicated by reference numeral 5 in FIG. 14). Then, in step number 6, similarly to step number 1 described above, the C axis is driven in the-direction at the measurement feed speed to measure the measurement point M4 and the sensor 19.
The driving is stopped at the time when the contact signal comes in contact with and the detection signal S1 is input from the sensor 19 (step indicated by reference numeral 6 in FIG. 14). Then, the C-axis angle calculation unit 9 is instructed to obtain the angle β of the measurement point M2 with respect to the C-axis origin CZP, and the angle β is obtained and output to the reference point calculation unit 15. On the other hand, when the detection signal S1 from the sensor control unit 12 is input, in step number 7, the C-axis drive control unit 6 is instructed to immediately move the C-axis in the + direction until the sensor 19 reaches the approach point AP2. Rotate by the specified rotation angle of.
That is, the sensor 19 and the C-axis value designated shape are separated from each other (step indicated by reference numeral 7 in FIG. 14). When the separation is completed, in step number 8, the sensor drive control unit 10 is instructed to move the sensor 19 in the Z-axis-direction (upward in FIG. 14) by a predetermined distance to the point P4 at a fast feed (in FIG. 14). , Designated by reference numeral 8). This completes the measurement operation of the angles α, β with respect to the C-axis origin CZP of the measurement points M3, M4 of the C-axis value designated shape by the inner diameter / end surface measurement program IMP.
【0026】このようにして、上記角度α,βが計測さ
れると、基準点演算部15は、前述の(1)式から、加
工基準点MPのC軸原点CZPに対する角度θを演算し
て求め、その角度θを加工基準点メモリ7に格納する。
すると、ミーリング加工などにおいて、当該加工基準点
MPを基準にして加工プログラムPROの中で指示され
た角度に対して、上記角度θを考慮した形で、C軸をC
軸原点CZPを基準に位置決めする。そして、その位置
決めによって、加工基準点MP、したがってC軸値指定
形状に対して、正確な位置関係を保持しながらミーリン
グ加工などを行うことができる。以上説明したように本
実施例では、ワーク20の形状が、加工基準点MPに対
するC軸値が角度γにより指定されたC軸値指定形状を
有する特殊な形状であるとき、C軸値指定形状のC軸方
向の両側の計測点M1,M2,M3、M4などについ
て、C軸原点CZPからの角度α,β及びC軸値指定形
状の加工基準点MPに対する指定角度γから、加工基準
点MPのC軸原点CZPからの角度θを求めて、C軸制
御によるミーリング加工などの加工を行う。それゆえ、
上記特殊形状のワーク20における加工基準点MPを、
容易に検出することができると共に、C軸値指定形状に
対して正確な位置関係を保ちながらC軸制御を伴うミー
リングなどの加工を行うことができる。したがって、従
来のように特殊治具を用いる必要はまったくないので、
効率的な加工が行え、ワークのセッティングに多大な時
間を費やすこともなく加工コストの削減にも功を奏す
る。When the angles α and β are measured in this way, the reference point calculation unit 15 calculates the angle θ of the machining reference point MP with respect to the C-axis origin CZP from the above equation (1). The calculated angle θ is stored in the processing reference point memory 7.
Then, in the milling process or the like, the C-axis is changed to the C-axis in consideration of the angle θ with respect to the angle designated in the machining program PRO with the machining reference point MP as a reference.
Positioning is based on the axis origin CZP. Then, by the positioning, it is possible to perform milling or the like on the machining reference point MP, that is, the C-axis value designated shape while maintaining an accurate positional relationship. As described above, in the present embodiment, when the shape of the workpiece 20 is a special shape having the C-axis value specified shape in which the C-axis value for the machining reference point MP is specified by the angle γ, the C-axis value specified shape is obtained. Of the measurement points M1, M2, M3, M4, etc. on both sides of the C-axis direction from the C-axis origin CZP and the designated angle γ with respect to the machining reference point MP of the C-axis value designated shape, from the machining reference point MP. The angle θ from the C-axis origin CZP is calculated, and machining such as milling by C-axis control is performed. therefore,
The machining reference point MP of the specially shaped work 20 is
It can be easily detected, and machining such as milling accompanied by C-axis control can be performed while maintaining an accurate positional relationship with respect to the C-axis value designated shape. Therefore, there is no need to use a special jig as in the past,
Efficient machining can be performed, and the machining cost can be reduced without spending a lot of time on setting the work.
【0027】以上詳述したように本発明によれば、ワー
クが、加工基準点に対するC軸値が角度により指定され
たC軸値指定形状を有する特殊な形状であるとき、C軸
値指定形状のC軸方向の両側の計測点について、C軸原
点からの角度及びC軸値指定形状の加工基準点に対する
指定角度から、加工基準点のC軸原点Pからの角度を求
めて、C軸制御によるミーリング加工などの加工を行
う。それゆえ、加工基準点のC軸原点からの角度が容易
に検出でき、C軸値指定形状に対して正確な位置関係を
保ちながらC軸加工を伴うミーリングなどの加工を特殊
形状のワークに行うことができる。したがって、従来の
ように特殊治具を用いる必要はまったくないので、効率
的な加工が行え、ワークのセッティングに多大な時間を
費やすこともなく加工コストの削減にも功を奏する。As described in detail above, according to the present invention, when the workpiece is a special shape having a C-axis value designated shape in which the C-axis value with respect to the machining reference point is designated by an angle, the C-axis value designated shape is obtained. For the measurement points on both sides in the C-axis direction, the angle from the C-axis origin P of the machining reference point is obtained from the angle from the C-axis origin and the designated angle with respect to the machining reference point of the C-axis value designated shape, and the C-axis control is performed. Performs processing such as milling. Therefore, the angle of the machining reference point from the C-axis origin can be easily detected, and machining such as milling accompanied by C-axis machining is performed on a specially shaped workpiece while maintaining an accurate positional relationship with the C-axis value designated shape. be able to. Therefore, there is no need to use a special jig as in the conventional case, so that efficient machining can be performed, and the machining cost can be reduced without spending a lot of time for setting the work.
【0028】[0028]
【図1】実施例の旋盤の構成を表すブロック図である。FIG. 1 is a block diagram showing a configuration of a lathe according to an embodiment.
【図2】ワークにおけるC軸原点と加工基準点及びC軸
値指定形状との関係を表す正面図である。FIG. 2 is a front view showing a relationship between a C-axis origin, a machining reference point, and a C-axis value designated shape in a work.
【図3】主制御部で実行される外径サーチプログラムの
一例を示すフローチャートである。FIG. 3 is a flowchart showing an example of an outer diameter search program executed by a main control unit.
【図4】C軸値指定形状のワーク外周におけるサーチ態
様を表す工程図である。FIG. 4 is a process diagram showing a search mode in the outer circumference of a work having a C-axis value designated shape.
【図5】C軸値指定形状のワーク外周におけるサーチ態
様を表す工程図である。FIG. 5 is a process diagram showing a search mode in the outer circumference of a work having a C-axis value designated shape.
【図6】外径計測においてC軸の移動角度を計算するた
めの拡大説明図である。FIG. 6 is an enlarged explanatory diagram for calculating a movement angle of a C axis in outer diameter measurement.
【図7】外周計測プログラムにおける計測ステップを表
す説明図である。FIG. 7 is an explanatory diagram showing measurement steps in an outer circumference measurement program.
【図8】外周計測プログラムにおける計測態様を表す拡
大説明図である。FIG. 8 is an enlarged explanatory diagram showing a measurement mode in an outer circumference measurement program.
【図9】主制御部で実行される内径・端面サーチプログ
ラムの一例を示すフローチャートである。FIG. 9 is a flowchart showing an example of an inner diameter / end face search program executed by a main control unit.
【図10】C軸値指定形状のワーク端面におけるサーチ
態様を表す工程図である。FIG. 10 is a process diagram showing a search mode on a workpiece end face having a C-axis value designated shape.
【図11】C軸値指定形状のワーク端面におけるサーチ
態様を表す工程図である。FIG. 11 is a process diagram showing a search mode on a workpiece end face having a C-axis value designated shape.
【図12】内径・端面計測においてC軸の移動角度を計
算するための拡大説明図である。FIG. 12 is an enlarged explanatory diagram for calculating the movement angle of the C-axis in inner diameter / end face measurement.
【図13】内径・端面計測プログラムにおける計測ステ
ップを表す説明図である。FIG. 13 is an explanatory diagram showing measurement steps in an inner diameter / end surface measurement program.
【図14】内径・端面計測プログラムによる計測態様を
表す拡大説明図である。FIG. 14 is an enlarged explanatory view showing a measurement mode by an inner diameter / end face measurement program.
1・・・旋盤 2・・・主制御部 20・・・ワーク CZP・・・C軸原点 MP・・・加工基準点 α,β,γ,δ・・・角度 θ・・・加工基準点のC軸原点に対する角度 M1,M2,M3,M4・・・計測点 1 ... Lathe 2 ... Main control unit 20 ... Work CZP ... C-axis origin MP ... Machining reference point α, β, γ, δ ... Angle θ ... Machining reference point Angle with respect to C-axis origin M1, M2, M3, M4 ... Measurement points
Claims (1)
指定されたC軸値指定形状を有するワークを、C軸原点
を基準としたC軸制御により加工する旋盤において、所
定のサーチプログラムに基づいて前記ワークをC軸制御
により回転させることにより、前記C軸値指定形状のC
軸方向の両側の計測点における前記C軸原点からの角度
を測定する測定手段と、前記測定された角度及び前記C
軸値指定形状の加工基準点に対する指定角度から、前記
加工基準点のC軸原点からの角度を求める算出手段と、
を備えたことを特徴とするC軸制御旋盤。Claim: What is claimed is: 1. A lathe for machining a workpiece having a C-axis value designated shape in which the C-axis value with respect to a machining reference point is designated by an angle, by C-axis control with the C-axis origin as a reference. By rotating the work by the C-axis control based on a predetermined search program, the C-axis value designated shape of the C
Measuring means for measuring angles from the origin of the C-axis at measurement points on both sides in the axial direction, the measured angle and the C
Calculating means for obtaining an angle of the machining reference point from the origin of the C-axis from a designated angle of the axis value designated shape with respect to the machining reference point;
A C-axis control lathe characterized by having.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23398091A JPH054149A (en) | 1991-08-20 | 1991-08-20 | C-axis control lathe |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23398091A JPH054149A (en) | 1991-08-20 | 1991-08-20 | C-axis control lathe |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60073304A Division JPS61230846A (en) | 1985-04-05 | 1985-04-05 | Searching c-axis machining reference point |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH054149A true JPH054149A (en) | 1993-01-14 |
Family
ID=16963651
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP23398091A Pending JPH054149A (en) | 1991-08-20 | 1991-08-20 | C-axis control lathe |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH054149A (en) |
-
1991
- 1991-08-20 JP JP23398091A patent/JPH054149A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4281385A (en) | Control system for a machine tool | |
| JP4637106B2 (en) | Grinding machine with concentricity correction | |
| KR940011352B1 (en) | Numerical Control Machine Tools | |
| JP3570051B2 (en) | Non-circular workpiece processing equipment | |
| JPH0248387B2 (en) | ||
| JPH054149A (en) | C-axis control lathe | |
| JP2919754B2 (en) | Backlash measurement and correction device for spherical or circular surface machining | |
| JPH09265308A (en) | Numerical control processing method and apparatus | |
| JPH0622778B2 (en) | Numerical control machine tool | |
| JPH0641088B2 (en) | Machine tool work centering method | |
| JP2694019B2 (en) | Device for detecting the center position of the work groove width | |
| JPH06218662A (en) | Working for work having groove on the peripheral surface and device therefor | |
| JPH1133880A (en) | Measuring device of nc lathe | |
| JPS60177848A (en) | Origin correction method for numerically controlled machine tools | |
| JPH07110470B2 (en) | Workpiece mounting error correction device in machining center | |
| JP2000061782A (en) | Longitudinal reference position measurement method for grooved shaft workpiece | |
| JPH07227740A (en) | Workpiece position detection method using a cutting tool | |
| JP2001239440A (en) | Machining center | |
| JPH0760614A (en) | Neumerical control grinding device | |
| JPH0729253B2 (en) | Machine tool work rotational position indexing device | |
| JP2003305627A (en) | Workpiece center position detection method and numerical control device in numerical control device | |
| JPH04159100A (en) | Position correction method for ultrasonic tool | |
| JPS6374555A (en) | Numerically controlled machine tool having measuring function | |
| JP2753343B2 (en) | Workpiece groove position measuring device | |
| JPH09239640A (en) | Tool position correcting method and device for machine tool |