JP3589527B2 - Displacement measuring device - Google Patents

Displacement measuring device Download PDF

Info

Publication number
JP3589527B2
JP3589527B2 JP18776296A JP18776296A JP3589527B2 JP 3589527 B2 JP3589527 B2 JP 3589527B2 JP 18776296 A JP18776296 A JP 18776296A JP 18776296 A JP18776296 A JP 18776296A JP 3589527 B2 JP3589527 B2 JP 3589527B2
Authority
JP
Japan
Prior art keywords
clock
pulse
count
output
counter
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
JP18776296A
Other languages
Japanese (ja)
Other versions
JPH1038548A (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.)
Mitutoyo Corp
Original Assignee
Mitutoyo 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 Mitutoyo Corp filed Critical Mitutoyo Corp
Priority to JP18776296A priority Critical patent/JP3589527B2/en
Publication of JPH1038548A publication Critical patent/JPH1038548A/en
Application granted granted Critical
Publication of JP3589527B2 publication Critical patent/JP3589527B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)
  • Length Measuring Devices With Unspecified Measuring Means (AREA)

Description

【0001】
【発明の属する技術分野】
この発明は、変位量に対応する計数パルスを外部カウンタで計数する方式の変位測定装置に関する。
【0002】
【従来の技術】
リニアゲージ、リニアスケール等の変位測定装置において、ヘッドやスピンドルの移動量を計数パルスとして出力し、これを外部カウンタで計数表示することが多い。この方式では、計数パルスの出力周波数fOUT と外部カウンタの計数周波数fCNT との間に、fOUT ≦fCNT の関係が成立していなければ、正常な動作が保証されない。従って、変位測定装置の高速化が進み、計数パルスが高速になると、旧来のfCNT の低い外部カウンタを用いることができないという問題がある。
【0003】
また、変位検出器の移動速度に応じて出力計数パルス周波数が変化するものでは、低速の外部カウンタを用い場合に、変位検出器の移動速度が外部カウンタにより制限されて、高速計数ができない。
更に、静電容量式の変位検出器等のサーボ回路を用いたものでは、検出器の移動速度とは無関係に、バースト状の高速の計数パルスを出力するものがある。この様な測定装置に低速の外部カウンタを接続すると、検出器の移動速度が低速であっても誤計数やオーバースピード等のエラーが発生する可能性がある。
【0004】
【発明が解決しようとする課題】
この発明は、上記事情を考慮してなされたもので、内部的には高速計数が可能であって、低速の外部カウンタによる計数をも可能とした計数パルスを出力する変位測定装置を提供することを目的としている。
【0005】
【課題を解決するための手段】
この発明は、変位検出器の出力に基づいて外部カウンタで計数すべき変位量に対応する数の計数パルスを出力する変位測定装置であって、第1のクロックに同期して動作して前記変位検出器により検出される変位量に対応する幅の源計数パルスと変位方向に応じてアップ/ダウンを指示するアップ/ダウンパルスとを出力する源計数パルス発生回路と、前記源計数パルスを前記第1のクロックでアップ/ダウン計数するバッファカウンタと、前記第1のクロックと同じかそれより低周波の第2のクロックで動作して前記バッファカウンタの計数値と同じ数の計数パルスを発生させるパルス出力回路とを備えたことを特徴としている。
【0006】
この発明はまた、上記構成に加えて、前記第1のクロックを分周して出力すべき計数パルスの周波数を決定する前記第2のクロックを発生する出力周期カウンタと、前記バッファカウンタの計数値がゼロでないときに前記第2のクロックを出力イネーブル信号として取り出して前記パルス出力回路に与えるクロックゲートと、前記源計数パルス,アップ/ダウンパルスおよび出力イネーブル信号の組み合わせにより、前記パルス出力回路での計数パルス出力に応じて前記バッファカウンタの計数値をリアルタイムで増減する制御を行うカウンタ制御ゲートとを更に備えたことを特徴としている。
この発明において好ましくは、前記出力周期カウンタは、外部端子からの制御により分周比を切替えて前記第2のクロックの周波数を前記第1のクロックの周波数と同じかそれより低く設定できるように構成される。
この発明において更に好ましくは、前記バッファカウンタのオーバーフロー端子はオーバースピード端子として外部に導出されているものとする。
【0007】
この発明によると、高速クロックで動作するバッファカウンタにおいて、源計数パルスをカウントしながら同時に、その計数値相当分の計数パルスを低速クロックで出力するようにしている。従って、低速の外部カウンタによる計数が可能である。バッファカウンタの桁数を変位検出器の移動範囲をカバーできるものとすれば、出力計数パルスの周波数を如何に低くしたとしても、変位検出器の移動速度が制限されることはない。また、バッファカウンタの計数値を、計数パルス出力と同時にリアルタイムで増減制御することにより、バッファカウンタの桁数を変位検出器の移動範囲より少なくする事ができ、これにより回路規模を小さいものとしてしかも、外部カウンタの計数周波数には制限されることなく変位検出器の移動速度を確保することができる。
また、出力計数パルスの周波数を決定する第2のクロックを生成する出力周期カウンタを外部から分周比可変とすれば、外部カウンタに応じて計数パルス周波数を切替えることができる。例えば外部カウンタが高速計数できる場合には、分周比1、即ち第2のクロック周波数を第1のクロック周波数と同じとすることができ、従ってシステム適応能力の高いものとすることができる。
【0008】
【発明の実施の形態】
以下、図面を参照して、この発明の実施例を説明する。
図1は、この発明の一実施例による変位測定装置の構成である。変位検出器1は、静電容量式,光電式その他、如何なる形式のものでもよい。源計数パルス発生回路2は、第1のクロックCK0に同期して動作し、変位検出器1により検出される変位量に対応する幅の源計数パルスPUENと、変位方向に応じてアップ/ダウンを指示するアップ/ダウンパルスU/Dとを出力する。源計数パルスPEUNは、変位検出器2の方式により異なるが、クロックCK0を内部に含むバースト状パルスであってもよいし、あるいはこれを包絡線検波した形のパルスであってもよい、従来はこの源計数パルスPUENはアップ/ダウンパルスU/Dと共に直接、同じクロックで動作する計数パルス出力回路に転送されて、所定のフォーマット(例えば、計数パルスとU/D信号、あるいは2相方形波信号等)の計数パルス出力が作られていた。
【0009】
この実施例においては、源計数パルス発生回路2から得られる源計数パルスPUENとアップ/ダウンパルスU/Dは、バッファカウンタ3に送られて、ここで源計数パルスPEUNの幅が第1のクロックCK0により計数される。このバッファカウンタ3の計数値が求める変位量に対応する。このバッファカウンタ3の計数値に等しい数の計数パルス出力を出すのが、計数パルス出力回路8であり、この実施例では後に説明するように、バッファカウンタ3において計数値をリアルタイムで増減しながら、計数パルス出力回路8が計数出力パルスを出すようにされている。バッファカウンタ3のオーバーフロー端子OFは、オーバースピード端子OSとして外部に導出されている。
【0010】
計数パルス出力回路8による計数パルス出力の周波数を決定するために、出力周期カウンタ5が設けられている。出力周期カウンタ5は、第1のクロックCK0を所定の分周比で分周した第2のクロックCK1を出すものであり、この実施例の場合、分周比切り替えのための外部端子が設けられて、図3に例示するように、第2のクロックCK1の周波数を第1のクロックCK0と同じかそれより低い範囲で可変設定できるようになっている。そしてこの出力周期カウンタ5から得られる第2のクロックCK1が、計数パルス出力回路8の同期クロックとして用いられる。
【0011】
バッファカウンタ3において、源計数パルスPUENの計数と同時に、計数パルス出力回路8からの出力に応じた計数値の増減制御をリアルタイムで行うために、バッファカウンタ3の全桁出力のオールゼロ状態を検出するオールゼロ検出回路4、この検出回路4の出力AZにより制御されて出力周期カウンタ5からの第2のクロックCK1を出力イネーブル信号OUTENとして取り出すクロックゲート6が設けられ、またバッファカウンタ3での計数動作を制御するカウンタ制御ゲート7が設けられている。カウンタ制御ゲート7は、源計数パルスPUEN,アップ/ダウンパルスU/D,出力イネーブル信号OUTEN,およびバッファカウンタ3の符号ビット出力MINUSの組み合わせ論理によりバッファカウンタ3に制御信号を送って、バッファカウンタ3では±1カウント,±2カウントまたはカウント停止の制御が行われる。
【0012】
各部の詳細回路を説明する前に、バッファカウンタ3でのカウント動作を真理値表にまとめると、下表1のようになる。なお、バッファカウンタ3の符号MINUSは、源計数パルスがアップ/ダウンいずれの方向に多く出力されたかを表しており、これにより計数パルス出力の方向を決定する。
【0013】
【表1】

Figure 0003589527
【0014】
表1において、×は“0”,“1”を問わないことを意味する。表1の論理による動作を説明すれば、源計数パルスPUEN=0でかつ、出力イネーブル信号OUTEN=0の場合、バッファカウンタ3を動かす必要がないから、STOPとする。源計数パルスPUENのダウンカウント指示(PUEN=1,U/D=0)と、計数値が負の状態での計数パルス出力によるアップカウント指示(OUTEN=1,MINUS=0)とが重なった場合、バッファカウンタに入力されるパルスと出力するパルスが同数であることを意味するから、バッファカウンタ3はSTOPとする。同様に、源計数パルスPUENのアップカウント指示(PUEN=1,U/D=1)と、計数値が正の状態での計数パルス出力によるダウンカウントの指示(OUTEN=1,MINUS=1)が重なった場合も、STOPとする。
【0015】
また、源計数パルスの入力がなく(PUEN=0)、計数パルス出力がある場合(OUTEN=1)には、計数パルス出力によりバッファしておく値が増減することを意味するため、計数値の正,負に応じて、−1,+1カウントする。逆に、PUEN=1,OUTEN=0の場合は、アップ/ダウンの指示に応じて、+1,−1カウントする。更に、源計数パルスによるアップカウント指示(PUEN=1,U/D=1)と、計数値が負の状態での計数パルス出力によるアップカウント指示(OUTEN=1,MINUS=0)が重なった場合には、計数パルス出力と源計数パルスの方向が逆であり、バッファカウンタ増減値を倍にする必要があるため、+2カウントする。逆に、源計数パルスによるダウンカウント指示(PUEN=1,U/D=0)と、計数値が正の状態での計数パルス出力によるダウンカウントの指示(OUTEN=1,MINUS=1)が重なった場合は、−2カウントする。
【0016】
以上のようなバッファカウンタ3でのカウント制御により、第1のクロックCK0で動作するバッファカウンタ3の計数値をリアルタイムで増減しながら、第2のクロックCK1で動作するパルス出力回路8から計数パルス出力を出力することができる。なおパルス出力回路8では、通常行われているフォーマット加工が行われて、例えば計数パルス信号とU/D信号、または2相方形波信号である出力パルスφA,φBが得られることになる。
【0017】
バッファカウンタ3およびその周囲の具体的な回路構成を図2に示す。図2においては、バッファカウンタ3を3個の16ビット(符号ビットとしての1ビットを含む)のアップダウンカウンタ31a〜31bの縦続接続により構成した例を示している。2段目および3段目はそれぞれ前段のオーバーフロー出力である出力イネーブルENOUTが入力イネーブルENINとして入って、全体として、±2047カウント可能なアップダウンカウンタとなっている。カウンタ31a,31b,31c間の桁上げを確実にするため、第1のクロックCK0は、バッファ遅延回路32,33を介して少しずつ遅延させて各段クロック端子CKBに入力している。
【0018】
3段目のカウンタ31cの最上位桁Q3が符号ビットMINUSとして用いられている。
オールゼロ検出回路4は、各段カウンタ31a〜31cの各桁出力がオールゼロであることを検出するNORゲートG41,G42,G43と、これらの出力の一致を検出するNANDゲートG44とから構成されている。これにより、オールゼロ検出回路4は、バッファカウンタ3での計数値がゼロの場合に、AZ=0を出力し、それ以外はAZ=1を出力する。
【0019】
クロックゲート6は、第2のクロックCK1とオールゼロ検出回路4の出力AZの一致を検出するNANDゲートG61とインバータゲートG62とからなる。これにより、AZ=0の場合に、クロックゲート6はオフになり、バッファカウンタ3に計数値がある間(AZ=1)、第2のクロックCK1がクロックゲート6を通って、出力イネーブル信号OUTENとして取り出される。
【0020】
初段カウンタ31aには、3つのモード制御端子、即ち、1カウントするか、2カウントするかを選択する選択信号SEL1,SEL2の端子と、アップ/ダウン選択信号UPの端子が設けられている。これらの3つの制御端子の入力の組み合わせと、カウントモードをまとめると、下表2のようになる。
【0021】
【表2】
Figure 0003589527
【0022】
カウンタ制御ゲート7は、源計数パルスPUEN,アップ/ダウンパルスU/D,出力イネーブル信号OUTENおよび符号ビットMINUSの組み合わせにより、表2の制御信号を発生するように、図2のように構成される。EX・NORゲートG71は、PUENとU/Dの一致を検出して選択信号SEL1を発生する。EX・NORゲートG712とNANDゲートG73は、MINUSとU/Dの一致検出を行い、その検出結果とPUEN,OUTENとの一致検出を行って、選択信号SEL2を発生する。また、ANDゲートG74,G75,NORゲートG76,インバータG77,G78の部分は、MINUS,PUEN,U/Dの組み合わせにより、アップ/ダウン信号UPを発生させる。
【0023】
以上のようにこの実施例によると、高速の第1のクロックCK0により動作するバッファカウンタ3により源計数パルスをカウントしながら、同時に、低速の第2のクロックCK1で計数パルスが出力され、計数パルス出力によりリアルタイムでバッファカウンタ3の計数値が増減制御され、変位量に相当するバッファカウンタ3での計数値分の計数パルスが得られることになる。従って、外部カウンタが低周波であっても、これに制限されることなく変位検出器の高速の移動速度を確保することができる。また、出力計数パルスの周波数を決定する第2のクロックCK1を生成する出力周期カウンタ5を外部から分周比可変とすることにより、例えば外部カウンタが高速計数できる場合には第2のクロックCK1の周波数を第1のクロックCK0と同じとして、外部カウンタに接続することができる。
【0024】
この実施例において、バッファカウンタ3の桁数は、変位検出器1の移動範囲と出力計数パルスの周波数との兼ね合いで決定される。例えば、桁数を移動範囲より多くすれば、出力周波数を如何に低くしても差し支えなく、しかも内部的な計数は高速クロックで動作するバッファカウンタ3で行われるから、出力周波数を低くしたことにより検出器移動速度が低い範囲に制限されることはない。また、桁数を変位検出器移動範囲より少なくしても、バッファカウンタ3の計数値はリアルタイムで計数パルス出力毎に加減算されるから、外部カウンタの計数可能な周波数の範囲で出力周波数を高く設定すれば、問題はない。これにより、回路規模を小さくすることができる。
【0025】
計数パルス出力回路8の構成例を図4に示し、その動作タイミング図を図5に示す。詳細な説明は省くが、二つのDタイプフリップフロップFF1,FF2と、これらの出力とOUTEN信号及びMINUS信号によりフリップフロップFF1,FF2への入力を決定するためのゲートG81,G82を用いて、2相方形波出力φA,φBを出力するようになっている。
【0026】
【発明の効果】
以上述べたようにこの発明によれば、第1のクロックで動作するバッファカウンタを用いて、源計数パルスをカウントしながら同時に、その計数値相当分の計数パルスを第2のクロックで出力するようにして、低周波の外部カウンタによる計数を可能とした変位測定装置を提供することができる。
【図面の簡単な説明】
【図1】この発明の一実施例による変位測定装置のブロック構成を示す。
【図2】同実施例の主要部の具体構成例を示す。
【図3】同実施例の第1,第2クロックの関係を示す。
【図4】同実施例のパルス出力回路の具体構成例を示す。
【図5】同パルス出力回路の動作タイミングを示す。
【符号の説明】
1…変位検出器、2…源計数パルス発生回路、3…バッファカウンタ、4…オールゼロ検出回路、5…出力周期カウンタ、6…クロックゲート、7…カウンタ制御ゲート、8…計数パルス出力回路。[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a displacement measuring device of a type in which a counting pulse corresponding to a displacement amount is counted by an external counter.
[0002]
[Prior art]
In displacement measuring devices such as a linear gauge and a linear scale, the movement amount of a head or a spindle is output as a count pulse, and this is often counted and displayed by an external counter. In this method, normal operation cannot be guaranteed unless the relationship of fOUT ≦ fCNT is established between the output frequency fOUT of the count pulse and the count frequency fCNT of the external counter. Therefore, when the speed of the displacement measuring device is increased and the counting pulse is increased, there is a problem that an external counter having a low fCNT of a conventional type cannot be used.
[0003]
When the output counting pulse frequency changes in accordance with the moving speed of the displacement detector, the moving speed of the displacement detector is limited by the external counter when a low-speed external counter is used, so that high-speed counting cannot be performed.
Furthermore, some servo circuits using a capacitance type displacement detector or the like output a burst-like high-speed counting pulse irrespective of the moving speed of the detector. If a low-speed external counter is connected to such a measuring device, errors such as erroneous counting and overspeed may occur even when the moving speed of the detector is low.
[0004]
[Problems to be solved by the invention]
The present invention has been made in consideration of the above circumstances, and provides a displacement measuring device that outputs a counting pulse that can internally perform high-speed counting and can also perform counting by a low-speed external counter. It is an object.
[0005]
[Means for Solving the Problems]
The present invention is a displacement measuring device which outputs a number of count pulses corresponding to a displacement amount to be counted by an external counter based on an output of a displacement detector, wherein the displacement measuring device operates in synchronization with a first clock, and A source count pulse generating circuit for outputting a source count pulse having a width corresponding to the amount of displacement detected by the detector and an up / down pulse for instructing up / down in accordance with the displacement direction; A buffer counter that counts up / down with one clock, and a pulse that operates with a second clock having a frequency equal to or lower than that of the first clock and generates the same number of count pulses as the count value of the buffer counter And an output circuit.
[0006]
According to the present invention, in addition to the above configuration, an output period counter for generating the second clock for dividing the first clock to determine a frequency of a count pulse to be output, and a count value of the buffer counter Is not zero, the clock gate which takes out the second clock as an output enable signal and supplies it to the pulse output circuit and the combination of the source count pulse, up / down pulse and output enable signal, A counter control gate for performing control to increase or decrease the count value of the buffer counter in real time according to the count pulse output.
Preferably, in the present invention, the output cycle counter is configured such that the frequency of the second clock can be set to be equal to or lower than the frequency of the first clock by switching a frequency division ratio under control from an external terminal. Is done.
More preferably, in the present invention, the overflow terminal of the buffer counter is led out as an overspeed terminal.
[0007]
According to the present invention, the buffer counter that operates with the high-speed clock counts the source count pulse and simultaneously outputs the count pulse corresponding to the count value with the low-speed clock. Therefore, counting by a low-speed external counter is possible. If the number of digits of the buffer counter can cover the moving range of the displacement detector, no matter how low the frequency of the output counting pulse, the moving speed of the displacement detector is not limited. Also, by controlling the count value of the buffer counter to increase or decrease in real time simultaneously with the output of the count pulse, the number of digits of the buffer counter can be made smaller than the moving range of the displacement detector, thereby reducing the circuit scale. In addition, the moving speed of the displacement detector can be secured without being limited by the counting frequency of the external counter.
Further, if the output cycle counter for generating the second clock for determining the frequency of the output count pulse is made externally variable in frequency division ratio, the count pulse frequency can be switched according to the external counter. For example, when the external counter can perform high-speed counting, the division ratio 1, that is, the second clock frequency can be made the same as the first clock frequency, and therefore, the system adaptability can be made high.
[0008]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 shows the configuration of a displacement measuring device according to an embodiment of the present invention. The displacement detector 1 may be of any type, such as a capacitance type, a photoelectric type, and the like. The source count pulse generation circuit 2 operates in synchronization with the first clock CK0, and performs source count pulse PUEN having a width corresponding to the amount of displacement detected by the displacement detector 1 and up / down in accordance with the direction of displacement. The instructing up / down pulse U / D is output. The source count pulse PEUN differs depending on the method of the displacement detector 2, but may be a burst pulse including the clock CK0 inside, or a pulse obtained by envelope-detecting the burst pulse. The source count pulse PUEN is directly transferred together with the up / down pulse U / D to the count pulse output circuit which operates on the same clock, and has a predetermined format (for example, a count pulse and a U / D signal or a two-phase square wave signal). Etc.) was produced.
[0009]
In this embodiment, a source count pulse PUEN and an up / down pulse U / D obtained from a source count pulse generation circuit 2 are sent to a buffer counter 3, where the width of the source count pulse PEUN is set to a first clock. Counted by CK0. The count value of the buffer counter 3 corresponds to the displacement amount to be obtained. It is the count pulse output circuit 8 that outputs a count pulse output equal in number to the count value of the buffer counter 3. In this embodiment, as described later, the count value of the buffer counter 3 is increased or decreased in real time. The count pulse output circuit 8 outputs a count output pulse. An overflow terminal OF of the buffer counter 3 is led out as an overspeed terminal OS.
[0010]
An output cycle counter 5 is provided to determine the frequency of the count pulse output by the count pulse output circuit 8. The output cycle counter 5 outputs a second clock CK1 obtained by dividing the first clock CK0 by a predetermined division ratio. In this embodiment, an external terminal for switching the division ratio is provided. Thus, as exemplified in FIG. 3, the frequency of the second clock CK1 can be variably set in the same range as or lower than that of the first clock CK0. Then, the second clock CK1 obtained from the output cycle counter 5 is used as a synchronous clock of the count pulse output circuit 8.
[0011]
At the same time as counting the source count pulse PUEN, the buffer counter 3 detects an all-zero state of all digit outputs of the buffer counter 3 in order to perform real-time increase / decrease control of the count value according to the output from the count pulse output circuit 8. An all-zero detection circuit 4 and a clock gate 6 controlled by the output AZ of the detection circuit 4 to take out the second clock CK1 from the output cycle counter 5 as an output enable signal OUTEN are provided, and the counting operation of the buffer counter 3 is performed. A counter control gate 7 for controlling is provided. The counter control gate 7 sends a control signal to the buffer counter 3 by a combinational logic of the source count pulse PUEN, the up / down pulse U / D, the output enable signal OUTEN, and the sign bit output MINUS of the buffer counter 3, and In this case, control of ± 1 count, ± 2 count or count stop is performed.
[0012]
Before describing the detailed circuit of each part, the count operation of the buffer counter 3 is summarized in a truth table as shown in Table 1 below. The sign MINUS of the buffer counter 3 indicates which of the up / down directions the source count pulse has been output, and thereby determines the direction of the count pulse output.
[0013]
[Table 1]
Figure 0003589527
[0014]
In Table 1, x means that "0" or "1" is not considered. The operation based on the logic of Table 1 will be described. If the source count pulse PUEN = 0 and the output enable signal OUTEN = 0, the buffer counter 3 does not need to be moved, so that the operation is STOP. When the down count instruction of the source count pulse PUEN (PUEN = 1, U / D = 0) and the up count instruction by the count pulse output when the count value is negative (OUTEN = 1, MINUS = 0) overlap Since the number of pulses input to the buffer counter and the number of output pulses are the same, the buffer counter 3 is set to STOP. Similarly, an up-count instruction of the source count pulse PUEN (PUEN = 1, U / D = 1) and a down-count instruction (OUTEN = 1, MINUS = 1) by a count pulse output when the count value is positive are given. If they overlap, it will be a STOP.
[0015]
If there is no input of the source count pulse (PUEN = 0) and there is a count pulse output (OUTEN = 1), it means that the value to be buffered by the count pulse output increases or decreases. −1 and +1 are counted according to positive and negative. Conversely, when PUEN = 1 and OUTEN = 0, the count is incremented by +1, -1 in accordance with the up / down instruction. Further, when the up-count instruction by the source count pulse (PUEN = 1, U / D = 1) and the up-count instruction by the count pulse output when the count value is negative (OUTEN = 1, MINUS = 0) overlap. In this case, the count pulse output and the source count pulse are in opposite directions, and it is necessary to double the increase / decrease value of the buffer counter. Conversely, the down-count instruction by the source count pulse (PUEN = 1, U / D = 0) and the down-count instruction by the count pulse output when the count value is positive (OUTEN = 1, MINUS = 1) overlap. If so, count -2.
[0016]
By the count control of the buffer counter 3 as described above, the count pulse output from the pulse output circuit 8 operated by the second clock CK1 while increasing or decreasing the count value of the buffer counter 3 operated by the first clock CK0 in real time. Can be output. In the pulse output circuit 8, the usual format processing is performed to obtain output pulses φA and φB which are, for example, a count pulse signal and a U / D signal or a two-phase square wave signal.
[0017]
FIG. 2 shows a specific circuit configuration of the buffer counter 3 and its surroundings. FIG. 2 shows an example in which the buffer counter 3 is configured by cascade connection of three 16-bit (including 1 bit as a sign bit) up / down counters 31a to 31b. The second and third stages each have an output enable ENOUT, which is an overflow output of the previous stage, as an input enable ENIN, and are an up / down counter capable of counting ± 2047 as a whole. To ensure the carry between the counters 31a, 31b, and 31c, the first clock CK0 is input to the clock terminal CKB of each stage with a slight delay through the buffer delay circuits 32 and 33.
[0018]
The most significant digit Q3 of the third stage counter 31c is used as the sign bit MINUS.
The all-zero detection circuit 4 includes NOR gates G41, G42, G43 for detecting that all digit outputs of the counters 31a to 31c are all zero, and a NAND gate G44 for detecting coincidence of these outputs. . Thus, the all-zero detection circuit 4 outputs AZ = 0 when the count value of the buffer counter 3 is zero, and outputs AZ = 1 otherwise.
[0019]
The clock gate 6 includes a NAND gate G61 for detecting a match between the second clock CK1 and the output AZ of the all-zero detection circuit 4, and an inverter gate G62. As a result, when AZ = 0, the clock gate 6 is turned off, and while the buffer counter 3 has a count value (AZ = 1), the second clock CK1 passes through the clock gate 6 and outputs the output enable signal OUTEN. Is taken out as
[0020]
The first stage counter 31a is provided with three mode control terminals, that is, terminals for selection signals SEL1 and SEL2 for selecting whether to count 1 or 2 and a terminal for an up / down selection signal UP. Table 2 below summarizes the combinations of the inputs of these three control terminals and the count mode.
[0021]
[Table 2]
Figure 0003589527
[0022]
The counter control gate 7 is configured as shown in FIG. 2 so as to generate the control signals of Table 2 by a combination of the source count pulse PUEN, the up / down pulse U / D, the output enable signal OUTEN, and the sign bit MINUS. . EX / NOR gate G71 detects a match between PUEN and U / D and generates a selection signal SEL1. The EX / NOR gate G712 and the NAND gate G73 detect a match between MINUS and U / D, and detect a match between the detection result and PUEN and OUTEN to generate a selection signal SEL2. Further, the AND gates G74 and G75, the NOR gate G76, and the inverters G77 and G78 generate an up / down signal UP by a combination of MINUS, PUEN, and U / D.
[0023]
As described above, according to this embodiment, while counting the source count pulse by the buffer counter 3 operated by the high-speed first clock CK0, the count pulse is simultaneously output by the low-speed second clock CK1, and the count pulse is output. The count value of the buffer counter 3 is controlled to increase or decrease in real time by the output, and count pulses corresponding to the count value of the buffer counter 3 corresponding to the displacement amount are obtained. Therefore, even if the external counter has a low frequency, a high-speed moving speed of the displacement detector can be secured without being limited to this. Further, the output cycle counter 5 for generating the second clock CK1 for determining the frequency of the output counting pulse is made variable in frequency division ratio from the outside. For example, when the external counter can perform high-speed counting, the second clock CK1 is generated. Assuming that the frequency is the same as the first clock CK0, it can be connected to an external counter.
[0024]
In this embodiment, the number of digits of the buffer counter 3 is determined based on a balance between the moving range of the displacement detector 1 and the frequency of the output counting pulse. For example, if the number of digits is larger than the moving range, the output frequency can be lowered no matter how much, and since the internal counting is performed by the buffer counter 3 operated by a high-speed clock, the output frequency is lowered. The detector movement speed is not limited to a low range. Even if the number of digits is smaller than the displacement detector moving range, the count value of the buffer counter 3 is added or subtracted for each count pulse output in real time, so the output frequency is set high within the range of the countable frequency of the external counter. Then there is no problem. Thereby, the circuit scale can be reduced.
[0025]
FIG. 4 shows a configuration example of the counting pulse output circuit 8, and FIG. 5 shows an operation timing chart thereof. Although a detailed description is omitted, two D-type flip-flops FF1 and FF2 and gates G81 and G82 for determining inputs to the flip-flops FF1 and FF2 based on their outputs, the OUTEN signal and the MINUS signal are used. It outputs phase square wave outputs φA and φB.
[0026]
【The invention's effect】
As described above, according to the present invention, the source counter pulse is counted and the count pulse corresponding to the count value is simultaneously output by the second clock while using the buffer counter operated by the first clock. Thus, it is possible to provide a displacement measuring device capable of counting by a low-frequency external counter.
[Brief description of the drawings]
FIG. 1 shows a block configuration of a displacement measuring device according to an embodiment of the present invention.
FIG. 2 shows a specific configuration example of a main part of the embodiment.
FIG. 3 shows a relationship between first and second clocks of the embodiment.
FIG. 4 shows a specific configuration example of a pulse output circuit of the embodiment.
FIG. 5 shows an operation timing of the pulse output circuit.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Displacement detector, 2 ... Source count pulse generation circuit, 3 ... Buffer counter, 4 ... All zero detection circuit, 5 ... Output cycle counter, 6 ... Clock gate, 7 ... Counter control gate, 8 ... Count pulse output circuit.

