JPS62214318A - Position information generating device - Google Patents

Position information generating device

Info

Publication number
JPS62214318A
JPS62214318A JP5884586A JP5884586A JPS62214318A JP S62214318 A JPS62214318 A JP S62214318A JP 5884586 A JP5884586 A JP 5884586A JP 5884586 A JP5884586 A JP 5884586A JP S62214318 A JPS62214318 A JP S62214318A
Authority
JP
Japan
Prior art keywords
signal
counter
circuit
trigger
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.)
Pending
Application number
JP5884586A
Other languages
Japanese (ja)
Inventor
Yasushi Konomura
此村 靖
Yukio Arima
有馬 幸男
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.)
Hitachi Construction Machinery Co Ltd
Original Assignee
Hitachi Construction Machinery Co 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 Hitachi Construction Machinery Co Ltd filed Critical Hitachi Construction Machinery Co Ltd
Priority to JP5884586A priority Critical patent/JPS62214318A/en
Publication of JPS62214318A publication Critical patent/JPS62214318A/en
Pending legal-status Critical Current

Links

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

PURPOSE:To generate high-accuracy position information by a simple circuit at low cost by generating a trigger signal corresponding to the leading or trailing edge of a reference angle output signal according to the direction state of the forward or backward rotation of the relation between two phase signal outputs. CONSTITUTION:A rotary encoder 3 generate incremental type position information which includes the two phase signals having a 90 deg. phase difference and reference angle output signal. A count pulse generating circuit 13 provided to a counter circuit part 2 generates pulse signals corresponding to the leading edge and trailing edge of the two phase signals and sends them out to a counter 12. A reference value which is the initial value of the counter 12 is set in the register 10 of a reference value setting part 4. Then, an edge trigger circuit 14 corresponds to the leading edge of the reference angle output signal when the relation between the two phase signal output indicates forward rotation or to the tailing edge of the reference angle output signal when backward rotation, thereby generating the trigger signal at the timing of the leading or trailing edge. The reference value is sent of the register 10 through a gate circuit 11 according to the trigger signal and set in the counter 12.

Description

【発明の詳細な説明】 この発明は、位置情報発生装置に関し、特に、インクリ
メンタル方式のロータリエンコーダから出力される2相
信号及び基準信号を用いて、比較的精度の高い位1δ制
御とか計測を行う装置に適するような回転位置の位置情
報発生装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a position information generating device, and in particular, performs relatively highly accurate position 1δ control or measurement using a two-phase signal and a reference signal output from an incremental rotary encoder. The present invention relates to a rotational position position information generating device suitable for a device.

[従来の技術] この種の位置情報発生装置は、角度測定装置とか、位置
決め装置等に使用される。その−例として回転量の情報
を発生する回転量発生装置について、第5図のブロック
図に従って説明する。
[Prior Art] This type of position information generating device is used in angle measuring devices, positioning devices, and the like. As an example, a rotation amount generating device that generates rotation amount information will be explained with reference to the block diagram of FIG. 5.

1は、回転量発生装置であって、2は、そのカウンタ回
路部、3は、ロータリエンコーダである。
1 is a rotation amount generating device, 2 is a counter circuit thereof, and 3 is a rotary encoder.

カウンタ回路部2は、ロータリエンコーダ3からその回
転に従う出力信号を受けて回転計の情報を発生する。
The counter circuit unit 2 receives an output signal from the rotary encoder 3 according to its rotation and generates tachometer information.

ロータリエンコーダとしては、回転量をコードデータと
して発生するアブソリュートタイプのものとか、90度
位相差のある2相信号出力と基準角度出力とを有するイ
ンクリメンタルタイプのもの等がある。
Examples of the rotary encoder include an absolute type that generates the amount of rotation as code data, and an incremental type that has a two-phase signal output with a 90 degree phase difference and a reference angle output.

ここで、ロータリーエンコーダ3をインクリメンタルタ
イプのものとすれば、第6図(a)に見るように、ロー
タリーエンコーダ3からの2相の出力パルスの1つであ
るA相信号6と(b)に見るように、B相信号7とが、
カウンタ回路部2に人力され、カウンタ回路部2で同図
(d)に見るカウントパルス信号8を発生させて、これ
がカウンタ回路部2のカウンタによりカウントされる。
Here, if the rotary encoder 3 is an incremental type, as shown in FIG. 6(a), the A-phase signal 6, which is one of the two-phase output pulses from the rotary encoder 3, and (b) As you can see, the B phase signal 7 is
The counter circuit section 2 is manually operated to generate a count pulse signal 8 shown in FIG. 2(d), which is counted by the counter of the counter circuit section 2.

ロータリーエンコーダ3からは、第6図(C)に見る基
準角度出力信号としてのZ相信号5が、カウンタ回路部
2に送られ、これが入力されるごとに、カウンタ回路部
2のカウンタがクリアされるか、所定値にセットされる
ものである。
From the rotary encoder 3, a Z-phase signal 5 as a reference angle output signal shown in FIG. 6(C) is sent to the counter circuit section 2, and each time this signal is input, the counter of the counter circuit section 2 is cleared. or set to a predetermined value.

