JP3013998B2 - Rotary axis zero return method in numerical controller - Google Patents

Rotary axis zero return method in numerical controller

Info

Publication number
JP3013998B2
JP3013998B2 JP2009417A JP941790A JP3013998B2 JP 3013998 B2 JP3013998 B2 JP 3013998B2 JP 2009417 A JP2009417 A JP 2009417A JP 941790 A JP941790 A JP 941790A JP 3013998 B2 JP3013998 B2 JP 3013998B2
Authority
JP
Japan
Prior art keywords
rotation
rotation angle
zero
rotating shaft
origin
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.)
Expired - Fee Related
Application number
JP2009417A
Other languages
Japanese (ja)
Other versions
JPH03212704A (en
Inventor
実 杉山
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2009417A priority Critical patent/JP3013998B2/en
Publication of JPH03212704A publication Critical patent/JPH03212704A/en
Application granted granted Critical
Publication of JP3013998B2 publication Critical patent/JP3013998B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、数値制御装置における回転軸零点復帰方法
に関する。
Description: TECHNICAL FIELD The present invention relates to a method of resetting a rotary shaft to zero in a numerical control device.

(従来の技術) 第3図は、従来の回転軸零点復帰方法を示す。第3図
において、0゜は数値制御装置が有する機械座標系の座
標原点であり、これを基準に360゜、720゜、……の角度
位置が規定されている。そして、数値制御装置はワーク
の座標系を有し、回転軸の駆動制御に先立ってプログラ
ムG50(YO;)を実行してワーク座標系を零にし、機械座
標系の原点(0゜)である回転軸原点12に一致させる。
次いで、プログラムG01(例えばF1000Y1530.;)を実行
する。その結果、第3図に示すように、回転軸は4回転
強の1530゜の角度位置13まで回転駆動される。そして、
角度位置13に到達すると、原点復帰プログラムG53(Y
O;)が起動され、回転軸は角度位置13から逆回転駆動さ
れて角度0゜の回転軸原点12に復帰する。
(Prior Art) FIG. 3 shows a conventional rotating shaft zero return method. In FIG. 3, 0 ° is the coordinate origin of the machine coordinate system of the numerical controller, and the angular positions of 360 °, 720 °,... Are defined based on this. Then, the numerical control device has a work coordinate system, and executes the program G50 (YO;) prior to drive control of the rotary axis to set the work coordinate system to zero, which is the origin (0 °) of the machine coordinate system. Align with the rotation axis origin 12.
Next, the program G01 (for example, F1000Y1530 .;) is executed. As a result, as shown in FIG. 3, the rotating shaft is rotationally driven to an angular position 13 of 1530 °, which is slightly more than four rotations. And
When the angular position 13 is reached, the home position return program G53 (Y
O;) is started, and the rotating shaft is driven to rotate in the reverse direction from the angular position 13 to return to the rotating shaft origin 12 at an angle of 0 °.

(発明が解決しようとする課題) 上述した従来の数値制御装置における回転軸零点復帰
方法では、回転軸原点からの回転角度量だけ回転軸を逆
回転させて回転軸原点に復帰させるようにしているの
で、回転角度量が大きくなるにつれて原点復帰に要する
時間が増大する。また、逆回転させるようにしているの
で、減速機構を用いる場合、バックラッシュ等の機械誤
差を考慮しなければならないという問題がある。
(Problems to be Solved by the Invention) In the above-described method of resetting the rotating shaft to the zero point in the conventional numerical control device, the rotating shaft is reversely rotated by the rotation angle amount from the rotating shaft origin to return to the rotating shaft origin. Therefore, as the rotation angle increases, the time required for returning to the origin increases. In addition, since the motor is rotated in the reverse direction, there is a problem that when a speed reduction mechanism is used, mechanical errors such as backlash must be considered.

本発明は、このような問題に鑑みなされたもので、そ
の目的は、回転軸原点からの回転角度量とは無関係に同
一回転方向において短時間に原点復帰ができる数値制御
装置における回転軸零点復帰方法を提供することにあ
る。
The present invention has been made in view of such a problem, and an object of the present invention is to provide a rotary shaft zero point return in a numerical control device capable of performing a home return in a short time in the same rotation direction irrespective of a rotation angle amount from the rotary shaft origin. It is to provide a method.

(課題を解決するための手段) 前記目的を達成するために、本発明の数値制御装置に
おける回転軸零点復帰方法は次の如き構成を有する。
(Means for Solving the Problems) In order to achieve the above object, a method of resetting a rotary shaft to zero in a numerical controller according to the present invention has the following configuration.

即ち、本発明の数値制御装置における回転軸零点復帰
方法は、回転軸を同一回転方向に回転駆動制御した後、
回転軸を零点位置に復帰させる数値制御装置における回
転軸零点復帰方法において;回転軸を同一回転方向に回
転駆動制御をしている際に、1回転毎に回転角度を零度
にする処理をしてこれを基準に1回転以内の回転角度を
規定するようにし;回転軸の回転駆動制御の終了に応答
して、その終了時の回転角度位置から同一回転方向にお
ける次の回転角度零度までの回転角度を算出し;算出し
た回転角度だけ回転軸を同一回転方向に回転させる;よ
うにしたことを特徴とするものである。
That is, the rotation axis zero return method in the numerical control device of the present invention, after the rotation drive control of the rotation axis in the same rotation direction,
In a method of resetting a rotation axis to a zero point in a numerical control device for returning a rotation axis to a zero point position, a process of setting a rotation angle to zero degree for each rotation while performing rotation drive control of the rotation axis in the same rotation direction is performed. Based on this, a rotation angle within one rotation is defined; in response to the end of the rotation drive control of the rotation shaft, the rotation angle from the rotation angle position at the end to the next rotation angle zero degree in the same rotation direction. Is calculated; and the rotation shaft is rotated in the same rotation direction by the calculated rotation angle.

(作 用) 次に、前記の如く構成される本発明の数値制御装置に
おける回転軸零転復帰方法の作用を説明する。
(Operation) Next, the operation of the rotating shaft zero return method in the numerical control device of the present invention configured as described above will be described.

回転軸を同一回転方向に回転駆動する制御と並行して
1回転毎に回転角度を零度にする処理をし、回転軸の回
転駆動制御が終了するとその終了時の回転角度位置から
同一回転方向における次の回転角度零度までの回転角度
を算出し、その算出した回転角度だけ回転軸を同一回転
方向に回転させる。即ち、回転軸を次の回転角度零度の
位置に位置決めし、新たな原点とするのである。
In parallel with the control for driving the rotary shaft to rotate in the same rotational direction, a process is performed in which the rotation angle is set to zero for each rotation, and when the rotational drive control of the rotary shaft is completed, the rotation angle position at the end of the rotation is controlled in the same rotational direction. A rotation angle up to the next rotation angle of zero degree is calculated, and the rotation shaft is rotated in the same rotation direction by the calculated rotation angle. That is, the rotation axis is positioned at the position of the next rotation angle of zero degree, and is set as a new origin.

斯くして、逆回転することなく常に360゜以内に原点
復帰できることになる。
Thus, it is possible to always return to the original point within 360 ° without reverse rotation.

(実 施 例) 以下、本発明の実施例を添付図面を参照して説明す
る。
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.

第1図は本発明の一実施例に係る数値制御装置におけ
る回転軸零点復帰方法の動作フローチャート、第2図は
具体的な動作説明図である。
FIG. 1 is an operation flowchart of a method of resetting a rotary shaft to zero in a numerical control device according to an embodiment of the present invention, and FIG. 2 is an explanatory diagram of a specific operation.

最初のステップ1では、制御対象が回転軸であるか否
かを判定し、判定結果が肯定(YES)であれば次のステ
ップ2へ進む。周知のように、数値制御装置の制御対象
には回転軸の他に直線軸もあるので、その直線軸を除外
するのである。
In the first step 1, it is determined whether or not the control target is a rotating shaft. If the determination result is affirmative (YES), the process proceeds to the next step 2. As is well known, since the object to be controlled by the numerical controller includes a linear axis in addition to the rotary axis, the linear axis is excluded.

なお、回転軸の回転駆動制御は、従来と同様であっ
て、まずプログラムG50(YO;)を実行してワーク座標系
を零にし、機械座標系の原点(0゜)である回転軸原点
12に一致させ、次いで例えばプログラムG01(F1000 Y1
530.;)を実行するのである。従って、本実施例におい
ても第2図に示すように、回転軸は4回転強の1530゜の
角度位置13まで回転駆動される。
The rotation drive control of the rotary axis is the same as the conventional one. First, the program G50 (YO;) is executed to set the work coordinate system to zero, and the rotary axis origin (0 °) which is the origin of the mechanical coordinate system is set.
12 and then for example program G01 (F1000 Y1
530 .;). Therefore, also in this embodiment, as shown in FIG. 2, the rotating shaft is driven to rotate to an angular position 13 of 1530 °, which is slightly more than four rotations.

ステップ2では、回転軸の回転駆動制御と並行して、
数値制御装置が有する機械原点を座標原点とする機械座
標系と工作物を中心としたワーク座標系とを360゜単位
で零度に戻す処理(「360゜丸目処理」と称される)を
行う。第2図に示すように、360゜→0゜、720゜→0
゜、1080゜→0゜、1440゜→0゜となる。この360゜丸
目処理は本発明に係る原点復帰プログラムG58(YO;)が
起動されるまで繰り返し実行される(ステップ2→同3
→同2)。
In step 2, in parallel with the rotation drive control of the rotating shaft,
A process (referred to as "360 ° rounding process") is performed in which the machine coordinate system having the machine origin as the coordinate origin and the workpiece coordinate system centering on the workpiece of the numerical controller are returned to zero in 360 ° units. As shown in FIG. 2, 360 ° → 0 °, 720 ° → 0
゜, 1080 ゜ → 0 ゜, 1440 ゜ → 0 ゜. This 360 ° rounding process is repeatedly executed until the origin return program G58 (YO;) according to the present invention is started (steps 2 → 3).
→ Same as 2).

回転軸が回転角度位置13に到達し、原点復帰プログラ
ムG58(YO;)が起動されると、ステップ3の判定結果は
肯定(YES)となり、ワーク座標系における現在値(PO
S)を読み取り(ステップ4)、その正負を判定する
(ステップ5)。回転軸の回転方向を正負の符号で示し
てある。現在値(POS)が正であれば、ステップ6にて
{360−POS}の演算をし、また現在値(POS)が負であ
ればステップ7にて{−(360−|POS|)}の演算をす
る。即ち、回転角度位置13は回転軸原点12からは1530゜
の位置にあるが、前回零度位置(1440゜)から90゜回転
した位置にあるから、次の回転角度零度位置(1800゜)
までの回転角度(270゜)を求めるのである。
When the rotation axis reaches the rotation angle position 13 and the home position return program G58 (YO;) is started, the determination result in step 3 becomes affirmative (YES), and the current value (PO
S) is read (step 4), and its sign is determined (step 5). The direction of rotation of the rotating shaft is indicated by positive and negative signs. If the current value (POS) is positive, {360-POS} is calculated in step 6, and if the current value (POS) is negative, {-(360- | POS |)} in step 7. Is calculated. That is, although the rotation angle position 13 is located at 1530 ° from the rotation axis origin 12, it is at a position rotated 90 ° from the previous zero-degree position (1440 °), so the next rotation angle zero-degree position (1800 °)
The rotation angle up to (270 °) is determined.

そして、最後のステップ8では、回転軸を同一回転方
向に270゜回転させ、新たに設定した回転軸原点9に位
置決めし、その位置決めを完了した旨を零度表示すると
ともに、回転軸が原点位置にあることを示す信号を外部
に出力し、一連の復帰動作を終了する。
Then, in the last step 8, the rotating shaft is rotated 270 ° in the same rotating direction, positioned at the newly set rotating shaft origin 9, the completion of the positioning is displayed at zero degree, and the rotating shaft is moved to the origin position. A signal indicating the presence is output to the outside, and a series of return operations is completed.

(発明の効果) 以上説明したように、本発明の数値制御装置における
回転軸零点復帰方法によれば、逆回転させることなく常
に同一回転方向で、しかも360゜以内に原点復帰できる
ようにしたので、バックラッシュ等の機械誤差を考慮す
ることなく、短時間で原点復帰できる効果がある。
(Effects of the Invention) As described above, according to the method of returning the rotating shaft to the zero point in the numerical controller of the present invention, the origin can always be returned in the same rotational direction without rotating in the reverse direction and within 360 °. There is an effect that the origin can be returned in a short time without considering mechanical errors such as backlash.

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

第1図は本発明の一実施例に係る数値制御装置における
回転軸零点復帰方法の動作フローチャート、第2図は本
発明方法の具体的な動作説明図、第3図は従来方法の動
作説明図である。 9……本発明方法によって移動した位置(新たな回転軸
原点)、12……回転軸の回転駆動制御開始時の回転軸原
点、13……回転軸の回転駆動制御終了時の回転角度位
置。
FIG. 1 is an operation flowchart of a method of resetting a rotary shaft to zero in a numerical control apparatus according to an embodiment of the present invention, FIG. 2 is an explanatory diagram of a specific operation of the method of the present invention, and FIG. It is. 9: Position moved by the method of the present invention (new rotation axis origin), 12: Rotation axis origin at the start of rotation drive control of the rotation axis, 13 ... Rotation angle position at the end of rotation drive control of the rotation axis.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】回転軸を同一回転方向に回転駆動制御した
後、回転軸を零点位置に復帰させる数値制御装置におけ
る回転軸零点復帰方法において;回転軸を同一回転方向
に回転駆動制御をしている際に、1回転毎に回転角度を
零度にする処理をしてこれを基準に1回転以内の回転角
度を規定するようにし;回転軸の回転駆動制御の終了に
応答して、その終了時の回転角度位置から同一回転方向
における次の回転角度零度までの回転角度を算出し;算
出した回転角度だけ回転軸を同一回転方向に回転させ
る;ようにしたことを特徴とする数値制御装置における
回転軸零点復帰方法。
1. A method of resetting a rotating shaft to a zero point in a numerical control device for controlling the rotating shaft to rotate in the same rotational direction and then returning the rotating shaft to a zero point position. In this case, the rotation angle is set to zero degree for each rotation and the rotation angle within one rotation is defined based on the rotation angle; in response to the end of the rotation drive control of the rotation shaft, A rotation angle from the rotation angle position to a next rotation angle of zero degree in the same rotation direction; and rotating the rotation shaft in the same rotation direction by the calculated rotation angle. Axis zero return method.
JP2009417A 1990-01-18 1990-01-18 Rotary axis zero return method in numerical controller Expired - Fee Related JP3013998B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009417A JP3013998B2 (en) 1990-01-18 1990-01-18 Rotary axis zero return method in numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009417A JP3013998B2 (en) 1990-01-18 1990-01-18 Rotary axis zero return method in numerical controller

Publications (2)

Publication Number Publication Date
JPH03212704A JPH03212704A (en) 1991-09-18
JP3013998B2 true JP3013998B2 (en) 2000-02-28

Family

ID=11719801

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009417A Expired - Fee Related JP3013998B2 (en) 1990-01-18 1990-01-18 Rotary axis zero return method in numerical controller

Country Status (1)

Country Link
JP (1) JP3013998B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381560B (en) * 2020-04-30 2023-01-06 中国航发哈尔滨东安发动机有限公司 Zero point compensation method and device for mechanical processing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57201153A (en) * 1981-05-29 1982-12-09 Toshiba Corp Control device for spindle indexing of machine tool

Also Published As

Publication number Publication date
JPH03212704A (en) 1991-09-18

Similar Documents

Publication Publication Date Title
JPS58132439A (en) Correction control system of work program in nc machine tool
JP3013998B2 (en) Rotary axis zero return method in numerical controller
JPH07164359A (en) Circular arc tracking method of robot
JPS6234210A (en) Detector for original point position
JPS6110715A (en) Absolute-position detecting system
JPS59201107A (en) Control system for restart of processing with numerical control
JPS6232804B2 (en)
JPS6055406A (en) Method and device for deciding whether robot is positioned at origin
JPH021626B2 (en)
JP2749273B2 (en) Control method of direct drive motor for rotary indexing table
JPH10161748A (en) Motor positioning controller
KR100224862B1 (en) Apparatus and method for callibration of robot arm
WO1995006851A1 (en) Gear shape measurement system
JP3433817B2 (en) Feed control device
JP2665314B2 (en) Motor control device for parts inspection device
JP3291902B2 (en) Servo control device
JP2766285B2 (en) Robot teaching method
JPH0749246A (en) Encoder system
JPH0562763B2 (en)
JPS59172018A (en) Setting device of original point
JP2915373B2 (en) Control method of robot with infinite rotation axis
JPS63149706A (en) Positioning device
JPH0446715B2 (en)
SU1316792A1 (en) Method of adjusting a n/c machine
JPH04326104A (en) Controller for robot

Legal Events

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