JP4475963B2 - Position detection device - Google Patents

Position detection device Download PDF

Info

Publication number
JP4475963B2
JP4475963B2 JP2004016956A JP2004016956A JP4475963B2 JP 4475963 B2 JP4475963 B2 JP 4475963B2 JP 2004016956 A JP2004016956 A JP 2004016956A JP 2004016956 A JP2004016956 A JP 2004016956A JP 4475963 B2 JP4475963 B2 JP 4475963B2
Authority
JP
Japan
Prior art keywords
phase
pulse
counter
phase pulse
edge
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
JP2004016956A
Other languages
Japanese (ja)
Other versions
JP2005207985A (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.)
Toyo Electric Manufacturing Ltd
Original Assignee
Toyo Electric Manufacturing 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 Toyo Electric Manufacturing Ltd filed Critical Toyo Electric Manufacturing Ltd
Priority to JP2004016956A priority Critical patent/JP4475963B2/en
Publication of JP2005207985A publication Critical patent/JP2005207985A/en
Application granted granted Critical
Publication of JP4475963B2 publication Critical patent/JP4475963B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Description

本発明は、A相、B相、Z相を有するインクリメンタルエンコーダを用いた位置検出装置に関するものである。   The present invention relates to a position detection apparatus using an incremental encoder having an A phase, a B phase, and a Z phase.

一回転に付き、複数のA相パルスとA相パルスと同数で90度の位相を有するB相パルス出力し、Z相パルスを1パルス出力するインクリメンタルエンコーダのZ相パルスの幅は従来例では、A相もしくはB相パルスの1周期以下となっている(例えば、特許文献1参照。)。   In the conventional example, the width of the Z-phase pulse of the incremental encoder that outputs a B-phase pulse that has the same number of A-phase pulses and a plurality of A-phase pulses and a 90-degree phase per rotation and outputs one Z-phase pulse, The period is one cycle or less of the A-phase or B-phase pulse (see, for example, Patent Document 1).

A相パルスもしくはB相パルスの1周期以下の幅を有するZ相パルスを用いたA相信号とB相信号によりアップ・ダウンカウントするカウンタのカウント値の原点位置の修正は従来の技術で示されているようにZ相信号のアップエッジを検出した時点で行われる。   Correction of the origin position of the count value of the counter that counts up and down by the A phase signal and the B phase signal using the Z phase pulse having a width of one cycle or less of the A phase pulse or the B phase pulse is shown in the prior art. As shown, this is performed when the up-edge of the Z-phase signal is detected.

また、Z相信号がハイレベルでかつB相信号(もしくはA相信号)がハイレベルの状態でA相信号のアップエッジ(もしくはB相信号のアップエッジ)を検出した時点でZ相パルスが入力されたと判断し原点位置の修正が行われる。   Also, a Z-phase pulse is input when an up-edge of the A-phase signal (or an up-edge of the B-phase signal) is detected while the Z-phase signal is high and the B-phase signal (or A-phase signal) is high. The origin position is corrected based on the determination.

図3は、正転時におけるA相信号、B相信号、Z相信号およびA相信号とB相信号によるカウント値を示したもので、Z相信号にはt1からt2期間においてノイズによる偽りのZ相パルスが現れ、t3からt4期間において本来のZ相パルスが現れた場合に従来の技術のZ相パルスのアップエッジ検出による原点位置の修正手段を適用した例を示している。   FIG. 3 shows the A phase signal, the B phase signal, the Z phase signal, and the count value by the A phase signal and the B phase signal at the time of forward rotation. The Z phase signal includes false values due to noise in the period from t1 to t2. In this example, when the Z-phase pulse appears and the original Z-phase pulse appears in the period from t3 to t4, the conventional origin position correcting means by detecting the up-edge of the Z-phase pulse is applied.

t1以前においては、A相信号とB相信号によりカウント値はアップカウント動作が行われている。t1においてZ相信号にノイズによる偽りのZ相パルスのアップエッジが検出され、A相信号とB相信号によるカウント値は原点位置に修正される。しかしながらt1において原点位置に修正されたA相信号とB相信号によるカウント値は本来の位置とは異なった位置情報となる。t3において本来のZ相パルスのエッジが検出されることによりA相信号とB相信号によるカウント値は再度原点位置に修正され、本来の位置とA相信号とB相信号によるカウント値とが一致するようになる。したがってt1からt3の期間においては実際の位置とは異なった位置情報が出力され続ける。   Prior to t1, the count value is up-counted by the A-phase signal and the B-phase signal. At t1, an up-edge of a false Z-phase pulse due to noise is detected in the Z-phase signal, and the count values based on the A-phase signal and the B-phase signal are corrected to the origin position. However, the count value based on the A-phase signal and the B-phase signal corrected to the origin position at t1 becomes position information different from the original position. When the original edge of the Z-phase pulse is detected at t3, the count value based on the A-phase signal and the B-phase signal is corrected to the origin position again, and the original position matches the count value based on the A-phase signal and the B-phase signal. To come. Therefore, in the period from t1 to t3, position information different from the actual position continues to be output.

従来例においてもB相信号(もしくはA相信号)がハイレベルの状態でA相信号のアップエッジ(もしくはB相信号のアップエッジ)を挟む形でZ相信号にノイズが混入した場合には、Z相パルス入力を誤検出して誤った原点位置修正が行われ、実際の位置とは異なった位置情報が出力される。   Even in the conventional example, when noise is mixed in the Z-phase signal with the B-phase signal (or A-phase signal) being in the high level and sandwiching the up-edge of the A-phase signal (or the up-edge of the B-phase signal), An erroneous origin position correction is performed by erroneously detecting the Z-phase pulse input, and position information different from the actual position is output.

また、A相信号とB相信号により4逓倍カウントを行っているカウンタにおいて、例えばA相信号にA相パルスの1/2周期以下の短パルスノイズが混入したとしても、A相信号とB相信号によるカウンタのカウント値には影響を及ぼさない。A相パルスの1/2周期以上の短パルスノイズが混入した場合にはA相信号とB相信号によるカウント値に影響するが短パルスノイズ幅相当の影響であり大きな誤差とはならない。
特許3413053号
Further, in a counter that performs quadruple counting using an A-phase signal and a B-phase signal, for example, even if short-pulse noise that is equal to or less than a half cycle of the A-phase pulse is mixed in the A-phase signal, the A-phase signal and the B-phase signal It does not affect the count value of the counter by the signal. When short pulse noise of 1/2 cycle or more of the A phase pulse is mixed, it affects the count value by the A phase signal and the B phase signal, but it is an effect corresponding to the short pulse noise width and does not cause a large error.
Japanese Patent No. 3413053

解決しようとする問題点は、Z相信号に短パルスノイズが混入した場合には、間違った原点位置修正が行われ、位置検出器は位置情報に大きな誤差を発生する点である。   The problem to be solved is that when short pulse noise is mixed in the Z-phase signal, the origin position is corrected incorrectly, and the position detector generates a large error in the position information.

本発明は、Z相パルスはA相パルスもしくはB相パルスの2パルス以上の幅を有し、前記Z相パルスのアップエッジ検出後もしくはダウンエッジ検出後を判断するZ相パルスエッジ検出器を設け、前記Z相パルスのアップエッジ検出後に前記A相パルスと前記B相パルスのアップ・ダウンカウントを開始するZ相アップエッジ後カウンタを設け、該Z相アップエッジ後カウンタのカウンタ値と前記Z相パルスの幅に相当する前記A相パルスと前記B相パルスのカウント値未満の数値があらかじめ設定されている設定器の出力を比較しZ相パルスの入力を判定するZ相パルス入力判定器を設け、Z相パルスのアップエッジ位置における前記A相B相カウンタの修正値を記憶するデータ記憶器と前記Z相入力判定器の出力と前記Z相アップエッジ後カウンタの出力により前記A相B相カウンタの原点位置修正を行う位置修正器1を具備することを特徴とする。   The present invention provides a Z-phase pulse edge detector for determining whether the Z-phase pulse has a width of two or more of an A-phase pulse or a B-phase pulse, and after detecting an up-edge or a down-edge of the Z-phase pulse. A counter after the Z-phase up-edge that starts up / down-counting of the A-phase pulse and the B-phase pulse after detecting the up-edge of the Z-phase pulse, and the counter value of the counter after the Z-phase up-edge and the Z phase A Z-phase pulse input determination device is provided for comparing the output of a setting device in which a numerical value less than the count value of the A-phase pulse and the B-phase pulse corresponding to the pulse width is set in advance to determine the input of the Z-phase pulse. , A data storage for storing the correction value of the A-phase B-phase counter at the up-edge position of the Z-phase pulse, the output of the Z-phase input determination unit, and the post-Z-phase up-edge Wherein the the output of the printer comprises a position correction unit 1 to perform the origin position correction of the A-phase B-phase counter.

また、前記A相パルスと前記B相パルスにより回転方向を判別する回転方向判別器を設け、設定器には前記Z相パルスの幅に相当する前記A相パルスと前記B相パルスのカウント値未満の数値を前記回転方向判別器の出力に応じて設定する設定器を設け、データ記憶器には前記Z相パルスのアップエッジ位置における前記A相B相カウンタの修正値を前記回転方向判別器の出力に応じて記憶するデータ記憶器を設けることを特徴とする。   Further, a rotation direction discriminator for discriminating the rotation direction based on the A phase pulse and the B phase pulse is provided, and the setter is less than the count value of the A phase pulse and the B phase pulse corresponding to the width of the Z phase pulse. Is set according to the output of the rotational direction discriminator, and the data storage unit stores the correction value of the A-phase B-phase counter at the up-edge position of the Z-phase pulse in the rotational direction discriminator. A data storage device that stores data in accordance with the output is provided.

また、設定器には前記Z相パルスの幅に相当する前記A相パルスと前記B相パルスのカウント値の1/2となる単一の数値を設定し、前記回転方向判別器の出力により符号のみを切り替えるように構成し、請求項1のデータ記憶器には前記Z相パルスの中心位置における前記A相B相カウンタの修正値を記憶するように構成し、Z相パルス入力判定器は、前記回転方向判別器の出力に応じた符号を持つ前記設定器の出力と前記Z相アップエッジ後カウンタのカウント値を比較し、前記Z相パルスの入力を判定すると前記A相B相カウンタを前記データ記憶器の数値に再設定することを特徴とする。   Further, a single numerical value that is ½ of the count value of the A-phase pulse and the B-phase pulse corresponding to the width of the Z-phase pulse is set in the setting device, and the code is determined by the output of the rotation direction discriminator. The data storage device according to claim 1 is configured to store a correction value of the A-phase / B-phase counter at the center position of the Z-phase pulse, and the Z-phase pulse input determination device includes: The output of the setter having a sign corresponding to the output of the rotation direction discriminator is compared with the count value of the counter after the Z-phase up-edge, and when the input of the Z-phase pulse is determined, the A-phase B-phase counter is It is characterized by resetting to the value of the data memory.

また、前記A相B相カウンタのカウント値が前記インクリメンタルエンコーダ一回転に相当するカウント値を超過する場合に、前記回転方向判別器の出力に応じてインクリメンタルエンコーダ一回転相当のカウント値以内となるように前記A相B相カウンタのカウント値を修正する位置修正器2を具備することを特徴とする。   Further, when the count value of the A-phase / B-phase counter exceeds the count value corresponding to one rotation of the incremental encoder, it is within the count value corresponding to one rotation of the incremental encoder according to the output of the rotation direction discriminator. And a position corrector 2 for correcting the count value of the A-phase / B-phase counter.

A相、B相、Z相を有するインクリメンタルエンコーダのZ相信号にノイズが混入しても、誤った原点位置修正を行うことなく、信頼性の高い位置情報をコントローラに提供できるようになる。   Even if noise is mixed in the Z-phase signal of the incremental encoder having the A-phase, B-phase, and Z-phase, it is possible to provide highly reliable position information to the controller without erroneously correcting the origin position.

Z相信号に短パルスノイズが混入しても信頼性の高い位置情報をコントローラに提供するという目的を、Z相信号へのフィルタ処理などによる遅れを発生させずに実現した。   The purpose of providing highly reliable position information to the controller even if short pulse noise is mixed in the Z-phase signal is realized without causing a delay due to the filtering process to the Z-phase signal.

図1に本発明の請求項1、請求項2、請求項4を組み合わせた実施例を示し、図1に基づいて本発明の詳細な説明をする。   FIG. 1 shows an embodiment combining claim 1, claim 2 and claim 4 of the present invention, and the present invention will be described in detail based on FIG.

インクリメンタルエンコーダ1は一回転に付き複数のA相パルスとA相パルスと同数で90度の位相を有するB相パルスを出力し、A相パルスの2パルス以上の幅を有するZ相パルスを1パルス出力する。回転方向判別器2はインクリメンタルエンコーダ1のA相信号とB相信号により、エンコーダの回転方向を判別する。   Incremental encoder 1 outputs a plurality of A-phase pulses and a B-phase pulse having the same number of A-phase pulses and a phase of 90 degrees per rotation, and one Z-phase pulse having a width of two or more A-phase pulses. Output. The rotation direction discriminator 2 discriminates the rotation direction of the encoder based on the A phase signal and the B phase signal of the incremental encoder 1.

A相B相カウンタ3はインクリメンタルエンコーダ1のA相信号とB相信号を4逓倍カウントする。本実施例においてはA相信号とB相信号のアップエッジとダウンエッジの入力順序がA相パルスに対してB相パルスが90度遅れ位相となり、A相(アップ)→B相(アップ)→A相(ダウン)→B相(ダウン)・・・となる場合は正転と判断し、A相B相カウンタ3はアップカウント動作し、A相パルスに対してB相パルスが90度進み位相となりA相(アップ)→B相(ダウン)→A相(ダウン)→B相(アップ)・・・となる場合は逆転と判断し、A相B相カウンタ3はダウンカウント動作する。   The A phase B phase counter 3 counts the A phase signal and the B phase signal of the incremental encoder 1 by 4 times. In this embodiment, the input order of the up edge and the down edge of the A phase signal and the B phase signal is 90 degrees behind the A phase pulse, and the A phase (up) → B phase (up) → When A phase (down) → B phase (down). When A phase (up) → B phase (down) → A phase (down) → B phase (up)..., It is determined that the rotation is reversed, and the A phase B phase counter 3 performs a down count operation.

Z相パルスエッジ検出器4は、インクリメンタルエンコーダ1が出力するZ相パルスのアップエッジを検出した際には1を出力し、ダウンエッジを検出した際には0を出力し、次にアップエッジまたはダウンエッジを検出するまで値を維持する。   The Z-phase pulse edge detector 4 outputs 1 when the up-edge of the Z-phase pulse output from the incremental encoder 1 is detected, outputs 0 when the down-edge is detected, and then outputs the up-edge or The value is maintained until a down edge is detected.

Z相パルスのアップエッジが検出されZ相パルスエッジ検出器4の出力が1となり、後述する位置修正器9のスイッチ91が0に接続されている場合には、切替器5内のEXOR51の出力は1となり、スイッチ52がA相信号とB相信号の入力に切り替り、Z相アップエッジ後カウンタ7はカウント動作を開始する。Z相パルスのダウンエッジが検出されZ相パルスエッジ検出器4の出力が0となった場合、または後述する位置修正器9内のスイッチ91が1に接続された場合には、切替器5内のEXOR51の出力は0となり、スイッチ52が0の入力に切り換り、Z相アップエッジ後カウンタ7は0クリアされる。なおZ相パルスエッジ検出器4の出力が0の状態で位置修正器9内のスイッチ91が1に接続されることはない。   When the up edge of the Z phase pulse is detected and the output of the Z phase pulse edge detector 4 becomes 1, and the switch 91 of the position corrector 9 described later is connected to 0, the output of the EXOR 51 in the switch 5 Becomes 1, and the switch 52 switches to the input of the A-phase signal and the B-phase signal, and the counter 7 starts counting after the Z-phase up edge. When the down edge of the Z-phase pulse is detected and the output of the Z-phase pulse edge detector 4 becomes 0, or when the switch 91 in the position corrector 9 described later is connected to 1, the switch 5 The output of the EXOR 51 becomes 0, the switch 52 switches to the input of 0, and the counter 7 is cleared to 0 after the Z-phase up edge. The switch 91 in the position corrector 9 is not connected to 1 when the output of the Z-phase pulse edge detector 4 is 0.

設定器6には、正転用比較値と逆転用比較値が存在し、正転用比較値にはZ相パルス幅に相当するA相パルスとB相パルスのカウント値より小さい正の数値が設定され、逆転用比較値には正転用比較値の符号を反転(負)した数値が設定される。   The setter 6 has a forward rotation comparison value and a reverse rotation comparison value, and a positive numerical value smaller than the count values of the A phase pulse and the B phase pulse corresponding to the Z phase pulse width is set as the forward rotation comparison value. The reverse comparison value is set to a value obtained by inverting (negative) the sign of the forward rotation comparison value.

Z相パルス入力判定器8は、回転方向判別器2の出力が正転の場合には、Z相アップエッジ後カウンタ7のカウント値が設定器6の正転用比較値と一致するかもしくは大きくなった場合にZ相が入力されたと判断し1を出力し、Z相アップエッジ後カウンタ7のカウント値が設定器6の正転用比較値よりも小さい場合には0を出力する。回転方向判別器2の出力が逆転の場合には、Z相アップエッジ後カウンタ7のカウント値が設定器6の逆転用比較値と一致するかもしくは小さくなった場合にZ相が入力されたと判断し1を出力し、Z相アップエッジ後カウンタ7のカウント値が設定器6の逆転用比較値よりも大きい場合には0を出力する。   When the output of the rotation direction discriminator 2 is normal rotation, the Z-phase pulse input determination unit 8 has the count value of the counter 7 after the Z-phase up edge coincides with or becomes larger than the normal rotation comparison value of the setting unit 6. In this case, it is determined that the Z-phase has been input, and 1 is output. If the count value of the counter 7 after the Z-phase up edge is smaller than the forward rotation comparison value of the setting device 6, 0 is output. When the output of the rotation direction discriminator 2 is reverse rotation, it is determined that the Z phase is input when the count value of the counter 7 after the Z-phase up edge coincides with or becomes smaller than the reverse rotation comparison value of the setting device 6. 1 is output, and 0 is output when the count value of the counter 7 after the Z-phase up-edge is larger than the comparison value for reverse rotation of the setter 6.

位置修正器9はZ相パルス入力判定器8の出力が1となった場合、データ記憶器92にZ相アップエッジ後カウンタ7のカウント値を加算し、スイッチ93がONし、A相B相カウンタ3のカウント値を修正し、またスイッチ91が1に接続され切替器5によりZ相アップエッジ後カウンタ7のカウント値を0クリアする。   When the output of the Z-phase pulse input determiner 8 becomes 1, the position corrector 9 adds the count value of the counter 7 after the Z-phase up edge to the data memory 92, the switch 93 is turned ON, and the A-phase B-phase The count value of the counter 3 is corrected, and the switch 91 is connected to 1, and the switch 5 clears the count value of the counter 7 after the Z-phase up edge to 0.

データ記憶器92は、Z相アップエッジ位置におけるA相B相カウンタ3の修正値が正転用修正値と逆転用修正値として記憶されており、回転方向判別器2の出力により選択される。なお正転用修正値と逆転用修正値とではZ相パルス幅相当のA相信号とB相信号のカウント値の差を持つ。   The data storage device 92 stores the correction value of the A-phase / B-phase counter 3 at the Z-phase up-edge position as the correction value for normal rotation and the correction value for reverse rotation, and is selected by the output of the rotation direction discriminator 2. Note that the correction value for forward rotation and the correction value for reverse rotation have a difference between the count values of the A-phase signal and the B-phase signal corresponding to the Z-phase pulse width.

位置修正器10はA相B相カウンタ3のカウント値がインクリメンタルエンコーダ一回転に相当するカウント値を超過すると回転方向判別器2の出力が正転の場合にエンコーダのインクリメンタルエンコーダ一回転に相当するカウント値を減算し、回転方向判別器2の出力が逆転の場合にインクリメンタルエンコーダ一回転に相当するカウント値を加算してA相B相カウンタ3のカウント値がインクリメンタルエンコーダ一回転に相当するカウント値以内となるように修正する。   When the count value of the A-phase / B-phase counter 3 exceeds the count value corresponding to one rotation of the incremental encoder, the position corrector 10 counts corresponding to one rotation of the incremental encoder of the encoder when the output of the rotation direction discriminator 2 is normal. When the output of the rotation direction discriminator 2 is reversed, the count value corresponding to one rotation of the incremental encoder is added and the count value of the A-phase / B-phase counter 3 is within the count value corresponding to one rotation of the incremental encoder. Modify to be.

A相B相カウンタ3のカウント値は位置情報を用いるコントローラ11に伝送される。   The count value of the A phase B phase counter 3 is transmitted to the controller 11 using the position information.

図2は、正転時におけるA相信号、B相信号、Z相信号およびA相信号とB相信号によるカウント値を示したもので、t1からt2期間において偽りのZ相パルスが現れ、t4からt6期間において本来のZ相パルスが現れた場合を示している。   FIG. 2 shows the A-phase signal, the B-phase signal, the Z-phase signal, and the count value by the A-phase signal and the B-phase signal at the time of forward rotation, and a false Z-phase pulse appears in the period from t1 to t2. This shows a case where an original Z-phase pulse appears in the period t6 to t6.

設定器6の正転用比較値には8が設定されているものとする。t1以前では、位置修正器9のスイッチ91は0に接続されており、Z相パルスエッジ検出器4の出力はダウンエッジを検出した後で0であり、Z相アップエッジ後カウンタ7は0クリアされているものとする。   It is assumed that 8 is set as the forward rotation comparison value of the setting device 6. Before t1, the switch 91 of the position corrector 9 is connected to 0, the output of the Z-phase pulse edge detector 4 is 0 after detecting the down edge, and the counter 7 after the Z-phase up edge is cleared to 0. It is assumed that

t1においてZ相アップエッジが検出されZ相アップエッジ後カウンタ7にてA相信号とB相信号のカウントが開始される。t2においてはZ相アップエッジ後カウンタ7のカウント値は2で、設定器6に設定された8を越える前に、Z相ダウンエッジが検出され、Z相アップエッジ後カウンタ7は0にクリアされる。したがってt1からt2期間においては偽りのZ相パルスによる位置修正は行われない。   At t1, the Z-phase up edge is detected, and the counter 7 starts counting the A-phase signal and the B-phase signal after the Z-phase up edge. At t2, the count value of the counter 7 after the Z-phase up edge is 2, the Z-phase down edge is detected before exceeding the 8 set in the setting device 6, and the counter 7 after the Z-phase up edge is cleared to 0. The Therefore, position correction by a false Z-phase pulse is not performed during the period from t1 to t2.

t3においてA相B相カウンタ3のカウント値は、インクリメンタルエンコーダ一回転に相当するカウント値を超過したため、位置修正器10にてA相B相カウンタ3のカウント値からインクリメンタルエンコーダ一回転に相当するカウント値を減算しA相B相カウンタ3のカウンタ値が修正される。   Since the count value of the A-phase / B-phase counter 3 exceeds the count value corresponding to one incremental encoder rotation at t3, the position corrector 10 counts from the count value of the A-phase / B-phase counter 3 to one incremental encoder rotation. The value is subtracted and the counter value of the A phase B phase counter 3 is corrected.

t4においてZ相アップエッジが検出され、Z相アップエッジ後カウンタ7にてA相信号とB相信号のカウントが開始される。t5においてZ相アップエッジ後カウンタ7のカウント値が8となり、設定器6の正転比較値と一致したためZ相パルス入力判定器8においてZ相パルスが入力されたと判定され、位置修正器9で、データ記憶器92にZ相アップエッジ後カウンタのカウンタ値を加算することにより、A相B相カウンタ3のカウント値が修正される。これと同時に位置修正器9により切替器5内のスイッチ52は0に切り替り、Z相アップエッジ後カウンタ7は0にクリアされる。   At t4, the Z-phase up edge is detected, and the counter 7 starts counting the A-phase signal and the B-phase signal after the Z-phase up edge. At t5, the count value of the counter 7 after the Z-phase up-edge becomes 8, which coincides with the forward rotation comparison value of the setting device 6, so that it is determined that the Z-phase pulse is input by the Z-phase pulse input determiner 8, and the position corrector 9 The count value of the A-phase / B-phase counter 3 is corrected by adding the counter value of the counter after the Z-phase up edge to the data memory 92. At the same time, the position corrector 9 switches the switch 52 in the switch 5 to 0, and the counter 7 after the Z-phase up edge is cleared to 0.

上述のようにZ相信号に混入したノイズによるZ相パルス入力の誤検出を防ぐことができ、Z相パルス入力による適切な位置修正を行うことがでる。これにより信頼性の高い位置情報をコントローラに提供することができる。   As described above, erroneous detection of the Z-phase pulse input due to noise mixed in the Z-phase signal can be prevented, and appropriate position correction by the Z-phase pulse input can be performed. Thereby, highly reliable position information can be provided to the controller.

本発明によりZ相信号にノイズが混入しても信頼性の高い位置情報をコントローラに提供できるので、位置検出器取付けた電動機をノイズの発生源となるインバータ等の電力変換器で運転する用途にも適用でき、産業上の利用の可能性は大いにある。   According to the present invention, even if noise is mixed in the Z-phase signal, highly reliable position information can be provided to the controller, so that the electric motor with the position detector attached is operated with a power converter such as an inverter that is a source of noise. Can be applied, and there is great potential for industrial use.

請求項1、請求項2、請求項4を組み合わせた実施例を示したブロック図である。(実施例1)It is the block diagram which showed the Example which combined Claim 1, Claim 2, and Claim 4. FIG. Example 1 請求項1、請求項2、請求項4を適用した際の動作を示している。(実施例1)The operation at the time of applying Claim 1, Claim 2, and Claim 4 is shown. Example 1 背景技術を適用した際の動作を示している。The operation | movement at the time of applying background art is shown.

符号の説明Explanation of symbols

1 インクリメンタルエンコーダ
2 回転方向判別器
3 A相B相カウンタ
4 Z相パルスエッジ検出器
5 切替器
51 EXOR
52 スイッチ
6 設定器
7 Z相アップエッジ後カウンタ
8 Z相パルス入力判定器
9 位置修正器1
91 スイッチ
92 データ記憶器
93 スイッチ
10 位修正器2
11 コントローラ

1 Incremental Encoder 2 Rotation Direction Discriminator 3 A Phase B Phase Counter 4 Z Phase Pulse Edge Detector 5 Switch 51 EXOR
52 Switch 6 Setter 7 Counter after Z-phase up edge 8 Z-phase pulse input determiner 9 Position corrector 1
91 Switch 92 data storage unit 93 switches 10 of location corrector 2
11 Controller

Claims (4)

