JPH0844413A - Nc device provided with origin restoring method and auxiliary origin restoring method for nc machine tool - Google Patents

Nc device provided with origin restoring method and auxiliary origin restoring method for nc machine tool

Info

Publication number
JPH0844413A
JPH0844413A JP17434094A JP17434094A JPH0844413A JP H0844413 A JPH0844413 A JP H0844413A JP 17434094 A JP17434094 A JP 17434094A JP 17434094 A JP17434094 A JP 17434094A JP H0844413 A JPH0844413 A JP H0844413A
Authority
JP
Japan
Prior art keywords
origin
machine
auxiliary
deceleration signal
movable part
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
JP17434094A
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 JP17434094A priority Critical patent/JPH0844413A/en
Publication of JPH0844413A publication Critical patent/JPH0844413A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Control Of Position Or Direction (AREA)

Abstract

PURPOSE:To provide an NC device provided with an origin restoring method and an auxiliary origin restoring method capable of setting up a machine coordinate system by attaining auxiliary origin restoration other than restoration to the origin of a machine when a machine movable part can not be moved to the direction of the machine origin due to a mechanical problem. CONSTITUTION:When machine origin restoring operation is not completed yet even after commanding machine origin restoration because a machine movable part can not be moved to the machine original direction due to a mechanical problem, an auxiliary origin restoration command is outputted and the machine movable part is moved to a restoring direction (the reverse direction of the origin restoring direction) set up by a parameter. Then the machine movable part is stopped on the auxiliary origin by the use of a distance B after outputting a deceleration signal outputted by abutting dogs 31, 32 fixed on the machine movable part upon limit switches 33a, 33b for decelerating an auxiliary origin which are arranged in the vicinity of the auxiliary machine origin. Then a machine coordinate system after executing origin restoration is set up by the use of an inter-origin distance (an off value) C from the machine origin up to the auxiliary machine origin.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、電源投入後の原点復
帰において、機構上の問題で機械原点の方向に動かすこ
とができず、機械原点への復帰が出来ないとき、機械原
点以外の補助原点に復帰することにより、唯一の機械座
標系を設定するNC工作機械の原点復帰方法および補助
原点復帰方法を備えたNC装置に関する。
BACKGROUND OF THE INVENTION The present invention relates to an auxiliary operation other than the mechanical origin when the origin cannot be returned to the mechanical origin due to a mechanical problem when returning to the mechanical origin after power is turned on. The present invention relates to an NC device having an NC machine tool origin return method and an auxiliary origin return method for setting a unique machine coordinate system by returning to the origin.

【0002】[0002]

【従来の技術】インクレメンタルタイプの検出器でフィ
ードバックを行うNC工作機械の場合、NC工作機械に
電源を投入した後、機械可動部と制御系とを一致させる
ために、NC工作機械の所定の位置に設定してある機械
原点に各機械可動部を移動停止させ、機械座標系を設定
する原点復帰動作を行う必要がある。そして、加工の際
は、機械原点を基点とする機械座標系または機械原点よ
り所定量離間した位置に設定されるプログラム原点を基
点とするワーク座標系で、各機械可動部は移動、位置決
め制御される。なお、機械可動部を機械原点に原点復帰
させる場合、手動またはプログラム指令などにより指令
される原点復帰信号で、サーボモータを駆動して機械可
動部を所定の軸方向(機械原点方向)に移動させる。そ
して、機械原点近傍の機械固定部に減速信号を出力する
ための減速信号出力手段(例えば、減速用ドッグとリミ
ットスイッチ、近接スイッチ等検出部材との組み合わ
せ)を設置し、リミットスイッチが減速用ドッグを踏む
ことにより作動して、機械可動部の移動速度を早送り速
度より所定の減速速度(パラメータメモリに設定されて
いる速度)に減速させるとともに、減速信号をPC(プ
ログラマブル・コントローラ)を介してNC装置に出力
する。更に、機械可動部が減速信号で移動し、リミット
スイッチが減速用ドッグを踏み外した後のグリット位置
で停止するように調整される。次に、従来の原点復帰方
法の具体例を説明すると、例えば、図6にて示すよう
に、減速ドッグを減速用リミットスイッチが踏み外して
減速信号がOFFとなるOFF位置S1 をグリット(P
1 ,P2 )間のほぼ真中に合わせ、減速用リミットスイ
ッチよりの減速信号がOFFした後の最初の1回転信号
を通り過ぎてグリットP2 までの距離(D1 寸法の距
離)を計測し、このD1 寸法の距離をマーカシフト量と
してパラメータ設定することにより機械原点を調整す
る。
2. Description of the Related Art In the case of an NC machine tool that performs feedback with an incremental type detector, after turning on the power of the NC machine tool, a predetermined machine tool of the NC machine tool is used to match the moving parts of the machine with the control system. It is necessary to stop the movement of each machine movable part to the machine origin set in the position and perform the origin return operation to set the machine coordinate system. During machining, each machine movable part is controlled to move and position in the machine coordinate system with the machine origin as the base point or the work coordinate system with the program origin as the base point set at a position separated from the machine origin by a predetermined amount. It When returning the machine movable part to the machine origin, the servo motor is driven by the origin return signal manually or by a program command to move the machine movable part in the predetermined axis direction (machine origin direction). . Then, a deceleration signal output means (for example, a combination of a deceleration dog and a detection member such as a limit switch and a proximity switch) for outputting a deceleration signal is installed on the machine fixed part near the machine origin, and the limit switch is the deceleration dog. It operates by depressing to decelerate the moving speed of the movable part of the machine from the fast-forward speed to a predetermined deceleration speed (speed set in the parameter memory), and sends a deceleration signal to the NC via a PC (programmable controller). Output to the device. Further, the machine movable portion is moved by the deceleration signal, and the limit switch is adjusted so as to stop at the grid position after stepping off the deceleration dog. Next, a specific example of the conventional origin return method will be described. For example, as shown in FIG. 6, the OFF position S 1 at which the deceleration signal is turned off when the deceleration dog depresses the deceleration limit switch and the deceleration signal is turned off.
1 and P 2 ), and measure the distance (distance of D 1 ) to the grit P 2 after passing the first one rotation signal after the deceleration signal from the deceleration limit switch is turned off. The machine origin is adjusted by parameterizing the distance of this D 1 dimension as the marker shift amount.

【0003】[0003]

【発明が解決しようとする課題】ところで、電源投入後
の原点復帰において、機構上の問題で機械原点の方向に
動かすことができず、機械原点への復帰動作が出来ない
場合がある。例えば、自動パレット交換装置(APC)
のパレット交換動作をテーブルの軸移動を利用して行う
NC工作機械においては、APCの移動軸とテーブルの
移動軸が共用されている。このようなNC工作機械にお
いて、APC動作中に非常停止や停電などがおきる場合
がある。その場合には、一時停止したパレットが移動軸
と係合している状態のため、移動軸を機械原点の方向に
動かすことができない。即ち、機械原点へ原点復帰させ
る方向にテーブルを動かすことができないから、当然、
機械原点近傍に設けられた減速用ドッグやリミットスイ
ッチを用いることができず、機械原点への復帰動作を行
うことができない。以上からこの発明は、前記課題に鑑
みて創案されたものであり、機構上の問題で機械原点の
方向に動かすことができない場合であっても、機械原点
以外の補助原点を設け、この補助原点に原点復帰させる
ことにより機械原点を設定させることができるNC工作
機械の原点復帰方法および補助原点復帰方法を備えたN
C装置を提供することを目的とする。
By the way, when returning to the origin after the power is turned on, it may not be possible to move toward the origin of the machine due to a mechanical problem, and the returning operation to the origin of the machine may not be possible. For example, automatic pallet changer (APC)
In the NC machine tool that performs the pallet exchange operation using the axis movement of the table, the movement axis of the APC and the movement axis of the table are shared. In such an NC machine tool, an emergency stop or a power failure may occur during APC operation. In that case, since the temporarily stopped pallet is engaged with the moving shaft, the moving shaft cannot be moved toward the machine origin. That is, since the table cannot be moved in the direction of returning to the mechanical origin, naturally,
The deceleration dog or limit switch provided near the machine origin cannot be used, and the return operation to the machine origin cannot be performed. From the above, the present invention was devised in view of the above problems, and even if the mechanical origin cannot be moved in the direction of the mechanical origin, an auxiliary origin other than the mechanical origin is provided. NC equipped with a method for returning to the origin of a NC machine tool that can set the machine origin by returning to the
It is intended to provide a C device.

【0004】[0004]

【課題を解決するための手段】前記課題を解決するため
に、この発明のNC工作機械の原点復帰方法は機械固定
部と機械可動部との間の所定の位置に減速信号出力手段
を設け、原点復帰指令により、前記機械可動部を原点復
帰方向にサーボモータによる早送り速度で移動させ、前
記減速信号出力手段より減速信号が出力したときに、送
り速度を所定の減速速度に減速させて、さらに、前記機
械可動部を原点復帰方向に移動させ、前記減速信号出力
手段より減速信号が出力されなくなった後の、最初の前
記サーボモータの一回転信号位置をグリット位置と定
め、このグリット位置またはこのグリット位置より予め
メモリに設定されている所定距離D離間した位置を機械
原点と定め、この機械原点に前記機械可動部を停止させ
るとともに、この機械原点を基点とする機械座標系を設
定するNC工作機械の原点復帰方法において、前記機械
固定部と前記機械可動部との間に、前記減速信号出力手
段と所定量離間した位置に、かつ、前記機械可動部が原
点復帰方向と反対方向に移動するように補助原点用減速
信号出力手段を設け、補助原点復帰指令により、前記機
械可動部を原点復帰方向の反対方向に前記サーボモータ
による早送り速度で移動させ、前記補助原点用減速信号
出力手段より減速信号が出力したときに、送り速度を所
定の減速速度に減速させて、さらに、前記機械可動部を
原点復帰方向の反対方向に移動させ、前記減速信号出力
手段から減速信号が出力した後の最初の前記グリット位
置より、予めメモリに記憶されている所定距離B離間し
た位置を補助機械原点と定め、この補助機械原点に前記
機械可動部を停止させ、予めメモリに記憶されている前
記機械原点から前記補助機械原点までの距離Cを読み出
し、前記機械原点から前記補助機械原点までの距離によ
り、前記補助機械原点に原点復帰した前記機械可動部の
位置を、前記機械原点を基点とする機械座標系に変換し
て設定することを特徴とする。
In order to solve the above-mentioned problems, the method for returning to the origin of the NC machine tool of the present invention provides deceleration signal output means at a predetermined position between the machine fixed part and the machine movable part. In response to a home position return command, the movable part of the machine is moved in the home position return direction at a fast feed speed by a servo motor, and when a deceleration signal is output from the deceleration signal output means, the feed speed is decelerated to a predetermined deceleration speed. , The first movable signal rotation position of the servo motor after the deceleration signal output means stops outputting the deceleration signal is defined as the grit position, and this grit position or this grit position A position separated from the grid position by a predetermined distance D set in the memory in advance is defined as a machine origin, and the machine movable part is stopped at this machine origin, and In an origin return method for an NC machine tool that sets a machine coordinate system having an origin as a base point, a position separated from the deceleration signal output means by a predetermined amount between the machine fixed part and the machine movable part, and An auxiliary origin deceleration signal output means is provided so that the machine moving part moves in the direction opposite to the home return direction, and the machine moving part is driven at the rapid feed speed by the servo motor in the direction opposite to the home return direction by the auxiliary home return command. When the deceleration signal is output from the auxiliary origin deceleration signal output means, the feed speed is decelerated to a predetermined deceleration speed, and further, the machine movable part is moved in the direction opposite to the origin return direction, A position separated from the first grid position after the deceleration signal is output from the deceleration signal output means by a predetermined distance B previously stored in the memory is defined as the auxiliary machine origin, and this auxiliary machine origin is set. The machine moving part is stopped at the machine origin, the distance C from the machine origin to the auxiliary machine origin stored in advance in memory is read out, and the auxiliary machine origin is determined by the distance from the machine origin to the auxiliary machine origin. The position of the machine movable part returned to the origin is converted into a machine coordinate system having the machine origin as a base point and set.

【0005】また、この発明の補助原点復帰方法を備え
たNC装置は、機械固定部と機械可動部との間の所定の
位置に設けられた減速信号出力手段と、前記機械可動部
を移動位置決め制御させるとともに、一回転毎に一回転
信号を送出するサーボモータと、前記減速信号出力手段
より減速信号が出力されなくなった後の、最初の前記サ
ーボモータの一回転信号位置であるグリット位置と、こ
のグリット位置またはこのグリット位置より予めメモリ
に設定されている所定量分離間した位置に定められた機
械原点と、前記機械固定部と前記機械可動部との間に、
前記減速信号出力手段と所定量離間した位置に、かつ、
前記機械可動部が原点復帰方向と反対方向に移動するよ
うに設けられた補助原点用減速信号出力手段と、前記減
速信号出力手段より減速信号が出力した後の最初の前記
グリット位置より補助機械原点までの距離を記憶してい
る第1のメモリと、この第1のメモリに記憶されている
前記グリッド位置より補助機械原点までの距離により定
められる補助機械原点と、前記機械原点と前記補助機械
原点までの距離を記憶している第2のメモリと、前記機
械可動部が補助機械原点に原点復帰したとき、前記第2
のメモリに記憶されている前記機械原点と前記補助機械
原点までの距離により、前記機械原点を基点とする機械
座標系を設定する機械座標系設定手段と、前記減速信号
出力手段、前記補助原点用減速信号出力手段、前記サー
ボモータおよび前記機械座標系設定手段を統轄制御する
中央処理手段とからなることを特徴とする。
Further, in the NC device provided with the auxiliary origin returning method of the present invention, the deceleration signal output means provided at a predetermined position between the machine fixed part and the machine movable part, and the machine movable part are moved and positioned. A servo motor that controls and sends a rotation signal for each rotation, and a grit position that is the first rotation signal position of the servo motor after a deceleration signal is no longer output from the deceleration signal output means, Between this grit position or the machine origin determined at a position separated by a predetermined amount preset in the memory from this grit position, between the machine fixed part and the machine movable part,
At a position separated from the deceleration signal output means by a predetermined amount, and
Auxiliary origin deceleration signal output means provided so that the machine movable part moves in the direction opposite to the origin return direction, and the auxiliary machine origin from the first grit position after the deceleration signal is output from the deceleration signal output means. To the auxiliary machine origin determined by the distance from the grid position stored in the first memory to the auxiliary machine origin, the machine origin and the auxiliary machine origin. The second memory storing the distance to the second machine, and the second section when the machine moving part returns to the origin of the auxiliary machine.
Machine coordinate system setting means for setting a machine coordinate system with the machine origin as a base point according to the distance between the machine origin and the auxiliary machine origin stored in the memory, the deceleration signal output means, and the auxiliary origin. It is characterized by comprising a deceleration signal output means, a central processing means for controlling and controlling the servo motor and the mechanical coordinate system setting means.

【0006】[0006]

【作用】機械原点復帰が指令されて後、機械可動部が機
構上の問題で機械原点方向に移動できず機械原点復帰動
作が未完了の場合は、補助原点復帰指令が出力され、前
記機械可動部が前記パラメータ設定された復帰方向(原
点復帰方向の反対方向)に移動する。ついで、前記機械
可動部に固設されたドッグが前記補助機械原点近傍の補
助原点減速用リミットスイッチに当接し出力される減速
信号出力後に前記距離Bを用いて機械可動部を補助原点
に停止させる。しかる後、前記機械原点から前記補助機
械原点までの原点間距離(オフセット量)Cを用いて原
点復帰後の機械座標系を設定する。
[Function] After the machine origin return command is issued, if the machine movable part cannot move in the machine origin direction due to a mechanical problem and the machine origin return operation is incomplete, an auxiliary origin return command is output and the machine move The unit moves in the return direction in which the parameter is set (the direction opposite to the home return direction). Then, after the dog fixedly mounted on the machine movable part comes into contact with the auxiliary origin deceleration limit switch near the auxiliary machine origin and a deceleration signal is output, the machine movable part is stopped at the auxiliary origin using the distance B. . Thereafter, the machine coordinate system after the origin return is set using the distance (offset amount) C between the origins from the machine origin to the auxiliary machine origin.

【0007】[0007]

【実施例】この発明のNC工作機械の原点復帰方法およ
び補助原点復帰方法を備えたNC装置の一実施例を図面
に基づき説明する。図1はこの発明の原点復帰方法の概
略説明図である。30は機械可動部(テーブル)、35
はテーブル30に固着されたナットであり、このテーブ
ル30は図示しないガイドレール上を所定軸方向に移動
する。なお、このテーブル30の移動はサーボモータM
に連結されたボールねじ34をナット35に螺合しサー
ボモータMを所定量回転させることによって行われる。
31はテーブル30に固設されたドッグ、33aが機械
原点G0 近傍の機械固定部(図示せず)に設けられた減
速用リミットスイッチである。ドッグ31が減速用リミ
ットスイッチ33aに当接することにより出力される減
速信号の出力停止後のグリッド位置から機械原点G0
での距離Aを記憶しておき、テーブル30を原点復帰さ
せる際に、前記減速信号と距離Aを用いてテーブル30
を機械原点に停止させる。G1 は機械原点G0 とは異な
る位置に設置される補助機械原点(以下、補助原点と記
載)である。32はテーブル30に固設された補助原点
ドッグ、33bは補助原点G1 近傍の機械固定部に設け
られた補助原点減速用リミットスイッチである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of an NC device equipped with an origin returning method and an auxiliary origin returning method for an NC machine tool according to the present invention will be described with reference to the drawings. FIG. 1 is a schematic explanatory view of the origin returning method of the present invention. 30 is a machine movable part (table), 35
Is a nut fixed to the table 30, and the table 30 moves on a guide rail (not shown) in a predetermined axial direction. The table 30 is moved by the servo motor M.
It is performed by screwing the ball screw 34 connected to the nut 35 into the nut 35 and rotating the servomotor M by a predetermined amount.
Reference numeral 31 is a dog fixed to the table 30, and 33a is a deceleration limit switch provided on a machine fixing portion (not shown) near the machine origin G 0 . The distance A from the grid position after the output of the deceleration signal output when the dog 31 comes into contact with the deceleration limit switch 33a to the machine origin G 0 is stored, and when the table 30 is returned to the origin, the distance A is stored. Table 30 using deceleration signal and distance A
Stop at the machine origin. G 1 is an auxiliary machine origin (hereinafter referred to as an auxiliary origin) installed at a position different from the machine origin G 0 . Reference numeral 32 is an auxiliary origin dog fixedly mounted on the table 30, and 33b is a limit switch for auxiliary origin deceleration provided on a machine fixing portion near the auxiliary origin G 1 .

【0008】図3はこの発明の補助原点復帰方法を備え
たNC装置のブロック図である。1は中央処理手段(C
PU)、2はコントロールプログラムを記憶するRO
M、3は処理中のデータを記憶するRAM、4は不揮発
性メモリ、4aはパラメータメモリである。パラメータ
メモリ4aには機械原点への復帰方向、機械原点側のグ
リッド位置から機械原点までの距離A、機械原点への復
帰方向と異なる方向である補助原点への復帰方向、補助
原点側のグリッド位置から補助原点までの距離B、機械
原点から補助原点までの距離C、減速速度がパラメータ
として設定されている。5はNCプログラムを記憶する
NCプログラムメモリ、6は位置レジスタ、7はCRT
制御回路、8はCRT画面、9はキーボード、10はN
Cプログラムの指令に基づき各軸のサーボモータMを制
御するサーボ制御回路、10aはアンプ、PGはサーボ
モータMが回転することにより発生するパルス信号や1
回転信号を検出し、サーボ制御回路10に速度および位
置のフィードバックを行うための検出手段である。11
はPC(プログラマブル・コントローラ)、12は機械
原点復帰用の減速用リミットスイッチ33aと補助原点
復帰用の補助原点減速用リミットスイッチ33bに接続
する入出力回路である。13は機械座標系設定手段であ
り、この機械座標系設定手段13は機械可動部(テーブ
ル)が補助機械原点に原点復帰したとき、距離Cにより
機械原点を基点とする機械座標系を設定する手段であ
る。
FIG. 3 is a block diagram of an NC device equipped with the auxiliary origin return method of the present invention. 1 is a central processing means (C
PU), 2 is an RO for storing a control program
M, 3 are RAMs for storing data being processed, 4 is a non-volatile memory, and 4a is a parameter memory. In the parameter memory 4a, the return direction to the machine origin, the distance A from the machine origin grid position to the machine origin, the return direction to the auxiliary origin that is different from the return direction to the machine origin, and the grid position on the auxiliary origin side To the auxiliary origin, the distance B from the mechanical origin to the auxiliary origin, and the deceleration speed are set as parameters. 5 is an NC program memory for storing an NC program, 6 is a position register, and 7 is a CRT
Control circuit, 8 CRT screen, 9 keyboard, 10 N
A servo control circuit for controlling the servomotor M of each axis based on the command of the C program, 10a is an amplifier, PG is a pulse signal generated by the rotation of the servomotor M, or 1
It is a detection means for detecting the rotation signal and feeding back the speed and position to the servo control circuit 10. 11
Is a PC (programmable controller), and 12 is an input / output circuit connected to the deceleration limit switch 33a for mechanical origin return and the auxiliary origin deceleration limit switch 33b for auxiliary origin return. Reference numeral 13 denotes a machine coordinate system setting means, and this machine coordinate system setting means 13 sets a machine coordinate system with the machine origin as a base point by the distance C when the machine movable part (table) returns to the origin of the auxiliary machine. Is.

