JPH09137670A - Drive controlling device for motor - Google Patents

Drive controlling device for motor

Info

Publication number
JPH09137670A
JPH09137670A JP7292421A JP29242195A JPH09137670A JP H09137670 A JPH09137670 A JP H09137670A JP 7292421 A JP7292421 A JP 7292421A JP 29242195 A JP29242195 A JP 29242195A JP H09137670 A JPH09137670 A JP H09137670A
Authority
JP
Japan
Prior art keywords
pulse signal
cycle
motor
moving average
average value
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
JP7292421A
Other languages
Japanese (ja)
Other versions
JP3657671B2 (en
Inventor
Hirofumi Okada
裕文 岡田
Kanichi Tanaka
寛一 田中
Katsuhide Kumagai
勝秀 熊谷
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.)
Tokai Rika Co Ltd
Original Assignee
Tokai Rika 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 Tokai Rika Co Ltd filed Critical Tokai Rika Co Ltd
Priority to JP29242195A priority Critical patent/JP3657671B2/en
Publication of JPH09137670A publication Critical patent/JPH09137670A/en
Application granted granted Critical
Publication of JP3657671B2 publication Critical patent/JP3657671B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To precisely detect cycles of pulse signals. SOLUTION: In the case where rise of a pulse signal is detected 111,Y, the value of a timer T1 is stored 113, the timer T1 is reset 115, and the timer T1 is started 117, then the current routine is completed. With the timer T1 started, rise of the next pulse signal detected and the value of the timer T1 stored in the step 113, cycles of pulse signals based on the rise of the pulse signal can be stored in a memory. In the case where fall of a pulse signal is detected 111,N, the value of a timer T2 is stored 133, the timer T2 is reset 135, and the timer T2 is started 137, then the current routine is completed. With the timer T2 started, rise of the next pulse signal detected, and the value of the timer T2 stored in the step 113, cycles of the pulse signals based on the fall of the pulse signals can be stored in a memory.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、モータ駆動制御装
置に係り、より詳しくは、パルス信号の周期に基づいて
演算されたモータ負荷がしきい値より大きい場合にモー
タの駆動を一定量反転させて停止するモータ駆動制御装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a motor drive control device, and more particularly to reversing the drive of a motor by a predetermined amount when the motor load calculated based on the cycle of a pulse signal is larger than a threshold value. The present invention relates to a motor drive control device that stops by stopping.

【0002】[0002]

【従来の技術】従来より、モータ駆動制御装置は、例え
ば、パワーウィンドウ装置に適用されている。このよう
にモータ駆動制御装置がパワーウィンドウ装置に適用さ
れた場合には、ドアガラスを昇降させるためにモータが
用いられているとともに例えば、ドアガラスと窓枠との
間の異物の挟む込みを検知するためにモータの回転に同
期してパルス信号を発生するパルス信号発生器が設けら
れている。
2. Description of the Related Art Conventionally, a motor drive control device has been applied to, for example, a power window device. When the motor drive control device is applied to the power window device as described above, the motor is used to move the door glass up and down, and for example, the detection of foreign matter trapped between the door glass and the window frame is detected. In order to do so, a pulse signal generator that generates a pulse signal in synchronization with the rotation of the motor is provided.

【0003】パルス信号発生器は、図13(a)に示す
ように、モータ軸に設けられた導体部42及び非導体部
44に2個の摺動接点46、48(一方が電源に接続さ
れている)を接触させることにより、図13(b)に示
すパルスを発生させている。この場合、パルス信号の周
期を精度よく検出するために、摺動接点46、48の接
点部を鋭角にして、摺動接点46、48が導体部42及
び非導体部44に接触している時間の各々をT1 のよう
に等しくなるようにして摺動接点46、48間に電流が
流れている状態(以下、ON状態という)及び摺動接点
46、48間に電流が流れてない状態(以下、OFF状
態という)の時間の比を1:1にしている。
In the pulse signal generator, as shown in FIG. 13 (a), two sliding contacts 46 and 48 (one of which is connected to a power source are connected to a conductor portion 42 and a non-conductor portion 44 provided on a motor shaft. 13) are brought into contact with each other to generate the pulse shown in FIG. In this case, in order to detect the period of the pulse signal with high accuracy, the contact portions of the sliding contacts 46 and 48 are formed at an acute angle, and the time during which the sliding contacts 46 and 48 are in contact with the conductor portion 42 and the non-conductor portion 44. In which current is flowing between the sliding contacts 46 and 48 such that they are equal to each other as T 1 (hereinafter referred to as an ON state) and a state in which no current is flowing between the sliding contacts 46 and 48 ( Hereafter, the time ratio of the OFF state) is set to 1: 1.

【0004】そして、ドアガラスと窓枠との間に異物を
挟む込むと、ドアガラスの上昇移動が阻止されるととも
に、例えば、ON状態時にドアガラスと窓枠との間に異
物を挟む込むとON状態の時間がOFF状態の時間より
長くなり、ON状態及びOFF状態の時間の比が1:1
からずれ、パルス信号発生器からのパルス信号の周期が
長くなる。
When a foreign object is sandwiched between the door glass and the window frame, the upward movement of the door glass is prevented and, for example, when the foreign object is sandwiched between the door glass and the window frame in the ON state. The ON time is longer than the OFF time, and the ratio of the ON time and the OFF time is 1: 1.
However, the period of the pulse signal from the pulse signal generator becomes long.

【0005】そこで、パワーウィンドウ装置は、突飛な
パルス信号の周期を平滑化するため最新のパルス信号の
周期を含むパルス信号の周期の移動平均値とこの移動平
均値に隣接する移動平均値との差がしきい値を越えた場
合に異物の挟む込みと判断して、モータの駆動を一定量
反転させて停止している。
Therefore, the power window device smooths the cycle of the eccentric pulse signal by comparing the moving average value of the cycle of the pulse signal including the cycle of the latest pulse signal and the moving average value adjacent to this moving average value. When the difference exceeds the threshold value, it is determined that the foreign matter is caught, and the motor drive is reversed by a certain amount and stopped.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、図14
(a)に示すように、摺動接点46、48の接点部の劣
化等すると、摺動接点46、48が導体部42及び非導
体部44に接触している時間がT3 、T4 のように異な
るようになる。よって、図14(b)に示すように、O
N状態の時間とOFF状態の時間との比が1:1からず
れることになる。ON状態の時間とOFF状態の時間と
の比が1:1からずれると、モータが不規則に回転して
いると誤判断され、異物を挟み込んでいないのに異物の
挟み込みと誤判断し、すなわち、モータが過負荷となっ
ていると誤判断してモータの駆動が一定量反転されて停
止される。
However, FIG.
As shown in (a), when the contact portions of the sliding contacts 46 and 48 deteriorate, the time during which the sliding contacts 46 and 48 are in contact with the conductor portion 42 and the non-conductor portion 44 is T 3 and T 4 , respectively. To be different. Therefore, as shown in FIG.
The ratio of the time in the N state and the time in the OFF state deviates from 1: 1. If the ratio of the ON state time to the OFF state time deviates from 1: 1, it is erroneously determined that the motor is rotating irregularly, and it is erroneously determined that the foreign matter is caught even though the foreign matter is not caught. The motor drive is erroneously determined to be overloaded and the drive of the motor is reversed by a certain amount and stopped.

【0007】本発明は、上記問題点を解決し、パルス信
号の周期を正確に検出することの可能なモータ駆動制御
装置を提供することを目的とする。
An object of the present invention is to solve the above problems and to provide a motor drive controller capable of accurately detecting the period of a pulse signal.

【0008】[0008]

【課題を解決するための手段】上記目的達成のため請求
項1記載の発明は、モータの回転に同期してパルス信号
を発生するパルス信号発生手段と、前記パルス信号発生
手段により発生されたパルス信号の立ち上がり及び立ち
下がりを検出する検出手段と、前記検出手段により検出
された最新の第1のパルス信号の立ち上がり及び前記第
1のパルス信号に連続する第2のパルス信号の立ち上が
りと前記第1のパルス信号の立ち下がり及び前記第2の
パルス信号の立ち下がりとに基づいてパルス信号の周期
を演算する周期演算手段と、前記周期演算手段により演
算された前記第1のパルス信号の周期に基づいてモータ
負荷を検出するモータ負荷検出手段と、前記モータ負荷
検出手段により検出されたモータ負荷がしきい値より大
きいか否かを判断する判断手段と、前記判断手段による
判断結果が肯定判定である場合にモータの駆動を一定量
反転させて停止する停止手段と、を備えている。
In order to achieve the above object, the invention according to claim 1 is a pulse signal generating means for generating a pulse signal in synchronization with the rotation of a motor, and a pulse generated by the pulse signal generating means. Detecting means for detecting rising and falling of the signal; rising of the latest first pulse signal detected by the detecting means; rising of a second pulse signal continuous to the first pulse signal; and the first Cycle calculating means for calculating the cycle of the pulse signal based on the falling edge of the pulse signal and the falling edge of the second pulse signal, and based on the cycle of the first pulse signal calculated by the cycle calculating means. And a motor load detecting means for detecting a motor load and determining whether or not the motor load detected by the motor load detecting means is larger than a threshold value. That the determining means, determination result by said determining means is and a stopping means for stopping by a predetermined amount inversion driving of the motor when a positive determination.

【0009】請求項2記載の発明は、請求項1記載の発
明において、前記モータ負荷検出手段は、前記周期演算
手段により演算されかつ前記第1のパルス信号の周期を
含むパルス信号の周期の第1の移動平均値と少なくとも
前記第1の移動平均値のパルス信号の周期より過去のパ
ルス信号の周期を含む第2の移動平均値との差をモータ
負荷として検出することを特徴とする。
According to a second aspect of the present invention, in the first aspect of the present invention, the motor load detection means has a first cycle of a pulse signal calculated by the cycle calculation means and including a cycle of the first pulse signal. It is characterized in that a difference between one moving average value and at least a second moving average value including a pulse signal period earlier than the pulse signal period of the first moving average value is detected as a motor load.

【0010】請求項3記載の発明は、請求項1記載の発
明において、前記モータ負荷検出手段は、前記周期演算
手段により演算されたパルス信号の周期と該パルス信号
の周期を含まない過去のパルス信号の周期の移動平均値
との差をモータ負荷として検出することを特徴とする。
According to a third aspect of the present invention, in the first aspect of the present invention, the motor load detecting means includes a cycle of the pulse signal calculated by the cycle calculating means and a past pulse that does not include the cycle of the pulse signal. It is characterized in that the difference between the signal cycle and the moving average value is detected as a motor load.

【0011】ここで、請求項1記載の発明の検出手段
は、パルス信号発生手段により発生されたモータの回転
に同期して発生するパルス信号の立ち上がり及び立ち下
がりを検出する。周期演算手段は、検出手段により検出
された最新の第1のパルス信号の立ち上がり及び第1の
パルス信号に連続する第2のパルス信号の立ち上がりと
第1のパルス信号の立ち下がり及び第2のパルス信号の
立ち下がりとに基づいてパルス信号の周期を演算する。
Here, the detecting means of the invention according to claim 1 detects the rising and falling edges of the pulse signal generated in synchronization with the rotation of the motor generated by the pulse signal generating means. The cycle calculating means includes the latest rising edge of the first pulse signal detected by the detecting means, the rising edge of the second pulse signal continuous with the first pulse signal, the falling edge of the first pulse signal, and the second pulse. The period of the pulse signal is calculated based on the falling edge of the signal.

【0012】このように、第1のパルス信号の立ち上が
り及び第1のパルス信号に連続する第2のパルス信号の
立ち上がりと第1のパルス信号の立ち下がり及び第2の
パルス信号の立ち下がりとに基づいてパルス信号の周期
を演算することから、2個のパルス信号で3つのパルス
信号の周期を求めることができる。
As described above, the rising edge of the first pulse signal, the rising edge of the second pulse signal continuous with the first pulse signal, the falling edge of the first pulse signal, and the falling edge of the second pulse signal. Since the period of the pulse signal is calculated based on this, the periods of the three pulse signals can be obtained from the two pulse signals.

【0013】モータ負荷検出手段は、周期演算手段によ
り演算された第1のパルス信号の周期に基づいてモータ
負荷を検出する。
The motor load detecting means detects the motor load based on the cycle of the first pulse signal calculated by the cycle calculating means.

【0014】ここで、モータ負荷検出手段は、請求項2
記載の発明のように、周期演算手段により演算されかつ
第1のパルス信号の周期を含むパルス信号の周期の第1
の移動平均値と少なくとも第1の移動平均値のパルス信
号の周期より過去のパルス信号の周期を含む第2の移動
平均値との差をモータ負荷として検出するようにしても
よい。なお、第2の移動平均値は、少なくとも第1の移
動平均値のパルス信号の周期より過去のパルス信号の周
期を含むことから、第1に第1の移動平均値のパルス信
号の周期より過去のパルス信号の周期のみの移動平均値
と、第2に第1の移動平均値のパルス信号の周期より過
去のパルス信号の周期と第1の移動平均値のパルス信号
の周期を少なくとも1個を含むパルス信号の周期との移
動平均値である。
Here, the motor load detecting means is the second aspect.
As in the invention described above, the first cycle of the pulse signal calculated by the cycle calculating means and including the cycle of the first pulse signal.
The difference between the moving average value and the second moving average value including the period of the pulse signal at least past the period of the pulse signal of the first moving average value may be detected as the motor load. Since the second moving average value includes at least the period of the pulse signal that is earlier than the period of the pulse signal of the first moving average value, the first moving average value is earlier than the period of the pulse signal of the first moving average value. The moving average value of only the period of the pulse signal, secondly, at least one cycle of the pulse signal of the past and the period of the pulse signal of the first moving average value before the cycle of the pulse signal of the first moving average value. It is a moving average value with the period of the included pulse signal.

【0015】また、モータ負荷検出手段は、請求項3記
載の発明のように、周期演算手段により演算されたパル
ス信号の周期と該パルス信号の周期を含まない過去のパ
ルス信号の周期の移動平均値との差をモータ負荷として
検出するようにしてもよい。
Further, the motor load detecting means is, as in the invention described in claim 3, the moving average of the cycle of the pulse signal calculated by the cycle calculating means and the cycle of the past pulse signal not including the cycle of the pulse signal. The difference from the value may be detected as the motor load.

【0016】そして、判断手段は、モータ負荷検出手段
より検出されたモータ負荷がしきい値より大きいか否か
を判断し、停止手段は、判断手段による判断結果が肯定
判定である場合にモータの駆動を一定量反転させて停止
する。
Then, the judging means judges whether or not the motor load detected by the motor load detecting means is larger than a threshold value, and the stopping means determines whether the motor load of the motor is positive when the judgment result by the judging means is a positive judgment. The drive is reversed by a certain amount and stopped.

【0017】このように、第1のパルス信号の立ち上が
り及び第1のパルス信号に連続する第2のパルス信号の
立ち上がりと第1のパルス信号の立ち下がり及び第2の
パルス信号の立ち下がりとに基づいてパルス信号の周期
を演算していることから、第1のパルス信号の立ち上が
り及び立ち下がり時間と第2のパルス信号の立ち上がり
及び立ち下がり時間が異なってもパルス周期は変わら
ず、パルス信号の周期を正確に求めることができると共
に、この演算により求められたパルス信号の周期は、パ
ルス信号の立ち上がり又は立ち下がりのみを基準にして
パルス信号の周期を求める場合より多くパルス信号の周
期を求めることができ、モータの過負荷を短時間に判断
することができる。
As described above, at the rising edge of the first pulse signal, the rising edge of the second pulse signal which is continuous with the first pulse signal, the falling edge of the first pulse signal and the falling edge of the second pulse signal. Since the cycle of the pulse signal is calculated based on the pulse signal, the pulse cycle does not change even if the rising and falling times of the first pulse signal and the rising and falling times of the second pulse signal are different. The period of the pulse signal can be calculated accurately, and the period of the pulse signal obtained by this operation should be calculated more than when the period of the pulse signal is calculated based only on the rising or falling of the pulse signal. Therefore, the overload of the motor can be determined in a short time.

【0018】[0018]

【発明の実施の形態】以下、本発明の第1の実施の形態
を図面を参照して詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a first embodiment of the present invention will be described in detail with reference to the drawings.

【0019】図1には、本形態のモータ駆動制御装置に
係るパワーウィンドウ装置が適用された車両の運転席側
のドア12、及び後部座席の一方のドア14が示されて
いる。各ドア内には、ドアガラス20を昇降駆動するた
めのウィンドウレギュレータ部が配設されている。
FIG. 1 shows a door 12 on the driver's seat side and one door 14 on the rear seat of a vehicle to which the power window device according to the motor drive control device of this embodiment is applied. Inside each door, a window regulator portion for raising and lowering the door glass 20 is arranged.

【0020】図2に示されるように、運転席ドア側のウ
ィンドウレギュレータ部16は、所謂ワイヤ式とされて
おり、モータ22の駆動軸に取付けられた回転板22A
にワイヤが巻き掛けられている。このワイヤの端部はド
アガラス20の下端部を支持する保持チャンネル24に
連結されており、さらに、保持チャンネル24はメイン
ガイド26へ上下移動可能に取り付けられている。これ
により、モータ22が正逆方向に回転すると、この回転
駆動力がワイヤを介して伝達されて、ドアガラス20が
ガラスガイド18に沿って上下移動する。なお、ウィン
ドウレギュレータ部16の構成は、このようなワイヤ式
に限らず、Xアーム式のものや、モータ自体がラックに
沿って移動する所謂モータ自走式であってもよい。
As shown in FIG. 2, the window regulator portion 16 on the driver's door side is of a so-called wire type, and has a rotating plate 22A attached to the drive shaft of the motor 22.
The wire is wrapped around. The end of this wire is connected to a holding channel 24 that supports the lower end of the door glass 20, and the holding channel 24 is attached to a main guide 26 so as to be vertically movable. As a result, when the motor 22 rotates in the forward and reverse directions, this rotational driving force is transmitted via the wire, and the door glass 20 moves up and down along the glass guide 18. The configuration of the window regulator unit 16 is not limited to such a wire type, but may be an X arm type or a so-called motor self-propelled type in which the motor itself moves along the rack.

【0021】モータ22によってドアガラス20が上昇
されると、ドアガラス20の周端部がドア12のフレー
ム12A内のゴム製のウェザーストリップ(図示省略)
に嵌合してフレーム12Aの開口が閉じられる。また、
モータ22の回転駆動によって、ドアガラス20が下降
移動されるとドア12のフレーム12Aの開口が開かれ
る。
When the door glass 20 is lifted by the motor 22, the peripheral edge portion of the door glass 20 is a rubber weather strip (not shown) in the frame 12A of the door 12.
And the opening of the frame 12A is closed. Also,
When the door glass 20 is moved downward by the rotational driving of the motor 22, the opening of the frame 12A of the door 12 is opened.

【0022】モータ22は、図1に示されるドア12、
14に取付けられたパワーウィンドウマスタスイッチ3
0及びドアスイッチ32の操作によって駆動される。ド
アスイッチ32は、運転席側以外のドア14に取り付け
られており、パワーウィンドウマスタスイッチ30は、
運転席側のドア12のドアアームレスト部12Bに取り
付けられている。なお、運転席に着座した運転者が容易
に操作できる位置であればパワーウィンドウマスタスイ
ッチ30の取付け位置は他の位置であってもよい。
The motor 22 includes the door 12 shown in FIG.
Power window master switch 3 attached to 14
0 and the door switch 32 are operated. The door switch 32 is attached to the door 14 other than the driver seat side, and the power window master switch 30 is
It is attached to the door armrest portion 12B of the driver-side door 12. The power window master switch 30 may be attached at any other position as long as it can be easily operated by the driver sitting in the driver's seat.

【0023】パワーウィンドウマスタスイッチ30に
は、ドア12のモータ22をオート又はマニュアルによ
って操作するためのオート/マニュアルスイッチ34及
び各ドア14のモータ22を個別にマニュアル操作する
ためのドアスイッチ36(本第1実施の形態では3個)
が配置されている。
The power window master switch 30 includes an auto / manual switch 34 for operating the motor 22 of the door 12 automatically or manually and a door switch 36 (mainly for manually operating the motor 22 of each door 14). (Three in the first embodiment)
Is arranged.

【0024】オート/マニュアルスイッチ34は、両方
向へそれぞれ2段操作可能で、1段操作のときは操作中
にのみドア12のモータ22が駆動し(マニュアル操
作)、2段操作することによってスイッチから手を離し
てもドアガラス20が所定の位置に達するまでモータ2
2が駆動される(オート操作)。
The auto / manual switch 34 can be operated in two stages in both directions, and when operating in one stage, the motor 22 of the door 12 is driven only during operation (manual operation), and by operating in two stages, the switch can be operated from the switch. Even if the hand is released, the motor 2 is operated until the door glass 20 reaches a predetermined position.
2 is driven (automatic operation).

【0025】モータ22は、パワーウィンドウマスタス
イッチ30又はドアスイッチ32が操作されると駆動し
て、回転板22A(図2に示す)を正逆方向の何れかに
回転し、ドアガラス20を上昇又は降下させる。
The motor 22 is driven when the power window master switch 30 or the door switch 32 is operated to rotate the rotary plate 22A (shown in FIG. 2) in either forward or reverse directions to raise the door glass 20. Or let it fall.

【0026】図3には、パワーウィンドウマスタスイッ
チ30、ドアスイッチ32の操作によりモータ22の駆
動を制御するための制御回路50が示されている。この
制御回路50は電源回路51からの電源によって駆動さ
れる。なお、制御回路50は、コンピュータで構成さ
れ、CPU(中央演算処理装置)、このCPUにシステ
ムバスを介して接続されたRAM,ROM及び入出力ポ
ートから構成され、CPUは、パワーウィンドウ装置全
体を制御し、ROMには、後述する制御ルーチンに対応
するプログラム等が予め格納されている。また、RAM
は、CPUのワーエリアとして機能する。なお、図3で
は、運転席側のドア12のドアガラス20を昇降駆動す
るためのモータ22が示されているが、他のドア14の
ドアガラス20を昇降駆動するためのモータ22も同様
に接続されている。
FIG. 3 shows a control circuit 50 for controlling the driving of the motor 22 by operating the power window master switch 30 and the door switch 32. The control circuit 50 is driven by the power supply from the power supply circuit 51. The control circuit 50 includes a computer, a CPU (central processing unit), a RAM, a ROM and an input / output port connected to the CPU via a system bus. The CPU is the entire power window device. The ROM is pre-stored with a program corresponding to a control routine which will be described later. Also, RAM
Functions as a CPU work area. Although FIG. 3 shows the motor 22 for raising and lowering the door glass 20 of the door 12 on the driver's side, the motor 22 for raising and lowering the door glass 20 of the other doors 14 is also the same. It is connected.

【0027】図3に示される如く、制御回路50は、パ
ワーウィンドウマスタスイッチ30又はドアスイッチ3
2の各スイッチからの信号線52が接続されており、パ
ワーウィンドウマスタスイッチ30又はドアスイッチ3
2の操作状態に応じて、モータ22へ正逆方向に回転さ
せるための駆動電流を供給する。
As shown in FIG. 3, the control circuit 50 includes a power window master switch 30 or a door switch 3.
2 is connected to the signal line 52 from each switch, and the power window master switch 30 or the door switch 3 is connected.
A drive current for rotating the motor 22 in the forward and reverse directions is supplied according to the operation state of No. 2.

【0028】制御回路50によって駆動が制御されるモ
ータ22は、その両端がそれぞれ閉リレースイッチ58
及び開リレースイッチ59のコモン端子58A、59A
に接続され、それぞれの第1接点58B、59Bは電源
線に接続されている。また、第2接点58C、59C
は、それぞれ、抵抗R0 を介してアースされる。なお、
閉リレースイッチ58及び開リレースイッチ59はコイ
ル60、62によって接点が切り換わるようになってお
り、何れかのコイル60、62を励磁させることにより
モータ22は正逆方向に回転する。
Both ends of the motor 22 whose drive is controlled by the control circuit 50 are closed relay switches 58.
And common terminals 58A, 59A of the open relay switch 59
And the respective first contacts 58B and 59B are connected to the power supply line. Also, the second contacts 58C, 59C
Are each grounded via a resistor R 0 . In addition,
The contacts of the close relay switch 58 and the open relay switch 59 are switched by the coils 60 and 62, and the motor 22 rotates in the forward and reverse directions by exciting one of the coils 60 and 62.

【0029】モータ22のモータ軸にはモータの回転に
同期してパルスを発生するパルス信号発生器38が設け
られている。パルス信号発生器38は、図4に示すよう
に、モータ軸22Aに、モータ軸22Aの回転と同期し
て回転する回転部38Aを備えている。回転部38Aに
は、周面の半分を導体で構成された導体部42及び他の
半分を非導体で構成された非導体部44が設けられてい
る。回転部38Aには、導体部42及び非導体部44に
接するように第1パルス電極端子(摺動接点)46及び
第2パルス電極端子(摺動接点)48が設けられてい
る。第1パルス電極端子46には電源回路51が接続さ
れ、第2パルス電極端子48には制御回路22が接続さ
れている。
The motor shaft of the motor 22 is provided with a pulse signal generator 38 for generating pulses in synchronization with the rotation of the motor. As shown in FIG. 4, the pulse signal generator 38 includes a motor shaft 22A and a rotating portion 38A that rotates in synchronization with the rotation of the motor shaft 22A. The rotating portion 38A is provided with a conductor portion 42 formed of a conductor on one half of the peripheral surface and a non-conductor portion 44 formed of a non-conductor on the other half. The rotating portion 38A is provided with a first pulse electrode terminal (sliding contact) 46 and a second pulse electrode terminal (sliding contact) 48 so as to contact the conductor portion 42 and the non-conductor portion 44. A power supply circuit 51 is connected to the first pulse electrode terminal 46, and a control circuit 22 is connected to the second pulse electrode terminal 48.

【0030】次に、本形態の制御ルーチンを、図5に示
したフローチャートに沿って説明する。第1パルス電極
端子46及び第2パルス電極端子48が導体部42に接
すると、電源回路51からの電圧がパルス信号となっ
て、第1パルス電極端子46、導体部42、及び第2パ
ルス電極端子48を介して制御回路22に入力される。
なお、第1パルス電極端子46及び第2パルス電極端子
48が導体部42に接したとき(図7(a)のA点参
照)は、図7(b)に示すようにパルス信号の立ち上が
り54が検出される。一方、第1パルス電極端子46及
び第2パルス電極端子48が導体部42から非導体部4
4に接すると、電源回路51からの電圧が遮断される。
なお、第1パルス電極端子46及び第2パルス電極端子
48が導体部42から非導体部44に接したとき(図7
(a)のB点参照)は、図7(b)に示すようにパルス
信号の立ち下がり56が検出される。
Next, the control routine of this embodiment will be described with reference to the flowchart shown in FIG. When the first pulse electrode terminal 46 and the second pulse electrode terminal 48 contact the conductor portion 42, the voltage from the power supply circuit 51 becomes a pulse signal, and the first pulse electrode terminal 46, the conductor portion 42, and the second pulse electrode. It is input to the control circuit 22 via the terminal 48.
When the first pulse electrode terminal 46 and the second pulse electrode terminal 48 are in contact with the conductor portion 42 (see point A in FIG. 7A), the pulse signal rises 54 as shown in FIG. 7B. Is detected. On the other hand, the first pulse electrode terminal 46 and the second pulse electrode terminal 48 move from the conductor portion 42 to the non-conductor portion 4
When it contacts 4, the voltage from the power supply circuit 51 is cut off.
When the first pulse electrode terminal 46 and the second pulse electrode terminal 48 are in contact with the non-conductor portion 44 from the conductor portion 42 (see FIG. 7).
7B, the trailing edge 56 of the pulse signal is detected as shown in FIG. 7B.

【0031】このようにパルス信号の立ち上がり54及
び立ち下がり56が検出されたときの各々で、本ルーチ
ンがスタートし、ステップ102で、パルス信号の周期
を検出する。なお、パルス信号の周期の検出処理の詳細
は後述する。
The routine starts at each of the rise 54 and the fall 56 of the pulse signal thus detected, and in step 102, the period of the pulse signal is detected. The details of the pulse signal cycle detection processing will be described later.

【0032】ステップ104で、第1の移動平均値Aを
演算する。ここで、第1の移動平均値Aを説明する。制
御回路50は、本ルーチンが実行されて検出されたパル
ス信号の周期をn個(なお、本形態では、100個)記
憶している。そして、第1の移動平均値Aは、ステップ
102で得られたパルス信号の周期(101番目)を含
む複数のパルス信号の周期(本形態では、3個(99、
100、101番目のパルス信号の周期))の移動平均
値である。
In step 104, the first moving average value A is calculated. Here, the first moving average value A will be described. The control circuit 50 stores n (here, 100) periods of the pulse signals detected by executing this routine. Then, the first moving average value A is the cycle of a plurality of pulse signals including the cycle (101st) of the pulse signal obtained in step 102 (three (99, 99,
It is a moving average value of the 100th and 101st pulse signals).

【0033】次のステップ106で、第2の移動平均値
Bを演算する。第2の移動平均値Bは、少なくとも第1
の移動平均値のパルス信号の周期より過去のパルス信号
の周期を含むパルス信号の周期の移動平均値であり、本
形態では、89、90、91番目のパルス信号の周期の
移動平均値である。
In the next step 106, the second moving average value B is calculated. The second moving average value B is at least the first
Is the moving average value of the period of the pulse signal including the period of the pulse signal that is earlier than the period of the pulse signal of the moving average value, and is the moving average value of the periods of the 89th, 90th and 91st pulse signals in this embodiment. .

【0034】ステップ108で、第1の移動平均値Aか
ら第2の移動平均値Bを減算して、差Cを求める。
At step 108, the difference C is obtained by subtracting the second moving average value B from the first moving average value A.

【0035】ステップ110で、差Cがしきい値Thよ
り大きいか否かを判断し、差Cがしきい値Thより大き
い場合には、過負荷と判断することができ、ステップ1
12でモータを一定量反転させて停止してステップ11
4に進む。なお、差Cがしきい値Thより大きくない場
合には、ステップ114に進む。
In step 110, it is judged whether or not the difference C is larger than the threshold value Th. If the difference C is larger than the threshold value Th, it can be judged that an overload has occurred.
In step 12, the motor is reversed by a certain amount and stopped, and then step 11
Proceed to 4. If the difference C is not larger than the threshold Th, the process proceeds to step 114.

【0036】ステップ114では、最も古いパルス信号
の周期(1番目のパルス信号の周期、なお、本ルーチン
が実行される毎に、2、3、・・・番目のパルス信号の
周期と変更される)に代えて今回検出したパルス信号の
周期(101番目のパルス信号の周期)を記憶して、本
ルーチンを終了する。
In step 114, the cycle of the oldest pulse signal (the cycle of the first pulse signal, each time this routine is executed, is changed to the cycle of the second, third, ... ), The cycle of the pulse signal detected this time (the cycle of the 101st pulse signal) is stored, and this routine ends.

【0037】次に、パルス信号の周期の検出処理(ステ
ップ102)ルーチンを、図6に示したフローチャート
を参照して説明する。
Next, the routine for detecting the cycle of the pulse signal (step 102) will be described with reference to the flow chart shown in FIG.

【0038】ステップ111で、パルス信号の立ち上が
り54が検出されたか否かを判断し、パルス信号の立ち
上がり54が検出された場合には、ステップ113で、
タイマT1 値を記憶し、ステップ115で、タイマT1
(ソフトタイマ)をリセットし、ステップ117で、タ
イマT1 をスタートして、本ルーチンを終了する。この
ようにステップ117でタイマT1 をスタートし、次の
パルス信号の立ち上がりが検出されてステップ113で
タイマT1 値を記憶することから、図7(b)に示すよ
うに、パルス信号の立ち上がり54から次に連続するパ
ルス信号の立ち上がり54までの時間を記憶することが
でき、パルス信号P1 、P3 ・・・の各々の周期を記憶
することができる。
In step 111, it is judged whether or not the rising edge 54 of the pulse signal is detected. If the rising edge 54 of the pulse signal is detected, in step 113,
The timer T 1 value is stored, and in step 115, the timer T 1 is stored.
(Soft timer) is reset, the timer T 1 is started in step 117, and this routine is finished. In this way, the timer T 1 is started in step 117, the rising edge of the next pulse signal is detected, and the value of the timer T 1 is stored in step 113. Therefore, as shown in FIG. The time from 54 to the next rising edge 54 of the pulse signal can be stored, and the period of each of the pulse signals P 1 , P 3, ... Can be stored.

【0039】ステップ111の判断が否定された場合に
は、ステップ133〜ステップ137を実行するが、ス
テップ133〜ステップ137は、パルス信号の立ち上
がりを立ち下がりに、T1 をT2 に各々代えると各々ス
テップ113〜ステップ117に対応するので、詳細な
説明は省略する。なお、ステップ133でタイマT2
を記憶することにより、図7(b)に示すように、パル
ス信号の立ち下がり56から次に連続するパルス信号の
立ち下がり56までの時間を記憶することができ、パル
ス信号P2 、P4 ・・・の各々の周期を記憶することが
できる。
If the determination in step 111 is negative, steps 133 to 137 are executed, but in steps 133 to 137, if the rising edge of the pulse signal is changed to the falling edge and T 1 is replaced with T 2 , respectively. Since each corresponds to steps 113 to 117, detailed description thereof will be omitted. By storing the timer T 2 value in step 133, the time from the fall 56 of the pulse signal to the fall 56 of the next continuous pulse signal can be stored, as shown in FIG. 7B. Therefore, each cycle of the pulse signals P 2 , P 4, ... Can be stored.

【0040】以上説明したように本形態によれば、第1
のパルス電極端子及び第2のパルス電極端子の接点部が
劣化等しON状態及びOFF状態の時間の比が1:1か
らずれたとしても、異物の挟み込みがない場合にはパル
ス信号の1周期は変わらないことから、パルス信号の立
ち上がりから次に連続するパルス信号の立ち上がりまで
の時間及びパルス信号の立ち下がりから次に連続するパ
ルス信号の立ち下がりまでの時間も変わらず、正確にパ
ルス信号の周期を検出することができる。
As described above, according to this embodiment, the first
Even if the contact time between the pulse electrode terminal and the second pulse electrode terminal deteriorates and the time ratio of the ON state and the OFF state deviates from 1: 1, one cycle of the pulse signal is obtained if no foreign matter is caught. Does not change, the time from the rise of the pulse signal to the rise of the next continuous pulse signal and the time from the fall of the pulse signal to the fall of the next continuous pulse signal do not change, and the pulse signal The cycle can be detected.

【0041】また、パルス信号の立ち上がりから次に連
続するパルス信号の立ち上がりまでの時間又はパルス信
号の立ち下がりから次に連続するパルス信号の立ち下が
りまでの時間のいずれか、例えば、パルス信号の立ち上
がりから次に連続するパルス信号の立ち上がりまでの時
間を検出すると、図7(c)に示すように、パルス信号
の立ち上がりのみを基準にしたパルス信号S1 、S2
・・・の周期が検出される。これに対し、本形態によれ
ば、パルス信号の立ち上がりから次に連続するパルス信
号の立ち上がりまでの時間及びパルス信号の立ち下がり
から次に連続するパルス信号の立ち下がりまでの時間の
各々を連続して検出していることから、図7(b)に示
すパルス信号の立ち上がりを基準にしたパルス信号
1 、P3 ・・・及び立ち下がりを基準にしたパルス信
号P2 、P4 ・・・の各々の周期が検出される。よっ
て、本形態によれば、図7(c)に示すようにパルス信
号の周期が2回検出されまでに、図7(b)に示すよう
にパルス信号の周期を3回検出することができ、異物の
挟み込みが発生しているか否かを短時間で判断すること
ができる。
Further, either the time from the rise of the pulse signal to the rise of the next continuous pulse signal or the time from the fall of the pulse signal to the fall of the next continuous pulse signal, for example, the rise of the pulse signal When the time from the pulse signal to the next continuous rising edge of the pulse signal is detected, as shown in FIG. 7C, pulse signals S 1 , S 2 ,
The cycle of ... Is detected. On the other hand, according to the present embodiment, the time from the rising of the pulse signal to the rising of the next consecutive pulse signal and the time from the falling of the pulse signal to the falling of the next consecutive pulse signal are each continuous. since it is detected Te, pulse signal P 2 with the pulse signal P 1, P 3 ··· and reference fall relative to the rise of the pulse signal shown in FIG. 7 (b), P 4 ··· Each cycle of is detected. Therefore, according to this embodiment, the period of the pulse signal can be detected three times as shown in FIG. 7B before the period of the pulse signal is detected twice as shown in FIG. 7C. Therefore, it is possible to judge in a short time whether or not a foreign substance is caught.

【0042】以上説明したように本形態では、パルス信
号発生器はON状態及びOFF状態の時間の比を1:1
となるように構成しているが、本発明はこれに限定され
るものでなく、ON状態の時間をOFF状態の時間より
及びOFF状態の時間をON状態の時間より短くなるよ
うに構成してもよい。
As described above, in this embodiment, the pulse signal generator sets the ratio of the ON state time and the OFF state time to 1: 1.
However, the present invention is not limited to this, and the ON state time is shorter than the OFF state time and the OFF state time is shorter than the ON state time. Good.

【0043】すなわち、図8(a)に示す例では、回転
部38Aに、一方側に一部に導体部44が回転部38A
の回転方向と交差する方向(X方向)に挿入された非導
体部44を設けるとともに、他方側に導体部44を設け
るとともに第1パルス電極端子46及び第2パルス電極
端子48の各々の接点部をX方向に配置している。これ
により、第2パルス電極端子48は常に導体部42と接
触するとともに第1パルス電極端子46はモータの1回
転当たりの導体部42と接触する時間が非導体部44と
接触時間より短くなる。よって、図9に示すように、O
N状態の時間がOFF状態の時間より短くなる。
That is, in the example shown in FIG. 8A, the conductor portion 44 is partially provided on one side of the rotating portion 38A.
The non-conductor portion 44 inserted in a direction (X direction) intersecting with the rotation direction of the first pulse electrode terminal 46 and the second pulse electrode terminal 48 is provided. Are arranged in the X direction. As a result, the second pulse electrode terminal 48 is always in contact with the conductor portion 42, and the first pulse electrode terminal 46 is in contact with the conductor portion 42 per revolution of the motor for a shorter time than the non-conductor portion 44. Therefore, as shown in FIG.
The time in the N state is shorter than the time in the OFF state.

【0044】また、図8(b)に示す例では、回転部3
8Aに、一部に導体部44が回転部38Aの回転方向と
交差する方向(X方向)に挿入された非導体部44を設
けるとともに第1パルス電極端子46及び第2パルス電
極端子48の各々の接点部をX方向に配置している。こ
れにより、第1パルス電極端子46及び第2パルス電極
端子48はモータの1回転当たりの導体部42と接触す
る時間が非導体部44と接触時間より短くなる。よっ
て、図9に示すように、ON状態の時間がOFF状態の
時間より短くなる。
Further, in the example shown in FIG. 8B, the rotating portion 3
8A is provided with a non-conductor portion 44 in which a conductor portion 44 is partially inserted in a direction (X direction) intersecting the rotation direction of the rotating portion 38A, and each of the first pulse electrode terminal 46 and the second pulse electrode terminal 48 is provided. The contact points of are arranged in the X direction. As a result, the contact time of the first pulse electrode terminal 46 and the second pulse electrode terminal 48 with the conductor portion 42 per one rotation of the motor is shorter than the contact time with the non-conductor portion 44. Therefore, as shown in FIG. 9, the time in the ON state is shorter than the time in the OFF state.

【0045】図8(a)、図8(b)に示す例は共に図
9に示すようにON状態の時間がOFF状態の時間より
短くなっているが、連続するパルス信号の立ち上がり間
及び立ち下がり間の時間は等しいことから、正確にパル
ス信号の周期を検出することができるとともに、異物の
挟み込みが発生しているか否かを短時間で判断すること
ができる。
In both of the examples shown in FIGS. 8A and 8B, the ON state time is shorter than the OFF state time as shown in FIG. 9, but the continuous pulse signal rises and rises. Since the time between the falling edges is the same, it is possible to accurately detect the period of the pulse signal, and it is possible to determine in a short time whether or not a foreign substance is caught.

【0046】なお、図8(a)、図8(b)の導体部4
2を非導体で構成し、非導体部44を導体で構成して、
OFF状態の時間がON状態の時間より短くなるように
構成してもよい。
The conductor portion 4 shown in FIGS. 8 (a) and 8 (b) is used.
2 is a non-conductor, and the non-conductor part 44 is a conductor,
The time in the OFF state may be shorter than the time in the ON state.

【0047】また、前述した実施の形態では、予め定め
られたしきい値を用いているが、本発明はこれに限定さ
れるものでなく、モータ負荷の変化に対して遅れかつ追
従して変化するしきい値を用いるようにしてもよい。
Further, in the above-mentioned embodiment, the predetermined threshold value is used, but the present invention is not limited to this, and changes with a delay and follow the change of the motor load. You may make it use the threshold value.

【0048】すなわち、電源回路51からモータ22に
は一定電圧が供給されており、ドアガラス20を上昇す
るためのモータ22の回転速度はモータ負荷に対応し、
モータ22の回転速度はパルス信号発生器38により発
生したパルス信号の周期に対応する。よって、パルス信
号の周期はモータ負荷に対応する。
That is, a constant voltage is supplied from the power supply circuit 51 to the motor 22, and the rotation speed of the motor 22 for raising the door glass 20 corresponds to the motor load.
The rotation speed of the motor 22 corresponds to the cycle of the pulse signal generated by the pulse signal generator 38. Therefore, the cycle of the pulse signal corresponds to the motor load.

【0049】ところで、ドアガラス20を上昇するため
のモータ22の回転速度は、脈動等がなければ一定であ
る。従って、パルス信号発生器38からのパルス信号の
周期も一定である。
By the way, the rotation speed of the motor 22 for raising the door glass 20 is constant if there is no pulsation or the like. Therefore, the period of the pulse signal from the pulse signal generator 38 is also constant.

【0050】しかしながら、モータには脈動が生ずるの
が一般的である。よって、この脈動によるモータ負荷が
変化し、パルス信号の周期が変化する。よって、パルス
信号の周期の変化量で本来異物を挟み込んでいないのに
挟み込んでいると誤検出しないように、しきい値を高く
設定する。
However, pulsation is generally generated in the motor. Therefore, the motor load due to this pulsation changes, and the cycle of the pulse signal changes. Therefore, the threshold value is set high so as not to erroneously detect that a foreign object is caught when the foreign object is not caught by the variation of the period of the pulse signal.

【0051】さらに、各パワーウィンドウ装置毎のばら
つき、経時変化、温度等により、ドアガラスを移動させ
るためのレギュレータ機構部等の摩擦係数が大きくな
り、これに伴い、上述した脈動によるパルス信号の周期
の変化量が大きくなり、大きくなったモータ負荷の変化
量で誤検出しないように、しきい値を更に高く設定して
いる。
Furthermore, the coefficient of friction of the regulator mechanism for moving the door glass, etc., increases due to variations in each power window device, changes over time, temperature, etc., and along with this, the period of the pulse signal due to the above-mentioned pulsation. The threshold value is set higher to prevent erroneous detection due to the increased amount of change in the motor load.

【0052】このようにしきい値を高く設定すると、異
物の挟み込みを検出することの可能なモータ負荷が高く
なる。すなわち、上記レギュレータ機構部等の摩擦係数
が小さく、通常のドアガラスの移動に伴うモータ負荷が
小さいときに異物の挟み込みがあった場合にも、しきい
値が高く設定されているため、過負荷であっても過負荷
でないと判断され、過負荷と判断されるモータ負荷が高
くなる。
When the threshold value is set high in this way, the motor load that can detect the entrapment of foreign matter becomes high. In other words, the threshold value is set high even if foreign matter is caught when the friction coefficient of the regulator mechanism is small and the motor load accompanying normal movement of the door glass is small. Even if it is, it is determined that it is not overload, and the motor load that is determined to be overload increases.

【0053】従って、モータ負荷の変化に対して遅れか
つ追従して変化するしきい値を用いれば、脈動によるモ
ータ負荷の変化量で過負荷と判断されないようにしきい
値を高く一定値に設定せずとも、過負荷か否かを適正に
判断できるしきい値がモータ負荷の変化に対して遅れか
つ追従して変化し、過負荷か否かを適正に判断すること
ができ、過負荷と判断されるモータ負荷を低くすること
ができる、という効果が得られる。
Therefore, if a threshold value that changes with a delay and follows the change of the motor load is used, the threshold value should be set to a high constant value so as not to be judged as an overload due to the change amount of the motor load due to pulsation. Even if it is not, it is possible to properly judge whether it is overload or not. It is possible to obtain the effect that the applied motor load can be reduced.

【0054】ところで、メインルーチン(図5)のステ
ップ114で、最も古いパルス信号の周期に代えて今回
検出したパルス信号の周期を記憶している。よって、今
回検出したパルス信号の周期を含んでn個のパルス信号
の周期を記憶している。そこで、ステップ114の後
に、n個のパルス信号の周期の第3の移動平均値を演算
して記憶しておければ、次にメインルーチンが実行され
た場合に、ステップ108とステップ110の間におい
て、記憶した第3の移動平均値に基づいて図10に示す
しきい値を取り込み、ステップ110のしきい値として
用いるようにすることができる。なお、このしきい値
は、前述した脈動によって生ずるパルス信号の周期の変
化量(ノイズ)を越えると共に、過負荷でないと判断で
きる変化量である。なお、図10に示すように、第3の
移動平均値としきい値との関係をマップとして記憶する
ことに限定されず、第3の移動平均値としきい値とを対
応して記憶したデータテーブルを用い、第3の移動平均
値から補完法でしきい値を求めるようにしてもよく、ま
た、第3の移動平均値としきい値との関係を示す関係式
を記憶し、第3の移動平均値及びこの関係式に基づいて
しきい値を求めるようにしてもよい。
By the way, in step 114 of the main routine (FIG. 5), the cycle of the pulse signal detected this time is stored instead of the cycle of the oldest pulse signal. Therefore, the cycle of n pulse signals including the cycle of the pulse signal detected this time is stored. Therefore, if the third moving average value of the cycle of the n pulse signals is calculated and stored after step 114, when the main routine is executed next time, the step between step 108 and step 110 is performed. In, the threshold value shown in FIG. 10 can be fetched based on the stored third moving average value and used as the threshold value in step 110. It should be noted that this threshold value is a change amount that exceeds the change amount (noise) of the cycle of the pulse signal caused by the pulsation described above and that can be determined not to be overload. As shown in FIG. 10, the relationship between the third moving average value and the threshold value is not limited to be stored as a map, and a data table storing the third moving average value and the threshold value in association with each other. May be used to obtain the threshold value from the third moving average value by a complementary method, and a relational expression indicating the relationship between the third moving average value and the threshold value may be stored to store the third moving average value. The threshold value may be obtained based on the average value and this relational expression.

【0055】また、しきい値を取り込むための第3の移
動平均値は、今回取り込んだパルス信号の周期(最新の
パルス信号の周期)を含んでいないことから、しきい値
は、モータ負荷(パルス信号の周期)の変化に遅れかつ
追従して変化する。
Since the third moving average value for fetching the threshold does not include the cycle of the pulse signal captured this time (the cycle of the latest pulse signal), the threshold is the motor load ( It changes with a delay and following the change of the pulse signal period).

【0056】このように、モータ負荷の変化に対して遅
れかつ追従して変化するしきい値を用いれば、本発明
は、次のようになる。
As described above, the present invention is as follows by using the threshold value which changes with delay and follow the change of the motor load.

【0057】モータの回転に同期してパルス信号を発生
するパルス信号発生手段と、前記パルス信号発生手段に
より発生されたパルス信号の立ち上がり及び立ち下がり
を検出する検出手段と、モータ負荷の変化に対して遅れ
かつ追従して変化するしきい値を設定する設定手段と、
前記検出手段により検出された最新の第1のパルス信号
の立ち上がり及び前記第1のパルス信号に連続する第2
のパルス信号の立ち上がりと前記第1のパルス信号の立
ち下がり及び前記第2のパルス信号の立ち下がりとに基
づいてパルス信号の周期を演算する周期演算手段と、前
記周期演算手段により演算された前記第1のパルス信号
の周期に基づいてモータ負荷を検出するモータ負荷検出
手段と、前記モータ負荷検出手段により検出されたモー
タ負荷が前記設定手段により設定さたしきい値より大き
いか否かを判断する判断手段と、前記判断手段による判
断結果が肯定判定である場合にモータの駆動を一定量反
転させて停止する停止手段と、を備えたモータ駆動制御
装置。
A pulse signal generating means for generating a pulse signal in synchronization with the rotation of the motor, a detecting means for detecting the rising and falling edges of the pulse signal generated by the pulse signal generating means, and a change in the motor load. Setting means for setting a threshold that changes with delay and following
The latest rising edge of the first pulse signal detected by the detecting means and the second rising pulse that follows the first pulse signal.
Cycle calculating means for calculating the cycle of the pulse signal based on the rising edge of the pulse signal, the falling edge of the first pulse signal, and the falling edge of the second pulse signal; Motor load detecting means for detecting a motor load based on the cycle of the first pulse signal, and determining whether or not the motor load detected by the motor load detecting means is larger than a threshold value set by the setting means. A motor drive control device comprising: a determination unit for performing a predetermined amount, and a stop unit for reversing and stopping the driving of the motor by a predetermined amount when the determination result by the determination unit is a positive determination.

【0058】なお、前記モータ負荷検出手段は、前記周
期演算手段により演算されかつ前記第1のパルス信号の
周期を含むパルス信号の周期の第1の移動平均値と少な
くとも前記第1の移動平均値のパルス信号の周期より過
去のパルス信号の周期を含む第2の移動平均値との差を
モータ負荷として検出する。
It should be noted that the motor load detection means includes a first moving average value of the cycle of the pulse signal calculated by the cycle calculating means and including the cycle of the first pulse signal, and at least the first moving average value. The difference from the second moving average value including the period of the pulse signal in the past from the period of the pulse signal of is detected as the motor load.

【0059】更に、前記設定手段は、第1のパルス信号
の周期を除くパルス信号の周期の第3の移動平均値に基
づいてしきい値を設定するようにしてもよい。このよう
に第一パルス信号の周期を除いているので、第1の移動
平均値は、モータ負荷の変化に対応して変化するが、追
従して変化する。
Further, the setting means may set the threshold value based on the third moving average value of the pulse signal period excluding the first pulse signal period. Since the period of the first pulse signal is excluded in this way, the first moving average value changes in response to a change in the motor load, but changes following it.

【0060】また、前述した実施の形態では、検出され
たパルス信号の周期を100個記憶しているが、この値
は100に限定されるものではない。また、第1及び第
2の移動平均値は3個のパルス信号の周期の移動平均値
であるが、この値は3個に限定されず、各々3個以外で
もよく、各々異なる個数のパルス信号の周期の移動平均
値でもよい。
In the above-described embodiment, 100 detected pulse signal periods are stored, but the value is not limited to 100. Also, the first and second moving average values are moving average values of the period of three pulse signals, but this value is not limited to three and may be other than three, and different numbers of pulse signals may be used. It may be a moving average value of the period.

【0061】次に、本発明の第2の実施の形態を説明す
る。本形態の構成は前述した第1の実施の形態と同様で
あるので、その説明を省略する。
Next, a second embodiment of the present invention will be described. The configuration of this embodiment is the same as that of the above-described first embodiment, and the description thereof is omitted.

【0062】次に、本形態の制御ルーチンを、図11に
示したフローチャートに沿って説明する。前述したよう
にパルス信号の立ち上がり54及び立ち下がり56が検
出されたときの各々で、本ルーチンがスタートし、ステ
ップ102で、パルス信号の周期Pn を検出する。な
お、パルス信号Pn の周期の検出処理は、前述した第1
の実施の形態と同様であるので、その説明を省略する。
Next, the control routine of this embodiment will be described with reference to the flow chart shown in FIG. As described above, this routine is started each time the rising edge 54 and the falling edge 56 of the pulse signal are detected, and in step 102, the period P n of the pulse signal is detected. The process of detecting the cycle of the pulse signal P n is performed by the above-described first
Since it is the same as the embodiment described above, the description thereof will be omitted.

【0063】次のステップ124で、移動平均値P0
演算する。ここで、移動平均値P0を説明する。制御回
路50は、本ルーチンが実行されて検出されたパルス信
号の周期をn個(なお、本形態では、16個、なお、1
6個に限定されない)記憶している。そして、移動平均
値P0 は、ステップ102で得られたパルス信号Pn
周期を含まない過去の複数のパルス信号の周期(本形態
では、16個(Pn-16、Pn-15、・・・Pn-1 ))の移
動平均値である。
At the next step 124, the moving average value P 0 is calculated. Here, the moving average value P 0 will be described. The control circuit 50 executes n cycles of the pulse signal detected by executing this routine (16 cycles in this embodiment, 1 cycle in this case).
(Not limited to 6). The moving average value P 0 is the period of a plurality of past pulse signals that does not include the period of the pulse signal P n obtained in step 102 (16 (P n-16 , P n-15 , ... P n-1 )) is a moving average value.

【0064】ステップ126で、パルス信号Pn から移
動平均値P0 を減算して、差Cを求める。
At step 126, the moving average value P 0 is subtracted from the pulse signal P n to obtain the difference C.

【0065】ステップ128で、差Cがしきい値Thよ
り大きいか否かを判断する。なお、しきい値Thは、図
12に示すように、移動平均値P0 に対応して予め記憶
された関数であり、マップとなって記憶されている。よ
って、ステップ128では、移動平均値P0 に基づいて
このマップからしきい値Thを取り込むと共に差Cがこ
のしきい値Thより大きいか否かを判断する。なお、マ
ップとして記憶する場合に限定されず、データテーブル
となって記憶され、移動平均値P0 に基づいて補完法に
よりしきい値Thを求めるようにしてもよく、移動平均
値P0 としきい値Thとの関係を示す関係式を記憶し、
この関係式及び移動平均値P0 に基づいてしきい値Th
を求めるようにしてもよい。
At step 128, it is determined whether the difference C is larger than the threshold Th. The threshold value Th is a function stored in advance corresponding to the moving average value P 0 as shown in FIG. 12, and is stored as a map. Therefore, in step 128, the threshold value Th is fetched from this map based on the moving average value P 0, and it is determined whether or not the difference C is larger than this threshold value Th. The present invention is not limited to the case of storing as a map, is stored in a data table may be calculated threshold Th by complementation method based on the moving average value P 0, the moving average value P 0 and the threshold The relational expression indicating the relation with the value Th is stored,
Based on this relational expression and the moving average value P 0 , the threshold value Th
May be requested.

【0066】差Cがしきい値Thより大きい場合には、
過負荷と判断することができ、ステップ130でモータ
を一定量反転させて停止してステップ132に進む。な
お、差Cがしきい値Thより大きくない場合には、ステ
ップ132に進む。
When the difference C is larger than the threshold Th,
It can be determined that it is overloaded, and in step 130, the motor is reversed by a certain amount and stopped, and the process proceeds to step 132. If the difference C is not larger than the threshold Th, the process proceeds to step 132.

【0067】ステップ132では、最も古いパルス信号
の周期(Pn-16、なお、本ルーチンが実行される毎に、
n-15、Pn-14、・・・と変更される)に代えて今回検
出したパルス信号の周期Pn を記憶して、本ルーチンを
終了する。
In step 132, the cycle of the oldest pulse signal (P n-16 , each time this routine is executed,
P n-15 , P n-14 , ...), the cycle P n of the pulse signal detected this time is stored, and this routine ends.

【0068】以上説明した第1及び第2の実施の形態で
は、2つの摺動接点を備えたパルス信号発生器を用いて
いるが、本発明はこれに限定されるものでなく、モータ
軸に設けられたロータリーエンコーダをパルス信号発生
手段として用いてもよい。
In the above-described first and second embodiments, the pulse signal generator having two sliding contacts is used, but the present invention is not limited to this, and a motor shaft is provided. The provided rotary encoder may be used as the pulse signal generating means.

【0069】[0069]

【発明の効果】以上説明したように本発明は、パルス信
号の周期を正確に求めることができると共にモータの過
負荷を短時間に判断することができる、という効果を有
する。
As described above, the present invention has the effect that the period of the pulse signal can be accurately obtained and the overload of the motor can be determined in a short time.

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

【図1】パワーウィンドウマスタスイッチ及びドアスイ
ッチの取り付け位置を示す図である。
FIG. 1 is a diagram showing mounting positions of a power window master switch and a door switch.

【図2】パワーウィンドウ装置のドアガラスを昇降させ
るための構造を示した説明図である。
FIG. 2 is an explanatory view showing a structure for raising and lowering a door glass of a power window device.

【図3】第1の実施の形態のモータ駆動制御装置が適用
されたパワーウィンドウ装置の制御系を示したブロック
図である。
FIG. 3 is a block diagram showing a control system of a power window device to which the motor drive control device of the first embodiment is applied.

【図4】パルス信号発生器の詳細を示した図である。FIG. 4 is a diagram showing details of a pulse signal generator.

【図5】本形態のメインルーチンを示したフローチャー
トである。
FIG. 5 is a flowchart showing a main routine of this embodiment.

【図6】メインルーチンのステップ102のサブルーチ
ンを示したフローチャートである。
FIG. 6 is a flowchart showing a subroutine of step 102 of the main routine.

【図7】パルス信号の周期の検出原理を説明する説明図
である。
FIG. 7 is an explanatory diagram illustrating a principle of detecting a cycle of a pulse signal.

【図8】パルス信号発生器の変形例である。FIG. 8 is a modification of the pulse signal generator.

【図9】変形例のパルス信号発生器からのパルス信号の
周期の検出原理を説明する説明図である。
FIG. 9 is an explanatory diagram illustrating a principle of detecting a cycle of a pulse signal from a pulse signal generator of a modified example.

【図10】本形態の変形例にかかる第3の移動平均値
と、パルス信号の周期の変化量及びしきい値との関係を
示した線図である。
FIG. 10 is a diagram showing a relationship between a third moving average value according to a modified example of the present embodiment, a variation amount of a period of a pulse signal, and a threshold value.

【図11】第2の実施の形態のメインルーチンを示した
フローチャートである。
FIG. 11 is a flowchart showing a main routine of the second embodiment.

【図12】移動平均値としきい値との関係を示したマッ
プである。
FIG. 12 is a map showing a relationship between a moving average value and a threshold value.

【図13】従来のパルス信号の周期の検出原理を説明す
る説明図である。
FIG. 13 is an explanatory diagram illustrating a conventional principle of detecting a cycle of a pulse signal.

【図14】摺動接点が劣化した場合にON、OFFのパ
ルス信号の周期が異なる原理を説明する説明図である。
FIG. 14 is an explanatory diagram illustrating the principle that the periods of ON and OFF pulse signals differ when the sliding contact deteriorates.

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

22 制御回路 38 パルス信号発生器 42 導体部 44 非導体部 46 第1パルス電極接点 48 第2パルス電極接点 51 電源回路 22 control circuit 38 pulse signal generator 42 conductor part 44 non-conductor part 46 first pulse electrode contact 48 second pulse electrode contact 51 power supply circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 モータの回転に同期してパルス信号を発
生するパルス信号発生手段と、 前記パルス信号発生手段により発生されたパルス信号の
立ち上がり及び立ち下がりを検出する検出手段と、 前記検出手段により検出された最新の第1のパルス信号
の立ち上がり及び前記第1のパルス信号に連続する第2
のパルス信号の立ち上がりと前記第1のパルス信号の立
ち下がり及び前記第2のパルス信号の立ち下がりとに基
づいてパルス信号の周期を演算する周期演算手段と、 前記周期演算手段により演算された前記第1のパルス信
号の周期に基づいてモータ負荷を検出するモータ負荷検
出手段と、 前記モータ負荷検出手段により検出されたモータ負荷が
しきい値より大きいか否かを判断する判断手段と、 前記判断手段による判断結果が肯定判定である場合にモ
ータの駆動を一定量反転させて停止する停止手段と、 を備えたモータ駆動制御装置。
1. A pulse signal generating means for generating a pulse signal in synchronization with rotation of a motor, a detecting means for detecting rising and falling edges of a pulse signal generated by the pulse signal generating means, and the detecting means. The detected latest rising edge of the first pulse signal and the second rising edge that is continuous with the first pulse signal.
Cycle calculating means for calculating the cycle of the pulse signal based on the rising edge of the pulse signal, the falling edge of the first pulse signal, and the falling edge of the second pulse signal; A motor load detecting means for detecting a motor load based on the cycle of the first pulse signal; a judging means for judging whether or not the motor load detected by the motor load detecting means is larger than a threshold value; A motor drive control device comprising: a stop unit that reverses and stops the drive of the motor by a predetermined amount when the result of the determination by the unit is a positive determination.
【請求項2】 前記モータ負荷検出手段は、前記周期演
算手段により演算されかつ前記第1のパルス信号の周期
を含むパルス信号の周期の第1の移動平均値と少なくと
も前記第1の移動平均値のパルス信号の周期より過去の
パルス信号の周期を含む第2の移動平均値との差をモー
タ負荷として検出することを特徴とする請求項1記載の
モータ駆動制御装置。
2. The motor load detection means includes a first moving average value of a cycle of a pulse signal calculated by the cycle calculating means and including a cycle of the first pulse signal, and at least the first moving average value. The motor drive control device according to claim 1, wherein a difference between the pulse signal cycle and the second moving average value including a cycle of the pulse signal in the past is detected as a motor load.
【請求項3】 前記モータ負荷検出手段は、前記周期演
算手段により演算された前記第1のパルス信号の周期と
該第1のパルス信号の周期を含まない過去のパルス信号
の周期の移動平均値との差をモータ負荷として検出する
ことを特徴とする請求項1記載のモータ駆動制御装置。
3. The motor load detection means is a moving average value of the cycle of the first pulse signal calculated by the cycle calculation means and the cycle of past pulse signals not including the cycle of the first pulse signal. 2. The motor drive control device according to claim 1, wherein a difference between and is detected as a motor load.
JP29242195A 1995-11-10 1995-11-10 Motor drive control device Expired - Lifetime JP3657671B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29242195A JP3657671B2 (en) 1995-11-10 1995-11-10 Motor drive control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29242195A JP3657671B2 (en) 1995-11-10 1995-11-10 Motor drive control device

Publications (2)

Publication Number Publication Date
JPH09137670A true JPH09137670A (en) 1997-05-27
JP3657671B2 JP3657671B2 (en) 2005-06-08

Family

ID=17781576

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29242195A Expired - Lifetime JP3657671B2 (en) 1995-11-10 1995-11-10 Motor drive control device

Country Status (1)

Country Link
JP (1) JP3657671B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000248834A (en) * 1999-02-26 2000-09-12 Toyo Denso Co Ltd Power window device
GB2384374A (en) * 2002-01-16 2003-07-23 Defond Mfg Ltd Controller for motor driven device
EP1758223A3 (en) * 2005-08-23 2014-01-22 OMRON Automotive Electronics Co., Ltd. Motor control apparatus
JP2014103836A (en) * 2012-11-19 2014-06-05 Samsung Electro-Mechanics Co Ltd Motor driving control apparatus, motor driving control method and motor using the same
JP2020185174A (en) * 2019-05-14 2020-11-19 トーソー株式会社 Control device of solar shading device, control method of solar shading device, and control program of solar shading device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000248834A (en) * 1999-02-26 2000-09-12 Toyo Denso Co Ltd Power window device
GB2384374A (en) * 2002-01-16 2003-07-23 Defond Mfg Ltd Controller for motor driven device
GB2384374B (en) * 2002-01-16 2005-08-17 Defond Mfg Ltd Controller for motor driven device
EP1758223A3 (en) * 2005-08-23 2014-01-22 OMRON Automotive Electronics Co., Ltd. Motor control apparatus
JP2014103836A (en) * 2012-11-19 2014-06-05 Samsung Electro-Mechanics Co Ltd Motor driving control apparatus, motor driving control method and motor using the same
JP2020185174A (en) * 2019-05-14 2020-11-19 トーソー株式会社 Control device of solar shading device, control method of solar shading device, and control program of solar shading device

Also Published As

Publication number Publication date
JP3657671B2 (en) 2005-06-08

Similar Documents

Publication Publication Date Title
JP4487588B2 (en) Opening and closing body control device
US7812554B2 (en) Control device for opening/closing member
TW200402372A (en) Entrapment detecting device for an opening/closing member
KR20040091587A (en) Window glass obstruction detector
JP2005351042A (en) Opening and closing body control device
JP2000199373A (en) Method of detecting nip in power window device
JPH09137670A (en) Drive controlling device for motor
JPH06327279A (en) Electrically driven device
JP3675622B2 (en) Power window device pinching detection method
JP2000152677A (en) Device for detecting presence of pinching of window glass
JP3283165B2 (en) Motor drive control device
JPH0932414A (en) Window opening/closing control device
JP2954471B2 (en) Opening / closing body opening / closing control method
JP3268603B2 (en) Opening / closing body opening / closing control device
JPH07166761A (en) Power window drive control device
JPH11147418A (en) Control unit for driving power window
JPH09112127A (en) Motor drive control device
JP3121724B2 (en) Vehicle window glass opening and closing device
JPH07310473A (en) Power window drive control device
JPH08260811A (en) Position detecting apparatus for moving body
JPH09219984A (en) Motor drive controller
JP4794755B2 (en) Control method to prevent pinching of opening and closing body
JP3273045B2 (en) Automotive power window control method
JPH07238742A (en) Drive controller of opening/closing body
JP4399841B2 (en) Power window equipment

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040427

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040520

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: 20050308

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050310

R150 Certificate of patent 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: 20090318

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100318

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100318

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110318

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110318

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120318

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130318

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20140318

Year of fee payment: 9

EXPY Cancellation because of completion of term