Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4900473B2 - Absolute value encoder device and multi-rotation detection method - Google Patents
[go: Go Back, main page]

JP4900473B2 - Absolute value encoder device and multi-rotation detection method - Google Patents

Absolute value encoder device and multi-rotation detection method Download PDF

Info

Publication number
JP4900473B2
JP4900473B2 JP2009501158A JP2009501158A JP4900473B2 JP 4900473 B2 JP4900473 B2 JP 4900473B2 JP 2009501158 A JP2009501158 A JP 2009501158A JP 2009501158 A JP2009501158 A JP 2009501158A JP 4900473 B2 JP4900473 B2 JP 4900473B2
Authority
JP
Japan
Prior art keywords
rotation
rotation amount
power supply
unit
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2009501158A
Other languages
Japanese (ja)
Other versions
JPWO2008105217A1 (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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric 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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP2009501158A priority Critical patent/JP4900473B2/en
Publication of JPWO2008105217A1 publication Critical patent/JPWO2008105217A1/en
Application granted granted Critical
Publication of JP4900473B2 publication Critical patent/JP4900473B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • G01D5/244Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains
    • G01D5/245Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains using a variable number of pulses in a train
    • G01D5/2451Incremental encoders
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D2205/00Indexing scheme relating to details of means for transferring or converting the output of a sensing member
    • G01D2205/20Detecting rotary movement
    • G01D2205/26Details of encoders or position sensors specially adapted to detect rotation beyond a full turn of 360°, e.g. multi-rotation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)
  • Measuring Volume Flow (AREA)

Description

本発明は、ロボット、NC工作機械等に用いられるサーボモータの回転位置を検出する絶対値エンコーダに関し、特に電源遮断時の多回転量が検出でき、絶対位置を保持できる絶対値エンコーダ装置および多回転検出方法に関する。   The present invention relates to an absolute value encoder that detects the rotational position of a servo motor used in a robot, an NC machine tool, and the like, and more particularly, an absolute value encoder device capable of detecting a multi-rotation amount when a power supply is cut off and maintaining the absolute position, and multi-rotation It relates to a detection method.

従来ロボット等に使用されるエンコーダでは、多回転量を検出するとともに電源遮断時の絶対位置を保持するためにバッテリによるバックアップを行なっている(例えば、特許文献1参照)。   In an encoder used in a conventional robot or the like, a battery backup is performed in order to detect a multi-rotation amount and maintain an absolute position when the power is shut off (see, for example, Patent Document 1).

図8は従来の多回転アブソリュートエンコーダ装置のブロック図である。   FIG. 8 is a block diagram of a conventional multi-rotation absolute encoder device.

この多回転アブソリュートエンコーダ装置は、検出部21と、この検出部21からの検出信号を整形する波形整形部22と、波形整形部22から出力されるコード信号のうち、MSB(最上位ビット)、及びMSB−1(最上位の次のビット)のビット信号を受けて多回転数を計数する多回転計数部23と、検出部21、波形整形部22及び多回転計数部23に電源を供給する主電源24と、多回転計数部23にバックアップ電源を供給するバックアップ電源25を備えている。さらに、主電源遮断状態もバックアップ電源25によってデータを保持する計数用信号記憶部26を備え、計数用信号記憶部26の状態と、主電源投入時の同じ信号の状態をもとに、多回転カウンタの計数値を補正する回転検知部28とを備えている。   This multi-rotation absolute encoder device includes a detection unit 21, a waveform shaping unit 22 that shapes a detection signal from the detection unit 21, and an MSB (most significant bit) among code signals output from the waveform shaping unit 22, And MSB-1 (the next most significant bit) bit signal is supplied to the multi-rotation counting unit 23 that counts the multi-rotation number, the detection unit 21, the waveform shaping unit 22, and the multi-rotation counting unit 23. A main power source 24 and a backup power source 25 for supplying a backup power source to the multi-rotation counting unit 23 are provided. Further, the main power shut-off state also includes a counting signal storage unit 26 that retains data by the backup power source 25. Based on the state of the counting signal storage unit 26 and the state of the same signal when the main power is turned on, multiple rotations are provided. And a rotation detector 28 for correcting the count value of the counter.

次に、動作について説明する。   Next, the operation will be described.

図9は従来の多回転アブソリュートエンコーダ装置の動作を説明するための図である。   FIG. 9 is a diagram for explaining the operation of a conventional multi-rotation absolute encoder device.

多回転計数用の信号MSBとMSB−1は、1/4周期だけ位相がずれた信号になっており、1周期の中で2つの信号の「H」「L」の状態の組合せにより、4つの状態に分けることができる。主電源断時の微少な回転動作のみに対しての動作検知を行う場合、この4つの状態の違いを検知できれば、1回転以内の動きについては検知できることになる。   The signals MSB and MSB-1 for multi-rotation counting are signals that are out of phase by a quarter period, and the combination of the “H” and “L” states of two signals within one period is 4 Can be divided into two states. When motion detection is performed only for a minute rotational motion when the main power is turned off, if the difference between the four states can be detected, the motion within one rotation can be detected.

主電源断直前のMSBとMSB−1の信号の「H」「L」の状態を記憶し、2つの信号の主電源断前後の状態の比較により、1/4回転以内の微少な動きにのみ、限定して多回転計数値の補正を行う。   Stores the “H” and “L” states of the MSB and MSB-1 signals just before the main power is turned off, and compares the two signals before and after the main power is turned off, so that only slight movements within a quarter of a turn are possible. Limited correction of the multi-turn count value is performed.

主電源断直前のMSBとMSB−1の信号の「H」「L」の状態を記憶素子で記憶しておき、例えば、主電源断時にエンコーダが微少な動きをし、状態Aから状態Bに変化したとする。状態AではMSBは「H」、MSB−1は「L」であり、これが状態Bに変化することにより、MSBが「L」、MBS−1は「L」の状態となり、主電源投入時にAとBの比較をすれば動きがあったことが検知できる。   The “H” and “L” states of the MSB and MSB-1 signals immediately before the main power supply is turned off are stored in the storage element. For example, the encoder moves slightly when the main power supply is turned off. Suppose that it has changed. In the state A, the MSB is “H” and the MSB-1 is “L”. When this is changed to the state B, the MSB is “L” and the MBS-1 is “L”. And B can be detected to have moved.

図9に示すように、カウント切替が「1」の開始点、「4」の終了点で行われるとすると、MBS−1が「H」の状態では回転数の切替がなかったことになる。MSB−1が「L」で、MSBが「H」から「L」に変化した場合は、「4」から「5」へ移ったことになり、補正のため回転数の加算を行う。逆にMSB−1が「L」で、MSBが「L」から「H」に変化した場合は、「5」から「4」へ移ったことになり、補正のため回転数の減算を行う。   As shown in FIG. 9, if the count switching is performed at the start point of “1” and the end point of “4”, the number of rotations is not switched when MBS-1 is “H”. When MSB-1 is “L” and the MSB is changed from “H” to “L”, it means that “4” is changed to “5”, and the rotation speed is added for correction. On the contrary, when MSB-1 is “L” and MSB is changed from “L” to “H”, it means that “5” is changed to “4”, and the rotation number is subtracted for correction.

このように従来の多回転アブソリュートエンコーダ装置では、主電源遮断前と主電源再投入時の多回転計数用信号の状態を監視して、主電源電遮断中の微妙な動きに限定して多回転計数値の補正を行なっていた。
特開平9−218054号公報
As described above, the conventional multi-rotation absolute encoder device monitors the state of the multi-rotation counting signal before the main power supply is shut off and when the main power supply is turned on again, and limits the subtle movement during the main power supply shut-off. The count value was corrected.
Japanese Patent Laid-Open No. 9-218054

しかしながら、ロボットへの適用を行なう場合について、従来の多回転アブソリュートエンコーダ装置では、主電源遮断時にはモータはブレーキ等により動かないということを前提にしているため主電源遮断時の多回転量の検出を行なわず主電源が再投入された時の微妙な位置変化によるずれ分のみを補正するのみである。実際にはブレーキ不良の場合には重力によるアーム落下による位置変化がおこり多回転量が変化することがある。また、主電源断時に外力によりモータが回転し多回転量が変化することがある。さらに、動作中に瞬停が発生した場合、モータが高速で回転していれば補正可能な限界値を超えて多回転量が変化することがある。これらの場合、再度初期化作業が発生するため保守性に問題があった。   However, in the case of application to robots, the conventional multi-rotation absolute encoder device assumes that the motor does not move due to a brake or the like when the main power is cut off. Only the shift due to a subtle position change when the main power is turned on again is corrected. Actually, in the case of a brake failure, the position changes due to the drop of the arm due to gravity, and the multi-rotation amount may change. Also, when the main power is turned off, the motor may be rotated by an external force and the multi-rotation amount may change. Furthermore, when an instantaneous power failure occurs during operation, the amount of multi-rotation may change beyond the limit value that can be corrected if the motor rotates at high speed. In these cases, there is a problem in maintainability because the initialization work occurs again.

また、従来、主電源遮断時にバッテリ電源を用いて多回転量検出部に電源を供給し、多回転量を検出しているが、バッテリ電源の消費電力を極力小さくすることが求められている。   Conventionally, when the main power supply is shut off, the battery power supply is used to supply power to the multi-rotation amount detection unit to detect the multi-rotation amount. However, it is required to reduce the power consumption of the battery power as much as possible.

本発明はこのような問題点に鑑みてなされたものであり、保守性が良くバッテリ電源供給中の消費電力の小さい絶対値エンコーダ装置および多回転検出方法を提供することを目的とする。   The present invention has been made in view of such problems, and an object of the present invention is to provide an absolute value encoder device and a multi-rotation detection method that have good maintainability and low power consumption during battery power supply.

上記問題を解決するため、本発明は、次のように構成したものである。   In order to solve the above problems, the present invention is configured as follows.

すなわち、本発明の一の観点による絶対値エンコーダは、少なくとも2個の磁界検出素子を備え回転体の多回転量を検出する多回転検出用センサ部と、前記磁界検出素子を駆動する駆動部と、前記回転体の1回転内の位置を検出する1回転内位置検出用センサ部と、前記多回転検出用センサ部から出力される2相の多回転検出信号をコンパレータを通して矩形波に変換し、この矩形波に変換された多回転信号から多回転量を算出する多回転量算出部と、前記1回転内位置検出用センサ部から出力された1回転内位置検出信号をAD変換器を通して取り込み1回転内絶対位置を算出する1回転内位置算出部と、主電源とバッテリ電源を切替え、主電源遮断時にバッテリ電源を供給する電源切替部と、前記1回転内絶対位置と前記多回転量を合成し絶対位置を生成する絶対位置生成部とを備えた絶対値エンコーダ装置において、前記多回転量算出部は、前記主電源供給時に多回転量を算出する第1の多回転量算出部と、バッテリ電源供給時に多回転量を算出する第2の多回転量算出部と、前記主電源供給時と前記バッテリ電源供給時の切替え時に電源切替え直前および電源切替え直後の前記多回転信号の状態を取得し電源切替え後の多回転量の初期値を補正する多回転量補正部と、を備えたことを特徴としている。
That is, an absolute value encoder according to one aspect of the present invention includes a multi-rotation detection sensor unit that includes at least two magnetic field detection elements and detects a multi-rotation amount of a rotating body, and a drive unit that drives the magnetic field detection element. A position sensor for detecting position within one rotation for detecting a position within one rotation of the rotating body, and a two-phase multi-rotation detection signal output from the sensor section for detecting multi-rotation is converted into a rectangular wave through a comparator; A multi-rotation amount calculation unit that calculates a multi-rotation amount from the multi-rotation signal converted into the rectangular wave, and a single-rotation position detection signal output from the single-rotation position detection sensor unit are acquired through an AD converter. A single-rotation position calculation unit that calculates an absolute position within a rotation, a power supply switching unit that switches between a main power source and a battery power source and supplies battery power when the main power source is shut off, and the absolute position within one rotation and the multi-rotation amount are combined. In the absolute value encoder device including an absolute position generation unit that generates an absolute position, the multi-rotation amount calculation unit includes a first multi-rotation amount calculation unit that calculates a multi-rotation amount when the main power is supplied, and a battery power source. A second multi-rotation amount calculation unit for calculating a multi-rotation amount at the time of supply; and a state of the multi-rotation signal immediately before power switching and immediately after power switching at the time of switching between the main power supply and the battery power supply And a multi-rotation amount correcting unit that corrects an initial value of the multi-rotation amount after switching.

また、上記一の観点による絶対値エンコーダは、記駆動部は、バッテリ電源供給時に前記磁界検出素子へ一定周期のパルス状の電源を供給することを特徴としてもよい。
In the absolute value encoder according to the above aspect, the drive unit may supply a pulsed power supply having a constant cycle to the magnetic field detecting element when battery power is supplied .

また、上記一の観点による絶対値エンコーダは、前記駆動部は、バッテリ電源供給時に前記パルス状の電源のパルス周期を前記回転体の回転速度に応じて切替えることを特徴としてもよい。
The absolute value encoder according to the above aspect may be characterized in that the drive unit switches the pulse cycle of the pulsed power supply according to the rotation speed of the rotating body when battery power is supplied .

また、上記一の観点による絶対値エンコーダは、前記パルス状の電源のパルス幅は、バッテリ電源供給時の前記多回転信号の立上がりおよび立下がり特性に応じて設定できることを特徴としてもよい。
The absolute value encoder according to the first aspect may be characterized in that the pulse width of the pulsed power supply can be set according to the rising and falling characteristics of the multi-rotation signal when battery power is supplied .

一方、本発明の他の観点による絶対値エンコーダ装置の多回転検出方法は、少なくとも2個の磁界検出素子を備え回転体の多回転量を検出する多回転検出用センサ部と、前記磁界検出素子を駆動する駆動部と、前記回転体の1回転内の位置を検出する1回転内位置検出用センサ部と、前記多回転検出用センサ部から出力される2相の多回転検出信号をコンパレータを通して矩形波に変換し、この矩形波に変換された多回転信号から多回転量を算出する多回転量算出部と、前記1回転内位置検出用センサ部から出力された1回転内位置検出信号をAD変換器を通して取り込み1回転内絶対位置を算出する1回転内位置算出部と、主電源とバッテリ電源を切替え、主電源遮断時にバッテリ電源を供給する電源切替部と、前記1回転内絶対位置と前記多回転量を合成し絶対位置を生成する絶対位置生成部とを備えた絶対値エンコーダ装置の多回転検出方法において、前記多回転量算出部は、主電源供給時に多回転量を算出する第1の多回転量算出部と、バッテリ電源供給時に多回転量を算出する第2の多回転量算出部を備え、前記第1の多回転量算出部で主電源供給時の多回転量を算出し、前記第2の多回転量算出部でバッテリ電源供給時の多回転量を算出し、主電源供給時とバッテリ電源供給時の切替え時に電源切替え直前および電源切替え直後の前記多回転信号の状態を取得し、電源切替え後の多回転量の初期値を補正することを特徴としている。
On the other hand, a multi-rotation detection method for an absolute encoder according to another aspect of the present invention includes a multi-rotation detection sensor unit that includes at least two magnetic field detection elements and detects a multi-rotation amount of a rotating body, and the magnetic field detection element. A driving unit that drives the rotary body, a sensor unit for detecting a position within one rotation for detecting a position within one rotation of the rotating body, and a two-phase multi-rotation detection signal output from the sensor unit for detecting multi-rotation through a comparator. A multi-rotation amount calculation unit that converts a multi-rotation signal from the multi-rotation signal that has been converted into a rectangular wave and calculates a multi-rotation amount from the multi-rotation signal converted into the rectangular wave; A position-in-rotation position calculation unit that takes in through an AD converter and calculates an absolute position in one rotation, a power source switching unit that switches between a main power source and a battery power source and supplies battery power when the main power source is shut off, and the absolute position in one rotation in front In the multi-rotation detection method of the absolute value encoder apparatus including the absolute position generation unit that synthesizes the multi-rotation amount and generates an absolute position, the multi-rotation amount calculation unit calculates the first rotation amount when the main power is supplied. And a second multi-rotation amount calculation unit that calculates the multi-rotation amount when battery power is supplied, and the first multi-rotation amount calculation unit calculates the multi-rotation amount when main power is supplied. The second multi-rotation amount calculation unit calculates the multi-rotation amount at the time of battery power supply, and the state of the multi-rotation signal immediately before power switching and immediately after power switching at the time of switching between main power supply and battery power supply. It is characterized by acquiring and correcting the initial value of the multi-rotation amount after power switching.

本発明の一の観点による絶対値エンコーダによると、主電源遮断時においても多回転量算出し、電源切替え時に電源切替え前後の多回転信号の状態をもとに多回転量の補正を行なうため、電源切替え前後で多回転信号に変化が発生しても所定内であれば算出ミス無く多回転量算出ができ、保守性の良い絶対値エンコーダ装置が実現できる。
According to the absolute value encoder according to one aspect of the present invention, the multi-rotation amount is calculated even when the main power supply is shut off, and the multi-rotation amount is corrected based on the state of the multi-rotation signal before and after the power switch when the power is switched. Even if a change occurs in the multi-rotation signal before and after the power supply switching, the multi-rotation amount can be calculated without any calculation error within a predetermined range, and an absolute value encoder apparatus with good maintainability can be realized.

また、上記一の観点による絶対値エンコーダによると、バッテリ電源供給時に多回転検出用磁界検出素子を間欠的に駆動するため、さらにバッテリ電源供給時の消費電力を低減することができる。
In addition, according to the absolute value encoder according to the above aspect , the multi-rotation detection magnetic field detecting element is intermittently driven when the battery power is supplied, so that the power consumption when the battery power is supplied can be further reduced.

また、上記一の観点による絶対値エンコーダによると、バッテリ電源供給時の間欠駆動の周期をモータの使用回転速度にあわせて設定すれば、回転速度に応じた最適な間欠駆動ができ消費電力をさらに低減できる。
In addition, according to the absolute value encoder according to the above aspect 1, if the cycle of intermittent driving when battery power is supplied is set in accordance with the rotational speed of the motor, optimal intermittent driving according to the rotational speed can be achieved, further reducing power consumption. it can.

また、上記一の観点による絶対値エンコーダによると、バッテリ電源供給時の間欠駆動における電源供給時間を、多回転検出信号の大きさあるいはコンパレータ又はハード回路による立上り時間の固体差等のハード回路の特性を考慮した設定にすれば、多回転検出信号の特性に応じた電源供給ができ、更なる消費電力の低減ができる。
In addition, according to the absolute value encoder according to the above-mentioned one aspect, the power supply time in the intermittent drive at the time of battery power supply is the characteristics of the hard circuit such as the magnitude of the multi-rotation detection signal or the solid difference in the rise time by the comparator or the hardware circuit. If the setting is taken into consideration, power can be supplied according to the characteristics of the multi-rotation detection signal, and the power consumption can be further reduced.

また、本発明の他の観点による絶対値エンコーダ装置の多回転検出方法によると、主電源遮断時においても多回転量算出し、電源切替え時に電源切替え前後の多回転信号の状態をもとに多回転量の補正を行なうため、電源切替え前後で多回転信号に変化が発生しても所定内であれば算出ミス無く多回転量算出ができ、多回転量算出の信頼性が向上する。


Further , according to the multi-rotation detection method of the absolute value encoder device according to another aspect of the present invention, the multi-rotation amount is calculated even when the main power is shut off, and the multi-rotation amount is calculated based on the state of the multi-rotation signal before and after the power switch when the power is switched. Since the rotation amount is corrected, even if a change occurs in the multi-rotation signal before and after the power supply is switched, the multi-rotation amount can be calculated without any calculation error within a predetermined range, and the reliability of the multi-rotation amount calculation is improved.


本発明の第1実施例における絶対値エンコーダ装置の構成を示すブロック図The block diagram which shows the structure of the absolute value encoder apparatus in 1st Example of this invention. 本発明の第1実施例における多回転信号と1回転内絶対位置との関係を示す図The figure which shows the relationship between the multiple rotation signal in 1st Example of this invention, and the absolute position within 1 rotation. 本発明の第1実施例における多回転量補正の動作を示すフローチャートThe flowchart which shows the operation | movement of multiple rotation amount correction | amendment in 1st Example of this invention. 本発明の第2実施例における絶対値エンコーダ装置の構成を示すブロック図The block diagram which shows the structure of the absolute value encoder apparatus in 2nd Example of this invention. 本発明の第2実施例における間欠駆動時の多回転信号の動作波形図Operation waveform diagram of multi-rotation signal during intermittent driving in the second embodiment of the present invention 本発明の第2実施例における動作を示すタイムチャートで、バッテリ電源供給時が主電源供給時に比べてカウントアップ位置が進んでいる場合の例The time chart which shows the operation | movement in 2nd Example of this invention, The example in case the count-up position has advanced at the time of battery power supply compared with the time of main power supply 本発明の第2実施例における動作を示すタイムチャートで、バッテリ電源供給時が主電源供給時に比べてカウントアップ位置が遅れている場合の例The time chart which shows the operation | movement in 2nd Example of this invention, The example in case the count-up position is late | slow compared with the time of main power supply at the time of battery power supply 従来の多回転アブソリュートエンコーダ装置のブロック図Block diagram of a conventional multi-turn absolute encoder device 従来の多回転アブソリュートエンコーダ装置の動作を説明するための図The figure for demonstrating operation | movement of the conventional multi-rotation absolute encoder apparatus.

符号の説明Explanation of symbols

1 多回転検出用センサ部
2 駆動部
3 主電源
4 バッテリ電源
5 電源切替部
6 1回転内位置検出用センサ部
7 AD変換器
8 1回転内位置算出部
9 コンパレータ
10 多回転量算出部
11 絶対位置生成部
12 第1の多回転量算出部
13 第2の多回転量算出部
14 多回転量補正部
15 間欠動作駆動部
21 検出部
22 波形整形部
23 多回転計数部
24 主電源
25 バックアップ電源
26 計数用信号記憶部
28 回転検知部
DESCRIPTION OF SYMBOLS 1 Sensor part for multi-rotation detection 2 Drive part 3 Main power supply 4 Battery power supply 5 Power supply switching part 6 Sensor part for position detection within one rotation 7 AD converter 8 Position calculation part within one rotation 9 Comparator 10 Multi-rotation amount calculation part 11 Absolute Position generation unit 12 First multi-rotation amount calculation unit 13 Second multi-rotation amount calculation unit 14 Multi-rotation amount correction unit 15 Intermittent operation drive unit 21 Detection unit 22 Waveform shaping unit 23 Multi-rotation counting unit 24 Main power supply 25 Backup power source 26 Counting signal storage unit 28 Rotation detection unit

以下、本発明の実施の形態について図を参照して説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の第1実施例における絶対値エンコーダ装置の構成を示すブロック図である。   FIG. 1 is a block diagram showing a configuration of an absolute value encoder apparatus according to a first embodiment of the present invention.

図において、1は多回転検出用センサ部で、図示しない回転体に固定された永久磁石と空隙を介して固定体に取り付けられた磁界検出素子から構成されている。2は磁界検出素子に電源を供給し駆動する駆動部、3は主電源、4はバッテリ電源、5は主電源とバッテリ電源を切替える電源切替部、6は1回転内位置検出用センサ部、7は1回転内位置検出用センサ部からの1回転内検出信号をとりこみデジタルデータへ変換するAD変換器、8はAD変換結果を取り込み1回転内絶対位置を算出する1回転内位置算出部、9は位相の異なる2個の磁界検出素子からの多回転検出信号を矩形波の多回転信号へ変換するコンパレータ、10は多回転信号を取り込み多回転量を算出する多回転量算出部、11は1回転内絶対位置と多回転量を合成し絶対位置とする絶対位置生成部である。   In the figure, reference numeral 1 denotes a multi-rotation detection sensor unit, which is composed of a permanent magnet fixed to a rotating body (not shown) and a magnetic field detection element attached to the fixed body via a gap. 2 is a drive unit that supplies and drives power to the magnetic field detection element, 3 is a main power source, 4 is a battery power source, 5 is a power source switching unit that switches between the main power source and the battery power source, 6 is a sensor unit for position detection within one rotation, 7 Is an AD converter that takes in a detection signal within one rotation from a sensor unit for detecting position within one rotation and converts it into digital data, 8 is a position calculation unit within one rotation that takes an AD conversion result and calculates an absolute position within one rotation, 9 Is a comparator that converts a multi-rotation detection signal from two magnetic field detection elements having different phases into a multi-rotation signal of a rectangular wave, 10 is a multi-rotation amount calculation unit that takes in the multi-rotation signal and calculates a multi-rotation amount, and 11 is 1 This is an absolute position generator that combines the absolute position in rotation and the amount of multiple rotations to obtain an absolute position.

また多回転量算出部10は、主電源供給時に多回転量の算出を行なう第1の多回転算出部12、バッテリ電源供給時に多回転量の算出を行なう第2の多回転算出部13、主電源供給時とバッテリ電源供給時の切替え時に電源切替え直前および電源切替え直後の多回転信号の状態を取得し電源切替え後の多回転量を補正する多回転量補正部14から成る。   The multi-rotation amount calculation unit 10 includes a first multi-rotation calculation unit 12 that calculates the multi-rotation amount when the main power is supplied, a second multi-rotation calculation unit 13 that calculates the multi-rotation amount when the battery power is supplied, It comprises a multi-rotation amount correction unit 14 that acquires the state of a multi-rotation signal immediately before and after power switching at the time of switching between power supply and battery power supply and corrects the multi-rotation amount after power switching.

多回転検出用センサ部1の磁界検出素子は、位相の異なる2素子からなり、コンパレータにより矩形波とされる1回転に1周期の多回転信号を出力できればよい。1回転内位置検出用センサ部は磁気式でも光学式でも1回転内絶対位置が検出できるものであれば良い。磁気式の場合、1回転内検出用と多回転検出用を切替え、1回転内検出と多回転検出を兼用としたものでも良い。   The magnetic field detection element of the multi-rotation detection sensor unit 1 is composed of two elements having different phases as long as it can output a multi-rotation signal of one cycle for one rotation made a rectangular wave by a comparator. The sensor unit for detecting the position within one rotation may be a magnetic or optical sensor that can detect the absolute position within one rotation. In the case of a magnetic system, switching between detection for one rotation and detection for multiple rotations may be performed, and detection within one rotation and multiple rotation detection may be combined.

次に、本発明の第1実施例における絶対値エンコーダ装置の多回転検出の動作について説明する。   Next, the multi-rotation detection operation of the absolute value encoder apparatus according to the first embodiment of the present invention will be described.

電源切替部5は、主電源が遮断されたことを検出すると、切替信号を多回転量算出部10に出力すると共に電源を主電源からバッテリ電源に切替える。   When the power supply switching unit 5 detects that the main power supply is shut off, the power supply switching unit 5 outputs a switching signal to the multi-rotation amount calculation unit 10 and switches the power supply from the main power supply to the battery power supply.

動作は大きく3つに分けられる。すなわち、1回転内位置の算出および多回転量の算出が行なわれる主電源供給中動作、多回転量の算出のみが行なわれるバッテリ電源供給中動作および主電源とバッテリ電源の電源切替え時の動作である。   The operation is roughly divided into three. That is, the operation during main power supply in which the position within one rotation and the amount of multi-rotation are calculated, the operation during battery power supply in which only the calculation of the multi-rotation amount is performed, and the operation at the time of switching between the main power source and the battery power source is there.

以下これらの動作について順に説明する。   Hereinafter, these operations will be described in order.

(主電源供給中動作)
まず、主電源供給中の動作について説明する。
(Operation during main power supply)
First, the operation during the main power supply will be described.

図2は本実施例における多回転信号と1回転内絶対位置との関係を示す図である。主電源供給時には、エンコーダ装置全体に電源が供給される。図においてM1およびM0は、コンパレータ9から出力される2相の多回転信号である。M1とM0の関係は90度位相差をもちHIおよびLOのレベルが50%デューティである矩形波となるよう多回転検出用センサ部1及びコンパレータ9が設計されている。また、多回転信号と1回転内絶対位置との関係が分かり易いように、1回転内絶対位置の原点でM1信号が変化するような構成が望まれるが、必ずしもこの構成でなく1回転内絶対位置とのずれ分を補正値として考えても良い。本実施例では、1回転内絶対位置の原点でM1信号が変化するような構成とした。   FIG. 2 is a diagram showing the relationship between the multi-rotation signal and the absolute position within one rotation in this embodiment. When the main power is supplied, power is supplied to the entire encoder device. In the figure, M1 and M0 are two-phase multi-rotation signals output from the comparator 9. The relationship between M1 and M0 is such that the multi-rotation detection sensor unit 1 and the comparator 9 are designed so as to be a rectangular wave having a 90-degree phase difference and HI and LO levels of 50% duty. Further, in order to easily understand the relationship between the multi-rotation signal and the absolute position within one rotation, a configuration in which the M1 signal changes at the origin of the absolute position within one rotation is desired. A deviation from the position may be considered as a correction value. In the present embodiment, the M1 signal changes at the origin of the absolute position within one rotation.

主電源供給時には第1の多回転量算出部12に多回転信号M1,M0が取込まれる。正回転時には、M1信号の立上りエッジでかつM0信号がLOのときにカウントアップを行い、逆回転時にはM1信号の立ち下がりエッジでかつM0信号がLOのときにカウントダウンを行なう。   When the main power is supplied, the multi-rotation signals M1 and M0 are taken into the first multi-rotation amount calculation unit 12. During forward rotation, counting is performed when the rising edge of the M1 signal and the M0 signal is LO, and during reverse rotation, counting is performed when the falling edge of the M1 signal and the M0 signal is LO.

(バッテリ電源供給中動作)
次に、バッテリ電源供給中の動作について説明する。
(Operation during battery power supply)
Next, the operation during battery power supply will be described.

バッテリ電源供給時には、多回転量を算出する部分、すなわち多回転検出用センサ部1、コンパレータ9および多回転量算出部10のみに電源が供給される。   At the time of battery power supply, power is supplied only to the portion for calculating the multi-rotation amount, that is, the multi-rotation detection sensor unit 1, the comparator 9, and the multi-rotation amount calculation unit 10.

バッテリ電源供給時には第2の多回転量算出部13に多回転信号M1,M0が取込まれる。正回転時には、M1信号の立上りエッジでかつM0信号がLOのときにカウントアップを行い、逆回転時にはM1信号の立ち下がりエッジでかつM0信号がLOのときにカウントダウンを行なう。   When the battery power is supplied, the multi-rotation signals M1 and M0 are taken into the second multi-rotation amount calculation unit 13. During forward rotation, counting is performed when the rising edge of the M1 signal and the M0 signal is LO, and during reverse rotation, counting is performed when the falling edge of the M1 signal and the M0 signal is LO.

多回転量算出用としてスリープモード等の低消費電力機能を持ったマイコンを使用し、低消費電力動作時に信号のエッジによる割込み機能を利用して、すなわち信号のエッジにてカウントアップおよびダウンの判断を行なう。マイコンは割り込み時あるいは周期的にスリープモードから復帰し、算出終了とともにスリープモードへ移行する。   Use a microcomputer with low power consumption function such as sleep mode for multi-rotation calculation, and use the interrupt function by the edge of the signal during low power consumption operation, that is, count up and down at the signal edge To do. The microcomputer returns from the sleep mode at the time of interruption or periodically, and shifts to the sleep mode upon completion of calculation.

しかし、このような割り込み機能を持たない場合には、周期的にM1およびM0信号を監視し、正回転時には、M1信号がLOからHIへ変化しかつM0信号がLOの時にカウントアップを行い、逆回転時には、M1信号がHIからLOへ変化しかつM0信号がLOの時にカウントダウンすれば良い。   However, if such an interrupt function is not provided, the M1 and M0 signals are periodically monitored, and during forward rotation, the M1 signal changes from LO to HI and the M0 signal counts up when it is LO. At the time of reverse rotation, it is only necessary to count down when the M1 signal changes from HI to LO and the M0 signal is LO.

(電源切替え時動作)
次に、電源切替え時の動作について説明する。
(Operation when switching power)
Next, the operation at the time of power switching will be described.

主電源とバッテリ電源の切替え時には、主電源供給時とバッテリ電源供給時の電源条件の差異によって多回転信号に位置変化が発生しても正常な多回転量が得られるよう多回転量補正部14により多回転量の補正を行なう。   At the time of switching between the main power supply and the battery power supply, the multi-rotation amount correction unit 14 is configured so that a normal multi-rotation amount can be obtained even if a position change occurs in the multi-rotation signal due to a difference in power supply conditions between the main power supply and the battery power supply. To correct the multi-rotation amount.

電源切替え時には電源切替部5から多回転量補正部14へ切替信号が出力される。主電源からバッテリ電源へ切替わる場合、第1の多回転量算出部12は主電源遮断直前の多回転信号M1およびM0の状態すなわち、M1LastおよびM0Lastを取得する。次に、第2の多回転量算出部13はバッテリ電源供給直後の多回転信号M1およびM0の状態すなわち、M1NowおよびM0Nowを取得し、多回転量補正部14はこれらの信号の状態の変化によってバッテリ電源開始時の多回転量を補正する。   When the power is switched, a switching signal is output from the power switching unit 5 to the multi-rotation amount correcting unit 14. When switching from the main power supply to the battery power supply, the first multi-rotation amount calculation unit 12 acquires the states of the multi-rotation signals M1 and M0 immediately before the main power supply is cut off, that is, M1Last and M0Last. Next, the second multi-rotation amount calculation unit 13 acquires the states of the multi-rotation signals M1 and M0 immediately after the battery power supply, that is, M1Now and M0Now, and the multi-rotation amount correction unit 14 determines the change in the state of these signals. Correct the amount of multi-rotation at the start of battery power.

バッテリ電源から主電源へ切替わる場合は逆に、バッテリ電源遮断直前の多回転信号M1およびM0の状態をM1LastおよびM0Lastとして取得する。次に、主電源供給直後の多回転信号M1およびM0の状態をM1NowおよびM0Nowとして取得し、これらの信号の状態の変化によって主電源開始時の多回転量を補正する。   Conversely, when switching from the battery power supply to the main power supply, the states of the multi-rotation signals M1 and M0 immediately before the battery power supply is cut off are acquired as M1Last and M0Last. Next, the states of the multi-rotation signals M1 and M0 immediately after the main power supply is acquired as M1Now and M0Now, and the multi-rotation amount at the start of the main power supply is corrected by the change in the state of these signals.

図3は本発明の第1実施例における多回転量補正の動作を示すフローチャートである。   FIG. 3 is a flowchart showing the multi-rotation amount correction operation in the first embodiment of the present invention.

主電源からバッテリ電源へ切替わる場合を例にして説明する。   A case where the main power source is switched to the battery power source will be described as an example.

主電源が所定の電圧より降下し、電源切替部5から多回転量算出部10に切替信号が出力されると、
ステップ1において、第1の多回転量算出部12はM1LastおよびM0Lastを取り込み、
直後にステップ2で、電源切替部5は主電源からバッテリ電源へ切替える。
When the main power supply drops below a predetermined voltage and a switching signal is output from the power supply switching unit 5 to the multi-rotation amount calculation unit 10,
In step 1, the first multi-rotation amount calculation unit 12 takes in M1Last and M0Last,
Immediately after that, in step 2, the power source switching unit 5 switches from the main power source to the battery power source.

電源が切り替わると、ステップ3で第2の多回転量算出部13は、電源切替直後のM1NowおよびM0Nowを取り込む。   When the power source is switched, in step 3, the second multi-rotation amount calculation unit 13 captures M1Now and M0Now immediately after the power source switching.

次に、ステップ4で、多回転補正部14はM0Now=LOであるか否かを判断する。   Next, in Step 4, the multi-rotation correction unit 14 determines whether or not M0Now = LO.

YESの場合は、ステップ5で、さらにM1Last=LOかつM1Now=HIであるか否かを判断し、YESの場合、すなわちステップ4およびステップ5でYESの場合、M0Now=LOでM1Last=LOかつM1Now=HIの場合、正回転でカウントアップ位置を横切ったことになるため多回転量を+1し(ステップ6)、その後リミット処理(ステップ9)を行い終了する。   If YES, in step 5, it is further determined whether M1Last = LO and M1Now = HI. If YES, that is, if YES in step 4 and step 5, M0Now = LO and M1Last = LO and M1Now. In the case of = HI, since the count-up position has been crossed by normal rotation, the multi-rotation amount is incremented by 1 (step 6), and then limit processing (step 9) is performed and the process is terminated.

ステップ5においてNOの場合は、さらにステップ7においてM1Last=HIかつM1Now=LOであるか否かを判断する。YESの場合逆回転でカウントダウン位置を横切ったことになるため多回転量を-1し(ステップ8)、その後リミット処理(ステップ9)を行い終了する。   If NO in step 5, it is further determined in step 7 whether M1Last = HI and M1Now = LO. In the case of YES, since the countdown position has been crossed by reverse rotation, the multi-rotation amount is decremented by 1 (step 8), and then limit processing (step 9) is performed and the process is terminated.

また、ステップ4及びステップ7においてNOの場合もリミット処理(ステップ9)を行い終了する。   Further, in the case of NO in step 4 and step 7, limit processing (step 9) is performed and the process is terminated.

なお、リミット処理は多回転量がカウンタのリミット値を上回か又は0を下回る場合にオーバフローに対する処理を行なうものである。   The limit processing is processing for overflow when the amount of multi-rotation exceeds the limit value of the counter or falls below zero.

なお、主電源が復帰して、バッテリ電源から主電源へ切替わる場合、第2の多回転量算出部13がM1LastおよびM1Lastを取り込み、第1の多回転量算出部12がM1NowおよびM0Nowを取り込むことになるが、補正の動作については同じであるのでその説明を省略する。   When the main power supply is restored and the battery power supply is switched to the main power supply, the second multi-rotation amount calculation unit 13 captures M1Last and M1Last, and the first multi-rotation amount calculation unit 12 captures M1Now and M0Now. However, since the correction operation is the same, the description thereof is omitted.

電源切替えにより主電源供給状態となった時は、第1の多回転量算出部12から得られた補正された多回転量を初期値とし、絶対値生成部11にて1回転内絶対位置算出部8から得られた1回転内絶対位置を合成し絶対位置を出力する。この後の主電源供給中の多回転量のアップダウンは1回転内絶対位置の原点通過によるカウントでも良いし、第1の多回転量算出部12でのカウントでも良い。   When the main power supply state is obtained by power switching, the corrected multi-rotation amount obtained from the first multi-rotation amount calculation unit 12 is set as an initial value, and the absolute value generation unit 11 calculates the absolute position within one rotation. The absolute position within one rotation obtained from the unit 8 is synthesized and the absolute position is output. The subsequent increase / decrease of the multi-rotation amount during the main power supply may be a count by passing the origin of the absolute position within one rotation, or may be a count by the first multi-rotation amount calculation unit 12.

このように、本実施例では、主電源とバッテリ電源の切替え時に、切替え直前および直後の多回転信号を検出し、直前および直後の多回転信号の状態から多回転量の補正をしているので、電源条件又は回路条件による多回転信号の差やマイコンの動作モード切替処理による多回転信号の取込遅れが発生しても所定の誤差内であれば多回転量カウントミスをなくすことができ、正確な絶対位置データを検出できる。   Thus, in this embodiment, when the main power source and the battery power source are switched, the multi-rotation signal immediately before and immediately after the switching is detected, and the multi-rotation amount is corrected from the state of the multi-rotation signal immediately before and immediately after the switching. Even if there is a difference in the multi-rotation signal due to power supply conditions or circuit conditions or a delay in taking in the multi-rotation signal due to the operation mode switching process of the microcomputer, the multi-rotation amount counting error can be eliminated if it is within a predetermined error, Accurate absolute position data can be detected.

また、マイコンをスリープモードで動作させる等により、バッテリ電源の省電力化が実現できる。例えば、主電源供給時は高速回転における多回転量を検出する必要がありM1信号のエッジを検出し多回転量を算出しているが、バッテリ電源時は多回転量算出部の消費電力を抑えるためこの回路に用いられているマイコンをスリープモードで動作させ、一定周期でM1信号およびM0信号の状態を検出することによって多回転量を算出することが一般的に行なわれている。この場合、回路条件の違いやマイコンの動作モード切替処理による検出信号のタイムラグが発生するが所定の範囲内であれば多回転量カウントミスをなくすことができる。   In addition, power saving of the battery power source can be realized by operating the microcomputer in the sleep mode. For example, when the main power is supplied, it is necessary to detect the multi-rotation amount at high speed rotation, and the multi-rotation amount is calculated by detecting the edge of the M1 signal. However, when the battery power is supplied, the power consumption of the multi-rotation amount calculating unit is suppressed. Therefore, it is a general practice to calculate the multi-rotation amount by operating the microcomputer used in this circuit in the sleep mode and detecting the states of the M1 signal and the M0 signal at a constant period. In this case, a time lag of the detection signal due to a difference in circuit conditions or a microcomputer operation mode switching process occurs, but a multi-rotation amount counting error can be eliminated if it is within a predetermined range.

図4は、本発明の第2実施例における絶対値エンコーダ装置の構成を示すブロック図である。   FIG. 4 is a block diagram showing the configuration of the absolute value encoder apparatus in the second embodiment of the present invention.

図において、15はバッテリ電源供給時に多回転検出用センサ部1へパルス状の電源を供給する間欠動作駆動部である。第1の実施例の構成との違いは間欠動作駆動部を備えている点である。本実施例ではバッテリ電源供給中は、多回転検出用センサ部への電源供給は間欠動作となる。   In the figure, 15 is an intermittent operation drive unit that supplies pulsed power to the multi-rotation detection sensor unit 1 when battery power is supplied. The difference from the configuration of the first embodiment is that an intermittent operation drive unit is provided. In the present embodiment, during battery power supply, power supply to the multi-rotation detection sensor unit is intermittent.

次に、本実施例における絶対値エンコーダ装置の多回転検出の動作について説明する。   Next, the multi-rotation detection operation of the absolute value encoder apparatus in the present embodiment will be described.

第1実施例と同様に動作は大きく3つに分けられる。すなわち、1回転内絶対位置の算出および多回転量の算出が行なわれる主電源供給中動作、多回転量の算出のみが行なわれるバックアップ電源供給中動作および主電源とバックアップ電源の電源切替え時の動作である。   Similar to the first embodiment, the operation is roughly divided into three. That is, the operation during the main power supply in which the absolute position within one rotation and the multi-rotation amount are calculated, the operation during the backup power supply in which only the multi-rotation amount is calculated, and the operation at the time of switching between the main power source and the backup power source It is.

以下これらの動作について順に説明する。   Hereinafter, these operations will be described in order.

(主電源供給中動作)
主電源供給中の動作については、実施例1と同じであるためその説明を省略する。
(Operation during main power supply)
Since the operation during the main power supply is the same as that of the first embodiment, the description thereof is omitted.

(バッテリ電源供給中動作)
次に、バッテリ電源供給中の動作について説明する。
(Operation during battery power supply)
Next, the operation during battery power supply will be described.

バッテリ電源供給時には、第1実施例と同様に多回転量を算出する部分のみに電源が供給されるが、本実施例ではさらに多回転用の磁界検出素子は、電源切替部5からの信号を受けて間欠動作駆動部15により一定周期毎に一定時間だけ駆動される。   At the time of battery power supply, power is supplied only to the portion that calculates the multi-rotation amount as in the first embodiment. In this embodiment, the multi-rotation magnetic field detection element further receives a signal from the power switching unit 5. In response to this, the intermittent operation drive unit 15 is driven for a fixed time every fixed period.

すなわち、タイマで一定周期カウント時に多回転検出用センサ部1の磁界検出素子(図示せず)へ電源の供給が開始される。電源供給から一定時間経過後、第2の多回転量算出部13に多回転信号M1,M0が取込まれ、電源供給が停止する。   That is, the supply of power to the magnetic field detection element (not shown) of the multi-rotation detection sensor unit 1 is started when the timer counts for a certain period. After a lapse of a certain time from the power supply, the multi-rotation signals M1 and M0 are taken into the second multi-rotation amount calculation unit 13, and the power supply is stopped.

多回転量算出用としてスリープモード等の低消費電力機能を持ったマイコンを使用する。電源供給開始時にスリープモードから復帰するが、信号取り込み、電源供給停止後、算出動作を行い、終了するとともにスリープモードへ移行する。   A microcomputer with low power consumption function such as sleep mode is used for multi-rotation calculation. It returns from the sleep mode at the start of power supply, but after calculating the signal and stopping the power supply, the calculation operation is performed.

ここで、間欠駆動時における多回転信号M1,M0の動作波形について説明する。   Here, the operation waveforms of the multi-rotation signals M1 and M0 during intermittent driving will be described.

間欠駆動時には、コンパレータの出力が立ち上がり、矩形波として出力される多回転信号M1,M0が定常状態になるまである程度の時間が必要となる。   During intermittent driving, a certain amount of time is required until the output of the comparator rises and the multi-rotation signals M1 and M0 output as rectangular waves become steady.

図5は本実施例における間欠駆動時の多回転信号の動作波形図で、図5(a)は電源供給開始後、多回転信号M1,M0を取り込むまでの時間が長い場合である。この場合十分時間が経過しているため多回転信号は定常状態となっており多回転信号M1,M0のHIおよびLOの区間の比が50%:50%となる。   FIG. 5 is an operation waveform diagram of the multi-rotation signal at the time of intermittent driving in the present embodiment, and FIG. 5 (a) shows a case where the time until the multi-rotation signals M1 and M0 are taken after the power supply is started is long. In this case, since sufficient time has passed, the multi-rotation signal is in a steady state, and the ratio between the HI and LO sections of the multi-rotation signals M1 and M0 is 50%: 50%.

図5(b)および(c)は取り込むまでの時間が短い場合である。多回転検出用センサ部1への電源供給前はコンパレータからの出力は不定状態にある。取り込みまでの時間を短くした場合、電源供給前のコンパレータ出力がHIであるかLOであるかによって取り込んだ多回転信号M1,M0のHIおよびLOの区間の比が50%:50%とは異なってくる。(b)はM1,M0ともに電源供給前はHIの状態にあった場合であり、HIおよびLO区間の比はHI>LOとなり、(c)はM1,M0ともに電源供給前はLOの状態にあった場合であり、HIおよびLO区間の比はHI<LOとなっている。   FIGS. 5B and 5C show a case where the time until capturing is short. Before supplying power to the multi-rotation detection sensor unit 1, the output from the comparator is in an indefinite state. When the time to capture is shortened, the ratio between the HI and LO intervals of the multi-rotation signals M1 and M0 captured is different from 50%: 50% depending on whether the comparator output before power supply is HI or LO. Come. (B) shows the case where both M1 and M0 are in the HI state before the power supply, and the ratio of the HI and LO sections becomes HI> LO, and (c) both the M1 and M0 are in the LO state before the power supply. In this case, the ratio between the HI and LO sections is HI <LO.

このため、信号の立上がりおよび立下り位置がずれるためカウントアップやカウントダウン位置もずれてくる。   For this reason, since the rising and falling positions of the signal are shifted, the count-up and count-down positions are also shifted.

しかしながら、立上がりおよび立下り位置がずれても、(M1,M0)が1回転に1回、正回転時には(HI,LO)→(HI,HI)→(LO,HI)→(LO,LO)、逆回転時には(LO,LO)→(LO,HI)→(HI,HI)→(HI,LO)の4つの状態を連続して有し、回転に応じて4つの状態を繰り返し出力すれば、正回転時には、M1信号がLOからHIへ変化しかつM0信号がLOの時にカウントアップし、逆回転時には、M1信号がHIからLOへ変化しかつM0信号がLOの時にカウントダウンする。すなわち、1回転に一度カウントアップまたはカウントダウンが行なわれ正常にカウントされる。電源供給時間を、この条件を満たす時間で設定することによって大幅な消費電流の低減が実現できる。   However, even if the rising and falling positions are deviated, (M1, M0) is once per rotation, and during forward rotation, (HI, LO) → (HI, HI) → (LO, HI) → (LO, LO) In reverse rotation, if there are four consecutive states (LO, LO) → (LO, HI) → (HI, HI) → (HI, LO), and if the four states are output repeatedly according to the rotation, During forward rotation, the M1 signal changes from LO to HI and the M0 signal counts up when LO, and during reverse rotation, the M1 signal changes from HI to LO and counts down when the M0 signal is LO. That is, the counter is counted up or down once per rotation and is counted normally. By setting the power supply time to a time that satisfies this condition, a significant reduction in current consumption can be realized.

(電源切替え時動作)
本実施例では間欠動作駆動部15は電源切替部5からの信号により一定周期毎に一定時間多回転用の磁界検出素子を駆動(パルス状の電源を供給)している。このように電源供給時間が短い場合、多回転信号の立上がりおよび立下り位置がずれ易い。電源切替え時の処理動作については第1実施例と同じであり、第1実施例の説明に用いた図3のフローチャートで表されるが、ここではさらに理解を助けるために、多回転信号の立上がりおよび立下り位置がずれ場合の電源切替え時の動作をタイムチャート用いて、より詳細に説明する。
(Operation when switching power)
In the present embodiment, the intermittent operation drive unit 15 drives the magnetic field detection element for multiple rotations for a certain period of time (supplys a pulsed power supply) at a certain period by a signal from the power supply switching unit 5. In this way, when the power supply time is short, the rising and falling positions of the multi-rotation signal are likely to shift. The processing operation at the time of switching the power supply is the same as that of the first embodiment, and is represented by the flowchart of FIG. 3 used for the description of the first embodiment. The operation at the time of power supply switching when the falling position is shifted will be described in more detail using a time chart.

図6は本実施例における動作を示すタイムチャートで、バッテリ電源供給時が主電源供給時に比べてカウントアップ位置が進んでいる場合の例である。   FIG. 6 is a time chart showing the operation in this embodiment, which is an example in which the count-up position is advanced when the battery power is supplied compared to when the main power is supplied.

図6(a)は主電源からバッテリ電源へ切り替わる時のタイムチャートで、電源切替え直前の時刻t−1においてM1Last=LO、M0 Last =LOが検出され、電源切替え直後の時刻t+1にM1Now=HIが検出された場合である。この場合+1補正される。また、図6(b)はバッテリ電源から主電源へ切り替わる時のタイムチャートで、電源切替え直前の時刻t−1においてM1Last= HI、M0 Last =LOが検出され、電源切替え直後の時刻t+1にM1Now= LOが検出された場合である。この場合−1補正される。その後、M1がLOからHIに変化した時点(t+1’)で+1カウントされる。FIG. 6A is a time chart when switching from the main power supply to the battery power supply. M1Last = LO and M0Last = LO are detected at time t− 1 immediately before the power supply switching, and M1Now = at time t + 1 immediately after the power supply switching. This is a case where HI is detected. In this case, +1 is corrected. FIG. 6B is a time chart when the battery power source is switched to the main power source. M1 Last = HI and M0 Last = LO are detected at time t− 1 immediately before the power source switching, and at time t + 1 immediately after the power source switching. This is a case where M1Now = LO is detected. In this case, −1 is corrected. Thereafter, +1 is counted when M1 changes from LO to HI (t + 1 ′).

図7は図6とは逆に、バッテリ電源供給時が主電源供給時に比べてカウントアップ位置が遅れている場合の例である。   FIG. 7 shows an example in which the count-up position is delayed when battery power is supplied compared to when main power is supplied, contrary to FIG.

図7(a)は主電源からバッテリ電源へ切り替わる時のタイムチャートで、電源切替え直前の時刻t−1においてM1Last= HI、M0 Last =LOが検出され、電源切替え直後の時刻t+1にM1Now= LOが検出された場合である。この場合−1補正される。その後、M1がLOからHIに変化した時点(t+1’)で+1カウントされる。FIG. 7A is a time chart when the main power source is switched to the battery power source. M1Last = HI and M0Last = LO are detected at time t− 1 immediately before the power source switching, and M1Now = time t + 1 immediately after the power source switching. This is the case when LO is detected. In this case, −1 is corrected. Thereafter, +1 is counted when M1 changes from LO to HI (t + 1 ′).

また、図7(b)はバッテリ電源から主電源へ切り替わる時のタイムチャートで、電源切替え直前の時刻t−1においてM1Last= LO、M0 Last =LOが検出され、電源切替え直後の時刻t+1にM1Now= HIが検出された場合である。この場合+1補正される。FIG. 7B is a time chart when switching from the battery power source to the main power source. M1Last = LO and M0Last = LO are detected at time t− 1 immediately before the power source switching, and at time t + 1 immediately after the power source switching. This is a case where M1Now = HI is detected. In this case, +1 is corrected.

なお、バッテリ電源供給時における間欠駆動の周期および電源供給時間は、多回転量検出可能な回転速度と関係がある。周期によって1回転分のサンプリング数が決まる。多回転信号M1,M0の関係(M1,M0)が (HI,LO),(HI,HI),(LO,HI),(LO,LO)となる4パターンを認識するためには1回転に最低4サンプリング取れる周期の設定を行う。また、電源供給時間によってM1,M0のHIおよびLO区間の比が決まるため、多回転信号M1,M0の関係(M1,M0)が (HI,LO),(HI,HI),(LO,HI),(LO,LO)となる4パターンを認識できる電源供給の時間を設定する。上記の間欠駆動の周期および電源供給時間はパラメータとして設定できるようにしておく。   Note that the cycle of intermittent driving and the power supply time during battery power supply are related to the rotation speed at which multiple rotation amounts can be detected. The number of samples for one rotation is determined by the period. In order to recognize 4 patterns in which the relationship (M1, M0) of the multi-rotation signals M1, M0 is (HI, LO), (HI, HI), (LO, HI), (LO, LO) Set a period that allows at least 4 samplings. Further, since the ratio between the HI and LO sections of M1 and M0 is determined by the power supply time, the relationship (M1, M0) of the multi-rotation signals M1 and M0 is (HI, LO), (HI, HI), (LO, HI). ), (LO, LO) The power supply time for recognizing the four patterns is set. The intermittent drive cycle and the power supply time are set as parameters.

また、タイマを用いて多回転信号の周期から簡易的に回転速度を算出し、この回転速度に比例して間欠駆動の周期を切替えればさらに消費電力の低減化が可能となる。また、電源供給時間を可変として、多回転信号のコンパレータ出力特性に応じて電源供給時間を最適値に切替えることにより更なる消費電力の低減化が可能となる。   Further, if the rotation speed is simply calculated from the period of the multi-rotation signal using a timer and the intermittent drive period is switched in proportion to the rotation speed, the power consumption can be further reduced. Further, by making the power supply time variable and switching the power supply time to an optimum value according to the comparator output characteristics of the multi-rotation signal, it is possible to further reduce power consumption.

このように本実施例では、バッテリ電源供給時に間欠駆動により多回転検出用センサ部へ電源供給しているので消費電力をさらに低減できる。また、主電源とバッテリ電源の切替え時に、切替え直前および直後の多回転信号を検出し、直前および直後の多回転信号の状態から多回転量の補正をしているので、バッテリ電源供給時の間欠駆動による主電源供給時とで多回転信号の差が発生しても所定の誤差内であれば多回転量のカウントミスをなくすことができ、モータ回転中の電源切替えに対しても正確な絶対値位置データを検出できる。   As described above, in this embodiment, power is supplied to the multi-rotation detection sensor unit by intermittent drive when battery power is supplied, so that power consumption can be further reduced. Also, when switching between the main power supply and battery power supply, the multi-rotation signal immediately before and immediately after the switching is detected, and the multi-rotation amount is corrected from the state of the multi-rotation signal immediately before and immediately after the switching, so intermittent drive at the time of battery power supply Even if there is a difference in the multi-rotation signal from when the main power is supplied, the count error of the multi-rotation amount can be eliminated as long as it is within the specified error, and the absolute value is accurate even when the power is switched during motor rotation Position data can be detected.

本発明は、ロボット、NC工作機械等に用いられるサーボモータの回転位置を検出する絶対値エンコーダに適用できる。   The present invention can be applied to an absolute value encoder that detects the rotational position of a servo motor used in a robot, an NC machine tool, or the like.

Claims (5)

少なくとも2個の磁界検出素子を備え回転体の多回転量を検出する多回転検出用センサ部と、
前記磁界検出素子を駆動する駆動部と、
前記回転体の1回転内の位置を検出する1回転内位置検出用センサ部と、
前記多回転検出用センサ部から出力される2相の多回転検出信号をコンパレータを通して矩形波に変換し、この矩形波に変換された多回転信号から多回転量を算出する多回転量算出部と、
前記1回転内位置検出用センサ部から出力された1回転内位置検出信号をAD変換器を通して取り込み1回転内絶対位置を算出する1回転内位置算出部と、
主電源とバッテリ電源を切替え、主電源遮断時にバッテリ電源を供給する電源切替部と、
前記1回転内絶対位置と前記多回転量を合成し絶対位置を生成する絶対位置生成部と
を備え、
前記多回転量算出部は、
主電源供給時に多回転量を算出する第1の多回転量算出部と、
バッテリ電源供給時に多回転量を算出する第2の多回転量算出部と、
前記主電源供給時と前記バッテリ電源供給時の切替え時に、電源切替え直前および電源切替え直後の前記多回転信号の状態を取得し電源切替え後の多回転量の初期値を補正する多回転量補正部と
を備えた、絶対値エンコーダ装置。
A multi-rotation detection sensor unit that includes at least two magnetic field detection elements and detects the multi-rotation amount of the rotating body;
A drive unit for driving the magnetic field detection element;
A position sensor for detecting position within one rotation for detecting a position within one rotation of the rotating body;
A multi-rotation amount calculation unit that converts a two-phase multi-rotation detection signal output from the multi-rotation detection sensor unit into a rectangular wave through a comparator, and calculates a multi-rotation amount from the multi-rotation signal converted into the rectangular wave; ,
A one-revolution position calculation unit that takes in the one-revolution position detection signal output from the one-revolution position detection sensor through an AD converter and calculates an absolute position within one rotation;
A power source switching unit that switches between the main power source and the battery power source and supplies the battery power source when the main power source is shut off;
An absolute position generation unit that combines the absolute position within one rotation and the amount of multiple rotations to generate an absolute position ;
With
The multi-rotation amount calculation unit
A first multi-rotation amount calculator that calculates the multi-rotation amount when the main power is supplied;
A second multi-rotation amount calculating unit that calculates the multi-rotation amount when supplying battery power;
A multi-rotation amount correction unit that acquires the state of the multi-rotation signal immediately before power switching and immediately after power switching and corrects the initial value of the multi-rotation amount after power switching when switching between the main power supply and the battery power supply and,
An absolute encoder device comprising:
前記駆動部は、バッテリ電源供給時に前記磁界検出素子へ一定周期のパルス状の電源を供給する請求項1記載の絶対値エンコーダ装置。The absolute value encoder device according to claim 1 , wherein the driving unit supplies pulsed power having a constant cycle to the magnetic field detection element when battery power is supplied. 前記パルス状の電源のパルス周期を前記回転体の回転速度に応じて切替える請求項2記載の絶対値エンコーダ装置。The absolute value encoder apparatus according to claim 2 , wherein the pulse period of the pulsed power source is switched according to a rotation speed of the rotating body. 前記パルス状の電源のパルス幅は、バッテリ電源供給時の前記多回転信号の立上がりおよび立下がり特性に応じて設定できる、請求項2又は3に記載の絶対値エンコーダ装置。4. The absolute value encoder device according to claim 2 , wherein a pulse width of the pulsed power supply can be set according to rising and falling characteristics of the multi-rotation signal when battery power is supplied. 少なくとも2個の磁界検出素子を備え回転体の多回転量を検出する多回転検出用センサ部と、
前記磁界検出素子を駆動する駆動部と、
前記回転体の1回転内の位置を検出する1回転内位置検出用センサ部と、
前記多回転検出用センサ部から出力される2相の多回転検出信号をコンパレータを通して矩形波に変換し、この矩形波に変換された多回転信号から多回転量を算出する多回転量算出部と、
前記1回転内位置検出用センサ部から出力された1回転内位置検出信号をAD変換器を通して取り込み1回転内絶対位置を算出する1回転内位置算出部と、
主電源とバッテリ電源を切替え、主電源遮断時にバッテリ電源を供給する電源切替部と、
前記1回転内絶対位置と前記多回転量を合成し絶対位置を生成する絶対位置生成部と
を備え、
前記多回転量算出部は、
主電源供給時に多回転量を算出する第1の多回転量算出部と、
バッテリ電源供給時に多回転量を算出する第2の多回転量算出部と、
を備えた絶対値エンコーダ装置を使用して、
前記第1の多回転量算出部で主電源供給時の多回転量を算出し、
前記第2の多回転量算出部でバッテリ電源供給時の多回転量を算出し、
主電源供給時とバッテリ電源供給時の切替え時に電源切替え直前および電源切替え直後の前記多回転信号の状態を取得し、
電源切替え後の多回転量の初期値を補正する絶対値エンコーダ装置の多回転検出方法。
A multi-rotation detection sensor unit that includes at least two magnetic field detection elements and detects the multi-rotation amount of the rotating body;
A drive unit for driving the magnetic field detection element;
A position sensor for detecting position within one rotation for detecting a position within one rotation of the rotating body;
A multi-rotation amount calculation unit that converts a two-phase multi-rotation detection signal output from the multi-rotation detection sensor unit into a rectangular wave through a comparator, and calculates a multi-rotation amount from the multi-rotation signal converted into the rectangular wave; ,
A one-revolution position calculation unit that takes in a one-revolution position detection signal output from the one-revolution position detection sensor through an AD converter, and calculates an absolute position within one rotation;
A power source switching unit that switches between the main power source and the battery power source and supplies the battery power source when the main power source is shut off;
An absolute position generation unit that combines the absolute position within one rotation and the amount of multiple rotations to generate an absolute position ;
With
The multi-rotation amount calculation unit
A first multi-rotation amount calculator that calculates the multi-rotation amount when the main power is supplied;
A second multi-rotation amount calculating unit that calculates the multi-rotation amount when supplying battery power ;
Using an absolute encoder device with
The first multi-rotation amount calculation unit calculates the multi-rotation amount at the time of main power supply,
The second multi-rotation amount calculation unit calculates the multi-rotation amount at the time of battery power supply,
Acquire the state of the multi-rotation signal immediately before power switching and immediately after power switching at the time of switching between main power supply and battery power supply,
A multi-rotation detection method for an absolute value encoder device , which corrects an initial value of a multi-rotation amount after power switching.
JP2009501158A 2007-02-26 2008-02-01 Absolute value encoder device and multi-rotation detection method Expired - Fee Related JP4900473B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009501158A JP4900473B2 (en) 2007-02-26 2008-02-01 Absolute value encoder device and multi-rotation detection method

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2007046182 2007-02-26
JP2007046182 2007-02-26
PCT/JP2008/051634 WO2008105217A1 (en) 2007-02-26 2008-02-01 Absolute value encoder device and multirotation detecting method
JP2009501158A JP4900473B2 (en) 2007-02-26 2008-02-01 Absolute value encoder device and multi-rotation detection method

Publications (2)

Publication Number Publication Date
JPWO2008105217A1 JPWO2008105217A1 (en) 2010-06-03
JP4900473B2 true JP4900473B2 (en) 2012-03-21

Family

ID=39721055

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009501158A Expired - Fee Related JP4900473B2 (en) 2007-02-26 2008-02-01 Absolute value encoder device and multi-rotation detection method

Country Status (4)

Country Link
JP (1) JP4900473B2 (en)
CN (1) CN101583852B (en)
TW (1) TW200848705A (en)
WO (1) WO2008105217A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103715963A (en) * 2013-12-31 2014-04-09 山东新风光电子科技发展有限公司 Speed and position signal anti-interference processing method based on absolute position encoder
US20240247927A1 (en) * 2021-05-27 2024-07-25 Minebea Mitsumi Inc. Rotation detection device, rotation detection method, and rotation detection program

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2444864A1 (en) * 2010-10-22 2012-04-25 Siemens Aktiengesellschaft Method and device for reducing the energy consumption of an automation machine
JP5339094B2 (en) * 2010-11-10 2013-11-13 日本精工株式会社 Electric power steering device
JP6005936B2 (en) * 2011-12-28 2016-10-12 日本電産サンキョー株式会社 Encoder and control method of encoder
JP6196532B2 (en) * 2013-11-05 2017-09-13 日本電産サンキョー株式会社 Encoder
JP6499826B2 (en) * 2014-01-29 2019-04-10 日本電産サンキョー株式会社 Industrial robot
CN106796122B (en) * 2014-08-21 2018-07-10 三菱电机株式会社 voltage supply device
JP2016085195A (en) * 2014-10-29 2016-05-19 パナソニックIpマネジメント株式会社 Rotational position detector of resolver
JP2017227457A (en) * 2016-06-20 2017-12-28 アズビル株式会社 Detection apparatus and detection method
CN107655399A (en) * 2017-07-12 2018-02-02 北京军立方机器人科技有限公司 A kind of multi-turn absolute value encoder and method for detecting position
CN108844558B (en) * 2018-06-29 2020-05-26 上海共久电气有限公司 Method for realizing power-off position memory by using single-turn absolute value encoder
JP7324060B2 (en) * 2019-06-11 2023-08-09 ファナック株式会社 Position detector
US11342818B2 (en) 2019-12-23 2022-05-24 Delta Electronics, Inc. Encoder, motor and controlling method of encoder
JP2021135194A (en) * 2020-02-27 2021-09-13 日本精工株式会社 Rotation angle detector, and bearing attached with sensor
CN113008276B (en) * 2021-02-20 2022-11-25 浙江禾川科技股份有限公司 Battery type magnetic encoder
JP7284923B2 (en) 2021-04-09 2023-06-01 株式会社安川電機 Encoders, servo motors, servo systems
WO2024147182A1 (en) * 2023-01-05 2024-07-11 ファナック株式会社 Position detection system and actuator

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09218054A (en) * 1996-02-15 1997-08-19 Omron Corp Multi-rotation type absolute encoder
JPH1038615A (en) * 1996-07-22 1998-02-13 Omron Corp Multi-turn absolute encoder
KR100611435B1 (en) * 1998-07-23 2006-08-09 가부시키가이샤 야스카와덴키 Absolute encoder
JP4344991B2 (en) * 2003-06-19 2009-10-14 東芝機械株式会社 Resolver signal processing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103715963A (en) * 2013-12-31 2014-04-09 山东新风光电子科技发展有限公司 Speed and position signal anti-interference processing method based on absolute position encoder
US20240247927A1 (en) * 2021-05-27 2024-07-25 Minebea Mitsumi Inc. Rotation detection device, rotation detection method, and rotation detection program

Also Published As

Publication number Publication date
JPWO2008105217A1 (en) 2010-06-03
CN101583852A (en) 2009-11-18
TWI360642B (en) 2012-03-21
CN101583852B (en) 2011-03-16
WO2008105217A1 (en) 2008-09-04
TW200848705A (en) 2008-12-16

Similar Documents

Publication Publication Date Title
JP4900473B2 (en) Absolute value encoder device and multi-rotation detection method
JP4980453B2 (en) Servo control system for high-precision machining
TW201435529A (en) Servo control device
CN100411792C (en) Thread cutting control method and device thereof
TWI410766B (en) Numerical control apparatus
JP5640732B2 (en) Encoder device, drive device, and robot device
KR0185465B1 (en) Absolute encoder and method of generating its current position
JP5025395B2 (en) Method for adjusting initial position of position detector and motor drive device using this method
JPWO2020149002A1 (en) Motor control device
JP3903478B2 (en) Control device for permanent magnet type synchronous motor
JP5299844B2 (en) Speed monitoring device
JP2010164540A (en) Controller and machining device
JP2003315099A (en) Multi-turn encoder
JP4782434B2 (en) Rotation detection device signal processing device
JPH11264742A (en) Encoder misalignment detector
JP4206374B2 (en) Synchronous motor control device and initial phase setting method thereof
JP2006170946A (en) Rotary table control device
JP5736968B2 (en) Encoder device, drive device, and robot system
JP3009620B2 (en) Home position return method for multi-pole detection resolver and home position return device for multi-pole detection resolver
JP4463533B2 (en) Rotary encoder detection device
JP3010107B2 (en) Encoder system
JP4867534B2 (en) Motor speed detection device
JP2020190499A (en) Encoder device
JP2004279188A (en) Absolute position detector
WO2011132411A1 (en) Motor control apparatus, motor control method, motor system, and computer-readable medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101117

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110906

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: 20111206

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111219

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150113

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees