JP2003253957A - Opening/closing member controller and positional displacement prevention method of opening/closing member in the same - Google Patents

Opening/closing member controller and positional displacement prevention method of opening/closing member in the same

Info

Publication number
JP2003253957A
JP2003253957A JP2002375273A JP2002375273A JP2003253957A JP 2003253957 A JP2003253957 A JP 2003253957A JP 2002375273 A JP2002375273 A JP 2002375273A JP 2002375273 A JP2002375273 A JP 2002375273A JP 2003253957 A JP2003253957 A JP 2003253957A
Authority
JP
Japan
Prior art keywords
opening
closing member
count value
closing
control device
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.)
Granted
Application number
JP2002375273A
Other languages
Japanese (ja)
Other versions
JP3839402B2 (en
Inventor
Daisuke Mukai
大輔 向井
Motoya Yamamoto
元哉 山本
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.)
Asmo Co Ltd
Original Assignee
Asmo 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 Asmo Co Ltd filed Critical Asmo Co Ltd
Priority to JP2002375273A priority Critical patent/JP3839402B2/en
Publication of JP2003253957A publication Critical patent/JP2003253957A/en
Application granted granted Critical
Publication of JP3839402B2 publication Critical patent/JP3839402B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To provide an opening/closing member controller constituted to detect the opening/closing position of an opening/closing member on the basis of a count value obtained by a counting action based on rotation of a driving motor, in which when the power source voltage fluctuates during the actuation of the driving motor, a displacement, which is caused by the voltage fluctuation, between the opening/closing position of the opening/closing member and the count value is prevented. <P>SOLUTION: The controller 13 stores a count value in a RAM 13a at every time when the count value to detect the opening/closing position of a roof glass varies. The controller 13 judges whether or not the count value is correctly stored in the RAM 13a, when a supplied driving electric source +B becomes lower than a specified voltage and is again restored again. If the driving motor 5 is operating just before the driving voltage +B becomes lower than the specified voltage, even if the judgement that the count value is correctly stored is made, a displacement between the roof glass and the count value is judged to be possible. The original point is reset by the controller 13 after the judgement. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、例えば、自動車の
ルーフガラス等の開閉部材を開閉制御する開閉制御装置
及びその開閉部材制御装置における開閉部材の位置ズレ
防止方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an opening / closing control device for controlling opening / closing of an opening / closing member such as a roof glass of an automobile, and a method for preventing positional deviation of the opening / closing member in the opening / closing member control device.

【0002】[0002]

【従来の技術】自動車に装備されるサンルーフ装置は、
従来より、ルーフガラスを開閉作動させるための駆動モ
ータの回転周期を検出して、該ルーフガラスの開閉位置
を検出するように構成されたものが種々提案されてい
る。このようなサンルーフ装置には、例えば、駆動モー
タの回転に対応したパルス信号を出力する回転センサが
備えられている。サンルーフ装置を制御する制御装置
は、その回転センサから出力されるパルス信号の立ち上
がり又は立ち下がりをカウントし、そのカウント値に基
づいてルーフガラスの開閉位置を検出し、その開閉位置
に応じた制御を行うようになっている。
2. Description of the Related Art Sunroof devices installed in automobiles are
Conventionally, various types have been proposed which are configured to detect the opening / closing position of the roof glass by detecting the rotation cycle of a drive motor for opening / closing the roof glass. Such a sunroof device is provided with, for example, a rotation sensor that outputs a pulse signal corresponding to the rotation of the drive motor. The control device that controls the sunroof device counts the rising or falling of the pulse signal output from the rotation sensor, detects the open / closed position of the roof glass based on the count value, and performs control according to the open / closed position. I am supposed to do it.

【0003】このようにルーフガラスの開閉位置を検出
するためのカウント値は、制御装置内に備えられるRA
M(Random Access Memory)に記憶されている。カウン
ト値は、その値が変化する度に書き換えられる。
As described above, the count value for detecting the opening / closing position of the roof glass is RA provided in the control device.
It is stored in M (Random Access Memory). The count value is rewritten each time the value changes.

【0004】ここで、RAMは、周知のように、電源供
給を受けないとデータが消えてしまう揮発性の記憶装置
である。従って、例えば、制御装置に供給される電源電
圧が所定電圧値以下となり再び(所定電圧に)復帰した
場合、RAMに記憶していたデータ(カウント値)が消
えた可能性があるとして、RAMに記憶したデータ(カ
ウント値)が正常に記憶されているか否かをチェックす
るように構成されている。
Here, as is well known, the RAM is a volatile storage device in which data is lost unless power is supplied. Therefore, for example, when the power supply voltage supplied to the control device becomes equal to or lower than the predetermined voltage value and returns (to the predetermined voltage) again, it is considered that the data (count value) stored in the RAM may be lost, and It is configured to check whether the stored data (count value) is normally stored.

【0005】[0005]

【発明が解決しようとする課題】ところで、例えば、自
動車のエンジンを始動していない状態でルーフガラスを
作動させ、その作動中にエンジンを始動すべくエンジン
スタータモータを作動させた場合等、制御装置に供給さ
れる電源電圧が一瞬大きく低下して、前記所定電圧値以
下となる場合がある。このような場合、電源電圧の低下
が一瞬であるため、RAMに記憶されているデータが消
えず、RAMチェックを行った際に、データ(カウント
値)が正常に記憶されていると判定される。
By the way, for example, when the roof glass is operated while the engine of the automobile is not started and the engine starter motor is operated to start the engine during the operation, the control device There is a case where the power supply voltage supplied to the power source drops significantly for a moment and falls below the predetermined voltage value. In such a case, since the power supply voltage drops for a moment, the data stored in the RAM is not erased, and when the RAM check is performed, it is determined that the data (count value) is normally stored. .

【0006】しかしながら、電源電圧が低下した際に、
回転センサからのパルス信号が異常な波形となってカウ
ントできなかったり、パルス信号の波形が正常であって
もカウントできなかったり、RAMへの書き込みが行え
なかったりする場合がある。このような場合、実際のル
ーフガラスが移動しているにもかかわらずRAM内のカ
ウント値が変化しないため、実際のルーフガラスの開閉
位置とカウント値との間にズレが発生し、制御上不具合
が生じるという問題があった。
However, when the power supply voltage drops,
There are cases in which the pulse signal from the rotation sensor has an abnormal waveform and cannot be counted, the pulse signal cannot be counted even if the waveform of the pulse signal is normal, and writing to the RAM cannot be performed. In such a case, the count value in the RAM does not change even though the actual roof glass is moving, so there is a gap between the actual open / close position of the roof glass and the count value, which is a control problem. There was a problem that.

【0007】本発明は、上記問題点を解決するためにな
されたものであって、その目的は、駆動モータの回転に
基づいてカウント動作し、そのカウント値に基づいて開
閉部材の開閉位置を検出するように構成された開閉部材
制御装置であって、その駆動モータの作動中に電源電圧
が変動し、その電圧変動により生じる開閉部材の開閉位
置とカウント値とのズレを防止することができる開閉部
材制御装置及びその開閉部材制御装置における開閉部材
の位置ズレ防止方法を提供することにある。
The present invention has been made to solve the above problems, and its purpose is to perform a counting operation based on the rotation of a drive motor and detect the open / closed position of an opening / closing member based on the count value. An opening / closing member control device configured to prevent the deviation between the opening / closing position of the opening / closing member and the count value caused by the fluctuation of the power supply voltage during the operation of the drive motor. (EN) A member control device and a method for preventing positional deviation of an opening / closing member in the opening / closing member control device.

【0008】[0008]

【課題を解決するための手段】上記問題点を解決するた
め、請求項1に記載の発明は、開閉部材を開閉作動させ
る駆動モータと、前記駆動モータの回転に基づいてカウ
ント動作し、そのカウント値に基づいて開閉部材の開閉
位置を検出する位置検出手段と、前記位置検出手段にて
検出した前記開閉部材の開閉位置に応じた開閉制御を行
う開閉制御手段と、前記カウント値を変化する度に記憶
する記憶装置と、供給される駆動電源が所定電圧値以下
となり再び復帰した場合に、前記カウント値が正常に前
記記憶装置に記憶されているか否かを判定する判定手段
と、を備えた開閉部材制御装置であって、前記駆動モー
タが作動中か否かを判定するモータ状態検出手段と、前
記判定手段にて前記カウント値が正常に記憶されている
と判定されても、前記駆動電源が所定電圧値以下となる
直前に前記モータ状態検出手段にて前記駆動モータが作
動中であったと検出された場合、前記開閉部材と前記カ
ウント値との間にズレが生じた可能性があると判定する
位置ズレ判定手段とを備えた。
In order to solve the above problems, the invention as set forth in claim 1 performs a counting operation based on the drive motor for opening and closing the opening and closing member and the rotation of the drive motor, and the counting. Position detection means for detecting the opening / closing position of the opening / closing member based on the value, opening / closing control means for performing opening / closing control according to the opening / closing position of the opening / closing member detected by the position detecting means, and a degree for changing the count value. And a determination unit that determines whether or not the count value is normally stored in the storage device when the supplied driving power source becomes equal to or lower than a predetermined voltage value and returns again. In the opening / closing member control device, even if it is determined that the count value is normally stored in the motor state detection unit that determines whether the drive motor is operating, and the determination unit, If the motor state detecting means detects that the drive motor is operating immediately before the drive power source becomes equal to or lower than a predetermined voltage value, a deviation may occur between the opening / closing member and the count value. There is provided a position shift judging means for judging that there is.

【0009】請求項2に記載の発明は、開閉部材を開閉
作動させる駆動モータと、前記駆動モータの回転に基づ
いてカウント動作し、そのカウント値に基づいて開閉部
材の開閉位置を検出する位置検出手段と、前記位置検出
手段にて検出した前記開閉部材の開閉位置に応じた開閉
制御を行う開閉制御手段と、前記カウント値を記憶する
記憶装置と、供給される駆動電源が所定電圧値以下とな
り再び復帰した場合に、前記カウント値が正常に前記記
憶装置に記憶されているか否かを判定する判定手段と、
を備えた開閉部材制御装置であって、前記駆動モータが
作動中か否かを判定するモータ状態検出手段と、前記判
定手段にて前記カウント値が正常に記憶されていると判
定されても、前記駆動電源が所定電圧値以下となる直前
に前記モータ状態検出手段にて前記駆動モータが作動中
であったと検出された場合、前記開閉部材と前記カウン
ト値との間にズレが生じた可能性があると判定して、前
記開閉部材を所定位置に配置した状態で前記カウント値
を所定カウント値に設定する原点位置の設定を行い、そ
のズレを防止する位置ズレ防止手段とを備えた。
According to a second aspect of the present invention, a drive motor that opens and closes the opening / closing member, and a position detection that counts based on the rotation of the driving motor and detects the open / closed position of the opening / closing member based on the count value. Means, an opening / closing control means for performing opening / closing control according to the opening / closing position of the opening / closing member detected by the position detecting means, a storage device for storing the count value, and the supplied driving power supply is equal to or less than a predetermined voltage value. When returning again, a determining unit that determines whether the count value is normally stored in the storage device,
An opening / closing member control device comprising: a motor state detecting unit that determines whether or not the drive motor is operating, and the determining unit determines that the count value is normally stored. Immediately before the drive power source becomes equal to or lower than a predetermined voltage value, if the motor state detecting means detects that the drive motor is in operation, there is a possibility that a deviation occurs between the opening / closing member and the count value. It is determined that there is such a position, the origin position for setting the count value to the predetermined count value is set in the state where the opening / closing member is arranged at the predetermined position, and the position deviation prevention means for preventing the deviation is provided.

【0010】請求項3に記載の発明は、請求項2に記載
の開閉部材制御装置において、前記位置ズレ防止手段
は、前記開閉部材と前記カウント値との間にズレが生じ
た可能性があると判定した直後に該開閉部材が前記所定
位置に配置されると、前記カウント値を所定カウント値
に設定する原点位置の設定を行う。
According to a third aspect of the present invention, in the opening / closing member control device according to the second aspect, there is a possibility that the position deviation prevention means has a deviation between the opening / closing member and the count value. Immediately after it is determined that the opening / closing member is arranged at the predetermined position, the origin position for setting the count value to the predetermined count value is set.

【0011】請求項4に記載の発明は、請求項2又は3
に記載の開閉部材制御装置において、前記位置ズレ防止
手段は、前記開閉部材が全閉側の機械的限界位置に配置
されると、前記カウント値を所定カウント値に設定する
原点位置の設定を行う。
The invention according to claim 4 is the invention according to claim 2 or 3.
In the opening / closing member control device described in (1), the position deviation prevention means sets the origin position for setting the count value to a predetermined count value when the opening / closing member is arranged at the mechanical limit position on the fully closed side. .

【0012】請求項5に記載の発明は、請求項1〜4の
いずれか1項に記載の開閉部材制御装置において、前記
駆動モータは、リレーを介して駆動電源が供給されるも
のであり、前記モータ状態検出手段は、そのリレーのオ
ンオフ状態で前記駆動モータの作動状態を検出する。
According to a fifth aspect of the present invention, in the opening / closing member control device according to any one of the first to fourth aspects, the drive motor is supplied with drive power through a relay, The motor state detecting means detects the operating state of the drive motor based on the on / off state of the relay.

【0013】請求項6に記載の発明は、開閉部材を開閉
作動させる駆動モータの回転に基づいてカウント動作
し、そのカウント値に基づいて開閉部材の開閉位置を検
出し、その開閉位置に応じた開閉制御を行うように構成
するとともに、そのカウント値を変化する度に記憶装置
にて記憶し、供給される駆動電源が所定電圧値以下とな
り再び復帰した場合に、カウント値が正常に該記憶装置
に記憶されているか否かを判定するように構成した開閉
部材制御装置における開閉部材の位置ズレ防止方法であ
って、前記判定にて前記カウント値が正常に記憶されて
いると判定されても、前記駆動電源が所定電圧値以下と
なる直前に前記駆動モータが作動中であった場合、前記
開閉部材と前記カウント値との間にズレが生じた可能性
があると判定するようにした。
According to a sixth aspect of the present invention, the counting operation is performed based on the rotation of the drive motor that opens and closes the opening / closing member, the opening / closing position of the opening / closing member is detected based on the count value, and the opening / closing position is determined according to the opening / closing position. The storage device is configured to perform opening / closing control, and the count value is stored in the storage device each time the count value changes, and the count value is normally stored in the storage device when the supplied driving power becomes equal to or lower than a predetermined voltage value and is restored again. A method for preventing positional deviation of the opening / closing member in the opening / closing member control device configured to determine whether the count value is normally stored in the determination, If the drive motor is operating immediately before the drive power source becomes equal to or lower than a predetermined voltage value, it is determined that there may be a deviation between the opening / closing member and the count value. It was.

【0014】請求項7に記載の発明は、開閉部材を開閉
作動させる駆動モータの回転に基づいてカウント動作
し、そのカウント値に基づいて開閉部材の開閉位置を検
出し、その開閉位置に応じた開閉制御を行うように構成
するとともに、そのカウント値を記憶装置にて記憶し、
供給される駆動電源が所定電圧値以下となり再び復帰し
た場合に、カウント値が正常に該記憶装置に記憶されて
いるか否かを判定するように構成した開閉部材制御装置
における開閉部材の位置ズレ防止方法であって、前記判
定にて前記カウント値が正常に記憶されていると判定さ
れても、前記駆動電源が所定電圧値以下となる直前に前
記駆動モータが作動中であった場合、前記開閉部材と前
記カウント値との間にズレが生じた可能性があると判定
して、前記開閉部材を所定位置に配置した状態で前記カ
ウント値を所定カウント値に設定する原点位置の設定を
行い、そのズレを防止するようにした。
According to a seventh aspect of the present invention, the counting operation is performed based on the rotation of the drive motor that opens and closes the opening / closing member, the opening / closing position of the opening / closing member is detected based on the count value, and the opening / closing position is detected. It is configured to perform opening / closing control, and the count value is stored in a storage device,
Preventing displacement of the opening / closing member in the opening / closing member control device configured to determine whether or not the count value is normally stored in the storage device when the supplied driving power falls below a predetermined voltage value and returns again. In the method, even if it is determined that the count value is normally stored in the determination, if the drive motor is operating immediately before the drive power source becomes equal to or less than a predetermined voltage value, the opening / closing is performed. It is determined that a deviation may occur between the member and the count value, and the origin position is set to set the count value to the predetermined count value with the opening / closing member arranged at the predetermined position, I tried to prevent the gap.

【0015】請求項8に記載の発明は、請求項7に記載
の開閉部材制御装置における開閉部材の位置ズレ防止方
法において、前記開閉部材と前記カウント値との間にズ
レが生じた可能性があると判定した直後に該開閉部材が
前記所定位置に配置されると、前記カウント値を所定カ
ウント値に設定する原点位置の設定を行うようにした。
According to an eighth aspect of the present invention, in the method for preventing the positional deviation of the opening / closing member in the opening / closing member control device according to the seventh aspect, there is a possibility that a deviation occurs between the opening / closing member and the count value. When the opening / closing member is placed at the predetermined position immediately after it is determined that there is such a position, the origin position for setting the count value to the predetermined count value is set.

【0016】請求項9に記載の発明は、請求項7又は8
に記載の開閉部材制御装置における開閉部材の位置ズレ
防止方法において、前記開閉部材が全閉側の機械的限界
位置に配置されると、前記カウント値を所定カウント値
に設定する原点位置の設定を行う。
The invention according to claim 9 is the invention according to claim 7 or 8.
In the method for preventing the positional deviation of the opening / closing member in the opening / closing member control device described in 1, when the opening / closing member is arranged at the mechanical limit position on the fully closed side, setting of the origin position for setting the count value to a predetermined count value is performed. To do.

【0017】請求項10に記載の発明は、請求項6〜9
のいずれか1項に記載の開閉部材制御装置における開閉
部材の位置ズレ防止方法において、前記駆動モータは、
リレーを介して駆動電源が供給されるものであり、その
リレーのオンオフ状態で前記駆動モータの作動状態を検
出するようにした。
The invention described in claim 10 is the invention according to claims 6 to 9.
In the method for preventing displacement of the opening / closing member in the opening / closing member control device according to any one of items 1 to 5,
The drive power is supplied through the relay, and the operating state of the drive motor is detected by the on / off state of the relay.

【0018】(作用)請求項1,6に記載の発明によれ
ば、開閉部材制御装置は、開閉部材の開閉位置を検出す
るためのカウント値が変化する度に記憶装置にて記憶さ
れ、供給される駆動電源が所定電圧値以下となり再び
(所定電圧に)復帰した場合に、カウント値が正常に該
記憶装置に記憶されているか否かを判定するように構成
されている。そして、その判定にてカウント値が正常に
記憶されていると判定されても、駆動電源が所定電圧値
以下となる直前に開閉部材を開閉作動させる駆動モータ
が作動中であった場合、該開閉部材とカウント値との間
にズレが生じた可能性があると判定する。つまり、駆動
電源が所定電圧値以下になった際に、カウント動作が正
常に行えなかったり、記憶装置にカウント値を書き込む
ことができない場合等があるため、その時に駆動モータ
が作動中であると、開閉部材が移動しているにもかかわ
らず記憶装置内のカウント値が変化しない。そのため、
開閉部材の開閉位置とカウント値との間にズレが発生す
る場合がある。従って、このような場合に、例えば、開
閉部材を所定位置に配置した状態でカウント値を所定カ
ウント値に設定する原点位置の設定を行うようにすれ
ば、開閉部材の開閉位置とカウント値とのズレを防止す
ることができる。
(Operation) According to the invention described in claims 1 and 6, the opening / closing member control device stores the data in the storage device each time the count value for detecting the opening / closing position of the opening / closing member changes, and supplies it. When the driving power supply to be operated falls below a predetermined voltage value and returns (to a predetermined voltage) again, it is configured to determine whether or not the count value is normally stored in the storage device. Even if it is determined that the count value is normally stored in the determination, if the drive motor that opens and closes the opening and closing member is operating immediately before the drive power supply becomes equal to or lower than the predetermined voltage value, the opening and closing is performed. It is determined that a deviation may have occurred between the member and the count value. In other words, when the drive power supply voltage falls below the predetermined voltage value, the count operation may not be performed normally, or the count value may not be written to the storage device. Therefore, the drive motor may be operating at that time. The count value in the storage device does not change despite the movement of the opening / closing member. for that reason,
A gap may occur between the open / close position of the open / close member and the count value. Therefore, in such a case, for example, if the origin position for setting the count value to the predetermined count value is set in a state where the open / close member is arranged at the predetermined position, the open / close position of the open / close member and the count value are Displacement can be prevented.

【0019】請求項2,7に記載の発明によれば、開閉
部材制御装置は、開閉部材の開閉位置を検出するための
カウント値が変化する度に記憶装置にて記憶され、供給
される駆動電源が所定電圧値以下となり再び(所定電圧
に)復帰した場合に、カウント値が正常に該記憶装置に
記憶されているか否かを判定するように構成されてい
る。そして、その判定にてカウント値が正常に記憶され
ていると判定されても、駆動電源が所定電圧値以下とな
る直前に開閉部材を開閉作動させる駆動モータが作動中
であった場合、該開閉部材とカウント値との間にズレが
生じた可能性があると判定して、開閉部材を所定位置に
配置した状態でカウント値を所定カウント値に設定する
原点位置の設定が行われる。つまり、駆動電源が所定電
圧値以下になった際に、カウント動作が正常に行えなか
ったり、記憶装置にカウント値を書き込むことができな
い場合等があるため、その時に駆動モータが作動中であ
ると、開閉部材が移動しているにもかかわらず記憶装置
内のカウント値が変化しない。そのため、開閉部材の開
閉位置とカウント値との間にズレが発生する場合があ
る。従って、このような場合を想定して開閉部材の原点
位置の設定を行うようにしたので、開閉部材の開閉位置
とカウント値とのズレを防止することができる。
According to the second and seventh aspects of the present invention, the opening / closing member control device is driven and stored in the storage device every time the count value for detecting the opening / closing position of the opening / closing member changes. It is configured to determine whether or not the count value is normally stored in the storage device when the power supply becomes equal to or lower than the predetermined voltage value and returns (to the predetermined voltage) again. Even if it is determined that the count value is normally stored in the determination, if the drive motor that opens and closes the opening and closing member is operating immediately before the drive power supply becomes equal to or lower than the predetermined voltage value, the opening and closing is performed. It is determined that a deviation may have occurred between the member and the count value, and the origin position for setting the count value to the predetermined count value is set with the opening / closing member arranged at the predetermined position. In other words, when the drive power supply voltage falls below the predetermined voltage value, the count operation may not be performed normally, or the count value may not be written to the storage device. Therefore, the drive motor may be operating at that time. The count value in the storage device does not change despite the movement of the opening / closing member. Therefore, a shift may occur between the open / close position of the open / close member and the count value. Therefore, since the origin position of the opening / closing member is set in consideration of such a case, it is possible to prevent the difference between the opening / closing position of the opening / closing member and the count value.

【0020】請求項3,8に記載の発明によれば、開閉
部材とカウント値との間にズレが生じた可能性があると
判定した直後に該開閉部材が所定位置に配置されると、
カウント値を所定カウント値に設定する原点位置の設定
が行われる。つまり、そのズレが生じた可能性があると
判定した直後に原点位置の設定を行うので、早期にその
ズレを防止することができる。
According to the third and eighth aspects of the present invention, when the opening / closing member is arranged at the predetermined position immediately after it is determined that there is a possibility that a deviation has occurred between the opening / closing member and the count value,
The origin position is set to set the count value to a predetermined count value. That is, since the origin position is set immediately after it is determined that the deviation may have occurred, the deviation can be prevented early.

【0021】請求項4,9に記載の発明によれば、原点
位置の設定は、開閉部材が全閉側の機械的限界位置に配
置した状態で、カウント値が所定カウント値に設定され
ることで行われる。従って、原点位置の設定を容易に行
うことができる。
According to the invention described in claims 4 and 9, the origin position is set such that the count value is set to the predetermined count value in a state where the opening / closing member is arranged at the mechanical limit position on the fully closed side. Done in. Therefore, the origin position can be easily set.

【0022】請求項5,10に記載の発明によれば、駆
動モータは、リレーを介して駆動電源が供給されるもの
であり、そのリレーのオンオフ状態で駆動モータの作動
状態が検出される。従って、モータの作動状態を容易に
検出することができる。
According to the fifth and tenth aspects of the present invention, the driving power is supplied to the driving motor via the relay, and the operating state of the driving motor is detected by the ON / OFF state of the relay. Therefore, the operating state of the motor can be easily detected.

【0023】[0023]

【発明の実施の形態】(第1実施形態)以下、本発明を
自動車に装備したサンルーフ装置に具体化した第1実施
形態を図面に従って説明する。
BEST MODE FOR CARRYING OUT THE INVENTION (First Embodiment) A first embodiment in which the present invention is embodied in a sunroof device equipped on an automobile will be described below with reference to the drawings.

【0024】図7は、サンルーフ装置を装備した自動車
の要部斜視図であって、自動車1のルーフパネル2に形
成した天窓3に対して開閉部材としてのルーフガラス4
が設けられている。ルーフガラス4は、前後方向に往復
スライド移動(スライド開閉作動)可能、かつ、その前
端部において車幅方向を支点として上下動(チルト開閉
作動)可能に設けられている。そして、ルーフガラス4
は、同図7の破線で示す駆動モータ5の駆動に基づいて
図示しない駆動伝達機構を介して開閉作動が行われる。
この駆動モータ5は、該モータ5を駆動制御する後述の
制御装置11とともに駆動ユニット10を構成してい
る。駆動ユニット10は、天窓3の前方におけるルーフ
パネル2と室内側の成形天井パネル(図示略)との間に
配設されている。
FIG. 7 is a perspective view of an essential part of an automobile equipped with a sunroof device, in which a roof glass 4 serving as an opening / closing member for a skylight 3 formed on a roof panel 2 of the automobile 1.
Is provided. The roof glass 4 is provided so as to be capable of reciprocating sliding movement in the front-rear direction (sliding opening / closing operation), and vertically movable (tilt opening / closing operation) at the front end thereof with the vehicle width direction as a fulcrum. And roof glass 4
7 is opened and closed via a drive transmission mechanism (not shown) based on the drive of the drive motor 5 shown by the broken line in FIG.
The drive motor 5 constitutes a drive unit 10 together with a control device 11 which will be described later and controls the drive of the motor 5. The drive unit 10 is arranged between the roof panel 2 in front of the skylight 3 and a molded ceiling panel (not shown) on the indoor side.

【0025】尚、本実施形態のルーフガラス4は、図2
に示すように、主に、全閉位置、チルト全開位置(全閉
位置からルーフガラス4の後端が室外側に最も上昇した
位置)、擬似全閉位置、フラップダウン位置(擬似全閉
位置からルーフガラス4の後端が室内側に最も下降した
位置)、及びスライド全開位置を有している。そして、
本実施形態では、ルーフガラス4が全閉位置からチルト
全開位置、擬似全閉位置、フラップダウン位置、及びス
ライド全開位置の順で開作動することをスライド開作動
(図2においてS/O作動)、この逆の作動をスライド
閉作動(図2においてS/C作動)という。このスライ
ド開閉作動は、後述するスライド開閉スイッチSW2,
SW3をそれぞれ操作することにより行われる。又、ル
ーフガラス4が全閉位置からチルト全開位置まで開作動
することをチルト開作動(図2においてT/U作動)、
この逆の作動をチルト閉作動(図2においてT/D作
動)という。このチルト開閉作動は、後述するチルト開
閉スイッチSW4,SW5をそれぞれ操作することによ
り行われる。
The roof glass 4 of this embodiment is shown in FIG.
As shown in FIG. 4, mainly, the fully closed position, the tilt fully open position (the position where the rear end of the roof glass 4 is raised to the outdoor side from the fully closed position), the pseudo fully closed position, and the flap down position (from the fully closed position) It has a position where the rear end of the roof glass 4 descends to the inside of the room) and a slide fully open position. And
In the present embodiment, the slide opening operation (S / O operation in FIG. 2) means that the roof glass 4 is opened in the order of the fully closed position, the tilt fully open position, the pseudo fully closed position, the flap down position, and the slide fully open position. The reverse operation is referred to as a slide closing operation (S / C operation in FIG. 2). This slide opening / closing operation is performed by a slide opening / closing switch SW2, which will be described later.
This is performed by operating each SW3. Further, the operation of opening the roof glass 4 from the fully closed position to the tilt fully opened position is referred to as a tilt opening operation (T / U operation in FIG. 2),
This reverse operation is called tilt close operation (T / D operation in FIG. 2). This tilt opening / closing operation is performed by operating tilt opening / closing switches SW4 and SW5 described later.

【0026】図1は、駆動モータ5を駆動制御するサン
ルーフ装置の電気的構成を説明するための電気ブロック
図を示す。駆動モータ5を駆動制御する制御装置11は
バッテリ(図示略)に接続され、該制御装置11にはバ
ッテリから駆動電源+B(本実施形態では、12
[V])が供給される。駆動電源+Bは、制御装置11
内において電源供給回路12にて所定電源電圧に調整さ
れて、位置検出手段、開閉制御手段、判定手段、モータ
状態検出手段、位置ズレ判定手段、及び、位置ズレ防止
手段を構成する制御部13に供給される。
FIG. 1 is an electric block diagram for explaining the electrical construction of the sunroof device for driving and controlling the drive motor 5. A control device 11 for driving and controlling the drive motor 5 is connected to a battery (not shown), and the control device 11 is connected to the drive power source + B (in this embodiment, 12
[V]) is supplied. The drive power source + B is the control device 11
The power supply circuit 12 adjusts the power supply voltage to a predetermined power supply voltage, and controls the position detecting unit, the opening / closing control unit, the determining unit, the motor state detecting unit, the position shift determining unit, and the position shift preventing unit. Supplied.

【0027】制御装置11は、イグニッションスイッチ
SW1が接続される。イグニッションスイッチSW1
は、制御装置11内において入力回路14を介して制御
部13に接続される。イグニッションスイッチSW1
は、操作されると操作信号(オン信号)を入力回路14
を介して制御部13に出力する。制御部13は、イグニ
ッションスイッチSW1のオン信号に基づいて電源供給
回路12を介して供給される駆動電源+Bに基づいて動
作する。
The control device 11 is connected to an ignition switch SW1. Ignition switch SW1
Is connected to the control unit 13 via the input circuit 14 in the control device 11. Ignition switch SW1
Is operated, an operation signal (ON signal) is input to the input circuit 14
To the control unit 13 via. The controller 13 operates based on the drive power supply + B supplied via the power supply circuit 12 based on the ON signal of the ignition switch SW1.

【0028】又、制御装置11には、前記ルーフガラス
4を開閉させるべく操作される各種スイッチSW2〜S
W5、即ちスライド開スイッチSW2、スライド閉スイ
ッチSW3、チルト開スイッチSW4、及びチルト閉ス
イッチSW5がそれぞれ接続される。各種スイッチSW
2〜SW5は、制御装置11内において入力回路14を
介して制御部13に接続される。各種スイッチSW2〜
SW5は、それぞれ操作されると、指令信号(本実施形
態では、Lレベル(接地レベル)のオン信号)を入力回
路14を介して制御部13に出力する。
Further, the control device 11 has various switches SW2 to S operated to open and close the roof glass 4.
W5, that is, the slide opening switch SW2, the slide closing switch SW3, the tilt opening switch SW4, and the tilt closing switch SW5 are respectively connected. Various switches SW
2 to SW5 are connected to the control unit 13 via the input circuit 14 in the control device 11. Various switches SW2
When operated, the SW 5 outputs a command signal (in this embodiment, an L level (ground level) ON signal) to the control unit 13 via the input circuit 14.

【0029】制御部13には、該制御部13の動作に必
要な基準クロック信号がクロック発振回路15から入力
される。又、前記制御部13は、駆動回路17を介して
前記駆動モータ5に駆動電源+Bを供給して該モータ5
の制御を行う。この駆動回路17は、第1及び第2リレ
ー17a,17bを備えている。各リレー17a,17
bは、駆動モータ5に駆動電源+Bを供給又は停止し
て、該モータ5を正逆回転又は停止させる。
A reference clock signal required for the operation of the control unit 13 is input to the control unit 13 from the clock oscillation circuit 15. Further, the control unit 13 supplies the drive power source + B to the drive motor 5 through the drive circuit 17 to supply the drive power + B.
Control. The drive circuit 17 includes first and second relays 17a and 17b. Each relay 17a, 17
b supplies or stops the drive power supply + B to the drive motor 5 to rotate or stop the motor 5 forward or backward.

【0030】即ち、本実施形態の制御部13は、スライ
ド開スイッチSW2が一旦操作される、即ち該スイッチ
SW2からオン信号が一旦入力されると、その後該スイ
ッチSW2からオフ信号が入力されてもルーフガラス4
を全閉位置からチルト全開位置、擬似全閉位置、フラッ
プダウン位置、及びスライド全開位置までの順で一気に
開作動(オート開作動)させるべく第1リレー17aを
オンさせて駆動モータ5に駆動電源+Bを供給し、該モ
ータ5を駆動する。そして、制御部13は、後述するル
ーフガラス4の開閉位置の検出によって該ルーフガラス
4がスライド全開位置に配置されたことが検出される
と、第1リレー17aをオフさせて駆動モータ5への駆
動電源+Bを停止して、ルーフガラス4の作動を停止す
る。
That is, in the control unit 13 of this embodiment, even if the slide opening switch SW2 is once operated, that is, an ON signal is once input from the switch SW2, an OFF signal is then input from the switch SW2. Roof glass 4
The first relay 17a is turned on to drive the drive motor 5 in order from the fully closed position to the tilt fully open position, the pseudo fully closed position, the flap down position, and the slide fully open position in order. + B is supplied to drive the motor 5. Then, when it is detected that the roof glass 4 is placed at the slide fully open position by detecting the opening / closing position of the roof glass 4 described later, the control unit 13 turns off the first relay 17a to turn the drive motor 5 on. The drive power source + B is stopped to stop the operation of the roof glass 4.

【0031】一方、制御部13は、スライド閉スイッチ
SW3が一旦操作される、即ち該スイッチSW3からオ
ン信号が一旦入力されると、その後該スイッチSW3か
らオフ信号が入力されてもルーフガラス4をスライド全
開位置から前記逆の順で全閉位置に一気に閉作動(オー
ト閉作動)させるべく第2リレー17bをオンさせて駆
動モータ5に駆動電源+Bを供給し、該モータ5を駆動
する。そして、制御部13は、後述するルーフガラス4
の開閉位置の検出によって該ルーフガラス4が全閉位置
に配置されたことが検出されると、第2リレー17bを
オフさせて駆動モータ5への駆動電源+Bを停止して、
ルーフガラス4の作動を停止する。
On the other hand, when the slide closing switch SW3 is once operated, that is, the ON signal is once input from the switch SW3, the control unit 13 controls the roof glass 4 even if the OFF signal is subsequently input from the switch SW3. The second relay 17b is turned on to supply the drive power source + B to the drive motor 5 to drive the motor 5 in the reverse order from the slide fully open position to the fully closed position (automatic closing operation) at once. Then, the control unit 13 controls the roof glass 4 described later.
When it is detected that the roof glass 4 is placed in the fully closed position by detecting the open / close position of the second relay 17b, the second relay 17b is turned off and the drive power source + B to the drive motor 5 is stopped.
The operation of the roof glass 4 is stopped.

【0032】又、上記のようにしてルーフガラス4がオ
ート作動している途中に、スライド開閉スイッチSW
2,SW3のいずれかが操作されると、制御部13は、
駆動モータ5への駆動電源+Bを停止して、ルーフガラ
ス4の作動を停止する。そして、再びスライド開閉スイ
ッチSW2,SW3が操作されると、制御部13は駆動
モータ5に駆動電源+Bを供給し、ルーフガラス4が停
止した位置からスライド全開位置又は全閉位置まで一気
に作動させるようになっている。
Further, while the roof glass 4 is automatically operating as described above, the slide opening / closing switch SW is
When one of SW2 and SW3 is operated, the control unit 13
The drive power supply + B to the drive motor 5 is stopped, and the operation of the roof glass 4 is stopped. Then, when the slide opening / closing switches SW2 and SW3 are operated again, the control unit 13 supplies the drive power source + B to the drive motor 5 so that the roof glass 4 is operated at once from the position where the roof glass 4 is stopped to the slide fully open position or the fully closed position. It has become.

【0033】制御部13は、チルト開スイッチSW4を
操作している間、即ち該スイッチSW4からオン信号が
入力されている間、ルーフガラス4を通常開作動(マニ
ュアル開作動)させるべく第1リレー17aをオンさせ
て駆動モータ5に駆動電源+Bを供給し、該モータ5を
駆動する。チルト開スイッチSW4の操作を止める、即
ち該スイッチSW4からオフ信号が入力されると、制御
部13は、ルーフガラス4の作動を停止させるべく第1
リレー17aをオフさせて駆動モータ5への駆動電源+
Bの供給を停止する。又、この場合、後述するルーフガ
ラス4の開閉位置の検出によって該ルーフガラス4がチ
ルト全開位置に配置されると、制御部13は、チルト開
スイッチSW4が操作されていても、駆動モータ5への
駆動電源+Bの供給を停止して、ルーフガラス4の作動
を停止する。
The control unit 13 controls the first relay to open the roof glass 4 normally (manually open) while the tilt open switch SW4 is being operated, that is, while an ON signal is being input from the switch SW4. 17a is turned on to supply the drive power source + B to the drive motor 5 to drive the motor 5. When the operation of the tilt opening switch SW4 is stopped, that is, when an off signal is input from the switch SW4, the control unit 13 causes the first operation to stop the operation of the roof glass 4.
Drive power to drive motor 5 by turning off relay 17a +
Stop the supply of B. Further, in this case, when the roof glass 4 is placed at the tilt fully open position by detecting the opening / closing position of the roof glass 4 which will be described later, the control unit 13 causes the drive motor 5 to operate even if the tilt open switch SW4 is operated. The driving power supply + B is stopped to stop the operation of the roof glass 4.

【0034】一方、制御部13は、チルト閉スイッチS
W5を操作している間、即ち該スイッチSW5からオン
信号が入力されている間、ルーフガラス4を通常閉作動
(マニュアル閉作動)させるべく第2リレー17bをオ
ンさせて駆動モータ5に駆動電源+Bを供給し、該モー
タ5を駆動する。チルト閉スイッチSW5の操作を止め
る、即ち該スイッチSW5からオフ信号が入力される
と、制御部13は、ルーフガラス4の作動を停止させる
べく第2リレー17bをオンさせて駆動モータ5への駆
動電源+Bの供給を停止する。又、この場合、後述する
ルーフガラス4の開閉位置の検出によって該ルーフガラ
ス4が全閉位置に配置されると、制御部13は、チルト
閉スイッチSW5が操作されていても、駆動モータ5へ
の駆動電源+Bの供給を停止して、ルーフガラス4の作
動を停止する。
On the other hand, the controller 13 controls the tilt close switch S
While operating W5, that is, while an ON signal is being input from the switch SW5, the second relay 17b is turned on to normally close the roof glass 4 (manual closing operation), and the drive power source is supplied to the drive motor 5. + B is supplied to drive the motor 5. When the operation of the tilt close switch SW5 is stopped, that is, when an OFF signal is input from the switch SW5, the control unit 13 turns on the second relay 17b to stop the operation of the roof glass 4 and drives the drive motor 5. Stop supplying power + B. Further, in this case, when the roof glass 4 is placed in the fully closed position by detecting the opening / closing position of the roof glass 4 which will be described later, the control unit 13 causes the drive motor 5 to operate even if the tilt closing switch SW5 is operated. The driving power supply + B is stopped to stop the operation of the roof glass 4.

【0035】前記制御装置11には、駆動モータ5の回
転周期(回転速度)及び回転方向を検出する位置検出手
段としての一対のホール素子磁気センサ18a,18b
が該制御装置11を構成する基板上に配設されている。
具体的には、駆動モータ5の回転軸(図示略)には回転
方向に多極着磁されたセンサマグネットが一体回転する
ように設けられ、そのセンサマグネットの近傍位置にホ
ール素子磁気センサ18a,18bが互いに回転方向に
所定間隔を有して配置されている。つまり、本実施形態
の回転センサは、磁気を用いた非接触型の回転センサが
用いられている。各ホール素子磁気センサ18a,18
bは、駆動モータ5が回転するとそのモータ5の回転に
応じたパルス状の出力信号をそれぞれ検出回路19に出
力する。又、各ホール素子磁気センサ18a,18bか
ら出力される出力信号(パルス信号)は、互いに所定の
位相差(例えば、1/4周期)を有している。検出回路
19は、各出力信号(パルス信号)の波形を成形する等
して制御部13に出力する。
The control device 11 includes a pair of Hall element magnetic sensors 18a, 18b as position detecting means for detecting the rotation cycle (rotation speed) and rotation direction of the drive motor 5.
Are arranged on a substrate forming the control device 11.
Specifically, a multi-pole magnetized sensor magnet is provided on the rotation shaft (not shown) of the drive motor 5 so as to rotate integrally, and the Hall element magnetic sensor 18a, 18b are arranged at predetermined intervals in the rotational direction. That is, as the rotation sensor of this embodiment, a non-contact rotation sensor using magnetism is used. Each Hall element magnetic sensor 18a, 18
When the drive motor 5 is rotated, the output signal b outputs a pulsed output signal corresponding to the rotation of the motor 5 to the detection circuit 19. The output signals (pulse signals) output from the Hall element magnetic sensors 18a and 18b have a predetermined phase difference (for example, 1/4 cycle). The detection circuit 19 shapes the waveform of each output signal (pulse signal) and outputs it to the control unit 13.

【0036】前記制御部13は、各ホール素子磁気セン
サ18a,18bから検出回路19を介して入力される
出力信号(パルス信号)の周期に基づいて駆動モータ5
の回転周期(回転速度)を検出する。
The control unit 13 drives the drive motor 5 based on the cycle of the output signal (pulse signal) input from the Hall element magnetic sensors 18a and 18b through the detection circuit 19.
The rotation cycle (rotation speed) of is detected.

