JPH0635254B2 - Sun roof controller - Google Patents

Sun roof controller

Info

Publication number
JPH0635254B2
JPH0635254B2 JP11341687A JP11341687A JPH0635254B2 JP H0635254 B2 JPH0635254 B2 JP H0635254B2 JP 11341687 A JP11341687 A JP 11341687A JP 11341687 A JP11341687 A JP 11341687A JP H0635254 B2 JPH0635254 B2 JP H0635254B2
Authority
JP
Japan
Prior art keywords
motor
count value
pulse
lid
opening
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP11341687A
Other languages
Japanese (ja)
Other versions
JPS63279928A (en
Inventor
雅晶 宮本
淳一 前川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsui Kinzoku ACT Corp
Original Assignee
Ohi Seisakusho 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 Ohi Seisakusho Co Ltd filed Critical Ohi Seisakusho Co Ltd
Priority to JP11341687A priority Critical patent/JPH0635254B2/en
Publication of JPS63279928A publication Critical patent/JPS63279928A/en
Publication of JPH0635254B2 publication Critical patent/JPH0635254B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、自動車のサンルーフ制御装置に関する。TECHNICAL FIELD The present invention relates to an automobile sunroof control device.

[従来技術] 近年、自動車のルーフに形成されたサンルーフ開口に開
閉体としてのリッドをスライド開閉自在に取り付け、操
作スイッチによりチルト開閉、スライド開閉を自動的に
行なうようにしたサンルーフ制御装置が広く使用される
ようになってきている。そして、このようなサンルーフ
制御装置では、開閉体の開閉位置の制御のためにモータ
出力の回転力伝達系にカム手段を設けると共に各カムに
よって作動されるリミットスイッチを設け、開閉体が所
定の開閉位置に到達すれば、リミットスイッチが作動し
てモータを停止するような構成としている。また、モー
タ制御をマイクロコンピュータを用いて行ない、エンコ
ーダ手段によりモータの回転をパルス信号として取り出
すことにより開閉体の開閉位置を検出し、開閉体が所定
の全開位置、全閉位置またはチルトアップ位置に停止す
るように構成したものも見られる。
[Prior Art] In recent years, a sunroof control device has been widely used, in which a lid as an opening / closing body is slidably opened / closed in a sunroof opening formed in a roof of an automobile, and tilting / closing / sliding is automatically performed by an operation switch. Is becoming popular. In such a sunroof control device, a cam means is provided in the rotational force transmission system of the motor output for controlling the opening / closing position of the opening / closing body, and a limit switch operated by each cam is provided so that the opening / closing body can be opened and closed in a predetermined manner. When the position is reached, the limit switch is activated to stop the motor. Further, the motor is controlled by using a microcomputer, and the opening / closing position of the opening / closing body is detected by extracting the rotation of the motor as a pulse signal by the encoder means, and the opening / closing body is moved to a predetermined fully open position, fully closed position or tilt-up position. Some are configured to stop.

[発明が解決しようとする問題点] しかしながら、これらの従来のサンルーフ制御装置で
は、車種によってサンルーフ開口の寸法形状が異なるた
めに開閉体のチルトアップ位置、全閉位置、全開位置が
異なってくるが、できるだけ車種毎の構成部材の変更を
少なくし、多くの共通部材を使用しようとする場合に問
題点があった。
[Problems to be Solved by the Invention] However, in these conventional sunroof control devices, since the size and shape of the sunroof opening are different depending on the vehicle type, the tilt-up position, the fully closed position, and the fully open position of the opening / closing body are different. However, there has been a problem when trying to use many common members by reducing the number of changes in the constituent members for each vehicle type as much as possible.

つまり、前者のカム機構を用いたものでは、カム形状を
変えたり減速比を変えたりして対応するが、複雑な形状
のカムを多数用意しておかなければならず、またカム組
み込み作業に手間がかかる問題点がある。そして後者の
場合には、開閉体のストロークが変わる毎に別種の高価
なマイクロコンピュータを備えなければならず、コスト
が極めて高くなる問題点があった。
In other words, the former cam mechanism can be used by changing the cam shape or the reduction ratio, but it is necessary to prepare a large number of cams with complicated shapes, and it is troublesome to install the cam. There is a problem that takes. In the latter case, a different type of expensive microcomputer must be provided every time the stroke of the opening / closing body changes, which causes a problem of extremely high cost.

この発明は、このような従来の問題点を解決するために
なされたものであって、操作スイッチの操作信号に対応
するパルスカウント値を出力するスイッチ対応カウント
値発生手段に対して、パルスカウント値設定手段を設
け、このパルスカウント値設定手段における対応パルス
カウント値の設定の変更操作によりサンルーフ開口の開
閉体ストロークの変更に対応するようにし、高価なマイ
クロコンピュータの内部構成はそのままにして車種毎の
ストローク変更に簡単に対応できるサンルーフ制御装置
を提供することを目的とする。
The present invention has been made to solve such a conventional problem, and a pulse count value generating means for outputting a pulse count value corresponding to an operation signal of an operation switch is provided with a pulse count value. Setting means is provided so that the opening / closing body stroke of the sunroof opening can be changed by changing the setting of the corresponding pulse count value in the pulse count value setting means, and the internal configuration of the expensive microcomputer remains unchanged for each vehicle type. An object of the present invention is to provide a sunroof control device that can easily respond to stroke changes.

[問題を解決するための手段] この発明のサンルーフ制御装置は、開閉体の開閉動作と
同期するパルスの発生手段と、このパルス発生手段から
のパルス信号のカウンタ手段と、前記開閉体をチルトア
ップ位置、全閉位置または全開位置に駆動するための操
作信号を入力するための操作スイッチと、この操作スイ
ッチの操作信号に応じて前記開閉体のチルトアップ位
置、全閉位置または全開位置に対応するパルスカウント
値を出力するスイッチ対応カウント値発生手段と、前記
パルスカウンタ手段からの検出パルスカウント値を前記
スイッチ対応カウント値発生手段の対応するパルスカウ
ント値と比較し、前記開閉体を所望の方向に所定距離移
動させるために必要な駆動信号を演算する比較演算手段
と、この比較演算手段からの出力によって前記モータを
駆動するモータ駆動手段と、前記スイッチ対応カウント
値発生手段に対して前記開閉体のチルトアップ位置、全
閉位置及び全開位置に対応するパルスカウント値を設定
するパルスカウント値設定手段とを備えたものである。
[Means for Solving the Problem] In the sunroof control device of the present invention, a pulse generating means for synchronizing with the opening / closing operation of the opening / closing body, a counter means for the pulse signal from the pulse generating means, and a tilt-up of the opening / closing body. An operation switch for inputting an operation signal for driving to a position, a fully closed position or a fully open position, and a tilt-up position, a fully closed position or a fully open position of the opening / closing body according to the operation signal of the operation switch. A switch corresponding count value generating means for outputting a pulse count value and a detected pulse count value from the pulse counter means are compared with a corresponding pulse count value of the switch corresponding count value generating means to move the opening / closing body in a desired direction. The comparison calculation means for calculating the drive signal necessary for moving the predetermined distance, and the output from this comparison calculation means The motor drive means for driving the motor and the pulse count value setting means for setting the pulse count values corresponding to the tilt-up position, the fully closed position and the fully open position of the opening / closing body with respect to the switch corresponding count value generating means. Be prepared.

[作用] この発明のサンルーフ制御装置では、操作スイッチの指
定する開閉位置と対応するパルスカウント値を出力する
スイッチ対応カウント値発生手段に対して、パルスカウ
ント値設定手段によって開閉体の各開閉位置と対応する
パルスカウント値を設定する。そして、比較演算手段で
は、開閉体駆動時の開閉位置をパルスカウン手段から得
て、スイッチ対応カウント値発生手段の入力するスイッ
チ対応カウント値とを比較し、モータ駆動方向を決定
し、また駆動量も決定してモータ制御手段に与え、開閉
体を所定の開閉位置に移動するように制御する。
[Operation] In the sunroof control device of the present invention, the switch-corresponding count value generating means for outputting the pulse count value corresponding to the opening / closing position designated by the operation switch is controlled by the pulse count value setting means to open / close each opening / closing position of the opening / closing body. Set the corresponding pulse count value. Then, in the comparison calculation means, the opening / closing position at the time of driving the opening / closing body is obtained from the pulse count means, and is compared with the switch corresponding count value input by the switch corresponding count value generating means to determine the motor drive direction and also the drive amount. It is determined and given to the motor control means to control the opening / closing body to move to a predetermined opening / closing position.

そして、車種によって開閉体の開閉ストロークに変更が
必要になった場合には、前記パルスカウント値設定手段
の設定する各スイッチ対応カウント値の数値を変更する
ことによって対応することができる。
When the opening / closing stroke of the opening / closing body needs to be changed depending on the vehicle type, it can be dealt with by changing the numerical value of the switch-corresponding count value set by the pulse count value setting means.

[実施例] 以下、この発明の実施例を図に基づいて詳説する。[Embodiment] An embodiment of the present invention will be described below in detail with reference to the drawings.

第3図は、自動車のサンルーフ部分を示し、第4図及び
第5図はサンルーフ制御装置の駆動構成を示している。
自動車のルーフ1にはサンルーフ開口2が形成されてお
り、ここに開閉体としてのリッド3がチルト開閉、スラ
イド開閉自在に取り付けられている。このリッド3は、
後述するようにモータ4に対して、断続手段としての摩
擦クラッチ5、回転力伝達手段としての伝達ギア列6及
び駆動ワイヤ7を介して連動連繋されている。
FIG. 3 shows a sunroof portion of an automobile, and FIGS. 4 and 5 show a drive structure of a sunroof control device.
A sunroof opening 2 is formed in a roof 1 of an automobile, and a lid 3 as an opening / closing body is attached to the sunroof opening 2 so as to be tiltable and slidable. This lid 3
As will be described later, the motor 4 is interlocked with and connected to the motor 4 via a friction clutch 5 as a connecting / disconnecting means, a transmission gear train 6 as a rotational force transmitting means, and a drive wire 7.

モータ4は、後述するモータ制御手段により正転、逆転
が可能で、自動車のルーフ1の内側で、かつモータ軸心
Xが車幅方向に沿って配置され、主動ギア10、駆動ギ
ア11、及び伝達ギア列6を内蔵するケース本体12の
フランジ13にボルト14によって固着されている。
The motor 4 is capable of normal rotation and reverse rotation by a motor control means described later, is arranged inside the roof 1 of the automobile, and the motor axis X is arranged along the vehicle width direction, and has a driving gear 10, a driving gear 11, and It is fixed to the flange 13 of the case body 12 containing the transmission gear train 6 by bolts 14.

モータ4の出力軸15には、ウォーム16が設けられて
おり、ウォーム16にはウォームホイールとなる主動ギ
ア10が前記軸心Xと直交して噛み合っている。
A worm 16 is provided on the output shaft 15 of the motor 4, and a driving gear 10 serving as a worm wheel meshes with the worm 16 at a right angle to the axis X.

主動ギア10は、主軸18に遊嵌され、主軸18は軸受
部材19を介してケース本体12に軸心方向Yに摺動自
在に両端支持されると共に、両軸端は外部に露出してい
る。
The main drive gear 10 is loosely fitted to the main shaft 18, and the main shaft 18 is slidably supported at both ends in the axial direction Y by the case body 12 via the bearing member 19, and both shaft ends are exposed to the outside. .

主動ギア10と相対して向かい合う駆動ギア11(回転
力伝達手段に含まれる)は、主軸18と一体に固着され
ている。そして、手動ギア10と駆動ギア11とは、摩
擦クラッチ5によって締結力が制御され、駆動ギア11
側に過負荷が作用した時に前記摩擦クラッチ5によって
スリップが発生し、モータ4に許容範囲を超える負荷が
掛からないようになっている。つまり、主動ギア10と
駆動ギア11との間には、ワッシャ20が介装され、ワ
ッシャ20は主動ギア10側に固着されており、主動ギ
ア10と駆動ギア11とは、前記ワッシャ20を挟んで
接合している。また、主動ギア10と前記主軸18のフ
ランジ部21との間には、ワッシャ22を挟んでリング
状のクラッチ部材23とクラッチばね24とが設けられ
ている。
A drive gear 11 (included in the rotational force transmission means) that faces the main drive gear 10 and is opposed to the main drive gear 10 is integrally fixed to the main shaft 18. The engagement force between the manual gear 10 and the drive gear 11 is controlled by the friction clutch 5, and the drive gear 11
When an overload is applied to the side, the friction clutch 5 causes a slip, and the motor 4 is prevented from being overloaded. That is, the washer 20 is interposed between the driving gear 10 and the driving gear 11, and the washer 20 is fixed to the driving gear 10 side, and the driving gear 10 and the driving gear 11 sandwich the washer 20. Are joined together. A ring-shaped clutch member 23 and a clutch spring 24 are provided between the main drive gear 10 and the flange portion 21 of the main shaft 18 with a washer 22 interposed therebetween.

駆動ギア11には、前記伝達ギア列6を構成する先頭の
第1ギア25が噛み合っている。第1ギア25は、ケー
ス本体12に両端支持された第1ギア軸26に遊嵌され
ると共に、第2ギア軸27に固着された第2ギア28と
噛み合っている。
The first gear 25 at the head of the transmission gear train 6 is meshed with the drive gear 11. The first gear 25 is loosely fitted to the first gear shaft 26 whose both ends are supported by the case main body 12, and meshes with the second gear 28 fixed to the second gear shaft 27.

第2ギア軸27は、軸受部材28を介してケース本体1
2に回転自在に両端支持され、一方の軸端は、ケース本
体12から外方に突出している。突出した第2ギア軸2
7の軸端部には、前記駆動ワイヤ7のギア部と噛み合う
第3ギア30が固着され、第3ギア30の正転、逆転に
よって駆動ワイヤ7が移動し、駆動ワイヤ7の移動によ
り前記リッド3の後端側が上昇するチルト開閉、及びス
ライド開閉が可能となる。
The second gear shaft 27 is mounted on the case body 1 via the bearing member 28.
Both ends are rotatably supported by 2, and one shaft end projects outward from the case body 12. Second gear shaft 2 protruding
A third gear 30 meshing with the gear portion of the drive wire 7 is fixed to the shaft end portion of the drive wire 7, and the drive wire 7 is moved by the normal rotation and reverse rotation of the third gear 30, and the lid is moved by the movement of the drive wire 7. It is possible to perform tilt opening / closing in which the rear end side of 3 rises and sliding opening / closing.

前記モータ4の出力軸15に主動ギア10と摩擦クラッ
チ5とを介して接続されている駆動ギア11には、パル
ス発生手段としてマグッネット31が取り付けられ、ケ
ース本体12の底部分におけるマグッネット31の回転
軌跡と対向する位置にパルス検出手段としてのホールI
C32が設けられている。したがって、駆動ギア11が
回転するとき、マグッネット31がホールIC32の位
置に来る1回転毎にホールIC32がパルスを検出し、
リード線を通じて後述するサンルーフ制御回路に回転検
出パルス信号を出力することができるのである。
The drive gear 11, which is connected to the output shaft 15 of the motor 4 via the driving gear 10 and the friction clutch 5, is provided with a magnetnet 31 as pulse generating means, and the magnetnet 31 rotates at the bottom of the case body 12. The hole I as a pulse detecting means is provided at a position facing the locus.
C32 is provided. Therefore, when the drive gear 11 rotates, the Hall IC 32 detects a pulse each time the magnetnet 31 comes to the position of the Hall IC 32,
The rotation detection pulse signal can be output to the sunroof control circuit described later through the lead wire.

第1図及び第2図は、この発明のサンルーフ制御装置の
一実施例の電気回路構成を示している。サンルーフ開口
2のリッド3の開閉駆動の制御は、ワンチップマイクロ
コンピュータで構成されるCPU33によって行われ
る。このCPU33に対して入力情報を与えるものとし
て、雨滴検出センサ34、イグニッションスイッチ3
5、キー有無検出スイッチ36、右ドアロック検出スイ
ッチ37、左ドアロック検出スイッチ38が備えられて
いる。また、リッド3の開閉操作スイッチとしてチルト
スイッチボタン39、クローズスイッチボタン40、中
間位置スイッチボタン41、オープンスイッチボタン4
2が設けられている。そして、これらの各スイッチやセ
ンサからの入力情報は、入力インタフェース43を介し
てCPU33に接続されている。さらに、ホールIC3
2も入力インタフェース44を介してこのCPU33に
接続されている。
1 and 2 show the electric circuit configuration of an embodiment of the sunroof control device of the present invention. Control of opening / closing drive of the lid 3 of the sunroof opening 2 is performed by the CPU 33 configured by a one-chip microcomputer. The raindrop detection sensor 34 and the ignition switch 3 are provided as input information to the CPU 33.
5, a key presence / absence detection switch 36, a right door lock detection switch 37, and a left door lock detection switch 38 are provided. Tilt switch button 39, close switch button 40, intermediate position switch button 41, and open switch button 4 are used as opening and closing operation switches for lid 3.
Two are provided. Input information from each of these switches and sensors is connected to the CPU 33 via the input interface 43. Furthermore, Hall IC3
2 is also connected to the CPU 33 via the input interface 44.

CPU33からの出力情報は、出力インタフェース4
5,46を介してチルト表示用LED47、全閉表示用
LED48、中間位置表示用LED49、全開表示用L
ED50、警報ブザー51に与えられる。また、CPU
33によりモータ4の正転、逆転、停止を制御するため
に、出力インタフェース52を介してモータ駆動回路5
3に制御信号が与えられる。
The output information from the CPU 33 is output interface 4
LED 47 for tilt display, LED 48 for fully closed display, LED 49 for intermediate position display, L for fully open display via 5, 46
It is given to the ED 50 and the alarm buzzer 51. Also, CPU
In order to control the forward rotation, the reverse rotation, and the stop of the motor 4 by the motor 33, the motor drive circuit 5 via the output interface 52.
A control signal is given to 3.

なお、CPU33に対して、定電圧電源回路54とクラ
ック発生回路55とが接続されている。
A constant voltage power supply circuit 54 and a crack generation circuit 55 are connected to the CPU 33.

前記モータ駆動回路53は、正転用リレー回路56と、
逆転用リレー回路57とを備え、出力インタフェース5
2からの信号によりこの正逆いずれのリレー回路56,
57を駆動するかにより、モータ4の正転、逆転を制御
する。また、この各リレー回路56,57のリレー接点
56−1,57−1はそれらのNC側がモータ4と閉回
路を構成するように接続されており、モータの停止時に
この閉回路によりモータ4にブレーキング効果が働き、
モータ停止位置を正確ならしめることができる。
The motor drive circuit 53 includes a forward rotation relay circuit 56,
The output interface 5 is provided with a reverse rotation relay circuit 57.
Depending on the signal from 2, the relay circuit 56 of either forward or reverse,
The forward rotation and the reverse rotation of the motor 4 are controlled depending on whether 57 is driven. Further, the relay contacts 56-1 and 57-1 of the respective relay circuits 56 and 57 are connected such that their NC sides form a closed circuit with the motor 4, and when the motor is stopped, the motor 4 is connected to the motor 4 by the closed circuit. The braking effect works,
The motor stop position can be accurately determined.

さらにモータ4と各リレー接点56−1,57−1との
間に過電流検出器としての電流検出抵抗58が挿入され
ており、この電流検出抵抗58によって立つ電圧信号を
入力インタフェース44を介してCPU33に入力し、
モータ4に対する過負荷検出を行なうようにしている。
Further, a current detection resistor 58 as an overcurrent detector is inserted between the motor 4 and each of the relay contacts 56-1 and 57-1, and a voltage signal raised by this current detection resistor 58 is passed through the input interface 44. Input to CPU33,
Overload detection for the motor 4 is performed.

CPU33の詳しい内部構成は、第2図に示すようなも
のである。このCPU33について説明すると、前記入
力インタフェース43を介して雨滴検出器情報59、イ
グニッションスイッチ情報60、キー検出器情報61、
ドア開閉検出器情報62、設定スイッチ情報63、操作
スイッチ情報64、同期パルス検出器情報65、過電流
検出器情報66が入力されるようになっている。
The detailed internal structure of the CPU 33 is as shown in FIG. Explaining the CPU 33, raindrop detector information 59, ignition switch information 60, key detector information 61, through the input interface 43,
Door opening / closing detector information 62, setting switch information 63, operation switch information 64, synchronous pulse detector information 65, and overcurrent detector information 66 are input.

雨滴検出器情報59は、雨滴検出センサ34からの雨滴
検出信号を与えるものである。
The raindrop detector information 59 gives a raindrop detection signal from the raindrop detection sensor 34.

イグニッションスイッチ情報60は、イグニッションス
イッチ36がオンとなっているかどうかを知らせる情報
である。
The ignition switch information 60 is information for informing whether or not the ignition switch 36 is turned on.

キー検出器情報61は、キー有無検出スイッチ36によ
りイグニッションキーが、キーシリンダから抜き取られ
ているかどうかを知らせる情報である。
The key detector information 61 is information indicating whether the ignition key is removed from the key cylinder by the key presence / absence detection switch 36.

ドア開閉検出器情報62は、左右のドアロック検出スイ
ッチ37,38によりドアが開閉されたかどうかを知ら
せる情報である。
The door open / close detector information 62 is information for informing whether or not the door is opened / closed by the left and right door lock detection switches 37, 38.

設定スイッチ情報63は、後述するようにパルスカウン
ト値とリッド開閉位置との対応関係を設定するスイッチ
情報である。
The setting switch information 63 is switch information for setting the correspondence between the pulse count value and the lid open / close position as described later.

操作スイッチ情報64は、チルト、クローズ、オープン
等の操作スイッチ39〜42の操作状態を知らせる情報
である。
The operation switch information 64 is information notifying the operation states of the operation switches 39 to 42 such as tilt, close, and open.

同期パルス検出器情報65は、ホールIC32からのパ
ルス信号を入力するものである。
The synchronous pulse detector information 65 is for inputting a pulse signal from the Hall IC 32.

さらに、過電流検出器情報66は、モータ4に過電流が
流れたことを検出する過電流検出器58の検出信号を入
力する。
Further, as the overcurrent detector information 66, the detection signal of the overcurrent detector 58 that detects that an overcurrent has flown into the motor 4 is input.

CPU33の内部には、比較演算部67を中心にして、
サンルーフ閉め忘れ防止回路を構成するタイマ部68と
閉め忘れ条件判定部69と全閉位置対応カウント値発生
部70とが設けられている。
Inside the CPU 33, centering on the comparison calculation unit 67,
There is provided a timer unit 68, a forgetting to close condition determining unit 69, and a fully closed position corresponding count value generating unit 70 which constitute a sunroof closing forgetting circuit.

また、使用車種毎に異なるリッド3の開閉位置の設定回
路としての数値設定部71と、操作スイッチ情報63の
入力信号に対応するパルスカウント値を指定するスイッ
チ対応カウント値発生部72が設けられている。
In addition, a numerical value setting unit 71 as a setting circuit of the opening / closing position of the lid 3 which is different for each type of vehicle used, and a switch corresponding count value generating unit 72 for specifying a pulse count value corresponding to an input signal of the operation switch information 63 are provided. There is.

さらに、リッド3の開閉位置の検出回路としてのパルス
カウンタ部73、チルトアップ状態でパルスカウント値
を0にリセットするためのリセット回路としてのリセッ
ト指示部74が設けられている。
Further, a pulse counter section 73 as a detection circuit of the open / closed position of the lid 3 and a reset instruction section 74 as a reset circuit for resetting the pulse count value to 0 in the tilt-up state are provided.

またさらに、リッド3が所定の停止位置を通り過ぎてか
ら停止した場合に、次回のリッド駆動時にリッド3の開
閉位置とパルスカウント値との対応関係に誤差が出ない
ようにパルスカウント値を補正する補正回路を構成する
ために、前回モータ作動方向記憶部75と、今回モータ
作動方向検知部76と、作動方向比較部77と、パルス
状態検知部78と、補正指示部79とが設けられてい
る。
Furthermore, when the lid 3 stops after passing a predetermined stop position, the pulse count value is corrected so that there is no error in the correspondence between the open / close position of the lid 3 and the pulse count value at the next lid drive. In order to configure the correction circuit, a previous motor operating direction storage unit 75, a current motor operating direction detecting unit 76, an operating direction comparing unit 77, a pulse state detecting unit 78, and a correction instruction unit 79 are provided. .

加えて、過負荷検出回路を構成するパルス周期監視部8
0と、過負荷検知部81と、比較演算変更指示部82と
が設けられている。
In addition, the pulse cycle monitoring unit 8 that constitutes the overload detection circuit
0, an overload detection unit 81, and a comparison calculation change instruction unit 82 are provided.

CPU33の出力部として、ブザー51の警報音制御部
83と、各LED47〜50の点灯、点滅、消灯を制御
する表示制御部84と、モータ4の駆動制御するモータ
制御部85とが設けられている。そして、このモータ制
御部85によってモータドライバ86を制御し、モータ
ドライバ86によりモータ4が駆動される。
As an output unit of the CPU 33, an alarm sound control unit 83 of the buzzer 51, a display control unit 84 that controls lighting, blinking, and turning off of the LEDs 47 to 50, and a motor control unit 85 that controls driving of the motor 4 are provided. There is. Then, the motor control unit 85 controls the motor driver 86, and the motor driver 86 drives the motor 4.

上記の構成のサンルーフ制御装置の動作について、次に
説明する。
The operation of the sunroof control device having the above configuration will be described below.

第3図〜第5図において、サンルーフ開口2に取り付け
られたリッド3は、モータ4の回転によりスライド開
閉、チルト開閉駆動される。
3 to 5, the lid 3 attached to the sunroof opening 2 is driven to slide and open / close and tilt / open / close by rotation of the motor 4.

チルト開閉は、リッド3の全閉位置において、操作スイ
ッチのTILTボタン39を押すことにより行なう。こ
のTILTボタン39を押すことにより、モータ4は全
閉位置からさらに逆転し、リッド3の後端が持ち上げら
れてチルトアップする。また逆に、チルトアップ状態に
おいて操作スイッチのCLOSEボタン40を押すなら
ば、リッド3はチルトダウンして、全閉状態になる。
Tilt opening / closing is performed by pressing the TILT button 39 of the operation switch at the fully closed position of the lid 3. By pushing the TILT button 39, the motor 4 is further reversed from the fully closed position, and the rear end of the lid 3 is lifted and tilted up. On the contrary, if the CLOSE button 40 of the operation switch is pressed in the tilt-up state, the lid 3 is tilted down and is in the fully closed state.

全閉状態からリッド3を開方向に開く場合には、操作ス
イッチのOPENボタン42を押すことによって行な
う。このOPENボタン42の操作により、モータ4が
正転してリッド3を後方向にスライドし、サンルーフ開
口2を開くのである。
To open the lid 3 in the opening direction from the fully closed state, the OPEN button 42 of the operation switch is pressed. The operation of the OPEN button 42 causes the motor 4 to rotate in the forward direction and slide the lid 3 backward, thereby opening the sunroof opening 2.

逆に全開状態からリッド3を閉じるには、操作スイッチ
のCLOSEボタン40を押し、モータ4を逆転させて
リッド3を前方にスライドさせる。この場合、リッド3
に人の首や手を挟み込まないように、リッド3が中間位
置まで来ると一旦停止し、一定時間経過後、ブザーが鳴
ってリッド3はさらに前方へスライドし、全閉位置まで
来て停止する。
Conversely, to close the lid 3 from the fully open state, the CLOSE button 40 of the operation switch is pressed, the motor 4 is rotated in the reverse direction, and the lid 3 is slid forward. In this case, lid 3
To prevent the person's neck or hand from being caught in, the lid 3 stops once when it reaches the intermediate position, and after a certain period of time, the buzzer sounds and the lid 3 slides further forward and stops until it reaches the fully closed position. .

なお、MIDボタン41を押すことによりリッド3は中
間位置まで移動して停止することになる。
By pressing the MID button 41, the lid 3 moves to the intermediate position and stops.

このリッド3の開閉動作時のモータ40の出力の伝達機
構について説明すると、モータ4の回転によって、出力
軸15のウォーム16が回転し、このウォーム16に噛
み合っている主動ギア10が回転する。そして、この主
動ギア10の回転により、摩擦クラッチ5を介して回転
力伝達手段側の駆動ギア11が回転し、この駆動ギア1
1の回転が伝達ギア列6を介して駆動ワイヤ7に伝達さ
れる。そこで、駆動ワイヤ7は、サンルーフ開口2の両
側を後方または前方に移動し、リッド3を開閉移動させ
るのである。モータ4が正転する時には駆動ワイヤ7は
後方へ移動してリッド3を開方向にスライドさせ、モー
タ4が逆転する時には駆動ワイヤ7は前方へ移動してリ
ッド3を閉方向にスライドさせる。
The output transmission mechanism of the motor 40 during the opening / closing operation of the lid 3 will be described. The rotation of the motor 4 causes the worm 16 of the output shaft 15 to rotate and the driving gear 10 meshing with the worm 16 to rotate. The drive gear 11 on the rotational force transmitting means side rotates via the friction clutch 5 by the rotation of the driving gear 10, and the drive gear 1
1 rotation is transmitted to the drive wire 7 via the transmission gear train 6. Therefore, the drive wire 7 moves backward or forward on both sides of the sunroof opening 2 to open / close the lid 3. When the motor 4 rotates in the forward direction, the drive wire 7 moves backward to slide the lid 3 in the opening direction, and when the motor 4 rotates in the reverse direction, the drive wire 7 moves forward to slide the lid 3 in the closing direction.

さらに、全閉状態からモータ4が逆転する時にはリッド
3がチルトアップし、このチルトアップ状態からモータ
4が正転する時にはリッド3が全閉状態までチルトダウ
ンする。
Further, when the motor 4 reversely rotates from the fully closed state, the lid 3 tilts up, and when the motor 4 normally rotates from the tilted up state, the lid 3 tilts down to the fully closed state.

このサンルーフ制御装置の電気回路の動作について、次
に説明する。
The operation of the electric circuit of this sunroof control device will be described below.

第6図は、操作スイッチパネル87のレイアウトを示し
ている。このパネル87には、TILTボタン39、C
LOSEボタン40、MIDボタン41、OPENボタ
ン42の4つのスイッチボタンが設けられている。そし
て、これらのボタン39〜42のいずれかを押すなら
ば、リッド3がどの開閉位置にあっても、その位置から
押されたボタンに対応する位置まで自動的に駆動され
る。
FIG. 6 shows the layout of the operation switch panel 87. This panel 87 has TILT buttons 39, C
Four switch buttons, a LOSE button 40, a MID button 41, and an OPEN button 42 are provided. When any one of these buttons 39 to 42 is pressed, the lid 3 is automatically driven from that position to a position corresponding to the pressed button, regardless of which open / close position the lid 3 is in.

第1図、第2図及び第6図を参照して、操作スイッチパ
ネル87のいずれかのボタン39〜42を押すことによ
って、押されたボタンに対応する操作スイッチ情報64
がスイッチ対応カウント値発生部72に入力され、スイ
ッチ対応カウント値発生部72では数値選定部71によ
って選定されている対応するパルスカウント値を発生
し、比較演算部67に与える。比較演算部67では、こ
のスイッチ対応パルスカウント値をパルスカウンタ部7
3から与えられるリッド3の現在位置のパルスカウント
値と比較し、両者の差によってモータ4の正逆回転方向
を決定し、後述するパルスカウント値補正回路からの補
正値をも加えてモータ制御部85に駆動指令を与える。
With reference to FIGS. 1, 2, and 6, by pressing any of the buttons 39 to 42 on the operation switch panel 87, the operation switch information 64 corresponding to the pressed button is displayed.
Is input to the switch-corresponding count value generating unit 72, and the switch-corresponding count value generating unit 72 generates the corresponding pulse count value selected by the numerical value selecting unit 71 and gives it to the comparison calculating unit 67. In the comparison calculation unit 67, the pulse count value corresponding to the switch is calculated by the pulse counter unit 7.
3 is compared with the pulse count value of the current position of the lid 3 given by the motor 3, the forward / reverse rotation direction of the motor 4 is determined by the difference between the two, and a correction value from a pulse count value correction circuit described later is also added to the motor control unit. A drive command is given to 85.

モータ4の駆動によりリッド3が移動すると、そのリッ
ド3の移動位置情報が同期パルス検出器情報65として
パルスカウンタ部73に入力され、比較演算部67がこ
のパルスカウンタ部73のカウント値をスイッチ対応パ
ルスカウント値と比較し、その差が0となるまでモータ
4を駆動する。そして、パルスカウント値の差が0にな
ったところでモータ4を停止させるのである。
When the lid 3 moves due to the driving of the motor 4, the movement position information of the lid 3 is input to the pulse counter section 73 as the synchronous pulse detector information 65, and the comparison calculation section 67 corresponds the count value of the pulse counter section 73 to the switch. The pulse count value is compared and the motor 4 is driven until the difference becomes zero. Then, when the difference between the pulse count values becomes 0, the motor 4 is stopped.

こうして、いずれか一つのスイッチボタン39〜42を
押すことにより、ワンタッチで自動的に指定された開閉
位置までリッドを駆動することができるのである。
Thus, by pressing any one of the switch buttons 39 to 42, the lid can be automatically driven to the designated open / close position with one touch.

なお、これらの各スイッチボタン39〜42の内側にL
EDランプ47〜50が設けられているのであって、そ
の点灯によって各ボタン39〜42が明るく照らし出さ
れるようになっている。各LEDランプ47〜50は、
表示制御部84によって点灯、点滅、消灯の制御がなさ
れる。
In addition, L is placed inside each of these switch buttons 39 to 42.
Since the ED lamps 47 to 50 are provided, the buttons 39 to 42 are brightly illuminated by the lighting thereof. Each LED lamp 47-50
The display control unit 84 controls lighting, blinking, and turning off.

この各LED47〜50の点灯動作について説明する
と、現在のリッド3の位置を表示するために該当するボ
タンのLEDランプが点灯し、押されたスイッチボタン
のLEDランプが点滅する。こうして、操作者には、今
までのリッド3の位置とこれから移動しようとしている
目的位置とがLEDランプの点灯、点滅表示によって明
示され、実際のリッド3を見なくても、操作スイッチパ
ネル87のランプ表示を見るだけで、サンルーフのリッ
ド3の動作状態を認識することがき、自動車運転の安全
性を向上させることができる。
Explaining the lighting operation of each of the LEDs 47 to 50, the LED lamp of the corresponding button for displaying the current position of the lid 3 is lit, and the LED lamp of the pressed switch button blinks. In this way, the position of the lid 3 up to now and the target position to be moved from now on are clearly indicated by the lighting and blinking display of the LED lamp, and the operation switch panel 87 of the operation switch panel 87 can be displayed without looking at the actual lid 3. Only by looking at the lamp display, the operation state of the lid 3 of the sunroof can be recognized, and the safety of driving the vehicle can be improved.

なお、この操作スイッチパネル87のレイアウトは、上
記の実施例に限定されることはなく、第7図(a)に示
したように3点ワンタッチボタン39,40,42、1
ストップボタン41aとすることもでき、この場合には
TILT、CLOSE、OPEN各ボタン39,40,
42を操作することによりワンタッチでチルトアップ、
全閉、全開動作ができると共に、ストップボタン41a
の操作によって任意の開位置で停止することもできる。
さらに同図(b)に示すように、3点ワンタッチボタン
39,40,42、1マニュアルスイッチボタン41b
とすることもできる。この場合には、チルトアップ、全
閉、全開動作がワンタッチで操作できると共に、マニュ
アルスイッチボタン41bの操作によって任意の位置ま
で手動操作することができる。またさらに、同図(c)
に示すように、操作部88と表示部89との分離型のス
イッチパネル87を構成することもできる。この場合に
は、操作部88にあるスイッチボタン39−1〜42−
1を押すことによってモータ4をワンタッチで駆動する
ことができ、リッド3の位置は表示部89の各発光部3
9−2〜42−2を発光させることによって表示するこ
とができる。
The layout of the operation switch panel 87 is not limited to the above-mentioned embodiment, but the three-point one-touch buttons 39, 40, 42, 1 as shown in FIG.
It may be a stop button 41a. In this case, TILT, CLOSE, OPEN buttons 39, 40,
Tilt up with one touch by operating 42,
Fully closed and fully open operation is possible, and stop button 41a
It is also possible to stop at any open position by the operation of.
Further, as shown in FIG. 3B, three-point one-touch buttons 39, 40, 42 and one manual switch button 41b.
Can also be In this case, the tilt-up, fully-closed, and fully-opened operations can be operated with one touch, and the manual switch button 41b can be operated to manually operate to any position. Furthermore, the figure (c)
As shown in FIG. 7, a separate switch panel 87 for the operation unit 88 and the display unit 89 may be configured. In this case, the switch buttons 39-1 to 42- on the operation unit 88
The motor 4 can be driven with one touch by pressing 1, and the position of the lid 3 is set to the respective light emitting portions 3 of the display unit 89.
It can be displayed by causing 9-2 to 42-2 to emit light.

このようにして操作スイッチ39〜42を操作すること
により、CPU33は次のように動作する。まず、第3
図〜第5図を参照して、モータ4が回転する時、摩擦ク
ラッチ5を介して主動ギア10から回転力を受けて駆動
ギア11が回転し、この駆動ギア11の回転によりマグ
ッネット31も回転する。したがって、マグッネット3
1は駆動ギア11の1回転毎にホールIC32に磁力を
与える。そこで、第1図に示すように、ホールIC32
がこの磁力を電気パルスに変換してCPU33に入力す
る。そして、CPU33では入力パルスをアップダウン
カウントし、第8図に示す対応関係に基づいてリッド3
の開閉位置を判定し、操作スイッチ39〜42によって
指定された位置までリッド3が達したかどうかを判断
し、所定のパルスカウント値に達したならばモータ4の
駆動を停止するのである。
By operating the operation switches 39 to 42 in this manner, the CPU 33 operates as follows. First, the third
Referring to FIG. 5 to FIG. 5, when the motor 4 rotates, the drive gear 11 rotates by receiving the rotational force from the driving gear 10 via the friction clutch 5, and the rotation of the drive gear 11 also rotates the magnetnet 31. To do. Therefore, Magnet 3
1 gives a magnetic force to the Hall IC 32 for each rotation of the drive gear 11. Therefore, as shown in FIG.
Converts this magnetic force into an electric pulse and inputs it to the CPU 33. Then, the CPU 33 counts up and down the number of input pulses, and based on the correspondence shown in FIG.
The open / close position is determined to determine whether the lid 3 has reached the position designated by the operation switches 39 to 42, and the drive of the motor 4 is stopped when the predetermined pulse count value is reached.

ここで、車種によってサンルーフの開口2の寸法が異な
るために、CPU33側に備えられている設定スイッチ
のオン、オフの組み合わせれにより、チルトアップ状態
を0とし、全閉状態のパルスカウント値Ai、中間位置
のパルスカウント値Bi、全開位置のパルスカウント値
Ciを車種に合わせて設定する。つまり、第2図及び第
9図のフローチャートを参照して、2個の設定スイッチ
SW1,SW2のオン、オフの組み合わせが設定スイッ
チ情報63として、数値選定部71に入力され、リッド
3の開閉各位置のパルスカウント値が設定されることに
なる。
Here, since the size of the opening 2 of the sunroof differs depending on the vehicle model, the tilt-up state is set to 0 and the pulse count value Ai in the fully closed state is set by turning on and off the setting switch provided on the CPU 33 side. The pulse count value Bi at the intermediate position and the pulse count value Ci at the fully open position are set according to the vehicle model. That is, referring to the flowcharts of FIGS. 2 and 9, a combination of ON and OFF of the two setting switches SW1 and SW2 is input to the numerical value selecting unit 71 as the setting switch information 63 to open and close the lid 3. The position pulse count value will be set.

次表は、設定スイッチSW1,SW2のオン、オフの組
み合わせによるパルスカウント値の設定例を示してい
る。
The following table shows an example of setting the pulse count value depending on the combination of ON and OFF of the setting switches SW1 and SW2.

表.設定スイッチの組み合わせ 設定 設定 チルト 全閉 中間 全開 SW SW アツプ 状態 状態 状態 1 2 状態 Ai Bi Ci オフ オフ 0 3 8 15 (ステップ101〜103) オフ オン 0 4 10 20 (ステップ101,102,104) オン オフ 0 5 12 25 (ステップ101,105,106) オン オン 0 8 16 30 (ステップ101,105,107) このようにして、CPU33側の内部構成はそのままに
し、設定スイッチSW1,SW2の組み合わせの変更に
よりリッド3の開閉各位置を設定する場合、複雑で高価
によりがちなCPU33を共通化することができ、車種
毎に個別のCPUを用いる必要がなくて、機器の汎用性
を高めることができ、コストが低廉化できる。
table. Combination of setting switches Setting Tilt Fully closed Intermediate full open SW SW Up state State State 1 2 state Ai Bi Ci Off Off 0 3 8 15 (steps 101-103) Off On 0 4 10 20 (steps 101, 102, 104) On Off 0 5 12 25 (Steps 101, 105, 106) On On 0 8 16 30 (Steps 101, 105, 107) In this way, the internal configuration of the CPU 33 side is left unchanged, and the combination of the setting switches SW1 and SW2 is changed. When setting the open / close positions of the lid 3, the CPU 33 that is complicated and tends to be expensive can be shared, and it is not necessary to use an individual CPU for each vehicle type, and the versatility of the device can be improved. Cost can be reduced.

なお、上記実施例では設定スイッチSW1,SW2の2
個のオン、オフの組み合わせによってスイッチ対応カウ
ント値の数値を変更するようにしているが、この設定ス
イッチの数は特に限定されることはなく、必要に応じて
任意に選べる。また、設定スイッチに変えて、CPU3
3に接続するプリント基板に種々の車種に対応したスイ
ッチ情報を入力できるものを用意しておき、CPU33
を搭載する車種に応じてプリント基板を選択して使用す
るようにしてもよい。したがって、CPU33の内部構
成はそのままで、外部の操作によって設定値が変更きる
ものであれば特に限定されることはないのである。
In the above embodiment, the setting switches SW1 and SW2
Although the numerical value of the switch-corresponding count value is changed depending on the combination of ON and OFF, the number of setting switches is not particularly limited and can be arbitrarily selected as needed. Also, instead of the setting switch, CPU3
A printed circuit board to be connected to the CPU 3 that can input switch information corresponding to various vehicle types is prepared.
You may make it select and use a printed circuit board according to the vehicle type which mounts. Therefore, there is no particular limitation as long as the set value can be changed by an external operation without changing the internal configuration of the CPU 33.

上記のように操作スイッチ39〜42によってリッド3
の駆動制御をするに先立って、新車などでサンルーフ制
御装置に初めてバッテリを接続するような場合、操作ス
イッチ39〜42の内TILTボタン39だけが有効で
あり、第2図及び第10図に示すようにTILTボタン
39を押すことによってモータ4を逆転させ、リッド3
をチルトアップさせる(ステップ201〜205)。そ
して、リッド3は完全にチルトアップしたときに機械的
に停止され、モータ4に過負荷が加わる。この結果、モ
ータ4に過電流が流れ、過電流検出器としての電流検出
抵抗58に高電圧が立ち、これが過電流検出器情報66
から過負荷検出信号としてリセット指示部74に入力さ
れる(ステップ206)。そこで、リセット指示部74
は、この過負荷検出信号を受けてパルスカウンタ部73
にリセット信号を与え、パルスカウント値を0にリセッ
トし、正確なパルスカウントができるように初期化する
(スリット207,208)。
As described above, the lid 3 is operated by the operation switches 39 to 42.
When the battery is connected to the sunroof control device for the first time in a new vehicle prior to the drive control of FIG. 3, only the TILT button 39 of the operation switches 39 to 42 is effective, as shown in FIG. 2 and FIG. Push the TILT button 39 like this to reverse the motor 4
Is tilted up (steps 201 to 205). When the lid 3 is completely tilted up, the lid 3 is mechanically stopped and the motor 4 is overloaded. As a result, an overcurrent flows through the motor 4, and a high voltage rises in the current detection resistor 58 as an overcurrent detector, which causes the overcurrent detector information 66.
Is input to the reset instruction section 74 as an overload detection signal (step 206). Therefore, the reset instruction unit 74
Receives this overload detection signal, the pulse counter unit 73
A reset signal is given to reset the pulse count value to 0 and initialize so that accurate pulse count can be performed (slits 207, 208).

このようにリセット回路を構成すると、特別にリセット
ボタンを設ける必要がなくなり、リセット装置が簡単に
なる。尚、このOリセット操作は、バッテリの交換時に
も実行される。
By configuring the reset circuit in this way, it is not necessary to provide a special reset button, and the reset device is simplified. The O reset operation is also executed when the battery is replaced.

また、操作スイッチ情報64からのTILT、CLOS
E、OPEN各ボタン39〜42の選択信号はスイッチ
対応カウント値発生部72に入力され、ここで前記数値
選定部71の対応する開閉各位置のパルスカウント値が
選択され、比較演算部67に入力され、モータ制御部8
5にモータ駆動指令を与え、モータドライバ86を駆動
してモータ4を正逆所定の方向に回転させる。
In addition, TILT and CLOS from the operation switch information 64
The selection signals of the E and OPEN buttons 39 to 42 are inputted to the switch-corresponding count value generating section 72, where the pulse count values at the corresponding open / close positions of the numerical value selecting section 71 are selected and inputted to the comparison calculating section 67. The motor control unit 8
A motor drive command is given to the motor 5, and the motor driver 86 is driven to rotate the motor 4 in the forward and reverse predetermined directions.

同期パルス検出器情報65はホールIC32からのパル
ス信号であって、パルスカウンタ部73に入力されてパ
ルスカウントされ、比較演算部67においてスイッチ対
応カウント値発生部72からの指定パルスカウント値と
比較され、リッド3が操作スイッチ39〜42により指
定された開閉位置まで達したかどうか判断し、所定のパ
ルスカウント値に達するまでモータ制御部85にモータ
駆動信号を与え続ける。そして、入力パルスカウント値
指定パルスカウント値に一致した時に、モータ停止指令
を出力する。
The synchronous pulse detector information 65 is a pulse signal from the Hall IC 32, is input to the pulse counter unit 73 and is pulse counted, and is compared with a designated pulse count value from the switch corresponding count value generation unit 72 in the comparison operation unit 67. , It is determined whether the lid 3 has reached the open / close position designated by the operation switches 39 to 42, and the motor drive signal is continuously given to the motor control unit 85 until the predetermined pulse count value is reached. Then, when the input pulse count value designated pulse count value is matched, a motor stop command is output.

ここで、第11図に示すように、パルス信号の各パルス
幅は、マイクロコンピュータの処理時間a,b、駆動リ
レー56,57の復帰時間c、モータ4の慣性質量によ
る移動時間dを加え合わせた時間Tの2倍分は必要であ
るが、場合によってはこのパルス幅内でリッド3が停止
せず、所定のカウント値の検出パルスを越えてしまって
から停止することが起こりうる。このような場合に、次
のリッド3の開閉操作を行う時に、移動方向によっては
正規の位置から1パルス分停止位置に誤差が生じてくる
ことになる。
Here, as shown in FIG. 11, each pulse width of the pulse signal is obtained by adding the processing times a and b of the microcomputer, the recovery time c of the drive relays 56 and 57, and the movement time d of the inertia mass of the motor 4. However, in some cases, the lid 3 may not stop within this pulse width, and may stop after the detection pulse having a predetermined count value is exceeded. In such a case, when the next opening / closing operation of the lid 3 is performed, an error may occur from the normal position to the stop position for one pulse depending on the moving direction.

そこで、パルスカウントの補正回路によってパルスカウ
ント値を自動滴に補正し、常に正規のパルスカウント値
においてリッド3が駆動されるようにする。第2図、第
12図及び第13図のフローチャートを参照して、い
ま、リッド3がチルトアップ側から全開方向に駆動する
モータ正転状態のときに、所定のカウント値「4」の検
出パルスを通り過ぎてから停止したとする。この時、比
較演算部67はパルスカウント値が増加する方向にあっ
たか減少する方向にあったかにより、モータ4の正逆回
転方向を前回モータ作動方向記憶部75に記憶させてお
く。
Therefore, the pulse count correction circuit corrects the pulse count value into an automatic droplet so that the lid 3 is always driven at the regular pulse count value. With reference to the flowcharts of FIGS. 2, 12, and 13, when the lid 3 is in the normal rotation state of the motor driven in the fully open direction from the tilt-up side, the detection pulse having the predetermined count value “4” is detected. Suppose you stopped after passing. At this time, the comparison calculation unit 67 stores the forward and reverse rotation directions of the motor 4 in the previous motor operating direction storage unit 75 depending on whether the pulse count value is in the increasing direction or the decreasing direction.

続いて、操作スイッチ情報64からリッド3の開閉信号
が入力されたとき、比較演算部67からの信号を受け
て、今回モータ作動方向検知部76がモータ4の正逆回
転方向を検知し、作動方向比較部77にモータ4の回転
方向を入力する(ステップ301)。
Subsequently, when the opening / closing signal of the lid 3 is input from the operation switch information 64, the current motor operation direction detection unit 76 receives the signal from the comparison calculation unit 67, detects the forward / reverse rotation direction of the motor 4, and operates. The rotation direction of the motor 4 is input to the direction comparison unit 77 (step 301).

作動方向比較部77では、前記前回モータ回転方向記憶
部75からの前回駆動時のモータ回転方向と、今回駆動
指令のあったモータ回転方向とが同一方向か逆方向かを
判断し、その情報を補正指示部79に与える。補正指示
部79は、ホールIC32からの同期パルス検出器情報
65を受けて、リッド停止時の入力がパルスの“H”位
置にあるか、“L”位置にあるかを判断するパルス状態
検知部78から“H”,“L”の識別信号を受けている
(ステップ302)。そこで、作動方向比較部77から
の回転方向識別信号と、このパルスの“H”,“L”識
別信号とを入力とし、第12図(a)に示すようにパル
スの“H”位置でリッド3が停止していれば、モータ4
の回転方向が正逆いずれであってもパルスカウントは通
常通りに行なう。しかしながら、同図(b)に示すよう
にリッド3がパルスの“L”位置で停止し、モータ4の
回転方向が前回とは逆の方向であれば、パルスカウント
値に−1の補正を加え、この補正指示を比較演算部67
に与える(ステップ303,304)。
The operation direction comparison unit 77 determines whether the motor rotation direction at the time of the previous drive from the previous motor rotation direction storage unit 75 and the motor rotation direction for which the current drive command has been issued are the same direction or the opposite direction, and the information is determined. It is given to the correction instruction unit 79. The correction instruction unit 79 receives the synchronous pulse detector information 65 from the Hall IC 32 and determines whether the input at the time of lid stop is at the “H” position or the “L” position of the pulse. The identification signals of "H" and "L" are received from 78 (step 302). Therefore, the rotation direction identification signal from the operation direction comparison unit 77 and the "H" and "L" identification signals of this pulse are input, and the lid is placed at the "H" position of the pulse as shown in FIG. 12 (a). If 3 is stopped, motor 4
The pulse counting is performed as usual regardless of whether the rotation direction of the is normal or reverse. However, if the lid 3 stops at the “L” position of the pulse and the rotation direction of the motor 4 is opposite to the previous direction as shown in FIG. 7B, the pulse count value is corrected by −1. , This correction instruction is sent to the comparison calculation unit 67.
(Steps 303 and 304).

このようにして、CPU33側にパルスカウント値の自
己補正機能を持たせることにより、パルス検出手段の検
出特性にばらつきがあっても、リッド3の開閉位置を正
確に制御することができるのである。
In this way, by providing the CPU 33 side with the self-correction function of the pulse count value, it is possible to accurately control the open / close position of the lid 3 even if the detection characteristics of the pulse detection means vary.

リッド3がスライド閉動作している時には人の手や頭を
サンルーフ開口2に挟み込むことがありうる。このよう
な場合には、リッド3の動作を速やかに停止、逆に開動
作させることにより挟まれた手や頭をただちに開放する
必要がある。このような安全動作は、次のようにして行
われる。
When the lid 3 is slidingly closed, a person's hand or head may be caught in the sunroof opening 2. In such a case, it is necessary to immediately stop the operation of the lid 3 and open the conversely to open the sandwiched hand or head immediately. Such safe operation is performed as follows.

リッド3が開状態からスライド閉動作している場合や、
チルトアップ状態から全閉状態にチルトダウンする場合
に、挟み込みの発生する恐れがある。この挟み込みの検
出は、モータ4が回転していながら、リッド3が停止し
て摩擦クラッチ5にスリップが発生することにより検出
できる。
When the lid 3 is sliding and closing from the open state,
When the tilt-up state is tilted down to the fully closed state, there is a risk of pinching. This trapping can be detected when the lid 3 is stopped and the friction clutch 5 slips while the motor 4 is rotating.

第1図、第2図及び第14図のフローチャートを参照し
て、リッド3が停止すれば、摩擦クラッチ5の下流側に
ある駆動ギア11が停止し、ホールIC32の検出する
パルスは“H”または“L”の状態が続き、パルス周期
が伸びることになる。また、モータ4の負荷は増大する
ために過電流が過電流検出抵抗58に流れ、高電圧が立
つことになる。そこで、パルス周期監視部80は同期パ
ルス検出器情報65からのパルス信号の周期を監視し、
所定の周期以上のパルスが入力されてきたときに周期異
常信号を出力する(ステップ401)。そして、過負荷
検知部81は、このパルス周期監視部80からの周期異
常検出信号がある時に、過電流検出器情報66から過電
流検出信号を得たならば、挟み込みが発生したものと判
断し、比較演算変更指示部88にリッド停止検出信号を
与える(ステップ402)。
Referring to the flowcharts of FIGS. 1, 2, and 14, when the lid 3 stops, the drive gear 11 on the downstream side of the friction clutch 5 stops, and the pulse detected by the Hall IC 32 is “H”. Alternatively, the state of “L” continues, and the pulse cycle extends. Further, since the load on the motor 4 increases, an overcurrent flows through the overcurrent detection resistor 58, and a high voltage is generated. Therefore, the pulse cycle monitoring unit 80 monitors the cycle of the pulse signal from the synchronous pulse detector information 65,
When a pulse having a predetermined period or more is input, a period abnormality signal is output (step 401). Then, when the overload detection unit 81 obtains the overcurrent detection signal from the overcurrent detector information 66 when there is the period abnormality detection signal from the pulse period monitoring unit 80, it is determined that entrapment has occurred. A lid stop detection signal is given to the comparison calculation change instruction section 88 (step 402).

比較演算変更指示部82では、今回モータ作動方向検知
部76からの信号がチルトダウン方向、またはスライド
閉方向にある場合、このモータ過負荷検出信号を得て比
較演算部67にモータ逆転指令信号を与える(ステップ
403,404)。そして、比較演算部67は、このモ
ータ逆転指令信号を受けて、モータ制御部85にモータ
逆転指令を出力し、それまでの回転方向と逆の方向にモ
ータ4を回転駆動させ、挟み込まれた手や頭を解放する
方向にリッド3を駆動する(ステップ405,406;
ステップ407,408)。
When the signal from the motor operation direction detection unit 76 this time is in the tilt-down direction or the slide closing direction, the comparison calculation change instruction unit 82 obtains this motor overload detection signal and sends the motor reverse rotation command signal to the comparison calculation unit 67. Give (steps 403, 404). Upon receiving this motor reverse rotation command signal, the comparison calculation unit 67 outputs a motor reverse rotation command to the motor control unit 85, drives the motor 4 to rotate in a direction opposite to the rotation direction up to then, and inserts the sandwiched hand. The lid 3 is driven in the direction to release the head and the head (steps 405 and 406;
Steps 407, 408).

このようにして、チルトダウン動作の時に挟み込みが発
生したならば再びチルトアップ動作させ、スライド閉動
作時に挟み込みが発生したならば逆にスライド開動作さ
せてモータ4を停止し(ステップ409)、乗員の安全
を図るるのである。
In this way, if the trapping occurs during the tilt-down operation, the tilt-up operation is performed again, and if the trapping occurs during the slide-closing operation, the slide opening operation is performed in reverse, and the motor 4 is stopped (step 409). To ensure the safety of.

リッド3は、スライド開動作時やチルトアップ動作時に
も何等かの原因で停止することがある。しかしながら、
この場合には、人の手や頭の挟み込みが起らないため、
リッド3を逆方向に強制的に駆動する必要はなく、その
場で停止させるだけでよい。この場合の動作は次のよう
になる。リッド3の停止により、同期パルス検出器情報
65からのパルスの周期は長くなり、パルス周期監視部
65はパルスの周期異常を検出する(ステップ40
1)。そして、リッド3の停止によりモータ4には過負
荷が掛かり、過負荷検知部81は過電流検出器情報66
から過負荷検出を行ない、比較演算変更指示部82にリ
ッド停止検出信号を与える(ステップ402)。
The lid 3 may be stopped for some reason even during the slide opening operation or the tilt up operation. However,
In this case, human hands and head are not pinched,
It is not necessary to forcibly drive the lid 3 in the reverse direction, and it is sufficient to stop it in place. The operation in this case is as follows. Since the lid 3 is stopped, the cycle of the pulse from the synchronous pulse detector information 65 becomes longer, and the pulse cycle monitoring unit 65 detects a pulse cycle abnormality (step 40).
1). Then, the motor 3 is overloaded due to the stop of the lid 3, and the overload detection unit 81 causes the overcurrent detector information 66.
To detect the overload and give a lid stop detection signal to the comparison calculation change instructing section 82 (step 402).

比較演算変更指示部82には、今回モータ作動方向検知
部76から今までのモータ4の回転方向信号が入力され
ており、このリッド停止検出信号を受けて比較演算部6
7に対してモータ停止信号を与える。比較演算部67
は、比較演算変更指示部82からのモータ停止信号を受
けてモータ制御部85にモータ停止指令信号を出力し、
モータ4を強制的に停止させる(ステップ403,40
4,409)。
The comparison operation change instruction unit 82 receives the current rotation direction signal of the motor 4 from the motor operation direction detection unit 76 this time, and receives the lid stop detection signal, and the comparison operation unit 6 receives the lid stop detection signal.
A motor stop signal is given to 7. Comparison calculation unit 67
Receives a motor stop signal from the comparison calculation change instructing section 82 and outputs a motor stop command signal to the motor control section 85,
Forcibly stop the motor 4 (steps 403, 40
4,409).

このようにして、リッド3が全閉状態からチルトアップ
方向に駆動されている時や、閉状態から全開方向にスラ
イド開動作している時に、何等かの原因によってモータ
4は回転しながらもリッド3だけが停止してしまった場
合には、モータ4を強制的に停止させることによってモ
ータ4の焼き切れその他による損傷を未然に防ぐのであ
る。
In this manner, when the lid 3 is driven in the tilt-up direction from the fully closed state or when the lid 3 is slidingly opened in the fully open direction from the closed state, the lid 4 is rotated while the lid 4 is rotated for some reason. When only 3 has stopped, the motor 4 is forcibly stopped to prevent damage to the motor 4 due to burnout or the like.

なお、この実施例の場合、チルトアップ動作の停止は、
パルスカウント値が0になったことを検出してモータを
停止させることにより行われる。これに対して、全開動
作の停止は、パルスカウント値の検出と共に、モータ4
の過負荷検出によって行われる。これは、モータ4の回
転によって主動ギア10、摩擦クラッチ5、駆動ギア1
1、伝達ギア列6を介して駆動ワイヤ7を駆動し、リッ
ド3を開動作させる場合には、駆動ワイヤ7が長手方向
に押される動作となり、駆動ワイヤ7に撓みが生じてパ
ルスカウント値とリッド移動位置との間にわずかな誤差
が生じ、パルスカウント値だけで制御したのでは、リッ
ド3の正確な位置制御ができなくなるからである。
In the case of this embodiment, the stop of the tilt-up operation is
This is performed by detecting that the pulse count value has become 0 and stopping the motor. On the other hand, the stop of the full-open operation requires detection of the pulse count value and the motor 4
Overload detection. This is because the rotation of the motor 4 causes the drive gear 10, the friction clutch 5, and the drive gear 1 to rotate.
1. When the drive wire 7 is driven through the transmission gear train 6 and the lid 3 is opened, the drive wire 7 is pushed in the longitudinal direction, and the drive wire 7 is bent to generate a pulse count value. This is because a slight error occurs between the position and the lid movement position, and if the control is performed only with the pulse count value, the accurate position control of the lid 3 cannot be performed.

この全開動作の停止のために、サンルーフ開口2の後端
近くにリッド3が全開位置に達したときにその一部が当
接してそれ以上後方へスライドできないようにするため
のストッパ(図示せず)が設けられている。そして、リ
ッド3の全開位置到達の検出は、全開位置対応パルスカ
ウント値の検出の後に、モータ4の過負荷検出がなされ
ることにより実行される。
To stop the fully opening operation, when the lid 3 reaches the fully open position near the rear end of the sunroof opening 2, a part of the lid 3 comes into contact with the stopper (not shown) to prevent the lid 3 from sliding further rearward. ) Is provided. The detection of reaching the fully open position of the lid 3 is performed by detecting the overload of the motor 4 after detecting the pulse count value corresponding to the fully open position.

つまり、第2図及び第15図のフローチャートを参照す
るに、モータ4正転してリッド3が開方向にスライドす
るとき、ホールIC32の発生するパルスを同期パルス
検出器情報65としてパルスカウンタ部73が取り込
み、比較演算部67がリッド位置を監視する(ステップ
501)。そして、リッド3の全開位置を示す所定のパ
ルスカウント値を得たならば、全開位置到達信号を比較
演算部67に与える(ステップ502)。
That is, referring to the flowcharts of FIGS. 2 and 15, when the motor 4 rotates normally and the lid 3 slides in the opening direction, the pulse generated by the Hall IC 32 is used as the synchronous pulse detector information 65 as the pulse counter unit 73. Is taken in and the comparison calculation unit 67 monitors the lid position (step 501). When the predetermined pulse count value indicating the fully open position of the lid 3 is obtained, the fully open position arrival signal is given to the comparison calculation unit 67 (step 502).

また、リッド3が全開位置に到達したならばストッパに
当接するため、モータ4に過電流が流れる。そこで、過
電流検出器情報66から過電流検出信号を得たときに、
過負荷検知部81が過負荷検出信号を比較演算変更指示
部82に与える(ステップ503)。比較演算変更指示
部82は、今回モータ作動方向検知部76からの開方向
駆動信号を得ているため、この過負荷検出信号を受けて
開方向駆動中の過負荷発生と判断し、モータ停止信号を
比較演算部67に与える。
Further, when the lid 3 reaches the fully open position, it abuts on the stopper, so that an overcurrent flows through the motor 4. Therefore, when the overcurrent detection signal is obtained from the overcurrent detector information 66,
The overload detection unit 81 gives an overload detection signal to the comparison calculation change instruction unit 82 (step 503). Since the comparison calculation change instructing unit 82 has received the opening direction drive signal from the motor operating direction detection unit 76 this time, it receives the overload detection signal and determines that the overload is occurring during the opening direction drive, and the motor stop signal is output. To the comparison calculation unit 67.

比較演算部67では、前記パルスカウンタ部73から全
開位置指示パルスを得ているため、このモータ停止信号
を得てモータ制御部85に停止指令信号を出力すると共
に、表示制御部84にOPEN用LED50の点灯指令
信号を与える(ステップ504,505)。
Since the comparison calculation unit 67 receives the full-open position instruction pulse from the pulse counter unit 73, it outputs this motor stop signal to the motor control unit 85 and outputs the stop command signal to the display control unit 84 as well as the OPEN LED 50. The lighting instruction signal of is given (steps 504 and 505).

なお、ステップ503において過負荷検出がない場合で
も、全開対応パルスカウント値を検出後、さらに1パル
スのカウントアップがあれば全開位置到達と判断してモ
ータ4を停止させ、誤動作を防止する(ステップ50
6,504,505)。
Even if there is no overload detection in step 503, if the count value of 1 pulse is further detected after detecting the full-open corresponding pulse count value, it is judged that the full-open position has been reached, the motor 4 is stopped, and malfunction is prevented (step 503). Fifty
6,504,505).

こうして、リッド3は全開位置に停止すると共にOPE
N表示用LED50が点灯し、全開停止動作が完了する
のである。
In this way, the lid 3 is stopped at the fully opened position and the OPE
The N display LED 50 lights up, and the fully open stop operation is completed.

サンルーフは自動車のルーフ1に設けられているため、
運転者が自動車から降りるときに閉め忘れしやすいもの
であり、閉め忘れたまま自動車を離れると、防犯上も、
雨などが急に降ってきたときにも不都合であり、閉め忘
れ防止装置が必要である。このサンルーフ制御装置で
は、閉め忘れ防止回路が次のように構成されている。
Since the sunroof is installed on the roof 1 of the car,
It is easy for the driver to forget to close the car when getting out of the car.
It is inconvenient even when it rains suddenly, and a device for preventing forgetting to close it is necessary. In this sunroof control device, the forget-to-close circuit is configured as follows.

イグニッションスイッチ35が切られてから一定時間
内、例えば30秒以内にキーがキーシリンダから抜か
れ、ドアが開閉された時には、運転者が自動車から離れ
たものと判断し、この状態でリッド3が全閉状態にない
場合は、リッド3を強制的に全閉動作させ、閉め忘れを
防止するのである。
When the key is removed from the key cylinder within a certain time after the ignition switch 35 is turned off, for example, within 30 seconds, and the door is opened / closed, it is determined that the driver has left the vehicle, and in this state, the lid 3 is completely removed. When the lid 3 is not closed, the lid 3 is forcibly fully closed to prevent forgetting to close it.

第1図、第2図及び第16図のフローチャートに示すよ
うに、イグニッションスイッチ情報60から、イグニッ
ションスイッチ35が切られたことを検出した信号が入
力されると、タイマ部68がタイムカウントを開始する
(ステップ601,602)。そして、キー検出器情報
61からキーシリンダからキーが抜き取られたという信
号が入力される。さらにドア開閉検出器情報62からド
アロックスイッチ37,38によるるドア開閉信号が入
力される。そこで、タイマ部68のタイムカウント開始
後、30秒経過するまでの間にキー抜き取り検出と、ド
ア開閉検出とが行われ、さらに操作スイッチ情報64か
らCLOSEボタン40以外の操作ボタン39,41,
42が押されていることが検出された場合、閉め忘れ条
件判定部69はサンルーフのリッド3の閉め忘れと判定
し(ステップ603)、全閉位置対応カウント値発生部
70に指令を与え、この全閉位置対応カウント値発生部
70は数値選定部71が選定している全閉位置に対応す
るパルスカウント値を比較演算部67に与える。比較演
算部67は、この全閉位置対応パルスカウント値の入力
により、モータ制御部85に対して駆動指令を与え、リ
ッド3が全閉位置まで移動するようにモータ4を駆動す
る(ステップ604,605)。そして、全閉動作が完
了した後は、スタンバイ状態に移行し、バッテリの消耗
を低く抑える(ステップ606〜609,610,61
3〜615)。
As shown in the flowcharts of FIGS. 1, 2, and 16, when a signal that detects that the ignition switch 35 is turned off is input from the ignition switch information 60, the timer unit 68 starts time counting. (Steps 601 and 602). Then, a signal indicating that the key is removed from the key cylinder is input from the key detector information 61. Further, a door open / close signal from the door lock switches 37 and 38 is input from the door open / close detector information 62. Therefore, key removal detection and door opening / closing detection are performed until 30 seconds have elapsed after the timer section 68 started counting time, and further, from the operation switch information 64, operation buttons 39, 41, other than the CLOSE button 40, were detected.
When it is detected that 42 is pressed, the closing forgetting condition determination unit 69 determines that the lid 3 of the sunroof is not closed (step 603) and gives a command to the fully closed position corresponding count value generating unit 70. The fully closed position corresponding count value generation unit 70 gives the comparison calculation unit 67 the pulse count value corresponding to the fully closed position selected by the numerical value selection unit 71. The comparison calculation unit 67 gives a drive command to the motor control unit 85 by inputting the pulse count value corresponding to the fully closed position, and drives the motor 4 so that the lid 3 moves to the fully closed position (step 604 ,. 605). Then, after the fully closing operation is completed, the state is shifted to the standby state and the consumption of the battery is kept low (steps 606 to 609, 610, 61).
3-615).

このようにして、イグニッションスイッチ35を切った
後に一定の条件が成立する場合にサンルーフの閉め忘れ
と判断し、自動的にリッド3を全閉駆動して閉め忘れ防
止を図るのである。
In this way, when a certain condition is satisfied after the ignition switch 35 is turned off, it is determined that the sunroof is forgotten to be closed, and the lid 3 is automatically driven to fully close to prevent forgetting to close it.

なお、この閉め忘れ防止動作の場合、イグニッションス
イッチ35のオフ後に操作スイッチ39〜42のいずれ
かが操作されたならば、閉め忘れではなく、例えば直射
日光によって車内が暑くなり過ぎるのを嫌った運転者が
停車中もサンルーフを開いておこうとしているものと判
断し、スイッチ操作により指定された位置までリッド3
を移動させてから、スタンバイ状態に移行する(ステッ
プ604,612,618〜621,610,613〜
615)。
In the case of this forget-to-close operation, if any of the operation switches 39 to 42 is operated after the ignition switch 35 is turned off, it is not forgotten to close, and for example, driving in which the inside of the vehicle becomes too hot due to direct sunlight is disliked. It is judged that the person is trying to open the sunroof even when the vehicle is stopped, and the lid 3 is pushed to the position specified by the switch operation.
And then shift to the standby state (steps 604, 612, 618 to 621, 610, 613-
615).

さらに、この自動閉動作中であってもリッド3が何かに
引っ掛かって移動できなくなり、モータ4に過負荷が掛
かることも起こりうる。そこで、このような過負荷が発
生した場合には、閉じかけているリッド3を再び開方向
に駆動し、モータ4の焼き切れその他の損傷が生じない
ように配慮されている(ステップ607,610,61
1,609;ステップ620)。
Further, even during the automatic closing operation, the lid 3 may be caught by something and cannot move, and the motor 4 may be overloaded. Therefore, when such an overload occurs, the lid 3 that is being closed is driven again in the opening direction so that burnout of the motor 4 and other damage do not occur (steps 607 and 610). , 61
1,609; step 620).

さらに、サンルーフの開状態で雨や雪などが降ってきた
場合には、車内が濡れてしまわないようにリッド3を閉
じる必要がある。しかしながら、サンルーフを開状態に
したままで自動車から離れ、その後、サンルーフを開い
たままであることをうっかり忘れしてしまうこともあり
うる。
Furthermore, when rain or snow falls with the sunroof open, it is necessary to close the lid 3 so that the inside of the vehicle does not get wet. However, it is possible to leave the car with the sunroof open and then forget to leave the sunroof open.

そこで、このサンルーフ制御装置では、雨滴を検出した
時にはリッド3を自動的に閉動作させ、閉め忘れにより
車内がすぶ濡れになることを防止する機能を持たせてい
る。この雨滴検出作動回路について説明すると、第1
図、第2図及び第17図のフローチャートに示すよう
に、リッド3の開状態で雨滴検出器情報59が雨滴検出
センサ34による雨滴検出信号を入力すると、全閉位置
対応カウント値発生部70が全閉位置に対応するパルス
カウント値を比較演算部67に指令する。比較演算部6
7は、パルスカウンタ部73からのリッド3の現在位置
のパルスカウント値と比較し、モータ制御部85に必要
な駆動指令信号を与え、モータ4を強制的に駆動してリ
ッド3を全閉位置まで移動させる(ステップ703〜7
06)。そして、この雨滴検出作動機能は、イグニッシ
ョンスイッチ35がオンの時には待機状態に維持される
(ステップ707,708)。
In view of this, the sunroof control device has a function of automatically closing the lid 3 when a raindrop is detected and preventing the interior of the vehicle from getting wet due to forgetting to close it. The raindrop detection operation circuit will be described below.
As shown in the flowcharts of FIGS. 2, 2 and 17, when the raindrop detector information 59 inputs the raindrop detection signal from the raindrop detection sensor 34 with the lid 3 open, the fully closed position corresponding count value generation unit 70 The pulse count value corresponding to the fully closed position is instructed to the comparison calculation unit 67. Comparison operation unit 6
Reference numeral 7 compares the pulse count value of the current position of the lid 3 from the pulse counter unit 73 and gives a necessary drive command signal to the motor control unit 85 to forcibly drive the motor 4 to close the lid 3 at the fully closed position. (Steps 703-7)
06). The raindrop detection operation function is maintained in the standby state when the ignition switch 35 is on (steps 707 and 708).

尚、この雨滴検出による自動閉動作時にもモータ4に過
負荷が掛かることがあるが、その場合には第14図に示
した過負荷検出ルーチンに移行することになる(ステッ
プ704,709)。
It should be noted that the motor 4 may be overloaded even during the automatic closing operation by the raindrop detection, but in that case, the routine shifts to the overload detection routine shown in FIG. 14 (steps 704 and 709).

[発明の効果] 以上のようにこの発明によれば、スイッチ対応カウント
値発生手段に対して開閉体の各開閉位置と対応するパル
スカウント値を与えるパルスカウント値設定手段を設け
ているため、このパルスカウント値設定手段の出力を変
更するだけで各操作スイッチに対応するスイッチ対応カ
ウント値を設定することができ、高価なマイクロコンピ
ュータで構成される比較演算手段の部分を車種毎に変更
せずに共通に利用することができ、コストの低廉化が図
れ、またスイッチ対応パルスカウント値の変更作業が簡
単に行なえる。
As described above, according to the present invention, the pulse count value setting means for giving the pulse count value corresponding to each opening / closing position of the opening / closing body to the switch corresponding count value generating means is provided. The switch-compatible count value corresponding to each operation switch can be set simply by changing the output of the pulse count value setting means, without changing the part of the comparison calculation means composed of an expensive microcomputer for each vehicle type. It can be used in common, the cost can be reduced, and the work of changing the pulse count value corresponding to the switch can be easily performed.

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

第1図はこの発明の一実施例のブロック図、第2図は上
記実施例の詳しい回路構成を示すブロック図、第3図は
上記実施例の駆動構成を示す平面図、第4図はモータ回
転力伝達系の駆動構成を示す拡大平面図、第5図は第4
図におけるV−V線断面図、第6図は操作スイッチパネ
ルのレイアウトの一例を示す平面図、第7図(a)〜
(c)はそれぞれ操作スイッチパネルの他のレイアウト
例を示す平面図、第8図はパルス検出手段によるパルス
カウント値とリッド位置との対応関係を示す説明図、第
9図は設定スイッチによるリッド位置選定動作を示すフ
ローチャート、第10図はパルスカウンタ部のリセット
動作を示すフローチャート、第11図は検出パルス上で
の停止位置を示す説明図、第12図はリッド位置補正動
作を説明するタイミングチャート、第13図はリッド位
置のパルスカウント値補正動作を示すフローチャート、
第14図は過負荷検出動作を示すフローチャート、第1
5図は前回停止動作を示すフローチャート、第16図は
閉め忘れ防止動作を示すフローチャート、第17図は雨
滴検出動作を示すフローチャートである。 1……ルーフ、2……サンルーフ開口 3……リッド、4……モータ 5……摩擦クラッチ、7……駆動ワイヤ 10……主動ギア、11……駆動ギア 31……マグッネット、32……ホールIC 33……CPU、34……雨滴センサ 35……イグニッションスイッチ 36……キー有無検出スイッチ 37,38……ドアロックスイッチ 39〜42……操作スイッチボタン 47〜50……位置表示用LED 53……モータ駆動回路、58……過電流検出抵抗 63……設定スイッチ情報 64……操作スイッチ情報 65……同期パルス検出器情報 67……比較演算部、71……数値選定部 72……スイッチ対応カウント値発生部 73……パルスカウンタ部 85……モータ制御部、86……モータドライバ SW1,SW2……設定スイッチ
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a block diagram showing a detailed circuit configuration of the above embodiment, FIG. 3 is a plan view showing a drive configuration of the above embodiment, and FIG. 4 is a motor. FIG. 5 is an enlarged plan view showing the drive configuration of the rotational force transmission system, and FIG.
6 is a cross-sectional view taken along the line VV in FIG. 6, FIG. 6 is a plan view showing an example of the layout of the operation switch panel, and FIG.
(C) is a plan view showing another layout example of the operation switch panel, FIG. 8 is an explanatory view showing the correspondence between the pulse count value by the pulse detection means and the lid position, and FIG. 9 is the lid position by the setting switch. 10 is a flow chart showing a selection operation, FIG. 10 is a flow chart showing a reset operation of the pulse counter unit, FIG. 11 is an explanatory view showing a stop position on a detection pulse, and FIG. 12 is a timing chart explaining a lid position correction operation, FIG. 13 is a flowchart showing a pulse count value correction operation at the lid position,
FIG. 14 is a flowchart showing the overload detection operation, first
FIG. 5 is a flowchart showing the previous stop operation, FIG. 16 is a flowchart showing the forgetting to close operation, and FIG. 17 is a flowchart showing the raindrop detecting operation. 1 ... Roof, 2 ... Sunroof opening 3 ... Lid, 4 ... Motor 5 ... Friction clutch, 7 ... Drive wire 10 ... Driving gear, 11 ... Driving gear 31 ... Magnetnet, 32 ... Hole IC 33 ... CPU, 34 ... Raindrop sensor 35 ... Ignition switch 36 ... Key presence / absence detection switch 37, 38 ... Door lock switch 39-42 ... Operation switch button 47-50 ... Position display LED 53 ... … Motor drive circuit, 58 …… Overcurrent detection resistance 63 …… Setting switch information 64 …… Operation switch information 65 …… Synchronous pulse detector information 67 …… Comparison operation unit, 71 …… Numerical value selection unit 72 …… Switch correspondence Count value generation unit 73 ... Pulse counter unit 85 ... Motor control unit, 86 ... Motor driver SW1, SW2 ... Setting switch

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】モータ出力を回転力伝達手段を介して開閉
体に伝達し、開閉体をチルト開閉及びスライド開閉する
サンルーフ制御装置において、前記開閉体の開閉動作と
同期するパルスの発生手段と、このパルス発生手段から
のパルス信号のカウンタ手段と、前記開閉体をチルトア
ップ位置、全閉位置または全開位置に駆動するための操
作信号を入力するための操作スイッチと、この操作スイ
ッチの操作信号に応じて前記開閉体のチルトアップ位
置、全閉位置または全開位置に対応するパルスカウント
値を出力するスイッチ対応カウント値発生手段と、前記
パルスカウンタ手段からの検出パルスカウント値を前記
スイッチ対応カウント値発生手段の対応するパルスカウ
ント値と比較し、前記開閉体を所望の方向に所定距離移
動させるために必要な駆動信号を演算する比較演算手段
と、この比較演算手段からの出力によって前記モータを
駆動するモータ駆動手段と、前記スイッチ対応カウント
値発生手段に対して前記開閉体のチルトアップ位置、全
閉位置及び全開位置に対応するパルスカウント値を設定
するパルスカウント値設定手段とを備えて成るサンルー
フ制御装置。
1. A sunroof control device for transmitting a motor output to an opening / closing body via a rotational force transmitting means to tilt / open / slide the opening / closing body, and a pulse generating means synchronized with the opening / closing operation of the opening / closing body. Counter means for the pulse signal from the pulse generating means, an operation switch for inputting an operation signal for driving the opening / closing body to a tilt-up position, a fully closed position or a fully open position, and an operation signal for the operation switch. A switch-corresponding count value generating means for outputting a pulse count value corresponding to a tilt-up position, a fully-closed position or a fully-open position of the opening / closing body, and a detection pulse count value from the pulse counter means for generating the switch-corresponding count value. Necessary for moving the opening / closing body by a predetermined distance in a desired direction by comparing with the corresponding pulse count value of the means. A comparison calculation means for calculating a drive signal, a motor drive means for driving the motor by an output from the comparison calculation means, a tilt-up position, a fully closed position and A sunroof control device comprising pulse count value setting means for setting a pulse count value corresponding to a fully open position.
JP11341687A 1987-05-12 1987-05-12 Sun roof controller Expired - Lifetime JPH0635254B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11341687A JPH0635254B2 (en) 1987-05-12 1987-05-12 Sun roof controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11341687A JPH0635254B2 (en) 1987-05-12 1987-05-12 Sun roof controller

Publications (2)

Publication Number Publication Date
JPS63279928A JPS63279928A (en) 1988-11-17
JPH0635254B2 true JPH0635254B2 (en) 1994-05-11

Family

ID=14611702

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11341687A Expired - Lifetime JPH0635254B2 (en) 1987-05-12 1987-05-12 Sun roof controller

Country Status (1)

Country Link
JP (1) JPH0635254B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3892317B2 (en) * 2002-02-18 2007-03-14 自動車電機工業株式会社 Control method for vehicle opening / closing panel
CN109979182A (en) * 2019-04-22 2019-07-05 济南科亚电子科技有限公司 A kind of Vehicle coverings cloth control system and method

Also Published As

Publication number Publication date
JPS63279928A (en) 1988-11-17

Similar Documents

Publication Publication Date Title
US4713591A (en) Control and drive arrangement for movable members
US20080100241A1 (en) Control device for opening/closing member
GB2081375A (en) Door operational control apparatus
JP2001253242A (en) Opening / closing opening / closing control device
JPS60115784A (en) Automatic opening and closing apparatus of opening covering material
JPH06463B2 (en) Sun roof controller
JPH0635254B2 (en) Sun roof controller
JPH06461B2 (en) Sun roof controller
JPH0645303B2 (en) Sun roof controller
JP3825004B2 (en) Vehicle door opening device and vehicle door opening control method
JP3640061B2 (en) Opening and closing device for vehicle opening and closing body
JP4149858B2 (en) Vehicle door opening and closing device
JPH0341939Y2 (en)
JP2005014840A (en) Device for opening/closing door for vehicle and method for automatically opening/closing door for vehicle
JP2005016250A (en) Device for opening/closing door for vehicle, and method for automatically opening/closing door for vehicle
JP2005345040A (en) Refrigerated showcase
JP4109634B2 (en) Opening / closing member control device
JP4153181B2 (en) Sunroof control device and sunroof control method
JPS63275422A (en) Sun roof control device
JP2007224685A (en) Open / close control device and setting method of open / close control
KR950009308B1 (en) Vehicle memory system control device
JPS6064028A (en) Controller for operation of sun roof
JP2524996Y2 (en) Automatic opening and closing device of the opening and closing body
JPH0327712B2 (en)
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