JPH01207624A - System for mastering absolute pulse coder system - Google Patents

System for mastering absolute pulse coder system

Info

Publication number
JPH01207624A
JPH01207624A JP3188288A JP3188288A JPH01207624A JP H01207624 A JPH01207624 A JP H01207624A JP 3188288 A JP3188288 A JP 3188288A JP 3188288 A JP3188288 A JP 3188288A JP H01207624 A JPH01207624 A JP H01207624A
Authority
JP
Japan
Prior art keywords
counter
apc
mastering
incremental
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP3188288A
Other languages
Japanese (ja)
Other versions
JP2688910B2 (en
Inventor
Toru Mizuno
徹 水野
Haruyuki Ishikawa
石川 晴行
Takashi Iwamoto
孝 岩本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fanuc Corp
Original Assignee
Fanuc Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fanuc Corp filed Critical Fanuc Corp
Priority to JP63031882A priority Critical patent/JP2688910B2/en
Publication of JPH01207624A publication Critical patent/JPH01207624A/en
Application granted granted Critical
Publication of JP2688910B2 publication Critical patent/JP2688910B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

PURPOSE:To perform mastering operation automatically by making a return to an incremental origin and storing the value of the counter of an absolute pulse coder (APC) at the time of the completion of the origin return as a reference position. CONSTITUTION:Servo amplifiers 21 for respective shafts are connected to a shaft controller 16 coupled with a CPU 11 and perform power amplification to drive respective servomotors 20. An absolute pulse encoder (APC) 22 is fitted to the motor shaft of each servomotor 20 and the APC 22 is provided with an incremental pulse coder which generates pulses by the rotation of the servomotors 20 and a counter 22a which counts output pulses of the pulse encoder. The counted value S2 of the counter 22a is inputted to a controller 10 through the shaft controller 16. Then the incremental origin return is made and the value of the counter 22a of the APC 22 at the time of the completion of the origin return is stored as the reference position in a data memory 13 consisting of an RAM backed up by the battery 14 of the controller 10.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、産業用ロボットやNG工作機械等に適用され
るバッテリによりバックアップされたカウンタを持った
アブソリュートパルスコーダ(以下、APCという)の
マスタリング方式に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a mastering method for an absolute pulse coder (hereinafter referred to as APC) having a counter backed up by a battery, which is applied to industrial robots, NG machine tools, etc. .

従来の技術 △PCシステムは、インクリメンタルなパルスコーダと
バッテリによりバックアップされたカウンタを備え、上
記パルスコーダからの出力パルスを上記カウンタで計数
し、該カウンタの計数値を基にして、該APCが取付け
られた@(機械等の移動体)の絶対位置を検出するもの
である。
The conventional technology △PC system includes an incremental pulse coder and a counter backed up by a battery, the output pulses from the pulse coder are counted by the counter, and the APC is installed based on the counted value of the counter. It detects the absolute position of @ (a moving object such as a machine).

このAPCシステムにおいては、カウンタがインクリメ
ンタルなパルスコーダからの出力パルスを計数し更新し
ているので、該APCを取付けた軸の特定な位置、即ち
、基準位置に対応するカウンタの値を制御装置内のバッ
テリ・バックアップされたメモリに記憶しておき、この
基準位置でのカウンタ値を基にして、下記に示す式に従
って現在位置を割出す。
In this APC system, the counter counts and updates the output pulses from the incremental pulse coder, so the value of the counter corresponding to a specific position of the axis on which the APC is installed, that is, the reference position, is stored in the control device. It is stored in a battery-backed memory, and based on the counter value at this reference position, the current position is determined according to the formula shown below.

現在位δ=K・(現在のカウンタ値−基準位置でのカウ
ンタ値)十基準位置 なお、上記式でKは機構部の減速比等により決定される
定数である。
Current position δ=K·(Current counter value−Counter value at reference position) 10 Reference position Note that in the above equation, K is a constant determined by the reduction ratio of the mechanical part, etc.

上述したように、このAPCシステムでは、基準位置で
のカウンタ値を記憶する必要があるため基準位置でのA
PCのカウンタの値を、ロボットやNG工作機械等の制
御装置内のバッテリ・バックアップメモリに記憶させる
操作、即ち、マスクリングを行う必要がある。通常、こ
のマスタリングは、較正治具を据え付けて、該較正治具
で特定される位置に産業用ロボットやNC工作機械を手
動で正確に位置決めし、この位置決め終了等のAPCの
カウンタの値を制W装置内のバッテリ・バックアップメ
モリに記憶させる方式がとられている。
As mentioned above, in this APC system, it is necessary to store the counter value at the reference position.
It is necessary to perform an operation to store the value of the PC counter in a battery backup memory in a control device of a robot, an NG machine tool, etc., that is, a mask ring. Normally, this mastering involves installing a calibration jig, manually positioning the industrial robot or NC machine tool accurately at the position specified by the calibration jig, and controlling the value of the APC counter at the end of this positioning. A method is adopted in which the information is stored in a battery backup memory within the W device.

発明が解決しようとする課題 上述したマスタリングは、産業用ロボットやNC工作機
械等に最初に座標系を決定するときはもちろんモータ等
の機構部の主要部品を交換したときや、バッテリ・バッ
クアップの電源の切断等の事故の場合にも行わねばなら
ないが、較正治具を据え付けて、手動装置により機械の
全軸を治具が特定する位置に位置決めするマスタリング
操作は時間がかかり面倒で、復旧に手間を要するという
欠点がある。
Problems to be Solved by the Invention The above-mentioned mastering is useful not only when first determining the coordinate system for industrial robots and NC machine tools, but also when replacing major mechanical parts such as motors, and when using battery backup power sources. However, the mastering operation, which involves installing a calibration jig and manually positioning all the axes of the machine to the positions specified by the jig, is time-consuming and troublesome, and recovery is troublesome. The disadvantage is that it requires

そこで、本発明の目的は、自動的にマスタリングができ
るAPCシステムのマスタリング方式を提供することに
ある。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a mastering method for an APC system that allows automatic mastering.

課題を解決するための手段 上記課題を解決するために、本発明の方式は、インクリ
メンタル原点復帰を行い、この原点復帰完了時のAPC
のカウンタの値を基準位置として制御11装置のバッテ
リ・バックアップメモリに記憶するようにした。
Means for Solving the Problems In order to solve the above problems, the method of the present invention performs incremental home return, and when the home return is completed, the APC
The value of the counter is stored in the battery backup memory of the controller 11 as a reference position.

作  用 インクリメンタル原点復帰を行わせることにより、機械
を一定のシーケンスに従って動作させ、機械の機構部に
設けられているドグとリミットスイッチにより、リミッ
トスイッチがドグを踏み、その俊該リミットスイッチか
らの信号の立下りからの最初のモータ1回転信号位置で
モータ(機械)を停止させる。このときのモータ(機械
)の位置はドグで設定されている特定な位置、即ち、基
準位置であり、このとぎのAPCのカウンタの値をバッ
テリ・バックアップメモリに記憶することにより機械の
基準位dにおけるAPCのカウンタの値がバッテリ・バ
ックアップメモリに記憶され、マスタリングが終了する
By performing incremental home return, the machine is operated according to a certain sequence, and the dog and limit switch provided in the mechanical part of the machine cause the limit switch to step on the dog, and the signal from the limit switch is output immediately. The motor (machine) is stopped at the first motor rotation signal position from the falling edge of . The position of the motor (machine) at this time is a specific position set by the dog, that is, the reference position, and by storing the current APC counter value in the battery backup memory, the machine reference position d The APC counter value at is stored in the battery backup memory, and mastering is completed.

実施例 第2図は、本発明を実施する産業用ロボットやNC工作
機械等の機械のAPCシステムの要部ブロック図である
Embodiment FIG. 2 is a block diagram of a main part of an APC system for a machine such as an industrial robot or an NC machine tool in which the present invention is implemented.

図中、10は機械のNG装置等の制御装置で、中央処理
装置(以下、CPLIという)11には、ROMで構成
されたメモリ12.バッテリ14でバックアップされ、
RAMで構成されたデータメ工り、CRT表示装置付手
動データ入力装置15゜軸制御器16.入出力回路17
がバス18で結合されている。
In the figure, 10 is a control device such as a machine NG device, and a central processing unit (hereinafter referred to as CPLI) 11 includes a memory 12 . Backed up by battery 14,
15° axis controller 16. Manual data input device with data processing and CRT display device consisting of RAM. Input/output circuit 17
are connected by a bus 18.

メモリ12には制御プログラムが格納されており、デー
タメモリ13には、機械がロボットであれば教示データ
が、また、NC工作機械であればNGプログラム等が記
憶されている。軸制御器16は機械の可動部である軸を
駆動するサーボモータ20を制御するサーボ系の位置制
御回路やサーボアンプ21に対する電圧制御回路を含む
ソフトウェアサーボで構成している。
The memory 12 stores a control program, and the data memory 13 stores teaching data if the machine is a robot, and NG programs if the machine is an NC machine tool. The axis controller 16 is composed of a software servo including a servo system position control circuit for controlling a servo motor 20 that drives an axis that is a movable part of the machine, and a voltage control circuit for a servo amplifier 21.

上記軸制御器16には各軸のサーボアンプ21が接続さ
れ、該サーボアンプ21で電力増幅して各々のサーボモ
ータ20を駆動するようになっている。なお、第2図に
は1つの軸のみを示し、サーボアンプ、サーボモータ等
は1つのみ示している。サーボ−し−夕20のモータ軸
にはΔPC22が取付けられ、該APC22は、サーボ
モータ20の回転によりパルスを発生するインクリメン
タルなバルスコーダと該パルスコーダの出力パルスを計
数するカウンタ22aを(<5えている。該カウンタ2
2aの計数値S2は軸制御器16を介して制御装置10
に入力されている。また、該ΔPCから発生するサーボ
モータ20が1回転する毎に発生する1回転信号S1も
軸制御器16を介して制御装置10に入力されている。
A servo amplifier 21 for each axis is connected to the axis controller 16, and the servo amplifier 21 amplifies power to drive each servo motor 20. Note that FIG. 2 shows only one axis, and only one servo amplifier, servo motor, etc. A ΔPC 22 is attached to the motor shaft of the servo motor 20, and the APC 22 has an incremental pulse coder that generates pulses by the rotation of the servo motor 20, and a counter 22a that counts the output pulses of the pulse coder (<5). .The counter 2
The count value S2 of 2a is sent to the control device 10 via the axis controller 16.
has been entered. Further, a one-rotation signal S1 generated from the ΔPC every time the servo motor 20 makes one rotation is also input to the control device 10 via the axis controller 16.

入出力回路17には本発明に関係して、機械に基準位置
を検出するために設けたドグとリミッ1へスイッチによ
り、リミットスイッチがドグを踏んだとき発生ずる信号
が入力するようになっている。
In connection with the present invention, the input/output circuit 17 receives a signal generated when the limit switch depresses the dog by a switch for the dog and limit 1 provided in the machine to detect the reference position. There is.

なお、上記構成は、従来の産業用ロボットやNC工作機
械のAPCシスデムと同様であり、従来のAPCシステ
ムと相違する点は基準位置を検出するため機械にドグと
リミットスイッチが設けられ、このリミットスイッチか
らの信号が入出力回路に入力されている点、及び1回転
信号S1を制御装置10に入力するようにした点のみで
ある。
The above configuration is similar to the APC system of conventional industrial robots and NC machine tools, and the difference from the conventional APC system is that the machine is equipped with a dog and a limit switch to detect the reference position. The only difference is that the signal from the switch is input to the input/output circuit, and the one-rotation signal S1 is input to the control device 10.

以上の構成において、このAPCシステムを採用1′る
機械に電源が投入される毎にCPU11は第1図に示す
処理を行う。
In the above configuration, the CPU 11 performs the processing shown in FIG. 1 every time the power is turned on to a machine employing this APC system 1'.

まず、CPU11はデータメモリ13に設けられたマス
クリング終了フラグFが立っているか否か判断しくステ
ップS1)、立つていなければインクリメンタル原点復
帰処理を行う(ステップS2)。即ち、一定のシーケン
スに従って、各軸のサーボモータ20を軸制御器16.
サーボアンプ21を介して駆動する。サーボモータ20
が回転すると、APC22のインクリメンタルなパルス
ローダからの出力パルスが発生し、このパルスをカウン
タ22aは計数する。一方、機械に設けられたリミット
スイッチがドグを踏み信号を出し、その信号の立下りを
入出力回路17を介して検出し、その後発生する最初の
1回転信号S1をCPU11が検出すると(通常リミッ
トスイッチからの信号の立下りからサーボモータが半回
転したとき、1回転信号が出るようにドグ等が調整され
ている)、サーボモータの回転を停止させる。このイン
クリメンタル原点復帰処理を全軸に行った後、各軸にお
けるAPC22のカウンタ22aの計数値S2をマスタ
リング・データとしてデータメモリ13に記憶する(ス
テップ83)。そして、データメモリ13に設けたマス
タリング終了フラグFを立てる(F=1)(ステップ8
4)。そして、各軸の現在位置を計評しくステップS5
)、電源投入時の処理は終了する。
First, the CPU 11 determines whether the mask ring end flag F provided in the data memory 13 is set (step S1), and if it is not set, performs incremental origin return processing (step S2). That is, the servo motor 20 of each axis is controlled by the axis controller 16 .
It is driven via a servo amplifier 21. Servo motor 20
When the APC 22 rotates, output pulses are generated from the incremental pulse loader of the APC 22, and the counter 22a counts these pulses. On the other hand, when the limit switch provided in the machine steps on the dog and outputs a signal, the falling edge of the signal is detected via the input/output circuit 17, and the CPU 11 detects the first one-rotation signal S1 generated thereafter (normal limit When the servo motor rotates half a revolution from the fall of the signal from the switch, the dog etc. are adjusted so that a one revolution signal is output), and the rotation of the servo motor is stopped. After performing this incremental home return process on all axes, the count value S2 of the counter 22a of the APC 22 for each axis is stored in the data memory 13 as mastering data (step 83). Then, the mastering completion flag F provided in the data memory 13 is set (F=1) (step 8
4). Then, evaluate the current position of each axis in step S5.
), the power-on processing ends.

こうして、マスタリング終了フラグF1が立てられた後
、電源を切り、再度電源を投入したときは、既にマスタ
リング終了フラグF1が立っているから、ステップS1
からステップS5へ移行し、インクリメンタル原点復帰
等のマスタリング処理を行うことなく、現在位置を計算
し次の処理へ移行する。
In this way, after the mastering end flag F1 is set, when the power is turned off and then turned on again, since the mastering end flag F1 has already been set, step S1
The process then proceeds to step S5, where the current position is calculated and the process proceeds to the next process without performing mastering processing such as incremental return to origin.

以上のように、機械に電源が投入される毎に第1の処理
を自動的に行うので、データメモリ13をバックアップ
されているバッテリ14が切れる等の事故があり、デー
タメモリ13に記憶していた基準位置におけるAPC2
2のカウンタ22aの値、即ち、マスクリングデータが
消えた場合でも、Tie投入で自動的にマスタリングが
行われるので、面倒で手間のかかる従来のマスタリング
を行う必要がない。
As described above, since the first process is automatically performed every time the machine is powered on, there is an accident such as the battery 14 backing up the data memory 13 running out, and the data stored in the data memory 13 is APC2 at the reference position
Even if the value of the counter 22a of No. 2, that is, the mask ring data, disappears, mastering is automatically performed by inputting the Tie, so there is no need to perform conventional mastering, which is troublesome and time-consuming.

なお、上記実施例では電源投入時にマスタリングが終了
しているか否か判断してマスタリングが終了してなけれ
ば自動的にマスタリング処理を行うようにしたが、CR
T表示装置付手動データ入力fI置装5等からマスタリ
ング指令を入力し、第1図のステップ82以下のか処理
を自動的に行わせるようにすることもできる。
In the above embodiment, when the power is turned on, it is determined whether or not mastering has been completed, and if mastering has not been completed, the mastering process is automatically performed.
It is also possible to input a mastering command from the manual data input fI device 5 with a T-display device, etc., and have the processes from step 82 onward in FIG. 1 be performed automatically.

発明の効果 本発明のマスタリング方式は、較正治具等を必要とせず
、マスタリング指令によりインクリメンタル原点復帰を
用いて自動的にマスタリングを行うので、マスタリング
に時間と手間がかからず、事故等からの復旧が容易にな
る。
Effects of the Invention The mastering method of the present invention does not require a calibration jig, etc., and mastering is automatically performed using incremental home return based on mastering commands. Therefore, mastering does not take much time and effort, and it reduces the risk of accidents. Recovery becomes easier.

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

第1図は、本発明の一実施例のフローチャート、第2図
は、同実施例を行うAPC(アブソリュート・パルスコ
ーダ)システムの要部10ツク図である。 10・・・制御装置、11・・・中央処理装置1(CP
U)、13・・・データメモリ、16・・・軸制御器、
20・・・サーボモータ、22・・・アブソリュートパ
ルスコーダ(APC)。 第 1 図 第 2 図
FIG. 1 is a flowchart of an embodiment of the present invention, and FIG. 2 is a 10-step diagram of essential parts of an APC (absolute pulse coder) system implementing the embodiment. 10...Control device, 11...Central processing unit 1 (CP
U), 13... data memory, 16... axis controller,
20... Servo motor, 22... Absolute pulse coder (APC). Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims]  インクリメンタル原点復帰を行い、原点復帰完了時の
アブソリュートパルスコーダのカウンタの値を基準位置
としてバッテリ・バックアップメモリに記憶するように
したアブソリュートパルスコーダシステムのマスタリン
グ方式。
A mastering method for an absolute pulse coder system that performs incremental home return and stores the value of the absolute pulse coder's counter at the time the home return is completed as the reference position in the battery backup memory.
JP63031882A 1988-02-16 1988-02-16 Mastering method for absolute pulse coder system Expired - Fee Related JP2688910B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63031882A JP2688910B2 (en) 1988-02-16 1988-02-16 Mastering method for absolute pulse coder system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63031882A JP2688910B2 (en) 1988-02-16 1988-02-16 Mastering method for absolute pulse coder system

