Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2581804B2 - Moving distance measuring device - Google Patents
[go: Go Back, main page]

JP2581804B2 - Moving distance measuring device - Google Patents

Moving distance measuring device

Info

Publication number
JP2581804B2
JP2581804B2 JP1208562A JP20856289A JP2581804B2 JP 2581804 B2 JP2581804 B2 JP 2581804B2 JP 1208562 A JP1208562 A JP 1208562A JP 20856289 A JP20856289 A JP 20856289A JP 2581804 B2 JP2581804 B2 JP 2581804B2
Authority
JP
Japan
Prior art keywords
value
pitch
movement amount
movement
data
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
Application number
JP1208562A
Other languages
Japanese (ja)
Other versions
JPH0372218A (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.)
Nippon Steel Corp
Original Assignee
Nippon Steel 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 Nippon Steel Corp filed Critical Nippon Steel Corp
Priority to JP1208562A priority Critical patent/JP2581804B2/en
Publication of JPH0372218A publication Critical patent/JPH0372218A/en
Application granted granted Critical
Publication of JP2581804B2 publication Critical patent/JP2581804B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)
  • Optical Transform (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、リニアエンコーダ,ロータリエンコーダ等
の、所定小量の直線動又は回転動につき1周期の電気信
号を発生する指速信号発生器を用いる移動量測定装置に
関し、特に、移動量測定対象材の所定単位の直線動,回
転動等の移動に対して一周期の、2組の互に位相が90゜
ずれた第1および第2の電気信号を発生する電気信号発
生器を用いる移動量測定装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a finger speed signal generator, such as a linear encoder and a rotary encoder, for generating an electric signal of one cycle for a predetermined small amount of linear motion or rotational motion. With respect to the movement amount measuring device used, in particular, the first and second sets of two sets having a phase shift of 90 ° in one cycle with respect to the movement of the movement amount measurement target material such as linear movement and rotation movement in a predetermined unit. The present invention relates to a movement amount measuring device that uses an electric signal generator that generates an electric signal.

〔従来の技術〕[Conventional technology]

この種の測定装置は従来、第1および第2の電気信号
を2値化して第1および第2の電気パルスに整形する比
較器,第1および第2の電気パルスより移動方向を検出
する方向検出手段および移動方向が正,逆の一方のとき
第1の電気パルスをカウントアップし他方のときカウン
トダウンするアップ/ダウンカウンタを有する。該カウ
ンタのカウントデータが移動量を表わす。
Conventionally, this type of measuring apparatus binarizes first and second electric signals to shape them into first and second electric pulses, and a direction for detecting a moving direction from the first and second electric pulses. It has a detection means and an up / down counter that counts up the first electric pulse when the moving direction is one of the forward and reverse directions and counts down when the moving direction is the other. The count data of the counter indicates the movement amount.

電気信号発生器が例えば、所定ピッチで透光スリット
を形成した移動スリット板と固定スリット板を間に置い
て光源と2組のフォトセンサを設置したものである場
合、移動量(カウントデータ)は、透光スリットの1ピ
ッチを最小単位とするものとなり、一般に端数(1ピッ
チ未満)の値は測定できない。しかし、1ピッチの移動
の間に、第1および第2の電気信号がそれぞれ一周期の
レベル変化を示すので、これらの信号のレベルに基づい
て端数の移動量を演算して、端数移動量データをも得る
ことができる。この種の端数をも算出する移動量測定装
置の1つが特公昭62−57930号公報に開示されている。
When the electric signal generator is, for example, one in which a light source and two sets of photosensors are installed with a moving slit plate having a light-transmitting slit formed at a predetermined pitch and a fixed slit plate interposed therebetween, the moving amount (count data) is The minimum unit is one pitch of the light-transmitting slit, and a fractional value (less than one pitch) cannot generally be measured. However, during the movement of one pitch, the first and second electric signals each show a level change of one cycle. Therefore, the fractional moving amount is calculated based on the level of these signals, and the fractional moving amount data is calculated. Can also be obtained. One such type of moving amount measuring device that calculates a fraction is disclosed in Japanese Patent Publication No. 62-57930.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

光源の光量又は光強度が変動するなど、電気信号発生
器が発生する電気信号のレベルが変動すると、これに伴
って端数の移動量の算出値が変動し端数の測定精度が低
い。
When the level of the electric signal generated by the electric signal generator fluctuates, for example, when the light amount or the light intensity of the light source fluctuates, the calculated value of the fractional movement amount fluctuates with this, and the measurement accuracy of the fraction is low.

また、上述のアップ/ダウンカウンタを省略し、電気
信号発生器が発生する電気信号のレベルより端数値を算
出し、かつ、端数値が1ピッチ量に相当する値に増大す
るとピッチ量検出値を1大きい数値に更新して端数値を
0とし、端数値が0から負方向に減少するとピッチ量検
出値を1小さい数値に更新する、ピッチ量検出値+端数
値を得る移動量演算処理を行なうと、演算に比較的に長
い時間を要し、移動速度が速い場合、実移動量に対する
移動量測定値の追従速度が低い。
Further, the above-described up / down counter is omitted, a fraction value is calculated from the level of the electric signal generated by the electric signal generator, and when the fraction value increases to a value corresponding to one pitch amount, the pitch amount detection value is calculated. When the fractional value is updated to 1 larger value and the fractional value is set to 0, and when the fractional value decreases from 0 in the negative direction, the pitch amount detection value is updated to 1 smaller value. If the calculation requires a relatively long time and the moving speed is high, the following speed of the measured moving amount to the actual moving amount is low.

上述のアップ/ダウンカウンタと、電気信号発生器が
発生する電気信号のレベルより端数値を算出する演算処
理手段とを用いて、ピッチ量は該カウンタのカウントデ
ータより得て、演算処理手段は端数値データのみを算出
するようにすると、該演算処理手段の、ピッチ量計数の
ための演算処理が省略となり、実移動量に対する移動量
測定値の追従速度が高くなる。しかしながら、アップ/
ダウンカウンタがカウントアップ/ダウンするタイミン
グと、演算処理手段が端数値0を演算するタイミングと
を完全に合致させることは、電気回路上ならびに演算処
理上不可能であり、アップ/ダウンカウンタがカウント
アップ/ダウンするタイミングを含む極く狭い範囲で、
例えば演算処理手段が端数値0を演算したとき、アップ
/ダウンカウンタはまだカウントアップ(又はダウン)
をしていないとか、逆に、アップ/ダウンカウンタがカ
ウントアップ(又はダウン)をしたとき、演算処理手段
の算出値が端数値0とは異なる数値であるとかの、ピッ
チ移動量の切換わりと端数値の変化とが整合せず、これ
が、大略1ピッチ分の測定誤差となる。このような誤差
は、アップ/ダウンカウンタがカウントアップ/ダウン
するタイミングを含む極く狭い範囲内で発生するだけで
あるが、これが1ピッチの移動毎に現われるので、問題
となる。
Using the up / down counter described above and arithmetic processing means for calculating a fractional value from the level of the electric signal generated by the electric signal generator, the pitch amount is obtained from the count data of the counter. If only the numerical data is calculated, the arithmetic processing means for calculating the pitch amount by the arithmetic processing means is omitted, and the speed of following the measured movement amount with respect to the actual movement amount is increased. However, up /
It is impossible on the electric circuit and in the arithmetic processing to completely match the timing at which the down counter counts up / down with the timing at which the arithmetic processing means calculates the fractional value 0, and the up / down counter counts up. / In a very narrow range including the timing of down,
For example, when the arithmetic processing means calculates the fractional value 0, the up / down counter still counts up (or down).
When the up / down counter counts up (or down), or when the up / down counter counts up (or down), a change in the pitch movement amount such as a calculation value of the arithmetic processing means being a value different from the fractional value 0. The change in the fractional value does not match, which results in a measurement error of approximately one pitch. Such an error only occurs within a very narrow range including the timing at which the up / down counter counts up / down, but it becomes a problem because it appears every movement of one pitch.

例えば、前記特公昭62−57930号公報に開示の移動量
測定装置は、アップ/ダウンカウンタと、リニアエンコ
ーダが発生する90゜位相が異なる2組の電気信号のレベ
ルより端数値0〜9を算出する演算処理手段とを用い
て、ゲート回路30により、2組の電気信号を比較して一
方の電気信号(b)がそのゼロクロス点間領域(180゜
範囲)の前半領域と後半領域のいずれであるかを判別し
て、前半領域および端数値が0〜4のいずれか、の論理
積が成立したときにアップ/ダウンカウンタをアップカ
ウントし、後半領域および端数値が5〜9のいずれか、
の論値積が成立したときにアップ/ダウンカウンタをダ
ウンカウントする。これによれば、アップ/ダウンカウ
ントのタイミングが、端数値の9→0の切換わり又は0
→9の切換わり、と整合しない場合があり、測定値の連
続性が失なわれる。
For example, the moving amount measuring device disclosed in Japanese Patent Publication No. Sho 62-57930 calculates fractional values 0 to 9 based on the levels of an up / down counter and two sets of electric signals generated by a linear encoder having a 90 ° phase difference. The gate circuit 30 compares the two sets of electric signals to determine whether one electric signal (b) is in the first half area or the second half area of the area between the zero cross points (180 ° range). When the logical product of the first half area and the fractional value of any of 0 to 4 is established, the up / down counter is counted up, and the second half area and the fractional value of any of 5 to 9 are determined.
The up / down counter is down-counted when the logical product of is established. According to this, the timing of the up / down count is changed from the fractional value 9 → 0 or 0.
→ There is a case where it does not match with the switching of 9, and the continuity of the measured value is lost.

すなわち、端数値が8,9,0,1と1まで進行した時点に
アップ/ダウンカウンタが数値nからn+1に1カウン
トアップして、カウトデータ(ピッチデータ)のアップ
切換わりが端数値1で生じて、測定値は、〔n(ピッチ
数)+端数1〕から、〔n+1(ピッチ数)+端数1〕
に切換わる。なお、測定値はその直前にも〔n(ピッチ
数)+端数9〕から、〔n(ピッチ数)+端数0〕の切
換わりを生じ、端数0〜9の範囲が1ピッチに対応する
ので、測定値(ピッチ数+端数)は1回のゼロクロス点
前後で2回も1ピッチもの瞬間的な変化を示すことにな
る。また、端数値が2,1,0,9と9まで進行した時点にア
ップ/ダウンカウンタが1ダウンカウンとして、カウン
トデータのダウン切換わりが端数値の9で生じて、測定
値は、〔n(ピッチ数)+端数9〕から、〔n−1(ピ
ッチ数)+端数9〕に切換わる。なお、測定値はその直
前にも〔n(ピッチ数)+端数9〕から、〔n(ピッチ
数)+端数0〕の切換わりを生じ、端数9〜0の範囲が
1ピッチに対応するので、測定値(ピッチ数+端数)は
1回のゼロクロス点前後で2回も1ピッチもの瞬間的な
変化を示すことになる。
That is, when the fractional value progresses to 8, 9, 0, 1 and 1, the up / down counter counts up from the value n to n + 1 by one, and the up switching of the cue data (pitch data) occurs at the fractional value 1. The measured value is calculated from [n (number of pitches) + fraction 1] to [n + 1 (number of pitches) + fraction 1].
Switch to. It should be noted that the measured value is switched from [n (pitch number) + fraction 9] to [n (pitch number) + fraction 0] immediately before that, and the range of fraction 0 to 9 corresponds to one pitch. , The measured value (the number of pitches + the fraction) shows an instantaneous change of one pitch twice before and after one zero cross point. When the fractional value has progressed to 2,1,0,9 and 9, the up / down counter counts down by 1 and the count data is switched down at the fractional value of 9, and the measured value is [n (Pitch number) + fraction 9] is switched to [n-1 (pitch number) + fraction 9]. It should be noted that the measured value switches from [n (pitch number) + fraction 9] to [n (pitch number) + fraction 0] immediately before that, and the range of fraction 9 to 0 corresponds to one pitch. , The measured value (the number of pitches + the fraction) shows an instantaneous change of one pitch twice before and after one zero cross point.

本発明は、ピッチ移動量およびその端数値を高い精度
で測定し、移動量測定対象の連続的な移動に対して測定
値が連続的に推移する移動量測定装置を提供することも
目的とする。
Another object of the present invention is to provide a movement amount measuring device that measures a pitch movement amount and a fractional value thereof with high accuracy, and in which a measurement value continuously changes with respect to a continuous movement of a movement amount measurement target. .

〔課題を解決するための手段〕[Means for solving the problem]

本発明の測定装置は、移動量測定対象に結合され、そ
の所定単位の直線動,回転動等の移動に対して一周期
の、2組の互に位相が90゜ずれた第1および第2の電気
信号を発生する電気信号発生器(1〜4x,4y);それぞ
れが第1および第2の電気信号を増幅する第1および第
2の増幅手段(5x,5y);第1および第2の増幅手段(5
x,5y)が増幅した信号(Lc,Ls)のレベルをそれぞれ第
1および第2のデジタルデータに変換するA/D変換手段
(7);第1および第2のデジタルデータの自乗平均が
設定値になるように、第1および第2の増幅手段(5x,5
y)の増幅率を調整する信号レベル調整手段(8);第
1および第2のデジタルデータの比を算出する三角関数
値算出手段(8);三角関数値算出手段(8)が算出し
た比を、第1および第2の電気信号のレベルの相関によ
り表わされる角度(θ)対応のデータ(Rd)に変換する
逆変換手段(8);角度対応のデータ(Rd)の時系列推
移より、移動量測定対象の移動の方向と、所定角度(0
゜)対応値(0)通過を検出し、所定角度対応値通過の
時点において、上記検出した移動方向が一方の方向(時
計方向)のとき、ピッチ移動量情報(CS)を1ピッチ相
当値大きい値に更新し、他方の方向(反時計方向)のと
きは1ピッチ相当値小さい値に更新するカウント手段
(8);および、ピッチ移動量情報(CS)と角度対応の
データ(Rd)より、ピッチ移動量(CS)および1ピッチ
内移動量(Rd)を含む情報(TR)を生成する移動量情報
演算手段(8);を備える。なお、カッコ内の記号は、
図面に示し後述する実施例の対応要素を示す。
The measuring apparatus according to the present invention is coupled to a movement amount measurement object and has two sets of first and second phases that are 90 ° out of phase with each other in one cycle with respect to a movement such as a linear movement or a rotation movement in a predetermined unit. Electric signal generators (1-4x, 4y) for generating electric signals of the following; first and second amplifying means (5x, 5y) for amplifying the first and second electric signals, respectively; first and second Amplification means (5
A / D conversion means (7) for converting the level of the signal (Lc, Ls) amplified by (x, 5y) into first and second digital data, respectively; a mean square of the first and second digital data is set The first and second amplification means (5x, 5
signal level adjusting means (8) for adjusting the amplification factor of y); trigonometric function value calculating means (8) for calculating the ratio of the first and second digital data; ratio calculated by the trigonometric function value calculating means (8) Means (8) for converting the angle (θ) represented by the correlation between the levels of the first and second electric signals into data (Rd); The direction of movement of the movement amount measurement object and a predetermined angle (0
゜) The passage of the corresponding value (0) is detected, and when the detected moving direction is one direction (clockwise) at the time of passing the predetermined angle corresponding value, the pitch movement amount information (CS) is increased by one pitch equivalent value. Counting means (8) for updating to a value and, in the other direction (counterclockwise), to a value smaller by one pitch equivalent value; and from pitch movement amount information (CS) and angle-corresponding data (Rd), A movement amount information calculating means (8) for generating information (TR) including the pitch movement amount (CS) and the movement amount within one pitch (Rd); The symbol in parentheses is
The corresponding elements of the embodiment shown in the drawings and described later are shown.

〔作用1〕 三角関数値算出手段(8)が、第1および第2のデジ
タルデータの比を算出し、この比を逆変換手段(8)
が、第1および第2の電気信号のレベルの相関により表
わされる角度(θ)対応のデータ(Rd)に変換するの
で、電気信号発生器(1〜4x,4y)が発生する第1およ
び第2の電気信号のレベルが共に同方向に変動しても該
比は実質上変動せず、データ(Rd)の変動がない。した
がって端数値(Rd)の測定が正確になる。第1および第
2の電気信号のレベルの変動が大きいと、A/D変換の分
解能によりデジタルデータへの変換における誤差が大き
くなり、これが算出比にも影響を及ぼすが、本発明で
は、信号レベル調整手段(8)が、第1および第2のデ
ジタルデータの自乗平均が設定値になるように、第1お
よび第2の増幅手段(5x,5y)の増幅率を調整するの
で、A/D変換の分解能によるデジタルデータへの変換に
おける誤差の変動が小さく、安定した高い精度で比が算
出され、端数値(Rd)の測定が正確に行なわれる。
[Function 1] A trigonometric function value calculating means (8) calculates a ratio between the first and second digital data, and converts this ratio into an inverse converting means (8).
Is converted into data (Rd) corresponding to the angle (θ) represented by the correlation between the levels of the first and second electric signals, so that the first and second electric signal generators (1 to 4x, 4y) generate the first and second electric signals. Even if the levels of the two electric signals change in the same direction, the ratio does not substantially change, and there is no change in the data (Rd). Therefore, the measurement of the fractional value (Rd) becomes accurate. If the level of the first and second electric signals fluctuates greatly, an error in the conversion into digital data increases due to the resolution of the A / D conversion, which also affects the calculation ratio. The adjusting means (8) adjusts the amplification factors of the first and second amplifying means (5x, 5y) so that the root mean square of the first and second digital data becomes a set value. An error in the conversion into digital data due to the conversion resolution is small, the ratio is calculated with high accuracy, and the fractional value (Rd) is accurately measured.

端数値(Rd)の測定が正確であることにより、カウン
ト手段(8)による端数値(Rd)に基づいたピッチ移動
量の演算も正確となり、したがって、ピッチ移動量およ
びその端数値が高い精度で測定される。
Since the measurement of the fractional value (Rd) is accurate, the calculation of the pitch movement amount based on the fractional value (Rd) by the counting means (8) also becomes accurate, and therefore, the pitch movement amount and the fractional value are obtained with high accuracy. Measured.

加えて、カウント手段(8)が、角度対応のデータ
(Rd)の時系列推移より、移動量測定対象の移動の方向
(時計方向/反時計方向)と、所定角度(0゜)対応値
(0)通過を検出し、所定角度対応値通過の時点におい
て、上記検出した移動方向が一方の方向(時計方向)の
とき、ピッチ移動量情報(CS)を1ピッチ相当値大きい
値に更新し、他方の方向(反時計方向)のときは1ピッ
チ相当値小さい値に更新するので、角度対応のデータ
(Rd)の切換わりとピッチ移動量情報(CS)の切換わり
が同期し、このピッチ移動量情報(CS)の切換わり時点
に測定値(CS+Rd)が1ピッチ分もの瞬間的な変化を生
ずることはなく、移動量測定対象の連続的な移動に対し
て測定値が連続的に推移する。
In addition, the counting means (8) determines the direction (clockwise / counterclockwise) of the movement of the movement amount measurement target and the value corresponding to the predetermined angle (0 °) based on the time-series transition of the angle-corresponding data (Rd). 0) The passage is detected, and at the time of passing the value corresponding to the predetermined angle, when the detected movement direction is one direction (clockwise), the pitch movement amount information (CS) is updated to a value larger by one pitch, In the other direction (counterclockwise), the pitch is updated to a value equivalent to one pitch smaller, so that the switching of the angle-corresponding data (Rd) and the switching of the pitch movement amount information (CS) are synchronized, and this pitch movement is performed. The measured value (CS + Rd) does not cause an instantaneous change of one pitch at the time of switching of the amount information (CS), and the measured value continuously changes with the continuous movement of the movement amount measurement object. .

〔課題を解決するための手段2〕 本発明測定装置は、移動量測定対象に結合され、その
所定単位の直線動,回転動等の移動に対して一周期の、
2組の互に位相が90゜ずれた第1および第2の電気信号
を発生する電気信号発生器(1〜4x,4y);第1および
第2の電気信号を第1および第2のパルス信号(A,B)
に2値化する2値化手段(6);第1および第2のパル
ス信号(A,B)より移動量判定対象の移動の方向を表わ
す方向信号を発生する方向検出手段(10);方向信号が
一方の方向(時計方向)のとき、第1および第2のパル
ス信号(A,B)の一方(A)をカウントアップし、他方
の方向(反時計方向)のときカウントダウンするアップ
/ダウンカウンタ(11);それぞれが第1および第2の
電気信号を増幅する第1および第2の増幅手段(5x,5
y);第1および第2の増幅手段(5x,5y)が増幅した信
号のレベルをそれぞれ第1および第2のデジタルデータ
に変換するA/D変換手段(7);第1および第2のデジ
タルデータの比を算出する三角関数値算出手段(8);
三角関数値算出手段(8)が算出した比を角度(θ)対
応のデータ(Rd)に変換する逆変換手段(8);アップ
/ダウンカウンタ(11)がカウントアップ/ダウンする
タイミングを含むその直近領域(Ar)で、角度対応のデ
ータ(Rd)の時系列推移より、移動量測定対象の移動の
方向と、所定角度(0゜)対応値(0)通過を検出し、
所定角度対応値通過の時点において、上記検出した移動
方向が一方の方向(時計方向)のとき、ピッチ移動量情
報(CS)を1ピッチ相当値大きい値に更新し、他方の方
向(反時計方向)のときは1ピッチ相当値小さい値に更
新するカウント手段(8);および、直近領域(Ar)内
では、ピッチ移動量情報(CS)と角度対応のデータ(R
d)より、ピッチ移動量(CS)および1ピッチ内移動量
(Rd)を含む情報(TR)を生成し、直近領域(Ar)外で
は、アップ/ダウンカウンタ(11)のカウントデータ
(Rp)と角度対応のデータ(Rd)より、ピッチ移動量
(Rp)および1ピッチ内移動量(Rd)を含む情報(TR)
を生成する、移動量情報演算手段(8);を備える。
[Means 2 for Solving the Problems] The measuring device of the present invention is coupled to a movement amount measurement object, and has one cycle with respect to movement such as linear movement and rotation movement of a predetermined unit.
Two sets of electric signal generators (1 to 4x, 4y) for generating first and second electric signals 90 ° out of phase with each other; a first and a second pulse for the first and second electric signals Signal (A, B)
Binarizing means (6); binarizing means (6); direction detecting means (10) for generating, from the first and second pulse signals (A, B), a direction signal representing the direction of movement of the movement amount determination target; Up / down counting up one (A) of the first and second pulse signals (A, B) when the signal is in one direction (clockwise), and counting down when the signal is in the other direction (counterclockwise). Counter (11); first and second amplifying means (5x, 5) each amplifying the first and second electric signals.
y); A / D conversion means (7) for converting the level of the signal amplified by the first and second amplifying means (5x, 5y) into first and second digital data, respectively; Trigonometric function value calculating means (8) for calculating a ratio of digital data;
Inverting means (8) for converting the ratio calculated by the trigonometric function value calculating means (8) into data (Rd) corresponding to the angle (θ); including the timing at which the up / down counter (11) counts up / down. In the immediate area (Ar), the direction of movement of the movement amount measurement target and the passage of the predetermined angle (0 °) corresponding value (0) are detected from the time-series transition of the angle-related data (Rd),
When the detected moving direction is one direction (clockwise) at the time of passing the predetermined angle corresponding value, the pitch moving amount information (CS) is updated to a value larger by one pitch, and the other direction (counterclockwise). )), Counting means (8) for updating to a value smaller by one pitch equivalent value; and, in the immediate area (Ar), pitch movement amount information (CS) and data (R) corresponding to the angle.
From d), information (TR) including the pitch movement amount (CS) and the movement amount within one pitch (Rd) is generated. Outside the immediate area (Ar), the count data (Rp) of the up / down counter (11) is generated. Information (TR) including the pitch movement amount (Rp) and the movement amount within one pitch (Rd) from the data (Rd) corresponding to the angle and the angle.
And a movement amount information calculation means (8).

〔作用2〕 アップ/ダウンカウンタ(11)がカウントアップ/ダ
ウンするタイミングを含むその直近領域(Ar)外の広い
範囲では、移動量情報演算手段(8)が、アップ/ダウ
ンカウンタ(11)のカウントデータ(Rp)と角度対応の
データ(Rd)より、ピッチ移動量(Rp)および1ピッチ
内移動量(Rd)を含む情報(TR)を生成するので、角度
対応のデータ(Rd)に基づいたピッチ移動量のカウント
アップ/ダウン要否の判定等、ピッチ移動量演算処理が
不要であるので、またアップ/ダウンカウンタ(11)に
よるカウントは高速であるので、実移動量に対する移動
量測定値の追従精度が高い。アップ/ダウンカウンタ
(11)がカウントアップ/ダウンするタイミングを含む
その直近領域(Ar)では、カウント手段(8)が角度対
応のデータ(Rd)の推移より、移動量測定対象の移動の
方向と、所定角度(0゜)対応値(0)通過を検出し、
所定角度対応値通過の時点において、上記検出した移動
方向が一方の方向(時計方向)のとき、ピッチ移動量情
報(CS)を1ピッチ相当値大きい値に更新し、他方の方
向(反時計方向)のときは1ピッチ相当値小さい値に更
新して、移動量情報演算手段(8)が、ピッチ移動量情
報(CS)と角度対応のデータ(Rd)より、ピッチ移動量
(CS)および1ピッチ内移動量(Rd)を含む情報(TR)
を生成するので、ピッチ移動量情報(CS)の切換わりと
1ピッチ内移動量(Rd)の変化とが整合(連動)し、両
者間に大略1ピッチ分の測定誤差を生ずることがなくな
る。すなわち、角度対応のデータ(Rd)の切換わりとピ
ッチ移動量情報(CS)の切換わりが同期し、このピッチ
移動量情報(CS)の切換わり時点に測定値(CS+Rd)が
1ピッチ分もの瞬間的な変化を生ずることはなく、移動
量測定対象の連続的な移動に対して測定値が連続的に推
移する。
[Operation 2] In a wide range outside the immediate area (Ar) including the timing at which the up / down counter (11) counts up / down, the movement amount information calculating means (8) uses the up / down counter (11) From the count data (Rp) and the data corresponding to the angle (Rd), information (TR) including the pitch movement amount (Rp) and the movement amount within one pitch (Rd) is generated. Since the pitch movement amount calculation processing such as the determination of the need to count up / down the pitch movement amount is unnecessary, and the counting by the up / down counter (11) is fast, the movement amount measurement value with respect to the actual movement amount is obtained. Tracking accuracy is high. In the immediate area (Ar) including the timing at which the up / down counter (11) counts up / down, the counting means (8) determines the direction of movement of the movement amount measurement target from the transition of the data (Rd) corresponding to the angle. , A predetermined angle (0 °) corresponding value (0) passing is detected,
When the detected moving direction is one direction (clockwise) at the time of passing the predetermined angle corresponding value, the pitch moving amount information (CS) is updated to a value larger by one pitch, and the other direction (counterclockwise). In the case of ()), the pitch amount is updated to a value that is smaller by one pitch, and the movement amount information calculating means (8) calculates the pitch movement amount (CS) and 1 by the pitch movement amount information (CS) and the data (Rd) corresponding to the angle. Information (TR) including the movement amount within the pitch (Rd)
Is generated, the switching of the pitch movement amount information (CS) and the change of the movement amount within one pitch (Rd) are matched (linked), and a measurement error of approximately one pitch does not occur between the two. That is, the switching of the angle-corresponding data (Rd) and the switching of the pitch movement information (CS) are synchronized, and the measured value (CS + Rd) for one pitch at the time of the switching of the pitch movement information (CS). There is no instantaneous change, and the measurement value changes continuously with the continuous movement of the movement amount measurement object.

カウント手段(8)の上述のピッチ移動量情報(CS)
の演算には比較的に長い時間を要するが、これを実行す
る領域(Ar)が極く狭い範囲であるので、測定装置の時
系列平均の追従性は格別に大きく低下することがない。
The above-mentioned pitch movement amount information (CS) of the counting means (8)
Takes a relatively long time, but since the region (Ar) in which this is performed is in a very narrow range, the tracking performance of the time-series average of the measuring apparatus does not significantly decrease.

本発明の好ましい実施例では、三角関数値算出手段
は、第1および第2のデジタルデータを比較して、それ
らの合成ベクトルの方向(角度)が、 No.0: 0゜以上 45゜未満, No.1: 45゜以上 90゜未満, No.2: 90゜以上135゜未満, No.3:135゜以上180゜未満, No.4:180゜以上225゜未満, No.5:225゜以上270゜未満, No.6:270゜以上315゜未満, No.7:315゜以上360゜未満、 のいずれかを検出し、No.3,4又は7と検出したときには
正接値に相当する、第1および第2のデジタルデータの
絶対値の比を算出し、No.1,2,5又は6と検出したときに
は正接値の逆数に相当する、第1および第2のデジタル
データの絶対値の比を算出するものとする。
In a preferred embodiment of the present invention, the trigonometric function value calculating means compares the first and second digital data and determines that the direction (angle) of the combined vector is No. 0: 0 ° or more and less than 45 °, No.1: 45 to 90 ゜, No.2: 90 to 135 ゜, No.3: 135 to 180 No, No.4: 180 to less than 225 ゜, No.5: 225 ゜No. 6: More than 270 mm and less than 315 mm, No. 7: More than 315 mm and less than 360 mm, and when it is detected as No. 3, 4 or 7, it corresponds to the tangent value , The ratio of the absolute value of the first and second digital data is calculated, and when it is detected as No. 1, 2, 5, or 6, the absolute value of the first and second digital data corresponds to the reciprocal of the tangent value Shall be calculated.

第1および第2の増幅手段(5x,5y)が増幅した電気
信号(Ls=Sinθ+Vsm,Lc=Cosθ+Vsm)は、基準電圧V
smに対して第2a図に示すレベル(縦軸)を示す。このレ
ベルの1周期が1ピッチである。電気信号発生器(1〜
4x,4y)および増幅手段(5x,5y)等が理想的に設計され
て、あるいは、増幅手段(6y,6x)の増幅率の調整によ
る校正で、第2a図に示すように、増幅した第1および第
2の電気信号(La=Sinθ+Vsm,Lc=Cosθ+Vsm)の極
値が等しく、理想的なSin関数およびCos関数が現われる
と、第4図に示すように、第1および第2の電気信号の
合成ベクトルの方向θ(ピッチ内の移動量端数値に比例
する)が、0〜360゜を8等分に分割した象限No.0〜7
(第3図)のいずれにあるかを判定しうる。このように
象限を定め、かつθがどの象限にあるかを判断したとし
て、電気信号の変動レベル(Ls=Sinθ,Lc=Cosθ)の
絶対値に着目すると、それは第2b図に示すものとなる。
The electric signal (Ls = Sinθ + Vsm, Lc = Cosθ + Vsm) amplified by the first and second amplifying means (5x, 5y) is equal to the reference voltage V
The level (vertical axis) shown in FIG. 2a is shown for sm. One cycle of this level is one pitch. Electric signal generator (1 to
4x, 4y) and the amplifying means (5x, 5y) are ideally designed, or are calibrated by adjusting the amplification factor of the amplifying means (6y, 6x), as shown in FIG. 2a. When the extreme values of the first and second electric signals (La = Sinθ + Vsm, Lc = Cosθ + Vsm) are equal and ideal Sin and Cos functions appear, as shown in FIG. 4, the first and second electric signals The direction θ of the composite vector (proportional to the fractional amount of movement in the pitch) is 0 to 360 ° divided into eight equal quadrants 0 to 7.
(FIG. 3). Assuming that the quadrant is set in this way and that the quadrant is located in θ, focusing on the absolute value of the fluctuation level (Ls = Sinθ, Lc = Cosθ) of the electric signal, it is as shown in FIG. 2b. .

No.0象限では、 Tanθt=|Sinθ|/|Cosθ| =|Ls|/|Lc| であるので、|Ls|/|Lc|を算出してこれをTanθtの値で
あるとして、逆変換(アークタンジェント)により、θ
tを演算し、これを検出角度θとして得る。
In the No. 0 quadrant, Tanθt = | Sinθ | / | Cosθ | = | Ls | / | Lc |, so | Ls | / | Lc | is calculated, and this is regarded as the value of Tanθt. Arc tangent), θ
t is calculated, and this is obtained as a detection angle θ.

No.1象限では、第2b図に矢印で示すように、90゜を基
点に、角度減少方向に見ると、No.0の象限の|Ls|と|Lc|
とを入れ替えた形で、減少方向の角度を算出できる。す
なわち Tanθct=|Cosθct|/|Sinθct| =|Lc|/|Ls| を算出してこれをTanθctの値であるとして、逆変換
(アークタンジェント)により、θctを演算し、そし
て、θ=90゜−θctと、角度θを求めることができる。
In the No. 1 quadrant, as shown by the arrow in FIG. 2b, looking at the angle of 90 ° as the starting point, the | Ls | and | Lc |
The angle in the decreasing direction can be calculated by exchanging That is, Tanθct = | Cosθct | / | Sinθct | = | Lc | / | Ls | is calculated as the value of Tanθct, and θct is calculated by inverse transformation (arc tangent), and θ = 90 ° −θct and the angle θ can be obtained.

No.2象限では、第2b図に矢印で示すように、90゜を基
点に、角度増加方向に見ると、No.0の象限の|Ls|と|Lc|
とを入れ替えた形で、増加方向の角度を算出できる。す
なわち Tanθct=|Cosθct|/|Sinθct| =|Lc|/|Ls| を算出してこれをTanθctの値であるとして、逆変換
(アークタンジェント)により、θctを演算し、そし
て、θ=90゜+θctと、角度θを求めることができる。
In the No. 2 quadrant, as shown by the arrow in FIG. 2b, looking at 90 ° as the base point and looking at the angle increasing direction, | Ls | and | Lc |
The angle in the increasing direction can be calculated in a form where? That is, Tanθct = | Cosθct | / | Sinθct | = | Lc | / | Ls | is calculated as the value of Tanθct, and θct is calculated by inverse transformation (arc tangent), and θ = 90 ° + Θct and the angle θ can be obtained.

No.3象限では、第2b図に矢印で示すように、180゜を
基点に、角度減少方向に見ると、No.0の象限の場合と同
じ形で、減少方向の角度を算出できる。すなわち Tanθt=|Sinθt|/|Cosθt| =|Ls|/|Lc| を算出してこれをTanθtの値であるとして、逆変換
(アークタンジェント)により、θtを演算し、そし
て、θ=180゜−θtと、角度θを求めることができ
る。
In the No. 3 quadrant, as shown by the arrow in FIG. 2b, the angle in the decreasing direction can be calculated in the same manner as in the case of the No. 0 quadrant when viewed in the angle decreasing direction from 180 ° as a base point. That is, Tanθt = | Sinθt | / | Cosθt | = | Ls | / | Lc | is calculated as the value of Tanθt, and θt is calculated by inverse transformation (arc tangent), and θ = 180 ° −θt and the angle θ can be obtained.

No.4象限では、第2b図に矢印で示すように、180゜を
基点に、角度増加方向に見ると、No.0の象限の場合と同
じ形で、増加方向の角度を算出できる。すなわち Tanθt=|Sinθt|/|Cosθt| =|Ls|/|Lc| を算出してこれをTanθtの値であるとして、逆変換
(アークタンジェント)により、θtを演算し、そし
て、θ=180゜+θtと、角度θを求めることができ
る。
In the No. 4 quadrant, as shown by the arrow in FIG. 2b, the angle in the increasing direction can be calculated in the same manner as in the quadrant of No. 0 when viewed from 180 ° as the base point in the angle increasing direction. That is, Tanθt = | Sinθt | / | Cosθt | = | Ls | / | Lc | is calculated as the value of Tanθt, and θt is calculated by inverse transformation (arc tangent), and θ = 180 ° + Θt and the angle θ.

No.5象限では、第2b図に矢印で示すように、270゜を
基点に、角度減少方向に見ると、No.0の象限の|Ls|と|L
c|とを入れ替えた形で、減少方向の角度を算出できる。
すなわち Tanθct=|Cosθct|/|Sinθct| =|Lc|/|Ls| を算出してこれをTanθctの値であるとして、逆変換
(アークタンジェント)により、θctを演算し、そし
て、θ=270゜−θctと、角度θを求めることができ
る。
In the No. 5 quadrant, as shown by the arrow in FIG. 2b, when looking at the angle decrease starting from 270 °, | Ls | and | L of the No. 0 quadrant
The angle in the decreasing direction can be calculated by exchanging c |.
That is, Tanθct = | Cosθct | / | Sinθct | = | Lc | / | Ls | is calculated as the value of Tanθct, and θct is calculated by inverse transformation (arc tangent), and θ = 270 ° −θct and the angle θ can be obtained.

No.6象限では、第2b図に矢印で示すように、270゜を
基点に、角度増加方向に見ると、No.0の象限の|Ls|と|L
c|とを入れ替えた形で、増加方向の角度を算出できる。
すなわち Tanθct=|Cosθct|/|Sinθct| =|Lc|/|Ls| を算出してこれをTanθctの値であるとして、逆変換
(アークタンジェント)により、θctを演算し、そし
て、θ=270゜+θctと、角度θを求めることができ
る。
In the No. 6 quadrant, as shown by the arrow in FIG. 2b, looking at the angle increase from 270 °, the | Ls | and | L of the No. 0 quadrant
The angle in the increasing direction can be calculated by exchanging c |.
That is, Tanθct = | Cosθct | / | Sinθct | = | Lc | / | Ls | is calculated as the value of Tanθct, and θct is calculated by inverse transformation (arc tangent), and θ = 270 ° + Θct and the angle θ can be obtained.

No.7象限では、第2b図に矢印で示すように、360゜を
基点に、角度減少方向に見ると、No.0の象限の場合と同
じ形で、減少方向の角度を算出できる。すなわち Tanθt=|Sinθt|/|Cosθt| =|Ls|/|Lc| を算出してこれをTanθtの値であるとして、逆変換
(アークダンジェント)により、θtを演算し、そし
て、θ=360゜−θtと、角度θを求めることができ
る。
In the No. 7 quadrant, as shown by the arrow in FIG. 2b, the angle in the decreasing direction can be calculated in the same manner as in the quadrant of No. 0 when viewed in the direction of decreasing angle from 360 ° as the base point. That is, Tanθt = | Sinθt | / | Cosθt | = | Ls | / | Lc | is calculated as the value of Tanθt, and θt is calculated by inverse conversion (arc dangent), and θ = 360゜ −θt and the angle θ can be obtained.

このように演算することにより、θt,θctは0〜45゜
の範囲であり、三角関数値(正接)より角度を逆演算す
るためのデータは一象限(0〜45゜)分のみで良く、デ
ータ量が極く少く済むので、その分角度分解能を高くし
て、高分解能で角度θを算出し得る。後述の好ましい実
施例では、1象限(0〜45゜:1ピッチの1/8の範囲)を1
024分割した単位で角度θ(ピッチ内端数値)を表わ
す。
By performing the calculation in this manner, θt and θct are in the range of 0 to 45 °, and the data for performing the inverse calculation of the angle from the trigonometric function value (tangent) need only be for one quadrant (0 to 45 °). Since the data amount is extremely small, the angle resolution can be increased accordingly and the angle θ can be calculated with high resolution. In a preferred embodiment described later, one quadrant (0 to 45 °: 1/8 of the pitch) is set to 1
The angle θ (the numerical value at the end of the pitch) is expressed in units of 024 divisions.

本発明の他の目的および特徴は、図面を参照した以下
の実施例の説明より明らかになろう。
Other objects and features of the present invention will become apparent from the following description of embodiments with reference to the drawings.

〔実施例〕〔Example〕

第1図に本発明の一実施例を示す。電気信号発生器
は、光源8,移動量測定対象に機械的に結合されて移動量
測定対象の往復直線動,正,逆回転動に連動して矢印方
向に往復動する可動スリット板1,固定スリット板2およ
び第1および第2のフォトセンサ4y,4xで構成されてい
る。可動スリット板1および固定スリット板2には、実
質上同一ピッチの透光窓が、矢印で示す移動方向に所定
ピッチで形成されている。フォトセンサ4y,4xは、スリ
ット板1および2の透光窓を通過した光を受光するが、
可動スリット板1の1ピッチ分の移動に対して一方のフ
ォトセンサが発生する一周期のサイン波(又はコサイン
波)状の電気信号に対して他方のフォトセンサは90゜位
相がずれたコサイン波(サイン波)状の電気信号を発生
するように、両フォトセンサ4y,4xの、矢印方向の相対
位置が設定されている。
FIG. 1 shows an embodiment of the present invention. The electric signal generator is composed of a light source 8, a movable slit plate mechanically coupled to the moving amount measurement object and reciprocating in the direction of the arrow in conjunction with the reciprocating linear movement, forward and reverse rotation of the moving amount measurement object 1, fixed. It comprises a slit plate 2 and first and second photosensors 4y and 4x. In the movable slit plate 1 and the fixed slit plate 2, light-transmitting windows having substantially the same pitch are formed at a predetermined pitch in the moving direction indicated by the arrow. The photo sensors 4y and 4x receive the light passing through the light transmitting windows of the slit plates 1 and 2,
One photosensor generates a sinusoidal (or cosine) electric signal generated by one of the photosensors when the movable slit plate 1 moves by one pitch. The relative positions of the two photosensors 4y and 4x in the direction of the arrow are set so as to generate (sine wave) electric signals.

フォトセンサ4y,4xが発生する電気信号は、それぞれ
可変ゲインアンプ5y,5xで増幅されて比較器6およびA/D
コンバータ7に与えられる。
The electric signals generated by the photo sensors 4y and 4x are amplified by the variable gain amplifiers 5y and 5x, respectively, and are amplified by the comparator 6 and the A / D.
It is provided to converter 7.

比較器6は、増幅した電気信号を、その基準電気Vsm
で2値化して、パルス信号AおよびBを生成し、これら
を方向検出器10に与える。なお、比較器6にはヒステリ
シス特性が設定されており、正確には、基準電位Vsmよ
りも少しずれた電位で2値化が行なわれる。
The comparator 6 converts the amplified electric signal into a reference electric Vsm.
To generate pulse signals A and B, which are supplied to the direction detector 10. It should be noted that the comparator 6 has a hysteresis characteristic, and, more precisely, performs binarization at a potential slightly shifted from the reference potential Vsm.

方向検出器10は、パルス信号AおよびBのレベル変化
に基づいて、信号Bが高レベルHのときに信号AがHか
ら低レベルLに立下ると可動スリット板1が復方向に移
動していることを示すHとなり、信号Bが高レベルHの
ときに信号AがLからHに立上ると、可動スリット板1
が往方向に移動していることを示すLとなる方向信号
(フリップフロップのQ出力)をアップ/ダウンカウン
タ11の、アップ/ダウン指示信号入力端(UP/DOWN)に
与える。信号Aは方向検出器10のインバータで反転され
てアップ/ダウンカウンタ11のカウントパルス入力端
(CK)に与える。
The direction detector 10 detects that the movable slit plate 1 moves in the backward direction when the signal A falls from H to low level L when the signal B is at the high level H based on the level change of the pulse signals A and B. When the signal A rises from L to H while the signal B is at the high level H, the movable slit plate 1
Is supplied to an up / down instruction signal input terminal (UP / DOWN) of the up / down counter 11 as an L signal indicating that it is moving in the forward direction (Q output of the flip-flop). The signal A is inverted by the inverter of the direction detector 10 and applied to the count pulse input terminal (CK) of the up / down counter 11.

アップ/ダウンカウンタ11は、方向信号がL(往移
動)のときには、信号AのLからHへの立上り(信号A
の反転信号のHからLへの立上り)に応答して1カウン
トアップし、方向信号がH(復移動)のときには、信号
AのHからLへの立下りに応答して1カウントダウンす
る。カウンタ11のカウントデータはマイクロプロセッサ
(以下CPUと称す)8に与えられる。カウンタ11のクリ
ア信号入力端(CLR)およびCPU8には、リセット信号
(Lがリセットを指示)が与えられ、リセット信号がL
のときアップ/ダウンカウンタ11はカウントデータを0
を示すものにクリアしてリセット信号がHに戻ってから
カウントアップ/ダウン動作を行なう。
When the direction signal is L (forward movement), the up / down counter 11 starts the signal A from L to H (signal A).
When the direction signal is H (backward movement), the count-up is performed by one in response to the fall of the signal A from H to L. The count data of the counter 11 is given to a microprocessor (hereinafter referred to as CPU) 8. A reset signal (L indicates reset) is applied to the clear signal input terminal (CLR) of the counter 11 and the CPU 8, and the reset signal is
, The up / down counter 11 sets the count data to 0.
And the count up / down operation is performed after the reset signal returns to H.

比較器6がヒステリシス特性を有するものであるの
で、可変ゲインアンプ5yが発生する電気信号Ls=Sinθ
+Vsmの変動分Sinθが0の所で信号AがLからHに立上
って(HからLに立下って)そこでカウンタ11がカウン
トアップ(ダウン)すべき所、微細には、信号Aのこの
立上り(立下り)が、第2a図に示す極く狭い領域Ar(−
Ld<Sinθ<Ld)の範囲内で、Sinθ=0のタイミングよ
りもずれるので、カウンタ11のカウントアップ/ダウン
のタイミングは、Sinθ=0とは正確には合致しない。
Since the comparator 6 has a hysteresis characteristic, the electric signal Ls = Sinθ generated by the variable gain amplifier 5y
When the signal A rises from L to H (falls from H to L) when the variation Sinθ of + Vsm is 0, the counter 11 should count up (down) there. This rising (falling) is caused by the extremely narrow region Ar (−) shown in FIG. 2a.
Within the range of Ld <Sinθ <Ld), the timing is shifted from the timing of Sinθ = 0, so that the count-up / down timing of the counter 11 does not exactly match Sinθ = 0.

A/Dコンバータ7は、可変ゲインアンプ5y,5xが発生す
る電気信号Ls=Sinθ+Vsm,Lc=Cosθ+Vsmを、基準電
位Vsmを基準にデジタルデータに変換するので、コンバ
ータ7の変換データは、Ls=Sinθ,Lc=Cosθを示すも
のとなる。
The A / D converter 7 converts the electric signals Ls = Sinθ + Vsm, Lc = Cosθ + Vsm generated by the variable gain amplifiers 5y and 5x into digital data based on the reference potential Vsm, so that the conversion data of the converter 7 is Ls = Sinθ , Lc = Cos θ.

CPU8は所要のタイングでA/Dコンバータ7に、信号Ls
およびLcのデジタル変換を指示して、Ls=SinθおよびL
c=Cosθのデジタルデータを得る。
The CPU 8 sends the signal Ls to the A / D converter 7 with the required timing.
Ls = Sinθ and Lc
Digital data of c = Cosθ is obtained.

可変ゲインアンプ5y,5xは、入力信号レベル(基準電
位Vsmからの変動電位)に対する出力信号レベル(基準
電位Vsmからの変動電位)の比:以下単にゲインと称す
る)を調整しうるものであり、それぞれ、CPU8が一度ア
ップ(又はダウン)を指示すると、ゲインを最小ステッ
プアップ(ダウン)する。
The variable gain amplifiers 5y and 5x can adjust the ratio of the output signal level (the potential fluctuating from the reference potential Vsm) to the input signal level (the fluctuating potential from the reference potential Vsm). Each time the CPU 8 instructs an up (or down), the gain is stepped up (down) by a minimum.

CPU8には、光源3の発光強度表示用の3桁のキャラク
タディスプレイと、移動量表示用の8桁のキャラクタデ
ィスプレイが備わった表示ユニット9が接続されてい
る。
The CPU 8 is connected to a display unit 9 having a three-digit character display for displaying the light emission intensity of the light source 3 and an eight-digit character display for displaying the movement amount.

CPU8にはまた、表示読取時に、表示値の変化を停止す
るキースイッチHSが接続されている。CPU8にはその他
に、表示値の校正や可変ゲインアンプの基準ゲイン,ゲ
イン上,下限値等の調整等のためのキースイッチ等が接
続されているが、それらの図示は省略した。
The CPU 8 is also connected to a key switch HS for stopping the change of the display value during display reading. In addition, the CPU 8 is connected with key switches and the like for calibrating the display value and adjusting the reference gain, the upper and lower limits of the variable gain amplifier, and the like, but these are not shown.

この実施例では、第3図に示すように、スリット1
の、透光窓の1ピッチ分の移動の間の、Ls=SinθとLc
=Cosθの合成ベルトルの角度0〜360゜(すなわち1ピ
ッチ)の範囲の角度θ(ピッチ端数値)を、10進数の0
〜8192の値で算出し、これらの数値(0〜8192)を0〜
360゜の角度値(ピッチ端数値)に変換して4桁の端数
(少数点以下)表示と4桁のピッチ数(少数点以上)表
示を行なうようにしている。
In this embodiment, as shown in FIG.
Ls = Sinθ and Lc during the movement of the light-transmitting window by one pitch
= Cosθ The angle of the composite belt in the range of 0 to 360 ° (that is, one pitch) (the pitch fraction value) is represented by decimal 0
Calculate with the value of ~ 8192, these values (0-8192)
It is converted to an angle value of 360 ° (pitch fraction value) to display a 4-digit fraction (decimal point or less) and a 4-digit pitch number (decimal point or more).

第5図に、CPU8の、移動量測定動作を示す。電源が投
入されるとCPU8は、その内部レジスタ,カウンタ,タイ
マ等をクリアし、表示ユニット9には、全桁0を表示す
るデータ(表示クリア)を与える(SIN)。次に可変ゲ
インアンプ5y,5xにリセット信号を与え、次いで基準ゲ
インデータGmを与える(AIN)。可変ゲインアンプ5yお
よび5xは、リセット信号に応答して、ゲインを基底値
(最低値)に設定し、次いで基準ゲインデータGmを受け
ると、1最小単位(ステップ)づつゲインを高くして、
高くした回数をカウントアップして、カウント値がGmに
なるとそこでゲインの変更を停止する。
FIG. 5 shows the movement amount measurement operation of the CPU 8. When the power is turned on, the CPU 8 clears its internal registers, counters, timers, and the like, and provides the display unit 9 with data (display clear) for displaying all digits 0 (SIN). Next, a reset signal is given to the variable gain amplifiers 5y and 5x, and then reference gain data Gm is given (AIN). The variable gain amplifiers 5y and 5x set the gain to the base value (lowest value) in response to the reset signal, and then, when receiving the reference gain data Gm, increase the gain by one minimum unit (step).
The number of times of the increase is counted up, and when the count value reaches Gm, the change of the gain is stopped there.

CPU8はその後、キースイッチHSが開であると、「アン
プ5x,5yのゲイン設定」(AGA)および「移動量のの測
定」(MDD)を交互に繰返す。外部よりリセット信号
(=L)が到来すると、これに応答してアップ/ダウン
カウンタ11が自己をクリア(カウント値=0)すると共
に、CPU8はリセット信号(=L)に応答して、その時演
算して保持している端数値Rdを初期値レジスタ(内部レ
ジスタ)Rdiに書込んで(3,4)、表示値レジスタTRの表
示データTRを0にクリアして、これをディスプレイ9に
表示する(4,5)。
Thereafter, when the key switch HS is open, the CPU 8 alternately repeats "gain setting of the amplifiers 5x and 5y" (AGA) and "measurement of the movement amount" (MDD). When a reset signal (= L) arrives from the outside, the up / down counter 11 clears itself (count value = 0) in response to this, and the CPU 8 responds to the reset signal (= L) to calculate at that time. The stored fractional value Rd is written to the initial value register (internal register) Rdi (3, 4), the display data TR of the display value register TR is cleared to 0, and this is displayed on the display 9. (4,5).

「アンプ5のゲイン設定」(AGA)ではLs=Sinθおよ
びLc=Cosθをデジタル変換して読込み、それらの2乗
の和(極座標半径の2乗)Rdsが設定範囲(Rss−A<Rd
s<Rss+B)に入るように、アンプ5のゲインを調整
し、かつ発光強度=ゲイン×√Rdsを算出して、表示ユ
ニット9の、発光強度表示用の3桁キャラクタディスプ
レイに表示する。
In “gain setting of amplifier 5” (AGA), Ls = Sinθ and Lc = Cosθ are converted into digital and read, and the sum of the squares (square of the polar coordinate radius) Rds is set in a setting range (Rss−A <Rd).
The gain of the amplifier 5 is adjusted so that s <Rss + B), and the light emission intensity = gain × √Rds is calculated and displayed on the three-digit character display of the display unit 9 for displaying the light emission intensity.

「移動量の測定」(MDD)では、Ls=SinθおよびLc=
Cosθをデジタル変換して読込み、それらの相関が、第
3図に示す8等分分割の象限No.0〜7のいずれに属する
かを判定して、判定結果に基づいて角度θを算出し、算
出した角度θを少数点以下の数値Rda1に変換してこれよ
り初期値レジスタRdiの内容を減算して得た値を、表示
ユニット9の端数表示用の4桁キャラクタディスプレイ
に表示する。また、端数値Rda1が第2a図および第3図に
示す所定範囲Ar内にあるか否かを判定して、該範囲の外
であると、表示ユニット9の整数値(ピッチ量)表示用
の4桁キャラクタディスプレイにカウンタ11のカウント
値を表示する。範囲Ar内にあるときには、端数値Rda1
推移を検出して、それが0を往方向に横切るとピッチカ
ウントレジスタCSの内容を1大きい値に更新し、往方向
に横切るとレジスタCSの内容を1小さい値に更新し、表
示ユニット9の整数値表示用の4桁キャラクタディスプ
レイにレジスタCSのデータCSを表示する。
In “Measurement of travel distance” (MDD), Ls = Sinθ and Lc =
Digitally converts and reads Cos θ, determines which of the quadrants Nos. 0 to 7 of the eight equal division shown in FIG. 3 belongs to, and calculates an angle θ based on the determination result. The calculated angle θ is converted into a numerical value Rda 1 below the decimal point, and the value obtained by subtracting the content of the initial value register Rdi from this is displayed on the 4-digit character display of the display unit 9 for displaying a fraction. In addition, it is determined whether or not the fractional value Rda 1 is within a predetermined range Ar shown in FIGS. 2A and 3. If the fractional value Rda 1 is out of the range, the integer value (pitch amount) of the display unit 9 is displayed. The count value of the counter 11 is displayed on the 4-digit character display. When it is within the range Ar, the transition of the fractional value Rda 1 is detected, and when it crosses 0 in the forward direction, the content of the pitch count register CS is updated to 1 larger value, and when it crosses in the forward direction, the content of the register CS is updated. Is updated to one smaller value, and the data CS of the register CS is displayed on the 4-digit character display of the display unit 9 for displaying an integer value.

「アンプ5x,5yのゲイン設定」(AGA)および「移動量
の測定」(MDD)を交互に繰返し、測定値が変わると表
示ユニット9の表示が変わり、表示キャラクタがちらつ
く。表示を正確に確認するときには、オペレータがキー
スイッチHSを閉にする。HSが丙の間は、CPU8が、「アン
プ5x,5yのゲイン設定」(AGA)および「移動量の測定」
(MDD)を共に停止し、HSが開になるのを待っているの
で、表示ユニット9は、HSが閉になる直前の測定値を表
示したままとなり、表示値が変化しない。HSが開に戻る
とCPU8は、「アンプ5x,5yのゲイン設定」(AGA)および
「移動量の測定」(MDD)を交互に繰返す。
The "gain setting of the amplifiers 5x and 5y" (AGA) and the "movement amount measurement" (MDD) are alternately repeated, and when the measured value changes, the display of the display unit 9 changes and the display character flickers. When confirming the display correctly, the operator closes the key switch HS. While HS is Hei, CPU8 is "gain setting of amplifier 5x, 5y" (AGA) and "measurement of travel distance"
Since both (MDD) are stopped and waiting for the HS to open, the display unit 9 keeps displaying the measured value immediately before the HS is closed, and the display value does not change. When the HS returns to the open state, the CPU 8 alternately repeats “gain setting of the amplifiers 5x and 5y” (AGA) and “measurement of the movement amount” (MDD).

第6a図に、「アンプ5x,5yのゲイン設定」(AGA)の内
容を示す。「アンプ5x,5yのゲイン設定」(AGA)に進む
とCPU8は、Ls=SinθおよびLc=Cosθをデジタル変換し
て読込み(1,2)、それらの自乗の和Rdsを算出して
(3)、それが設定範囲(Rss−A<Rds<Rss+B)に
あるかをチェックする(4,7)。
FIG. 6a shows the contents of “gain setting of amplifiers 5x and 5y” (AGA). When proceeding to “gain setting of amplifiers 5x and 5y” (AGA), the CPU 8 converts Ls = Sinθ and Lc = Cosθ into digital form and reads them (1, 2), and calculates the sum Rds of their squares (3). It is checked whether it is within the setting range (Rss-A <Rds <Rss + B) (4, 7).

設定範囲の下側に外れていると、現在アンプ5に設定
しているゲインGに1を加えた和がゲイン上限値Gt以上
になるかをチェックして(5)、上限値Gt未満である
と、アンプ5に1にステップアップを指示し、ゲインレ
ジスタ(内部レジスタ)Gの内容を、その時の値に1を
加えた和G+1に更新して(6)、またLs=Sinθおよ
びLc=Cosθをデジタル変換して読込む(1,2)。このよ
うにして順次ゲインGを高くする。ゲインが上限値Gt以
上になるときには、そこでゲインのアップを停止し、そ
の時のLs=SinθおよびLc=Cosθのデジタルデータの2
乗平均にその時のゲインGを乗算して、得た値Mfを表示
ユニット9に与えて、発光強度表示用のキャラクタディ
スプレイにそれを更新表示する(10,11)。そしてゲイ
ンを上限値Gtに設定して(12)、メインルーチン(第5
図)に戻る(MDDに進む)。
If it is outside the lower limit of the setting range, it is checked whether or not the sum of the gain G currently set to the amplifier 5 plus 1 is equal to or more than the gain upper limit Gt (5). And instruct the amplifier 5 to step up to 1 and update the contents of the gain register (internal register) G to the sum G + 1 obtained by adding 1 to the value at that time (6), and Ls = Sinθ and Lc = Cosθ Is converted to digital and read (1, 2). Thus, the gain G is sequentially increased. When the gain becomes equal to or more than the upper limit Gt, the increase of the gain is stopped there, and the digital data of Ls = Sinθ and Lc = Cosθ at that time
The root mean is multiplied by the gain G at that time, the obtained value Mf is given to the display unit 9, and the updated value is displayed on the character display for displaying the light emission intensity (10, 11). Then, the gain is set to the upper limit Gt (12), and the main routine (fifth
Return to figure) (Go to MDD).

和Rdsが設定範囲(Rss−A<Rds<Rss+B)の上側に
外れていると、現在アンプ5に設定しているゲインGよ
り1を減算した値がゲイン下限値Gb以下になるかをチェ
ックして(13)、それが下限値Gbを越えると、アンプ5
に1ステップダウンを指示し、ゲインレジスタGの内容
を、その時の値より1を減算した残値G−1に更新して
(14)、またLs=SinθおよびLc=Cosθをデジタル変換
して読込む(1,2)。このようにして順次ゲインGを低
くする。ゲインが下限値Gb以下になるときには、そこで
ゲインのダウンを停止し、その時のLs=SinθおよびLc
=Cosθのデジタルデータの2乗平均にその時のゲイン
Gを乗算して、得た値Mfを表示ユニット9に与えて、発
光強度表示用のキャラクタディスプレイにそれを更新表
示する(15,16)。そしてゲインを下限値Gbに設定して
(17)、メインルーチン(第5図)に戻る(MDDに進
む)。
If the sum Rds is outside the upper limit of the setting range (Rss-A <Rds <Rss + B), it is checked whether the value obtained by subtracting 1 from the gain G currently set in the amplifier 5 is equal to or less than the gain lower limit Gb. (13), if it exceeds the lower limit Gb, the amplifier 5
, The content of the gain register G is updated to a residual value G−1 obtained by subtracting 1 from the value at that time (14), and Ls = Sinθ and Lc = Cosθ are converted to digital and read. (1,2). In this way, the gain G is sequentially reduced. When the gain becomes equal to or less than the lower limit Gb, the gain stop is stopped there, and then Ls = Sinθ and Lc
Multiply the mean square of the digital data of = Cosθ by the gain G at that time, give the obtained value Mf to the display unit 9, and update and display it on the character display for displaying the light emission intensity (15, 16). Then, the gain is set to the lower limit Gb (17), and the process returns to the main routine (FIG. 5) (proceeds to MDD).

第6b図に、「移動量の測定」(MDD)の内容を示す。
「移動量の測定」(MDD)に進むとCPU8は、Ls=Sinθお
よびLc=Cosθをデジタル変換して読込み(21,22)、こ
れらのデータ(の合成ベクトルの方向)が、360゜を8
等分分割した象限No.0〜7のいずれに属するかを判定し
て、判定した象限No.iを表わすデータDabcを定める(2
3)。象限No.とLs=SinθおよびLc=Cosθの極性ならび
にLs=SinθおよびLc=Cosθの大小関係と、これらに着
目して定める象限データDabcと、の関係を第4図に示
す。
FIG. 6b shows the contents of the “measurement of movement amount” (MDD).
When the process proceeds to “Measurement of movement amount” (MDD), the CPU 8 converts Ls = Sinθ and Lc = Cosθ into digital data and reads them (21, 22).
It is determined which of the equally divided quadrants No. 0 to 7 belongs, and data Dabc representing the determined quadrant No. i is determined (2
3). FIG. 4 shows the relationship between the quadrant No., the polarities of Ls = Sinθ and Lc = Cosθ, the magnitude relation of Ls = Sinθ and Lc = Cosθ, and the quadrant data Dabc determined by focusing on these.

すなわち象限No.の判定(23)では、 No.0:Ls,Lc≧基準値(0)、および |Ls|<|Lc|、 であるとDabcを10進数の0を示すデータ(000)に定
め、 No.1:Ls,Lc≧基準値(0)、および |Ls|≧|Lc|、 であるとDabcを10進数の1を示すデータ(001)に定
め、 No.2:Ls≧基準値(0),Lc≧基準値(0)および |Ls|≧|Lc|、 であるとDabcを10進数の2を示すデータ(010)に定
め、 No.3:Ls≧基準値(0),Lc<基準値(0)および |Ls|<|Lc|、 であるとDabcを10進数の3を示すデータ(011)に定
め、 No.4:Ls,Lc<基準値(0)、および |Ls|<|Lc|、 であるとDabcを10進数の0を示すデータ(100)に定
め、 No.5:Ls,Lc<基準値(0)、および |Ls|≧|Lc|、 であるとDabcを10進数の5を示すデータ(101)に定
め、 No.6:Ls<基準値(0),Lc≧基準値(0)および |Ls|≧|Lc|、 であるとDabcを10進数の6を示すデータ(110)に定
め、 No.7:Ls<基準値(0),Lc≧基準値(0)および |Ls|<|Lc|、 であるとDabcを10進数の7を示すデータ(111)に定め
る。
That is, in the determination of the quadrant No. (23), when No. 0: Ls, Lc ≧ reference value (0), and | Ls | <| Lc |, Dabc is converted to data (000) indicating decimal 0. If No.1: Ls, Lc ≧ reference value (0) and | Ls | ≧ | Lc |, then Dabc is defined as data (001) indicating decimal 1 and No.2: Ls ≧ reference If the value (0), Lc ≧ reference value (0) and | Ls | ≧ | Lc |, then Dabc is defined as data (010) indicating a decimal number 2, and No. 3: Ls ≧ reference value (0) , Lc <reference value (0) and | Ls | <| Lc |, Dabc is defined as data (011) indicating a decimal number 3, and No. 4: Ls, Lc <reference value (0), and If | Ls | <| Lc |, then Dabc is defined as data (100) indicating decimal 0, and No.5: Ls, Lc <reference value (0), and | Ls | ≧ | Lc | If there is, set Dabc to data (101) indicating decimal number 5, and No. 6: Ls <reference value (0), Lc ≧ reference value (0) and | Ls | ≧ | Lc | Data indicating decimal 6 No. 7: Ls <reference value (0), Lc ≧ reference value (0), and | Ls | <| Lc |, where Dabc is a decimal number 7 (111). Set forth in

象限データDabcを定めると、このデータDabcの内容
(検出した象限)に対応して、Dabcが0,3,4又は7であ
るときには、 Tanθt=|Ls|/|Lc| を算出し、Dabcが1,2,5又は6のときには、 Tanθct=|Lc|/|Ls| を算出する(25:250〜257)。
When the quadrant data Dabc is defined, Tanθt = | Ls | / | Lc | is calculated when Dabc is 0, 3, 4, or 7, corresponding to the contents of the data Dabc (detected quadrants). when the 1, 2, 5 or 6, Tanθct = | Lc | / | Ls | is calculated (25:25 0-25 7).

CPU8は次に、算出したTanθt又はTanθctを、角度値
θt又はθctに逆変換する(26)。この内容は、第6c図
を参照して後述する。角度θt又はθctは0゜以上45゜
以下の範囲内である。これらの角度は2バイトデータ
で、10進数で0〜1024の数字で表わす。
Next, the CPU 8 inversely converts the calculated Tanθt or Tanθct into an angle value θt or θct (26). This content will be described later with reference to FIG. 6c. The angle θt or θct is in the range of 0 ° to 45 °. These angles are 2-byte data and are represented by decimal numbers 0 to 1024.

CPU8は次に、得た角度値を、Ls=Sinθ=0の角度
(0)を基準とする角度値(θ)に変換する(27:270
277)。変換した角度値(θ)は、2バイトデータで、1
0進数で0〜8191の数字で表わす。
CPU8 then obtained angle value, Ls = sin [theta = 0 angle (0) angle value relative to the converted into (theta) (27:27 0 ~
27 7 ). The converted angle value (θ) is 2-byte data, 1
It is represented by a number from 0 to 8191 in base 0.

CPU8は次に、変換した角度値(θ)すなわちピッチの
端数値を、小数点以下の値に交換してこれを、今回算出
した端数値を格納する今回値レジスタRda1に書込む(8
1)。
CPU8 then converted angle value (theta) i.e. the end value of the pitch, it was replaced with decimal values, written into the current value register Rda 1 for storing fractional values calculated this time (8
1).

CPU8は次に、先に読込んだLc=Cosθの極性とLs=Sin
θの絶対値より、それらの合成ベクトルの方向(θ)
が、ピッチカウントアップ/ダウンを行なうタイミング
(θ=0゜)の前後の設定小領域Ar(第2a図および第3
図)の内にあるか否かをチェックして(82,83)、該領
域の外にあるときには、ピッチ移動量レジスタRpにカウ
ンタ11のカウントデータを書込み(84)、端数値レジス
タRdに今回算出した端数値Rda1を書込む(85)。そして
Rp+Rd−Rdiを算出して、これを移動量レジスタTRに書
込み(86)、移動量レジスタTRのデータが示す値をキャ
ラクタディスプレイ9に更新表示する。この表示値は、
リセット信号がリセットを指示するLから、測定の指示
するHに立上ってからの、カウンタ11がカウントしたピ
ッチ移動量とCPU8が算出した移動量端数値に基づいて算
出した、可動スリット板1の移動量(整数1がスリット
ピッチに対応)を示す。
The CPU 8 then reads the polarity of Lc = Cosθ and Ls = Sin
From the absolute value of θ, the direction of these composite vectors (θ)
Are set before and after the timing (θ = 0 °) at which pitch count up / down is performed (see FIG. 2A and FIG.
(82, 83), and if it is outside the area, the count data of the counter 11 is written to the pitch movement amount register Rp (84), and the current value is written to the fractional value register Rd. The calculated fractional value Rda 1 is written (85). And
Rp + Rd-Rdi is calculated and written to the movement amount register TR (86), and the value indicated by the data of the movement amount register TR is updated and displayed on the character display 9. This display value is
The movable slit plate 1 calculated based on the pitch movement amount counted by the counter 11 and the movement amount fractional value calculated by the CPU 8 after the reset signal rises from L indicating the reset to H indicating the measurement. (The integer 1 corresponds to the slit pitch).

Lc=CosθとLs=Sinθの合成ベクトルの方向(θ)
が、ピッチカウントアップ/ダウンを行なうタイミング
(θ=0゜)の前後の設定小領域Ar内にあるときにはCP
U8は、前回算出した端数値Rda2と今回算出した端数値Rd
a1が、180゜対応値Rda(4096)よりも大きいか否かをチ
ェックして(88,89)、0゜対応値Rda(0)を横切った
か否かと、横切った場合には方向(第3図で時計方向か
反時計方向か)を検出し(88,89;88,90)、時計方向
(第3図)に横切ったときにはピッチ移動量カウントレ
ジスタCSの内容を1大きい数に更新し(91)、反時計方
向に横切ったときにはピッチ移動量カウントレジスタCS
の内容を1小さい数に更新する(92)。横切りが無いと
きには、このような、レジスタCSのインクレメント又は
ディクレメントは行なわない。
Direction (θ) of the composite vector of Lc = Cosθ and Ls = Sinθ
Is in the set small area Ar before and after the timing (θ = 0 °) at which the pitch count up / down is performed, CP
U8 is the fractional value Rda 2 calculated last time and the fractional value Rd calculated this time.
a 1 is to check whether larger or not than 180 ° corresponding value Rda (4096) (88, 89), and whether across the 0 ° corresponding value Rda (0), if the crossing direction (the 3 is detected (88, 89; 88, 90), and when it crosses in the clockwise direction (FIG. 3), the content of the pitch movement count register CS is updated to one larger. (91), When crossing counterclockwise, pitch movement count register CS
Is updated to one less (92). When there is no crossing, such an increment or decrement of the register CS is not performed.

CPU8は次に、今回値レジスタRda1のデータ(今回算出
した端数値データ)を前回値レジスタRda2に書込み、ピ
ッチ移動量レジスタRpにピッチ移動量カウントレジスタ
CSのデータを書込む(94)。そして、端数値レジスタRd
に今回算出した端数値Rda1を書込む(85)。そしてRp+
Rd−Rdiを算出して、これを移動量レジスタTRに書込み
(86)、移動量レジスタTRのデータが示す値をキャラク
タディスプレイ9に更新表示する。この表示値は、リセ
ット信号がリセットを指示すするLから測定を指示する
Hに立上ってからの、CPU8が算出したピッチ移動量およ
び端数値移動量を示す。
Next, the CPU 8 writes the data of the current value register Rda 1 (fraction data calculated this time) to the previous value register Rda 2 and stores the pitch movement amount register Rp in the pitch movement amount register Rp.
Write CS data (94). And the fractional value register Rd
The fractional value Rda 1 calculated this time is written in (85). And Rp +
Rd-Rdi is calculated and written to the movement amount register TR (86), and the value indicated by the data of the movement amount register TR is updated and displayed on the character display 9. This display value indicates the pitch movement amount and fractional movement amount calculated by the CPU 8 since the reset signal rises from L indicating reset to H indicating measurement.

上述のように、ハードウェア アップ/ダウンカウン
タ11がカウントアップ/ダウンするタイミングを含む小
領域Ar内に、Ls=SinθとLc=Cosθの合成ベクトルの方
向θ(移動量の端数値)があるときには、CPU8が、自ら
が演算した今回の端数値Rda1と前回の端数値Rda2より可
動スリット板1の移動方向に判定し、かつピッチ移動量
カウント/アップダウンを行なう位置(端数値0)を横
切ったかを判断し、往方向(第3図で時計方向)で端数
値0を横切るとピッチ移動量カウントレジスタCSを1カ
ウントアップし、復方向(反時計方向)で端数値0を横
切るとピッチ移動量カウントレジスタCSを1カウントダ
ウンし、CSと端数値Rda1に基づいて移動量TR(=ピッチ
移動量CS+端数値Rda1−端数値の初期値Rdi)を算出し
てこれをディスプレイ9に表示する。
As described above, when the direction θ (fractional value of the moving amount) of the combined vector of Ls = Sinθ and Lc = Cosθ is in the small area Ar including the timing at which the hardware up / down counter 11 counts up / down. The CPU 8 determines the moving direction of the movable slit plate 1 based on the current fractional value Rda 1 calculated by itself and the previous fractional value Rda 2 and determines the position (fractional value 0) at which the pitch movement amount count / up / down is performed. Judgment is made as to whether or not the vehicle has crossed, and if it crosses a fractional value of 0 in the forward direction (clockwise in FIG. 3), the pitch movement count register CS is counted up by one. the movement amount count register CS 1 counts down, the movement amount based on CS and a fractional value Rda 1 TR - displays this on the display 9 calculates the (= pitch movement amount CS + fraction value Rda 1 initial value Rdi fractional value) I do.

小領域Arの外では、ハードウェア アップ/ダウン
カウンタ11およびピッチ移動量カウントレジスタCSのい
ずれもカウントアップ/ダウンしないので、両者のデー
タは完全に合致する。ここではピッチ移動量カウントレ
ジスタCSのカウントアップ/ダウン要否の判定は不要で
あるので、アップ/ダウンカウンタ11のカウントデータ
Rp(ピッチ移動量)とCPU8が演算した端数地Rda1に基づ
いて移動量TR(=Rp+Rda1−Rdi)を算出し、これをデ
ィスプレイ9に表示する。
Hardware up / down outside small area Ar
Since neither the counter 11 nor the pitch movement amount count register CS counts up / down, the data of both counters completely match. Here, since it is not necessary to determine whether the count up / down of the pitch movement amount count register CS is necessary, the count data of the up / down counter 11
Calculates Rp movement amount based on the fractional locations Rda 1 to (pitch shift amount) and CPU8 are computed TR (= Rp + Rda 1 -Rdi ), and displays it on the display 9.

第6c図を参照して、Tanθt又はTanθctの、角度値θ
t又はθctへの逆変換(26)の内容を説明する。CPU8の
内部メモリには、角度〔Aθ:0(0゜)〜1024(45
゜)〕の正接値Tan(Aθ)=R(0)〜R(1024)
が、角度判定用のデータとしてメモリされている。すな
わち、0〜45゜(0〜1024)の範囲の正接関数逆変換テ
ーブルが用意されている。
Referring to FIG. 6c, the angle value θ of Tanθt or Tanθct
The contents of the inverse conversion (26) to t or θct will be described. The angle [Aθ: 0 (0 °) to 1024 (45
Tangent value Tan (Aθ) = R (0) to R (1024)
Are stored as data for angle determination. That is, a tangent function inverse conversion table in the range of 0 to 45 ° (0 to 1024) is prepared.

CPU8は、逆変換(26)に進むとまず、Av=Tanθt又
はTanθctを、角度範囲(0〜1024)の中間値512の正接
値R(512)と比較し(31)、Av<R(512)であると次
にAvを角度256の正接値R(256)と比較する(32)。こ
のようにして、例えばAv=R(4)、すなわちAvが10進
表示で角度4の正接値であったときには、ステップ31−
32−33−34−35−36−37−38−42−43を経て、正接値Av
の角度Aθが角度4である、と決定する(704)。これ
により、10回の比較判定ステップを経由して、角度Aθ
が算出される。
When proceeding to the inverse transformation (26), the CPU 8 first compares Av = Tanθt or Tanθct with the tangent value R (512) of the intermediate value 512 in the angle range (0 to 1024) (31), and then obtains Av <R (512). ), Then Av is compared with the tangent value R (256) of the angle 256 (32). Thus, for example, when Av = R (4), that is, when Av is the tangent of angle 4 in decimal notation, step 31-
After passing through 32-33-34-35-36-37-38-42-43, the tangent value Av
Angle Aθ is an angle 4, and determines (70 4). As a result, the angle Aθ is obtained through ten comparison determination steps.
Is calculated.

ピッチ移動量のカウントアップ/ダウンは、上述のよ
うに、小領域Arのみで行なわれ、該領域Arを外れる広領
域では、カウントアップ/ダウンは行なわない。しか
も、情領域Ar内で一ピッチの切換わりがあるときにはCP
U8がピッチ移動量をカウントアップ/ダウンするので、
測定装置の用途によっては、ハードウェアカウンタ11を
省略することもできる。
As described above, the pitch movement amount is counted up / down only in the small region Ar, and is not counted up / down in a wide region outside the region Ar. In addition, when there is one pitch change in the information area Ar, CP
As U8 counts up / down the pitch movement amount,
Depending on the use of the measuring device, the hardware counter 11 can be omitted.

第7a図に、本発明の第2実施例の構成を示す。この実
施例では、ハードウェアカウンタ11を省略し、かつ比較
器6および方向検出器10も省略している。可変ゲインア
ンプ5yは、増幅した受光信号Ls=Sinθ+Vsmyと、その
基準電位(受光信号の変動範囲の中間値)Vsmyを、A/D
コンバータ7の第1の、アナログ/デジタル変換入力端
と基準電位入力端に与え、可変ゲインアンプ5xは、増幅
した受光信号Lc=Cosθ+Vsmxと、その基準電位(受光
信号の変動範囲の中間値)Vsmxを、A/Dコンバータ7の
第2の、アナログ/デジタル変換入力端と基準電圧入力
端に与える。
FIG. 7a shows the configuration of the second embodiment of the present invention. In this embodiment, the hardware counter 11 is omitted, and the comparator 6 and the direction detector 10 are also omitted. The variable gain amplifier 5y converts the amplified light receiving signal Ls = Sinθ + Vsmy and its reference potential (intermediate value of the fluctuation range of the light receiving signal) Vsmy into A / D
The variable gain amplifier 5x provides the first analog / digital conversion input terminal and the reference potential input terminal of the converter 7 with the amplified light receiving signal Lc = Cos θ + Vsmx and the reference potential (intermediate value of the fluctuation range of the light receiving signal) Vsmx To the second analog / digital conversion input terminal and the reference voltage input terminal of the A / D converter 7.

A/Dコンバータ7は、基準電位Vsmy,Vsmxに対する信号
電位Ls,Lcのレベルをデジタルデータに変換する。
The A / D converter 7 converts the levels of the signal potentials Ls and Lc with respect to the reference potentials Vsmy and Vsmx into digital data.

CPU8には大略で、上述の第1実施例(第1図)と同様
な移動量検出プログラムが組込まれている。この第2実
施例の移動量検出プログラムの、第1実施例のものと変
わっている箇所のみを、第7b図に示す。これは、第6b図
のサブルーチン81〜ステップ94に相当するものである。
その他の箇所は、第1実施例のものと同じである。第7b
図を参照すると、この第2実施例ではCPU8は、小領域Ar
の外であることを判定すると、ピッチ移動量レジスタCS
のデータを、レジスタRpに書込む(84)。すなわちアッ
プダウンカウンタ11が無いので、ピッチ移動量レジスタ
CSのデータをそのままレジスタRpに書込む。小領域Arの
範囲内のときにもピッチ移動量レジスタCSのデータをレ
ジスタRpに書込むので、この第2実施例では、LsとLcの
合成ベクトルの方向θの全範囲で、ピッチ移動量(整数
値)は、CPU8がカウントした値を用いる。しかし、ピッ
チ移動量(整数値)のカウントアップ/ダウンは、小範
囲Ar内でのみ行なえばよいので、カウントアップ/ダウ
ンの要否の判定(88〜90)は、該小範囲Ar内でのみ行な
い、Arを外れる範囲では実行しない。
In the CPU 8, a movement amount detection program similar to that of the above-described first embodiment (FIG. 1) is incorporated. FIG. 7b shows only the portions of the movement amount detection program of the second embodiment that are different from those of the first embodiment. This corresponds to subroutine 81 to step 94 in FIG. 6b.
Other parts are the same as those of the first embodiment. 7b
Referring to the figure, in this second embodiment, the CPU 8
Is determined to be outside the range, the pitch movement amount register CS
Is written into the register Rp (84). That is, since there is no up / down counter 11, the pitch movement amount register
Write the CS data directly to the register Rp. Since the data of the pitch shift register CS is written into the register Rp even when the pitch shift amount is within the range of the small area Ar, in the second embodiment, the pitch shift amount (in the entire range of the direction θ of the combined vector of Ls and Lc). As the integer, a value counted by the CPU 8 is used. However, the count-up / down of the pitch movement amount (integer value) may be performed only in the small range Ar, so that the necessity of the count-up / down (88 to 90) is determined only in the small range Ar. Do not execute within the range outside Ar.

〔発明の効果〕〔The invention's effect〕

以上の通り本発明の1つの態様では、三角関数値算出
手段(8)が、第1および第2のデジタルデータの比を
算出し、この比を逆変換手段(8)が、第1および第2
の電気信号のレベルの相関により表わされる角度(θ)
対応のデータ(Rd)に変換するので、電気信号発生器
(1〜4x,4y)が発生する第1および第2の電気信号の
レベルが共に同方向に変動しても該比は実質上変動せ
ず、データ(Rd)の変動がない。したがって端数値(R
d)の測定が正確になる。
As described above, in one aspect of the present invention, the trigonometric function value calculation means (8) calculates the ratio between the first and second digital data, and the inverse conversion means (8) calculates the ratio between the first and second digital data. 2
(Θ) represented by the correlation of the levels of the electrical signals
Since the data is converted into the corresponding data (Rd), even if the levels of the first and second electric signals generated by the electric signal generators (1 to 4x, 4y) both change in the same direction, the ratio substantially fluctuates. No change in data (Rd). Therefore, the fractional value (R
d) The measurement becomes accurate.

第1および第2の電気信号のレベルの変動が大きい
と、A/D変換の分解能によりデジタルデータへの変換に
おける誤差が大きくなり、これが算出比にも影響を及ぼ
すが、本発明では、信号レベル調整手段(8)が、第1
および第2のデジタルデータの自乗平均が設定値になる
ように、第1および第2の増幅手段(5x,5y)の増幅率
を調整するので、A/D変換の分解能によるデジタルデー
タへの変換における誤差の変動が小さく、安定した高い
精度で比が算出され、端数値(Rd)の測定が正確に行な
われる。
If the level of the first and second electric signals fluctuates greatly, an error in the conversion into digital data increases due to the resolution of the A / D conversion, which also affects the calculation ratio. Adjusting means (8)
Since the gains of the first and second amplifying means (5x, 5y) are adjusted so that the root mean square of the second digital data becomes a set value, conversion into digital data by A / D conversion resolution is performed. Is small, the ratio is calculated with stable and high accuracy, and the fractional value (Rd) is accurately measured.

加えて、カウント手段(8)が、角度対応のデータ
(Rd)の時系列推移より、移動量測定対象の移動の方向
(時計方向/反時計方向)と、所定角度(0゜)対応値
(0)通過を検出し、所定角度対応値通過が一方の方向
(時計方向)のとき、ピッチ移動量情報(CS)を1ピッ
チ相当値大きい値に更新し、他方の方向(反時計方向)
のときは1ピッチ相当値小さい値に更新するので、角度
対応のデータ(Rd)の切換わりとピッチ移動量情報(C
S)の切換わりが同期し、このピッチ移動量情報(CS)
の切換わり時点に測定値(CS+Rd)が1ピッチ分もの瞬
間的な変化を生ずることはなく、移動量測定対象の連続
的な移動に対して測定値が連続的に推移する。
In addition, the counting means (8) determines the direction (clockwise / counterclockwise) of the movement of the movement amount measurement target and the value corresponding to the predetermined angle (0 °) based on the time-series transition of the angle-corresponding data (Rd). 0) The passage is detected, and when the passage of the value corresponding to the predetermined angle is in one direction (clockwise), the pitch movement amount information (CS) is updated to a value larger by one pitch, and the other direction (counterclockwise).
In the case of, since the value is updated to a value smaller by one pitch, the switching of the angle-corresponding data (Rd) and the pitch movement amount information (C
Switching of S) is synchronized, and this pitch movement information (CS)
The measured value (CS + Rd) does not cause an instantaneous change of one pitch at the time of switching, and the measured value continuously changes with the continuous movement of the movement amount measurement object.

また、本発明のもう1つの太陽は、アップ/ダウンカ
ウンタ(11)がカウントアップ/ダウンするタイミング
を含むその直近領域(Ar)外の広い範囲では、移動量情
報演算手段(8)が、アップ/ダウンカウンタ(11)の
カウントデータ(Rp)と角度対応のデータ(Rd)より、
ピッチ移動量(Rp)および1ピッチ内移動量(Rd)を含
む情報(TR)を生成するので、角度対応のデータ(Rd)
に基づいたピッチ移動量のカウントアップ/ダウン要否
の判定等、ピッチ移動量演算処理が不要であるので、ま
たアップ/ダウンカウンタ(11)によるカウントは高速
であるので、実移動量に対する移動量測定値の追従精度
が高い。アップ/ダウンカウンタ(11)がカウントアッ
プ/ダウンするタイミングを含むその直近領域(Ar)で
は、カウント手段(8)が角度対応のデータ(Rd)の推
移より、移動量測定対象の移動の方向と、所定角度(0
゜)対応値(0)通過を検出し、所定角度対応値通過が
一方の方向(時計方向)のとき、ピッチ移動量情報(C
S)を1ピッチ相当値大きい値に更新し、他方の方向
(反時計方向)のときは1ピッチ相当値小さい値に更新
して、移動量情報演算手段(8)が、ピッチ移動量情報
(CS)と角度対応のデータ(Rd)より、ピッチ移動量
(CS)および1ピッチ内移動量(Rd)を含む情報(TR)
を生成するので、ピッチ移動量情報(CS)の切換わりと
1ピッチ内移動量(Rd)の変化整合(連動)し、両者間
に大略1ピッチ分の測定誤差を生ずることがなくなる。
カウント手段(8)の上述のピッチ移動量情報(CS)の
演算には比較的に時間を要するが、これを実行する領域
(Ar)が極く狭い範囲であるので、測定装置の時系列平
均の追従性は格別に大きく低下することがない。
In the other sun of the present invention, in a wide range outside the immediate area (Ar) including the timing at which the up / down counter (11) counts up / down, the movement amount information calculating means (8) increases the sun. / From the count data (Rp) of the down counter (11) and the data corresponding to the angle (Rd),
Since information (TR) including the pitch movement amount (Rp) and the movement amount within one pitch (Rd) is generated, data corresponding to the angle (Rd)
Since the pitch movement amount calculation processing such as the determination of the necessity of counting up / down of the pitch movement amount based on the above is unnecessary, and the counting by the up / down counter (11) is fast, the movement amount with respect to the actual movement amount is obtained. High tracking accuracy of measured values. In the immediate area (Ar) including the timing at which the up / down counter (11) counts up / down, the counting means (8) determines the direction of movement of the movement amount measurement target from the transition of the data (Rd) corresponding to the angle. , A predetermined angle (0
゜) The passage of the corresponding value (0) is detected, and when the passage of the predetermined angle corresponding value is in one direction (clockwise), pitch movement amount information (C
S) is updated to a value larger by one pitch, and in the other direction (counterclockwise), it is updated to a smaller value by one pitch. Information (TR) including the pitch movement amount (CS) and the movement amount within one pitch (Rd) from the data (Rd) corresponding to the angle (CS) and the angle.
Is generated, the switching of the pitch movement amount information (CS) and the change (coordination) of the movement amount within one pitch (Rd) are coordinated, and a measurement error of approximately one pitch does not occur between the two.
The calculation of the above-mentioned pitch movement amount information (CS) by the counting means (8) requires a relatively long time, but since the region (Ar) in which this is performed is a very narrow range, the time series average The follow-up performance does not significantly decrease.

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

第1図は、本発明の第1実施例を示すブロック図であ
る。 第2a図は、第1図に示す可変ゲインアンプ5yおよび5xが
出力する信号のレベルを示すタイムチャートである。 第2b図は、第1図に示すアンプ5yおよび5xが出力する信
号の変動分のみの絶対値レベルを示すタイムチャートで
ある。 第3図は、可変ゲインアンプ5yおよび5xの出力信号Lsお
よびLcの変動分の合成ベクトルの方向θと、方向θの全
範囲0〜360゜を8等分分割した象限区分とを示す平面
図である。 第4図は、方向θが属する象限と、第1図に示すアンプ
5y,5xの信号レベルLs,Lcの相関との関係、ならびに、各
象限で第1図に示すCPU8が生成するデータを示す平面図
である。 第5図,第6a図,第6b図および第6c図は、第1図に示す
CPU8の演算処理の内容を示すフローチャートである。 第7a図は、本発明の第2実施例を示すブロック図であ
る。 第7b図は、第7a図に示すCPU8の演算処理の内容を示すフ
ローチャートであり、第1図に示すCPU8の演算処理と異
った部分のみを示す。 1:可動スリット板、2:固定スリット板 3:光源、4x,4y:フォトセンサ(1〜4x,4y:電気信号発生
器) 5x,5y:可変ゲインアンプ(第1および第2の増幅手段) 6:比較器(2値化手段)、7:A/Dコンバータ(A/D変換手
段) 8:マイクロプロセッサ(信号レベル調整手段,三角関数
値算出手段,逆変換手段,カウント手段,移動量情報演
算手段) 9:表示ユニット、10:方向検出器(方向検出手段) 11:アップ/ダウンカウンタ(アップ/ダウンカウン
タ) HS:キースイッチ
FIG. 1 is a block diagram showing a first embodiment of the present invention. FIG. 2a is a time chart showing the levels of the signals output by the variable gain amplifiers 5y and 5x shown in FIG. FIG. 2b is a time chart showing the absolute value level of only the variation of the signals output by the amplifiers 5y and 5x shown in FIG. FIG. 3 is a plan view showing the combined vector direction θ of the variation of the output signals Ls and Lc of the variable gain amplifiers 5y and 5x, and quadrant divisions obtained by dividing the entire range of the direction θ from 0 to 360 ° into eight equal parts. It is. FIG. 4 shows the quadrant to which the direction θ belongs and the amplifier shown in FIG.
FIG. 3 is a plan view showing a relationship between signal levels Ls and Lc of 5y and 5x and correlations, and data generated by the CPU 8 shown in FIG. 1 in each quadrant. FIG. 5, FIG. 6a, FIG. 6b and FIG. 6c are shown in FIG.
6 is a flowchart showing the contents of a calculation process of the CPU 8. FIG. 7a is a block diagram showing a second embodiment of the present invention. FIG. 7b is a flowchart showing the contents of the arithmetic processing of the CPU 8 shown in FIG. 7a, and shows only the parts different from the arithmetic processing of the CPU 8 shown in FIG. 1: movable slit plate, 2: fixed slit plate 3: light source, 4x, 4y: photo sensor (1 to 4x, 4y: electric signal generator) 5x, 5y: variable gain amplifier (first and second amplification means) 6: Comparator (binarization means), 7: A / D converter (A / D conversion means) 8: Microprocessor (signal level adjustment means, trigonometric function value calculation means, inverse conversion means, counting means, movement amount information Calculation means) 9: Display unit, 10: Direction detector (direction detection means) 11: Up / down counter (up / down counter) HS: Key switch

───────────────────────────────────────────────────── フロントページの続き (72)発明者 加藤 和郎 神奈川県横浜市緑区鴨志田79―2 シス テム・ユニークス株式会社内 (56)参考文献 特開 昭55−54406(JP,A) 特開 昭55−27962(JP,A) 特公 昭62−57930(JP,B2) ──────────────────────────────────────────────────続 き Continuation of the front page (72) Inventor Kazuo Kato 79-2 Kamoshida, Midori-ku, Yokohama-shi, Kanagawa Prefecture, within System Uniques Co., Ltd. (56) References JP-A-55-54406 (JP, A) Showa 55-27962 (JP, A) Japanese Patent Publication Sho 62-57930 (JP, B2)

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】移動量測定対象に結合され、その所定単位
の直線動,回転動等の移動に対して一周期の、2組の互
に位相が90゜ずれた第1および第2の電気信号を発生す
る電気信号発生器; それぞれが第1および第2の電気信号を増幅する第1お
よび第2の増幅手段; 第1および第2の増幅手段が増幅した信号のレベルをそ
れぞれ第1および第2のデジタルデータに変換するA/D
変換手段; 第1および第2のデジタルデータの自乗平均が設定値に
なるように、第1および第2の増幅手段の増幅率を調整
する信号レベル調整手段; 第1および第2のデジタルデータの比を算出する三角関
数値算出手段; 三角関数値算出手段が算出した比を、第1および第2の
電気信号のレベルの相関により表わされる角度対応のデ
ータに変換する逆変換手段; 前記角度対応のデータの時系列推移より、前記移動量測
定対象の移動の方向と、所定角度対応値通過を検出し、
所定角度対応値通過の時点において、上記検出した移動
方向が一方の方向のとき、ピッチ移動量情報を1ピッチ
相当値大きい値に更新し、他方の方向のときは1ピッチ
相当値小さい値に更新するカウント手段;および、 前記ピッチ移動量情報と角度対応のデータより、ピッチ
移動量および1ピッチ内移動量を含む情報を生成する移
動量情報演算手段; を備える移動量測定装置。
1. A first and a second electric device, which are coupled to a movement amount measurement object and have one cycle with respect to a movement such as a linear movement or a rotation movement of a predetermined unit, and which are out of phase with each other by two sets of 90 °. An electric signal generator for generating a signal; first and second amplifying means for amplifying the first and second electric signals, respectively; first and second amplifying means for increasing the level of the signal amplified by the first and second amplifying means, respectively; A / D to convert to second digital data
Conversion means; signal level adjusting means for adjusting the gains of the first and second amplifying means so that the root mean square of the first and second digital data becomes a set value; A trigonometric function value calculating means for calculating the ratio; an inverse converting means for converting the ratio calculated by the trigonometric function value calculating means into angle-corresponding data represented by a correlation between the levels of the first and second electric signals; From the time-series transition of the data, the direction of movement of the movement amount measurement target and the passage of a predetermined angle corresponding value are detected,
At the time of passing the predetermined angle corresponding value, when the detected moving direction is one direction, the pitch moving amount information is updated to a value larger by one pitch value, and when the detected moving direction is the other direction, the pitch moving amount information is updated to a value smaller by one pitch value. A movement amount information calculating means for generating information including a pitch movement amount and a movement amount within one pitch from the pitch movement amount information and data corresponding to an angle;
【請求項2】移動量測定対象に結合され、その所定単位
の直線動,回転動等の移動に対して一周期の、2組の互
に位相が90゜ずれた第1および第2の電気信号を発生す
る電気信号発生器; 第1および第2の電気信号を第1および第2のパルス信
号に2値化する2値化手段; 第1および第2のパルス信号より前記移動量測定対象の
移動の方向を表わす方向信号を発生する方向検出手段; 方向信号が一方の方向のとき、第1および第2のパルス
信号の一方をカウントアップし、他方のときカウントダ
ウンするアップ/ダウンカウンタ; それぞれ第1および第2の電気信号を増幅する第1およ
び第2の増幅手段; 第1および第2の増幅手段が増幅した信号のレベルをそ
れぞれ第1および第2のデジタルデータに変換するA/D
変換手段; 第1および第2のデジタルデータの比を算出する三角関
数値算出手段; 三角関数値算出手段が算出した比を角度対応のデータに
変換する逆変換手段; 前記アップ/ダウンカウンタがカウントアップ/ダウン
するタイミングを含むその直近領域で、前記角度対応の
データの時系列推移より、前記移動量測定対象の移動の
方向と、所定角度対応値通過を検出し、所定角度対応値
通過の時点において、上記検出した移動方向が一方の方
向のとき、ピッチ移動量情報を1ピッチ相当値大きい値
に更新し、地方の方向のときは1ピッチ相当値小さい値
に更新するカウント手段;および、 前記直近領域内では、前記ピッチ移動量情報と前記角度
対応のデータより、ピッチ移動量および1ピッチ内移動
量を含む情報を生成し、直近領域外では、アップ/ダウ
ンカウンタのカウントデータと前記角度対応のデータよ
り、ピッチ移動量および1ピッチ内移動量を含む情報を
生成する、移動量情報演算手段; を備える移動量測定装置。
2. A method according to claim 1, wherein said first and second electric units are coupled to a movement amount measurement object and have a period of 90.degree. With respect to a predetermined unit of movement such as linear movement and rotation movement. An electric signal generator for generating a signal; binarizing means for binarizing the first and second electric signals into first and second pulse signals; the movement amount measurement object from the first and second pulse signals Direction detecting means for generating a direction signal representing the direction of movement of the first and second pulse signals when the direction signal is in one direction; and an up / down counter for counting down when the direction signal is the other. First and second amplifying means for amplifying the first and second electric signals; A / D for converting the level of the signal amplified by the first and second amplifying means into first and second digital data, respectively;
Conversion means; trigonometric function value calculation means for calculating a ratio of the first and second digital data; inverse conversion means for converting the ratio calculated by the trigonometric function value calculation means into data corresponding to an angle; the up / down counter counts In the immediate area including the timing of up / down, the direction of movement of the movement amount measurement object and the passage of a predetermined angle corresponding value are detected from the time series transition of the angle corresponding data, and the time point of passing the predetermined angle corresponding value is detected. A counting means for updating the pitch movement amount information to a value larger by one pitch when the detected movement direction is one direction, and updating the pitch movement amount information to a value smaller by one pitch when the direction is local; In the immediate region, information including the pitch movement amount and the movement amount within one pitch is generated from the pitch movement amount information and the data corresponding to the angle. A movement amount information calculating means for generating information including a pitch movement amount and a movement amount within one pitch from count data of an up / down counter and the data corresponding to the angle;
【請求項3】三角関数値算出手段は、第1および第2の
デジタルデータを比較して、それらによって表わされる
角度が、 No.0: 0゜以上 45゜未満, No.1: 45゜以上 90゜未満, No.2: 90゜以上135゜未満, No.3:135゜以上180゜未満, No.4:180゜以上225゜未満, No.5:225゜以上270゜未満, No.6:270゜以上315゜未満, No.7:315゜以上360゜未満、 のいずれかを検出し、No.3,4又は7と検出したときには
正接値に相当する、第1および第2のデジタルデータの
絶対値の比を算出し、No.1,2,5又は6と検出したときに
は正接値の逆数に相当する、第1および第2のデジタル
データの絶対値の比を算出する、前記特許請求の範囲第
(1)項又は第(2)項記載の、移動量測定装置。
3. The trigonometric function value calculating means compares the first and second digital data and determines that the angle represented by the data is No. 0: 0 ° or more and less than 45 °, No. 1: 45 ° or more. No. 2: 90 to 135 mm, No. 3: 135 to 180 mm, No. 4: 180 to 225 mm, No. 5: 225 to 270 mm, No. 6: 270 mm or more and less than 315 mm, No. 7: 315 mm or more and less than 360 mm, and when No. 3, 4 or 7 is detected, the first and second values correspond to the tangent values. Calculating the ratio of the absolute values of the digital data and calculating the ratio of the absolute values of the first and second digital data corresponding to the reciprocal of the tangent value when No. 1, 2, 5, or 6 is detected; The moving amount measuring device according to claim 1 or 2.
JP1208562A 1989-08-11 1989-08-11 Moving distance measuring device Expired - Lifetime JP2581804B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1208562A JP2581804B2 (en) 1989-08-11 1989-08-11 Moving distance measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1208562A JP2581804B2 (en) 1989-08-11 1989-08-11 Moving distance measuring device

Publications (2)

Publication Number Publication Date
JPH0372218A JPH0372218A (en) 1991-03-27
JP2581804B2 true JP2581804B2 (en) 1997-02-12

Family

ID=16558240

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1208562A Expired - Lifetime JP2581804B2 (en) 1989-08-11 1989-08-11 Moving distance measuring device

Country Status (1)

Country Link
JP (1) JP2581804B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008241345A (en) 2007-03-26 2008-10-09 Toshiba Mach Co Ltd Phase detector and position detector
JP5065410B2 (en) * 2007-11-19 2012-10-31 アルプス電気株式会社 Angle detector

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5527962A (en) * 1978-08-19 1980-02-28 Fujitsu Ltd Rotary encoder
IT1160621B (en) * 1978-08-31 1987-03-11 Olivetti Controllo Numerico EQUIPMENT FOR NUMERICAL MEASUREMENT OF POSITIONS
JPS6257930A (en) * 1985-09-04 1987-03-13 Kawasaki Steel Corp Production of pitch-based carbon fiber

Also Published As

Publication number Publication date
JPH0372218A (en) 1991-03-27

Similar Documents

Publication Publication Date Title
US4429267A (en) Digital positioning systems having high accuracy
US4518859A (en) Angle measuring device with line sensor
US4794251A (en) Apparatus for measuring lengths or angles
JPS62162968A (en) speed detection device
JP2572026B2 (en) Speed signal generator
JP2746178B2 (en) Measurement device interpolation circuit
JP2581804B2 (en) Moving distance measuring device
CN100498234C (en) Sensor signal processor
JP2003121135A (en) Reader for linear scale
JPS61189415A (en) Scale for measuring absolute position
WO1990004754A1 (en) System for processing position signals
JP4748559B2 (en) Absolute encoder
JP2000121316A (en) Dimension measuring apparatus using optical scale
JPS63122915A (en) Absolute encoder
JPS6057011B2 (en) Internal massage device in displacement measuring device
JPS6257930B2 (en)
JP2764722B2 (en) Interpolation method of encoder read signal
JP2742828B2 (en) Origin circuit
JPS6197520A (en) Displacement detector
JPH0529045B2 (en)
JPH0136565B2 (en)
JPH04232814A (en) High-resolution absolute value encoder
JP2795443B2 (en) Processing method of position detection signal
JPS5914165B2 (en) Digital length measuring device signal detection circuit
JP2002286506A (en) Instrument for measuring dimension using optical scale