JP4845013B2 - Position measuring device - Google Patents

Position measuring device Download PDF

Info

Publication number
JP4845013B2
JP4845013B2 JP2006099348A JP2006099348A JP4845013B2 JP 4845013 B2 JP4845013 B2 JP 4845013B2 JP 2006099348 A JP2006099348 A JP 2006099348A JP 2006099348 A JP2006099348 A JP 2006099348A JP 4845013 B2 JP4845013 B2 JP 4845013B2
Authority
JP
Japan
Prior art keywords
phase
pulse
count
edge
pulse edge
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
JP2006099348A
Other languages
Japanese (ja)
Other versions
JP2007271520A (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.)
THE FURUKAW ELECTRIC CO., LTD.
Original Assignee
THE FURUKAW ELECTRIC 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 THE FURUKAW ELECTRIC CO., LTD. filed Critical THE FURUKAW ELECTRIC CO., LTD.
Priority to JP2006099348A priority Critical patent/JP4845013B2/en
Publication of JP2007271520A publication Critical patent/JP2007271520A/en
Application granted granted Critical
Publication of JP4845013B2 publication Critical patent/JP4845013B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、位相のずれた2つの正弦波パルスを駆動量に応じて出力するパルス発生器から出力されるいずれか一方のパルスのパルスエッジをカウントして、被駆動部材の移動量又は移動位置を計測するパルスエンコーダ等の位置計測装置に関し、特に、自動車等のハッチバックドア又は車両の側面に設けたスライドドアを、モータ等の駆動源によって開閉移動する車両用スライドドアの使用に適する位置計測装置に関する。 The present invention counts the pulse edge of one of the pulses output from a pulse generator that outputs two sine wave pulses out of phase in accordance with the drive amount, and moves or moves the position of the driven member. In particular, a position measuring device suitable for use with a vehicle sliding door in which a hatch back door of an automobile or the like or a sliding door provided on a side surface of a vehicle is opened and closed by a driving source such as a motor. About.

従来から、車両の後部のドア(ハッチバックドア)を自動的に開閉するドア開閉装置や、自動車等の車両の車体側面に、前後方向にスライド移動可能なスライドドアを取り付け、このスライドドアをモータ等の駆動源によって開閉移動させるようにした車両用スライドドアの自動開閉装置が知られている。   Conventionally, a door opening / closing device that automatically opens and closes a rear door (hatchback door) of a vehicle, or a sliding door that can slide in the front-rear direction is attached to the side of a vehicle body such as an automobile. 2. Description of the Related Art An automatic opening / closing device for a sliding door for a vehicle that is opened and closed by a driving source is known.

この装置は、運転席またはドアハンドルの近くに設けたドア開閉用の操作子を操作することで、あるいは車外からワイヤレスリモコンを操作することで、車内に設置した制御装置によって駆動源を起動し、ハッチバックドアやスライドドアを自動的に開閉し、または開閉移動させるものである。   This device operates a door opening / closing operator provided near the driver's seat or the door handle, or operates a wireless remote controller from outside the vehicle, and activates a drive source by a control device installed in the vehicle, The hatchback door and slide door are automatically opened and closed or moved to open and close.

これらの車両用のハッチバックドアやスライドドアにおいては、全閉位置状態にあるドアを駆動源によって開方向に駆動する場合、ドアのドアロック機構を解除した後に駆動し、開いた状態のドアを閉じる場合にはドアを閉方向に駆動して全閉位置でロックする。ドアの開閉動作はモータ等の駆動源により駆動され、開閉動作は位置検出装置から出力されるドアの位置データに基づいて制御される。スライドドアの位置データは、モータ等の駆動源に設けられた、またはドアの移動に連動して動作するエンコーダまたはホールIC等のパルス発生器の出力パルスに基づいて、位置検出装置により算出される。   In these hatchback doors and sliding doors for vehicles, when a door in a fully closed position is driven in the opening direction by a drive source, the door is driven after the door lock mechanism is released, and the opened door is closed. In this case, the door is driven in the closing direction and locked in the fully closed position. The door opening / closing operation is driven by a drive source such as a motor, and the opening / closing operation is controlled based on door position data output from the position detection device. The position data of the sliding door is calculated by the position detection device based on the output pulse of a pulse generator such as an encoder or Hall IC provided in a driving source such as a motor or operating in conjunction with the movement of the door. .

従って、この位置データが誤っていると、ドアのロックの制御、開閉動作の制御に不具合が発生してドア機構の破損を招くおそれがあるだけでなく、ドアの開閉ができなくなることがある。例えば特許文献1に記載の自動ドア開閉制御装置では、駆動装置を制御してスライドドアの押し付け強さなど調整しながら、スライドドアの実際の閉位置と位置検出装置により算出した閉位置の位置データとを整合させている。整合させた位置データは記憶され、以後の制御データとして使用している。また、特許文献2に記載の発明では、2相パルス出力のエンコーダを使いモータ速度を検出してモータの速度を制御するモータ速度制御装置において、デューティ不均衡量及び前記2相パルス相互の所定位相差から定常位相誤差をパルス数に換算して、パルスカウントの誤差を補正している。
特開2001−254567号公報 特開平10−90293号公報
Therefore, if this position data is incorrect, there is a possibility that the door lock control and the opening / closing operation control may be defective and the door mechanism may be damaged, and the door may not be opened or closed. For example, in the automatic door opening / closing control device described in Patent Document 1, the position data of the actual closed position of the sliding door and the closed position calculated by the position detection device while controlling the driving device and adjusting the pressing strength of the sliding door, etc. And is consistent. The aligned position data is stored and used as subsequent control data. In the invention described in Patent Document 2, in a motor speed control device that controls the motor speed by detecting the motor speed using an encoder with a two-phase pulse output, a duty imbalance amount and a predetermined position between the two-phase pulses are determined. The stationary phase error is converted into the number of pulses from the phase difference to correct the pulse count error.
JP 2001-254567 A Japanese Patent Laid-Open No. 10-90293

しかし、特許文献1に記載の発明のように、スライドドアの実際位置と位置データを整合させて正しく記憶したとしても、スライドドアの動作中に駆動源から出力されるパルスに異常が発生した場合、または電源の瞬断等によりノイズを拾った場合等に、パルス異常が発生することがある。   However, as in the invention described in Patent Document 1, even if the actual position of the slide door and the position data are aligned and stored correctly, an abnormality occurs in the pulse output from the drive source during the operation of the slide door. Or, when noise is picked up due to a momentary power interruption or the like, a pulse abnormality may occur.

これらの異常パルスの発生により位置データの計数を誤ると、位置検出装置のデータは誤ったものとなり、実際のドアの位置と位置検出装置による位置データにずれが生じることになる。このようなずれが発生すると、ドア開閉制御部はドア開閉機構を正しく制御することができない。例えば、電源の瞬断が繰り返されると、エンコーダ出力にパルス状のノイズが発生し、ノイズエッジにより誤ったカウントが行われることがある。   If the position data is erroneously counted due to the occurrence of these abnormal pulses, the data of the position detection device becomes incorrect, and a deviation occurs between the actual door position and the position data of the position detection device. When such a shift occurs, the door opening / closing control unit cannot correctly control the door opening / closing mechanism. For example, if the power supply is repeatedly interrupted, pulsed noise is generated in the encoder output, and erroneous counting may occur due to noise edges.

本発明は、電源瞬断等による誤ったパルスカウントを防止可能な位置計測装置を提供することを目的とする。   An object of the present invention is to provide a position measuring device capable of preventing erroneous pulse counting due to a momentary power interruption or the like.

課題を解決するための手段及び作用効果Means and effects for solving the problems

上記課題を解決するため、請求項1に記載の位置計測装置は、位相のずれたA相、B相の正弦波パルスを駆動量に応じて出力するパルス発生器から出力されるいずれか一方のパルスのパルスエッジをカウントすることにより、被駆動部材の移動量又は移動位置を計測する位置計測装置において
前記A相パルスおよび前記B相パルスの立ち上がりまたは立下りエッジの間隔が所定値以下のときに、連続して現れるA相パルスエッジまたはB相パルスエッジの順序に応じて、パルスカウントを中止し、またはカウント値を補正するカウント補正部を備え、
前記カウント補正部は、連続するパルスエッジ間隔を監視し、連続する前記パルスエッジ間隔が所定の値以下のときに異常と判定するエッジ監視部と、
前記エッジ監視部により異常と判定されたときに、予め記憶した所定のアルゴリズムに従って、異常と判定された前記連続するパルスエッジの発生順序に応じて前記カウント値を補正する補正制御部とを備え、
前記補正制御部は、異常と判定された2連続するパルスエッジが非カウント位相のパルスエッジからカウントすべき位相のパルスエッジに変化したときは、当該近接するパルスエッジによるカウントを中止し、2連続するパルスエッジがカウントすべき位相のパルスエッジから非カウント位相のパルスエッジに変化したときは、前記異常と判定されたパルスエッジによるカウント値をその直前のカウント値に戻すことを特徴とする。
In order to solve the above-described problem, the position measuring device according to claim 1 is configured to output either one of the phase-shifted A-phase and B-phase sine wave pulses according to the driving amount. In a position measurement device that measures the movement amount or movement position of a driven member by counting the pulse edges of the pulse, when the interval between the rising or falling edges of the A-phase pulse and the B-phase pulse is less than a predetermined value , depending on the order of the a-phase pulse edges or the B-phase pulse edges appear in succession, Bei give a count correction unit stops the pulse count, or to correct the count value,
The count correction unit monitors a continuous pulse edge interval, and determines an abnormality when the continuous pulse edge interval is a predetermined value or less; and
A correction control unit that corrects the count value according to the generation order of the continuous pulse edges determined to be abnormal according to a predetermined algorithm stored in advance when the edge monitoring unit determines that the abnormality is present;
When the two consecutive pulse edges determined to be abnormal change from the pulse edge of the non-counting phase to the pulse edge of the phase to be counted, the correction control unit stops counting by the adjacent pulse edge and performs two consecutive When the pulse edge to be changed changes from the pulse edge of the phase to be counted to the pulse edge of the non-count phase, the count value by the pulse edge determined to be abnormal is returned to the previous count value .

この態様では、パルスエッジ間隔が所定値以下のときに、パルス異常と判断した場合には、連続して現れるパルスエッジの順序に応じて、補正処理を行っている。これにより、電源瞬断等の異常パルスの特徴に合せて、補正値を記憶しておくことにより、これらの異常パルスによるカウントを補正することが可能となる。   In this aspect, when it is determined that the pulse is abnormal when the pulse edge interval is equal to or smaller than a predetermined value, correction processing is performed according to the order of the pulse edges that appear successively. Accordingly, by storing correction values in accordance with the characteristics of abnormal pulses such as instantaneous power interruption, it is possible to correct the counts due to these abnormal pulses.

また、この態様では、単純に異常パルスの特徴を記憶しておき、それとマッチする場合に補正するだけでなく、異常パルスの特徴パターンに整合する所定の補正アルゴリズムを記憶しておくことにより、当該アルゴリズムに基づいて補正処理を行う。これにより、より迅速かつ簡単に補正処理を行うことが可能となる。 In addition, in this aspect, the feature of the abnormal pulse is simply stored and not only corrected when matched, but also by storing a predetermined correction algorithm that matches the feature pattern of the abnormal pulse. Correction processing is performed based on an algorithm. This makes it possible to perform correction processing more quickly and easily.

さらに、この態様は、電源瞬断時に2連続して発生した異常パルスエッジによるカウントの補正を行うアルゴリズムの一例を具体化したものである。例えば、2連続する異常パルスの最初のパルスエッジにおいて、+1カウントしたときには、後続の非カウント位相のパルスエッジにおいてカウント値を−1カウント(ディクリメント)する補正をし、逆に最初のパルスエッジにおいて、−1カウントしたときには、後続の非カウント位相のパルスエッジにおいてカウント値を+1カウント(インクリメント)する補正をする。これにより、電源瞬断による誤ったカウント値を正しく修正(補正)することができる。 Furthermore, this aspect exemplifies an example of an algorithm for correcting a count by abnormal pulse edges that have occurred twice in succession when a power supply is instantaneously interrupted. For example, when +1 is counted at the first pulse edge of two consecutive abnormal pulses, the count value is corrected to be decremented by -1 at the pulse edge of the subsequent non-counting phase, and conversely at the first pulse edge. When −1 is counted, correction is performed so that the count value is incremented by 1 at the pulse edge of the subsequent non-counting phase. This makes it possible to correct (correct) an incorrect count value due to an instantaneous power interruption.

請求項に記載の位置計測装置は、さらに、前記パルスエッジが4連続して異常と判定された場合において、前記補正制御部の補正処理により、直前の前記カウントすべき位相のパルスエッジのカウントを中止したときは、後続する非カウント位相のパルスエッジでは補正処理を中止することを特徴とする。この態様は、電源瞬断時に4連続発生した異常パルスエッジによるカウントの補正するため、2連続パルスエッジの一部を修正するアルゴリズムの一例を具体化したものである。連続して発生した先行する異常パルスにより補正処理がなされている場合には、所定の条件下において、+1カウントまたは−1カウントする補正処理を中止する。これにより、電源瞬断時のカウントエラーをより正確に補正することが可能となる。
The position measuring apparatus according to claim 2 , further comprising: counting a pulse edge of the phase to be counted immediately before by the correction processing of the correction control unit when the pulse edge is determined to be abnormal for four consecutive times. When the operation is stopped, the correction process is stopped at the subsequent pulse edge of the non-counting phase. This mode is an example of an algorithm for correcting a part of two consecutive pulse edges in order to correct a count due to abnormal pulse edges that occurred four consecutive times at the time of instantaneous power interruption. When the correction process is performed by the preceding abnormal pulses generated continuously, the correction process for counting +1 or -1 is stopped under a predetermined condition. Thereby, it is possible to more accurately correct the count error at the time of instantaneous power interruption.

以下、本発明の実施形態を、図面を用いて説明する。図1は、モータ等の駆動部11によって開閉移動する車両用スライドドアの開閉制御装置の構成を模式的に示す構成図である。図において、スライドドア開閉制御装置10は、スライドドア50、駆動部11、駆動回路12、ドア開閉制御部13、位置計測部14、伝達機構30を備えている。また、スライドドア50を閉じた位置には、閉位置にあることを検知するリミットスイッチ等の閉位置センサ部15及びスライドドアを閉位置に維持する閉位置ラッチ部16を備えている。必要に応じて、全開位置にリミットスイッチ等の開位置センサ部17及びスライドドアを開位置に維持する開位置ラッチ部18を設けることができる。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram schematically showing the configuration of an open / close control device for a vehicle sliding door that is opened and closed by a drive unit 11 such as a motor. In the figure, the sliding door opening / closing control device 10 includes a sliding door 50, a driving unit 11, a driving circuit 12, a door opening / closing control unit 13, a position measuring unit 14, and a transmission mechanism 30. Further, at the position where the slide door 50 is closed, a closed position sensor unit 15 such as a limit switch for detecting that the slide door 50 is in the closed position and a closed position latch unit 16 for maintaining the slide door in the closed position are provided. If necessary, an open position sensor unit 17 such as a limit switch and an open position latch unit 18 for maintaining the slide door in the open position can be provided at the fully open position.

スライドドア50は、ベルト等30の伝達機構を介してモータ等の駆動部11により左右方向に駆動される。駆動部11には回転軸に設けられたエンコーダ19等が設けられ、該エンコーダ19から1/4周期ずれたA相φ1とB相のφ2の2つの位相のパルスが出力される。パルス発生器19は、ドアの移動に同期してパルスを発生するものであればよく、必ずしも駆動部11の回転軸に設ける必要はない。   The slide door 50 is driven in the left-right direction by a drive unit 11 such as a motor via a transmission mechanism such as a belt 30. The drive unit 11 is provided with an encoder 19 and the like provided on the rotating shaft, and outputs pulses of two phases, A phase φ1 and B phase φ2, which are shifted from the encoder 19 by ¼ cycle. The pulse generator 19 only needs to generate a pulse in synchronization with the movement of the door, and is not necessarily provided on the rotating shaft of the drive unit 11.

開閉制御部13は、開扉命令、閉扉命令に応じて駆動回路12を制御して駆動部11の動作を制御することによりスライドドア50を開閉動作させ、ラッチ部16、18、ロック機構(図示せず)等の駆動を制御する。開閉制御部13は、位置計測部14からの位置データ、閉位置センサ部15、開位置センサ17等からのデータに基づいて、スライドドア50の開閉、ラッチ起動/解除、ロック起動/解除等の制御を行う。   The opening / closing control unit 13 controls the driving circuit 12 in accordance with the door opening command and the door closing command to control the operation of the driving unit 11, thereby opening and closing the sliding door 50, the latch units 16 and 18, and a lock mechanism (see FIG. (Not shown) and the like are controlled. The opening / closing control unit 13 performs opening / closing of the sliding door 50, latch activation / release, lock activation / release, and the like based on the position data from the position measurement unit 14, the data from the closed position sensor unit 15, the open position sensor 17, and the like. Take control.

駆動部11が駆動されると、図1に示すように、エンコーダ19から位相が90度ずれたパルス正弦波であるA相φ1、B相φ2が出力される。位置計測部14は、この位相の立ち上がりエッジまたは立ち下がりエッジをカウントして、スライドドアの位置を認識する。   When the drive unit 11 is driven, as shown in FIG. 1, the A phase φ1 and the B phase φ2 which are pulse sine waves whose phases are shifted by 90 degrees are output from the encoder 19. The position measuring unit 14 recognizes the position of the sliding door by counting the rising edge or falling edge of the phase.

図5を用いて、より詳しく説明する。図5は、駆動部が正方向に駆動されているとき、A相、B相パルスのパルスカウントの原理を説明する図である。A相(パルスAφ1)とB相(パルスBφ2)の状態により駆動部の回転方向すなわちスライドドアの移動方向を知ることができる。図5に示すように、A相がB相より90度位相が進んでいるときを正方向の回転とし、B相の立ち上がりエッジ及び立下りエッジをカウントして、そのカウント数を位置データとする場合について説明する。この場合には、A相がハイレベル(以下、「Hレベル」と称する)のときB相の立ち上がりエッジが現れ、A相がローレベル(以下、「Lレベル」と称する)のときにB相の立下りエッジが現れる場合には、先にA相がB相より90度進んでいることがわかるので、正方向の回転であることがわかる。従ってこの場合には、B相のエッジを検出するごとに累積カウント数に+1インクリメントする。パルスカウント数が増えるほど、正方向の移動量が増えることになる。   This will be described in more detail with reference to FIG. FIG. 5 is a diagram for explaining the principle of pulse counting of A-phase and B-phase pulses when the drive unit is driven in the positive direction. The rotational direction of the drive unit, that is, the moving direction of the sliding door can be known from the states of the A phase (pulse Aφ1) and the B phase (pulse Bφ2). As shown in FIG. 5, when the A phase is 90 degrees ahead of the B phase, the rotation is in the positive direction, the rising and falling edges of the B phase are counted, and the count number is used as position data. The case will be described. In this case, the rising edge of the B phase appears when the A phase is at the high level (hereinafter referred to as “H level”), and the B phase when the A phase is at the low level (hereinafter referred to as “L level”). When the falling edge of appears, it can be seen that the A phase has advanced by 90 degrees from the B phase first, so that it is understood that the rotation is in the positive direction. Therefore, in this case, every time a B-phase edge is detected, the cumulative count is incremented by one. As the pulse count increases, the amount of movement in the positive direction increases.

逆にA相がLレベルのときにB相が立ち上がり、A相がHレベルのときにB相が立ち下がる場合には、B相の位相の方が先に進んでいることがわかるので、逆方向に回転していることがわかる(図1参照)。従ってこの場合には、B相のエッジを検出するごとに累積カウント数を−1する(ディクリメント)する。   Conversely, when the B phase rises when the A phase is at the L level and the B phase falls when the A phase is at the H level, it can be seen that the phase of the B phase has advanced further. It turns out that it is rotating to the direction (refer FIG. 1). Therefore, in this case, every time a B-phase edge is detected, the cumulative count is decremented by 1 (decrement).

このようにして、位置計測部14は、パルス数をカウント(インクリメントまたはディクリメント)しながら累積カウント数を生成する。累積カウント数は駆動部11の正方向駆動量と逆方向移動駆動量の差し引いた量を示しているので、結局駆動部の駆動量、すなわちスライドドアの位置を示していることになる。従って、累積カウントの数値とスライドドアの実際の位置とを関連付けることにより、スライドドアの位置データとして使用することが可能となる。   In this way, the position measurement unit 14 generates the cumulative count number while counting (incrementing or decrementing) the pulse number. The cumulative count number indicates the amount obtained by subtracting the forward direction drive amount and the reverse direction drive amount of the drive unit 11, so that it indicates the drive amount of the drive unit, that is, the position of the slide door. Therefore, by associating the accumulated count value with the actual position of the sliding door, it can be used as the position data of the sliding door.

判りやすく単純化して例示すると、例えば、カウント数“0”をスライドドアは閉位置とし、ドアが開いていくごとにカウント数が増加していき、カウント数10000のときに全開位置となる。逆にドアが全開位置から閉まる場合には、カウント数10000から閉まる方向に移動する場合、累積カウント数がディクリメントされ、スライドドアが閉まると0になる。   For example, the slide door is set to the closed position with the count number “0”, and the count number increases each time the door is opened. When the count number is 10,000, the fully open position is obtained. Conversely, when the door is closed from the fully opened position, the cumulative count is decremented when moving from the count number 10000 in the closing direction, and becomes zero when the slide door is closed.

A相、B相パルスが正常に現れる場合には、A相とB相は90度位相がずれた状態であるから、A相のエッジ間隔と、B相のエッジ間隔は一定のはずである。しかし、ノイズ等が発生すると、パルスエッジの間隔が不均一となる。正常時のパルスエッジ間隔は、駆動装置の駆動速度(回転速度)が早くなるほど短くなるが、駆動装置の最高速度は限定されるので、正常な場合の最も短いパルスエッジ間隔は予測可能である。   When the A-phase and B-phase pulses appear normally, the A-phase and B-phase are 90 degrees out of phase, so the A-phase edge interval and the B-phase edge interval should be constant. However, when noise or the like occurs, the interval between the pulse edges becomes non-uniform. The normal pulse edge interval becomes shorter as the drive speed (rotational speed) of the drive device becomes faster. However, since the maximum speed of the drive device is limited, the shortest pulse edge interval in the normal case can be predicted.

例えば電源の瞬断等が発生すると、エンコーダパルスのカウントに誤りが発生する場合がある。図6は、電源瞬断テストに用いたイミュニティ波形を示す。このようなイミュニティ波形を印加して誘導負荷遮断テストを行った。   For example, when an instantaneous power interruption occurs, an error may occur in the encoder pulse count. FIG. 6 shows the immunity waveform used for the power interruption test. An inductive load shedding test was performed by applying such an immunity waveform.

本発明の位置計測装置は、このような電源瞬断等によるパルス異常発生時に、パルスカウントを補正して、パルスカウント値(位置データ)を正常に保つことができるようにするものである。図2を用いて説明する。図2は、本発明の位置計測装置の一実施形態を示す機能ブロック図である。計数部21、エッジ検出部22、及びカウント補正部23を備えている。カウント補正部23は、さらに、補正制御部26、異常検出部27、アルゴリズム記憶部28を備えている。パルスエンコーダ19からの出力は、計数部21及びエッジ検出部22に入力される。エッジ検出部22は、A相パルス、B相パルス双方のパルスエッジを検出する。エッジ検出部22により検出されたパルスエッジは、異常検出部27に出力される。異常検出部27は、連続するパルスエッジの間隔が所定値以下(同時の場合も含む)のとき異常と判定する。異常と判定されると補正制御部26に異常状態が通知される。補正制御部26は、異常状態が通知されると、アルゴリズム記憶部28を参照することにより、異常状態と判定されたパルスエッジの現出順序に応じて補正処理を実行し、計数部21の計数値を補正する。   The position measuring apparatus of the present invention corrects the pulse count when a pulse abnormality occurs due to such a momentary power interruption or the like so that the pulse count value (position data) can be kept normal. This will be described with reference to FIG. FIG. 2 is a functional block diagram showing an embodiment of the position measuring apparatus of the present invention. A counting unit 21, an edge detection unit 22, and a count correction unit 23 are provided. The count correction unit 23 further includes a correction control unit 26, an abnormality detection unit 27, and an algorithm storage unit 28. The output from the pulse encoder 19 is input to the counting unit 21 and the edge detection unit 22. The edge detector 22 detects the pulse edges of both the A-phase pulse and the B-phase pulse. The pulse edge detected by the edge detection unit 22 is output to the abnormality detection unit 27. The abnormality detection unit 27 determines that there is an abnormality when the interval between successive pulse edges is equal to or less than a predetermined value (including simultaneous cases). If determined to be abnormal, the correction control unit 26 is notified of the abnormal state. When notified of the abnormal state, the correction control unit 26 refers to the algorithm storage unit 28 to execute correction processing according to the order of appearance of the pulse edges determined to be in the abnormal state. Correct the numerical value.

図3及び図4に、電源瞬断等によりA相B相パルスがほとんど同時または僅かにずれた状態でハイからローに落ちた場合の補正アルゴリズムの一例を示している。図中「→」は、その左右に示すパルスエッジが左から右に短い時間又はほぼ同時に連続して発生した場合を示しており、「〜」は所定の長さ以上の時間間隔を置いてその左右に示すパルスエッジが発生した場合を示している。また、「+」はプラス1カウントを示し、「−」は、−1カウントを示している。「×」は、カウントを停止する補正、「補正」の文字は、異常パルスエッジのB相エッジ端でカウントした値をカウント直前の値に戻す(−1または+1)の補正を行うことを意味する。「*」は補正中止を意味する。   FIG. 3 and FIG. 4 show an example of a correction algorithm in the case where the A-phase B-phase pulse falls from high to low in a state of being almost simultaneously or slightly shifted due to an instantaneous power interruption or the like. In the figure, “→” indicates a case where the pulse edges shown on the left and right sides are generated from the left to the right for a short period of time or substantially simultaneously, and “˜” indicates that the pulse edge is spaced at a predetermined time interval or more. The case where the pulse edge shown to the left and right generate | occur | produces is shown. Further, “+” indicates a plus 1 count, and “−” indicates a −1 count. “X” means correction for stopping the count, and “correction” means that correction is performed to return the value counted at the B-phase edge of the abnormal pulse edge to the value immediately before the count (−1 or +1). To do. “*” Means that correction is stopped.

図3及び図4に示す基本的な補正アルゴリズムは、2連続する異常パルスエッジの後続パルスエッジのタイミングで補正その他の変則処理を行うものである。また、2連続するパルスエッジが非カウント波形(A相)のパルスエッジからカウント波形(B相)のパルスエッジに変化した場合には、後ろのパルスエッジがカウントパルスであってもそのパルスエッジのカウントを中止し(B相のカウントを中止)、2連続するパルスエッジがカウント波形(B相)のパルスエッジから非カウント波形(A相)のパルスエッジに変化したときは、カウント値をその直前のカウント値に戻す(−1またはー1カウントする)ものである。   The basic correction algorithm shown in FIG. 3 and FIG. 4 performs correction and other irregular processes at the timing of the subsequent pulse edge of two consecutive abnormal pulse edges. When two consecutive pulse edges change from a pulse edge of a non-count waveform (A phase) to a pulse edge of a count waveform (B phase), even if the subsequent pulse edge is a count pulse, When counting is stopped (B phase counting is stopped) and two consecutive pulse edges change from the pulse edge of the count waveform (B phase) to the pulse edge of the non-count waveform (A phase), the count value is immediately before that. The count value is returned to -1 (-1 or -1 is counted).

図3(a)は、電源瞬断によりA相とB相の立下りパルスエッジが短い間隔または同時に2つ連続し、しばらく間隔を置いて立ち上がりエッジで2つ連続する場合において、パルスエッジで+1を検出した場合を示している。   FIG. 3A shows a case in which two falling pulse edges of the A phase and the B phase are continuous at a short interval or at the same time due to a momentary power interruption, and two rising edges are continued at a certain interval, and then at the pulse edge, +1 The case where is detected is shown.

図3(a)の(1)は、パルスエッジがB→A〜B→Aと変化する場合の補正アルゴリズムを示している。まず、B相が現れるので、+1カウントし、短い時間に連続してA相が現れるので、先の+1を下に戻す(−1する)補正をする。次に少し時間が経過してB相が現れるのでさらにカウントし(+1)、その次のA相で補正(−1)する。これで最終的なパルスカウントは0となり、瞬断パルスはカウント値に影響しない。   (1) in FIG. 3A shows a correction algorithm when the pulse edge changes from B → A to B → A. First, since the B phase appears, +1 is counted, and the A phase appears continuously in a short time, so that the previous +1 is corrected downward (to -1). Next, after a little time has elapsed, the B phase appears, so further counting is performed (+1), and the next A phase is corrected (-1). Thus, the final pulse count becomes 0, and the instantaneous interruption pulse does not affect the count value.

図3(a)の(2)は、B相が長い瞬断パルスで、比較的短いA相の瞬断パルスがB相の瞬断パルス中に入っている場合を示している。この場合、エッジは、B→A―A→Bという順序であらわれる。この場合もB相でカウントし(+1)、A相で補正する。次の異常な2連続パルスエッジはA→Bであるので、B相でもカウントしない。(3)は、A相が先に現れる場合を示している(A→B−A→B)。この場合は、非カウントパルスA相が先にあらわれるので、いずれのB相もカウントしない。(4)は、(2)の逆であり、B相が短い場合である。A相が先に現れるとB相でもカウントせず、B相が先に現れるとA相が現れたときに補正(−1)する。   (2) in FIG. 3A shows a case where the B phase is a long instantaneous interruption pulse and a relatively short A phase instantaneous interruption pulse is included in the B phase instantaneous interruption pulse. In this case, the edges appear in the order of B → AA → B. In this case as well, the B phase is counted (+1) and the A phase is corrected. Since the next abnormal two consecutive pulse edges are A → B, they are not counted even in the B phase. (3) shows the case where the A phase appears first (A → BA → B). In this case, since the non-count pulse A phase appears first, none of the B phases are counted. (4) is the opposite of (2) and is the case where the B phase is short. If the A phase appears first, the B phase is not counted, and if the B phase appears first, the correction is made (-1) when the A phase appears.

図3(b)は、短い電源瞬断によりA相とB相の立下り及び立ち上がりパルスエッジが短い間隔または同時に、4連続して現れる場合を示している。この場合、上述の2連続パルスの補正アルゴリズムに一部特例修正を加えている。その修正とは、異常発生時の直前のカウントパルスエッジを異常補正アルゴリズムによりカウントしなかったときには、後続する異常状態の非カウントパルスエッジでは−1する補正を行わない(補正中止)というものである。   FIG. 3B shows a case where the falling and rising pulse edges of the A phase and the B phase appear at a short interval or simultaneously four times due to a short power interruption. In this case, some special modifications are added to the above-described two continuous pulse correction algorithm. The correction means that when the count pulse edge immediately before the occurrence of the abnormality is not counted by the abnormality correction algorithm, the subsequent non-count pulse edge in the abnormal state is not corrected by −1 (correction stop). .

図3(b)の(5)と、(7)にその例が現れている。(5)では、短いパルスエッジ間隔で、B→A→B→Aと続いている。最初のB→A、次のA→Bは、2連続のアルゴリズムと同じであるが、最後のB→Aは、このB相がカウントをしていないので、この特例修正条件に合致し、A相による補正を行わない。同様に(7)の場合もA→B→A→Bの2番目のB→Aにおいて、B相ではカウントを行わないのでA相では補正を行わない。尚、図3(b)の(6)と(8)は、2連続の場合と同じアルゴリズムであるので、説明しない。   Examples are shown in (5) and (7) of FIG. In (5), B → A → B → A continues with a short pulse edge interval. The first B → A and the next A → B are the same as the two consecutive algorithms. However, since the last B → A does not count the B phase, this special condition is met and A Do not correct by phase. Similarly, in the case of (7), in the second B → A of A → B → A → B, since the count is not performed in the B phase, the correction is not performed in the A phase. Note that (6) and (8) in FIG. 3 (b) are the same algorithm as in the case of two consecutive, and will not be described.

上述のように、電源瞬断特有の異常パルスパターンにより、不正パルスカウントの発生を、そのパターンに応じた所定のアルゴリズムにより、補正することにより、電源瞬断による誤ったカウントを正しく修正することが可能となる。これにより、電源瞬断の場合であっても、正しいカウント値を維持することができる。   As described above, by correcting the occurrence of an incorrect pulse count by a predetermined algorithm according to the abnormal pulse pattern peculiar to the instantaneous power interruption, an erroneous count due to the instantaneous power interruption can be corrected correctly. It becomes possible. As a result, the correct count value can be maintained even in the case of instantaneous power interruption.

図3(a)、(b)では、パルスエッジで+1を検出した場合の補正アルゴリズムを示したが、パルスエッジで−1を検出した場合にも同様の補正処理を行う。但し、この場合には、カウントが逆になるので、パルスエッジで−1を検出した場合には、前の状態に戻す補正処理においては+1を行う。この場合の補正処理のアルゴリズムを図4(a)、(b)に示す。図4の補正処理では、B相のパルスエッジにおいて−1カウントし、その補正処理として+1カウントする点が図3の場合と異なるだけであり、他の点はまったく同じであるので、これ以上説明しない。   Although FIGS. 3A and 3B show the correction algorithm when +1 is detected at the pulse edge, the same correction processing is performed when −1 is detected at the pulse edge. However, in this case, since the count is reversed, when −1 is detected at the pulse edge, +1 is performed in the correction process for returning to the previous state. The correction processing algorithm in this case is shown in FIGS. The correction process of FIG. 4 is different from the case of FIG. 3 in that −1 is counted at the B-phase pulse edge and +1 is counted as the correction process, and the other points are exactly the same. do not do.

以上のような補正により、電源瞬断による誤ったカウント値を正しい値に修正することができる。しかし、イレギュラーでランダムなノイズの影響等により、カウント値の誤りを修正できない場合も発生する。このような場合には、以下のような処理により、位置データを回復補正するような構成とすることが望ましい。   By the correction as described above, an incorrect count value due to a power supply interruption can be corrected to a correct value. However, an error in the count value may not be corrected due to irregular and random noise. In such a case, it is desirable that the position data be recovered and corrected by the following processing.

例えばノイズ等により、カウント値(位置データ)が実際のスライド位置よりもより開いた方向にずれた値となっている場合、実際にはドアは閉じているか半ドアの状態なのに、開閉制御部13は位置測定部14からの誤った位置データに基づいてスライドドア50が開いていると認識してしまう虞がでてくる。この場合には、開扉命令を発してもドアを開くことができなくなってしまう。   For example, when the count value (position data) is deviated in a more open direction than the actual slide position due to noise or the like, the open / close control unit 13 is actually in the closed or half-door state. May recognize that the sliding door 50 is open based on erroneous position data from the position measuring unit 14. In this case, even if a door opening command is issued, the door cannot be opened.

そこで、このようなパルスカウント異常を発見したときには、開閉制御部13により、位置計測部のパルスカウント値(位置データ)を強制的に正しい値に修正するようにする。すなわち、スライドドア50の閉位置に設けられた閉位置センサ部15が、スライドドアが閉まっていることを検知したときに、位置計測部14の位置データが予め決められている閉位置を示す所定の範囲内にないときには、現在の位置データに誤りが発生しているものとして、位置計測部のデータを強制的に閉位置のデータに設定し直す。これにより、カウント値とスライドドア50の位置を整合させることができるので、正しい制御に戻すことが可能となる。   Therefore, when such a pulse count abnormality is found, the opening / closing control unit 13 forcibly corrects the pulse count value (position data) of the position measurement unit to a correct value. That is, when the closed position sensor unit 15 provided at the closed position of the slide door 50 detects that the slide door is closed, the position data of the position measuring unit 14 is a predetermined position indicating a predetermined closed position. If the current position data is not within the range, it is assumed that an error has occurred in the current position data, and the position measurement unit data is forcibly reset to the closed position data. As a result, the count value and the position of the slide door 50 can be matched, so that it is possible to return to the correct control.

モータ等の駆動部によって開閉移動する車両用スライドドアの開閉制御装置の構成を模式的に示す構成図である。It is a block diagram which shows typically the structure of the opening / closing control apparatus of the sliding door for vehicles which opens and closes by drive parts, such as a motor. 本発明の位置計測装置の一実施形態を示す機能ブロック図である。本It is a functional block diagram showing one embodiment of a position measuring device of the present invention. Book 電源瞬断によりA相B相パルスがほとんど同時または僅かにずれた状態でハイからローに落ちた場合の補正アルゴリズムの一例を示している。An example of a correction algorithm when the A-phase and B-phase pulses fall from high to low in a state where they are almost simultaneously or slightly shifted due to an instantaneous power interruption is shown. 電源瞬断によりA相、B相パルスがほとんど同時または僅かにずれた状態でハイからローに落ちた場合に−1カウントした場合の補正アルゴリズムの一例を示している。An example of a correction algorithm in the case where −1 is counted when the A-phase and B-phase pulses are almost simultaneously or slightly shifted due to a momentary power interruption and falls from high to low is shown. 駆動部が正方向に駆動されているとき、A相、B相パルスのパルスカウントの原理を説明する図である。It is a figure explaining the principle of the pulse count of an A-phase and a B-phase pulse when a drive part is driven to the positive direction. 電源瞬断テストに用いたイミュニティ波形を示す。The immunity waveform used for the power interruption test is shown. このように立ち下がり時間にずれが生じた場合を正弦波パルスの形で摸式的に示す。A case where the fall time is thus shifted is schematically shown in the form of a sine wave pulse.

符号の説明Explanation of symbols

10 スライドドア開閉制御装置
11 駆動部
12 駆動回路
13 開閉制御部
14 位置計測部
15 閉位置センサ部
16 閉位置ラッチ部
17 開位置センサ部
21 計数部
22 エッジ検出部
26 補正制御部
27 異常検出部
28 アルゴリズム記憶部
DESCRIPTION OF SYMBOLS 10 Sliding door opening / closing control apparatus 11 Drive part 12 Drive circuit 13 Opening / closing control part 14 Position measurement part 15 Closed position sensor part 16 Closed position latch part 17 Open position sensor part 21 Counting part 22 Edge detection part 26 Correction control part 27 Abnormality detection part 28 Algorithm storage

Claims (2)

位相のずれたA相、B相の正弦波パルスを駆動量に応じて出力するパルス発生器から出力されるいずれか一方のパルスのパルスエッジをカウントすることにより、被駆動部材の移動量又は移動位置を計測する位置計測装置において
前記A相パルスおよび前記B相パルスの立ち上がりまたは立下りエッジの間隔が所定値以下のときに、連続して現れるA相パルスエッジまたはB相パルスエッジの順序に応じて、パルスカウントを中止し、またはカウント値を補正するカウント補正部を備え、
前記カウント補正部は、連続するパルスエッジ間隔を監視し、連続する前記パルスエッジ間隔が所定の値以下のときに異常と判定するエッジ監視部と、
前記エッジ監視部により異常と判定されたときに、予め記憶した所定のアルゴリズムに従って、異常と判定された前記連続するパルスエッジの発生順序に応じて前記カウント値を補正する補正制御部とを備え、
前記補正制御部は、異常と判定された2連続するパルスエッジが非カウント位相のパルスエッジからカウントすべき位相のパルスエッジに変化したときは、当該近接するパルスエッジによるカウントを中止し、2連続するパルスエッジがカウントすべき位相のパルスエッジから非カウント位相のパルスエッジに変化したときは、前記異常と判定されたパルスエッジによるカウント値をその直前のカウント値に戻すことを特徴とする請求項2に記載の位置計測装置。
The amount of movement or movement of the driven member is counted by counting the pulse edges of one of the pulses output from the pulse generator that outputs the A-phase and B-phase sine wave pulses out of phase according to the driving amount. In a position measuring device for measuring a position, according to the sequence of A-phase pulse edges or B-phase pulse edges that appear continuously when the interval between the rising or falling edges of the A-phase pulse and the B-phase pulse is equal to or less than a predetermined value. Te, Bei give a count correction unit stops the pulse count, or to correct the count value,
The count correction unit monitors a continuous pulse edge interval, and determines an abnormality when the continuous pulse edge interval is a predetermined value or less; and
A correction control unit that corrects the count value according to the generation order of the continuous pulse edges determined to be abnormal according to a predetermined algorithm stored in advance when the edge monitoring unit determines that the abnormality is present;
When the two consecutive pulse edges determined to be abnormal change from the pulse edge of the non-counting phase to the pulse edge of the phase to be counted, the correction control unit stops counting by the adjacent pulse edge and performs two consecutive When the pulse edge to be changed changes from the pulse edge of the phase to be counted to the pulse edge of the non-count phase, the count value by the pulse edge determined to be abnormal is returned to the previous count value. 2. The position measuring device according to 2.
さらに、前記パルスエッジが4連続して異常と判定された場合において、前記補正制御部の補正処理により、直前の前記カウントすべき位相のパルスエッジのカウントを中止したときは、後続する非カウント位相のパルスエッジでは補正処理を中止することを特徴とする請求項1に記載の位置計測装置。 Furthermore, when the pulse edge is determined to be abnormal for four consecutive times and the count of the pulse edge of the previous phase to be counted is stopped by the correction processing of the correction control unit, the subsequent non-count phase position measuring device according to claim 1, characterized that you cancel the correction process in the pulse edge.
JP2006099348A 2006-03-31 2006-03-31 Position measuring device Expired - Fee Related JP4845013B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006099348A JP4845013B2 (en) 2006-03-31 2006-03-31 Position measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006099348A JP4845013B2 (en) 2006-03-31 2006-03-31 Position measuring device

Publications (2)

Publication Number Publication Date
JP2007271520A JP2007271520A (en) 2007-10-18
JP4845013B2 true JP4845013B2 (en) 2011-12-28

Family

ID=38674461

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006099348A Expired - Fee Related JP4845013B2 (en) 2006-03-31 2006-03-31 Position measuring device

Country Status (1)

Country Link
JP (1) JP4845013B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5994305B2 (en) * 2012-03-15 2016-09-21 オムロン株式会社 Rotary encoder and error detection method for rotary encoder
CN110022154A (en) * 2018-01-06 2019-07-16 清能德创电气技术(北京)有限公司 A kind of elimination incremental encoder Z signal interference and loss method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4752095B2 (en) * 2000-09-18 2011-08-17 アイシン精機株式会社 Opening / closing control device for opening covering material

Also Published As

Publication number Publication date
JP2007271520A (en) 2007-10-18

Similar Documents

Publication Publication Date Title
JP5398920B2 (en) Opening / closing section pinching determination device, vehicle equipped with the apparatus, and opening / closing section pinching determination method
US6590357B2 (en) Opening and closing control device for cover
CN103171460B (en) Device for vehicle seat
US9109924B2 (en) Method for determining the set position of an adjustment part
CN110089023B (en) Motor controller, motor assembly, electronic lock and method for controlling movement of motor
CN107989993B (en) Shift range controller
JP6869474B2 (en) Vehicle opening / closing body control device
JP4845013B2 (en) Position measuring device
JP2008148412A (en) Motor control device
WO2018186113A1 (en) Opening/closing body control device for vehicles
JP6296557B2 (en) Auxiliary control device
JP6870488B2 (en) Vehicle opening / closing body control device
US10965228B2 (en) Motor module, rotation angle detector, and method for detecting failure of rotation angle detector
GB2306702A (en) Monitoring movement of a part
CN111919009B (en) Moving body moving device
JP2017196979A (en) Seat device for vehicle
JP6869473B2 (en) Vehicle opening / closing body control device
US11396942B2 (en) Shift range control device
JP5787579B2 (en) Gripping device
JP3868803B2 (en) Sunroof control method and apparatus
KR940000366B1 (en) Detecting method of robot location
JP2020147950A (en) Vehicle opening/closing body control device
JP2007270446A (en) Door operation control device
JP3803744B2 (en) Control device for vehicle opening / closing panel
JP4650118B2 (en) Apparatus and method for estimating initial magnetic pole of AC synchronous motor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090302

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110330

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110425

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110615

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

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

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

Free format text: PAYMENT UNTIL: 20141021

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20141021

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees