JPS5983218A - Driving controller of electromotive equipment on car - Google Patents

Driving controller of electromotive equipment on car

Info

Publication number
JPS5983218A
JPS5983218A JP57193867A JP19386782A JPS5983218A JP S5983218 A JPS5983218 A JP S5983218A JP 57193867 A JP57193867 A JP 57193867A JP 19386782 A JP19386782 A JP 19386782A JP S5983218 A JPS5983218 A JP S5983218A
Authority
JP
Japan
Prior art keywords
electric motor
electric
motor
window
control device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP57193867A
Other languages
Japanese (ja)
Inventor
Teiji Okuyama
奥山 逞司
Hiroshi Notomi
納富 洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisin Corp
Original Assignee
Aisin Seiki Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aisin Seiki Co Ltd filed Critical Aisin Seiki Co Ltd
Priority to JP57193867A priority Critical patent/JPS5983218A/en
Publication of JPS5983218A publication Critical patent/JPS5983218A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60JWINDOWS, WINDSCREENS, NON-FIXED ROOFS, DOORS, OR SIMILAR DEVICES FOR VEHICLES; REMOVABLE EXTERNAL PROTECTIVE COVERINGS SPECIALLY ADAPTED FOR VEHICLES
    • B60J10/00Sealing arrangements
    • B60J10/70Sealing arrangements specially adapted for windows or windscreens
    • B60J10/74Sealing arrangements specially adapted for windows or windscreens for sliding window panes, e.g. sash guides

Abstract

PURPOSE:To detect the overload of an equipment on a car with a high sensitivity, by providing a position detector and changing the overload reference level in accordance with the output of this detector. CONSTITUTION:A position detector SE consisting of a reflective photo sensor whose tip is projected to the hollow part of a weather strip 8 is provided on a door 1 of a side window. When a window glass 2 rises to deform the weather strip 8, the detector SE detects the reflected light. At this time, when the deformation of the weather strip 8 is increased in accordance with rise of the glass 2, the current of a motor which drives the glass 2 is increased proportionally. Consequently, the overload reference level for stopping the rotation of the motor is changed in accordance with the rise position of the window glass, namely, the output of the detector SE to detect the overload with a high sensitivity, namely, preventing the danger.

Description

【発明の詳細な説明】 本発明は、車上サイドウィンドウ、ルーフパネル、シー
1−、ミラー等の姿勢設定あるいは位置決めを行なう位
置制御に関し、特に、それらを駆動する電動機構の位置
決めにおける駆動源の過負荷防止に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to position control for setting or positioning vehicle side windows, roof panels, seats, mirrors, etc., and particularly to position control for positioning the electric mechanisms that drive them. Regarding overload prevention.

車輌においては、サイドウィンドウ(ドライバ席ドアの
窓、助手席ドアの窓、ドライバ席後部のドアの窓および
助手席後部のドアの窓)、サンルーフ(ルーフパネル)
、座席シー1−9車内外のミラー等々が電動駆動される
ようになっているものがある。これらの装置は一般に、
操作スイッチでモータの正逆転付勢回路を閉じてモータ
を付勢するようになっており、他の方式としてマイクロ
コンピュータなどの、高度演算機能を有する電子市(制
御装置を中央制御装置として用b1て、こh L:Lよ
り可動体の現在位置を監視させて、キースイッチ操作で
指示された位置に可動体を(立置法めするようにしたも
のもある。
For vehicles, side windows (driver's door window, passenger's door window, driver's rear door window, and passenger's rear door window), sunroof (roof panel)
In some cars, mirrors inside and outside the seat seats 1-9 are electrically driven. These devices generally
The motor is energized by closing the forward/reverse energizing circuit of the motor using an operation switch. There is also a system in which the current position of the movable body is monitored from L:L, and the movable body is placed vertically at a position instructed by key switch operation.

この種の車上電動装備における問題、鑞の1つFこ、可
動体に物が乗ったり人がつ力)えたIJ、あるvslよ
駆動機構に異物が挟まったりすると、モータカ1イ」勢
されているにもかかわらず機構力< r’x滑(こ動力
)ず駆動源が過負荷になったり、人や機構力1損傷を受
けたりすることがある。また1機構部の摩耗やガタなど
により、時がたつにつ]して1S動部のイ立置決めが不
正確になることがある。
The problem with this type of on-vehicle electric equipment is that if a foreign object gets caught in the drive mechanism, such as an IJ with an object placed on a movable body or a person applying force, the motor will be overpowered. Even though the mechanical force <r'x, the mechanical force may not slip and the drive source may become overloaded, causing damage to personnel or mechanical force. In addition, over time, due to wear and play in the 1st mechanical part, the vertical positioning of the 1S moving part may become inaccurate.

駆動源の過負荷を検出する番こ1よ、たとえ>i電気モ
ータを用いる場合にはそのモータ番;流れる電流を監視
すればよい。ところが、たとえLfサイドウィンドウを
駆動(閉)する場合に1よ、とhカ1全開となる前に窓
ガラスとウェザストリップと力1接角虫してモータの負
荷が増大するので異常力1なし)場合番こもモータを流
れる電流が大幅に変化する。確実番こ全閉位置まで窓ガ
ラスを駆動するにはウェザストリップがモータの負荷と
なる場合でもこ]tを異り:(′として判定しないよう
に負荷電流の判定レベルを大きくすればよい。しかしそ
のようにすると逆Fこ人の手が窓ガラスに挟まった場合
などの異常を直ちに判定できず1人に損傷を与える危険
力1ある。
Step 1: Detecting an overload on the drive source.If >i electric motor is used, it is sufficient to monitor the current flowing through the motor. However, even if the Lf side window is driven (closed), there will be no abnormal force 1 because the motor load will increase due to the force 1 intersecting with the window glass and weather strip before the h 1 is fully opened. ), the current flowing through the motor changes significantly. In order to reliably drive the window glass to the fully closed position, even if the weather strip acts as a load on the motor, change t: (The judgment level of the load current should be increased so as not to be judged as '. However, If this is done, abnormalities such as when a person's hand gets stuck in a window glass cannot be immediately determined, and there is a risk of injury to the person.

そこで、ロータリーエンコーダ等の移動量検υ3利跨を
駆動機構に設けて窓ガラスの位置を把握し、予めメモリ
中□に記憶させた位置毎の電流データ(負荷データ)の
対応するものを参照すること番こより正常時の負荷増大
と異常時の負荷増大とを区別するようにすることが提案
されている。これによれば、正常時の負荷の大きさに近
い電流レベルを参照レベルとすることができ、異常のす
ぼやt)判定および確実な全開を行ないつる。しかしな
がらこれにおいては、精度を高くするには分解能の高b
)(すなわち高価な)ロータリーエンコーダを用(洩る
必要があるし、ノイズ等により)(ルスカウントミスを
して位置ずれを生ずることがある。
Therefore, a movement amount detector such as a rotary encoder is provided in the drive mechanism to grasp the position of the window glass, and the corresponding current data (load data) for each position stored in advance in the memory is referred to. It has been proposed to distinguish between an increase in load during normal times and an increase in load during abnormal times. According to this, a current level close to the magnitude of the load during normal operation can be used as a reference level, and it is possible to determine whether there is an abnormality and to fully open the engine reliably. However, in this case, high resolution b is required for high accuracy.
) (that is, an expensive) rotary encoder (which requires leakage, noise, etc.) (which may cause miss-counting and positional deviations).

本発明は、異常時にはすばやく動作を停止するとともに
駆動中に正常な負荷変化があっても確実に限界位置まで
車上装備を駆動することを第1の目的とし、位置決め精
度の高い車上電動装備の駆動制御装置を提供することを
第2の目的とする。
The primary purpose of the present invention is to quickly stop operation in the event of an abnormality, and to reliably drive on-vehicle equipment to the limit position even if there is a normal load change during drive, and to achieve high positioning accuracy on-board electric equipment. A second object of the present invention is to provide a drive control device.

」二記目的を達成するために本発明においては、モータ
負荷の大きさを参照データと比較して異常の有無を判定
するとともに、車上装備の可動体の位置が正常時でも負
荷に変動を生ずる位置かどうかを検出する位置検出器を
設けて、この位置検出器の出力に応じて参照データを変
更する。これによれば、たとえば窓ガラスの駆動におい
ては、ウェザストリップが変形する位置に窓ガラスの上
端が達するのを検出して参照レベルを高く(すなわち正
常な負荷増大)設定し、全開位置まで窓ガラスを駆動で
きる。窓ガラスが大きな負荷変動が生じない位置である
ことを位置検出器が検出している時には、実際の負荷レ
ベルよりもわずかに高いレベルを参照レベルとすること
により、窓ガラスに人の手が挟まる場合などに生ずる、
負荷変化を敏感に検出して直ちに駆動を停止あるいは逆
転できる。
In order to achieve the second objective, the present invention compares the magnitude of the motor load with reference data to determine the presence or absence of an abnormality, and also detects fluctuations in the load even when the position of the movable body on the vehicle is normal. A position detector is provided to detect whether or not the position occurs, and the reference data is changed in accordance with the output of this position detector. According to this, when driving a window glass, for example, it is detected that the top edge of the window glass reaches the position where the weather strip deforms, a reference level is set high (that is, a normal load increase), and the window glass is moved to the fully open position. can be driven. When the position detector detects that the window glass is at a position where large load fluctuations do not occur, the reference level is set to a level that is slightly higher than the actual load level, thereby preventing a person's hand from getting caught in the window glass. Occurs in cases, etc.
It can sensitively detect load changes and immediately stop or reverse the drive.

たとえば窓ガラス等を駆動する場合、その開度を全開お
よび全開の他に1/3.1/2.2/3等に設定したい
場合がある。このような位置決めを正確に行なうには、
ロータリーエンコーダ等の動作量検出器(移動信号発生
器)を用いてパルス数をカウントして位置検出を行なう
のが好ましい。そこで本発明の好ましい態様においては
、ロータリーエンコーダ等の動作量検出器と、所定位置
を検°出する位置検出器との2つの検出器を設けて、位
置検出器の出力に応じて基準位置を設定し、この基準位
置に対する移動量を動作量検出器から得て位置を把握す
る。これによれば長期間、車上装備の正確な位置決めを
しうる。
For example, when driving a window glass, there are cases where it is desired to set the opening degree to 1/3.1/2.2/3, etc. in addition to fully open and fully open. To perform such positioning accurately,
It is preferable to detect the position by counting the number of pulses using a motion amount detector (movement signal generator) such as a rotary encoder. Therefore, in a preferred embodiment of the present invention, two detectors are provided: a motion amount detector such as a rotary encoder, and a position detector that detects a predetermined position, and the reference position is determined according to the output of the position detector. The position is determined by obtaining the amount of movement relative to this reference position from the motion amount detector. According to this, the on-vehicle equipment can be accurately positioned for a long period of time.

以下、車輌上サイドウィンドウを開閉駆動制御する本発
明の詳細な説明する。
EMBODIMENT OF THE INVENTION Hereinafter, the present invention for controlling opening and closing of a side window on a vehicle will be described in detail.

第1a図に自動車の、助手席ドア1の、窓ガラス2を昇
降駆動する電動機構を示す。
FIG. 1a shows an electric mechanism for raising and lowering a window glass 2 of a passenger door 1 of an automobile.

窓ガラス2に固着されている上、下ガイドレールのそれ
ぞれに、リンクアーム31+32の一端のピンが結合し
ており、リンクアーム32の他端に係合する昇降アーム
を、それに結合した扇形歯車4が昇降駆動する。扇形歯
車4はウオーム・ホイール組体5のホイールに噛み合っ
ており、ホイールに噛み合っているウオームに電気モー
タMaの回転軸が結合している。これにより、モータM
aが正回転すると扇形歯車4が第1a図で時計方向に回
転してガラス2を上方に押し上げる。モータMbが逆回
転すると扇形歯車4が反時計方向に回転してガラス2を
下降させる。
A pin at one end of link arms 31 + 32 is connected to each of the upper and lower guide rails fixed to the window glass 2, and a lifting arm that engages with the other end of the link arm 32 is connected to a sector gear 4 connected thereto. drives up and down. The sector gear 4 meshes with a wheel of a worm wheel assembly 5, and the rotating shaft of the electric motor Ma is coupled to the worm meshing with the wheel. As a result, motor M
When a rotates forward, the sector gear 4 rotates clockwise in FIG. 1a, pushing the glass 2 upward. When the motor Mb rotates in the opposite direction, the sector gear 4 rotates counterclockwise to lower the glass 2.

ウオーム・ホイール組体5においては、ホイール軸に固
着された回転円板にリング状の永久磁石7aが固着され
ており、この永久磁石7aの外側面に、ホール素子とそ
の磁界検出信号を処理する電気回路を一体に集積したホ
ールICユニツ1−68が対向設置されている。永久磁
石7aは周方向に分極磁化されているので、ホイールが
回転するとサイン波状の電気信号をホールICユニット
6aが発生する。扇形歯車4とウオーム・ホイール組体
5との組合せを第1b図に、またウオーム・ホイール組
体5の永久磁石7aとホールICユニット6aの組合せ
を第1C図に示す。
In the worm wheel assembly 5, a ring-shaped permanent magnet 7a is fixed to a rotating disk fixed to the wheel shaft, and a Hall element and its magnetic field detection signal are processed on the outer surface of the permanent magnet 7a. Hall IC units 1-68, which are integrally integrated with electric circuits, are installed facing each other. Since the permanent magnet 7a is polarized and magnetized in the circumferential direction, when the wheel rotates, the Hall IC unit 6a generates a sinusoidal electric signal. The combination of the sector gear 4 and the worm wheel assembly 5 is shown in FIG. 1b, and the combination of the permanent magnet 7a of the worm wheel assembly 5 and the Hall IC unit 6a is shown in FIG. 1C.

ドア1上部には、ウェザ−ストリップ8の中空部に先端
を突出させた位置検出器SEを設けである。
A position detector SE having a tip protruding from the hollow part of the weather strip 8 is provided at the top of the door 1.

第2e図を参照して説明すると、位置検出器8丁っは、
この実施例では反射型フォトセンサになっており、発光
ダイオードLEI、フ第1−トランジスタp ’r i
 、集光用レンズLZI、LZ2.プリズムPZ]、P
Z2等で構成しである。ウェザ−ストリップ8内面の、
それが変形するときに位置検出器SEと対向する位置P
(小円形)には、光反射率を大きくするために白色の塗
装をしである。
To explain with reference to Fig. 2e, the eight position detectors are
In this embodiment, a reflective photosensor is used, including a light emitting diode LEI, a first transistor p'r i
, condensing lens LZI, LZ2. Prism PZ], P
It is composed of Z2 etc. On the inside of weather strip 8,
The position P facing the position detector SE when it is deformed
(Small circle) is painted white to increase light reflectance.

第2a図に示ずように窓ガラス2が所定量以上間いてい
ると、発光ダイオードLEIから出る光が位置Pに当た
らず、また位[Pに当たっても反射方向がレンズLZ2
に向かないため、フォトトランジスタPTは光を検出し
ない。しかし第2b図。
If the window glass 2 is spaced by a predetermined amount or more as shown in FIG.
Therefore, the phototransistor PT does not detect light. However, Fig. 2b.

第2c図又は第2d図に示すように窓ガラス2がウェザ
ストリップ8を変形させると、発光ダイオ−ドLEIを
出た光がウェザース1ヘリツブ8で反射してこれがフォ
1−トランジスタPTIで検出される。つまり窓ガラス
2が第2b図の位置よりも上にあると位置検出器SEは
反射光を検出し、それよりも窓ガラスが下であるとSE
は反射光を検出しない。
When the window glass 2 deforms the weather strip 8 as shown in FIG. 2c or 2d, the light emitted from the light emitting diode LEI is reflected by the weather strip 8 and detected by the photo transistor PTI. Ru. In other words, when the window glass 2 is above the position shown in FIG. 2b, the position detector SE detects the reflected light, and when the window glass 2 is below the position shown in FIG.
does not detect reflected light.

モータMaを正転駆動してガラス2を上昇駆動している
状態で、ガラス2の先端が第2a図に示すように、まだ
ウェザ−ストリップ8に当っていないときには、モータ
電流は低く、その変動は小さい。しかしガラス2が上昇
して第2b図に示すようにウェザ−ストリップ8に当る
と、それからモータ電流(モータ負荷)が増大し、第2
c図に示すようにウエザース1−リップ8を圧縮するよ
うになるとモータ電流が更に上昇し、第2d図に示すよ
うに完全にウェザ−ストリップ8を圧縮すると電動機構
が停止し、モータ電流が急上昇する。窓全開から第2d
図に示す窓全開までのガラス2の駆動し弓おけるモータ
Mdの電流変化を第3a図に示す。モータ電流は公知の
如くモータの機械的な負荷に対応し、第3b図に示すよ
うに、比例関係がある。
When the glass 2 is being driven upward by driving the motor Ma in normal rotation, and the tip of the glass 2 has not yet hit the weather strip 8 as shown in FIG. 2a, the motor current is low and its fluctuation is low. is small. However, when the glass 2 rises and hits the weather strip 8 as shown in Figure 2b, the motor current (motor load) then increases and the second
When the weather strip 8 is compressed as shown in figure c, the motor current further increases, and when the weather strip 8 is completely compressed as shown in figure 2d, the electric mechanism stops and the motor current increases rapidly. do. 2nd d from window fully open
FIG. 3a shows the change in the current of the motor Md while the glass 2 is being driven until the window is fully opened as shown in the figure. The motor current corresponds to the mechanical load of the motor in a known manner, and there is a proportional relationship as shown in FIG. 3b.

ドライバ席ドア、ドライバ席後部ドアおよび助手席後部
ドアのそれぞれにも上述の電動駆動機構と全く同じ構成
の電動駆動機構が備わっており、各電動駆動機構の電気
モータも、」二連の特性と同様な特性を示す。
The driver's door, driver's rear door, and passenger's rear door are each equipped with an electric drive mechanism with exactly the same configuration as the electric drive mechanism described above, and the electric motors of each electric drive mechanism also have dual characteristics. Show similar properties.

第4a図に、」二連の4つの窓の電動駆動機構のそれぞ
れを伺勢制御する電気制御システムの構成を示す。この
電気制御システムの主体はマイクロコ 。
FIG. 4a shows the configuration of an electric control system that controls each of the electric drive mechanisms for the four windows in the duplex. The main body of this electrical control system is Microco.

ンピュータ9であり、それの入力ポートRO−R5に窓
位置指示キースイッチ11〜20が接続され、出カポ−
1〜R6およびR7に、キーイン読取用のトランジスタ
21および22が接続されている。
A computer 9 is connected to its input port RO-R5 with window position indicating key switches 11 to 20, and its output port is
Transistors 21 and 22 for key-in reading are connected to R1 to R6 and R7.

入力ポートR13に、前記位置検出器SEの出力端が接
続されており、入力ポートR15には、サイトウーrン
ドウの自動位置決め制御を可能とする自動制御セットキ
ースイッチlOが接続され、割り込み入力端R14に、
時間カウント用のタロツクパルスを発生するパルス発生
器PGの出力端が接続されている。
The output terminal of the position detector SE is connected to the input port R13, and the automatic control set key switch IO that enables automatic positioning control of the site window is connected to the input port R15. To R14,
The output terminal of a pulse generator PG that generates tarok pulses for time counting is connected.

各ドアの電動駆動機構のモータは出力ポートO6〜07
の出力で正逆転制御される。たとえば、0゜、o2.o
4又はo6に高レベルHがセットされるとそれぞれモー
タMd (ドライバ席ドア)。
The motor of the electric drive mechanism of each door is output port O6-07
Forward/reverse rotation is controlled by the output. For example, 0°, o2. o
When high level H is set to 4 or o6, motor Md (driver seat door) respectively.

Ma(助手席ドア) 、 Mab (助手席後部ドア)
又はMdb (ドライバ席後部ドア)が正転付勢され、
出力ポートOl r oa + 05又は07に高レベ
ルF1がセットされるとそれぞれモータMd (ドライ
バ席ドア) 、 Ma (助手席ドア) 、 Mab 
(助手席後部ドア)又はMdb (ドライバ席後部ドア
)がjφ転付勢される。ウオーム・ホイール組体5にお
いて機械的にモータ出力軸に結合されているリング状永
久磁石7d、7a、7abおよび7dbと、これらのそ
れぞれに対向するホールICユニット6d。
Ma (passenger seat door), Mab (passenger seat rear door)
Or Mdb (driver's seat rear door) is energized for forward rotation,
When high level F1 is set to output port Ol r oa + 05 or 07, motors Md (driver seat door), Ma (passenger seat door), Mab are activated respectively.
(passenger seat rear door) or Mdb (driver seat rear door) is biased by jφ. In the worm wheel assembly 5, ring-shaped permanent magnets 7d, 7a, 7ab and 7db are mechanically coupled to the motor output shaft, and a Hall IC unit 6d faces each of them.

6a、6abおよび6dbはそれぞれロータリーエンコ
ーダを構成しており、それぞれパルス出力をマイクロコ
ンピュータ9の入力ポートに3〜KOに印加する。
6a, 6ab, and 6db each constitute a rotary encoder, and each applies a pulse output to the input port of the microcomputer 9 to 3 to KO.

マイクロコンピュータ9のA/D変換入力端R12には
増幅器AMPの出力が与えられ、該増幅器AMPにリレ
ーを介してモータ電流検出抵抗rの電圧が印加される。
The output of the amplifier AMP is applied to the A/D conversion input terminal R12 of the microcomputer 9, and the voltage of the motor current detection resistor r is applied to the amplifier AMP via a relay.

抵抗rの電圧はモータ電流、つまりはモータ負荷に比例
する。出力ポートPO。
The voltage across resistor r is proportional to the motor current, that is, the motor load. Output port PO.

Pi、R2又はR3に高レベルHをセラ1〜することに
より、それぞれモータMd (ドライバ席ドア)、Ma
(助手席ドア) 、 Mab (助手席後部ドア)又は
Mdb (ドライバ席後部ドア)の負荷電流に比例する
電圧がマイクロコンピユー′99に9選択的に印加され
る。
By applying a high level H to Pi, R2 or R3, the motors Md (driver seat door) and Ma
A voltage proportional to the load current of (passenger seat door), Mab (passenger seat rear door), or Mdb (driver seat rear door) is selectively applied to the microcomputer '99.

出力ポートR8〜R11には、A/D変換レンジ設定用
のデータ(4ビツト)を設定する。
Data (4 bits) for setting the A/D conversion range is set in the output ports R8 to R11.

電気回路各部には、第4b図に示す電源回路が定電圧V
 c cを印加する。
In each part of the electric circuit, a power supply circuit shown in Fig. 4b is connected to a constant voltage V.
Apply c c.

第4c図にスイッチ11−17の1つ12の外観を示す
。なお他のスイッチ13〜17もスイッチ12と全く同
じ構造である。スイッチ12は、2極スイツチであって
、定常状態において第5a図に示すようにアップ指示側
とダウン指示側とが等しく突出しているが、アップ側が
押下されると、第5 b図に示すように、回動して可動
接点を1つの固定接点(窓開は指示接点)に接触させる
。押下刃が無くなると第5d図に示すように定常状態に
戻り、可動接点を、2つの固定接点のいずれにも接触し
ない中立位置に戻す。ダウン側が押下されると、第5c
図に示すように、回動して可動接点をもう1つの固定接
点(窓閉め指示接点)に接触させる。押下刃が無くなる
と第5d図に示すように定常状態に戻り、可動接点を、
2つの固定接点のいずれにも接触しない中立位置に戻す
。スイッチ11は、スイッチ12と機械構造は略同様で
あるが、更に2つのフレキシブルな接点を有し、これら
の接点の1つが窓開は指示接点とされ、もう1つが窓閉
め指示接点とされて、2つの固定接点はいずれも停止指
示接点とされている。このスイッチ11は、アップ側を
比較的に軽く押すと可動接点がフレキシブルな窓開は指
示接点に接触してモータ正転を指示するが、更に強く押
すとフレキシブルな窓開は指示接点が可動接点に接触し
たまま停止指示接点に接触し、モータ停止が指示される
FIG. 4c shows the external appearance of one of the switches 11-17 12. Note that the other switches 13 to 17 have exactly the same structure as the switch 12. The switch 12 is a two-pole switch, and in a steady state, the up instruction side and the down instruction side protrude equally as shown in FIG. 5a, but when the up side is pressed, the switch protrudes equally as shown in FIG. Then, rotate the movable contact to make contact with one fixed contact (the window opening is the indicator contact). When the push-down blade disappears, the steady state returns as shown in FIG. 5d, and the movable contact returns to the neutral position where it does not come into contact with either of the two fixed contacts. When the down side is pressed, the 5th c
As shown in the figure, the movable contact is rotated to contact the other fixed contact (window closing instruction contact). When the push-down blade disappears, it returns to a steady state as shown in Figure 5d, and the movable contact
Return to the neutral position where it does not touch either of the two fixed contacts. The switch 11 has substantially the same mechanical structure as the switch 12, but it also has two flexible contacts, one of which is used as a window-opening contact and the other as a window-closing command contact. , the two fixed contacts are both stop instruction contacts. When this switch 11 is pressed relatively lightly on the up side, the movable contact contacts the flexible window opening indicator contact and instructs the motor to rotate forward; however, when pressed more strongly, the flexible window opening indicator contact changes to the movable contact. While touching the stop instruction contact, the motor is instructed to stop.

ダウン側を比較的に軽く押すと可動接点がフレキシブル
な窓閉め指示接点に接触してモータ逆転を指示するが、
更に強く押すとフレキシブルな窓閉め指示接点が可動接
点に接触したままもう1つの停止指示接点に接触し、モ
ータ停止が指示される。
When you press the down side relatively lightly, the movable contact contacts the flexible window close instruction contact and instructs the motor to reverse, but
When pushed even harder, the flexible window closing instruction contact contacts the movable contact and another stop instruction contact, instructing the motor to stop.

スイッチ18と19はドライバドアのキー穴に装着され
ており、解錠キーをキー穴に差し込んで鎖錠方向に廻わ
すとスイッチ18が閉じられてマイクロコンピュータ9
にドライバ後部ドアの窓閉めを指示する。解錠キーをキ
ー穴に差し込んで解錠方向に廻おすとスイッチ19が閉
じられてマイクロコンピュータ9にドライバ後部ドアの
窓開けを指示する。
Switches 18 and 19 are installed in the keyhole of the driver door, and when the unlock key is inserted into the keyhole and turned in the locking direction, switch 18 is closed and the microcomputer 9 is closed.
instructs the driver to close the rear door window. When the unlocking key is inserted into the keyhole and turned in the unlocking direction, the switch 19 is closed and the microcomputer 9 is instructed to open the driver's rear door.

マイクロコンピュータ9には、電源投入に応答した初期
化から、スイッチ10の閑に応答した限界位置および現
在位置検出、窓位置決め指示スイッチ11〜19の操作
読み取り、およびスイッチ操作で指示された窓制御を行
なうプログラムが組込まれている。このプログラムに従
かった制御動作の概要は次の通りである。
The microcomputer 9 performs initialization in response to power-on, detection of the limit position and current position in response to the switch 10's idle response, operation reading of the window positioning instruction switches 11 to 19, and window control instructed by the switch operation. There is a built-in program to do this. The outline of the control operation according to this program is as follows.

A、電源Vccが印加されると入出カポ−1へおよび内
部レジスタ(カウント用およびフラグ用を含む)を初期
化する。出力ボートは全モータ停止とする状態にセラ1
〜する。
A. When the power supply Vcc is applied, the input/output capo-1 and internal registers (including those for counting and flags) are initialized. The output boat is set to Sera 1 with all motors stopped.
~do.

B、窓制御指示(入カポ−h R]、 5 = H:ス
イッチ10閉)を待つ。R15= Hであったときある
いはR15=Hになると、窓開閉指示スイッチ11〜1
9のスイッチ操作を待つ。スイッチ操作があると、基点
位置検出および限界位置検出ならびにスイッチ操作の解
読を開始する。
B. Wait for window control instruction (input capo-h R], 5 = H: switch 10 closed). When R15=H or when R15=H, window opening/closing instruction switches 11 to 1
Wait for switch operation in step 9. When a switch is operated, detection of the base position and limit position and interpretation of the switch operation are started.

C0基点位置検出および限界位置検出は、最先に操作さ
れたスイッチに対応(=Jけられているサイドウィンド
ウの電動駆動機構についてまず行ない。
C0 base point position detection and limit position detection are first performed for the electric drive mechanism of the side window corresponding to the switch operated first (=J).

これの実行中は他のスイッチの操作は、読取らない。但
し、スイッチ11の停止指示は常時読取り、それが指示
されると、モータを停止し、それまでの処理状態をクリ
アする。基点位置検出および限界位置検出を終了すると
位置決めフラグEi(iは対象窓に割り当てられる)を
立てる。このフラグは電源Vccが投入されている間保
持される。フラグが立っていると、基点位置検出および
限界位置検出は行なわず、スイッチ操作の解読結果に応
じた位置に窓ガラスを位置決めする窓開閉制御を行なう
While this is being executed, other switch operations are not read. However, the stop instruction from the switch 11 is always read, and when the instruction is given, the motor is stopped and the processing state up to that point is cleared. When the base point position detection and limit position detection are completed, a positioning flag Ei (i is assigned to the target window) is set. This flag is held while the power supply Vcc is turned on. When the flag is set, the base point position detection and limit position detection are not performed, and window opening/closing control is performed to position the window glass at a position according to the result of decoding the switch operation.

D、キースイッチ操作の解読は、スイッチ操作の開始に
応じて開始し、同一スイッチの繰り返し閉。
D. Decoding of key switch operation begins in response to the start of switch operation, and the same switch is repeatedly closed.

開モードを解読して窓開、閑の度合(全閉、l/3開、
1/2開、2/3開および全開)指示データを作成して
これを目標値として設定する。
Decipher the opening mode and determine the degree of window opening and quietness (fully closed, 1/3 open,
1/2 open, 2/3 open, and fully open) instruction data is created and set as the target value.

E、ガラス2の駆動速度は比較的に遅いので、スイッチ
操作の始点からモータ駆動を開始し、所定時間内にスイ
ッチ操作の解読を完了すると、ガラスの実位置が目標位
置になるまでモータの駆動を継続する。所定時間内に解
読が出来なかったらそこでモータを止める。
E. Since the drive speed of the glass 2 is relatively slow, the motor drive starts from the starting point of the switch operation, and when the switch operation is decoded within a predetermined time, the motor drive continues until the actual position of the glass reaches the target position. Continue. If the code cannot be decoded within a predetermined time, the motor is stopped.

F、スイッチ11〜■7がそれぞれ制御対象窓のそれぞ
Jbに割り当てられているので、操作されたスイッチに
対応して六カポ−1−KO〜に3の1つと出力ボートP
O〜P3の1つを選択して、駆動しようとするモータに
結合されたロータリーエンコーダのホールICユニッ1
−61を読取りに設定し、かつ該モータに接続された抵
抗rをA/D変換読取りに設定し、スイッチN o 、
とそれがどちら側(アップ側、ダウン側)に閉とされた
かにより、出力ポートOo〜07の1つを特定してそ4
しに高レベルトIをセットする。
F, switches 11 to ■7 are each assigned to Jb of the controlled window, so one of the 3 and the output boat P is assigned to the six capos -1-KO~ corresponding to the operated switch.
Select one of O to P3 and select Hall IC unit 1 of the rotary encoder connected to the motor to be driven.
-61 is set to read, and the resistor r connected to the motor is set to A/D conversion read, and the switch No,
and depending on which side (up side, down side) it is closed, identify one of the output ports Oo~07 and select it.
Set high level belt I.

G、上記Fでモータを駆動にセットすると、モータの回
転方向でアップカウント(正転ニガラス上昇)かダウン
カウント(逆転ニガラス下降)を定めてホールICユニ
ットの出力パルスのカラン1−をして現在位置を監視し
つつ、モータ電流をA/D変換して負荷を監視し、現在
位置からガラスの移動範囲を判断してその範囲に割り当
てられている参照データを内部ROMより読んでA/D
変換データをこれと比較して、過負荷のときにはモータ
を止める。また、現在位置が目標位置に合致するどモー
タを止める。
G. When the motor is set to drive in step F above, the up count (forward rotation up) or down count (reverse rotation down) is determined in the rotation direction of the motor, and the output pulse of the Hall IC unit is run 1- to calculate the current value. While monitoring the position, the motor current is A/D converted to monitor the load, the range of movement of the glass is determined from the current position, the reference data assigned to that range is read from the internal ROM, and the A/D converts the motor current to A/D.
The converted data is compared with this and the motor is stopped if there is an overload. Also, the motor is stopped as soon as the current position matches the target position.

なお上記りのキースイッチの読取りにおいて。In addition, in reading the key switch mentioned above.

スイッチ11と18.19のグループと、12〜17の
グループとは時分割で読取る。つまりトランジスタ21
と22とを交互にオンとして、21をオンとしていると
きには入カポ−h RO” R5をスイッチ11.18
.19の操作データ読取に割り当て、22がオンしてい
るときには入力ポートRO〜R5をスイッチ12〜17
の操作データ読取に割り当てる。
The groups of switches 11 and 18, 19 and the groups of 12 to 17 are read in time division. In other words, transistor 21
and 22 are turned on alternately, and when 21 is on, the input capo-h RO" R5 is turned on with switch 11.18.
.. 19 is assigned to read the operation data, and when 22 is on, input ports RO to R5 are assigned to switches 12 to 17.
Assigned to read operation data.

スイッチ11〜19の操作と、入出力ボートの状態およ
び指示内容の相関を第1表に示す。第1表に示ず場合N
o、1〜12のいずれかが入カポ−l−RO〜R7に現
われるとマイクロコンピュータ9は、スイッチ操作モー
ドの読取りを開始すると共に、基点決めフラグE(第7
表参照)を参照し、場合N o 、に対応する基点決め
フラグEが立っていないと基点決めに進み、立っている
と窓開閉制御に進む。スイッチ操作モードでは、まず入
カポ−]〜RO〜R7の入力を読んで第2表に示すデー
タAをレジスタに格納する。このデータAは、基点決め
又は窓開閉制御を終了するまで保持するが、スイッチ入
力が、所定のモードでないときには窓制御フラグをクリ
アし、窓開閉制御はそこで停止する。基点決めに入って
いるときにはデータAはクリアせず、基点決めも停止し
ない。電源投入があってスイッチ10が閉のとき一つの
窓につき一回基点決めを実行すると、電源が投入されて
いる間、仮にスイッチ10が開閉されても、基点決めを
終了したことを示すフラグEはクリアせず。
Table 1 shows the correlation between the operations of the switches 11 to 19, the status of the input/output ports, and the contents of the instructions. If not listed in Table 1, N
o, 1 to 12 appears on the input capo-l-RO to R7, the microcomputer 9 starts reading the switch operation mode, and also sets the reference point setting flag E (7th
If the base point determination flag E corresponding to case No is not set, the process proceeds to base point determination, and if it is set, the process proceeds to window opening/closing control. In the switch operation mode, first the inputs of the input ports RO to R7 are read and data A shown in Table 2 is stored in the register. This data A is held until the base point determination or the window opening/closing control is completed, but when the switch input is not in a predetermined mode, the window control flag is cleared and the window opening/closing control is stopped there. When starting point determination is in progress, data A is not cleared and reference point determination does not stop. When the power is turned on and the switch 10 is closed, if base point determination is executed once for each window, even if the switch 10 is opened or closed while the power is turned on, a flag E indicating that base point determination has been completed will be set. is not cleared.

再度の基点決めは行なわない。The base point is not determined again.

スイッチ操作読取(入力読取)においてマイクロコンピ
ュータ9は、スイッチ操作を監視してデータB(第3表
参照)を作成する。そしてこのデータBが第4表に示す
スイッチ操作モードを示すもの、すなわち第3表のデー
タBa〜13 cのいずれかであると、スイッチ操作読
取(入力読取)を終了し、基点決め制御又は窓開閉制御
に専念する。
During switch operation reading (input reading), the microcomputer 9 monitors the switch operation and creates data B (see Table 3). If this data B indicates the switch operation mode shown in Table 4, that is, any of the data Ba to 13c in Table 3, the switch operation reading (input reading) is terminated and the reference point setting control or window Concentrate on opening/closing control.

データBが所定のもの(データB a = B c )
でないと前述の通り、窓開閉制御であれば窓制御フラグ
髪クリアし、制御を停止し、データBをクリアする。基
点決め制御であればデータBをクリアするが制御は続行
する。
Data B is predetermined (data B a = B c )
Otherwise, as described above, if it is window opening/closing control, the window control flag is cleared, the control is stopped, and data B is cleared. If it is base point determination control, data B is cleared, but control continues.

基点決めを終了すると、データAに対応した基点データ
D(第6表参照)をレジスタにメモリする。すなわち、
スイッチ11のアップ又はダウン操作に応答した基点決
めの場合は基点データDdを、スイッチ15のアップ又
はダウン操作に応答した基点決めの場合は基点データD
aを、スイッチ16のアップ又はダウン操作に応答した
基点決めの場合は基点データDabを、またスイッチ1
7のアップ又はダウン操作に応答した基点決めの場合は
基点データDdbを、それぞれに割り当てられたレジス
タにメモリする(第6表参照)。
When the base point determination is completed, base point data D (see Table 6) corresponding to data A is stored in a register. That is,
In the case of base point determination in response to the up or down operation of the switch 11, the base point data Dd is used, and in the case of base point determination in response to the up or down operation of the switch 15, the base point data D is used.
a, the base point data Dab in the case of base point determination in response to the up or down operation of the switch 16, and the switch 1
In the case of base point determination in response to the up or down operation of No. 7, the base point data Ddb is stored in the registers assigned to each (see Table 6).

モータ駆動中は、そのモータ(各席の窓)に割り当てら
れた現在位置レジスタ(第5表参照)に、現在位置デー
タをメモリし、更新する。すなわち、ホールICユニッ
ト(6d、6a、6db、6abの1つで、駆動モータ
に対応するもの)の出力が)IからLに、又その逆に変
化する毎に、正転付勢であれば1インクレメン(−モー
ドで、逆転付勢であれば1デクレメントモードで現在位
置レジスタの内容を更新する。
While the motor is being driven, the current position data is stored and updated in the current position register (see Table 5) assigned to the motor (window of each seat). In other words, every time the output of the Hall IC unit (one of 6d, 6a, 6db, 6ab, corresponding to the drive motor) changes from I to L, or vice versa, if the forward rotation is activated. 1 increment (- mode, if reverse energization, updates the contents of the current position register in 1 decrement mode.

第2表 データA 第3表 データB 第4表 データBaニー回閑になってから1 sec以乏経過し
てからもう一度同じく閉になったスイッチ操作モードデ
ータBbニー回閉になってから1 see以内にもう一
度閑になり、それから1 sec以上経過してからまた
閉になったスイッチ操作モード データBcニー回閑になってから1 see以内にもう
一度閉になり、それからまた1 see以内にもう一度
閉になり、それから更に↓sec、JJ、に経過してか
らまた閉になったスイッチ操作モード 第5表 現在位置データC ドライバドアの窓位置データCd : 8ビット助手席
ドアの窓位置データCa:5ビットドライバ後部ドアの
窓位置データCdb:8ピッ]〜助手席後部ドアの窓位
置データCab:8ビット第6表 基点データD ドライバドアの基点データDd    :8ビット助手
席ドアの基点データDa     :8ピッ1〜ドライ
バ後部ドアの基点データDdb:8ピッ]〜助手席後部
ドアの基点データDab  :8ビット注:基点データ
は第0位置すなわち全開位置の、第1位置(数値0)に
対する位置データ(負数)である。
2nd table data A 3rd table data B 4th table data Ba Switch operation mode data that was closed again after less than 1 sec had passed since the knee became quiet Bb 1 see after the knee became closed The switch operation mode data Bc became quiet again within 1 sec, and then closed again after more than 1 sec. The switch operation mode then closed again after ↓sec, JJ, etc. Table 5 Current position data C Driver door window position data Cd: 8 bits Passenger door window position data Ca: 5 bits Driver rear door window position data Cdb: 8 pins] ~ Passenger seat rear door window position data Cab: 8 bits Table 6 Base point data D Driver door base point data Dd: 8 bits Passenger door base point data Da: 8 pins 1 ~ Driver rear door base point data Ddb: 8 bits] ~ Passenger seat rear door base point data Dab: 8 bits Note: Base point data is the position data (negative number) of the 0th position, that is, the fully open position, relative to the 1st position (numeric value 0) ).

第7表 基点決めフラグE ドライバドアの基点決めフラグEd:lビット助手席ド
アの基点決めフラグEa:1ピッl〜ドライバ後部ドア
の基点決めフラグEdb:1ビット助手席後部ドアの基
点決めフラグEab:1ビット注:この基点決めフラグ
は、基点決めを終了していることを表わす。基点決めフ
ラグFは、基点決めに入っていることを示す。
Table 7 Base point determination flag E Driver door base point determination flag Ed: 1 bit Passenger seat door base point determination flag Ea: 1 pitch to driver rear door base point determination flag Edb: 1 bit Passenger seat rear door base point determination flag Eab :1 bit Note: This base point determination flag indicates that base point determination has been completed. The base point determination flag F indicates that base point determination is in progress.

第8表 参照データ(ROMにメモリしている固定データ)デー
タ■。:窓ガラスを閉から開方向に駆動してガラス第6
a図〜第6c図にスイッチ久方読取主体に、マイクロコ
ンピュータ9の制御動作(メインフロー)を示し、第7
a図〜第7c図に基点決めの制御動作(サブフロー)を
、第8a図および第8b図に窓開閉制御動作(サブフロ
ー)を示す。以下これらの図面を参照してマイクロコン
ピュータ9の制御動作を詳細に説明する。
Table 8 Reference data (Fixed data stored in ROM) Data ■. : Driving the window glass from the closed direction to the opening direction
Figures a to 6c show the control operation (main flow) of the microcomputer 9 mainly for reading the switch.
Figures a to 7c show the control operation (subflow) for determining the base point, and Figures 8a and 8b show the window opening/closing control operation (subflow). The control operation of the microcomputer 9 will be explained in detail below with reference to these drawings.

まず第6a図を参照する。それ自身に電源(■cc)が
投入されるとマイクロコンピュータ9は、入出力ボート
および内部レジスタを初期化する。
Reference is first made to FIG. 6a. When the microcomputer 9 is powered on (cc), it initializes the input/output ports and internal registers.

出カポ−1−はこれにより全モータ停止に設定される。Output capo-1- is thereby set to stop all motors.

次に入カポ−h R15の信号レベルを読んで、それが
低レベルしてあると(スイッチ1oが開であると)高レ
ベルHになるのを待つ。したがって、スイッチ10が開
であると、窓開閉の自動制御は行なわれない。
Next, read the signal level of the input capo-h R15, and if it is low level (if switch 1o is open), wait until it becomes high level H. Therefore, when the switch 10 is open, automatic control of window opening/closing is not performed.

入力ポートR15がHであると、あるいはHになると、
マイクロコンピュータ(以下単にマイコンと称する)9
は、スイッチグループの時分割読取の分割時限を定める
短時間dt時限のタイマ(dtタイマ:プログラムタイ
マであり、割込入力端R14に1パルスが到来すると割
込でカラン1−ツツブしてリターンし、設定カウント値
(設定時限)になるとタイムオーバフラグを立ててリタ
ーンする)をセラi・し、ステップ4以下に進む。
When input port R15 is H or becomes H,
Microcomputer (hereinafter simply referred to as microcomputer) 9
is a short dt timer (dt timer: program timer) that determines the division time for time-division reading of the switch group. , when the set count value (set time limit) is reached, a time-over flag is set and the process returns), and the process proceeds to step 4 and subsequent steps.

ステップ4では、出力ポートR6のセラ1−データ(ト
I:スイッチ11,18.19グループの読取、L:該
グループの読取なし)を参照し、IIであると入カポ−
1−R2とR3の信号を読み、いずれかであるとステッ
プ7に進んで全モータを停止(出力ボート0o−07の
ずべてにLをセラ1−)し、ステップ8でそれまでにセ
ットした状態データであって、モータのインタラブド停
止により現状に合わなくなったものをすべてクリアする
In step 4, the output port R6's cell 1 data (I: reading of the switch 11, 18.19 group, L: no reading of the group) is referenced, and if it is II, the input port is
1- Read the signals of R2 and R3, and if either is detected, proceed to step 7 and stop all motors (set L to all output boats 0o-07), and proceed to step 8 with the settings set so far. Clear all status data that no longer matches the current state due to the interwoven stop of the motor.

後述するように、1サイクルのプロゲラt1を実行する
毎にこのステップ4に戻るので、スイッチ11がアップ
方向あるいはダウン方向に強く (深く)押されると、
制御がどのような状態にあっても、全モータが停止とさ
れる。したがってドラ2rバは、窓駆動で異常が感じら
れたときは、スイッチI】を強く押せばよい。
As will be described later, the process returns to step 4 every time one cycle of Progera t1 is executed, so if the switch 11 is pressed strongly (deeply) in the up or down direction,
No matter what state the control is in, all motors are stopped. Therefore, when the driver 2r senses that something is wrong with the window drive, all he has to do is forcefully press the switch I.

なお、スイッチ11〜14はドライバドアに装着されて
おり、スイッチ15〜17は、そ1Lぞれその順に、助
手席ドア、助手席後部ドアおよびドライバ後部ドアに装
着されている。
Note that the switches 11 to 14 are mounted on the driver door, and the switches 15 to 17 are mounted on the passenger seat door, the passenger seat rear door, and the driver rear door in that order.

さてもう一度ステップ4に戻って説明を続けると、そこ
で(R6=H,R2orR3=L)でないときにはステ
ップ5に進み、このステップ5で、すでにキーイン読取
を終了していることを示す「キーイン読取停止フラグ」
があるか否かを参照する。このフラグは、キーイン読取
およびキー操作の解読を終って、これに対応した制御動
作を開始しようとしているか、あるいは開始しているこ
とを示す。制御動作は基点決めと窓(開閉)制御の2つ
であり、「キーイン読取停止フラグ」があって基点決め
フラグがあるときには基点決め制御がセラ1−されてお
り、基点決めフラグが無いと窓制御がセットされている
。そこで、「キーイン読取停止フラグ」があるとステッ
プ6に進み、このステップ6で基点決めフラグがあると
ステップ51の基点決め制御に、基点決めフラグが無い
とステップ71の窓制御に進む。
Now, going back to step 4 and continuing the explanation, if (R6=H, R2orR3=L) is not the case, the process goes to step 5, and in step 5, the "key-in reading stop flag" indicating that the key-in reading has already been completed is set. ”
See if there is. This flag indicates that, after key-in reading and decoding of key operations, a corresponding control operation is about to be started or is being started. There are two control operations: reference point setting and window (opening/closing) control.When there is a "key-in reading stop flag" and the reference point setting flag is present, the reference point setting control is activated, and if there is no reference point setting flag, the window is closed. Control is set. Therefore, if there is a "key-in reading stop flag", the process proceeds to step 6, and if there is a reference point setting flag in step 6, the process proceeds to step 51, which is the reference point setting control, and if there is no reference point setting flag, the process proceeds to step 71, which is window control.

もう一度ステップ5に戻って説明を続けると、ステップ
5で「キーイン読取停止フラグ」がないとステップ9に
進み、そこでdtタイマの状態データを参照し、タイム
オーバしていないとステップ13に進むが、タイムオー
バしているとR7セットフラグ(出力ポートR7に■」
をセットしている(スイッチ12〜17グループの読取
)を示すフラグ)があるか否かを見て、それがあるとス
イッチ12〜17グループの読取期間が終っていること
になるのでR7セットフラグをクリアし、それがないと
スイッチ11,18.19グループの読取期間が終って
いることになるのでR7セツ1−フラグをセラ1〜して
、ステップ13に進み、このステップ13でR7セツト
フラグがあるとスイッチ12〜17グループの読取であ
るので第6b図のスイッチ12〜17グループのキーイ
ン読取に進む。ステップ13でR7セットフラグが無い
とスインチ11,18.19グループのキーイン読取で
あるので第6a図のステップ14以下のスイッチ12〜
17グループのキーイン読取に進む。
Returning to step 5 again to continue the explanation, if there is no "key-in reading stop flag" in step 5, the process proceeds to step 9, where the dt timer status data is referred to, and if the time has not exceeded, the process proceeds to step 13. If the time has expired, the R7 set flag (■) is sent to output port R7.
Check whether the R7 set flag is set (flag indicating reading of switches 12 to 17 groups). If it is not cleared, the reading period for the switch 11, 18, and 19 group has ended, so the R7 set flag is set to 1~, and the process goes to step 13. In this step, the R7 set flag is cleared. If there is, the switch 12-17 group is to be read, so the process proceeds to key-in reading of the switch 12-17 group in FIG. 6b. If there is no R7 set flag in step 13, it is key-in reading of switch 11, 18.
Proceed to key-in reading of group 17.

スイッチ1.1,18.19グループのキーイン読取で
は、出力ボートR6に1−1を、R7にL&セツ1〜し
て1−ランジスタ21をオンに、22咎オフにして、入
カポ−h RO−R5の信号レベル(11又はL)を読
む。この読取においては、すでに説明したようにステッ
プ4でスイッチ11のス1−ツブ指示(R2,R3)を
読取るようにしているので、ここでは読取をしない。
For key-in reading of switch 1.1, 18.19 group, set 1-1 to output port R6, L & set 1 to R7, turn 1-transistor 21 on, turn 22-off, input capo-h RO -Read the signal level (11 or L) of R5. In this reading, as already explained, in step 4 the switch 11's switch 1-tub instruction (R2, R3) is read, so reading is not performed here.

すなわち、ステップ15で入カポ−1〜ROとIり1の
信号レベル髪参照し、それらの一方がしてあるとステッ
プ16以下のキーイン読取に進み、そ扛らがしてあると
ステップ29で入カポ−1−R4とR,5の信号レベル
を参照し、それらの−・方がL−Cあるとステップ64
でキーイン読取停止フラグをセットして、この場合は車
外でのキー操作であるのでそこでキーイン読取を停止し
て即座に窓制御に進む。ステップ15および29でRO
,R1゜R4およびR5のみを参照して、それらのいず
れもHであるとステップ24でキーインフラグ(初めて
のキーイン:スイッチ11のアップ又はダウン指示があ
ったときのみセラ1−さ社る)を参照し、キーインフラ
グが無いとステップ24からステップ4に戻るので、ス
テップ15以下では、スイッチ11のス1ヘツブ指示は
読取られない。
That is, in step 15, the signal levels of input capo-1 to RO and I-1 are referenced, and if one of them is active, the process proceeds to step 16 and subsequent key-in reading, and if the other is active, step 29 is performed. Referring to the signal levels of input capo-1-R4 and R,5, if one of them is LC, step 64
In this case, the key-in reading stop flag is set, and in this case, since the key is operated outside the vehicle, key-in reading is stopped and window control is immediately started. RO in steps 15 and 29
, R1゜R4 and R5, and if they are all H, a key-in flag (first key-in: switch 11 is turned off only when an up or down command is given) is set in step 24. If there is no key flag, the process returns from step 24 to step 4, so in steps 15 and below, the swive command of the switch 11 is not read.

以上のように、スイッチ18と19については、それら
が−・度閉にされると即座に窓制御に移り、後述するス
イッチ操作モードの解読は行なわないでステップ170
で18と19のいずれが閏にされたかを児て、18が閑
の場合にはステップ172で目標値レジスタに全開位置
(第3位置)データを、19が閉の場合にはステップ1
71で目標値レジスタに全開位置(第0位置)データを
セットするので、スイッチ18が一度閉(R4=L)に
されたときにはドライバ後部ドアが全開になるまでモー
タMdbがイリ勢され、スイッチ19が一度閉(R5=
 L)にされたときにはドライバ後部ドアが全開になる
までモータMdbが付勢される。この制御フローはステ
ップ7’lの窓制御であり、詳細は第8a図および第8
b図に示される。
As described above, when the switches 18 and 19 are closed by -.degree., the window control is immediately performed, and the switch operation mode described later is not deciphered, and step 170 is performed.
Determine which of 18 and 19 is set to the open position, and if 18 is set to open, the fully open position (third position) data is stored in the target value register in step 172, and if 19 is closed, the data is set to step 1.
Since the fully open position (0th position) data is set in the target value register at step 71, when the switch 18 is once closed (R4=L), the motor Mdb is energized until the driver rear door is fully opened, and the switch 19 is closed once (R5=
When set to L), motor Mdb is energized until the driver rear door is fully opened. This control flow is window control in step 7'l, details of which are shown in Figures 8a and 8.
As shown in Figure b.

さてもう一度ステップ15に戻って説明を続けると、ス
テップ15でROorR1=L(スイッチ11がアップ
閉又はダウン閉)であるとステップ16でキーインフラ
グがあるか否かを児て、無い(初めてのキー人力)とキ
ーインフラグを七ッ1− してl secタイマ(dt
タイマと同様)および5 secタイマ(dtタイマと
同様)を七ノ1へし、データB(第3表参照)の」二色
2ピッ1−D3−1−132を1カウントアツプしく以
上ステップ17〜20)、第6c図のステップ21でデ
ータAを、そのときの入力ボートR7〜ROの信号状態
を取り入れて作成する。そしてステップ22で基点決め
フラグEd(第7表参照)を参照して、それがあると電
源Vccを投入してからすでにドライバ1−アの窓の基
点決めをおこなっていることになるのでステップ70で
窓制御フラグをセットしてステップ71の窓制御に進み
、それを抜けるとステップ4に戻る。
Now, going back to step 15 and continuing the explanation, if ROorR1=L (switch 11 is up or down) in step 15, it is checked in step 16 whether or not there is a key flag. Set the lsec timer (dt
Set the 5 sec timer (same as the timer) and 5 sec timer (same as the dt timer) to 7-1, and count up 1 for the 2-color 2-pitch 1-D3-1-132 of data B (see Table 3). Step 17 ~20) In step 21 of FIG. 6c, data A is created by incorporating the signal states of the input ports R7~RO at that time. Then, in step 22, reference is made to the reference point setting flag Ed (see Table 7), and if it is present, it means that the reference point of the driver 1-a window has already been determined since the power supply Vcc was turned on, so step 70 The window control flag is set in step 71, and the process proceeds to window control in step 71, and upon exiting from that step, the process returns to step 4.

ステップ22で基点決めフラグEdがL(電源VCCを
投入してからまだ基点決めをしていない)であると、基
点決めフラグEdをセット(1−1をメモリ)してステ
ップ50で基点決めに入ったことを示す基点決めフラグ
Fをセットしてステップ51の基点決めに進み、それを
抜けてステップ4に戻る。
If the base point setting flag Ed is L in step 22 (base point has not been determined yet after turning on the power supply VCC), the base point determination flag Ed is set (1-1 is stored in memory), and base point determination is started in step 50. The base point setting flag F indicating that the base point has been entered is set, and the process proceeds to step 51 for determining the base point, and then returns to step 4.

ステップ4に戻ると前述と同様にしてステップ16まで
進むが、今度はキーインフラグがあるのでステップ16
−30−28−6と進み、ステップ6から、ステップ5
1又は71に進み、それを抜けてステップ4に進む、ス
テップ4−5−9−・−13−14−15−16−3,
0−(3−51又は71−4のループを循環する。その
内にスイッチ11が一度閉になると、ステップ15でス
テップ29−24−26に進んでステップ27でキーオ
フフラグをセラ1−シ、今度は、ステップ28−6−5
1又は71−4−5−9−・−13−14−15−29
−24−26−28のループを4F(環する。その内に
スイッチ■1がもう一度閉になると今度はステップ15
−16−30−31と進んでステップ31で1 sec
タイマの状態データを参照してタイムオーバしていない
とステップ32でデーIB(第3表参照)の下位2ピッ
!−110+l)1を1カウン1−アップしてステップ
33でまたls、ecタイマをセット(再セッ]−)シ
てステップ6−51又は71−4−と進む。タイムオー
バしていたどきにはステップ34でデータB(第3表参
照)の上位2ビツト[32+134を1カウンl−アッ
プし、ステップ35でキーインフラグ、キーオフフラグ
およびタイマをクリアして、キーイン読取を終了し、デ
ータBを条件テーブル(ROMの固定データ)と参照し
て、データBが条件テーブルにあるものであると(ステ
ップ36)ステップ37でキーイン読取停止フラグをセ
ットし、データAおよびデータBに基づいて目標位置デ
ータを求めて目標レジスタにメモリする。データBが条
件テーブルに無いものであると、ステップ173に進ん
でデータBおよび窓制御フラグをクリアしてステップ6
に進み、基点決めフラグがあるとステップ51に、無い
とステップ174を経てステップ7に進む。
Returning to step 4, proceed to step 16 in the same way as above, but this time there is a key flag, so step 16
-30-28-6, step 6, step 5
1 or 71, exit there and proceed to step 4, step 4-5-9--13-14-15-16-3,
0-(3-51 or 71-4 loop is circulated. When the switch 11 is closed once during the loop, the process proceeds to steps 29-24-26 in step 15, and the key-off flag is set to zero in step 27. This time, step 28-6-5
1 or 71-4-5-9-・-13-14-15-29
-24-26-28 loop is 4F (circle. When switch 1 is closed again, this time step 15
-16-30-31 and step 31 for 1 sec
Referring to the timer status data, if the time has not exceeded, in step 32, the lower two pips of the data IB (see Table 3) are sent! -110+l)1 is incremented by 1, and in step 33, the ls and ec timers are set (reset) again, and the process proceeds to step 6-51 or 71-4-. When the time has elapsed, in step 34, the upper 2 bits of data B (see Table 3) are incremented by 1 count, and in step 35, the key-in flag, key-off flag, and timer are cleared, and key-in reading is performed. is finished, data B is referred to the condition table (fixed data in ROM), and if data B is found in the condition table (step 36), the key-in reading stop flag is set in step 37, and data A and data Target position data is determined based on B and stored in the target register. If data B is not in the condition table, the process advances to step 173, where data B and the window control flag are cleared, and step 6
If there is a base point determination flag, the process goes to step 51; if there is no base point determination flag, the process goes to step 174 and then to step 7.

以上のキーイン読取により、データBが第3表に示すデ
ータBa、Bb、又はBCのときのみ、つまりキーイン
操作が第4表に示すモードであったときのみ、キーイン
読取が完了し、キーイン読取停止フラグがセラ1〜され
る。キーイン操作モードがそれら以外であったときには
、キーインが無視され、窓開閉制御に入っていたときに
は、ステップ173−6−174−7のループを経てモ
ータが止められる。基点決めフラグはクリアされないの
で、基点決めは継続される。
With the above key-in reading, key-in reading is completed and key-in reading is stopped only when data B is data Ba, Bb, or BC shown in Table 3, that is, only when the key-in operation is in the mode shown in Table 4. The flag is set to 1~. When the key-in operation mode is other than these, the key-in is ignored, and when the window opening/closing control is in progress, the motor is stopped through a loop of steps 173-6-174-7. Since the base point determination flag is not cleared, base point determination continues.

以上に説明したスイッチ11のアップ閉およびダウン閉
の読取と、それに並行した基点決め制御あるいは窓開閉
制御と同様なものが、スイッチ12〜17のアップ、ダ
ウン閑に応答して同様に行なわれる。
The above-described reading of the up-closed and down-closed states of the switch 11 and the parallel reference point setting control or window opening/closing control are performed in the same manner in response to the up and down states of the switches 12 to 17.

なお、目標位置データは、次のようにセラ1−する。Note that the target position data is stored as follows.

(1)データB=Ba (第3表参照)データAがアッ
プ指示(RO,R2又はR/I = L)のときは目標
位置データー第3位置データに、ダウン指示(R1,R
3又はR5= L)のときは目標位置データコ第0位置
データにする。
(1) Data B=Ba (See Table 3) When data A is an up instruction (RO, R2 or R/I = L), a down instruction (R1, R
3 or R5=L), set the target position data to the 0th position data.

(2)データB=Bb (第3表参照)データAがアッ
プ指示(Ro、112又はR/I=L)のときおよびダ
ウン指示(R1,R3又はR5=L)のとき共し二目標
位置データ=第O位置データの絶対値の1/2の値を示
すデータにする。
(2) Data B=Bb (See Table 3) Two target positions when data A is an up instruction (Ro, 112 or R/I=L) and a down instruction (R1, R3 or R5=L) Data = data indicating 1/2 of the absolute value of the O-th position data.

(3)データB=Bc(第3表参照) データAがアップ指示(110,R2又はR4=L)の
ときは、目標位置データコ第0位置データの絶対値の1
/3の値を示すデータに、ダウン指示(R1,[3又は
R5=L)のときは目標位置データ=第0位はデータの
絶対値の2/3の値を示すデータにする。
(3) Data B=Bc (see Table 3) When data A is an up instruction (110, R2 or R4=L), the target position data is equal to 1 of the absolute value of the 0th position data.
When the down instruction (R1, [3 or R5=L) is given to data indicating a value of /3, the target position data = 0th position is set to data indicating a value of 2/3 of the absolute value of the data.

次に第7a図〜第7d図に示す「基点決め」制御を説明
する。基点決めに入るとステップ72および74を経°
Cステップ75〜82の入力ポー1〜セツトに進む。こ
の人カボートセットにおいて。
Next, the "base point determination" control shown in FIGS. 7a to 7d will be explained. Once the reference point is determined, steps 72 and 74 are performed.
C. Proceed to steps 75-82, input port 1-set. In this person Kaboto set.

データAを参照して、それのR6がI4であると(第1
表の場合No、1〜6が含まれるが、場合No、3〜6
では基点決めに入らないので場合No、1および2のと
き)、現在位置レジスタ(窓開閉位置をメモリするレジ
スタ:第5表参照))をモータMdに当てられたCdレ
ジスタに定め、基点をメモリするレジスタをDdレジス
タ(第6表参照)に定め(ステップ76)、レジスタセ
ットフラグをセットする(ステップ82)。R6=Lで
あったときには、これはこの場合R7= 1−1である
ことになって、スイッチ15〜17のいずれかが操作さ
れたことになっているので、ステップ77又は79を経
て、RO又はR1=L(スー(フチ15閉)であると現
在位置レジスタをCaレジスタとして基点レジスタをD
aレジスタとする。
Referring to data A, if its R6 is I4 (first
In the case of a table, No. 1 to 6 are included, but in the case of No. 3 to 6
In this case, the reference point cannot be determined, so in case No. 1 and 2), set the current position register (register that memorizes the window opening/closing position: see Table 5)) to the Cd register applied to the motor Md, and set the reference point in the memory. The register to be stored is set as the Dd register (see Table 6) (step 76), and the register set flag is set (step 82). When R6=L, this means that R7=1-1 in this case, and one of the switches 15 to 17 has been operated, so through step 77 or 79, RO Or, if R1=L (edge 15 closed), set the current position register to Ca register and set the base point register to D.
Let it be the a register.

R2又はR3がしてあったとき(スイッチ1G閉)には
、現在位置レジスタをCa bレジスタとして基点レジ
スタをD a bレジスタとする。R4又はR5がして
あったとき(スイッチ17閉)には、現在位置レジスタ
をCdbレジスタとして基点レジスタをDdbレジスタ
とする。いずれの場合も、レジスタセットフラグをセッ
トして次のステップに進む。
When R2 or R3 is set (switch 1G is closed), the current position register is set as the Cab register and the base point register is set as the D a b register. When R4 or R5 is set (switch 17 is closed), the current position register is set as the Cdb register and the base point register is set as the Ddb register. In either case, set the register set flag and proceed to the next step.

まず基点となる第1位置をみつけるため、入カポ−1−
1113をチェックし、これがT−(位置検出器SEが
反射光検出)すなわち現在位置が第1位置よりも上であ
ると、モータ駆動を逆転にセラ1−シて正転フラグをク
リアし、ステップ105に進む。
First of all, in order to find the first position which will be the base point, enter Kapo-1-
1113 is checked, and if this is T- (position detector SE detects reflected light), that is, the current position is above the first position, the motor drive is set to reverse, the forward rotation flag is cleared, and step Proceed to step 105.

入力ボートR13が11すなわち現在位置が第1位置よ
りも下であると、モータ駆動を正転にセットし、正転フ
ラグをセットして次のステップ91に進む。
If the input boat R13 is 11, that is, the current position is lower than the first position, the motor drive is set to normal rotation, the normal rotation flag is set, and the process proceeds to the next step 91.

ステップ91に進むと、回転信号入カポ−1”Kiの入
力レベル(1−T又はL)を極性レジスタにメモリし、
ステップ92で保護タイマーおよびマスクタイマーをセ
ットする。これらのタイマーもdtタイマーと同じく、
割込でカウントアツプするプログラムタイマーである。
Proceeding to step 91, the input level (1-T or L) of the rotation signal input capo-1"Ki is memorized in the polarity register,
Step 92 sets the protection timer and mask timer. These timers are also similar to the dt timer.
This is a program timer that counts up with an interrupt.

なお、保護タイマーは、モータ付勢を開始してから、正
常に機構部が動くまでの時間よりわずかに長い時間をセ
ットするものであり、このタイマーがタイムオーバする
までに、−転信号入力ボートKtの信号レベルが変化し
ない(機構部が動がない)と、異常であるとしてモータ
停止に進む。マスクタイマーは、モータを付勢開始して
から、モータ電流が定常レベルに降下するまでの時間を
セラ1へするものであり、このタイマーがタイムオーバ
してから後述する過負荷検出を開始する。
Note that the protection timer is set for a time slightly longer than the time it takes for the mechanism to move normally after motor energization starts, and by the time this timer times out, If the signal level of Kt does not change (the mechanical part does not move), it is determined that there is an abnormality and the motor is stopped. The mask timer sets the time from the start of energizing the motor until the motor current drops to a steady level, and after this timer times out, overload detection, which will be described later, is started.

さて保護タイマーがタイムオーバするまでに[< iの
信号レベルが変化しなかったら、ステップ93−94を
経てモータを停止し、ステップ9Gで、基点決めをしよ
うとしていた窓(モータ)の基点決めフラグをクリアし
、その他の、状態データもクリアしてメインルーチンの
ステップ4に戻る。
Now, if the signal level of [< i does not change before the protection timer times out, the motor is stopped through steps 93-94, and in step 9G, the reference point setting flag of the window (motor) where the reference point was to be determined is set. , other status data are also cleared, and the process returns to step 4 of the main routine.

保護タイマーがタイムオーバするまでにボー1−K i
の信号レベルが変化すると、ステップ97の位置データ
の更新に進み、正回転フラグがあるどきには現在位置レ
ジスタの内容を1インクリメントし、正回転フラグが無
いと現在位置レジスタの内容をlデクシメン1−する。
Baud 1-K i until the protection timer times out
When the signal level changes, the process advances to step 97 to update the position data, and if there is a forward rotation flag, the contents of the current position register are incremented by 1, and if there is no forward rotation flag, the contents of the current position register are incremented by 1 decimeter. - to do.

そしてモータ駆動を開始したことを示す駆動初期フラグ
をセラ1−する。
Then, a drive initial flag indicating that motor drive has started is set to 1-.

ここでメインルーチンに戻ってキーイン読取klめぐり
してステップ6を経由してまた基点決めに戻る。今度は
レジスタセットフラグがあるのでステップ74からステ
ップ98(第7C図)に進み、回転信号入力ポートKi
の信号レベルが変化していないと、メインルーチンに戻
ってキーイン読取を1めぐりしてステップ6を経由して
また基点決めに戻る。Kiの信号レベルが変化している
と、ステップ99で位置データを更新し、ステップ10
0および101でモータ起動期間を経過しているか否か
を見て、起動期間製経過しくマスクタイマタイムオーバ
)かつ駆動初期フラグがあるときにはそれをクリアし、
ステップ103に進んでモータ負荷のA/D変換をする
。起動期間を経過していないと、メインルーチンに戻っ
てキーイン読取を1めぐりしてステップ6を経由してま
た基点決めに戻る。
At this point, the process returns to the main routine, performs key-in reading kl, goes through step 6, and returns to base point determination. This time, since there is a register set flag, the process proceeds from step 74 to step 98 (Fig. 7C), and the rotation signal input port Ki is set.
If the signal level has not changed, the process returns to the main routine, performs one cycle of key-in reading, and returns to base point determination via step 6. If the Ki signal level is changing, the position data is updated in step 99, and step 10
At 0 and 101, it is checked whether the motor start period has elapsed, and if the start period has elapsed (mask timer time over) and there is a drive initial flag, it is cleared.
Proceeding to step 103, A/D conversion of the motor load is performed. If the startup period has not elapsed, the process returns to the main routine, performs one cycle of key-in reading, goes through step 6, and returns to base point determination.

ステップ103でA/D変換を終るとステップ104で
正転プラグすなわちモータ回転方向を参照する。逆転す
なわち窓降下であると、ボー1− R13をチェックし
てこれがHに変化するのを、すなわち第1位置を検出す
るのを待つ。第1位置を検出したら、現在位置レジスタ
Cをクリア(すなわち第1位置をメモリ)する。この後
は、モータ電流IをA/D変換しつつIOと比較して■
≧10となるまですなわち窓ガラスが下限位置まで降下
するのを待つ。
When the A/D conversion is completed in step 103, the normal rotation plug, that is, the motor rotation direction is referred to in step 104. If it is a reversal or window drop, check Baud 1-R13 and wait for it to change to H, ie, to detect the first position. When the first position is detected, the current position register C is cleared (that is, the first position is stored in memory). After this, while A/D converting the motor current I, compare it with IO.
Wait until ≧10, that is, until the window glass has descended to the lower limit position.

下限位置に達したら、モータ駆動を止めて、現在位置レ
ジスタCの内容を基点レジスタ(すなわち第0位置レジ
スタ)にストアする。そして、基点決めフラグをクリア
して窓制御フラグ投セツ1−シ、ステップ4に戻る。
When the lower limit position is reached, the motor drive is stopped and the contents of the current position register C are stored in the base point register (ie, the 0th position register). Then, the base point determination flag is cleared, the window control flag is set, and the process returns to step 4.

ステップ104で正転すなわち窓上昇であると。In step 104, there is a normal rotation, that is, a window rise.

−視、全開となるまで窓ガラスを駆動する。この間で第
1位置より下(R13が?()では、危険防止のため比
較的小さな電流1oを負Vlf電流Iの比較レベルとし
、I≧Ioになるとモータを止める。
- Drive the window glass until it is fully open. During this time, below the first position (R13?()), a relatively small current 1o is used as a comparison level for the negative Vlf current I to prevent danger, and when I≧Io, the motor is stopped.

第1位置より上では、人の手が挟まる心配がないので比
較電流レベルを12に更新する。
Above the first position, the comparison current level is updated to 12 because there is no risk of a person's hand getting caught.

窓ガラスが」二限位置に達すると(■≧L2になると)
、モータを一担止めてから、モータ駆動を逆転にセット
し、正転フラグをクリアし、ステップ93に戻る。この
後は前記と同様にステップ104からステップ105に
進み、第1位置で現在位置レジスタをクリアし、第0位
置で基点レジスタをセットする。
When the window glass reaches the second limit position (■≧L2)
After stopping the motor, the motor drive is set to reverse rotation, the forward rotation flag is cleared, and the process returns to step 93. After this, the process proceeds from step 104 to step 105 in the same manner as described above, where the current position register is cleared at the first position and the base point register is set at the 0th position.

つ車り、基点決めをするときには、そのときに窓ガラス
が第1位置よりも上にあるがどうかで駆動方向を変え、
上であれば、窓ガラスを降下させてその途中で第1位置
をみつけ、更に下限位置まで窓ガラスを降下させて第0
位置をみつける。また、基点決めにはいるときの窓ガラ
スの位置が第1位置よりも下であると、窓ガラスを一担
第3位置まで上昇させ、その後で窓ガラスを降下させて
第1位置および第0位置をみつける。
When lifting the wheel and determining the reference point, the driving direction is changed depending on whether the window glass is above the first position at that time.
If it is above, lower the window glass and find the 1st position on the way, then lower the window glass to the lower limit position and find the 0th position.
Find the location. Also, if the position of the window glass is lower than the first position when entering the reference point, the window glass is raised to the third position, and then lowered to the first position and the zero position. Find the location.

次に、第8a図および第8b図を参照して窓制御を説明
する。「窓制御」に入ると、ステップ133−134−
135−1.36−137−138〜139−140〜
144で、モータ駆動をセットシ、駆動初期フラグをセ
ットし、入出カポ−1−をセットし、機構が動がないと
モータを止める。
Next, window control will be explained with reference to FIGS. 8a and 8b. When entering "window control", steps 133-134-
135-1.36-137-138~139-140~
At step 144, the motor drive is set, the drive initial flag is set, the input/output capo-1 is set, and if the mechanism does not move, the motor is stopped.

そしてメインルーチンに戻ってキーイン読取をlめぐり
してステップ6を経由してまた窓制御に戻る。機構が動
いてメインルーチンより窓制御に戻ると、今度はステッ
プ133−134−145−146−147−148−
149−150と進んで、モータ駆動フラグをセットし
、初期駆動フラグをクリアしてメインルーチンに戻って
キーイン読取を1めぐりしてステップ6を経由してまた
窓制御に戻る。今度はステップ133−151−153
−]、 54−155と進んで、入カポ−1”Kiの入
力が変化する毎に現在位置データ(現在位置レジスタの
内容)を更新し、モータ電流をA / I)変換する。
Then, the process returns to the main routine, goes through key-in reading, goes through step 6, and returns to window control. When the mechanism moves and returns to window control from the main routine, steps 133-134-145-146-147-148-
Steps 149-150 are followed to set the motor drive flag, clear the initial drive flag, return to the main routine, perform key-in reading once, and return to window control via step 6. Now step 133-151-153
-], 54-155, the current position data (contents of the current position register) is updated every time the input of the input capo-1''Ki changes, and the motor current is converted into A/I).

そして、ステップ156で現在位置レジスタの内容をみ
てその時の窓ガラス位置が第1位置よりも上か下かを判
定し、下であれば負荷電流■の比較レベルを11とし、
」二であれば比較]ノベルをI2どする。いずれも、そ
れらの比較レベルを負荷電流が越えていると過負荷又は
限界位置(第0位置もしくは第3位置)であるのでステ
ップ7に進んでモータを停止させる。
Then, in step 156, the content of the current position register is checked to determine whether the window glass position at that time is above or below the first position, and if it is below, the comparison level of the load current ■ is set to 11,
” If it is two, compare] Set the novel to I2. In either case, if the load current exceeds these comparison levels, it is an overload or limit position (0th position or 3rd position), so the process proceeds to step 7 and the motor is stopped.

モータ負荷電流が所定範囲内であると、モータの回動力
向に応じて、現在位置レジスタの内容を目標レジスタの
内容と比較し両者が一致するとステップ1.75を経て
キーイン読取停止フラグがあると(すでにキーイン読取
を終了して目標位置データがセラ1−されていると)ス
テップ7のモータ停止に進むが、現在位置が目標位置に
達っしていないと、あるいはキーイン読取停止フラグが
無い(まだキーイン読取が終っていないので目標位置デ
ータがセットされていない)と、メインルーチンに戻っ
てキーイン読取を1めぐりしてステップ6を経由してま
た窓制御に戻る。
When the motor load current is within a predetermined range, the contents of the current position register are compared with the contents of the target register according to the rotational direction of the motor, and if the two match, the key-in reading stop flag is detected via step 1.75. (If the key-in reading has already been completed and the target position data has been set to zero), the process proceeds to step 7 to stop the motor, but if the current position has not reached the target position or there is no key-in reading stop flag ( Since the key-in reading has not yet been completed, the target position data has not been set), the process returns to the main routine, performs one cycle of key-in reading, and returns to window control via step 6.

以上の実施例では位置検出器としてフォ1−センサを用
いたが他の検出器を使用してもよい。たとえば、第9図
に示すようにマイクロスイッチMSをウェザ−ストリッ
プ8の近傍に設けて、MSの検出部をウェザ−ストリッ
プの中空部に伸ばし、機械的にウェザ−ストリップの変
形を検出するようにすればよい。
In the above embodiments, a fo1-sensor was used as a position detector, but other detectors may be used. For example, as shown in FIG. 9, a microswitch MS is provided near the weatherstrip 8, and the detection part of the MS is extended into the hollow part of the weatherstrip to mechanically detect the deformation of the weatherstrip. do it.

また11位置検出器は駆動機構側に設けてもよい。Further, the position detector 11 may be provided on the drive mechanism side.

その−例を第10a図および第10b図に示す。An example thereof is shown in FIGS. 10a and 10b.

第10a図および第10b図を参照して説明する。This will be explained with reference to FIGS. 10a and 10b.

この実施例では、扇形歯車4の歯の内側の一端を少し突
出させてカム面4aとし、このカム面4aの移動軌跡に
対向する所定位置(ブラケット10上)にマイクロスイ
ッチMSを配置しである。この例では、窓ガラス2がウ
ェザース1−リップ8に当たりはじめる位置で、ちょう
どスイッチMSの検出部に力11面4aが当たり、M 
Sの接点が切り換わるように設定しである。この検出方
式は、ウェザース1〜リップの変形を検出する位置検出
ではないので、検出する位置は何ら制約を受けず、この
位置をウェザ−ストリップ8が変形する前に設定するこ
ともできる。その場合、モータ負荷が変化しはじめる前
に参照レベルを変更すれば、特別に複雑な処理をするこ
となく、通常の参照レベル(I1)を実際の負荷レベル
により近いレベルに設定して高感度で過負荷を検出(す
なわち危険防止)できる。
In this embodiment, one end of the inner side of the tooth of the sector gear 4 is slightly protruded to form a cam surface 4a, and a microswitch MS is arranged at a predetermined position (on the bracket 10) opposite to the movement locus of this cam surface 4a. . In this example, at the position where the window glass 2 starts to hit the weather 1-lip 8, the force 11 surface 4a hits the detection part of the switch MS, and the force 11 surface 4a hits the detection part of the switch MS.
The S contact is set to switch. Since this detection method is not a position detection method for detecting the deformation of the weather strip 1 to the lip, the position to be detected is not subject to any restrictions, and this position can be set before the weather strip 8 is deformed. In that case, if you change the reference level before the motor load starts to change, you can set the normal reference level (I1) to a level closer to the actual load level and achieve high sensitivity without special complicated processing. Can detect overload (i.e. prevent danger).

なお実施例ではサイドウィンドウについて説明したが、
ルーフパネル等についても同様に本発明を実施しうる。
In addition, in the example, the side window was explained, but
The present invention can be similarly applied to roof panels and the like.

また、実施例ではモータ過負荷検出をモータ負荷電流を
みて行なっているが、ロータリーエンコーダ等の動作量
検出器を備える場合には、それの発する信号の周波数又
は周期を参照値と比較することにより実施例と同様にモ
ータ過負荷検出を行ないうる。
In addition, in the embodiment, motor overload detection is performed by looking at the motor load current, but if a motion amount detector such as a rotary encoder is provided, the frequency or period of the signal emitted by it may be compared with a reference value. Motor overload detection can be performed similarly to the embodiment.

以」−のとおり本発明によれば、位置検出器を備えてそ
の出力に応じて過負荷参照レベルを変更するようにして
いるので、車上装備の確実な全開(又は全開)および高
感度の過負荷検出(すなわち危険防止)を行ないうる。
As described below, according to the present invention, a position detector is provided and the overload reference level is changed according to the output of the position detector. Overload detection (ie, hazard prevention) can be performed.

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

第1. a図は本発明の一実施例の機構部の側面図であ
り、自動車の助手席の電動窓開閉機構を示ず。 第1b図は電動窓開閉機構の一部の拡大斜視図、第1c
図は平面図である。 第2a図、第2b図、第2c図、および第2d図は窓ガ
ラス2とウェザ−ストリップ8の関係を示す部分断面図
、第2e図は第2a図の位置検出器SEを示す拡大断面
図である。 第3a図は窓ガラス2を駆動する電気モータの、窓ガラ
ス」二昇駆動時の付勢電流を示すグラフ、第3b図は(
q分電流とモータの負荷との関係を示すグラフである。 第4a図はスイッチ入力を読み、電動窓開閉機構を付勢
制御する電気制御系の構成を示すブロック図、第4b図
は電気制御系に電圧Vccを与える定電圧電源回路を示
す電気回路図、第40図は第4a図に示す窓開閉指示ス
イッチ11〜17の1つの外観を示す斜視図、第5a図
、第5b図、第5C図、および第5d図は該スイッチの
定常状態および操作状態を示す側面図である。 第6a図、第6b図および第6c図は、それぞれ第4a
図に示すマイクロコンピュータ9のキーイン読取動作を
示すフローチャー1〜である。 第7a図、第7 b図および第7C図は、それぞれ第4
a図に示すマイクロコンピュータ9の基点決め制御動作
を示すフローチャーl〜である。 第8a図および第8b図は第4a図に示すマイクロコン
ピュータ9の窓開閉制御動作を示すフローチャー1−で
ある。 第9図は本発明の他の一実施例を示す窓の部分断面図で
ある。 第10a図および第10b図は、それでit本発明の他
の一実施例を示す電動窓開閉機構の側面図およびその−
・部拡大側面図である。 1:助手席ドア        2:窓ガラス3:リン
ファーzN       4:g形a・j車5:ウオー
ム・ホイール組体 6a〜6d:ホールI(:、 ユニッ1−7a〜7d:
リング状永久磁石 8:ウエザース1〜リップ 9:マイクロコンピュータ(電子制御装置)lO:自動
窓制御設定スイッチ 11〜17:窓位置決め指示スイッチ 18.19ニドアキ−操作応答スイッチMb、 M a
 + Mab、 Mdb :窓ガラス駆動モータr:モ
ータ電流検出抵抗 23:定電圧電源回路 SE:位置検出器(位置検出手段) MS二マイクロスイッチ(位置検出手段)特許出願人 
アイシン精機株式会社 F+3b”Im η3av 箔4b阿 !ジ 黒5av    ¥5b反 力5Cm 109− 梢4c■ 消5dv 箔10a図 尤10bV
1st. Figure a is a side view of a mechanical part of an embodiment of the present invention, and does not show an electric window opening/closing mechanism for a passenger seat of an automobile. Figure 1b is an enlarged perspective view of a part of the electric window opening/closing mechanism, Figure 1c
The figure is a plan view. FIGS. 2a, 2b, 2c, and 2d are partial sectional views showing the relationship between the window glass 2 and the weather strip 8, and FIG. 2e is an enlarged sectional view showing the position detector SE in FIG. 2a. It is. Figure 3a is a graph showing the energizing current of the electric motor that drives the window glass 2 when the window glass 2 is raised, and Figure 3b is (
It is a graph showing the relationship between q-minute current and motor load. Fig. 4a is a block diagram showing the configuration of an electrical control system that reads switch input and controls the energization of the electric window opening/closing mechanism; Fig. 4b is an electrical circuit diagram showing a constant voltage power supply circuit that supplies voltage Vcc to the electrical control system; FIG. 40 is a perspective view showing the appearance of one of the window opening/closing instruction switches 11 to 17 shown in FIG. 4a, and FIGS. 5a, 5b, 5C, and 5d show the steady state and operating state of the switch. FIG. Figures 6a, 6b and 6c are respectively shown in Figure 4a.
Flowcharts 1 to 7 show the key-in reading operation of the microcomputer 9 shown in the figure. Figures 7a, 7b and 7c are respectively
FIG. 1 is a flowchart showing the reference point determination control operation of the microcomputer 9 shown in FIG. FIGS. 8a and 8b are a flowchart 1- showing the window opening/closing control operation of the microcomputer 9 shown in FIG. 4a. FIG. 9 is a partial sectional view of a window showing another embodiment of the present invention. 10a and 10b are side views of an electric window opening/closing mechanism showing another embodiment of the present invention, and FIGS.
・It is an enlarged side view. 1: Passenger door 2: Window glass 3: Linfer ZN 4: G type A/J cars 5: Worm wheel assembly 6a to 6d: Hall I (:, Unit 1-7a to 7d:
Ring-shaped permanent magnet 8: Weathers 1 to Lip 9: Microcomputer (electronic control unit) lO: Automatic window control setting switch 11 to 17: Window positioning instruction switch 18.19 Door key operation response switch Mb, Ma
+ Mab, Mdb: Window glass drive motor r: Motor current detection resistor 23: Constant voltage power supply circuit SE: Position detector (position detection means) MS2 micro switch (position detection means) Patent applicant
Aisin Seiki Co., Ltd.F+3b"Im η3av Foil 4bA!Jikuro 5av ¥5b Reaction force 5Cm 109- Kozue 4c ■ Eraser 5dv Foil 10a Figure 10bV

Claims (7)

【特許請求の範囲】[Claims] (1)車上装備を移動自在に支持する支持手段;車上装
備を駆動する電動駆動機構; 電動駆動機構の電気モータを付勢する電気ドライバ; 電気モータの負荷を検出する手段フ 電動駆動機構の駆動を指示するスイッチ手段; 車上装備、電動駆動機構およびこれらの近傍のうち少な
くとも1つの位置に備えた、車上装備もしくは電動駆動
機構の可動部の位置を検出する少なくとも1つの位置検
出手段;およびスイッチ手段の操作に応答して電気モ〜
りの付勢を指示し、付勢の間前記位置検出手段の出力を
監視し、位置検出手段からの情報および電気モータの回
転方向より位置情報を得て、半導体メモリに格納されて
いる、位置に対応付けられた参照データを読んで電気モ
ータの負荷をこれと比較し、負荷が該参照データで定ま
る所定値を越えると電気モータの付勢を止める電子制御
装置;を備える車」二電動装備の駆動制御装置。
(1) Support means for movably supporting onboard equipment; electric drive mechanism for driving onboard equipment; electric driver for energizing the electric motor of the electric drive mechanism; means for detecting the load of the electric motor; electric drive mechanism at least one position detection means for detecting the position of the movable part of the on-vehicle equipment or the electric drive mechanism, which is provided at at least one position among the on-board equipment, the electric drive mechanism, and their vicinity; ; and the electric motor in response to operation of the switch means.
The output of the position detection means is monitored during the energization, position information is obtained from the position detection means and the rotational direction of the electric motor, and the position stored in the semiconductor memory is determined. A vehicle equipped with an electronic control device that reads reference data associated with the reference data, compares the load on the electric motor with this, and stops energizing the electric motor when the load exceeds a predetermined value determined by the reference data. drive control device.
(2)電動駆動機構は、その動作に連動して、所定員の
移動当りlサイクルのレベル変動を生ずる電気信号を生
ずる移動信号発生器を備え、電子制御装置は、スイッチ
手段の操作に応答して電気モータの(J勢を指示し、付
勢の間前記移動信号発生器の出力レベル変化および位置
検出手段の出力信号を監視し、位置検出手段からの情報
および電気モータの回転方向とレベル変化の回数より位
置情報を得て、半導体メモリに格納されている、位置に
対応付けられた参照データを読んで電気モータの負荷を
これと比較し、負荷が該参照データで定まる所定値を越
えると電気モータの付勢を止める、前記特許請求の範囲
第(1)項記載の車上電動装備の駆動制御装置。
(2) The electric drive mechanism includes a movement signal generator that generates an electric signal that causes a level fluctuation of 1 cycle per movement of a predetermined person in conjunction with the movement of the electric drive mechanism, and the electronic control device responds to the operation of the switch means. During the energization, the output level change of the movement signal generator and the output signal of the position detection means are monitored, and the information from the position detection means and the rotation direction and level change of the electric motor are monitored. The position information is obtained from the number of times, the reference data stored in the semiconductor memory and associated with the position is read, and the load of the electric motor is compared with this, and if the load exceeds a predetermined value determined by the reference data. A drive control device for on-vehicle electric equipment according to claim 1, which stops energization of an electric motor.
(3)位置検出手段は、車上装備の可動部が可撓性の部
材に接触する位置の近傍にあるときに所定の出力状態変
化を生ずる位置に配置されている、前記特許請求の範囲
第(1)項又は第(2)項記載の車上電動装備の駆動制
御装置。
(3) The position detection means is arranged at a position where a predetermined output state change occurs when the movable part of the on-vehicle equipment is in the vicinity of the position where it contacts the flexible member. A drive control device for on-vehicle electric equipment as described in item (1) or item (2).
(4)位置検出手段は、車上装備のウェザストリップの
変形を検出する。前記特許請求の範囲第(3)項記載の
車上電動装備の駆動制御装置。
(4) The position detection means detects deformation of the weather strip installed on the vehicle. A drive control device for on-vehicle electric equipment according to claim (3).
(5)電子制御装置は、スイッチ手段の操作に応答して
電気モータの付勢を指示し、付勢の間前記電気信号のレ
ベル変化および位置検出手段からの情報を監視し、移動
限界位置情報9位置検出手段からの位置情報および電気
モータの回転方向とレベル変化の回数より位置情報を得
て、半導体メモリに格納されている、位置に対応付けら
れた参照データを読んで電気モータの負荷をこれと比較
し、負荷が該参照データで定まる所定値を越えると電気
モータの伺勢を止め、また位置情報が限界位置に合致す
ると電気モータの付勢を止める前記特許請求の範囲第(
2)項記載の車上電動装備の駆動制御装置。
(5) The electronic control device instructs energization of the electric motor in response to the operation of the switch means, monitors level changes of the electric signal and information from the position detection means during energization, and obtains movement limit position information. 9 Obtain position information from the position detection means and the rotational direction of the electric motor and the number of level changes, read reference data stored in the semiconductor memory and associated with the position, and adjust the load on the electric motor. In comparison, when the load exceeds a predetermined value determined by the reference data, the electric motor stops energizing, and when the position information matches the limit position, the electric motor stops energizing.
2) A drive control device for on-vehicle electric equipment as described in item 2).
(6)電子制御装置は、電気モータの付勢開始から所定
時間の間は前記比較をせず、所定時間後番こ前記比較を
する前記特許請求の範囲第(1)項又は第(2)項記載
の車上電動装備の駆動制御装置。
(6) The electronic control device does not perform the comparison for a predetermined time from the start of energization of the electric motor, and performs the comparison after a predetermined time. A drive control device for on-vehicle electric equipment as described in 2.
(7)電気モータの負荷を検出する手段は、電気モータ
の付勢電流ループに介挿された抵抗器である前記特許請
求の範囲第(1)項又は第(2)項記載の車上電動装備
の駆動制御装置。
(7) The on-vehicle electric motor according to claim (1) or (2), wherein the means for detecting the load of the electric motor is a resistor inserted in the energizing current loop of the electric motor. Equipment drive control device.
JP57193867A 1982-11-04 1982-11-04 Driving controller of electromotive equipment on car Pending JPS5983218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57193867A JPS5983218A (en) 1982-11-04 1982-11-04 Driving controller of electromotive equipment on car

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57193867A JPS5983218A (en) 1982-11-04 1982-11-04 Driving controller of electromotive equipment on car

Publications (1)

Publication Number Publication Date
JPS5983218A true JPS5983218A (en) 1984-05-14

Family

ID=16315069

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57193867A Pending JPS5983218A (en) 1982-11-04 1982-11-04 Driving controller of electromotive equipment on car

Country Status (1)

Country Link
JP (1) JPS5983218A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60185625A (en) * 1984-03-05 1985-09-21 Mitsuba Denki Seisakusho:Kk Window glass elevation unit
JPS62196711A (en) * 1986-02-21 1987-08-31 Tokyo Seimitsu Sokki Kk Servo-driving device
JPH01151676A (en) * 1987-12-07 1989-06-14 Honda Motor Co Ltd Door locking device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60185625A (en) * 1984-03-05 1985-09-21 Mitsuba Denki Seisakusho:Kk Window glass elevation unit
JPS62196711A (en) * 1986-02-21 1987-08-31 Tokyo Seimitsu Sokki Kk Servo-driving device
JPH01151676A (en) * 1987-12-07 1989-06-14 Honda Motor Co Ltd Door locking device

Similar Documents

Publication Publication Date Title
JPS59148586A (en) Drive controller for vehicle motor drive device
ES2214222T3 (en) CIRCUIT AND PROCEDURE FOR THE CONTROL OF ELECTRIC WINDOWS, SLIDING CEILINGS OR DOOR LOCKS OPERATED BY EXTERNAL FORCE IN CARS.
US5932931A (en) Vehicle window control system responsive to external force
JP2001260647A (en) Submergence detection power window device
US6541929B2 (en) Apparatus and method for controlling vehicle power windows
US6459168B1 (en) Power window mechanism for enabling window to be opened in case of submergence of vehicle
EP1674646B1 (en) Power window device
JP4460389B2 (en) Power window device
JPS5983218A (en) Driving controller of electromotive equipment on car
JPS5961485A (en) Drive controller for vehicle motor drive device
JP2007224685A (en) Opening/closing control device and opening/closing control setting method
ITTO950960A1 (en) CONTROL DEVICE FOR AN ELECTRIC WINDOW FOR VEHICLES.
JPH0315435B2 (en)
KR101799205B1 (en) A method of automatic resetting sunroof position and a sunroof apparatus adopting the same method
JP3473582B2 (en) Motor drive
KR102452535B1 (en) Apparatus and method for preventing misoperating of sunroof for vehicle
JPH08331877A (en) Safety device of motor-driven window opening/closing mechanism for vehicle
JPH0596372U (en) Power window safety equipment
JPH06137029A (en) Power window device with safety device
KR20030027588A (en) Power window safety system in vehicle
JPS61218456A (en) Driving controller for motor-driven equipment on car
JP3923220B2 (en) Window opening and closing control device
JP3276859B2 (en) Motor control device
JPS61218420A (en) Drive control device in onboard electrical drive equipment
EP0584033A1 (en) Antinipping protection system for winders and sunroofs in automobile vehicles