JP2003154854A - Method and device for controlling sunroof - Google Patents

Method and device for controlling sunroof

Info

Publication number
JP2003154854A
JP2003154854A JP2001351838A JP2001351838A JP2003154854A JP 2003154854 A JP2003154854 A JP 2003154854A JP 2001351838 A JP2001351838 A JP 2001351838A JP 2001351838 A JP2001351838 A JP 2001351838A JP 2003154854 A JP2003154854 A JP 2003154854A
Authority
JP
Japan
Prior art keywords
motor
rotation speed
sunroof
rotation
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2001351838A
Other languages
Japanese (ja)
Other versions
JP3898035B2 (en
Inventor
Hiroyuki Funaki
弘幸 舟木
Tokuhiro Tanaka
徳浩 田中
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.)
Jidosha Denki Kogyo KK
Original Assignee
Jidosha Denki Kogyo KK
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 Jidosha Denki Kogyo KK filed Critical Jidosha Denki Kogyo KK
Priority to JP2001351838A priority Critical patent/JP3898035B2/en
Publication of JP2003154854A publication Critical patent/JP2003154854A/en
Application granted granted Critical
Publication of JP3898035B2 publication Critical patent/JP3898035B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a method and a device for controlling a sunroof, capable of preventing an erroneous reversal or an increase in a pinching load, by preventing the erroneous reversal or the like of the sunroof occurring as a result of misjudgment as pinching when the rotational speed of the motor is changed by a shade or the like, and by detecting pinching with high accuracy irrespective of such properties as deformability of a thing that is pinched. SOLUTION: In detecting pinching by the sunroof lid, a plurality of rotational speed differences for different comparison times are calculated, and a number of sets of threshold value data corresponding to the same number of the rotational speed difference data are prepared. Determination as to whether pinching has occurred or not is made according to the elapsed time since the motor has started rotating or the moved distance of the sunroof lid after the starting, by determining whether a calculated rotational speed difference is larger or not than the corresponding threshold that decreases with the increase in the elapsed time or in the moved distance.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、モータにより車両の屋
根に配設したサンルーフ装置のリッドを開閉駆動するサ
ンルーフ駆動装置に係わり、とくに、サンルーフリッド
が閉方向に作動しているときに、異物の挟み込みを高精
度に検出することができるサンルーフ駆動装置に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sunroof drive device for opening and closing a lid of a sunroof device arranged on a roof of a vehicle by a motor, and particularly to a foreign matter when the sunroof lid is operating in a closing direction. The present invention relates to a sunroof drive device that can detect the entrapment of a vehicle with high accuracy.

【0002】[0002]

【従来の技術】サンルーフ装置におけるサンルーフリッ
ド駆動用のモータには、電流供給停止後のアーマチュア
の惰性回転とリッドの惰性移動のずれによって生じる負
荷や、リッドが全閉位置や全開位置で拘束された場合に
受ける荷重を吸収するために、モーターの出力ギヤと、
出力軸の間に樹脂やゴム製のダンパーが設けてあること
から、駆動モータが回転を始めた直後には、ダンパーの
戻りや、その後の捩れ、あるいは温度変化などによっ
て、モータの回転に乱れが生じることがある。
2. Description of the Related Art A motor for driving a sunroof lid in a sunroof device is constrained in a fully closed position or a fully opened position due to a load caused by a deviation between inertial rotation of the armature and inertial movement of the lid after current supply is stopped. In order to absorb the load received in the case, with the output gear of the motor,
Since a damper made of resin or rubber is provided between the output shafts, immediately after the drive motor starts rotating, the damper may return, twist afterwards, or the temperature may change, causing disturbance in the motor rotation. May occur.

【0003】そこで、駆動モータの回転数(回転速度)
を監視し、サンルーフリッドが閉方向に移動している際
に回転数が減少したことを検出した場合に、挟み込み発
生と判断してサンルーフリッドを反転(開方向駆動)す
るような制御を行う挟み込み防止機能を備えた従来のサ
ンルーフ装置においては、上記のようなダンパーなどに
よるモータ回転数の低下を異物の挟み込みと誤判断しな
いように、駆動モータの起動直後の一定時間、あるいは
モータが起動したのちサンルーフリッドが所定の距離だ
け移動するまでの間は、上記挟み込み検出をマスクする
制御を行うものがある。
Therefore, the rotation speed (rotation speed) of the drive motor
When detecting that the number of rotations has decreased while the sunroof lid is moving in the closing direction, it is determined that pinching has occurred and the sunroof lid is inverted (drive in the opening direction). In a conventional sunroof device with a prevention function, in order not to mistakenly judge that a decrease in the motor rotation speed due to the above-mentioned damper is a trap of foreign matter, a certain time immediately after the drive motor is started or after the motor is started. There is a control for masking the detection of pinching until the sunroof lid moves by a predetermined distance.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、シェー
ドを備え、シェードと共にサンルーフリッド(ルーフガ
ラス)が閉作動するようになったシステムにおいては、
サンルーフリッドが移動を開始したのち所定の距離内で
シェードに衝突するため、モータの起動後から負荷変動
が長い間継続することから、この間の時間あるいは距離
分すべてをマスクしなければならないことになり、マス
ク領域、すなわちリッドの作動開始直後において挟み込
みが万一発生したとしても、リッドを反転させることが
できない範囲が広くなってしまうという問題点がある。
However, in a system that includes a shade and the sunroof lid (roof glass) closes together with the shade,
After the sunroof lid starts moving, it collides with the shade within a certain distance, so load fluctuations continue for a long time after the motor is started.Therefore, it is necessary to mask all of the time or distance during this period. However, there is a problem that the mask region, that is, the range in which the lid cannot be inverted becomes wide even if the entrapment should occur immediately after the operation of the lid starts.

【0005】また、挟み込み検出に際して、モータ回転
数の減少(減速)を一定のパルスカウント間でのみ比較
していると、マスクが終了した直後に異なる弾性率で挟
み込みが生じた場合、すなわち硬いものや軟かいものを
挟み込んだ場合に挟み込み荷重が変化し、誤反転した
り、大きな挟み込み荷重を受けたりすることがあるとい
う問題点があり、これらの問題点を解消することが、従
来のサンルーフ装置における挟み込み検出システムの課
題となっていた。
Further, in detecting the entrapment, if the reduction (deceleration) of the motor rotation number is compared only between constant pulse counts, when entrapment occurs with a different elastic modulus immediately after the mask is finished, that is, a hard object is detected. There is a problem that the sandwiching load changes when a soft or soft object is sandwiched, which may cause erroneous reversal or a large sandwiching load. To solve these problems, the conventional sunroof device can be solved. It was a problem of the entrapment detection system in.

【0006】[0006]

【発明の目的】この発明は、従来の挟み込み検出・制御
システムにおける上記課題に鑑みてなされたものであっ
て、シェードなどによるモータ回転変動要素があったと
しても、誤作動することがなく、しかも挟み込まれたも
のの物性に拘わりなく高精度の挟み込み検出ができ、誤
反転や挟み込み荷重の増大を防止することができるサン
ルーフ制御方法およびサンルーフ制御装置を提供するこ
とを目的としている。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems in the conventional entrapment detection / control system, and does not malfunction even if there is a motor rotation varying element due to a shade or the like. An object of the present invention is to provide a sunroof control method and a sunroof control device capable of detecting a pinch with high accuracy regardless of the physical properties of a pinched object and preventing erroneous reversal and an increase in the pinching load.

【0007】[0007]

【課題を解決するための手段】本発明に係わるサンルー
フ制御方法は、サンルーフリッドを開閉作動させる駆動
用モータの回転速度を検出して予め定められた数だけ保
存し、保存された回転速度データから比較期間が異なる
複数の速度差データを算出すると共に、これと対応する
同数のしきい値であって、前記モータが回転を開始した
後の経過時間あるいはサンルーフリッドの移動距離の増
加に伴って減少するしきい値データを多数組用意し、サ
ンルーフリッドが閉方向に作動しているときに、前記複
数の速度差データのうちのいずれかの値が、前記モータ
の回転開始後の経過時間あるいはサンルーフリッドの移
動距離に応じて選択された対応するしきい値を超えた際
には、前記モータを停止させた後、反転させてサンルー
フリッドを開方向に作動させる構成としたことを特徴と
し、当該制御方法の好適形態としては、前記モータの回
転開始直後には、前記モータの停止および反転を禁止す
る構成としたことを特徴としており、サンルーフ制御方
法におけるこのような構成を前述した従来の課題を解決
するための手段としている。
A sunroof control method according to the present invention detects a rotation speed of a drive motor for opening and closing a sunroof lid, stores a predetermined number of the rotation speeds, and saves the stored rotation speed data. A plurality of speed difference data with different comparison periods are calculated, and the same number of threshold values corresponding to this is calculated, and decreases as the elapsed time after the motor starts rotating or the movement distance of the sunroof lid increases. When a sunroof lid is operating in the closing direction, any one of the plurality of speed difference data indicates the elapsed time after the start of rotation of the motor or the sunroof. When the corresponding threshold value selected according to the travel distance of the lid is exceeded, the motor is stopped and then inverted to open the sunroof lid in the opening direction. In the sunroof control method, the control method is characterized in that the motor is stopped and the motor is stopped immediately after the motor starts to rotate. Such a configuration is used as a means for solving the above-mentioned conventional problems.

【0008】本発明に係わるサンルーフ制御装置は、減
速装置を介してサンルーフリッドに連結されたアーマチ
ュア軸を有するモータと、サンルーフリッドを開方向に
移動させる開指令信号を発生する開スイッチと、サンル
ーフリッドを閉方向に移動させる閉指令信号を発生する
閉スイッチと、前記開スイッチからの開指令信号に応じ
て開駆動信号を発生し、前記閉スイッチからの閉指令信
号に応じて閉駆動信号を発生する制御手段と、前記制御
手段からの開駆動信号に応じてサンルーフリッドの開方
向に相当する回転を与える駆動電流をモータに供給し、
閉駆動信号に応じてサンルーフリッドの閉方向に相当す
る回転を与える駆動電流をモータに供給する駆動手段
と、前記モータのアーマチュア軸の回転に応じて位相差
を有するパルス信号を発生するモータ回転検出手段を備
えたサンルーフ制御装置において、前記制御手段は、前
記アーマチュア軸が回転を開始したのちに前記モータ回
転検出手段から発生するパルス信号数をカウントするモ
ータ起動カウンタと、前記モータ回転検出手段から発生
するパルス信号に基いて単位時間当たりの回転数を算出
する回転数算出ブロックと、前記回転数算出ブロックに
より算出された単位時間当たりの回転数データを予め定
められた数だけ保存すると共に、保存された回転数デー
タから比較期間が異なる複数の回転数差データを算出し
て出力する回転数メモリブロックと、前記モータ起動カ
ウンタのカウント値に応じて、該カウント値が増加する
にしたがって減少するように予め定められ、前記回転数
メモリブロックから出力される複数の回転数差データと
それぞれ比較される同数のしきい値データが多数組保存
されたしきい値データROMと、前記閉スイッチから閉
指令信号が出力されると、前記しきい値データROMに
保存された多数組のしきい値データから、モータ起動カ
ウンタのカウント値に応じて一組のしきい値データを読
み込むと共に、前記回転数メモリブロックから出力され
た複数の回転数差データを対応する同数のしきい値デー
タとそれぞれ比較し、回転数差データのうちのいずれか
の値が対応するしきい値を超えたときには、前記駆動手
段に対する閉駆動信号の出力を停止して、開駆動信号を
出力する制御ブロックを備えている構成、あるいは同様
のサンルーフ制御装置において、前記制御手段は、前記
アーマチュア軸が回転を開始したのちの経過時間をカウ
ントするモータ起動タイマーと、前記モータ回転検出手
段から発生するパルス信号に基いて単位時間当たりの回
転数を算出する回転数算出ブロックと、前記回転数算出
ブロックにより算出された単位時間当たりの回転数デー
タを予め定められた数だけ保存すると共に、保存された
回転数データから保存期間が異なる複数の回転数差デー
タを算出して出力する回転数メモリブロックと、前記モ
ータ起動タイマーのカウント値に応じて、該カウント値
が増加するにしたがって減少するように予め定められ、
前記回転数メモリブロックから出力される複数の回転数
差データとそれぞれ比較される同数のしきい値データが
多数組保存されたしきい値データROMと、前記閉スイ
ッチから閉指令信号が出力されると、前記しきい値デー
タROMに保存された多数組のしきい値データから、モ
ータ起動タイマーのカウント値に応じて一組のしきい値
データを読み込むと共に、前記回転数メモリブロックか
ら出力された複数の回転数差データを対応する同数のし
きい値データとそれぞれ比較し、回転数差データのうち
のいずれかの値が対応するしきい値を超えたときには、
前記駆動手段に対する閉駆動信号の出力を停止して、開
駆動信号を出力する制御ブロックを備えている構成と
し、サンルーフ制御装置におけるこのような構成を前述
した従来の課題を解決するための手段としたことを特徴
としている。
A sunroof control device according to the present invention includes a motor having an armature shaft connected to a sunroof lid through a speed reducer, an open switch for generating an open command signal for moving the sunroof lid in an opening direction, and a sunroof lid. And a closing switch for generating a closing command signal for moving in a closing direction, and an opening driving signal is generated according to the opening command signal from the opening switch, and a closing driving signal is generated according to the closing command signal from the closing switch. And a drive current for giving rotation corresponding to the opening direction of the sunroof lid to the motor in response to the opening drive signal from the control means,
Driving means for supplying to the motor a drive current for giving rotation corresponding to the closing direction of the sunroof lid in response to the closing drive signal, and motor rotation detection for generating a pulse signal having a phase difference according to the rotation of the armature shaft of the motor In the sunroof control device including means, the control means generates a motor start counter that counts the number of pulse signals generated by the motor rotation detecting means after the armature shaft starts rotating, and a motor rotation detecting means. A rotation speed calculation block for calculating the rotation speed per unit time based on the pulse signal, and a predetermined number of rotation speed data per unit time calculated by the rotation speed calculation block are stored and saved. Based on the measured rotation speed data, multiple rotation speed difference data with different comparison periods are calculated and output. According to the count value of the re-blocking and the motor start counter, it is predetermined so as to decrease as the count value increases and is compared with a plurality of rotation speed difference data output from the rotation speed memory block. A plurality of sets of threshold value data stored in the threshold data ROM when a closing command signal is output from the closing switch. From the above, a set of threshold data is read according to the count value of the motor start counter, and a plurality of rotation speed difference data output from the rotation speed memory block are respectively compared with a corresponding same number of threshold data. When any one of the rotational speed difference data exceeds the corresponding threshold value, the output of the closing drive signal to the drive means is stopped. In a configuration including a control block that outputs an open drive signal, or a similar sunroof control device, the control means includes a motor start timer that counts an elapsed time after the armature shaft starts rotating, and the motor. A rotation speed calculation block for calculating the rotation speed per unit time based on a pulse signal generated from the rotation detection means, and a predetermined number of rotation speed data per unit time calculated by the rotation speed calculation block are stored. In addition, the rotation speed memory block that calculates and outputs a plurality of rotation speed difference data having different storage periods from the stored rotation speed data, and the count value increases according to the count value of the motor start timer. Therefore it is predetermined to decrease,
A threshold data ROM storing a large number of sets of threshold data of the same number that are respectively compared with a plurality of rotation speed difference data output from the rotation speed memory block, and a closing command signal is output from the closing switch. And, from a large number of sets of threshold value data stored in the threshold value data ROM, a set of threshold value data is read according to the count value of the motor start timer and is output from the rotation speed memory block. Each of the plurality of rotation speed difference data is compared with the corresponding threshold value data, and when any one of the rotation speed difference data exceeds the corresponding threshold value,
And a means for solving the above-mentioned conventional problem in the sunroof control device, which has a control block for stopping the output of the closing drive signal to the driving means and outputting the opening drive signal. It is characterized by having done.

【0009】また、本発明に係わるサンルーフ制御装置
の好適形態としては、しきい値データROMには、前記
モータの回転開始直後のしきい値として、回転数差デー
タが取り得る値以上の値が保存されている構成としたこ
とを特徴としている。
In a preferred embodiment of the sunroof control device according to the present invention, the threshold value data ROM has a threshold value immediately after the start of rotation of the motor that is equal to or greater than a value that the rotation speed difference data can take. The feature is that it is saved.

【0010】[0010]

【発明の作用】本発明に係わるサンルーフ制御方法にお
いては、挟み込み検出に際して、サンルーフリッド駆動
用のモータ回転数(単位時間の回転数、すなわち回転速
度)が低下し、挟み込みが発生したと判定するのに、た
だ一つの速度差数値によって判定する(例えば、アーマ
チュア軸が1回転する時間が所定のしきい値より長くな
ったかどうか)ことなく、比較期間の異なる複数の回転
速度差の値によって判定する(例えば、アーマチュア軸
が1回転する時間、2回転する時間、4回転する時間、
8回転する時間がそれぞれ所定の時間より長くなったか
どうか)と共に、これら複数の回転速度差データにそれ
ぞれ対応する同数のしきい値データを多数組用意し、前
記モータの回転開始からの経過時間、あるいはサンルー
フリッドの移動距離(モータの回転量)に応じて、これ
ら経過時間あるいは移動距離の増加に伴って減少する用
に設定したしきい値よりも大きいか否かで挟み込みの有
無を判定するようにしていることから、例えば、図1に
示すように、モータ起動直後の範囲のしきい値を極めて
大きくすることによってマスク領域とすると共に、それ
に隣接する範囲であって、シェードとの衝突が起り得る
範囲のしきい値を通常判定のしきい値よりも高くした高
しきい値領域A、あるいはBとし、これら以外の距離範
囲を通常しきい値領域とすることによって、モータの回
転開始直後の回転変動や、シェードとの衝突による回転
変動を挟み込み発生と判定することがなくなり、サンル
ーフリッドの誤反転が防止されることになる。
In the sunroof control method according to the present invention, when the jamming is detected, it is determined that the motor rotation speed for driving the sunroof lid (the rotation speed per unit time, that is, the rotation speed) is decreased and the jamming occurs. In addition, the determination is made based on a plurality of rotational speed difference values having different comparison periods, without making a determination based on a single speed difference value (for example, whether or not the time required for the armature shaft to make one rotation becomes longer than a predetermined threshold value). (For example, the time of one rotation of the armature shaft, the time of two rotations, the time of four rotations,
Whether or not the time of eight revolutions is longer than a predetermined time), a large number of sets of threshold data of the same number respectively corresponding to the plurality of rotational speed difference data are prepared, and the elapsed time from the start of rotation of the motor, Alternatively, depending on the movement distance (motor rotation amount) of the sunroof lid, the presence or absence of the entrapment is determined by whether the elapsed time or the threshold value set to decrease with the increase of the movement distance is greater than or equal to the threshold value. Therefore, for example, as shown in FIG. 1, the threshold value in the range immediately after the motor is started is made extremely large to form the mask area, and the area adjacent to the mask area collides with the shade. A high threshold region A or B in which the threshold value of the obtained range is set higher than the threshold value of the normal judgment, and the distance range other than these is set as the normal threshold value. By the band, rotation fluctuation and immediately after the start of rotation of the motor, it is not possible to determine the rotation fluctuation jamming caused by collision with the shade, so that the erroneous inversion of the sunroof lid is prevented.

【0011】また、挟み込み判定に際して、上記のよう
に比較期間の異なる複数の回転速度差データのいずれか
の値が対応するしきい値を越えたかどうかによって挟み
込み発生を判定するようにしているので、挟み込まれた
ものの物性に拘わりなく高精度の挟み込み検出がなさ
れ、誤反転がなくなると共に、挟み込み時の荷重が低減
することになる。なお、図1において、回転変動Aは、
モータ回転検出用のパルス信号における32パルスカウ
ント間の出力軸回転数差をプロットしたものであって、
図中のしきい値Aと比較され、回転変動Bは、8パルス
カウント間の出力軸回転数差をプロットしたものであっ
て、しきい値Bと比較される。そして、これらの少なく
とも一方がそれぞれのしきい値を超えることによって挟
み込み発生と判定される。
Further, in the entrapment determination, the entrapment occurrence is determined by whether or not any value of the plurality of rotational speed difference data having different comparison periods exceeds the corresponding threshold value as described above. The pinch detection is performed with high accuracy regardless of the physical properties of the pinched object, erroneous reversal is eliminated, and the load at the time of pinching is reduced. In FIG. 1, the rotation fluctuation A is
It is a plot of the output shaft rotation speed difference between 32 pulse counts in the pulse signal for motor rotation detection,
The rotation fluctuation B is compared with the threshold value A in the figure, and is a plot of the output shaft rotation speed difference between eight pulse counts, and is compared with the threshold value B. Then, when at least one of these exceeds the respective threshold value, it is determined that entrapment has occurred.

【0012】本発明に係わるサンルーフ制御装置は、サ
ンルーフリッド駆動用のモータと、開閉スイッチと、制
御手段と、制御手段からの開駆動信号あるいは閉駆動信
号に基いてモータに駆動電流を供給する駆動手段と、モ
ータ回転検出手段を備え、前記制御手段が、モータ回転
検出手段からの回転開始後のパルス信号数をカウントす
るモータ起動カウンタあるいは回転開始後の経過時間を
カウントするモータ起動タイマーと、モータの単位時間
当たりの回転数を算出する回転数算出ブロックと、単位
時間当たりの回転数データを予め定められた数だけ保存
し、比較期間が異なる複数の回転数差データを算出して
出力する回転数メモリブロックと、前記モータ起動カウ
ンタあるいはモータ起動タイマーのカウント値が増加す
るにしたがって減少するように予め定められ、前記複数
の回転数差データとそれぞれ比較される同数のしきい値
データが多数組保存されたしきい値データROMと、閉
スイッチから閉指令信号が出力されると、前記しきい値
データROMに保存された多数組のしきい値データか
ら、モータ起動カウンタあるいはモータ起動タイマーの
カウント値に応じて一組のしきい値データを読み込み、
これを回転数差データとそれぞれ比較し、回転数差デー
タのうちのいずれかの値が対応するしきい値を超えたと
きには、閉駆動信号の出力を停止して、開駆動信号を出
力する制御ブロックを備えたものであるから、上記制御
方法と同様に、挟み込まれたものの物性に拘わりなく高
精度の挟み込み検出がなされ、サンルーフリッドの誤反
転や挟み込み荷重の増大が防止されることになる。
A sunroof control device according to the present invention is a motor for driving a sunroof lid, an opening / closing switch, a control means, and a drive for supplying a drive current to the motor based on an open drive signal or a close drive signal from the control means. A motor start counter that counts the number of pulse signals from the motor rotation detection means after the start of rotation, or a motor start timer that counts the elapsed time after the start of rotation, A rotation speed calculation block that calculates the rotation speed per unit time and a rotation speed that stores a predetermined number of rotation speed data per unit time and calculates and outputs multiple rotation speed difference data with different comparison periods. Several memory blocks and decrease as the count value of the motor start counter or motor start timer increases. When a closing command signal is output from the closing switch, the threshold value data ROM stores a large number of sets of the same number of threshold value data that are predetermined to be compared with the plurality of rotation speed difference data. From a large number of sets of threshold data stored in the threshold data ROM, a set of threshold data is read according to a count value of a motor start counter or a motor start timer,
This is compared with the rotation speed difference data respectively, and when any one of the rotation speed difference data exceeds the corresponding threshold value, the control of stopping the output of the closing drive signal and outputting the open drive signal. Since the block is provided, similar to the control method described above, the pinch detection is performed with high accuracy regardless of the physical properties of the pinched object, and erroneous reversal of the sunroof lid and increase in the pinch load are prevented.

【0013】本発明の好適形態として、回転数差データ
が取り得る値以上の値を駆動用モータの回転開始直後の
しきい値として設定することによって、モータの起動直
後には挟み込み発生と判定されることがなくなり、この
範囲がマスク領域となって、ダンパーの戻りなどによっ
てモータの回転変動が生じたとしても、挟み込みと判定
されることがなくなり、リッドの誤反転が防止されるこ
とになる。
As a preferred embodiment of the present invention, by setting a value equal to or larger than a value that the rotation speed difference data can take as a threshold value immediately after the rotation of the drive motor is started, it is determined that the trapping occurs immediately after the motor is started. Even if the rotation of the motor fluctuates due to the return of the damper or the like, this range is not masked, and it is not determined that the motor is pinched, and erroneous inversion of the lid is prevented.

【0014】[0014]

【実施例】以下、本発明を実施例に基いてさらに具体的
に説明する。
EXAMPLES The present invention will be described in more detail based on the following examples.

【0015】図2は、本発明に係わるサンルーフ制御装
置の構成を示すブロック図であって、図に示すサンルー
フ制御装置1は、開スイッチ2と、閉スイッチ3と、モ
ータ4を備えたアクチュエータACから、主として構成
されており、アクチュエータACには、2つのホールI
C、IC1およびIC2からなるモータ回転検出手段5
と、出力回路(駆動手段)6と、制御手段MCU(micr
oprogram control unit)が組込まれている。そして、制
御手段MCUには、エッジ検出ブロック7、モータ起動
後パルスカウンタ(モータ起動カウンタ)8、サンルー
フリッド位置カウンタ9、出力軸回転数算出ブロック
(回転数算出ブロック)10、回転数メモリブロック1
1、しきい値データROM12、入力ブロック13、制
御ブロック14および出力ブロック15が内蔵されてい
る。
FIG. 2 is a block diagram showing the structure of the sunroof control device according to the present invention. The sunroof control device 1 shown in the drawing is an actuator AC having an open switch 2, a close switch 3 and a motor 4. The actuator AC has two holes I
Motor rotation detecting means 5 including C, IC1 and IC2
Output circuit (driving means) 6 and control means MCU (micr
oprogram control unit) is incorporated. The control unit MCU includes an edge detection block 7, a post-motor pulse counter (motor start counter) 8, a sunroof lid position counter 9, an output shaft rotation speed calculation block (rotation speed calculation block) 10, and a rotation speed memory block 1.
1, a threshold data ROM 12, an input block 13, a control block 14 and an output block 15 are built in.

【0016】開スイッチ2は、サンルーフリッドLを開
ける(スライド開)ときにオン操作され、オン操作によ
って開指令信号を発生する。また、閉スイッチ3は、サ
ンルーフリッドLを閉じる(スライド閉)ときにオン操
作され、これによって閉指令信号を発生する。これらス
イッチ2,3の操作によって発生した開指令信号あるい
は閉指令信号は、制御手段MCUの入力ブロック13に
供給される。
The open switch 2 is turned on when the sunroof lid L is opened (slide open), and an open command signal is generated by the on operation. Further, the closing switch 3 is turned on when the sunroof lid L is closed (sliding closed), thereby generating a closing command signal. The open command signal or the close command signal generated by operating these switches 2 and 3 is supplied to the input block 13 of the control means MCU.

【0017】モータ4は、アーマチュア軸4aを有し、
アーマチュア軸4aはウオームおよびウオームホイール
からなる減速機構を介して出力軸4bに連結され、出力
軸4bは、図示しないリッド駆動機構を介してサンルー
フリッドLに連結されており、モータ4への駆動電流の
供給に基くアーマチュア軸4aおよび出力軸4bの正逆
回転によって、サンルーフリッドLが開閉作動するよう
になっている。
The motor 4 has an armature shaft 4a,
The armature shaft 4a is connected to the output shaft 4b via a speed reducing mechanism including a worm and a worm wheel, and the output shaft 4b is connected to the sunroof lid L via a lid driving mechanism (not shown). The sunroof lid L is opened and closed by the forward and reverse rotations of the armature shaft 4a and the output shaft 4b based on the supply of.

【0018】モータ回転検出手段5は、上記したように
2つのホールICからなり、これらホールIC1および
IC2は、アーマチュア軸4aに取付けられたマグネッ
トの周辺部に、非接触にして90度相対して配置されて
いる。
The motor rotation detecting means 5 is composed of two Hall ICs as described above, and these Hall ICs 1 and IC2 are brought into non-contact with each other by 90 degrees relative to the peripheral portion of the magnet attached to the armature shaft 4a. It is arranged.

【0019】モータ回転検出手段5のホールIC1およ
びIC2は、モータ4のアーマチュア軸4aの回転に応
じて、図3に示すように、互いに90度の位相差を持つ
パルス信号をそれぞれ発生する。これらホールIC1お
よびホールIC2が発生したパルス信号は、それぞれ制
御手段MCUのエッジ検出ブロック7に与えられる。
The Hall IC1 and IC2 of the motor rotation detecting means 5 respectively generate pulse signals having a phase difference of 90 degrees from each other, as shown in FIG. 3, according to the rotation of the armature shaft 4a of the motor 4. The pulse signals generated by the Hall IC1 and the Hall IC2 are respectively applied to the edge detection block 7 of the control means MCU.

【0020】エッジ検出ブロック7は、モータ回転検出
手段5のホールIC1およびホールIC2からの入力信
号より、その立ち上り/立ち下がりエッジを検出し、出
力軸回転数算出ブロック10に対して、モータ4の出力
軸4bの回転数の計算開始を促す。また、モータ起動後
カウンタ8およびサンルーフリッド位置カウンタ9のカ
ウント要因となる。
The edge detection block 7 detects the rising / falling edges of the input signals from the Hall IC 1 and the Hall IC 2 of the motor rotation detection means 5, and outputs the output shaft rotation speed calculation block 10 to the output shaft rotation speed calculation block 10 of the motor 4. Prompt to start calculation of the rotation speed of the output shaft 4b. Further, it becomes a counting factor of the counter 8 after starting the motor and the sunroof lid position counter 9.

【0021】モータ起動後カウンタ8は、エッジ検出ブ
ロック7からのホールIC信号に基き、モータ4が停止
した状態から回転を開始したのちに検出された立ち上り
/立ち下がり信号をアーマチュア軸4aの1/4回転毎
にカウントする。当該モータ起動後カウンタ8によりカ
ウントされたカウントデータは、しきい値データROM
12においてしきい値データの読み出しに際して参照さ
れる。
After the motor is started, the counter 8 outputs a rising / falling signal detected after the motor 4 starts rotating from a stopped state based on the Hall IC signal from the edge detection block 7 to 1 / m of the armature shaft 4a. Count every 4 rotations. The count data counted by the counter 8 after the motor is started is stored in the threshold data ROM.
Reference numeral 12 is referred to when reading the threshold data.

【0022】サンルーフリッド位置カウンタ9は、エッ
ジ検出ブロック7からのホールIC信号のパルス信号の
立ち上り/立ち下がり信号を同様にカウントし、アーマ
チュア軸4aがサンルーフリッドLの開方向に回転する
とカウント値をインクリメントし、閉方向に回転すると
カウント値をデクリメントする。なお、サンルーフリッ
ド位置カウンタ9のカウント値は、サンルーフリッドL
が前閉位置にあるときに「0」値をとるように設定して
あり、当該カウント値はサンルーフリッドLの現在位置
を示すことになる。また、サンルーフリッド位置カウン
タ9のカウントデータは、制御ブロック14に与えられ
る。
The sunroof lid position counter 9 similarly counts the rising / falling signals of the pulse signal of the Hall IC signal from the edge detection block 7, and when the armature shaft 4a rotates in the opening direction of the sunroof lid L, the count value is obtained. When incremented and rotated in the closing direction, the count value is decremented. The count value of the sunroof lid position counter 9 is the sunroof lid L.
Is set to take a "0" value when the vehicle is in the front closed position, and the count value indicates the current position of the sunroof lid L. Further, the count data of the sunroof lid position counter 9 is given to the control block 14.

【0023】出力軸回転数算出ブロック10は、エッジ
検出ブロック7からのホールIC信号の立ち上り/立ち
下がり信号に基き、エッジが検出される度毎にエッジ間
の時間を測定してアーマチュア軸4aの回転数を算出し
(すなわち、この実施例においては、モータ回転検出手
段5からの発生する2つのパルス信号エッジ間の時間を
4個でアーマチュア軸1回転の時間に相当することにな
る)、アーマチュア軸4aと出力軸4bとの減速比を乗
じて単位時間当たりの出力軸4bの回転数(回転速度)
を算出する。当該出力軸回転数算出ブロック10による
算出結果は、回転数メモリブロック11に入力される。
The output shaft rotation speed calculation block 10 measures the time between edges each time an edge is detected, based on the rising / falling signal of the Hall IC signal from the edge detection block 7, and measures the time between the edges. The number of revolutions is calculated (that is, in this embodiment, the time between two pulse signal edges generated from the motor revolution detecting means 5 is four, which corresponds to one revolution of the armature shaft). The rotation speed (rotation speed) of the output shaft 4b per unit time multiplied by the reduction ratio between the shaft 4a and the output shaft 4b.
To calculate. The calculation result of the output shaft rotation speed calculation block 10 is input to the rotation speed memory block 11.

【0024】回転数メモリブロック11は、出力軸回転
数算出ブロック10によって算出された出力軸回転数
(回転速度)データを予め定められた数(この実施例に
おいては33個)だけ保存し、挟み込み検出において監
視対象となるモータ回転の減速幅として、比較期間の異
なる複数の回転数差データ、この実施例においては、4
パルスカウント間、8パルスカウント間、16パルスカ
ウント間および32パルスカウント間の4種の回転数差
データを算出し、制御ブロック14に出力する。なお、
これらの数値は、8ビット値であって0から255まで
の数値を取り得る。また、当該メモリブロック11に保
存された33個の出力軸回転数データは、ホールIC信
号の立ち上り/立ち下がりエッジが検出されて新たな回
転数が算出される度毎に最新のデータに順次更新され、
その都度比較期間(パルス間隔)が異なる前記4種の回
転数差データが出力されることになる。
The rotation speed memory block 11 stores the output shaft rotation speed (rotation speed) data calculated by the output shaft rotation speed calculation block 10 by a predetermined number (33 in this embodiment), and inserts it. As the deceleration width of the motor rotation to be monitored in the detection, a plurality of rotation speed difference data having different comparison periods, in this embodiment, 4
Four types of rotation speed difference data between pulse counts, 8 pulse counts, 16 pulse counts and 32 pulse counts are calculated and output to the control block 14. In addition,
These numbers are 8-bit values and can range from 0 to 255. Further, the 33 pieces of output shaft speed data stored in the memory block 11 are sequentially updated to the latest data each time a rising / falling edge of the Hall IC signal is detected and a new speed is calculated. Is
The four types of rotation speed difference data having different comparison periods (pulse intervals) are output each time.

【0025】しきい値データROM12には、図4に示
すようなしきい値テーブルが格納されている。すなわ
ち、回転数メモリブロック11において算出された4種
類の回転数差データ(4、8、16および32パルスカ
ウント差)に対応する4個のしきい値がモータ起動後カ
ウンタ8のカウント値、すなわちモータ4が起動してか
らのサンルーフリッドLの移動距離に応じて多数組(こ
の実施例では7組)保存されている。なお、この図から
明らかなように、各しきい値はモータ起動後カウンタ8
のカウント値の増加に伴って段階的に減少するように設
定されていると共に、モータ4が起動直後であるカウン
ト値が0〜10の範囲では、しきい値がいずれも回転数
差データを超えることがない「255」に設定されてお
り、この範囲においてはモータ4の回転数がいかに変動
したとしても、挟み込み発生と判定されてサンルーフリ
ッドLが反転作動することはなく、マスク領域となって
いる。
The threshold data ROM 12 stores a threshold table as shown in FIG. That is, the four threshold values corresponding to the four types of rotation speed difference data (4, 8, 16 and 32 pulse count difference) calculated in the rotation speed memory block 11 are the count values of the motor-started counter 8, that is, A large number of sets (7 sets in this embodiment) are stored according to the moving distance of the sunroof lid L after the motor 4 is started. As is clear from this figure, each threshold value is the counter 8 after the motor is started.
Is set so as to decrease stepwise as the count value increases, and when the count value is in the range of 0 to 10 immediately after the motor 4 is started, all the threshold values exceed the rotational speed difference data. It is set to "255", which is not possible, and no matter how the rotation speed of the motor 4 fluctuates in this range, the sunroof lid L is not judged to be caught and the sunroof lid L does not reversely operate, and it becomes a mask area. There is.

【0026】入力ブロック13は、開スイッチ2からの
開指令信号、あるいは閉スイッチ3からの閉指令信号の
入力に基いて、これら入力信号にフィルタ処理、禁止処
理などを行った上で制御ブロック14に送る。
The input block 13 performs a filtering process and a prohibiting process on these input signals based on the input of the open command signal from the open switch 2 or the close command signal from the close switch 3, and then the control block 14 Send to.

【0027】制御ブロック14は、システム全体の動作
をコントロールする。すなわち、入力ブロック13を介
して開スイッチ2から入力された開指令信号に基いて、
出力ブロック15により開駆動信号を出力回路6に供給
する。また、入力ブロック13を介して閉スイッチ3か
ら閉指令信号が入力されると、出力ブロック15を介し
て閉駆動信号を出力回路6に供給し、サンルーフリッド
Lを閉方向に作動させる。そして、挟み込み検出を開始
し、モータ起動後パルスカウンタ8のカウント値を参照
して、モータ起動後のサンルーフリッドLの移動距離に
応じた一組のしきい値データをしきい値データROM1
2のROMテーブル(図4)から読み出し、回転数メモ
リブロック11から入力された4種の回転数差データを
対応するしきい値とそれぞれ比較し、回転数差データの
すべてが対応するしきい値を超えていなければそのまま
閉駆動信号の出力を継続し、4種の回転数差データのい
ずれか一つでも対応するしきい値を超えたときには、挟
み込み発生と判定して、閉駆動信号の出力を停止すると
共に、出力ブロック15から開駆動信号を出力回路6に
供給して、サンルーフリッドLを反転させる制御を行
う。
The control block 14 controls the operation of the entire system. That is, based on the open command signal input from the open switch 2 via the input block 13,
The output drive signal is supplied to the output circuit 6 by the output block 15. When a closing command signal is input from the closing switch 3 via the input block 13, a closing drive signal is supplied to the output circuit 6 via the output block 15 to operate the sunroof lid L in the closing direction. Then, the trapping detection is started, and a set of threshold data corresponding to the moving distance of the sunroof lid L after the motor is started is referred to by referring to the count value of the pulse counter 8 after the motor is started.
No. 2 ROM table (FIG. 4) and four types of rotation speed difference data input from the rotation speed memory block 11 are compared with corresponding threshold values, and all the rotation speed difference data have corresponding threshold values. If it does not exceed the threshold value, the output of the closing drive signal is continued, and if any one of the four types of rotation speed difference data exceeds the corresponding threshold value, it is determined that entrapment has occurred and the closing drive signal is output. Is stopped, and an opening drive signal is supplied from the output block 15 to the output circuit 6 to control the sunroof lid L to be inverted.

【0028】出力ブロック15は、制御ブロック14か
らその出力信号を受けて、モータ4を正逆転させるため
の開駆動信号あるいは閉駆動信号を出力回路6に供給す
る。
The output block 15 receives the output signal from the control block 14 and supplies an open drive signal or a close drive signal for rotating the motor 4 forward and backward to the output circuit 6.

【0029】出力回路6は、リレーまたはトランジスタ
を含んでおり、出力ブロック15から与えられた開駆動
信号あるいは閉駆動信号に応じて、モータ4を正逆転さ
せてルーフリッドLを開閉作動させるための駆動電流を
モータ4に供給あるいは停止する。
The output circuit 6 includes a relay or a transistor, and operates the motor 4 in the forward and reverse directions to open and close the roof lid L in response to the open drive signal or the close drive signal provided from the output block 15. The drive current is supplied to the motor 4 or stopped.

【0030】このような構造を有するサンルーフ制御装
置1においては、図5に示す通常動作ルーチン(メイン
ルーチン)、および図6に示す回転変動判定(挟み込み
判定)サブルーチンに基いてサンルーフリッドLの動き
が制御される。
In the sunroof control device 1 having such a structure, the movement of the sunroof lid L is based on the normal operation routine (main routine) shown in FIG. 5 and the rotation fluctuation determination (pinching determination) subroutine shown in FIG. Controlled.

【0031】図5に示すメインルーチンにおいて、ステ
ップ101〜107については、このような制御手段M
CUを備えたアクチュエータACをスイッチ類やサンル
ーフ装置本体と共に車両に搭載したときに行う初期設定
に係わるものであって、サンルーフリッドLが全閉位置
にあるときのサンルーフリッド位置カウンタ8のカウン
ト値を「0」に正確に調整するためのものである。
With respect to steps 101 to 107 in the main routine shown in FIG.
The present invention relates to initial setting performed when an actuator AC equipped with a CU is mounted on a vehicle together with switches and a sunroof device main body, and shows a count value of a sunroof lid position counter 8 when a sunroof lid L is at a fully closed position. This is for accurately adjusting to "0".

【0032】すなわち、これらサンルーフシステムを車
両に搭載した状態で、キースイッチを入れると、まずス
テップ101において初期動作フラグFG_INITがセット
され、次にステップ102において挟み込みが発生した
ことを示すフラグFG_SAFEが立っているかどうかが判定
される。この時点では、サンルーフリッドLは実質的に
まだ作動しておらず、上記フラグはセットされていない
(NO)ので、ステップ102から103および104
に移行し、スライド閉スイッチ3からの入力の有無が判
定される。
That is, when the key switch is turned on while the sunroof system is mounted on a vehicle, first, at step 101, an initial operation flag FG_INIT is set, and then at step 102, a flag FG_SAFE indicating that entrapment has occurred is set. Is determined. At this point, the sunroof lid L is not substantially in operation yet, and the flag is not set (NO), so steps 102 to 103 and 104 are performed.
Then, the presence or absence of input from the slide close switch 3 is determined.

【0033】ここで、閉スイッチ3をオン操作すると
(YES)、制御はステップ104に進み、ここで初期
動作フラグFG_INITの状態が判定される。初期動作フラ
グFG_INITは、ステップ101でセットされている(Y
ES)ので、ステップ105に進み、該ステップ105
においてリッド位置カウンタGPC(サンルーフリッド
位置カウンタ9)をクリア(GPC←0)した後、ステ
ップ106においてモータロックかどうか、すなわちサ
ンルーフリッドLが全閉位置に到達したかどうかが判定
される。
If the closing switch 3 is turned on (YES), the control proceeds to step 104, where the state of the initial operation flag FG_INIT is determined. The initial operation flag FG_INIT is set in step 101 (Y
ES), the process proceeds to step 105
After the lid position counter GPC (sunroof lid position counter 9) is cleared (GPC ← 0) in step 1, it is determined in step 106 whether the motor is locked, that is, whether the sunroof lid L has reached the fully closed position.

【0034】モータロックされていなければ(NO)、
ステップ108に移行してモータ4にスライド閉方向の
駆動電流が供給され、リッドLが全閉位置に向けて移動
し、全閉位置に到達して、ステップ106においてモー
タロックが検出されるまで、これらのステップが繰り返
され、ステップ106においてモータロックが検出され
ると、ステップ107において初期動作フラグFG_INIT
がリセットされる。そして、この間ステップ105を通
る度にリッド位置カウンタGPCがリセットされるの
で、サンルーフリッドLが全閉位置にあるときのリッド
位置カウンタGPCのカウント値が「0」に調整され、
初期設定が終了する。初期設定終了後は、初期動作フラ
グFG_INITがセットされることはなく、ステップ105
〜107が実行されることはない。
If the motor is not locked (NO),
The process proceeds to step 108, the drive current in the slide closing direction is supplied to the motor 4, the lid L moves toward the fully closed position, reaches the fully closed position, and the motor lock is detected in step 106. When these steps are repeated and the motor lock is detected in step 106, the initial operation flag FG_INIT is detected in step 107.
Is reset. Then, the lid position counter GPC is reset each time the step 105 is passed during this period, so the count value of the lid position counter GPC when the sunroof lid L is at the fully closed position is adjusted to "0",
Initialization is complete. After the initial setting is completed, the initial operation flag FG_INIT is not set, and step 105
~ 107 are never executed.

【0035】次に、当該サンルーフ制御装置1の通常運
転時における制御について説明する。上記した初期設定
が終了すると、制御はステップ102に戻る。
Next, the control of the sunroof control device 1 during normal operation will be described. When the above initialization is completed, control returns to step 102.

【0036】ステップ102において挟み込みが発生し
たことを示すフラグFG_SAFEの状態が判定されるが、こ
の時点では、サンルーフリッドLは全閉位置にあり、実
質的にまだ作動していないため、上記フラグはセットさ
れておらず(NO)、ステップ102から103および
109に移行し、スライド閉スイッチ3あるいはスライ
ド開スイッチ2からの入力の有無が判定される。開スイ
ッチ2、閉スイッチ3がいずれも操作されていない場合
には、ステップ103(NO)およびステップ109
(NO)からステップ110に移行し、ステップ110
において、モータ起動直後からパルス割り込みの回数を
計数するモータ起動カウンタMPC(モータ起動後パル
スカウンタ8)をクリアした後、ステップ111におい
てモータ出力(この場合には最初から出力されていな
い)を停止し、さらにステップ112に移行する。
At step 102, the state of the flag FG_SAFE indicating that the entrapment has occurred is determined. At this point, however, the sunroof lid L is in the fully closed position and is substantially inactive, so the above flag is set. If it is not set (NO), the process proceeds from steps 102 to 103 and 109, and it is determined whether there is an input from the slide close switch 3 or the slide open switch 2. When neither the open switch 2 nor the close switch 3 has been operated, step 103 (NO) and step 109
From (NO) to step 110, step 110
In step 111, the motor output counter MPC (pulse counter 8 after motor startup) that counts the number of pulse interrupts immediately after the motor startup is cleared, and then the motor output (in this case, it is not output from the beginning) is stopped in step 111. Then, the process proceeds to step 112.

【0037】ステップ112においては、ホールIC
1,ホールIC2にエッジ入力の有無、すなわちモータ
が回転しているかどうかが判定されるが、この場合には
まだ回転しておらず、エッジ入力はない(NO)ので、
ステップ113に移行してエッジ入力フラグFG_EDGEを
リセットし、ステップ102に戻る。そして、スライド
開スイッチ2がオン操作されるまで、上記ステップ10
2〜103、109〜113のループが繰り返し実行さ
れる。
In step 112, the Hall IC
1, it is determined whether or not the Hall IC 2 has an edge input, that is, whether or not the motor is rotating. In this case, since the motor is not rotating and there is no edge input (NO),
The process proceeds to step 113, the edge input flag FG_EDGE is reset, and the process returns to step 102. Then, until the slide opening switch 2 is turned on, the above step 10 is performed.
The loop of 2 to 103 and 109 to 113 is repeatedly executed.

【0038】スライド開スイッチ2がオン操作される
と、ステップ109においてスイッチ入力有り(YE
S)と判定されて、ステップ114に移行して出力回路
6に対して開駆動信号が出力され、出力回路6からの駆
動電流によってモータ4がサンルーフリッドLのスライ
ド開方向に作動する。そして、モータ4の回転に基いて
モータ回転検出手段5のホールIC1,ホールIC2に
エッジ入力が生じると、ステップ112(YES)から
ステップ115に移行してエッジ入力フラグFG_EDGEを
セットした後、ステップ116においてモータ起動カウ
ンタMPCをインクリメントし、ステップ117におい
てホールIC1およびIC2から出力される両パルス信
号のエッジ方向(一方のパルス信号に立ち上りエッジが
検出されたときの他方のパルス信号がHかLか)に基い
てサンルーフリッドLの移動方向が判定される。この場
合、サンルーフリッドLはスライド開方向に移動してい
る(NO)ので、ステップ118に移行してリッド位置
カウンタGPCをインクリメントする。こうして、スラ
イド開スイッチ2がオン操作されている間、ステップ1
02〜103,114,112,115〜118のルー
プが繰り返され、サンルーフリッドLが全開位置に向け
て移動を続ける。
When the slide opening switch 2 is turned on, a switch input is made in step 109 (YE
S), the process proceeds to step 114, the open drive signal is output to the output circuit 6, and the drive current from the output circuit 6 causes the motor 4 to operate in the sliding open direction of the sunroof lid L. When an edge input occurs in the Hall IC1 and the Hall IC2 of the motor rotation detecting means 5 based on the rotation of the motor 4, the process proceeds from step 112 (YES) to step 115 to set the edge input flag FG_EDGE, and then step 116. In step 117, the motor start counter MPC is incremented, and the edge directions of both pulse signals output from the Hall IC1 and IC2 in step 117 (whether the other pulse signal is H or L when a rising edge is detected in one pulse signal). The moving direction of the sunroof lid L is determined based on. In this case, since the sunroof lid L is moving in the slide opening direction (NO), the routine proceeds to step 118, where the lid position counter GPC is incremented. Thus, while the slide opening switch 2 is being turned on, step 1
The loop of 02 to 103, 114, 112, 115 to 118 is repeated, and the sunroof lid L continues to move toward the fully open position.

【0039】スライド開スイッチ2から指を離せば(オ
フ操作)、ステップ109(NO)からステップ110
に移行して起動後パルスカウンタMPCをクリアした
後、ステップ111において、開駆動信号が中止され、
モータ4への電流供給を停止するので、サンルーフリッ
ドLを所望の位置で停止させることができる。そして、
ホールIC1,2からのパルス信号のエッジ入力がなく
なれば、ステップ112(NO)からステップ113に
移行し、エッジ入力フラグFG_EDGEをリセットしてステ
ップ102に戻る。
When the finger is released from the slide opening switch 2 (OFF operation), step 109 (NO) to step 110.
After clearing the pulse counter MPC after startup by activating, the open drive signal is stopped in step 111,
Since the current supply to the motor 4 is stopped, the sunroof lid L can be stopped at a desired position. And
When the edge input of the pulse signal from the Hall ICs 1 and 2 is eliminated, the process proceeds from step 112 (NO) to step 113, the edge input flag FG_EDGE is reset, and the process returns to step 102.

【0040】そして、サンルーフリッドLが開いた状態
において、スライド閉スイッチ3を押す(オン操作)
と、ステップ102(NO)からステップ103を経
て、ステップ104に移行して初期動作フラグFG_INIT
の状態が判定される。初期動作フラグFG_INITは、初期
設定終了時にステップ107においてリセットされてい
る(NO)ので、ステップ104(NO)からステップ
200に進み、回転変動判定サブルーチンに移行する。
Then, with the sunroof lid L open, the slide close switch 3 is pushed (ON operation).
Then, the process proceeds from step 102 (NO) to step 103 and then to step 104, where the initial operation flag FG_INIT
Is determined. Since the initial operation flag FG_INIT has been reset in step 107 (NO) at the end of the initial setting, the process proceeds from step 104 (NO) to step 200 and shifts to the rotation fluctuation determination subroutine.

【0041】図6に示す回転変動判定サブルーチンにお
いては、まずステップ201において、モータ4が作動
中であるか否かを判定しており、この場合にはまだモー
タ4は起動していないので(NO)、ステップ201か
らステップ202に移行し、ステップ202において回
転数メモリブロック11の内容をクリアしたのち、ステ
ップ203に移行し、挟み込み発生なしと判定して反転
動作フラグFG_SAFEをリセットして、メインルーチンに
戻る。
In the rotation fluctuation determination subroutine shown in FIG. 6, first, at step 201, it is determined whether or not the motor 4 is operating. In this case, the motor 4 has not been started yet (NO). ), The process proceeds from step 201 to step 202, and after clearing the contents of the rotation speed memory block 11 in step 202, the process proceeds to step 203, resets the inversion operation flag FG_SAFE by determining that no trapping has occurred, and executes the main routine. Return to.

【0042】回転変動判定サブルーチン200から戻っ
たステップ119においては、反転動作フラグFG_SAFE
の状態が判定される。ここでは、回転変動判定サブルー
チンのステップ203においてリセットされている(N
O)ので、ステップ108に移行し、出力回路6に対し
て閉駆動信号が出力され、出力回路6からの駆動電流に
よってモータ4がサンルーフリッドLのスライド閉方向
に作動する。
In step 119 returned from the rotation fluctuation determination subroutine 200, the reversing operation flag FG_SAFE
Is determined. Here, it is reset in step 203 of the rotation fluctuation determination subroutine (N
O), the routine proceeds to step 108, where a closing drive signal is output to the output circuit 6 and the drive current from the output circuit 6 operates the motor 4 in the sliding closing direction of the sunroof lid L.

【0043】モータ4が作動を開始しても、モータ回転
検出手段5を構成するホールIC1,ホールIC2から
エッジ入力が生じるまでは、ステップ112からステッ
プ113を経てステップ102に戻り、ステップ102
〜104を経て、回転変動判定サブルーチン200が再
度実行される。
Even when the motor 4 starts operating, the process returns from step 112 to step 113 and back to step 102 until an edge input is generated from the hall IC1 and hall IC2 forming the motor rotation detection means 5, and then step 102.
The rotation fluctuation determination subroutine 200 is executed again after the steps from to 104.

【0044】回転変動判定サブルーチンにおいては、ス
テップ201(YES)から、ステップ204に移行す
るが、モータ回転検出手段5からエッジ入力が生じるま
では、ステップ204(NO)からステップ203に移
行し、反転動作フラグFG_SAFEをリセットしたままにし
て、メインルーチンに戻り、閉駆動信号の出力が維持さ
れる。そして、モータ4の回転に基いてモータ回転検出
手段5のホールIC1,ホールIC2にエッジ入力が生
じると、ステップ112からステップ115に移行して
エッジ入力フラグFG_EDGEをセットすると共に、ステッ
プ116においてモータ起動カウンタMPCをインクリ
メントし、ステップ117においてサンルーフリッドL
の移動方向が判定される。このとき、サンルーフリッド
Lはスライド閉方向に移動している(YES)ので、ス
テップ120に移行してリッド位置カウンタGPCをデ
クリメントしたのち、ステップ102に戻る。そして、
ステップ102〜104を経て、回転変動判定サブルー
チン200が実行される。
In the rotation fluctuation determination subroutine, the routine proceeds from step 201 (YES) to step 204, but from step 204 (NO) to step 203 until the edge input from the motor rotation detecting means 5 occurs, and the rotation is reversed. The operation flag FG_SAFE is kept reset and the process returns to the main routine to maintain the output of the closing drive signal. When an edge input is generated in the Hall IC1 and Hall IC2 of the motor rotation detecting means 5 based on the rotation of the motor 4, the process proceeds from step 112 to step 115 to set the edge input flag FG_EDGE, and at step 116 the motor is started. The counter MPC is incremented, and in step 117, the sunroof lid L
Is determined. At this time, since the sunroof lid L is moving in the slide closing direction (YES), the process moves to step 120 to decrement the lid position counter GPC and then returns to step 102. And
The rotation variation determination subroutine 200 is executed through steps 102 to 104.

【0045】回転変動判定サブルーチンにおいては、ス
テップ201(YES)から、ステップ204に移行
し、ステップ204においてエッジ入力フラグFG_EDGE
がセットされている(YES)、すなわちパルス割り込
みがあったと判定されてステップ205に進む。
In the rotation fluctuation determination subroutine, the routine proceeds from step 201 (YES) to step 204, and at step 204 the edge input flag FG_EDGE
Is set (YES), that is, it is determined that a pulse interruption has occurred, and the routine proceeds to step 205.

【0046】ステップ205においてエッジ入力フラグ
FG_EDGEをリセットしたのち、ステップ206におい
て、出力軸回転数算出ブロック10に内蔵され、モータ
回転検出手段5のホールIC1,ホールIC2から出力
された2つのパルス信号のエッジ間の時間を測定するタ
イマーPLS_TMのカウント値をPT4としてロードし、ス
テップ207において前記パルス幅タイマーPLS_TMをク
リアし、ステップ208に移行する。
Edge input flag in step 205
After resetting FG_EDGE, in step 206, the timer PLS_TM which is built in the output shaft rotation speed calculation block 10 and measures the time between the edges of the two pulse signals output from the Hall IC1 and Hall IC2 of the motor rotation detection means 5 Is loaded as PT4, the pulse width timer PLS_TM is cleared in step 207, and the process proceeds to step 208.

【0047】ステップ208においては、エッジ間時間
値PT4に、前回、前々回および3回前のエッジ検出時
にロードした時間値PT3、PT2およびPT1を加算
することによってアーマチュア軸4aの1回転に要する
時間ATを算出する。そして、ステップ209におい
て、ステップ208で求めた1回転の時間ATに、アー
マチュア軸4aと出力軸4bの減速比RATを乗じた積
で60を除すことにより、単位時間(1分)当たりの出
力軸4bの回転数Rin(n)を算出する。
At step 208, the time AT required for one rotation of the armature shaft 4a is obtained by adding the time values PT3, PT2, and PT1 loaded at the time of the edge detection at the previous time, two times before and three times before to the time value PT4 between edges. To calculate. Then, in step 209, the time per revolution (AT) obtained in step 208 is multiplied by the reduction ratio RAT of the armature shaft 4a and the output shaft 4b, and the product is divided by 60 to obtain the output per unit time (1 minute). The rotation speed Rin (n) of the shaft 4b is calculated.

【0048】次いで、制御はステップ210に移行し回
転数のシフト操作が行われる。すなわち、回転数メモリ
ブロック11における回転数RAM領域内に前回までに
保存された回転数データREV(0)〜REV(M)を
それぞれ1個づつシフトし、ステップ209で得られた
最新の回転数Rin(n)をRAM領域の最新データ位置
RAM(0)に保存する。なお、この実施例ではM=3
2である。制御はステップ211に進む。
Next, the control shifts to step 210, and the rotation speed shift operation is performed. That is, the rotation speed data REV (0) to REV (M) stored up to the previous time are respectively shifted by one in the rotation speed RAM area in the rotation speed memory block 11, and the latest rotation speed obtained in step 209 is obtained. Save Rin (n) in the latest data location RAM (0) in the RAM area. In this embodiment, M = 3
It is 2. Control proceeds to step 211.

【0049】ステップ211において、モータ起動カウ
ンタMPCのそのときのカウント値を参照して、しきい
値データROM12内のROMテーブル(図4)から4
パルスカウント差用のしきい値BRD(4)が読み込ま
れる。例えば、パルスカウンタMPCのカウント値が0
〜10の場合には「255」、カウント値が11〜20
の場合には「15」、カウント値が21以上の場合には
「5」がそれぞれ読み込まれる。
In step 211, the count value of the motor starting counter MPC at that time is referred to and read from the ROM table (FIG. 4) in the threshold value data ROM 12 to 4.
The threshold value BRD (4) for the pulse count difference is read. For example, the count value of the pulse counter MPC is 0
In the case of -10, "255", the count value is 11-20
In this case, "15" is read, and when the count value is 21 or more, "5" is read.

【0050】そして、ステップ212において、比較期
間が4パルスカウントのときの回転数差REV(4)−
REV(0)が計算され、これと図4のROMテーブル
から読み込まれたしきい値BRD(4)とが比較され
る。この4パルスカウント回転数差REV(4)−RE
V(0)がしきい値BRD(4)を超えていなければ
(NO)、ステップ213に移行し、同様にそのときの
モータ起動カウンタMPCのカウント値を参照して、し
きい値データROM12内のROMテーブルから8パル
スカウント差用のしきい値BRD(8)が読み込まれ
る。例えば、パルスカウンタMPCのカウント値が0〜
10の場合には「255」、カウント値が11〜20の
場合には「25」、カウント値が21〜80の場合には
「15」、カウント値が81以上の場合には「10」が
それぞれ読み込まれ、ステップ214に移行する。
Then, in step 212, the rotational speed difference REV (4) − when the comparison period is 4 pulse counts
REV (0) is calculated, and this is compared with the threshold value BRD (4) read from the ROM table of FIG. This 4-pulse count rotation speed difference REV (4) -RE
If V (0) does not exceed the threshold value BRD (4) (NO), the routine proceeds to step 213, and similarly, the count value of the motor start counter MPC at that time is referred to, and the threshold data ROM 12 is stored. The threshold value BRD (8) for the 8-pulse count difference is read from the ROM table. For example, the count value of the pulse counter MPC is 0 to
When the count value is 10, "255", when the count value is 11 to 20, "25", when the count value is 21 to 80, "15", and when the count value is 81 or more, "10" Each is read, and the process proceeds to step 214.

【0051】ステップ214において、比較期間が8パ
ルスカウントのときの回転数差REV(8)−REV
(0)が計算され、これとROMテーブルから読み込ま
れたしきい値BRD(8)とが比較される。この8パル
スカウント回転数差REV(8)−REV(0)がしき
い値BRD(8)を超えていなければ(NO)、図示し
ないステップ215に移行し、そのときのモータ起動カ
ウンタMPCのカウント値に基いて、しきい値データR
OM12内のROMテーブルから16パルスカウント差
用のしきい値BRD(16)が読み込まれ、図示しない
ステップ216において、比較期間が16パルスカウン
トのときの回転数差REV(16)−REV(0)が計
算され、これとROMテーブルから読み込まれたしきい
値BRD(16)とが同様に比較される。
In step 214, the rotational speed difference REV (8) -REV when the comparison period is 8 pulse count
(0) is calculated, and this is compared with the threshold value BRD (8) read from the ROM table. If this 8-pulse count rotational speed difference REV (8) -REV (0) does not exceed the threshold value BRD (8) (NO), the routine proceeds to step 215 not shown, and the count of the motor start counter MPC at that time. Threshold data R based on the value
The threshold value BRD (16) for 16-pulse count difference is read from the ROM table in the OM 12, and in step 216 (not shown), the rotational speed difference REV (16) -REV (0) when the comparison period is 16-pulse count. Is calculated, and this is similarly compared with the threshold value BRD (16) read from the ROM table.

【0052】この16パルスカウント回転数差REV
(16)−REV(0)がしきい値BRD(16)を超
えていなければ(NO)、ステップ217に移行し、そ
のときのモータ起動カウンタMPCのカウント値に応じ
て、ROMテーブルから32(=M)パルスカウント差
用のしきい値BRD(32)が読み込まれる。例えば、
パルスカウンタMPCのカウント値が0〜10の場合に
は「255」、カウント値が11〜20の場合には「4
0」、カウント値が21〜120の場合には「25」、
カウント値が121〜150の場合には「20」、カウ
ント値が151以上の場合には「17」がそれぞれ読み
込まれ、ステップ218に移行する。
This 16-pulse count rotation speed difference REV
If (16) -REV (0) does not exceed the threshold value BRD (16) (NO), the process proceeds to step 217, and 32 (from the ROM table is read according to the count value of the motor start counter MPC at that time. = M) The threshold value BRD (32) for the pulse count difference is read. For example,
When the count value of the pulse counter MPC is 0 to 10, "255", and when the count value is 11 to 20, "4"
0 "," 25 "when the count value is 21 to 120,
When the count value is 121 to 150, “20” is read, and when the count value is 151 or more, “17” is read, and the process proceeds to step 218.

【0053】ステップ218における判定において、比
較期間が32パルスカウントのときの回転数差REV
(32)−REV(0)が計算され、これとROMテー
ブルから読み込まれたしきい値BRD(32)とが同様
に比較され、回転数差REV(32)−REV(0)が
しきい値BRD(32)を超えていなければ(NO)、
ステップ207に移行して、挟み込みの発生がないもの
として反転動作フラグFG_SAFEをリセットして、メイン
ルーチンに戻る。
In the determination in step 218, the rotation speed difference REV when the comparison period is 32 pulse counts
(32) -REV (0) is calculated, and this is compared with the threshold value BRD (32) read from the ROM table in the same manner, and the rotational speed difference REV (32) -REV (0) is the threshold value. If it does not exceed BRD (32) (NO),
In step 207, the inversion operation flag FG_SAFE is reset assuming that no trapping has occurred, and the process returns to the main routine.

【0054】回転変動判定サブルーチン200から戻っ
たステップ119において、反転動作フラグFG_SAFEの
状態が判定され(NO)、ステップ108に移行し、出
力回路6に対する閉駆動信号出力が維持され、モータ4
はサンルーフリッドLのスライド閉方向の作動を継続す
る。
At step 119 returned from the rotation fluctuation determination subroutine 200, the state of the reversal operation flag FG_SAFE is determined (NO), the routine proceeds to step 108, where the closing drive signal output to the output circuit 6 is maintained, and the motor 4
Continues the operation of the sunroof lid L in the slide closing direction.

【0055】そして、ステップ112を経て(YES)
ステップ115に進み、該ステップ115においてエッ
ジ入力フラグFG_EDGEをセット状態を保持し、ステップ
116においてモータ起動カウンタMPCをインクリメ
ントしたのち、ステップ117(YES)からステップ
120に移行し、ステップ120においてリッド位置カ
ウンタGPCをデクリメントしたのち、ステップ102
に戻る。
Then, through step 112 (YES)
In step 115, the edge input flag FG_EDGE is held in the set state in step 115, the motor start counter MPC is incremented in step 116, the process proceeds from step 117 (YES) to step 120, and the lid position counter in step 120. After decrementing the GPC, step 102
Return to.

【0056】このようにして、スライド開スイッチ3の
オン操作が続けば、ステップ102〜104、回転変動
判定サブルーチン200、ステップ118,108、1
12、115〜117および120の実行が繰り返さ
れ、サンルーフリッドLの作動が何らかの障害によって
拘束されて、回転変動判定サブルーチンのステップ21
2、214、216(図示せず)、218のいずれかの
判定においてモータ4の回転速度が低下した(YES)
と判定されない限り、モータ4の閉駆動回転が継続し、
サンルーフリッドが全閉位置に向けて移動する。もちろ
ん、サンルーフリッドLが所望の位置となったときに、
閉スイッチ3の操作を中断(オフ)すれば、ステップ1
03(NO)、ステップ109(NO)からステップ1
10に移行して、起動後パルスカウンタMPCをクリア
した後、ステップ116において閉駆動信号出力を停止
するので、その位置でサンルーフリッドLが停止するこ
とになる。
In this way, if the ON operation of the slide opening switch 3 continues, steps 102 to 104, the rotation fluctuation determination subroutine 200, steps 118, 108, 1
12, 115 to 117 and 120 are repeated, the operation of the sunroof lid L is restricted by some obstacle, and step 21 of the rotation fluctuation determination subroutine is executed.
2, 214, 216 (not shown) or 218, the rotation speed of the motor 4 has decreased (YES).
Unless it is determined that the closed drive rotation of the motor 4 continues,
The sunroof lid moves toward the fully closed position. Of course, when the sunroof lid L is in the desired position,
If the operation of the close switch 3 is interrupted (turned off), step 1
03 (NO), step 109 (NO) to step 1
After shifting to 10 and clearing the pulse counter MPC after startup, the closing drive signal output is stopped in step 116, so the sunroof lid L stops at that position.

【0057】何らかの原因でサンルーフリッドLの動き
が拘束されて、モータ4の円滑な回転が妨げられ、回転
変動判定サブルーチン200のステップ212、21
4、216および218のいずれかにおいて、モータ4
の回転速度が低下した(YES)と判定されると、挟み
込み発生と判断してステップ219に移行し、反転動作
フラグFG_SAFEをセットして、メインルーチンに戻る。
For some reason, the movement of the sunroof lid L is restricted, and the smooth rotation of the motor 4 is hindered.
4, 216 and 218, the motor 4
If it is determined that the rotation speed of (1) has decreased (YES), it is determined that entrapment has occurred, the process proceeds to step 219, the reversal operation flag FG_SAFE is set, and the process returns to the main routine.

【0058】回転変動判定サブルーチン200から戻っ
た後のステップ119において、反転動作フラグFG_SAF
Eの状態が判定され、この場合にはサブルーチンのステ
ップ219において反転動作フラグFG_SAFEがセットさ
れているので(YES)、制御は110に移行する。そ
して、ステップ110においてモータ起動カウンタMP
Cをクリアし、ステップ111において閉駆動信号の出
力を停止し、モータ4への駆動電流の供給を中止する。
In step 119 after returning from the rotation fluctuation determination subroutine 200, the reversing operation flag FG_SAF
The state of E is determined, and in this case, the reversal operation flag FG_SAFE is set in step 219 of the subroutine (YES), so the control shifts to 110. Then, in step 110, the motor start counter MP
C is cleared, the output of the closing drive signal is stopped in step 111, and the supply of the drive current to the motor 4 is stopped.

【0059】モータ4の回転が停止し、モータ回転検出
手段5のホールICからエッジ入力がなくなると、ステ
ップ112(NO)からステップ113に移行してエッ
ジ入力フラグFG_EDGEをリセットしたのち、ステップ1
02に戻る。
When the rotation of the motor 4 is stopped and there is no edge input from the Hall IC of the motor rotation detecting means 5, the routine proceeds from step 112 (NO) to step 113 to reset the edge input flag FG_EDGE and then step 1
Return to 02.

【0060】ステップ102においては、反転動作フラ
グFG_SAFEがセットされている(YES)と判定され
て、ステップ121に移行し、ステップ121において
リッド位置カウンタGPCのそのときのカウント値が予
め定められたリッド位置データXSAFEと比較される。位
置データXSAFEは、全開位置に近い比較的大きな値に設
定してあるので、ステップ121(NO)からステップ
114に移行し、ステップ114において開駆動信号が
出力回路6に供給されるので、モータ4がサンルーフリ
ッドLの開方向に回転を始める。
At step 102, it is determined that the reversing operation flag FG_SAFE is set (YES), the routine proceeds to step 121, and at step 121, the count value of the lid position counter GPC at that time is predetermined lid. The position data is compared with XSAFE. Since the position data XSAFE is set to a relatively large value close to the fully open position, the routine proceeds from step 121 (NO) to step 114, and the open drive signal is supplied to the output circuit 6 in step 114, so the motor 4 Starts rotating in the opening direction of the sunroof lid L.

【0061】モータ4の回転に基いて、モータ回転検出
手段5からエッジ入力があると、ステップ112(YE
S)から、ステップ115、116、117(NO)を
経てステップ118に移行し、リッド位置カウンタGP
Cがインクリメントされたのち、ステップ102に戻
る。そして、リッド位置カウンタGPCのカウント値が
がリッド位置データXSAFEを超え、リッドLが十分に開
放されると、ステップ121(YES)からステップ1
22に移行し、ステップ122においてスライド開スイ
ッチ2あるいは閉スイッチ3の操作が確認される。
If there is an edge input from the motor rotation detecting means 5 based on the rotation of the motor 4, step 112 (YE
S) to step 118 via steps 115, 116, 117 (NO), and the lid position counter GP
After C is incremented, the process returns to step 102. Then, when the count value of the lid position counter GPC exceeds the lid position data XSAFE and the lid L is sufficiently opened, step 121 (YES) to step 1
22, the operation of the slide open switch 2 or the close switch 3 is confirmed in step 122.

【0062】閉スイッチ3がまだオン操作されたまま、
あるいはモータ4が開方向に作動している間に開スイッ
チ2が押しなおされた場合には、ステップ122(YE
S)からステップ123に移行して、出力回路6に対す
る開駆動信号の出力が停止されるので、サンルーフが十
分に開放された状態でリッドLが停止する。
With the closing switch 3 still turned on,
Alternatively, if the open switch 2 is pressed again while the motor 4 is operating in the opening direction, step 122 (YE
The process proceeds from step S) to step 123, and the output of the open drive signal to the output circuit 6 is stopped, so that the lid L stops with the sunroof fully opened.

【0063】そして、閉スイッチ3および開スイッチ2
から指を離すと、ステップ124において反転動作フラ
グFG_SAFEがリセットされ、挟み込み検出および反転作
動制御が終了してステップ102に戻り、閉スイッチ3
が再度操作された場合には、新たに挟み込み検出が開始
される。
Then, the close switch 3 and the open switch 2
When the finger is released from, the reversing operation flag FG_SAFE is reset in step 124, the trapping detection and the reversing operation control are completed, and the process returns to step 102 to close the switch 3.
When is operated again, the pinch detection is newly started.

【0064】すなわち、この実施例に係わるサンルーフ
制御装置1においては、挟み込み検出に際して監視する
モータの回転数(回転速度)の減少幅を4,8,16,
32パルスカウントの4種類の時間差で算出し、これら
の時間差をそれぞれに設定したしきい値に対応させて比
較していることから、挟み込まれたものの硬さや変形能
に拘わりなく高精度の挟み込み検出が可能になり、誤反
転や挟み込み荷重の増大を防止することができる。ま
た、モータ起動後パルスカウンタのカウント値、すなわ
ちモータ4が作動を開始してからの移動距離に応じて段
階的に減少する多数組のしきい値を用意して、移動距離
に応じたしきい値と比較して挟み込みを判定するように
しており、特に作動開始直後のカウント値が10までの
範囲においては、しきい値を255としているので、回
転数差がこれを超えることはなく、ダンパーなどの影響
によってモータ4の回転変動が最も大きくなる作動開始
直後の領域をマスクすることができ、誤検出に基く誤反
転を確実に防止することができる。また、シェードに衝
突し得る範囲のしきい値が通常よりも高くしてあるの
で、シェードとの衝突に基く回転数の低下を異物の挟み
込みと誤判断することもなくなる。
That is, in the sunroof control device 1 according to this embodiment, the reduction range of the rotation number (rotational speed) of the motor monitored when detecting the entrapment is 4, 8, 16,
Since it is calculated by four types of time difference of 32 pulse counts and these time differences are compared in correspondence with the threshold values set respectively, highly accurate entrapment detection regardless of the hardness or deformability of the entrapped object. It is possible to prevent erroneous reversal and increase of the sandwiching load. In addition, a threshold value corresponding to the moving distance is prepared by preparing a large number of sets of threshold values that gradually decrease according to the count value of the pulse counter after starting the motor, that is, the moving distance after the motor 4 starts operating. The threshold value is set to 255 especially in the range where the count value immediately after the start of operation is 10 by comparing with the value, so that the rotational speed difference does not exceed this and the damper is It is possible to mask the area immediately after the start of the operation in which the rotation fluctuation of the motor 4 is maximized due to the influence of the above, and to reliably prevent erroneous reversal based on erroneous detection. In addition, since the threshold value of the range in which the shade can collide is set higher than usual, it is possible to avoid erroneously determining that the decrease in the rotation speed due to the collision with the shade is the entrapment of foreign matter.

【0065】なお、上記実施例においては、モータ起動
カウンタMPC(モータ起動後パルスカウンタ8)によ
って、モータ4の回転開始からの移動距離を参照して、
移動距離の増加と共にしきい値を減少させた例を示した
が、上記カウンタ8に代えて、モータ4が回転を始めた
後の経過時間をカウントするモータ起動タイマーを設け
て、モータ4が起動してからの時間を参照してしきい値
を決定するようにしても全く同様の作用・効果が得られ
ることは言うまでもない。
In the above embodiment, the motor start counter MPC (pulse counter 8 after motor start) refers to the moving distance from the start of rotation of the motor 4,
Although the example in which the threshold value is decreased with the increase of the moving distance is shown, the motor 4 is started by providing a motor start-up timer for counting the elapsed time after the motor 4 starts rotating, instead of the counter 8. Needless to say, even if the threshold is determined with reference to the time after that, exactly the same action and effect can be obtained.

【0066】[0066]

【発明の効果】以上説明してきたように、本発明に係わ
るサンルーフ制御方法およびサンルーフ制御装置におい
ては、上記構成、すなわち挟み込み検出に際して、比較
期間の異なる複数の回転速度差をそれぞれ対応する複数
のしきい値と比較することによって判定すると共に、こ
れら複数の回転速度差データにそれぞれ対応する同数の
しきい値データを多数組用意しておき、モータの回転開
始からの経過時間、あるいは開始後のサンルーフリッド
の移動距離に応じて、これら経過時間あるいは移動距離
の増加に伴って減少するしきい値よりも大きいか否かに
よって挟み込みの有無を判定するようにしていることか
ら、モータ起動直後の回転変動が顕著な領域のしきい値
を大きくすると共に、それに隣接したシェードとの衝突
が起り得る範囲のしきい値を通常判定のしきい値よりも
高くした高しきい値領域とし、これら以外の範囲を通常
しきい値領域とすることによって、モータの回転開始直
後の回転変動や、シェードとの衝突による回転変動を挟
み込み発生と誤判定することがなくなり、サンルーフリ
ッドの誤反転を防止することができる。また、挟み込み
判定に際して、比較期間の異なる複数の回転速度差デー
タのいずれかの値が対応するしきい値を越えたかどうか
によって挟み込み発生を判定するようにしているので、
挟み込まれたものの剛性に関係なく高精度の挟み込み検
出が可能になり誤反転や挟み込み時の荷重の増大を防止
することができるという極めて優れた効果がもたらされ
る。
As described above, in the sunroof control method and the sunroof control device according to the present invention, in the above configuration, that is, when detecting the entrapment, a plurality of rotation speed differences corresponding to different comparison periods are respectively provided. It is judged by comparing with the threshold value, and a large number of sets of the same number of threshold data corresponding to the respective plurality of rotational speed difference data are prepared, and the elapsed time from the start of the motor rotation or the sunroof after the start Depending on the travel distance of the lid, the presence or absence of pinching is determined by whether it is greater than a threshold value that decreases as the elapsed time or the travel distance increases. Increase the threshold value of the area where By setting the threshold value to a high threshold value region that is higher than the threshold value for normal judgment, and setting the other range as the normal threshold value region, the fluctuation of rotation immediately after the start of rotation of the motor and the collision with the shade may occur. It is possible to prevent the erroneous reversal of the sunroof lid from being erroneously determined as the occurrence of the pinch of the rotation fluctuation. Further, in the entrapment determination, the entrapment occurrence is determined by whether or not any value of the plurality of rotation speed difference data having different comparison periods exceeds the corresponding threshold value.
The pinching detection can be performed with high accuracy regardless of the rigidity of the pinched object, and it is possible to prevent an erroneous reversal and an increase in the load at the time of pinching, which is an extremely excellent effect.

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

【図1】本発明に係わるサンルーフ制御方法の内容を概
略的に示す説明図である。
FIG. 1 is an explanatory view schematically showing the content of a sunroof control method according to the present invention.

【図2】本発明に係わるサンルーフ制御装置の構成を示
すブロック図である。
FIG. 2 is a block diagram showing a configuration of a sunroof control device according to the present invention.

【図3】図2に示したモータ回転検出手段の2つのホー
ルICから出力されるパルス信号の形状およびアーマチ
ュア軸の回転数算出方法を示す説明図である。
FIG. 3 is an explanatory diagram showing a shape of a pulse signal output from two Hall ICs of the motor rotation detecting means shown in FIG. 2 and a method of calculating a rotation speed of an armature shaft.

【図4】図2に示したしきい値データROMに保存され
たしきい値データの内容を示す図である。
4 is a diagram showing the contents of threshold data stored in a threshold data ROM shown in FIG.

【図5】図2に示したサンルーフ制御装置における制御
のメインルーチンを示すフローチャートである。
FIG. 5 is a flowchart showing a main routine of control in the sunroof control device shown in FIG.

【図6】図2に示したサンルーフ制御装置の制御におけ
る回転変動判定サブルーチンを示すフローチャートであ
る。
FIG. 6 is a flowchart showing a rotation variation determination subroutine in control of the sunroof control device shown in FIG.

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

1 サンルーフ制御装置 2 開スイッチ 3 閉スイッチ 4 モータ 4a アーマチュア軸 5 モータ回転検出手段 6 出力回路(駆動手段) 8 モータ起動後パルスカウンタ(モータ起動カウン
タ) 10 出力軸回転数算出ブロック(回転数算出ブロッ
ク) 11 回転数メモリブロック 12 しきい値データROM 14 制御ブロック MCU 制御手段 L サンルーフリッド
1 sunroof control device 2 open switch 3 close switch 4 motor 4a armature shaft 5 motor rotation detection means 6 output circuit (driving means) 8 pulse counter after motor startup (motor startup counter) 10 output shaft rotation speed calculation block (rotation speed calculation block) ) 11 rotation speed memory block 12 threshold data ROM 14 control block MCU control means L sunroof lid

フロントページの続き Fターム(参考) 2E052 AA09 BA07 BA10 CA06 DA05 DB05 EB01 GA08 GA09 GA10 GB06 GC06 GD09 HA01 5H530 BB17 BB18 CC14 CC24 CD10 CD23 DD01 Continued front page    F-term (reference) 2E052 AA09 BA07 BA10 CA06 DA05                       DB05 EB01 GA08 GA09 GA10                       GB06 GC06 GD09 HA01                 5H530 BB17 BB18 CC14 CC24 CD10                       CD23 DD01

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 サンルーフリッドを開閉作動させる駆動
用モータの回転速度を検出して予め定められた数だけ保
存し、保存された回転速度データから比較期間が異なる
複数の速度差データを算出すると共に、これと対応する
同数のしきい値であって、前記モータが回転を開始した
後の経過時間あるいはサンルーフリッドの移動距離の増
加に伴って減少するしきい値データを多数組用意し、サ
ンルーフリッドが閉方向に作動しているときに、前記複
数の速度差データのうちのいずれかの値が、前記モータ
の回転開始後の経過時間あるいはサンルーフリッドの移
動距離に応じて選択された対応するしきい値を超えた際
には、前記モータを停止させた後、反転させてサンルー
フリッドを開方向に作動させることを特徴とするサンル
ーフ制御方法。
1. A rotational speed of a drive motor for opening and closing a sunroof lid is detected and stored in a predetermined number, and a plurality of speed difference data having different comparison periods are calculated from the stored rotational speed data. , A plurality of sets of threshold data having the same number of threshold values that decrease with the elapsed time after the motor starts rotating or the movement distance of the sunroof lid are prepared. Is operating in the closing direction, one of the values of the plurality of speed difference data corresponds to the value selected according to the elapsed time after the start of rotation of the motor or the movement distance of the sunroof lid. When exceeding a threshold value, the sunroof control method is characterized in that after the motor is stopped, the motor is reversed and the sunroof lid is operated in the opening direction.
【請求項2】 前記モータの回転開始直後には、前記モ
ータの停止および反転を禁止することを特徴とする請求
項1記載のサンルーフ制御方法。
2. The sunroof control method according to claim 1, wherein stop and reversal of the motor is prohibited immediately after the start of rotation of the motor.
【請求項3】 減速装置を介してサンルーフリッドに連
結されたアーマチュア軸を有するモータと、 サンルーフリッドを開方向に移動させる開指令信号を発
生する開スイッチと、 サンルーフリッドを閉方向に移動させる閉指令信号を発
生する閉スイッチと、 前記開スイッチからの開指令信号に応じて開駆動信号を
発生し、前記閉スイッチからの閉指令信号に応じて閉駆
動信号を発生する制御手段と、 前記制御手段からの開駆動信号に応じてサンルーフリッ
ドの開方向に相当する回転を与える駆動電流をモータに
供給し、閉駆動信号に応じてサンルーフリッドの閉方向
に相当する回転を与える駆動電流をモータに供給する駆
動手段と、 前記モータのアーマチュア軸の回転に応じて位相差を有
するパルス信号を発生するモータ回転検出手段を備えた
サンルーフ制御装置において、 前記制御手段は、前記アーマチュア軸が回転を開始した
のちに前記モータ回転検出手段から発生するパルス信号
数をカウントするモータ起動カウンタと、 前記モータ回転検出手段から発生するパルス信号に基い
て単位時間当たりの回転数を算出する回転数算出ブロッ
クと、 前記回転数算出ブロックにより算出された単位時間当た
りの回転数データを予め定められた数だけ保存すると共
に、保存された回転数データから比較期間が異なる複数
の回転数差データを算出して出力する回転数メモリブロ
ックと、 前記モータ起動カウンタのカウント値に応じて、該カウ
ント値が増加するにしたがって減少するように予め定め
られ、前記回転数メモリブロックから出力される複数の
回転数差データとそれぞれ比較される同数のしきい値デ
ータが多数組保存されたしきい値データROMと、 前記閉スイッチから閉指令信号が出力されると、前記し
きい値データROMに保存された多数組のしきい値デー
タから、モータ起動カウンタのカウント値に応じて一組
のしきい値データを読み込むと共に、前記回転数メモリ
ブロックから出力された複数の回転数差データを対応す
る同数のしきい値データとそれぞれ比較し、回転数差デ
ータのうちのいずれかの値が対応するしきい値を超えた
ときには、前記駆動手段に対する閉駆動信号の出力を停
止して、開駆動信号を出力する制御ブロックを備えてい
ることを特徴とするサンルーフ制御装置。
3. A motor having an armature shaft connected to the sunroof lid via a reduction gear, an open switch for generating an open command signal for moving the sunroof lid in the opening direction, and a closing switch for moving the sunroof lid in the closing direction. A closing switch that generates a command signal; a control unit that generates an opening drive signal in response to the opening command signal from the opening switch; and a control unit that generates a closing drive signal in response to the closing command signal from the closing switch; The motor is supplied with a drive current that provides rotation corresponding to the opening direction of the sunroof lid in response to the open drive signal from the means, and the motor is provided with a drive current that provides rotation corresponding to the closing direction of the sunroof lid in the closing direction. A driving means for supplying the motor and a motor rotation detecting means for generating a pulse signal having a phase difference according to the rotation of the armature shaft of the motor are provided. In the sunroof controller, the control means counts the number of pulse signals generated by the motor rotation detection means after the armature shaft starts rotating, and a pulse signal generated by the motor rotation detection means. A rotation speed calculation block for calculating the rotation speed per unit time based on the above, and a predetermined number of rotation speed data per unit time calculated by the rotation speed calculation block are saved, and the saved rotation speed is also stored. A rotation speed memory block that calculates and outputs a plurality of rotation speed difference data having different comparison periods from the data, and is predetermined according to the count value of the motor start counter so as to decrease as the count value increases. , A plurality of rotation speed difference data output from the rotation speed memory block, respectively. A plurality of sets of threshold value data stored in the threshold data ROM when a closing command signal is output from the closing switch. From the above, a set of threshold data is read according to the count value of the motor start counter, and a plurality of rotation speed difference data output from the rotation speed memory block are respectively compared with a corresponding same number of threshold data. And a control block for stopping the output of the closing drive signal to the driving means and outputting the opening drive signal when any one of the rotational speed difference data exceeds a corresponding threshold value. Sunroof control device characterized by.
【請求項4】 減速装置を介してサンルーフリッドに連
結されたアーマチュア軸を有するモータと、 サンルーフリッドを開方向に移動させる開指令信号を発
生する開スイッチと、 サンルーフリッドを閉方向に移動させる閉指令信号を発
生する閉スイッチと、 前記開スイッチからの開指令信号に応じて開駆動信号を
発生し、前記閉スイッチからの閉指令信号に応じて閉駆
動信号を発生する制御手段と、 前記制御手段からの開駆動信号に応じてサンルーフリッ
ドの開方向に相当する回転を与える駆動電流をモータに
供給し、閉駆動信号に応じてサンルーフリッドの閉方向
に相当する回転を与える駆動電流をモータに供給する駆
動手段と、 前記モータのアーマチュア軸の回転に応じて位相差を有
するパルス信号を発生するモータ回転検出手段を備えた
サンルーフ制御装置において、 前記制御手段は、前記アーマチュア軸が回転を開始した
のちの経過時間をカウントするモータ起動タイマーと、 前記モータ回転検出手段から発生するパルス信号に基い
て単位時間当たりの回転数を算出する回転数算出ブロッ
クと、 前記回転数算出ブロックにより算出された単位時間当た
りの回転数データを予め定められた数だけ保存すると共
に、保存された回転数データから保存期間が異なる複数
の回転数差データを算出して出力する回転数メモリブロ
ックと、 前記モータ起動タイマーのカウント値に応じて、該カウ
ント値が増加するにしたがって減少するように予め定め
られ、前記回転数メモリブロックから出力される複数の
回転数差データとそれぞれ比較される同数のしきい値デ
ータが多数組保存されたしきい値データROMと、 前記閉スイッチから閉指令信号が出力されると、前記し
きい値データROMに保存された多数組のしきい値デー
タから、モータ起動タイマーのカウント値に応じて一組
のしきい値データを読み込むと共に、前記回転数メモリ
ブロックから出力された複数の回転数差データを対応す
る同数のしきい値データとそれぞれ比較し、回転数差デ
ータのうちのいずれかの値が対応するしきい値を超えた
ときには、前記駆動手段に対する閉駆動信号の出力を停
止して、開駆動信号を出力する制御ブロックを備えてい
ることを特徴とするサンルーフ制御装置。
4. A motor having an armature shaft connected to a sunroof lid via a speed reducer, an open switch for generating an open command signal for moving the sunroof lid in the opening direction, and a closing switch for moving the sunroof lid in the closing direction. A closing switch that generates a command signal; a control unit that generates an opening drive signal in response to the opening command signal from the opening switch; and a control unit that generates a closing drive signal in response to the closing command signal from the closing switch; The motor is supplied with a drive current that provides rotation corresponding to the opening direction of the sunroof lid in response to the open drive signal from the means, and the motor is provided with a drive current that provides rotation corresponding to the closing direction of the sunroof lid in the closing direction. A driving means for supplying the motor and a motor rotation detecting means for generating a pulse signal having a phase difference according to the rotation of the armature shaft of the motor are provided. In the sunroof control device, the control means includes a motor start-up timer that counts an elapsed time after the armature shaft starts rotating, and a rotation speed per unit time based on a pulse signal generated from the motor rotation detection means. A rotation speed calculation block for calculating, and a predetermined number of rotation speed data calculated by the rotation speed calculation block is stored, and a plurality of rotations having different storage periods from the saved rotation speed data are stored. A rotation speed memory block that calculates and outputs the number difference data, and a predetermined value that decreases in accordance with the count value of the motor start timer as the count value increases, and is output from the rotation speed memory block. A large number of sets of threshold data with the same number that are respectively compared with multiple rotation speed difference data are stored. When the closing command signal is output from the threshold data ROM and the closing switch, a large number of sets of threshold data stored in the threshold data ROM are read according to the count value of the motor start timer. While reading a set of threshold value data, a plurality of rotational speed difference data output from the rotational speed memory block are compared with corresponding corresponding threshold value data, and any one of the rotational speed difference data is read. When the value exceeds a corresponding threshold value, the sunroof control device is provided with a control block that stops the output of the close drive signal to the drive means and outputs the open drive signal.
【請求項5】 しきい値データROMには、前記モータ
の回転開始直後のしきい値として、回転数差データが取
り得る値以上の値が保存されていることを特徴とする請
求項3または4記載のサンルーフ制御装置。
5. The threshold data ROM stores a threshold value immediately after the start of rotation of the motor, which is equal to or greater than a value that can be obtained by the rotation speed difference data. 4. The sunroof control device described in 4.
JP2001351838A 2001-11-16 2001-11-16 Sunroof control method and apparatus Expired - Fee Related JP3898035B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001351838A JP3898035B2 (en) 2001-11-16 2001-11-16 Sunroof control method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001351838A JP3898035B2 (en) 2001-11-16 2001-11-16 Sunroof control method and apparatus

Publications (2)

Publication Number Publication Date
JP2003154854A true JP2003154854A (en) 2003-05-27
JP3898035B2 JP3898035B2 (en) 2007-03-28

Family

ID=19164093

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001351838A Expired - Fee Related JP3898035B2 (en) 2001-11-16 2001-11-16 Sunroof control method and apparatus

Country Status (1)

Country Link
JP (1) JP3898035B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007146392A (en) * 2005-11-24 2007-06-14 Asmo Co Ltd Opening/closing device
CN105539103A (en) * 2015-12-09 2016-05-04 宁波帅特龙集团有限公司 Automatic opening and closing method and system of automobile skylight

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007146392A (en) * 2005-11-24 2007-06-14 Asmo Co Ltd Opening/closing device
CN105539103A (en) * 2015-12-09 2016-05-04 宁波帅特龙集团有限公司 Automatic opening and closing method and system of automobile skylight
CN105539103B (en) * 2015-12-09 2019-06-11 宁波帅特龙集团有限公司 Vehicle dormer window automatic open-close method and system

Also Published As

Publication number Publication date
JP3898035B2 (en) 2007-03-28

Similar Documents

Publication Publication Date Title
US7095200B2 (en) Power window apparatus with pinch detecting function
JP4487588B2 (en) Opening and closing body control device
KR100780258B1 (en) Method for limiting the closing force of movable components
US7259532B2 (en) Power window apparatus with function of pinching detection
US10464399B2 (en) Vehicle window opening device
JP2005351042A (en) Opening and closing body control device
JP6641827B2 (en) Opening / closing body control device for vehicles
JP2001253242A (en) Opening/closing control device for opening cover material
JP3882062B2 (en) Method for detecting the position, rotational direction and / or rotational speed of a rotational mounting part
JP2002089133A (en) Opening and closing controller for lining member for opening
JP3591510B2 (en) Opening / closing body control device for vehicles
JP2003154854A (en) Method and device for controlling sunroof
JP3868803B2 (en) Sunroof control method and apparatus
JP3803744B2 (en) Control device for vehicle opening / closing panel
JP2010188997A (en) Opening/closing control device for opening covering material
JP2009262930A (en) Opening cover material opening/closing control device
JP3794478B2 (en) Control method for vehicle opening / closing panel
JP2003237374A (en) Sunroof control method and sunroof control device
JPH07166761A (en) Power window drive control device
JP3892317B2 (en) Control method for vehicle opening / closing panel
JP4845013B2 (en) Position measuring device
JP4781868B2 (en) Opening / closing member control device
JP4059046B2 (en) Anti-pinch device
JP3755741B2 (en) Window glass pinching presence / absence detection device
JP2006083619A (en) Power window device with pinch detecting function

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20040330

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041013

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20041026

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20041026

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061128

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20061212

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061220

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100105

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20100105

Year of fee payment: 3

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

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

Free format text: PAYMENT UNTIL: 20100105

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20100105

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20110105

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110105

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120105

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130105

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20140105

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees