JPH06332533A - Marker type original point return controlling device and method - Google Patents

Marker type original point return controlling device and method

Info

Publication number
JPH06332533A
JPH06332533A JP12245593A JP12245593A JPH06332533A JP H06332533 A JPH06332533 A JP H06332533A JP 12245593 A JP12245593 A JP 12245593A JP 12245593 A JP12245593 A JP 12245593A JP H06332533 A JPH06332533 A JP H06332533A
Authority
JP
Japan
Prior art keywords
distance
marker
origin
signal
shift amount
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
JP12245593A
Other languages
Japanese (ja)
Inventor
Hirokazu Miyazaki
浩和 宮崎
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 JP12245593A priority Critical patent/JPH06332533A/en
Publication of JPH06332533A publication Critical patent/JPH06332533A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily control the original point of a machine by calculating the distance between the position of a shift marker and the position of the nearest 1-rotation signal, calculating the shifted amount caused between the present original point of the machine and the position of the shift marker, and setting again the shifted amount as a new parameter. CONSTITUTION:A marker shifted amount arithmetic means calculates the distance F between a 1-rotation signal and the original point of a machine by adding a 1st marker shifted variable C and a 1st original point shifted amount B. The distance between the OFF position of a deceleration signal and the 1-rotation signal is calculated from the difference between both distances F and A. And, a 2nd marker shifted variable E is calculated from the difference between the distance set between the OFF position of the deceleration signal and the 1-rotation signal and the distance C set from a 2nd shift marker. Meanwhile, a 2nd original point shifted variable arithmetic means calculates a 2nd original point shifted amount D from the difference between the first 1-rotation signal and the machine original point by using the variable E. Then, both amounts E and D are used as the new parameters set between the first 1-rotation signal and the machine original point, and the original point of the machine is set again.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、原点復帰減速用のド
ッグの位置調整が容易で原点復帰パラメータが自動的に
設定できるマーカ方式原点復帰調整装置およびその方法
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a marker-type home position return adjusting device and method in which the position of a dog for home position return deceleration can be easily adjusted and home position return parameters can be automatically set.

【0002】[0002]

【従来の技術】工作機械に電源を投入すると、通常は機
械可動部がどんな位置にあっても原点復帰動作を開始す
る。そして、加工の際は原点復帰した位置からNC装置
が指示する移動指令値と、この移動指令値と原点復帰位
置(機械原点)間のオフセット値に基づき機械可動部が
加工を行う。従って、加工プログラム上の機械原点位置
と実際の機械可動部の位置が一致していなければ、高い
精度の加工を行うことができない。なお、機械可動部を
機械原点で停止させる場合、機械原点近傍に減速信号を
出力するための手段(例えば、減速ドッグとリミットス
イッチの組合せ)を設置し、リミットスイッチ等が減速
ドッグによりONし、このONした時出力される減速信
号がOFFした後の最初の1回転信号で止まるように調
整される。かかる調整作業は機械組立て時に行う。とこ
ろで、かかる原点位置の調整作業は従来、回転軸の1回
転信号がボールスクリューの仕様により決まっており調
整できないことから、1回転信号以外のところで原点位
置調整作業を行っている。即ち、(ア)減速信号を出力
するための減速ドッグの位置を調整し、リミットスイッ
チ等が減速ドッグによりONし、このONした時出力さ
れる減速信号がOFFした後の最初の1回転信号で止ま
るように減速ドッグを位置決めする。あるいは、(イ)
最初の1回転信号の丁度では止まらない場合、最初の1
回転信号から通り過ぎて止まった場合の距離を原点シフ
ト量としてパラメータ設定しておき前記オフセット量に
加算することにより機械原点を調整する。等が考えられ
るが、いずれにしても(ア)減速ドッグ位置の調整、
(イ)最初の1回転信号からの原点シフト量をパラメー
タ設定することが必要になってくる。更に従来の調整方
法を具体例を説明すると、例えば、図4にて示すよう
に、減速ドッグのOFF位置S1 を1回転信号(マー
カ,P1 ,P2 )間の真中(C寸法の位置)に合わせ、
減速信号がOFFした後の最初の1回転信号P2 を通り
過ぎて機械原点G0 までの距離(B1 寸法の距離)を計
測し、このB1 寸法の距離を原点シフト量としてパラメ
ータ設定することにより機械原点を調整する。そうすれ
ば、減速信号がOFFした位置S1 から最初の1回転信
号P2 まで(C寸法の距離)と最初の1回転信号P2
ら原点シフト量の位置まで(B1 寸法の距離)を加えた
距離(C+B1 )にて機械可動部が機械原点に停止でき
る。なお、減速ドッグのOFF位置S1 を1回転信号
(マーカ,P1 ,P2 )間の真中に合わせる理由は、減
速ドッグの位置調整が大変な作業であり、かつ減速ドッ
グの位置が1回転信号の位置との関係で決まるから、予
め減速ドッグのOFF位置S1 を1回転信号P1 ,P2
間の真中に合わせておいた方が、後日減速ドッグが多少
ずれても機械原点はずれないからである。また、図5に
示すように、減速信号がOFFした後の最初の1回転信
号P2 から通り過ぎて止まった機械原点G0 位置をシフ
トマーカ位置(1回転信号からB 2 寸法の距離をシフト
マーカ量)とし、このシフトマーカ位置M2 を基準に減
速信号のOFF側に1回転信号の間隔で別のシフトマー
カM1 ,M0 を設け、これらシフトマーカに基づきシフ
トマーカM1 ,M2 間の真中(C寸法の位置)に減速ド
ッグのOFF位置S1 を合わせて再調整する。このよう
に減速ドッグのOFF位置S1 を再調整することによ
り、減速信号がOFFした位置S1 からシフトマーカM
2 位置までの短い距離(C寸法の距離)にて機械可動部
を停止させることができる。
2. Description of the Related Art When a machine tool is turned on, it usually
Origin return operation is started regardless of the position of the movable part of the machine.
It Then, when processing, the NC device
Command value, the command value and home position
Based on the offset value between the
Perform processing. Therefore, the machine origin position on the machining program
If the position of the actual moving part of the machine does not match, it is high.
Precision processing cannot be performed. In addition, the mechanical moving part
When stopping at the machine origin, set a deceleration signal near the machine origin.
Means for outputting (eg deceleration dogs and limits)
Switch combination) is installed, and limit switches etc. decelerate
It is turned on by the dog, and the deceleration signal output when this is turned on.
Adjust so that it stops at the first one-turn signal after the signal turns off.
Be adjusted. Such adjustment work is performed when assembling the machine. Toko
In the past, this adjustment of the origin position was performed once for the rotary shaft.
The turning signal is determined by the specifications of the ball screw.
Since it is not possible to adjust, the origin position is set at a position other than one rotation signal.
We are doing work to adjust the position. That is, (a) Deceleration signal is output
Adjust the position of the deceleration dog to
H is turned on by the deceleration dog, and output when this is turned on.
Stop at the first one-turn signal after the deceleration signal is turned off.
Position the deceleration dog so that Or (a)
If the first rotation signal does not stop exactly, the first 1
The origin shift is the distance when it stops after passing the rotation signal.
Parameter is set as
Adjust the machine origin by adding. And so on
However, in any case, (a) adjustment of the deceleration dog position,
(B) Parameter for the origin shift amount from the first one rotation signal
It becomes necessary to set the data. Further conventional adjustment method
A concrete example of the method will be described. For example, as shown in FIG.
The deceleration dog's OFF position S11 rotation signal (mark
Mosquito P1, P2) In the middle (position of C dimension),
First one revolution signal P after the deceleration signal is turned off2Through
Machine origin G past0Distance to (B1Dimension distance)
Measure this B1Parameter is the dimension distance as the origin shift amount.
The machine origin is adjusted by setting the data. So
Position S where the deceleration signal is OFF1From the first one turn signal
Issue P2Up to (distance C dimension) and the first rotation signal P2Or
From the position of the origin shift amount (B1Dimensional distance)
Distance (C + B1), The movable part of the machine can be stopped at the machine origin.
It The deceleration dog OFF position S11 rotation signal
(Marker, P1, P2) The reason for adjusting to the middle is
Adjusting the position of the high speed dog is a difficult task, and
Since the position of the ring is determined by the relationship with the position of one rotation signal,
Deceleration dog OFF position S11 rotation signal P1, P2
If you set it in the middle of the interval, the deceleration dog will be a little later
This is because the machine origin cannot be displaced even if it shifts. Also, in FIG.
As shown, the first 1-speed transmission after the deceleration signal turns off.
Issue P2Machine origin G that stopped after passing through0Shift position
Marker position (from one rotation signal to B 2Shift dimension distance
Marker amount), and the shift marker position M2Reduced based on
Another shift mark is provided at the interval of one rotation signal on the OFF side of the speed signal.
CAM M1, M0The shift marker is provided based on these shift markers.
Tomarker M1, M2In the middle of the space (position of dimension C)
OFF position S of the bag1And readjust. like this
OFF position S of deceleration dog1By readjusting
Position S when the deceleration signal turned off1To shift marker M
2Machine moving part within a short distance to the position (distance C)
Can be stopped.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、図4の
1回転信号(マーカ)間の真中に減速ドッグのOFF位
置を合わせる方法も、図5のシフトマーカ間の真中(C
寸法の位置)に減速ドッグのOFF位置S1 を合わせて
再調整する方法も共に減速ドッグの位置を1回転信号間
の真中、あるいはシフトマーカ間の真中に調整しなけれ
ばならず、かかる減速ドッグの位置の調整作業が非常に
面倒であった。以上からこの発明は、前記課題に鑑みて
創案されたものであり、原点復帰減速用のドッグの位置
調整が容易で原点復帰パラメータが自動的に設定でき、
総じて機械原点調整作業が容易にできるマーカ方式原点
復帰調整装置およびその方法を提供することを目的とす
る。
However, the method of aligning the OFF position of the deceleration dog in the middle of one rotation signal (marker) in FIG. 4 is also the middle (C) between the shift markers in FIG.
Both the deceleration dog OFF position S 1 and the readjustment position must be adjusted to the middle of one rotation signal or between the shift markers. It was very troublesome to adjust the position of. From the above, the present invention was devised in view of the above problems, and it is easy to adjust the position of the dog for home position return deceleration and the home position return parameter can be set automatically.
It is an object of the present invention to provide a marker-type origin return adjusting device and a method thereof that can easily perform mechanical origin adjusting work as a whole.

【0004】[0004]

【課題を解決するための手段】前記課題を解決するため
に、この発明のマーカ方式原点復帰調整装置は、機械可
動部を所定位置から機械原点まで移動する際に、送り軸
の回転毎に1回転信号を出力する送り軸駆動モータと、
前記機械可動部を機械原点で停止する場合、機械原点近
傍で減速信号を出力しこの減速信号をオフするための減
速信号出力手段と、減速信号オフの位置から機械原点ま
での距離Aを検出しこの距離Aを減速信号オフ位置とし
て記憶する減速信号オフ位置検出手段と、前記1回転信
号と1回転信号間の距離の半分の距離Cの位置に設けら
れ、前記1回転信号からの距離を仮の第1マーカシフト
量Cとしてパラメータ設定された仮の第1シフトマーカ
と、この第1シフトマーカから機械原点までの距離とし
てパラメータ設定された仮の第1原点シフト量Bと、前
記減速信号オフ位置を中心として1回転信号間の距離の
半分の距離Cの位置に設定された第2シフトマーカと、
前記1回転信号から機械原点までの距離Fを第1マーカ
シフト量Cと第1原点シフト量Bを加算して求め、減速
信号オフ位置から前記1回転信号までの距離を前記距離
Fと距離Aとの差から求め、この減速信号オフ位置から
前記1回転信号までの距離と減速信号オフ位置から第2
のシフトマーカまでの距離Cとの差から前記第2シフト
マーカと前記減速信号オフ位置から最初の1回転信号と
の間の距離である第2マーカシフト量Eを求めるマーカ
シフト量演算手段と、この第2マーカシフト量Eを用い
て前記最初の1回転信号から機械原点までの距離との差
から第2原点シフト量Dを求める第2原点シフト量演算
手段と、前記第1マーカシフト量Cと第1原点シフト量
Bを記憶すると共に、演算された第2マーカシフト量E
と第2原点シフト量Dを前記最初の1回転信号から機械
原点までの新たなパラメータとして記憶する記憶手段と
を有することを特徴とする。また、この発明のマーカ方
式原点復帰調整方法は、機械可動部を機械原点で停止す
る際に、機械原点近傍で減速信号出力後のオフ位置から
前記機械原点までの距離Aを検出し記憶する手順と、
前記機械可動部を移動する送り軸の回転毎に出力される
1回転信号と1回転信号間の半分の距離にパラメータ設
定された仮の第1マーカシフト量Cと、この第1シフト
マーカから機械原点までの距離としてパラメータ設定さ
れた仮の第1原点シフト量Bとを加算して前記1回転信
号から機械原点までの距離Fを求めて記憶する手順と、
前記距離Fと距離Aとの差から減速信号オフ位置から前
記1回転信号までの距離を求め、この減速信号オフ位置
から前記1回転信号までの距離と減速信号オフ位置から
1回転信号間の半分の距離Cにて設定された第2のシフ
トマーカまでの距離Cとの差から前記第2シフトマーカ
と前記減速信号オフ位置から最初の1回転信号との間の
距離である第2マーカシフト量Eを求めて記憶する手順
と、この第2マーカシフト量Eを用いて前記最初の1回
転信号から機械原点までの距離との差から第2原点シフ
ト量Dを求めて記憶する手順と、第2マーカシフト量E
と第2原点シフト量Dを前記最初の1回転信号から機械
原点までの新たなパラメータとして記憶する手順とから
なることを特徴とする。
In order to solve the above-mentioned problems, the marker-type home position return adjusting device of the present invention has one unit for each rotation of the feed shaft when moving the machine movable part from a predetermined position to the machine home position. A feed axis drive motor that outputs a rotation signal,
When the machine moving part is stopped at the machine origin, a deceleration signal is output in the vicinity of the machine origin and deceleration signal output means for turning off the deceleration signal and a distance A from the deceleration signal off position to the machine origin are detected. The deceleration signal OFF position detecting means for storing the distance A as the deceleration signal OFF position and the position C which is half the distance between the one rotation signal and the one rotation signal are provided, and the distance from the one rotation signal is provisionally set. Tentative first shift marker parameterized as the first marker shift amount C, the tentative first origin shift amount B parameterized as the distance from the first shift marker to the machine origin, and the deceleration signal OFF A second shift marker set at a position of a distance C that is half the distance between one rotation signals with the position as the center;
The distance F from the one rotation signal to the machine origin is obtained by adding the first marker shift amount C and the first origin shift amount B, and the distance from the deceleration signal off position to the one rotation signal is the distance F and the distance A. From the deceleration signal off position to the first rotation signal and the deceleration signal off position from the deceleration signal off position to the second position.
Marker shift amount calculating means for obtaining a second marker shift amount E which is a distance between the second shift marker and the first one rotation signal from the deceleration signal off position, based on the difference from the distance C to the shift marker. Second origin shift amount calculating means for obtaining a second origin shift amount D from the difference from the distance from the first one rotation signal to the mechanical origin using the second marker shift amount E, and the first marker shift amount C. And the first origin shift amount B are stored, and the calculated second marker shift amount E is stored.
And a storage means for storing the second origin shift amount D as a new parameter from the first one rotation signal to the machine origin. Further, the marker-type home position return adjusting method of the present invention is a procedure for detecting and storing the distance A from the off position after the output of the deceleration signal to the machine origin near the machine origin when the machine moving part is stopped at the machine origin. When,
The temporary first marker shift amount C parameterized to one rotation signal output for each rotation of the feed shaft that moves the machine movable part and half the distance between the one rotation signal, and the machine from the first shift marker A procedure of adding a temporary first origin shift amount B parameterized as a distance to the origin and obtaining and storing a distance F to the mechanical origin from the one rotation signal;
From the difference between the distance F and the distance A, the distance from the deceleration signal off position to the one rotation signal is obtained, and the distance from the deceleration signal off position to the one rotation signal and the half between the deceleration signal off position and the one rotation signal. The second marker shift amount, which is the distance between the second shift marker and the first one rotation signal from the deceleration signal OFF position, based on the difference from the distance C to the second shift marker set at the distance C of A procedure for obtaining and storing E, and a procedure for obtaining and storing the second origin shift amount D from the difference between the distance from the first one rotation signal to the machine origin using the second marker shift amount E, 2 Marker shift amount E
And a procedure for storing the second origin shift amount D as a new parameter from the first one rotation signal to the machine origin.

【0005】[0005]

【作用】1回転信号間(図1のP1 ,P2 間)の真ん中
になる位置(1回転信号からC寸法位置)に第1のシフ
トマーカM1 ,M2 を設けておき、またこの第1のシフ
トマーカM2 から原点シフト量(B寸法量)離れた位置
に機械原点G0 があるものとする。なお、1回転信号P
2 から機械原点G0 までの距離をF寸法とする。いま、
減速ドッグのOFF位置S1 が1回転信号P2 の近傍に
セットすることにより、減速ドッグのOFF位置S1
調整のための基準位置とする。そこで、この減速ドッグ
のOFF位置S1 を中心として第2のシフトマーカ
1 ,L2 を設け(減速ドッグのOFF位置S1 から第
2のシフトマーカL2 までの距離をC寸法とする)、1
回転信号P2 から第2のシフトマーカL2 までのマーカ
シフト量Eを求める。即ち、減速ドッグのOFF位置S
1 から機械原点G0 までの距離(A寸法量)を検出す
る。このA寸法量の検出により、減速ドッグのOFF位
置S 1 から1回転信号P2 までの距離(A−F)が求ま
る。次に、減速ドッグのOFF位置S1 から第2のシフ
トマーカL2 までの距離Cと距離(A−F)との差から
マーカシフト量Eを求め、パラメータ設定する。つい
で、1回転信号P2 から機械原点G0 までの距離Fとマ
ーカシフト量Eを用いて、減速ドッグOFF後最初の第
2のシフトマーカL2 から新たな機械原点G1 までの距
離Dを求め、機械原点シフト量Dとしてをパラメータ設
定し最終的な機械原点G1 を再設定する。以上の操作に
より、面倒な原点復帰減速用のドッグの位置調整をなく
すことができ、総じて機械原点調整作業が容易にでき
る。
[Operation] Between one rotation signal (P in FIG. 1)1, P2In the middle of
The first shift to the position (from 1 rotation signal to C dimension position)
Tomarker M1, M2Is provided, and this first shift
Tomarker M2Position away from the origin shift amount (B dimension amount)
Machine origin G0There is. In addition, one rotation signal P
2From machine origin G0The distance to is the F dimension. Now
OFF position S of deceleration dog1Is one rotation signal P2In the vicinity of
OFF position S of the deceleration dog by setting1To
Use as a reference position for adjustment. So this deceleration dog
OFF position S1Second shift marker centered on
L1, L2(Deceleration dog OFF position S1From first
2 shift marker L2The distance to is C dimension), 1
Rotation signal P2To the second shift marker L2Marker up to
The shift amount E is calculated. That is, the deceleration dog OFF position S
1From machine origin G0To the distance (A dimension amount) to
It By detecting this A dimension, the deceleration dog is in the OFF position.
Setting S 1To 1 rotation signal P2Distance (A-F) to
It Next, the deceleration dog OFF position S1To the second shift
Tomarker L2From the difference between the distance C and the distance (A-F)
The marker shift amount E is obtained and parameters are set. Just
Then, one rotation signal P2From machine origin G0Distance to F and Ma
The first shift after the deceleration dog is turned off using the marker shift amount E.
2 shift marker L2To a new machine origin G1Distance to
The distance D is calculated and the machine origin shift amount D is set as a parameter.
Set the final machine origin G1Reset. For the above operations
This eliminates the troublesome adjustment of the dog position for deceleration to return to origin.
The machine origin adjustment work is easy in general.
It

【0006】[0006]

【実施例】この発明の原理を図1を用いて説明する。図
において、(a) はリミットスイッチ等が減速ドッグによ
りON(S0 位置)し、このONした時出力される減速
信号がOFF(S1 位置)した状態を示す。(b) は機械
可動部がボールスクリューを介して軸移動する際に、ボ
ールスクリュー1回転毎に出力される1回転信号P0
1 ,P2 の位置を示す図、(c) は第1のシフトマーカ
1 ,M2 あるいは第2のシフトマーカL1 ,L2 の位
置を示す図、(d) は機械原点G0 (あるいはG1 )の位
置を示す図である。この発明の機械原点調整作業は1回
転信号間(図1のP1 ,P2 間)の真ん中になる位置
(1回転信号P2 からC寸法位置)に第1のシフトマー
カM1 ,M2を設けておき、またこの第1のシフトマー
カM2 から原点シフト量(B寸法量)離れた位置に機械
原点G0 があるものとする。なお、1回転信号P2 から
機械原点G0 までの距離をF寸法とする。いま、減速ド
ッグのOFF位置S1 が1回転信号P2 の近傍にセット
することにより、減速ドッグのOFF位置S1 を調整の
ための基準位置とする。そこで、この減速ドッグのOF
F位置S1 を中心として第2のシフトマーカL1 ,L2
を設け(減速ドッグのOFF位置S1 から第2のシフト
マーカL2 までの距離をC寸法とする)、1回転信号P
2 から第2のシフトマーカL2 までのマーカシフト量E
を求める。即ち、減速ドッグのOFF位置S1 から機械
原点G0 までの距離(A寸法量)を検出する。このA寸
法量の検出により、減速ドッグのOFF位置S1 から1
回転信号P2 までの距離(A−F)が求まる。次に、減
速ドッグのOFF位置S1 から第2のシフトマーカL2
までの距離Cと距離(A−F)との差からマーカシフト
量Eを求め、パラメータ設定する。ついで、1回転信号
2 から機械原点G0 までの距離Fとマーカシフト量E
を用いて、減速ドッグOFF後最初の第2のシフトマー
カL2 から新たな機械原点G1 までの距離Dを求め、機
械原点シフト量Dとしてをパラメータ設定し、最終的な
機械原点G1 を再設定する。以上の操作により、面倒な
原点復帰減速用のドッグの位置調整をなくすことがで
き、総じて機械原点調整作業が容易にできる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The principle of the present invention will be described with reference to FIG. In the figure, (a) shows a state in which the limit switch or the like is turned on by the deceleration dog (S 0 position), and the deceleration signal output when this is turned on is turned off (S 1 position). (b) shows one rotation signal P 0 , which is output every one rotation of the ball screw when the mechanical moving part axially moves through the ball screw.
P 1, illustrates the position of P 2, (c) is a diagram showing the location of the first shift markers M 1, M 2 or the second shift marker L 1, L 2, (d ) the mechanical origin G 0 (or G 1) is a diagram showing the location of. In the machine origin adjustment work of the present invention, the first shift markers M 1 and M 2 are located at a position in the middle of one rotation signal (between P 1 and P 2 in FIG. 1) (one rotation signal P 2 to C dimension position). Is provided, and the machine origin G 0 is located at a position away from the first shift marker M 2 by the origin shift amount (B dimension amount). The distance from one rotation signal P 2 to the machine origin G 0 is defined as F dimension. Now, by setting the OFF position S 1 of the deceleration dog near the one-rotation signal P 2 , the OFF position S 1 of the deceleration dog becomes the reference position for adjustment. Therefore, OF of this deceleration dog
Second shift markers L 1 and L 2 centered on the F position S 1
Is provided (the distance from the deceleration dog OFF position S 1 to the second shift marker L 2 is C dimension), one rotation signal P
Marker shift amount E from 2 to the second shift marker L 2
Ask for. That is, the distance (A dimension amount) from the OFF position S 1 of the deceleration dog to the machine origin G 0 is detected. The deceleration dog's OFF position S 1 to 1
The distance to the rotation signal P 2 (A-F) is obtained. Next, from the OFF position S 1 of the deceleration dog to the second shift marker L 2
The marker shift amount E is obtained from the difference between the distance C to the distance C and the distance (AF), and the parameter is set. Then, the distance F from the one rotation signal P 2 to the machine origin G 0 and the marker shift amount E
Using, the distance D from the first second shift marker L 2 after deceleration dog OFF to the new machine origin G 1 is obtained, the parameter is set as the machine origin shift amount D, and the final machine origin G 1 is set. Reset. By the above operation, it is possible to eliminate the troublesome position adjustment of the dog for origin return deceleration, and the machine origin adjustment work can be generally facilitated.

【0007】次に、この発明のマーカ方式原点復帰調整
装置の一実施例について、図面に基づき説明する。図2
はこの発明のマーカ方式原点復帰調整装置のブロック図
である。1は中央処理装置(CPU)、2はコントロー
ルプログラムを記憶するROM、3は処理中のデータや
原点復帰パラメータ等を記憶するRAM、4はNCプロ
グラムを記憶するNCプログラムメモリ、5はNCプロ
グラムの指示に基づき機械軸を制御する軸制御手段、6
はアンプ、Mはサーボモータ、PGはサーボモータMの
パルス信号や1回転信号を検出し、軸制御手段5にフィ
ードバックする検出手段、7は入出力手段であり、イン
ターフェースI/Fを介してCPU1と接続されてい
る。7aはキーボード(KB)、7bはディスプレイ
(DPL)である。8は演算手段であり、この演算手段
8はマーカシフト量演算手段と第2原点シフト量演算手
段とからなる。マーカシフト量演算手段は1回転信号か
ら機械原点までの距離Fを第1マーカシフト量Cと第1
原点シフト量Bを加算して求め、減速信号オフ位置から
前記1回転信号までの距離を前記距離Fと距離Aとの差
から求め、この減速信号オフ位置から前記1回転信号ま
での距離と減速信号オフ位置から第2のシフトマーカま
での距離Cとの差から前記第2シフトマーカと前記減速
信号オフ位置から最初の1回転信号との間の距離である
第2マーカシフト量Eを求めるものである。また、第2
原点シフト量演算手段は第2マーカシフト量Eを用いて
前記最初の1回転信号から機械原点までの距離との差か
ら第2原点シフト量Dを求めるものである。9は指令パ
ルスのクロックを読み取りカウントする現在値カウンタ
であり、減速信号オフの位置から機械原点までの距離A
を検出しこの距離Aを減速信号オフ位置として出力す
る。10は減速用リミットスイッチ(LS)であり、機
械可動部を機械原点で停止する場合、機械原点近傍に減
速信号を出力するための手段(例えば、減速ドッグと減
速用リミットスイッチの組合せ)を設置し、リミットス
イッチ等が減速ドッグによりONし、このONした時出
力される減速信号がOFFした時を検知する。
Next, an embodiment of the marker type origin return adjusting device of the present invention will be described with reference to the drawings. Figure 2
FIG. 3 is a block diagram of a marker type origin return adjusting device of the present invention. 1 is a central processing unit (CPU), 2 is a ROM for storing a control program, 3 is a RAM for storing data being processed, origin return parameters, etc., 4 is an NC program memory for storing an NC program, and 5 is an NC program. Axis control means for controlling the machine axis based on the instruction, 6
Is an amplifier, M is a servo motor, PG is a detection means for detecting a pulse signal or one rotation signal of the servo motor M and feeding it back to the axis control means 5, 7 is an input / output means, and CPU 1 is provided via an interface I / F. Connected with. Reference numeral 7a is a keyboard (KB), and 7b is a display (DPL). Reference numeral 8 is a calculation means, and this calculation means 8 comprises a marker shift amount calculation means and a second origin shift amount calculation means. The marker shift amount calculation means calculates the distance F from the one rotation signal to the mechanical origin as the first marker shift amount C and the first marker shift amount C.
The origin shift amount B is added to obtain the distance from the deceleration signal off position to the one rotation signal from the difference between the distance F and the distance A. The distance from the deceleration signal off position to the one rotation signal and deceleration A second marker shift amount E, which is the distance between the second shift marker and the first one rotation signal from the deceleration signal off position, is obtained from the difference from the distance C from the signal off position to the second shift marker. Is. Also, the second
The origin shift amount calculation means uses the second marker shift amount E to obtain the second origin shift amount D from the difference from the distance from the first one rotation signal to the mechanical origin. 9 is a current value counter for reading and counting the command pulse clock, which is the distance A from the deceleration signal off position to the machine origin.
Is detected and this distance A is output as the deceleration signal OFF position. A deceleration limit switch (LS) 10 is provided with a means (for example, a combination of a deceleration dog and a deceleration limit switch) for outputting a deceleration signal in the vicinity of the machine origin when the movable part of the machine is stopped at the machine origin. Then, the limit switch or the like is turned on by the deceleration dog, and it is detected when the deceleration signal output when this is turned on is turned off.

【0008】図3はこの発明のマーカ方式原点復帰調整
処理の流れ図である。この流れ図に従ってこの発明のマ
ーカ方式原点復帰調整処理を説明する。CPU1は機械
原点の変更要求があるかどうか判断し(ステップ10
1)、変更要求があれば、機械原点近傍で減速信号出力
後のオフ位置から前記機械原点までの距離Aを検出し記
憶する(ステップ102)。即ち、減速ドッグのOFF
位置S1 から機械原点G0 までの距離(A寸法量)を検
出する。次にCPU1は機械可動部を移動する送り軸の
回転毎に出力される1回転信号と1回転信号間の半分の
距離にパラメータ設定された仮の第1マーカシフト量C
と、この第1シフトマーカから機械原点までの距離とし
てパラメータ設定された仮の第1原点シフト量Bとを加
算して前記1回転信号から機械原点までの距離Fを求め
て記憶する(ステップ103)。そして、減速ドッグの
OFF位置S1 から第2のシフトマーカL2 までの距離
Cと距離(A−F)との差から減速信号オフ位置から前
記1回転信号までの距離を求め、この減速信号オフ位置
から前記1回転信号までの距離と減速信号オフ位置から
1回転信号間の半分の距離Cにて設定された第2のシフ
トマーカまでの距離Cとの差から前記第2シフトマーカ
と前記減速信号オフ位置から最初の1回転信号との間の
距離である第2マーカシフト量Eを求めて記憶する(ス
テップ104)。ついで、1回転信号P2 から機械原点
0 までの距離Fとマーカシフト量Eを用いて、減速ド
ッグOFF後最初の第2のシフトマーカL 2 から新たな
機械原点G1 までの距離を求め、第2原点シフト量Dを
求める(ステップ105)。第2マーカシフト量Eと第
2原点シフト量Dが演算されると、第2マーカシフト量
Eと第2原点シフト量Dを前記最初の1回転信号から機
械原点までの新たなパラメータとして記憶し(ステップ
106)、機械原点G1 を再設定してこの発明の処理を
終了する。
FIG. 3 shows the marker system origin return adjustment of the present invention.
It is a flow chart of processing. The flow chart of this invention
The marker type home position return adjustment processing will be described. CPU1 is a machine
It is judged whether or not there is a request for changing the origin (step 10
1) If there is a change request, output a deceleration signal near the machine origin
The distance A from the later off position to the machine origin is detected and recorded.
Remember (step 102). That is, the deceleration dog is turned off
Position S1From machine origin G0Up to the distance (dimension A)
Put out. Next, the CPU 1 controls the feed shaft that moves the movable part of the machine.
One rotation signal output for each rotation and half of the one rotation signal
Temporary first marker shift amount C parameterized by distance
And the distance from the first shift marker to the mechanical origin
The temporary first origin shift amount B parameterized by
Calculate the distance F from the one rotation signal to the machine origin
It is stored (step 103). And of the slowdown dog
OFF position S1To the second shift marker L2Distance to
From the deceleration signal off position to the front from the difference between C and the distance (A-F)
Find the distance to one rotation signal and set the deceleration signal off position
To the one rotation signal and the deceleration signal off position
The second shift set at half the distance C between one rotation signal
From the difference from the distance C to the marker, the second shift marker
Between the deceleration signal off position and the first one revolution signal
The second marker shift amount E, which is the distance, is calculated and stored (
Step 104). Then, one rotation signal P2From machine origin
G0Using the distance F to the
First second shift marker L after switching off 2New from
Machine origin G1To the second origin shift amount D
(Step 105). Second marker shift amount E and
When the 2 origin shift amount D is calculated, the second marker shift amount is calculated.
E and the second origin shift amount D are calculated from the first one rotation signal.
It is stored as a new parameter up to the machine origin (step
106), machine origin G1Reset the process of this invention
finish.

【0009】[0009]

【発明の効果】以上説明したようにこの発明によれば、
減速信号がOFFした後の最初の1回転信号から通り過
ぎて止まった現在の機械原点に位置決めしてパラメータ
設定し、この現在の機械原点から減速信号OFF位置ま
での距離を求め、この減速信号OFF位置までの距離と
機械原点の位置から最寄りの1回転信号の位置を求め、
ついで前記減速信号OFF位置が真ん中になるようにシ
フトマーカ位置を設定し、このシフトマーカ位置と最寄
りの1回転信号の位置までの距離を求めると共に、現在
の機械原点とシフトマーカ位置間の原点シフト量を求
め、これらシフトマーカ量と原点シフト量を新たなパラ
メータとして再設定するように構成したから、原点復帰
パラメータが自動的に設定でき、面倒な原点復帰減速用
のドッグの位置調整をなくすことができ、総じて機械原
点調整作業が容易にできるという効果も有する。
As described above, according to the present invention,
Position and parameterize at the current machine origin that has passed and stopped from the first one rotation signal after the deceleration signal turned OFF, set the parameter, and find the distance from this current machine origin to the deceleration signal OFF position. Find the position of the nearest single rotation signal from the distance to and the position of the machine origin,
Then, the shift marker position is set so that the deceleration signal OFF position is in the middle, and the distance between this shift marker position and the position of the nearest one rotation signal is obtained, and the origin shift between the current mechanical origin and the shift marker position is performed. Since it is configured to find the amount and reset the shift marker amount and the home shift amount as new parameters, the home return parameter can be set automatically, eliminating the troublesome dog position adjustment for home return deceleration. This also has the effect of facilitating the machine origin adjustment work as a whole.

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

【図1】この発明の原理を説明する図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】この発明の数値制御装置のブロック図である。FIG. 2 is a block diagram of a numerical controller according to the present invention.

【図3】この発明の原点復帰調整処理の流れ図である。FIG. 3 is a flowchart of an origin return adjustment process of the present invention.

【図4】従来の原点復帰調整の説明図である。FIG. 4 is an explanatory diagram of a conventional origin return adjustment.

【図5】従来の原点復帰調整の説明図である。FIG. 5 is an explanatory diagram of a conventional origin return adjustment.

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

1…CPU 2…ROM 3…RAM 4…NCプログラムメモリ 5…軸制御手段 7…入出力手段 8…演算手段 9…現在値カウンタ 10…減速用リミットスイッチ 1 ... CPU 2 ... ROM 3 ... RAM 4 ... NC program memory 5 ... Axis control means 7 ... Input / output means 8 ... Calculation means 9 ... Present value counter 10 ... Limit switch for deceleration

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 機械可動部を所定位置から機械原点まで
移動する際に、送り軸の回転毎に1回転信号を出力する
送り軸駆動モータと、 前記機械可動部を機械原点で停止する場合、機械原点近
傍で減速信号を出力しこの減速信号をオフするための減
速信号出力手段と、 減速信号オフの位置から機械原点までの距離Aを検出し
この距離Aを減速信号オフ位置として記憶する減速信号
オフ位置検出手段と、 前記1回転信号と1回転信号間の距離の半分の距離Cの
位置に設けられ、前記1回転信号からの距離を仮の第1
マーカシフト量Cとしてパラメータ設定された仮の第1
シフトマーカと、 この第1シフトマーカから機械原点までの距離としてパ
ラメータ設定された仮の第1原点シフト量Bと、 前記減速信号オフ位置を中心として1回転信号間の距離
の半分の距離Cの位置に設定された第2シフトマーカ
と、 前記1回転信号から機械原点までの距離Fを第1マーカ
シフト量Cと第1原点シフト量Bを加算して求め、減速
信号オフ位置から前記1回転信号までの距離を前記距離
Fと距離Aとの差から求め、この減速信号オフ位置から
前記1回転信号までの距離と減速信号オフ位置から第2
のシフトマーカまでの距離Cとの差から前記第2シフト
マーカと前記減速信号オフ位置から最初の1回転信号と
の間の距離である第2マーカシフト量Eを求めるマーカ
シフト量演算手段と、 この第2マーカシフト量Eを用いて前記最初の1回転信
号から機械原点までの距離との差から第2原点シフト量
Dを求める第2原点シフト量演算手段と、 前記第1マーカシフト量Cと第1原点シフト量Bを記憶
すると共に、演算された第2マーカシフト量Eと第2原
点シフト量Dを前記最初の1回転信号から機械原点まで
の新たなパラメータとして記憶する記憶手段とを有する
ことを特徴とするマーカ方式原点復帰調整装置。
1. A feed shaft drive motor that outputs a single rotation signal for each rotation of the feed shaft when moving the machine movable part from a predetermined position to the machine origin, and when stopping the machine movable part at the machine origin, Deceleration signal output means for outputting a deceleration signal in the vicinity of the machine origin and turning off this deceleration signal, and distance A from the position where the deceleration signal is off to the machine origin is detected, and this distance A is stored as the deceleration signal off position. The signal-off position detection means is provided at a position of a distance C that is half the distance between the one rotation signal and the one rotation signal, and the distance from the one rotation signal is a first temporary value.
The temporary first parameterized as the marker shift amount C
A shift marker, a temporary first origin shift amount B parameterized as a distance from the first shift marker to the mechanical origin, and a distance C that is half the distance between one rotation signals centered on the deceleration signal OFF position. The second shift marker set to the position and the distance F from the one rotation signal to the machine origin are obtained by adding the first marker shift amount C and the first origin shift amount B, and the one rotation from the deceleration signal off position. The distance to the signal is obtained from the difference between the distance F and the distance A, and the distance from the deceleration signal off position to the one rotation signal and the deceleration signal off position is set to the second position.
Marker shift amount calculating means for obtaining a second marker shift amount E which is a distance between the second shift marker and the first one rotation signal from the deceleration signal off position, based on the difference from the distance C to the shift marker. Second origin shift amount calculating means for obtaining a second origin shift amount D from the difference from the distance from the first one rotation signal to the mechanical origin using the second marker shift amount E; and the first marker shift amount C. And a first origin shift amount B, and a storage means for storing the calculated second marker shift amount E and second origin shift amount D as new parameters from the first one rotation signal to the mechanical origin. A marker-type origin return adjusting device characterized by having.
【請求項2】 機械可動部を機械原点で停止する際に、
機械原点近傍で減速信号出力後のオフ位置から前記機械
原点までの距離Aを検出し記憶する手順と、 前記機械可動部を移動する送り軸の回転毎に出力される
1回転信号と1回転信号間の半分の距離にパラメータ設
定された仮の第1マーカシフト量Cと、この第1シフト
マーカから機械原点までの距離としてパラメータ設定さ
れた仮の第1原点シフト量Bとを加算して前記1回転信
号から機械原点までの距離Fを求めて記憶する手順と、 前記距離Fと距離Aとの差から減速信号オフ位置から前
記1回転信号までの距離を求め、この減速信号オフ位置
から前記1回転信号までの距離と減速信号オフ位置から
1回転信号間の半分の距離Cにて設定された第2のシフ
トマーカまでの距離Cとの差から前記第2シフトマーカ
と前記減速信号オフ位置から最初の1回転信号との間の
距離である第2マーカシフト量Eを求めて記憶する手順
と、 この第2マーカシフト量Eを用いて前記最初の1回転信
号から機械原点までの距離との差から第2原点シフト量
Dを求めて記憶する手順と、 第2マーカシフト量Eと第2原点シフト量Dを前記最初
の1回転信号から機械原点までの新たなパラメータとし
て記憶する手順とからなることを特徴とするマーカ方式
原点復帰調整方法。
2. When stopping the movable part of the machine at the machine origin,
A procedure for detecting and storing the distance A from the off position after the deceleration signal is output to the machine origin near the machine origin, and one rotation signal and one rotation signal output for each rotation of the feed shaft that moves the machine movable part. The temporary first marker shift amount C parameterized to half the distance and the temporary first origin shift amount B parameterized as the distance from the first shift marker to the machine origin are added to obtain the above. A procedure for obtaining and storing the distance F from the one rotation signal to the machine origin, and obtaining the distance from the deceleration signal off position to the one rotation signal from the difference between the distance F and the distance A, and from the deceleration signal off position to the above The second shift marker and the deceleration signal off position are calculated from the difference between the distance to the one rotation signal and the distance C from the deceleration signal off position to the half shift distance C between the one rotation signals to the second shift marker. Or A procedure for obtaining and storing a second marker shift amount E, which is a distance from the first one rotation signal, and a distance from the first one rotation signal to the machine origin, using the second marker shift amount E. From the procedure of obtaining and storing the second origin shift amount D from the difference and the procedure of storing the second marker shift amount E and the second origin shift amount D as new parameters from the first one rotation signal to the mechanical origin. The marker-based return-to-origin adjustment method characterized in that
JP12245593A 1993-05-25 1993-05-25 Marker type original point return controlling device and method Pending JPH06332533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12245593A JPH06332533A (en) 1993-05-25 1993-05-25 Marker type original point return controlling device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12245593A JPH06332533A (en) 1993-05-25 1993-05-25 Marker type original point return controlling device and method

Publications (1)

Publication Number Publication Date
JPH06332533A true JPH06332533A (en) 1994-12-02

Family

ID=14836277

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12245593A Pending JPH06332533A (en) 1993-05-25 1993-05-25 Marker type original point return controlling device and method

Country Status (1)

Country Link
JP (1) JPH06332533A (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
JPS6116568B2 (en)
US20190266296A1 (en) Machining simulation device of machine tool
EP0265607B1 (en) Numerically controlled machine tool
KR910006499B1 (en) Numerical controller
US4743823A (en) Method and device for correcting backlash
JP2005313280A (en) Numerical control device
US4662122A (en) Numerically controlled grinding machine
US6225772B1 (en) Acceleration/deceleration control method for numerical control, and numerical control device
KR20010102098A (en) Drive controller for machine tool
JPH06332533A (en) Marker type original point return controlling device and method
JPH046535B2 (en)
US5670857A (en) Method of returning to an absolute zero point for use by an industrial controller
US5485069A (en) Numerical control apparatus
US5034672A (en) Reference-point return method
JPH0869326A (en) Positioning controller
EP0380697A1 (en) Method of returning to origin
US5081407A (en) Numerical control apparatus
JPH08276473A (en) Method and apparatus for controlling metering of injection molding machine
JP2001071235A (en) Numerical control device
WO1989002104A1 (en) Spindle control method and numerical controller
JP2824649B2 (en) Spindle controller
JPH0553621A (en) Original point return system
JPH07106536B2 (en) NC machine tool origin position correction device
WO1990010899A1 (en) Numerical control device for transfer machine
JPS6125755A (en) Copy controller associated with position correcting function of tracer head