【0037】即ち、制御部13は、前記スライド開スイ
ッチSW2及び前記チルト開スイッチSW4が操作され
オン信号が入力されると、例えばセンサ18bからの出
力信号(パルス信号)の立ち上がり又は立ち下がりエッ
ジに基づいてカウント値に「1」を加算する(図2参
照)。一方、制御部13は、前記スライド閉スイッチS
W3及び前記チルト閉スイッチSW5が操作されオン信
号が入力されると、該センサ18bからの出力信号(パ
ルス信号)の立ち上がり又は立ち下がりエッジ毎に、開
時において加算されたカウント値から「1」を減算す
る。そして、制御部13は、そのカウント値に応じてル
ーフガラス4の開閉位置を検出するようになっている。
That is, when the slide open switch SW2 and the tilt open switch SW4 are operated and the ON signal is input, the control section 13 changes to the rising or falling edge of the output signal (pulse signal) from the sensor 18b, for example. Based on this, "1" is added to the count value (see FIG. 2). On the other hand, the control unit 13 controls the slide close switch S.
When W3 and the tilt close switch SW5 are operated and an ON signal is input, "1" is obtained from the count value added at the time of opening at each rising or falling edge of the output signal (pulse signal) from the sensor 18b. Subtract. Then, the control unit 13 is adapted to detect the open / close position of the roof glass 4 according to the count value.

【0038】因みに、図2に示すように、本実施形態で
は、カウント値が「10」以下になると、ルーフガラス
4が全閉位置に配置されているとみなされる全閉マスク
領域としている。又、ルーフガラス4がチルト全開位置
に配置されると、カウント値は「128」となり、ルー
フガラス4が擬似全閉位置に配置されると、カウント値
は「205」となる。この場合、カウント値「0」〜
「128」の間をチルトA領域とし、カウント値「12
8」〜「205」の間をチルトB領域としている。又、
ルーフガラス4がフラップダウン位置に配置されると、
カウント値は「248」となり、ルーフガラス4がスラ
イド全開位置に配置されると、カウント値は「106
2」となる。尚、カウント値が「248」〜「254」
の間(図2においてスライドA領域)は、後述する挟み
込み判定を行わない荷重反転マスク領域である。つま
り、それ以外のスライド領域であるカウント値が「25
4」〜「1062」の間(図2においてスライドB領
域)で挟み込み判定が行われる。又、ルーフガラス4が
全開側の機械的限界位置に配置されると、カウント値が
「1150」になる。
Incidentally, as shown in FIG. 2, in the present embodiment, when the count value becomes "10" or less, the roof glass 4 is regarded as the fully closed mask area which is considered to be arranged at the fully closed position. Further, when the roof glass 4 is arranged at the tilt fully open position, the count value becomes "128", and when the roof glass 4 is arranged at the pseudo fully closed position, the count value becomes "205". In this case, the count value "0" ~
The tilt A area is set between “128” and the count value “12” is set.
The tilt B region is between 8 ”and“ 205 ”. or,
When the roof glass 4 is placed in the flap down position,
The count value becomes "248", and when the roof glass 4 is arranged at the slide fully open position, the count value becomes "106".
2 ”. The count value is "248" to "254".
The area between them (slide A area in FIG. 2) is a load reversal mask area in which entrapment determination described later is not performed. In other words, the count value that is the other slide area is "25
The pinch determination is performed between "4" and "1062" (slide B area in FIG. 2). When the roof glass 4 is placed at the mechanical limit position on the fully open side, the count value becomes "1150".

【0039】そして、このようなルーフガラス4とカウ
ント値との相対関係を決定する原点位置設定(初期設
定)は、例えば、車両出荷時や使用途中で完全に通常動
作不能になった時などに行われる。この原点位置設定
は、ルーフガラス4を全閉側の機械的限界位置に配置し
た状態で、該ルーフガラス4を更に閉方向に作動させる
ようにチルト閉スイッチSW5を所定時間若しくは所定
回数以上操作する等してカウント値を「0」に設定する
ことにより行われる。この場合、制御部13内の原点位
置設定済みフラグがセットされる。
The origin position setting (initial setting) for determining the relative relationship between the roof glass 4 and the count value is performed, for example, when the vehicle is shipped or when it is completely disabled during normal use. Done. The origin position is set by operating the tilt close switch SW5 for a predetermined time or a predetermined number of times or more so that the roof glass 4 is further operated in the closing direction in a state where the roof glass 4 is arranged at the mechanical limit position on the fully closed side. This is done by setting the count value to "0" by performing the same process. In this case, the origin position set flag in the control unit 13 is set.

【0040】又、制御部13は、各出力信号(パルス信
号)の位相差に応じて駆動モータ5の回転方向を検出
し、その駆動モータ5の回転方向の検出に基づいてルー
フガラス4の開閉方向を検出している。
Further, the control unit 13 detects the rotation direction of the drive motor 5 according to the phase difference of each output signal (pulse signal), and opens / closes the roof glass 4 based on the detection of the rotation direction of the drive motor 5. The direction is being detected.

【0041】又、制御部13は、前記ルーフガラス4が
オート閉作動を行っている間、駆動モータ5の回転速度
が予め定めた挟み込み判定値より遅くなると、前記ルー
フガラス4と前記ルーフパネル2との間で異物が狭持さ
れて回転速度が遅くなった(回転周期が長くなった)と
判定する。すると、制御部13は、閉作動中のルーフガ
ラス4により挟み込んだ異物を解放すべく駆動モータ5
を逆転させ、該ルーフガラス4を規定量(所定カウント
値)だけ全開方向に反転作動させる。このとき、制御部
13は、駆動モータ5の逆転に基づいて、カウント値を
減算から加算に切り換える。
Further, when the rotation speed of the drive motor 5 becomes slower than a predetermined entrapment judgment value while the roof glass 4 is performing the automatic closing operation, the control section 13 causes the roof glass 4 and the roof panel 2 to be closed. It is determined that the foreign matter is sandwiched between and and the rotation speed becomes slower (the rotation cycle becomes longer). Then, the control unit 13 causes the drive motor 5 to release the foreign matter sandwiched by the roof glass 4 being closed.
Is reversed, and the roof glass 4 is reversed by a specified amount (predetermined count value) in the fully opening direction. At this time, the control unit 13 switches the count value from subtraction to addition based on the reverse rotation of the drive motor 5.

【0042】又、前記制御部13には、記憶装置として
のRAM(Random Access Memory)13aが備えられて
いる。制御部13は、上記したルーフガラス4の開閉位
置を検出するためのカウント値を記憶する。カウント値
は、その値が変化する度に書き換えられる。又、この場
合、制御部13は、カウント値そのままを「正規値」と
して記憶するとともに、その「正規値」の論理を全ビッ
ト反転した「ミラー値」も同時に記憶する。
Further, the control unit 13 is provided with a RAM (Random Access Memory) 13a as a storage device. The control unit 13 stores the count value for detecting the opening / closing position of the roof glass 4 described above. The count value is rewritten each time the value changes. Further, in this case, the control unit 13 stores the count value as it is as a "normal value" and also stores a "mirror value" obtained by inverting all the bits of the logic of the "normal value".

【0043】ここで、RAM13aは、電源供給を受け
ないとデータが消えてしまう揮発性の記憶装置である。
従って、制御部13は、電源供給回路12を介して供給
される駆動電源+Bが所定電圧値以下となり再び(所定
電圧に)復帰した場合、RAM13aに記憶していたデ
ータ(カウント値)が消えた可能性があるとして、RA
M13aに記憶したデータ(カウント値)が正常に記憶
されているか否かを判定する(以下、この判定をRAM
チェックという)。制御部13は、このRAMチェック
の際、RAM13aに記憶されているカウント値の「正
規値」と「ミラー値」とを加算し、その加算結果に基づ
いて判定を行っている。
Here, the RAM 13a is a volatile storage device in which data is lost unless power is supplied.
Therefore, the control unit 13 erases the data (count value) stored in the RAM 13a when the drive power supply + B supplied via the power supply circuit 12 becomes equal to or lower than the predetermined voltage value and returns (to the predetermined voltage) again. RA as possible
It is determined whether or not the data (count value) stored in the M13a is normally stored (hereinafter, this determination is made in the RAM.
Check). At the time of this RAM check, the control unit 13 adds the "normal value" and the "mirror value" of the count values stored in the RAM 13a, and makes a determination based on the addition result.

【0044】そして、その「正規値」と「ミラー値」と
を加算して全ビットが「1」となれば、制御部13は、
RAM13aに正常にデータ(カウント値)が記憶され
ていると判定する(RAMチェックOK)。つまり、
「ミラー値」は「正規値」の論理を全ビット反転したデ
ータであるため、正常に記憶されていれば、その加算結
果は全ビット「1」となるはずである。これに対し、
「正規値」と「ミラー値」とを加算して全ビットが
「0」となる場合、制御部13は、RAM13aのデー
タ(カウント値)が消えたと判定する(RAMチェック
NG)。つまり、電源供給が遮断された場合、「正規
値」と「ミラー値」はともに全ビット「0」となり、そ
の加算結果も全ビット「0」となるためである。
When the "normal value" and the "mirror value" are added and all the bits are "1", the control unit 13
It is determined that the data (count value) is normally stored in the RAM 13a (RAM check OK). That is,
Since the "mirror value" is data obtained by inverting all the bits of the logic of the "normal value", the addition result should be all bits "1" if normally stored. In contrast,
When all bits become "0" by adding the "normal value" and the "mirror value", the control unit 13 determines that the data (count value) in the RAM 13a has disappeared (RAM check NG). That is, when the power supply is cut off, both the “normal value” and the “mirror value” become all bits “0”, and the addition result also becomes all bits “0”.

【0045】又、制御部13は、制御装置11内に備え
られるEEPROM(ElectricallyErasable Programma
ble Read-Only Memory)20に対し、例えば、上記した
原点位置設定後や、駆動モータ5の停止後(ルーフガラ
ス4の作動後)の所定時間経過後(例えば、1秒後)等
の所定のタイミングで、その時のカウント値の「正規
値」と「ミラー値」を記憶する。このEEPROM20
は、電気的に消去(書き換え)可能であって、電源を切
ってもデータが消えない不揮発性の記憶装置である。
Further, the control section 13 is an EEPROM (Electrically Erasable Programma) provided in the control device 11.
ble read-only memory) 20. For example, after setting the above-mentioned origin position or after a lapse of a predetermined time (for example, 1 second) after stopping the drive motor 5 (after operating the roof glass 4), At the timing, the "normal value" and "mirror value" of the count value at that time are stored. This EEPROM 20
Is a non-volatile storage device that is electrically erasable (rewritable) and does not lose data even when the power is turned off.

【0046】ここで、制御部13は、RAMチェックに
関する具体的な処理を図3に示す処理フローに従って行
っている。この処理フローは、上記したように、電源供
給回路12を介して制御部13に供給される駆動電源+
Bが所定電圧値以下となり再び(所定電圧に)復帰した
時、スタートする。
Here, the control unit 13 performs a specific process regarding the RAM check according to the process flow shown in FIG. As described above, this processing flow is the same as the drive power supply + that is supplied to the control unit 13 via the power supply circuit 12.
When B becomes equal to or lower than the predetermined voltage value and returns (to the predetermined voltage) again, the operation is started.

【0047】ステップS1において、制御部13は、R
AMチェックが「OK」か否かを判定する。即ち、制御
部13は、RAM13aに記憶されているカウント値の
「正規値」と「ミラー値」とを加算して全ビットが
「1」となった場合、該RAM13aに正常に記憶され
ている(RAMチェックOK)として、ステップS2に
進む。
In step S1, the control unit 13 controls the R
It is determined whether the AM check is “OK”. That is, the control unit 13 adds the "normal value" of the count value stored in the RAM 13a and the "mirror value" to each other, and when all the bits become "1", the RAM 13a normally stores the count value. As (RAM check OK), the process proceeds to step S2.

【0048】ステップS2では、制御部13は、駆動電
源+Bが所定電圧値以下となる直前の駆動モータ5の作
動状態を判定、この場合、後述するモータ状態データに
基づいて判定する。駆動モータ5が作動していない、即
ちモータ状態データが「停止中」に対応したデータとな
っている場合、制御部13は、駆動電源+Bが所定電圧
値以下になった際にルーフガラス4が作動していなく、
実際のルーフガラス4の開閉位置とRAM13aに記憶
されているカウント値とにズレが生じていないと認識
し、ステップS3に進む。
In step S2, the control unit 13 determines the operating state of the drive motor 5 immediately before the drive power source + B becomes equal to or lower than the predetermined voltage value, and in this case, it determines based on motor state data described later. When the drive motor 5 is not operating, that is, when the motor state data is data corresponding to "stopped", the control unit 13 determines that the roof glass 4 is to be operated when the drive power source + B becomes equal to or lower than a predetermined voltage value. Not working,
It is recognized that the actual opening / closing position of the roof glass 4 and the count value stored in the RAM 13a are not displaced, and the process proceeds to step S3.

【0049】ステップS3では、制御部13は、RAM
13a内のカウント値をそのまま保持し、ステップS8
に進む。ステップS8では、制御部13は、RAM13
a内のカウント値に基づいたルーフガラス4の開閉位置
と各スイッチSW2〜SW5の操作とに基づいたルーフ
ガラス4の各種開閉作動を行う、メイン処理を行うよう
になっている。そして、次に駆動電源+Bが所定電圧値
以下となるまで、制御部13は、ステップS8のメイン
処理を繰り返す。尚、メイン処理は、所定時間毎(例え
ば、3[ms]毎)に繰り返される。
In step S3, the control unit 13 controls the RAM
The count value in 13a is retained as it is, and step S8 is performed.
Proceed to. In step S8, the control unit 13 causes the RAM 13
Main processing is performed to perform various opening / closing operations of the roof glass 4 based on the opening / closing position of the roof glass 4 based on the count value in a and the operation of the switches SW2 to SW5. Then, the control unit 13 repeats the main process of step S8 until the driving power source + B becomes equal to or less than the predetermined voltage value next. The main process is repeated every predetermined time (for example, every 3 [ms]).

【0050】メイン処理の中には、図4に示すような駆
動モータ5の出力制御が含まれている。この駆動モータ
5の出力制御において、制御部13は、ステップS81
で駆動モータ5の作動状態がオフ状態(作動モードがO
FF)であるか否かを判定、この場合、リレー17a,
17bのオンオフ状態に基づいて判定する。制御部13
は、作動状態がオン状態の時(リレー17a,17bの
いずれかがオンしている時)にはステップS82に進
み、モータ状態データを「作動中」に対応したデータに
書き換える。これに対し、駆動モータ5の作動状態がオ
フ状態の時(リレー17a,17bがともにオフしてい
る時)には、制御部13は、ステップS83に進み、モ
ータ状態データを「停止中」に対応したデータに書き換
えている。つまり、制御部13は、モータ状態データを
所定時間毎(例えば、3[ms]毎)に書き換えるよう
になっている。
The main processing includes output control of the drive motor 5 as shown in FIG. In the output control of the drive motor 5, the control unit 13 performs step S81.
And the operating state of the drive motor 5 is off (the operating mode is O
FF), in this case, the relay 17a,
The determination is made based on the on / off state of 17b. Control unit 13
When the operating state is the ON state (when one of the relays 17a and 17b is ON), the process proceeds to step S82, and the motor state data is rewritten to the data corresponding to "in operation". On the other hand, when the operating state of the drive motor 5 is off (when both the relays 17a and 17b are off), the control unit 13 proceeds to step S83 and sets the motor state data to "stopped". It is rewritten to the corresponding data. That is, the control unit 13 rewrites the motor state data every predetermined time (for example, every 3 [ms]).

【0051】これに対し、前記ステップS2において、
駆動電源+Bが所定電圧値以下となる直前に駆動モータ
5が作動中であったと判定、即ちモータ状態データが
「作動中」に対応するデータとなっている場合、制御部
13は、ステップS4に進み、RAM13a内のカウン
ト値をそのまま保持するとともに、原点位置の再設定を
行うべく原点位置再設定フラグをセットする。
On the other hand, in step S2,
When it is determined that the drive motor 5 is operating immediately before the drive power supply + B becomes equal to or lower than the predetermined voltage value, that is, when the motor state data is the data corresponding to “operating”, the control unit 13 proceeds to step S4. The process proceeds and the count value in the RAM 13a is held as it is, and the origin position reset flag is set to reset the origin position.

【0052】つまり、駆動電源+Bが所定電圧値以下に
なった際にルーフガラス4が作動しており、センサ18
a,18bからの出力信号(パルス信号)が異常な波形
となってカウントできなかったり、出力信号(パルス信
号)の波形が正常であってもカウントできなかったり、
RAM13aへの書き込みが行えなかったりする場合が
ある。そのため、RAMチェックがOKであっても、駆
動モータ5が作動中(ルーフガラス4が作動中)であっ
た場合には、制御部13は、実際のルーフガラス4の開
閉位置とカウント値との間にズレが発生している可能性
があると判定して、原点位置再設定フラグをセットす
る。
That is, when the driving power supply + B becomes equal to or lower than the predetermined voltage value, the roof glass 4 is operating and the sensor 18
The output signal (pulse signal) from a, 18b becomes an abnormal waveform and cannot be counted, or it cannot be counted even if the waveform of the output signal (pulse signal) is normal.
In some cases, writing to the RAM 13a may not be possible. Therefore, even if the RAM check is OK, when the drive motor 5 is operating (the roof glass 4 is operating), the control unit 13 determines the actual opening / closing position of the roof glass 4 and the count value. It is determined that there may be a gap between them, and the origin position reset flag is set.

【0053】そして、制御部13は、ステップS8に進
み、上記したメイン処理を行う。このとき、制御部13
は、ステップS8のメイン処理にてルーフガラス4が閉
作動されて全閉側の機械的限界位置に配置されると、カ
ウント値を「0」に設定する原点位置の再設定を行う。
具体的には、制御部13は、図5に示す処理フローに従
って原点位置の再設定を行う。
Then, the control unit 13 proceeds to step S8 and performs the above-mentioned main processing. At this time, the control unit 13
When the roof glass 4 is closed and placed at the mechanical limit position on the fully closed side in the main processing of step S8, resets the origin position for setting the count value to "0".
Specifically, the control unit 13 resets the origin position according to the processing flow shown in FIG.

【0054】ステップS11において、制御部13は、
スライド閉作動又はチルト閉作動によりルーフガラス4
が全閉側の機械的限界位置に配置され、駆動モータ5の
ロック状態を検出すると、ステップS12において駆動
モータ5を停止させる停止処理を行う。そして、ステッ
プS13において、上記した原点位置再設定フラグがセ
ットされていれば、制御部13は、ステップS14に進
み、カウント値を「0」に設定する(原点位置再設
定)。又、このとき、制御部13は、原点位置再設定フ
ラグをクリアする。こうして、ルーフガラス4の原点位
置の再設定が行われる。このような原点位置の再設定
は、上記した車両出荷時や使用途中で完全に通常動作不
能になった時などに行われる原点位置設定(初期設定)
とは異なり、簡易的に原点位置を設定するものである。
In step S11, the controller 13
Roof glass 4 by slide closing operation or tilt closing operation
Is placed at the mechanical limit position on the fully closed side, and when the locked state of the drive motor 5 is detected, stop processing for stopping the drive motor 5 is performed in step S12. Then, in step S13, if the above-mentioned origin position reset flag is set, the control unit 13 proceeds to step S14 and sets the count value to "0" (origin position reset). At this time, the control unit 13 clears the origin position reset flag. In this way, the origin position of the roof glass 4 is reset. Such resetting of the origin position is performed when the vehicle is shipped or when the normal operation is completely disabled during use as described above (initial setting).
Different from, the origin position is simply set.

【0055】一方、前記ステップS1のRAMチェック
において、RAM13aに記憶されているカウント値の
「正規値」と「ミラー値」とを加算して全ビットが
「0」となった場合(若しくは、全ビットが「1」とな
らない場合)、制御部13は、該RAM13a内のデー
タ(カウント値)が消えたと判定する(RAMチェック
NG)。つまり、制御部13は、ルーフガラス4の原点
位置(開閉位置)を喪失しており、該ルーフガラス4が
通常動作不能な状態になったと認識し、ステップS5に
進む。
On the other hand, in the RAM check in step S1, when all the bits become "0" by adding the "normal value" and the "mirror value" of the count values stored in the RAM 13a (or all If the bit does not become "1"), the control unit 13 determines that the data (count value) in the RAM 13a has disappeared (RAM check NG). That is, the control unit 13 recognizes that the original position (opening / closing position) of the roof glass 4 has been lost, and the roof glass 4 is in a normally inoperable state, and proceeds to step S5.

【0056】ステップS5では、制御部13は、前記ス
テップS2と同様、駆動電源+Bが所定電圧値以下とな
る直前の駆動モータ5の作動状態を判定、この場合、モ
ータ状態データに基づいて判定する。駆動モータ5が作
動していない、即ちモータ状態データが「停止中」に対
応したデータとなっている場合、制御部13は、ステッ
プS6に進み、EEPROM20に記憶されたデータ
(カウント値)を読み出して、RAM13aに書き込
む。
In step S5, the controller 13 determines the operating state of the drive motor 5 immediately before the drive power source + B becomes equal to or less than the predetermined voltage value, as in step S2. In this case, the determination is made based on the motor state data. . If the drive motor 5 is not operating, that is, the motor state data is data corresponding to "stopped", the control unit 13 proceeds to step S6 and reads the data (count value) stored in the EEPROM 20. Write to the RAM 13a.

【0057】つまり、駆動電源+Bが所定電圧値以下に
なった際にルーフガラス4が作動していないため、EE
PROM20に記憶されたデータ(カウント値)と実際
のルーフガラス4の開閉位置とが一致しているとして、
制御部13は、EEPROM20のデータ(カウント
値)をRAM13aに書き込むようになっている。そし
て、制御部13は、RAM13aに書き込んだデータ
(カウント値)によりルーフガラス4が通常動作可能に
なったと認識してステップS8に進み、上記したメイン
処理を行う。
That is, since the roof glass 4 is not in operation when the drive power source + B becomes equal to or lower than the predetermined voltage value, the EE
Assuming that the data (count value) stored in the PROM 20 matches the actual opening / closing position of the roof glass 4,
The controller 13 writes the data (count value) of the EEPROM 20 into the RAM 13a. Then, the control unit 13 recognizes that the roof glass 4 can be normally operated by the data (count value) written in the RAM 13a, and proceeds to step S8 to perform the above-described main processing.

【0058】これに対し、前記ステップS5において、
駆動電源+Bが所定電圧値以下となる直前に駆動モータ
5が作動中であったと判定、即ちモータ状態データが
「作動中」に対応するデータとなっている場合、制御部
13は、ステップS7に進み、RAM13aにデフォル
ト値(例えば、全ビット「0」)を設定するとともに、
車両出荷時等に原点位置設定(初期設定)を行った際、
セット状態となっている原点位置設定済みフラグをクリ
アする。
On the other hand, in step S5,
When it is determined that the drive motor 5 is in operation immediately before the drive power supply + B becomes equal to or lower than the predetermined voltage value, that is, when the motor state data is the data corresponding to "in operation", the control unit 13 proceeds to step S7. Proceed to set the default value (for example, all bits “0”) in the RAM 13a, and
When the origin position setting (initial setting) is performed when the vehicle is shipped,
Clear the origin position set flag that is set.

【0059】つまり、RAMチェックNGの場合、制御
部13は、ルーフガラス4の原点位置(開閉位置)を喪
失しており、該ルーフガラス4が通常動作不能な状態に
なっているため、各スイッチSW2〜SW5の操作に基
づいた通常のルーフガラス4の各種開閉作動を行うこと
ができない。従って、制御部13は、原点位置設定済み
フラグがクリア状態になっていると、ステップS8のメ
イン処理において、各スイッチSW2〜SW5が操作さ
れても、ルーフガラス4を所定のカウント値だけ開閉作
動する寸動作動(原点位置設定状態作動)モードにな
る。こうして、操作者に原点位置設定(初期設定)を行
うことを促す。そして、制御部13は、図6に示す処理
フローに従って原点位置設定を行う。
That is, in the case of RAM check NG, the control unit 13 loses the origin position (opening / closing position) of the roof glass 4 and the roof glass 4 is in a normally inoperable state. Various normal opening / closing operations of the roof glass 4 based on the operations of SW2 to SW5 cannot be performed. Therefore, when the origin position set flag is in the clear state, the control unit 13 opens and closes the roof glass 4 by a predetermined count value even if the switches SW2 to SW5 are operated in the main process of step S8. Inching mode (origin position setting state operation) mode is entered. In this way, the operator is urged to perform the origin position setting (initial setting). Then, the control unit 13 sets the origin position according to the processing flow shown in FIG.

【0060】ステップS21において、制御部13は、
寸動作動(原点位置設定状態作動)モードにおけるスラ
イド閉作動又はチルト閉作動によりルーフガラス4が全
閉側の機械的限界位置に配置され、駆動モータ5のロッ
ク状態を検出すると、ステップS22において駆動モー
タ5を停止させる停止処理を行う。そして、ステップS
23において、上記したように、ルーフガラス4を全閉
側の機械的限界位置に配置した状態で、該ルーフガラス
4を更に閉方向に作動させるようにチルト閉スイッチS
W5が所定時間若しくは所定回数以上操作されると、制
御部13は、カウント値を「0」に設定する。そして、
制御部13は、原点位置設定済みフラグをセットし、原
点位置設定(初期設定)を終了するようになっている。
In step S21, the control unit 13
When the roof glass 4 is placed at the mechanical limit position on the fully closed side by the slide closing operation or the tilt closing operation in the inching operation (origin position setting state operation) mode, and the lock state of the drive motor 5 is detected, driving is performed in step S22. Stop processing for stopping the motor 5 is performed. And step S
In 23, as described above, in the state where the roof glass 4 is arranged at the mechanical limit position on the fully closed side, the tilt close switch S is operated to further operate the roof glass 4 in the closing direction.
When W5 is operated for a predetermined time or a predetermined number of times or more, the control unit 13 sets the count value to "0". And
The control unit 13 sets the origin position setting completion flag and ends the origin position setting (initial setting).

【0061】このように本実施形態では、駆動電源+B
が所定電圧値以下となるような電圧変動があっても、実
際のルーフガラス4の開閉位置とその開閉位置を検出す
るためのカウント値とのズレを確実に防止する構成とな
っている。
As described above, in this embodiment, the driving power source + B
Even if there is a voltage variation such that the voltage is less than or equal to a predetermined voltage value, the deviation between the actual opening / closing position of the roof glass 4 and the count value for detecting the opening / closing position is reliably prevented.

【0062】上記したように、本実施形態のサンルーフ
装置は、以下のような特徴がある。 (1)本実施形態では、ルーフガラス4の開閉位置を検
出するためのカウント値が変化する度にRAM13aに
記憶され、駆動ユニット10に供給される駆動電源+B
が所定電圧値以下となり再び(所定電圧に)復帰した場
合に、カウント値が正常にRAM13aに記憶されてい
るか否かを判定するように構成されている。そして、制
御部13は、その判定にてカウント値が正常に記憶され
ていると判定しても、駆動電源+Bが所定電圧値以下と
なる直前にルーフガラス4を開閉作動させる駆動モータ
5が作動中であった場合、該ルーフガラス4とカウント
値との間にズレが生じた可能性があると判定する。そし
て、制御部13は、その判定の後にルーフガラス4が所
定位置(全閉側の機械的限界位置)に配置されると、カ
ウント値を所定カウント値(「0」)に設定する原点位
置の再設定を行う。
As described above, the sunroof device of this embodiment has the following features. (1) In the present embodiment, the driving power source + B stored in the RAM 13a and supplied to the driving unit 10 each time the count value for detecting the open / close position of the roof glass 4 changes.
Is determined to be equal to or less than the predetermined voltage value and returned (to the predetermined voltage) again, it is configured to determine whether the count value is normally stored in the RAM 13a. Then, even if it is determined that the count value is normally stored, the control unit 13 operates the drive motor 5 that opens and closes the roof glass 4 immediately before the drive power source + B becomes equal to or less than the predetermined voltage value. If it is in the middle, it is determined that there may be a deviation between the roof glass 4 and the count value. Then, when the roof glass 4 is placed at the predetermined position (the mechanical limit position on the fully closed side) after the determination, the control unit 13 sets the origin position for setting the count value to the predetermined count value (“0”). Reset the settings.

【0063】つまり、駆動電源+Bが所定電圧値以下に
なった際に、カウント動作が正常に行えなかったり、R
AM13aにカウント値を書き込むことができない場合
等があるため、その時に駆動モータ5が作動中である
と、ルーフガラス4が移動しているにもかかわらずRA
M13a内のカウント値が変化しない。そのため、ルー
フガラス4の開閉位置とカウント値との間にズレが発生
する場合がある。従って、このような場合を想定してル
ーフガラス4の原点位置の再設定を行うようにしたの
で、ルーフガラス4の開閉位置とカウント値とのズレを
防止することができる。
That is, when the driving power supply + B becomes equal to or lower than the predetermined voltage value, the counting operation cannot be performed normally, or R
In some cases, the count value cannot be written to the AM 13a, so if the drive motor 5 is operating at that time, the RA 4 will move even though the roof glass 4 is moving.
The count value in M13a does not change. Therefore, a shift may occur between the open / close position of the roof glass 4 and the count value. Therefore, since the origin position of the roof glass 4 is reset on the assumption of such a case, the deviation between the open / close position of the roof glass 4 and the count value can be prevented.

【0064】(2)本実施形態では、制御部13は、ル
ーフガラス4とカウント値との間にズレが生じた可能性
があると判定した直後に該ルーフガラス4が所定位置
(全閉側の機械的限界位置)に配置されると、カウント
値を所定カウント値(「0」)に設定する原点位置の再
設定を行う。つまり、そのズレが生じた可能性があると
判定した直後に原点位置の再設定を行うので、早期にそ
のズレを防止することができる。
(2) In the present embodiment, the control section 13 determines that the roof glass 4 and the count value may deviate from each other immediately after the roof glass 4 is in the predetermined position (the fully closed side). Mechanical limit position), the origin position for resetting the count value to a predetermined count value (“0”) is reset. That is, the origin position is reset immediately after it is determined that the deviation may have occurred, so that the deviation can be prevented early.

【0065】(3)本実施形態では、原点位置の再設定
は、ルーフガラス4が全閉側の機械的限界位置に配置し
た状態で、カウント値が所定カウント値(「0」)に設
定されることで行われる。従って、原点位置の再設定を
容易に行うことができる。
(3) In the present embodiment, the resetting of the origin position is performed by setting the count value to the predetermined count value ("0") with the roof glass 4 arranged at the mechanical limit position on the fully closed side. It is done by Therefore, it is possible to easily reset the origin position.

【0066】(4)本実施形態では、駆動モータ5はリ
レー17a,17bを介して駆動電源+Bが供給される
ものであり、制御部13は、そのリレー17a,17b
のオンオフ状態で駆動モータ5の作動状態を検出する。
従って、モータの作動状態を容易に検出することができ
る。
(4) In this embodiment, the drive motor 5 is supplied with the drive power source + B via the relays 17a and 17b, and the control unit 13 has the relays 17a and 17b.
The operating state of the drive motor 5 is detected in the ON / OFF state of.
Therefore, the operating state of the motor can be easily detected.

【0067】(5)本実施形態では、RAM13a内
に、カウント値をそのまま記憶した「正規値」と、その
「正規値」の論理を全ビット反転した「ミラー値」とが
記憶され、制御部13は、RAMチェックの際にその
「正規値」と「ミラー値」とを加算することでカウント
値が正常に記憶されているか否かを判定している。従っ
て、正常時には加算結果が全ビット「1」となるので、
その判定を容易に行うことができる。
(5) In the present embodiment, the RAM 13a stores the "normal value" in which the count value is stored as it is and the "mirror value" obtained by inverting all the bits of the logic of the "normal value". Reference numeral 13 determines whether or not the count value is normally stored by adding the "normal value" and the "mirror value" during the RAM check. Therefore, in normal operation, the addition result is all bits "1".
The determination can be easily performed.

【0068】(6)本実施形態では、EEPROM20
が備えられ、そのEEPROM20には、RAM13a
に記憶したカウント値が所定のタイミングで記憶され
る。従って、RAMチェックNGとなっても駆動モータ
5が作動していない場合には、EEPROM20に記憶
されたカウント値をそのままRAM13aに書き込むだ
けで、容易に通常作動可能な状態に復帰することができ
る。
(6) In this embodiment, the EEPROM 20
The EEPROM 20 has a RAM 13a.
The count value stored in is stored at a predetermined timing. Therefore, if the drive motor 5 is not operating even if the RAM check fails, the count value stored in the EEPROM 20 can be simply written in the RAM 13a as it is to easily restore the normal operation state.

【0069】(第2実施形態)以下、本発明を自動車に
装備したパワーウインド装置に具体化した第2実施形態
を図面に従って説明する。尚、前記第1実施形態と同様
の構成については同一の符号を付してその説明を省略す
る。
(Second Embodiment) A second embodiment in which the present invention is embodied in a power window device equipped in an automobile will be described below with reference to the drawings. The same components as those in the first embodiment are designated by the same reference numerals and the description thereof will be omitted.

【0070】図9は、パワーウインド装置を装備した自
動車の要部斜視図であって、自動車21の側面にはドア
22が設けられている。このドア22には窓23が設け
られており、該窓23は、ドア22に設けられている開
閉部材としてのウインドガラス24によって開閉される
ようになっている。ウインドガラス24は、上下方向に
往復移動(開閉作動)可能に設けられている。そして、
ウインドガラス24は、同図9に破線で示す駆動モータ
25の駆動に基づいて図示しない駆動伝達機構を介して
開閉作動が行われる。この駆動モータ25は、該モータ
25を駆動制御する後述の制御装置31とともに駆動ユ
ニット30を構成している。駆動ユニット30は、ドア
22の内部に配設されている。
FIG. 9 is a perspective view of an essential part of an automobile equipped with a power window device. A door 22 is provided on the side surface of the automobile 21. The door 22 is provided with a window 23, and the window 23 is opened and closed by a window glass 24 as an opening / closing member provided on the door 22. The window glass 24 is provided so as to be able to reciprocate (open and close) in the vertical direction. And
The window glass 24 is opened and closed via a drive transmission mechanism (not shown) based on the drive of the drive motor 25 shown by the broken line in FIG. The drive motor 25 constitutes a drive unit 30 together with a control device 31 which will be described later and controls the drive of the motor 25. The drive unit 30 is arranged inside the door 22.

【0071】図8は、駆動モータ25を駆動制御するパ
ワーウインド装置の電気的構成を説明するための電気ブ
ロック回路を示す。駆動モータ25を駆動制御する制御
装置31は、前記第1実施形態の制御装置11と同様に
構成されている。
FIG. 8 shows an electric block circuit for explaining the electric configuration of the power window device for driving and controlling the drive motor 25. The control device 31 that drives and controls the drive motor 25 has the same configuration as the control device 11 of the first embodiment.

【0072】即ち、この制御装置31には、前記ウイン
ドガラス24を開閉させるべく操作される各種スイッチ
SW6〜SW8、即ちアップスイッチ(閉スイッチ)S
W6、ダウンスイッチ(開スイッチ)SW7及びオート
スイッチSW8がそれぞれ接続される。各種スイッチS
W6〜SW8は、それぞれ操作されると、指令信号(L
レベル(接地レベル)のオン信号)を入力回路14を介
して制御部13に出力する。
That is, the control device 31 includes various switches SW6 to SW8 operated to open and close the window glass 24, that is, an up switch (close switch) S.
W6, a down switch (open switch) SW7, and an auto switch SW8 are connected to each other. Various switches S
When each of W6 to SW8 is operated, a command signal (L
A level (ground level) ON signal is output to the control unit 13 via the input circuit 14.

【0073】制御部13は、アップスイッチSW6が操
作されると、その操作が継続される間、駆動回路17を
介して駆動モータ25を駆動し、ウインドガラス24を
上昇(閉作動)させる。又、ダウンスイッチSW7が操
作されると、制御部13は、その操作が継続される間、
駆動回路17を介して駆動モータ25を駆動し、ウイン
ドガラス24を下降(開作動)させる。又、オートスイ
ッチSW8が操作されると前記スイッチSW6,SW7
のいずれかも操作されるようになっており、制御部13
は、駆動回路17を介して駆動モータ25を駆動し、ウ
インドガラス24を全閉位置又は全開位置まで一気に閉
作動又は開作動(オート開閉作動)させる。
When the up switch SW6 is operated, the control section 13 drives the drive motor 25 via the drive circuit 17 and raises (closes) the window glass 24 while the operation is continued. Further, when the down switch SW7 is operated, the control unit 13
The drive motor 25 is driven via the drive circuit 17 to lower (open) the window glass 24. When the auto switch SW8 is operated, the switches SW6 and SW7 are operated.
Any of the above can be operated, and the control unit 13
Drives the drive motor 25 via the drive circuit 17 to close or open the window glass 24 at once to the fully closed position or the fully opened position (automatic opening / closing operation).

【0074】又、制御部13は、前記第1実施形態と同
様に、各ホール素子磁気センサ18a,18bから検出
回路19を介して入力される出力信号(パルス信号)に
基づいてカウント動作を行い、そのカウント値に応じて
ウインドガラス24の開閉位置を検出する。尚、ウイン
ドガラス24とカウント値との相対関係を決定する原点
位置設定(初期設定)は、例えば、車両出荷時や使用途
中で完全に通常動作不能になった時などに行われる。こ
の原点位置設定は、ウインドガラス24を全閉側の機械
的限界位置に配置した状態で、該ウインドガラス24を
更に閉方向に作動させるようにアップスイッチSW6を
所定時間若しくは所定回数以上操作する等してカウント
値を「0」に設定することにより行われる。この場合、
制御部13内の原点位置設定済みフラグがセットされ
る。
Further, the control unit 13 performs the counting operation based on the output signals (pulse signals) input from the Hall element magnetic sensors 18a and 18b through the detection circuit 19 as in the first embodiment. The open / close position of the window glass 24 is detected according to the count value. The origin position setting (initial setting) that determines the relative relationship between the window glass 24 and the count value is performed, for example, when the vehicle is shipped or when the normal operation is completely disabled during use. The origin position is set by operating the up switch SW6 for a predetermined time or a predetermined number of times or more so as to further operate the window glass 24 in the closing direction in a state where the window glass 24 is arranged at the mechanical limit position on the fully closed side. Then, the count value is set to "0". in this case,
The origin position setting completion flag in the control unit 13 is set.

【0075】又、制御部13は、各出力信号(パルス信
号)の位相差に応じて駆動モータ25の回転方向を検出
し、ウインドガラス24の開閉方向を検出している。
又、制御部13は、前記ウインドガラス24がオート閉
作動を行っている間、駆動モータ25の回転速度に基づ
いて挟み込み判定を行っている。
Further, the control unit 13 detects the rotating direction of the drive motor 25 according to the phase difference between the output signals (pulse signals), and detects the opening / closing direction of the window glass 24.
Further, the control unit 13 makes a pinch determination based on the rotation speed of the drive motor 25 while the window glass 24 is performing the automatic closing operation.

【0076】更に、本実施形態では、制御部13は、R
AM13aにウインドガラス24の開閉位置を検出する
ためのカウント値を記憶するとともに、前記第1実施形
態と同様に、図3〜図6に示すようなRAMチェックに
関する処理を行っている。つまり、本実施形態において
も前記第1実施形態と同様に、駆動電源+Bが所定電圧
値以下となるような電圧変動があっても、実際のウイン
ドガラス24の開閉位置とその開閉位置を検出するため
のカウント値とのズレを確実に防止する構成となってい
る。
Further, in this embodiment, the control unit 13 controls the R
A count value for detecting the opening / closing position of the window glass 24 is stored in the AM 13a, and the RAM check processing as shown in FIGS. 3 to 6 is performed as in the first embodiment. That is, also in the present embodiment, as in the first embodiment, the actual open / close position of the window glass 24 and its open / close position are detected even if there is a voltage fluctuation such that the drive power source + B becomes equal to or lower than a predetermined voltage value. Therefore, the deviation from the count value is surely prevented.

【0077】尚、本発明の実施形態は、以下のように変
更してもよい。 ○上記実施形態では、制御部13は、図3に示す処理フ
ローに従って処理を行っているが、この処理フローを適
宜変更してもよい。例えば、図3ではモータ5の作動状
態を判定する前にRAMチェックを行ったが、先にモー
タ5,25の作動状態を判定し、その後RAMチェック
を行うようにしてもよい。
The embodiment of the present invention may be modified as follows. In the above embodiment, the control unit 13 performs the process according to the process flow shown in FIG. 3, but the process flow may be changed as appropriate. For example, in FIG. 3, the RAM check is performed before determining the operating state of the motor 5, but the operating states of the motors 5 and 25 may be determined first, and then the RAM check may be performed.

【0078】○上記実施形態では、制御部13は、カウ
ント値の「正規値」と「ミラー値」とを加算することで
RAMチェックを行うようにしたが、チェック方法はこ
れに限定されるものではなく、適宜変更してもよい。
In the above embodiment, the control unit 13 performs the RAM check by adding the "normal value" and the "mirror value" of the count values, but the check method is not limited to this. Instead, it may be changed appropriately.

【0079】○上記実施形態では、RAM13a内にカ
ウント値の「正規値」と「ミラー値」を記憶していた
が、いずれか一方であってもよい。この場合、記憶する
形態に合わせてPAMチェックの方法を適宜変更して対
応する必要がある。又、RAM13aにカウント値以外
の情報を記憶してもよい。
In the above embodiment, the "normal value" and the "mirror value" of the count value are stored in the RAM 13a, but either one may be stored. In this case, it is necessary to appropriately change the PAM check method according to the stored form. Information other than the count value may be stored in the RAM 13a.

【0080】○上記実施形態では、EEPROM20を
備えていたが、特に必要なければ省略してもよい。 ○上記実施形態では、開閉部材(ルーフガラス4,ウイ
ンドガラス24)とカウント値との間にズレが生じた可
能性があると判定した(図3のステップS4)直後に該
開閉部材の原点位置の再設定を行うようにしたが、直後
でなくてもよく、例えば、所定回数開閉した後に原点位
置の再設定を行うようにしたり、その判定が所定回数繰
り返された場合に原点位置の再設定を行うようにしても
よい。
Although the EEPROM 20 is provided in the above embodiment, it may be omitted if not particularly required. In the above-described embodiment, the origin position of the opening / closing member is determined immediately after determining that there may be a deviation between the opening / closing member (roof glass 4, window glass 24) and the count value (step S4 in FIG. 3). However, it does not have to be immediately after that.For example, the origin position is reset after opening and closing a predetermined number of times, or the origin position is reset when the determination is repeated a predetermined number of times. May be performed.

【0081】○上記実施形態では、原点位置の再設定の
際、開閉部材(ルーフガラス4,ウインドガラス24)
が全閉側の機械的限界位置に配置した状態で、カウント
値を所定カウント値(「0」)に設定したが、開閉部材
の位置はこれに限定されるものではない。例えば、全開
側の機械的限界位置に配置した状態で、カウント値を所
定カウント値に設定してもよい。この場合、カウント値
を全開側の機械的限界位置に対応した数に設定してもよ
い。
In the above embodiment, the opening / closing member (roof glass 4, window glass 24) is used when resetting the origin position.
Although the count value is set to the predetermined count value (“0”) in the state in which it is arranged at the mechanical limit position on the fully closed side, the position of the opening / closing member is not limited to this. For example, the count value may be set to a predetermined count value in a state of being arranged at the mechanical limit position on the fully open side. In this case, the count value may be set to a number corresponding to the mechanical limit position on the fully open side.

【0082】○上記実施形態では、リレー17a,17
bのオンオフ状態で駆動モータ5,25の作動状態を検
出するようにしたが、これ以外の形態で駆動モータ5,
25の作動状態を検出するようにしてもよい。
In the above embodiment, the relays 17a, 17
Although the operating states of the drive motors 5 and 25 are detected in the on / off state of b, the drive motors 5 and 25 are detected in other forms.
The operating state of 25 may be detected.

【0083】○上記実施形態では、駆動モータ5,25
の回転速度が予め定めた挟み込み判定値より遅くなる
と、開閉部材(ルーフガラス4,ウインドガラス24)
により挟み込みが発生したと判定するようにしたが、挟
み込みの判定はこれに限定されるものではない。
In the above embodiment, the drive motors 5 and 25 are used.
When the rotation speed of the vehicle becomes slower than a predetermined entrapment determination value, the opening / closing member (roof glass 4, window glass 24)
Although it is determined that the entrapment has occurred, the determination of the entrapment is not limited to this.

【0084】○上記実施形態では、回転センサにホール
素子磁気センサ18a,18bを用いたが、磁界の変化
に伴って抵抗が変化する磁気抵抗素子を用いてもよい。
又、これらのような非接触型の磁気センサ以外、例えば
光学式の回転センサを用いてもよい。又、摺動接点を用
いた接触型の回転センサを用いてもよい。
In the above embodiment, the Hall element magnetic sensors 18a and 18b are used as the rotation sensor, but a magnetoresistive element whose resistance changes with a change in magnetic field may be used.
In addition to the non-contact type magnetic sensor as described above, for example, an optical rotation sensor may be used. Alternatively, a contact type rotation sensor using a sliding contact may be used.

【0085】○上記実施形態の制御装置11,31の回
路構成はこれに限定されるものではなく、適宜変更して
もよい。 ○上記実施形態では、駆動モータ5,25と、ホール素
子磁気センサ18a,18bや制御部13等を有する制
御装置11,31とを駆動ユニット10,30として一
体に構成したが、これに限定されるものではなく、例え
ば、制御装置11を別に設ける構成としてもよい。
The circuit configurations of the control devices 11 and 31 of the above embodiment are not limited to this, and may be changed as appropriate. In the above embodiment, the drive motors 5 and 25 and the control devices 11 and 31 having the Hall element magnetic sensors 18a and 18b and the control unit 13 are integrally configured as the drive units 10 and 30, but the present invention is not limited to this. For example, the control device 11 may be separately provided.

【0086】○上記実施形態では、図2のようにスライ
ド開閉作動とチルト開閉作動を行うのサンルーフ装置に
実施したが、これ以外の作動形態のスライド開閉作動と
チルト開閉作動を行うサンルーフ装置に実施してもよ
い。又、スライド開閉作動のみ、チルト開閉作動のみ行
うサンルーフ装置に実施してもよい。
In the above-described embodiment, the sunroof device for performing the slide opening / closing operation and the tilt opening / closing operation as shown in FIG. 2 is used, but it is applied to the sunroof device for performing the slide opening / closing operation and the tilt opening / closing operation of other operation modes. You may. Further, it may be implemented in a sunroof device which performs only a slide opening / closing operation and a tilt opening / closing operation.

【0087】○上記実施形態では、開閉部材をルーフガ
ラスとしたサンルーフ装置や開閉部材をウインドガラス
としたパワーウインド装置に実施したが、開閉部材をス
ライドドアとしたスライドドア装置等、自動車に装備す
るその他の装置に実施してもよい。又、車両以外の開閉
部材を開閉する装置に実施してもよい。
In the above-described embodiment, the sunroof device having the opening / closing member as the roof glass and the power window device having the opening / closing member as the window glass are used. It may be implemented in other devices. It may also be implemented in a device that opens and closes an opening and closing member other than the vehicle.

【0088】上記各実施形態から把握できる技術的思想
を以下に記載する。 (イ) 請求項1〜5のいずれか1項に記載の開閉部材
制御装置において、前記記憶装置は、前記カウント値を
そのまま記憶した正規値と、その正規値の論理を全ビッ
ト反転したミラー値とを記憶し、前記判定手段は、その
正規値とミラー値とを所定の論理演算を行うことでカウ
ント値が正常に記憶されているか否かを判定することを
特徴とする開閉部材制御装置。
The technical ideas that can be understood from the above-described embodiments will be described below. (A) In the opening / closing member control device according to any one of claims 1 to 5, the storage device stores a normal value in which the count value is stored as it is, and a mirror value obtained by inverting all the bits of the normal value. The opening / closing member control device is characterized in that the determination means determines whether or not the count value is normally stored by performing a predetermined logical operation on the normal value and the mirror value.

【0089】(ロ) 請求項1〜5,上記(イ)のいず
れか1項に記載の開閉部材制御装置において、前記記憶
装置に記憶したカウント値を所定のタイミングで記憶す
る電気的消去可能な不揮発性記憶装置を備えたことを特
徴とする開閉部材制御装置。
(B) In the opening / closing member control device according to any one of claims 1 to 5 and (a), the count value stored in the storage device is stored at a predetermined timing and is electrically erasable. An opening / closing member control device comprising a non-volatile storage device.

【0090】(ハ) 請求項6〜10のいずれか1項に
記載の開閉部材制御装置における開閉部材の位置ズレ防
止方法において、前記記憶装置には、前記カウント値を
そのまま記憶した正規値と、その正規値の論理を全ビッ
ト反転したミラー値とが記憶され、その正規値とミラー
値とを所定の論理演算を行うことでカウント値が正常に
記憶されているか否かを判定するようにしたことを特徴
とする開閉部材制御装置における開閉部材の位置ズレ防
止方法。
(C) In the method for preventing the positional deviation of the opening / closing member in the opening / closing member control device according to any one of claims 6 to 10, the storage device stores a normal value in which the count value is stored as it is, A mirror value obtained by inverting all the bits of the normal value is stored, and a predetermined logical operation is performed on the normal value and the mirror value to determine whether or not the count value is normally stored. A method for preventing positional deviation of an opening / closing member in an opening / closing member control device.

【0091】(ニ) 請求項6〜10,上記(ハ)のい
ずれか1項に記載の開閉部材制御装置における開閉部材
の位置ズレ防止方法において、前記制御装置には、電気
的消去可能な不揮発性記憶装置を備え、その不揮発記憶
装置に前記記憶装置に記憶したカウント値を所定のタイ
ミングで記憶するようにしたことを特徴とする開閉部材
制御装置における開閉部材の位置ズレ防止方法。
(D) In the opening / closing member position deviation preventing method in the opening / closing member control device according to any one of claims 6 to 10 and (c), the control device includes an electrically erasable nonvolatile memory. Method for preventing positional deviation of the opening / closing member in the opening / closing member control device, characterized in that the count value stored in the nonvolatile memory device is stored at a predetermined timing.

【0092】上記(イ),(ハ)に記載の発明によれ
ば、正規値とミラー値とを例えば、加算することで、カ
ウント値が正常に記憶されているか否かを容易に判定す
ることができる。
According to the inventions described in (a) and (c) above, it is possible to easily determine whether or not the count value is normally stored, for example, by adding the normal value and the mirror value. You can

【0093】上記(ロ),(ニ)に記載の発明によれ
ば、場合によっては、不揮発性記憶装置に記憶されたカ
ウント値をそのままメインの記憶装置に書き込むだけ
で、容易に通常作動可能な状態に復帰することができ
る。
According to the inventions described in (b) and (d) above, in some cases, the count value stored in the non-volatile memory device can be written to the main memory device as it is, and the normal operation can be easily performed. Can return to the state.

【0094】[0094]

【発明の効果】以上詳述したように、本発明によれば、
駆動モータの回転に基づいてカウント動作し、そのカウ
ント値に基づいて開閉部材の開閉位置を検出するように
構成された開閉部材制御装置であって、その駆動モータ
の作動中に電源電圧が変動し、その電圧変動により生じ
る開閉部材の開閉位置とカウント値とのズレを防止する
ことができる開閉部材制御装置及びその開閉部材制御装
置における開閉部材の位置ズレ防止方法を提供すること
ができる。
As described in detail above, according to the present invention,
An opening / closing member control device configured to perform a counting operation based on the rotation of a drive motor and detect the opening / closing position of the opening / closing member based on the count value, wherein the power supply voltage fluctuates during the operation of the driving motor. It is possible to provide an opening / closing member control device that can prevent the opening / closing position of the opening / closing member from deviating from the count value due to the voltage fluctuation, and a method for preventing positional deviation of the opening / closing member in the opening / closing member control device.

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

【図1】 第1実施形態におけるサンルーフ装置の電気
的構成図である。
FIG. 1 is an electrical configuration diagram of a sunroof device according to a first embodiment.

【図2】 ルーフガラスの開閉作動を説明するための説
明図である。
FIG. 2 is an explanatory diagram for explaining an opening / closing operation of a roof glass.

【図3】 RAMチェックに関する処理を説明するため
のフロー図である。
FIG. 3 is a flowchart illustrating a process related to a RAM check.

【図4】 モータ出力制御に関する処理を説明するため
のフロー図である。
FIG. 4 is a flowchart illustrating a process related to motor output control.

【図5】 原点位置の再設定を説明するためのフロー図
である。
FIG. 5 is a flowchart for explaining resetting of the origin position.

【図6】 原点位置設定(初期設定)を説明するための
フロー図である。
FIG. 6 is a flowchart for explaining origin position setting (initial setting).

【図7】 サンルーフ装置を装備した自動車の要部斜視
図である。
FIG. 7 is a perspective view of a main part of an automobile equipped with a sunroof device.

【図8】 第2実施形態におけるパワーウインド装置の
電気的構成図である。
FIG. 8 is an electrical configuration diagram of a power window device according to a second embodiment.

【図9】 パワーウインド装置を装備した自動車の要部
斜視図である。
FIG. 9 is a perspective view of a main part of an automobile equipped with a power window device.

【符号の説明】[Explanation of symbols]

4…開閉部材としてのルーフガラス、5…駆動モータ、
13…位置検出手段、開閉制御手段、判定手段、モータ
状態検出手段、位置ズレ判定手段、及び、位置ズレ防止
手段を構成する制御部、13a…記憶装置としてのRA
M、17a,17b…リレーとしての第1,第2リレ
ー、18a,18b…位置検出手段を構成するホール素
子磁気センサ、24…開閉部材としてのウインドガラ
ス、25…駆動モータ。
4 ... Roof glass as opening / closing member, 5 ... Drive motor,
13 ... Position detecting means, opening / closing control means, judging means, motor state detecting means, position deviation judging means, and controller for forming position deviation preventing means, 13a ... RA as storage device
M, 17a, 17b ... First and second relays as relays, 18a, 18b ... Hall element magnetic sensor constituting position detecting means, 24 ... Window glass as opening / closing member, 25 ... Drive motor.

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 2E052 AA09 BA02 CA06 EA11 EA15 GA10 GB12 GC01 GC02 GC05 GC06 GC10 GD01 KA15    ─────────────────────────────────────────────────── ─── Continued front page    F-term (reference) 2E052 AA09 BA02 CA06 EA11 EA15                       GA10 GB12 GC01 GC02 GC05                       GC06 GC10 GD01 KA15

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 開閉部材を開閉作動させる駆動モータ
と、 前記駆動モータの回転に基づいてカウント動作し、その
カウント値に基づいて開閉部材の開閉位置を検出する位
置検出手段と、 前記位置検出手段にて検出した前記開閉部材の開閉位置
に応じた開閉制御を行う開閉制御手段と、 前記カウント値を変化する度に記憶する記憶装置と、 供給される駆動電源が所定電圧値以下となり再び復帰し
た場合に、前記カウント値が正常に前記記憶装置に記憶
されているか否かを判定する判定手段と、を備えた開閉
部材制御装置であって、 前記駆動モータが作動中か否かを判定するモータ状態検
出手段と、 前記判定手段にて前記カウント値が正常に記憶されてい
ると判定されても、前記駆動電源が所定電圧値以下とな
る直前に前記モータ状態検出手段にて前記駆動モータが
作動中であったと検出された場合、前記開閉部材と前記
カウント値との間にズレが生じた可能性があると判定す
る位置ズレ判定手段とを備えたことを特徴とする開閉部
材制御装置。
1. A drive motor that opens and closes an opening / closing member, a position detecting unit that performs a counting operation based on rotation of the driving motor, and detects an open / closed position of the opening / closing member based on the count value, and the position detecting unit. The opening / closing control means for performing the opening / closing control according to the opening / closing position of the opening / closing member, the storage device that stores the count value each time it changes, and the driving power supplied to the device are returned to the predetermined voltage value or less and restored again. In this case, an opening / closing member control device comprising: a determination unit that determines whether or not the count value is normally stored in the storage device, and a motor that determines whether or not the drive motor is operating. Even when the state detection means and the determination means determine that the count value is normally stored, the motor state detection means immediately before the drive power source becomes equal to or lower than a predetermined voltage value. In the case where it is detected that the drive motor is operating, the position deviation determining means for determining that there is a possibility that a deviation has occurred between the opening / closing member and the count value is provided. Opening / closing member control device.
【請求項2】 開閉部材を開閉作動させる駆動モータ
と、 前記駆動モータの回転に基づいてカウント動作し、その
カウント値に基づいて開閉部材の開閉位置を検出する位
置検出手段と、 前記位置検出手段にて検出した前記開閉部材の開閉位置
に応じた開閉制御を行う開閉制御手段と、 前記カウント値を変化する度に記憶する記憶装置と、 供給される駆動電源が所定電圧値以下となり再び復帰し
た場合に、前記カウント値が正常に前記記憶装置に記憶
されているか否かを判定する判定手段と、を備えた開閉
部材制御装置であって、 前記駆動モータが作動中か否かを判定するモータ状態検
出手段と、 前記判定手段にて前記カウント値が正常に記憶されてい
ると判定されても、前記駆動電源が所定電圧値以下とな
る直前に前記モータ状態検出手段にて前記駆動モータが
作動中であったと検出された場合、前記開閉部材と前記
カウント値との間にズレが生じた可能性があると判定し
て、前記開閉部材を所定位置に配置した状態で前記カウ
ント値を所定カウント値に設定する原点位置の設定を行
い、そのズレを防止する位置ズレ防止手段とを備えたこ
とを特徴とする開閉部材制御装置。
2. A drive motor for opening and closing the opening / closing member, a position detecting means for performing a counting operation based on the rotation of the driving motor, and a position detecting means for detecting the opening / closing position of the opening / closing member based on the count value. The opening / closing control means for performing the opening / closing control according to the opening / closing position of the opening / closing member, the storage device that stores the count value each time it changes, and the driving power supplied to the device are returned to the predetermined voltage value or less and restored again. In this case, an opening / closing member control device comprising: a determination unit that determines whether or not the count value is normally stored in the storage device, and a motor that determines whether or not the drive motor is operating. Even when the state detection means and the determination means determine that the count value is normally stored, the motor state detection means immediately before the drive power source becomes equal to or lower than a predetermined voltage value. When it is detected that the drive motor is in operation, it is determined that there may be a deviation between the opening / closing member and the count value, and the opening / closing member is arranged at a predetermined position. 2. An opening / closing member control device, comprising: an origin position for setting the count value to a predetermined count value, and position deviation prevention means for preventing the deviation.
【請求項3】 請求項2に記載の開閉部材制御装置にお
いて、 前記位置ズレ防止手段は、前記開閉部材と前記カウント
値との間にズレが生じた可能性があると判定した直後に
該開閉部材が前記所定位置に配置されると、前記カウン
ト値を所定カウント値に設定する原点位置の設定を行う
ことを特徴とする開閉部材制御装置。
3. The opening / closing member control device according to claim 2, wherein the position deviation prevention unit opens or closes the opening / closing member immediately after it is determined that a deviation may occur between the opening / closing member and the count value. The opening / closing member control device, wherein when the member is arranged at the predetermined position, an origin position for setting the count value to the predetermined count value is set.
【請求項4】 請求項2又は3に記載の開閉部材制御装
置において、 前記位置ズレ防止手段は、前記開閉部材が全閉側の機械
的限界位置に配置されると、前記カウント値を所定カウ
ント値に設定する原点位置の設定を行うことを特徴とす
る開閉部材制御装置。
4. The opening / closing member control device according to claim 2, wherein the position deviation prevention unit counts the count value by a predetermined count when the opening / closing member is arranged at a mechanical limit position on the fully closed side. An opening / closing member control device characterized by setting an origin position to be set to a value.
【請求項5】 請求項1〜4のいずれか1項に記載の開
閉部材制御装置において、 前記駆動モータは、リレーを介して駆動電源が供給され
るものであり、 前記モータ状態検出手段は、そのリレーのオンオフ状態
で前記駆動モータの作動状態を検出することを特徴とす
る開閉部材制御装置。
5. The opening / closing member control device according to claim 1, wherein the drive power is supplied to the drive motor via a relay, and the motor state detection means includes: An opening / closing member control device, which detects an operating state of the drive motor based on an on / off state of the relay.
【請求項6】 開閉部材を開閉作動させる駆動モータの
回転に基づいてカウント動作し、そのカウント値に基づ
いて開閉部材の開閉位置を検出し、その開閉位置に応じ
た開閉制御を行うように構成するとともに、そのカウン
ト値を変化する度に記憶装置にて記憶し、供給される駆
動電源が所定電圧値以下となり再び復帰した場合に、カ
ウント値が正常に該記憶装置に記憶されているか否かを
判定するように構成した開閉部材制御装置における開閉
部材の位置ズレ防止方法であって、 前記判定にて前記カウント値が正常に記憶されていると
判定されても、前記駆動電源が所定電圧値以下となる直
前に前記駆動モータが作動中であった場合、前記開閉部
材と前記カウント値との間にズレが生じた可能性がある
と判定するようにしたことを特徴とする開閉部材制御装
置における開閉部材の位置ズレ防止方法。
6. A structure for performing a counting operation based on rotation of a drive motor for opening and closing the opening and closing member, detecting an opening and closing position of the opening and closing member based on the count value, and performing opening and closing control according to the opening and closing position. In addition, each time the count value changes, it is stored in the storage device, and if the supplied driving power supply becomes equal to or lower than a predetermined voltage value and returns again, whether the count value is normally stored in the storage device or not. A method for preventing the positional deviation of the opening / closing member in the opening / closing member control device configured to determine whether the count value is normally stored in the determination, and the drive power supply has a predetermined voltage value. When the drive motor is in operation immediately before the following condition, it is determined that there may be a deviation between the opening / closing member and the count value. The displacement prevention method of opening and closing member in the closing member control device.
【請求項7】 開閉部材を開閉作動させる駆動モータの
回転に基づいてカウント動作し、そのカウント値に基づ
いて開閉部材の開閉位置を検出し、その開閉位置に応じ
た開閉制御を行うように構成するとともに、そのカウン
ト値を変化する度に記憶装置にて記憶し、供給される駆
動電源が所定電圧値以下となり再び復帰した場合に、カ
ウント値が正常に該記憶装置に記憶されているか否かを
判定するように構成した開閉部材制御装置における開閉
部材の位置ズレ防止方法であって、 前記判定にて前記カウント値が正常に記憶されていると
判定されても、前記駆動電源が所定電圧値以下となる直
前に前記駆動モータが作動中であった場合、前記開閉部
材と前記カウント値との間にズレが生じた可能性がある
と判定して、前記開閉部材を所定位置に配置した状態で
前記カウント値を所定カウント値に設定する原点位置の
設定を行い、そのズレを防止するようにしたことを特徴
とする開閉部材制御装置における開閉部材の位置ズレ防
止方法。
7. A configuration in which a counting operation is performed based on rotation of a drive motor that opens and closes the opening / closing member, the opening / closing position of the opening / closing member is detected based on the count value, and opening / closing control is performed according to the opening / closing position. In addition, each time the count value changes, it is stored in the storage device, and if the supplied driving power supply becomes equal to or lower than a predetermined voltage value and returns again, whether the count value is normally stored in the storage device or not. A method for preventing the positional deviation of the opening / closing member in the opening / closing member control device configured to determine whether the count value is normally stored in the determination, and the drive power supply has a predetermined voltage value. If the drive motor was in operation immediately before the condition below, it is determined that a deviation may have occurred between the opening / closing member and the count value, and the opening / closing member may be moved to a predetermined position. The count value in the arrangement state to set the home position to be set to a predetermined count value, the displacement prevention method of opening and closing member in the closing member control device being characterized in that so as to prevent its displacement.
【請求項8】 請求項7に記載の開閉部材制御装置にお
ける開閉部材の位置ズレ防止方法において、 前記開閉部材と前記カウント値との間にズレが生じた可
能性があると判定した直後に該開閉部材が前記所定位置
に配置されると、前記カウント値を所定カウント値に設
定する原点位置の設定を行うようにしたことを特徴とす
る開閉部材制御装置における開閉部材の位置ズレ防止方
法。
8. The method for preventing the positional deviation of the opening / closing member in the opening / closing member control device according to claim 7, immediately after it is determined that a deviation may occur between the opening / closing member and the count value. A method for preventing positional deviation of an opening / closing member in an opening / closing member control device, wherein when the opening / closing member is arranged at the predetermined position, the origin position for setting the count value to the predetermined count value is set.
【請求項9】 請求項7又は8に記載の開閉部材制御装
置における開閉部材の位置ズレ防止方法において、 前記開閉部材が全閉側の機械的限界位置に配置される
と、前記カウント値を所定カウント値に設定する原点位
置の設定を行うようにしたことを特徴とする開閉部材制
御装置における開閉部材の位置ズレ防止方法。
9. The method for preventing the positional deviation of the opening / closing member in the opening / closing member control device according to claim 7, wherein the count value is set to a predetermined value when the opening / closing member is arranged at a mechanical limit position on the fully closed side. A method for preventing positional deviation of an opening / closing member in an opening / closing member control device, characterized in that an origin position to be set to a count value is set.
【請求項10】 請求項6〜9のいずれか1項に記載の
開閉部材制御装置における開閉部材の位置ズレ防止方法
において、 前記駆動モータは、リレーを介して駆動電源が供給され
るものであり、そのリレーのオンオフ状態で前記駆動モ
ータの作動状態を検出するようにしたことを特徴とする
開閉部材制御装置における開閉部材の位置ズレ防止方
法。
10. The method for preventing displacement of the opening / closing member in the opening / closing member control device according to claim 6, wherein the drive motor is supplied with drive power via a relay. A method for preventing positional deviation of an opening / closing member in an opening / closing member control device, wherein the operating state of the drive motor is detected based on an on / off state of the relay.
JP2002375273A 2001-12-27 2002-12-25 Opening / closing member control device and method of preventing opening / closing member misalignment in opening / closing member control device Expired - Fee Related JP3839402B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002375273A JP3839402B2 (en) 2001-12-27 2002-12-25 Opening / closing member control device and method of preventing opening / closing member misalignment in opening / closing member control device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2001-397357 2001-12-27
JP2001397357 2001-12-27
JP2002375273A JP3839402B2 (en) 2001-12-27 2002-12-25 Opening / closing member control device and method of preventing opening / closing member misalignment in opening / closing member control device

Publications (2)

Publication Number Publication Date
JP2003253957A true JP2003253957A (en) 2003-09-10
JP3839402B2 JP3839402B2 (en) 2006-11-01

Family

ID=28677286

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002375273A Expired - Fee Related JP3839402B2 (en) 2001-12-27 2002-12-25 Opening / closing member control device and method of preventing opening / closing member misalignment in opening / closing member control device

Country Status (1)

Country Link
JP (1) JP3839402B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008231878A (en) * 2007-03-23 2008-10-02 Asmo Co Ltd Opening/closing member control device
JP2009510296A (en) * 2005-10-06 2009-03-12 ブローズ ファールツォイクタイレ ゲーエムベーハー ウント シーオー. カーゲー, コブルク Control device for adjusting device of automobile
KR101077124B1 (en) * 2004-01-05 2011-10-26 아스모 가부시키가이샤 Control apparatus for open/close member and method for controlling open/close member
JP7429174B2 (en) 2020-09-11 2024-02-07 ニデックモビリティ株式会社 motor module

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101077124B1 (en) * 2004-01-05 2011-10-26 아스모 가부시키가이샤 Control apparatus for open/close member and method for controlling open/close member
JP2009510296A (en) * 2005-10-06 2009-03-12 ブローズ ファールツォイクタイレ ゲーエムベーハー ウント シーオー. カーゲー, コブルク Control device for adjusting device of automobile
JP2008231878A (en) * 2007-03-23 2008-10-02 Asmo Co Ltd Opening/closing member control device
DE102008015518A1 (en) 2007-03-23 2008-10-16 Asmo Co., Ltd., Kosai Control device for an opening / closing element and method for controlling the opening / closing element
JP4490453B2 (en) * 2007-03-23 2010-06-23 アスモ株式会社 Opening / closing member control device
US8120293B2 (en) 2007-03-23 2012-02-21 Asmo Co., Ltd. Control apparatus for open/close member and method for controlling open/close member
JP7429174B2 (en) 2020-09-11 2024-02-07 ニデックモビリティ株式会社 motor module

Also Published As

Publication number Publication date
JP3839402B2 (en) 2006-11-01

Similar Documents

Publication Publication Date Title
JP4490453B2 (en) Opening / closing member control device
US20030225497A1 (en) Motor speed-based anti-pinch control apparatus and method with rough road condition detection and compensation
US6972536B2 (en) Closure member control device and method for limiting positional deviation of closure member
EP0898039B1 (en) Power window apparatus for a vehicle
JP3839402B2 (en) Opening / closing member control device and method of preventing opening / closing member misalignment in opening / closing member control device
KR101077124B1 (en) Control apparatus for open/close member and method for controlling open/close member
CN109209103B (en) Anti-pinch control method and controller for vehicle electric component
JP4732628B2 (en) Opening / closing member control device and opening / closing member origin position setting method in opening / closing member control device
CN111485789B (en) Opening/closing body control device and structure
JP2000054766A (en) Control device for opening and closing body
JPH08331877A (en) Safety device of motor-driven window opening/closing mechanism for vehicle
JP3283081B2 (en) Power window control device
KR100570806B1 (en) Control cirduit and method of shutter for automobile
JPH0235829B2 (en)
JP4153181B2 (en) Sunroof control device and sunroof control method
JP3889329B2 (en) Opening / closing member control apparatus and opening / closing member control method
JP4153180B2 (en) Sunroof control device and sunroof control method
JP4350878B2 (en) Mobile control device
JP3687286B2 (en) Window opening and closing control device
JP3824980B2 (en) Opening / closing member control apparatus and opening / closing member control method
JP2003003742A (en) Open-close member controller and method for controlling open-close member
JP3656182B2 (en) Automatic opening and closing device for vehicle sliding door
JP2002371750A (en) Opening and closing member control device, and origin position setting method of opening and closing member in opening and closing member control device
JP3133818B2 (en) Electric control device for vehicle door device
CN116357199A (en) Zero position initialization method for electric vehicle door

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050119

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060725

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060802

R150 Certificate of patent or registration of utility model

Ref document number: 3839402

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090811

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100811

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110811

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110811

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120811

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120811

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130811

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140811

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees