JP4270616B2 - Method and apparatus corresponding to encoder type - Google Patents

Method and apparatus corresponding to encoder type Download PDF

Info

Publication number
JP4270616B2
JP4270616B2 JP29857498A JP29857498A JP4270616B2 JP 4270616 B2 JP4270616 B2 JP 4270616B2 JP 29857498 A JP29857498 A JP 29857498A JP 29857498 A JP29857498 A JP 29857498A JP 4270616 B2 JP4270616 B2 JP 4270616B2
Authority
JP
Japan
Prior art keywords
encoder
type
pulse
motor
phase pulse
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
JP29857498A
Other languages
Japanese (ja)
Other versions
JP2000122704A (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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric 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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP29857498A priority Critical patent/JP4270616B2/en
Publication of JP2000122704A publication Critical patent/JP2000122704A/en
Application granted granted Critical
Publication of JP4270616B2 publication Critical patent/JP4270616B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Control By Computers (AREA)
  • Control Of Position Or Direction (AREA)
  • Control Of Electric Motors In General (AREA)

Description

【0001】
【発明の属する技術分野】
この発明は、エンコーダの出力より種類を判別して、その判別した種類に対応した方法およびその装置に関する。
【0002】
【従来の技術】
図3は、従来例を示すブロック図である。モータ21の回転軸にエンコーダ22が連結され、エンコーダ22の出力は入力回路23を介して、カウンタ24とCPU25とに入力される。この場合、エンコーダ22の種類(例えば、インクリメンタルエンコーダあるいはアブソリュートエンコーダ、パルス数等)は、オペレータ等によって予め設定されたCPU25接続のスイッチ26により設定されている。したがって、電源投入の前にエンコーダ22の種類をスイッチ26により設定しておかねばならず、設定が誤っていると異常動作を引き起こす原因となる。
【0003】
【発明が解決しようとする課題】
上述した従来方法においては、オペレータ等がエンコーダの種類を電源投入前にスイッチ等により設定しなければならず、人手を要するので非能率的であり、また、人手によるために設定誤りが発生して、異常動作を引き起こす場合がある。 そこで、この発明は、上記問題に鑑み、電源投入時にエンコーダの種類等を設定する必要が無く、CPUが自動的にエンコーダの種類を識別できる方法を提供することを目的とする。
【0004】
【課題を解決するための手段】
前述した課題を解決するために、請求項1記載のエンコーダ種類に対応するモータ回転位置検出方法の発明は、モータの回転軸に連結されたエンコーダから互いに所定角度の位相差のあるA相パルスおよびB相パルスをカウンタ及びCPUに出力し、前記カウンタが前記A相パルスおよびB相パルスをカウントすることにより前記モータの回転位置を得るモータ回転位置検出方法において、
インクリメンタルエンコーダ、アブソリュートエンコーダ、パルス数というエンコーダの種類を識別するための特定のパターンをもった種類識別用パルスを、前記A相パルスおよびB相パルスをそれぞれアップおよびダウンさせた波形により予め前記エンコーダ側に形成しておき、
電源投入時に、前記エンコーダ側から電源の投入タイミングで前記種類識別用パルスを前記CPUに出力し、
前記CPUが前記種類識別用パルスにより前記エンコーダの種類を識別し、識別した前記エンコーダの種類に基づいて前記エンコーダから出力されるパルス数と前記モータの回転位置との関係を算出することを特徴とする。
また、請求項2記載のモータ制御装置の発明は、被制御対象に装着されたエンコーダから互いに所定角度の位相差のあるA相パルスおよびB相パルスをカウンタ及びCPUに出力し、前記カウンタが前記A相パルスおよびB相パルスを入力して位置制御を行うモータ制御装置において、
インクリメンタルエンコーダ、アブソリュートエンコーダ、パルス数というエンコーダの種類を識別するための特定のパターンをもった種類識別用パルスを前記A相パルスおよびB相パルスをそれぞれアップおよびダウンさせた波形により予め形成しておき、前記エンコーダの電源投入時に電源の投入タイミングで前記種類識別用パルスを前記CPUに出力する種類識別用パルス発生手段が前記エンコーダに組み込まれ、
前記CPUが前記種類識別用パルスを入力し、前記種類識別用パルスにより前記エンコーダの種類を識別し、識別した前記エンコーダの種類に基づいて前記エンコーダから出力されるパルス数と前記モータの回転位置との関係を算出し、識別したエンコーダ種類に対応した制御をすることを特徴とする。
【0005】
【発明の実施の形態】
以下、この発明の実施の形態について添付図面に基づいて説明する。図1は、この発明に係わるエンコーダの種類に対応可能な装置の実施の形態を示すブロック図である。図1の装置10において、制御対象であるモータ11の回転軸にはエンコーダ12が連結され、エンコーダ12の出力は、入力回路13とカウンタ14とCPU15とから構成される制御手段に渡される。すなわち、エンコーダ12の出力は、入力回路13を介して、カウンタ14とCPU15とに入力される。このような構成において、装置10が電源投入されると、エンコーダ12に電源を供給し、エンコーダ12からはエンコーダ12の種類(例えば、インクリメンタルエンコーダあるいはアブソリュートエンコーダ、パルス数等)に対応した特定のパターンを有する種類識別用パルスが出力される。すなわち、エンコーダ12には、エンコーダの種類に合わせて決められた複数の種類識別用パルス(例えば、図2の2種類)のうちのエンコーダ12の種類に対応する種類識別用パルスを出力する回路(不図示)が組み込まれている。
【0006】
CPU15は、エンコーダ12の種類にそれぞれ対応した制御プログラムを保持している。CPU15は、入力回路13を介してエンコーダ12より前記の種類識別用パルスを入力し、エンコーダ12の種類を判定し、判定したエンコーダ12の種類に基づいて、前記制御プログラムの中からエンコーダ12の種類に対応した制御プログラムを選択し、後続の制御を行う。後続の制御としては、例えば、エンコーダ12から送られてくるパルスをカウントするカウンタ14の出力に基づいて、モータ11の回転位置あるいはモータ11に連結された機械の位置等を算出および制御する。したがって、CPU15は、装置10の電源投入時にエンコーダ12から送られてくる種類識別用パルスにより、オペレータからの指示無しに自動的にエンコーダ12の種類を正確に判別でき、エンコーダ12の種類の設定誤りによる異常動作等を未然に防止することが可能である。
【0007】
【発明の効果】
以上説明したように、この発明によれば、エンコーダから出力される種類識別用パルスによって、エンコーダの種類を自動的に正確に識別することができ、人手によらないので能率的であり、スイッチなどによるエンコーダの種類の設定誤りも発生しないので、エンコーダの種類に対応した制御を正確に実行できるという効果がある。
【図面の簡単な説明】
【図1】この発明の制御装置の実施の形態を示すブロック図である。
【図2】図1の制御装置に用いられた種類識別用パルスのパターン例を示す図である。
【図3】従来例を示すブロック図である。
【符号の説明】
10 装置
11 モータ
12 エンコーダ
13 入力回路
14 カウンタ
15 CPU
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a method and apparatus corresponding to the determined type by determining the type from the output of an encoder.
[0002]
[Prior art]
FIG. 3 is a block diagram showing a conventional example. An encoder 22 is connected to the rotating shaft of the motor 21, and the output of the encoder 22 is input to the counter 24 and the CPU 25 via the input circuit 23. In this case, the type of the encoder 22 (for example, an incremental encoder or an absolute encoder, the number of pulses, etc.) is set by a switch 26 connected to the CPU 25 set in advance by an operator or the like. Therefore, the type of the encoder 22 must be set by the switch 26 before the power is turned on. If the setting is incorrect, an abnormal operation may be caused.
[0003]
[Problems to be solved by the invention]
In the conventional method described above, the operator has to set the type of encoder with a switch or the like before turning on the power, which is inefficient because it requires manpower, and a setting error occurs due to manpower. May cause abnormal operation. In view of the above problems, an object of the present invention is to provide a method by which the CPU can automatically identify the encoder type without the need to set the encoder type or the like when the power is turned on.
[0004]
[Means for Solving the Problems]
In order to solve the above-mentioned problem, an invention of a motor rotational position detection method corresponding to an encoder type according to claim 1 is provided by an A-phase pulse having a phase difference of a predetermined angle from an encoder connected to a rotating shaft of a motor. In a motor rotational position detection method for outputting a B-phase pulse to a counter and a CPU, and the counter obtains a rotational position of the motor by counting the A-phase pulse and the B-phase pulse .
Incremental encoder, absolute encoder, pulse for type identification with a specific pattern for identifying the type of encoder such as the number of pulses is preliminarily set on the encoder side by the waveform obtained by up and down the A phase pulse and B phase pulse, respectively. To form,
When the power is turned on , the type identification pulse is output to the CPU at the power-on timing from the encoder side ,
The CPU identifies the type of the encoder by the type identifying pulse, and calculates the relationship between the number of pulses output from the encoder and the rotational position of the motor based on the identified type of the encoder. To do.
According to a second aspect of the present invention, the motor control device outputs an A-phase pulse and a B-phase pulse having a phase difference of a predetermined angle from an encoder mounted on a controlled object to the counter and the CPU, and the counter In a motor control device that performs position control by inputting an A-phase pulse and a B-phase pulse ,
A type identification pulse having a specific pattern for identifying the type of an encoder such as an incremental encoder, an absolute encoder, and the number of pulses is formed in advance with waveforms obtained by raising and lowering the A-phase pulse and the B-phase pulse, respectively. The type identification pulse generating means for outputting the type identification pulse to the CPU at the timing of power on when the encoder is turned on is incorporated in the encoder.
The CPU inputs the type identification pulse, identifies the type of the encoder by the type identification pulse, the number of pulses output from the encoder based on the identified type of encoder, the rotational position of the motor, The relationship is calculated, and control corresponding to the identified encoder type is performed .
[0005]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the accompanying drawings. FIG. 1 is a block diagram showing an embodiment of an apparatus capable of dealing with the type of encoder according to the present invention. In the apparatus 10 of FIG. 1, an encoder 12 is connected to a rotating shaft of a motor 11 that is a control target, and an output of the encoder 12 is passed to a control unit including an input circuit 13, a counter 14, and a CPU 15. That is, the output of the encoder 12 is input to the counter 14 and the CPU 15 via the input circuit 13. In such a configuration, when the apparatus 10 is powered on, power is supplied to the encoder 12, and the encoder 12 supplies a specific pattern corresponding to the type of the encoder 12 (for example, an incremental encoder or an absolute encoder, the number of pulses, etc.). Is output. That is, the encoder 12 outputs a type identification pulse corresponding to the type of the encoder 12 among a plurality of type identification pulses (for example, two types in FIG. 2) determined according to the type of the encoder ( (Not shown) is incorporated.
[0006]
The CPU 15 holds a control program corresponding to each type of the encoder 12. The CPU 15 inputs the type identification pulse from the encoder 12 via the input circuit 13, determines the type of the encoder 12, and determines the type of the encoder 12 from the control program based on the determined type of the encoder 12. The control program corresponding to is selected, and the subsequent control is performed. As the subsequent control, for example, the rotational position of the motor 11 or the position of the machine connected to the motor 11 is calculated and controlled based on the output of the counter 14 that counts the pulses sent from the encoder 12. Therefore, the CPU 15 can automatically accurately determine the type of the encoder 12 without an instruction from the operator, based on the type identification pulse sent from the encoder 12 when the apparatus 10 is turned on. It is possible to prevent abnormal operation due to the above.
[0007]
【The invention's effect】
As described above, according to the present invention, the type of the encoder can be automatically and accurately identified by the type identifying pulse output from the encoder. Since there is no setting error of the encoder type due to, there is an effect that the control corresponding to the encoder type can be executed accurately.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an embodiment of a control device of the present invention.
FIG. 2 is a diagram showing an example of a pattern of type identification pulses used in the control device of FIG. 1;
FIG. 3 is a block diagram showing a conventional example.
[Explanation of symbols]
10 Device 11 Motor 12 Encoder 13 Input Circuit 14 Counter 15 CPU

Claims (2)

モータの回転軸に連結されたエンコーダから互いに所定角度の位相差のあるA相パルスおよびB相パルスをカウンタ及びCPUに出力し、前記カウンタが前記A相パルスおよびB相パルスをカウントすることにより前記モータの回転位置を得るモータ回転位置検出方法において、
インクリメンタルエンコーダ、アブソリュートエンコーダ、パルス数というエンコーダの種類を識別するための特定のパターンをもった種類識別用パルスを、前記A相パルスおよびB相パルスをそれぞれアップおよびダウンさせた波形により予め前記エンコーダ側に形成しておき、
電源投入時に、前記エンコーダ側から電源の投入タイミングで前記種類識別用パルスを前記CPUに出力し、
前記CPUが前記種類識別用パルスにより前記エンコーダの種類を識別し、識別した前記エンコーダの種類に基づいて前記エンコーダから出力されるパルス数と前記モータの回転位置との関係を算出することを特徴とするエンコーダ種類に対応するモータ回転位置検出方法。
An A-phase pulse and a B-phase pulse having a phase difference of a predetermined angle are output to a counter and a CPU from an encoder connected to a rotating shaft of the motor, and the counter counts the A-phase pulse and the B-phase pulse, thereby In the motor rotational position detection method for obtaining the rotational position of the motor,
Incremental encoder, absolute encoder, pulse for type identification with a specific pattern for identifying the type of encoder such as the number of pulses is preliminarily set on the encoder side by the waveform obtained by up and down the A phase pulse and B phase pulse, respectively. To form,
When the power is turned on , the type identification pulse is output to the CPU at the power-on timing from the encoder side ,
The CPU identifies the type of the encoder by the type identifying pulse, and calculates the relationship between the number of pulses output from the encoder and the rotational position of the motor based on the identified type of the encoder. Motor rotation position detection method corresponding to the encoder type .
被制御対象に装着されたエンコーダから互いに所定角度の位相差のあるA相パルスおよびB相パルスをカウンタ及びCPUに出力し、前記カウンタが前記A相パルスおよびB相パルスを入力して位置制御を行うモータ制御装置において、
インクリメンタルエンコーダ、アブソリュートエンコーダ、パルス数というエンコーダの種類を識別するための特定のパターンをもった種類識別用パルスを前記A相パルスおよびB相パルスをそれぞれアップおよびダウンさせた波形により予め形成しておき、前記エンコーダの電源投入時に電源の投入タイミングで前記種類識別用パルスを前記CPUに出力する種類識別用パルス発生手段が前記エンコーダに組み込まれ、
前記CPUが前記種類識別用パルスを入力し、前記種類識別用パルスにより前記エンコーダの種類を識別し、識別した前記エンコーダの種類に基づいて前記エンコーダから出力されるパルス数と前記モータの回転位置との関係を算出し、識別したエンコーダ種類に対応した制御をすることを特徴とするモータ制御装置。
An A phase pulse and a B phase pulse having a phase difference of a predetermined angle from each other are output to the counter and the CPU from the encoder mounted on the controlled object, and the counter inputs the A phase pulse and the B phase pulse to perform position control. In the motor control device to perform,
A type identification pulse having a specific pattern for identifying the type of an encoder such as an incremental encoder, an absolute encoder, and the number of pulses is formed in advance with waveforms obtained by raising and lowering the A-phase pulse and the B-phase pulse, respectively. The type identification pulse generating means for outputting the type identification pulse to the CPU at the timing of power on when the encoder is turned on is incorporated in the encoder.
The CPU inputs the type identification pulse, identifies the type of the encoder by the type identification pulse, the number of pulses output from the encoder based on the identified type of encoder, the rotational position of the motor, The motor control device is characterized in that the control is calculated in accordance with the identified encoder type .
JP29857498A 1998-10-20 1998-10-20 Method and apparatus corresponding to encoder type Expired - Fee Related JP4270616B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29857498A JP4270616B2 (en) 1998-10-20 1998-10-20 Method and apparatus corresponding to encoder type

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29857498A JP4270616B2 (en) 1998-10-20 1998-10-20 Method and apparatus corresponding to encoder type

Publications (2)

Publication Number Publication Date
JP2000122704A JP2000122704A (en) 2000-04-28
JP4270616B2 true JP4270616B2 (en) 2009-06-03

Family

ID=17861515

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29857498A Expired - Fee Related JP4270616B2 (en) 1998-10-20 1998-10-20 Method and apparatus corresponding to encoder type

Country Status (1)

Country Link
JP (1) JP4270616B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5698800B2 (en) * 2013-06-25 2015-04-08 ファナック株式会社 Signal conditioning apparatus having termination resistance unit for terminating signal line
JP2017205881A (en) * 2016-05-16 2017-11-24 株式会社日本製鋼所 Motor-driven injection molding machine having driving shaft synchronously controlled by a plurality of servomotors
JP6848222B2 (en) * 2016-06-20 2021-03-24 富士電機株式会社 Speed sensor interface circuit
JP6734752B2 (en) * 2016-10-12 2020-08-05 山洋電気株式会社 Encoder automatic judgment device
JP2018191420A (en) * 2017-05-01 2018-11-29 日本電産株式会社 Brushless dc motor, and identification method, and identification device for identifying type of brushless dc motor
JP2018191419A (en) * 2017-05-01 2018-11-29 日本電産株式会社 Brushless dc motor, and identification method and identification device for identifying type of brushless dc motor

Also Published As

Publication number Publication date
JP2000122704A (en) 2000-04-28

Similar Documents

Publication Publication Date Title
AU717397B2 (en) Angle controller for a switched reluctance drive utilizing high frequency clock
US6956340B2 (en) Method for processing data for an electronically commutated motor and motor for carrying out said method
JP6124112B2 (en) AC motor control device and control method
JP4270616B2 (en) Method and apparatus corresponding to encoder type
CN111801883A (en) Position estimation method, position estimation device, and motor module
JP7277295B2 (en) Servo motor controller
JPH01320467A (en) Measurement of revolutions for machine
JP6875159B2 (en) Brushless motor phase adjuster
KR200156497Y1 (en) Rotation number detection device using hall sensor for position detection of motor
JP3341519B2 (en) Synchronous control device
JP4161695B2 (en) Control device for permanent magnet type synchronous motor
JPS6234210A (en) Detector for original point position
KR960000289B1 (en) Robot origin point setting apparatus and method
JP2664331B2 (en) Motor control device
KR100224862B1 (en) Apparatus and method for callibration of robot arm
JPH11341866A (en) Brushless motor drive method
JP2666798B2 (en) Servo motor runaway detection / prevention method
KR20170045996A (en) Apparatus and method for controlling motor
JPS60154110A (en) Abnormality detecting method of rotary encoder
JP3775476B2 (en) Motor positioning controller
KR100203505B1 (en) Stimulous position correcting method using z- pulse
JPH05248893A (en) Backup type absolute position encoder
JP2576956B2 (en) Industrial robot rotation angle detector
KR0125271B1 (en) The angle and bit adjustable motor controller
JPH0421098A (en) Encoder signal detection circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050314

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060324

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070221

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070423

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070905

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071102

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20071112

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20071130

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20071214

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090121

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090224

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120306

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees