JPH02251720A - Interpolating method of encoder - Google Patents

Interpolating method of encoder

Info

Publication number
JPH02251720A
JPH02251720A JP7195289A JP7195289A JPH02251720A JP H02251720 A JPH02251720 A JP H02251720A JP 7195289 A JP7195289 A JP 7195289A JP 7195289 A JP7195289 A JP 7195289A JP H02251720 A JPH02251720 A JP H02251720A
Authority
JP
Japan
Prior art keywords
phase
value
signal
signals
radius
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
JP7195289A
Other languages
Japanese (ja)
Inventor
Mitsuyuki Taniguchi
満幸 谷口
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP7195289A priority Critical patent/JPH02251720A/en
Publication of JPH02251720A publication Critical patent/JPH02251720A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To make it possible to obtain an accurate interpolating signal by obtaining the offset values, the amplitudes and the phase differences of the signals in a phase A and a phase B outputted from encoders, and obtaining the two signals whose amplitudes are equal and phase differences are deviated by 90 degrees. CONSTITUTION:Two signals in a phase A and a phase B outputted from encoders are converted into digital signals in A/D converters 12a and 12b. The signals are inputted in an operator 14 (constituted of microprocessors and the like). The operator 14 obtains the amplitudes and the offset values in the respective phases based on the maximum values and the minimum values in the respective phases. The signal data of the phase A and the phase B wherein there is no offset and the amplitudes are equal are obtained. The phase difference is obtained based on the signal data in the phase A and the phase B, and the phase difference is corrected. The signal data in the phase A and the phase B wherein the phase is deviated by 90 degrees are computed. An interpolating signal theta based on the computed signal data in the phase A and the phase B is formed.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、モータの回転位置や工作機械のテーブルの移
動位置を検出するエンコーダに関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an encoder for detecting the rotational position of a motor or the moving position of a table of a machine tool.

従来の技術 モータにおけるロータの回転位置等の回転位置を検出す
るエンコーダには、磁気感応素子を利用して回転位置を
検出する磁気エンコーダや光電素子を利用したホトエン
コーダ等が知られている。
BACKGROUND ART As encoders for detecting rotational positions such as the rotational position of a rotor in a motor, there are known magnetic encoders that detect rotational positions using magnetically sensitive elements, photoencoders that use photoelectric elements, and the like.

これらエンコーダから、90度位相のずれたA、相。From these encoders, the A, phase is 90 degrees out of phase.

B相の正弦波を得て、このA相、B相の正弦波信号によ
って回転位置1回転方向を求めている。さらに、このA
相、8相の正弦波信号から、内挿信号をも作り出してい
る。
A B-phase sine wave is obtained, and the rotation position and direction of one rotation are determined from the A-phase and B-phase sine wave signals. Furthermore, this A
An interpolated signal is also created from the phase and eight-phase sine wave signals.

エンコーダからの出力は、理想的には90度位相のずれ
たsin波、 COS波が望ましいが、実際にはA相、
8相は次の第(1)、第(2)式のように、振幅、オフ
セット、位相差が理想的ではない。
Ideally, the output from the encoder is a sine wave or a COS wave with a phase shift of 90 degrees, but in reality it is a phase A,
As shown in the following equations (1) and (2), the amplitude, offset, and phase difference of the eight phases are not ideal.

A−KASinθ+OA     ・・・・・・(1)
B−K  5in(θ+a ) +O−・−” (2)
B         B なお、K  、K  はA相、B相の振幅、OA。
A-KASinθ+OA...(1)
B-K 5in (θ+a) +O-・-” (2)
B B Note that K and K are the amplitudes of A phase and B phase, and OA.

八    B OBはA相、B相のオフセット値く直流成分)、αは位
相差(理想状態ではα−90度)である。
8B OB is the offset value of the A phase and B phase (DC component), and α is the phase difference (α-90 degrees in the ideal state).

そこで、従来は、エンコーダの検出素子またはアナログ
増幅器の部分でボリューム等により振幅KA、K 及び
オフセット0.0.が同一とな8A るように調整し、位相差αが90度となるように調整し
ている。そして、理想的なA相−K sinθ。
Therefore, conventionally, the amplitudes KA and K and the offset 0.0. The phase difference α is adjusted to be 90 degrees. And ideal A phase-K sin θ.

B相−K CO5θの信号が得られているものとして、
次の第(3)式の演算によって内挿信号θを求めていた
Assuming that the B phase-K CO5θ signal is obtained,
The interpolated signal θ was obtained by calculating the following equation (3).

B−tan−1(K S In6 )    ・−・−
(3)K CO3θ 発明が解決しようとする課題 ポリ1−ム調整等により、エンコーダからのA相、B相
の出力信号の振幅に、に、、オフセラト値OA、OBを
同一にし、位相差αを正確に90度にするように調整す
ることは非常に難しく、時間と労力のいる作業であり、
また、これらのパラメータを調整し、理想的なK si
nθ、Kcosθの信号に追い込むことは非常に困難で
ある。また、エンコーダ自体も温度変化や経年変化を起
こし、これら温度変化や経年変化に対応させ、常に理想
的な信号を得るようにすることは非常に難しい。
B-tan-1 (K S In6 ) ・−・−
(3) K CO3θ Problems to be Solved by the Invention By polygon adjustment, etc., the amplitudes of the A-phase and B-phase output signals from the encoder are made the same as the off-cert values OA and OB, and the phase difference α Adjusting the angle to exactly 90 degrees is extremely difficult and requires time and effort.
Also, by adjusting these parameters, the ideal K si
It is very difficult to drive the signals to nθ and Kcosθ. Furthermore, the encoder itself undergoes temperature changes and changes over time, and it is extremely difficult to adapt to these temperature changes and changes over time and always obtain ideal signals.

そこで、本発明の目的は、振幅、オフセット。Therefore, the object of the present invention is to improve the amplitude and offset.

位相差をプロセッサによって自動調整し、正確な内挿信
号を得ることができるようにしたエンコーダ内挿方式を
提供することにある。
An object of the present invention is to provide an encoder interpolation method in which a phase difference is automatically adjusted by a processor and an accurate interpolation signal can be obtained.

課題を解決するための手段 本発明は、エンコーダから出力されるA相、B相の2つ
の信号をデジタル信号に変換してプロセッサに入力し、
プロセッサは夫々の相の最大値。
Means for Solving the Problems The present invention converts two signals, A phase and B phase output from an encoder, into digital signals and inputs them to a processor,
The processor is the maximum value of each phase.

最小値より夫々の相の振幅、オフセット値を求め、求め
られたオフセット値と振幅よりオフセットがない振幅同
一のA相、B相の信号データを求め、該A相、B相の信
号データより位相差を求め、位相差補正を行い、90度
位相のずれたA相、B相の信号データを算出し、算出さ
れたA相、B相の信号データより内挿信号を作成するこ
とによって上記課題を解決した。
Find the amplitude and offset value of each phase from the minimum value, find the A phase and B phase signal data with the same amplitude and no offset from the found offset value and amplitude, and calculate the phase from the A phase and B phase signal data. The above problem can be solved by determining the phase difference, performing phase difference correction, calculating signal data of phase A and phase B with a 90 degree phase shift, and creating an interpolated signal from the calculated signal data of phase A and phase B. solved.

作  用 エンコーダからの2つの信号を第(1)、第(2)式で
示されるようなA相、B相の信号とする。
Let the two signals from the operational encoder be A-phase and B-phase signals as shown by equations (1) and (2).

A−KAsinθ+OA     −・−−−−(1)
B−KBsin(θ+a ) + OB   −−(2
)そして、エンコーダの回転盤が回転し、上記第(1)
、第(2)式で示されるようなA相、B相の信号が出力
され、これがデジタル信号に変換されプロセッサに入力
されると、プロセッサは、A相。
A-KAsinθ+OA −・−−−(1)
B−KBsin(θ+a)+OB−−(2
) Then, the rotary disk of the encoder rotates, and the above (1)
, A-phase and B-phase signals as shown in equation (2) are output, and when these are converted into digital signals and input to the processor, the processor receives the A-phase signals.

B相の信号の最大値AlaX 、 Bmax 、最小値
Amtn 、 31+nを求める。この最大値、最小値
が求まれば、A相、B相の信号が正弦波であることから
、次の第(4)〜第(1)式によって各相のオフセット
値0 .0  、振幅に、に、が求まる。
The maximum values AlaX, Bmax and the minimum values Amtn, 31+n of the B-phase signal are determined. Once these maximum and minimum values are found, since the A-phase and B-phase signals are sine waves, the offset value of each phase is 0. 0, the amplitude is found.

AB         A O−<Aviax  +Am1n)/2    −・−
−−−(4)O= <Blax +[3m1n)/ 2
   −= (5)K   −(Alax  −AIi
n)/2      = (6)八 K   −<Blax  −8m1n)/2     
  ”−−−−(7)そこで、求められたA相のオフセ
ットl1lIOAをA相の入力信号、即ち第(1)式よ
り減じ、また、B相の入力信号、即ち第(2)式より、
第(5)式で求めたオフセット値Oを減じ、K /KB
を乗B          A すれば、次の第(8ン、第(9)式のように、振幅が等
しく、かつ、オフセットのないA相、B相の補正信号A
’  B’が得られる。
AB A O-<Aviax +Am1n)/2 -・-
---(4) O= <Blax + [3m1n)/2
−= (5)K −(Alax −AIi
n)/2 = (6) 8K −<Blax −8m1n)/2
”----(7) Then, subtract the obtained A-phase offset l1lIOA from the A-phase input signal, that is, equation (1), and from the B-phase input signal, that is, equation (2),
Subtract the offset value O obtained from equation (5) and get K /KB
By multiplying by B A , as shown in the following equation (8) and (9), the correction signal A of the A phase and B phase with equal amplitude and no offset is obtained.
'B' is obtained.

A ’ −A  OA = K As1nθ   ・−
・・−(8)B’ −(KA/に、)   (B−0,
)−KAsin(θ+(Z )       −−−−
・・(9)上記第(8)式、第(9)式で示される信号
A′を縦軸に、信号8′を横軸にとってリサージュ波形
を想定すると、第4図に示されるような楕円図形が得ら
れる(なお、αの値が90度であれば円になるが、αの
値は90近傍であるので、楕円図形となる。) 次に、中心から楕円上までの距離1下、楕円の半径とい
う)rを求めると、次の第(10)式となる。
A′ −A OA = K As1nθ ・−
...-(8)B'-(KA/ni,) (B-0,
)−KAsin(θ+(Z) −−−−
(9) If we assume a Lissajous waveform with the signal A' shown in equations (8) and (9) above on the vertical axis and the signal 8' on the horizontal axis, it will be an ellipse as shown in Figure 4. A figure is obtained (note that if the value of α is 90 degrees, it will be a circle, but since the value of α is around 90, it will be an ellipse figure.) Next, the distance from the center to the top of the ellipse is 1 below, When determining r (referred to as the radius of the ellipse), the following equation (10) is obtained.

r −(A/  2  + B/  2  >  17
2.2.2 = K A(S l n  O+sin  (θ+α月
1/2・・・・・・(10) そして、この楕円の半径rは、楕円の長軸上の両端及び
短軸上の両端で極大または極小値となる。
r − (A/ 2 + B/ 2 > 17
2.2.2 = K A (S l n O + sin (θ + α month 1/2... (10) The radius r of this ellipse is the radius r of the ellipse, which is the radius of the ellipse at both ends on the major axis and at both ends on the minor axis. becomes a local maximum or minimum value.

そこで、楕円の半径rの2乗r2を求めると次の第(1
1)式のようになる。
Therefore, by finding the square r2 of the radius r of the ellipse, we get the following (1
1) It becomes like the formula.

第(11)式をθで微分すると、 −K 2(sin 2θ+5in(2θ+2α))^ =2に2sin(2θ+(2) cosaA     
             ・・・・・・(12)αの
値は90度の近傍であるので、COSαは「0」ではな
い。
Differentiating equation (11) with respect to θ, -K 2(sin 2θ+5in(2θ+2α))^ =2 to 2sin(2θ+(2) cosaA
(12) Since the value of α is near 90 degrees, COSα is not “0”.

よって 、2の微分が「0」となる点は、sin (2
θ−1−a )  −0−・・−(13)故に、2θ+
α−nπのとき第(13)式は[0]となるから、 θ=−α/2.θ−(π/2)−(α/2)。
Therefore, the point where the differential of 2 is "0" is sin (2
θ-1-a) -0-...-(13) Therefore, 2θ+
Since equation (13) becomes [0] when α-nπ, θ=-α/2. θ−(π/2)−(α/2).

θ−π−(α/2)、θ−(3π/2)−(α/2)の
とき楕円の半径rは極大、極小となり、半径rの極大値
、極小値は、第(10)式より、θ=−α/2またはθ
−π−(α/2)のとき、r−KAl 5in(α/2
) I xコ−(14)θ−(π/2)−(α/2)ま
たはθ−(3π/2)−(α/2)のとき、 r−KAI C03((Z/ 2 ) l xrΣ・=
 (15)となる。即ち、位相差αの値が90度より小
さいときは、C03((2/ 2 )が5in(α/ 
2 )より大きいから、楕円の半径rの最大値(長軸)
 rsax 、最小値(短軸)rainは次の第(16
)式、第(11)式のようになる。
When θ-π-(α/2) and θ-(3π/2)-(α/2), the radius r of the ellipse becomes the maximum and minimum, and the maximum and minimum values of the radius r are given by Equation (10). Therefore, θ=-α/2 or θ
-π-(α/2), r-KAl 5in(α/2
) I x co-(14) θ-(π/2)-(α/2) or θ-(3π/2)-(α/2), r-KAI C03((Z/2) l xrΣ・=
(15). That is, when the value of phase difference α is smaller than 90 degrees, C03((2/2) is 5in(α/
2) Since it is larger than the maximum value of the radius r of the ellipse (major axis)
rsax, the minimum value (minor axis) rain is the next (16th
) and Equation (11).

rsax  −ar”2°−K   cos(α/2)
      ”・ (16)^ rain−C7−Ksin(α/2)   −117)
また、位相差αの値が90度より大きいときは、rsa
x−f−Σ−Ksin(α/2)     ・  (1
8)^ rain−C丁・Kcos(α/2)   ・(19)
となる。
rsax −ar”2°−K cos(α/2)
”・ (16)^ rain-C7-Ksin(α/2) -117)
Also, when the value of phase difference α is larger than 90 degrees, rsa
x-f-Σ-Ksin(α/2) ・(1
8) ^ rain-C-Kcos (α/2) ・(19)
becomes.

その結果、α<90のとき、即ち、長軸であるr wa
xが第1.第3象限(A’ >O,B’ >OまたはA
’ <O,B’ <0)にあるとき、第(16)。
As a result, when α<90, that is, the long axis r wa
x is the first. 3rd quadrant (A'> O, B'> O or A
'<O,B'<0), the (16th).

第(11)式より、 a −2−jan” (−LuL)    ・・・・・
・(20) laX α>90のとき、即ち、長軸であるr laXが第2、
第3象限(A’ >O,B’ <OまたはA+ <0.
8’ >0)にあるとき、 −1rlaX α=2・ tan  (−−〒−)・・・・・・(21
)r醜10 として、位相差αが求められる。
From equation (11), a −2−jan” (−LuL) ・・・・・・
・(20) When laX α>90, that is, the long axis r laX is the second,
Third quadrant (A'> O, B'< O or A+ < 0.
8'> 0), −1rlaX α=2・tan (−−〒−)・・・・・・(21
) rug10 , the phase difference α is determined.

次に、上記第(9式のB′からCOSα・A′を減じた
ものをsinαで割った値B”を求めると、第(22)
式に示されるように、補正信号A′に対し振幅同一で位
相差が90度の信号B“を求めることができる。
Next, if we calculate the value B, which is obtained by subtracting COSα・A′ from B′ in equation 9 and dividing it by sin α, we get
As shown in the equation, it is possible to obtain a signal B'' having the same amplitude and a phase difference of 90 degrees with respect to the correction signal A'.

B” −(B’  −cos a −A’  ) /s
in a−(K  5in(θ+a) −K  sin
θ−cos a ) /sin aA        
   ^ =KACO3θ         ・・・・・・(22
)よって、上記第(22)式と第(8)式より、故に、 となる。その結果、プロセッサに入力されたA相。
B"-(B'-cos a-A')/s
in a-(K 5in(θ+a) -K sin
θ-cos a ) /sin aA
^ = KACO3θ ・・・・・・(22
) Therefore, from Equation (22) and Equation (8) above, it follows. As a result, the A phase input to the processor.

8相のデジタル信号に対し上記処理を行えば、内挿信号
θを求めることができる。
By performing the above processing on the eight-phase digital signal, the interpolated signal θ can be obtained.

実施例 第2図は、本発明を実施する実施例のブロック図で、図
中、10a、10bは差動増幅器であり、エンコーダの
検出素子から出力される180度位相のずれたA相の信
号A、 A、及びB相の信号B。
Embodiment FIG. 2 is a block diagram of an embodiment of the present invention. In the figure, 10a and 10b are differential amplifiers, which output A-phase signals output from the detection element of the encoder with a phase shift of 180 degrees. A, A, and B phase signal B.

Bの差を夫々増幅し、180度位相のずれたA相の信号
A、 A、B相の信号B、13のオフセット(直流成分
)を除却し、A相信号A、B相信号Bを出力している。
Amplify the difference between A and B, remove the offset (DC component) of A phase signal A, A and B phase signal B, which are 180 degrees out of phase, and output A phase signal A and B phase signal B. are doing.

12a、12bはアナログ−デジタル変換i!(以下、
A/D変換器という)で、A相信号A、B相信号Bをデ
ジタル量に変換している。該A相信号A、B相信号Bは
マイクロプロセッサ等で構成されている演n器14に入
力され、演算器14のマイクロプロセッサ(以下、CP
Uという)は所定周期で、入力信号の上記A相信号A、
B相信号Bを読み込んで、後述する処理を行い、内挿信
号θを出力するようになっている。
12a and 12b are analog-to-digital conversion i! (below,
An A/D converter) converts the A-phase signal A and the B-phase signal B into digital quantities. The A-phase signal A and the B-phase signal B are input to a processor 14 composed of a microprocessor, etc., and the microprocessor (hereinafter, CP
U) is a predetermined period, and the above A-phase signal A of the input signal,
It reads the B-phase signal B, performs processing to be described later, and outputs an interpolated signal θ.

第1図(a)〜(C)は、本実施例における演算器14
のCPUが行う処理のフローチャートであり、演算器1
4のCPUはこの処理を所定周期毎行うものである。
FIGS. 1(a) to (C) show the arithmetic unit 14 in this embodiment.
1 is a flowchart of processing performed by the CPU of
The CPU No. 4 performs this process at predetermined intervals.

まず、このエンコーダを使用する機械にNNが投入され
、エンコーダ及び演算器14等に電源が投入されると、
CPUは初期化処理を行い、演算器14内のメモリ中に
設けられたレジスタ、フラグ、カウンタ類を初期化する
。即ち、演舞器14に入力されるA相、B相の信SA、
Bの夫々の最大値を記憶するレジスタAlaX 、 B
saxをレジスタが記憶できる最小値にセットし、A相
、B相信号A、Bの最小値を記憶するレジスタA11n
 。
First, when the NN is turned on to the machine that uses this encoder and the power is turned on to the encoder and the computing unit 14, etc.,
The CPU performs initialization processing and initializes registers, flags, counters, etc. provided in the memory in the arithmetic unit 14. That is, the signals SA of the A phase and B phase input to the dancer 14,
Registers AlaX and B that store the respective maximum values of B
A register A11n that sets sax to the minimum value that the register can store and stores the minimum values of the A phase and B phase signals A and B.
.

Bmtnにレジスタが記憶できる最大値を夫々セットし
、前述した第(10)式で求められる楕円の中心からの
距離rの最大値、最小値を記憶するレジスタrgiax
 、 ri+inを「0」にセットし、入力信号A、B
から検出される楕円軌跡上の象限位置を記憶するレジス
タD、D’ を「0」にセットし、フラグP、CPEを
rOJに、カウンタCTを「0」にセットする。
The maximum value that can be stored in each register is set in Bmtn, and the register rgiax stores the maximum value and minimum value of the distance r from the center of the ellipse obtained by the above-mentioned equation (10).
, set ri+in to "0" and input signals A and B.
The registers D and D', which store the quadrant position on the elliptical locus detected from , are set to "0", the flag P and CPE are set to rOJ, and the counter CT is set to "0".

そして、CPUは第1図(a) 〜(cl)ffilu
を開始する。
The CPU is shown in Figure 1 (a) to (cl).
Start.

まず、入力信号A、Bを読み込む(ステップ101)。First, input signals A and B are read (step 101).

なお、このA相、B相の信号は第(1)。Note that the A-phase and B-phase signals are (1).

第(2)式で説明したようにオフセット値OA。Offset value OA as explained in equation (2).

Oを有し、振幅がKA、に、で、位相差α(αは略90
度)の正弦波信号である。次に、信号への値がレジスタ
A■aXの値より小さいか否か判断しくステップ102
)、始めはレジスタA igaxの値は初期化で最小値
が記憶されているから、ステップ102からステップ1
03へ進み、該レジスタA laXに読み込んだ信号A
の値を設定する。そして、次に信号Aの値がレジスタA
 winの値より大きいか否か判断しくステップ104
) 、始めは初期化でレジスタA sinには最大値が
記憶されているからステップ105へ進み、該レジスタ
As1n&:fiみ込んだ信号への値が格納される(ス
テップ105)。
O, the amplitude is KA, and the phase difference α (α is approximately 90
It is a sine wave signal of degrees). Next, it is determined in step 102 whether the value to the signal is smaller than the value of register A*aX.
), at the beginning, the value of register A igax is initialized and the minimum value is stored, so from step 102 to step 1
Proceed to 03 and read the signal A into the register A
Set the value of Then, the value of signal A is set to register A.
Step 104 to determine whether the value is greater than the win value.
), at the beginning, the maximum value is stored in the register A sin during initialization, so the process proceeds to step 105, and the value of the signal loaded into the register As1n&:fi is stored (step 105).

同様に、読み込んだ信号Bの値とレジスタBmax 、
 Bg+inの値が比較され、始めは、初期化でレジス
タf3 waxには最小値、レジスタB winには最
大値が記憶されているから、レジスタ3max。
Similarly, the read value of signal B and register Bmax,
The values of Bg+in are compared, and initially, the minimum value is stored in the register f3 wax and the maximum value is stored in the register B win during initialization, so the register 3max.

B11nには、夫々読み込んだ値、信号Bの値が格納さ
れる(ステップ106〜109)。
The read values and the value of signal B are stored in B11n (steps 106 to 109).

次に、レジスタAg+ax 、 Aatn 、 3ma
x 。
Next, registers Ag+ax, Aatn, 3ma
x.

B sinに記憶された値から第(4)〜第(7)式の
演算を行い(ステップ110)、オフセット値OA。
The calculations of equations (4) to (7) are performed from the value stored in B sin (step 110), and the offset value OA is obtained.

OB、振幅KA、に、を求め、これらの値と入力信号A
、Bの値より第(8)、第(9)式のv4算を行って補
正信号A’ 、B’を求める(ステップ111)。そし
て、求められた補正信号A’ 、B’より第(10)式
の演算を行って楕円の半径rを求める(ステップ112
>、なお、始めは、76、laX −Asin −A、
 3max =3min−8であるので、補正信@A’
 、8’はrOJであり、楕円の半径rも「0」となる
Find OB, amplitude KA, and use these values and input signal A.
, B, the v4 calculation of equations (8) and (9) is performed to obtain correction signals A' and B' (step 111). Then, the radius r of the ellipse is determined by calculating equation (10) from the obtained correction signals A' and B' (step 112).
>, In addition, at the beginning, 76, laX -Asin -A,
Since 3max = 3min-8, the correction signal @A'
, 8' is rOJ, and the radius r of the ellipse is also "0".

次に、求められた楕円の半径rとrlaX。Next, the radius r and rlaX of the obtained ellipse.

r sinの値と比較するが、始めは初期化でrlaX
It is compared with the value of r sin, but at the beginning rlaX is initialized.
.

r sinは「0」にセットされ、始めは楕円の半径r
も「0」であるので、ステップ113,118゜120
へと進むが、ステップ120でフラグPは初期化で「0
」にセットされているからステップ122へ進み、第(
21)式の演算を行い位相差αを求めるが、楕円の半径
rの真の最大値rlaX。
r sin is set to ``0'' and initially the radius of the ellipse r
is also “0”, so steps 113, 118°120
However, in step 120, the flag P is initialized to "0".
”, so the process goes to step 122 and the step (
21) Calculate the equation to find the phase difference α, which is the true maximum value rlaX of the radius r of the ellipse.

最小値r giinが求まっていないので、この位相差
αは正しい値ではない。そして、次に、第(22)式の
演算を行うが(ステップ123)、この場合も正しいB
”の値は求められない。次に、フラグCPEが「1」か
否か判断し、始めはフラグCPEは「0」に初期化設定
されているから、ステップ124からステップ125へ
移行し、補正信号A’ 、B’の符号より楕円の半径r
の存在する象限を検出するが、現在A’ −8’ −0
であるので、象限を記憶するレジスタDには「0」を格
納する。
Since the minimum value r giin has not been determined, this phase difference α is not a correct value. Then, the calculation of equation (22) is performed (step 123), but in this case as well, the correct B
” cannot be calculated.Next, it is determined whether the flag CPE is “1” or not, and since the flag CPE is initially initialized to “0”, the process moves from step 124 to step 125, and the correction is performed. From the signs of signals A' and B', the radius r of the ellipse is
Detects the quadrant where A'-8' -0 currently exists.
Therefore, "0" is stored in register D that stores the quadrant.

そして、このレジスタDと1つ前の周期における楕円の
半径rの存在する象限を記憶するレジスタD’  (始
めはD’−0)の値よりり、D’の組合せを判断するが
、現在は(D、D’ )−(0,0)であるので、ステ
ップ127.129を経てステップ131へ移行し、レ
ジスタDの値をレジスタD′に格納し、次に、第(25
)式のasnを行って仮の内挿信号θを出力する(ステ
ップ127)。
Then, the combination of D' is determined from the value of this register D and the register D' (initially D'-0) which stores the quadrant in which the radius r of the ellipse exists in the previous cycle. (D, D') - (0,0), the process moves to step 131 via steps 127 and 129, stores the value of register D in register D', and then
) is performed to output a temporary interpolation signal θ (step 127).

この内挿信号θは正しい値ではないが、装置を稼動させ
るために一応の信号を出力する。
Although this interpolation signal θ is not a correct value, it is output as a signal to operate the device.

次に、カウンタCTの値が4を超えているか、または、
−4より小さいか判断しくステップ133)、始めはC
T−0であるから、この周期の処理を終了する。
Next, the value of counter CT exceeds 4, or
Step 133) to determine whether it is smaller than -4, starting with C
Since it is T-0, the processing for this cycle is ended.

次の周期では、再び入力信号A、Bを読取り(ステップ
101)、読取った信号への値がレジスタA■aXに記
憶する値より大きければ、読取った信号Aの値をレジス
タA■aXに格納し、また、信号Aの値がレジスタA 
sinの値より小さければ、レジスタA sinに信号
Aの値を格納する。また同様に、読取った信号Bの値が
レジスタBlaXの値より大きいときはレジスタ31a
Xに信@Bの値を格納し、レジスタB gcinより小
さければレジスタ3m1nに格納する(ステップ102
〜109)。
In the next cycle, the input signals A and B are read again (step 101), and if the value of the read signal is larger than the value stored in the register A*aX, the value of the read signal A is stored in the register A*aX. Also, the value of signal A is
If it is smaller than the value of sin, the value of signal A is stored in register A sin. Similarly, if the value of the read signal B is greater than the value of the register BlaX, the register 31a
Store the value of signal@B in X, and if it is smaller than register B gcin, store it in register 3m1n (step 102
~109).

次に、第(4)〜第(7)式の演算を行ってオフセット
値o、o、、振[KA、に、を求め(ステラプ110)
、第(8)、第(9)式の演算を行って補正信@A’ 
、B’ を求め(ステップ111)、第(10)式の演
算を行って楕円の半径rを求める(ステップ112)。
Next, calculate the offset value o, o, , oscillation [KA, by calculating the equations (4) to (7) (Sterap 110).
, calculate the corrected signal @A' by calculating the equations (8) and (9).
, B' are determined (step 111), and the radius r of the ellipse is determined by calculating equation (10) (step 112).

次に、求められた楕円の半径rと、半径rの最大値を記
憶するレジスタr laXの値を比較しく始めはrma
x−0)(ステップ113)、求められた半径rが大き
ければレジスタr waxにこの半径rを格納しくステ
ップ114)、ステップ111で求めた補正信号A’ 
、B’の符号より、半径(最大値)の存在する象限を求
める(ステップ115)。即ち、A’ >0.8’ >
0であれば第1象限、A’ >O,B’ <Qであれば
第2象限、A’ <0.8’ <Oであれば第3象限、
A’ <O。
Next, compare the radius r of the ellipse found with the value of the register rlaX that stores the maximum value of the radius r.
x-0) (step 113), if the calculated radius r is large, store this radius r in the register r wax (step 114), the correction signal A' calculated in step 111
, B', the quadrant in which the radius (maximum value) exists is determined (step 115). That is, A'>0.8'>
If 0, the first quadrant; if A'> O, B'< Q, the second quadrant; if A'<0.8'< O, the third quadrant;
A'<O.

D′〉0であれば第4象限であり、第1.第3象限であ
ればフラグPを「0」に、第2.第4瘉限であればフラ
グPをNJにセットしくステップ116.117)、ま
た、半径の最小値を記憶するレジスタr laXの値と
求めた半径rを比較しくステップ118)、求めた半径
rの方が小さければレジスタr sinにこの半径rの
値を格納する(ステップ119)。
If D′〉0, it is the fourth quadrant, and the first. If it is in the third quadrant, flag P is set to "0", and if it is in the second quadrant. If it is the fourth limit, set the flag P to NJ (steps 116 and 117), and compare the value of the register r laX that stores the minimum value of the radius with the calculated radius r (step 118), and set the calculated radius r If is smaller, the value of this radius r is stored in the register r sin (step 119).

そして、フラグPの値が「0」であれば、第(20)式
、「1」であれば第(21)式の演算を行って位相差α
を求め(ステップ120〜122)、第(22)式の演
算を行ってB“の値を求め(ステップ123)、次に、
フラグCPEが「1」か否か判断しくステップ124)
 、まだフラグCPEは「1」にセットされていないか
ら、補正信号A’ 、B’ の符号より楕円の半径の象
限りを求め(ステップ125)、この象限りと前周期で
求めた象限D′の組合せを判断するが(ステップ127
.129)、初期化された後2周期まではD′−〇であ
ることからステップ131へ進み、前述した処1!i!
 132〜133の処理を行って当該周期の処理を終え
る。
Then, if the value of the flag P is "0", the equation (20) is calculated, and if the value of the flag P is "1", the equation (21) is calculated to calculate the phase difference α.
(steps 120 to 122), calculate the value of B" by calculating equation (22) (step 123), and then:
Step 124) Determine whether flag CPE is "1" or not.
, since the flag CPE has not yet been set to "1", the quadrant of the radius of the ellipse is found from the signs of the correction signals A' and B' (step 125), and this quadrant and the quadrant D' found in the previous cycle are (step 127)
.. 129), since it is D'-〇 for up to two cycles after initialization, the process advances to step 131, and the above-mentioned process 1! i!
The processes of steps 132 and 133 are performed to complete the process of the cycle.

かくして、各周mN1上記処理を行えば、ステップ10
1〜109の処理によって、レジスタAIaX 、 A
s1n 、 3sax 、 31inにはそれまでの信
号A、Bの最大値、最小値が格納されることとなり、ま
た、ステップ110〜119の処理で、楕円の半径の最
大値、最小値がレジスタrlaX。
Thus, if the above processing is performed for each round mN1, step 10
By processing steps 1 to 109, registers AIaX, A
The maximum and minimum values of the signals A and B so far are stored in s1n, 3sax, and 31in, and in the processing of steps 110 to 119, the maximum and minimum values of the radius of the ellipse are stored in register rlaX.

r linに格納されることとなる。さらに、エンコー
ダの回転盤の回転方向によって、第4図における楕円の
半径rは、左回りまたは右回りを行うこととなるが、左
回りであれば前周期の象限D′と今周期の象限りの組合
せ(D、D’ )は(2,1)(3,2)(4,3)(
1,4)であり、このような組合せが検出されると(ス
テップ127)、カウンタCTに「1」加算する(ステ
ップ128)。また、右回りであれば、組合せ(D、D
’ )は(4,1)(3,4)(2,3)(1,2)で
あり、このような組合せが検出されるとくステップ12
9) 、カウンタCTから「1」減算する(ステップ1
30)。
It will be stored in r lin. Furthermore, depending on the direction of rotation of the rotary disk of the encoder, the radius r of the ellipse in FIG. The combination (D, D') is (2,1)(3,2)(4,3)(
1, 4), and when such a combination is detected (step 127), "1" is added to the counter CT (step 128). Also, if it is clockwise, the combination (D, D
) is (4,1)(3,4)(2,3)(1,2), and when such a combination is detected, step 12
9) , subtract "1" from the counter CT (step 1
30).

そして、ステップ133でカウンタCTの値が4を超え
たとき、または、−4より小さくなったとき(ステップ
133)、即ち、楕円の半径rが略−周したことを意味
するので、ステップ134でフラグCPEを「1」にセ
ットする。
Then, when the value of the counter CT exceeds 4 in step 133 or becomes smaller than -4 (step 133), which means that the radius r of the ellipse has turned approximately -, in step 134 Set flag CPE to "1".

そして、楕円の半径rが略−周したということは、信号
A、Bの最大値、It小値及び楕円の半径の最大値、最
小値が各レジスタAlaX、へsin 。
Then, the fact that the radius r of the ellipse has turned approximately - means that the maximum value of the signals A and B, the small It value, and the maximum value and minimum value of the radius of the ellipse are sin to each register AlaX.

3max 、 Bg+in 、 rg+ax 、 r−
inに格納されていることを意味する。そして、ステッ
プ115〜117の処理によって楕円の半径の最大値が
現われたとき、即ち、楕円の長軸位置が第1.第3象限
にある場合にはフラグPが「0」にセットされ、第2.
第4象限にある場合には1°1」にセットされる。その
結果、フラグPが「0」にセットされ、長軸が第1.第
3象限にあり、位相差αが90度より小さいときには、
第(20)式の211算を行い位相差αを求める(ステ
ップ121)。また、フラグPが「1」にセットされ、
長軸が第2.第4象限にあり、位相差αが90度を超え
ている場合には、第(21)式の演舞を行い位相差αを
求める(ステップ122)。そして、求められた位相差
αと、ステップ111で求めた補正信号A′B′より第
(22)式の演算を行って(ステップ123) 、IB
” !求め、すでにフラグCPEは「1」にセットされ
ているから、ステップ124からステップ126へ進み
、第(24)式の演算を行って内挿信号θを求め出力す
る。なお、この場合、A相、B相の信号の1サイクル中
における最大値、最小値Amax 、 Aitin 、
 8i+ax 、 8sin及び楕円の半径rの最大値
rlaX、最小値r winが求まっているから、この
内挿信号θはステップ132で求めた内挿信号とは異な
り、正しい内挿信号となっている。
3max, Bg+in, rg+ax, r-
This means that it is stored in in. Then, when the maximum value of the radius of the ellipse appears through the processing of steps 115 to 117, that is, the long axis position of the ellipse is at the first. If it is in the third quadrant, the flag P is set to "0", and the second.
If it is in the fourth quadrant, it is set to 1°1. As a result, the flag P is set to "0" and the major axis is the first. When it is in the third quadrant and the phase difference α is less than 90 degrees,
Calculation 211 of equation (20) is performed to obtain the phase difference α (step 121). Also, flag P is set to "1",
The long axis is the second. If it is in the fourth quadrant and the phase difference α exceeds 90 degrees, the phase difference α is determined by performing the expression (21) (step 122). Then, the calculation of equation (22) is performed using the obtained phase difference α and the correction signal A'B' obtained in step 111 (step 123), and IB
Since the flag CPE has already been set to "1", the process proceeds from step 124 to step 126, where equation (24) is calculated to obtain and output the interpolated signal θ. In addition, in this case, the maximum value and minimum value Amax, Aitin, during one cycle of the A-phase and B-phase signals are
Since 8i+ax, 8sin, the maximum value rlaX, and the minimum value rwin of the radius r of the ellipse have been determined, this interpolation signal θ is different from the interpolation signal determined in step 132 and is a correct interpolation signal.

以下、各周期毎ステップ101〜124及びステップ1
26の処理を行って各同期毎内挿信号θを出力すること
となる。
Below, steps 101 to 124 and step 1 for each cycle
26 processes are performed to output an interpolated signal θ for each synchronization.

なお、上記実施例では、電源投入後、各周期毎A相、B
相信号の最大値、最小値、楕円の半径rの最大値、最小
値を求めて、A相、B相の信号のオフセット値0 、O
、振幅に、に、及び位AB        A 相差αを求めたが、A相、B相の信号のオフセット値1
位相差はたびたび変るものではなく、温度変化や経年変
化で変るも、のであるから、必要に応じてこれらオフセ
ット値0.0B、振幅KA。
In the above embodiment, after the power is turned on, the A phase and B phase are
Find the maximum value and minimum value of the phase signal, the maximum value and minimum value of the radius r of the ellipse, and calculate the offset values 0 and O of the A-phase and B-phase signals.
, amplitude, and phase AB
Since the phase difference does not change frequently, and may change due to changes in temperature or changes over time, these offset values of 0.0B and amplitude KA may be adjusted as necessary.

八 に、及び位相差αの調整処理を行わせ、通常の処理にお
いては、すでに求められているオフセット値、振幅9位
相差より内挿信号を埠出し、出力するようにしてもよい
8 and phase difference α, and in normal processing, an interpolation signal may be output based on the already determined offset value and amplitude 9 phase difference.

この場合、演算器14内に不揮発性のRAMを設けてお
き、この不揮発性RAMにオフセット値0 .0  、
振幅に、に、及び位相差αを格納AB        
 A するようにすると共に、演算器114のCPUに対する
指令として、例えば、パラメータ調整指令を設け、この
パラメータ調整指令が入力されると演算器14のCPU
は第1図におけるステップ101〜123の処理を行い
、ステップ123からステップ125へ進み、ステップ
125〜133の処理を行ってカウンタCTの値が4を
超えるか、または、−4より小さくなるまで、上記処理
を繰返す。これによって、A相、B相の1サイクルの信
号を取り込み、その中で、A相、B相の最大1iAsa
x 、 131aX 、最小値As1n 、 B11n
を、これらの値よりステップ110の第(4)〜第(7
)式の演算処理によってオフセット値0.0.。
In this case, a non-volatile RAM is provided in the arithmetic unit 14, and an offset value of 0. 0,
Store amplitude, , and phase difference α AB
In addition, for example, a parameter adjustment command is provided as a command to the CPU of the calculation unit 114, and when this parameter adjustment command is input, the CPU of the calculation unit 14
performs steps 101 to 123 in FIG. 1, proceeds from step 123 to step 125, and performs steps 125 to 133 until the value of counter CT exceeds 4 or becomes smaller than -4. Repeat the above process. As a result, one cycle of signals of A phase and B phase is captured, and a maximum of 1iAsa of A phase and B phase is captured.
x, 131aX, minimum value As1n, B11n
From these values, the (4)th to (7th)
), the offset value is 0.0. .

振幅KA、に、を求めて不揮発性RAMに記憶させる。The amplitude KA is determined and stored in the nonvolatile RAM.

さらに、楕円の半径rの値が最大@ r laXをとる
ときの補正信号A’ 、B’の符号より、楕円の長袖が
存在する象限を求め、即ち、位相差αが90度より小さ
いか大きいか求めて、90度より小さいときには第(2
0)式の演算を行って位相差αを求め、90rxより大
きいときには第(21)式の演算を行って位相差αを求
めて不揮発性RAMに記憶させてパラメータ調整処理を
終了する。
Furthermore, from the signs of the correction signals A' and B' when the value of the radius r of the ellipse takes the maximum value @ r la If it is smaller than 90 degrees, the second
0) to find the phase difference α, and when it is larger than 90rx, calculate the equation (21) to find the phase difference α, which is stored in the non-volatile RAM, and the parameter adjustment process ends.

そして、通常の処理においては、第3図のフローチャー
トで示す処理を所定周期毎行い、内挿信号θを出力する
ようにする。
In normal processing, the processing shown in the flowchart of FIG. 3 is performed at predetermined intervals, and an interpolation signal θ is output.

まず、入力信号A、Bt−読込み(ステップ201)、
不揮発性RAMに記憶されたオフセット値0.0 及び
振幅に、に、と読込んだ信号A。
First, read input signals A and Bt (step 201),
Signal A is read with an offset value of 0.0 and an amplitude stored in non-volatile RAM.

AB           A Bの値より第(8)、第(9)式の演算を行って補正信
号A’ 、B’を求め(ステップ202) 、求められ
た補正信号A’ 、B’ と不揮発性RAMに記憶され
ている位相差αより第(22)式の演算を行ってB I
fの値を求め(ステップ203) 、求められたB“と
補正信号A′の値より第(24)式の演算を行って内挿
信号θを求め出力する(ステップ204)。
Calculate equations (8) and (9) from the values of AB A B to obtain correction signals A' and B' (step 202), and store the obtained correction signals A' and B' in the nonvolatile RAM. Calculate equation (22) from the stored phase difference α to obtain B I
The value of f is determined (step 203), and the calculation of equation (24) is performed using the determined B'' and the value of the correction signal A' to determine and output the interpolated signal θ (step 204).

以下、各周期毎上記処理を繰返し、各同期毎内挿信号θ
を出力する。また、温度変化や経年変化が生じたときに
は、前述したパラメータ調整処理を行わせて、オフセッ
ト値0A、0.、振幅KA。
Thereafter, the above process is repeated for each period, and the interpolated signal θ is obtained for each synchronization.
Output. Also, when temperature changes or secular changes occur, the above-mentioned parameter adjustment process is performed to set the offset value to 0A, 0. , amplitude KA.

K32位相差αの値を求め、不揮発性RAMに記憶する
これらの値を更新させればよい。
What is necessary is to find the value of the K32 phase difference α and update these values stored in the nonvolatile RAM.

発明の効果 本発明は、エンコーダから出力されるA相、B相の信号
のオフセット値、振幅、及び位相差を自動的に求め、か
つ、振幅が同一で、位相差が90度ずれた2つの信号が
求められるから、この2つの信号から正確な内挿信号が
得られる。その結果、従来のように、オフセット、振幅
9位相差調整のためのボリューム等によるアナログ調整
が必要なく、かつ、内挿信号の精度も向上する。
Effects of the Invention The present invention automatically determines the offset value, amplitude, and phase difference of the A-phase and B-phase signals output from the encoder, and calculates the offset value, amplitude, and phase difference of the A-phase and B-phase signals output from the encoder. Since the signal is determined, an accurate interpolation signal can be obtained from these two signals. As a result, there is no need for analog adjustment using a volume or the like for offset, amplitude, and phase difference adjustment as in the prior art, and the accuracy of the interpolation signal is improved.

さらに、温度変化や経年変化に対しても対応でき、正確
な内挿信号を得ることができる。
Furthermore, it is possible to cope with temperature changes and secular changes, and to obtain accurate interpolated signals.

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

第1図(a)〜(C)は本発明の一実施例の動作フロー
チャート、第2図は同実施例を実施するエンコーダの要
部ブロック図、第3図は本発明の他の実施例の動作フロ
ーチャート、第4図は本発明の実施例において得られる
補正信号A’ 、B’のりサージュ波形の説明図である
。 10a、10b・・・差動増幅器、 12a、12b・・・アナログ−デジタル変換器、14
・・・演棹器。 第 1 口(a) 第
FIGS. 1(a) to (C) are operation flowcharts of one embodiment of the present invention, FIG. 2 is a block diagram of main parts of an encoder implementing the same embodiment, and FIG. 3 is a diagram of another embodiment of the present invention. The operation flowchart in FIG. 4 is an explanatory diagram of the surge waveforms of the correction signals A' and B' obtained in the embodiment of the present invention. 10a, 10b...Differential amplifier, 12a, 12b...Analog-digital converter, 14
...A stick player. Part 1 (a) Part 1

Claims (1)

【特許請求の範囲】[Claims] エンコーダから出力されるA相、B相の2つの信号をデ
ジタル信号に変換してプロセッサに入力し、プロセッサ
は夫々の相の最大値、最小値より夫々の相の振幅、オフ
セット値を求め、求められたオフセット値と振幅よりオ
フセットがない振幅同一のA相、B相の信号データを求
め、該A相、B相の信号データより位相差を求め、位相
差補正を行い、90度位相のずれたA相、B相の信号デ
ータを算出し、算出されたA相、B相の信号データより
内挿信号を作成するようにしたことを特徴とするエンコ
ーダの内挿方式。
The two signals of phase A and phase B output from the encoder are converted into digital signals and input to the processor, and the processor calculates the amplitude and offset value of each phase from the maximum and minimum values of each phase. Find the A-phase and B-phase signal data with the same amplitude and no offset from the offset value and amplitude, find the phase difference from the A-phase and B-phase signal data, perform phase difference correction, and calculate the 90 degree phase shift. 1. An interpolation method for an encoder, characterized in that A-phase and B-phase signal data are calculated, and an interpolation signal is created from the calculated A-phase and B-phase signal data.
JP7195289A 1989-03-27 1989-03-27 Interpolating method of encoder Pending JPH02251720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7195289A JPH02251720A (en) 1989-03-27 1989-03-27 Interpolating method of encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7195289A JPH02251720A (en) 1989-03-27 1989-03-27 Interpolating method of encoder

Publications (1)

Publication Number Publication Date
JPH02251720A true JPH02251720A (en) 1990-10-09

Family

ID=13475331

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7195289A Pending JPH02251720A (en) 1989-03-27 1989-03-27 Interpolating method of encoder

Country Status (1)

Country Link
JP (1) JPH02251720A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0708311A2 (en) 1994-10-20 1996-04-24 Sony Magnescale, Inc. Displacement detecting apparatus
JP2002054952A (en) * 2000-08-09 2002-02-20 Futaba Corp Automatic adjustment device and automatic adjustment method for lissajous signal in linear scale
JP2002541470A (en) * 1999-04-14 2002-12-03 エス.エヌ.エール.ルールマン Position and motion sensors
JP2002541485A (en) * 1999-04-14 2002-12-03 エス.エヌ.エール.ルールマン Bearing element with an element having a plurality of aligned sensing elements for detecting magnetic pulses emanating from a coder
JP2003035569A (en) * 2001-07-25 2003-02-07 Fuji Electric Co Ltd Optical encoder
JP2007155416A (en) * 2005-12-02 2007-06-21 Yaskawa Electric Corp Position detection device and offset correction method therefor
JP2019135556A (en) * 2019-04-18 2019-08-15 株式会社ニコン Lens driving device, lens driving method, and imaging device
WO2022185825A1 (en) * 2021-03-01 2022-09-09 村田機械株式会社 Displacement detection device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0708311A2 (en) 1994-10-20 1996-04-24 Sony Magnescale, Inc. Displacement detecting apparatus
US5943639A (en) * 1994-10-20 1999-08-24 Sony Magnescale Inc. Displacement detection apparatus including an error correction system
JP2002541470A (en) * 1999-04-14 2002-12-03 エス.エヌ.エール.ルールマン Position and motion sensors
JP2002541485A (en) * 1999-04-14 2002-12-03 エス.エヌ.エール.ルールマン Bearing element with an element having a plurality of aligned sensing elements for detecting magnetic pulses emanating from a coder
JP4722293B2 (en) * 1999-04-14 2011-07-13 エヌテエヌ−エス.エヌ.エール.ルルモン Bearing element with element having a plurality of aligned sensing elements for detecting magnetic pulses originating from a coder
JP2002054952A (en) * 2000-08-09 2002-02-20 Futaba Corp Automatic adjustment device and automatic adjustment method for lissajous signal in linear scale
JP2003035569A (en) * 2001-07-25 2003-02-07 Fuji Electric Co Ltd Optical encoder
JP2007155416A (en) * 2005-12-02 2007-06-21 Yaskawa Electric Corp Position detection device and offset correction method therefor
JP2019135556A (en) * 2019-04-18 2019-08-15 株式会社ニコン Lens driving device, lens driving method, and imaging device
WO2022185825A1 (en) * 2021-03-01 2022-09-09 村田機械株式会社 Displacement detection device

Similar Documents

Publication Publication Date Title
JP6163874B2 (en) Rotation angle detection device, image processing device, and rotation angle detection method
EP3401644B1 (en) Encoder output signal correction apparatus and method
JP5041419B2 (en) Resolver device, resolver angle detection device and method
EP2209213B1 (en) RD converter and angle detecting apparatus
JP5173962B2 (en) Resolver / digital conversion apparatus and resolver / digital conversion method
JP6005781B2 (en) Resolver device
JP5281102B2 (en) Resolver device, resolver angle detection device and method
JPH01148100A (en) Position controller
JP4240090B2 (en) Encoder signal correction circuit
JPH02251720A (en) Interpolating method of encoder
JP3372450B2 (en) Encoder output signal processing device
JP2005208028A (en) Angle operation method for variable reluctance resolver, and angle operation unit for the same
JP3665733B2 (en) Resolver phase error correction method and apparatus
JP4515120B2 (en) Resolver digital angle conversion apparatus and method, and program
JP5082642B2 (en) Resolver / digital conversion method and resolver / digital conversion circuit
KR20170087415A (en) Encoder
WO2018092416A1 (en) Rotary encoder signal processing device and rotary encoder signal processing method
JP3365063B2 (en) Rotation angle detection method
JP2003222534A (en) Phase difference error detection device and interpolation error estimation device using it
JP2011180073A (en) Device and method for generation of encoder pulse, and computer program
JP2004333156A (en) Encoder signal interpolation divider
Karabeyli et al. Enhancing the accuracy for the open-loop resolver to digital converters
JP2001296142A (en) Rotating position detector and rotating speed detector
JP4259780B2 (en) Interpolation error estimation method and interpolation error estimation device
JP2009244022A (en) Phase detection circuit