一方、カウンタ回路部2では、2相出力を方向判別回路
に加えてこれらの2引出力の関係から市松パルス又は逆
転パルスを発生する。そして前記カウンタ回路部2に内
蔵されたカウンタは、正回転パルスに応じてカウントパ
ルス信号8の数をカウントアツプし、逆回転パルスに応
じてカウントダウンする。
On the other hand, in the counter circuit section 2, the two-phase output is applied to the direction discrimination circuit, and a checkered pulse or a reverse pulse is generated from the relationship between these two-phase outputs. The counter built in the counter circuit section 2 counts up the number of count pulse signals 8 in response to the forward rotation pulse, and counts down the number in response to the reverse rotation pulse.

[解決しようとする問題点] ところで、第6図(C)に示すZ相信号5は、エンコー
ダにより弱十の違いはあるものの、有意(“High”
レベル、以下“H”)である期間λがある程度の幅を持
っている。ここで、A相信号6或いはB相信号7の1サ
イクルの長さをPとすると、このZ相信号5の波形は、
概ね1/2・P〜3/2−Pの範囲で不定なものとなっ
ている。
[Problem to be Solved] By the way, the Z-phase signal 5 shown in FIG.
The period λ of the level (hereinafter referred to as "H") has a certain range. Here, if the length of one cycle of the A-phase signal 6 or B-phase signal 7 is P, the waveform of this Z-phase signal 5 is:
It is generally indeterminate in the range of 1/2·P to 3/2-P.

その結果、カウントパルス信号8は、実際にはこの2相
信号5が“H” (有意)である期間(間隔λ)の間、
カウントされずに、第6図(「)に見るように、ゼロ又
は初期設定された値nをとり続ける。即ち、実際のカウ
ントパルスは、同図(e)のようになり、同図(f)の
ようにパルスが欠落したカウントをしてしまう。
As a result, the count pulse signal 8 is actually generated during the period (interval λ) during which the two-phase signal 5 is “H” (significant).
Without being counted, it continues to take zero or the initialized value n as shown in Fig. 6().In other words, the actual count pulse becomes as shown in Fig. 6(e) and as shown in Fig. 6(f). ), the pulse is counted with missing pulses.

第6図(f)では、6パルス入力される間、実カウント
数が一定のままとなり、カウントされなかった5パルス
分が、その後のカウントに加えられずにオフセットとし
て残る。その結果、これが精度をおとす原因となる。
In FIG. 6(f), the actual count remains constant while six pulses are input, and the five uncounted pulses remain as an offset without being added to subsequent counts. As a result, this causes a decrease in accuracy.

そこで、このようなエンコーダを用いて位置決めとか測
定を行う装置において、より高精度な位置決めとか測定
を行おうとした場合には、最初からこの欠落分を考慮し
ておく必要が生じる。
Therefore, when attempting to perform positioning or measurement with higher precision in a device that performs positioning or measurement using such an encoder, it is necessary to take this missing part into consideration from the beginning.

しかしながら、この場合、正転時と逆転時(又は正方向
と負方向)でカウンタの加減が逆となる関係から、別々
の基準値を設定しなければならな(なり、またZ相信号
5の°“H”の期間λの長さもπ前に計測する必要があ
って繁雑であり、特別な処理とか繁雑な回路が必要とす
る欠点がある。
However, in this case, separate reference values must be set because the counter additions and subtractions are reversed during forward rotation and reverse rotation (or in positive and negative directions). ° The length of the "H" period λ also needs to be measured before π, which is complicated, and there is a drawback that special processing or complicated circuits are required.

[発明の目的コ この発明は、このような従来技術の問題点等に鑑み、な
されたものであって、このような従来技術の問題点等を
解決するとともに、簡ratな回路で高精度な位置情報
を発生することができ、かつ安価な、位置情報発生装置
を提供することを目的とする。
[Purpose of the Invention] The present invention has been made in view of the problems of the prior art, and it solves the problems of the prior art and provides a highly accurate circuit with a simple rattan circuit. It is an object of the present invention to provide a location information generating device that can generate location information and is inexpensive.

[問題点を解決するための手段] このような目的を達成するためのこの発明の位置情報発
生装置における手段は、90度位相差のある2相出力信
号と基準角度出力信号とをイfするインクリメンタルタ
イプの位置情報を発生するエンコーダと、2相出力43
号の\γ上がり及び)′L下がりに対応したパルス信号
を発生するカウントパルス発生回路と、パルス信号を受
けてこのパルス信号の数をカウントするカウンタと、こ
のカウンタの初期値を記憶する記憶部と、2相出力信号
の関係が所定の一方の方向状態にある場合には基準角度
出力信号の一方のエツジのタイミングに対応してトリガ
信号を発生し、所定の他方の方向状態にある場合には基
準角度出力信号の他方のエツジのタイミングに対応して
トリガ信号を発生するトリが回路とを備えていて、トリ
ガ信号に応じて基準値をカウンタにセットするというも
のである。
[Means for Solving the Problems] The means in the position information generating device of the present invention for achieving such an object is to generate a two-phase output signal and a reference angle output signal having a phase difference of 90 degrees. An encoder that generates incremental type position information and a 2-phase output 43
A count pulse generation circuit that generates a pulse signal corresponding to the rise of \γ and the fall of )'L of the number, a counter that receives the pulse signal and counts the number of pulse signals, and a storage section that stores the initial value of this counter. When the relationship between the two-phase output signals is in a predetermined one direction state, a trigger signal is generated in response to the timing of one edge of the reference angle output signal, and when the relationship between the two-phase output signals is in a predetermined other direction state, a trigger signal is generated. The device includes a trigger circuit that generates a trigger signal in response to the timing of the other edge of the reference angle output signal, and sets a reference value in a counter in response to the trigger signal.

[作用] このように、2相信号出力の関係が一方の方向状態にあ
るときには基準角度出力信号の一方のエツジに対応して
トリが信号を発生し、かつ他方の方向状態にあるときに
は基準角度出力信号の他方のエツジに対応してトリガ信
号を発生する、トリガ回路を設けることにより、基準角
度出力信号において一定のエツジタイミング位置で、基
準値をカウンタにセットすることができる。したがって
、基準角度信号の幅が、複数のカウントパルスにわたる
ことがほとんどなくなる。
[Function] In this way, when the relationship between the two-phase signal outputs is in one direction state, the bird generates a signal in response to one edge of the reference angle output signal, and when it is in the other direction state, the bird generates a signal in response to the reference angle output signal. By providing a trigger circuit that generates a trigger signal in response to the other edge of the output signal, a reference value can be set in the counter at a constant edge timing position in the reference angle output signal. Therefore, the width of the reference angle signal almost never spans a plurality of count pulses.

また、このようにすることにより、カウンタの基準設定
時における誤差を防ぐことができ、高精面の角度測定装
置とか、位置決め装置を実現することができる。しかも
、従来の回路を大きく変更する必要もなく、追加回路が
複雑でないので安価なものとなる。
Further, by doing so, it is possible to prevent errors in setting the reference of the counter, and it is possible to realize a highly precise angle measuring device or a positioning device. In addition, there is no need to make major changes to the conventional circuit, and the additional circuit is not complicated, making it inexpensive.

[実施例コ 以下、この発明の一実施例について図面を参照して詳細
に説明する。
[Embodiment] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

第1図は、この発明を適用した回転頃発生装置のブロッ
ク図であり、第2図は、その動作タイミングチャート、
第3図は、その具体的回路の−・例のブロック図、そし
て第4図は、ロータリエンコーダの取り付け状態の説明
図である。なお、第5図及び第6図と同一のものは同一
の符号で示す。
FIG. 1 is a block diagram of a rotation generating device to which the present invention is applied, and FIG. 2 is an operation timing chart thereof,
FIG. 3 is a block diagram of an example of the specific circuit, and FIG. 4 is an explanatory diagram of the rotary encoder installed state. Note that the same parts as in FIGS. 5 and 6 are indicated by the same reference numerals.

第1図において、4は、基準値設定部であり、内部に設
定値に対応するレジスタ10が設けられている。このレ
ジスタ10には、カウンタのカウント初期値としての基
準値がセットされていて、基準値は、ゲート回路11を
介してカウンタ回路部2のカウンタ12に送出され、セ
ットされる。
In FIG. 1, 4 is a reference value setting section, and a register 10 corresponding to a set value is provided inside. A reference value as the initial count value of the counter is set in this register 10, and the reference value is sent to the counter 12 of the counter circuit section 2 via the gate circuit 11 and set therein.

一方、ロータリーエンコーダ3の基準角度出力である2
相信号5と2相出力のA相信号6. B相信号7とは、
それぞれ第6図(a) 、 (b)のものと同様であり
、第2図(a)に見るA相信号6. (b)に見るB相
信号7とが、カウンタ回路部2に人力される。
On the other hand, 2 which is the reference angle output of the rotary encoder 3
Phase signal 5 and A phase signal 6 of two-phase output. What is B-phase signal 7?
They are similar to those in FIGS. 6(a) and (b), respectively, and the A-phase signal 6. shown in FIG. 2(a). The B-phase signal 7 shown in (b) is input manually to the counter circuit section 2.

13は、カウンタ回路部2に設けられたカウントパルス
信号発生回路であって、2相出力のA相信号6. B相
信号7(第2図(a) 、 (b) I照)を受けて、
カウントパルス信号と回転方向信号とをカウンタ12に
送出する。
Reference numeral 13 denotes a count pulse signal generation circuit provided in the counter circuit section 2, which outputs a two-phase A-phase signal 6. Upon receiving the B phase signal 7 (see Fig. 2 (a) and (b) I),
A count pulse signal and a rotation direction signal are sent to the counter 12.

14は、エツジトリガ回路であって、ロータリーエンコ
ーダ3からの2相出力信号5が入力されて、トリガ信号
9を前記ゲート回路11及びカウンタ回路部2のカウン
タ12に送出する。
Reference numeral 14 denotes an edge trigger circuit, into which the two-phase output signal 5 from the rotary encoder 3 is input, and sends out a trigger signal 9 to the gate circuit 11 and the counter 12 of the counter circuit section 2.

ここでこのエツジトリガ回路14は、ロータリーエンコ
ーダ3の正転、逆転に拘わらず、基準角度出力の片側の
エツジ位置Sに対応するタイミング位置でトリガ信号9
(第2図(C)′参照)を発生するものであって、これ
は、A相信号6.B相信号7(第2図(a) 、 (b
)を参照)の2相信号出力の関係が正転の方向にあると
きには基準角度出力信号のX7.上がり(前縁)に対応
し、このタイミングでトリガ信号9が発生し、これら2
相信号出力の関係が逆転の方向にあるときには基準角度
出力信号の立下がり(後縁)に対応し、このタイミング
でトリガ信号9が発生することを意味する。
Here, the edge trigger circuit 14 generates a trigger signal 9 at a timing position corresponding to the edge position S on one side of the reference angle output, regardless of whether the rotary encoder 3 rotates forward or backward.
(see FIG. 2(C)'), which is the A-phase signal 6. B phase signal 7 (Fig. 2 (a), (b)
)), when the relationship between the two-phase signal outputs is in the forward rotation direction, the reference angle output signal X7. Corresponding to the rise (leading edge), trigger signal 9 is generated at this timing, and these two
When the relationship between the phase signal outputs is in the reverse direction, it corresponds to the falling edge (trailing edge) of the reference angle output signal, which means that the trigger signal 9 is generated at this timing.

次に、全体的な動作について説明する。Next, the overall operation will be explained.

さて、ロータリーエンコーダ3から出力された基準角度
信号5が、エツジトリガ回路14に人力されると、エツ
ジトリガ回路14では、正転時には入力信号の立上がり
を検出し、逆転時には入力信号の立下がりを検出し、検
出時にそれぞれトリガ信号9を発生する。
Now, when the reference angle signal 5 output from the rotary encoder 3 is input manually to the edge trigger circuit 14, the edge trigger circuit 14 detects the rising edge of the input signal during forward rotation, and detects the falling edge of the input signal during reverse rotation. , generates a trigger signal 9 upon detection.

なお、この実施例では、第2図(c)の基準角度信号5
の前側のエツジ(正転状態で前側となる)を使用してト
リが信号9をそのタイミングで発生させているが、この
トリガ(5号9は、W転時立Fがり、逆転時立上がりと
なる同図(c)の基を角度信号5の後側のエツジを利用
してもよい。
In this embodiment, the reference angle signal 5 in FIG. 2(c)
The bird generates the signal 9 at that timing by using the front edge of the front edge (which becomes the front side in the forward rotation state), but this trigger (no. The rear edge of the angle signal 5 may be used as shown in FIG.

このトリガ信号9を基準値セット信号として、カウンタ
回路部2へ、また、イネーブル信号として基準値設定2
<10の中間点に設けたゲート回路11へと出力する。
This trigger signal 9 is sent to the counter circuit section 2 as a reference value setting signal, and is also sent to the reference value setting 2 as an enable signal.
It is output to the gate circuit 11 provided at the midpoint of <10.

ここで、ゲート回路11とカウンタ12とのタイミング
が合わないときには、このセ、ト信号は、カウンタ回路
部2のセット信号、あるいはゲート回路14のイネーブ
ルに合わせた論理信号としてトリが信号9を変換するよ
うにして、それぞれのタイミングを合わせることができ
る。
Here, when the timings of the gate circuit 11 and the counter 12 do not match, the set signal is converted into the signal 9 by the bird as a set signal of the counter circuit section 2 or a logic signal matched with the enable of the gate circuit 14. By doing this, you can adjust the timing of each.

さて、第2図(C)′に見るトリガ信号9がカウンタ回
路部2に送られ、これが入力されると、ゲート回路14
からの基準値がカウンタに格納される。一方、カウンタ
パルス発生回路13は、正転。
Now, the trigger signal 9 shown in FIG. 2(C)' is sent to the counter circuit section 2, and when this is input, the gate circuit
The reference value from is stored in the counter. On the other hand, the counter pulse generation circuit 13 rotates in the normal direction.

逆転を示す方向信号とカウントパルス信号8とを前記カ
ウンタ回路部2のカウンタ12に送出している。
A direction signal indicating reversal and a count pulse signal 8 are sent to the counter 12 of the counter circuit section 2.

そこで、カウンタ12は、正回転パルスが来ればカカウ
ンタ入カパルス信号8の数をカウントアツプし、逆回転
パルスが来ればカウンタがカウントダウンする。
Therefore, the counter 12 counts up the number of input pulse signals 8 when a forward rotation pulse arrives, and counts down when a reverse rotation pulse arrives.

このようにロータリーエンコーダ3から基準角度出力が
発生すると、正転時においても、逆転時においても、そ
れぞれ基準角度出力の片側のエツジSの位置に対応して
トリガ信号9が発生し、このタイミングに応じて基準値
がカウンタ12にその初期値としてセットされ、カウン
タ12は、この値を基準として、正転時、逆転時にロー
タリーエンコーダ3の正転、逆転に応じてセットされた
基準値を基準に第2図(d)のカウンタパルス信号8を
加減算カウントする。
When the reference angle output is generated from the rotary encoder 3 in this way, the trigger signal 9 is generated corresponding to the position of the edge S on one side of the reference angle output, both during forward rotation and during reverse rotation, and at this timing. Accordingly, a reference value is set in the counter 12 as its initial value, and the counter 12 uses this value as a reference, and uses the reference value set according to the forward or reverse rotation of the rotary encoder 3 during forward rotation or reverse rotation as a reference. The counter pulse signal 8 shown in FIG. 2(d) is added/subtracted and counted.

そして、第2図(c) 、 (c) ’から理解できる
ように、エツジトリガ回路14を設けたことにより基準
値をカウントにロードする信号としてトリガ信号9を発
生して、実質的に2相信号5が°“HITになっている
期間を短する。このことから、カウントパルス信号8に
対する実カウントパルスは同図(e)のようになり、基
準値設定時におけるカウントパルスの欠落をほとんど防
ぐことができる。
As can be understood from FIGS. 2(c) and 2(c)', by providing the edge trigger circuit 14, the trigger signal 9 is generated as a signal for loading the reference value into the count, which is essentially a two-phase signal. 5 is in HIT. Therefore, the actual count pulse for count pulse signal 8 becomes as shown in the same figure (e), which almost prevents missing count pulses when setting the reference value. I can do it.

この場合の実カウント値は、第2図(f)の様になる。The actual count value in this case is as shown in FIG. 2(f).

なお、トリガ信号9の幅は、エツジトリガ回路14で調
整すれば、任意に設定できる。
Note that the width of the trigger signal 9 can be arbitrarily set by adjusting it with the edge trigger circuit 14.

ところで、ロータリーエンコーダ3は、第4図に見るよ
うに、例えばアーム関節等の、角度(又は位置)を/1
t11定したい回転部分に取り付けられる。
By the way, as shown in FIG. 4, the rotary encoder 3 adjusts the angle (or position) of an arm joint, etc.
t11 It is attached to the rotating part that you want to stabilize.

なお、位置計測の場合には、移動部材(キャリッジ)等
に取り付けられて、その直線的な移動量がギヤ等を介し
てロータリーエンコーダ3の軸に伝達させて回転部とし
て検出するものである。
In the case of position measurement, it is attached to a moving member (carriage) or the like, and the amount of linear movement thereof is transmitted to the shaft of the rotary encoder 3 via a gear or the like and detected as a rotating part.

ここで、Pは、ロータリーエンコーダ3の角度基準位置
を示し、Qは、アームの回転基準位置を示す。そして角
度0は、これらの間のずれ量を示していて、このずれ角
0に対応する数値が基準位(4設定部4によりそのレジ
スタ10にセットされる。設定される数値は、基準値設
定部4により任意に選択できるものであって、ロータリ
ーエンコーダ3の取り付け状態によりその数値が選択さ
れる。
Here, P indicates the angle reference position of the rotary encoder 3, and Q indicates the rotation reference position of the arm. The angle 0 indicates the amount of deviation between these, and the value corresponding to this deviation angle 0 is set in the register 10 by the setting unit 4.The set value is the reference value setting. The value can be arbitrarily selected by the unit 4, and the value is selected depending on the installation state of the rotary encoder 3.

ここで、ロータリーエンコーダ3は、実際のアーム回転
部等に取り付けた場合、その2相発生位置Pと、アーム
等の回転基準としたい位置Qとが対応しているとは限ら
ない。このような場合に、ロータリーエンコーダ3側取
り付け状態を変えても、その取り付け状態が例えば12
0度回転ごととなるため、自由に位置決めができない。
Here, when the rotary encoder 3 is attached to an actual arm rotation part, etc., the two-phase generation position P does not necessarily correspond to the position Q that is desired as the rotation reference of the arm or the like. In such a case, even if you change the mounting state on the rotary encoder 3 side, the mounting state is still 12, for example.
Since each rotation is 0 degrees, positioning cannot be performed freely.

特に、ロータリーエンコーダ3からの配線とか、周囲の
部材が邪魔となり取り付け状態が制限される。したがっ
て、ロータリーエンコーダの使い勝手が悪くなる。しか
し、この実施例のように基準値設定部を設けてカウンタ
に初期値を自由に設定又は選択的に設定できるようにし
ておけば、高精度でかつ使い勝手のよい回転量(又は位
置決め@)の発生装置を実現できることになる。
In particular, the wiring from the rotary encoder 3 and surrounding members get in the way, limiting the mounting state. Therefore, the rotary encoder becomes less convenient to use. However, if a reference value setting section is provided as in this embodiment so that the initial value can be set freely or selectively on the counter, the rotation amount (or positioning@) can be determined with high accuracy and ease of use. This means that a generator can be realized.

第3図は、第1図の実施例に対応する呉体的な回路の一
例を示すものである。ここでは基準値設定部1としてデ
ジスイッチ20を、エツジトリガ回路14としてマルチ
バイブレータ21を使用し、また、カウンタ部のセット
信2ノ22は負論理を、基準値4の中間地点に設けたゲ
ート回路11のイネーブル信号は正論理を使用している
。カウンタ部回路部2では、基準値としてデジスイッチ
20で設定した4bitの値をセット43号23が入っ
た時だけ取り込む様になっている。
FIG. 3 shows an example of a circuit similar to the one shown in FIG. 1. Here, a digital switch 20 is used as the reference value setting section 1, a multivibrator 21 is used as the edge trigger circuit 14, and the set signal 22 of the counter section is a gate circuit with negative logic provided at the midpoint of the reference value 4. The enable signal No. 11 uses positive logic. The counter circuit section 2 is designed to take in the 4-bit value set by the digital switch 20 as a reference value only when set No. 43 23 is input.

なお、この第3図の回路はN ’IIE転側のトリが動
作を中心として示していて、逆転時には、X″L下がり
で動作するように同様なマルチバイブレータを設けて、
それぞれi[転、逆転で選択するようする。
Note that the circuit in Figure 3 mainly shows the operation of the N'IIE rotation side, and when reversing, a similar multivibrator is provided so that it operates with the X''L falling.
Make selections using i[rotation and reversal, respectively.

こうして、従来の回路に若干の回路を追加するだけで、
基準設定時の精度を確保することができる。
In this way, by simply adding a few circuits to the conventional circuit,
Accuracy during standard setting can be ensured.

ところで、基準設定部4の代わりに、プログラムで設定
する場合もあるが、この時も、エツジトリが回路を設け
た木刀式を用いれば誤差を防げる。
By the way, there are cases where the reference setting unit 4 is used for setting by a program, but even in this case, errors can be prevented by using a wooden sword type in which an archival circuit is provided.

以」−説明してきたが、この実施例では、エツジトリガ
回路は、正転時の立」二かり側のタイミング位置を採用
した場合を示しているが、これは正転時の)′1.ドが
り側でもよい。この場合、負論理又は逆転時には、それ
ぞれ立−Lがり、立下がりのタイミングが逆となる。し
たがって、一般的にaoえば、iE正転時対応して基準
パルス信号の旧縁又は後縁のいずれか一方を、逆転時に
対応してそのいずれか他方を使用すればよい。
As described above, in this embodiment, the edge trigger circuit adopts a timing position on the 2nd edge of the rising edge during forward rotation; It may be on the dodgy side. In this case, when the logic is negative or reversed, the timings of rising and falling are reversed. Therefore, in general, it is sufficient to use either the old edge or the trailing edge of the reference pulse signal for the iE forward rotation, and the other for the reverse rotation.

また、エツジトリガ回路は、例えばフリップフロップ回
路とワンショット回路、インバータ等で構成することも
できる。すなわち、1「転倒の立」−かり信号でワンシ
ョット回路をドライブして、その出力を正転時のトリガ
信号としてゲート回路に入力するとともに、フリップフ
ロップ回路をセットして、逆転時の立上がりパルスでフ
リップフロップ回路をセットし、インバータ回路により
次の立下がりパルスを反転してワンショット回路をドラ
イブしてトリガ信号を発生することができる。
Furthermore, the edge trigger circuit can also be constructed of, for example, a flip-flop circuit, a one-shot circuit, an inverter, and the like. In other words, the one-shot circuit is driven by the 1 "rise of fall" signal, and its output is input to the gate circuit as a trigger signal for forward rotation, and a flip-flop circuit is set to generate the rising pulse for reverse rotation. By setting the flip-flop circuit, the inverter circuit can invert the next falling pulse to drive the one-shot circuit and generate a trigger signal.

このほか、ロータリーエンコーダからの2相出力からそ
の方向性信号を得て、正転時に立上がり信号(又は立下
がり信号)を選択してトリガ信号を発生し、逆転時に正
転時とは逆に立下がり信号(又は立下がり信号)を選択
してトリガ信号を得るようにしてもよく、各種の論理回
路の組合せで簡単に実現できる。
In addition, the directional signal is obtained from the two-phase output from the rotary encoder, and the rising signal (or falling signal) is selected during forward rotation to generate a trigger signal, and the rising signal during reverse rotation is the opposite of that during forward rotation. The trigger signal may be obtained by selecting a falling signal (or a falling signal), and this can be easily realized by combining various logic circuits.

また、実施例では、角度測定等に適する回転量発生装置
を中心に説明しているが、直線上を移動するリニア移動
部材の位1δの情報を検出する場合のエンコーダにより
位置情報を発生するような装置にも適用できることはも
ちろんである。
In addition, although the embodiment mainly describes a rotation amount generating device suitable for angle measurement, etc., it is also possible to generate position information using an encoder when detecting information on the position 1δ of a linearly moving member moving on a straight line. Of course, it can also be applied to other devices.

したがって、この発明は、回転位置に対する情報発生に
限定さるものではな(、いわゆるインクリメンタルタイ
プの位置情報を発生するエンコーダーを使用する各種の
位置情報発生装置に適用できるものである。
Therefore, the present invention is not limited to the generation of information regarding rotational position (it can be applied to various position information generation devices that use encoders that generate so-called incremental type position information).

また、実施例では、カウンタとカウンタパルス発生回路
は、別のものとして説明しているが、これらは一体の回
路であってもよいことはもちろんである。
Further, in the embodiment, the counter and the counter pulse generation circuit are explained as being separate, but it goes without saying that these may be an integrated circuit.

[発明の効果コ 以1−の説明から理解できるように、この発明にあって
は、2相信号出力の関係が一方の方向状態にあるときに
は基準角度出力信号の一方のエツジに対応してトリガ信
号を発生し、かつ他方の方向状態にあるときには基準角
度出力信号の他方のエツジに対応してトリが信号を発生
する、トリガ回路を設けることにより、基準角度出力信
号において一定のエツジタイミング位置で、基準値をカ
ウンタにセットすることができる。したがって、基準角
度信号の幅が、複数のカウントパルスにわたることがほ
とんどな(なる。
[Effects of the Invention] As can be understood from the explanation in 1-1, in this invention, when the relationship between the two-phase signal outputs is in one direction, the trigger is triggered in response to one edge of the reference angle output signal. By providing a trigger circuit in which the trigger circuit generates a signal corresponding to the other edge of the reference angle output signal when in the other direction state, the trigger circuit generates a signal corresponding to the other edge of the reference angle output signal. , a reference value can be set in the counter. Therefore, the width of the reference angle signal rarely spans a plurality of count pulses.

また、このようにすることにより、カウンタの基準設定
時における誤差を防ぐことができ、高精度の角度測定装
置とか、位置決め装置を実現することができる。しかも
、従来の回路を大きく変更する必要もなく、追加回路が
複雑でないので安価なものとなる。
Further, by doing so, it is possible to prevent errors in setting the reference of the counter, and it is possible to realize a highly accurate angle measuring device or positioning device. In addition, there is no need to make major changes to the conventional circuit, and the additional circuit is not complicated, making it inexpensive.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は、この発明を適用した回転情報発生装置のブロ
ック図、第2図は、その動作タイミングチャート、第3
図は、その具体的回路の−・例のブロック図、第4図は
、ロータリエンコーダの取り付け状態の説明図、第5図
は、従来のロータリ−エンコーダを用いた回転lJ3情
報発生装置の呉体例の説明図、第6図は、その動作タイ
ミングチャートである。 ■・・・回転量発生装置、2・・・カウンタ回路部、3
・・・ロータリエンコーダ、4・・・基準値、5・・・
基準角度出力信号、6・・・出力パルスA相信号、7・
・・出力パルスB相信号、 8・・・カウンタ入力パルス信号、9・・・トリガ信号
、10・・・基準値設定部、lO・・・レジスタ、11
・・・ゲート回路、12a・・・カウンタ、12b・・
・カウンタパルス発生部、 14・・・エツジトリガ回路。
FIG. 1 is a block diagram of a rotation information generating device to which the present invention is applied, FIG. 2 is an operation timing chart thereof, and FIG.
The figure is a block diagram of an example of the specific circuit, FIG. 4 is an explanatory diagram of the rotary encoder installation state, and FIG. 5 is an example of a rotary lJ3 information generating device using a conventional rotary encoder. The explanatory diagram, FIG. 6, is its operation timing chart. ■...Rotation amount generator, 2...Counter circuit section, 3
...Rotary encoder, 4...Reference value, 5...
Reference angle output signal, 6... Output pulse A phase signal, 7.
...Output pulse B-phase signal, 8.Counter input pulse signal, 9.Trigger signal, 10.Reference value setting section, lO.Register, 11.
...Gate circuit, 12a...Counter, 12b...
- Counter pulse generation section, 14...edge trigger circuit.

Claims (3)

【特許請求の範囲】[Claims] (1)90度位相差のある2相出力信号と基準角度出力
信号とを有するインクリメンタルタイプの位置情報を発
生するエンコーダと、前記2相出力信号の立上がり及び
立下がりに対応したパルス信号を発生するカウントパル
ス発生回路と、前記パルス信号を受けてこのパルス信号
の数をカウントするカウンタと、このカウンタの初期値
を記憶する記憶部と、前記2相出力信号の関係が所定の
一方の方向状態にある場合には前記基準角度出力信号の
一方のエッジのタイミングに対応してトリガ信号を発生
し、所定の他方の方向状態にある場合には前記基準角度
出力信号の他方のエッジのタイミングに対応してトリガ
信号を発生するトリガ回路とを備え、前記トリガ信号に
応じて前記基準値を前記カウンタにセットすることを特
徴とする位置情報発生装置。
(1) An encoder that generates incremental type position information having a two-phase output signal with a 90 degree phase difference and a reference angle output signal, and generates pulse signals corresponding to the rise and fall of the two-phase output signal. a count pulse generation circuit, a counter that receives the pulse signal and counts the number of pulse signals, a storage section that stores an initial value of the counter, and a relationship between the two-phase output signal that is in a predetermined one-way state. In one case, the trigger signal is generated in response to the timing of one edge of the reference angle output signal, and in a predetermined other direction state, the trigger signal is generated in response to the timing of the other edge of the reference angle output signal. and a trigger circuit that generates a trigger signal according to the trigger signal, and sets the reference value in the counter in response to the trigger signal.
(2)エンコーダはロータリエンコーダであり、カウン
トパルス発生回路は2相出力信号を受けてこれら出力信
号の立上がり及び立下がりに対応したパルス信号及び前
記ロータリーエンコーダの正転又は逆転方向を示す方向
信号を発生するものであり、カウンタは前記方向信号及
び前記パルス信号に応じて加算又は減算するものであっ
て、基準値はトリガ信号により開くゲート回路を介して
前記カウンタにセットされることを特徴とする特許請求
の範囲第1項記載の位置情報発生装置。
(2) The encoder is a rotary encoder, and the count pulse generation circuit receives two-phase output signals and generates pulse signals corresponding to the rising and falling edges of these output signals and a direction signal indicating the forward or reverse rotation direction of the rotary encoder. The counter adds or subtracts according to the direction signal and the pulse signal, and the reference value is set in the counter via a gate circuit that is opened by a trigger signal. A position information generating device according to claim 1.
(3)基準値はロータリエンコーダの取り付け状態に応
じて設定されることを特徴とする特許請求の範囲第2項
記載の位置情報発生装置。
(3) The position information generating device according to claim 2, wherein the reference value is set according to the installation state of the rotary encoder.
JP5884586A 1986-03-17 1986-03-17 Position information generating device Pending JPS62214318A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5884586A JPS62214318A (en) 1986-03-17 1986-03-17 Position information generating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5884586A JPS62214318A (en) 1986-03-17 1986-03-17 Position information generating device

Publications (1)

Publication Number Publication Date
JPS62214318A true JPS62214318A (en) 1987-09-21

Family

ID=13095998

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5884586A Pending JPS62214318A (en) 1986-03-17 1986-03-17 Position information generating device

Country Status (1)

Country Link
JP (1) JPS62214318A (en)

Similar Documents

Publication Publication Date Title
JP2720642B2 (en) Multi-turn absolute value encoder
KR930002719B1 (en) Apparatus and method for increasing the accuracy of the encoder output
JPS62214318A (en) Position information generating device
SE455231B (en) INCREMENTAL DIGITAL CONVERTER
WO2001086360A3 (en) High resolution position sensor
JP3050027B2 (en) Encoder pulse count circuit
JPH074990A (en) Method for detecting absolute position in encoder apparatus
JP3067729B2 (en) Encoder signal processing method and device
JPS6396511A (en) Rotary encoder
JP3449177B2 (en) Position detection device with incremental encoder
KR0153641B1 (en) Motor rotating position detecting circuit using incremental encoder
JPH01153910A (en) Speed and angle controller
JP3248209B2 (en) Position detection method
JPH01132967A (en) Rotation control apparatus
JPH11252966A (en) Motor speed control device
JPS63128226A (en) Position detector
JPH01148906A (en) Apparatus for detecting angle of rotation of industrial robot
JPH0353565B2 (en)
JP2505520B2 (en) Position detection device for eccentric planetary differential reducer
JPH049266B2 (en)
JPH01224622A (en) Multirotation absolute encoder
JP2597977B2 (en) Reference point setting method for position detection circuit
JPH05248893A (en) Backup type absolute position encoder
JPH05332788A (en) Data processing device for rotary encoder
JPS60173406A (en) Absolute position detection system of rotary driving system