JP2006217697A - Speed controller for motor - Google Patents

Speed controller for motor Download PDF

Info

Publication number
JP2006217697A
JP2006217697A JP2005026044A JP2005026044A JP2006217697A JP 2006217697 A JP2006217697 A JP 2006217697A JP 2005026044 A JP2005026044 A JP 2005026044A JP 2005026044 A JP2005026044 A JP 2005026044A JP 2006217697 A JP2006217697 A JP 2006217697A
Authority
JP
Japan
Prior art keywords
speed
motor
edge
acquired
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005026044A
Other languages
Japanese (ja)
Inventor
Yukihiro Saito
幸弘 齋藤
Noriyoshi Machii
紀善 町井
Hiroshi Ueno
弘 植野
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2005026044A priority Critical patent/JP2006217697A/en
Publication of JP2006217697A publication Critical patent/JP2006217697A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To attain smooth and highly precise feedback control by finely calculating motor speed. <P>SOLUTION: In detecting the edge of a pulse generated by the rotation of a motor and calculating a motor speed based on the edge, estimated speeds V<SB>01</SB>, V<SB>02</SB>and V<SB>03</SB>corresponding to elapsed times T<SB>01</SB>, T<SB>02</SB>and T<SB>03</SB>from a time point t<SB>0</SB>of a previous edge E1 at a predetermined sampling cycle are calculated until the next edge E2 has been obtained, if the next edge E2 is not obtained in a period from a time when the previous edge E1 is obtained to a time when a time of a previous edge cycle T<SB>0</SB>is reached. Thus, feedback control is performed using the estimated speeds. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、例えば車の後部扉や窓の開閉に用いられるモータの速度を制御する装置に関する。   The present invention relates to an apparatus for controlling the speed of a motor used for opening and closing a rear door or window of a vehicle, for example.

モータの制御装置は、一般に、ロータリエンコーダ、パルス検出回路、速度制御回路およびモータ駆動回路から構成されている。ロータリエンコーダは、モータの回転量に応じたパルスを出力する。例えば、窓が0.75mm移動する毎に、ロータリエンコーダから1パルスが出力される。パルス検出回路は、ロータリエンコーダから出力されたパルスを計数して、モータの単位時間あたりの回転量を離散的に検出する。速度制御回路は、パルス検出回路で検出された単位時間あたりの回転量に基づいて速度を算出するとともに、算出された速度と予め定められた目標速度とを比較し、この比較結果に基づいてモータ駆動回路に制御量を送る。モータ駆動回路は、受取った制御量に従ってモータを駆動する。これにより、モータは目標速度に沿うように速度制御される。   A motor control device generally includes a rotary encoder, a pulse detection circuit, a speed control circuit, and a motor drive circuit. The rotary encoder outputs a pulse corresponding to the rotation amount of the motor. For example, every time the window moves 0.75 mm, one pulse is output from the rotary encoder. The pulse detection circuit counts the pulses output from the rotary encoder and discretely detects the amount of rotation of the motor per unit time. The speed control circuit calculates the speed based on the rotation amount per unit time detected by the pulse detection circuit, compares the calculated speed with a predetermined target speed, and based on the comparison result, the motor Send control amount to drive circuit. The motor drive circuit drives the motor according to the received control amount. Thereby, the speed of the motor is controlled so as to follow the target speed.

下記の特許文献1、特許文献2には、モータの速度制御を正確に行えるようにするための技術が開示されている。特許文献1においては、モータの回転速度に応じて発生するFG信号の所定周期中に、モータを定速回転させるのに必要な基準信号が存在するか否かを判定し、断線等が原因で基準信号が存在しない場合は、駆動制御信号を出力してモータへの駆動信号の供給を停止することにより、モータが逆回転暴走して誤動作するのを防止している。特許文献2においては、モータの回転周期に比例したパルスを出力する回転検出手段からの出力パルスの間隔が第1の時間より長い場合はモータを加速し、出力パルスの間隔が第1の時間より短い場合はモータの加速を停止または減速することで、モータを定速制御するとともに、加速を停止または減速しているときに、出力パルスの間隔が第2の時間より長い場合はモータの加速を行うことで、モータに十分な慣性力がなく停止制御をすると止まってしまう場合でも、定速制御を継続できるようにしている。   The following Patent Document 1 and Patent Document 2 disclose technologies for enabling accurate motor speed control. In Patent Document 1, it is determined whether or not there is a reference signal necessary for rotating the motor at a constant speed during a predetermined period of the FG signal generated according to the rotation speed of the motor. When there is no reference signal, a drive control signal is output to stop supplying the drive signal to the motor, thereby preventing the motor from malfunctioning due to reverse rotation runaway. In Patent Document 2, when the interval between the output pulses from the rotation detecting means that outputs a pulse proportional to the rotation period of the motor is longer than the first time, the motor is accelerated, and the interval between the output pulses is greater than the first time. If it is short, the motor acceleration is stopped or decelerated to control the motor at a constant speed, and when the acceleration is stopped or decelerated, if the output pulse interval is longer than the second time, the motor is accelerated. By doing so, constant speed control can be continued even if the motor does not have sufficient inertial force and stops if stop control is performed.

特開平5−111277号公報(段落番号0005〜0008)Japanese Patent Laid-Open No. 5-111277 (paragraph numbers 0005 to 0008) 特開平7−154989号公報(段落番号0005〜0007)JP 7-154989 A (paragraph numbers 0005 to 0007)

ところで、モータの速度制御装置において、ロータリエンコーダから出力されるパルスに基づいてモータの速度を算出する場合、パルスの立上りおよび立下りのエッジを検出することによりパルスの周期を計測し、この周期からモータの速度を求める方法がある。図6はこの原理を示した図である。ここでは、サンプリング周期は5msであり、t,t,tのタイミングでパルスのエッジ情報が取得される。エッジE1は時刻tで取得され、この時点でパルスの周期T(エッジE0からエッジE1までの時間)に基づき速度V=1/Tが算出される。なお、この速度Vは正確には周波数を表している(以下のV,Vも同様)。次のエッジE2は、タイミングtで取得され、この時点でパルスの周期T(エッジE1からエッジE2までの時間)に基づき速度V=1/Tが算出される。その次のエッジE3は、タイミングtで取得され、この時点でパルスの周期T(エッジE2からエッジE3までの時間)に基づき速度V=1/Tが算出される。図6では、T<T<Tの関係にあることから、モータの速度が低下していることになる。 By the way, in the motor speed control device, when calculating the motor speed based on the pulse output from the rotary encoder, the pulse cycle is measured by detecting the rising and falling edges of the pulse, and from this cycle There is a method for obtaining the speed of the motor. FIG. 6 shows this principle. Here, the sampling period is 5 ms, and pulse edge information is acquired at timings t 0 , t 1 , and t 2 . Edge E1 is acquired at time t 0, the speed V 0 = 1 / T 0 on the basis of the period of the pulse T 0 (time from the edge E0 to the edge E1) is calculated at this point. Incidentally, the velocity V 0 exactly (same V 1, V 2 below) representing the frequency. Next edge E2 is obtained at timing t 1, the speed V 1 = 1 / T 1 on the basis of the period T 1 of the pulse (the time from the edge E1 to the edge E2) are calculated in this time. The next edge E3 is acquired at timing t 2, the speed V 2 = 1 / T 2 on the basis of the cycle of the pulse T 2 (time from the edge E2 to the edge E3) is calculated at this point. In FIG. 6, since the relationship of T 0 <T 1 <T 2 is satisfied, the speed of the motor is reduced.

図6の速度算出方法では、例えばエッジE1が取得された時点tで速度Vが算出され、次のエッジE2が取得されるまでは、エッジE1の取得時点tで得られた速度Vが保持され、エッジE2が取得された時点tで、新たな速度Vが算出されるが、実際には、エッジE1からエッジE2までの区間においても速度は変化している。しかるに、図6の場合は、この変化している速度値をフィードバック制御に反映することができないので、制御量が離散的で粗くなり、なめらかで高精度な速度制御を行えないという問題がある。また、モータが停止してパルスのエッジが取得できなくなった場合は、速度制御が不可能になるという問題がある。さらに、窓などの開閉体を駆動するモータの場合は、開閉体に異物が挟まってモータ速度が低下しても、エッジが取得されるまでは速度減少量が算出されないため、挟み込みの検知が遅れるという問題がある。 The speed calculation method of FIG. 6, for example, the edge E1 velocity V 0 at time t 0 which is acquired is calculated, until the next edge E2 is obtained, the speed obtained at the acquisition time t 0 of the edge E1 V At time t 1 when 0 is held and the edge E2 is acquired, a new speed V 1 is calculated. In practice, however, the speed also changes in the section from the edge E1 to the edge E2. However, in the case of FIG. 6, since the changing speed value cannot be reflected in the feedback control, there is a problem that the control amount becomes discrete and rough, and smooth and highly accurate speed control cannot be performed. Further, when the motor stops and the edge of the pulse cannot be acquired, there is a problem that speed control becomes impossible. Furthermore, in the case of a motor that drives an opening / closing body such as a window, even if a foreign object is caught in the opening / closing body and the motor speed is reduced, the speed reduction amount is not calculated until the edge is acquired, so the detection of the jamming is delayed. There is a problem.

本発明は、上記のような課題を解決するものであって、その目的とするところは、モータの速度をきめ細かく算出することにより、なめらかで高精度なフィードバック制御を行えるようにすることにある。本発明の他の目的は、モータの回転によるパルスのエッジが取得できなくなっても速度制御を可能とすることにある。本発明のさらに他の目的は、開閉体に異物が挟み込まれたことを速やかに検知してモータを停止制御できるようにすることにある。   The present invention solves the above-mentioned problems, and an object of the present invention is to enable smooth and highly accurate feedback control by finely calculating the speed of the motor. Another object of the present invention is to enable speed control even if a pulse edge due to rotation of a motor cannot be acquired. Still another object of the present invention is to quickly detect that a foreign object has been caught in the opening / closing body and to control the stop of the motor.

本発明に係るモータの速度制御装置は、モータの回転により発生したパルスのエッジを検出する検出手段と、この検出手段で検出されたパルスのエッジに基づきモータの速度を算出する速度算出手段と、この速度算出手段で算出された速度を予め定められた目標値と比較して、当該速度が目標値となるようにモータを制御する制御手段とを備える。速度算出手段は、パルスの先のエッジが取得されてから所定時間内に次のエッジが取得されない場合に、次のエッジが取得されるまでの間、所定のタイミングで、先のエッジの取得時点からの経過時間に応じた推定速度を算出する。制御手段は、所定時間が経過してから次のエッジの取得時点までの区間において、推定速度と目標値とに基づきモータの速度を制御する。   A motor speed control device according to the present invention includes a detection unit that detects an edge of a pulse generated by rotation of the motor, a speed calculation unit that calculates a speed of the motor based on the edge of the pulse detected by the detection unit, Control means for controlling the motor so that the speed calculated by the speed calculating means is compared with a predetermined target value and the speed becomes the target value. When the next edge is not acquired within a predetermined time after the previous edge of the pulse is acquired, the speed calculation means obtains the previous edge acquisition time at a predetermined timing until the next edge is acquired. The estimated speed corresponding to the elapsed time from is calculated. The control means controls the speed of the motor based on the estimated speed and the target value in a section from when the predetermined time has elapsed until the next edge is acquired.

速度算出手段でモータ速度を算出するにあたっては、パルスの周期(エッジからエッジまでの時間)に基づいて速度を算出することができる。この場合、周期の逆数である周波数がモータ速度となる。したがって、本発明の速度算出手段には、周期算出手段や周波数算出手段も含まれる。   When the motor speed is calculated by the speed calculation means, the speed can be calculated based on the pulse period (time from edge to edge). In this case, the frequency that is the reciprocal of the cycle is the motor speed. Therefore, the speed calculation means of the present invention includes a period calculation means and a frequency calculation means.

本発明においては、先のエッジが取得されてから所定時間内に次のエッジが取得されなければ、次のエッジが取得されるまでの間、先のエッジの取得時点からの経過時間に応じた推定速度が算出される。そして、この推定速度と目標値とを用いてフィードバック制御が行われるので、エッジ間で変化する速度をフィードバック制御に反映することができ、これによって、なめらかで高精度な速度制御を行うことができる。また、モータの負荷が大きいために低速運転時にモータが停止してしまい、パルスのエッジが取得できなくなった場合でも、速度の推定演算が行われることによってフィードバック制御が可能となり、モータを正常に運転することができる。   In the present invention, if the next edge is not acquired within a predetermined time after the previous edge is acquired, the time corresponding to the elapsed time from the acquisition time of the previous edge is acquired until the next edge is acquired. An estimated speed is calculated. Since the feedback control is performed using the estimated speed and the target value, the speed changing between the edges can be reflected in the feedback control, thereby enabling smooth and highly accurate speed control. . Even if the motor stops at low speed due to a heavy motor load and the pulse edge cannot be acquired, feedback control is possible by performing the speed estimation calculation, and the motor operates normally. can do.

本発明において、先のエッジが取得されてからの所定時間は、たとえば、先のエッジとそれより1つ前のエッジとの間の時間(本発明では、これを「前回エッジ周期」という。)に設定される。すなわち、先のエッジの取得後、前回エッジ周期に相当する時間に至っても次のエッジが取得されない場合に、上述した先のエッジの取得時点からの経過時間に応じた推定速度が算出される。   In the present invention, the predetermined time after the previous edge is acquired is, for example, the time between the previous edge and the previous edge (in the present invention, this is referred to as “previous edge period”). Set to That is, when the next edge is not acquired after the previous edge has been acquired, the estimated speed corresponding to the elapsed time from the acquisition time of the previous edge is calculated.

この場合、速度算出手段が一定のサンプリング周期でモータの速度を算出することで、先のエッジが取得されてから所定時間(前回エッジ周期)に達するまでは、サンプリングのたびに前回エッジ周期に基づいて速度を算出することができる。また、所定時間(前回エッジ周期)が経過した後は、次のエッジが取得されるまでの間、先のエッジの取得時点から各サンプリング時点までの時間に基づいて推定速度を計算することができる。   In this case, the speed calculation means calculates the speed of the motor at a constant sampling period, and based on the previous edge period for each sampling until the predetermined time (previous edge period) is reached after the previous edge is acquired. Speed can be calculated. In addition, after a predetermined time (previous edge cycle) has elapsed, until the next edge is acquired, the estimated speed can be calculated based on the time from the acquisition time of the previous edge to each sampling time point. .

本発明は、車両の後部扉を開閉するためのモータの速度を加速・定速・減速の複数段階に制御する装置に適用することができる。この場合、本発明に係るモータの速度制御装置は、複数段階のそれぞれに対応して予め定められた速度の目標値を記憶した記憶手段と、モータの回転により発生したパルスのエッジを検出する検出手段と、この検出手段で検出されたパルスのエッジに基づきモータの速度を算出する速度算出手段と、この速度算出手段で算出されたモータの速度に対応する後部扉の先端速度を、記憶手段に記憶されている所定の目標値と比較して、当該先端速度が目標値となるようにモータを制御する制御手段とを備える。速度算出手段は、モータが減速状態にあって、かつ、パルスの先のエッジが取得されてから所定時間内に次のエッジが取得されない場合に、次のエッジが取得されるまでの間、所定のタイミングで、先のエッジの取得時点からの経過時間に応じた推定速度を算出する。制御手段は、上記所定時間が経過してから次のエッジの取得時点までの区間において、推定速度と目標値とに基づきモータの速度を制御する。   The present invention can be applied to an apparatus that controls the speed of a motor for opening and closing a rear door of a vehicle in a plurality of stages of acceleration, constant speed, and deceleration. In this case, the motor speed control device according to the present invention includes a storage unit that stores a target value of a predetermined speed corresponding to each of a plurality of stages, and a detection that detects an edge of a pulse generated by the rotation of the motor. Means, a speed calculating means for calculating the speed of the motor based on the edge of the pulse detected by the detecting means, and the tip speed of the rear door corresponding to the motor speed calculated by the speed calculating means in the storage means. Control means for controlling the motor so that the tip speed becomes the target value compared with the stored predetermined target value. The speed calculation means is a predetermined time until the next edge is acquired when the motor is in a deceleration state and the next edge is not acquired within a predetermined time after the previous edge of the pulse is acquired. At this timing, the estimated speed corresponding to the elapsed time from the acquisition time of the previous edge is calculated. The control means controls the speed of the motor based on the estimated speed and the target value in a section from when the predetermined time has elapsed until the next edge is acquired.

これによると、後部扉が全開位置(または全閉位置)に近づいて扉の先端速度が減少する区間において、次のパルスエッジが取得されるまでの時間が長くなった場合でも、推定速度を用いてフィードバック制御を行うことができるので、先端速度をなめらかに精度良く制御することができる。   According to this, the estimated speed is used even when the time until the next pulse edge is long in the section where the rear door approaches the fully open position (or the fully closed position) and the tip speed of the door decreases. Therefore, the tip speed can be controlled smoothly and accurately.

また、本発明は、開閉体を駆動するためのモータの速度を制御するとともに、開閉体に異物が挟み込まれたことを検知する装置にも適用することができる。この場合、本発明に係るモータの速度制御装置は、挟み込みを検知するための閾値を記憶した記憶手段と、モータの回転により発生するパルスのエッジを検出する検出手段と、この検出手段で検出されたパルスのエッジに基づきモータの速度を算出する速度算出手段と、この速度算出手段で算出されたモータの速度の変動量を算出する変動量算出手段と、この変動量算出手段で算出された速度変動量を記憶手段に記憶されている閾値と比較し、この比較結果に基づいて開閉体に異物が挟み込まれたことを検知した場合にモータを停止させるように制御する制御手段とを備える。速度算出手段は、パルスの先のエッジが取得されてから次のエッジが取得されるまでの間、所定のタイミングで、先のエッジの取得時点からの経過時間に応じた推定速度を算出する。変動量算出手段は、速度算出手段が算出した推定速度に基づいてモータ速度の推定変動量を算出する。制御手段は、推定変動量と閾値とに基づき異物の挟み込みを検知して、モータを停止制御する。   The present invention can also be applied to an apparatus that controls the speed of a motor for driving the opening / closing body and detects that a foreign object has been caught in the opening / closing body. In this case, the speed control device for a motor according to the present invention includes a storage unit that stores a threshold for detecting pinching, a detection unit that detects an edge of a pulse generated by the rotation of the motor, and the detection unit. Speed calculating means for calculating the speed of the motor based on the edge of the pulse, fluctuation amount calculating means for calculating the fluctuation amount of the motor speed calculated by the speed calculating means, and speed calculated by the fluctuation amount calculating means Control means for comparing the amount of fluctuation with a threshold value stored in the storage means and controlling the motor to stop when it is detected that a foreign object is caught in the opening / closing body based on the comparison result. The speed calculation means calculates an estimated speed corresponding to the elapsed time from the acquisition time of the previous edge at a predetermined timing from when the previous edge of the pulse is acquired until the next edge is acquired. The fluctuation amount calculating means calculates an estimated fluctuation amount of the motor speed based on the estimated speed calculated by the speed calculating means. The control means detects the trapping of the foreign matter based on the estimated fluctuation amount and the threshold value, and stops the motor.

これによると、先のエッジが取得されてから次のエッジが取得されるまでの間において、先のエッジの取得時点からの経過時間に応じた推定速度が算出され、この推定速度に基づいて得られる速度の推定変動量と閾値とを比較することにより、挟み込みの検知が行われる。このため、次のエッジの取得までに挟み込みを検知してモータを停止制御することが可能となり、エッジ取得後に挟み込み検知を行う従来の場合に比べて、早い段階で挟み込みを検知することができる。また、剛体等の挟み込みによりモータが回転不能となり、パルスのエッジが検出できなくなった場合でも、速度の推定演算が行われることにより挟み込みの検知が可能となる。   According to this, an estimated speed corresponding to the elapsed time from the acquisition time of the previous edge is calculated from the acquisition of the previous edge to the acquisition of the next edge, and obtained based on this estimated speed. The trapping is detected by comparing the estimated speed fluctuation amount and the threshold value. For this reason, it becomes possible to stop the motor by detecting the pinching until the next edge is acquired, and it is possible to detect the pinching at an earlier stage than in the conventional case in which pinching is detected after the edge is acquired. Further, even when the motor cannot be rotated due to the pinching of a rigid body or the like and the edge of the pulse cannot be detected, the pinching can be detected by performing the speed estimation calculation.

本発明によれば、パルスのエッジ間でモータの速度をきめ細かく算出することにより、なめらかで高精度なフィードバック制御を行うことができる。また、パルスのエッジが取得できなくなった場合でも、推定速度を用いて速度制御を行うことができる。さらに、開閉体に異物が挟み込まれたことを速やかに検知して、モータを停止制御することが可能となる。   According to the present invention, smooth and highly accurate feedback control can be performed by finely calculating the motor speed between the edges of the pulse. Further, even when the pulse edge cannot be acquired, the speed control can be performed using the estimated speed. Furthermore, it is possible to quickly detect that a foreign object has been caught in the opening / closing body, and to stop the motor.

図1は、本発明が適用される車両の後部扉開閉装置(パワーテールゲート)の概略機構図である。1は車両であって、その後部には後部扉2がヒンジ部3で回動自在に支持されている。4は後部扉2を開閉するためのモータ、5はモータ4の回転方向に応じてa方向に回転する駆動ローラ、6は駆動ローラ5の回転方向に応じてb方向に往復移動するアーム、7は後部扉2が開く際にバネによる付勢力を与えるとともに、後部扉2が閉まる際にダンパーとして働くステーである。モータ4が回転すると、この回転がギヤを介して駆動ローラ5に伝達されて駆動ローラ5が回転し、駆動ローラ5の回転がギヤを介してアーム6の直線運動に変換される。アーム6の一端は後部扉2に連結されているため、アーム6の往復移動によって、後部扉2はヒンジ部3を中心としてc方向に回動し、車両1の後部を開閉する。   FIG. 1 is a schematic mechanism diagram of a rear door opening / closing device (power tailgate) to which the present invention is applied. Reference numeral 1 denotes a vehicle, and a rear door 2 is rotatably supported by a hinge portion 3 at a rear portion thereof. 4 is a motor for opening and closing the rear door 2, 5 is a driving roller that rotates in the direction a according to the direction of rotation of the motor 4, 6 is an arm that reciprocates in the direction b according to the direction of rotation of the driving roller 5, 7 Is a stay that applies an urging force by a spring when the rear door 2 is opened and also acts as a damper when the rear door 2 is closed. When the motor 4 rotates, this rotation is transmitted to the driving roller 5 through a gear, the driving roller 5 rotates, and the rotation of the driving roller 5 is converted into a linear motion of the arm 6 through the gear. Since one end of the arm 6 is connected to the rear door 2, the rear door 2 rotates in the c direction about the hinge portion 3 by opening and closing the rear portion of the vehicle 1 by the reciprocation of the arm 6.

図2は、後部扉開閉装置の電気的構成を示したブロック図である。11は後部扉2の開閉を指示するための扉開閉スイッチであって、車両1の運転席に設けられている。12は後部扉2が完全に閉じたことを検出する扉全閉検出スイッチであって、車両1の後部に配備したリミットスイッチなどから構成される。13はモータ4に電流を供給してモータ4を回転させるモータ駆動回路、14はモータ4の回転に応じてパルスを発生するロータリエンコーダである。15はロータリエンコーダ14から出力されるパルスを検出するパルス検出回路、16はパルス検出回路15で検出されたパルスのエッジ(立上りおよび立下り)を検出するエッジ検出部である。17はエッジ検出部16で検出されたエッジに基づき、モータ4の速度Vを算出する速度算出部である。18はモータ4の速度制御を行う制御部、19はROMやRAM等から構成されるメモリである。メモリ19には、本発明における目標値に相当する目標速度Vrefが予め記憶されている。   FIG. 2 is a block diagram showing an electrical configuration of the rear door opening and closing device. Reference numeral 11 denotes a door opening / closing switch for instructing opening / closing of the rear door 2, which is provided in the driver's seat of the vehicle 1. Reference numeral 12 denotes a door full-closed detection switch that detects that the rear door 2 is completely closed, and includes a limit switch provided at the rear of the vehicle 1. Reference numeral 13 denotes a motor drive circuit that supplies current to the motor 4 to rotate the motor 4, and reference numeral 14 denotes a rotary encoder that generates pulses according to the rotation of the motor 4. Reference numeral 15 denotes a pulse detection circuit that detects a pulse output from the rotary encoder 14, and reference numeral 16 denotes an edge detection unit that detects edges (rising and falling) of the pulse detected by the pulse detection circuit 15. Reference numeral 17 denotes a speed calculation unit that calculates the speed V of the motor 4 based on the edge detected by the edge detection unit 16. Reference numeral 18 denotes a control unit that controls the speed of the motor 4, and 19 denotes a memory including a ROM, a RAM, and the like. The memory 19 stores in advance a target speed Vref corresponding to the target value in the present invention.

以上において、エッジ検出部16、速度算出部17、制御部18およびメモリ19により、モータ4の速度制御装置50が構成される。また、速度制御装置50において、エッジ検出部16、速度算出部17、制御部18の各部の機能は、マイクロコンピュータにより実現することができる。ここで、エッジ検出部16は本発明における検出手段の一実施形態を構成し、速度算出部17は本発明における速度算出手段の一実施形態を構成し、制御部18は本発明における制御手段の一実施形態を構成し、メモリ19は本発明における記憶手段の一実施形態を構成する。   In the above, the edge detection unit 16, the speed calculation unit 17, the control unit 18, and the memory 19 constitute the speed control device 50 for the motor 4. In the speed control device 50, the functions of the edge detection unit 16, the speed calculation unit 17, and the control unit 18 can be realized by a microcomputer. Here, the edge detection unit 16 constitutes an embodiment of the detection means in the present invention, the speed calculation unit 17 constitutes an embodiment of the speed calculation means in the present invention, and the control unit 18 corresponds to the control means in the present invention. The memory 19 constitutes an embodiment of the storage means in the present invention.

図3は、メモリ19に記憶された目標速度Vrefの一例を示している。ここでは、目標速度Vrefは、後部扉2の先端部2A(図1参照)の目標速度を表しているが、メモリ19に記憶される目標速度は、モータ4の目標速度であってもよい。図のように、目標速度Vrefの値は、扉開度に応じて変化する。扉開度が小さい区間X1では、扉開度とともに増加する目標速度Vrefが設定されており、扉開度が大きい区間X3では、扉開度とともに減少する目標速度Vrefが設定されている。その中間の区間X2では、扉開度に関係なく目標速度Vrefが一定値に設定されている。   FIG. 3 shows an example of the target speed Vref stored in the memory 19. Here, the target speed Vref represents the target speed of the front end 2A (see FIG. 1) of the rear door 2, but the target speed stored in the memory 19 may be the target speed of the motor 4. As shown in the figure, the value of the target speed Vref changes according to the door opening. The target speed Vref that increases with the door opening is set in the section X1 with a small door opening, and the target speed Vref that decreases with the door opening is set in the section X3 with a large door opening. In the middle section X2, the target speed Vref is set to a constant value regardless of the door opening.

したがって、後部扉2が全閉状態から全開状態へ動作する場合(すなわち扉が開く場合)を考えると、後部扉2は、開き始めてから最初の一定時間は加速状態で開き(区間X1)、その後の一定時間は定速状態で開き(区間X2)、最後の一定時間は減速状態となって全開に至る(区間X3)。一方、後部扉2が全開状態から全閉状態へ動作する場合(すなわち扉が閉じる場合)を考えると、後部扉2は、閉じ始めてから最初の一定時間は加速状態で閉じ(区間X3)、その後の一定時間は定速状態で閉じ(区間X2)、最後の一定時間は減速状態となって全閉に至る(区間X1)。後部扉2がこのような動作を行うように、速度制御装置50によってモータ4の速度制御が行われる。なお、後部扉2の扉開度は、ロータリエンコーダ14のパルス出力を利用して計測することができる。制御部18は、この扉開度に応じた目標速度Vrefをメモリ19から読み出し、これに基づいてモータ駆動回路13を介してモータ4の速度を制御する。   Therefore, considering the case where the rear door 2 operates from the fully closed state to the fully opened state (that is, when the door opens), the rear door 2 opens in an accelerated state for the first certain time after the opening (section X1), and thereafter The fixed time is opened at a constant speed (section X2), and the last fixed time is decelerated and is fully opened (section X3). On the other hand, considering the case where the rear door 2 operates from the fully open state to the fully closed state (that is, when the door is closed), the rear door 2 is closed in an accelerated state for a first fixed time after the start of closing (section X3), and thereafter Is closed at a constant speed for a certain period of time (section X2), and is finally decelerated for a certain period of time until it is fully closed (section X1). The speed control of the motor 4 is performed by the speed control device 50 so that the rear door 2 performs such an operation. The door opening degree of the rear door 2 can be measured using the pulse output of the rotary encoder 14. The control unit 18 reads the target speed Vref corresponding to the door opening degree from the memory 19, and controls the speed of the motor 4 via the motor drive circuit 13 based on the target speed Vref.

すなわち、速度算出部17で算出されたモータ4の回転速度Vに所定のギヤ比を乗じて得られる扉先端速度(扉2の先端部2Aの速度)を目標速度Vrefと比較し、扉先端速度が目標速度Vrefとなるように、制御部18はモータ駆動回路13に指令を与えてモータ4の速度をフィードバック制御する。図4は、このフィードバック制御における制御系を示している。ここでは、制御系は、比例ゲイン、積分器、積分ゲイン、フィードフォワードゲイン、加算器などの要素を含む公知の構成からなる。なお、実際には、この制御系はマイクロコンピュータの機能として実現される。図4の制御系は、比例と積分によるPI制御を行うものであるが、これは一例であって、比例、積分、微分によるPID制御を行うものであってもよい。   That is, the door tip speed (speed of the tip 2A of the door 2) obtained by multiplying the rotation speed V of the motor 4 calculated by the speed calculator 17 by a predetermined gear ratio is compared with the target speed Vref, and the door tip speed is obtained. The controller 18 gives a command to the motor drive circuit 13 to feedback control the speed of the motor 4 so that becomes the target speed Vref. FIG. 4 shows a control system in this feedback control. Here, the control system has a known configuration including elements such as a proportional gain, an integrator, an integral gain, a feed forward gain, and an adder. In practice, this control system is realized as a function of a microcomputer. The control system of FIG. 4 performs PI control by proportionality and integration, but this is an example, and PID control by proportionality, integration, and differentiation may be performed.

次に、モータ4の速度制御の詳細を図5に基づいて説明する。図5の(a)は速度算出部17により算出されたモータ4の速度、(b)はパルス検出回路15から出力されるパルス、(c)は速度の計算を行うタイミングを決めるサンプリングパルスをそれぞれ表している。ここでは、サンプリング周期が5msとなっており、速度算出部17は、5msごとにモータ4の速度Vを算出する。なお、以下の説明では、後部扉2が開動作を行っていて扉開度が図3の区間X3にあり、モータ4の速度が減少している場合を例に挙げる。   Next, details of the speed control of the motor 4 will be described with reference to FIG. 5A shows the speed of the motor 4 calculated by the speed calculation unit 17, FIG. 5B shows a pulse output from the pulse detection circuit 15, and FIG. 5C shows a sampling pulse for determining the timing for calculating the speed. Represents. Here, the sampling period is 5 ms, and the speed calculation unit 17 calculates the speed V of the motor 4 every 5 ms. In the following description, an example is given in which the rear door 2 is opening, the door opening is in the section X3 in FIG. 3, and the speed of the motor 4 is decreasing.

図5(b)のように、エッジ検出部16で検出されたパルスのエッジE1がサンプリング時点tにおいて取得されると、速度算出部17は、確定したパルスの周期T(エッジE0からエッジE1までの時間)に基づいて、図5(a)のモータ速度V=1/Tを算出する。この速度Vは、正確には周波数を表している(以下で算出されるモータ速度についても同様)。その後、速度算出部17では、上記周期Tを前回エッジ周期として、エッジE1の取得時点tから前回エッジ周期Tの時間内に次のエッジE2が取得されるか否かを監視する。モータ4の速度が減少していると、パルスの周期が徐々に長くなるので、エッジE1を取得した後、Tの時間内では次のエッジE2は取得されない。そこで、この場合は、Tが経過した後の最初のサンプリング時点t01において、先のエッジE1の取得時点tからの経過時間T01(=T+5ms)に基づき、図5(a)のモータ速度V01=1/T01を算出する。 As shown in FIG. 5 (b), the the pulse edges E1 detected by the edge detection unit 16 are acquired at the sampling time point t 0, the speed calculation portion 17, the period T 0 (edge from the edge E0 of defined pulses Based on the time until E1, the motor speed V 0 = 1 / T 0 in FIG. 5A is calculated. This speed V 0 accurately represents the frequency (the same applies to the motor speed calculated below). Then, the velocity calculation unit 17, the periodic T 0 as a previous edge period, the next edge E2 in time of the previous edge period T 0 from the acquired time t 0 of the edges E1 to monitor whether acquired. As the speed of the motor 4 is reduced, since the period of the pulse is gradually increased, after obtaining the edge E1, next edge E2 within time T 0 will not be acquired. Therefore, in this case, at the first sampling time t 01 after T 0 has elapsed, based on the elapsed time T 01 (= T 0 +5 ms) from the acquisition time t 0 of the previous edge E1, FIG. Motor speed V 01 = 1 / T 01 is calculated.

速度算出部17は、その後も引き続き、エッジE2が取得されるか否かを監視し、エッジE2が取得されなければ、次のサンプリング時点t02において、先のエッジE1の取得時点tからの経過時間T02(=T+10ms)に基づき、図5(a)のモータ速度V02=1/T02を算出する。速度算出部17は、その後もさらにエッジE2の取得を監視し続け、エッジE2が取得されなければ、次のサンプリング時点t03において、先のエッジE1の取得時点tからの経過時間T03(=T+15ms)に基づき、図5(a)のモータ速度V03=1/T03を算出する。その後、パルスが立ち上がって、エッジ検出部16でパルスのエッジE2が検出されると、速度算出部17は次のサンプリング時点tにおいてエッジE2を取得する。そして、確定したパルスの周期T(エッジE1からエッジE2までの時間)に基づき、図5(a)のモータ速度V=1/Tを算出する。 Speed calculating unit 17 continues thereafter to monitor whether an edge E2 is obtained, if the edge E2 is obtained, at the next sampling time point t 02, from the acquisition time t 0 of the previous edge E1 Based on the elapsed time T 02 (= T 0 +10 ms), the motor speed V 02 = 1 / T 02 in FIG. 5A is calculated. Speed calculating unit 17 continues to monitor thereafter further acquisition of the edge E2, if the edge E2 is obtained, at the next sampling time point t 03, the elapsed time T 03 from the acquisition time t 0 of the previous edge E1 ( = T 0 +15 ms), the motor speed V 03 = 1 / T 03 in FIG. 5A is calculated. Thereafter, a pulse is risen, when the edge detector 16 a pulse of the edge E2 in is detected, the speed calculation unit 17 obtains the edge E2 at the next sampling time point t 1. Then, based on the determined pulse period T 1 (time from the edge E1 to the edge E2), the motor speed V 1 = 1 / T 1 in FIG. 5A is calculated.

これ以降は、周期Tを新たな前回エッジ周期とし、エッジE2の取得時点tからTの時間内に次のエッジE3が取得されるか否かを監視する。そして、Tの時間内に次のエッジE3が取得されなければ、Tが経過した後の最初のサンプリング時点t11において、先のエッジE2の取得時点tからの経過時間T11(=T+5ms)に基づき、図5(a)のモータ速度V11=1/T11を算出する。以下同様にして、次のエッジE3が取得されるまで、各サンプリング時点において、先のエッジE2の取得時点tからの経過時間に基づき、モータ速度を算出する。その後、パルスが立ち下って、エッジ検出部16でパルスのエッジE3が検出されると、速度算出部17はサンプリング時点tにおいてエッジE3を取得する。そして、確定したパルスの周期T(エッジE2からエッジE3までの時間)に基づき、図5(a)のモータ速度V=1/Tを算出する。以降は、周期Tを新たな前回エッジ周期とし、上述した動作を反復する。 Thereafter, the cycle T 1 as a new previous edge period, the next edge E3 from the acquisition time t 1 within a time T 1 of the edge E2 monitors whether acquired. Then, if the acquired next edge E3 in time T 1, at the first sampling time point t 11 after T 1 is elapsed, the elapsed time from the acquisition point t 1 of the previous edge E2 T 11 (= Based on (T 1 +5 ms), the motor speed V 11 = 1 / T 11 in FIG. 5A is calculated. In the same manner, until the next edge E3 is obtained, at each sampling time point, based on the elapsed time from the acquisition point t 1 of the previous edge E2, and calculates the motor speed. Then, it under Standing pulses, the pulse edge E3 in the edge detector 16 is detected, the speed calculation unit 17 obtains the edge E3 at the sampling time point t 2. Then, based on the determined pulse period T 2 (time from the edge E2 to the edge E3), the motor speed V 2 = 1 / T 2 in FIG. 5A is calculated. Thereafter, the period T 2 as a new previous edge period, repeats the above operation.

以上のようにして、速度算出部17は、先のエッジが取得されてから前回エッジ周期の時間に至るまでの間に次のエッジが取得されない場合、次のエッジが取得されるまでの間、5msのサンプリング周期で先のエッジの取得時点からの経過時間に応じたモータ速度(V01,V02,V03等)を算出する。このモータ速度は、確定したパルス周期から算出された実速度(V,V,V)ではなく、上記経過時間に基づいて計算された推定速度である。図5(a)に示した速度推定区間は、この推定速度を求めている区間を示している。 As described above, when the next edge is not acquired from the time when the previous edge is acquired to the time of the previous edge cycle, the speed calculation unit 17 until the next edge is acquired, The motor speed (V 01 , V 02 , V 03, etc.) corresponding to the elapsed time from the previous edge acquisition time is calculated at a sampling period of 5 ms. This motor speed is not an actual speed (V 0 , V 1 , V 2 ) calculated from the determined pulse period, but an estimated speed calculated based on the elapsed time. The speed estimation section shown in FIG. 5A indicates a section for which the estimated speed is obtained.

図6の従来の場合は、パルスのエッジが取得されるまで速度が算出されないので、粗い速度情報しか得られないが、本発明の場合は、エッジが取得された時点だけでなく、それ以前の速度推定区間においても速度が算出されるので、きめ細かい速度情報を得ることができる。この結果、速度推定区間で得られた速度情報をフィードバック制御に反映することが可能となる。すなわち、速度推定区間では、制御部18は、モータの推定速度にギヤ比を乗じて前述の扉先端速度を求め、この扉先端速度と目標速度Vrefとを比較して、扉先端速度が目標速度Vrefより遅い場合は、扉先端速度が目標速度Vrefまで増加するようにモータ4の速度を制御し、扉先端速度が目標速度Vrefより速い場合は、扉先端速度が目標速度Vrefまで減少するようにモータ4の速度を制御する。   In the conventional case of FIG. 6, since the velocity is not calculated until the edge of the pulse is acquired, only coarse velocity information can be obtained. However, in the present invention, not only the time when the edge is acquired but also the previous time. Since the speed is also calculated in the speed estimation section, fine speed information can be obtained. As a result, the speed information obtained in the speed estimation section can be reflected in the feedback control. That is, in the speed estimation section, the control unit 18 multiplies the estimated speed of the motor by the gear ratio to obtain the aforementioned door tip speed, compares the door tip speed with the target speed Vref, and determines that the door tip speed is the target speed. When it is slower than Vref, the speed of the motor 4 is controlled so that the door tip speed increases to the target speed Vref, and when the door tip speed is faster than the target speed Vref, the door tip speed decreases to the target speed Vref. The speed of the motor 4 is controlled.

したがって、後部扉2が全開位置に近づいて先端速度が減速状態に入り(図3の区間X3)、モータ4の速度が徐々に減少して次のパルスエッジが取得されるまでの時間が長くなった場合でも、速度推定区間で演算した推定速度を用いてフィードバック制御を行うことができるので、後部扉2の先端速度をなめらかに精度良く制御することができる。また、モータ4の負荷が大きいためにモータ4が途中で停止してしまい、パルスのエッジが取得できなくなった場合でも、速度の推定演算が継続されてフィードバック制御を行えるので、モータ4を駆動して後部扉2を最後まで開けることができる。   Therefore, the rear door 2 approaches the fully open position, the tip speed enters a deceleration state (section X3 in FIG. 3), and the time until the speed of the motor 4 gradually decreases and the next pulse edge is acquired becomes longer. Even in this case, feedback control can be performed using the estimated speed calculated in the speed estimation section, so that the tip speed of the rear door 2 can be smoothly and accurately controlled. Further, even if the motor 4 stops in the middle due to a heavy load on the motor 4 and a pulse edge cannot be acquired, the speed estimation calculation is continued and feedback control can be performed, so the motor 4 is driven. The rear door 2 can be opened to the end.

図7は、速度算出の手順を示したフローチャートであって、(a)は5msのサンプリング周期で実行される処理、(b)はパルスのエッジが検出されたときの割り込み処理を示している。図7(a)において、まず周期カウンタのカウンタ値C5mに1を加算する(ステップS1)。周期カウンタは、図2のメモリ19の所定領域に設けられている。次に、先のエッジを取得してからの経過時間T0mを算出する(ステップS2)。この経過時間T0mは、周期カウンタのカウンタ値C5mにサンプリング周期の5msを乗算することにより得られる。図5(b)のT01,T02,T03がここでの経過時間T0mに該当する。そして、算出された経過時間T0mと前回エッジ周期Tとを比較して、経過時間T0mが前回エッジ周期Tを超えたかどうかを判定する(ステップS3)。 FIG. 7 is a flowchart showing the speed calculation procedure, where (a) shows processing executed at a sampling period of 5 ms, and (b) shows interrupt processing when a pulse edge is detected. In FIG. 7A, first, 1 is added to the counter value C 5m of the period counter (step S1). The period counter is provided in a predetermined area of the memory 19 in FIG. Next, an elapsed time T 0m after obtaining the previous edge is calculated (step S2). The elapsed time T 0m is obtained by multiplying the counter value C 5m of the period counter by the sampling period of 5 ms. T 01 , T 02 , T 03 in FIG. 5B correspond to the elapsed time T 0m here. Then, the calculated elapsed time is compared with T 0 m the previous edge period T i, the elapsed time T 0 m determines whether exceeds a previous edge period T i (step S3).

ステップS3での判定の結果、経過時間T0mが前回エッジ周期Tを超えておれば(ステップS3:YES)、モータ速度VをV=1/T0mとして算出するとともに(ステップS4)、扉先端速度VaをVa=1/T0m×G(Gはギヤ比)により算出する(ステップS5)。ここで、ギヤ比Gはモータ4の速度を後部扉2の先端速度に換算するためのパラメータであって、扉開度に応じて異なる値をとる。このギヤ比Gはメモリ19に記憶されている。一方、ステップS3での判定の結果、経過時間T0mが前回エッジ周期Tを超えてなければ(ステップS3:NO)、モータ速度VをV=1/Tとして算出するとともに(ステップS6)、扉先端速度VaをVa=1/T×Gにより算出する(ステップS7)。 A result of the determination in step S3, if the elapsed time T 0 m is I exceeds the previous edge period T i (step S3: YES), the motor speed V to calculate as V = 1 / T 0m (step S4), and the door The tip speed Va is calculated by Va = 1 / T 0m × G (G is a gear ratio) (step S5). Here, the gear ratio G is a parameter for converting the speed of the motor 4 to the tip speed of the rear door 2, and takes different values depending on the door opening. This gear ratio G is stored in the memory 19. On the other hand, if the elapsed time T 0m does not exceed the previous edge period T i as a result of the determination in step S3 (step S3: NO), the motor speed V is calculated as V = 1 / T i (step S6). The door tip speed Va is calculated by Va = 1 / T i × G (step S7).

また、エッジ検出部16でパルスのエッジが検出されると、その時点で図7(b)の割り込み処理へ移行し、エッジ検出によって確定したパルス周期(エッジからエッジまでの時間)が新たな前回エッジ周期Tとしてメモリ19に記憶される(ステップS8)。そして、この割り込み処理の終了後、再び図7(a)の定常ルーチンへ戻り、サンプリングごとに扉先端速度Vaを算出する。このとき、ステップS3における前回エッジ周期Tは、ステップS8でメモリ19に記憶した新たな前回エッジ周期に更新される。 When the edge of the pulse is detected by the edge detection unit 16, the process proceeds to the interrupt processing of FIG. 7B at that time, and the pulse period (time from edge to edge) determined by the edge detection is a new previous time. The edge period T i is stored in the memory 19 (step S8). Then, after the interruption process is completed, the routine returns to the steady routine of FIG. 7A, and the door tip speed Va is calculated for each sampling. At this time, the previous edge period T i in step S3 is updated to the new previous edge cycle stored in the memory 19 at step S8.

以上は、後部扉2の開動作時にモータ4が減速状態(図3の区間X3)にある場合の例であるが、後部扉2の閉動作時にモータ4が減速状態(図3の区間X1)にある場合も、同様の原理に基づき速度制御が行われる。なお、モータ4が加速または定速状態にある区間では、従来と同じ方法で速度制御を行うことが可能である。モータ4が減速状態にあるか否かは、次のいずれかにより判定することができる。
(1)現在の目標速度Vrefが、過去の目標速度Vrefに対して減少している場合に、減速状態にあると判定する。
(2)計測したモータ4の速度が、過去に計測したモータ4の速度に対して減少している場合に、減速状態にあると判定する。
本発明は、このようにモータ4が減速状態にあってパルスのエッジ間隔が長くなる減速区間(X3またはX1)において特に有効であるが、以上述べた速度制御の処理は、図3の全区間X1〜X3にわたって行ってもよい。
The above is an example in the case where the motor 4 is in a decelerating state (section X3 in FIG. 3) when the rear door 2 is opened, but the motor 4 is in a decelerating state (section X1 in FIG. 3) when the rear door 2 is closed. In this case, the speed control is performed based on the same principle. In the section where the motor 4 is in the acceleration or constant speed state, the speed control can be performed by the same method as the conventional method. Whether the motor 4 is in a decelerating state can be determined by any of the following.
(1) When the current target speed Vref is decreasing with respect to the past target speed Vref, it is determined that the vehicle is in a decelerating state.
(2) When the measured speed of the motor 4 is reduced with respect to the speed of the motor 4 measured in the past, it is determined that the motor 4 is in a decelerating state.
The present invention is particularly effective in the deceleration section (X3 or X1) in which the motor 4 is in the deceleration state and the pulse edge interval becomes long as described above. However, the speed control process described above is performed in the entire section of FIG. You may carry out over X1-X3.

図8は、本発明を挟み込み検知に適用した場合の実施形態を示すブロック図である。21は車両の窓の開閉を指示するための窓開閉スイッチであって、運転席に設けられている。22は窓開閉用のモータ23に電流を供給してモータ23を回転させるモータ駆動回路、24はモータ23の回転に応じてパルスを発生するロータリエンコーダである。25はロータリエンコーダ24から出力されるパルスを検出するパルス検出回路、26はパルス検出回路25で検出されたパルスのエッジ(立上りおよび立下り)を検出するエッジ検出部である。27はエッジ検出部26で検出されたエッジに基づき、モータ23の速度Vを算出する速度算出部である。28は速度算出部27で算出された速度に基づいて、速度変動量(現在の速度と所定時間前の速度との差)ΔVを算出する変動量算出部である。29はモータ23の速度制御を行う制御部、30はROMやRAM等から構成されるメモリである。メモリ30には、後述する挟込閾値Kが予め記憶されている。   FIG. 8 is a block diagram showing an embodiment when the present invention is applied to pinching detection. Reference numeral 21 denotes a window opening / closing switch for instructing opening / closing of a vehicle window, which is provided in the driver's seat. Reference numeral 22 denotes a motor drive circuit for supplying current to the window opening / closing motor 23 to rotate the motor 23, and reference numeral 24 denotes a rotary encoder that generates a pulse in accordance with the rotation of the motor 23. Reference numeral 25 denotes a pulse detection circuit that detects a pulse output from the rotary encoder 24, and reference numeral 26 denotes an edge detection unit that detects edges (rising and falling) of the pulse detected by the pulse detection circuit 25. Reference numeral 27 denotes a speed calculation unit that calculates the speed V of the motor 23 based on the edge detected by the edge detection unit 26. Reference numeral 28 denotes a fluctuation amount calculation unit that calculates a speed fluctuation amount (difference between the current speed and a speed before a predetermined time) ΔV based on the speed calculated by the speed calculation unit 27. Reference numeral 29 denotes a control unit that controls the speed of the motor 23, and reference numeral 30 denotes a memory including a ROM, a RAM, and the like. The memory 30 stores in advance a sandwiching threshold value K described later.

以上において、エッジ検出部26、速度算出部27、変動量算出部28、制御部29およびメモリ30により、モータ23の速度制御装置60が構成される。また、エッジ検出部26、速度算出部27、変動量算出部28、制御部29の各部の機能は、マイクロコンピュータにより実現することができる。ここで、エッジ検出部26は本発明における検出手段の一実施形態を構成し、速度算出部27は本発明における速度検出手段の一実施形態を構成し、変動量算出部28は本発明における変動量算出手段の一実施形態を構成し、制御部29は本発明における制御手段の一実施形態を構成し、メモリ30は本発明における記憶手段の一実施形態を構成する。   In the above, the speed control device 60 of the motor 23 is configured by the edge detection unit 26, the speed calculation unit 27, the fluctuation amount calculation unit 28, the control unit 29, and the memory 30. The functions of the edge detection unit 26, the speed calculation unit 27, the fluctuation amount calculation unit 28, and the control unit 29 can be realized by a microcomputer. Here, the edge detection unit 26 constitutes an embodiment of the detection means in the present invention, the speed calculation unit 27 constitutes an embodiment of the speed detection means in the present invention, and the fluctuation amount calculation unit 28 represents the fluctuation in the present invention. One embodiment of the amount calculating means is configured, the control unit 29 constitutes one embodiment of the controlling means in the present invention, and the memory 30 constitutes one embodiment of the storing means in the present invention.

次に、挟み込み検知の詳細につき、図9〜図11を参照して説明する。図9は、挟み込みの検知方法を従来と本発明とで対比して示したタイムチャートである。tはサンプリング周期(例えば5ms)を表している。従来では、パルスのエッジE1,E2,E3が取得されたサンプリング時点a,d,hにおいて挟み込みの検知が行われる。すなわち、エッジE1が取得された時点aで、確定したパルス周期Tをモータ周期Tとし、モータ速度1/Tを算出する。次に、エッジE2が取得された時点dで、確定したパルス周期Tをモータ周期Tとし、モータ速度1/Tを算出する。さらに、エッジE3が取得された時点hで、確定したパルス周期Tをモータ周期Tとし、モータ速度1/Tを算出する。このようにして、エッジが取得されたサンプリング時点ごとにモータ速度を算出し、その都度、モータ速度の変動量を求める。そして、この変動量(減少量)が所定の閾値を超えたか否かを判定し、閾値を超えた場合に異物の挟み込みがあったものと判定する。 Next, details of pinching detection will be described with reference to FIGS. FIG. 9 is a time chart showing the pinching detection method in comparison between the conventional method and the present invention. t represents a sampling period (for example, 5 ms). Conventionally, pinching is detected at sampling points a, d, and h when the edges E1, E2, and E3 of the pulse are acquired. That is, when a the edge E1 has been acquired, the pulse period T 0 was determined as the motor period T, calculates a motor speed 1 / T 0. Then, at the point d where the edge E2 has been acquired, the pulse period T 1 which confirmed the motor period T, calculates a motor speed 1 / T 1. Furthermore, when h edge E3 is obtained, the pulse period T 2 which finalized the motor period T, calculates a motor speed 1 / T 2. In this way, the motor speed is calculated at each sampling time point when the edge is acquired, and the fluctuation amount of the motor speed is obtained each time. Then, it is determined whether or not the fluctuation amount (decrease amount) exceeds a predetermined threshold value. When the fluctuation amount exceeds the threshold value, it is determined that foreign matter is caught.

上述した従来の方法では、エッジの取得タイミングa,d,hでのみ挟み込み検知を行っているので、異物の挟み込みによってモータ23の速度が低下した場合、次のエッジを取得するまでに時間を要し、挟み込みを検知するタイミングが遅れることになる。この結果、例えば、窓に挟まれた腕や首などに大きな加重がかかって、危険な状態を招来することがある。これを回避するために、モータ23に流れる電流を検出して挟み込み検知を行う方法があるが、この場合は電流検出装置が必要となって、コストが高くなるという問題がある。   In the conventional method described above, the pinching detection is performed only at the edge acquisition timings a, d, and h. Therefore, when the speed of the motor 23 is reduced due to the pinching of the foreign object, it takes time to acquire the next edge. However, the timing for detecting pinching is delayed. As a result, for example, a heavy load is applied to an arm or a neck sandwiched between windows, which may lead to a dangerous state. In order to avoid this, there is a method of detecting the pinching by detecting the current flowing through the motor 23. In this case, however, there is a problem that a current detection device is required and the cost is increased.

これに対して、本発明の場合は、図9からわかるように、エッジの取得タイミングa,d,hだけでなく、その間の各サンプリング時点b,c,e,f,gにおいても挟み込み検知を行う。すなわち、エッジE1が取得された時点aでは、従来と同様に、確定したパルス周期Tをモータ周期Tとし、モータ速度1/Tを算出する。次のサンプリング時点bにおいては、エッジが取得されないが、エッジ取得の有無にかかわらず、先のエッジ取得時点aからの経過時間tに基づき、モータ周期TをT=tとし、モータ速度1/tを算出する。このモータ速度は、確定したパルス周期から算出された実速度ではなく、経過時間tに基づいて計算された推定速度である。次のサンプリング時点cにおいてもエッジは取得されないが、この場合もエッジ取得の有無にかかわらず、先のエッジ取得時点aからの経過時間2tに基づき、モータ周期TをT=2tとし、モータ速度(推定速度)1/2tを算出する。 On the other hand, in the case of the present invention, as shown in FIG. 9, not only the edge acquisition timings a, d, and h but also the pinching detection at each sampling time point b, c, e, f, and g between them. Do. That is, at the time point a at which the edge E1 is acquired, the motor speed 1 / T 0 is calculated using the determined pulse period T 0 as the motor period T, as in the conventional case. At the next sampling time point b, no edge is acquired. Regardless of whether or not the edge is acquired, the motor cycle T is set to T = t based on the elapsed time t from the previous edge acquisition time point a, and the motor speed 1 / t. Is calculated. This motor speed is not an actual speed calculated from the determined pulse period but an estimated speed calculated based on the elapsed time t. An edge is not acquired at the next sampling time point c. In this case, the motor cycle T is set to T = 2t based on the elapsed time 2t from the previous edge acquisition time point a regardless of whether or not the edge is acquired, and the motor speed ( (Estimated speed) 1 / 2t is calculated.

次のサンプリング時点dではエッジE2が取得され、パルス周期Tが確定するので、このパルス周期Tをモータ周期Tとし、モータ速度(実速度)1/Tを算出する。次のサンプリング時点eにおいては、エッジが取得されないが、エッジ取得の有無にかかわらず、先のエッジ取得時点dからの経過時間tに基づき、モータ周期TをT=tとし、モータ速度(推定速度)1/tを算出する。以後同様にして、サンプリング時点f,gにおいて、先のエッジ取得時点dからの経過時間に基づき、モータ周期TをそれぞれT=2t,T=3tとし、モータ速度(推定速度)1/2t,1/3tを算出する。そして、サンプリング時点hでエッジE3が取得されると、確定したパルス周期Tに基づき、モータ周期TをT=Tとし、モータ速度(実速度)1/Tを算出する。 The acquired next sampling time point d the edge E2, the pulse period T 1 is determined, the pulse period T 1 and a motor period T, calculates a motor speed (actual speed) 1 / T 1. At the next sampling time e, no edge is acquired. Regardless of whether or not the edge is acquired, the motor cycle T is set to T = t based on the elapsed time t from the previous edge acquisition time d, and the motor speed (estimated speed). ) 1 / t is calculated. Thereafter, similarly, at the sampling times f and g, based on the elapsed time from the previous edge acquisition time d, the motor cycles T are set to T = 2t and T = 3t, respectively, and the motor speed (estimated speed) 1 / 2t, 1 / 3t is calculated. When the edge E3 in the sampling time h is obtained, based on the pulse period T 2 which finalized, the motor cycle T and T = T 2, and calculates the motor speed (actual speed) 1 / T 2.

このようにして、全てのサンプリング時点でモータ速度を算出し、その都度、モータ速度の変動量を求める。この変動量は、今回のモータ周期から得られるモータ速度と、前回のパルス周期(前回エッジ周期)から得られるモータ速度との差として算出される。例えば、サンプリング時点cでは、モータ速度の変動量は(1/2t)−(1/T)として算出される。そして、サンプリングのたびに変動量(減少量)が所定の閾値を超えたか否かを判定し、閾値を超えた場合に挟み込みがあったものと判定する。挟み込みが検知されると、制御部29は、モータ駆動回路22へ指令を与えて、モータ23を一旦停止させた後、逆転駆動するように制御する。これによって窓が開き、異物の挟み込みが解除される。 In this way, the motor speed is calculated at all sampling points, and the fluctuation amount of the motor speed is obtained each time. This fluctuation amount is calculated as the difference between the motor speed obtained from the current motor cycle and the motor speed obtained from the previous pulse cycle (previous edge cycle). For example, at the sampling time point c, the fluctuation amount of the motor speed is calculated as (1 / 2t) − (1 / T 0 ). Then, at each sampling, it is determined whether or not the fluctuation amount (decrease amount) exceeds a predetermined threshold value, and if the threshold value is exceeded, it is determined that there has been pinching. When the pinching is detected, the control unit 29 gives a command to the motor drive circuit 22 to stop the motor 23 and then control to reversely drive. As a result, the window is opened, and the foreign object is released.

以上のような挟み込み検知方法によると、先のエッジが取得されてから次のエッジが取得されるまでの間の各サンプリング時点で、先のエッジの取得時点からの経過時間に応じたモータの推定速度を計算し、これに基づいて速度の推定変動量を演算しているため、異物の挟み込みによってモータの速度が低下した場合、次のエッジの取得までに挟み込みを検知することが可能となり、エッジ取得後に挟み込み検知を行う従来の場合に比べて、早い段階で挟み込みを検知することができる。また、剛体が挟み込まれたことによりモータが停止し、パルスのエッジが検出できなくなった場合でも、推定変動量の演算が行われることにより挟み込みの検知が可能となる。   According to the pinching detection method as described above, at each sampling time from when the previous edge is acquired until the next edge is acquired, the motor is estimated according to the elapsed time from the acquisition time of the previous edge. Since the speed is calculated and the estimated speed variation is calculated based on this, if the motor speed drops due to the foreign object being caught, it becomes possible to detect the jamming until the next edge is acquired. Compared with the conventional case in which pinching detection is performed after acquisition, pinching can be detected at an earlier stage. In addition, even when the motor stops due to the rigid body being caught and the edge of the pulse cannot be detected, the estimated fluctuation amount is calculated, so that the jamming can be detected.

図10は、挟み込み検知のタイミングを示したタイムチャートである。図のように、モータ速度が低下して次のパルスのエッジEが発生するまでに時間がかかる場合でも、本発明では、次のエッジEまでに一定時間間隔でモータ速度を求めて速度変動量(減少量)を算出しているため、速度変動量が挟込閾値Kを越えるtaの時点で挟み込みが検知される。一方、従来の場合は、エッジEが発生した後のtbの時点で速度変動量が算出され、挟み込みが検知される。したがって、本発明のほうが従来よりも早いタイミングで挟み込みを検知することができる。この結果、本発明では、例えば腕や首などが窓に挟まれた場合、挟み込みをすみやかに検知してモータを停止させた後、モータを逆転駆動して窓を開けることにより、人体へ危害が及ぶのを回避することができる。また、電流検出装置を必要としないため、コストが高くなるという問題も生じない。   FIG. 10 is a time chart showing the timing of pinching detection. As shown in the figure, even if it takes time until the next pulse edge E occurs after the motor speed decreases, in the present invention, the motor speed is obtained at a constant time interval until the next edge E, and the speed fluctuation amount is obtained. Since the (decrease amount) is calculated, entrapment is detected at the time ta when the speed fluctuation amount exceeds the entrapment threshold K. On the other hand, in the conventional case, the speed fluctuation amount is calculated at time tb after the occurrence of the edge E, and pinching is detected. Therefore, the present invention can detect the pinching at a timing earlier than that of the prior art. As a result, in the present invention, for example, when an arm, a neck, or the like is caught in a window, the pinching is detected immediately, and the motor is stopped. It can be avoided. In addition, since no current detection device is required, there is no problem of increased cost.

図11は、挟み込み検知の手順を示したフローチャートであって、5msのサンプリング周期で実行される処理を示している。最初に、パルスのエッジを取得したか否かを判定する(ステップS11)。エッジを取得した場合は(ステップS11:YES)、前回エッジ周期Tiに基づいてモータ速度Vを算出する(ステップS16)。エッジ取得直後のモータ速度Vは、V=1/Tiにより算出される。次に、モータ速度Vと前回エッジ周期Tiから速度変動量ΔVを算出する(ステップS17)。エッジ取得直後の速度変動量ΔVは、ΔV=1/Ti−1/Ti=0となる。   FIG. 11 is a flowchart showing a procedure for detecting pinching, and shows processing executed at a sampling period of 5 ms. First, it is determined whether or not an edge of a pulse has been acquired (step S11). When the edge is acquired (step S11: YES), the motor speed V is calculated based on the previous edge period Ti (step S16). The motor speed V immediately after the edge acquisition is calculated by V = 1 / Ti. Next, a speed fluctuation amount ΔV is calculated from the motor speed V and the previous edge period Ti (step S17). The speed fluctuation amount ΔV immediately after the edge acquisition is ΔV = 1 / Ti−1 / Ti = 0.

一方、エッジを取得しなかった場合は(ステップS11:NO)、周期カウンタのカウンタ値C5mに1を加算する(ステップS12)。周期カウンタは、図8のメモリ30の所定領域に設けられている。次に、先のエッジを取得してからの経過時間T0mを算出する(ステップS13)。この経過時間T0mは、周期カウンタのカウンタ値C5mにサンプリング周期の5msを乗算することにより得られる。図9のT=t,T=2t,T=3tがここでの経過時間T0mに該当する。続いて、経過時間T0mに基づき、モータ速度(推定速度)VをV=1/T0mとして算出する(ステップS14)。また、このモータ速度Vと前回エッジ周期Tiから速度変動量(推定変動量)ΔVをΔV=1/T0m−1/Tiとして算出する(ステップS15)。 On the other hand, when the edge is not acquired (step S11: NO), 1 is added to the counter value C 5m of the period counter (step S12). The period counter is provided in a predetermined area of the memory 30 in FIG. Next, an elapsed time T 0m after obtaining the previous edge is calculated (step S13). The elapsed time T 0m is obtained by multiplying the counter value C 5m of the period counter by the sampling period of 5 ms. In FIG. 9, T = t, T = 2t, and T = 3t correspond to the elapsed time T 0m here. Subsequently, based on the elapsed time T0m , the motor speed (estimated speed) V is calculated as V = 1 / T0m (step S14). Further, the speed fluctuation amount (estimated fluctuation amount) ΔV is calculated as ΔV = 1 / T 0m −1 / Ti from the motor speed V and the previous edge period Ti (step S15).

ステップS15、S17の実行後、ステップS18へ移り、算出した速度変動量ΔVと挟込閾値Kとの比較を行う。比較の結果、ΔV>Kであれば(ステップS18:YES)、挟み込みがあったものと判定して、挟込検知信号を出力する(ステップS19)。また、比較の結果、ΔV>Kでなければ(ステップS18:NO)、挟み込みがないものと判定して、ステップS19を実行せずに終了する。   After execution of steps S15 and S17, the process proceeds to step S18, where the calculated speed fluctuation amount ΔV is compared with the sandwiching threshold value K. If ΔV> K as a result of the comparison (step S18: YES), it is determined that there has been pinching and a pinching detection signal is output (step S19). As a result of comparison, if ΔV> K is not satisfied (step S18: NO), it is determined that there is no pinching, and the process ends without executing step S19.

上述した実施形態では、本発明を車両における後部扉開閉装置と挟み込み検知装置に適用した例を挙げたが、本発明はこれに限らず、モータの速度を制御する装置全般に適用することができる。   In the above-described embodiment, an example in which the present invention is applied to a rear door opening / closing device and a pinch detection device in a vehicle has been described. However, the present invention is not limited to this and can be applied to all devices that control the speed of a motor. .

本発明が適用される車両の後部扉開閉装置の概略機構図である。It is a schematic mechanism diagram of a rear door opening and closing device of a vehicle to which the present invention is applied. 後部扉開閉装置の電気的構成を示すブロック図である。It is a block diagram which shows the electrical structure of a rear door opening / closing apparatus. メモリに記憶された目標速度を示す図である。It is a figure which shows the target speed memorize | stored in memory. フィードバック制御における制御系を示す図である。It is a figure which shows the control system in feedback control. モータの速度制御の詳細を説明する図である。It is a figure explaining the detail of the speed control of a motor. 従来のモータの速度制御を説明する図である。It is a figure explaining the speed control of the conventional motor. 速度算出の手順を示すフローチャートである。It is a flowchart which shows the procedure of speed calculation. 本発明の他の実施形態を示すブロック図である。It is a block diagram which shows other embodiment of this invention. 挟み込みの検知方法を説明するタイムチャートである。It is a time chart explaining the detection method of pinching. 挟み込み検知のタイミングを示すタイムチャートである。It is a time chart which shows the timing of pinching detection. 挟み込み検知の手順を示すフローチャートである。It is a flowchart which shows the procedure of pinching detection.

符号の説明Explanation of symbols

1 車両
2 後部扉
4 モータ
13 モータ駆動回路
14 ロータリエンコーダ
15 パルス検出回路
16 エッジ検出部
17 速度算出部
18 制御部
19 メモリ
22 モータ駆動回路
23 モータ
24 ロータリエンコーダ
25 パルス検出回路
26 エッジ検出部
27 速度算出部
28 変動量算出部
29 制御部
30 メモリ
50 速度制御装置
60 速度制御装置
Vref 目標値
K 挟込閾値
E0,E1,E2,E3 パルスのエッジ
,T,T パルスの周期(前回エッジ周期)
V モータ速度
ΔV 速度変動量
DESCRIPTION OF SYMBOLS 1 Vehicle 2 Rear door 4 Motor 13 Motor drive circuit 14 Rotary encoder 15 Pulse detection circuit 16 Edge detection part 17 Speed calculation part 18 Control part 19 Memory 22 Motor drive circuit 23 Motor 24 Rotary encoder 25 Pulse detection circuit 26 Edge detection part 27 Speed Calculation unit 28 Fluctuation amount calculation unit 29 Control unit 30 Memory 50 Speed control device 60 Speed control device Vref Target value K Clamping threshold E0, E1, E2, E3 Pulse period T 0 , T 1 , T 2 Pulse period (previous Edge period)
V Motor speed ΔV Speed fluctuation amount

Claims (5)

モータの回転により発生したパルスのエッジを検出する検出手段と、
前記検出手段で検出されたパルスのエッジに基づき前記モータの速度を算出する速度算出手段と、
前記速度算出手段で算出された速度を予め定められた目標値と比較して、当該速度が目標値となるように前記モータを制御する制御手段と、
を備えたモータの速度制御装置において、
前記速度算出手段は、前記パルスの先のエッジが取得されてから所定時間内に次のエッジが取得されない場合に、次のエッジが取得されるまでの間、所定のタイミングで、先のエッジの取得時点からの経過時間に応じた推定速度を算出し、
前記制御手段は、前記所定時間が経過してから次のエッジの取得時点までの区間において、前記推定速度と目標値とに基づき前記モータの速度を制御することを特徴とするモータの速度制御装置。
Detecting means for detecting an edge of a pulse generated by rotation of the motor;
Speed calculating means for calculating the speed of the motor based on the edge of the pulse detected by the detecting means;
Control means for comparing the speed calculated by the speed calculation means with a predetermined target value and controlling the motor so that the speed becomes a target value;
In a motor speed control device comprising:
The speed calculation means, when the next edge is not acquired within a predetermined time after the previous edge of the pulse is acquired, until the next edge is acquired at a predetermined timing. Calculate the estimated speed according to the elapsed time from the acquisition time,
The speed control device for a motor characterized in that the control means controls the speed of the motor based on the estimated speed and a target value in a section from when the predetermined time has elapsed until the next edge is acquired. .
請求項1に記載のモータの速度制御装置において、
前記所定時間は、先のエッジとそれより1つ前のエッジとの間の時間を表す前回エッジ周期であることを特徴とするモータの速度制御装置。
In the motor speed control apparatus according to claim 1,
The motor speed control device according to claim 1, wherein the predetermined time is a previous edge period representing a time between a previous edge and an edge immediately before the previous edge.
請求項2に記載のモータの速度制御装置において、
前記速度算出手段は、一定のサンプリング周期でモータの速度を算出し、先のエッジが取得されてから前記所定時間に達するまでは、サンプリングのたびに前回エッジ周期に基づいて速度を算出し、前記所定時間が経過した後は、次のエッジが取得されるまでの間、先のエッジの取得時点から各サンプリング時点までの時間に基づいて前記推定速度を算出することを特徴とするモータの速度制御装置。
The motor speed control device according to claim 2,
The speed calculation means calculates the speed of the motor at a constant sampling period, calculates the speed based on the previous edge period for each sampling until the predetermined time is reached after the previous edge is acquired, A speed control of a motor, characterized in that the estimated speed is calculated based on the time from the acquisition time of the previous edge to each sampling time until the next edge is acquired after a predetermined time has elapsed. apparatus.
車両の後部扉を開閉するためのモータの速度を加速・定速・減速の複数段階に制御する装置であって、
前記複数段階のそれぞれに対応して予め定められた速度の目標値を記憶した記憶手段と、
前記モータの回転により発生したパルスのエッジを検出する検出手段と、
前記検出手段で検出されたパルスのエッジに基づき前記モータの速度を算出する速度算出手段と、
前記速度算出手段で算出されたモータの速度に対応する後部扉の先端速度を、前記記憶手段に記憶されている所定の目標値と比較して、当該先端速度が前記目標値となるように前記モータを制御する制御手段と、
を備えたモータの速度制御装置において、
前記速度算出手段は、前記モータが減速状態にあって、かつ、前記パルスの先のエッジが取得されてから所定時間内に次のエッジが取得されない場合に、次のエッジが取得されるまでの間、所定のタイミングで、先のエッジの取得時点からの経過時間に応じた推定速度を算出し、
前記制御手段は、前記所定時間が経過してから次のエッジの取得時点までの区間において、前記推定速度と目標値とに基づき前記モータの速度を制御することを特徴とするモータの速度制御装置。
A device that controls the speed of the motor for opening and closing the rear door of the vehicle in multiple stages of acceleration, constant speed, and deceleration,
Storage means for storing a target value of a predetermined speed corresponding to each of the plurality of stages;
Detecting means for detecting an edge of a pulse generated by rotation of the motor;
Speed calculating means for calculating the speed of the motor based on the edge of the pulse detected by the detecting means;
The tip speed of the rear door corresponding to the motor speed calculated by the speed calculation means is compared with a predetermined target value stored in the storage means so that the tip speed becomes the target value. Control means for controlling the motor;
In a motor speed control device comprising:
The speed calculation unit is configured to acquire a next edge when the motor is in a deceleration state and the next edge is not acquired within a predetermined time after the previous edge of the pulse is acquired. Meanwhile, at a predetermined timing, calculate the estimated speed according to the elapsed time from the previous edge acquisition time,
The speed control device for a motor characterized in that the control means controls the speed of the motor based on the estimated speed and a target value in a section from when the predetermined time has elapsed until the next edge is acquired. .
開閉体を駆動するためのモータの速度を制御するとともに、前記開閉体に異物が挟み込まれたことを検知する装置であって、
挟み込みを検知するための閾値を記憶した記憶手段と、
前記モータの回転により発生するパルスのエッジを検出する検出手段と、
前記検出手段で検出されたパルスのエッジに基づき前記モータの速度を算出する速度算出手段と、
前記速度算出手段で算出されたモータの速度の変動量を算出する変動量算出手段と、
前記変動量算出手段で算出された速度変動量を、前記記憶手段に記憶されている閾値と比較し、この比較結果に基づいて前記開閉体に異物が挟み込まれたことを検知した場合に、前記モータを停止させるように制御する制御手段と、
を備えたモータの速度制御装置において、
前記速度算出手段は、前記パルスの先のエッジが取得されてから次のエッジが取得されるまでの間、所定のタイミングで、先のエッジの取得時点からの経過時間に応じた推定速度を算出し、
前記変動量算出手段は、前記速度算出手段が算出した推定速度に基づいてモータ速度の推定変動量を算出し、
前記制御手段は、前記推定変動量と閾値とに基づき異物の挟み込みを検知して、前記モータを停止制御することを特徴とするモータの速度制御装置。
A device for controlling the speed of a motor for driving the opening and closing body and detecting that a foreign object has been caught in the opening and closing body,
Storage means for storing a threshold for detecting pinching;
Detecting means for detecting an edge of a pulse generated by rotation of the motor;
Speed calculating means for calculating the speed of the motor based on the edge of the pulse detected by the detecting means;
A fluctuation amount calculating means for calculating a fluctuation amount of the motor speed calculated by the speed calculating means;
The speed fluctuation amount calculated by the fluctuation amount calculating means is compared with a threshold value stored in the storage means, and when it is detected that a foreign object is caught in the opening / closing body based on the comparison result, Control means for controlling the motor to stop;
In a motor speed control device comprising:
The speed calculation means calculates an estimated speed according to an elapsed time from the acquisition time of the previous edge at a predetermined timing after the previous edge of the pulse is acquired until the next edge is acquired. And
The fluctuation amount calculating means calculates an estimated fluctuation amount of the motor speed based on the estimated speed calculated by the speed calculating means,
The motor speed control device according to claim 1, wherein the control means detects the trapping of a foreign substance based on the estimated fluctuation amount and a threshold value and stops the motor.
JP2005026044A 2005-02-02 2005-02-02 Speed controller for motor Pending JP2006217697A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005026044A JP2006217697A (en) 2005-02-02 2005-02-02 Speed controller for motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005026044A JP2006217697A (en) 2005-02-02 2005-02-02 Speed controller for motor

Publications (1)

Publication Number Publication Date
JP2006217697A true JP2006217697A (en) 2006-08-17

Family

ID=36980426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005026044A Pending JP2006217697A (en) 2005-02-02 2005-02-02 Speed controller for motor

Country Status (1)

Country Link
JP (1) JP2006217697A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008018525A1 (en) 2006-08-10 2008-02-14 Calsonic Kansei Corporation Structure for installing article storage apparatus for vehicle
JP2008137449A (en) * 2006-11-30 2008-06-19 Nsk Ltd Electric steering device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01265164A (en) * 1988-04-15 1989-10-23 Sumitomo Electric Ind Ltd Method and device for measuring rotating speed
JPH08260810A (en) * 1995-03-23 1996-10-08 Nippondenso Co Ltd Control apparatus for opening and shutting of window
JP2000044135A (en) * 1998-07-29 2000-02-15 Nippon Otis Elevator Co Speed control device in elevator and recording medium for recording speed detection program of elevator
JP2003314141A (en) * 2002-04-23 2003-11-06 Aisin Seiki Co Ltd Opening/closing control device for opening/closing body for vehicle

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01265164A (en) * 1988-04-15 1989-10-23 Sumitomo Electric Ind Ltd Method and device for measuring rotating speed
JPH08260810A (en) * 1995-03-23 1996-10-08 Nippondenso Co Ltd Control apparatus for opening and shutting of window
JP2000044135A (en) * 1998-07-29 2000-02-15 Nippon Otis Elevator Co Speed control device in elevator and recording medium for recording speed detection program of elevator
JP2003314141A (en) * 2002-04-23 2003-11-06 Aisin Seiki Co Ltd Opening/closing control device for opening/closing body for vehicle

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008018525A1 (en) 2006-08-10 2008-02-14 Calsonic Kansei Corporation Structure for installing article storage apparatus for vehicle
JP2008137449A (en) * 2006-11-30 2008-06-19 Nsk Ltd Electric steering device

Similar Documents

Publication Publication Date Title
JP4218403B2 (en) Vehicle door control device
JP4487588B2 (en) Opening and closing body control device
US20070108929A1 (en) Panel member control system
US7808197B2 (en) Control apparatus for opening/closing member of vehicle and control method for opening/closing member of vehicle
US7579708B2 (en) Opening/closing member control apparatus and method for detecting pinching
JP2005351042A (en) Opening and closing body control device
JP6641827B2 (en) Opening / closing body control device for vehicles
JP2007063889A (en) Opening-closing member control device and its control method
JP2006183392A (en) Door operating device
JP6870488B2 (en) Vehicle opening / closing body control device
JP4063094B2 (en) Opening and closing body pinching detection device
JP2006217697A (en) Speed controller for motor
JP3528503B2 (en) Motor control device for opening and closing mechanism
JP2008150828A (en) Control unit of opening and closing body for vehicle
JP4239826B2 (en) Control device for vehicle opening / closing body
JP2018141338A (en) Electric sliding door control device
JP3528445B2 (en) Automatic door opening and closing device
JP5300228B2 (en) Open / close body pinching detection device
JP3687532B2 (en) Open / close control device
JPH09328964A (en) Window opening/closing device
JP4155025B2 (en) Opening and closing body control device
JP6432367B2 (en) Vehicle window opening and closing device
JP2002121965A (en) Drive control method and driving device for automatic door
JP6805597B2 (en) Opening and closing member drive device
JP5698012B2 (en) Motor control device, opening / closing body control device, control method, and control program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100622

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100624

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20100726

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20101019