Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3211928B2 - Power window equipment - Google Patents
[go: Go Back, main page]

JP3211928B2 - Power window equipment - Google Patents

Power window equipment

Info

Publication number
JP3211928B2
JP3211928B2 JP02625395A JP2625395A JP3211928B2 JP 3211928 B2 JP3211928 B2 JP 3211928B2 JP 02625395 A JP02625395 A JP 02625395A JP 2625395 A JP2625395 A JP 2625395A JP 3211928 B2 JP3211928 B2 JP 3211928B2
Authority
JP
Japan
Prior art keywords
motor
window glass
open
count value
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP02625395A
Other languages
Japanese (ja)
Other versions
JPH08199909A (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.)
Yazaki Corp
Original Assignee
Yazaki Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yazaki Corp filed Critical Yazaki Corp
Priority to JP02625395A priority Critical patent/JP3211928B2/en
Publication of JPH08199909A publication Critical patent/JPH08199909A/en
Application granted granted Critical
Publication of JP3211928B2 publication Critical patent/JP3211928B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Window Of Vehicle (AREA)
  • Power-Operated Mechanisms For Wings (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、開閉スイッチの操作に
応じてモータにより窓ガラスを開閉させるパワーウィン
ド装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a power window device for opening and closing a window glass by a motor in response to an operation of an open / close switch.

【0002】[0002]

【従来の技術】一般に自動車には、乗用車に代表される
ように、ドアウィンド等の窓ガラスの開閉方向への移動
を開閉スイッチの操作に応じたモータの駆動により自動
的に行うパワーウィンド装置が広く採用されており、近
年では、ドアフレームと窓ガラスの間に物品や身体の一
部等の異物が挟まったか否かを検出し、異物の挟み込み
の検出時には挟み込み解除動作を行い、窓ガラスが開い
て挟み込み状態が解除されるようにモータを強制的に所
定量回転させる安全装置が徐々に付設されつつある。
2. Description of the Related Art Generally, a motor vehicle has a power window device, such as a passenger car, which automatically moves a window glass such as a door window in an opening / closing direction by driving a motor in accordance with an operation of an open / close switch. In recent years, it has been widely used, and in recent years, it has been detected whether or not a foreign object such as an article or a part of the body is caught between the door frame and the window glass. A safety device for forcibly rotating the motor by a predetermined amount so as to open and release the pinched state is gradually provided.

【0003】従来のパワーウィンドの安全装置の1つと
しては、実開平6−37483号公報の安全装置を備え
るパワーウィンド装置を挙げることができる。前記パワ
ーウィンド装置では、モータの回転に伴い90°位相が
異なるパルス信号を出力する2組のホール素子を設け、
このパルス信号の間隔時間から割り出した窓ガラスの開
閉の絶対速度が基準速度よりも遅いか、或は、前記間隔
時間の前後比から割り出した相対速度が所定の率よりも
大きく低下した場合に、異物を挟み込んでいるものと判
断している。
As one of conventional power window safety devices, there is a power window device provided with a safety device disclosed in Japanese Utility Model Laid-Open No. 6-37483. In the power window device, two sets of Hall elements that output pulse signals having a phase difference of 90 ° with the rotation of the motor are provided,
If the absolute speed of opening and closing the window glass determined from the interval time of the pulse signal is lower than the reference speed, or if the relative speed determined from the front-to-back ratio of the interval time is significantly lower than a predetermined rate, It is determined that a foreign object is interposed.

【0004】また、前記パワーウィンド装置では、窓ガ
ラスが閉じてモータが止まった時に、異物を挟み込んだ
ものと過って判断しないように、前記2組のホール素子
からのパルス信号の位相差によりモータの回転方向を検
出し、この回転方向に応じてホール素子からのパルス信
号をカウンタにおいてアップダウンカウントし、このカ
ウント値が、窓ガラスの全閉位置及びその近傍の安全制
御動作解除領域内に相当するカウント値の範囲内である
場合には、異物の挟み込みの検出動作を行わないように
している。
Further, in the power window device, when the window glass is closed and the motor stops, the phase difference between the pulse signals from the two sets of Hall elements is used so as not to judge that the foreign matter is trapped. The direction of rotation of the motor is detected, and the pulse signal from the Hall element is counted up and down by a counter in accordance with the direction of rotation, and this count value is in the fully closed position of the window glass and in the safety control operation release area in the vicinity thereof. If the count value is within the range of the corresponding count value, the detection operation of the foreign substance is not performed.

【0005】そして、前記パワーウィンド装置では、バ
ッテリの交換等により前記カウンタを構成するパワーウ
ィンド装置のマイクロコンピュータを初期設定する場合
等、カウンタのカウント値をリセットする必要がある場
合には、前記異物の挟み込みの検出動作を行わず、その
代わりに、操作後手を離しても窓ガラスが全閉位置に達
するまで上昇動作が継続されるオートアップスイッチの
操作を受け付けず、操作している間だけ窓ガラスの上昇
動作が継続されるマニュアルアップスイッチの操作のみ
を受け付けるように構成している。従って、前記カウン
ト値のリセットは、マニュアルアップスイッチを操作し
続けて窓ガラスを全閉位置側に上昇させ、前記カウンタ
のカウント値が安全制御動作解除領域内の値である状態
で、前記絶対速度が基準速度よりも遅く、且つ、前記相
対速度が所定の率よりも大きく低下した時に、窓ガラス
が全閉位置に達したものとして、前記カウント値を全閉
位置に相当する値「0」に設定し直すことで行われてい
た。
In the power window device, when the count value of the counter needs to be reset, for example, when the microcomputer of the power window device constituting the counter is initialized by replacing a battery or the like, the foreign matter is removed. It does not detect the pinching of the window.Instead, it does not accept the operation of the auto-up switch, which keeps raising the window glass until it reaches the fully closed position even if you release your hand after the operation. It is configured to receive only the operation of the manual up switch in which the rising operation of the glass is continued. Therefore, the reset of the count value is performed by continuously operating the manual up switch to raise the window glass to the fully closed position side, and when the count value of the counter is a value within the safety control operation release area, the absolute speed is reset. Is lower than the reference speed, and when the relative speed is significantly lower than a predetermined rate, it is determined that the window glass has reached the fully closed position, and the count value is set to a value “0” corresponding to the fully closed position. It was done by resetting.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、前記パ
ワーウィンド装置のように、マニュアルアップスイッチ
の操作を通常通り有効とすると、物心つかない子供のい
たずら等、意図せずマニュアルアップスイッチが操作さ
れた場合であっても、操作中は窓ガラスが全閉位置側に
無条件で上昇し続けるので、挟み込みの検出動作を行わ
ない前記カウント値のリセット時の動作としては、安全
面で万全を期すには若干の改良の余地があった。本発明
は前記事情に鑑みてなされたもので、本発明の目的は、
窓ガラスの開閉位置が不確定である場合等、挟み込みの
検出動作が行えない状態であっても、窓ガラスをマニュ
アルアップスイッチの操作により閉める際の、異物の挟
み込みに対する安全性を向上させることができるパワー
ウィンド装置を提供することにある。
However, if the operation of the manual up switch is made valid as usual, as in the case of the above-mentioned power window device, the manual up switch may be operated unintentionally, such as when a child is unconscious. Even during the operation, since the window glass continues to rise unconditionally to the fully closed position side, as the operation at the time of resetting the count value that does not perform the detection operation of the entrapment, in order to ensure safety, There was room for some improvement. The present invention has been made in view of the above circumstances, the object of the present invention,
It is possible to improve safety against entrapment of foreign matter when closing the windowpane by operating the manual up switch even when the detection operation of entrapment cannot be performed, such as when the open / close position of the windowpane is indeterminate. It is to provide a power window device which can be used.

【0007】[0007]

【課題を解決するための手段】前記目的を達成するため
本発明は、図1に基本構成図で示すように、開閉スイッ
チ13の操作に応じてモータ11により窓ガラス51を
開閉方向に移動させ、前記モータ11の回転に同期して
出力されるパルス信号PAのパルス数と該モータ11の
回転方向とにより、カウンタ手段15Aのカウント値C
Aを増減させて前記窓ガラス51の開閉位置に対応させ
るパワーウィンド装置において、前記窓ガラス51の開
閉位置に対して前記カウント値CAが対応しているか否
かを判別する判別手段15Bと、前記判別手段15Bの
判別結果を基に、前記窓ガラス51の開閉位置に対する
前記カウント値CAの非対応時に、前記開閉スイッチ1
3の操作による前記窓ガラス51の閉方向への前記モー
タ11の回転を、該モータ11の回転開始から所定時間
が経過した時点、及び、前記窓ガラス51が所定量移動
した時点のうち少なくとも一方の時点で停止させる移動
量規制手段15Cを設けたことを特徴とする。
According to the present invention, a window glass 51 is moved in the opening / closing direction by a motor 11 in response to the operation of an opening / closing switch 13 as shown in FIG. The count value C of the counter means 15A is determined by the number of pulses of the pulse signal PA output in synchronization with the rotation of the motor 11 and the rotation direction of the motor 11.
In a power window device for increasing or decreasing A to correspond to the open / close position of the window glass 51, a determination means 15B for determining whether or not the count value CA corresponds to the open / close position of the window glass 51; When the count value CA does not correspond to the open / close position of the window glass 51 based on the determination result of the determination means 15B, the open / close switch 1
The rotation of the motor 11 in the closing direction of the window glass 51 by the operation 3 is at least one of a time when a predetermined time has elapsed from the start of rotation of the motor 11 and a time when the window glass 51 has moved by a predetermined amount. The movement amount regulating means 15C that stops at the point of time is provided.

【0008】また、本発明は、前記窓ガラス51の開閉
位置に対する前記カウント値CAの非対応時に、前記閉
方向に前記モータ11を回転させるための前記開閉スイ
ッチ13の操作が解除された際、前記移動量規制手段1
5Cによる前記モータ11の回転停止を解除させる規制
解除手段15Dをさらに設けるものとした。
Further, the present invention is characterized in that when the operation of the open / close switch 13 for rotating the motor 11 in the closing direction is released when the count value CA does not correspond to the open / close position of the window glass 51, The movement amount restricting means 1
A regulation release means 15D for releasing the rotation stop of the motor 11 by 5C is further provided.

【0009】[0009]

【作用】本発明によれば、カウンタ手段15Aのカウン
ト値CAが窓ガラス51の開閉位置に対応しないと判別
手段15Bが判別した時、モータ11を開閉スイッチ1
3の操作により窓ガラス51が閉じる方向に回転させる
と、該モータ11の回転開始から所定時間が経過した時
点、及び、窓ガラス51が所定量移動した時点の少なく
とも一方の時点で、モータ11の回転が移動量規制手段
15Cにより停止される。従って、例えば、バッテリの
交換や、パルス信号PAの出力漏れ或は検出漏れ等によ
り、実際の窓ガラス51の開閉位置とカウント値CAの
間にずれが生じ、これを解消するために、窓ガラス51
を移動範囲の基準位置となる全閉位置に移動して、該全
閉位置に対応する所定の値にカウント値CAを設定し直
す必要がある場合等に、開閉スイッチ13を操作し続け
ても、モータ11の回転が移動量規制手段15Aにより
一定の時間、或は、移動量で停止され、特に、異物を挟
み込む可能性がある窓ガラス51の閉方向への移動が安
全に行えるようになる。
According to the present invention, when the determination means 15B determines that the count value CA of the counter means 15A does not correspond to the open / close position of the window glass 51, the motor 11 is turned on / off by the open / close switch 1.
When the window glass 51 is rotated in the closing direction by the operation of the motor 3, the motor 11 is turned off at least one of a time when a predetermined time has elapsed from the start of rotation of the motor 11 and a time when the window glass 51 has moved by a predetermined amount. The rotation is stopped by the movement amount restricting means 15C. Therefore, for example, due to the replacement of the battery or the output leak or detection leak of the pulse signal PA, a deviation occurs between the actual open / close position of the window glass 51 and the count value CA. 51
Is moved to the reference position of the movement range, the count value CA needs to be reset to a predetermined value corresponding to the reference position. The rotation of the motor 11 is stopped for a fixed time or by the movement amount by the movement amount regulating means 15A, and in particular, the movement of the window glass 51 in which the foreign matter may be caught in the closing direction can be safely performed. .

【0010】[0010]

【実施例】以下、本発明によるパワーウィンド装置の実
施例を図面に基づいて説明する。図2は本発明の一実施
例に係るパワーウィンド装置の概略構成を一部ブロック
で示す説明図で、図2中1はパワーウィンド機構、3は
異物の挟み込みを検出、解除する挟み込み検出解除装置
をそれぞれ示す。前記パワーウィンド機構1は、ドア5
の窓ガラス51を開閉するもので、窓ガラス51開閉駆
動用のモータ11と、前記窓ガラス51を開閉させる際
に操作される開閉スイッチ13と、該開閉スイッチ13
の操作に応じてモータ11が窓ガラス51の開閉方向に
回転するように制御するマイクロコンピュータ(以下、
マイコンと略記する)15等で構成されている。前記挟
み込み検出解除装置3はモータ11の回転数に応じたモ
ータパルス信号を出力するパルス発生器31と前記マイ
コン15等で構成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a power window device according to the present invention will be described below with reference to the drawings. FIG. 2 is an explanatory view showing a schematic configuration of a power window device according to an embodiment of the present invention by partial blocks. In FIG. 2, reference numeral 1 denotes a power window mechanism, and 3 denotes a pinch detection release device for detecting and releasing pinching of foreign matter. Are respectively shown. The power window mechanism 1 includes a door 5
A motor 11 for opening and closing the window glass 51, an open / close switch 13 operated to open and close the window glass 51, and an open / close switch 13
A microcomputer that controls the motor 11 to rotate in the opening and closing direction of the window glass 51 in response to the operation of
15 (abbreviated as a microcomputer). The pinch detection canceling device 3 includes a pulse generator 31 that outputs a motor pulse signal corresponding to the number of rotations of the motor 11, the microcomputer 15, and the like.

【0011】前記開閉スイッチ13は、例えば前記ドア
5の内側のひじ掛け部(図示せず)上面に配設されてお
り、前後に傾倒可能な従来公知のシーソー式の操作ボタ
ン(図示せず)を有する自己復帰型メカニカルスイッチ
からなる。前記開閉スイッチ13は、前記操作ボタンを
前方に倒すように操作することで、窓ガラス51を全閉
位置側に上昇させるための上昇要求信号13aを出力
し、前記操作ボタンを後方に倒すように操作すること
で、窓ガラス51を全開位置側に下降させるための下降
要求信号13bを出力するように構成されている。
The open / close switch 13 is disposed, for example, on the upper surface of an armrest (not shown) inside the door 5 and includes a conventionally known seesaw type operation button (not shown) which can be tilted back and forth. And a self-returning mechanical switch. The open / close switch 13 outputs a rising request signal 13a for raising the window glass 51 to the fully closed position side by operating the operation button so as to tilt forward, and tilts the operation button backward. By operating, a lowering request signal 13b for lowering the window glass 51 to the fully open position side is output.

【0012】前記パルス発生器31は、前記モータ11
の外側に配設されており、該パルス発生器31は、図3
に示すように、第1及び第2の2つのセンサ31a,3
1bを有している。前記第1及び第2センサ31a,3
1bはそれぞれ、所定方向への磁界がかかると起電力を
生じるホールIC31c,31dと、各ホールIC31
c,31dの起電力をデジタル変換するA/Dコンバー
タ31e,31fとを有しており、前記ホールIC31
c,31dは、前記モータ11の出力軸11aの径方向
において該出力軸11aからの距離が等しく、且つ、該
出力軸11aの周方向に90°位置をずらした箇所にそ
れぞれ配設されている。
The pulse generator 31 is connected to the motor 11
, And the pulse generator 31 is
As shown in the figure, the first and second two sensors 31a, 3
1b. The first and second sensors 31a, 31
1b, Hall ICs 31c and 31d that generate an electromotive force when a magnetic field in a predetermined direction is applied, and Hall ICs 31c and 31d, respectively.
and A / D converters 31e and 31f for digitally converting the electromotive force of the Hall ICs 31 and 31d.
The reference numerals c and 31d are disposed at locations where the distance from the output shaft 11a is equal in the radial direction of the output shaft 11a of the motor 11, and the positions of which are shifted by 90 ° in the circumferential direction of the output shaft 11a. .

【0013】前記パルス発生器31は、前記出力軸11
aに固着されたマグネット17の作る磁界がモータ11
の回転により変化するのに伴い、各ホールIC31c,
31dに起電力がそれぞれ生じ、この起電力により、図
4に示すように、第1及び第2センサ31a,31bが
デューティー比50%の第1及び第2パルス信号Pa,
Pbを、モータ11が1周回転する毎にそれぞれ1回ず
つ出力するように構成されている。
The pulse generator 31 is connected to the output shaft 11.
The magnetic field created by the magnet 17 fixed to the
As each of the Hall ICs 31c,
An electromotive force is generated in each of the first and second sensors 31a and 31b by the electromotive force, as shown in FIG.
Pb is configured to be output once each time the motor 11 makes one rotation.

【0014】尚、図4中の上段は第1センサ31aから
の第1パルス信号Pa、下段は第2センサ31bからの
第2パルス信号Pbを示し、図4中矢印イは、前記窓ガ
ラス51が全閉位置側に上昇する方向にモータ11が回
転した時の、前記第1及び第2パルス信号Pa,Pbの
出力方向、矢印ロは、窓ガラス51が全開位置側に下降
する方向にモータ11が回転した時の、前記第1及び第
2パルス信号Pa,Pbの出力方向をそれぞれ示してい
る。この図4からも明らかなように、窓ガラス51の上
昇時には、第1センサ31aからの第1パルス信号Pa
の位相が第2センサ31bからの第2パルス信号Pbの
位相よりも90°先行し、窓ガラス51の下降時には、
第2センサ31bからの第2パルス信号Pbの位相が第
1センサ31aからの第1パルス信号Paの位相よりも
90°先行する。
4 shows the first pulse signal Pa from the first sensor 31a, and the lower part of FIG. 4 shows the second pulse signal Pb from the second sensor 31b. When the motor 11 rotates in the direction to move to the fully closed position side, the output directions of the first and second pulse signals Pa and Pb, and arrow B indicate the direction in which the window glass 51 moves down to the fully open position side. 11 shows output directions of the first and second pulse signals Pa and Pb when the rotation of the motor 11 is performed. As is clear from FIG. 4, when the window glass 51 rises, the first pulse signal Pa from the first sensor 31a is output.
Is 90 ° ahead of the phase of the second pulse signal Pb from the second sensor 31b, and when the window glass 51 descends,
The phase of the second pulse signal Pb from the second sensor 31b precedes the phase of the first pulse signal Pa from the first sensor 31a by 90 °.

【0015】次に、前記マイコン15のハードウェア構
成について、図5のブロック図を参照して説明する。前
記マイコン15は、CPU(Central Processing Unit
、中央処理装置)15aと、RAM(Random Access M
emory)15bと、ROM(Read-Only Memory)15c
とで構成されている。
Next, the hardware configuration of the microcomputer 15 will be described with reference to the block diagram of FIG. The microcomputer 15 includes a CPU (Central Processing Unit).
, Central processing unit) 15a and RAM (Random Access M)
emory) 15b and ROM (Read-Only Memory) 15c
It is composed of

【0016】前記CPU15aには、出力インタフェー
ス15d及びドライバ15eを介して前記モータ11が
接続されており、また、入力ポート15fを介して前記
開閉スイッチ13と第1及び第2センサ31a,31b
がそれぞれ接続されている。前記RAM15bは、図6
にメモリエリアマップで示すように、各種データ記憶用
のデータエリア及び各種処理作業に用いるワークエリア
を有し、このうちワークエリアには、演算、第1乃至第
4位置カウンタ、第1及び第2上昇量カウンタ、片側セ
ンサ故障診断用カウンタ(以下、片側カウンタと略記す
る)、第1及び第2検出タイミングバッファ、第1及び
第2周期バッファ、第1及び第2速度バッファ、第1及
び第2減速度バッファ、第1乃至第6経過時間計測タイ
マ、位置確定フラグの各エリアが設けられている。前記
ROM15cには、CPU15aに各種処理動作を行わ
せるための制御プログラムが格納されている。
The motor 11 is connected to the CPU 15a via an output interface 15d and a driver 15e. The open / close switch 13 and first and second sensors 31a and 31b are connected via an input port 15f.
Are connected respectively. The RAM 15b is configured as shown in FIG.
As shown by a memory area map, the data area has a data area for storing various data and a work area used for various processing operations. Of these, the work area includes an operation, a first to a fourth position counter, a first and a second rising counter. Quantity counter, one-side sensor failure diagnosis counter (hereinafter abbreviated as one-side counter), first and second detection timing buffers, first and second period buffers, first and second speed buffers, first and second reductions Areas for a speed buffer, first to sixth elapsed time measurement timers, and a position determination flag are provided. The ROM 15c stores a control program for causing the CPU 15a to perform various processing operations.

【0017】次に、前記ROM15cに格納された制御
プログラムに従いCPU15aが行う処理について、図
7乃至図13のフローチャートを参照して説明する。マ
イコン15が起動してプログラムがスタートすると、図
7に示すように、CPU15aは、開閉スイッチ13か
ら上昇要求信号13a及び下降要求信号13bの両信号
のうちどちらかの出力があるか否かを確認し(ステップ
S1)、両信号とも出力がない場合は(ステップS1で
N)、ドライバ15eへのモータ11上昇及び下降駆動
信号Ma,Mbの出力を停止する(ステップS3)。そ
して、RAM15bの片側カウンタエリアのカウント値
Ccをゼロリセットし(ステップS5)、RAM15b
の第1経過時間計測タイマエリアにおける、上昇要求信
号13aの出力開始からの経過時間である第1経過時間
Tuの計測を停止してゼロリセットした後(ステップS
7)、ステップS17に進む。
Next, the processing performed by the CPU 15a in accordance with the control program stored in the ROM 15c will be described with reference to the flowcharts of FIGS. When the microcomputer 15 is started and the program is started, as shown in FIG. 7, the CPU 15a checks whether or not there is an output of either the rising request signal 13a or the falling request signal 13b from the open / close switch 13. Then, if neither signal is output (N in step S1), the output of the motor 11 ascending and descending drive signals Ma and Mb to the driver 15e is stopped (step S3). Then, the count value Cc of the one side counter area of the RAM 15b is reset to zero (step S5), and the RAM 15b
After the measurement of the first elapsed time Tu, which is the elapsed time from the start of output of the rising request signal 13a, is stopped in the first elapsed time measurement timer area of FIG.
7), and proceed to step S17.

【0018】また、上昇要求信号13a及び下降要求信
号13bの両信号のうちどちらかの出力がある場合は
(ステップS1でY)、出力されている信号が上昇要求
信号13aであるか否かを確認し(ステップS9)、上
昇要求信号13aである場合は(ステップS9でY)、
前記第1経過時間計測タイマエリアにおいて第1経過時
間Tuの計測を開始する(ステップS11)。そして、
窓ガラス51を閉じる上昇方向にモータ11を回転させ
る上昇駆動信号Maをドライバ15eに出力した後(ス
テップS13)、ステップS17に進む。一方、上昇要
求信号13aでない場合は(ステップS9でN)、窓ガ
ラス51を開く下降方向にモータ11を回転させる下降
駆動信号Mbをドライバ15eに出力して(ステップS
15)、ステップS17に進む。
If either of the rising request signal 13a and the falling request signal 13b is output (Y in step S1), it is determined whether the output signal is the rising request signal 13a. It is confirmed (step S9), and when the signal is the rising request signal 13a (Y in step S9),
The measurement of the first elapsed time Tu is started in the first elapsed time measurement timer area (step S11). And
After outputting the ascending drive signal Ma for rotating the motor 11 in the ascending direction to close the window glass 51 to the driver 15e (step S13), the process proceeds to step S17. On the other hand, if the signal is not the rising request signal 13a (N in step S9), a lowering driving signal Mb for rotating the motor 11 in the lowering direction of opening the window glass 51 is output to the driver 15e (step S9).
15), and proceed to step S17.

【0019】ステップS17では、第1センサ31aか
らの第1パルス信号Paの立ち上がり又は立ち下がりの
エッジを検出したか否かを確認し、検出した場合には
(ステップS17でY)、後述する第1センサパルス検
出割込処理を行った後(ステップS19)、ステップS
21に進み、検出しなかった場合は(ステップS17で
N)、ステップS19をスキップしてステップS21に
進む。
In step S17, it is checked whether or not a rising or falling edge of the first pulse signal Pa from the first sensor 31a has been detected, and if it has been detected (Y in step S17), a step S17 will be described later. After performing the one-sensor pulse detection interrupt process (step S19), the process proceeds to step S19.
The process proceeds to step S21, and if not detected (N in step S17), skips step S19 and proceeds to step S21.

【0020】前記ステップS19の第1センサパルス検
出割込処理処理では、図12に示すように、まず、ステ
ップS19aで、第1パルス信号Paの立ち上がり又は
立ち下がりのエッジを検出した時点Tan を、RAM1
5bの第1検出タイミングバッファエリアに格納し、続
くステップS19bで、RAM15bの第2経過時間計
測タイマエリアにおける、前記時点Tan から次の第1
パルス信号Paの立ち上がり又は立ち下がりのエッジを
検出する時点Tan+1 までの経過時間である第2経過時
間Taの計測を停止してゼロリセットする。さらに、前
記第2経過時間計測タイマエリアにおいて第2経過時間
Taの計測を開始し(ステップS19c)、続いて、前
記時点Tan での第1及び第2パルス信号Pa,Pbの
出力レベルが等しいか否かを確認する(ステップS19
d)。
[0020] In the first sensor pulse detection interrupt processing process in the step S19, as shown in FIG. 12, first, at step S19a, the time Ta n which detects a rising or falling edge of the first pulse signal Pa , RAM1
Stored in the first detection timing buffer area 5b, the following step S19b, the in the second elapsed time measuring timer area RAM 15b, from the time Ta n the following 1
The measurement of the second elapsed time Ta, which is the elapsed time up to the time Tan + 1 when the rising or falling edge of the pulse signal Pa is detected, is stopped and reset to zero. Further, in the second elapsed time measuring timer area to start measuring the second elapsed time Ta (step S19c), followed by first and second pulse signal Pa at the time Ta n, the output level of Pb is equal to (Step S19)
d).

【0021】第1及び第2パルス信号Pa,Pbの出力
レベルが等しい場合は(ステップS19dでY)、RA
M15bの第1位置カウンタエリアのカウント値Caを
「1」インクリメントした後(ステップS19e)、ス
テップS19gに進み、出力レベルが等しくない場合は
(ステップS19dでN)、前記カウント値Caを
「1」デクリメントした後(ステップS19f)、ステ
ップS19gに進む。ステップS19gでは、RAM1
5bの演算エリアにおいて、前記第1位置カウンタエリ
アのカウント値Caから、後述するRAM15bの第2
位置カウンタエリアのカウント値Cbを差し引いた差値
Cを求め、次に、この差値Cの絶対値が基準差値NDIFF
以上であるか否かを確認する(ステップS19h)。
If the output levels of the first and second pulse signals Pa and Pb are equal (Y in step S19d), RA
After incrementing the count value Ca of the first position counter area of M15b by “1” (step S19e), the process proceeds to step S19g. If the output levels are not equal (N in step S19d), the count value Ca is set to “1”. After decrementing (step S19f), the process proceeds to step S19g. In step S19g, RAM1
In the calculation area 5b, a second value of the RAM 15b to be described later is calculated based on the count value Ca of the first position counter area.
A difference value C obtained by subtracting the count value Cb of the position counter area is obtained, and then the absolute value of the difference value C is used as a reference difference value N DIFF
It is confirmed whether or not it is above (step S19h).

【0022】尚、前記第1及び第2位置カウンタエリア
の各カウント値Ca,Cbは、窓ガラス51が閉じる方
向に上昇すれば減少し、反対に、窓ガラス51が開く方
向に下降すれば増加する。そして、前記各カウント値C
a,Cbは、窓ガラス51が全閉位置にあるときに
「0」となり、全開位置にあるときに「N」となる。ま
た、前記第1及び第2パルス信号Pa,Pbは、モータ
11が1周回転する毎に位相を90°ずらして1回ずつ
出力されるので、前記第1及び第2センサ31a,31
bが共に正常に動作している限り、前記差値Cの絶対値
は「0」又は「1」となる。従って、前記基準差値N
DIFFは「2」に設定してもよいが、本実施例では、ノイ
ズにより発生した偽の第1や第2パルス信号Pa,Pb
の立ち上がりをカウントした場合等を想定し、多少のマ
ージンを含めて、基準差値NDIFFを「3」に設定してい
る。
Each of the count values Ca and Cb in the first and second position counter areas decreases when the window glass 51 increases in the closing direction, and increases when the window glass 51 decreases in the opening direction. I do. Then, the respective count values C
“a” and “Cb” become “0” when the window glass 51 is in the fully closed position, and become “N” when the window glass 51 is in the fully opened position. The first and second pulse signals Pa and Pb are output once each with a phase shift of 90 ° each time the motor 11 rotates once, so that the first and second sensors 31a and 31b are output.
As long as both b operate normally, the absolute value of the difference value C is “0” or “1”. Therefore, the reference difference value N
DIFF may be set to “2”, but in this embodiment, the false first and second pulse signals Pa and Pb generated by noise are used.
Assuming a case where the rising edge is counted, the reference difference value N DIFF is set to “3” including some margin.

【0023】そして、前記差値Cが基準差値NDIFF以上
でない場合は(ステップS19hでN)、ステップS1
9nに進み、基準差値NDIFF以上である場合は(ステッ
プS19hでY)、前記カウント値Caがカウント値C
bよりも大きいか否かを確認する(ステップS19
j)。カウント値Caがカウント値Cbよりも大きい場
合は(ステップS19jでY)、カウント値Caをカウ
ント値Cbと同じ値に補正した後(ステップS19
k)、ステップS19nに進み、カウント値Caがカウ
ント値Cbよりも大きくない場合は(ステップS19j
でN)、カウント値Cbをカウント値Caと同じ値に補
正した後(ステップS19m)、ステップS19nに進
む。
If the difference value C is not equal to or larger than the reference difference value N DIFF (N in step S19h), the process proceeds to step S1.
9n, if the difference is equal to or greater than the reference difference value N DIFF (Y in step S19h), the count value Ca
It is checked whether it is larger than b (step S19)
j). When the count value Ca is larger than the count value Cb (Y in step S19j), the count value Ca is corrected to the same value as the count value Cb (step S19).
k), the process proceeds to step S19n, and if the count value Ca is not larger than the count value Cb (step S19j)
N), the count value Cb is corrected to the same value as the count value Ca (step S19m), and the process proceeds to step S19n.

【0024】ステップS19nでは、上昇駆動信号Ma
又は下降駆動信号Mbを出力しているか否かを確認し、
出力していない場合は(ステップS19nでN)、図7
のフローチャートのステップS21に進み、出力してい
れば(ステップS19nでY)、第1及び第2センサ3
1a,31bのうちの一方が故障しているか否かを確認
するための、RAM15bの片側カウンタエリアのカウ
ント値Ccを「1」インクリメントし(ステップS19
p)、カウント値Ccの絶対値が異常判別基準値N
ABNORM以上であるか否かを確認する(ステップS19
r)。
In step S19n, the rising drive signal Ma
Or, confirm whether or not the descending drive signal Mb is output,
If not output (N in step S19n), FIG.
The process proceeds to step S21 in the flowchart of (1), and if the output is performed (Y in step S19n), the first and second sensors 3
The count value Cc of the one-sided counter area of the RAM 15b is incremented by "1" to confirm whether one of 1a and 31b is out of order (step S19).
p), the absolute value of the count value Cc is equal to the abnormality determination reference value N
It is checked whether it is ABNORM or more (step S19)
r).

【0025】尚、前記片側カウンタエリアのカウント値
Ccは、第1パルス信号Paの出力毎に「1」ずつイン
クリメントされ、且つ、後述するように、第2パルス信
号Pbの出力毎に「1」ずつデクリメントされる。そし
て、前記第1及び第2パルス信号Pa,Pbの立ち上が
り及び立ち下がりのエッジは、図4に示すように、前記
第1及び第2センサ31a,31bが共に正常に動作し
ている限り交互に発生し、従って、前記カウント値Cc
の絶対値は「0」又は「1」となる。しかも、前記カウ
ント値Ccは、上昇駆動信号Ma及び下降駆動信号Mb
の出力が停止されるとゼロリセットされる。このため、
前記異常判別基準値NABNORMは「2」に設定してもよい
が、本実施例では、上昇駆動信号Ma及び下降駆動信号
Mbの1回の出力で、前記第1及び第2センサ31a,
31bからの第1及び第2パルス信号Pa,Pbが、ど
ちらか一方だけ連続して出力されていない場合に限っ
て、前記挟み込み検出処理動作が行われるように、前記
異常判別基準値NABNORMを「10」に設定している。
The count value Cc of the one-sided counter area is incremented by "1" every time the first pulse signal Pa is output, and is "1" every time the second pulse signal Pb is output, as described later. It is decremented by one. As shown in FIG. 4, the rising and falling edges of the first and second pulse signals Pa and Pb alternate as long as both the first and second sensors 31a and 31b operate normally. Occurs and therefore the count value Cc
Is “0” or “1”. Moreover, the count value Cc is determined by the rising drive signal Ma and the falling drive signal Mb.
When the output of is stopped, it is reset to zero. For this reason,
Although the abnormality determination reference value N ABNORM may be set to “2”, in the present embodiment, the first and second sensors 31a, 31a are output by one output of the rising drive signal Ma and the falling drive signal Mb.
The abnormality determination reference value N ABNORM is set such that the entrapment detection processing operation is performed only when one of the first and second pulse signals Pa and Pb from 31b is not continuously output. It is set to “10”.

【0026】そして、前記カウント値Ccの絶対値が異
常判別基準値NABNORM以上でない場合は(ステップS1
9rでN)、ステップS21に進み、異常判別基準値N
ABNORM以上である場合は(ステップS19rでY)、第
1及び第2センサ31a,31bのうちどちらか一方が
故障しており、カウント値Ca,Cbのうちどちらか一
方が不確定であるものとして、RAM15bの位置確定
フラグエリアのフラグFを「0」に設定し(ステップS
19t)、ステップS21に進む。
If the absolute value of the count value Cc is not equal to or larger than the abnormality determination reference value N ABNORM (step S1).
N at 9r), the process proceeds to step S21, and the abnormality determination reference value N
If it is equal to or greater than ABNORM (Y in step S19r), it is determined that one of the first and second sensors 31a and 31b has failed and one of the count values Ca and Cb is indeterminate. The flag F in the position determination flag area of the RAM 15b is set to "0" (Step S).
19t), and proceed to step S21.

【0027】図7に示すように、ステップS21では、
第2センサ31bからの第2パルス信号Pbの立ち上が
り又は立ち下がりのエッジを検出したか否かを確認し、
検出した場合には(ステップS21でY)、後述する第
2センサパルス検出割込処理処理を行った後(ステップ
S23)、ステップS25に進み、検出しなかった場合
は(ステップS21でN)、ステップS23をスキップ
してステップS25に進む。
As shown in FIG. 7, in step S21,
It is checked whether the rising edge or the falling edge of the second pulse signal Pb from the second sensor 31b has been detected,
If detected (Y in step S21), after performing a second sensor pulse detection interrupt process (to be described later) (step S23), the process proceeds to step S25. If not detected (N in step S21), The process skips step S23 and proceeds to step S25.

【0028】前記ステップS23の第2センサパルス検
出割込処理処理では、図13に示すように、まず、ステ
ップS23aで、第2パルス信号Pbの立ち上がり又は
立ち下がりのエッジを検出した時点Tbn を、RAM1
5bの第2検出タイミングバッファエリアに格納し、続
くステップS23bで、RAM15bの第3経過時間計
測タイマエリアにおける、前記時点Tbn から次の第2
パルス信号Pbの立ち上がり又は立ち下がりのエッジを
検出する時点Tbn+1 までの経過時間である第3経過時
間Tbの計測を停止してゼロリセットする。さらに、前
記第3経過時間計測タイマエリアにおいて第3経過時間
Tbの計測を開始し(ステップS23c)、続いて、前
記時点Tbn での第1及び第2パルス信号Pa,Pbの
出力レベルが異なっているか否かを確認する(ステップ
S23d)。第1及び第2パルス信号Pa,Pbの出力
レベルが異なっている場合は(ステップS23dで
Y)、前記第2位置カウンタエリアのカウント値Cbを
「1」インクリメントした後(ステップS23e)、ス
テップS23gに進み、出力レベルが異なっていない、
即ち、等しい場合は(ステップS23dでN)、第2位
置カウンタエリアのカウント値Cbを「1」デクリメン
トした後(ステップS23f)、ステップS23gに進
む。
In the second sensor pulse detection interrupt processing at step S23, as shown in FIG. 13, first, at step S23a, the time Tb n at which the rising or falling edge of the second pulse signal Pb is detected is determined. , RAM1
5b, and in the subsequent step S23b, in the third elapsed time measurement timer area of the RAM 15b, the next second time from the time Tb n
The measurement of the third elapsed time Tb, which is the elapsed time until the time Tb n + 1 at which the rising or falling edge of the pulse signal Pb is detected, is stopped and reset to zero. Further, in the third elapsed time measuring timer area to start measuring the third elapsed time Tb (step S23c), followed by first and second pulse signal Pa at the time point Tb n, the output level of Pb different It is checked whether or not it has been performed (step S23d). If the output levels of the first and second pulse signals Pa and Pb are different (Y in step S23d), the count value Cb of the second position counter area is incremented by "1" (step S23e), and then step S23g. And the output level is not different,
That is, if they are equal (N in step S23d), the count value Cb of the second position counter area is decremented by "1" (step S23f), and the process proceeds to step S23g.

【0029】ステップS23gでは、前記ステップS1
9gと同様に、演算エリアにおいて、前記第1位置カウ
ンタエリアのカウント値Caから第2位置カウンタのカ
ウント値Cbを差し引いた差値Cを求め、次に、この差
値Cの絶対値が基準差値NDIFF以上であるか否かを確認
する(ステップS23h)。そして、基準差値NDIFF
上でない場合は(ステップS23hでN)、ステップS
23nに進み、基準差値NDIFF以上である場合は(ステ
ップS23hでY)、前記ステップS19jと同様に、
前記カウント値Caがカウント値Cbよりも大きいか否
かを確認する(ステップS23j)。カウント値Caが
カウント値Cbよりも大きい場合は(ステップS23j
でY)、カウント値Caをカウント値Cbと同じ値に補
正した後(ステップS23k)、ステップS23nに進
み、カウント値Caがカウント値Cbよりも大きくない
場合は(ステップS23jでN)、カウント値Cbをカ
ウント値Caと同じ値に補正した後(ステップS23
m)、ステップS23nに進む。
In step S23g, step S1 is executed.
9g, a difference value C is obtained in the calculation area by subtracting the count value Cb of the second position counter from the count value Ca of the first position counter area, and then the absolute value of the difference value C is used as the reference difference. It is checked whether the value is equal to or more than the value N DIFF (step S23h). If it is not equal to or greater than the reference difference value N DIFF (N in step S23h),
23n, and when the difference is equal to or larger than the reference difference value N DIFF (Y in step S23h), similar to step S19j,
It is determined whether or not the count value Ca is larger than the count value Cb (step S23j). When the count value Ca is larger than the count value Cb (step S23j
Y), after the count value Ca is corrected to the same value as the count value Cb (step S23k), the process proceeds to step S23n. If the count value Ca is not greater than the count value Cb (N in step S23j), the count value Ca is corrected. After correcting Cb to the same value as the count value Ca (step S23)
m), and proceeds to step S23n.

【0030】ステップS23nでは、前記ステップS1
9nと同様に、上昇駆動信号Ma又は下降駆動信号Mb
を出力しているか否かを確認し、出力していない場合は
(ステップS23nでN)、図7のフローチャートのス
テップS25に進み、出力していれば(ステップS23
nでY)、前記片側カウンタエリアのカウント値Ccを
「1」デクリメントし(ステップS23p)、カウント
値Ccの絶対値が異常判別基準値NABNORM以上であるか
否かを確認する(ステップS23r)。カウント値Cc
の絶対値が異常判別基準値NABNORM以上でない場合は
(ステップS23rでN)、ステップS25に進み、異
常判別基準値NABNORM以上である場合は(ステップS2
3rでN)、第1及び第2センサ31a,31bのうち
どちらか一方が故障しているものとして、前記位置確定
フラグエリアのフラグFを「0」に設定し(ステップS
23t)、ステップS25に進む。
At step S23n, at step S1
9n, the ascending drive signal Ma or the descending drive signal Mb
It is confirmed whether or not is output. If it is not output (N in step S23n), the process proceeds to step S25 in the flowchart of FIG. 7, and if it is output (step S23).
n, Y), the count value Cc of the one-sided counter area is decremented by "1" (step S23p), and it is confirmed whether or not the absolute value of the count value Cc is equal to or greater than the abnormality determination reference value N ABNORM (step S23r). . Count value Cc
If the absolute value of is not more than the abnormality determination reference value N ABNORM (N in step S23r), the process proceeds to step S25, and if it is more than the abnormality determination reference value N ABNORM (step S2).
3r, N), assuming that one of the first and second sensors 31a, 31b has failed, the flag F in the position determination flag area is set to "0" (step S).
23t), and proceed to step S25.

【0031】図7に示すように、ステップS25では、
前記下降駆動信号Mbを出力しているか否かを確認し、
出力していない場合は(ステップS25でN)、ステッ
プS37に進み、出力している場合は(ステップS25
でY)、前記第2経過時間計測タイマエリアの第2経過
時間Taが、全開全閉確認時間TLOCK(本実施例では
0.5sec=秒)以上であるか否かを確認する(ステ
ップS27)。前記第2経過時間Taが全開全閉確認時
間TLOCK以上でない場合は(ステップS27でN)、ス
テップS1にリターンし、全開全閉確認時間TLOCK以上
である場合は(ステップS27でY)、前記第3経過時
間計測タイマエリアの第3経過時間Tbが、全開全閉確
認時間TLOCK以上であるか否かを確認する(ステップS
29)。
As shown in FIG. 7, in step S25,
Check whether the lowering drive signal Mb is output,
If it is not output (N in step S25), the process proceeds to step S37, and if it is output (step S25).
Y), it is determined whether or not the second elapsed time Ta in the second elapsed time measurement timer area is equal to or longer than the fully open / closed confirmation time T LOCK (0.5 sec = second in this embodiment) (step S27). ). If the second elapsed time Ta is not equal to or longer than the full-open and full-close confirmation time T LOCK (N in step S27), the process returns to step S1. If the second elapsed time Ta is equal to or longer than the full-open and full-close confirmation time T LOCK (Y in step S27), It is determined whether or not the third elapsed time Tb in the third elapsed time measurement timer area is equal to or longer than the fully open / closed confirmation time T LOCK (step S).
29).

【0032】前記第3経過時間Tbが全開全閉確認時間
LOCK以上でない場合は(ステップS29でN)、ステ
ップS1にリターンし、全開全閉確認時間TLOCK以上で
ある場合は(ステップS29でY)、下降駆動信号Mb
の出力を停止し(ステップS31)、片側カウンタエリ
アのカウント値Ccをゼロリセットした後(ステップS
33)、前記開閉スイッチ13から下降要求信号13b
が出力されているか否かを確認する(ステップS3
5)。下降要求信号13bが出力されている場合は(ス
テップS35でY)、出力されなくなるまでステップS
35をリピートし、出力されていない場合は(ステップ
S35でN)、ステップS1にリターンする。
If the third elapsed time Tb is not equal to or longer than the full-open fully closed confirmation time T LOCK (N in step S29), the process returns to step S1, and if the third elapsed time Tb is longer than the full-open fully closed confirmation time T LOCK (step S29). Y), falling drive signal Mb
Is stopped (step S31), and the count value Cc of the one-sided counter area is reset to zero (step S31).
33), a lowering request signal 13b from the open / close switch 13
It is determined whether or not is output (step S3).
5). If the descending request signal 13b has been output (Y in step S35), step S is executed until the signal is no longer output.
35 is repeated, and if no data is output (N in step S35), the process returns to step S1.

【0033】ステップS37では、図8に示すように、
前記上昇駆動信号Maを出力しているか否かを確認し、
出力していない場合は(ステップS37でN)、ステッ
プS1にリターンし、出力している場合は(ステップS
37でY)、前記位置確定フラグエリアのフラグFが
「0」であるか否かを確認し(ステップS38)、
「0」である場合は(ステップS38でY)、後述する
図13のステップS125に進み、「0」でない場合は
(ステップS38でN)、ステップS39に進む。ステ
ップS39では、前記第1位置カウンタエリアのカウン
ト値Caが、境界値NDET 以上であるか否かを確認す
る。前記境界値NDET は、図14に示すように、ドア5
のウェザーストリップ53と窓ガラス51との隙間がな
くなる境界位置DL、即ち、全閉位置における窓ガラス
51の上端51aから13mm下方の、ウェザーストリ
ップ53の外側下端面53aと同一高さ箇所に前記上端
51aが位置している時の、前記第1及び第2位置カウ
ンタエリアの正しいカウント値Ca,Cbに相当する値
で、本実施例では、前記境界値NDET を「20」に設定
している。
In step S37, as shown in FIG.
Check whether the rising drive signal Ma is output,
If not (N in step S37), the process returns to step S1, and if it has been output (step S37).
(Y at 37), it is checked whether the flag F of the position determination flag area is "0" (step S38),
If it is “0” (Y in step S38), the process proceeds to step S125 of FIG. 13 described later, and if it is not “0” (N in step S38), the process proceeds to step S39. In step S39, it is checked whether or not the count value Ca of the first position counter area is equal to or larger than the boundary value N DET . The boundary value N DET is, as shown in FIG.
At the boundary position DL where the gap between the weatherstrip 53 and the windowpane 51 disappears, that is, 13 mm below the upper end 51a of the windowpane 51 in the fully closed position and at the same height as the outer lower end surface 53a of the weatherstrip 53. In the present embodiment, the boundary value NDET is set to "20", which is a value corresponding to the correct count value Ca, Cb of the first and second position counter areas when the position 51a is located. .

【0034】従って、異物を挟み込む可能性がない前記
境界位置DLよりも上方の全閉領域Scに窓ガラス51
の上端51aが位置している場合は、前記カウント値C
a,Cbが境界値NDET よりも小さくなり、異物を挟み
込む可能性がある前記境界位置DL及びその下方の挟み
込み検出領域So(所定の検出領域に相当)に窓ガラス
51の上端51aが位置している場合は、前記カウント
値Ca,Cbが境界値NDET 以上となる。そして、図8
に示すように、前記カウント値Caが境界値NDET 以上
でない場合は(ステップS39でN)、ステップS43
に進み、カウント値Caが境界値NDET 以上である場合
は(ステップS39でY)、ステップS41に進む。
Therefore, the window glass 51 is located in the fully closed region Sc above the boundary position DL where there is no possibility of foreign matter being pinched.
When the upper end 51a of the
The upper end 51a of the window glass 51 is located at the boundary position DL where a and Cb are smaller than the boundary value N DET and there is a possibility that foreign matter may be interposed, and the entrapment detection area So (corresponding to a predetermined detection area) therebelow. In this case, the count values Ca and Cb are equal to or larger than the boundary value N DET . And FIG.
If the count value Ca is not equal to or larger than the boundary value N DET (N in step S39), as shown in FIG.
When the count value Ca is equal to or larger than the boundary value N DET (Y in step S39), the process proceeds to step S41.

【0035】ステップS41では、前記第2位置カウン
タエリアのカウント値Cbが前記境界値NDET 以上の値
であるか否かを確認し、境界値NDET 以上である場合は
(ステップS41でY)、ステップS55に進み、境界
値NDET 以上でない場合は(ステップS41でN)、ス
テップS43に進む。ステップS43では、前記第2経
過時間計測タイマエリアの第2経過時間Taが、全開全
閉確認時間TLOCK以上であるか否かを確認する。前記第
2経過時間Taが全開全閉確認時間TLOCK以上でない場
合は(ステップS43でN)、ステップS1にリターン
し、全開全閉確認時間TLOCK以上である場合は(ステッ
プS43でY)、前記第3経過時間計測タイマエリアの
第3経過時間Tbが、全開全閉確認時間TLOCK以上であ
るか否かを確認する(ステップS45)。
In step S41, it is checked whether or not the count value Cb of the second position counter area is equal to or larger than the boundary value N DET . If it is equal to or larger than the boundary value N DET (Y in step S41). If it is not equal to or greater than the boundary value N DET (N in step S41), the process proceeds to step S43. In step S43, it is determined whether or not the second elapsed time Ta in the second elapsed time measurement timer area is equal to or longer than the fully open / closed confirmation time T LOCK . If the second elapsed time Ta is not equal to or longer than the full-open fully closed confirmation time T LOCK (N in step S43), the process returns to step S1, and if the second elapsed time Ta is equal to or longer than the full-open fully closed confirmation time T LOCK (Y in step S43), It is determined whether or not the third elapsed time Tb in the third elapsed time measurement timer area is equal to or longer than the fully open / closed confirmation time T LOCK (step S45).

【0036】前記第3経過時間Tbが全開全閉確認時間
LOCK以上でない場合は(ステップS45でN)、ステ
ップS1にリターンし、全開全閉確認時間TLOCK以上で
ある場合は(ステップS45でY)、上昇駆動信号Ma
の出力を停止し(ステップS47)、片側カウンタエリ
アのカウント値Ccをゼロリセットした後(ステップS
49)、前記開閉スイッチ13から上昇要求信号13a
が出力されているか否かを確認する(ステップS5
1)。上昇要求信号13aが出力されている場合は(ス
テップS51でY)、出力されなくなるまでステップS
51をリピートし、出力されていない場合は(ステップ
S51でN)、前記第1経過時間計測タイマエリアの第
1経過時間Tuの計測を停止してゼロリセットした後
(ステップS53)、ステップS1にリターンする。
If the third elapsed time Tb is not equal to or longer than the full-open fully closed confirmation time T LOCK (N in step S45), the process returns to step S1. If the third elapsed time Tb is equal to or longer than the full-open fully closed confirmation time T LOCK (step S45). Y), rising drive signal Ma
Is stopped (step S47), and the count value Cc of the one-side counter area is reset to zero (step S47).
49), a rising request signal 13a from the open / close switch 13
Is checked (step S5).
1). If the ascending request signal 13a has been output (Y in step S51), step S is executed until the signal is no longer output.
When the output of the first elapsed time Tu in the first elapsed time measurement timer area is stopped and reset to zero (step S53), the process returns to step S1. To return.

【0037】また、ステップS41で前記第2位置カウ
ンタエリアのカウント値Cbが前記境界値NDET 以上の
値である場合(Y)に進むステップS55では、前記第
2経過時間計測タイマエリアの第2経過時間Taが、挟
み込み確認時間TE (本実施例では0.1sec=秒)
以上であるか否かを確認する。前記第2経過時間Taが
挟み込み確認時間TE 以上でない場合は(ステップS5
5でN)、ステップS59に進み、挟み込み確認時間T
E 以上である場合は(ステップS55でY)、前記第3
経過時間計測タイマエリアの第3経過時間Tbが、挟み
込み確認時間TE 以上であるか否かを確認する(ステッ
プS57)。前記第3経過時間Tbが挟み込み確認時間
E 以上でない場合は(ステップS57でN)、ステッ
プS59に進み、挟み込み確認時間TE 以上である場合
は(ステップS57でY)、ステップS97に進む。
If it is determined in step S41 that the count value Cb of the second position counter area is equal to or greater than the boundary value N DET (Y), the process proceeds to step S55. the elapsed time Ta is sandwiched confirmation time T E (0.1 sec = seconds in this embodiment)
Check whether this is the case. Wherein when the second elapsed time Ta is not pinching the confirmation time T E above (step S5
5) N), the process proceeds to step S59, and the entrapment confirmation time T
If it is greater than or equal to E (Y in step S55), the third
Third elapsed time Tb elapsed time measuring timer area confirms whether a pinching confirmation time T E above (step S57). If the not third elapsed time Tb entrapment confirmation time T E above (N in step S57), the process proceeds to step S59, the case is pinching confirmation time T E above (Y in step S57), the process proceeds to step S97.

【0038】ステップS55又はステップS57で、前
記第2又は第3経過時間計測タイマエリアの第2又は第
3経過時間Ta,Tbが、挟み込み確認時間TE 以上連
続していない場合(N)に進むステップS59では、前
記第1経過時間計測タイマエリアの第1経過時間Tu
が、200ms(ミリ秒)以上であるか否か、即ち、ス
テップS5における上昇要求信号13aの出力開始から
200ms以上経過したか否かを確認する。そして、前
記第1経過時間Tuが200ms以上でなければ(ステ
ップS59でN)、ステップS1にリターンし、200
ms以上であれば(ステップS59でY)、ステップS
61に進む。
[0038] In step S55 or step S57, the second or the second or the third elapsed time Ta of the third elapsed time measuring timer area, Tb is proceeds if not continuous pinching confirmation time T E above (N) In step S59, the first elapsed time Tu of the first elapsed time measurement timer area is set.
Is 200 ms (milliseconds) or more, that is, whether 200 ms or more has elapsed since the start of output of the rising request signal 13a in step S5. If the first elapsed time Tu is not equal to or longer than 200 ms (N in step S59), the process returns to step S1 and 200
ms (Y in step S59), step S
Go to 61.

【0039】ステップS61では、図9に示すように、
前記第1検出タイミングバッファエリアに格納されてい
る第1パルス信号Paの、最近とその2回前の立ち上が
り又は立ち下がりのエッジ検出時点Tan ,Tan-2
時間差、即ち、第1パルス信号Paの周期Wan を、演
算エリアにおいて求め、次に、求めた前記周期Wan
RAM15bの第1周期バッファエリアに格納した後
(ステップS63)、この周期Wan が基準周期WREF
(本実施例では30ms=ミリ秒)以上であるか否かを
確認する(ステップS65)。
In step S61, as shown in FIG.
Said first detection timing the first pulse signal Pa stored in the buffer area, recently and its two before the rising or falling edge detection time Ta n, the time difference Ta n-2, i.e., the first pulse signal Pa cycle Wa n of, determined in the calculation area, then after storing the cycle Wa n determined in the first cycle buffer area of RAM 15b (step S63), this cycle Wa n is the reference period W REF
(30 ms = millisecond in this embodiment) or more is checked (step S65).

【0040】前記周期Wan が基準周期WREF 以上でな
ければ(ステップS65でN)、ステップS73に進
み、基準周期WREF 以上であれば(ステップS65で
Y)、前記第2検出タイミングバッファに格納されてい
る第2パルス信号Pbの、最近とその2回前の立ち上が
り又は立ち下がりのエッジ検出時点Tbn ,Tbn-2
時間差、即ち、第2パルス信号Pbの周期Wbn を、演
算エリアにおいて求める(ステップS67)。そして、
求めた前記周期Wbn をRAM15bの第2周期バッフ
ァエリアに格納し(ステップS69)、次に、この周期
Wbn が前記基準周期WREF 以上であるか否かを確認す
る(ステップS71)。前記周期Wbn が基準周期W
REF 以上でなければ(ステップS71でN)、ステップ
S73に進み、基準周期WREF 以上であれば(ステップ
S71でY)、ステップS97に進む。
[0040] Unless the cycles Wa n is a reference period W REF more (N in step S65), the process proceeds to step S73, if the reference period W REF above (in step S65 Y), the second detection timing buffer The stored time difference between the edge detection points Tb n and Tb n−2 of the latest rising edge or falling edge of the second pulse signal Pb two times before, that is, the period Wb n of the second pulse signal Pb is calculated. It is determined in the area (step S67). And
The obtained cycle Wb n is stored in the second cycle buffer area of the RAM 15b (step S69), and it is confirmed whether or not this cycle Wb n is equal to or longer than the reference cycle W REF (step S71). The cycle Wb n is the reference cycle W
If it is not equal to or greater than REF (N in step S71), the process proceeds to step S73. If it is equal to or greater than the reference cycle W REF (Y in step S71), the process proceeds to step S97.

【0041】ステップS65又はステップS71で、第
1又は第2パルス信号Pa,Pbの周期Wan ,Wbn
が基準周期WREF 以上でない場合(N)に進むステップ
S73では、第1パルス信号Paの1パルス当りの窓ガ
ラス51の昇降量、即ち、パルス分解能Sa(本実施例
では0.65mm)の2倍を、該第1パルス信号Paの
周期Wan で除した窓ガラス51の昇降速度Van を、
演算エリアにおいて求め、次に、求めた前記昇降速度V
n をRAM15bの第1速度バッファエリアに格納す
る(ステップS75)。そして、演算エリアにおいて、
前記第1速度バッファエリアの前回の昇降速度Van-1
を前記昇降速度Van から差し引いた差速(Van −V
n-1 )を、前記第1周期バッファエリアの周期Wan
で除して、窓ガラス51の減速度Aanを求め(ステッ
プS77)、この減速度Aan をRAM15bの第1減
速度バッファエリアに格納した後(ステップS79)、
減速度Aan が通常ではあり得ない急激な減速度の閾値
HI(本実施例では3500mm/sec2 =ミリ
2 )以上であるか否かを確認する(ステップS8
1)。
In step S65 or step S71, the periods Wa n , Wb n of the first or second pulse signals Pa, Pb
Is not greater than or equal to the reference cycle W REF (N), in step S73, the amount of movement of the window glass 51 per one pulse of the first pulse signal Pa, that is, 2 of the pulse resolution Sa (0.65 mm in this embodiment). twice, the lifting speed Va n of the first pulse signal Pa of the periodic Wa n windowpane 51 divided by,
Calculated in the calculation area, and then the calculated lifting speed V
An is stored in the first speed buffer area of the RAM 15b (step S75). Then, in the calculation area,
The previous elevating speed V an -1 of the first speed buffer area
Differential speed obtained by subtracting from the lifting speed Va n a (Va n -V
a n-1 ) to the cycle Wa n of the first cycle buffer area.
In by dividing obtains the deceleration Aa n of the window glass 51 (step S77), after storing the deceleration Aa n the first deceleration buffer area of RAM 15b (step S79),
Deceleration Aa n (in this example 3500 mm / sec 2 = ms 2) threshold A HI rapid deceleration not be the usual checks whether it is more (step S8
1).

【0042】前記減速度Aan が閾値AHI以上でなけれ
ば(ステップS81でN)、ステップS93に進み、閾
値AHI以上であれば(ステップS81でY)、第2パル
ス信号Pbの1パルス当りの窓ガラス51の昇降量、即
ち、パルス分解能Sb(=Sa、本実施例では0.65
mm)の2倍を、該第2パルス信号Pbの周期Wbn
除した窓ガラス51の昇降速度Vbn を、演算エリアに
おいて求め(ステップS83)、求めた前記昇降速度V
n をRAM15bの第2速度バッファエリアに格納す
る(ステップS85)。そして、演算エリアにおいて、
前記第2速度バッファエリアの前回の昇降速度Vbn-1
を前記昇降速度Vbn から差し引いた差速(Vbn −V
n-1 )を、前記第2周期バッファエリアの周期Wbn
で除して、窓ガラス51の減速度Abnを求め(ステッ
プS87)、この減速度Abn をRAM15bの第2減
速度バッファエリアに格納した後(ステップS89)、
減速度Abn が前記閾値AHI以上であるか否かを確認す
る(ステップS91)。
[0042] Unless the deceleration Aa n threshold A HI more (N in step S81), the process proceeds to step S93, if the above threshold value A HI (Y in step S81), 1 pulse of the second pulse signal Pb The amount of movement of the window glass 51 per hit, that is, the pulse resolution Sb (= Sa, 0.65 in this embodiment)
twice the mm), the lifting speed Vb n of the second pulse signal Pb period Wb n windowpane 51 divided by, calculated (step S83 in the operation area), obtained the elevating velocity V
storing b n to the second speed buffer area of the RAM 15b (step S85). Then, in the calculation area,
The previous lifting / lowering speed Vb n-1 of the second speed buffer area
The differential speed which is obtained by subtracting from the elevating speed Vb n the (Vb n -V
b n-1 ) with the cycle Wb n of the second cycle buffer area.
To calculate the deceleration Ab n of the window glass 51 (step S87), and store the deceleration Ab n in the second deceleration buffer area of the RAM 15b (step S89).
It is determined whether or not the deceleration Ab n is equal to or greater than the threshold A HI (step S91).

【0043】前記減速度Abn が閾値AHI以上であれば
(ステップS91でY)、ステップS97に進み、閾値
HI以上でなければ(ステップS91でN)、ステップ
S93に進む。ステップS93では、図10に示すよう
に、前記第1速度バッファエリアの過去所定回数X分の
減速度Aan 〜Aan-(X-1) が連続して、緩やかな減速
度の閾値ALO(本実施例では90mm/sec2 =ミリ
2 )以上になったか否かを確認し、所定回数X連続し
て閾値ALO以上となっていない場合は(ステップS93
でN)、ステップS1にリターンし、所定回数X連続し
て閾値ALO以上となっている場合は(ステップS93で
Y)、ステップS95に進む。尚、本実施例では、前記
所定回数Xを6回としている。
[0043] If the deceleration Ab n threshold A HI above (Y in step S91), the process proceeds to step S97, if equal to or larger than the threshold A HI (N in step S91), the process proceeds to step S93. In step S93, as shown in FIG. 10, the first speed of the buffer area for the past predetermined number X min deceleration Aa n ~Aa n- (X-1 ) is continuously, the gradual deceleration threshold A LO (In the present embodiment, 90 mm / sec 2 = millisecond 2 ) or more is checked, and if the predetermined number of times X does not exceed the threshold A LO continuously (step S 93)
N), the process returns to step S1, and if the number of times X is equal to or larger than the threshold value ALO for a predetermined number of times X (Y in step S93), the process proceeds to step S95. In this embodiment, the predetermined number X is six.

【0044】ステップS95では、前記第2速度バッフ
ァエリアの過去所定回数X分の減速度Abn 〜Ab
n-(X-1) が連続して、前記減速度の閾値ALO以上になっ
たか否かを確認し、所定回数X連続して閾値ALO以上と
なっていない場合は(ステップS95でN)、ステップ
S1にリターンし、所定回数X連続して閾値ALO以上と
なっている場合は(ステップS95でY)、ステップS
97に進む。ステップS97では、下降駆動信号Mbを
ドライバ15eに出力し、続いて、RAM15bの第4
経過時間計測タイマエリアにおける、前記ステップS9
7での下降駆動信号Mbの出力開始からの経過時間であ
る第4経過時間Tsの計測を開始する(ステップS9
9)。次に、RAM15bの第3位置カウンタエリアの
カウント値Cdとして、第1位置カウンタエリアのカウ
ント値Caを設定し(ステップS101)、さらに、R
AM15bの第4位置カウンタエリアのカウント値Cd
として、第2位置カウンタエリアのカウント値Cbを設
定する(ステップS103)。
In step S95, the decelerations Ab n to Ab for the predetermined number of times X in the second speed buffer area are performed.
It is checked whether or not n- (X-1) has continuously exceeded the deceleration threshold value A LO . If the predetermined number of times X has not exceeded the threshold value A LO continuously (step S 95: N ), The process returns to step S1. If the number of times X is equal to or greater than the threshold value A LO for a predetermined number of times X (Y in step S95), the process returns to step S1.
Go to 97. In step S97, the descending drive signal Mb is output to the driver 15e.
Step S9 in the elapsed time measurement timer area
The measurement of the fourth elapsed time Ts, which is the elapsed time from the start of the output of the descending drive signal Mb in Step 7, is started (Step S9).
9). Next, the count value Ca of the first position counter area is set as the count value Cd of the third position counter area of the RAM 15b (step S101).
Count value Cd of the fourth position counter area of AM15b
Then, the count value Cb of the second position counter area is set (step S103).

【0045】次に、第1位置カウンタエリアのカウント
値Caから第3位置カウンタエリアのカウント値Cdを
差し引いて、ステップS97で下降駆動信号Mbを出力
した後における前記カウント値Caの増加値Cfを演算
エリアで求める(ステップS105)。そして、前記増
加値Cfが所定の挟み込み解除駆動値Nr(本実施例で
は230)に達したか否かを確認し(ステップS10
7)、達している場合は(ステップS107でY)、ス
テップS109に進み、達していない場合は(ステップ
S107でN)、ステップS113に進む。
Next, the count value Cd of the third position counter area is subtracted from the count value Ca of the first position counter area, and the increment value Cf of the count value Ca after outputting the descending drive signal Mb in step S97 is calculated. It is determined in the calculation area (step S105). Then, it is checked whether or not the increase value Cf has reached a predetermined entrapment release drive value Nr (230 in this embodiment) (step S10).
7) If it has reached (Y in step S107), the process proceeds to step S109; if not (N in step S107), the process proceeds to step S113.

【0046】ステップS109では、第2位置カウンタ
エリアのカウント値Cbから第4位置カウンタエリアの
カウント値Ceを差し引いて、ステップS97で下降駆
動信号Mbを出力した後における前記カウント値Cbの
増加値Cgを演算エリアで求める。そして、前記増加値
Cgが前記挟み込み解除駆動値Nrに達したか否かを確
認し(ステップS111)、達している場合は(ステッ
プS111でY)、ステップS115に進み、達してい
ない場合は(ステップS111でN)、ステップS11
3に進む。
In step S109, the count value Ce of the fourth position counter area is subtracted from the count value Cb of the second position counter area, and the count value Cg of the count value Cb after the output of the descending drive signal Mb in step S97. In the calculation area. Then, it is confirmed whether or not the increase value Cg has reached the entrapment release drive value Nr (step S111). If it has reached (Y in step S111), the process proceeds to step S115, and if it has not reached ( N) in step S111, step S11
Proceed to 3.

【0047】ステップS113では、前記第4経過時間
Tsが前記全開全閉確認時間TLOCK以上連続しているか
否かを確認し、連続していない場合は(ステップS11
3でN)、ステップS105にリターンし、連続してい
る場合は(ステップS113でY)、ステップS115
に進む。ステップS115では、下降駆動信号Mbの出
力を停止し、次に、前記第4経過時間計測タイマエリア
の第4経過時間Tsの計測を停止してゼロリセットする
と共に(ステップS117)、片側カウンタエリアのカ
ウント値Ccをゼロリセットし(ステップS119)、
さらに、前記開閉スイッチ13から上昇要求信号13a
が出力されているか否かを確認する(ステップS12
1)。上昇要求信号13aが出力されている場合は(ス
テップS121でY)、出力されなくなるまでステップ
S121をリピートし、出力されていない場合は(ステ
ップS121でN)、前記第1経過時間計測タイマエリ
アの第1経過時間Tuの計測を停止してゼロリセットし
た後(ステップS123)、ステップS1にリターンす
る。
In step S113, it is checked whether or not the fourth elapsed time Ts is continuous for the full open / closed confirmation time T LOCK or more.
(N in 3), the process returns to step S105, and if they are continuous (Y in step S113), step S115
Proceed to. In step S115, the output of the descending drive signal Mb is stopped. Next, the measurement of the fourth elapsed time Ts in the fourth elapsed time measurement timer area is stopped and reset to zero (step S117). The count value Cc is reset to zero (step S119),
Further, an ascending request signal 13a
It is confirmed whether or not is output (step S12).
1). If the ascending request signal 13a is output (Y in step S121), step S121 is repeated until the signal is no longer output. If not (N in step S121), the first elapsed time measurement timer area is After the measurement of the first elapsed time Tu is stopped and reset to zero (step S123), the process returns to step S1.

【0048】一方、ステップS38で前記位置確定フラ
グエリアのフラグFが「0」である場合(Y)に進むス
テップS125では、図11に示すように、第1センサ
31aからの第1パルス信号Paの立ち上がり又は立ち
下がりのエッジを検出したか否かを確認し、検出しなか
った場合は(N)、ステップS137に進み、検出した
場合は(Y)、ステップS127に進む。ステップS1
27では、RAM15bの第2経過時間計測タイマエリ
アにおいて、ステップS125で第1パルス信号Paの
立ち上がり又は立ち下がりのエッジを検出した時点か
ら、次の第1パルス信号Paの立ち上がり又は立ち下が
りのエッジを検出する時点までの経過時間である第5経
過時間Tcの計測を開始し、次に、RAM15bの第1
上昇量カウンタエリアのカウンタ値Chを「1」インク
リメントする(ステップS129)。
On the other hand, when the flag F in the position determination flag area is "0" (Y) in step S38, the process proceeds to step S125, where the first pulse signal Pa from the first sensor 31a is supplied as shown in FIG. It is confirmed whether or not the rising or falling edge is detected. If not detected (N), the process proceeds to step S137, and if detected (Y), the process proceeds to step S127. Step S1
In step 27, in the second elapsed time measurement timer area of the RAM 15b, the next rising or falling edge of the first pulse signal Pa is detected from the time when the rising or falling edge of the first pulse signal Pa is detected in step S125. The measurement of the fifth elapsed time Tc, which is the elapsed time up to the point of detection, is started.
The counter value Ch in the rising amount counter area is incremented by "1" (step S129).

【0049】続いて、前記第1経過時間計測タイマエリ
アの第1経過時間Tuが、規定時間Tp(本実施例では
0.7sec=秒)以上であるか否かを確認し(ステッ
プS131)、規定時間Tp以上である場合は(ステッ
プS131でY)、ステップS157に進み、規定時間
Tp以上でない場合は(ステップS131でN)、前記
第1上昇量カウンタエリアのカウンタ値Chが、窓ガラ
ス51の規定上昇量に応じた規定値Cp以上であるか否
かを確認する(ステップS133)。前記カウンタ値C
hが規定値Cp以上である場合は(ステップS133で
Y)、ステップS157に進み、規定値Cp以上でない
場合は(ステップS133でN)、ステップS135に
進む。ステップS135では、前記第5経過時間計測タ
イマエリアの第5経過時間Tcが、全開全閉確認時間T
LOCK以上であるか否かを確認し、全開全閉確認時間T
LOCK以上でない場合は(N)、ステップS1にリターン
し、全開全閉確認時間TLOCK以上である場合は(Y)、
ステップS153に進む。
Subsequently, it is confirmed whether or not the first elapsed time Tu in the first elapsed time measurement timer area is equal to or longer than a specified time Tp (0.7 sec = second in this embodiment) (step S131). If it is equal to or longer than the specified time Tp (Y in step S131), the process proceeds to step S157. If it is not equal to or longer than the specified time Tp (N in step S131), the counter value Ch of the first rising counter area is set to the window glass 51. It is determined whether or not the value is equal to or greater than a specified value Cp corresponding to the specified amount of increase (step S133). The counter value C
If h is equal to or larger than the specified value Cp (Y in step S133), the process proceeds to step S157, and if h is not equal to or larger than the specified value Cp (N in step S133), the process proceeds to step S135. In step S135, the fifth elapsed time Tc in the fifth elapsed time measurement timer area is equal to the fully open / closed confirmation time T.
Check if it is LOCK or more.
If it is not longer than LOCK (N), the process returns to step S1, and if it is longer than the full open / closed confirmation time T LOCK (Y),
Proceed to step S153.

【0050】また、ステップS125で第1パルス信号
Paの立ち上がり又は立ち下がりのエッジを検出しなか
った場合に進むステップS137では、第2センサ31
bからの第2パルス信号Pbの立ち上がり又は立ち下が
りのエッジを検出したか否かを確認し、検出した場合は
(Y)、ステップS143に進み、検出しなかった場合
は(N)、ステップS139に進む。ステップS139
では、第2経過時間計測タイマエリアの第2経過時間T
aが、全開全閉確認時間TLOCK以上であるか否かを確認
し、全開全閉確認時間TLOCK以上である場合は(ステッ
プS139でY)、ステップS153に進み、全開全閉
確認時間TLOCK以上でない場合は(ステップS139で
N)、ステップS141に進む。ステップS141で
は、第3経過時間計測タイマエリアの第3経過時間Tb
が、全開全閉確認時間TLOCK以上であるか否かを確認
し、全開全閉確認時間TLOCK以上である場合は(ステッ
プS141でY)、ステップS153に進み、全開全閉
確認時間TLOCK以上でない場合は(ステップS141で
N)、ステップS1にリターンする。
In step S137, where the rising or falling edge of the first pulse signal Pa is not detected in step S125, the second sensor 31 is turned on.
It is confirmed whether or not the rising or falling edge of the second pulse signal Pb from b is detected. If it is detected (Y), the process proceeds to step S143. If it is not detected (N), step S139 is performed. Proceed to. Step S139
Then, the second elapsed time T in the second elapsed time measurement timer area
a is, to check whether fully open is fully closed confirmation time T LOCK above, when fully opened is fully closed confirmation time T LOCK or more (Y in step S139), the process proceeds to step S153, the fully open fully closed confirmation time T If it is not LOCK or more (N in step S139), the process proceeds to step S141. In step S141, the third elapsed time Tb in the third elapsed time measurement timer area
But confirms whether fully open is fully closed confirmation time T LOCK above, when fully opened is fully closed confirmation time T LOCK or more (Y in step S141), the process proceeds to step S153, the fully open fully closed confirmation time T LOCK If not (N in step S141), the process returns to step S1.

【0051】ステップS143では、RAM15bの第
3経過時間計測タイマエリアにおいて、ステップS13
7で第2パルス信号Pbの立ち上がり又は立ち下がりの
エッジを検出した時点から、次の第3パルス信号Pbの
立ち上がり又は立ち下がりのエッジを検出する時点まで
の経過時間である第6経過時間Tdの計測を開始し、次
に、RAM15bの第2上昇量カウンタエリアのカウン
タ値Cjを「1」インクリメントする(ステップS14
5)。
In step S143, in the third elapsed time measurement timer area of the RAM 15b,
In FIG. 7, a sixth elapsed time Td which is an elapsed time from the time when the rising or falling edge of the second pulse signal Pb is detected to the time when the next rising or falling edge of the third pulse signal Pb is detected. The measurement is started, and then the counter value Cj of the second rising amount counter area of the RAM 15b is incremented by "1" (step S14).
5).

【0052】続いて、前記第1経過時間タイマエリアの
第1経過時間Tuが前記規定時間Tp以上であるか否か
を確認し(ステップS147)、規定時間Tp以上であ
る場合は(ステップS147でY)、ステップS157
に進み、規定時間Tp以上でない場合は(ステップS1
47でN)、前記第2上昇量カウンタエリアのカウンタ
値Cjが前記規定値Cp以上であるか否かを確認する
(ステップS149)。前記カウンタ値Cjが規定値C
p以上である場合は(ステップS149でY)、ステッ
プS157に進み、規定値Cp以上でない場合は(ステ
ップS149でN)、ステップS151に進む。
Subsequently, it is confirmed whether or not the first elapsed time Tu in the first elapsed time timer area is equal to or longer than the specified time Tp (step S147). If it is equal to or longer than the specified time Tp (step S147). Y), Step S157
If it is not longer than the specified time Tp (step S1
In N), it is checked whether or not the counter value Cj of the second rising amount counter area is equal to or larger than the specified value Cp (step S149). The counter value Cj is a specified value C
If it is not less than p (Y in step S149), the process proceeds to step S157, and if it is not more than the specified value Cp (N in step S149), the process proceeds to step S151.

【0053】ステップS151では、前記第6経過時間
計測タイマエリアの第6経過時間Tdが、全開全閉確認
時間TLOCK以上であるか否かを確認し、全開全閉確認時
間TLOCK以上でない場合は(N)、ステップS1にリタ
ーンし、全開全閉確認時間TLOCK以上である場合は
(Y)、ステップS153に進む。ステップS153で
は、第1及び第2位置カウンタエリアのカウント値C
a,cbをそれぞれゼロリセットし、次に、前記位置確
定フラグエリアのフラグFを「1」に設定し(ステップ
S155)、その後ステップS157に進む。ステップ
S157では、第5及び第6経過時間計測タイマエリア
の第5及び第6経過時間Tc,Tdの計測をそれぞれ停
止してゼロリセットし、次に、第1及び第2上昇量カウ
ンタエリアのカウンタ値Ch,Cjをそれぞれゼロリセ
ットし(ステップS159)、ステップS161に進
む。
[0053] At step S151, the sixth elapsed time Td of the sixth elapsed time measurement timer area, and checks whether fully open is fully closed confirmation time T LOCK above, when fully open not fully closed confirmation time T LOCK more Returns to step S1 (N), and if it is equal to or longer than the full open / closed confirmation time T LOCK (Y), the process proceeds to step S153. In step S153, the count value C of the first and second position counter areas
a and cb are reset to zero, respectively, and the flag F in the position determination flag area is set to "1" (step S155), and then the process proceeds to step S157. In step S157, the measurement of the fifth and sixth elapsed times Tc and Td in the fifth and sixth elapsed time measurement timer areas is respectively stopped and reset to zero, and then the counters in the first and second rising amount counter areas are set. The values Ch and Cj are reset to zero (step S159), and the process proceeds to step S161.

【0054】ステップS161では、上昇駆動信号Ma
の出力を停止し、次に、片側カウンタエリアのカウント
値Ccをゼロリセットした後(ステップS163)、前
記開閉スイッチ13から上昇要求信号13aが出力され
ているか否かを確認する(ステップS165)。上昇要
求信号13aが出力されている場合は(ステップS16
5でY)、出力されなくなるまでステップS165をリ
ピートし、出力されていない場合は(ステップS165
でN)、前記第1経過時間計測タイマエリアの第1経過
時間Tuの計測を停止してゼロリセットした後(ステッ
プS167)、ステップS1にリターンする。尚、マイ
コン15に接続されたバッテリ(図示せず)の交換時、
RAM15bの演算エリアを除く各エリアは全てゼロリ
セットされる。
In step S161, the rising drive signal Ma
Is stopped, and then the count value Cc of the one-sided counter area is reset to zero (step S163), and it is confirmed whether or not the on / off switch 13 outputs the rising request signal 13a (step S165). If the ascending request signal 13a has been output (step S16
5), repeats step S165 until no more data is output, and if no data is output (step S165).
N), the measurement of the first elapsed time Tu in the first elapsed time measurement timer area is stopped and reset to zero (step S167), and the process returns to step S1. When replacing a battery (not shown) connected to the microcomputer 15,
All areas except the calculation area of the RAM 15b are reset to zero.

【0055】以上の説明からも明らかなように、本実施
例では、カウンタ手段15Aが、図12のフローチャー
トにおけるステップS19e及びステップS19fと、
図13のフローチャートにおけるステップS23e及び
ステップS23fで構成され、第1及び第2センサ31
a,31bから出力されるパルス信号Pa,Pbが請求
項に記載のパルス信号PAに相当し、第1及び第2位置
カウンタエリアの第1及び第2カウント値Ca,Cb
が、請求項に記載のカウント値CAに相当している。ま
た、本実施例では、判別手段15Bが、図7のフローチ
ャートにおけるステップS33と、図8のフローチャー
トにおけるステップS49と、図10のフローチャート
におけるステップS119と、図11のフローチャート
におけるステップS155及びステップS163と、図
12中のステップS19p乃至ステップS19tと、図
13中のステップS23p乃至ステップS23tで構成
され、ている。
As is apparent from the above description, in this embodiment, the counter means 15A performs steps S19e and S19f in the flowchart of FIG.
The first and second sensors 31 and S23f in the flowchart of FIG.
a, 31b correspond to the pulse signal PA described in the claims, and the first and second count values Ca, Cb of the first and second position counter areas.
Corresponds to the count value CA described in the claims. Further, in the present embodiment, the determination unit 15B performs the processing in step S33 in the flowchart in FIG. 7, step S49 in the flowchart in FIG. 8, step S119 in the flowchart in FIG. 10, step S155 and step S163 in the flowchart in FIG. , And Steps S19p to S19t in FIG. 12 and Steps S23p to S23t in FIG.

【0056】さらに、本実施例では、移動量規制手段1
5Cが、図11中のステップS127乃至ステップS1
33と、ステップS143乃至ステップS149と、ス
テップS153乃至ステップS161で構成され、規制
解除手段15Dが、図11中のステップS165で構成
されている。
Further, in this embodiment, the movement amount regulating means 1
5C corresponds to steps S127 to S1 in FIG.
33, step S143 to step S149, and step S153 to step S161, and the restriction release unit 15D is configured by step S165 in FIG.

【0057】次に、上述した構成による本実施例のパワ
ーウィンド装置の動作(作用)について説明する。ま
ず、開閉スイッチ13を後方に傾倒操作すると、開閉ス
イッチ13から下降要求信号13bが出力され、これに
伴ってドライバ15eに入力される下降駆動信号Mbに
より、窓ガラス51を全開位置側に下降させる方向にモ
ータ11が回転する。すると、モータ11が1周回転す
る毎に、第2センサ31bが第2パルス信号Pbを1回
ずつ出力し、該第2パルス信号Pbから90°の位相分
だけ遅れて、第1センサ31aが第1パルス信号Paを
1回ずつ出力する。
Next, the operation (operation) of the power window device of this embodiment having the above-described configuration will be described. First, when the opening / closing switch 13 is tilted backward, a lowering request signal 13b is output from the opening / closing switch 13, and the lowering drive signal Mb input to the driver 15e causes the window glass 51 to lower to the fully open position side. The motor 11 rotates in the direction. Then, every time the motor 11 makes one rotation, the second sensor 31b outputs the second pulse signal Pb once, and the first sensor 31a is delayed from the second pulse signal Pb by a phase of 90 °. The first pulse signal Pa is output once.

【0058】そして、窓ガラス51が全開位置に達して
モータ11の回転が止まると、前記第1及び第2センサ
31a,31bが第1及び第2パルス信号Pa,Pbを
それぞれ出力しなくなり、この状態が続いて前記第2及
び第3経過時間Ta,Tbが全開全閉確認時間TLOCK
両方とも達すると、開閉スイッチ13の後方への傾倒操
作を続けていても、ドライバ15eへの下降駆動信号M
bの入力が停止される。ここで、開閉スイッチ13の後
方への傾倒操作を一旦解除し、その後、開閉スイッチ1
3を改めて後方に傾倒操作すると、ドライバ15eに下
降駆動信号Mbが再入力されるが、窓ガラス51が全開
位置で動かずモータ11も回転しないので、第1及び第
2センサ31a,31bから第1及び第2パルス信号P
a,Pbがそれぞれ出力されず、従って、前記全開全閉
確認時間TLOCKの経過後にドライバ15eへの下降駆動
信号Mbの入力が再び停止される。
When the window glass 51 reaches the fully opened position and the rotation of the motor 11 stops, the first and second sensors 31a and 31b stop outputting the first and second pulse signals Pa and Pb, respectively. When the state continues and the second and third elapsed times Ta and Tb both reach the fully open and fully closed confirmation time T LOCK , the downward drive to the driver 15 e is performed even if the open / close switch 13 is continuously tilted backward. Signal M
The input of b is stopped. Here, the backward tilting operation of the open / close switch 13 is temporarily released, and then the open / close switch 1 is released.
When the driver 3 tilts rearward again, the lowering drive signal Mb is input again to the driver 15e. However, since the window glass 51 does not move at the fully open position and the motor 11 does not rotate, the first and second sensors 31a and 31b output the lower signal. 1st and 2nd pulse signal P
a, Pb is not outputted, therefore, the fully opened downward input of the drive signal Mb to the driver 15e after a fully closed confirmation time T LOCK is stopped again.

【0059】また、窓ガラス51を全開位置側に下降さ
せる方向にモータ11が回転すると、第1センサ31a
が出力する第1パルス信号Paの立ち上がり及び立ち下
がりの時点で、第1及び第2パルス信号Pa,Pbの信
号レベルが一致する。このため、窓ガラス51が全開位
置側に下降するのに応じて、ガラス窓の開閉位置をカウ
ントする第1位置カウンタエリアのカウント値Caが、
第1パルス信号Paの出力毎に「1」ずつインクリメン
トされ、同様に、第2位置カウンタエリアのカウント値
Cbが、第2パルス信号Pbの出力毎に「1」ずつイン
クリメントされる。そして、第1及び第2パルス信号に
出力異常やノイズによる偽パルスの発生がそれぞれない
限り、窓ガラス51が全開位置に達した時点で、前記第
1及び第2位置カウンタエリアのカウント値Ca,Cb
は両方とも「N」となる。
When the motor 11 rotates in a direction to lower the window glass 51 to the fully opened position, the first sensor 31a
The signal levels of the first and second pulse signals Pa and Pb match at the time of rising and falling of the first pulse signal Pa output from the first pulse signal Pa. For this reason, as the window glass 51 descends to the fully open position side, the count value Ca of the first position counter area for counting the open / close position of the glass window becomes:
Each time the first pulse signal Pa is output, the count value Cb is incremented by "1", and similarly, the count value Cb of the second position counter area is incremented by "1" every time the second pulse signal Pb is output. When the window glass 51 reaches the fully open position, the count values Ca, Ca, in the first and second position counter areas, unless the first and second pulse signals each include a false pulse due to output abnormality or noise. Cb
Are both "N".

【0060】一方、開閉スイッチ13を前方に傾倒操作
すると、開閉スイッチ13から上昇要求信号13aが出
力され、これに伴ってドライバ15eに入力される上昇
駆動信号Maにより、窓ガラス51を全閉位置側に上昇
させる方向にモータ11が回転する。すると、モータ1
1が1周回転する毎に、第1センサ31aが第1パルス
信号Paを1回ずつ出力し、該第1パルス信号Paから
90°の位相分だけ遅れて、第2センサ31bが第2パ
ルス信号Pbを1回ずつ出力する。
On the other hand, when the open / close switch 13 is tilted forward, an up request signal 13a is output from the open / close switch 13 and the up / down drive signal Ma input to the driver 15e causes the window glass 51 to be fully closed. The motor 11 rotates in the direction in which the motor 11 is moved upward. Then, motor 1
Each time 1 rotates once, the first sensor 31a outputs the first pulse signal Pa once, and the second sensor 31b outputs the second pulse signal with a 90 ° phase delay from the first pulse signal Pa. The signal Pb is output once.

【0061】そして、窓ガラス51が全閉位置に達して
モータ11の回転が止まると、前記第1及び第2センサ
31a,31bが第1及び第2パルス信号Pa,Pbを
それぞれ出力しなくなり、この状態が続いて前記第2及
び第3経過時間Ta,Tbが全開全閉確認時間TLOCK
両方とも達すると、開閉スイッチ13の前方への傾倒操
作を続けていても、ドライバ15eへの上昇駆動信号M
aの入力が停止される。ここで、開閉スイッチ13の後
方への傾倒操作を一旦解除し、その後、開閉スイッチ1
3を改めて後方に傾倒操作すると、ドライバ15eに下
降駆動信号Mbが再入力されるが、窓ガラス51が全開
位置で動かずモータ11も回転しないので、第1及び第
2センサ31a,31bから第1及び第2パルス信号P
a,Pbがそれぞれ出力されず、従って、前記全開全閉
確認時間TLOCKの経過後にドライバ15eへの下降駆動
信号Mbの入力が再び停止される。
When the window glass 51 reaches the fully closed position and the rotation of the motor 11 stops, the first and second sensors 31a and 31b stop outputting the first and second pulse signals Pa and Pb, respectively. When this state continues and the second and third elapsed times Ta and Tb both reach the fully open and fully closed confirmation time T LOCK , even if the open / close switch 13 is continuously tilted forward, the upward movement to the driver 15 e is performed. Drive signal M
The input of a is stopped. Here, the backward tilting operation of the open / close switch 13 is temporarily released, and then the open / close switch 1 is released.
When the driver 3 tilts rearward again, the lowering drive signal Mb is input again to the driver 15e. However, since the window glass 51 does not move at the fully open position and the motor 11 does not rotate, the first and second sensors 31a and 31b output the lower signal. 1st and 2nd pulse signal P
a, Pb is not outputted, therefore, the fully opened downward input of the drive signal Mb to the driver 15e after a fully closed confirmation time T LOCK is stopped again.

【0062】また、窓ガラス51を全閉位置側に上昇さ
せる方向にモータ11が回転すると、前記第1パルス信
号Paの立ち上がり及び立ち下がりの時点で、第1及び
第2パルス信号Pa,Pbの信号レベルが一致しない。
このため、窓ガラス51が全閉位置側に上昇するのに応
じて、前記第1位置カウンタエリアのカウント値Ca
が、第1パルス信号Paの出力毎に「1」ずつデクリメ
ントされ、同様に、第2位置カウンタエリアのカウント
値Cbが、第2パルス信号Pbの出力毎に「1」ずつデ
クリメントされる。そして、第1及び第2パルス信号に
出力異常やノイズによる偽パルスの発生がそれぞれない
限り、窓ガラス51が全閉位置に達した時点で、前記第
1及び第2位置カウンタエリアのカウント値Ca,Cb
は両方とも「0」となる。
When the motor 11 rotates in a direction to raise the window glass 51 to the fully closed position, the first and second pulse signals Pa and Pb are changed at the rising and falling of the first pulse signal Pa. Signal levels do not match.
Therefore, as the window glass 51 rises to the fully closed position side, the count value Ca of the first position counter area is increased.
Is decremented by “1” every time the first pulse signal Pa is output, and similarly, the count value Cb of the second position counter area is decremented by “1” every time the second pulse signal Pb is output. The count value Ca of the first and second position counter areas at the time when the window glass 51 reaches the fully closed position, unless the first and second pulse signals each have a false pulse due to output abnormality or noise. , Cb
Are both "0".

【0063】尚、先に述べたような出力異常やノイズに
よる偽パルスの発生が第1及び第2パルス信号にあり、
これにより、窓ガラス51の開閉位置とはそれ程差がな
いものの、第1及び第2センサ31a,31bの正常時
にはないずれが第1及び第2位置カウンタエリアのカウ
ント値Ca,Cbの間に生じた場合には、そのずれが
「3」になった時点で、カウント値Ca,Cbのうち値
の大きいカウント値が値の小さいカウント値に補正され
る。
The generation of spurious pulses due to output abnormalities and noise as described above is present in the first and second pulse signals.
As a result, although there is not much difference from the opening / closing position of the window glass 51, when the first and second sensors 31a and 31b are normal, any time occurs between the count values Ca and Cb of the first and second position counter areas. When the difference becomes "3", the larger one of the count values Ca and Cb is corrected to the smaller count value.

【0064】さらに、前記開閉スイッチ13の傾倒操作
によりモータ11が回転し、これに伴い、第1及び第2
センサ31a,31bが第1及び第2パルス信号Pa,
Pbをそれぞれ出力すると、その回転方向に関係なく、
これら第1及び第2センサ31a,31bのうちどちら
か一方が故障しているのを検出するための片側カウンタ
のカウント値Ccが、第1パルス信号Paの出力時には
「1」ずつインクリメントされ、且つ、第2パルス信号
Pbの出力時には「1」ずつデクリメントされる。
Further, the motor 11 is rotated by the tilting operation of the open / close switch 13, and the first and second
The sensors 31a and 31b output the first and second pulse signals Pa,
When Pb is output, regardless of its rotation direction,
The count value Cc of the one-sided counter for detecting that one of the first and second sensors 31a and 31b is out of order is incremented by "1" when the first pulse signal Pa is output, and When the second pulse signal Pb is output, it is decremented by "1".

【0065】次に、前記窓ガラス51の上端51aが前
記境界位置DL及びその下方の挟み込み検出領域Soに
位置している状態で、開閉スイッチ13の前方への傾倒
操作に伴うドライバ15eへの上昇駆動信号Maの入力
により、窓ガラス51を全閉位置側に上昇させる方向に
回転しているモータ11が、ドア5の窓枠と窓ガラス5
1の間に挟まった異物により止まると、前記第1及び第
2センサ31a,31bが第1及び第2パルス信号P
a,Pbをそれぞれ出力しなくなる。この場合には、前
記第1及び第2カウンタエリアのカウンタ値Ca,Cb
が両方とも境界値NDET 以上になっているので、第1及
び第2パルス信号Pa,Pbの出力なし状態が続いて、
その経過時間である前記第2及び第3経過時間Ta,T
bが挟み込み確認時間TE に両方とも達すると、次に示
す挟み込み解除動作が行われる。
Next, in a state where the upper end 51a of the window glass 51 is located at the boundary position DL and the pinch detection area So below the window glass 51, the upward movement to the driver 15e due to the forward tilting operation of the open / close switch 13 is performed. By the input of the drive signal Ma, the motor 11 rotating in a direction to raise the window glass 51 to the fully closed position side, causes the window frame of the door 5 and the window glass 5 to rotate.
When the first and second sensors 31a and 31b are stopped by a foreign substance sandwiched between the first and second pulse signals P and
a and Pb are no longer output. In this case, the counter values Ca and Cb of the first and second counter areas are used.
Are both equal to or greater than the boundary value N DET , and the state in which the first and second pulse signals Pa and Pb are not output continues.
The second and third elapsed times Ta, T, which are the elapsed times.
When b reaches both the pinching confirmation time T E, following pinching release operation is performed.

【0066】挟み込み解除動作では、開閉スイッチ13
の前方への傾倒操作を続けていても、ドライバ15eへ
の上昇駆動信号Maの入力が停止され、次に、ドライバ
15eに下降駆動信号Mbが入力されて、窓ガラス51
を全開位置側に下降させる方向にモータ11が回転す
る。そして、ドライバ15eへの下降駆動信号Mbの入
力開始からの、前記第1及び第2カウンタエリアのカウ
ンタ値Ca,Cbの増加量が両方とも挟み込み解除規定
値Nrに達した後に、該下降駆動信号Mbのドライバ1
5eへの入力が停止されて、モータ11の回転が停止す
る。これにより、異物の挟み込み状態を解消するのに十
分な量(本実施例では、第1及び第2パルス信号Pa,
Pbのパルス分解能Sa,Sb×挟み込み解除規定値N
r=0.65mm×230=略々15cm)だけ窓ガラ
ス51が下降する。
In the entrapment releasing operation, the open / close switch 13
, The input of the ascending drive signal Ma to the driver 15e is stopped, and then the descending drive signal Mb is input to the driver 15e to
The motor 11 rotates in a direction to lower the motor to the fully open position side. Then, after both the increments of the counter values Ca and Cb in the first and second counter areas from the start of the input of the descending drive signal Mb to the driver 15e reach the pinch release specified value Nr, the descending drive signal Mb Driver 1
The input to 5e is stopped, and the rotation of the motor 11 is stopped. Thereby, the amount sufficient to eliminate the foreign substance entrapment state (in the present embodiment, the first and second pulse signals Pa, Pa,
Pb pulse resolution Sa, Sb x entrapment release specified value N
The window glass 51 descends by (r = 0.65 mm × 230 = approximately 15 cm).

【0067】尚、前記ドライバ15eへの下降駆動信号
Mbの入力開始からの、前記第1及び第2カウンタエリ
アのカウンタ値Ca,Cbの増加量が両方とも挟み込み
解除規定値Nrに達するまでの間に、窓ガラス51が全
開位置に達してモータ11の回転が止まった場合には、
通常の窓ガラス51を開ける場合の動作と同様の動作に
より、ドライバ15eへの上昇駆動信号Maの入力が停
止される。
The period from the start of the input of the descending drive signal Mb to the driver 15e until the increments of the counter values Ca and Cb in the first and second counter areas both reach the entrapment release specified value Nr. If the window glass 51 reaches the fully open position and the rotation of the motor 11 stops,
The input of the rising drive signal Ma to the driver 15e is stopped by the same operation as the operation when the normal window glass 51 is opened.

【0068】このように、ドア5の窓枠と窓ガラス51
の間に挟まった異物によりモータ11の回転が停止する
と、その停止時間の長さに応じて前記挟み込み解除動作
が行われる。しかし、ドア5の窓枠と窓ガラス51の間
に異物が挟まったからといって、必ずしもモータ11の
回転が止まるとは限らず、挟まった異物の固さ等によっ
ては、モータ11が止まらず回転し続ける場合もある。
そこで、前記窓ガラス51の上端51aが前記境界位置
DL及びその下方の挟み込み検出領域Soに位置し、前
記第1及び第2カウンタエリアのカウンタ値Ca,Cb
が両方とも境界値NDET 以上になっている状態では、上
述した異物の挟み込みによるモータ11の回転停止時以
外にも、前記第1及び第2パルス信号Pa,Pbの周期
Wan ,Wbn や、モータ11の減速度Aan ,Abn
の値によっては、前記挟み込み解除動作を行う。
As described above, the window frame of the door 5 and the window glass 51
When the rotation of the motor 11 is stopped by a foreign substance caught between the two, the above-described pinching release operation is performed according to the length of the stop time. However, just because a foreign matter is caught between the window frame of the door 5 and the window glass 51 does not necessarily stop the rotation of the motor 11, and the motor 11 does not stop and rotates depending on the hardness of the caught foreign matter. You may continue to do so.
Therefore, the upper end 51a of the window glass 51 is located at the boundary position DL and the pinch detection area So below the boundary position DL, and the counter values Ca and Cb of the first and second counter areas are located.
Are both greater than or equal to the boundary value N DET , the period Wa n , Wb n of the first and second pulse signals Pa, Pb, , deceleration Aa n of the motor 11, Ab n
Is performed depending on the value of.

【0069】まず、モータ11の回転がかなり遅くな
り、前記周期Wan ,Wbn が両方とも基準周期WREF
以上となった場合には、前記挟み込み動作を行う。次
に、前記周期Wan ,Wbn のうち少なくとも一方が基
準周期WREF に満たなくても、前記減速度Aan ,Ab
n が、ドア5の窓枠に対するガラス窓51の軋みや、ガ
ラス窓51への手や体の接触によりモータ11が減速し
た場合の減速度等とは掛け離れた、通常ではあり得ない
急激な減速度の閾値AHI以上となった場合には、前記挟
み込み動作を行う。さらに、前記周期Wan ,Wbn
うち少なくとも一方が基準周期WREF に満たず、且つ、
前記減速度Aan ,Abn のうち少なくとも一方が閾値
HIに満たなくても、過去所定回数X分の減速度Aan
〜Aan-(X-1) ,Abn 〜Abn-(X-1) が両方とも連続
して、緩やかな減速度の閾値ALO以上になった場合に
は、前記挟み込み動作を行う。
First, the rotation of the motor 11 becomes considerably slow, and both of the periods Wa n and Wb n are equal to the reference period W REF.
In the case described above, the sandwiching operation is performed. Next, even if at least one of the periods Wa n and Wb n is less than the reference period W REF , the deceleration Aa n and Ab b
n is a sudden decrease which is far from ordinary, such as a squeak of the glass window 51 against the window frame of the door 5 or a deceleration when the motor 11 is decelerated due to the contact of the hand or the body with the glass window 51. When the speed becomes equal to or higher than the threshold value A HI , the pinching operation is performed. Further, at least one of the periods Wa n and Wb n is less than the reference period W REF , and
The deceleration Aa n, at less than at least one of the threshold A HI of Ab n, deceleration Aa n of past predetermined number X min
~Aa n- (X-1), both Ab n ~Ab n- (X-1 ) is continuously, if it becomes more than the threshold value A LO loose deceleration, performs the pinching operation.

【0070】尚、前記周期Wan ,Wbn や減速度Aa
n ,Abn の値による挟み込み解除動作の実行判定は、
モータ11の回転速度、ひいては、前記周期Wan ,W
nや減速度Aan ,Abn の値を安定させるために、
開閉スイッチ13の前方への傾倒操作による上昇要求信
号13aの出力開始から200msが経過するのを待っ
てから行う。また、前記窓ガラス51の上端51aが前
記境界位置DLよりも上方の全閉領域Scに位置し、ウ
ェザーストリップ53の外側下端面53aと窓ガラス5
1の上端51aの間に隙間が生じない状態では、前記第
1及び第2カウンタエリアのカウンタ値Ca,Cbが両
方とも、境界値NDET よりも小さくなるので、上述した
異物の挟み込みの検出動作は行わない。さらに、窓ガラ
ス51の下降時は、ドア5の窓枠と窓ガラス51の間に
異物があっても挟まる心配がないので、この場合にも上
述の異物の挟み込み検出動作は行わない。
The above-mentioned periods Wa n , Wb n and deceleration Aa
The execution determination of the entrapment release operation based on the values of n and Ab n
The rotation speed of the motor 11, and thus the periods Wa n , W
b n and deceleration Aa n, in order to stabilize the value of the Ab n,
The operation is performed after a lapse of 200 ms from the start of the output of the rising request signal 13a by the forward tilting operation of the open / close switch 13. Further, the upper end 51a of the window glass 51 is located in the fully closed area Sc above the boundary position DL, and the outer lower end surface 53a of the weather strip 53 and the window glass 5
When no gap is formed between the upper ends 51a of the first and second counters 51a, both of the counter values Ca and Cb in the first and second counter areas are smaller than the boundary value N DET , so that the above-described foreign object entrapment detecting operation is performed. Is not performed. Further, when the window glass 51 is lowered, there is no fear that a foreign object is caught between the window frame of the door 5 and the window glass 51. Therefore, the above-described foreign object detection operation is not performed in this case.

【0071】また、開閉スイッチ13の1回の傾倒操作
中に、第1及び第2センサ31a,31bのうちどちら
か一方の故障により、第1及び第2パルス信号Pa,P
bのうちどちらか一方だけが出力され、他方が全く出力
されない場合、この現象がパルス10個分連続すると、
出力されないパルス信号Pa,Pbに対応するカウント
値Ca,Cbが、窓ガラスの開閉位置に全く対応しない
不確定な値になったものとして、窓ガラス51を全閉位
置側に上昇させる際に、次に示す処理が行われる。
During one tilting operation of the open / close switch 13, the first and second pulse signals Pa and P are output due to the failure of one of the first and second sensors 31a and 31b.
If only one of b is output and the other is not output at all, if this phenomenon continues for 10 pulses,
Assuming that the count values Ca and Cb corresponding to the pulse signals Pa and Pb that are not output have become indefinite values that do not correspond to the open / close position of the window glass at all, when the window glass 51 is raised to the fully closed position side, The following processing is performed.

【0072】開閉スイッチ13の操作によりモータ11
を窓ガラス51の全閉位置側に回転させる場合、モータ
11の回転時間に相関がある開閉スイッチ13の操作か
らの経過時間Tuが規定時間Tpに達するか、或は、窓
ガラス51の上昇量に相関があるパルス信号Pa,Pb
のうち少なくとも一方が規定値Cpに達すると、窓ガラ
ス51が全閉位置に達していなくても、モータ11の回
転が無条件で停止され、その後は、開閉スイッチ13の
操作を一旦解除しない限り、いくら開閉ボタン13をそ
のまま操作し続けても、モータ11は回転しない。そし
て、開閉ボタン13の操作と操作解除の繰り返しによ
り、窓ガラス51が全閉位置に達すると、前記第1及び
第2カウンタエリアのカウンタ値Ca,Cbが両方と
も、全閉位置に対応する「0」に再設定され、また、片
側カウンタも「0」に再設定される。尚、この処理は、
マイコン15に接続されたバッテリ(図示せず)を交換
する際等、カウント値Ca,Cbがリセットされて位置
確認フラグエリアのフラグFが「0」となる際にも、同
様にして行われる。
The operation of the open / close switch 13 causes the motor 11
Is rotated to the fully-closed position side of the window glass 51, the elapsed time Tu from the operation of the open / close switch 13 having a correlation with the rotation time of the motor 11 reaches the specified time Tp, or the amount of rise of the window glass 51 Pulse signals Pa and Pb having correlation with
When at least one of them reaches the specified value Cp, the rotation of the motor 11 is stopped unconditionally even if the window glass 51 has not reached the fully closed position, and thereafter, unless the operation of the open / close switch 13 is once released. No matter how much the open / close button 13 is continuously operated, the motor 11 does not rotate. When the window glass 51 reaches the fully closed position by repeatedly operating and releasing the open / close button 13, the counter values Ca and Cb in the first and second counter areas both correspond to the fully closed position. The counter is reset to "0", and the one-sided counter is reset to "0". This processing is
The same operation is performed when the count value Ca, Cb is reset and the flag F in the position confirmation flag area becomes “0”, for example, when replacing a battery (not shown) connected to the microcomputer 15.

【0073】このように本実施例のパワーウィンド装置
によれば、モータ11が回転するのに同期して、パルス
発生器31の第1及び第2の2つのセンサ31a,31
bからモータ11の1周当りに1回ずつ出力される、各
パルス信号Pa,Pbのパルス数を、モータ11の回転
方向に応じて第1及び第2位置カウンタエリアでアップ
ダウンカウントして得るカウント値Ca,Cbが、窓ガ
ラス51の開閉位置に対応しない不確定な値になった時
等の、窓ガラス51を全閉位置に移動させてカウント値
Ca,Cbを「0」に設定し直す必要がある場合に、開
閉スイッチ13を操作し続けても、モータ11の回転が
一定の時間、或は、移動量で停止される構成とした。
As described above, according to the power window device of this embodiment, the first and second two sensors 31a, 31a of the pulse generator 31 are synchronized with the rotation of the motor 11.
b, the number of pulses of each of the pulse signals Pa and Pb output once per rotation of the motor 11 is obtained by counting up and down in the first and second position counter areas according to the rotation direction of the motor 11. When the count values Ca and Cb become undefined values that do not correspond to the open / close position of the window glass 51, the window glass 51 is moved to the fully closed position and the count values Ca and Cb are set to “0”. When it is necessary to correct the rotation, the rotation of the motor 11 is stopped for a certain period of time or by a movement amount even if the open / close switch 13 is continuously operated.

【0074】このため、例えば、窓ガラス51による異
物の挟み込みの検出を行えないような、カウント値C
a,Cbが不確定な状態で、挟み込みの可能性がある全
閉位置側に窓ガラス51を上昇させる場合に、例えば子
供がいたずらで開閉スイッチ13を操作したり、窓ガラ
ス51を見ないまま開閉スイッチ13を操作した場合で
あっても、操作中継続して窓ガラス51が上昇すること
がなく、従って、異物の挟み込みに対する安全性を高く
維持することができる。
For this reason, for example, the count value C is set so that it is not possible to detect the entrapment of the foreign matter by the window glass 51.
When the window glass 51 is raised to the fully closed position side where there is a possibility of being pinched in a state where a and Cb are indeterminate, for example, the child operates the open / close switch 13 with prank or does not look at the window glass 51. Even when the open / close switch 13 is operated, the window glass 51 does not continuously rise during the operation, so that the safety against pinching of foreign matter can be maintained at a high level.

【0075】また、本実施例によれば、開閉スイッチ1
3の操作中に窓ガラス51を上昇させるためのモータ1
1の回転が停止した後、開閉スイッチ13の操作を解除
すると、モータ11の回転停止が解除される構成とした
ので、モータ11が停止した後にモータ11を再び回転
させるためには、開閉スイッチ13の操作解除及び再操
作が必要となり、その際に、窓ガラス51の上昇状態に
対するユーザの喚起を促し、異物の挟み込みの検出を行
えない状態での窓ガラス51の上昇動作が安全に行われ
るようにすることができる。
According to the present embodiment, the open / close switch 1
Motor 1 for raising window glass 51 during operation of 3
When the operation of the open / close switch 13 is released after the rotation of the motor 1 is stopped, the rotation stop of the motor 11 is released. Therefore, in order to rotate the motor 11 again after the motor 11 stops, the open / close switch 13 is required. Is required to be released and re-operated. At that time, the user is urged to be alerted to the rising state of the window glass 51, so that the rising operation of the window glass 51 in a state where it is not possible to detect the entrapment of foreign matter is performed safely. Can be

【0076】尚、第1及び第2位置カウンタエリアのカ
ウント値Ca,Cbを基にして窓ガラス51の開閉位置
を検出するための構成や、異物の挟み込み状態を検出す
るための構成、異物の挟み込みを検出した後の挟み込み
状態を解除するための構成、及び、窓ガラス51の開閉
位置とはそれ程差がない状態でのカウント値Ca,Cb
間の差を補正するための構成は、本実施例で示した構成
に限らず任意であり、或は、これらの構成の一部又は全
部を省略してもよい。
The structure for detecting the open / close position of the window glass 51 based on the count values Ca and Cb of the first and second position counter areas, the structure for detecting the state of foreign matter being pinched, and the structure for detecting foreign matter A configuration for canceling the entrapment state after the entrapment is detected, and the count values Ca and Cb in a state where there is not much difference from the open / close position of the window glass 51.
The configuration for correcting the difference between them is not limited to the configuration shown in the present embodiment, but may be arbitrary, or some or all of these configurations may be omitted.

【0077】また、本実施例では、第1及び第2センサ
31a,31bからの2つのパルス信号Pa,Pbによ
り第1及び第2の2つのカウント値Ca,Cbを得る構
成としたが、単一のパルス信号で単一のカウント値を得
る構成のパワーウィンド装置にも本発明は適用可能であ
る。さらに、第1及び第2カウント値Ca,Cbをアッ
プダウンカウントするタイミングは、パルス信号の立ち
上がり及び立ち下がりのうちどちらか一方のエッジを検
出した時等、本実施例で示したタイミングに限定されず
任意であり、パルス信号Pa,Pbを出力する構成及び
検出する構成も、本実施例で示した構成に限らず任意で
ある。そして、本発明は、本実施例で示したような、車
両の側部のドア5の窓ガラス51を開閉するパワーウィ
ンド装置に限らず、後部のドアの窓ガラス等、モータに
より窓ガラスを開閉するパワーウィンド装置に広く適用
可能であることは言うまでもない。
In this embodiment, the first and second count values Ca and Cb are obtained from the two pulse signals Pa and Pb from the first and second sensors 31a and 31b. The present invention is also applicable to a power window device configured to obtain a single count value with one pulse signal. Further, the timing for counting up and down the first and second count values Ca and Cb is limited to the timing shown in the present embodiment, such as when one of the rising edge and the falling edge of the pulse signal is detected. The configuration for outputting the pulse signals Pa and Pb and the configuration for detecting the pulse signals are not limited to the configuration shown in the present embodiment, and are arbitrary. The present invention is not limited to the power window device that opens and closes the window glass 51 of the door 5 on the side of the vehicle as shown in the present embodiment, but also opens and closes the window glass by a motor, such as the window glass of the rear door. It is needless to say that the present invention can be widely applied to a power window device that performs the following operations.

【0078】[0078]

【発明の効果】以上説明したように本発明によれば、開
閉スイッチの操作に応じてモータにより窓ガラスを開閉
方向に移動させ、前記モータの回転に同期して出力され
るパルス信号のパルス数と該モータの回転方向とによ
り、カウンタ手段のカウント値を増減させて前記窓ガラ
スの開閉位置に対応させるパワーウィンド装置におい
て、前記窓ガラスの開閉位置に対して前記カウント値が
対応しているか否かを判別する判別手段と、前記判別手
段の判別結果を基に、前記窓ガラスの開閉位置に対する
前記カウント値の非対応時に、前記開閉スイッチの操作
による前記窓ガラスの閉方向への前記モータの回転を、
該モータの回転開始から所定時間が経過した時点、及
び、前記窓ガラスが所定量移動した時点のうち少なくと
も一方の時点で停止させる移動量規制手段と、前記窓ガ
ラスの開閉位置に対する前記カウント値の非対応時に、
前記閉方向に前記モータを回転させるための前記開閉ス
イッチの操作が解除された際、前記移動量規制手段によ
る前記モータの回転停止を解除させる規制解除手段と
設ける構成とした。
As described above, according to the present invention, the window glass is moved in the opening / closing direction by the motor in response to the operation of the open / close switch, and the number of pulses of the pulse signal output in synchronization with the rotation of the motor is controlled. A power window device for increasing or decreasing the count value of the counter means in accordance with the rotational direction of the motor to correspond to the open / close position of the windowpane, wherein the count value corresponds to the open / close position of the windowpane Determining means for determining whether the motor is in the closing direction of the window glass by operating the open / close switch when the count value does not correspond to the open / close position of the window glass based on the determination result of the determining means. Rotation,
Movement amount regulating means for stopping at least one of a time when a predetermined time has elapsed from the start of rotation of the motor and a time when the window glass has moved by a predetermined amount ;
When the count value does not correspond to the open / close position of the lath,
The opening and closing switch for rotating the motor in the closing direction;
When the operation of the switch is released, the
And a regulation release means for releasing the rotation stop of the motor .

【0079】このため、例えば、バッテリの交換や、パ
ルス信号の出力漏れ或は検出漏れ等により、実際の窓ガ
ラスの開閉位置とカウント値の間にずれが生じ、これを
解消するために、窓ガラスを移動範囲の基準位置となる
全閉位置に移動して、該全閉位置に対応する所定の値に
カウント値を設定し直す必要がある場合等に、開閉スイ
ッチを操作し続けても、モータの回転が移動量規制手段
により一定の時間、或は、移動量で停止され、特に、異
物を挟み込む可能性がある窓ガラスの閉方向への移動が
安全に行うことができる等の効果を奏する。
For this reason, for example, due to the replacement of the battery or the output leak or the detection leak of the pulse signal, a deviation occurs between the actual open / close position of the window glass and the count value. Even if the glass is moved to the fully closed position, which is the reference position of the movement range, and it is necessary to reset the count value to a predetermined value corresponding to the fully closed position, even if the open / close switch is continuously operated, The rotation of the motor is stopped for a fixed time or by the amount of movement by the movement amount restricting means, and in particular, there is an effect that the movement of the window glass, which may pinch foreign matter, in the closing direction can be performed safely. Play.

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

【図1】本発明のパワーウィンド装置の基本構成図であ
る。
FIG. 1 is a basic configuration diagram of a power window device of the present invention.

【図2】本発明の一実施例に係るパワーウィンド装置の
概略構成を一部ブロックで示す説明図である。
FIG. 2 is an explanatory diagram showing a schematic configuration of a power window device according to an embodiment of the present invention by partial blocks.

【図3】図2のパルス信号発生器の構成を示す説明図で
ある。
FIG. 3 is an explanatory diagram showing a configuration of a pulse signal generator of FIG. 2;

【図4】図3のパルス信号発生器の第1及び第2センサ
が出力するパルス信号の説明図である。
FIG. 4 is an explanatory diagram of a pulse signal output by first and second sensors of the pulse signal generator of FIG. 3;

【図5】図2に示すマイクロコンピュータのハードウェ
ア構成を示すブロック図である。
5 is a block diagram showing a hardware configuration of the microcomputer shown in FIG.

【図6】図2に示すマイクロピュータのRAMのメモリ
エリアマップである。
FIG. 6 is a memory area map of a RAM of the microcomputer shown in FIG. 2;

【図7】図2に示すマイクロピュータのROMに格納さ
れた制御プログラムに従いCPUが行う処理を示すフロ
ーチャートである。
FIG. 7 is a flowchart showing a process performed by a CPU according to a control program stored in a ROM of the microcomputer shown in FIG. 2;

【図8】図2に示すマイクロピュータのROMに格納さ
れた制御プログラムに従いCPUが行う処理を示すフロ
ーチャートである。
8 is a flowchart showing a process performed by a CPU according to a control program stored in a ROM of the microcomputer shown in FIG.

【図9】図2に示すマイクロピュータのROMに格納さ
れた制御プログラムに従いCPUが行う処理を示すフロ
ーチャートである。
FIG. 9 is a flowchart showing a process performed by a CPU according to a control program stored in a ROM of the microcomputer shown in FIG. 2;

【図10】図2に示すマイクロピュータのROMに格納
された制御プログラムに従いCPUが行う処理を示すフ
ローチャートである。
FIG. 10 is a flowchart showing a process performed by a CPU according to a control program stored in a ROM of the microcomputer shown in FIG. 2;

【図11】図2に示すマイクロピュータのROMに格納
された制御プログラムに従いCPUが行う処理を示すフ
ローチャートである。
FIG. 11 is a flowchart showing a process performed by a CPU according to a control program stored in a ROM of the microcomputer shown in FIG.

【図12】図7に示す第1センサパルス検出割込処理の
サブルーチンを示すフローチャートである。
FIG. 12 is a flowchart showing a subroutine of a first sensor pulse detection interrupt process shown in FIG. 7;

【図13】図7に示す第1センサパルス検出割込処理の
サブルーチンを示すフローチャートである。
FIG. 13 is a flowchart showing a subroutine of a first sensor pulse detection interrupt process shown in FIG. 7;

【図14】図2に示す窓ガラスの全閉領域と挟み込み検
出領域との境界位置を示す説明図である。
FIG. 14 is an explanatory diagram showing a boundary position between the fully closed area of the window glass and the pinch detection area shown in FIG. 2;

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

11 モータ 13 開閉スイッチ 15 マイクロコンピュータ 15a CPU 15b RAM 15c ROM 15A カウンタ手段 15B 判別手段 15C 移動量規制手段 15D 規制解除手段 51 窓ガラス CA カウント値 PA パルス信号 Reference Signs List 11 motor 13 open / close switch 15 microcomputer 15a CPU 15b RAM 15c ROM 15A counter means 15B discriminating means 15C movement amount regulating means 15D regulation releasing means 51 window glass CA count value PA pulse signal

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 開閉スイッチの操作に応じてモータによ
り窓ガラスを開閉方向に移動させ、前記モータの回転に
同期して出力されるパルス信号のパルス数と該モータの
回転方向とにより、カウンタ手段のカウント値を増減さ
せて前記窓ガラスの開閉位置に対応させるパワーウィン
ド装置において、 前記窓ガラスの開閉位置に対して前記カウント値が対応
しているか否かを判別する判別手段と、 前記判別手段の判別結果を基に、前記窓ガラスの開閉位
置に対する前記カウント値の非対応時に、前記開閉スイ
ッチの操作による前記窓ガラスの閉方向への前記モータ
の回転を、該モータの回転開始から所定時間が経過した
時点、及び、前記窓ガラスが所定量移動した時点のうち
少なくとも一方の時点で停止させる移動量規制手段と、 前記窓ガラスの開閉位置に対する前記カウント値の非対
応時に、前記閉方向に前記モータを回転させるための前
記開閉スイッチの操作が解除された際、前記移動量規制
手段による前記モータの回転停止を解除させる規制解除
手段と を設けた、 ことを特徴とするパワーウィンド装置。
1. A window means is moved by a motor in an opening and closing direction in response to an operation of an on / off switch, and a counter means is provided based on the number of pulses of a pulse signal output in synchronization with the rotation of the motor and the rotation direction of the motor. A power window device for increasing or decreasing the count value of the window glass to correspond to the open / close position of the windowpane, wherein a determination unit that determines whether the count value corresponds to the open / close position of the windowpane, Based on the determination result, when the count value does not correspond to the open / close position of the window glass, the rotation of the motor in the closing direction of the window glass by operating the open / close switch is performed for a predetermined time from the start of rotation of the motor. time but have passed, and the window glass and the movement amount regulating means for stopping at least one point of time of the movement a predetermined amount, the window glass Unpaired of the count value for the closed position
Timely to rotate the motor in the closing direction.
When the operation of the open / close switch is released, the movement amount is restricted.
Release of the rotation stop of the motor by means
Provided with means, a power window device, characterized in that.
JP02625395A 1995-01-22 1995-01-22 Power window equipment Expired - Fee Related JP3211928B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02625395A JP3211928B2 (en) 1995-01-22 1995-01-22 Power window equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02625395A JP3211928B2 (en) 1995-01-22 1995-01-22 Power window equipment

Publications (2)

Publication Number Publication Date
JPH08199909A JPH08199909A (en) 1996-08-06
JP3211928B2 true JP3211928B2 (en) 2001-09-25

Family

ID=12188114

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02625395A Expired - Fee Related JP3211928B2 (en) 1995-01-22 1995-01-22 Power window equipment

Country Status (1)

Country Link
JP (1) JP3211928B2 (en)

Also Published As

Publication number Publication date
JPH08199909A (en) 1996-08-06

Similar Documents

Publication Publication Date Title
US4870333A (en) Automatic opening and closing device for a window
TWI221813B (en) Entrapment detecting device for an opening/closing member
US20050275363A1 (en) Control device of opening and closing member
JP2000199373A (en) Method of detecting nip in power window device
JP2845427B2 (en) Window opener
JP3211928B2 (en) Power window equipment
CN115788209B (en) A method, system, device, and storage medium for preventing pinching of a vehicle's electric tailgate.
JP3282124B2 (en) Window opening / closing position detector for power windows
JPH0762947A (en) Power window control device
JPH0512464Y2 (en)
JPH10262385A (en) Window opening and closing control device
JP2942127B2 (en) Power window drive control device
JP3090034B2 (en) Power window equipment
JP3309364B2 (en) Power window jam detector
JP2823554B2 (en) Window opener
JP2823553B2 (en) Window opener
JP3405486B2 (en) Power window jam detector
JP3211927B2 (en) Power window jam detector
JPH0921273A (en) Opening / closing control device for opening / closing body
JP2818108B2 (en) Opening / closing body drive control device
JP3470447B2 (en) Opening / closing control device
JP2736009B2 (en) Opening / closing body drive control device
JP3387281B2 (en) Opening / closing control device
JP2823541B2 (en) Window opener
JP2823538B2 (en) Window opener

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010605

LAPS Cancellation because of no payment of annual fees