JP6842943B2 - Rotary encoder - Google Patents

Rotary encoder Download PDF

Info

Publication number
JP6842943B2
JP6842943B2 JP2017024885A JP2017024885A JP6842943B2 JP 6842943 B2 JP6842943 B2 JP 6842943B2 JP 2017024885 A JP2017024885 A JP 2017024885A JP 2017024885 A JP2017024885 A JP 2017024885A JP 6842943 B2 JP6842943 B2 JP 6842943B2
Authority
JP
Japan
Prior art keywords
rotation speed
rotating body
phase
signal
rotary encoder
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.)
Active
Application number
JP2017024885A
Other languages
Japanese (ja)
Other versions
JP2018132359A (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.)
Nidec Sankyo Corp
Original Assignee
Nidec Sankyo 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 Nidec Sankyo Corp filed Critical Nidec Sankyo Corp
Priority to JP2017024885A priority Critical patent/JP6842943B2/en
Priority to CN201810150413.6A priority patent/CN108426587B/en
Priority to US15/895,272 priority patent/US10598517B2/en
Publication of JP2018132359A publication Critical patent/JP2018132359A/en
Application granted granted Critical
Publication of JP6842943B2 publication Critical patent/JP6842943B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Description

本発明は、ロータリエンコーダに関し、特に磁気式のロータリエンコーダに関する。 The present invention relates to a rotary encoder, and more particularly to a magnetic rotary encoder.

固定体に対する回転体の回転位置を検出する装置として、磁気抵抗効果(MR)素子やホール素子などの感磁素子を利用した磁気式のロータリエンコーダが知られている。このようなロータリエンコーダでは、回転体(磁石)の回転に伴う磁界変化により、配線や回路等に誘導電圧が発生し、その信号成分が感磁素子からの出力信号に重畳されることで検出精度が悪化するという問題があることが知られている。 As a device for detecting the rotational position of a rotating body with respect to a fixed body, a magnetic rotary encoder using a magnetoresistive element such as a magnetoresistive effect (MR) element or a Hall element is known. In such a rotary encoder, an induced voltage is generated in wiring, a circuit, etc. due to a change in the magnetic field accompanying the rotation of a rotating body (magnet), and the signal component is superimposed on the output signal from the magnetizing element, so that the detection accuracy is high. Is known to have the problem of worsening.

特許文献1には、上記誘導電圧が回転体の回転速度に比例して出力信号に重畳されることを利用して、誘導電圧による誤差を補正する方法が記載されている。この方法では、特定の回転速度において誘導電圧を打ち消すための補正量が予め記憶されており、この補正量から、特定の回転速度と使用時の回転速度との比率に基づいて、使用時の回転速度において誘導電圧を打ち消すための補正値が換算されている。これにより、回転速度に比例して増加する補正値を使用時の回転速度から換算して算出することができ、回転体の回転位置を精度良く検出することができる。 Patent Document 1 describes a method of correcting an error due to an induced voltage by utilizing the fact that the induced voltage is superimposed on an output signal in proportion to the rotation speed of a rotating body. In this method, a correction amount for canceling the induced voltage at a specific rotation speed is stored in advance, and from this correction amount, rotation during use is based on the ratio of the specific rotation speed and the rotation speed during use. The correction value for canceling the induced voltage at the speed is converted. As a result, the correction value that increases in proportion to the rotation speed can be calculated by converting it from the rotation speed at the time of use, and the rotation position of the rotating body can be detected with high accuracy.

特開2016−99164号公報Japanese Unexamined Patent Publication No. 2016-99164

しかしながら、特許文献1に記載された補正方法だけでは、回転体の回転に伴って出力信号に重畳される誤差成分を取り除くことができず、高い検出精度を維持するには十分ではない。 However, the correction method described in Patent Document 1 alone cannot remove the error component superimposed on the output signal as the rotating body rotates, and is not sufficient to maintain high detection accuracy.

そこで、本発明の目的は、回転体の回転位置を高精度に検出するロータリエンコーダを提供することである。 Therefore, an object of the present invention is to provide a rotary encoder that detects the rotational position of a rotating body with high accuracy.

上述した目的を達成するために、本発明のロータリエンコーダは、固定体に対する回転体の回転位置を検出するロータリエンコーダであって、固定体および回転体の一方に設けられた磁石と、固定体および回転体の他方に設けられ、磁石からの磁界変化を検出する磁気センサ部であって、磁石の着磁面に対向して配置され、回転体の回転に伴って正弦波状のA相信号を出力する第1の感磁素子と、磁石の着磁面に対向して配置され、回転体の回転に伴ってA相信号と90°の位相差を有する正弦波状のB相信号を出力する第2の感磁素子と、を有する磁気センサ部と、A相信号およびB相信号に基づいて回転体の回転位置を算出する制御部と、を有し、制御部が、A相信号およびB相信号のそれぞれに含まれる信号成分のうち回転体の回転速度の増加に伴って非線形に減少する信号成分であって基準回転速度時の信号成分に関する複数のパラメータと、基準回転速度に対する回転体の回転速度の比率と複数のパラメータの変化率との関係を示すデータと、を記憶する記憶部と、回転体の現在の回転速度を算出する回転速度算出部と、を有し、制御部は、回転角度算出部によって算出された現在の回転速度の基準回転速度に対する比率と、複数のパラメータの変化率とに基づいて、記憶部に記憶されている複数のパラメータのうち少なくとも1つのパラメータを現在の回転速度における値に換算し、換算された値に基づいて減少する信号成分を補償することで、A相信号およびB相信号を補正する補正処理を実行し、補正されたA相信号およびB相信号を用いて回転体の回転位置を算出する。 In order to achieve the above-mentioned object, the rotary encoder of the present invention is a rotary encoder that detects the rotational position of the rotating body with respect to the fixed body, and includes a magnet provided on one of the fixed body and the rotating body, and the fixed body and the rotating body. A magnetic sensor unit provided on the other side of the rotating body to detect a change in the magnetic field from the magnet, which is arranged to face the magnetizing surface of the magnet and outputs a sinusoidal A-phase signal as the rotating body rotates. A second magnetizing element is arranged so as to face the magnetizing surface of the magnet, and outputs a sinusoidal B-phase signal having a phase difference of 90 ° from the A-phase signal as the rotating body rotates. The magnetic sensor unit has a magnetic sensor unit, and a control unit that calculates the rotation position of the rotating body based on the A-phase signal and the B-phase signal, and the control unit has the A-phase signal and the B-phase signal. Of the signal components contained in each of the above, a signal component that decreases non-linearly as the rotation speed of the rotating body increases, and has a plurality of parameters related to the signal component at the reference rotation speed, and the rotation speed of the rotating body with respect to the reference rotation speed. The control unit has a storage unit that stores data indicating the relationship between the ratio of the above and the rate of change of a plurality of parameters, and a rotation speed calculation unit that calculates the current rotation speed of the rotating body. Based on the ratio of the current rotation speed calculated by the calculation unit to the reference rotation speed and the rate of change of the plurality of parameters, at least one of the plurality of parameters stored in the storage unit is set to the current rotation speed. By converting to the value in (1) and compensating for the signal component that decreases based on the converted value, a correction process for correcting the A-phase signal and the B-phase signal is executed, and the corrected A-phase signal and the B-phase signal are obtained. It is used to calculate the rotation position of the rotating body.

このようなロータリエンコーダによれば、回転速度に応じて減少する信号成分に関するパラメータの換算値を用いて出力信号を補正することで、回転速度によらないほぼ一定の出力信号を得ることができ、高い検出精度を維持することができる。 According to such a rotary encoder, by correcting the output signal by using the converted value of the parameter related to the signal component that decreases according to the rotation speed, it is possible to obtain an almost constant output signal regardless of the rotation speed. High detection accuracy can be maintained.

本発明の一態様では、上記減少する信号成分が、A相信号およびB相信号のそれぞれの高調波成分であり、上記複数のパラメータが、その高調波成分の振幅および位相を含み、制御部は、上記複数のパラメータのうち振幅のみを現在の回転速度に換算し、換算された振幅と、記憶部に記憶されている位相とに基づいて、減少する信号成分を補償するか、あるいは、複数のパラメータのうち振幅および位相の両方を現在の回転速度における値に換算し、換算された振幅および位相に基づいて、減少する信号成分を補償することが好ましい。 In one aspect of the present invention, the reduced signal component is a harmonic component of each of the A-phase signal and the B-phase signal, the plurality of parameters include the amplitude and phase of the harmonic component, and the control unit , Only the amplitude of the above-mentioned plurality of parameters is converted into the current rotation speed, and the decreasing signal component is compensated based on the converted amplitude and the phase stored in the storage unit, or a plurality of signals components are compensated. It is preferred to convert both the amplitude and phase of the parameters to the values at the current rotational speed and compensate for the decreasing signal component based on the converted amplitude and phase.

この場合、上記振幅および位相は、基準回転速度として一定の回転速度で回転体を回転させ、A相信号およびB相信号にそれぞれ所定の信号成分を重畳させて回転体の回転速度を算出したときに、算出された回転速度のリップルが最小になるときの所定の信号成分の振幅および位相であることが好ましい。このような方法により、周波数分析などの解析処理を行うことなく、減少する信号成分を簡単に求めることができる。また、上記基準回転速度は、回転体に連結されたモータの瞬時最大回転速度であることが好ましく、これにより、パラメータとして、補償すべき減少する信号成分の変化が最大になるときの振幅および位相を設定することができ、高い分解能で出力信号の補正を行うことができる。また、上記振幅および位相の算出は、基準回転速度よりも低速で回転体を回転させたときに較正されたロータリエンコーダによって行われることで、算出処理を簡単にすることができる。また、上記高調波成分が、11次および13次の高調波成分であり、その場合、各感磁素子は、3次、5次、および7次の高調波成分がキャンセルされたA相信号およびB相信号を出力するように構成されていることが好ましい。これにより、上述した補正処理は、11次および13次の高調波成分にのみ適用し、3次、5次、および7次の高調波成分には適用する必要がないため、演算処理を簡単にすることができる。 In this case, when the amplitude and phase are calculated by rotating the rotating body at a constant rotation speed as a reference rotation speed and superimposing predetermined signal components on the A-phase signal and the B-phase signal, respectively. In addition, it is preferable that the amplitude and phase of a predetermined signal component when the ripple of the calculated rotation speed is minimized. By such a method, the signal component to be reduced can be easily obtained without performing analysis processing such as frequency analysis. Further, the reference rotation speed is preferably the instantaneous maximum rotation speed of the motor connected to the rotating body, whereby, as parameters, the amplitude and phase when the change of the decreasing signal component to be compensated is maximized. Can be set, and the output signal can be corrected with high resolution. Further, the calculation of the amplitude and the phase can be simplified by performing the calculation by the rotary encoder calibrated when the rotating body is rotated at a speed lower than the reference rotation speed. Further, the harmonic components are 11th and 13th harmonic components, and in that case, each magnetizing element has an A-phase signal in which the 3rd, 5th, and 7th harmonic components are cancelled. It is preferably configured to output a B-phase signal. As a result, the above-mentioned correction processing is applied only to the 11th and 13th harmonic components, and does not need to be applied to the 3rd, 5th, and 7th harmonic components, so that the arithmetic processing can be simplified. can do.

また、本発明の一態様では、磁気センサ部と制御部との間にローパスフィルタが設けられている。これにより、上述のパラメータの変化率を容易に求めることができる。 Further, in one aspect of the present invention, a low-pass filter is provided between the magnetic sensor unit and the control unit. Thereby, the rate of change of the above-mentioned parameters can be easily obtained.

また、制御部が、外部からの要求信号を受信したときに回転体の回転位置を算出することが好ましい。この場合、回転速度算出部が、外部からの要求信号の受信間隔を計測し、計測された受信間隔における回転体の回転変位量から、回転体の現在の回転速度を算出するようになっていてよい。これにより、制御部が実際に回転位置の算出を行う周期を計測しているため、正確な回転速度を算出することができ、出力信号の補正精度を向上させることができる。あるいは、回転速度算出部が、外部との間で予め設定された要求信号の受信間隔における回転体の回転変位量から、回転体の現在の回転速度を算出するようになっていてもよい。これにより、回転速度の算出に関する演算処理を簡単にすることができる。 Further, it is preferable that the control unit calculates the rotation position of the rotating body when the request signal from the outside is received. In this case, the rotation speed calculation unit measures the reception interval of the request signal from the outside, and calculates the current rotation speed of the rotating body from the amount of rotational displacement of the rotating body in the measured reception interval. Good. As a result, since the control unit measures the cycle in which the rotation position is actually calculated, the accurate rotation speed can be calculated, and the correction accuracy of the output signal can be improved. Alternatively, the rotation speed calculation unit may calculate the current rotation speed of the rotating body from the amount of rotational displacement of the rotating body at the reception interval of the request signal preset with the outside. This makes it possible to simplify the arithmetic processing related to the calculation of the rotation speed.

また、本発明のロータリエンコーダは、複数の磁石と、複数の磁気センサ部と、を有していてよく、複数の磁石が、回転体の周方向にN極とS極とが1極ずつ配置された第1の磁石と、回転体の周方向にN極とS極とが交互に複数配置された第2の磁石とを含んでいてよく、複数の磁気センサ部が、第1の磁石に対応する少なくとも1つの磁気センサ部と、第2の磁石に対応する磁気センサ部とを含んでいてもよい。この場合、制御部は、複数の磁気センサ部からの複数のA相信号および複数のB相信号に基づいて回転体の回転位置を算出し、その際に第2の磁石に対応する磁気センサ部に対して上記補正処理を実行することが好ましい。このような構成によれば、回転速度によらずに回転体の回転位置の検出精度を向上させることができる。 Further, the rotary encoder of the present invention may have a plurality of magnets and a plurality of magnetic sensor units, and the plurality of magnets have one north pole and one south pole arranged in the circumferential direction of the rotating body. The first magnet may be included, and a second magnet in which a plurality of N poles and S poles are alternately arranged in the circumferential direction of the rotating body may be included, and a plurality of magnetic sensor units may be attached to the first magnet. It may include at least one corresponding magnetic sensor unit and a magnetic sensor unit corresponding to the second magnet. In this case, the control unit calculates the rotation position of the rotating body based on the plurality of A-phase signals and the plurality of B-phase signals from the plurality of magnetic sensor units, and at that time, the magnetic sensor unit corresponding to the second magnet. It is preferable to execute the above correction process. According to such a configuration, it is possible to improve the detection accuracy of the rotation position of the rotating body regardless of the rotation speed.

また、各感磁素子が、磁気抵抗効果素子を有していることが好ましい。これにより、1つの素子からA相信号およびB相信号を簡単に得ることができる。 Further, it is preferable that each magnetic sensing element has a magnetoresistive effect element. Thereby, the A-phase signal and the B-phase signal can be easily obtained from one element.

本発明によれば、回転体の回転位置を高精度に検出するロータリエンコーダを提供することができる。 According to the present invention, it is possible to provide a rotary encoder that detects the rotational position of a rotating body with high accuracy.

本発明の一実施形態に係るロータリエンコーダの構成を示す概略図である。It is the schematic which shows the structure of the rotary encoder which concerns on one Embodiment of this invention. 本実施形態のロータリエンコーダにおける回転体の絶対角度位置の検出原理を説明するための図である。It is a figure for demonstrating the detection principle of the absolute angle position of the rotating body in the rotary encoder of this embodiment.

以下、図面を参照して、本発明の実施の形態について説明する。本発明のロータリエンコーダは、固定体に対する回転体の回転位置を検出するものである。本明細書では、本発明について、回転体に磁石が設けられ、固定体に磁気センサ部(感磁素子)が設けられているロータリエンコーダを例に挙げて説明するが、ロータリエンコーダの構成はこれに限定されるものではなく、その逆であってもよい。すなわち、本発明は、回転体に感磁素子が設けられ、固定体に磁石が設けられたロータリエンコーダにも適用可能である。
図1は、本発明の一実施形態に係るロータリエンコーダの構成を示す概略図である。図1(a)は、本実施形態のロータリエンコーダの概略斜視図であり、図1(b)は、本実施形態のロータリエンコーダのブロック図である。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. The rotary encoder of the present invention detects the rotational position of a rotating body with respect to a fixed body. In the present specification, the present invention will be described by taking as an example a rotary encoder in which a magnet is provided in a rotating body and a magnetic sensor unit (magnetic sensor) is provided in a fixed body. It is not limited to, and may be vice versa. That is, the present invention can also be applied to a rotary encoder in which a magnetizing element is provided in a rotating body and a magnet is provided in a fixed body.
FIG. 1 is a schematic view showing a configuration of a rotary encoder according to an embodiment of the present invention. FIG. 1A is a schematic perspective view of the rotary encoder of the present embodiment, and FIG. 1B is a block diagram of the rotary encoder of the present embodiment.

本実施形態のロータリエンコーダ10は、図1(a)および図1(b)に示すように、第1の磁石20と、第2の磁石30と、第1の磁気センサ部40と、第2の磁気センサ部50と、第3の磁気センサ部60と、制御部70とを有している。第1の磁石20と第2の磁石30は、回転軸Lを中心として回転する回転体(図示せず)に設けられ、回転体と共に回転可能である。第1の磁気センサ部40と第2の磁気センサ部50と第3の磁気センサ部60は、固定体(図示せず)に設けられている。例えば、回転体は、モータの出力軸に連結され、固定体は、モータのフレームに固定されている。第1から第3の磁気センサ部40,50,60は、それぞれ増幅回路(図示せず)やローパスフィルタ(LPF)80a,80b,80cを介して制御部70に接続されている。 As shown in FIGS. 1 (a) and 1 (b), the rotary encoder 10 of the present embodiment includes a first magnet 20, a second magnet 30, a first magnetic sensor unit 40, and a second magnet. It has a magnetic sensor unit 50, a third magnetic sensor unit 60, and a control unit 70. The first magnet 20 and the second magnet 30 are provided on a rotating body (not shown) that rotates about the rotation axis L, and can rotate together with the rotating body. The first magnetic sensor unit 40, the second magnetic sensor unit 50, and the third magnetic sensor unit 60 are provided on a fixed body (not shown). For example, the rotating body is connected to the output shaft of the motor, and the fixed body is fixed to the frame of the motor. The first to third magnetic sensor units 40, 50, and 60 are connected to the control unit 70 via an amplifier circuit (not shown) and low-pass filters (LPF) 80a, 80b, and 80c, respectively.

第1の磁石20は、回転体の回転軸L上に配置され、その中心が回転軸Lに一致する円盤状の永久磁石(例えばボンド磁石)からなり、周方向にN極とS極とが1極ずつ配置された着磁面21を有している。一方、第2の磁石30は、第1の磁石20の半径方向外側を囲うように配置され、その中心が回転軸Lに一致する円筒状の永久磁石(例えばボンド磁石)からなり、周方向にN極とS極とが交互に複数配置された環状の着磁面31を有している。第2の磁石30の着磁面31には、回転体の半径方向に並列して配置された複数(図示した実施形態では2つ)のトラック32a,32bが形成されている。各トラック32a,32bには、それぞれN極とS極からなる合計n個(nは2以上の整数、例えばN=64)の磁極対が周方向に沿って形成されている。半径方向に隣接する2つのトラック32a,32bは、周方向にずれて配置され、本実施形態では、周方向に1極分ずれて配置されている。 The first magnet 20 is arranged on the rotation axis L of the rotating body, and is composed of a disk-shaped permanent magnet (for example, a bond magnet) whose center coincides with the rotation axis L, and has north and south poles in the circumferential direction. It has a magnetized surface 21 arranged one pole at a time. On the other hand, the second magnet 30 is arranged so as to surround the outer side in the radial direction of the first magnet 20, and is composed of a cylindrical permanent magnet (for example, a bond magnet) whose center coincides with the rotation axis L in the circumferential direction. It has an annular magnetized surface 31 in which a plurality of N poles and S poles are alternately arranged. A plurality of tracks 32a and 32b (two in the illustrated embodiment) arranged in parallel in the radial direction of the rotating body are formed on the magnetized surface 31 of the second magnet 30. A total of n (n is an integer of 2 or more, for example, N = 64) magnetic pole pairs composed of N poles and S poles are formed on the tracks 32a and 32b along the circumferential direction. The two tracks 32a and 32b adjacent to each other in the radial direction are arranged so as to be offset in the circumferential direction, and in the present embodiment, they are arranged so as to be offset by one pole in the circumferential direction.

第1の磁気センサ部40と第2の磁気センサ部50とは、第1の磁石20からの磁界変化を検出するものであり、それぞれ第1の磁石20の着磁面21に対向して配置されている。第3の磁気センサ部60は、第2の磁石30からの磁界変化を検出するものであり、第2の磁石30の着磁面31に対向して配置されている。 The first magnetic sensor unit 40 and the second magnetic sensor unit 50 detect changes in the magnetic field from the first magnet 20, and are arranged so as to face the magnetizing surface 21 of the first magnet 20, respectively. Has been done. The third magnetic sensor unit 60 detects a change in the magnetic field from the second magnet 30, and is arranged so as to face the magnetizing surface 31 of the second magnet 30.

第1の磁気センサ部40は、それぞれが2つの磁気抵抗効果(MR)素子からなる4つの磁気抵抗パターン41〜44から構成された2つのセンサ(感磁素子)を備えている。具体的には、第1の磁気センサ部40は、回転体の回転に伴って正弦波状のA相信号(sin)を出力するA相センサと、回転体の回転に伴ってA相信号と90°の位相差を有する正弦波状のB相信号(cos)を出力するB相センサとを備えている。A相センサは、正弦波状の+a相信号(sin+)を出力する磁気抵抗パターン43と、+a相信号と180°の位相差を有する正弦波状の−a相信号(sin−)を出力する磁気抵抗パターン41とを有している。各磁気抵抗パターン43,41は、直列に接続された2つのMR素子からなり、これら2つの磁気抵抗パターン43,41が並列に接続されてブリッジ回路を構成している。B相センサは、正弦波状の+b相信号(cos+)を出力する磁気抵抗パターン44と、+b相信号と180°の位相差を有する正弦波状の−b相信号(cos−)を出力する磁気抵抗パターン42とを有している。各磁気抵抗パターン44,42は、直列に接続された2つのMR素子からなり、A相センサと同様に、これら2つの磁気抵抗パターン44,42が並列に接続されてブリッジ回路を構成している。 The first magnetic sensor unit 40 includes two sensors (magnetosensitive elements) composed of four magnetoresistive patterns 41 to 44, each of which is composed of two magnetoresistive effect (MR) elements. Specifically, the first magnetic sensor unit 40 includes an A-phase sensor that outputs a sinusoidal A-phase signal (sin) as the rotating body rotates, and an A-phase signal and 90 as the rotating body rotates. It is equipped with a B-phase sensor that outputs a sinusoidal B-phase signal (cos) having a phase difference of °. The A-phase sensor has a reluctance pattern 43 that outputs a sinusoidal + a-phase signal (sin +) and a magnetoresistance that outputs a sinusoidal −a-phase signal (sin−) having a phase difference of 180 ° from the + a-phase signal. It has a pattern 41. Each reluctance pattern 43, 41 is composed of two MR elements connected in series, and these two reluctance patterns 43, 41 are connected in parallel to form a bridge circuit. The B-phase sensor has a reluctance pattern 44 that outputs a sinusoidal + b-phase signal (cos +) and a magnetoresistance that outputs a sinusoidal −b-phase signal (cos−) having a phase difference of 180 ° from the + b-phase signal. It has a pattern 42 and. Each reluctance pattern 44, 42 is composed of two MR elements connected in series, and like the A-phase sensor, these two reluctance patterns 44, 42 are connected in parallel to form a bridge circuit. ..

第2の磁気センサ部50は、第1のホール素子51と、回転軸Lを中心として第1のホール素子51に対して90°離れた位置に配置された第2のホール素子52とを有している。 The second magnetic sensor unit 50 includes a first Hall element 51 and a second Hall element 52 arranged at a position 90 ° away from the first Hall element 51 about the rotation axis L. doing.

第3の磁気センサ部60は、それぞれが2つのMR素子からなる4つの磁気抵抗パターン61〜64から構成された2つのセンサ(感磁素子)を備えている。具体的には、第3の磁気センサ部60は、回転体の回転に伴って正弦波状のA相信号(sin)を出力するA相センサと、回転体の回転に伴ってA相信号と90°の位相差を有する正弦波状のB相信号(cos)を出力するB相センサとを備えている。A相センサは、正弦波状の+a相信号(sin+)を出力する磁気抵抗パターン64と、+a相信号と180°の位相差を有する正弦波状の−a相信号(sin−)を出力する磁気抵抗パターン62とを有している。各磁気抵抗パターン64,62は、直列に接続された2つのMR素子からなり、これら2つの磁気抵抗パターン64,62が並列に接続されてブリッジ回路を構成している。B相センサは、正弦波状の+b相信号(cos+)を出力する磁気抵抗パターン63と、+b相信号と180°の位相差を有する正弦波状の−b相信号(cos−)を出力する磁気抵抗パターン61とを有している。各磁気抵抗パターン63,61は、直列に接続された2つのMR素子からなり、これら2つの磁気抵抗パターン63,61が並列に接続されてブリッジ回路を構成している。 The third magnetic sensor unit 60 includes two sensors (magnetosensitive elements) composed of four magnetoresistive patterns 61 to 64, each of which is composed of two MR elements. Specifically, the third magnetic sensor unit 60 includes an A-phase sensor that outputs a sinusoidal A-phase signal (sin) as the rotating body rotates, and an A-phase signal and 90 as the rotating body rotates. It is equipped with a B-phase sensor that outputs a sinusoidal B-phase signal (cos) having a phase difference of °. The A-phase sensor has a reluctance pattern 64 that outputs a sinusoidal + a-phase signal (sin +) and a magnetoresistance that outputs a sinusoidal −a-phase signal (sin−) having a phase difference of 180 ° from the + a-phase signal. It has a pattern 62 and. Each reluctance pattern 64, 62 is composed of two MR elements connected in series, and these two reluctance patterns 64, 62 are connected in parallel to form a bridge circuit. The B-phase sensor has a reluctance pattern 63 that outputs a sinusoidal + b-phase signal (cos +) and a magnetoresistance that outputs a sinusoidal −b-phase signal (cos−) having a phase difference of 180 ° from the + b-phase signal. It has a pattern 61. Each reluctance pattern 63, 61 is composed of two MR elements connected in series, and these two reluctance patterns 63, 61 are connected in parallel to form a bridge circuit.

制御部70は、中央演算処理装置(CPU)、ランダムアクセスメモリ(RAM)、読み出し専用メモリ(ROM)などを備えたマイクロコンピュータから構成され、第1から第3の磁気センサ部40,50,60から出力される出力信号に基づいて、回転体の回転位置(絶対角度位置)を算出するものである。 The control unit 70 is composed of a microcomputer including a central processing unit (CPU), a random access memory (RAM), a read-only memory (ROM), and the like, and the first to third magnetic sensor units 40, 50, 60. The rotation position (absolute angle position) of the rotating body is calculated based on the output signal output from.

ここで、図2を参照して、本実施形態における回転体の絶対角度位置の検出原理について説明する。図2(a)は、特定の基準位置からの回転体の機械角の変化に対して、第1の磁石の磁極および強度、第1の磁気センサ部からの出力信号、第1のホール素子からの出力信号、および第2のホール素子からの出力信号を示している。図2(b)は、その出力信号と電気角θとの関係を示している。ここで、機械角とは、幾何学的または機械的に定められる角度を指し、電気角とは、感磁素子からの出力信号の位相から定められる角度を指す。なお、図2(a)では、第1および第2のホール素子からの出力信号は、コンパレータを介して得られるHまたはLの二値信号で示されている。 Here, with reference to FIG. 2, the principle of detecting the absolute angular position of the rotating body in the present embodiment will be described. FIG. 2A shows the magnetic poles and strengths of the first magnet, the output signal from the first magnetic sensor unit, and the first Hall element with respect to the change in the mechanical angle of the rotating body from a specific reference position. The output signal of the above and the output signal from the second Hall element are shown. FIG. 2B shows the relationship between the output signal and the electric angle θ. Here, the mechanical angle refers to an angle determined geometrically or mechanically, and the electric angle refers to an angle determined from the phase of the output signal from the magnetic sensing element. In FIG. 2A, the output signals from the first and second Hall elements are represented by H or L binary signals obtained via the comparator.

回転体が1回転すると、第1の磁石20も1回転(機械角で360°回転)する。そのため、第1の磁気センサ部40からは、図2(a)に示すように、それぞれ2周期分、すなわち電気角(出力信号の位相によって定まる角度)で720°分のA相信号(sin)およびB相信号(cos)が出力される。これらA相信号およびB相信号から、電気角θは、図2(b)に示すように、θ=tan−1(sin/cos)という関係式を用いて算出される。ただし、回転体が機械角で360°回転する間、電気角では720°回転するため、電気角θが算出されただけでは、回転体の絶対角度位置を求めることができない。そこで、回転軸Lを中心として互いに90°離れた位置に配置された2つのホール素子51,52が利用される。すなわち、2つのホール素子51,52から出力される出力信号から、第1の磁石20が発生する磁界の極性が判別され、そこから、図2(a)の一点鎖線で示すように、機械角による回転位置が平面座標系のどの象限に位置しているのかが判別される。こうして、回転体の絶対角度位置を算出することができる。 When the rotating body makes one rotation, the first magnet 20 also makes one rotation (rotates by 360 ° in the mechanical angle). Therefore, from the first magnetic sensor unit 40, as shown in FIG. 2A, the A-phase signal (sin) for two cycles, that is, the electric angle (angle determined by the phase of the output signal) of 720 °. And the B phase signal (cos) is output. From these A-phase signals and B-phase signals, the electric angle θ is calculated using the relational expression θ = tan -1 (sin / cos) as shown in FIG. 2 (b). However, since the rotating body rotates 360 ° at the mechanical angle and 720 ° at the electric angle, the absolute angle position of the rotating body cannot be obtained only by calculating the electric angle θ. Therefore, two Hall elements 51 and 52 arranged at positions 90 ° apart from each other with respect to the rotation axis L are used. That is, the polarity of the magnetic field generated by the first magnet 20 is determined from the output signals output from the two Hall elements 51 and 52, and from there, the mechanical angle is determined as shown by the alternate long and short dash line in FIG. 2A. It is determined in which quadrant of the plane coordinate system the rotation position is located. In this way, the absolute angular position of the rotating body can be calculated.

一方で、第3の磁気センサ部60からは、回転体が第2の磁石30の周方向における1対の磁極分だけ回転する度に、図2(a)に示したものと同様に、それぞれ2周期分(すなわち電気角で720°分)のA相信号(sin)およびB相信号(cos)が出力される。したがって、第3の磁気センサ部60から出力されるA相信号およびB相信号からも、上述した第1の磁気センサ部40と同様の原理で、第2の磁石30の1対の磁極に相当する角度内での回転体の絶対角度位置が算出される。第3の磁気センサ部60による絶対角度位置の検出分解能は第1の磁気センサ部40によるそれよりも高いため、これらを組み合わせることで、高い分解能で回転体の絶対角度位置を算出することができる。 On the other hand, from the third magnetic sensor unit 60, each time the rotating body rotates by a pair of magnetic poles in the circumferential direction of the second magnet 30, the same as that shown in FIG. 2A, respectively. A-phase signal (sin) and B-phase signal (cos) for two cycles (that is, 720 ° in electrical angle) are output. Therefore, the A-phase signal and the B-phase signal output from the third magnetic sensor unit 60 also correspond to a pair of magnetic poles of the second magnet 30 by the same principle as the first magnetic sensor unit 40 described above. The absolute angular position of the rotating body within the angle to be magnetized is calculated. Since the detection resolution of the absolute angular position by the third magnetic sensor unit 60 is higher than that by the first magnetic sensor unit 40, the absolute angular position of the rotating body can be calculated with high resolution by combining these. ..

本実施形態のロータリエンコーダ10では、図1(b)に示すように、各磁気センサ部40,50,60と制御部70のADC71との間にアナログのローパスフィルタ(LPF)80a,80b,80cが設けられている。各磁気センサ部40,50,60からの出力信号には高調波成分が含まれるが、このLPF8a,80b,80cによって、特に第3の磁気センサ部60からのA相信号およびB相信号のそれぞれの高調波成分が回転体の回転速度に応じて減少することが、本発明者らによって確認されている。具体的には、第3の磁気センサ部60のA相信号の11次および13次の高調波成分とB相信号の11次および13次の高調波成分とは、LPF80cのゲイン周波数特性に対応するように、回転速度の増加に伴って振幅が非線形に減少することが確認されている。このとき得られるA相信号およびB相信号から算出されるリサージュ波形(図2(b)の破線参照)は、11次および13次の高調波成分が含まれるときの12角形から理想的な円形に近づくため、それらの高調波成分は減衰されることが好ましいとも考えられる。しかしながら、本実施形態では、設計誤差や組み付け誤差などを除去するためのロータリエンコーダ10の較正が、製造直後に回転体を非常に低速(例えば60rpm)で回転させて行われる。そのため、較正に用いられるA相信号およびB相信号にはそれぞれ11次および13次の高調波成分がほとんど含まれている。したがって、回転体の回転速度の増加に伴って11次および13次の高調波成分が減衰すると、そのとき得られる出力波形は較正時のものから変形してしまい、結果的に検出誤差が増加することになる。 In the rotary encoder 10 of the present embodiment, as shown in FIG. 1B, analog low-pass filters (LPF) 80a, 80b, 80c are provided between the magnetic sensor units 40, 50, 60 and the ADC 71 of the control unit 70. Is provided. The output signals from the magnetic sensor units 40, 50, and 60 contain harmonic components. Due to the LPF8a, 80b, 80c, in particular, the A-phase signal and the B-phase signal from the third magnetic sensor unit 60, respectively. It has been confirmed by the present inventors that the harmonic component of the above decreases according to the rotation speed of the rotating body. Specifically, the 11th and 13th harmonic components of the A phase signal of the third magnetic sensor unit 60 and the 11th and 13th harmonic components of the B phase signal correspond to the gain frequency characteristics of the LPF80c. As such, it has been confirmed that the amplitude decreases non-linearly as the rotation speed increases. The Lissajous waveform calculated from the A-phase signal and the B-phase signal obtained at this time (see the broken line in FIG. 2B) is an ideal circle from a dodecagon when the 11th and 13th harmonic components are included. It is also considered that those harmonic components are preferably attenuated in order to approach. However, in the present embodiment, the rotary encoder 10 for removing design errors, assembly errors, and the like is calibrated by rotating the rotating body at a very low speed (for example, 60 rpm) immediately after manufacturing. Therefore, the A-phase signal and the B-phase signal used for calibration contain most of the 11th and 13th harmonic components, respectively. Therefore, if the 11th and 13th harmonic components are attenuated as the rotation speed of the rotating body increases, the output waveform obtained at that time is deformed from that at the time of calibration, and as a result, the detection error increases. It will be.

そこで、本実施形態では、回転体の回転速度によらず安定した検出精度を維持するために、制御部70が、回転速度の増加に伴って非線形に減少する信号成分を補償することで第3の磁気センサ部60からの出力信号を補正する機能を有している。具体的には、制御部70は、基準回転速度時の第3の磁気センサ部60からのA相信号およびB相信号のそれぞれの高調波成分に関するパラメータと、回転速度の変化率(基準回転速度と回転体の回転速度との比率)とパラメータの変化率との関係を示すデータとを記憶している。そして、基準回転速度に対する現在の回転速度の比率と、上記データとに基づいて、記憶されているパラメータを現在の回転速度における値に換算し、換算された値に基づいてA相信号およびB相信号を補正する。こうして、回転速度の増加に伴って非線形に減少する高調波成分を補償することで、回転速度によらないほぼ一定の出力信号を得ることができ、高い検出精度を維持することができる。 Therefore, in the present embodiment, in order to maintain stable detection accuracy regardless of the rotation speed of the rotating body, the control unit 70 compensates for the signal component that decreases non-linearly with the increase in the rotation speed. It has a function of correcting the output signal from the magnetic sensor unit 60 of the above. Specifically, the control unit 70 has parameters related to the harmonic components of the A-phase signal and the B-phase signal from the third magnetic sensor unit 60 at the reference rotation speed, and the rate of change of the rotation speed (reference rotation speed). And the data showing the relationship between the rotation speed of the rotating body) and the rate of change of the parameters are stored. Then, based on the ratio of the current rotation speed to the reference rotation speed and the above data, the stored parameters are converted into the values at the current rotation speed, and the A-phase signal and the B-phase are converted based on the converted values. Correct the signal. In this way, by compensating for the harmonic component that decreases non-linearly with the increase in the rotation speed, a substantially constant output signal regardless of the rotation speed can be obtained, and high detection accuracy can be maintained.

以下では、再び図1(b)を参照しながら、主にこの補正処理に関する機能に着目して、制御部70の機能的な構成について説明する。 Hereinafter, the functional configuration of the control unit 70 will be described with reference to FIG. 1B again, focusing mainly on the function related to this correction process.

制御部70は、A/D変換部(ADC)71と、角度算出部72と、補正処理部73とを有し、補正処理部73は、記憶部74と、通信周期計測部75と、回転速度算出部76とを有している。 The control unit 70 includes an A / D conversion unit (ADC) 71, an angle calculation unit 72, and a correction processing unit 73, and the correction processing unit 73 rotates with a storage unit 74, a communication cycle measurement unit 75, and so on. It has a speed calculation unit 76.

ADC71は、第1から第3の磁気センサ部40,50,60から出力されたアナログ信号をデジタル信号に変換して角度算出部72および補正処理部73へ出力する。角度算出部72は、ADC71でデジタル変換された第1から第3の磁気センサ部40,50,60からの出力信号に基づいて、上述した回転体の回転位置を算出する。このとき、角度算出部72は、補正処理部73から、第3の磁気センサ部60のA相信号およびB相信号のそれぞれにおいて減少する信号成分を補償するための補正情報を取得する。そして、角度算出部72は、取得した補正情報に基づいて上記出力信号を補正し、上述の算出方法により、補正された出力信号を用いて回転体の回転位置を算出する。 The ADC 71 converts the analog signals output from the first to third magnetic sensor units 40, 50, 60 into digital signals and outputs them to the angle calculation unit 72 and the correction processing unit 73. The angle calculation unit 72 calculates the rotation position of the rotating body described above based on the output signals from the first to third magnetic sensor units 40, 50, 60 digitally converted by the ADC 71. At this time, the angle calculation unit 72 acquires correction information from the correction processing unit 73 for compensating for the signal components that decrease in each of the A-phase signal and the B-phase signal of the third magnetic sensor unit 60. Then, the angle calculation unit 72 corrects the output signal based on the acquired correction information, and calculates the rotation position of the rotating body using the corrected output signal by the above calculation method.

補正処理部73は、記憶部74から、基準回転速度時のA相信号およびB相信号のそれぞれの高調波成分に関するパラメータと、回転速度の変化率(基準回転速度と回転体の回転速度との比率)と上記パラメータの変化率との関係を示すデータと取得する。そして、補正処理部73は、そのデータと、回転速度算出部76によって算出された現在の回転速度の基準回転速度に対する比率とに基づいて、上記パラメータを現在の回転速度における値に換算する。 From the storage unit 74, the correction processing unit 73 determines the parameters related to the harmonic components of the A-phase signal and the B-phase signal at the reference rotation speed, and the rate of change of the rotation speed (reference rotation speed and rotation speed of the rotating body). Data showing the relationship between the ratio) and the rate of change of the above parameters is acquired. Then, the correction processing unit 73 converts the above parameter into a value at the current rotation speed based on the data and the ratio of the current rotation speed calculated by the rotation speed calculation unit 76 to the reference rotation speed.

記憶部74は、上述の高調波成分に関するパラメータ、具体的には、基準回転速度時における、A相信号の11次および13次の高調波成分のそれぞれの振幅および位相と、B相信号の11次および13次の高調波成分のそれぞれの振幅および位相とを記憶する。ここで、高調波成分の振幅は、上述の通り、回転速度に伴って非線形に変化するが、位相も、例えばLPF80a〜80cの位相周波数特性に対応して、回転速度に伴って非線形に変化する。そこで、記憶部74は、回転体の回転速度とそれぞれの振幅との関係、具体的には、回転速度の変化率(基準回転速度と回転体の回転速度との比率)とそれぞれの振幅の変化率との関係を示すデータ(テーブルなど)を記憶する。また、記憶部74は、回転体の回転速度の変化率(基準回転速度と回転体の回転速度との比率)とそれぞれの位相の変化率との関係を示すデータ(テーブルなど)も記憶する。したがって、補正処理を行う場合、記憶部74に記憶されている基準回転速度時の振幅および位相は、同様に記憶部74に記憶されているそれぞれの変化率のデータに基づいて、補正処理部73で現在の回転速度での振幅および位相に換算された後、角度算出部72へと送られる。そして、角度算出部72では、補正処理部73で換算された振幅および位相から、減衰した信号成分を補償する補正信号が生成され、これを足し合わせることで出力信号が補正される。高調波成分の振幅および位相の変化率に関するデータは、例えば、LPF80a〜80cのゲイン周波数特性および位相周波数特性に基づいてそれぞれ求めることができる。なお、演算処理を簡単にするために、高調波成分の位相については、回転速度によらず一定であるとして(すなわち変化率をゼロとして)補正処理を行うようになっていてもよい。 The storage unit 74 contains parameters related to the above-mentioned harmonic components, specifically, the amplitudes and phases of the 11th and 13th harmonic components of the A-phase signal at the reference rotation speed, and 11 of the B-phase signal. The amplitude and phase of the next and thirteenth harmonic components are stored. Here, as described above, the amplitude of the harmonic component changes non-linearly with the rotation speed, but the phase also changes non-linearly with the rotation speed, for example, corresponding to the phase frequency characteristics of LPF80a to 80c. .. Therefore, the storage unit 74 describes the relationship between the rotation speed of the rotating body and the respective amplitudes, specifically, the rate of change in the rotation speed (the ratio between the reference rotation speed and the rotation speed of the rotating body) and the change in each amplitude. Store data (table, etc.) that shows the relationship with the rate. The storage unit 74 also stores data (table or the like) showing the relationship between the rate of change in the rotation speed of the rotating body (ratio of the reference rotation speed and the rotation speed of the rotating body) and the rate of change in each phase. Therefore, when the correction processing is performed, the amplitude and phase at the reference rotation speed stored in the storage unit 74 are similarly stored in the storage unit 74 based on the data of the respective rate of change, and the correction processing unit 73. After being converted into the amplitude and phase at the current rotation speed, it is sent to the angle calculation unit 72. Then, the angle calculation unit 72 generates a correction signal for compensating for the attenuated signal component from the amplitude and phase converted by the correction processing unit 73, and adds the correction signals to correct the output signal. Data on the amplitude and phase change rate of the harmonic components can be obtained, for example, based on the gain frequency characteristics and the phase frequency characteristics of the LPFs 80a to 80c, respectively. In order to simplify the arithmetic processing, the phase of the harmonic component may be corrected on the assumption that it is constant regardless of the rotation speed (that is, the rate of change is zero).

通信周期計測部75は、ロータリエンコーダ10の外部にある上位の制御装置(図示せず)と制御部70との通信周期を計測する。例えば、制御部70は、上位の制御装置からの要求信号を受信したときに回転体の回転速度を算出するようになっているが、通信周期計測部75は、制御部70が要求信号を受信した時刻を計測し、その時刻から要求信号の受信間隔を計測する。 The communication cycle measuring unit 75 measures the communication cycle between the upper control device (not shown) outside the rotary encoder 10 and the control unit 70. For example, the control unit 70 calculates the rotation speed of the rotating body when it receives a request signal from a higher-level control device, but the communication cycle measurement unit 75 receives the request signal from the control unit 70. The time is measured, and the reception interval of the request signal is measured from that time.

回転速度算出部76は、こうして通信周期計測部75が計測した受信間隔と、角度算出部72から取得した回転体の回転位置の情報とに基づいて、所定の時間間隔における回転体の回転変位量を算出し、そこから回転体の現在の回転速度を算出する。したがって、回転速度算出部76は、制御部70が実際に回転位置の算出を行う周期を計測しているため、実際の通信周期が変動した場合にも正確な回転速度を算出することができ、その結果、補正処理部73による補正精度を向上させることができる。なお、制御部70が上位の制御装置から要求信号を受信する周期(受信間隔)は予め設定されているため、演算処理を簡単にするために、特許文献1に記載されているように、固定された設定値を用いて回転速度を算出するようになっていてもよい。 The rotation speed calculation unit 76 is based on the reception interval measured by the communication cycle measurement unit 75 and the information on the rotation position of the rotation body acquired from the angle calculation unit 72, and the rotation displacement amount of the rotation body at a predetermined time interval. Is calculated, and the current rotation speed of the rotating body is calculated from it. Therefore, since the rotation speed calculation unit 76 measures the cycle in which the control unit 70 actually calculates the rotation position, it is possible to calculate an accurate rotation speed even when the actual communication cycle fluctuates. As a result, the correction accuracy by the correction processing unit 73 can be improved. Since the cycle (reception interval) for the control unit 70 to receive the request signal from the upper control device is set in advance, it is fixed as described in Patent Document 1 in order to simplify the arithmetic processing. The rotation speed may be calculated using the set value.

記憶部76に記憶されるパラメータの設定は、ロータリエンコーダ10が工場から出荷される前に、低速(例えば60rpm)で較正済みのロータリエンコーダ10を用いて、以下のように行われる。まず、回転体に連結されたモータを一定の回転速度で回転させ、A相信号およびB相信号を出力させる。ここで、回転速度が一定であるため、出力信号が理想的なものでなく誤差を含んでいると、そこから算出される回転体の回転速度にはリップルは現れるが、誤差のない理想的な出力信号であればリップルが現れることはない。そこで、回転速度に伴って減少する信号成分を含むA相信号およびB相信号にそれぞれ所定の信号成分を重畳させ、それらから回転体の回転速度を算出する。そして、減少した信号成分を補償するように重畳させた信号成分の振幅および位相を最適な値に調整して、算出される回転速度のリップルを最小にする。このときのそれぞれの振幅および位相がパラメータとして設定される。このような方法により、周波数分析などの解析処理を行うことなく、減少する信号成分を簡単に求めることができる。なお、パラメータを設定する際のモータの回転速度は、瞬時最大回転速度(例えば6000rpm)であることが好ましい。これにより、補正パラメータとして、補償すべき減少する信号成分が最大になるときの振幅および位相を設定することができ、高い分解能で出力信号の補正を行うことができる。 The parameters stored in the storage unit 76 are set as follows using the rotary encoder 10 calibrated at a low speed (for example, 60 rpm) before the rotary encoder 10 is shipped from the factory. First, the motor connected to the rotating body is rotated at a constant rotation speed to output an A-phase signal and a B-phase signal. Here, since the rotation speed is constant, if the output signal is not ideal and contains an error, ripple appears in the rotation speed of the rotating body calculated from it, but it is ideal without error. If it is an output signal, ripple will not appear. Therefore, a predetermined signal component is superimposed on each of the A-phase signal and the B-phase signal including the signal component that decreases with the rotation speed, and the rotation speed of the rotating body is calculated from them. Then, the amplitude and phase of the superimposed signal components are adjusted to the optimum values so as to compensate for the reduced signal components, and the ripple of the calculated rotation speed is minimized. The respective amplitudes and phases at this time are set as parameters. By such a method, the signal component to be reduced can be easily obtained without performing analysis processing such as frequency analysis. The rotation speed of the motor when setting the parameters is preferably the instantaneous maximum rotation speed (for example, 6000 rpm). As a result, the amplitude and phase when the decreasing signal component to be compensated is maximized can be set as the correction parameters, and the output signal can be corrected with high resolution.

感磁素子には温度特性があるため、出力信号が温度変化する場合、同様に高調波成分の振幅も温度変化する。そこで、温度検出手段を用いて、第3の磁気センサ部60の温度変化を監視し、その監視結果に基づいて高調波成分の補正処理を行うようになっていてもよい。あるいは、温度検出手段と加熱手段を用いて、第3の磁気センサ部60の温度を一定に調節するようになっていてもよい。 Since the magnetic sensitive element has a temperature characteristic, when the output signal changes in temperature, the amplitude of the harmonic component also changes in temperature. Therefore, the temperature change of the third magnetic sensor unit 60 may be monitored by using the temperature detecting means, and the harmonic component may be corrected based on the monitoring result. Alternatively, the temperature of the third magnetic sensor unit 60 may be adjusted to be constant by using the temperature detecting means and the heating means.

なお、本実施形態では、上述した11次および13次以外の奇数次の高調波成分、例えば、3次、5次、および7次の高調波成分については、配線パターンを調整するなどの公知の方法により、キャンセルされるようになっている。すなわち、第3の磁気センサ部60のA相センサおよびB相センサは、3次、5次、および7次の高調波成分がキャンセルされたA相信号およびB相信号をそれぞれ出力するように構成されている。これにより、上述した補正処理は、11次および13次の高調波成分にのみ適用し、3次、5次、および7次の高調波成分には適用する必要がないため、演算処理を簡単にすることができる。 In the present embodiment, it is known that the wiring pattern is adjusted for odd-order harmonic components other than the above-mentioned 11th-order and 13th-order harmonic components, for example, the third-order, fifth-order, and seventh-order harmonic components. It is designed to be canceled by the method. That is, the A-phase sensor and the B-phase sensor of the third magnetic sensor unit 60 are configured to output the A-phase signal and the B-phase signal in which the third-order, fifth-order, and seventh-order harmonic components are canceled, respectively. Has been done. As a result, the above-mentioned correction processing is applied only to the 11th and 13th harmonic components, and does not need to be applied to the 3rd, 5th, and 7th harmonic components, so that the arithmetic processing can be simplified. can do.

10 ロータリエンコーダ
20 第1の磁石
21 着磁面
30 第2の磁石
31 着磁面
32a,32b トラック
40 第1の磁気センサ部
41〜44 磁気抵抗パターン
50 第2の磁気センサ部
51 第1のホール素子
52 第2のホール素子
60 第3の磁気センサ部
61〜64 磁気抵抗パターン
70 制御部
71 A/D変換部(ADC)
72 角度算出部
73 補正処理部
74 記憶部
75 通信周期計測部
76 回転速度算出部
80a〜80c ローパスフィルタ(LPF)
10 Rotary encoder 20 First magnet 21 Magnetized surface 30 Second magnet 31 Magnetized surface 32a, 32b Track 40 First magnetic sensor section 41-44 Magnetic resistance pattern 50 Second magnetic sensor section 51 First hole Element 52 Second Hall element 60 Third magnetic sensor unit 61-64 Magnetic resistance pattern 70 Control unit 71 A / D conversion unit (ADC)
72 Angle calculation unit 73 Correction processing unit 74 Storage unit 75 Communication cycle measurement unit 76 Rotation speed calculation unit 80a to 80c Low-pass filter (LPF)

Claims (14)

固定体に対する回転体の回転位置を検出するロータリエンコーダであって、
前記固定体および前記回転体の一方に設けられた磁石と、
前記固定体および前記回転体の他方に設けられ、前記磁石からの磁界変化を検出する磁気センサ部であって、前記磁石の着磁面に対向して配置され、前記回転体の回転に伴って正弦波状のA相信号を出力する第1の感磁素子と、前記磁石の着磁面に対向して配置され、前記回転体の回転に伴って前記A相信号と90°の位相差を有する正弦波状のB相信号を出力する第2の感磁素子とを有する磁気センサ部と、
前記A相信号および前記B相信号に基づいて前記回転体の回転位置を算出する制御部と、を有し、
前記制御部が、
前記A相信号および前記B相信号のそれぞれに含まれる信号成分のうち前記回転体の回転速度の増加に伴って非線形に減少する信号成分であって基準回転速度時の前記信号成分に関する複数のパラメータと、前記基準回転速度に対する前記回転体の回転速度の比率と前記複数のパラメータの変化率との関係を示すデータと、を記憶する記憶部と、
前記回転体の現在の回転速度を算出する回転速度算出部と、を有し、
前記制御部は、前記回転角度算出部によって算出された前記現在の回転速度の前記基準回転速度に対する比率と、前記複数のパラメータの変化率とに基づいて、前記記憶部に記憶されている前記複数のパラメータのうち少なくとも1つのパラメータを前記現在の回転速度における値に換算し、該換算された値に基づいて前記減少する信号成分を補償することで、前記A相信号および前記B相信号を補正する補正処理を実行し、該補正された前記A相信号および前記B相信号を用いて前記回転体の回転位置を算出する、ロータリエンコーダ。
A rotary encoder that detects the rotational position of a rotating body with respect to a fixed body.
A magnet provided on one of the fixed body and the rotating body,
A magnetic sensor unit provided on the other side of the fixed body and the rotating body to detect a change in the magnetic field from the magnet, which is arranged so as to face the magnetizing surface of the magnet and accompanies the rotation of the rotating body. The first magnetizing element that outputs a sinusoidal A-phase signal is arranged so as to face the magnetizing surface of the magnet, and has a phase difference of 90 ° from the A-phase signal as the rotating body rotates. A magnetic sensor unit having a second magnetic sensing element that outputs a sinusoidal B-phase signal, and
It has a control unit that calculates the rotation position of the rotating body based on the A-phase signal and the B-phase signal.
The control unit
Among the signal components contained in each of the A-phase signal and the B-phase signal, a signal component that decreases non-linearly with an increase in the rotation speed of the rotating body, and a plurality of parameters relating to the signal component at the reference rotation speed. A storage unit that stores data indicating the relationship between the ratio of the rotation speed of the rotating body to the reference rotation speed and the rate of change of the plurality of parameters.
It has a rotation speed calculation unit for calculating the current rotation speed of the rotating body, and has a rotation speed calculation unit.
The control unit is stored in the storage unit based on the ratio of the current rotation speed calculated by the rotation angle calculation unit to the reference rotation speed and the rate of change of the plurality of parameters. The A-phase signal and the B-phase signal are corrected by converting at least one of the parameters of the above to a value at the current rotation speed and compensating for the decreasing signal component based on the converted value. A rotary encoder that executes a correction process to calculate the rotation position of the rotating body using the corrected A-phase signal and the B-phase signal.
前記減少する信号成分が、前記A相信号および前記B相信号のそれぞれの高調波成分であり、前記複数のパラメータが、前記高調波成分の振幅および位相を含む、請求項1に記載のロータリエンコーダ。 The rotary encoder according to claim 1, wherein the decreasing signal component is a harmonic component of each of the A-phase signal and the B-phase signal, and the plurality of parameters include the amplitude and phase of the harmonic component. .. 前記制御部は、前記複数のパラメータのうち前記振幅のみを前記現在の回転速度に換算し、該換算された振幅と、前記記憶部に記憶されている前記位相とに基づいて、前記減少する信号成分を補償する、請求項2に記載のロータリエンコーダ。 The control unit converts only the amplitude of the plurality of parameters into the current rotation speed, and the decreasing signal is based on the converted amplitude and the phase stored in the storage unit. The rotary encoder according to claim 2, wherein the component is compensated. 前記制御部は、前記複数のパラメータのうち前記振幅および位相の両方を前記現在の回転速度における値に換算し、該換算された振幅および位相に基づいて、前記減少する信号成分を補償する、請求項2に記載のロータリエンコーダ。 The control unit converts both the amplitude and the phase of the plurality of parameters into values at the current rotation speed, and compensates for the decreasing signal component based on the converted amplitude and phase. Item 2. The rotary encoder according to Item 2. 前記振幅および位相は、前記基準回転速度として一定の回転速度で回転体を回転させ、前記A相信号および前記B相信号にそれぞれ所定の信号成分を重畳させて前記回転体の回転速度を算出したときに、該算出された回転速度のリップルが最小になるときの前記所定の信号成分の振幅および位相である、請求項2から4のいずれか1項に記載のロータリエンコーダ。 For the amplitude and phase, the rotation speed of the rotating body was calculated by rotating the rotating body at a constant rotation speed as the reference rotation speed and superimposing predetermined signal components on the A-phase signal and the B-phase signal, respectively. The rotary encoder according to any one of claims 2 to 4, which is the amplitude and phase of the predetermined signal component when the ripple of the calculated rotation speed is minimized. 前記基準回転速度が、前記回転体に連結されたモータの瞬時最大回転速度である、請求項5に記載のロータリエンコーダ。 The rotary encoder according to claim 5, wherein the reference rotation speed is the instantaneous maximum rotation speed of the motor connected to the rotating body. 前記振幅および位相の算出は、前記基準回転速度よりも低速で前記回転体を回転させたときに較正された前記ロータリエンコーダによって行われる、請求項5または6に記載のロータリエンコーダ。 The rotary encoder according to claim 5 or 6, wherein the calculation of the amplitude and the phase is performed by the rotary encoder calibrated when the rotating body is rotated at a speed lower than the reference rotation speed. 前記高調波成分が、11次および13次の高調波成分である、請求項2から7のいずれか1項に記載のロータリエンコーダ。 The rotary encoder according to any one of claims 2 to 7, wherein the harmonic component is an 11th-order and 13th-order harmonic component. 前記各感磁素子は、3次、5次、および7次の高調波成分がキャンセルされた前記A相信号および前記B相信号を出力するように構成されている、請求項8に記載のロータリエンコーダ。 The rotary according to claim 8, wherein each of the magnetic sensing elements is configured to output the A-phase signal and the B-phase signal in which the third-order, fifth-order, and seventh-order harmonic components are canceled. Encoder. 前記磁気センサ部と前記制御部との間にローパスフィルタが設けられている、請求項1から9のいずれか1項に記載のロータリエンコーダ。 The rotary encoder according to any one of claims 1 to 9, wherein a low-pass filter is provided between the magnetic sensor unit and the control unit. 前記制御部が、外部からの要求信号を受信したときに前記回転体の回転位置を算出し、
前記回転速度算出部が、前記外部からの要求信号の受信間隔を計測し、該計測された受信間隔における前記回転体の回転変位量から、前記回転体の現在の回転速度を算出する、請求項1から10のいずれか1項に記載のロータリエンコーダ。
When the control unit receives a request signal from the outside, the rotation position of the rotating body is calculated, and the rotation position is calculated.
The claim that the rotation speed calculation unit measures the reception interval of the request signal from the outside, and calculates the current rotation speed of the rotating body from the rotational displacement amount of the rotating body in the measured reception interval. The rotary encoder according to any one of 1 to 10.
前記制御部が、外部からの要求信号を受信したときに前記回転体の回転位置を算出し、
前記回転速度算出部が、外部との間で予め設定された前記要求信号の受信間隔における前記回転体の回転変位量から、前記回転体の現在の回転速度を算出する、請求項1から11のいずれか1項に記載のロータリエンコーダ。
When the control unit receives a request signal from the outside, the rotation position of the rotating body is calculated, and the rotation position is calculated.
Claims 1 to 11, wherein the rotation speed calculation unit calculates the current rotation speed of the rotating body from the amount of rotational displacement of the rotating body at a reception interval of the request signal preset with the outside. The rotary encoder according to any one item.
複数の前記磁石と、複数の前記磁気センサ部と、を有し、
前記複数の磁石が、前記回転体の周方向にN極とS極とが1極ずつ配置された第1の磁石と、前記回転体の周方向にN極とS極とが交互に複数配置された第2の磁石とを含み、
前記複数の磁気センサ部が、前記第1の磁石に対応する少なくとも1つの磁気センサ部と、前記第2の磁石に対応する磁気センサ部とを含み、
前記制御部は、前記複数の磁気センサ部からの複数の前記A相信号および複数の前記B相信号に基づいて前記回転体の回転位置を算出し、その際に前記第2の磁石に対応する磁気センサ部に対して前記補正処理を実行する、請求項1から12のいずれか1項に記載のロータリエンコーダ。
It has a plurality of the magnets and a plurality of the magnetic sensor units.
The plurality of magnets are a first magnet in which one north pole and one south pole are arranged in the circumferential direction of the rotating body, and a plurality of north poles and south poles are alternately arranged in the circumferential direction of the rotating body. Including the second magnet
The plurality of magnetic sensor units include at least one magnetic sensor unit corresponding to the first magnet and a magnetic sensor unit corresponding to the second magnet.
The control unit calculates the rotation position of the rotating body based on the plurality of A-phase signals and the plurality of B-phase signals from the plurality of magnetic sensor units, and at that time, corresponds to the second magnet. The rotary encoder according to any one of claims 1 to 12, which executes the correction process on the magnetic sensor unit.
前記各感磁素子が、磁気抵抗効果素子を有する、請求項1から13のいずれか1項に記載のロータリエンコーダ。 The rotary encoder according to any one of claims 1 to 13, wherein each magnetizing element has a magnetoresistive effect element.
JP2017024885A 2017-02-14 2017-02-14 Rotary encoder Active JP6842943B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2017024885A JP6842943B2 (en) 2017-02-14 2017-02-14 Rotary encoder
CN201810150413.6A CN108426587B (en) 2017-02-14 2018-02-13 Rotary encoder
US15/895,272 US10598517B2 (en) 2017-02-14 2018-02-13 Rotary encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017024885A JP6842943B2 (en) 2017-02-14 2017-02-14 Rotary encoder

Publications (2)

Publication Number Publication Date
JP2018132359A JP2018132359A (en) 2018-08-23
JP6842943B2 true JP6842943B2 (en) 2021-03-17

Family

ID=63247389

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017024885A Active JP6842943B2 (en) 2017-02-14 2017-02-14 Rotary encoder

Country Status (1)

Country Link
JP (1) JP6842943B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI821929B (en) * 2022-03-03 2023-11-11 大陸商信泰光學(深圳)有限公司 Monochromator and self-diagnosis method thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005140737A (en) * 2003-11-10 2005-06-02 Yaskawa Electric Corp Magnetic encoder device
JP4713123B2 (en) * 2004-10-13 2011-06-29 株式会社ミツトヨ Encoder output signal correction device
JP2015114138A (en) * 2013-12-10 2015-06-22 日本電産サンキョー株式会社 Magnetic sensor device, magnetic encoder device, and magnetic sensor
JP6370580B2 (en) * 2014-03-28 2018-08-08 Dmg森精機株式会社 Position detection device
JP2015206614A (en) * 2014-04-17 2015-11-19 株式会社ニコン Encoder device and correction method
JP6484008B2 (en) * 2014-11-19 2019-03-13 日本電産サンキョー株式会社 Encoder and rotation angle position calculation method

Also Published As

Publication number Publication date
JP2018132359A (en) 2018-08-23

Similar Documents

Publication Publication Date Title
US10598517B2 (en) Rotary encoder
KR102195533B1 (en) Rotary encoder and angle correction method of rotary encoder
JP6940955B2 (en) Rotary encoder
JP6877170B2 (en) Rotary encoder and its absolute angle position detection method
US8466672B2 (en) Method of processing encoder signals
JP5613839B2 (en) Method and apparatus for absolute positioning of a moving object
TWI663383B (en) Encoder and rotation angle position calculation method
JP4858837B2 (en) Rotation angle detector
JP6769799B2 (en) Rotary encoder and absolute angle position detection method for rotary encoder
JP6877169B2 (en) Rotary encoder
KR101885275B1 (en) Angle determinating method using encoder signal with noise suppression, adjusting method for output signal of encoder and absolute encoder
JP6842943B2 (en) Rotary encoder
CN110388943B (en) Encoder for encoding a video signal
CN110388944B (en) Encoder for encoding a video signal
JP2020153980A (en) System for determining at least one rotation parameter of rotating member
JP2018084514A (en) Sensor device
JP2020153981A (en) System for determining at least one rotation parameter of rotating member
JP5053150B2 (en) Rotation angle detection method and rotation angle detection device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200109

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210125

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210202

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210222

R150 Certificate of patent or registration of utility model

Ref document number: 6842943

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150