JP4551780B2 - Encoder signal processing circuit - Google Patents
Encoder signal processing circuit Download PDFInfo
- Publication number
- JP4551780B2 JP4551780B2 JP2005022667A JP2005022667A JP4551780B2 JP 4551780 B2 JP4551780 B2 JP 4551780B2 JP 2005022667 A JP2005022667 A JP 2005022667A JP 2005022667 A JP2005022667 A JP 2005022667A JP 4551780 B2 JP4551780 B2 JP 4551780B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- output
- input
- signal processing
- processing circuit
- 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
Links
Images
Landscapes
- Transmission And Conversion Of Sensor Element Output (AREA)
Description
本発明は、測定対象物の位置変化に伴って位相のずれた複数の周期信号を発生し、特にチャタリングによる誤動作を改善したエンコーダの信号処理回路に関するものである。 The present invention relates to an encoder signal processing circuit that generates a plurality of periodic signals whose phases are shifted in accordance with a change in position of an object to be measured, and that particularly improves malfunction due to chattering.
特許文献1には、測定対象物の位置変化に伴って、少なくとも2つの位相がずれた略正弦波アナログ信号を発生する光学式エンコーダが開示されている。この2つの位相がずれた略正弦波アナログ信号A、Bを逓倍回路に入力し、図5に示すような所定の位相差を有するA相、B相の2つの逓倍信号DA、DBを得ることができる。
このA相、B相信号のレベル(状態)変化は、図5に示すように変化方向により異なる。即ち、一方向への変化では、2つの信号のレベルは01→11→10→00→01と周期的に変化し、A相の位相がB相の位相に対し90°遅れて変化する。他方向への変化では、図6に示すように01→00→10→11→01と周期的に変化し、A相の位相がB相の位相に対し90°進んで変化する。この位相関係を検出することにより移動方向を検知でき、A相、B相信号のレベル(状態)変化の回数を計数することにより移動量を検出することができる。 The level (state) change of the A-phase and B-phase signals varies depending on the change direction as shown in FIG. That is, in a change in one direction, the levels of the two signals periodically change from 01 → 11 → 10 → 00 → 01, and the phase of the A phase changes 90 ° behind the phase of the B phase. In the change in the other direction, as shown in FIG. 6, 01 → 00 → 10 → 11 → 01 periodically changes, and the phase of the A phase changes 90 degrees ahead of the phase of the B phase. The movement direction can be detected by detecting this phase relationship, and the movement amount can be detected by counting the number of level (state) changes of the A-phase and B-phase signals.
しかしノイズ等の影響により、図7に示すようにA相、B相信号DA、DBにチャタリングが発生した場合に、移動量を誤検出することになる。特許文献2には、このチャタリングが発生しても、移動量を誤検出しない信号処理回路が開示されている。つまり、位相が異なる2つの入力パルスを基にして、順序回路により適宜論理処理を行って計数信号と加減算判別信号を生成し、この2つの信号に基づいて計数値を生成し移動量を検出している。特許文献2には、図8に示すように前述の順序回路が開示されており、図9はチャタリングのある入力信号に対する前述の論理回路の出力信号を示している。
However, when chattering occurs in the A phase and B phase signals DA and DB as shown in FIG. 7 due to the influence of noise or the like, the movement amount is erroneously detected.
特許文献1では、計数信号と加減算判別信号を次のように生成する。先ず、2つの入力信号P1、P2を順序回路に入力し、2つの内部信号S1、S2を生成する。この順序回路は一方の入力信号P1が変化した後にチャタリングが発生しても、他方の入力信号P2が変化するまでの間は、内部信号S2にチャタリングが反映しないようにされている。次に、2つの内部信号S1、S2を排他的オアゲートに入力し計数信号Cを生成する。また、2つの入力信号P1、P2及び内部信号S1、S2から加減算判別信号Jを生成する。
In
内部信号S1、S2は基本的に入力信号P1、P2のチャタリングを除去した信号である。しかし、移動方向を切換えた場合に、入力信号P1、P2の最初の変化を内部信号S1、S2に反映することができない。 The internal signals S1 and S2 are basically signals obtained by removing chattering from the input signals P1 and P2. However, when the moving direction is switched, the first change of the input signals P1 and P2 cannot be reflected in the internal signals S1 and S2.
図10は線分Xで示すタイミングで方向を切換えた直後の各信号を示し、入力信号P2の変化は内部信号S1に反映されない。このため、この入力信号P2の変化は計数信号Cに反映されることはない。従って、計数信号Cを計数するのみでは移動量を誤検出することになるが、特許文献2では計数信号Cによる計数に加えて、加減算判別信号Jにより計数値の補正を行うことにより誤検出を防止している。
FIG. 10 shows each signal immediately after the direction is switched at the timing indicated by the line segment X, and the change of the input signal P2 is not reflected in the internal signal S1. For this reason, the change of the input signal P2 is not reflected in the count signal C. Therefore, the movement amount is erroneously detected only by counting the count signal C. However, in
また特許文献3には、チャタリングが発生しても、移動量を誤検出しない別の信号処理回路が開示されており、ランダムロジック回路と称する処理回路が用いられている。このランダムロジック回路への入力信号は、位相が異なる2つの入力信号と、ランダムロジック回路の出力をDFF(デジタルフリップフロップ回路)により、所定のクロックでラッチした信号である。ランダムロジック回路の論理は特許文献1の順序回路と同一であり、一方の入力信号が変化した後にチャタリングが発生しても、他方の信号が変化するまでの間はチャタリングを反映しないようにされている。
しかし特許文献1、2では、移動方向を切換えた場合に最初の入力信号変化が計数信号に反映されない。このため、加減算判別信号により計数値の補正を行うという特別な処理が必要となる。また、特許文献3も同様に、移動方向を切換えた場合に、入力信号の最初の変化を出力信号に反映することができない。
However, in
本発明の目的は、上述の問題点を解消し、エンコーダ出力信号にチャタリングがあっても、また移動方向を変化させた場合でも移動量を忠実に出力するエンコーダの信号処理回路を提供することにある。 SUMMARY OF THE INVENTION An object of the present invention is to provide an encoder signal processing circuit that solves the above-described problems and faithfully outputs the amount of movement even when the encoder output signal has chattering or when the movement direction is changed. is there.
上記目的を達成するための本発明に係るエンコーダの信号処理回路の技術的特徴は、被測定物体の位置変化に伴い発生する互いに位相のずれた2つの矩形波信号を入力とし信号処理した後に出力するための信号処理回路において、前記2つの矩形波信号を前記信号処理回路に入力したときの出力状態の初期設定をするための入力端子と、パルス信号により出力状態を反転するための入力端子を有する記憶回路と、前記2つの矩形波信号の位相ずれ方向を示す方向信号を入力する方向信号入力手段と、前記2つの矩形波信号と前記記憶回路の出力信号と前記方向信号とから前記記憶回路の出力状態を反転するパルス信号を生成するパルス生成回路とを備えたことにある。 Technical characteristics of the encoder signal processing circuit according to the present invention for achieving the above object, after the signal processing as input two rectangular wave signals different phases generated with the change in position of the object to be measured In the signal processing circuit for output, an input terminal for initializing an output state when the two rectangular wave signals are input to the signal processing circuit, and an input terminal for inverting the output state by a pulse signal The memory circuit, a direction signal input means for inputting a direction signal indicating the phase shift direction of the two rectangular wave signals, the output signal of the storage circuit, the direction signal, and the direction signal. And a pulse generation circuit for generating a pulse signal for inverting the output state of the circuit.
本発明に係るエンコーダの信号処理回路によれば、エンコーダ出力信号に生ずるチャタリングを除去し、更に移動方向を変化させた場合でもエンコーダ出力信号のチャタリング以外の変化を忠実に出力できる。 The encoder signal processing circuit according to the present invention can faithfully output changes other than chattering of the encoder output signal even when chattering generated in the encoder output signal is removed and the moving direction is changed.
本発明を図1〜図4に図示の実施例に基づいて詳細に説明する。
図1は実施例の構成を示すブロック回路構成図である。エンコーダ1の矩形波信号である出力信号DA、DBは、計数信号を生成する信号処理回路2を介してCPU3に接続されている。CPU3の出力である方向信号DIR、セット信号SET、リセット信号RSTは信号処理回路2に接続されている。更に、CPU3の出力はドライバ4に接続され、ドライバ4の出力はアクチュエータ5を介してエンコーダ1に接続されている。
The present invention will be described in detail based on the embodiment shown in FIGS.
FIG. 1 is a block circuit diagram showing the configuration of the embodiment. Output signals DA and DB that are rectangular wave signals of the
エンコーダ1は測定対象物(被測定物体)の位置変化に伴って、少なくとも2つの略正弦波アナログ信号を発生し、極性の切換わりを検出し、2つのパルス信号DA、DBを生成する。CPU3は信号処理回路2における、出力状態の初期設定をするための入力端子としてのDIR、SET、RSTに操作信号を出力し、信号処理回路2が生成する計数信号CをCPU3が計数することにより位置を検出する。ドライバ4はCPU3からの操作信号によりアクチュエータ5を駆動し、アクチュエータ5の動作によりエンコーダ1の出力信号が変化する。
The
図2はパルス生成回路としての信号処理回路2の具体的な構成図である。NOTゲート11にはエンコーダ1の一方の出力信号DAが入力し、信号DAの反転信号を出力し、NOTゲート12にはエンコーダ1の他方の出力信号DBが入力し、信号DBの反転信号を出力する。アンドゲート13〜20は出力信号DA、DBとその反転信号と、後述する記憶回路としてのDFF(デジタルフリップフロップ回路)の出力信号DAO、DBOとその反転信号を入力する。オアゲート22〜25にはアンドゲート13〜20の出力信号を入力し、NOTゲート26にはCPU3から出力される方向信号DIRを入力し、その反転信号を出力する。
FIG. 2 is a specific configuration diagram of the
アンドゲート27〜30には、オアゲート22〜25の出力と、CPU3から出力される方向信号DIRとその反転信号を入力し、オアゲート31、32にはアンドゲート27〜30の出力信号を入力する。DFF33のCK端子にはオアゲート31の出力信号を入力し、DFF34のCK端子にはオアゲート32の出力信号を入力する。アンドゲート35、36には、エンコーダ1の出力信号DA、DBとCPU3から出力されるセット信号SETを入力する。
The outputs of the
アンドゲート35、36の出力をDFF33、34のSB端子に入力する。NOTゲート37、38にはエンコーダ1の出力信号DA、DBを入力する。アンドゲート39、40はNOTゲート37、38の出力とCPU3から出力するセット信号SETを入力する。アンドゲート41、42には、アンドゲート39、40の出力とCPU3から出力するリセット信号RSTを入力し、その出力をDFF33、34のRB端子に入力する。DFF33、34のQB端子からの出力信号はD端子に入力し、Q端子からの出力信号DAO、DBOをそれぞれ出力すると共に、NOTゲート43、44に出力する。
The outputs of the
図3は信号処理回路2の波形図であり、CPU3はリセット信号RSTをH(ハイレベル)として信号処理回路2に送り、信号処理回路2のリセットを解除し動作可能状態とする。aに示すようにセット信号SETをHとし、DFF33、34にエンコーダ1の出力信号DA、DBをラッチした後にセット信号SETをL(ローレベル)とする。
FIG. 3 is a waveform diagram of the
次に、方向信号入力手段としてのCPU3はアクチュエータ5を駆動する方向に基づいて方向信号DIRを設定する。エンコーダ1の出力信号DAの位相が信号DBの位相に対し90゜遅れて変化する方向をDIR=Hとし、信号DAの位相が信号DBの位相に対し90゜進んで変化する方向をDIR=Lとする。
Next, the
図3に示す波形図においては、bに示すように信号DAの位相が信号DBの位相に対し、90°遅れて変化する方向であることからDIR=Hとする。その後に、アクチュエータ5の駆動を開始し、エンコーダ1の出力信号DA、DBが変化する。この変化に対し信号処理回路2は信号DAO、DBOを出力する。
In the waveform diagram shown in FIG. 3, DIR = H because the phase of the signal DA changes 90 ° behind the phase of the signal DB as shown in b. Thereafter, driving of the
DIR=Hの場合に、DAO=L、DBO=Lの状態で、信号DAがL→Hと変化したときと、DAO=H、DBO=Hの状態で、信号DAがH→Lと変化したときのみ、オアゲート31の出力はL→Hと変化し、DFF33のQ端子、QB端子の状態を変化させる。
When DIR = H, the signal DA changes from L to H in the state of DAO = L and DBO = L, and the signal DA changes from H to L in the state of DAO = H and DBO = H. Only when the output of the
同様に、DAO=H、DBO=Lの状態で、信号DBがL→Hと変化したときと、DAO=L、DBO=Hの状態で、信号DBがH→Lと変化したときのみ、オアゲート32の出力はL→Hと変化し、DFF34のQ端子、QB端子の状態を変化させる。
Similarly, only when the signal DB changes from L to H in the state of DAO = H and DBO = L, and only when the signal DB changes from H to L in the state of DAO = L and DBO = H. The output of 32 changes from L to H, and changes the state of the Q terminal and QB terminal of the
また、DIR=Lの場合に、DAO=L、DBO=Hの状態で、信号DAがL→Hと変化したときと、DAO=H、DBO=Lの状態で、信号DAがH→Lと変化したときのみ、オアゲート31の出力はL→Hと変化し、DFF33のQ端子、QB端子の状態を変化させる。
When DIR = L, the signal DA changes from L → H in the state of DAO = L and DBO = H, and when the signal DA changes from H → L in the state of DAO = H and DBO = L. Only when it changes, the output of the
更に、DAO=L、DBO=Lの状態で、信号DBがL→Hと変化したときと、DAO=H、DBO=Hの状態で、信号DBがH→Lと変化したときのみ、オアゲート32の出力はL→Hと変化し、DFF34のQ端子、QB端子の状態を変化させる。
Furthermore, the
従って、図3のcに示すように、エンコーダ1の出力信号DA、DBにチャタリングが発生した場合でも、出力信号DAO、DBOには、チャタリングを除去した適切な信号を出力することができる。
Therefore, even if chattering occurs in the output signals DA and DB of the
図4は移動方向を切換えた場合の信号処理回路2の波形図を示し、信号処理回路2は移動方向を切換えた場合でも、最初のエンコーダ1の出力信号DA、DBの変化を基に忠実に出力することができる。
FIG. 4 shows a waveform diagram of the
なお、本発明は上述した実施例に限定されることなく、特許請求の範囲内で種々の変形及び変更が可能であることは云うまでもない。 The present invention is not limited to the above-described embodiments, and various modifications and changes can be made within the scope of the claims.
1 エンコーダ
2 信号処理回路
3 CPU
4 ドライバ
5 アクチュエータ
1
4
Claims (2)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005022667A JP4551780B2 (en) | 2005-01-31 | 2005-01-31 | Encoder signal processing circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005022667A JP4551780B2 (en) | 2005-01-31 | 2005-01-31 | Encoder signal processing circuit |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| JP2006208270A JP2006208270A (en) | 2006-08-10 |
| JP2006208270A5 JP2006208270A5 (en) | 2008-03-21 |
| JP4551780B2 true JP4551780B2 (en) | 2010-09-29 |
Family
ID=36965291
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2005022667A Expired - Fee Related JP4551780B2 (en) | 2005-01-31 | 2005-01-31 | Encoder signal processing circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4551780B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5070470B2 (en) * | 2007-11-27 | 2012-11-14 | 多摩川精機株式会社 | Temporary phase clock generation method for encoder with failure detection function |
| CN106130538A (en) * | 2016-06-30 | 2016-11-16 | 天津市津达执行器有限公司 | A kind of circuit for Dual-encoder |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5230865B1 (en) * | 1969-10-14 | 1977-08-11 | ||
| JPS6010454B2 (en) * | 1979-05-14 | 1985-03-18 | オムロン株式会社 | pulse generator |
| JPH073342B2 (en) * | 1987-11-05 | 1995-01-18 | キヤノン株式会社 | Optical encoder |
| JPH04342310A (en) * | 1991-05-20 | 1992-11-27 | Yokogawa Electric Corp | Interface circuit |
-
2005
- 2005-01-31 JP JP2005022667A patent/JP4551780B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2006208270A (en) | 2006-08-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4859903B2 (en) | Moving direction detection device | |
| JP4808197B2 (en) | Optical encoder and electronic device having the same | |
| CN114815570A (en) | Time-to-digital converter based on differential delay loop | |
| JP4551780B2 (en) | Encoder signal processing circuit | |
| KR20160109028A (en) | Duty correction circuit and image sensing device with the same | |
| US5619134A (en) | Physical quantity detecting device using interpolation to provide highly precise and accurate measurements | |
| JP5023051B2 (en) | Pulse synthesis circuit | |
| US6999006B2 (en) | Rotation position detecting device | |
| JP4924672B2 (en) | Rotation detection device signal processing circuit | |
| CN117394826A (en) | Capturing circuit and micro-processing chip | |
| CN117394825A (en) | Capturing circuit and micro-processing chip | |
| KR102530564B1 (en) | Frequency divider with variable division ratio | |
| JP7534263B2 (en) | Detection circuit and detection device | |
| JPS64612Y2 (en) | ||
| JP3067729B2 (en) | Encoder signal processing method and device | |
| JP5055016B2 (en) | Phase difference measurement circuit | |
| US7535382B2 (en) | High speed quadrature counter | |
| JP2010074637A (en) | Up/down counter device | |
| JP2015159409A (en) | signal processing circuit and sensor system | |
| CN113644900B (en) | Interpolation circuit and motor drive circuit | |
| JP2006234504A (en) | Rotation detector | |
| KR100902147B1 (en) | Error Detection Circuit of Incremental Encoder | |
| JP2020079760A (en) | Article moving speed measuring device | |
| JP2006208270A5 (en) | ||
| JP2006177806A (en) | Rotation detector |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080131 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080131 |
|
| RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20100218 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100621 |
|
| RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20100630 |
|
| 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: 20100706 |
|
| 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: 20100712 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4551780 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: 20130716 Year of fee payment: 3 |
|
| LAPS | Cancellation because of no payment of annual fees |