【0009】図2はこの発明の補助原点による原点復帰
方法を説明するための流れ図である。以下、図2に基づ
いてこの発明の補助原点による原点復帰方法の処理を説
明する。原点復帰の際のテーブル30の移動方向や機械
原点側のグリッド位置から機械原点までの距離Aをパラ
メータメモリ4aに設定する。また、補助原点復帰の際
のテーブル30の移動方向や補助原点側のグリット位置
から補助原点までの距離Bもパラメータメモリ4aに設
定する。更に、機械原点G0 から補助原点G1 までの距
離も原点間距離Cとしてパラメータメモリ4aに設定す
る。この設定は、NC工作機械の組立、調整時に予め設
定されている。また、減速用リミットスイッチ33a,
33bをドッグ31,32が踏んで減速信号が出力され
たときに、テーブル30の速度を減速させる減速速度も
パラメータメモリ4aに設定されている(ステップ2
1)。原点復帰が指令されると、PC11によりテーブ
ル30が所定の移動方向に移動する。しかし、機構上の
問題で原点復帰できない場合(即ち、機械原点復帰動作
が未完了の場合)、補助原点復帰指令が指令される。補
助原点復帰指令が指令されると、サーボモータMにより
テーブル30が補助原点復帰の移動方向に早送り速度で
移動し、テーブル30に固設されたドッグ32が減速用
リミットスイッチ33bに当接し、減速信号出力後に移
動速度を減速速度に減速し、グリットよりの距離Bを用
いてテーブル30を補助原点G1 に停止させる(ステッ
プ22)。ついで、機械座標系設定手段13は、機械原
点G0 から補助原点G1 までの原点間距離(オフセット
量)Cを位置レジスタ6に設定する。このことにより、
機械原点G0 から補助原点G1 までの原点間距離Cを用
いて原点復帰後の機械座標系、すなわち機械原点を基点
とする機械座標系を設定し(ステップ23)、原点復帰
処理を終了する。
FIG. 2 is a flow chart for explaining the origin return method by the auxiliary origin of the present invention. The process of the origin return method using the auxiliary origin of the present invention will be described below with reference to FIG. The moving direction of the table 30 when returning to the origin and the distance A from the machine origin side grid position to the machine origin are set in the parameter memory 4a. Further, the moving direction of the table 30 when returning to the auxiliary origin and the distance B from the grid position on the auxiliary origin side to the auxiliary origin are also set in the parameter memory 4a. Further, the distance from the mechanical origin G 0 to the auxiliary origin G 1 is also set in the parameter memory 4a as the distance C between the origins. This setting is preset when assembling and adjusting the NC machine tool. In addition, the deceleration limit switch 33a,
The deceleration speed for decelerating the speed of the table 30 when the deceleration signal is output when the dogs 31, 32 step on 33b is also set in the parameter memory 4a (step 2).
1). When the return-to-origin command is given, the PC 11 moves the table 30 in a predetermined moving direction. However, if the origin cannot be returned due to a mechanical problem (that is, the mechanical origin return operation is not completed), an auxiliary origin return command is issued. When the auxiliary origin return command is issued, the table 30 is moved by the servomotor M in the moving direction of the auxiliary origin return at a fast-forward speed, and the dog 32 fixed to the table 30 contacts the deceleration limit switch 33b to decelerate. After the signal is output, the moving speed is reduced to the decelerating speed, and the table 30 is stopped at the auxiliary origin G 1 using the distance B from the grid (step 22). Then, the machine coordinate system setting means 13 sets the distance (offset amount) C between the origins from the machine origin G 0 to the auxiliary origin G 1 in the position register 6. By this,
Using the distance C between the origins from the machine origin G 0 to the auxiliary origin G 1, the machine coordinate system after the origin return, that is, the machine coordinate system with the machine origin as the base point is set (step 23), and the origin return processing ends. .

【0010】図4はこの発明の補助原点復帰処理の際の
タイムチャートである。このタイムチャートに基づき、
図3のNC装置の補助原点復帰処理を更に詳しく説明す
る。AZRQnは第n軸の補助原点復帰要求信号を示
し、機構上の問題で原点復帰できず機械原点復帰が未完
了の場合、CPU1により補助原点復帰指令が出力され
る。このAZRQnは出力された(「1」になった)
後、第n軸の補助原点復帰完了信号(ZRNCn)の立
ち上がり(「1」)によりAZRQnは「0」に戻る。
+Jn/-Jn は軸移動指令であり、AZRQn信号とZRN
信号の立ち上がりにより軸移動がパラメータメモリ4a
に設定された移動方向にサーボモータMの駆動で開始さ
れる。早送り速度で軸移動が開始されると、テーブル3
0に固設されたドッグ32が補助原点近傍に設けられた
減速用リミットスイッチ33bに当接し、減速信号(*
DECn)が「1」より「0」になることにより減速信
号が出力され、移動速度がパラメータメモリ4aに設定
されている減速速度に減速される。ドッグ32が移動し
減速用リミットスイッチ33aの動作範囲を通過する
と、減速用リミットスイッチ33bよりの減速信号はO
FF(「1」)となる。減速用リミットスイッチ33b
がOFFとなると、CPU1はグリッド位置から補助原
点までの距離Bに基づきテーブル30を補助原点G1
停止させる。テーブル30が補助原点G1 に停止する
と、第n軸の補助原点復帰完了信号(ZRNCn)が立
ち上がり(「1」)、AZRQnが「0」に戻る。この
後、CPU1は機械座標系設定手段13を用いて機械原
点から補助原点までの原点間距離Cを用いて機械原点G
0 を基点とする機械座標系を設定する。なお、図4の距
離Dは減速用リミットスイッチよりの減速信号がOFF
した後の最初の1回転信号を通り過ぎてグリットまでの
距離(マーカシフト量)を示す。
FIG. 4 is a time chart in the auxiliary origin return process of the present invention. Based on this time chart,
The auxiliary origin return process of the NC device of FIG. 3 will be described in more detail. AZRQn indicates an auxiliary origin return request signal for the nth axis. If the origin cannot be returned due to a mechanical problem and the mechanical origin return is not completed, the CPU 1 outputs an auxiliary origin return command. This AZRQn was output (became "1")
Thereafter, AZRQn returns to "0" by the rising ("1") of the auxiliary origin return completion signal (ZRNCn) of the nth axis.
+ Jn / -Jn is the axis movement command, and the AZRQn signal and ZRN
Parameter movement 4a due to rising of signal
The driving is started by driving the servomotor M in the moving direction set to. When the axis movement is started at the rapid feed speed, the table 3
The dog 32 fixed to 0 contacts the deceleration limit switch 33b provided near the auxiliary origin, and the deceleration signal (*
When DECn) changes from "1" to "0", a deceleration signal is output and the moving speed is decelerated to the deceleration speed set in the parameter memory 4a. When the dog 32 moves and passes the operating range of the deceleration limit switch 33a, the deceleration signal from the deceleration limit switch 33b becomes O.
It becomes FF ("1"). Deceleration limit switch 33b
When is turned off, the CPU 1 stops the table 30 at the auxiliary origin G 1 based on the distance B from the grid position to the auxiliary origin. When the table 30 stops at the auxiliary origin G 1 , the auxiliary origin return completion signal (ZRNCn) for the nth axis rises (“1”) and AZRQn returns to “0”. After that, the CPU 1 uses the machine coordinate system setting means 13 to use the machine origin G from the machine origin to the auxiliary origin and the machine origin G.
Set the machine coordinate system with 0 as the base point. For the distance D in Fig. 4, the deceleration signal from the deceleration limit switch is OFF.
It shows the distance (marker shift amount) to the grid after passing the first one rotation signal after.

【0011】図5はこの発明の別の実施例の概略説明図
である。この図5の実施例では減速用リミットスイッチ
33を1個使用した場合を示している。即ち、図5に示
すように機械原点と補助原点が近くに設けることが可能
な場合である。かかる場合は、機械原点用ドッグ31と
補助原点用ドッグ32の2個のドッグの間に減速用リミ
ットスイッチ33を設置する。そして、機械原点復帰の
際は図面右方向にテーブル30を動かし、機械原点用ド
ッグ31に当接させて減速信号を出力させる。また、補
助原点復帰の際は図面左方向にテーブル30を動かし、
補助原点用ドッグ32に当接させて減速信号を出力させ
る。このように、減速用リミットスイッチは必ずしも2
個以上有る必要はなく、機械原点と補助原点とを近くに
設けることが可能な場合は減速用リミットスイッチが1
個でもこの発明は成立する。上記実施例においては、機
械可動部にドッグ、機械固定部に検出部材(減速用リミ
ットスイッチ等)を設けた例で説明しているが、機械可
動部(テーブル)に検出部材、機械固定部にドッグを設
けてもよい。
FIG. 5 is a schematic explanatory view of another embodiment of the present invention. The embodiment of FIG. 5 shows the case where one deceleration limit switch 33 is used. That is, as shown in FIG. 5, the mechanical origin and the auxiliary origin can be provided close to each other. In such a case, the deceleration limit switch 33 is installed between the two dogs, the mechanical origin dog 31 and the auxiliary origin dog 32. When returning to the mechanical origin, the table 30 is moved to the right in the drawing and brought into contact with the mechanical origin dog 31 to output a deceleration signal. When returning to the auxiliary origin, move the table 30 to the left in the drawing,
It is brought into contact with the auxiliary origin dog 32 to output a deceleration signal. Thus, the deceleration limit switch is not always 2
It is not necessary to have more than one, and if the machine origin and the auxiliary origin can be installed near each other, the limit switch for deceleration
The present invention can be realized with individual pieces. In the above embodiment, the dog is provided in the machine movable part, and the detection member (deceleration limit switch etc.) is provided in the machine fixed part. However, the detection member and the machine fixed part are provided in the machine moving part (table). A dog may be provided.

【0012】[0012]

【発明の効果】以上説明したようにこの発明によれば、
機械原点以外の複数の補助原点に停止し、補助原点グリ
ッド位置から機械原点までの原点間距離によりオフセッ
トできるように構成したから、機械可動部が機構上の問
題で機械原点方向に移動できず機械原点復帰ができない
場合においても、補助原点復帰指令により、機械可動部
を補助原点に停止させ、前記機械原点から前記補助原点
までの原点間距離Cを用いて機械原点を基点とする機械
座標系を設定することができ、通常のNC工作機械と同
様の制御ができるという効果を有する。
As described above, according to the present invention,
Since it is configured to stop at multiple auxiliary origins other than the machine origin and to be able to offset by the distance between the origins from the auxiliary origin grid position to the machine origin, the movable part of the machine cannot move toward the machine origin due to mechanical problems. Even if the origin return is not possible, the auxiliary machine return command stops the machine moving part to the auxiliary origin, and the machine coordinate system with the machine origin as the base point is used by using the distance C between the machine origin and the auxiliary origin. This has the effect that it can be set and the same control as a normal NC machine tool can be performed.

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

【図1】この発明の原点復帰方法の概略説明図である。FIG. 1 is a schematic explanatory diagram of an origin returning method of the present invention.

【図2】この発明の原点復帰方法の処理の流れ図であ
る。
FIG. 2 is a flow chart of processing of the origin return method of the present invention.

【図3】この発明の原点復帰方法を用いた数値制御装置
のブロック図である。
FIG. 3 is a block diagram of a numerical control device using the origin return method of the present invention.

【図4】この発明の補助原点復帰処理の際のタイムチャ
ートである。
FIG. 4 is a time chart in the auxiliary origin return processing of the present invention.

【図5】この発明の別の実施例の概略説明図である。FIG. 5 is a schematic explanatory view of another embodiment of the present invention.

【図6】従来の原点復帰処理の際のタイムチャートであ
る。
FIG. 6 is a time chart of a conventional origin return process.

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

1…CPU 2…ROM 3…RAM 4a…パラメータメモリ 5…NC加工プログラムメモリ 10…サーボ制御回路 11…PC 30…テーブル 31,32…ドッグ 33,34…減速用リミットスイッチ 1 ... CPU 2 ... ROM 3 ... RAM 4a ... Parameter memory 5 ... NC machining program memory 10 ... Servo control circuit 11 ... PC 30 ... Table 31, 32 ... Dog 33, 34 ... Deceleration limit switch

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 機械固定部と機械可動部との間の所定の
位置に減速信号出力手段を設け、 原点復帰指令により、前記機械可動部を原点復帰方向に
サーボモータによる早送り速度で移動させ、 前記減速信号出力手段より減速信号が出力したときに、
送り速度を所定の減速速度に減速させて、さらに、前記
機械可動部を原点復帰方向に移動させ、 前記減速信号出力手段より減速信号が出力されなくなっ
た後の、最初の前記サーボモータの一回転信号位置をグ
リット位置と定め、 このグリット位置またはこのグリット位置より予めメモ
リに設定されている所定距離D離間した位置を機械原点
と定め、 この機械原点に前記機械可動部を停止させるとともに、
この機械原点を基点とする機械座標系を設定するNC工
作機械の原点復帰方法において、 前記機械固定部と前記機械可動部との間に、前記減速信
号出力手段と所定量離間した位置に、かつ、前記機械可
動部が原点復帰方向と反対方向に移動するように補助原
点用減速信号出力手段を設け、 補助原点復帰指令により、前記機械可動部を原点復帰方
向の反対方向に前記サーボモータによる早送り速度で移
動させ、 前記補助原点用減速信号出力手段より減速信号が出力し
たときに、送り速度を所定の減速速度に減速させて、さ
らに、前記機械可動部を原点復帰方向の反対方向に移動
させ、 前記減速信号出力手段から減速信号が出力した後の最初
の前記グリット位置より、予めメモリに記憶されている
所定距離B離間した位置を補助機械原点と定め、 この補助機械原点に前記機械可動部を停止させ、 予めメモリに記憶されている前記機械原点から前記補助
機械原点までの距離Cを読み出し、 前記機械原点から前記補助機械原点までの距離により、
前記補助機械原点に原点復帰した前記機械可動部の位置
を、前記機械原点を基点とする機械座標系に変換して設
定することを特徴とするNC工作機械の原点復帰方法。
1. A deceleration signal output means is provided at a predetermined position between a machine fixed part and a machine movable part, and the machine movable part is moved in a direction of origin return at a fast-forward speed by a servo motor by an origin return command. When the deceleration signal is output from the deceleration signal output means,
The feed motor is decelerated to a predetermined deceleration speed, the machine movable part is further moved in the origin return direction, and the first revolution of the servo motor after the deceleration signal is no longer output from the deceleration signal output means. The signal position is defined as a grit position, and the grit position or a position separated from the grit position by a predetermined distance D preset in the memory is defined as a machine origin, and the machine movable part is stopped at this machine origin,
In the method of returning to the origin of an NC machine tool, which sets a machine coordinate system with the machine origin as a base point, in a position separated from the deceleration signal output means by a predetermined amount between the machine fixed part and the machine movable part, and , Auxiliary origin deceleration signal output means is provided so that the machine movable part moves in the direction opposite to the origin return direction, and the machine movable part is fast-forwarded by the servo motor in the direction opposite to the origin return direction by the auxiliary origin return command. When the deceleration signal is output from the auxiliary origin deceleration signal output means, the feed speed is decelerated to a predetermined deceleration speed, and the machine movable part is further moved in the direction opposite to the origin return direction. The auxiliary machine origin is defined as a position separated from the first grid position after the deceleration signal output means outputs the deceleration signal by a predetermined distance B previously stored in the memory. The machine moving part is stopped at the auxiliary machine origin, the distance C from the machine origin to the auxiliary machine origin stored in the memory in advance is read, and the distance from the machine origin to the auxiliary machine origin is
A method for returning to an origin of an NC machine tool, wherein the position of the movable part of the machine, which has been returned to the origin of the auxiliary machine, is converted and set in a machine coordinate system having the machine origin as a base point.
【請求項2】 機械固定部と機械可動部との間の所定の
位置に設けられた減速信号出力手段と、 前記機械可動部を移動位置決め制御させるとともに、一
回転毎に一回転信号を送出するサーボモータと、 前記減速信号出力手段より減速信号が出力されなくなっ
た後の、最初の前記サーボモータの一回転信号位置であ
るグリット位置と、 このグリット位置またはこのグリット位置より予めメモ
リに設定されている所定量分離間した位置に定められた
機械原点と、 前記機械固定部と前記機械可動部との間に、前記減速信
号出力手段と所定量離間した位置に、かつ、前記機械可
動部が原点復帰方向と反対方向に移動するように設けら
れた補助原点用減速信号出力手段と、 前記減速信号出力手段より減速信号が出力した後の最初
の前記グリット位置より補助機械原点までの距離を記憶
している第1のメモリと、 この第1のメモリに記憶されている前記グリッド位置よ
り補助機械原点までの距離により定められる補助機械原
点と、 前記機械原点と前記補助機械原点までの距離を記憶して
いる第2のメモリと、 前記機械可動部が補助機械原点に原点復帰したとき、前
記第2のメモリに記憶されている前記機械原点と前記補
助機械原点までの距離により、前記機械原点を基点とす
る機械座標系を設定する機械座標系設定手段と、 前記減速信号出力手段、前記補助原点用減速信号出力手
段、前記サーボモータおよび前記機械座標系設定手段を
統轄制御する中央処理手段とからなることを特徴とする
補助原点復帰方法を備えたNC装置。
2. A deceleration signal output means provided at a predetermined position between a machine fixed part and a machine movable part, and moving and positioning control of the machine movable part, and sending one rotation signal for each rotation. The servo motor and the grit position which is the first one rotation signal position of the servo motor after the deceleration signal is not output from the deceleration signal output means, and the grit position or the grit position which is set in the memory in advance from the grit position. A machine origin determined at a position separated by a predetermined amount, and a position separated from the deceleration signal output means by a predetermined amount between the machine fixed part and the machine movable part, and the machine movable part is the origin. The auxiliary origin deceleration signal output means provided so as to move in the direction opposite to the return direction, and the first grit position after the deceleration signal is output from the deceleration signal output means. A first memory storing a distance to an auxiliary machine origin; an auxiliary machine origin defined by a distance from the grid position stored in the first memory to the auxiliary machine origin; A second memory for storing the distance to the auxiliary machine origin, and up to the machine origin and the auxiliary machine origin stored in the second memory when the machine moving part returns to the auxiliary machine origin A machine coordinate system setting means for setting a machine coordinate system with the machine origin as a base point, the deceleration signal output means, the auxiliary origin deceleration signal output means, the servo motor and the machine coordinate system setting means. An NC device provided with an auxiliary origin return method characterized by comprising a central processing unit for controlling and controlling.
JP17434094A 1994-07-26 1994-07-26 Nc device provided with origin restoring method and auxiliary origin restoring method for nc machine tool Pending JPH0844413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17434094A JPH0844413A (en) 1994-07-26 1994-07-26 Nc device provided with origin restoring method and auxiliary origin restoring method for nc machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17434094A JPH0844413A (en) 1994-07-26 1994-07-26 Nc device provided with origin restoring method and auxiliary origin restoring method for nc machine tool

Publications (1)

Publication Number Publication Date
JPH0844413A true JPH0844413A (en) 1996-02-16

Family

ID=15976932

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17434094A Pending JPH0844413A (en) 1994-07-26 1994-07-26 Nc device provided with origin restoring method and auxiliary origin restoring method for nc machine tool

Country Status (1)

Country Link
JP (1) JPH0844413A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100481032B1 (en) * 2002-11-01 2005-04-07 두산메카텍 주식회사 Setting system of the origin co-ordinates and setting method of the origin machine co-ordinates using the system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100481032B1 (en) * 2002-11-01 2005-04-07 두산메카텍 주식회사 Setting system of the origin co-ordinates and setting method of the origin machine co-ordinates using the system

Similar Documents

Publication Publication Date Title
KR950000839B1 (en) Machine tool numerical controller with a trouble stop function
US6022132A (en) Method and apparatus for programming a CNC machine with a probe
JP3529010B2 (en) Mobile unit collision detection device
US4513234A (en) Method and apparatus for controlling zero-point return of a movable element
EP0419679B1 (en) Returning method to reference point
JPH0844413A (en) Nc device provided with origin restoring method and auxiliary origin restoring method for nc machine tool
JP3244326B2 (en) Numerical control unit
EP0394472B1 (en) Reference point return system
JPS6232801B2 (en)
JPH05131340A (en) Method for return to origin of nc finishing machine
JPS6331875Y2 (en)
JPH0716850B2 (en) Axis switching device
JPS6297004A (en) Original point reset controller for traveling object undergoing numerical control
JPH0869326A (en) Positioning controller
JP2654228B2 (en) Numerical control unit
JPH08211916A (en) System for return to origin of cnc
JP2577460Y2 (en) Control device for manual operation of bending device
JPH08257873A (en) Control device for nc machine tool
JP2001071235A (en) Numerical control device
JPH0243646Y2 (en)
JPS6359823B2 (en)
CA1189930A (en) Method of sensing position of movable body and apparatus therefor
JP2793677B2 (en) Origin setting method
JP2524911Y2 (en) Numerical control unit
JPH01147607A (en) Numerical controller