回転変移する回転体に取り付けられ一回転に付き、複数パルスを出力するA相パルス発生器と、A相パルスと同数のパルスを90度の位相を有して出力するB相パルス発生器と、1パルスを出力するZ相パルス発生器で構成されるインクリメンタルエンコーダを用い、前記A相パルスと前記B相パルスをアップ・ダウンカウントするA相B相カウンタにより回転体の位置検出し、前記Z相パルスにて前記A相B相カウンタのカウンタ値の原点位置修正を行う位置検出装置において、
Z相パルスは前記A相パルスもしくは前記B相パルスの2パルス以上の幅を有し、前記Z相パルスのアップエッジ検出後もしくはダウンエッジ検出後を判断するZ相パルスエッジ検出器を設け、前記Z相パルスのアップエッジ検出後に前記A相パルスと前記B相パルスのアップ・ダウンカウントを開始するZ相アップエッジ後カウンタを設け、該Z相アップエッジ後カウンタのカウンタ値と前記Z相パルスの幅に相当する前記A相パルスと前記B相パルスのカウント値未満の数値があらかじめ設定されている設定器の出力を比較しZ相パルスの入力を判定するZ相パルス入力判定器を設け、Z相パルスのアップエッジ位置における前記A相B相カウンタの修正値を記憶するデータ記憶器と前記Z相入力判定器の出力と前記Z相アップエッジ後カウンタの出力により前記A相B相カウンタの原点位置修正を行う位置修正器1を具備することを特徴とする位置検出装置。
An A-phase pulse generator that outputs a plurality of pulses per rotation, attached to a rotating body that rotates, and a B-phase pulse generator that outputs the same number of pulses as the A-phase pulses with a phase of 90 degrees; Using an incremental encoder composed of a Z-phase pulse generator that outputs one pulse, the position of the rotating body is detected by an A-phase B-phase counter that counts up and down the A-phase pulse and the B-phase pulse, and the Z-phase In the position detection device for correcting the origin position of the counter value of the A-phase B-phase counter with a pulse
The Z-phase pulse has a width of two or more pulses of the A-phase pulse or the B-phase pulse, and a Z-phase pulse edge detector is provided for determining whether the Z-phase pulse has been detected after the up-edge or the down-edge has been detected, A counter after the Z-phase up-edge that starts up / down-counting of the A-phase pulse and the B-phase pulse after detecting the up-edge of the Z-phase pulse is provided. The counter value of the counter after the Z-phase up-edge and the Z-phase pulse A Z-phase pulse input determination unit is provided for comparing the output of a setting device in which a numerical value less than the count value of the A-phase pulse and the B-phase pulse corresponding to the width is set in advance to determine the input of the Z-phase pulse; A data memory for storing the correction value of the A-phase and B-phase counters at the up-edge position of the phase pulse, the output of the Z-phase input determination unit, and the counter after the Z-phase up-edge Position detecting device characterized by comprising a position corrector 1 for origin position correction of the A-phase B-phase counter by the output of the motor.
請求項1の位置検出器において
前記A相パルスと前記B相パルスにより回転方向を判別する回転方向判別器を設け、請求項1の設定器には前記Z相パルスの幅に相当する前記A相パルスと前記B相パルスのカウント値未満の数値を前記回転方向判別器の出力に応じて設定する設定器を設け、請求項1のデータ記憶器には前記Z相パルスのアップエッジ位置における前記A相B相カウンタの修正値を前記回転方向判別器の出力に応じて記憶するデータ記憶器を設けることを特徴とする請求項1の位置検出装置。
2. The position detector according to claim 1, further comprising a rotation direction discriminator for discriminating a rotation direction based on the A phase pulse and the B phase pulse, and the setting device according to claim 1, wherein the A phase corresponding to a width of the Z phase pulse is provided. A setting device is provided for setting a numerical value less than the count value of the pulse and the B-phase pulse according to the output of the rotation direction discriminator, and the data storage device of claim 1 has the A at the up-edge position of the Z-phase pulse. 2. The position detection device according to claim 1, further comprising a data storage device for storing a correction value of the phase B phase counter in accordance with an output of the rotation direction discriminator.
請求項2の位置検出装置において、
請求項1の設定器には前記Z相パルスの幅に相当する前記A相パルスと前記B相パルスのカウント値の1/2となる単一の数値を設定し、請求項2の回転方向判別器の出力により符号のみを切り替えるように構成し、請求項1のデータ記憶器には前記Z相パルスの中心位置における前記A相B相カウンタの修正値を記憶するように構成し、請求項1のZ相パルス入力判定器は、前記回転方向判別器の出力に応じた符号を持つ前記設定器の出力と前記Z相アップエッジ後カウンタのカウント値を比較し、前記Z相パルスの入力を判定すると前記A相B相カウンタを前記データ記憶器の数値に再設定することを特徴とする請求項1の位置検出装置。
The position detection device according to claim 2,
The setting device of claim 1 sets a single numerical value that is ½ of the count value of the A-phase pulse and the B-phase pulse corresponding to the width of the Z-phase pulse. The data storage device of claim 1 is configured to store the correction value of the A-phase B-phase counter at the center position of the Z-phase pulse, and the data storage device of claim 1 is configured to store the correction value of the A-phase B-phase counter. The Z-phase pulse input determiner compares the output of the setter having a sign corresponding to the output of the rotation direction discriminator and the count value of the counter after the Z-phase up-edge to determine the input of the Z-phase pulse. Then, the position detection device according to claim 1, wherein the A-phase and B-phase counters are reset to the numerical values of the data memory.
前記A相B相カウンタのカウント値が前記インクリメンタルエンコーダ一回転に相当するカウント値を超過する場合に、前記回転方向判別器の出力に応じてインクリメンタルエンコーダ一回転相当のカウント値以内となるように前記A相B相カウンタのカウント値を修正する位置修正器2を具備することを特徴とする請求項1、請求項2および請求項3のいずれか一つに記載された位置検出装置。 When the count value of the A-phase / B-phase counter exceeds the count value corresponding to one rotation of the incremental encoder, the count value corresponding to one rotation of the incremental encoder is within the count value corresponding to the output of the rotation direction discriminator. The position detecting device according to any one of claims 1, 2, and 3, further comprising a position corrector 2 for correcting a count value of the A phase B phase counter.
JP2004016956A 2004-01-26 2004-01-26 Position detection device Expired - Fee Related JP4475963B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004016956A JP4475963B2 (en) 2004-01-26 2004-01-26 Position detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004016956A JP4475963B2 (en) 2004-01-26 2004-01-26 Position detection device

Publications (2)

Publication Number Publication Date
JP2005207985A JP2005207985A (en) 2005-08-04
JP4475963B2 true JP4475963B2 (en) 2010-06-09

Family

ID=34901943

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004016956A Expired - Fee Related JP4475963B2 (en) 2004-01-26 2004-01-26 Position detection device

Country Status (1)

Country Link
JP (1) JP4475963B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102778251A (en) * 2012-07-18 2012-11-14 宁波海得工业控制系统有限公司 Zero position correction method for permanent magnet alternating current servo motor incremental encoder

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110518856A (en) * 2019-08-09 2019-11-29 深圳市海浦蒙特科技有限公司 Motor position antidote, door motor control method and system and elevator
CN113358140B (en) * 2021-06-02 2023-07-14 上海亨临光电科技有限公司 Method for eliminating positive and negative zero-setting deviation of incremental rotary encoder and counting method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102778251A (en) * 2012-07-18 2012-11-14 宁波海得工业控制系统有限公司 Zero position correction method for permanent magnet alternating current servo motor incremental encoder
CN102778251B (en) * 2012-07-18 2016-01-20 宁波海得工业控制系统有限公司 The method of permanent-magnet alternating current servo motor incremental encoder check and correction zero-bit

Also Published As

Publication number Publication date
JP2005207985A (en) 2005-08-04

Similar Documents

Publication Publication Date Title
JP4475963B2 (en) Position detection device
CN110806224B (en) Incremental encoder position correction system and method
JP4782434B2 (en) Rotation detection device signal processing device
JP3047809B2 (en) Rotary encoder
JP2001249154A (en) Disconnection detecting device for encoder and method for disconnection detection
JP2004144667A (en) Positional information anomaly detector
JP2006234504A (en) Rotation detector
JPH06160113A (en) Generation of high-resolution absolute signal
JP2006300699A (en) Speed detector, and abnormal speed detecting method therefor
JP4631427B2 (en) Fault detector for rotational speed detector
JP4463533B2 (en) Rotary encoder detection device
JP3331114B2 (en) Rotary encoder rotation step monitoring device
JP3241138B2 (en) Absolute encoder output signal abnormality detection method
EP0065998A1 (en) Pulse detection circuit
JP2005030989A (en) Rotation detecting device and electronic device of rotary encoder
JP2010074637A (en) Up/down counter device
JP2998720B2 (en) Rotation angle detector
KR101077756B1 (en) Apparatus for detecting error using Z phase pulse signal
JP3067729B2 (en) Encoder signal processing method and device
JP2011149716A (en) Encoder device
JP2005030787A (en) Rotator rotation angle detection device for permanent magnet synchronous motor
JP3033297B2 (en) Multi-turn absolute encoder
JPH065175B2 (en) Absolute type encoder
JP3070109B2 (en) Absolute position detection method and device
JP2006208270A (en) Signal processing circuit of encoder

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061108

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090911

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091006

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091203

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100309

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: 20100309

R150 Certificate of patent or registration of utility model

Ref document number: 4475963

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130319

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140319

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees