JPH0332551A - Machine origin offset regulation method - Google Patents

Machine origin offset regulation method

Info

Publication number
JPH0332551A
JPH0332551A JP16752889A JP16752889A JPH0332551A JP H0332551 A JPH0332551 A JP H0332551A JP 16752889 A JP16752889 A JP 16752889A JP 16752889 A JP16752889 A JP 16752889A JP H0332551 A JPH0332551 A JP H0332551A
Authority
JP
Japan
Prior art keywords
main shaft
spindle
machine origin
offset value
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP16752889A
Other languages
Japanese (ja)
Inventor
Shinichi Kono
新一 河野
Hironobu Takahashi
高橋 宏暢
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.)
Fanuc Corp
Original Assignee
Fanuc Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fanuc Corp filed Critical Fanuc Corp
Priority to JP16752889A priority Critical patent/JPH0332551A/en
Publication of JPH0332551A publication Critical patent/JPH0332551A/en
Pending legal-status Critical Current

Links

Landscapes

  • Automatic Control Of Machine Tools (AREA)

Abstract

PURPOSE:To set an offset value accurately and simply, by stopping the main shaft at a detection point when an 1 rotation signal is detected, and calculating the pulse of a position detector, and rotating the main shaft manually, and setting the specified position of the main shaft at a machine origin, and setting a calculation value thus obtained, as the offset value. CONSTITUTION:The main shaft 1 becomes rotatable manually by stopping the main shaft 1 at an 1 rotation signal position, and releasing the excitation of a main shaft motor 12. Thereupon, the main shaft 1 is rotated manually, and a machine origin position and a main shaft 1 specified position are made to agree. While the main shaft 1 is being rotated manually, a position pulse is generated from a position detector 16, and calculation is made at a register, and an indication is made at an indicator, so when the machine origin position and the main shaft 1 specified position has agreed, an offset value from the 1 rotation position to the machine origin position is indicated at the indicator. Then, an operator makes the value indicated at the indicator the offset value, and its numerical value is set from a key board or the like.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、主軸モータの制御に関し、特に主軸を機械原
点に位置決めするためのオフセット調整方法に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to the control of a spindle motor, and more particularly to an offset adjustment method for positioning a spindle at a machine origin.

従来の技術 主軸に取付けた工具を自動交換する際、主軸を所定位置
(所定回転位置)に停止させなければ工具の自動交換が
てきない。例えば、工作機械の機械原点位置に主軸のキ
ー溝等の特定位置を位置づけ、主軸から工具を工具マガ
ジン内に取出し、次に、工具マガジンを回転させ、次に
取付ける工具を主軸位置に対向させ、主軸のキー溝と工
具のキーを嵌合させて工具を主軸に装着させる必要があ
る。
Conventional technology When automatically replacing a tool attached to a spindle, the tool cannot be replaced automatically unless the spindle is stopped at a predetermined position (predetermined rotational position). For example, a specific position such as the keyway of the spindle is positioned at the machine origin position of the machine tool, a tool is taken out from the spindle into a tool magazine, the tool magazine is rotated, and the next tool to be installed is placed opposite the spindle position. It is necessary to attach the tool to the spindle by fitting the keyway of the spindle with the key of the tool.

また、主軸に取付けたワークの所定位置から加工を開始
させる場合等、主軸を位置決めしなければならない場合
がある。
Furthermore, there are cases where it is necessary to position the spindle, such as when starting machining from a predetermined position on a workpiece attached to the spindle.

そのため、主軸の特定位置を機械原点に位置決めする作
業が必要であるが、従来、主軸の位置を検出する位置検
出器からの1回転信号位置から、主軸の特定位置が機械
原点位置まで達するパルス数(位置検出器からのパルス
数)をオフセラ)・値として求め、このオフセット値に
よって機械原点位置と主軸の特定位置を合わせ、主軸の
位置決めを行っている。第4図(a)〜(C)はこのオ
フセット値を求める作業の説明図で、図中、1は主軸、
2は機械原点位置を表すマーク、3は主軸の特定位置を
示すマーク(例えば、キー清等)である。まず、第4図
(a)に示すように、主軸に取付けた位置検出器からの
1回転信号が検出される位置に主軸を位置決めし、主軸
の特定位置を表すマーク3が機械原点位置2と対向して
合致すると予想されるオフセット設定パルス数を入力し
て主軸1を回転させる(第4図(b)参照)。もし、機
械原点位置のマーク2と主軸の特定位置のマーク3が合
致しなければオフセット設定パルス数を変えて入力し、
再度原点合せを行わせる。この作業を繰り返し行って機
械原点と主軸の特定位置が合致したとき(第4図(C)
参照)、その時のオフセット設定パルス数をオフセット
値として設定している。
Therefore, it is necessary to position the specific position of the spindle to the machine origin, but conventionally, the number of pulses required for the specific position of the spindle to reach the machine origin from the position of one rotation signal from the position detector that detects the spindle position. (The number of pulses from the position detector) is determined as an offset value, and this offset value is used to align the machine origin position with the specific position of the spindle to position the spindle. Figures 4 (a) to (C) are explanatory diagrams of the work to obtain this offset value, in which 1 is the main axis;
2 is a mark indicating the machine origin position, and 3 is a mark indicating a specific position of the spindle (for example, key clearance). First, as shown in Fig. 4(a), the spindle is positioned at a position where a one-rotation signal is detected from the position detector attached to the spindle, and the mark 3 representing the specific position of the spindle is set to the machine origin position 2. The main shaft 1 is rotated by inputting the number of offset setting pulses that are expected to coincide with each other (see FIG. 4(b)). If mark 2 at the machine origin position and mark 3 at the specific position of the spindle do not match, change the offset setting pulse number and input it.
Perform origin alignment again. When this operation is repeated and the machine origin and the specific position of the spindle match (Fig. 4 (C)
), the offset setting pulse number at that time is set as the offset value.

発明が解決しようとする課題 上述したように、主軸を機械原点位置に位置決めするた
めのオフセット値を求める作業は試行錯誤的に行われる
もので、1回の作業でこのオフセット値が決まらず、手
間がかかっていた。
Problems to be Solved by the Invention As mentioned above, the work of determining the offset value for positioning the spindle at the machine home position is performed by trial and error, and the offset value cannot be determined in one operation, resulting in a time-consuming process. was on.

そこで、本発明の目的は、1回の作業でオフセット値を
求めることができる機械原点オフセット値調整方法を提
供することにある。
SUMMARY OF THE INVENTION Therefore, it is an object of the present invention to provide a machine origin offset value adjustment method that can obtain an offset value in one operation.

課題を解決するための手段 本発明は、主軸位置を検出する位置検出器から1回転信
号を検出すると、該検出点に主軸を停止させ、主軸モー
タの励磁を解く第1の工程と、主軸が停止した後上記位
置検出器から発生するパルスを計数すると共に主軸を手
動で回転させ主軸の特定位置を機械原点に合わせる第2
の工程と、第2の工程によって得られた計数値をオフセ
ット値として設定する第3の工程とからなる方法によっ
て上記課題を解決した。
Means for Solving the Problems The present invention provides a first step of stopping the spindle at the detected point and de-energizing the spindle motor when a one-rotation signal is detected from a position detector that detects the spindle position; After it has stopped, the second machine counts the pulses generated from the position detector and manually rotates the spindle to align the specific position of the spindle with the machine origin.
The above problem was solved by a method consisting of the following steps and a third step of setting the count value obtained in the second step as an offset value.

作用 まず、位置検出器から↑回転信号が検出された位置に主
軸を停止させる。その後、主軸モータの励磁を解く。主
軸モータの励磁が解かれると、主軸は手動で自由に回転
させることができるので、主軸を手動で回転させ、主軸
上の特定位置(例えば第4図に示すマーク3)を機械原
点位置(第4図のマーク2の位置)に合致させる(第4
図(C)の状態)。
Action First, stop the spindle at the position where the ↑ rotation signal is detected from the position detector. After that, the main shaft motor is de-energized. When the spindle motor is de-energized, the spindle can be freely rotated manually, so manually rotate the spindle and move a specific position (for example, mark 3 shown in Figure 4) on the spindle to the machine origin position (mark 3 in Figure 4). (position of mark 2 in Figure 4) (position of mark 2 in Figure 4)
Figure (C) state).

一方、主軸が1回転信号位置で停止した後、手動で主軸
が回転させられ機械原点位置に停止させられる間の上記
位置検出器からのパルス数を計数し、該計数値をオフセ
ット値として設定する。
On the other hand, after the spindle stops at the one-rotation signal position, the number of pulses from the position detector is counted while the spindle is manually rotated and stopped at the machine origin position, and the counted value is set as an offset value. .

これにより、1回転信号検出位置から機械原点位置まで
のオフセット値が実際に主軸が移動したときに発生する
位置検出器からのパルス数によって決まるので、オフセ
ット調整は1回ですむこととなる。
As a result, the offset value from the one-rotation signal detection position to the machine origin position is determined by the number of pulses from the position detector that are generated when the spindle actually moves, so the offset adjustment only needs to be performed once.

実施例 第2図は本発明を実施する一実施例の要部ブロック図で
、10は工作機械等を制御する数値制御装置、11は主
軸モータ12を制御する主軸制御回路、1は主軸で、歯
車またはタイミングベルト等の伝動手段14を介して主
軸モータ12によって駆動される。15はワーク(また
は工具)を取付けるチャック、16は主軸1の回転位置
を検出する絶対位置検出器、17は位置検出器16から
の出力パルスをカウントするカウンタ、18は位置検出
器i6から1回転信号が出力される毎にカウンタ17の
値をラッチするラッチ回路である。
Embodiment FIG. 2 is a block diagram of main parts of an embodiment of the present invention, in which 10 is a numerical control device that controls a machine tool, etc., 11 is a spindle control circuit that controls a spindle motor 12, 1 is a spindle, It is driven by a main shaft motor 12 via a transmission means 14 such as a gear or a timing belt. 15 is a chuck for mounting the workpiece (or tool); 16 is an absolute position detector that detects the rotational position of the spindle 1; 17 is a counter that counts output pulses from the position detector 16; and 18 is a one-rotation rotation from the position detector i6. This is a latch circuit that latches the value of the counter 17 every time a signal is output.

なお、上記実施例では伝動手段↓4を介して主軸1を駆
動17たが、主軸モータ12に直接主軸】−を結合して
主軸を駆動しても良いことはもちろんである。
In the above embodiment, the main shaft 1 is driven 17 through the transmission means ↓4, but it goes without saying that the main shaft 12 may be connected directly to the main shaft motor 12 to drive the main shaft.

上記構成において、数値制御装置10を介してオフセッ
ト値算出指令を与えると、主軸制御回路11のプロセッ
サは第1図の処理を開始し、まず、主軸モータ上2の回
転速度を所定速度に減速し、位置ループ制御に切換え(
ステップS1)、かつ、ラッチ回路18に現在ラッチさ
れている1回転信号のカウンタ17の値Aを読込むと共
にカウンタ17の値Bを読取り、目標値Cを求める(ス
テップS2)。
In the above configuration, when an offset value calculation command is given via the numerical control device 10, the processor of the spindle control circuit 11 starts the process shown in FIG. , switch to position loop control (
In step S1), the value A of the counter 17 of the one-rotation signal currently latched in the latch circuit 18 is read, and the value B of the counter 17 is also read to determine the target value C (step S2).

即ち、第3図に示すように、現在ラッチ回路18にラッ
チされている値Aとカウンタ17が記憶している現在値
Bと1回転信号間(主軸1回転信骨間)のパルス数PO
より次の演算を行うこと(Sよって目標値として次の1
回転信号までの移動五〇を算出する。
That is, as shown in FIG. 3, the number of pulses PO between the value A currently latched in the latch circuit 18, the current value B stored in the counter 17, and one revolution signal (between one revolution of the main shaft)
to perform the next calculation (by S, the next 1 as the target value)
Calculate the movement 50 to the rotation signal.

C=A+PO−B そして、プロセッサは該移動量Cを目標値として主軸1
をt回転信号位置に位置決めしくステ・〉ブS3)、主
軸モータ12の励磁を解き(ステ・〉プS4)、主軸制
御回路内に設けたレジスタR4リセットし、位置検出器
からフィードバックさすでくる位置パルスを計数可能と
し、表示器にこCレジスタRの値を表示する(ステップ
S5)。
C=A+PO-B Then, the processor sets the movement amount C to the target value and moves the main axis 1.
to the t rotation signal position (Step S3), de-energize the spindle motor 12 (Step S4), reset the register R4 provided in the spindle control circuit, and obtain feedback from the position detector. The position pulses are made countable and the value of the C register R is displayed on the display (step S5).

以上の処理により、主細工は例えば第4図(2に示すよ
うに1回転信号位蓋に停止しており、力つ、主軸モータ
12の励磁が解かれていること力ら、主軸1は手動で回
転可能になっている。そこで、第4図(b)に示すよう
に、主軸↓を手動マさせ、機械原点位置3と主軸の特定
位置2を第4図(C)に示すように合致させる。
As a result of the above processing, the main work stops at the 1 rotation signal level as shown in Fig. 4 (2), and the main shaft motor 12 is de-energized. Therefore, as shown in Fig. 4(b), manually rotate the main shaft ↓, and align the machine origin position 3 and the specified position 2 of the main shaft as shown in Fig. 4(C). let

この手動で主軸1、を回転させる間、位置検出器16か
らは位置パルスが発生し、1ノジスタRに言−数され、
その計数値が表示器に表示されるので、第4図(c)に
示すように機械原点位置3と主軸の特定位置2が合致し
たとき、即ち、1回転位置から機械原点位置までのオフ
セット値が表示器に表示されることとなる。
During this manual rotation of the main shaft 1, a position pulse is generated from the position detector 16, and is transmitted to the nozzle R.
The counted value is displayed on the display, so when the machine origin position 3 and the spindle specific position 2 match as shown in Figure 4(c), that is, the offset value from the 1 rotation position to the machine origin position. will be displayed on the display.

そこで、オペレータは、該表示器に表示された値をオフ
セット値として、キーボード等からその数値設定を設定
する。またはオフセット値設定指令を設け、直接レジス
タRの値をオフセット値として設定するようにしてもよ
い。
Therefore, the operator uses the value displayed on the display as an offset value and sets the value using a keyboard or the like. Alternatively, an offset value setting command may be provided to directly set the value of register R as the offset value.

発明の効果 本発明は、オフセット値設定の作業が1回で済み、しか
も、1回転信号位置から機械原点位置までの、実際に位
置検出器によって検出されるパルス数によってオフセッ
ト値が決まるから、正確にかつ簡単に短時間でオフセッ
ト値設定作業を行うことができる。
Effects of the Invention With the present invention, the offset value setting only needs to be done once, and since the offset value is determined by the number of pulses actually detected by the position detector from the one-rotation signal position to the machine home position, the offset value can be set accurately. Offset value setting work can be done easily and in a short time.

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

第1図は、本発明の一実施例が実施する主軸制御回路の
プロセッサの処理フローチャート、第2図は同一実施例
の要部ブロック図、第3図は1回転信号位置への位置決
めの説明図、第4図はオフセット値検出の作業の説明図
である。 コ、・・・主軸、2・・機械原点位置のマーク、3・・
・主軸の特定位置のマーク、1o・・・数値制御装置、
11・・・主軸制御回路、12・・・主軸モータ、14
・・・1云動手段、16・・・位置検出器、17・・・
カウンタ、18・・・ラッチ回路。 第 呪
FIG. 1 is a processing flowchart of the processor of the spindle control circuit implemented in one embodiment of the present invention, FIG. 2 is a block diagram of the main part of the same embodiment, and FIG. 3 is an explanatory diagram of positioning to the one-rotation signal position. , FIG. 4 is an explanatory diagram of the work of offset value detection. K,...Main shaft, 2...Machine origin position mark, 3...
・Mark of specific position of spindle, 1o...numerical control device,
11... Spindle control circuit, 12... Spindle motor, 14
... 1 movement means, 16... position detector, 17...
Counter, 18...Latch circuit. Curse

Claims (1)

【特許請求の範囲】  主軸位置を検出する位置検出器から1回転信号を検出
すると該検出点に主軸を停止させ、主軸モータの励磁を
解く第1の工程と、 主軸が停止した後、上記位置検出器から発生するパルス
を計数すると共に主軸を手動で回転させ主軸の特定位置
を機械原点に合わせる第2の工程と、 第2の工程によって得られた計数値をオフセット値とし
て設定する第3の工程と からなる機械原点オフセット調整方法。
[Claims] A first step of stopping the spindle at the detected point and de-energizing the spindle motor when a one-rotation signal is detected from a position detector that detects the spindle position; A second process involves counting the pulses generated by the detector and manually rotating the spindle to align the specific position of the spindle with the machine origin; and a third process, which sets the count value obtained in the second process as an offset value. A machine origin offset adjustment method consisting of processes.
JP16752889A 1989-06-29 1989-06-29 Machine origin offset regulation method Pending JPH0332551A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16752889A JPH0332551A (en) 1989-06-29 1989-06-29 Machine origin offset regulation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16752889A JPH0332551A (en) 1989-06-29 1989-06-29 Machine origin offset regulation method

Publications (1)

Publication Number Publication Date
JPH0332551A true JPH0332551A (en) 1991-02-13

Family

ID=15851367

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16752889A Pending JPH0332551A (en) 1989-06-29 1989-06-29 Machine origin offset regulation method

Country Status (1)

Country Link
JP (1) JPH0332551A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9348330B2 (en) 2011-10-07 2016-05-24 Fanuc Corporation Method of adjusting the position of origin of a machine and a machine having a function for adjusting the position of origin

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9348330B2 (en) 2011-10-07 2016-05-24 Fanuc Corporation Method of adjusting the position of origin of a machine and a machine having a function for adjusting the position of origin

Similar Documents

Publication Publication Date Title
JP3100406B2 (en) Machine tool failure prediction device
US4281385A (en) Control system for a machine tool
US4195446A (en) Apparatus for the control of a tool in a gear processing machine
EP0106253B1 (en) Numerical control machine tool with an emergency origin returning function
US3641849A (en) Method and apparatus for calibrating the position of a tool and for gauging the dimensions of a workpiece
CA1175892A (en) Apparatus for stepper motor position control
US5077507A (en) Servo control apparatus
JPH08178693A (en) Encoder diagnostic device
JPH0332551A (en) Machine origin offset regulation method
US4266170A (en) Safety arrangement for NC systems
US3944799A (en) Ratio computer
JPH021626B2 (en)
JP3185462B2 (en) Synchronization accuracy analyzer
JPS59201107A (en) Control system for restart of processing with numerical control
US3700993A (en) Apparatus for controlling relative motion between gage jaws on a contacting gage
KR100458453B1 (en) A correction apparatus and correction method for a automatic lathe
JPS6146260B2 (en)
JPH04336915A (en) Tooth alignment method for nc device
JP2002073176A (en) Controller for stopping rotary shaft at predetermined position
JPH11156638A (en) Numerical control device
CN113029554A (en) Detection apparatus for speed reducer speed reduction ratio
JPH0542601B2 (en)
JPS6244806A (en) Numerical controller
JPH04283048A (en) Main spindle positioning system
JP3782959B2 (en) Automatic meshing method and apparatus for gear grinding machine