Publications (2)

Publication Number Publication Date
JPH01207624A true JPH01207624A (en) 1989-08-21
JP2688910B2 JP2688910B2 (en) 1997-12-10

Family

ID=12343402

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63031882A Expired - Fee Related JP2688910B2 (en) 1988-02-16 1988-02-16 Mastering method for absolute pulse coder system

Country Status (1)

Country Link
JP (1) JP2688910B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012130251A (en) * 2002-12-16 2012-07-05 Denso Corp Electric actuator system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61265520A (en) * 1985-05-20 1986-11-25 Kawasaki Heavy Ind Ltd Apparatus for detecting position
JPS6415609A (en) * 1987-07-10 1989-01-19 Kobe Steel Ltd Detecting apparatus for rotational angle of industrial robot

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61265520A (en) * 1985-05-20 1986-11-25 Kawasaki Heavy Ind Ltd Apparatus for detecting position
JPS6415609A (en) * 1987-07-10 1989-01-19 Kobe Steel Ltd Detecting apparatus for rotational angle of industrial robot

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012130251A (en) * 2002-12-16 2012-07-05 Denso Corp Electric actuator system

Also Published As

Publication number Publication date
JP2688910B2 (en) 1997-12-10

Similar Documents

Publication Publication Date Title
JP3331024B2 (en) Tool life management method
CN100474192C (en) Numerical controller
EP0397887B1 (en) Method of correcting machining program
JPH08221132A (en) Method and device for automatic adjustment of servo parameter
JP3200023B2 (en) Control equipment for production equipment
WO1990006836A1 (en) Robot operation method that can be manually corrected
US20070185609A1 (en) Numerical control method
JPS62299320A (en) Automatic origin control system of injection molding machine
JPH11143514A (en) Numerical controller capable of executing working error check
US6225772B1 (en) Acceleration/deceleration control method for numerical control, and numerical control device
JPH07112711B2 (en) Injection molding machine control system by digital servo
US7095203B2 (en) Numerical controller
JPH01207624A (en) System for mastering absolute pulse coder system
JP2766283B2 (en) Machine maintenance inspection guidance device
JPH0616242B2 (en) Numerical control method
JP3287151B2 (en) Force control device for assembly robot
KR940010397B1 (en) Reloading method of pitch error correction data
JP2622417B2 (en) Load monitoring control method of programmable controller
JPH11143505A (en) Automatic machine restoring device at the time of power supply recovery after power interruption
JPH0863212A (en) Origin return system for cnc
JPH0365706A (en) Data correction device
JP2942615B2 (en) NC control method for press-fit robot
WO2023228356A1 (en) Numerical control device and computer-readable storage medium
JP2831700B2 (en) Manual operation control device for pulse motor
JP2622415B2 (en) Teaching data creation method and machining speed control method for numerical controller

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees