JP3613611B2 - Motor control device - Google Patents
Motor control device Download PDFInfo
- Publication number
- JP3613611B2 JP3613611B2 JP36517798A JP36517798A JP3613611B2 JP 3613611 B2 JP3613611 B2 JP 3613611B2 JP 36517798 A JP36517798 A JP 36517798A JP 36517798 A JP36517798 A JP 36517798A JP 3613611 B2 JP3613611 B2 JP 3613611B2
- Authority
- JP
- Japan
- Prior art keywords
- motor
- position data
- switch
- block
- mem
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Control Of Direct Current Motors (AREA)
- Power-Operated Mechanisms For Wings (AREA)
- Window Of Vehicle (AREA)
- Control Of Motors That Do Not Use Commutators (AREA)
Description
【0001】
【発明の属する技術分野】
この発明は、自動車のパワーウインド等の開閉装置を制御するモータ制御装置に関する。
【0002】
【従来の技術】
自動車の開閉装置を制御するモータ制御装置としては、コントローラに内蔵され、電気的に書き込み可能にして消去可能な不揮発性メモリに対し、モータの回転信号を位置データとして取り込むことによって、ウインドガラスの現在位置を間接的に検出しているものが知られている。
【0003】
上記のようなモータ制御装置では、図14に示されるように、時刻aにおいて開スイッチ(閉スイッチ)がオンされることによってモータが作動される。モータが作動を開始するとモータ電圧VBは無負荷の状態に対して下がる。モータが作動を開始することによってモータに内蔵された回転センサからのパルス信号がコントローラに取り込まれる。時刻aの後の時刻bにおいてウインドガラスがストローク端に到達すると、ウインドガラスが移動を阻止されることにより、モータがロックされるので、モータ電圧VBは作動中よりさらに下がる。モータがロックされることにより、時刻bの後の時刻cにおいて、コントローラがモータに対する通電をカットオフし、モータ電圧VBは無負荷の状態に復帰する。そして、時刻cの後の時刻dにおいて電源(IG)スイッチがオフされると、コントローラの電源が遮断され、モータ電圧VBは時間の経過とともに下がる。そして、時刻dの後の時刻eにおいてモータ電圧VBがメモリ書き込み電圧V0を下回ると、コントローラは、回転センサから与えられたパルス信号数の不揮発性メモリへの書き込みを始め、時刻eの後の時刻fにおいてモータ電圧VBがリセット電圧RESを下まわるまでの書き込み可能時間t内で書き込みが行われる。メモリ書き込み電圧V0は、回路内の電源電圧がマイコンのリセット電圧RES以上になるような回路への供給電圧以上であって、しかも、モータがその仕様の最低作動電圧でロックしたときの電圧降下以下である必要がある。
【0004】
【発明が解決しようとする課題】
ところが、上記のモータ制御装置において、コントローラの電源電圧が遮断された時に、ウインドガラスの位置データを不揮発性メモリに書き込むものでは、モータがロック状態にある際に電源スイッチがオフ切換えされた場合、コントローラの電源電圧が通常の作動電圧より低い電圧値に対し既に低下しているので、書き込みに必要な電荷量が不足し、単一の位置データのみを書き込むようになっていた。そのため、不揮発性メモリにウインドガラスの位置データを書き込むのに十分な時間を確保できるようにするための大容量のバックアップ用コンデンサが用いられており、大容量のバックアップ用コンデンサをコントローラに内蔵することによって、コントローラの外形が大型化するという問題点があった。
【0005】
また、上記のモータ制御装置では、モータが作動中に電源スイッチがオフ切換えされた場合、モータの回転信号が入力中であるのにも拘らず、コントローラに内蔵されたマイコンの作動電圧が低下することによって書き込みができなくなり、実際のウインドガラスの位置に対してずれた位置データをマイコンが書き込んでしまうことになる。そのため、モータが停止するまで位置データの書き込みを継続して行えるようにするための大容量のバックアップ用コンデンサが用いられており、上記と同様にコントローラの外形が大型化するという問題点があった。
【0006】
【発明の目的】
この発明に係わるモータ制御装置は、大容量のバックアップ用コンデンサを必要とすることなく複数個の位置データの書き込みが確実にできて、コンパクトな外形を得ることができるモータ制御装置を提供することを目的としている。
【0007】
【発明の構成】
【0008】
【課題を解決するための手段】
この発明の請求項1に係わるモータ制御装置では、電源スイッチと、電源スイッチに電気的に接続されたモータ駆動回路と、モータ駆動回路に電気的に接続されているとともに開閉負荷に結合され、モータ駆動回路の作動により負荷を開側または閉側に駆動するモータと、モータの回転により回転検出信号を発生するモータ回転検出手段と、オン切換えされることにより下降指令信号を発生する開スイッチと、オン切換えされることにより上昇指令信号を発生する閉スイッチと、電源スイッチ、モータ駆動回路、モータ回転検出手段、開スイッチ、閉スイッチにそれぞれ電気的に接続され、開スイッチより下降指令信号が与えられると負荷を開側に駆動するための電流をモータ駆動回路を介しモータに供給する一方、閉スイッチより上昇指令信号が与えられると負荷を閉側に駆動するための電流をモータ駆動回路を介しモータに供給するコントローラと、モータが負荷を駆動中に、モータ電圧が下がってきたときに、モータ回転検出手段より与えられた回転信号を位置データに変換して電気的に複数個読み込み及び書き込み可能な不揮発性メモリと、コントローラに内蔵され、モータが作動中に、電源スイッチがオフ切換えされたときで、電源電圧が予め定められた値以下になったときに、予め定められた時間おきに位置データを不揮発性メモリに連続的に書き込む機能を有している制御ブロックを備えている構成としたことを特徴としている。
【0009】
この発明の請求項2に係わるモータ制御装置では、コントローラには、電源スイッチがオン切換えされたときに不揮発性メモリに書き込まれている複数個の位置データを読み出し、その中の3個の位置データのそれぞれを比較して、最後に書き込まれた位置データの以後の位置データの算出処理を最終的な位置データが得られるまで複数回行うガラス位置予測ブロックを備えている構成としたことを特徴としている。
【0010】
この発明の請求項3に係わるモータ制御装置では、コントローラには、モータ回転検出手段より与えられた回転信号の周期を測定するパルス間隔測定ブロックを備えている構成としたことを特徴としている。
【0011】
この発明の請求項4に係わるモータ制御装置では、コントローラには、パルス間隔測定ブロックより与えられた回転信号の周期値と予め定められた判定値とを比較することにより、モータのロック判定を行うモータロック判定ブロックを備えている構成としたことを特徴としている。
【0012】
この発明の請求項5に係わるモータ制御装置では、コントローラには、開スイッチまたは閉スイッチがオン切換えされている時間が予め定められた値を越えた際に下降指令信号または上昇指令信号を記憶し、その後に、開スイッチまたは閉スイッチがオフ切換えされてからも、下降指令信号または上昇指令信号を連続的に発生するワンタッチ動作記憶ブロックを備えている構成としたことを特徴としている。
【0013】
【発明の作用】
この発明の請求項1に係わるモータ制御装置において、開スイッチまたは閉スイッチがオン切換えされ、モータが起動し始めた後、開スイッチまたは閉スイッチがオフ切換えされる以前に電源スイッチがオフ切換えされ、モータ電圧が下がってきたときに、不揮発性メモリに複数個の位置データの書き込みが行われ、電源スイッチがオン切換えされた際に不揮発性メモリに書き込まれた位置データを用いて現在位置が予測されるから、位置データの書き込みのための時間を確保する大容量のバックアップ用コンデンサを必要としない。
【0014】
この発明の請求項2に係わるモータ制御装置において、コントローラのガラス位置予測ブロックは、電源スイッチがオン切換えされた際に、不揮発性メモリに既に書き込まれている複数個の位置データを読み出し、その中の3個の位置データのそれぞれを比較して、最後に書き込まれた位置データの以後の位置データの算出処理を複数回行うことにより、負荷が最終的に停止した位置データを得る。それ故、請求項1の作用に加え、モータ電圧が下がってきたときに、不揮発性メモリに電気的に書き込まれた位置データの数が複数個存在するため、確実に最終的な位置データが得られる。
【0015】
この発明の請求項3に係わるモータ制御装置において、モータ回転検出手段より与えられる回転信号は、モータがロックすることによってその周期が大きくなり、コントローラのパルス間隔測定ブロックは、モータ回転検出手段より与えられた回転信号の周期を測定する。それ故、請求項1の作用に加え、パルス間隔測定ブロックにより、回転信号の周期を検出することによってモータの負荷状態が検出される。
【0016】
この発明の請求項4に係わるモータ制御装置において、コントローラのモータロック判定ブロックは、パルス間隔測定ブロックより与えられた周期値と予め定められた判定値とを比較し、パルス間隔測定ブロックより与えられた周期値が予め定められた判定値を越えた際に、制御ブロックにモータロックの有無の判定を与える。それ故、請求項3の作用に加え、モータのロック中に電源スイッチがオフ切換えされても、ガラスの位置データは失われない。
【0017】
この発明の請求項5に係わるモータ制御装置において、コントローラのワンタッチ動作記憶ブロックは、開スイッチまたは閉スイッチが長い時間オン切換えされた後にオフ切換えされた際、開スイッチまたは閉スイッチがオン切換えされたときに記憶した下降指令信号または上昇指令信号が連続的に発生する。それ故、請求項1の作用に加え、ワンタッチ動作記憶ブロックによって、開スイッチまたは閉スイッチより発生した指令信号の保持が行われるため、開スイッチおよび閉スイッチの他にオートスイッチ等の付加スイッチを必要としない。
【0018】
【実施例】
図1ないし図13には、この発明に係わるモータ制御装置の一実施例が示されている。
【0019】
図示されるモータ制御装置1は、開スイッチ(SW)2、閉スイッチ(SW)3、スイッチ(SW)信号入力ブロック4、モータ5、回転センサ6、モータ駆動出力ブロック7、パルス信号入力ブロック8、電源ブロック9(図2に示される。)、変換ブロック10(図2に示される。)、中央処理回路(コントローラ)(マイコン)MCU、EEPROM外部メモリブロックMEM、リセット回路11(図2に示される。)から構成されており、中央処理回路MCUに、ワンタッチ動作記憶ブロック12、EEPROMメモリアドレスカウンタADCT、クロックジェネレータ13、制御ブロック14、入出力制御ブロック15、パルス間隔測定ブロック16、パルス間隔測定タイマTM2、モータロック判定ブロック17、EEPROM書き込みインターバルタイマTM1、パルスカウンタガラス位置記憶WINDCT、ガラス位置予測ブロック18が内蔵されている。
【0020】
図1に示されるモータ制御装置1は、具体的には図2に示される回路図に表される。
【0021】
開、閉スイッチ2、3は、一方が電源スイッチ(イグニションスイッチ)20を通じてバッテリである電源21に電気的に接続され、他方がスイッチ信号入力ブロック4に電気的に接続されている。開スイッチ2は、オン切換えされることによって下降指令信号を発生する。これとは異なり、閉スイッチ3は、オン切換えされることによって上昇指令信号を発生する。
【0022】
スイッチ信号入力ブロック4は、抵抗R6、抵抗R7から構成されており、抵抗R6が開スイッチ2に電気的に接続され、抵抗R7が閉スイッチ3に電気的に接続されている。
【0023】
スイッチ信号入力ブロック4では、電源スイッチ20がオン状態にある際に、開スイッチ2がオン切換えされると、抵抗R6を通じ、図示しない電圧クランプ回路を介し下降指令信号(ハイレベル)を中央処理回路MCUに備えた第1の入力ポートIN1に与える。これとは異なり、電源スイッチ20がオン状態にある際に、閉スイッチ3がオン切換えされると、抵抗R7を通じ、図示しない電圧クランプ回路を介し上昇指令信号(ハイレベル)を中央処理回路MCUに備えた第2の入力ポートIN2に与える。
【0024】
モータ5には、第1、第2のブラシ端子5a、5bが備えられているとともに、図示しないアーマチュアに備えたアーマチュアシャフト5cが図示しないゴム製のダンパを介し、同じく図示しないガラス昇降器を介してウインドガラス30に連結されている。
【0025】
モータ5は、第1のブラシ端子5aが電源21に電気的に接続されるとともに第2のブラシ端子5bが接地に接続されることによってアーマチュアシャフト5cが正回転するため、アーマチュアシャフト5cの正回転によってウインドガラス30を開ける。これに反して、第2のブラシ端子5bが電源21に電気的に接続されるとともに第1のブラシ端子5aが接地に接続されることによってアーマチュアシャフト5cが逆回転するため、アーマチュアシャフト5cの逆回転によってウインドガラス30を閉める。モータ5の第1、第2のブラシ端子5a、5bは、モータ駆動出力ブロック7に電気的に接続されている。
【0026】
モータ駆動出力ブロック7には、第1のリレーRL1、第1のスイッチングトランジスタTR1、第2のリレーRL2、第2のスイッチングトランジスタTR2がそれぞれ備えられている。
【0027】
第1のリレーRL1には、第1のリレーコイルRL1−1、第1のリレー常開接点RL1−2、第1の常閉接点RL1−3、第1のリレー可動接点RL1−4が備えられている。第1のリレーコイルRL1−1は、上流側が電源スイッチ20に接続され、下流側が第1のスイッチングトランジスタTR1のコレクタに接続されている。第1のリレー常開接点RL1−2は電源スイッチ20に接続されている。第1のリレー常閉接点RL1−3は接地に接続されている。第1のリレー可動接点RL1−4はモータ5の第1のブラシ端子5aに接続されている。
【0028】
第1のスイッチングトランジスタTR1は、エミッタ接地のNPN型トランジスタであって、ベースが図示しない抵抗を通じて中央処理回路MCUに備えた第1の出力ポートD1に接続され、コレクタが前述したように第1のリレーコイルRL1−1の下流側に接続されている。
【0029】
第2のリレーRL2には、第2のリレーコイルRL2−1、第2のリレー常開接点RL2−2、第2の常閉接点RL2−3、第2のリレー可動接点RL2−4が備えられている。第2のリレーコイルRL2−1は、上流側が電源スイッチ20に接続され、下流側が第2のスイッチングトランジスタTR2のコレクタに接続されている。第2のリレー常開接点RL2−2は、電源スイッチ20に接続されている。第2のリレー常閉接点RL2−3は、接地に接続されている。第2のリレー可動接点RL2−4は、モータ5の第2のブラシ端子5bに接続されている。
【0030】
第2のスイッチングトランジスタTR2は、エミッタ接地のNPN型トランジスタであって、ベースが図示しない抵抗を通じて中央処理回路MCUに備えた第2の出力ポートD2に接続され、コレクタが前述したように第2のリレーコイルRL2−1の下流側に接続されている。
【0031】
モータ駆動出力ブロック7では、中央処理回路MCUの第1の出力ポートD1からハイレベルが与えられるとともに、中央処理回路MCUの第2の出力ポートD2からローレベルが与えられると、第1のスイッチングトランジスタTR1がオンされ、第1のリレーコイルRL1−1が励磁され、第1のリレー可動接点RL1−4が第1のリレー常閉接点RL1−3から第1のリレー常開接点RL1−2に電気的に接続される。そして、電源21の電流が、第1のリレー常開接点RL1−2、第1のリレー可動接点RL1−4、モータ5の第1のブラシ端子5a、モータ5の第2のブラシ端子5b、第2のリレー可動接点RL2−4、第2のリレー常閉接点RL2−3、接地に流れるため、モータ5のアーマチュアシャフト5cが正回転する。
【0032】
上記に反して、モータ駆動出力ブロック7では、中央処理回路MCUの第2の出力ポートD2からハイレベルが与えられるとともに、中央処理回路MCUの第1の出力ポートD1からローレベルが与えられると、第2のスイッチングトランジスタTR2がオン切換えされ、第2のリレーコイルRL2−1が励磁され、第2のリレー可動接点RL2−4が第2のリレー常閉接点RL2−3から第2のリレー常開接点RL2−2に電気的に接続される。そして、電源21の電流が、第2のリレー常開接点RL2−2、第2のリレー可動接点RL2−4、モータ5の第2のブラシ端子5b、モータ5の第1のブラシ端子5a、第1のリレー可動接点RL1−4、第1のリレー常閉接点RL1−3、接地に流れるため、モータ5のアーマチュアシャフト5cが逆回転する。
【0033】
回転センサ6は、ロータリーエンコーダやタコジェネレータなどの回転検出器であって、モータ5のアーマチュアシャフト5cの近くに配置されている。この回転センサ6は、図2に示されるように、抵抗R8および抵抗9によって分圧され、ツェナダイオードZD3によって制限された電圧レベルが上流側に与えられているため、モータ5のアーマチュアシャフト5cが回転していると、回転に対応してパルス状の回転信号を発生する。回転センサ6が発生したパルス信号はパルス信号入力ブロック8に与えられる。
【0034】
パルス信号入力ブロック8は、抵抗R10、コンデンサC5からなる。このパルス信号入力ブロック8は、回転センサ6から与えられたパルス信号を安定化したうえで、図示しない電圧クランプ回路を通じ中央処理回路MCUに備えた第3の入力ポートIN3に与える。
【0035】
電源ブロック9は、ダイオードD1、抵抗R1、ツェナダイオードZD1、第1のバックアップ用コンデンサC1、第2のバックアップ用コンデンサC2、発振防止用コンデンサC4、電源IC22からなる。
【0036】
電源ブロック9では、ダイオードD1のアノードが電源スイッチ20に接続され、他端が接地された第2のバックアップ用コンデンサC2の一端が電源ライン9aとともに作動用電源VCCに接続され、電源ライン9aが中央処理回路MCUのレギュレータポートREGおよびEEPROM外部メモリブロック(不揮発性メモリ)MEMに接続されている。
【0037】
電源ブロック9では、電源スイッチ20がオン状態にあると、第1のバックアップ用コンデンサC1が充電され、電源IC22がオンし、第2のバックアップ用コンデンサC2が充電されて、中央処理回路MCUのレギュレータポートREG、EEPROM外部メモリブロックMEMに所定のドライブ電圧を与える。そして、電源ブロック9では、電源スイッチ20がオフ切換えされると、第1のバックアップ用コンデンサC1、第2のバックアップ用コンデンサC2がそれぞれ放電され、放電電圧が、中央処理回路MCUのレギュレータポートREG、EEPROM外部メモリブロックMEMに与えられる。
【0038】
EEPROM外部メモリブロックMEM(electrically erasable programma−ble ROM )は、電気的に書き換え可能なROMであり、非通電状態でも記憶内容が保持される不揮発性メモリである。このEEPROM外部メモリブロックMEMは、中央処理回路MCUに備えたシリアル出力ポートSOUTより与えられたガラス位置データを所定のメモリエリア内に格納し、シリアル入力ポートSINを介して所定のメモリエリアよりガラス位置データを取り出す。
【0039】
変換ブロック10には、抵抗R2、R3、R4、R5、ツェナダイオードZD2、コンデンサC3が備えられている。
【0040】
変換ブロック10では、抵抗R2と抵抗R3とによって分圧され、ツェナダイオードZD2によって制限され、抵抗R4とコンデンサC3によって積分され、抵抗R5によって調整された電圧レベルの信号を中央処理回路MCUに備えた変換ポートA/Dに与える。
【0041】
リセット回路11は、電源ブロック9から与えられているドライブ電圧が低下した際に、中央処理回路MCUをリセットする。
【0042】
ワンタッチ動作記憶ブロック12は、開スイッチ2がオン切換えされることによってスイッチ信号入力ブロック4から第1の入力ポートIN1に与えられた下降指令信号(ハイレベル)、閉スイッチ3がオン切換えされることによってスイッチ信号入力ブロック4から第2の入力ポートIN2に与えられた上昇指令信号(ハイレベル)の入力時間を検出している。
【0043】
ワンタッチ動作記憶ブロック12では、開スイッチ2から与えられた下降指令信号、閉スイッチ3から与えられた上昇指令信号のそれぞれの入力信号が予め定められた時間よりも長くなった場合、後述するものとは別に定められたプログラムによってワンタッチフラグがセットされることによりそれぞれの入力信号を記憶し、それぞれの入力信号が与えられなくなってからも、記憶したそれぞれの指令信号を制御ブロック14に与え続けてワンタッチ動作を行う。中央処理回路MCUは、開スイッチ2が発生した下降指令信号の時間によってワンタッチ動作を判別するため、開スイッチ2の他にオートスイッチ等の付加スイッチを必要としない。
【0044】
EEPROMメモリアドレスカウンタADCTは、制御ブロック14とのあいだで番地信号の授与を行うカウンタである。
【0045】
クロックジェネレータ13は、実行するプログラムの時間管理を行う。
【0046】
パルス間隔測定ブロック16は、パルス信号入力ブロック8より与えられたパルス信号の1つづつの立上がりおよび立下がりを検出する。
【0047】
パルス間隔測定タイマTM2は、パルス間隔測定ブロック16によってパルス信号の立上がりが検出されるとタイマがスタートし、パルス信号の立下がりが検出されるとタイマがオフすることによって、パルス信号の1つづつの周期時間を検出する。検出したパルス信号の周期時間は、モータロック判定ブロック17に与えられる。パルス間隔測定タイマTM2では、モータ5のロック検出をモータ5が発生したパルス信号の周期によって直接的に検出している。
【0048】
モータロック判定値XLOCKは、予め定められた値であって、モータ5のアーマチュアシャフト5cが回転を拘束されたことを検出するために用いられる。このモータロック判定値XLOCKは、中央処理回路MCUに内蔵された図示しないROM内に保持されている。モータロック判定値XLOCKは、モータロック判定ブロック17において、パルス間隔測定タイマTM2により検出された周期時間と比較される。
【0049】
モータロック判定ブロック17は、パルス間隔測定タイマTM2が検出した周期時間とモータロック判定値XLOCKとを比較することにより、パルス間隔測定タイマTM2が検出した周期時間がモータロック判定値XLOCKを越えたときに判定信号を制御ブロック14に与える。
【0050】
EEPROM書き込みインターバルタイマTM1は、制御ブロック14より入出力制御ブロック15を通じて行われるEEPROM外部メモリブロックMEMへの書き込みを一定の時間毎に行う機能を有する。このとき、EEPROM書き込みインターバルタイマTM1は予め定められた値XMEMWRと比較することによってインターバル時間の経過を測る。
【0051】
パルスカウンタガラス位置記憶WINDCTは、制御ブロック14においてEEPROM外部メモリブロックMEM内へ書き込むためのガラス位置データを計数する。中央処理回路MCUに備えたリセットポートRESはリセット回路11に接続されている。
【0052】
ガラス位置予測ブロック18は、電源スイッチ20がオン切換えされた際、入出力制御ブロック15、制御ブロック14を介してEEPROM外部メモリブロックMEMに既に書き込まれている位置データを読み出して、その中の3個の位置データを比較し、最後に書き込まれた位置データ以後の位置データの算出処理を複数回行うことによって、最終的にウインドガラス30が停止した位置を推測し、この位置データをパルスカウンタガラス位置記憶WINDCTに与える。
【0053】
制御ブロック14では、スイッチ信号入力ブロック4より下降指令信号が与えられると、中央処理回路MCUの第1の出力ポートD1がハイレベルに、第2の出力ポートD2がローレベルにそれぞれなることによって第1のスイッチングトランジスタTR1をオンする。これに反して、スイッチ信号入力ブロック4より上昇指令信号が与えられると、中央処理回路MCUの第2の出力ポートD1がハイレベルに、第1の出力ポートD2がローレベルにそれぞれなることによって第2のスイッチングトランジスタTR2をオンする。
【0054】
制御ブロック14では、スイッチ信号入力ブロック4より与えられた下降指令信号が予め定められた時間よりも長くなってワンタッチ動作記憶ブロック12により下降指令信号が記憶され、下降指令信号が与えられなくなってからも、ワンタッチ動作記憶ブロック12により記憶された下降指令信号が与え続けられるため、モータ駆動出力ブロック7の第1のスイッチングトランジスタTR1をオンし続ける。
【0055】
制御ブロック14では、スイッチ信号入力ブロック4より与えられた上昇指令信号が予め定められた時間よりも長くなってワンタッチ動作記憶ブロック12により上昇指令信号が記憶され、上昇指令信号が与えられなくなってからも、ワンタッチ動作記憶ブロック12により記憶された上昇指令信号が与え続けられるため、モータ駆動出力ブロック7の第2のスイッチングトランジスタTR2をオンし続ける。
【0056】
制御ブロック14では、パルス間隔測定タイマTM2が検出した周期時間がモータロック判定値XLOCKを越えたときにモータロック判定ブロック17から与えられた判定信号によって、モータ5がロック状態にあることを認識し、モータ駆動出力ブロック7に対して停止指令を与える。
【0057】
制御ブロック14では、電源ブロック9に与えられる回路電源電圧(モータ5の電圧VB)が予め定められた電圧V2以下になった際に書き込み指令を発生する。この書き込み指令が発生すると、入出力制御ブロック15を介し、EEPROM書き込みインターバルタイマTM1によって定められた時間(XMEMWR)毎に、EEPROM外部メモリブロックMEM内においてEEPROMメモリアドレスカウンタADCTによって定められた番地にパルスカウンタガラス位置記憶WINDCTより与えられたパルス信号数(ガラス位置データ)でのメモリ書き込みを複数回行う。
【0058】
入出力制御ブロック15は、パラレルデータとシリアルデータとの変換を行うとともに、クロックジェネレータ13の信号に基づいてEEPROM外部メモリブロックMEMへの書き込み及び読み込みのタイミング処理を行うことによって入出力の総括的処理を行う。
【0059】
中央処理回路MCUでは、電源スイッチ20がオンされている状態で、ウインドガラス30が閉まっていて、図3に示されるように、時刻Lにおいて開スイッチ2がオン切換えされることによってスイッチ信号入力ブロック4より制御ブロック14に下降指令信号が与えられると、制御ブロック14(第1の出力ポートD1)よりモータ駆動出力ブロック7の第1のスイッチングトランジスタTR1のベースにハイレベルが与えられるため、モータ5のアーマチュアシャフト5cが正回転し、ウインドガラス30が開く。
【0060】
モータ5のアーマチュアシャフト5cが正回転を開始することによって、回路電源電圧は無負荷の状態よりも下がったほぼ一定の通常動作での電位を保ち、回転センサ6はほぼ同一間隔のパルス信号を発生し、パルス信号入力ブロック8、パルス間隔測定ブロック16、パルス間隔測定タイマTM2が1つづつのパルス信号の周期時間を検出する。
【0061】
図3中の時刻Lの後の時刻Mにおいて、電源スイッチ20がオフ切換えされると、回路電源電圧は通常動作での電位よりも急激に下がり始める。ただし、同様の電圧降下はモータロックの時にも発生するが、この時の回転センサ6が発生するパルス信号の周期時間はそれ程長くならない。
【0062】
図3中の時刻Mの以後の時刻Nにおいて、回路電源電圧(モータ電圧)が予め定められた電圧V2(メモリ書き込み電圧B)を越えて下がった時で、モータロック判定ブロック内でパルス間隔測定ブロック16で測定された周期時間とモータロック判定値XLOCKとの比較でモータロックではないと判断されたときに、制御ブロック14より入出力制御ブロック15に書き込み指令が与えられ、EEPROM書き込みインターバルタイマTM1によって定められた時間(XMEMWR)毎に、EEPROM外部メモリブロックMEM内においてEEPROMメモリアドレスカウンタADCTによって定められた番地にパルスカウンタガラス位置記憶WINDCTより与えられた回転信号数(ガラス位置データ)でのメモリ書き込みが繰り返し行われる。
【0063】
EEPROM外部メモリブロックMEMへの書き込みは、EEPROM書き込みインターバルタイマTM1によって定められた時間(XMEMWR)毎に、予め定められたリセット電圧RESに到達する時刻P(時刻Nから時刻Pまでの書き込み可能時間t´)まで複数回行われる。このとき、1番目の位置データMEM(1)、2番目の位置データMEM(2)、3番目の位置データMEM(3)、4番目の位置データMEM(4)、5番目の位置データMEM(5)、6番目の位置データMEM(6)、7番目の位置データMEM(7)、8番目の位置データMEM(8)(図4に示される。)、9番目の位置データMEM(9)(図4に示される。)が書き込まれた場合、EEPROM外部メモリブロックMEMは、1番目の位置データMEM(1)から9番目の位置データMEM(9)までの9個の位置データを格納する。
【0064】
中央処理回路MCUでは、1番目の位置データMEM(1)から9番目の位置データMEM(9)までをEEPROM外部メモリブロックMEMに書き込んだ後の時刻Pにおいてリセットされることによって書き込みが中止されるが、ウインドガラス30は最終的に停止していないので、これらの位置データをそのまま用いてウインドガラス30の停止位置を認識しない。この場合、9個の位置データを書き込んだものを説明したが、位置データは、9個に限らず最低3個書き込めれば、ガラス位置予測ブロック18により予測を行え、且つ、最初に1個書き込めば、大体の位置の推定は行えるので、メモリ書き込みを行うための時間が短くなる。そのため、大きな容量のバックアップコンデンサを必要としないから、電源ブロック9に備えられた第1のバックアップ用コンデンサC1、第2のバックアップ用コンデンサC2は容量が小さいものとなる。
【0065】
電源スイッチ20がオフ切換えされた後に、新たに電源スイッチ20がオン切換えされると、中央処理回路MCUは、入出力制御ブロック15を介してEEPROM外部メモリブロックMEMに既に書き込まれている3個の位置データをそれぞれ比較して、最後に書き込まれた位置データの以後の位置データの算出処理を複数回行うことによって、最終的に負荷が停止した位置データを予測する。
【0066】
位置データを予測するに際し、EEPROM外部メモリブロックMEMには、図4に示されるように、1番目の位置データMEM(1)、2番目の位置データMEM(2)、3番目の位置データMEM(3)、4番目の位置データMEM(4)、5番目の位置データMEM(5)、6番目の位置データMEM(6)、7番目の位置データMEM(7)、8番目の位置データMEM(8)、9番目の位置データMEM(9)が書き込まれているから、1番目の位置データMEM(1)を最初の位置データとして認識し、5番目の位置データMEM(5)を中間の位置データとして認識し、9番目の位置データMEM(9)を最後の位置データとして認識する。
【0067】
中央処理回路MCUでは、最初の位置データである1番目の位置データMEM(1)(MEMA)[MEMAはMEM(N)の中でMEMCと比較するためn−a(aは2,4,6,8…でn−a≧1となる最大値)にある位置データである。]と、中間の位置データである5番目の位置データMEM(5)(MEMB)との偏差R1(パルスカウント数)を算出するとともに、中間の位置データである5番目の位置データMEM(5)(MEMB)と、最後の位置データである9番目の位置データMEM(9)(MEMC)との偏差R2(パルスカウント数)を算出することによって、減速比RA=R2/R1を算出する。このとき、モータ5のアーマチュアシャフト5cの回転数は減速中であるから、減速比RA<1となる。MEM(N)は連続したメモリブロックであって、Nはメモリブロックアドレスの最大値である。
【0068】
そして、中央処理回路MCUでは、算出した減速比RAを用いて、最後に得られた9番目の位置データMEM(9)(MEMC)の以後に、ウインドガラス30が最終的に停止した位置データを予測して得るための予測ループを複数回行う。
【0069】
予測ループは、大きく2つのブロックに分けられ、最初に前回の電源オフで書き込まれた位置データの中から、比例計算を行う上で、EEPROM外部メモリブロックMEM内のアドレス位置の関係がMEMAとMEMBの間隔とMEMBとMEMCの間隔が等しく、且つ、最も時間的に長くなる3個を選び出し、その3個のデータより減速比RAを求める。次いで、その減速比RAで収束する位置データを計算する。まず、前回の電源オフで中央処理回路MCU(マイコン)がリセットした箇所の直前の位置データMEM(9)を起点として、前回の電源オフで書き込まれた位置データの中から減速比RAを算出するための最も時間的に離れた3点を探し出す。その3点をMEMA、MEMB、MEMCとすると、それらの条件はメモリ内のアドレスでMEMAとMEMBの間とMEMAとMEMCの間が同じだけ離れていて、且つ、MEMAとMEMCがEEPROM外部メモリブロックMEM内にある事である。
【0070】
選択ループの一回目(ループカウンタCT2=1)では、図5に示されるように、リセットされる以前に最後に書き込まれている位置データnに基づき、[n−2」をMEMA(最初の位置データ)とし、[n−1]をMEMB(中間の位置データ)とし、[n]をMEMC(最後の位置データ)として、中央処理回路MCUに内蔵された記憶手段RAM内に格納する。書き込まれている位置データが3個未満でMEMAまたはMEMAとMEMBが設定できない時は、この後の予測ループを行わず、MEMCの値をガラス位置とする。
【0071】
選択ループの二回目では、一回目の予測ループを実行した後、ループカウンタCT2をインクリメントしてCT2=2として、最後の位置データがメモリの5番目以上であるならば、すなわち、n−(CT2×2)≧1であるならば、図5に示されるように、[4…n−3]をMEMA(n−4)(最初の位置データ)とし、[n−2]をMEMB(中間の位置データ)とし、[n]をMEMC(最後の位置データ)として、中央処理回路MCUに内蔵された記憶手段RAM内に格納する。
【0072】
同様に、選択ループの三回目(ループカウンタCT2=3)では、図5に示されるように、[4…n−3]をMEMA(n−6)(最初の位置データ)とし、[n−3]をMEMB(中間の位置データ)とし、[n]をMEMC(最後の位置データ)として、中央処理回路MCUに内蔵された記憶手段RAM内に格納して減算処理を行う。
【0073】
そして、選択ループの最終回(ループカウンタCT2=m、ただしn−2m≧1である。)では、図5に示されるように、[2]をMEMA(最初の位置データ)とし、[4…n−3]をMEMB(中間の位置データ)(MEMB=n−CT2)とし、[n]をMEMC(最後の位置データ)として、中央処理回路MCUに内蔵された記憶手段RAM内に格納して除算処理を行う。すなわち、減速比RAを求めるために(MEMC−MEMB)/(MEMB−MEMA)を実行する。
【0074】
次いで、位置データが収束する点の計算を行う。
【0075】
計算ループの1回目では、前回の電源オフで中央処理回路MCU(マイコン)がリセットした箇所の直前の位置データMEM(9)を起点として次のMEM(10)の位置データの計算を行う。
【0076】
図4に示される予測ループの1回目において、先に算出した減速比RAに、この直前の位置データの差、すなわち、MEM(9)−MEM(8)を乗ずる。この値がMEM(9)とMEM(10)の推定差である。これをRDIFとする。もし、このRDIFの値が1未満であれば、更なる推定値は得られないので、ここでループを抜ける。RDIFが1以上であるならば、この値を四捨五入して整数化し、MEM(9)に加えた値がMEM(10)の推定値となる。この後、先に得られたRDIFをR2に代入し、次のループの新たな位置データの差分として予測ループの1回目を終了する。
【0077】
図4に示される予測ループの2回目において、前回同様RAX(MEM(10)−MEM(9))、すなわち、前回ループでR2・推定差RDIF(MEM(9)とMEM(10)の推定差)を代入してあるので、RAXR2を行い、これをRDIFFに代入する。この時のRDIFはMEM(10)とMEM(11)の推定差である。もし、このRDIFの値が1未満であれば、更なる推定値は得られないので、ここでループを抜ける。RDIFが1以上であるならば、この値を四捨五入して整数化し、MEM(10)に加えた値がMEM(11)の推定値となる。この後、得られたRDIFをR2に代入し、次のループの新たな位置データの差分とし予測ループ2回目を終了する。
【0078】
1回目、2回目と同様に、3回目、4回目と繰り返し、RDIFの値が1未満になるまで繰り返し、1未満でループを抜けて最後の推定値、すなわち、前回電源スイッチ20がオフ切換えされた時のガラス停止位置が得られる。
【0079】
中央処理回路MCUでは、ウインドガラス30が閉まっている状態で、電源スイッチ20がオン切換えされた場合においても、上述と同様にして、入出力制御ブロック15を介してEEPROM外部メモリブロックMEMに既に書き込まれている位置データから最後に書き込まれた位置データの以後の位置データの算出処理を複数回行うことによって、最終的にウインドガラス30が停止した位置データを予測する。
【0080】
上記のモータ制御装置1は、図6ないし図13に示されるプログラムに従って制御動作を行う。図6および図7はメインルーチンであり、図8ないし図9はEEPROM外部メモリブロックMEMへの書き込みルーチンであり、図10ないし図13は位置データの予測を行うルーチンである。
【0081】
電源スイッチ20がオン切換えされていて、ウインドガラス30が図2に示される全閉位置FC又は全開位置FO又はFCとFOの間にあるとき、図6に示されるメインルーチンのステップ200において「起動時の位置予測」が実行されるため、図10に示されるステップ100に移行して「ループカウンタCT1をクリア」してステップ101に移行する。ステップ101において「EEPROM外部メモリブロックMEMに書き込まれている最終(最後)の位置データがチェック(n←N−CT1)」される。ここでのNは、EEPROM外部メモリブロックMEMで書き込み可能な最大値のメモリアドレスで、nは、EEPROM外部メモリブロックMEMに書き込まれている位置データの最終値である。この後、ステップ102に移行する。
【0082】
ステップ101から移行したステップ102において「EEPROM外部メモリブロックMEMの所定のアドレスに位置データが書き込まれているか否か」の判別が行われるため、以前において、EEPROM外部メモリブロックMEMに位置データが書き込まれていればステップ103をスキップしてステップ104に移行し、EEPROM外部メモリブロックMEMに位置データが書き込まれていなければステップ103に移行して「ループカウンタCT1をインクリメント(CT1←CT1+1」)してステップ101、ステップ102を繰り返す。
【0083】
ステップ102から移行したステップ104において「予測に必要な3個以上の位置データがEEPROM外部メモリブロックMEM内に書き込まれているか否か」が判別される。
【0084】
EEPROM外部メモリブロックMEM内に、予測に必要な3個以上の位置データが書き込まれていると、ステップ104からステップ121に移行して「位置データが2個か否か」が判別される。EEPROM外部メモリブロックMEM内に2個の位置データが書き込まれていると、ステップ122に移行して「パルスカウンタガラス位置記憶WINDCTにMEM(2)が格納」される。
【0085】
EEPROM外部メモリブロックMEM内に2個の位置データが書き込まれておらず、1個の位置データが書き込まれていると、ステップ121においての判別でステップ123に移行し、ステップ123においての判別でステップ124に移行して「パルスカウンタガラス位置記憶WINDCTにMEM(1)が格納」される。
【0086】
EEPROM外部メモリブロックMEM内に1個の位置データが書き込まれていないと、ステップ121においての判別でステップ123に移行し、ステップ123においての判別でステップ125に移行して初期動作モードをセットする。
【0087】
ステップ104においての判別でEEPROM外部メモリブロックMEM内に、予測に必要な3個以上の位置データが書き込まれていると、ステップ105に移行して「MEM(n)を最終の位置データMEMCに置き換え」てステップ106に移行する。ステップ105から移行したステップ106では、「ループカウンタCT2の初期セット(CT2←1)」が行われてステップ107に移行する。
【0088】
ステップ106から移行したステップ107において「MEM(n−CT2)を中間の位置データMEMBに置き換え」てステップ108に移行し、ステップ108において「MEM(n−CT2×2)を最古の位置データとしてMEMAに置き換え」てステップ109に移行する。
【0089】
ステップ109において「ループカウンタをインクリメント(CT2←CT2+1)」してステップ110に移行し、ステップ110において「最古の位置データMEMAに置き換えたMEM(n−CT2×2)の値の判別(n−CT2×2≧1)」が行われ、ステップ110においての値の判別が1を越えている場合はステップ107に戻ってステップ108、ステップ109を実行し、ステップ110においての値の判別が1を越えていない場合、ステップ111に移行する。
【0090】
ステップ110から移行したステップ111において「[最初の位置データMEMA−中間の位置データMEMB]によって偏差R1を算出」してステップ112に移行し、ステップ112において「[中間の位置データMEMB−最後の位置データMEMC]によって偏差R2を算出」してステップ113に移行する。
【0091】
ステップ113において「減速比RAを求め」てステップ114に移行し、ステップ114において「最新の位置データ、すなわち、MEMCのアドレスに入っている位置データ値を初期値としてセット(NSTP←n)」し、ステップ115に移行し、ステップ115において「位置データの偏差を求め(RDIF←R2×RA)」てステップ116に移行する。
【0092】
ステップ116においてステップ115において求めた「偏差RDIFの値の判別(RDIF<1)」が行われるため、「偏差RDIFの値が1を越えている」とステップ117に移行し、「偏差RDIFの値が1を越えていない」とステップ120に移行する。
【0093】
ステップ115で求めた偏差RDIFの値が1を越えていると、ステップ117に移行して「偏差RDIFの値が回転数計算のための整数化(小数点以下四捨五入)した値RINTに置き換えられ」てステップ118に移行し、ステップ118において「初期値NSTPの置き換え(初期値NSTP−整数値RINT)」が行われてステップ119に移行し、ステップ119において「偏差RDIFを偏差R2に置き換え」てステップ115に復帰するルーチンを繰り返す。
【0094】
ステップ115で求めた偏差RDIFの値が1を越えていないと、ステップ120に移行して「パルスカウンタガラス位置記憶WINDCTに初期値NSTPを置き換え」てステップ200においての起動時の位置予測ルーチンが終了する。
【0095】
ステップ200においての起動時の位置予測ルーチンが終了すると、メインルーチンに戻り、ステップ201に移行して「メモリ消去フラグ(FMERASE)をリセット」してステップ202に移行し、ステップ202において「メモリ書き込み完了フラグ(FMWREND)をリセット」してステップ203に移行する。
【0096】
ステップ203、ステップ204はモータ5の現在の状態を検出するステップであり、ステップ205はメモリ書き込みを開始するか否かの判別を行うステップである。図3に示される時刻Lにおいてステップ203では「モータ5が動作中か否か」が判別されるため、「モータ5のアーマチュアシャフト5cは回転している」のでステップ204に移行する。ステップ204においては「モータ5がロックしているか否か」が判別されるため、「モータ5のアーマチュアシャフト5cはロックしていない」のでステップ205に移行する。ステップ205においては「回路電源電圧がV2以下か否かすなわち、メモリ書き込み電圧V2を越えて下がっているか否か」が判別されるため、「回路電源電圧はV2以下ではない」のでステップ210に移行する。
【0097】
ステップ205から移行したステップ210においては「メモリ消去フラグ(FMERASE)がセットされているか否か」が判別されるため、「メモリ消去フラグ(FMERASE)はセットされていない」のでステップ211に移行する。
【0098】
ステップ211では、「EEPROM外部メモリブロックMEMをオールクリア」してステップ212に移行し、ステップ212において「メモリ消去フラグ(FMERASE)をセット」してステップ213に移行し、ステップ213において「メモリ書き込み中フラグ(FMWRNOW)をリセット」してステップ214に移行し、ステップ214において「メモリ書き込み完了フラグ(FMWREND)をリセット」してステップ209に移行する。
【0099】
ステップ209においてメイン処理が行われる。ステップ209では、「開、閉スイッチ2、3よりの入力信号処理」、「モータ5に対する出力処理」、「モータロック検出処理」、「回路電源電圧測定処理」が行われてステップ203に復帰し、ステップ203、ステップ204、ステップ205の判別ステップが実行される。
【0100】
モータ5のアーマチュアシャフト5cが正回転を続けることによって、ウインドガラス30が開く側に駆動されているときに、図3に示される時刻Mにおいて電源スイッチ20がオフ切換えされると、回路電源電圧が急激に下がり始める。そして、図3に示される時刻Mの以後の時刻Nにおいて回路電源電圧がメモリ書き込み電圧V2を越えて下がると、ステップ203においての判別でステップ204に移行し、ステップ204においての判別でステップ205に移行し、ステップ205においての判別でステップ206に移行する。
【0101】
ステップ205から移行したステップ206においては「メモリ書き込み完了フラグ(FMWREND)がセットされているか否か」が判別されるため、「メモリ書き込み完了フラグ(FMWREND)はセットされていない」のでステップ207に移行し、ステップ207において「EEPROM外部メモリブロックMEMに書き込み」が実行される。
【0102】
EEPROM外部メモリブロックMEMへの書き込みルーチンは、ステップ300において「メモリ書き込み中フラグ(FMWRNOW)がセットされているか否か」が判別されるため、「メモリ書き込み中フラグ(FMWRNOW)はセットされていない」のでステップ301に移行し、ステップ301において「メモリ書き込み完了フラグ(FMWREND)をリセット」してステップ302に移行し、ステップ302において「EEPROM書き込みインターバルタイマTM1をクリア(TM1←0)」してステップ303に移行し、ステップ303において「EEPROMメモリアドレスカウンタADCTをクリア(ADCT←0)」し、ステップ304において「メモリ書き込み中フラグ(FMWRNOW)をセット」してステップ305に移行する。
【0103】
ステップ305では「EEPROM書き込みインターバルタイマTM1による時間の計測(TM1>XMEMWR)」が実行されるため、EEPROM書き込みインターバルタイマTM1がオーバフローすると、ステップ306に移行して「パルスカウンタガラス位置記憶WINDCTのカウンタ値がEEPROM外部メモリブロックMEMに書き込まれ」てステップ307に移行し、ステップ307において「EEPROMメモリアドレスカウンタADCTをインクリメント(ADCT←ADCT+1)」してステップ308に移行し、ステップ308において「EEPROM書き込みインターバルタイマTM1をクリア(TM1←0)」してステップ309に移行する。
【0104】
ステップ309においては「EEPROMメモリアドレスカウンタADCTがオーバフローしているか否か(ADCT>N)」が判別されるため、このとき、「EEPROMメモリアドレスカウンタADCTはオーバフローしていない」のでこの回の書き込みルーチンが終了する。
【0105】
ステップ309において「EEPROMメモリアドレスカウンタADCTがオーバフローしている」と、ステップ310に移行し、ステップ310において「メモリ書き込み中フラグ(FMWRNOW)をリセット」してステップ311に移行し、ステップ311において「メモリ書き込み完了フラグ(FMWREND)をセット」するルーチンが実行される。
【0106】
そして、書き込みルーチンが終了した後のメインルーチンのステップ208において「メモリ消去フラグFMERASEをセット」してステップ209に移行してメイン処理が実行されてステップ203に移行するルーチンが実行される。
【0107】
モータ5のアーマチュアシャフト5cが正回転を続けることによって、ウインドガラス30が開く側に駆動され、ウインドガラス30が図2に示す全開位置FOに到達すると、モータ5のアーマチュアシャフト5cが回転を拘束されることによってロック状態になるため、メインルーチンのステップ204においての判別でステップ210に移行し、ステップ210、ステップ211、ステップ213、ステップ214を実行してからステップ209に移行し、ステップ209において「モータ駆動出力ブロック7の第1のスイッチングトランジスタTR1に対するベース電流がカットオフ」されることによってモータ5のアーマチュアシャフト5cが回転を停止し、ウインドガラス30が全開位置FOにおいて停止する。
【0108】
そして、電源スイッチ20がオン切換えされていて、ウインドガラス30が図2に示される全開位置FOにあるとき、図3に示される時刻Lにおいて閉スイッチ3がオン切換えされると、上昇指令信号が制御ブロック14に取り込まれることによってモータ駆動出力ブロック7の第2のスイッチングトランジスタTR2にベース電流が与えられるため、モータ5のアーマチュアシャフト5cが逆回転を始め、ウインドガラス30が閉る側に駆動され、上述したルーチンと同様にして、ステップ200からのメインルーチンが実行されるとともに、ステップ100からの位置データの予測ルーチンが実行され、ステップ300からの書き込みルーチンが実行される。
【0109】
上述したように、モータ制御装置1では、電源スイッチ20がオン切換えされた時、それ以前に、モータ5がウインドガラス30を駆動中にモータ電圧が下がってきたときにEEPROM外部メモリブロックMEMに電気的に複数個書き込まれた位置データがガラス位置予測ブロック18によりEEPROM外部メモリブロックMEMから読み出されてウインドガラス30が最終的に停止した位置の予測が行われる。それ故、バックアップ用コンデンサにより位置データの書き込みのための時間を延長することなく、複数個の位置データの書き込みが行われ、予測した位置データを用いて現在位置が得られるから、位置データの書き込みのための時間を確保する大容量のバックアップ用コンデンサを必要としないものとなる。
【0110】
【発明の効果】
以上説明してきたように、この発明の請求項1に係わるモータ制御装置によれば、モータが負荷を駆動中に、電源スイッチがオフ切換えされ、モータ電圧が下がり、電源電圧が予め定められた値以下になった時に、予め定められた時間おきに位置データを不揮発性メモリに連続的に書き込む。それ故、位置データの書き込みのための時間を確保する大容量のバックアップ用コンデンサを必要としない。よって、大容量のバックアップ用コンデンサを必要とすることなく複数個の位置データの書き込みが確実にできて、コンパクトな外形を得ることができるという優れた効果を奏する。
【0111】
この発明の請求項2に係わるモータ制御装置によれば、コントローラのガラス位置予測ブロックは、電源スイッチがオン切換えされた際に、不揮発性メモリに既に書き込まれている複数個の位置データを読み出し、その中の3個の位置データのそれぞれを比較して、最後に書き込まれた位置データの以後の位置データの算出処理を複数回行うことにより、負荷が最終的に停止した位置データを得る。それ故、請求項1の効果に加え、モータ電圧が下がってきたときに、不揮発性メモリに電気的に書き込まれた位置データの数が少なくなっていても、確実に最終的な位置データが得られるという優れた効果を奏する。
【0112】
この発明の請求項3に係わるモータ制御装置によれば、モータ回転検出手段より与えられる回転信号は、モータがロックすることによってその周期が大きくなり、コントローラのパルス間隔測定ブロックは、モータ回転検出手段より与えられた回転信号の周期を測定する。それ故、請求項1の効果に加え、パルス間隔測定ブロックにより、回転信号の周期を検出することによってモータの負荷状態が検出されるという優れた効果を奏する。
【0113】
この発明の請求項4に係わるモータ制御装置によれば、コントローラのモータロック判定ブロックは、パルス間隔測定ブロックより与えられた周期値と予め定められた判定値とを比較し、パルス間隔測定ブロックより与えられた周期値が予め定められた判定値を越えた際に、制御ブロックにモータロックの有無の判定が与えられる。それ故、請求項3の効果に加え、モータのロック中に電源スイッチがオフ切換えされても、ガラス位置データは失われないという優れた効果を奏する。
【0114】
この発明の請求項5に係わるモータ制御装置によれば、コントローラのワンタッチ動作記憶ブロックは、開スイッチまたは閉スイッチが長い時間オン切換えされた後にオフ切換えされた際、開スイッチまたは閉スイッチがオン切換えされたときに記憶した下降指令信号または上昇指令信号が連続的に発生する。それ故、請求項1の効果に加え、ワンタッチ動作記憶ブロックによって、開スイッチまたは閉スイッチより発生した指令信号の保持が行われるため、開スイッチおよび閉スイッチの他にオートスイッチ等の付加スイッチを必要としないという優れた効果を奏する。
【図面の簡単な説明】
【図1】この発明に係わるモータ制御装置の一実施例のブロック構成図である。
【図2】図1に示したモータ制御装置の具体的回路図である。
【図3】図1に示したモータ制御装置においてのメモリ書き込みを行う際のタイミングチャートである。
【図4】図1に示したモータ制御装置においての位置予測を行う際のタイミングチャートである。
【図5】図1に示したモータ制御装置においての位置予測を行う際に用いるメモリの説明図である。
【図6】図1に示したモータ制御装置においての主たる制御動作を説明するフローチャートである。
【図7】図1に示したモータ制御装置においての主たる制御動作を説明するフローチャートである。
【図8】図1に示したモータ制御装置においてのメモリ書き込みの制御動作を説明するフローチャートである。
【図9】図1に示したモータ制御装置においてのメモリ書き込みの制御動作を説明するフローチャートである。
【図10】図1に示したモータ制御装置においての位置予測の制御動作を説明するフローチャートである。
【図11】図1に示したモータ制御装置においての位置予測の制御動作を説明するフローチャートである。
【図12】図1に示したモータ制御装置においての位置予測の制御動作を説明するフローチャートである。
【図13】図1に示したモータ制御装置においての位置予測の制御動作を説明するフローチャートである。
【図14】従来のモータ制御装置においてのタイミングチャートである。
【符号の説明】
1 モータ制御装置
2 開スイッチ
3 閉スイッチ
5 モータ
6 (モータ回転検出手段)回転センサ
7 (モータ駆動回路)モータ駆動ブロック
12 ワンタッチ動作記憶ブロック
16 パルス間隔測定ブロック
17 モータロック判定ブロック
18 ガラス位置予測ブロック
20 電源スイッチ
MCU (コントローラ)中央処理回路
MEM (不揮発性メモリ)EEPROM外部メモリブロック
VB モータ電圧[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a motor control device that controls a switching device such as a power window of an automobile.
[0002]
[Prior art]
As a motor control device for controlling the opening and closing device of an automobile, the current windshield glass is incorporated into the controller, and the motor rotation signal is taken as position data into an electrically writable and erasable nonvolatile memory. Those that detect the position indirectly are known.
[0003]
In the motor control apparatus as described above, as shown in FIG. 14, the motor is operated by turning on the open switch (closed switch) at time a. When the motor starts operating, the motor voltage VB decreases with respect to the no-load state. When the motor starts operation, a pulse signal from a rotation sensor built in the motor is taken into the controller. When the window glass reaches the stroke end at the time b after the time a, the movement of the window glass is prevented, so that the motor is locked, so that the motor voltage VB is further lowered than during operation. When the motor is locked, at time c after time b, the controller cuts off the power supply to the motor, and the motor voltage VB returns to the no-load state. Then, when the power (IG) switch is turned off at time d after time c, the controller power is cut off, and the motor voltage VB decreases with time. When the motor voltage VB falls below the memory write voltage V0 at time e after time d, the controller starts writing the number of pulse signals provided from the rotation sensor into the non-volatile memory, and the time after time e Writing is performed within the writable time t until the motor voltage VB falls below the reset voltage RES at f. The memory write voltage V0 is equal to or higher than the supply voltage to the circuit so that the power supply voltage in the circuit is equal to or higher than the reset voltage RES of the microcomputer, and is equal to or lower than the voltage drop when the motor is locked at the minimum operating voltage of the specification. Need to be.
[0004]
[Problems to be solved by the invention]
However, in the motor control device described above, when the power supply voltage of the controller is interrupted, the position data of the window glass is written to the nonvolatile memory.When the power switch is turned off when the motor is in the locked state, Since the power supply voltage of the controller has already decreased with respect to a voltage value lower than the normal operating voltage, the amount of charge necessary for writing is insufficient, and only a single position data is written. Therefore, a large-capacity backup capacitor is used to ensure sufficient time to write window glass position data to the nonvolatile memory, and a large-capacity backup capacitor must be built in the controller. As a result, there is a problem that the outer shape of the controller is increased.
[0005]
In the motor control device described above, when the power switch is turned off while the motor is operating, the operating voltage of the microcomputer built in the controller is lowered even though the motor rotation signal is being input. As a result, writing cannot be performed, and the microcomputer writes position data shifted from the actual position of the window glass. For this reason, a large-capacity backup capacitor is used so that the position data can be continuously written until the motor stops, and there is a problem that the outer shape of the controller is enlarged as described above. .
[0006]
OBJECT OF THE INVENTION
The motor control device according to the present invention provides a motor control device capable of reliably writing a plurality of position data without requiring a large-capacity backup capacitor and obtaining a compact outer shape. It is aimed.
[0007]
[Structure of the invention]
[0008]
[Means for Solving the Problems]
In the motor control device according to the first aspect of the present invention, a power switch, a motor drive circuit electrically connected to the power switch, a motor drive circuit electrically connected to the motor drive circuit and coupled to the open / close load, A motor for driving the load to the open side or the closed side by the operation of the drive circuit, motor rotation detection means for generating a rotation detection signal by rotation of the motor, an open switch for generating a lowering command signal by being switched on, A closed switch that generates an up command signal when switched on, and a power switch, a motor drive circuit, motor rotation detection means, an open switch, and a close switch are electrically connected to each other, and a down command signal is given from the open switch. And a current to drive the load to the open side is supplied to the motor through the motor drive circuit, while an upward command is issued from the close switch A controller that supplies a current for driving the load to the closed side to the motor via the motor drive circuit when the signal is given, and when the motor voltage drops while the motor is driving the load, the motor rotation detection means Non-volatile memory that converts the given rotation signal into position data and can be read and written electrically, and built in the controller. When the power switch is turned off while the motor is operating, the power supply voltage It is characterized by comprising a control block having a function of continuously writing position data to a non-volatile memory every predetermined time when becomes less than a predetermined value Yes.
[0009]
In the motor control device according to
[0010]
The motor control apparatus according to
[0011]
In the motor control device according to
[0012]
In the motor control device according to
[0013]
[Effects of the Invention]
In the motor control device according to
[0014]
In the motor control device according to
[0015]
In the motor control device according to
[0016]
In the motor control device according to
[0017]
In the motor control device according to
[0018]
【Example】
1 to 13 show an embodiment of a motor control device according to the present invention.
[0019]
The illustrated
[0020]
The
[0021]
One of the open /
[0022]
The switch
[0023]
In the switch
[0024]
The
[0025]
In the
[0026]
The motor
[0027]
The first relay RL1 includes a first relay coil RL1-1, a first relay normally open contact RL1-2, a first normally closed contact RL1-3, and a first relay movable contact RL1-4. ing. The first relay coil RL1-1 has an upstream side connected to the power switch 20, and a downstream side connected to the collector of the first switching transistor TR1. The first relay normally open contact RL1-2 is connected to the power switch 20. The first relay normally closed contacts RL1-3 are connected to the ground. The first relay movable contact RL1-4 is connected to the first brush terminal 5a of the
[0028]
The first switching transistor TR1 is a grounded NPN transistor, and has a base connected to a first output port D1 provided in the central processing circuit MCU through a resistor (not shown), and a collector as described above. It is connected to the downstream side of the relay coil RL1-1.
[0029]
The second relay RL2 includes a second relay coil RL2-1, a second relay normally open contact RL2-2, a second normally closed contact RL2-3, and a second relay movable contact RL2-4. ing. The second relay coil RL2-1 has an upstream side connected to the power switch 20, and a downstream side connected to the collector of the second switching transistor TR2. The second relay normally open contact RL2-2 is connected to the power switch 20. The second relay normally closed contacts RL2-3 are connected to the ground. The second relay movable contact RL2-4 is connected to the
[0030]
The second switching transistor TR2 is a grounded NPN transistor, and has a base connected to a second output port D2 provided in the central processing circuit MCU through a resistor (not shown), and a collector as described above. It is connected to the downstream side of the relay coil RL2-1.
[0031]
In the motor
[0032]
Contrary to the above, in the motor
[0033]
The
[0034]
The pulse
[0035]
The
[0036]
In the
[0037]
In the
[0038]
An EEPROM external memory block MEM (electrically erasable program-ble ROM) is an electrically rewritable ROM, and is a non-volatile memory that retains stored contents even in a non-energized state. This EEPROM external memory block MEM stores the glass position data given from the serial output port SOUT provided in the central processing circuit MCU in a predetermined memory area, and from the predetermined memory area via the serial input port SIN. Retrieve the data.
[0039]
The
[0040]
In the
[0041]
The reset circuit 11 resets the central processing circuit MCU when the drive voltage supplied from the
[0042]
The one-touch
[0043]
In the one-touch
[0044]
The EEPROM memory address counter ADCT is a counter that gives an address signal to and from the
[0045]
The clock generator 13 performs time management of the program to be executed.
[0046]
The pulse
[0047]
The pulse interval measurement timer TM2 starts when the rising edge of the pulse signal is detected by the pulse
[0048]
The motor lock determination value XLOCK is a predetermined value and is used to detect that the armature shaft 5c of the
[0049]
The motor
[0050]
The EEPROM write interval timer TM1 has a function of performing writing to the EEPROM external memory block MEM from the
[0051]
The pulse counter glass position memory WINDCT counts glass position data to be written in the EEPROM external memory block MEM in the
[0052]
When the power switch 20 is turned on, the glass
[0053]
In the
[0054]
In the
[0055]
In the
[0056]
The
[0057]
The
[0058]
The input / output control block 15 performs conversion between parallel data and serial data, and performs input / output overall processing by performing timing processing of writing and reading to the EEPROM external memory block MEM based on the signal of the clock generator 13. I do.
[0059]
In the central processing circuit MCU, the
[0060]
When the armature shaft 5c of the
[0061]
At time M after time L in FIG. 3, when the power switch 20 is turned off, the circuit power supply voltage starts to drop more rapidly than the potential in normal operation. However, a similar voltage drop occurs when the motor is locked, but the cycle time of the pulse signal generated by the
[0062]
When the circuit power supply voltage (motor voltage) drops below a predetermined voltage V2 (memory write voltage B) at time N after time M in FIG. 3, pulse interval measurement is performed in the motor lock determination block. When it is determined that the motor is not locked by comparing the cycle time measured in
[0063]
Writing to the EEPROM external memory block MEM is performed at a time P (a time T that can be written from time N to time P) reaching a predetermined reset voltage RES every time (XMEMWR) determined by the EEPROM write interval timer TM1. ′) Is repeated several times. At this time, the first position data MEM (1), the second position data MEM (2), the third position data MEM (3), the fourth position data MEM (4), and the fifth position data MEM ( 5), 6th position data MEM (6), 7th position data MEM (7), 8th position data MEM (8) (shown in FIG. 4), 9th position data MEM (9) (Shown in FIG. 4), the EEPROM external memory block MEM stores nine pieces of position data from the first position data MEM (1) to the ninth position data MEM (9). .
[0064]
In the central processing circuit MCU, the writing is stopped by resetting at the time P after the first position data MEM (1) to the ninth position data MEM (9) are written in the EEPROM external memory block MEM. However, since the
[0065]
When the power switch 20 is switched on again after the power switch 20 is switched off, the central processing circuit MCU uses the three I / O control blocks 15 to write three data already written in the EEPROM external memory block MEM. Each position data is compared, and the position data calculation process after the last written position data is performed a plurality of times, so that the position data where the load finally stops is predicted.
[0066]
When predicting the position data, the EEPROM external memory block MEM includes the first position data MEM (1), the second position data MEM (2), and the third position data MEM ( 3) Fourth position data MEM (4), fifth position data MEM (5), sixth position data MEM (6), seventh position data MEM (7), eighth position data MEM ( 8) Since the ninth position data MEM (9) is written, the first position data MEM (1) is recognized as the first position data, and the fifth position data MEM (5) is the intermediate position. The ninth position data MEM (9) is recognized as the last position data.
[0067]
In the central processing circuit MCU, the first position data MEM (1) (MEMA) which is the first position data [MEMA is compared with MEMC in MEM (N), so that na (a is 2, 4, 6). , 8..., Position data at a maximum value satisfying na ≧ 1). ] And the fifth position data MEM (5) as the intermediate position data, and the deviation R1 (pulse count number) between the fifth position data MEM (5) (MEMB) as the intermediate position data is calculated. A reduction ratio RA = R2 / R1 is calculated by calculating a deviation R2 (pulse count number) between (MEMB) and the ninth position data MEM (9) (MEMC) as the last position data. At this time, since the rotational speed of the armature shaft 5c of the
[0068]
Then, the central processing circuit MCU uses the calculated reduction ratio RA to obtain the position data at which the
[0069]
The prediction loop is roughly divided into two blocks, and the relationship between the address positions in the EEPROM external memory block MEM is determined by performing a proportional calculation from the position data that was initially written when the power was turned off. And the interval between MEMB and MEMC that are equal and the longest in time are selected, and the reduction ratio RA is obtained from the three data. Next, position data that converges at the reduction ratio RA is calculated. First, the reduction ratio RA is calculated from the position data written at the previous power-off from the position data MEM (9) immediately before the location where the central processing circuit MCU (microcomputer) was reset at the previous power-off. Find the three points that are most distant in time. If these three points are MEMA, MEMB, and MEMC, these conditions are the addresses in the memory, the distance between MEMA and MEMB, and between MEMA and MEMC are the same, and MEMA and MEMC are the EEPROM external memory block MEM. It is in.
[0070]
In the first selection loop (loop counter CT2 = 1), as shown in FIG. 5, [n−2] is changed to MEMA (first position based on the position data n written last before resetting. Data), [n-1] as MEMB (intermediate position data), and [n] as MEMC (last position data) are stored in the storage means RAM built in the central processing circuit MCU. When the position data written is less than 3 and MEMA or MEMA and MEMB cannot be set, the subsequent prediction loop is not performed and the value of MEMC is set as the glass position.
[0071]
In the second selection loop, after the first prediction loop is executed, the loop counter CT2 is incremented to set CT2 = 2, and if the last position data is the fifth or more in the memory, that is, n− (CT2 X2) If ≧ 1, [4... N-3] is MEMA (n-4) (first position data) and [n-2] is MEMB (intermediate) as shown in FIG. Position data), and [n] is stored as MEMC (last position data) in the storage means RAM built in the central processing circuit MCU.
[0072]
Similarly, in the third selection loop (loop counter CT2 = 3), as shown in FIG. 5, [4... N-3] is set to MEMA (n-6) (first position data), and [n− 3] is set as MEMB (intermediate position data), and [n] is set as MEMC (last position data) in the storage means RAM incorporated in the central processing circuit MCU to perform subtraction processing.
[0073]
In the final round of the selected loop (loop counter CT2 = m, where n−2m ≧ 1), as shown in FIG. 5, [2] is MEMA (first position data), and [4. n-3] is set as MEMB (intermediate position data) (MEMB = n-CT2), and [n] is set as MEMC (last position data) in the storage means RAM incorporated in the central processing circuit MCU. Performs division processing. That is, (MEMC-MEMB) / (MEMB-MEMA) is executed to obtain the reduction ratio RA.
[0074]
Next, the point at which the position data converges is calculated.
[0075]
In the first calculation loop, the position data of the next MEM (10) is calculated from the position data MEM (9) immediately before the point where the central processing circuit MCU (microcomputer) was reset by the previous power-off.
[0076]
In the first round of the prediction loop shown in FIG. 4, the previously calculated reduction ratio RA is multiplied by the difference between the immediately preceding position data, that is, MEM (9) −MEM (8). This value is the estimated difference between MEM (9) and MEM (10). This is RDIF. If the value of this RDIF is less than 1, no further estimate can be obtained, so the loop is exited here. If RDIF is 1 or more, this value is rounded to an integer, and the value added to MEM (9) is the estimated value of MEM (10). Thereafter, the previously obtained RDIF is substituted into R2, and the first time of the prediction loop is ended as a difference between new position data of the next loop.
[0077]
In the second time of the prediction loop shown in FIG. 4, RAX (MEM (10) −MEM (9)) is the same as the previous time, that is, the estimated difference between R2 and the estimated difference RDIF (MEM (9) and MEM (10) in the previous loop ) Is substituted, RAXR2 is performed and this is substituted into RDIFF. The RDIF at this time is an estimated difference between MEM (10) and MEM (11). If the value of this RDIF is less than 1, no further estimate can be obtained, so the loop is exited here. If RDIF is 1 or more, this value is rounded to an integer, and the value added to MEM (10) is the estimated value of MEM (11). Thereafter, the obtained RDIF is substituted into R2, and the difference between the new position data of the next loop is set, and the second prediction loop is completed.
[0078]
Similar to the 1st and 2nd times, the 3rd and 4th times are repeated until the RDIF value is less than 1, and the last estimated value, i.e., the previous power switch 20 is switched off when the RDIF value is less than 1. The glass stop position is obtained.
[0079]
In the central processing circuit MCU, even when the power switch 20 is turned on with the
[0080]
The
[0081]
When the power switch 20 is switched on and the
[0082]
In
[0083]
In
[0084]
When three or more pieces of position data necessary for prediction are written in the EEPROM external memory block MEM, the process proceeds from
[0085]
If two pieces of position data are not written in the EEPROM external memory block MEM, and one piece of position data is written, the process proceeds to step 123 in the determination in
[0086]
If one position data is not written in the EEPROM external memory block MEM, the process proceeds to step 123 in the determination in
[0087]
If it is determined in
[0088]
In
[0089]
In
[0090]
In Step 111 transferred from
[0091]
In step 113, “determine the reduction ratio RA” and proceed to step 114. In
[0092]
Since “determination of the value of deviation RDIF (RDIF <1)” obtained in step 115 is performed in
[0093]
If the value of the deviation RDIF obtained in step 115 exceeds 1, the process proceeds to step 117 and “the value of deviation RDIF is replaced with a value RINT that is converted to an integer for rounding speed calculation (rounded off after the decimal point)”. The process proceeds to step 118, where “replacement of initial value NSTP (initial value NSTP−integer value RINT)” is performed in
[0094]
If the value of the deviation RDIF obtained in step 115 does not exceed 1, the process proceeds to step 120, where “initial value NSTP is replaced with pulse counter glass position storage WINDCT” and the position prediction routine at the time of start in
[0095]
When the position prediction routine at the time of activation in
[0096]
Step 203 and step 204 are steps for detecting the current state of the
[0097]
In step 210 transferred from
[0098]
In step 211, “EEPROM external memory block MEM is all cleared” and the process proceeds to step 212. In
[0099]
In
[0100]
When the power switch 20 is turned off at time M shown in FIG. 3 when the armature shaft 5c of the
[0101]
In
[0102]
Since the routine for writing to the EEPROM external memory block MEM determines in
[0103]
In
[0104]
In
[0105]
If “EEPROM memory address counter ADCT has overflowed” in
[0106]
Then, in
[0107]
When the armature shaft 5c of the
[0108]
When the power switch 20 is turned on and the
[0109]
As described above, in the
[0110]
【The invention's effect】
As described above, according to the motor control device of the first aspect of the present invention, while the motor is driving the load, the power switch is turned off, the motor voltage is lowered, and the power supply voltage is a predetermined value. When the following occurs, the position data is continuously written in the nonvolatile memory at predetermined time intervals. Therefore, there is no need for a large-capacity backup capacitor that secures time for writing position data. Therefore, it is possible to reliably write a plurality of position data without requiring a large-capacity backup capacitor, and to obtain an excellent effect that a compact outer shape can be obtained.
[0111]
According to the motor control device of the present invention, the glass position prediction block of the controller reads a plurality of position data already written in the nonvolatile memory when the power switch is turned on, Each of the three pieces of position data is compared, and position data calculation processing after the last written position data is performed a plurality of times, thereby obtaining position data where the load has finally stopped. Therefore, in addition to the effect of the first aspect, when the motor voltage is lowered, even if the number of position data electrically written in the nonvolatile memory is reduced, the final position data can be surely obtained. There is an excellent effect of being able to.
[0112]
According to the motor control apparatus of the third aspect of the present invention, the rotation signal given from the motor rotation detecting means becomes longer when the motor is locked, and the pulse interval measuring block of the controller is provided with the motor rotation detecting means. The period of the given rotation signal is measured. Therefore, in addition to the effect of the first aspect, the pulse interval measurement block has an excellent effect that the load state of the motor is detected by detecting the period of the rotation signal.
[0113]
According to the motor control device of the present invention, the motor lock determination block of the controller compares the period value given by the pulse interval measurement block with a predetermined determination value, and the pulse interval measurement block When the given period value exceeds a predetermined determination value, the control block is determined whether or not the motor is locked. Therefore, in addition to the effect of the third aspect, the glass position data is not lost even if the power switch is turned off while the motor is locked.
[0114]
According to the motor control apparatus of the fifth aspect of the present invention, the one-touch operation memory block of the controller is switched on when the open switch or the closed switch is turned off after the open switch or the closed switch is turned on for a long time. The descending command signal or the ascending command signal memorized at the time is generated continuously. Therefore, in addition to the effect of
[Brief description of the drawings]
FIG. 1 is a block diagram of an embodiment of a motor control device according to the present invention.
FIG. 2 is a specific circuit diagram of the motor control device shown in FIG. 1;
FIG. 3 is a timing chart when performing memory writing in the motor control device shown in FIG. 1;
4 is a timing chart when position prediction is performed in the motor control device shown in FIG. 1; FIG.
FIG. 5 is an explanatory diagram of a memory used when performing position prediction in the motor control device shown in FIG. 1;
FIG. 6 is a flowchart illustrating main control operations in the motor control device shown in FIG. 1;
7 is a flowchart for explaining main control operations in the motor control device shown in FIG. 1; FIG.
FIG. 8 is a flowchart for explaining a memory write control operation in the motor control device shown in FIG. 1;
FIG. 9 is a flowchart illustrating a memory write control operation in the motor control device shown in FIG. 1;
FIG. 10 is a flowchart illustrating a position prediction control operation in the motor control device shown in FIG. 1;
FIG. 11 is a flowchart illustrating a position prediction control operation in the motor control device shown in FIG. 1;
12 is a flowchart for explaining a position prediction control operation in the motor control device shown in FIG. 1; FIG.
FIG. 13 is a flowchart for explaining a position prediction control operation in the motor control device shown in FIG. 1;
FIG. 14 is a timing chart in a conventional motor control device.
[Explanation of symbols]
1 Motor controller
2 Open switch
3 Close switch
5 Motor
6 (Motor rotation detection means) Rotation sensor
7 (Motor drive circuit) Motor drive block
12 One-touch action memory block
16 Pulse interval measurement block
17 Motor lock judgment block
18 Glass position prediction block
20 Power switch
MCU (Controller) Central processing circuit
MEM (nonvolatile memory) EEPROM external memory block
VB motor voltage
Claims (5)
上記電源スイッチに電気的に接続されたモータ駆動回路と、
上記モータ駆動回路に電気的に接続されているとともに開閉負荷に結合され、モータ駆動回路の作動により該負荷を開側または閉側に駆動するモータと、
上記モータの回転により回転検出信号を発生するモータ回転検出手段と、
オン切換えされることにより下降指令信号を発生する開スイッチと、
オン切換えされることにより上昇指令信号を発生する閉スイッチと、
上記電源スイッチ、モータ駆動回路、モータ回転検出手段、開スイッチ、閉スイッチにそれぞれ電気的に接続され、該開スイッチより下降指令信号が与えられると負荷を開側に駆動するための電流をモータ駆動回路を介しモータに供給する一方、該閉スイッチより上昇指令信号が与えられると負荷を閉側に駆動するための電流をモータ駆動回路を介しモータに供給するコントローラと、
上記モータが上記負荷を駆動中に、該モータ電圧が下がってきたときに、上記モータ回転検出手段より与えられた回転信号を位置データに変換して電気的に複数個読み込み及び書き込み可能な不揮発性メモリと、
上記コントローラに内蔵され、上記モータが作動中に、上記電源スイッチがオフ切換えされたときで、電源電圧が予め定められた値以下になったときに、予め定められた時間おきに位置データを上記不揮発性メモリに連続的に書き込む機能を有している制御ブロックを備えていることを特徴とするモータ制御装置。A power switch;
A motor drive circuit electrically connected to the power switch;
A motor electrically connected to the motor drive circuit and coupled to an open / close load, and driving the load to the open side or the closed side by the operation of the motor drive circuit;
Motor rotation detection means for generating a rotation detection signal by rotation of the motor;
An open switch that generates a lowering command signal when switched on;
A closed switch that generates an ascending command signal when switched on;
Electrically connected to the power switch, motor drive circuit, motor rotation detection means, open switch, and close switch, respectively, and when a lowering command signal is given from the open switch, a current for driving the load to the open side is driven by the motor. A controller for supplying a current to the motor via a motor drive circuit while driving the load to the closed side when an ascending command signal is given from the close switch while being supplied to the motor via a circuit;
Non-volatile that can read and write a plurality of electrical signals by converting the rotation signal given by the motor rotation detection means into position data when the motor voltage drops while the motor is driving the load Memory,
When the power switch is turned off while the motor is in operation and the power switch is turned off, the position data is updated at predetermined time intervals when the power supply voltage falls below a predetermined value. A motor control device comprising a control block having a function of continuously writing in a nonvolatile memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP36517798A JP3613611B2 (en) | 1998-12-22 | 1998-12-22 | Motor control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP36517798A JP3613611B2 (en) | 1998-12-22 | 1998-12-22 | Motor control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2000188892A JP2000188892A (en) | 2000-07-04 |
| JP3613611B2 true JP3613611B2 (en) | 2005-01-26 |
Family
ID=18483621
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP36517798A Expired - Fee Related JP3613611B2 (en) | 1998-12-22 | 1998-12-22 | Motor control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3613611B2 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3693226B2 (en) * | 1999-06-30 | 2005-09-07 | 矢崎総業株式会社 | Microcomputer backup device and automotive power window control device |
| JP2002213142A (en) * | 2001-01-22 | 2002-07-31 | Nidec Shibaura Corp | Automatic door control |
| US7084597B2 (en) | 2002-06-03 | 2006-08-01 | Denso Corporation | Motor control apparatus |
| JP6490725B2 (en) * | 2017-01-19 | 2019-03-27 | アイシン精機株式会社 | Actuator control device and steering device |
-
1998
- 1998-12-22 JP JP36517798A patent/JP3613611B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2000188892A (en) | 2000-07-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6426604B1 (en) | Power window controlling device | |
| CN112389220B (en) | Charging control method and device for electric vehicle | |
| KR100508447B1 (en) | Rain drop sensing type wiper control device of car and its control method | |
| JP5474114B2 (en) | In-vehicle high-voltage equipment leakage resistance detection apparatus and leakage resistance detection method thereof | |
| KR101831132B1 (en) | Method, Apparatus and System For Controlling Vehicle Motor Based on Stall Detection | |
| CN1215247C (en) | Detection clip device for opening/closing part | |
| US20030222614A1 (en) | Motor speed-based anti-pinch control apparatus and method | |
| US6667590B2 (en) | Power window apparatus with function of foreign object detection | |
| US20030222610A1 (en) | Motor speed-based anti-pinch control apparatus and method with endzone ramp detection and compensation | |
| US6972536B2 (en) | Closure member control device and method for limiting positional deviation of closure member | |
| JP3613611B2 (en) | Motor control device | |
| JP4818847B2 (en) | Motor control device | |
| JP4573992B2 (en) | Window glass clamping presence / absence detection device | |
| US6144906A (en) | Adaptive pulse control | |
| JP2861781B2 (en) | Electric drive | |
| JP4184550B2 (en) | Motor control device | |
| CN118442910A (en) | Position correction method and device for charging port cover, vehicle, medium and program | |
| JP2000184780A (en) | Motor controlling device | |
| JP3657671B2 (en) | Motor drive control device | |
| JP2007053894A (en) | Motor control device | |
| JPS58170654A (en) | Wiper controller | |
| JP2004232280A (en) | Opening / closing body pinch detection device | |
| CN109510524B (en) | Method and device for storing motor position information | |
| JP3267444B2 (en) | Vehicle window control device with learning function | |
| JP2000188895A (en) | Motor controller |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20040517 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20040706 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20040804 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20041013 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |