JP2007333451A - Method for updating corrected value of incremental encoder - Google Patents

Method for updating corrected value of incremental encoder Download PDF

Info

Publication number
JP2007333451A
JP2007333451A JP2006163142A JP2006163142A JP2007333451A JP 2007333451 A JP2007333451 A JP 2007333451A JP 2006163142 A JP2006163142 A JP 2006163142A JP 2006163142 A JP2006163142 A JP 2006163142A JP 2007333451 A JP2007333451 A JP 2007333451A
Authority
JP
Japan
Prior art keywords
correction value
data
unit
initial
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.)
Pending
Application number
JP2006163142A
Other languages
Japanese (ja)
Inventor
Takahiro Masuda
隆宏 増田
Taro Kishibe
太郎 岸部
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2006163142A priority Critical patent/JP2007333451A/en
Publication of JP2007333451A publication Critical patent/JP2007333451A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an incremental encoder capable of reducing errors in the computation of positional data when the power of the encoder is turned on. <P>SOLUTION: The incremental encoder includes an correction value change-over part 15 for outputting initial correction values 16a during the period from the power-on of the encoder to the output of correction value computation data 14a, changing over to the correction value computation data 14a after the period, and outputting it to a data correction part 13; an initial correction value control part 16 for controlling the initial correction values 16a; and a nonvolatile memory 18 for storing the initial correction values 16a. When the initial correction value control part 16 detects origin signals 11b outputted from a pulse detection part 11 after the power of the encoder is turned on, correction value data computed at a correction value operation part 14 is stored in the nonvolatile memory 18 as new initial correction values. The new initial correction values stored in the nonvolatile memory 18 are used when the encoder is activated next time. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、モータ制御に使用されるインクリメンタルエンコーダに関する。   The present invention relates to an incremental encoder used for motor control.

一般に、90度位相差の2相アナログ正弦波出力信号をA/D変換したディジタルデータを用いてディジタル演算により回転角度情報を生成するエンコーダでは、アナログ正弦波出力信号に含まれるオフセット、振幅変動、位相のずれにより、位置データ演算結果に誤差が発生し、位置検出精度に悪影響を出していた。   In general, in an encoder that generates rotation angle information by digital calculation using digital data obtained by A / D converting a two-phase analog sine wave output signal having a phase difference of 90 degrees, an offset, amplitude fluctuation, Due to the phase shift, an error occurs in the position data calculation result, which adversely affects the position detection accuracy.

従来、上記位置データ演算誤差を低減するため、アナログ正弦波出力信号の最大値及び最小値を検出し、その検出値を用いてオフセット量、振幅変動量、位相のずれ量等をそれぞれ演算して補正値を求め、補正値を用いてディジタルデータを補正することで位置データ演算誤差の発生を低減する方法が提案されている(例えば、特許文献1参照)。   Conventionally, in order to reduce the position data calculation error, the maximum value and the minimum value of the analog sine wave output signal are detected, and the detected value is used to calculate the offset amount, amplitude fluctuation amount, phase shift amount, etc., respectively. There has been proposed a method of reducing the occurrence of position data calculation errors by obtaining correction values and correcting digital data using the correction values (see, for example, Patent Document 1).

また、不揮発性メモリを用いて、前記不揮発性メモリに保存されているオフセット量等の補正値と、ディジタルデータを元に演算された補正値を常時比較し、演算された補正値が保存されている補正値と異なっていた場合には不揮発性メモリを自動更新する方法が提案されている(例えば、特許文献2参照)。
特開平8−35857号公報 特開2005−24290号公報
In addition, using a non-volatile memory, a correction value such as an offset amount stored in the non-volatile memory is constantly compared with a correction value calculated based on digital data, and the calculated correction value is stored. A method for automatically updating the nonvolatile memory when the correction value is different from the correction value is proposed (see, for example, Patent Document 2).
JP-A-8-35857 JP 2005-24290 A

上記特許文献1の方法では、アナログ正弦波の最大値と最小値の検出後には、検出値から補正値を演算しディジタルデータを補正することができる。しかしながら、起動直後のアナログ正弦波が変化しない状態からアナログ正弦波が1周期検出されるまでの、最大値と最小値を検出することができない最大最小未確定区間では、補正値を演算することができない。つまり、ディジタルデータを正常に補正することができず、位置検出精度が著しく悪化する。   In the method of Patent Document 1, after the maximum value and the minimum value of the analog sine wave are detected, a correction value can be calculated from the detected value to correct the digital data. However, the correction value can be calculated in the maximum / minimum unconfirmed section in which the maximum value and the minimum value cannot be detected from the state in which the analog sine wave does not change immediately after startup until the analog sine wave is detected for one cycle. Can not. That is, the digital data cannot be corrected normally, and the position detection accuracy is significantly deteriorated.

さらに、最大値と最小値の変動を抑制するために、数周期分の値を平均化した最大値と最小値を補正値演算に使用する場合、最大最小未確定区間が数周期に亘り続き、位置検出精度が悪化した区間が大きくなる。   Furthermore, in order to suppress the fluctuation of the maximum value and the minimum value, when using the maximum value and the minimum value obtained by averaging the values for several cycles in the correction value calculation, the maximum / minimum unconfirmed section continues for several cycles, The section where the position detection accuracy deteriorates becomes large.

一般のインクリメンタルエンコーダを使用している装置では、起動直後に出力される原点信号を装置の基準点とし、以降はアナログ正弦波から演算される位置データにより動作させる為、位置検出精度が悪い最大最小未確定区間で原点信号が検出された場合、位置データの基準点が正確な原点位置から大幅にずれるため、装置全体の制御位置がずれてしまう課題があった。   In a device that uses a general incremental encoder, the origin signal output immediately after startup is used as the reference point of the device, and the operation is performed with position data calculated from an analog sine wave. When the origin signal is detected in the undetermined section, the reference point of the position data is greatly deviated from the accurate origin position, which causes a problem that the control position of the entire apparatus is deviated.

また、特許文献2の方法では、演算した補正値が不揮発性メモリに保存されている補正値から変化している場合に不揮発性メモリへ保存するが、実際の補正値はエンコーダ偏心や温度変化によって頻繁に変化する場合があり、不揮発性メモリの書換え回数は有限である為、書換え回数が最大回数を超えてしまい補正値が正常に書込まれないという課題があった。   In the method of Patent Document 2, when the calculated correction value is changed from the correction value stored in the non-volatile memory, the correction value is stored in the non-volatile memory. However, the actual correction value depends on the encoder eccentricity or temperature change. Since the number of rewrites of the non-volatile memory is limited in some cases, the number of rewrites exceeds the maximum number, and the correction value cannot be written normally.

本発明は上記従来の課題を解決するものであり、エンコーダ電源投入時の位置データ演
算誤差を低減できるインクリメンタルエンコーダを提供することを目的とする。
SUMMARY OF THE INVENTION The present invention solves the above-described conventional problems, and an object thereof is to provide an incremental encoder capable of reducing a position data calculation error when an encoder power is turned on.

上記課題を解決するために本発明は、モータ位置に応じて生成されるアナログ原信号からパルス信号を生成するパルス検出部と、前記アナログ原信号に応じたディジタルデータを生成するアナログ検出部と、前記ディジタルデータから補正値演算データを演算出力する補正値演算部と、前記補正値演算部から出力される補正値データを用いて前記ディジタルデータを補正するデータ補正部と、前記データ補正部の出力データから位置データを演算する位置データ演算部とを備えるインクリメンタルエンコーダにおいて、エンコーダ電源投入時から補正値演算データが出力されるまでの期間は初期補正値を出力し、それ以降は前記補正値演算データとを切替えて前記データ補正部へ出力する補正値切替部と、初期補正値を制御する初期補正値制御部と、前記初期補正値を保存する不揮発性メモリとを備え、エンコーダ電源投入後に前記初期補正値制御部が前記パルス検出部から出力される原点信号を検出したときに、前記補正値演算部で演算されている前記補正値データを新たな初期補正値として前記不揮発性メモリに保存し、次回エンコーダ起動時には前記不揮発性メモリに保存された前記新たな初期補正値を使用するインクリメンタルエンコーダの補正値更新方法である。   In order to solve the above problems, the present invention provides a pulse detection unit that generates a pulse signal from an analog original signal generated according to a motor position, an analog detection unit that generates digital data according to the analog original signal, A correction value calculation unit that calculates and outputs correction value calculation data from the digital data, a data correction unit that corrects the digital data using correction value data output from the correction value calculation unit, and an output of the data correction unit In an incremental encoder including a position data calculation unit that calculates position data from data, an initial correction value is output during a period from when the encoder power is turned on until correction value calculation data is output, and thereafter the correction value calculation data And a correction value switching unit that outputs to the data correction unit and an initial correction value control that controls the initial correction value. And a non-volatile memory for storing the initial correction value, and when the initial correction value control unit detects an origin signal output from the pulse detection unit after the encoder power is turned on, the correction value calculation unit The calculated correction value data is stored in the non-volatile memory as a new initial correction value, and the correction value update of the incremental encoder that uses the new initial correction value stored in the non-volatile memory when the encoder is started next time Is the method.

また、前記補正値制御部において、新たな初期補正値と不揮発性メモリに保存されている初期補正値を比較し、値に変化がない場合は前記不揮発性メモリに保存しない補正値更新方法である。   Further, the correction value control unit compares the new initial correction value with the initial correction value stored in the nonvolatile memory and updates the correction value not to be stored in the nonvolatile memory when the value does not change. .

また、エンコーダ温度を検出する温度検出部をさらに備え、新たな初期補正値を不揮発性メモリに保存するときに、前記温度検出部が検出した補正値保存温度も保存し、次回起動時に前記温度検出部からの検出温度と前記補正値保存温度を比較し、比較値を基に初期補正値を修正する補正値更新方法である。   In addition, a temperature detection unit that detects the encoder temperature is further provided, and when the new initial correction value is stored in the nonvolatile memory, the correction value storage temperature detected by the temperature detection unit is also stored, and the temperature detection is performed at the next startup. This is a correction value update method in which the detected temperature from the unit is compared with the correction value storage temperature, and the initial correction value is corrected based on the comparison value.

本発明のインクリメンタルエンコーダの補正値更新方法によれば、エンコーダ電源投入時に使用する初期補正値を、原点信号が検出されたときの補正値を用いて更新することで、電源投入時の原点位置でのディジタルデータを適正に補正し、位置データ演算誤差を低減することができる。   According to the incremental encoder correction value updating method of the present invention, the initial correction value used when the encoder power is turned on is updated using the correction value obtained when the origin signal is detected. Thus, the digital data can be appropriately corrected, and the position data calculation error can be reduced.

また、初期補正値の更新時に不揮発性メモリに保存されている初期補正値と比較し、補正値が変化していない場合には保存動作をしないことで、不揮発性メモリの頻繁な書換えを防止することができる。   Also, when the initial correction value is updated, it is compared with the initial correction value stored in the non-volatile memory, and if the correction value has not changed, the save operation is not performed, thereby preventing frequent rewriting of the non-volatile memory. be able to.

さらに、初期補正値の保存時に温度情報も保存し、次回起動時に検出された温度情報と保存された温度情報を元に初期補正値を修正することで、温度変化による補正値のずれを抑制し、効果的に位置データ演算誤差を低減することができる。   In addition, temperature information is saved when the initial correction value is saved, and correction of the correction value due to temperature changes is suppressed by correcting the initial correction value based on the temperature information detected at the next startup and the stored temperature information. The position data calculation error can be effectively reduced.

したがって、経年変化等によるアナログ原信号が変動した場合でも、位置データ演算誤差を低減し、正確な原点位置を検出することで装置全体の基準点に悪影響を及ぼすことなく制御が行えるインクリメンタルエンコーダの補正値更新方法を提供することができる。   Therefore, even if the analog original signal fluctuates due to aging, etc., incremental encoder correction that can control without adversely affecting the reference point of the entire device by reducing the position data calculation error and detecting the correct origin position A value update method can be provided.

モータ位置に応じて生成されるアナログ原信号からパルス信号を生成するパルス検出部と、前記アナログ原信号に応じたディジタルデータを生成するアナログ検出部と、前記ディジタルデータから補正値演算データを演算出力する補正値演算部と、前記補正値演算部から出力される補正値データを用いて前記ディジタルデータを補正するデータ補正部と、
前記データ補正部の出力データから位置データを演算する位置データ演算部とを備えるインクリメンタルエンコーダにおいて、エンコーダ電源投入時から補正値演算データが出力されるまでの期間は初期補正値を出力し、それ以降は前記補正値演算データとを切替えて前記データ補正部へ出力する補正値切替部と、初期補正値を制御する初期補正値制御部と、前記初期補正値を保存する不揮発性メモリとを備え、エンコーダ電源投入後に前記初期補正値制御部が前記パルス検出部から出力される原点信号を検出したときに、前記補正値演算部で演算されている前記補正値データを新たな初期補正値として前記不揮発性メモリに保存し、次回エンコーダ起動時には前記不揮発性メモリに保存された前記新たな初期補正値を使用する。
A pulse detector for generating a pulse signal from an analog original signal generated according to the motor position, an analog detector for generating digital data according to the analog original signal, and calculating and outputting correction value calculation data from the digital data A correction value calculation unit, a data correction unit for correcting the digital data using correction value data output from the correction value calculation unit,
In an incremental encoder including a position data calculation unit that calculates position data from output data of the data correction unit, an initial correction value is output during a period from when the encoder power is turned on until correction value calculation data is output, and thereafter Comprises a correction value switching unit that switches the correction value calculation data and outputs the data to the data correction unit, an initial correction value control unit that controls an initial correction value, and a nonvolatile memory that stores the initial correction value, When the initial correction value control unit detects an origin signal output from the pulse detection unit after the encoder power is turned on, the correction value data calculated by the correction value calculation unit is used as a new initial correction value. The new initial correction value stored in the non-volatile memory is used when the encoder is activated next time.

本発明によるインクリメンタルエンコーダの補正値更新方法について、図を参照にしながら説明する。   The correction value updating method of the incremental encoder according to the present invention will be described with reference to the drawings.

図1において、インクリメンタルエンコーダの位置データ生成部は、原信号生成部10、パルス検出部11、アナログ検出部12、データ補正部13、補正値演算部14、補正値切替部15、初期補正値制御部16、メモリ制御部17、不揮発性メモリ18、位置データ演算部19、パラレルシリアル変換部20、通信手段21により構成され、例えばRS485などの通信手段21によってサーボアンプ22と双方向のシリアル通信を行う。   In FIG. 1, the position data generation unit of the incremental encoder includes an original signal generation unit 10, a pulse detection unit 11, an analog detection unit 12, a data correction unit 13, a correction value calculation unit 14, a correction value switching unit 15, and an initial correction value control. 16, a memory control unit 17, a nonvolatile memory 18, a position data calculation unit 19, a parallel-serial conversion unit 20, and a communication unit 21. Bidirectional serial communication with the servo amplifier 22 is performed by a communication unit 21 such as RS485. Do.

原信号生成部10は、モータの回転位置に応じたパルス信号10aとアナログ信号10bを出力する。パルス検出部11は、パルス信号10bをサンプリング後、位置データ19aを演算するために必要な二相パルスデータ11aと原点信号11bを出力する。   The original signal generator 10 outputs a pulse signal 10a and an analog signal 10b corresponding to the rotational position of the motor. After sampling the pulse signal 10b, the pulse detector 11 outputs the two-phase pulse data 11a and the origin signal 11b necessary for calculating the position data 19a.

アナログ検出部12は、アナログ信号10bをサンプリング後、位置データ19aを演算するための形式へ変換し、ディジタルデータ12aを出力する。データ補正部13は、ディジタルデータ12aを補正値15aの値により補正し、補正後ディジタルデータ13aを出力する。   The analog detector 12 samples the analog signal 10b, converts it into a format for calculating the position data 19a, and outputs the digital data 12a. The data correction unit 13 corrects the digital data 12a with the correction value 15a and outputs the corrected digital data 13a.

位置データ演算部19は、補正後ディジタルデータ13aと二相パルスデータ11aと原点信号11bを基に演算することで、ロータの位置を示す位置データ19aをサンプリング周期ごとに出力する。   The position data calculation unit 19 performs calculation based on the corrected digital data 13a, the two-phase pulse data 11a, and the origin signal 11b, thereby outputting position data 19a indicating the rotor position for each sampling period.

メモリ制御部17は、初期補正値16a及びモータの特性を表すパラメータ20aを不揮発性メモリ18に書込み、また、エンコーダ電源投入時に不揮発性メモリからメモリ内初期補正値17aとメモリ内パラメータ17bの読出しも行う。   The memory control unit 17 writes the initial correction value 16a and the parameter 20a representing the motor characteristics into the nonvolatile memory 18, and also reads out the in-memory initial correction value 17a and the in-memory parameter 17b from the nonvolatile memory when the encoder power is turned on. Do.

パラメータ20aは、インクリメンタルエンコーダが接続されているモータにより一意に決まる為、工場出荷時等に1度だけ書込むのが一般的である。   Since the parameter 20a is uniquely determined by the motor to which the incremental encoder is connected, it is generally written only once at the time of factory shipment.

パラレルシリアル変換部20は、サーボアンプ22から通信手段21を介して双方向伝送されるシリアルデータとエンコーダ内部で使用するパラレルデータに相互変換し、位置データ19a又はメモリ内パラメータ17bをシリアル送信データとしてサーボアンプへ出力し、サーボアンプからのシリアル受信データからパラメータ20aをメモリ制御部17へ出力する。   The parallel-serial conversion unit 20 mutually converts serial data transmitted bi-directionally from the servo amplifier 22 via the communication means 21 and parallel data used inside the encoder, and uses the position data 19a or the in-memory parameter 17b as serial transmission data. The parameter 20a is output to the memory control unit 17 from the serial reception data from the servo amplifier.

補正値演算部14は、ディジタルデータ12aと二相パルスデータ11aからアナログ信号10bのオフセットと振幅と位相差を検出し、データ補正部13でディジタル補正するための補正値演算データ14aを演算する。補正値演算データ14aにはオフセット、振幅、位相差以外にもディジタル補正で必要なデータを含めてもよい。   The correction value calculation unit 14 detects the offset, amplitude, and phase difference of the analog signal 10b from the digital data 12a and the two-phase pulse data 11a, and calculates the correction value calculation data 14a for digital correction by the data correction unit 13. The correction value calculation data 14a may include data necessary for digital correction in addition to the offset, amplitude, and phase difference.

補正値切替部15は、エンコーダ電源投入時からアナログ信号を任意の周期検出できるまでの間は初期補正値16aを補正値15aとして出力し、任意の周期検出した後は補正値演算データ14aを補正値15aとして出力する。また、補正値切替部15は、二相パルスデータ11aの立上りもしくは立下がりの回数を検出することでアナログ信号の任意の周期を検出する。   The correction value switching unit 15 outputs the initial correction value 16a as the correction value 15a from the time the encoder power is turned on until the analog signal can be detected in an arbitrary period, and the correction value calculation data 14a is corrected after the arbitrary period is detected. Output as value 15a. Further, the correction value switching unit 15 detects an arbitrary period of the analog signal by detecting the number of rises or falls of the two-phase pulse data 11a.

初期補正値制御部16は、メモリ制御部17を介して不揮発性メモリ18に補正値演算データ14aを初期補正値書込データ16bとして書込み、エンコーダ電源投入時に不揮発性メモリからメモリ内初期補正値17aを読出し、初期補正値16aとして出力する。   The initial correction value control unit 16 writes the correction value calculation data 14a as the initial correction value write data 16b in the nonvolatile memory 18 via the memory control unit 17, and the initial correction value 17a in the memory is stored from the nonvolatile memory when the encoder power is turned on. Is output as an initial correction value 16a.

次に、初期補正値制御部16の初期補正値16a書込みシーケンスを図2のフローチャートを用いて説明する。
エンコーダ電源投入するとシーケンスが開始され、補正値取込み処理30で補正値演算部14から出力される補正値演算データ14aを取込む。次に、原点検出判定処理31でパルス検出部11から出力される原点信号11bより原点位置であるか判定を行う。
Next, the initial correction value 16a writing sequence of the initial correction value control unit 16 will be described with reference to the flowchart of FIG.
When the encoder power is turned on, the sequence is started, and correction value calculation data 14 a output from the correction value calculation unit 14 is acquired in the correction value acquisition processing 30. Next, in the origin detection determination process 31, it is determined whether the origin position is based on the origin signal 11b output from the pulse detector 11.

原点位置でない場合は、補正値取込み処理へ戻り、原点位置となるまで補正値取込みと原点検出判定を繰り返す。   If it is not the origin position, the process returns to the correction value acquisition process, and the correction value acquisition and the origin detection determination are repeated until the origin position is reached.

原点検出判定処理で原点位置となった場合、補正値書込み処理32でメモリ制御部17を介して不揮発性メモリ18へ取込んだ補正値を初期補正値16aとして書込む。   When the origin position is reached in the origin detection determination process, the correction value fetched into the nonvolatile memory 18 via the memory control unit 17 in the correction value writing process 32 is written as the initial correction value 16a.

このシーケンスは電源投入後1回だけでなく、複数回数実行してもよいし、タイマを用いて任意の時間間隔で実行してもよい。   This sequence may be executed not only once after power-on but also a plurality of times, or may be executed at arbitrary time intervals using a timer.

このように、初期補正値を原点位置で更新することで、経年変化等により原信号が変動した場合でも、正確な原点位置を検出することで装置全体の基準点に悪影響を及ぼすことなく制御が行える。   In this way, by updating the initial correction value with the origin position, even if the original signal fluctuates due to aging, etc., control can be performed without adversely affecting the reference point of the entire apparatus by detecting the exact origin position. Yes.

以下、図3を用いて実施例2について説明する。実施例1との違いは、初期補正値制御部16の初期補正値16a書込みシーケンスのみであるため、そのシーケンスを説明する。   Hereinafter, Example 2 will be described with reference to FIG. The difference from the first embodiment is only the initial correction value 16a writing sequence of the initial correction value control unit 16, and the sequence will be described.

図3において、補正値取込み処理30と原点検出判定処理31と補正値書込み処理32の動作は、図2のシーケンスと同様である。   In FIG. 3, the operations of the correction value fetch processing 30, the origin detection determination processing 31, and the correction value writing processing 32 are the same as the sequence of FIG.

原点検出判定処理31で原点位置となった場合、メモリ内初期補正値読出し処理33で不揮発性メモリ18からメモリ内初期補正値17aを読込む。   When the origin position is reached in the origin detection determination process 31, the in-memory initial correction value 17a is read from the nonvolatile memory 18 in the in-memory initial correction value reading process 33.

次に、補正値更新判定処理34にて補正値演算データ14aとメモリ内初期補正値17aを比較し、同値であった場合は、補正値書込み処理をせずにシーケンスを終了し、値が異なる場合は、補正値書込み処理を実行して補正値を更新する。   Next, in the correction value update determination process 34, the correction value calculation data 14a is compared with the initial correction value 17a in the memory, and if the values are the same, the sequence ends without performing the correction value writing process, and the values are different. In the case, the correction value writing process is executed to update the correction value.

これにより、不揮発性メモリの書込み回数を減らして長期間の使用を可能とし、より信頼性の高いインクリメンタルエンコーダが得られる。   As a result, the number of times of writing to the nonvolatile memory can be reduced to enable long-term use, and a more reliable incremental encoder can be obtained.

以下、図4を用いて実施例3について説明する。実施例1及び実施例2との違いは、温
度検出部23をさらに備えた点で、温度検出部23から出力される温度データ23aを用いて初期補正値制御部16の初期補正値書込みと読出しを行う部分のみである。
Hereinafter, Example 3 will be described with reference to FIG. The difference between the first embodiment and the second embodiment is that the temperature detection unit 23 is further provided, and the initial correction value control unit 16 writes and reads the initial correction value using the temperature data 23a output from the temperature detection unit 23. It is only the part which performs.

初期補正値制御部の初期補正値書込み動作では、図2、図3の補正値取込み処理で補正値演算データ14aと共に温度データ23aを取込み、補正値書込み処理32で補正値演算データと共に温度データ23aを書込む。   In the initial correction value writing operation of the initial correction value control unit, the temperature data 23a is taken together with the correction value calculation data 14a in the correction value fetching process of FIGS. Write.

また、初期補正値読出し動作では、不揮発性メモリ18からメモリ内初期補正値Cとメモリ内温度データTを読出す。 In the initial correction value reading operation, the in-memory initial correction value C m and the in-memory temperature data T m are read from the nonvolatile memory 18.

次に、温度検出部23から現在の温度データTを読出し、修正後の補正値Cを次式のC=G×(T−T)+Cで求める。ここで、Gは予め決められた温度変化1℃に対する補正値の変動比であり、出荷前にエンコーダ温度を変化させて補正値の変動を測定して変動比を決定する。そして、修正後の補正値Cを初期補正値16aとして出力する。 Next, the current temperature data T n is read from the temperature detection unit 23, and a corrected correction value C c is obtained by the following equation: C c = G × (T n −T m ) + C m Here, G is a fluctuation ratio of the correction value with respect to a predetermined temperature change of 1 ° C. The fluctuation ratio is determined by measuring the fluctuation of the correction value by changing the encoder temperature before shipment. Then, it outputs the correction value C c of the corrected as an initial correction value 16a.

これにより、初期補正値保存時と初期補正値使用時の温度変化を補正することで、より正確に原点位置を検出できる。   Accordingly, the origin position can be detected more accurately by correcting the temperature change when the initial correction value is stored and when the initial correction value is used.

本発明の補正値更新方法は、インクリメンタルエンコーダの原点を基準としている装置などにも有用である。   The correction value update method of the present invention is also useful for an apparatus based on the origin of an incremental encoder.

本発明の実施例1におけるインクリメンタルエンコーダのブロック構成図1 is a block diagram of an incremental encoder according to a first embodiment of the present invention. 本発明の実施例1における初期補正値書込みシーケンスのフローチャートFlowchart of initial correction value writing sequence in Embodiment 1 of the present invention 本発明の実施例2における初期補正値書込みシーケンスのフローチャートFlowchart of initial correction value writing sequence in Embodiment 2 of the present invention 本発明の実施例3におけるインクリメンタルエンコーダのブロック構成図Block diagram of the incremental encoder in Embodiment 3 of the present invention

符号の説明Explanation of symbols

10 原信号生成部
10a パルス信号
10b アナログ信号
11 パルス検出部
11a 二相パルスデータ
11b 原点信号
12 アナログ検出部
12a ディジタルデータ
13 データ補正部
13a 補正後ディジタルデータ
14 補正値演算部
14a 補正値演算データ
15 補正値切替部
15a 補正値
16 初期補正値制御部
16a 初期補正値
16b 初期補正値書込データ
17 メモリ制御部
17a メモリ内初期補正値
17b メモリ内パラメータ
18 不揮発性メモリ
19 位置データ演算部
19a 位置データ
20 パラレルシリアル変換部
20a パラメータ
21 通信手段
22 サーボアンプ
23 温度検出部
23a 温度データ
30 補正値取込み処理
31 原点検出判定処理
32 補正値書込み処理
33 メモリ内補正値読出し処理
34 補正値更新判定処理
DESCRIPTION OF SYMBOLS 10 Original signal generation part 10a Pulse signal 10b Analog signal 11 Pulse detection part 11a Two-phase pulse data 11b Origin signal 12 Analog detection part 12a Digital data 13 Data correction part 13a Digital data after correction 14 Correction value calculation part 14a Correction value calculation data 15 Correction value switching unit 15a Correction value 16 Initial correction value control unit 16a Initial correction value 16b Initial correction value write data 17 Memory control unit 17a Initial correction value in memory 17b In-memory parameter 18 Non-volatile memory 19 Position data calculation unit 19a Position data 20 Parallel Serial Conversion Unit 20a Parameter 21 Communication Means 22 Servo Amplifier 23 Temperature Detection Unit 23a Temperature Data 30 Correction Value Acquisition Processing 31 Origin Detection Determination Processing 32 Correction Value Write Processing 33 In-Memory Correction Value Reading Processing 3 Correction value updating determination process

Claims (3)

モータ位置に応じて生成されるアナログ原信号からパルス信号を生成するパルス検出部と、前記アナログ原信号に応じたディジタルデータを生成するアナログ検出部と、前記ディジタルデータから補正値演算データを演算出力する補正値演算部と、前記補正値演算部から出力される補正値データを用いて前記ディジタルデータを補正するデータ補正部と、前記データ補正部の出力データから位置データを演算する位置データ演算部とを備えるインクリメンタルエンコーダにおいて、エンコーダ電源投入時から補正値演算データが出力されるまでの期間は初期補正値を出力し、それ以降は前記補正値演算データとを切替えて前記データ補正部へ出力する補正値切替部と、初期補正値を制御する初期補正値制御部と、前記初期補正値を保存する不揮発性メモリとを備え、エンコーダ電源投入後に前記初期補正値制御部が前記パルス検出部から出力される原点信号を検出したときに、前記補正値演算部で演算されている前記補正値データを新たな初期補正値として前記不揮発性メモリに保存し、次回エンコーダ起動時には前記不揮発性メモリに保存された前記新たな初期補正値を使用することを特徴とするインクリメンタルエンコーダの補正値更新方法。 A pulse detection unit that generates a pulse signal from an analog original signal generated according to the motor position, an analog detection unit that generates digital data according to the analog original signal, and an arithmetic output of correction value calculation data from the digital data A correction value calculation unit, a data correction unit that corrects the digital data using correction value data output from the correction value calculation unit, and a position data calculation unit that calculates position data from the output data of the data correction unit In an incremental encoder comprising: an initial correction value is output during a period from when the encoder power is turned on until correction value calculation data is output, and thereafter, the correction value calculation data is switched and output to the data correction unit A correction value switching unit, an initial correction value control unit for controlling the initial correction value, and a storage unit for storing the initial correction value. And when the initial correction value control unit detects an origin signal output from the pulse detection unit after the encoder power is turned on, the correction value data calculated by the correction value calculation unit is newly updated. A method for updating an incremental encoder correction value, wherein the initial correction value is stored in the non-volatile memory and the new initial correction value stored in the non-volatile memory is used when the encoder is activated next time. 前記補正値制御部において、新たな初期補正値と不揮発性メモリに保存されている初期補正値を比較し、値に変化がない場合は前記不揮発性メモリに保存しない請求項1に記載のインクリメンタルエンコーダの補正値更新方法。 2. The incremental encoder according to claim 1, wherein the correction value control unit compares a new initial correction value with an initial correction value stored in a nonvolatile memory, and does not store the new correction value in the nonvolatile memory when there is no change in the value. Correction value update method. エンコーダ温度を検出する温度検出部をさらに備え、新たな初期補正値を不揮発性メモリに保存するときに、前記温度検出部が検出した補正値保存温度も保存し、次回起動時に前記温度検出部からの検出温度と前記補正値保存温度を比較し、比較値を基に初期補正値を修正する請求項1または請求項2に記載のインクリメンタルエンコーダの補正値更新方法。
A temperature detection unit for detecting the encoder temperature is further provided, and when the new initial correction value is stored in the nonvolatile memory, the correction value storage temperature detected by the temperature detection unit is also stored. 3. The incremental encoder correction value updating method according to claim 1, wherein the detected temperature is compared with the correction value storage temperature, and the initial correction value is corrected based on the comparison value.
JP2006163142A 2006-06-13 2006-06-13 Method for updating corrected value of incremental encoder Pending JP2007333451A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006163142A JP2007333451A (en) 2006-06-13 2006-06-13 Method for updating corrected value of incremental encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006163142A JP2007333451A (en) 2006-06-13 2006-06-13 Method for updating corrected value of incremental encoder

Publications (1)

Publication Number Publication Date
JP2007333451A true JP2007333451A (en) 2007-12-27

Family

ID=38933074

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006163142A Pending JP2007333451A (en) 2006-06-13 2006-06-13 Method for updating corrected value of incremental encoder

Country Status (1)

Country Link
JP (1) JP2007333451A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009168782A (en) * 2008-01-21 2009-07-30 Yaskawa Electric Corp Magnetic encoder device and position detection method using the same
CN104360094A (en) * 2014-10-22 2015-02-18 华南农业大学 Experimenting device used for measuring speed change of currency counting and detecting machine
JP2017135950A (en) * 2016-01-29 2017-08-03 株式会社マキタ Electric work machine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009168782A (en) * 2008-01-21 2009-07-30 Yaskawa Electric Corp Magnetic encoder device and position detection method using the same
CN104360094A (en) * 2014-10-22 2015-02-18 华南农业大学 Experimenting device used for measuring speed change of currency counting and detecting machine
JP2017135950A (en) * 2016-01-29 2017-08-03 株式会社マキタ Electric work machine

Similar Documents

Publication Publication Date Title
JP4277887B2 (en) Encoder signal correction circuit
JPWO2006043403A1 (en) Encoder signal processing apparatus and signal processing method thereof
KR20050053863A (en) The automatic calibration methods of the electronic compass
JP4240090B2 (en) Encoder signal correction circuit
JP2010101741A (en) Temperature measuring circuit, encoder system and temperature measuring method
JP5125320B2 (en) Encoder correction value control method
JP2007333451A (en) Method for updating corrected value of incremental encoder
JPWO2007055092A1 (en) Encoder signal processing device
JP5159951B2 (en) Analog unit
CN111089610B (en) Signal processing method and device of encoder and related components
JP5467472B2 (en) Shaft type linear motor position detector
JP6226811B2 (en) Multi-turn encoder
US20200218226A1 (en) Instant correction method for encoder and system thereof
JP5376338B2 (en) Rotation angle detector
JPWO2007055063A1 (en) Encoder signal processing device
JP2020012634A (en) Rotary encoder signal processing device and signal processing method thereof
JP2005315817A (en) Rotation angle sensor
JP2006309693A (en) Multivariate transmitter
JP2007017385A (en) Absolute encoder
JP5205942B2 (en) Zero point correction circuit
JP4462371B2 (en) Data receiving apparatus and microcomputer
JP2008257571A (en) Servo control method
JP5308144B2 (en) Servo motor device calibration method and servo motor device
JP2006165737A (en) Analog signal processing apparatus
JP4763821B2 (en) Angle correction circuit, RD converter, and angle detection device