Claims (4)

変位検出器の出力に基づいて外部カウンタで計数すべき変位量に対応する数の計数パルスを出力する変位測定装置であって、
第1のクロックに同期して動作して前記変位検出器により検出される変位量に対応する幅の源計数パルスと変位方向に応じてアップ/ダウンを指示するアップ/ダウンパルスとを出力する源計数パルス発生回路と、
前記源計数パルスを前記第1のクロックでアップ/ダウン計数するバッファカウンタと、
前記第1のクロックと同じかそれより低周波の第2のクロックで動作して前記バッファカウンタの計数値と同じ数の計数パルスを発生させるパルス出力回路とを備えたことを特徴とする変位測定装置。
A displacement measuring device that outputs a number of count pulses corresponding to a displacement amount to be counted by an external counter based on an output of a displacement detector,
A source which operates in synchronization with the first clock and outputs a source count pulse having a width corresponding to the amount of displacement detected by the displacement detector and an up / down pulse for instructing up / down in accordance with the direction of displacement. A counting pulse generating circuit;
A buffer counter that counts up / down the source count pulse with the first clock;
A pulse output circuit that operates with a second clock having a frequency equal to or lower than the first clock and generates the same number of count pulses as the count value of the buffer counter. apparatus.
前記第1のクロックを分周して出力すべき計数パルスの周波数を決定する前記第2のクロックを発生する出力周期カウンタと、
前記バッファカウンタの計数値がゼロでないときに前記第2のクロックを出力イネーブル信号として取り出して前記パルス出力回路に与えるクロックゲートと、
前記源計数パルス,アップ/ダウンパルスおよび出力イネーブル信号の組み合わせにより、前記パルス出力回路での計数パルス出力に応じて前記バッファカウンタの計数値をリアルタイムで増減する制御を行うカウンタ制御ゲートと
を更に備えたことを特徴とする請求項1記載の変位測定装置。
An output cycle counter that generates the second clock that determines the frequency of a count pulse to be output by dividing the first clock;
A clock gate which takes out the second clock as an output enable signal when the count value of the buffer counter is not zero and gives it to the pulse output circuit;
A counter control gate for performing control to increase or decrease the count value of the buffer counter in real time in accordance with the count pulse output from the pulse output circuit by a combination of the source count pulse, the up / down pulse, and the output enable signal. The displacement measuring device according to claim 1, wherein:
前記出力周期カウンタは、外部端子からの制御により分周比を切替えて前記第2のクロックの周波数を前記第1のクロックの周波数と同じかそれより低く設定できるように構成されている
ことを特徴とする請求項2記載の変位測定装置。
The output cycle counter is configured so that the frequency of the second clock can be set to be equal to or lower than the frequency of the first clock by switching the frequency division ratio under the control of an external terminal. The displacement measuring device according to claim 2, wherein
前記バッファカウンタのオーバーフロー端子はオーバースピード端子として外部に導出されている
ことを特徴とする請求項1,2,3のいずれかに記載の変位測定装置。
4. The displacement measuring device according to claim 1, wherein an overflow terminal of the buffer counter is led out as an overspeed terminal.
JP18776296A 1996-07-17 1996-07-17 Displacement measuring device Expired - Fee Related JP3589527B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18776296A JP3589527B2 (en) 1996-07-17 1996-07-17 Displacement measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18776296A JP3589527B2 (en) 1996-07-17 1996-07-17 Displacement measuring device

Publications (2)

Publication Number Publication Date
JPH1038548A JPH1038548A (en) 1998-02-13
JP3589527B2 true JP3589527B2 (en) 2004-11-17

Family

ID=16211767

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18776296A Expired - Fee Related JP3589527B2 (en) 1996-07-17 1996-07-17 Displacement measuring device

Country Status (1)

Country Link
JP (1) JP3589527B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102472768B (en) 2009-07-22 2013-12-04 Ntn株式会社 Vehicle control device and rotation detection device used in same
JP2011027448A (en) * 2009-07-22 2011-02-10 Ntn Corp Rotation detector and bearing provided with rotation detector
CN106092156B (en) * 2016-08-04 2018-05-11 泉州市桑川电气设备有限公司 AC servo serial communication encoder position feedback pulse frequency dividing output system and method

Also Published As

Publication number Publication date
JPH1038548A (en) 1998-02-13

Similar Documents

Publication Publication Date Title
JP3589527B2 (en) Displacement measuring device
JPS63253220A (en) Measuring instrument for angle of rotation
US3768022A (en) Apparatus for generating phase modulated electrical signals in response to a measured angular or linear displacement
JPH06244739A (en) Multiplexer circuit
KR0153641B1 (en) Motor rotating position detecting circuit using incremental encoder
JP3504316B2 (en) Multi-bit counter
JPH02128116A (en) Measuring apparatus
JPS59204769A (en) Displacement direction detecting circuit
JP3622310B2 (en) Delay circuit and signal processing apparatus
JP2563366B2 (en) Signal cycle measuring device
JPS6348456B2 (en)
JPH0388422A (en) Synchronizing counter
JPS5929819B2 (en) Movement direction discrimination circuit
JP2748724B2 (en) Integrated circuit
JPS61243527A (en) Bit buffer circuit
JP2611099B2 (en) Displacement measuring device
JPH01194709A (en) Phase discrimination circuit
JPS62251615A (en) Multiple rotation absolute type encoder
JPH04207218A (en) Pulse selecting circuit
JPS62281513A (en) Delay circuit
JP2000332733A (en) Synchronizing circuit
JPH01113670A (en) Rotation detector
JPS6248120A (en) Counter circuit
JPH05130789A (en) Digital speed detecting circuit
JPH03235527A (en) A/d converter

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040617

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040817

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20130827

Year of fee payment: 9

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees