JPH0612267B2 - Pulse encoder pulse reading circuit - Google Patents
Pulse encoder pulse reading circuitInfo
- Publication number
- JPH0612267B2 JPH0612267B2 JP6543288A JP6543288A JPH0612267B2 JP H0612267 B2 JPH0612267 B2 JP H0612267B2 JP 6543288 A JP6543288 A JP 6543288A JP 6543288 A JP6543288 A JP 6543288A JP H0612267 B2 JPH0612267 B2 JP H0612267B2
- Authority
- JP
- Japan
- Prior art keywords
- pulse
- signal
- edge
- output
- detecting means
- 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 - Lifetime
Links
Description
【発明の詳細な説明】 〔産業上の利用分野〕 この発明は工作機械の主軸の定位置停止制御装置等で位
置検出に使用するパルスエンコーダにおいて、原点リセ
ット信号の誤出力を確実に防止することができるように
したパルス読み込み回路に関する。DETAILED DESCRIPTION OF THE INVENTION [Industrial application] The present invention is intended to reliably prevent erroneous output of an origin reset signal in a pulse encoder used for position detection in a fixed position stop control device for a spindle of a machine tool or the like. The present invention relates to a pulse reading circuit capable of performing.
パルスエンコーダのパルス読み込み回路の従来例を第4
図にもとづいて説明する。この図において、パルスエツ
ジ検出手段1,2で第5図に示すA相パルスとB相パル
スのそれぞれ立ち上がりエツジと立ち下がりエツジを検
出してエツジ信号3,4を出力するとともに、回転方向
判別手段5でA相とB相の位相関係から回転方向を判別
して回転方向信号6を出力するようになっている。一方
前記エンコーダの1回転に1回出力するCパルスは立ち
上がり検出手段7と立ち下がり検出手段8でそれぞれ立
ち上がりエツジと立ち下がりエツジを検出してその出力
信号と前記回転方向信号6により正転時は立ち上がりエ
ツジをまた逆転時は立ち下がりエツジを有効エツジと判
断する有効エツジ検出手段9でリセット信号10を出力
し、このリセット信号10をカウンタのリセット等の原
点信号として使用するようにしていた。Fourth example of conventional pulse reading circuit of pulse encoder
It will be described based on the drawings. In this figure, the pulse edge detecting means 1 and 2 detect the rising edge and falling edge of the A-phase pulse and the B-phase pulse shown in FIG. Then, the rotation direction is determined based on the phase relationship between the A phase and the B phase, and the rotation direction signal 6 is output. On the other hand, the C pulse output once per one rotation of the encoder is detected at the rising edge and the falling edge by the rising edge detecting means 7 and the falling edge detecting means 8 respectively, and the output signal thereof and the rotation direction signal 6 cause normal rotation. The reset signal 10 is output by the valid edge detecting means 9 which determines the rising edge and the falling edge as the valid edge when reversing, and the reset signal 10 is used as the origin signal for resetting the counter.
前記Cパルスには第6図に示すように幅があるので原点
位置を正確にするために正転時は第6図(a)に有効エ
ツジと図示した立ち上がりエツジでまた逆転時は第6図
(b)に示すように立ち下がりエツジでリセット信号1
0を出力する必要があり、この動作は一般に回転方向信
号6がHレベルの場合は立ち上がりエツジでまたLレベ
ルの場合は立ち下がりエツジで行うようになっている。
ところが前記回路では第7図のタイムチャートに示すよ
うに正転でx位置まで移動させた後逆転させると回転方
向判別手段5にA相パルスまたはB相パルスのいずれか
が入力されるまで回転方向の判別ができず回転方向信号
6が実際の回転方向より遅れて出力されるので、リセッ
ト信号10を本来出力すべきでないCパルスの立ち上が
りエツジ(無効エツジ)のy位置で出力してしまうこと
があるという欠点があった。Since the C pulse has a width as shown in FIG. 6, in order to make the origin position accurate, in the normal rotation, the effective edge and the rising edge shown in FIG. Reset signal 1 at the falling edge as shown in (b)
It is necessary to output 0, and this operation is generally performed at the rising edge when the rotation direction signal 6 is at the H level and at the falling edge when the rotation direction signal 6 is at the L level.
However, in the above-mentioned circuit, as shown in the time chart of FIG. 7, when the rotation direction is moved to the x position and then reversed, the rotation direction is determined until either the A-phase pulse or the B-phase pulse is input to the rotation direction determination means 5. However, since the rotation direction signal 6 is output later than the actual rotation direction, the reset signal 10 may be output at the y position of the rising edge (ineffective edge) of the C pulse that should not be output. There was a drawback.
この発明は前記の欠点を除去するために、Cパルスの無
効エツジ付近で正逆反転してもリセット信号の誤出力を
確実に防止することができるようにしたパルスエンコー
ダのパルス読み込み回路を提供することを目的とする。In order to eliminate the above-mentioned drawbacks, the present invention provides a pulse reading circuit of a pulse encoder capable of surely preventing an erroneous output of a reset signal even if it is reversed in the reverse direction in the vicinity of an invalid edge of a C pulse. The purpose is to
この発明は前記の目的を達成するために、Cパルスの有
効エツジ検出手段9と並列に無効エツジ検出手段11を
設けるとともに有効エツジ検出手段9の次段に有効エツ
ジ禁止検出手段12を設け、これらの出力信号の論理和
のうちにCパルスの無効エツジ信号13があると前記有
効エツジ禁止検出手段12および論理積素子14にリセ
ット信号出力禁止信号15を出力する禁止信号メモリ1
6と、前記リセット信号出力禁止信号15をその出力後
A相パルスまたはB相パルスの少なくともいずれかの新
しいエツジ信号3,4の入力を待って解除しこの状態で
Cパルスの有効エツジ信号17を前記論理積素子14を
介しリセット信号10として出力するリセット手段18
とを備えるようにしたものである。In order to achieve the above-mentioned object, the present invention is provided with an invalid edge detecting means 11 in parallel with the effective edge detecting means 9 for the C pulse, and an effective edge prohibiting detecting means 12 is provided at the next stage of the effective edge detecting means 9. If there is a C-pulse invalid edge signal 13 in the logical sum of the output signals of the above, the inhibition signal memory 1 for outputting the reset signal output inhibition signal 15 to the valid edge inhibition detection means 12 and the AND element 14
6 and the reset signal output prohibition signal 15 is released after the output of the new edge signal 3 or 4 of at least one of the A-phase pulse and the B-phase pulse, and in this state, the effective edge signal 17 of the C pulse is output. Reset means 18 for outputting the reset signal 10 via the AND element 14
It is equipped with and.
前記リセット信号出力禁止信号15を回転方向信号6が
実際の回転方向と一致したこと確認して解除し、その後
の最初のCパルスの有効エツジ信号17をリセット信号
10として出力するようにしたので、無効エツジ信号1
3の誤判断によるリセット信号10の誤出力を確実に防
止することができる。Since the reset signal output inhibition signal 15 is released after confirming that the rotation direction signal 6 matches the actual rotation direction, the effective edge signal 17 of the first C pulse thereafter is output as the reset signal 10. Invalid edge signal 1
It is possible to surely prevent the erroneous output of the reset signal 10 due to the erroneous determination 3 described above.
第1図および第2図はこの発明の実施例を示すもので、
第4図ないし第7図と同一符号で示すものは同一部品で
ある。これらの図において、立ち上がり検出手段7と立
ち下がり検出手段8の次段にこれらの出力信号と回転方
向信号6によりCパルスのエツジが有効かまたは無効か
を判断する有効エツジ検出手段9と無効エツジ検出手段
11が並列に設けられ、有効エツジ検出手段9の次段に
はその出力である有効エツジ信号17と禁止信号メモリ
16から出力するリセット信号出力禁止信号15とを入
力することにより有効エツジ信号17をリセット信号10
として出力しなかったことを検出する有効エツジ禁止検
出手段12が設けられている。前記禁止信号メモリ16
は有効エツジ禁止検出手段12と無効エツジ検出手段1
1の出力信号の論理和素子19による論理和のうちにC
パルスの無効エツジ信号13があると有効エツジ禁止検
出手段12と論理積素子14に前記リセット信号出力禁
止信号15を出力するもので、この禁止信号メモリ16
のリセット手段18には前記論理和とA相パルスおよび
B相パルスのエツジ信号3,4が入力される。1 and 2 show an embodiment of the present invention,
Items designated by the same reference numerals as those in FIGS. 4 to 7 are the same parts. In these figures, the effective edge detection means 9 and the invalid edge detection means 9 which determine whether the edge of the C pulse is effective or ineffective based on the output signal and the rotation direction signal 6 at the next stage of the rising edge detecting means 7 and the falling edge detecting means 8. The detecting means 11 is provided in parallel, and the effective edge signal 17 which is the output of the effective edge detecting means 9 and the reset signal output inhibiting signal 15 output from the inhibiting signal memory 16 are input to the next stage of the effective edge detecting means 9. Reset signal 17
The effective edge prohibition detection means 12 is provided for detecting that the output has not been performed. The prohibition signal memory 16
Is a valid edge inhibition detection means 12 and an invalid edge detection means 1
C of the logical sum of the output signal of 1 by the logical sum element 19
When there is a pulse invalid edge signal 13, the reset signal output inhibition signal 15 is output to the valid edge inhibition detection means 12 and the logical product element 14, and this inhibition signal memory 16 is provided.
The logical sum and the edge signals 3 and 4 of the A-phase pulse and the B-phase pulse are input to the reset means 18.
前記リセット信号出力禁止信号15はこれを出力した後
リセット手段18にA相パルスかまたはB相パルスの少
なくともいずれかの新しいエツジ信号3,4が入力する
かまたはその途中で論理和が更新したらそれまでのエツ
ジ信号3,4を無効とし新しいエツジ信号3,4の入力
を待ってすなわち回転方向信号6が実際の回転方向と一
致したことを確認して禁止信号メモリ16をリセットす
ることにより解除され、この状態でその後の最初のCパ
ルスの有効エツジ信号17を前記論理積素子14を介し
て第3図に示すようにリセット信号10として出力すれ
ば無効エツジ信号13の誤判断によるリセット信号10
の誤出力を防止することができる。After the reset signal output prohibiting signal 15 is output, a new edge signal 3 or 4 of at least one of the A-phase pulse and the B-phase pulse is input to the reset means 18, or when the logical sum is updated in the middle thereof It is released by invalidating the edge signals 3 and 4 up to and waiting for the input of new edge signals 3 and 4, that is, confirming that the rotation direction signal 6 matches the actual rotation direction and resetting the inhibition signal memory 16. In this state, if the effective edge signal 17 of the first C pulse after that is output as the reset signal 10 via the AND element 14 as shown in FIG. 3, the reset signal 10 due to the erroneous determination of the invalid edge signal 13 is generated.
Erroneous output of can be prevented.
この発明によればパルスエンコーダのパルス読み込み回
路において、Cパルスの無効エツジ信号があるとリセッ
ト信号の出力を禁止するリセット信号出力禁止信号を回
転方向信号が実際の回転方向と一致したことを確認して
解除し、その後の最初の有効エツジ信号を原点リセット
信号として出力するようにしたので、Cパルスの無効エ
ツジ付近で正逆反転してもリセット信号の誤出力を確実
に防止してカウンタ等の原点を正常に保つことができる
という効果が得られる。According to the present invention, in the pulse reading circuit of the pulse encoder, it is confirmed that the rotation direction signal coincides with the actual rotation direction by the reset signal output prohibition signal for prohibiting the output of the reset signal when there is an invalid edge signal of the C pulse. Since the first valid edge signal after that is output as the origin reset signal, erroneous output of the reset signal is surely prevented even if the reverse pulse is inverted in the vicinity of the invalid edge of the C pulse, and the counter etc. The effect that the origin can be maintained normally is obtained.
第1図はこの発明の実施例のブロック図、第2図は第1
図の要部ブロック図、第3図は第1図および第2図の動
作を示すタイムチャート、第4図は従来例のブロック
図、第5図は第4図のパルス波形を示すタイムチャー
ト、第6図は第4図のリセット信号の動作説明図、第7
図は第4図の動作を示すタイムチャートである。 3,4……エツジ信号、6……回転方向信号、7……立
ち上がり検出手段、8……立ち下がり検出手段、9……
有効エツジ検出手段、10……リセット信号、11……
無効エツジ検出手段、12……有効エツジ禁止検出手
段、13……無効エツジ信号、14……論理積素子、1
5……リセット信号出力禁止信号、16……禁止信号メ
モリ、17……有効エツジ信号、18……リセット手
段。FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a first diagram.
FIG. 3 is a block diagram of the main part of the figure, FIG. 3 is a time chart showing the operation of FIGS. 1 and 2, FIG. 4 is a block diagram of a conventional example, and FIG. 5 is a time chart showing the pulse waveform of FIG. FIG. 6 is a diagram for explaining the operation of the reset signal shown in FIG.
The figure is a time chart showing the operation of FIG. 3, 4 ... Edge signal, 6 ... Rotation direction signal, 7 ... Rise detection means, 8 ... Fall detection means, 9 ...
Effective edge detection means, 10 ... Reset signal, 11 ...
Invalid edge detection means, 12 ... Effective edge inhibition detection means, 13 ... Invalid edge signal, 14 ... AND element, 1
5 ... Reset signal output prohibition signal, 16 ... Prohibition signal memory, 17 ... Effective edge signal, 18 ... Reset means.
Claims (1)
スの位相関係から求めた回転方向信号と前記エンコーダ
の1回転に1回出力するCパルスの立ち上がり検出手段
および立ち下がり検出手段の出力信号とによりCパルス
の有効エツジ検出手段で原点リセット信号を出力するパ
ルス読み込み回路において、前記有効エツジ検出手段と
並列にCパルスの無効エツジ検出手段を設けるとともに
有効エツジ検出手段の次段に有効エツジ禁止検出手段を
設け、これらの出力信号の論理和のうちにCパルスの無
効エツジ信号があると前記有効エツジ禁止検出手段およ
び論理積素子にリセット信号出力禁止信号を出力する禁
止信号メモリと、前記リセット信号出力禁止信号をその
出力後A相パルスまたはB相パルスの少なくともいずれ
かの新しいエツジ信号の入力を待って解除しこの状態で
Cパルスの有効エツジ信号を前記論理積素子を介しリセ
ット信号として出力するリセット手段とを備えてなるこ
とを特徴とするパルスエンコーダのパルス読み込み回
路。1. A rotation direction signal obtained from a phase relationship between an A-phase pulse and a B-phase pulse of a pulse encoder and an output signal of a rising edge detecting means and a falling edge detecting means of a C pulse output once per one rotation of the encoder. In the pulse reading circuit for outputting the origin reset signal by the C-pulse effective edge detecting means, the C-pulse invalid edge detecting means is provided in parallel with the effective edge detecting means, and the effective edge prohibiting detection is provided at the stage subsequent to the effective edge detecting means. Means for outputting a reset signal output inhibition signal to the valid edge inhibition detection means and the AND element when there is an invalid edge signal of the C pulse in the logical sum of these output signals, and the reset signal. After outputting the output prohibition signal, a new edge of at least one of the A-phase pulse and the B-phase pulse is output. Pulse reading circuit of a pulse encoder, characterized by comprising a reset means for outputting an effective edge signal C pulse as a reset signal through the AND gate in this state to release waiting for input of items.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6543288A JPH0612267B2 (en) | 1988-03-18 | 1988-03-18 | Pulse encoder pulse reading circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6543288A JPH0612267B2 (en) | 1988-03-18 | 1988-03-18 | Pulse encoder pulse reading circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH01239417A JPH01239417A (en) | 1989-09-25 |
JPH0612267B2 true JPH0612267B2 (en) | 1994-02-16 |
Family
ID=13286940
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP6543288A Expired - Lifetime JPH0612267B2 (en) | 1988-03-18 | 1988-03-18 | Pulse encoder pulse reading circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0612267B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH086259Y2 (en) * | 1990-10-30 | 1996-02-21 | 株式会社小松製作所 | Linear position detector |
DE102004048132A1 (en) * | 2004-10-02 | 2006-04-06 | Robert Bosch Gmbh | Method for recognizing untwisting during start-up of a combustion engine comprises determining the rotating direction of the crankshaft during start-up of the engine from the first signal impulse |
JP2011143291A (en) * | 2011-04-26 | 2011-07-28 | Sammy Corp | Game device |
-
1988
- 1988-03-18 JP JP6543288A patent/JPH0612267B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JPH01239417A (en) | 1989-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4794536A (en) | Steering angle detection device | |
US5128536A (en) | Abnormality processing circuit for an encoder | |
JPH0612267B2 (en) | Pulse encoder pulse reading circuit | |
EP0788227B1 (en) | Timer apparatus | |
KR940022059A (en) | Encoder Output Error Compensation Method | |
JP2502366Y2 (en) | Forward / reverse rotation discrimination circuit | |
JP3058360B2 (en) | Servo motor runaway detection / prevention method | |
JPH0413724B2 (en) | ||
JP3491372B2 (en) | Failure detection method of input capture circuit | |
JPS6331143Y2 (en) | ||
JP3278489B2 (en) | Pulse input detector | |
KR0161383B1 (en) | Index period detecting apparatus in a floppy disc driver controller | |
JPH06331388A (en) | One rotation signal detection in encoder | |
JPH0592814U (en) | Detector | |
JP3705308B2 (en) | Motor reverse rotation connection determination method and motor position detection device | |
JPH076545Y2 (en) | Signal discrimination circuit | |
JPH0336608A (en) | Position detecting circuit | |
JP2570170Y2 (en) | Information processing device | |
JPH0121389Y2 (en) | ||
JPS59200384A (en) | Detection of counting mistake of pulse counter | |
SU1188889A1 (en) | Device for determining direction of disk rotation | |
SU1667251A1 (en) | Shaft rotation angle-to-digit converter | |
JPH0580846A (en) | Open circuit detecting means | |
JPS61110242A (en) | Method for detecting interrupt signal of microcomputer | |
JPH0340413B2 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 14 Free format text: PAYMENT UNTIL: 20080216 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 15 Free format text: PAYMENT UNTIL: 20090216 |
|
EXPY | Cancellation because of completion of term | ||
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 15 Free format text: PAYMENT UNTIL: 20090216 |