JPH0235180A - Controller for vehicle on-off member - Google Patents

Controller for vehicle on-off member

Info

Publication number
JPH0235180A
JPH0235180A JP63184395A JP18439588A JPH0235180A JP H0235180 A JPH0235180 A JP H0235180A JP 63184395 A JP63184395 A JP 63184395A JP 18439588 A JP18439588 A JP 18439588A JP H0235180 A JPH0235180 A JP H0235180A
Authority
JP
Japan
Prior art keywords
motor
circuit
opening
switch
sunroof
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
JP63184395A
Other languages
Japanese (ja)
Other versions
JP2658220B2 (en
Inventor
Tsuneo Hida
飛田 恒雄
Masayuki Sato
雅之 佐藤
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.)
Aisin Corp
Original Assignee
Aisin Seiki 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 Aisin Seiki Co Ltd filed Critical Aisin Seiki Co Ltd
Priority to JP63184395A priority Critical patent/JP2658220B2/en
Publication of JPH0235180A publication Critical patent/JPH0235180A/en
Application granted granted Critical
Publication of JP2658220B2 publication Critical patent/JP2658220B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Power-Operated Mechanisms For Wings (AREA)

Abstract

PURPOSE:To make fail-safe control performable at a time when a circuit between a motor and a control circuit gets out of order by installing such a means that stops any drive of the motor when a measured current value is smaller than the value of a current flowing in the motor at the time of motor rotation. CONSTITUTION:A power circuit 1, an ignition switch signal circuit 2, a motor drive circuit 4, sun roof on-off, tilting switch signal input circuits 11-14, limit switch signal input circuits 15, 16 and a current detector circuit 5 or the like are connected to a microcomputer MC, and a motor M driving a roof panel 22 is connected to the drive circuit 4 as well. When a current flowing in this motor M during movement of the panel 22 becomes less than the specified value, any drive of the motor M is stopped. In addition, even if the motor is stopped by a trouble judgment in leaving the panel 22 opened intact, this motor M rotates as usual if a control switch SS is continuously pressed, so that the panel 22 is closed, thus it is serviceable in case of rain and, what is more, for prevention against burglary.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、車両用の開閉部材を制御する制御装置の安全
装置に関し、自動車の窓やドア、屋根開口等の開口部の
開閉を行うための制御装置に利用できる。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention relates to a safety device for a control device that controls opening/closing members for a vehicle, and relates to a safety device for a control device that controls opening/closing members for a vehicle. It can be used as a control device for opening and closing.

(従来の技術) 従来、車両の窓、出入口、屋根開口等の開口を開閉する
、遮光板、不透明板、パネルなどの開口部材を、例えば
スイッチ操作に応じて自動で制御する制御装置が開発さ
れている。このような開口部材の制御においては、手や
頭など体の一部が開口部の閉時に開口部と車体との間に
挟まれてしまう危険性がある。このため、開口部材を駆
動するモーターの負荷を検出し、モーターの過負荷時に
モーターを停止または反転する装置が必要となっている
。このような開閉部材の安全装置は、例えば特開昭60
−141984号公報に開示されている。ここでは、開
口部材を駆動するモーターと、このモーターを回転させ
るモータードライバーモーターの過負荷を検出する過負
荷検出装置、スイッチ操作に応じてモータードライバー
に駆動信号を送るとともに過負荷の検出に応じてモータ
ードライバーに駆動停止信号を送信する制御装置等を備
えている。
(Prior Art) Conventionally, control devices have been developed that automatically control opening members such as light shielding plates, opaque plates, and panels, which open and close openings such as vehicle windows, doorways, and roof openings, in response to, for example, switch operations. ing. In controlling such an opening member, there is a risk that a part of the body, such as a hand or head, may be caught between the opening and the vehicle body when the opening is closed. Therefore, there is a need for a device that detects the load on the motor that drives the opening member and stops or reverses the motor when the motor is overloaded. Such a safety device for opening/closing members is disclosed in, for example, Japanese Patent Application Laid-open No. 60
It is disclosed in the publication No.-141984. Here, we will introduce a motor that drives the opening member, an overload detection device that detects overload on the motor driver motor that rotates this motor, and a drive signal that is sent to the motor driver in response to switch operation. It is equipped with a control device that sends a drive stop signal to the motor driver.

(発明が解決しようとする課題) ところが、上記の従来技術では、モーターの過負荷を検
出する過負荷検出装置とモーターとの間の信号線の断線
、短絡、または過負荷検出装置の故障等が起きた場合、
制御装置が受は取る過負荷検出装置からの信号は、過負
荷しか示さない信号か、過負荷にはならない信号かのど
ちらかの信号になる。このとき、過負荷を示さない信号
が制御装置に入力された場合、実際にモーターがロック
されてモーターが過負荷の状態になってもモーターが停
止されないため、非常に危険な状態になる。
(Problem to be Solved by the Invention) However, in the above-mentioned conventional technology, disconnection or short circuit of the signal line between the overload detection device that detects the overload of the motor and the motor, or failure of the overload detection device, etc. If you wake up,
The signal received by the control device from the overload detection device is either a signal that only indicates an overload, or a signal that does not indicate an overload. At this time, if a signal that does not indicate an overload is input to the control device, the motor will actually be locked and will not stop even if the motor is overloaded, resulting in a very dangerous situation.

そこで、本発明は、モーターと制御回路の間の回路が故
障したときにフェイルセーフを行えるようにすることを
、その技術的課題とする。
Therefore, the technical object of the present invention is to provide a fail-safe system when the circuit between the motor and the control circuit breaks down.

〔発明の構成] (課題を解決するための手段) 上記技術的課題を解決するために本発明において用いた
技術的手段は、車両上に配置された開閉部材、該開閉部
材を駆動するモーター、該モーターに流れる電流を測定
する電流測定手段、および該電流測定手段の測定電流が
大きいとき前記モーターの駆動を停止する過負荷保護手
段、を備える車両上の開閉部材の制御装置において、更
に、前記電流測定手段の測定電流値がモーター回転時に
モーターに流れる電流値に対し小さいとき、モーターの
駆動を停止するモーター駆動停止手段を備えたことであ
る。
[Structure of the Invention] (Means for Solving the Problems) The technical means used in the present invention to solve the above technical problems include an opening/closing member disposed on a vehicle, a motor for driving the opening/closing member, A control device for an opening/closing member on a vehicle, comprising a current measuring means for measuring a current flowing through the motor, and an overload protection means for stopping driving of the motor when the current measured by the current measuring means is large, further comprising: The present invention includes a motor drive stop means that stops driving the motor when the current value measured by the current measurement means is smaller than the current value flowing through the motor when the motor rotates.

また、上記構成に加え、操作スイッチ、該操作スイッチ
のオン操作に応答して前記モーターを駆動するモーター
駆動手段を備える車両上の開閉部材の制御装置において
、前記操作スイッチのオン操作後に該操作スイッチがオ
フにな−7た時、前記電流測定手段の測定電流値がモー
ター回転時にモーターに流れる電流値に対し小さいとき
、モーターの駆動を停止するモーター駆動停止手段を備
えたことである。
Further, in addition to the above configuration, in a control device for an opening/closing member on a vehicle, which includes an operation switch and a motor driving means for driving the motor in response to an on-operation of the operation switch, the operation switch is turned on after the operation switch is turned on. The present invention further includes a motor drive stop means for stopping the drive of the motor when the current value measured by the current measuring means is smaller than the value of the current flowing through the motor during rotation of the motor when the motor is turned off.

(作用) 前記技術的手段によれば、モーター駆動中にモーターに
過負荷が加われば、モーターが停止される。また、電流
測定手段が故障し、電流測定手段から出力が得られない
とき、同じくモーターが停止される。
(Operation) According to the technical means, if an overload is applied to the motor while the motor is being driven, the motor is stopped. Furthermore, when the current measuring means fails and no output is obtained from the current measuring means, the motor is similarly stopped.

更に、操作スイッチを有し、操作スイッチのオン操作に
応答してモーターを駆動し、この後操作スイッチがオフ
になった時モーターの電流を測定して測定値が低いとき
モーターを停止するようにすれば、例え電流測定回路が
故障してモーターの駆動を停止しているときでも、操作
スイッチを押し続ければモーターは駆動される。
Furthermore, it has an operation switch, and drives the motor in response to the ON operation of the operation switch, and then measures the motor current when the operation switch is turned OFF, and stops the motor when the measured value is low. In this way, even if the current measurement circuit has failed and the motor has stopped driving, the motor can still be driven by continuing to press the operation switch.

(実施例) 本発明の一実施例を図面に基づいて説明する。(Example) An embodiment of the present invention will be described based on the drawings.

第1図および第2図において、自動車のルーフ20の開
口部21を開閉するルーフパネル22はモーターMによ
って駆動される。このモーターMはモーター駆動回路4
に接続されている。モーター駆動回路4はマイクロコン
ピュータMCの出力端子OP2およびOF2に接続され
ている。
1 and 2, a roof panel 22 that opens and closes an opening 21 of a roof 20 of an automobile is driven by a motor M. In FIG. This motor M is a motor drive circuit 4
It is connected to the. The motor drive circuit 4 is connected to output terminals OP2 and OF2 of the microcomputer MC.

マイクロコンピュータMCには、モーター駆動回路4の
他に、電源回路1.ICスイッチ信号入力回路2.オア
ゲートOR,サンルーフ開閉スイッチ信号入力回路11
および12.サンルーフ傾動スイッチ信号入力回路13
および14.リミットスイッチ信号入力回路15および
16 ブザー出力回路3および電流検出回路5が接続さ
れている。
In addition to the motor drive circuit 4, the microcomputer MC includes a power supply circuit 1. IC switch signal input circuit 2. OR gate OR, sunroof open/close switch signal input circuit 11
and 12. Sunroof tilting switch signal input circuit 13
and 14. Limit switch signal input circuits 15 and 16 are connected to buzzer output circuit 3 and current detection circuit 5.

電源回路1は定電圧電源であり、その入力端子はリレー
MSを介してバッテリーEの十端子に接続されている。
Power supply circuit 1 is a constant voltage power supply, and its input terminal is connected to the terminal of battery E via relay MS.

電源回路1はトランジスタQl。Power supply circuit 1 includes transistor Ql.

抵抗R1,8よびツェナーダイオ−F Z Dより構成
され、リレーMSが閑のときバッテリー巳の発生゛する
電圧VBをマイクロコンピュータMCの電源電圧VCC
に変換している。
It is composed of resistors R1 and 8 and a Zener diode FZD, and when the relay MS is idle, the voltage VB generated by the battery voltage is connected to the power supply voltage VCC of the microcomputer MC.
is being converted to .

ICスイッチ信号入力回路2の入力端子はイグニッショ
ンスイッチIGを介してバッテリーEの+端子に接続さ
れている。ICスイッチ信号入力回路2の出力端子はマ
イクロコンピュータMCの入力端子IPIに接続されて
いる。ICスイッチ信号入力回路2は抵抗R2〜R4お
よびトランジスタQ2を備えており、イグニッションス
イッチ【Gの開時にはマイクロコンピュータMCの入力
端子IPIに電源電圧VCCを供給し、閉時にはマイク
ロコンピュータMCの入力端子IPIの電圧をグランド
レベルに落とす。
The input terminal of the IC switch signal input circuit 2 is connected to the + terminal of the battery E via the ignition switch IG. The output terminal of the IC switch signal input circuit 2 is connected to the input terminal IPI of the microcomputer MC. The IC switch signal input circuit 2 includes resistors R2 to R4 and a transistor Q2, and when the ignition switch [G is open, it supplies the power supply voltage VCC to the input terminal IPI of the microcomputer MC, and when it is closed, it supplies the power supply voltage VCC to the input terminal IPI of the microcomputer MC. voltage to ground level.

オアゲートORは二本の入力端子を有し、その内一方は
正論理の入力端子であり、他方は負論理の入力端子であ
る。正論理の入力端子はイグニッションスイッチICを
介してバッテリーEの子端子に接続されている。負論理
の入力端子はマイクロコンピュータMCの出力端子OP
4に接続されている。オアゲー1−ORの出力端子はリ
レーMSに接続されている。オアゲー)ORは、イグニ
ッションスイッチIGの閉時またはマイクロコンピュー
タMCの出力端子OP4のLoレヘル出力によりリレー
MSを励磁し、リレー接点を閉とする。
The OR gate OR has two input terminals, one of which is a positive logic input terminal and the other is a negative logic input terminal. The positive logic input terminal is connected to the child terminal of the battery E via the ignition switch IC. The negative logic input terminal is the output terminal OP of the microcomputer MC.
Connected to 4. The output terminal of OR game 1-OR is connected to relay MS. OR game) OR excites the relay MS when the ignition switch IG is closed or by the Lo level output of the output terminal OP4 of the microcomputer MC, and closes the relay contact.

その他の場合はリレーMSを非励磁とし、リレー接点を
開とする。
In other cases, the relay MS is de-energized and the relay contacts are opened.

サンルーフ開閉スイッチ信号入力回路11の入力端子は
サンルーフ開閉スイッチSSの端子5opnに、出力端
子はマイクロコンピュータMCの入力端子IP2に接続
されている。サンルーフ開閉スイッチ信号入力回路11
は抵抗R5〜R8およびトランジスタQ3より構成され
る。サンルーフ開閉スイッチ信号入力回路11は、サン
ルーフ開閉スイッチSSの端子5opnの電位がLOレ
ベルに落ちるとマイクロコンピュータMCの入力端子I
P2に電源電圧■CCを供給し、サンルーフ開閉スイッ
チSSの端子S opnが解放されると、マイクロコン
ピュータMCの入力端子IP2の電位をグランドレベル
に落とす。
The input terminal of the sunroof opening/closing switch signal input circuit 11 is connected to the terminal 5opn of the sunroof opening/closing switch SS, and the output terminal is connected to the input terminal IP2 of the microcomputer MC. Sunroof open/close switch signal input circuit 11
is composed of resistors R5 to R8 and transistor Q3. When the potential of the terminal 5opn of the sunroof opening/closing switch SS falls to the LO level, the sunroof opening/closing switch signal input circuit 11 inputs the input terminal I of the microcomputer MC.
When the power supply voltage CC is supplied to P2 and the terminal S open of the sunroof opening/closing switch SS is released, the potential of the input terminal IP2 of the microcomputer MC is lowered to the ground level.

サンルーフ開閉スイッチ信号入力回路12の入力端子は
サンルーフ開閉スイッチSSの端子5clSに、出力端
子はマイクロコンピュータMCの入力端子IP3に接続
されている。サンルーフ開閉スイッチ信号入力回路12
のU路構成は、サンルーフ開閉スイッチ信号入力回路1
1と同等である。
The input terminal of the sunroof opening/closing switch signal input circuit 12 is connected to the terminal 5clS of the sunroof opening/closing switch SS, and the output terminal is connected to the input terminal IP3 of the microcomputer MC. Sunroof open/close switch signal input circuit 12
The U-way configuration is sunroof open/close switch signal input circuit 1.
It is equivalent to 1.

サンルーフ開閉スイッチ信号入力回路12は、サンルー
フ開閉スイッチSSの端子S clsの電位がLOレヘ
ルに落ちるとマイクロコンピュータMCの入力端子IP
3に電源電圧■CCを供給し、サンルーフ開閉スイッチ
SSの端子5clsが解放されると、マイクロコンピュ
ータMCの入力端子■P3の電位をグランドレベルに落
とす。
When the potential of the terminal Scls of the sunroof opening/closing switch SS falls to the LO level, the sunroof opening/closing switch signal input circuit 12 inputs the signal to the input terminal IP of the microcomputer MC.
When the power supply voltage ■CC is supplied to the microcomputer 3 and the terminal 5cls of the sunroof opening/closing switch SS is released, the potential of the input terminal ■P3 of the microcomputer MC is dropped to the ground level.

サンルーフ開閉スイッチSSは、車両内部に配置される
繰作スイッチであり、車両の搭乗者により繰作される。
The sunroof opening/closing switch SS is a switch disposed inside the vehicle and operated by a passenger of the vehicle.

このサンルーフ開閉スイッチSSは中立付の2接点スイ
ッチであり、中立状態、オープン指示状態、クローズ指
示状態の3状態を有する。共通端子はグランドに接続さ
れている。また、前述したように、端子5opn、端子
5clsはそれぞれサンルーフ開閉スイッチ信号入力回
路11.12に接続されている。サンルーフ開閉スイッ
チSSをオープン指示状態に操作すると共通端子と端子
S opnが接続され、サンルーフ開閉スイッチ信号入
力回路11にLoレヘルの信号を送り、サンルーフ開閉
スイッチ信号入力回路12の入力端子をオープンとする
。逆に、サンルーフ開閉スイッチSSをクローズ指示状
態に操作すると共通端子と端子5clsが接続され、サ
ンルーフ開閉スイッチ信号入力回路12にLΩレベルの
信号を送り、サンルーフ開閉スイッチ信号入力回路11
の入力端子をオープンとする。また、サンルーフ開閉ス
イッチSSを中立状態に操作すると、サンルーフ開閉ス
イッチ信号入力回路11.12共にその入力端子がオー
プンとなる。
This sunroof opening/closing switch SS is a two-contact switch with a neutral function, and has three states: a neutral state, an open instruction state, and a close instruction state. The common terminal is connected to ground. Further, as described above, the terminal 5opn and the terminal 5cls are connected to the sunroof opening/closing switch signal input circuits 11 and 12, respectively. When the sunroof opening/closing switch SS is operated to the open instruction state, the common terminal and the terminal S opn are connected, a Lo level signal is sent to the sunroof opening/closing switch signal input circuit 11, and the input terminal of the sunroof opening/closing switch signal input circuit 12 is opened. . Conversely, when the sunroof opening/closing switch SS is operated to the close instruction state, the common terminal and the terminal 5cls are connected, and an LΩ level signal is sent to the sunroof opening/closing switch signal input circuit 12.
Leave the input terminal open. Further, when the sunroof opening/closing switch SS is operated to the neutral state, the input terminals of both the sunroof opening/closing switch signal input circuits 11 and 12 are opened.

サンルーフ傾動スイッチ信号入力回路13の入力端子は
サンルーフ傾動スイッチSTの端子Supに、出力端子
はマイクロコンピュータMCの入力端子IP4に接続さ
れている。サンルーフ傾動スイッチ信号入力回路13の
回路構成は、サンルーフ開閉スイッチ信号入力回路11
と同等である。
The input terminal of the sunroof tilting switch signal input circuit 13 is connected to the terminal Sup of the sunroof tilting switch ST, and the output terminal is connected to the input terminal IP4 of the microcomputer MC. The circuit configuration of the sunroof tilting switch signal input circuit 13 is the same as that of the sunroof opening/closing switch signal input circuit 11.
is equivalent to

サンルーフ傾動スイッチ信号入力回路13は、サンルー
フ傾動スイッチSTの端子Suρの電位がLoレベルに
落ちるとマイクロコンピュータMCの入力端子IP4に
電源電圧VCCを供給し、サンルーフ傾動スイッチST
の端子Supが解放されると、マイクロコンピュータM
Cの入力端子IP4の電位をグランドレベルに落とす。
The sunroof tilting switch signal input circuit 13 supplies the power supply voltage VCC to the input terminal IP4 of the microcomputer MC when the potential of the terminal Suρ of the sunroof tilting switch ST falls to Lo level, and supplies the power supply voltage VCC to the input terminal IP4 of the microcomputer MC.
When terminal Sup of microcomputer M is released, microcomputer M
The potential of the input terminal IP4 of C is lowered to the ground level.

サンルーフ傾動スイッチ信号入力回路14の入力端子は
サンルーフ傾動スイッチSTの端子Sdwnに、出力端
子はマイクロコンピュータMCの入力端子IP5に接続
されている。サンルーフ傾動スイッチ信号入力回路14
の回路構成は、サンルーフ開閉スイッチ信号入力回路1
1と同等である。
The input terminal of the sunroof tilting switch signal input circuit 14 is connected to the terminal Sdwn of the sunroof tilting switch ST, and the output terminal is connected to the input terminal IP5 of the microcomputer MC. Sunroof tilting switch signal input circuit 14
The circuit configuration is sunroof open/close switch signal input circuit 1
It is equivalent to 1.

サンルーフ傾動スイッチ信号入力回路14は、サンルー
フ傾動スイッチSTの端子S dwnの電位がLoレヘ
ルに落ちるとマイクロコンピュータMCの入力端子TP
5に電源電圧VCCを供給し、サンルーフ傾動スイッチ
STの端子S dwnが解放されると、マイクロコンピ
ュータMCの入力端子■P5の電位をグランドレベルに
落とす。
When the potential of the terminal Sdwn of the sunroof tilting switch ST falls to the Lo level, the sunroof tilting switch signal input circuit 14 inputs the signal to the input terminal TP of the microcomputer MC.
When the terminal S_dwn of the sunroof tilting switch ST is released, the potential of the input terminal P5 of the microcomputer MC is lowered to the ground level.

サンルーフ傾動スイッチSTは、車両内部に配置される
操作スイッチであり、車両の搭乗者により操作される。
The sunroof tilting switch ST is an operation switch disposed inside the vehicle, and is operated by a passenger of the vehicle.

このサンルーフ傾動スイッチSTは中立付の2接点スイ
ッチであり、中立状態、アンプ指示状態、ダウン指示状
態の3状態を有する。
This sunroof tilting switch ST is a two-contact switch with a neutral function, and has three states: a neutral state, an amplifier instruction state, and a down instruction state.

共通端子はグランドに接続されている。また、前述した
ように、端子Sup、端子S dwnはそれぞれサンル
ーフ傾動スイッチ信号入力回路13.14に接続されて
いる。サンルーフ傾動スイッチSTをアップ指示状態に
操作すると共通端子と端子Supが接続され、サンルー
フ傾動スイッチ信号入力回路13にLOレベルの信号を
送り、サンルーフ傾動スイッチ信号入力回路14の入力
端子をオープンとする。逆に、サンルーフ傾動スイッチ
STをクローズ指示状態に操作すると共通端子と端子S
 dwnが接続され、サンルーフ傾動スイッチ信号入力
回路14にLOレヘルの信号を送り、サンルーフ傾動ス
イッチ信号入力回路13の入力端子をオープンンとする
。また、サンル−フ(頃動スイッチSTを中立状態に操
作すると、サンルーフ傾動スイッチ信号入力回路13.
14共にその入力端子がオープンとなる。
The common terminal is connected to ground. Further, as described above, the terminal Sup and the terminal Sdwn are respectively connected to the sunroof tilting switch signal input circuit 13 and 14. When the sunroof tilting switch ST is operated to the up instruction state, the common terminal and the terminal Sup are connected, a LO level signal is sent to the sunroof tilting switch signal input circuit 13, and the input terminal of the sunroof tilting switch signal input circuit 14 is opened. Conversely, when the sunroof tilting switch ST is operated to the close instruction state, the common terminal and terminal S
dwn is connected, a signal of LO level is sent to the sunroof tilting switch signal input circuit 14, and the input terminal of the sunroof tilting switch signal input circuit 13 is opened. Also, when the sunroof tilting switch ST is operated to the neutral state, the sunroof tilting switch signal input circuit 13.
14, their input terminals are open.

モーターMの回転軸には、その回動位置を検出するため
の円盤状の回転盤6が取りつけられている。回転盤6の
外周には位置検出用の切り込みが開けられている。この
回転盤6の周囲には2つのリミットスイッチLSIおよ
びLS2が配置されている。このリミットスイッチLS
IおよびLS2はその接点が回転盤6の切り込みに位置
するとき開となり、それ以外のとき閉となる。モーター
Mをルーフパネル22が開口部21を閉じている状態か
ら正転させるとルーフパネル22は開口部21に平行に
スライドし、開口部21が開(ようになっている。また
、モーターMをルーフパネル22が開口部21を閉じて
いる状態から逆転させるとルーフパネル22の一端が持
ち上がり、ルーフパネル22がチルトアンプするように
なっている。回転盤6の切り込みは、ルーフパネル22
のチルトアップ時、スライド時等の状況に応じてリミッ
トスイッチLSI、LS2が切り換わるように設定され
ている。このルーフパネル22とモーターM回りの構造
は特開昭60−141984号公報に詳しく開示されて
いるので参照されたい。
A disk-shaped rotary disk 6 is attached to the rotating shaft of the motor M for detecting its rotational position. A notch for position detection is made on the outer periphery of the rotary disk 6. Two limit switches LSI and LS2 are arranged around this rotary disk 6. This limit switch LS
I and LS2 are open when their contacts are located in the notches of the rotary disk 6, and are closed otherwise. When the motor M is rotated forward from the state where the roof panel 22 closes the opening 21, the roof panel 22 slides parallel to the opening 21, and the opening 21 is opened. When the roof panel 22 is reversed from the state in which the opening 21 is closed, one end of the roof panel 22 is lifted and the roof panel 22 is tilted.
The limit switches LSI and LS2 are set to switch depending on the situation, such as when tilting up or sliding. The structure around the roof panel 22 and the motor M is disclosed in detail in Japanese Patent Laid-Open No. 141984/1984, so please refer to it.

リミットスイッチLSIはリミットスイッチ信号入力回
路15に接続され、その閉時にリミットスイッチ信号入
力回路15の入力端子の電圧をグランドレベルとし、そ
の開時にリミットスイッチ信号入力回路15の入力端子
をオープンとする。
The limit switch LSI is connected to the limit switch signal input circuit 15, and when it is closed, the voltage at the input terminal of the limit switch signal input circuit 15 is set to the ground level, and when it is opened, the input terminal of the limit switch signal input circuit 15 is opened.

リミットスイッチ信号入力回路15の出力端子はマイク
ロコンピュータMCの入力端子IP7に接続されている
。リミットスイッチ信号入力回路15の回路構成は、サ
ンルーフ開閉スイッチ信号入力回路11と同等である。
The output terminal of the limit switch signal input circuit 15 is connected to the input terminal IP7 of the microcomputer MC. The circuit configuration of the limit switch signal input circuit 15 is the same as that of the sunroof opening/closing switch signal input circuit 11.

リミットスイッチ信号入力回路15は、リミットスイッ
チLSIが閉時にマイクロコンピュータMCの入力’4
 子I P 6に電源電圧VCCを供給し、リミットス
イッチLSIが閉時にマイクロコンピュータMCの入力
端子IF5の電位をグランドレベルに落とす。
The limit switch signal input circuit 15 receives an input '4 of the microcomputer MC when the limit switch LSI is closed.
The power supply voltage VCC is supplied to the child IP6, and when the limit switch LSI is closed, the potential of the input terminal IF5 of the microcomputer MC is lowered to the ground level.

リミットスイッチLS2はリミットスイッチ信号入力回
路16に接続され、その閉時にリミットスイッチ信号入
力回路16の入力端子の電圧をグランドレベルとし、そ
の開時にリミットスイッチ信号入力回路16の入力端子
をオープンとする。
The limit switch LS2 is connected to the limit switch signal input circuit 16, and when it is closed, the voltage at the input terminal of the limit switch signal input circuit 16 is set to the ground level, and when it is opened, the input terminal of the limit switch signal input circuit 16 is opened.

リミットスイッチ信号入力回路16の出力端子はマイク
ロコンピュータMCの入力端子IP7に接続されている
。リミットスイッチ信号入力回路16の回路構成は、サ
ンルーフ開閉スイッチ信号入力回路11と同等である。
The output terminal of the limit switch signal input circuit 16 is connected to the input terminal IP7 of the microcomputer MC. The circuit configuration of the limit switch signal input circuit 16 is the same as that of the sunroof opening/closing switch signal input circuit 11.

リミットスイッチ信号入力回路16は、リミットスイッ
チLS2が閉時にマイクロコンピュータMCの入力端子
rP7に電源電圧■CCを供給し、リミットスイッチL
S2が閉時にマイクロコンピュータMCの入力端子IP
7の電位をグランドレベルに落とす。
The limit switch signal input circuit 16 supplies the power supply voltage ■CC to the input terminal rP7 of the microcomputer MC when the limit switch LS2 is closed, and the limit switch L
When S2 is closed, the input terminal IP of the microcomputer MC
Drop the potential of 7 to ground level.

ブザー出力回路3は、抵抗R11−Rl3.  トラン
ジスタQllおよびダイオードD1より構成され、その
入力端子はマイクロコンピュータ・MCの出力端子OP
lに接続される。また、その出力はブザーBZに接続さ
れている。マイクロコンピュータMCの出力端子OPI
の出力電圧がLOレベルであると、ブザーBZの両端に
は電圧が発生せず、マイクロコンピュータMCの出力端
子OP1の出力電圧がHiレヘルであると、ブザーBZ
の両端に電圧が加わる。
Buzzer output circuit 3 includes resistors R11-Rl3. It is composed of a transistor Qll and a diode D1, and its input terminal is the output terminal OP of the microcomputer MC.
connected to l. Further, its output is connected to a buzzer BZ. Microcomputer MC output terminal OPI
When the output voltage of the microcomputer MC is at LO level, no voltage is generated across the buzzer BZ, and when the output voltage of the output terminal OP1 of the microcomputer MC is Hi level, the buzzer BZ
Voltage is applied across both ends.

モーター駆動回路4は、抵抗R14〜R16゜トランジ
スタQ12およびダイオードD2によりリレーRLIを
駆動する回路と抵抗R17〜R19、トランジスタQ1
3およびダイオードD3によりリレーRL2を駆動する
回路を有する。このモーター駆動回路4の入力端子には
マイクロコンピュータMCの出力端子OP2およびOF
2が接続されている。マイクロコンピュータMCの出力
端子OP2の出力電圧が1,0レヘルであると、リレー
RLIは非励磁となり、マイクロコンピュータMCの出
力端子OP2の出力電圧がHiレベルであると、リレー
RLIは励磁される。また、マ・イクロコンピュータM
Cの出力端子OP3の出力電圧がLOレヘルであると、
リレーRL2は非励磁となり、マイクロコンピュータM
Cの出力端子OP3の出力電圧がHiレベルであると、
リレーR1,2は励磁される。ここで、リレーRLI、
RL 2とモーターMの回転は次表のような関係にある
The motor drive circuit 4 includes a circuit that drives the relay RLI using resistors R14 to R16, a transistor Q12, and a diode D2, resistors R17 to R19, and a transistor Q1.
3 and a diode D3 to drive the relay RL2. The input terminals of this motor drive circuit 4 are the output terminals OP2 and OF of the microcomputer MC.
2 are connected. When the output voltage of the output terminal OP2 of the microcomputer MC is 1.0 level, the relay RLI is de-energized, and when the output voltage of the output terminal OP2 of the microcomputer MC is Hi level, the relay RLI is energized. Also, microcomputer M
When the output voltage of output terminal OP3 of C is LO level,
Relay RL2 becomes de-energized, and microcomputer M
When the output voltage of output terminal OP3 of C is Hi level,
Relays R1,2 are energized. Here, relay RLI,
The relationship between the rotations of RL 2 and motor M is shown in the table below.

電流検出回路5は、抵抗RO,オペアンプOI)および
アナログ−デジタルコンバータA/Dより構成される。
The current detection circuit 5 includes a resistor RO, an operational amplifier OI), and an analog-digital converter A/D.

抵抗ROはモーター駆動回路4のリレーRLI、RL2
のグランド側の端子とグランド端子間に配設され、モー
ターMに流れる電流量に応して、その両端に電圧を発生
する。抵抗ROの両端はオペアンプOPの2つの入力端
子にそれぞれ接続されており、抵抗ROの両端に発生し
た電圧は増幅される。オペアンプOPの出力はアナログ
−デジタルコンバータA/Dの入力端子に接続され、ア
ナログ−デジタルコンバータA/Dの複数のデジタル出
力端子はマイクロコンピュータMCの入力端子に接続さ
れている。本実施例では、アナログ−デジタルコンバー
タA/Dの分解能に8bitを選択しており、アナログ
−デジタルコンバータA/Dの8本の出力端子はマイク
ロコンピュータMCの入力端子IP8〜IP15に接続
される。尚、アナログ−デジタルコンバータA/Dの分
解能はマイクロコンピュータMCの能力や開閉部材の位
置の精度により設定されるものであるので、特に8bi
tである必要はない。この電流検出回路5によりモータ
ーMに流れる電流が増幅され、デジタル変換され、マイ
クロコンビアークMC内で認識できるようになる。
Resistor RO is relay RLI, RL2 of motor drive circuit 4
It is arranged between the ground side terminal of the motor M and the ground terminal, and generates a voltage across the motor M depending on the amount of current flowing through the motor M. Both ends of the resistor RO are connected to two input terminals of the operational amplifier OP, and the voltage generated across the resistor RO is amplified. An output of the operational amplifier OP is connected to an input terminal of an analog-to-digital converter A/D, and a plurality of digital output terminals of the analog-to-digital converter A/D are connected to an input terminal of a microcomputer MC. In this embodiment, 8 bits is selected as the resolution of the analog-to-digital converter A/D, and eight output terminals of the analog-to-digital converter A/D are connected to input terminals IP8 to IP15 of the microcomputer MC. Note that the resolution of the analog-to-digital converter A/D is set by the ability of the microcomputer MC and the accuracy of the position of the opening/closing member, so 8bi
It doesn't have to be t. The current flowing through the motor M is amplified by the current detection circuit 5, converted into digital data, and can be recognized within the micro combi-arc MC.

制御の中心となるマイクロコンピュータMCは本実施例
では1チツプのマイクロコンピュータを使用している。
The microcomputer MC that plays a central role in control is a one-chip microcomputer in this embodiment.

マイクロコンピュータMCの内部には、ROM、RAM
等のメモリ、入出力インターフェースおよびCPU (
中央処理装置)を備える。CPUはROM内に格納され
たプログラムを実行する。ROM内には、第4図から第
9図に示すフローチャートに応じたプログラムが格納さ
れている。
Inside the microcomputer MC, there are ROM and RAM.
memory, input/output interface and CPU (
central processing unit). The CPU executes programs stored in the ROM. Programs according to the flowcharts shown in FIGS. 4 to 9 are stored in the ROM.

このマイクロコンピュータMCの出力端子OP4がHi
レベルを出力しているとき、イグニッションスイッチI
Cが開から閉になると、リレーMSが開から閉に付勢さ
れ、電源回路lにバッテリEからの電圧が加わる。この
とき、マイクロコンピュータMCの電源端子I’Eに電
源回路から電圧■CCが加わり、マイクロコンピュータ
MC内部では、プログラムが第4図に示すメインルーチ
ンのフローチャートに沿って実行される。
Output terminal OP4 of this microcomputer MC is Hi
When outputting level, ignition switch I
When C changes from open to closed, relay MS is energized from open to closed, and voltage from battery E is applied to power supply circuit l. At this time, a voltage CC is applied from the power supply circuit to the power supply terminal I'E of the microcomputer MC, and the program is executed inside the microcomputer MC according to the main routine flowchart shown in FIG.

プログラムがスタートすると、まず、初期設定が行われ
る。ここでは、各入出力端子の入力・出力の設定、メモ
リのイニシャライズが行われる。
When the program starts, initial settings are first performed. Here, input/output settings for each input/output terminal and memory initialization are performed.

ここで、変数Mが0”°に設定される(ステップ40)
Here, the variable M is set to 0”° (step 40)
.

次に、変数Mの値に応じてステップ50,60゜70.
80.90の各サブルーチンが実行される。
Next, steps 50, 60, 70, etc. are performed depending on the value of the variable M.
80.90 subroutines are executed.

変数Mの値は当初ステップ40において“0”に設定さ
れているが、後述するように、各サブルーチン内におい
て0から4までの整数値に変更される。ステップ50,
60.70 80 90はそれぞれ「待機モード」、「
スライドオープンモード」、「スライドクローズモード
」、「チルトアップモード」、「チルトダウンモード」
を行うためのサブルーチンである。
The value of variable M is initially set to "0" in step 40, but is changed to an integer value from 0 to 4 within each subroutine, as will be described later. step 50,
60.70 80 90 are "standby mode" and "
"Slide open mode", "Slide close mode", "Tilt up mode", "Tilt down mode"
This is a subroutine to do this.

・待機モード(、M=O); 待機モードにおいては、スイッチ操作に応じて他のモー
ドへ移行するための処理が行われる。第5図において、
入力端子IP2.IP3.IP4IP5の状態を読み、
サンルーフ開閉スイッチSSおよびサンルーフ傾動スイ
ッチSTの状態を認識する。ここで、サンルーフ開閉ス
イッチSSがオープン指示状態であれば、入力端子IP
2の電圧がHiレベルとなるので、変数Mに“1“が設
定される。サンルーフ開閉スイッチSSがクローズ指示
状態であれば、入力端子rP3の電圧がHiレベルとな
るので、変数Mに“2°゛が設定される。ナンルーフ傾
動スイッチSTがアップ指示状態であれば、入力端?’
IP4の電圧がHiレベルとなるので、変数Mに“°3
′°が設定される。また、サンルーフ(駆動スイッチS
Tがダウン指示状態であれば、入力端子IP5の電圧が
f(iレベルとなるので、変数Mに“4°゛が設定され
る。これにより、変数Mの値が更新され、車両の搭乗者
がオープン指示を行えば「スライドオープンモード」 
(ステップ60)が実行され、クローズ指示を行えば「
スライドクローズモード」 (ステップ70)が実行さ
れ、アップ指示を行えば[チルトアップモート」(ステ
ップ80)が実行され、そしてダウン指示を行えば「チ
ルトダウンモード」 (ステップ90)が実行されるよ
うになる。尚、入力端子IP2.IP3.IP4.[P
5のうち2つ以上同時にHiレベルになったときにはは
作スイッチのダブル押しくまたは操作スイッチの異常)
と判断し、そのままメインルーチンに復帰する(ステッ
プ51)。
- Standby mode (, M=O); In standby mode, processing for transitioning to another mode is performed in response to switch operation. In Figure 5,
Input terminal IP2. IP3. Read the IP4IP5 status,
Recognize the states of the sunroof opening/closing switch SS and sunroof tilting switch ST. Here, if the sunroof opening/closing switch SS is in the open instruction state, the input terminal IP
Since the voltage No. 2 becomes Hi level, the variable M is set to "1". When the sunroof opening/closing switch SS is in the close instruction state, the voltage at the input terminal rP3 becomes Hi level, so the variable M is set to "2°".If the sunroof tilting switch ST is in the up instruction state, the input terminal ?'
Since the voltage of IP4 becomes Hi level, the variable M is set to “°3”.
′° is set. In addition, the sunroof (drive switch S
When T is in the down instruction state, the voltage at input terminal IP5 becomes f(i level), so "4°" is set to variable M. As a result, the value of variable M is updated, and the If you give an open instruction, it will be in "slide open mode"
(Step 60) is executed and if a close instruction is given, “
"Slide close mode" (step 70) is executed, if an up instruction is issued, a "tilt up mode" (step 80) is executed, and if a down instruction is issued, a "tilt down mode" (step 90) is executed. become. In addition, input terminal IP2. IP3. IP4. [P
(If two or more of 5 are at Hi level at the same time, double press the operation switch or the operation switch is abnormal)
Then, the program returns to the main routine (step 51).

・スライドオープンモード(M=1);変数Mの値が1
′”であると第6図のサブルーチンが実行される。まず
、モーターMを駆動させて、ルーフパネル22を開く方
向にスライドさせる。ルーフパネル22を開くには、出
力端子○P2をHiレベル、出力端子OP3をLoレレ
ベとし、モーター駆動回路4のリレーRLIを励磁し、
リレーRL2を非励磁として、モーターMを逆転させる
(ステップ61)。
・Slide open mode (M=1); value of variable M is 1
''', the subroutine shown in FIG. The output terminal OP3 is set to Lo level, and the relay RLI of the motor drive circuit 4 is energized.
Relay RL2 is de-energized and motor M is reversed (step 61).

次に、モーターの過負荷の検出を行う。入力端子IP8
〜IP15に入力された信号からモーターMに流れてい
る電流IMを推測し、IMが所定値以上であれば、モー
ターMに過負荷がかかっていると判断し、ステップ66
以降のモーター停止のルーチンを実行する(ステップ6
2)。
Next, detect motor overload. Input terminal IP8
~ Estimate the current IM flowing through the motor M from the signal input to IP15, and if IM is greater than a predetermined value, it is determined that the motor M is overloaded, and step 66
Execute the following motor stop routine (step 6)
2).

IMが所定値以上でなけ゛れば、次に、操作スイッチの
ダブル押しの判定が行われる。ここでは、入力端子IP
2〜IP5のうち2つ以上がHiレレベであれば、サン
ルーフ開閉スイッチSSとサンルーフ(M 動スイッチ
STの2つの操作スイッチのダブル押しくもしくは操作
スイッチの故障)と判断して、ステップ66以降のモー
ター停止のルーチンを実行する(ステップ63)。
If IM is not equal to or greater than a predetermined value, then a determination is made as to whether the operation switch has been pressed twice. Here, input terminal IP
If two or more of 2 to IP5 are at Hi level, it is determined that the two operation switches of the sunroof open/close switch SS and the sunroof (M movement switch ST) are double pressed or the operation switch is malfunctioning, and the steps from step 66 onwards are performed. A motor stop routine is executed (step 63).

操作スイッチのダブル押しがなければ、次に、電流検出
回路5の異常判定が行われる。ここでは、モーターMに
流れる電流値IMが所定値I0以下であり、かつ、入力
端子IP2がL oレベル、つまり、サンルーフ開閉ス
イッチSSがオープン状態でなければ、ステップ66以
降のモーター停止のルーチンを実行する(ステップ64
.65)。
If there is no double press of the operation switch, then abnormality determination of the current detection circuit 5 is performed. Here, if the current value IM flowing through the motor M is less than the predetermined value I0, and the input terminal IP2 is at the Lo level, that is, the sunroof opening/closing switch SS is not in the open state, the routine for stopping the motor from step 66 onward is executed. Execute (step 64
.. 65).

本実施例においては、−度サンルーフ開閉スイッチSS
をオープン状態にすれば、その後、サンルーフ開閉スイ
ッチSSを離してオープン状態を解除してもスライドが
終了するまでモーターの回転を続けるようにモーターを
制御している。ここで、電流検出回路5の故障、抵抗R
Oのショート故障。
In this embodiment, - degree sunroof opening/closing switch SS
If the sunroof is opened, the motor is controlled so that it continues to rotate until the slide is completed, even if the sunroof opening/closing switch SS is released to release the open state. Here, failure of the current detection circuit 5, resistance R
O short circuit failure.

抵抗ROのモーターM側のワイヤーのグランドとのショ
ート故障、抵抗ROとオペ77102間の信号線の断線
等で、マイクロコンピュータMCがモーターの電流をO
アンペアとしか認識できなくなってしまった場合には、
モーターMの回転を停止させる。したがって、上記のよ
うな故障によりモーターの電流を正常に検出できない場
合にステップ62でモーターの過負荷検出が出来なくな
っても安全である。
If the wire on the motor M side of the resistor RO is shorted to the ground, or the signal line between the resistor RO and the operator 77102 is disconnected, the microcomputer MC will interrupt the motor current.
If it can no longer be recognized as anything other than Ampere,
Stop the rotation of motor M. Therefore, it is safe even if the motor overload cannot be detected in step 62 when the motor current cannot be detected normally due to the above-mentioned failure.

ステップ66ではモーターMの停止処理が行われる。こ
こでは、出力端子OP2およびOP3を共にHiレベル
もしくはLoレベルとし、モーターMを停止させる。
In step 66, the motor M is stopped. Here, both output terminals OP2 and OP3 are set to Hi level or Lo level, and motor M is stopped.

このあと、モードを「待機モード」に変更すべく、変数
Mを“′0“とじている。
After this, the variable M is set to "'0" in order to change the mode to "standby mode".

そして、安全性確保のため、操作スイ・ノチが全て中立
状態にならないとメインルーチンに復帰しないようにし
ている。
In order to ensure safety, the main routine is not returned until all the operation switches are in a neutral state.

スライドクローズモード(M=2)i 変数Mの値が“2”であると第7図のサブルーチンが実
行される。まず、モーターさ、1を駆動させて、ルーフ
パネル22を閉じる方向にスライドさせる。ルーフパネ
ル22を閉じるには、出力端子OP2をLoレベル、出
力端子○P3をHiレベルとし、モーターMを逆転させ
る。(ステップ71)。他の処理は、ステップ75のス
イッチの読み込みが異なるだけで、前述の「スライドオ
ープンモード」と同じ構造をしているので、その他の説
明を省略する。
Slide close mode (M=2) i If the value of variable M is "2", the subroutine shown in FIG. 7 is executed. First, the motor 1 is driven to slide the roof panel 22 in the closing direction. To close the roof panel 22, the output terminal OP2 is set to Lo level, the output terminal ○P3 is set to Hi level, and the motor M is reversed. (Step 71). The other processes have the same structure as the above-mentioned "slide open mode" except that the switch reading in step 75 is different, so the other explanations will be omitted.

検出回路の故障判定では、電流値IMが所定値IOより
も小さく、かつ、入力端子IP3がり。
In the failure judgment of the detection circuit, the current value IM is smaller than the predetermined value IO, and the input terminal IP3 is too high.

レベル、つまりサンルーフ開閉スイッチSSがクローズ
指示状態でないとき、モーター停止の処理を行い、それ
以外のときメインルーチンへ復帰する(ステップ74.
75)。前述の「スライドオープンモード」と同様に、
モーター駆動時にモーターに流れる電流が所定値以下に
なったときモーターを停止させてフェールセーフを行っ
ている。
level, that is, when the sunroof opening/closing switch SS is not in the close instruction state, the motor is stopped, and otherwise, the process returns to the main routine (step 74).
75). Similar to the "slide open mode" mentioned above,
When the current flowing through the motor drops below a predetermined value when the motor is running, the motor is stopped to provide a failsafe.

・チルトアンプモード(M=3); 変数Mの値が“3°゛であると第8図のサブルーチンが
実行される。まず、モーターMを駆動させて、ルーフパ
ネル22を上げる方向にモーターMを回転させる。ルー
フパネル22を上げるには、出力端子OP2をHiレレ
ベ、出力端子OP3をLoレレベとし、モーターMを正
転させる。(ステップ81)。他の処理は、ステップ8
5のスイッチの読み込みが異なるだけで、前述の「スク
イ1オープンモード」と同じ構造をしているので、その
他の説明を省略する。
・Tilt amplifier mode (M=3); When the value of the variable M is "3°", the subroutine shown in FIG. To raise the roof panel 22, set the output terminal OP2 to the Hi level, set the output terminal OP3 to the Lo level, and rotate the motor M forward (step 81).Other processes are performed in step 8.
Since it has the same structure as the above-mentioned "Squig 1 open mode" except that the reading of the switch No. 5 is different, the other explanations will be omitted.

検出回路の故障判定では、電流値IMが所定値りよりも
小さく、かつ、入力端子IP4がり。
In the failure judgment of the detection circuit, the current value IM is smaller than a predetermined value and the input terminal IP4 is too high.

レベル、つまりサンル−フ1頃動スイッチSTがアップ
指示状態でないとき、モーター停止の処理を行い、それ
以外のときメインルーチンへ復帰する(ステップ84.
85)。前述の「スライドオーブンモート」と同様に、
モーター駆動時にモーターに流れる電流が所定値以下に
なったときモーターを停止させてフェールセーフを行っ
ている。
When the level, that is, the sunroof 1 movement switch ST is not in the up instruction state, the motor is stopped, and otherwise, the process returns to the main routine (step 84.
85). Similar to the aforementioned "slide oven mote",
When the current flowing through the motor drops below a predetermined value when the motor is running, the motor is stopped to provide a failsafe.

・チル]・ダウンモード(M=4); 変数Mの値が“4′”であると第9図のサブルーチンが
実行される。まず、モーターMを駆動させて、ルーフパ
ネル22を下げる方向にモーターMを回転させる。ルー
フパネル22を下げるには、出力端子OP2をLoレレ
ベ、出力端子OP3をHiレベルとし、モーターMを逆
転させる。(ステップ91)。他の処理は、ステップ9
5のスイッチの読み込みが異なるだけで、前述の「スラ
イI・オープンモート」と同し構造をしているので、そ
の他の説明を省略する。
- Chill] - Down mode (M=4); If the value of variable M is "4'", the subroutine shown in FIG. 9 is executed. First, the motor M is driven and rotated in a direction to lower the roof panel 22. To lower the roof panel 22, the output terminal OP2 is set to the Lo level, the output terminal OP3 is set to the Hi level, and the motor M is reversed. (Step 91). Other processing is step 9
Since it has the same structure as the aforementioned "Sly I Open Mort" with the only difference in the reading of the switch No. 5, other explanations will be omitted.

検出回路の故障判定では、電流値IMが所定値1、より
も小さく、かつ、入力端子IP5がり。
In the detection circuit failure determination, the current value IM is smaller than the predetermined value 1, and the input terminal IP5 is too high.

レベル、つまりサンル−フ1頃動スイッチSTがクロー
ズ指示状態でないとき、モーター停止の処理を行い、そ
れ以外のときメインルーチンへ復帰する(ステップ94
.95)。前述の「スライドオープンモード」と同様に
、モーター駆動時にモーターに流れる電流が所定値以下
になったときモーターを停止させてフェールセーフを行
っている。
level, that is, when the sunroof 1 movement switch ST is not in the close instruction state, the motor is stopped. Otherwise, the process returns to the main routine (step 94).
.. 95). Similar to the above-mentioned "slide open mode", when the current flowing through the motor drops below a predetermined value while the motor is being driven, the motor is stopped to provide a failsafe.

以上、説明したように、本実施例においては、ルーフパ
ネル22の移動中にモーターMに流れる電流が所定値以
下になるとモーターの駆動を停止するようにしている。
As described above, in this embodiment, when the current flowing through the motor M becomes less than a predetermined value while the roof panel 22 is moving, the drive of the motor is stopped.

これにより、モーターの電流検出回路が異常になり、過
負荷検出が行われなくてもルーフパネル22の移動停止
をおこなうことができる。
As a result, the current detection circuit of the motor becomes abnormal, and the movement of the roof panel 22 can be stopped even if no overload detection is performed.

更に、本実施例では、操作スイッチの操作が続いている
時1例えばサンルーフ開閉スイッチSSをオープン状態
になるように押し続けている時にはモーターの駆動停止
を行わないようにしている。
Furthermore, in this embodiment, when the operation switch continues to be operated (1), for example, when the sunroof opening/closing switch SS is kept being pressed so as to be in the open state, the drive of the motor is not stopped.

このため、たとえルーフパネル22が開のまま異常判定
により停止しても、操作スイッチを押し続ければモータ
ーは回転し、ルーフパネル22を閉じることができるの
で、雨の場合や盗難防止に役立つ。この操作を止めて、
通常のときでも操作スイッチを押しているときでないと
ルーフパネル22を移動できないようにするには、例え
ば第6図の一内を第10図のように変更すればよい。
Therefore, even if the roof panel 22 is left open and stopped due to abnormality determination, if the operation switch is kept pressed, the motor will rotate and the roof panel 22 can be closed, which is useful in case of rain or to prevent theft. Stop this operation and
In order to make it impossible to move the roof panel 22 unless the operation switch is pressed even in normal times, for example, the inside of FIG. 6 may be changed as shown in FIG. 10.

尚、本実施例では、サンルーフの制御について説明した
が、その他の開閉部材、例えば、第3図のような電動式
の窓の開閉装置にも応用できる。
In this embodiment, control of a sunroof has been described, but the present invention can also be applied to other opening/closing members, for example, an electric window opening/closing device as shown in FIG.

第3図において、車両のドアパネル30の窓枠31には
開閉自在に窓ガラス32が配設されている。窓ガラス3
2には、ドアパネル30に固定されモーター33の回転
に応じて窓ガラス32を上下移動させる昇降装置35が
配設されている。また、ドアパネル30には、窓ガラス
32の位置を検出するりミツトスイッチ34が配設され
ている。
In FIG. 3, a window glass 32 is provided in a window frame 31 of a door panel 30 of a vehicle so as to be openable and closable. window glass 3
2 is provided with a lifting device 35 that is fixed to the door panel 30 and moves the window glass 32 up and down in accordance with the rotation of a motor 33. Further, a door panel 30 is provided with a limit switch 34 for detecting the position of the window glass 32.

このような窓の開閉制御を行うには、前述のサンルーフ
の制御装置と類似の装置を用いればよい。
To perform such window opening/closing control, a device similar to the aforementioned sunroof control device may be used.

具体的には、第1図において、サンルーフ開閉スイッチ
SSを窓の開閉用のスイッチとして使用し、サンルーフ
傾動スイッチSTを削除し、更に第4図において、ステ
ップ80および81を削除し、第5図のステップ54,
55.58および5つを削除すればよい。これによれば
、窓の開閉用のスイッチを一度開方向に押せば、窓は開
方向に駆動され、閉方向に押せば、窓は閉方向に駆動さ
れる。
Specifically, in FIG. 1, the sunroof opening/closing switch SS is used as a switch for opening/closing the window, and the sunroof tilting switch ST is deleted, steps 80 and 81 are deleted in FIG. 4, and steps 80 and 81 are deleted in FIG. 5. step 54,
55, 58 and 5 should be deleted. According to this, once the window opening/closing switch is pushed in the opening direction, the window is driven in the opening direction, and when it is pushed in the closing direction, the window is driven in the closing direction.

ここで、窓と窓枠の間に物が挟まったり、モーターが故
障したりしてモーターに過f(荷がかかった場合には、
モーターの駆動が停止される。また、制御回路の認識す
るモーター電流値が異常に小さければ同様にモーターの
駆動が停止される。更に、制御回路の認識するモーター
電流値が小さくてモーターの駆動が停止された場合でも
、スイッチを押し続ければモーターは駆動される。
If something gets caught between the window and the window frame, or if the motor breaks down and the motor is overloaded,
Motor drive is stopped. Further, if the motor current value recognized by the control circuit is abnormally small, the drive of the motor is similarly stopped. Furthermore, even if the motor current value recognized by the control circuit is small and the drive of the motor is stopped, the motor will continue to be driven if the switch is held down.

〔発明の効果] 以」二説明したように、本発明によれば、モーターの電
流測定手段が故障しているときにはモーターの駆動が行
われなくなるため、電流測定手段が故障していてモータ
ーの過負荷検出が出来なくい場合にも、開閉部材に物が
挟まり危険な状態になることはない。
[Effects of the Invention] As explained below, according to the present invention, when the current measuring means of the motor is out of order, the motor is not driven. Even if the load cannot be detected, objects will not get caught in the opening/closing member, resulting in a dangerous situation.

更に、操作スイッチを有し、操作スイッチのオン操作に
応答してモーターを駆動し、この後操作スイッチがオフ
になった時モーターの電流を測定して測定値が低いとき
モーターを停止するようにすれば、操作スイッチを押し
続ければモーターの駆動は可能になるので、電流測定手
段が故障してモーターが停止したあとでも、開閉部材を
閉じることが可能になる。このため、雨がふりこんだり
、車両内の貴重品が盗難されたりといった事がなくなる
Furthermore, it has an operation switch, and drives the motor in response to the ON operation of the operation switch, and then measures the motor current when the operation switch is turned OFF, and stops the motor when the measured value is low. Then, the motor can be driven by continuing to press the operation switch, so the opening/closing member can be closed even after the current measuring means has failed and the motor has stopped. This prevents rain from pouring in or valuables inside the vehicle being stolen.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例のサンルーフの制御装置の回
路図である。 第2図は第1図の制御装置の外観図である。 第3図は他の実施例である窓の制御装置の外観図である
。 第4図〜第9図は第1図の制御装置のマイクロコンピュ
ータMCのフローチャー1−である。 第10図は第6図のフローチャートを部分的に変更した
実施例のフローチャートである。 ■・・・電源回路、 2・・・IGスイソヂ信号入力回路、 3・・・ブザー出力回路、 4・・・モーター駆動回路(モーター駆動手段)、5・
・・電流検出回路(電流測定手段)、6・・・回転盤、 11.12・・・サンルーフ開閉スイッチ信号入力回路
、 13.14・・・サンルーフ傾動スイッチ信号入力回路
、 15.16・・・リミットスイッチ信号入力回路、20
・・・ルーフ、 21・・・開口部、 22・・・ルーフパネル(開閉部材)、30・・・ドア
パネル、 31・・・窓枠、 32・・・窓ガラス(開閉部材)、 33・・・モーター(モーター)、 34・・・リミットスイッチ、 35・・・昇降装置、 MC・・・マイクロコンピュータ、 ステップ62,66.72,76.82,86゜92.
96・・・過負荷保護手段、 ステップ64〜66.74〜76.84〜86゜94〜
96,100・・・モーター駆動停止手段、 OR・・・オアゲート、 Qi  Q2.  Q3.  Ql  1.Qi2.Q
i3  ・ ・・トランジスタ、 RO〜R8R11〜R19・・・抵抗、DI  D2.
D3 ・ ・ ・ダイオード、ZD・・・ツェナーダイ
オード、 IPI〜IP15・・・入力端子、 OP1〜OP4・・・出力端子、 E・ ・ ・ハ・ンテリー IC・・・イグニッションスイッチ、 MS  RLI、RL2・・ ・リレー0P−−・オペ
アンプ、 A/D・・・アナログ−デジタルコンバータ、VCC・
・・電源電圧、 SS・・・サンルーフ開閉スイッチ(操作スイッチ)、 ST・・・サンルーフ傾動スイッチ(操作スイッチ)、 5OPN 、  5CLS 、  SUP、  SD匈
N ・・・端子、LSI  LS2 ・ ・−リミット
スイッチ、M・・ ・モーター(モーター)、 BZ・・・ブザー
FIG. 1 is a circuit diagram of a sunroof control device according to an embodiment of the present invention. FIG. 2 is an external view of the control device shown in FIG. 1. FIG. 3 is an external view of a window control device according to another embodiment. 4 to 9 are flowcharts 1- of the microcomputer MC of the control device shown in FIG. FIG. 10 is a flowchart of an embodiment in which the flowchart of FIG. 6 is partially modified. ■...Power supply circuit, 2...IG switch signal input circuit, 3...Buzzer output circuit, 4...Motor drive circuit (motor drive means), 5...
...Current detection circuit (current measurement means), 6... Turntable, 11.12... Sunroof opening/closing switch signal input circuit, 13.14... Sunroof tilting switch signal input circuit, 15.16... Limit switch signal input circuit, 20
... Roof, 21... Opening, 22... Roof panel (opening/closing member), 30... Door panel, 31... Window frame, 32... Window glass (opening/closing member), 33... - Motor (motor), 34...Limit switch, 35...Elevating device, MC...Microcomputer, Steps 62, 66.72, 76.82, 86°92.
96...Overload protection means, steps 64~66.74~76.84~86°94~
96,100...Motor drive stop means, OR...Or gate, Qi Q2. Q3. Ql 1. Qi2. Q
i3...Transistor, RO~R8R11~R19...Resistor, DI D2.
D3...Diode, ZD...Zener diode, IPI~IP15...Input terminal, OP1~OP4...Output terminal, E...H-INTELI IC...Ignition switch, MS RLI, RL2...・ ・Relay 0P --・Operational amplifier, A/D...Analog-digital converter, VCC・
...Power supply voltage, SS...Sunroof opening/closing switch (operation switch), ST...Sunroof tilting switch (operation switch), 5OPN, 5CLS, SUP, SD匈N...Terminal, LSI LS2...-Limit switch , M... Motor (motor), BZ... Buzzer

Claims (2)

【特許請求の範囲】[Claims] (1)車両上に配置された開閉部材、該開閉部材を駆動
するモーター、該モーターに流れる電流を測定する電流
測定手段、および該電流測定手段の測定電流が大きいと
き前記モーターの駆動を停止する過負荷保護手段、を備
える車両上の開閉部材の制御装置において、更に、前記
電流測定手段の測定電流値がモーター回転時にモーター
に流れる電流値に対し小さいとき、モーターの駆動を停
止するモーター駆動停止手段を備えた、車両上の開閉部
材の制御装置。
(1) An opening/closing member disposed on the vehicle, a motor for driving the opening/closing member, a current measuring means for measuring the current flowing through the motor, and stopping the driving of the motor when the measured current of the current measuring means is large. A control device for an opening/closing member on a vehicle, comprising an overload protection means, further comprising: a motor drive stopper that stops driving the motor when the current value measured by the current measuring means is smaller than the current value flowing through the motor when the motor rotates; A control device for an opening/closing member on a vehicle, comprising means.
(2)車両上に配置された開閉部材、該開閉部材を駆動
するモーター、該モーターに流れる電流を測定する電流
測定手段、該電流測定手段の測定電流が大きいとき前記
モーターの駆動を停止する過負荷保護手段、操作スイッ
チ、および該操作スイッチのオン操作に応答して前記モ
ーターを駆動するモーター駆動手段を備える車両上の開
閉部材の制御装置において、更に、前記操作スイッチの
オン操作後に該操作スイッチがオフになった時、前記電
流測定手段の測定電流値がモーター回転時にモーターに
流れる電流値に対し小さいとき、モーターの駆動を停止
するモーター駆動停止手段を備えた、車両上の開閉部材
の制御装置。
(2) An opening/closing member disposed on the vehicle, a motor that drives the opening/closing member, a current measuring means for measuring the current flowing through the motor, and an error that stops driving the motor when the current measured by the current measuring means is large. A control device for an opening/closing member on a vehicle, comprising a load protection means, an operation switch, and a motor drive means for driving the motor in response to an on-operation of the operation switch, further comprising: control of an opening/closing member on the vehicle, comprising a motor drive stop means for stopping the drive of the motor when the current value measured by the current measuring means is smaller than the value of the current flowing through the motor during rotation of the motor when the motor is turned off; Device.
JP63184395A 1988-07-22 1988-07-22 Control device for vehicle opening / closing member Expired - Fee Related JP2658220B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63184395A JP2658220B2 (en) 1988-07-22 1988-07-22 Control device for vehicle opening / closing member

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63184395A JP2658220B2 (en) 1988-07-22 1988-07-22 Control device for vehicle opening / closing member

Publications (2)

Publication Number Publication Date
JPH0235180A true JPH0235180A (en) 1990-02-05
JP2658220B2 JP2658220B2 (en) 1997-09-30

Family

ID=16152424

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63184395A Expired - Fee Related JP2658220B2 (en) 1988-07-22 1988-07-22 Control device for vehicle opening / closing member

Country Status (1)

Country Link
JP (1) JP2658220B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60141984A (en) * 1983-12-28 1985-07-27 アイシン精機株式会社 Automatic opening and closing apparatus of opening cover material
JPS6178984A (en) * 1984-09-26 1986-04-22 富士通株式会社 Power window safety apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60141984A (en) * 1983-12-28 1985-07-27 アイシン精機株式会社 Automatic opening and closing apparatus of opening cover material
JPS6178984A (en) * 1984-09-26 1986-04-22 富士通株式会社 Power window safety apparatus

Also Published As

Publication number Publication date
JP2658220B2 (en) 1997-09-30

Similar Documents

Publication Publication Date Title
JP2849293B2 (en) Power window device with safety device
JP3675632B2 (en) Power window device pinching detection method
CN111321973A (en) Opening/closing body control device, opening/closing body control system, power window device, and power window system
US4808894A (en) Power window device
JPH07224572A (en) Device for controlling power window for car
JPH0235180A (en) Controller for vehicle on-off member
JP3304581B2 (en) Power window control device for vehicles
JPH08331877A (en) Safety device of motor-driven window opening/closing mechanism for vehicle
JP3473582B2 (en) Motor drive
JPH0921273A (en) Opening/closing control device for opening/closing body
JP2003003742A (en) Open-close member controller and method for controlling open-close member
JP3889329B2 (en) Opening / closing member control apparatus and opening / closing member control method
JP3056934B2 (en) Opening / closing body opening / closing control method
JPS6118375A (en) Automatic opening and closing device of window for vehicle
JP2532041Y2 (en) Shutter control circuit
JPH0595694A (en) Switching device for vehicle
JP2017160708A (en) Opening-and-closing member control device
JP2003003741A (en) Open-close member controller and method for controlling open-close member
JP3568761B2 (en) Power window device with safety device
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
JPH0365472B2 (en)
JP4639553B2 (en) Opening and closing device for toilet seat and toilet lid
JP3315372B2 (en) Elevator door opening and closing control device
JPH0584353B2 (en)
JPH01192980A (en) Time differential type power window driver circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees