JP2003134866A - Motor drive controller - Google Patents

Motor drive controller

Info

Publication number
JP2003134866A
JP2003134866A JP2001322846A JP2001322846A JP2003134866A JP 2003134866 A JP2003134866 A JP 2003134866A JP 2001322846 A JP2001322846 A JP 2001322846A JP 2001322846 A JP2001322846 A JP 2001322846A JP 2003134866 A JP2003134866 A JP 2003134866A
Authority
JP
Japan
Prior art keywords
reset
motor
correction amount
load
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.)
Granted
Application number
JP2001322846A
Other languages
Japanese (ja)
Other versions
JP3813856B2 (en
Inventor
Yoshiyuki Muramatsu
芳幸 村松
Kazutomo Azuma
和睦 東
Seiichi Watanabe
誠一 渡辺
Takeshi Iwai
健 岩井
Yasuhiro Shimomura
泰啓 下村
Kenji Tanaka
賢次 田中
英二 ▼高▲須
Eiji Takasu
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tokai Rika Co Ltd
Toyota Motor Corp
Original Assignee
Tokai Rika Co Ltd
Toyota Motor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tokai Rika Co Ltd, Toyota Motor Corp filed Critical Tokai Rika Co Ltd
Priority to JP2001322846A priority Critical patent/JP3813856B2/en
Publication of JP2003134866A publication Critical patent/JP2003134866A/en
Application granted granted Critical
Publication of JP3813856B2 publication Critical patent/JP3813856B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Control Of Position Or Direction (AREA)
  • Control Of Electric Motors In General (AREA)
  • Stopping Of Electric Motors (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a motor drive controller which can eliminate the difference between the actual load position and the recognized position, which is produced after resetting to practice precise control. SOLUTION: This motor drive controller has a microcomputer, which controls the drive of a motor and a pulse generating unit which outputs pulses synchronized with the rotation of the motor. The microcomputer counts the pulses, while a load is driven, recognizes a load position according to the counted value, stops outputting control signals when it is reset by the decline of a power supply voltage, and stores the counted value at that point. The microcomputer detects a load driving direction when resetting (S102), corrects the stored counted value by a value corresponding to the inertial rotation of the motor, in a direction which is the same as the detected load driving direction in restoration (S106 and S108). Even if the microcomputer is reset by the decline of the power supply voltage and the motor keeps rotation by the inertia, after the resetting while the load is driven, the discrepancy between the actual load position and the position recognized by the microcomputer, after the restoration is eliminated.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、パワーウィンドウ
装置におけるウィンドウガラス等の負荷を駆動するモー
タを駆動制御するモータ駆動制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a motor drive control device for driving and controlling a motor for driving a load such as a window glass in a power window device.

【0002】[0002]

【従来の技術】従来、自動車等に搭載されるパワーウィ
ンドウ装置のモータ駆動制御装置として、例えば、モー
タを駆動制御するマイコン(マイクロコンピュータ)
と、モータの回転に同期したパルス信号を出力するパル
ス発生手段とを備えたものが知られている。このモータ
駆動制御装置は、パルス発生手段から出力されるパルス
信号をカウントすることで、モータにより駆動されるウ
ィンドウガラスの絶対位置を認識するようになってい
る。
2. Description of the Related Art Conventionally, for example, a microcomputer (microcomputer) for driving and controlling a motor is used as a motor drive control device for a power window device mounted on an automobile or the like.
And a pulse generating means for outputting a pulse signal synchronized with the rotation of the motor are known. This motor drive control device recognizes the absolute position of the window glass driven by the motor by counting the pulse signals output from the pulse generating means.

【0003】[0003]

【発明が解決しようとする課題】ところで、上記従来の
モータ駆動制御装置では、モータによるウィンドウガラ
スの駆動中にバッテリの電源電圧(例えば12V)が急
激に低下する場合がある。このような電源電圧低下は、
スタータモータを起動させてエンジンを始動させる際に
起こる。このような電源電圧低下により、マイコンに所
定の作動電圧(例えば5V)が印加されなくなると、マ
イコンがリセットされて制御信号の出力を停止し、モー
タを駆動制御できなくなる。しかし、マイコンのリセッ
ト後、モータは慣性により回り続け、同モータが回転し
ている間パルス発生手段はパルス信号を出力し続ける。
このようにマイコンのリセット後に発生するパルス信号
については、マイコンで読み取ることができない。この
ため、マイコンに再び作動電圧が印加されるようになっ
てマイコンが作動状態に復帰した時、実負荷位置(ウィ
ンドウガラスの実際の位置)とマイコンによる認識位置
(リセット時の記憶位置)との間にズレが生じている。
このようなズレがあると、その後の制御に支障が生じる
場合がある。
By the way, in the above-described conventional motor drive control device, the power supply voltage (for example, 12 V) of the battery may drop sharply while the window glass is being driven by the motor. Such a power supply voltage drop is
It occurs when the engine is started by starting the starter motor. When a predetermined operating voltage (for example, 5 V) is no longer applied to the microcomputer due to such a decrease in the power supply voltage, the microcomputer is reset, the output of the control signal is stopped, and the motor cannot be drive-controlled. However, after resetting the microcomputer, the motor continues to rotate due to inertia, and the pulse generating means continues to output a pulse signal while the motor is rotating.
As described above, the pulse signal generated after the reset of the microcomputer cannot be read by the microcomputer. Therefore, when the operating voltage is applied to the microcomputer again and the microcomputer returns to the operating state, the actual load position (actual position of the window glass) and the recognition position by the microcomputer (memory position at reset) are set. There is a gap between them.
If there is such a deviation, control may be hindered thereafter.

【0004】本発明は、このような従来の問題点に着目
してなされたもので、その目的は、リセット後に生じる
実負荷位置と認識位置とのズレを無くし、正確な制御を
行えるようにしたモータ駆動制御装置を提供することに
ある。
The present invention has been made by paying attention to such a conventional problem, and an object thereof is to eliminate a deviation between an actual load position and a recognition position which occurs after resetting and to enable accurate control. It is to provide a motor drive control device.

【0005】[0005]

【課題を解決するための手段】上記課題を解決するた
め、請求項1に係る発明は、モータを駆動制御する制御
手段と、モータの回転に同期したパルス信号を出力する
パルス発生手段とを備え、前記制御手段は、前記モータ
による負荷駆動中に、前記パルス信号をカウントし、そ
のカウント値により負荷の位置を認識するとともに、バ
ッテリの電源電圧低下によりリセットされると制御信号
の出力を停止し、このリセット時における前記カウント
値を記憶するように構成されたモータ駆動制御装置であ
って、前記制御手段は、前記リセット時における前記負
荷の駆動方向を検出し記憶する駆動方向検出手段と、前
記リセット状態から作動状態に復帰した時、前記リセッ
ト時に記憶したカウント値を、前記リセット時から前記
モータが慣性で回転した分だけ、前記検出手段で記憶し
た前記負荷の駆動方向と同方向に補正するカウント値補
正手段とを備えることを要旨とする。
In order to solve the above-mentioned problems, the invention according to claim 1 comprises a control means for driving and controlling a motor, and a pulse generating means for outputting a pulse signal synchronized with the rotation of the motor. The control means counts the pulse signals while driving the load by the motor, recognizes the position of the load based on the count value, and stops the output of the control signal when resetting due to a decrease in the power supply voltage of the battery. A motor drive control device configured to store the count value at the time of the reset, wherein the control means detects the drive direction of the load at the time of the reset and stores the drive direction; When returning from the reset state to the operating state, the count value stored at the time of the reset causes the motor to rotate by inertia from the time of the reset. Only minute, and summarized in that and a count value correcting means for correcting the same direction and the driving direction of the stored said load by said detecting means.

【0006】この構成によれば、負荷駆動中に電源電圧
低下により制御手段がリセットされ、この後モータが慣
性で回転し続ける場合、リセット時に記憶したパルス信
号のカウント値が、リセット時からモータが慣性で回転
した分だけ、駆動方向検出手段でリセット時に記憶した
負荷の駆動方向と同方向に補正される。このため、パル
ス信号のカウント値すなわち制御手段による認識位置が
実負荷位置と一致し、両位置のズレが無くなり、正確な
制御が実現される。
According to this structure, when the control means is reset due to the voltage drop of the power supply during the driving of the load and the motor continues to rotate due to inertia after this, the count value of the pulse signal stored at the time of reset is The amount of rotation due to inertia is corrected by the drive direction detection means in the same direction as the drive direction of the load stored at reset. For this reason, the count value of the pulse signal, that is, the position recognized by the control means coincides with the actual load position, the displacement between both positions is eliminated, and accurate control is realized.

【0007】なお、ここにいう「負荷」は、ウィンドウ
ガラス、サンルーフ、メモリシート等、モータにより駆
動される被駆動体を意味する。請求項2に係る発明は、
請求項1に記載のモータ駆動制御装置において、前記制
御手段は、前記リセット時或いはその直前における前記
モータの回転状態に応じて前記カウント値の補正量を設
定する補正量設定手段を備え、前記カウント値補正手段
は、前記設定された補正量だけ、前記リセット時に記憶
したカウント値を補正することを要旨とする。
The term "load" as used herein means a driven body driven by a motor, such as a window glass, a sunroof, and a memory sheet. The invention according to claim 2 is
The motor drive control device according to claim 1, wherein the control unit includes a correction amount setting unit that sets a correction amount of the count value in accordance with a rotation state of the motor at the time of the reset or immediately before the reset. The gist of the value correcting means is to correct the count value stored at the time of the reset by the set correction amount.

【0008】この構成によれば、カウント値の補正量
が、リセット時或いはその直前におけるモータの回転状
態に応じた値に設定される。このため、リセット時から
モータが慣性で回転したことによりできる実負荷位置と
認識位置のズレを、リセット時或いはその直前における
モータの回転状態に応じて正確に補正することができ
る。
According to this structure, the correction amount of the count value is set to a value corresponding to the rotation state of the motor at the time of resetting or immediately before that. Therefore, the deviation between the actual load position and the recognized position, which is caused by the motor rotating due to inertia from the time of reset, can be accurately corrected according to the rotation state of the motor at the time of reset or immediately before that.

【0009】請求項3に係る発明は、請求項2に記載の
モータ駆動制御装置において、前記補正量設定手段は、
前記リセット時或いはその直前における前記モータの回
転速度が大きい程大きい補正量を設定し、その回転速度
が小さい程小さい補正値を設定することを要旨とする。
According to a third aspect of the present invention, in the motor drive control device according to the second aspect, the correction amount setting means is
The gist of the invention is to set a larger correction amount as the rotation speed of the motor is higher at the time of the reset or immediately before the reset, and set a smaller correction value as the rotation speed is smaller.

【0010】この構成によれば、カウント値の補正量
が、リセット時におけるモータの回転速度が大きい程大
きい値に設定され、その回転速度が小さい程小さい値に
設定される。このため、リセット時からモータが慣性で
回転したことによりできる実負荷位置と認識位置のズレ
を、リセット時におけるモータの回転速度に応じて正確
に補正することができる。
According to this structure, the correction amount of the count value is set to a larger value as the rotation speed of the motor at the time of resetting is larger, and is set to a smaller value as the rotation speed is smaller. Therefore, the deviation between the actual load position and the recognized position, which is caused by the motor rotating due to inertia from the time of reset, can be accurately corrected according to the rotation speed of the motor at the time of reset.

【0011】請求項4に係る発明は、請求項2に記載の
モータ駆動制御装置において、前記補正量設定手段は、
前記リセット時或いはその直前に前記パルス発生手段か
ら出力される前記パルス信号の周波数が高い程大きい補
正量を設定し、その周波数が低い程小さい補正量を設定
することを要旨とする。
According to a fourth aspect of the invention, in the motor drive control device according to the second aspect, the correction amount setting means is
It is a gist to set a larger correction amount as the frequency of the pulse signal output from the pulse generating means is higher at the time of the resetting or immediately before the resetting, and set a smaller correction amount as the frequency is lower.

【0012】この構成によれば、カウント値の補正量
が、リセット時におけるパルス信号の周波数が高い程大
きい値に設定され、その周波数が低い程小さい値に設定
される。このため、リセット時からモータが慣性で回転
したことによりできる実負荷位置と認識位置とのズレ
を、リセット時におけるパルス信号の周波数に応じて正
確に補正することができる。
According to this structure, the correction amount of the count value is set to a larger value as the frequency of the pulse signal at the time of reset is higher, and is set to a smaller value as the frequency is lower. Therefore, the deviation between the actual load position and the recognized position, which is caused by the rotation of the motor due to inertia from the time of reset, can be accurately corrected according to the frequency of the pulse signal at the time of reset.

【0013】請求項5に係る発明は、請求項2に記載の
モータ駆動制御装置において、前記補正量設定手段は、
前記リセット時或いはその直前における前記バッテリの
電源電圧値が高い程大きい補正量を設定し、その電圧値
が低い程小さい補正量を設定することを要旨とする。
According to a fifth aspect of the present invention, in the motor drive control device according to the second aspect, the correction amount setting means is
The gist of the present invention is to set a larger correction amount as the power supply voltage value of the battery is higher at the time of the reset or immediately before the reset, and set a smaller correction amount as the voltage value is lower.

【0014】この構成によれば、カウント値の補正量
が、リセット時におけるバッテリの電源電圧値が高い程
大きい値に設定され、その電圧値が低い程小さい値に設
定される。このため、リセット時からモータが慣性で回
転したことによりできる実負荷位置と認識位置のズレ
を、リセット時におけるバッテリの電源電圧値に応じて
正確に補正することができる。
According to this structure, the correction amount of the count value is set to a larger value as the power source voltage value of the battery at the time of reset is higher, and is set to a smaller value as the voltage value is lower. Therefore, the deviation between the actual load position and the recognized position, which is caused by the rotation of the motor due to inertia from the time of reset, can be accurately corrected according to the power supply voltage value of the battery at the time of reset.

【0015】[0015]

【発明の実施の形態】以下、本発明を自動車等の車両に
搭載されるパワーウィンドウ装置におけるモータ駆動制
御装置に適用した一実施形態を図面に基づいて説明す
る。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment in which the present invention is applied to a motor drive control device in a power window device mounted on a vehicle such as an automobile will be described below with reference to the drawings.

【0016】図2に示すモータ駆動制御装置は、図示し
ないウィンドウガラス(負荷)を駆動するモータ11
と、モータ11の回転に同期したパルス信号を出力する
パルス発生部12と、電子制御装置13と、図示しない
バッテリとを備える。また、電子制御装置13は、モー
タ11を駆動制御する制御手段としてのマイコン(マイ
クロコンピュータ)14、電源回路15、負荷駆動回路
16、および入出力回路(I/O)17等を備えてい
る。
The motor drive controller shown in FIG. 2 is a motor 11 for driving a window glass (load) not shown.
A pulse generator 12 that outputs a pulse signal synchronized with the rotation of the motor 11, an electronic control unit 13, and a battery (not shown). Further, the electronic control unit 13 includes a microcomputer (microcomputer) 14 as a control means for driving and controlling the motor 11, a power supply circuit 15, a load drive circuit 16, an input / output circuit (I / O) 17, and the like.

【0017】パルス発生部12は、モータ11の回転軸
に取り付けたマグネットの回転を磁気的に検出する2つ
のホールICを備え、モータ11の回転に同期したパル
ス信号を出力するようになっている。すなわち、両ホー
ルICからは、互いに90°位相のずれた信号で、モー
タ1回転につき1つのパルスを含むパルス信号がそれぞ
れ出力されるようになっている。
The pulse generator 12 includes two Hall ICs for magnetically detecting the rotation of a magnet attached to the rotation shaft of the motor 11, and outputs a pulse signal in synchronization with the rotation of the motor 11. . That is, from both Hall ICs, pulse signals each having a phase difference of 90 ° from each other and including one pulse per one rotation of the motor are output.

【0018】マイコン14には電源回路15が接続され
ている。この電源回路15は、バッテリの電源電圧(例
えば12V)をマイコン13の作動電圧(例えば5V)
に変換し、定電圧(オンレベルが5Vの信号)をマイコ
ン14に出力するようになっている。
A power supply circuit 15 is connected to the microcomputer 14. The power supply circuit 15 converts the power supply voltage of the battery (for example, 12V) into the operating voltage of the microcomputer 13 (for example, 5V).
And outputs a constant voltage (a signal having an on level of 5 V) to the microcomputer 14.

【0019】負荷駆動回路16は、一対のリレーを備
え、マイコン14から出力される制御信号に応じてモー
タ11の正逆転の切替えと停止を行うようになってい
る。マイコン14は、それぞれ図示を省略した、RO
M、CPU、RAM、バックアップRAM、入出力ポー
ト等を備える算術論理演算回路として構成されている。
ROMは、制御プログラムや、同プログラムを実行する
際に参照されるマップ等が記憶されたメモリである。C
PUは、ROMに記憶された各種制御プログラムやマッ
プに基づいて演算処理を実行する。RAMは、CPUで
の演算結果や後述するフラグ等のデータを一時的に記憶
するメモリである。また、バックアップRAMは、エン
ジンの停止時にその記憶されたパルス信号のカウント値
等のデータ等を保存する不揮発性のメモリである。そし
て、ROM、CPU、RAM及びバックアップRAM
は、互いに接続されるとともに、図示を省略した入出力
ポートと接続されている。
The load driving circuit 16 is provided with a pair of relays, and switches the forward / reverse rotation of the motor 11 and stops it according to a control signal output from the microcomputer 14. The microcomputer 14 includes an RO (not shown).
It is configured as an arithmetic logic operation circuit including M, CPU, RAM, backup RAM, input / output port and the like.
The ROM is a memory that stores a control program and a map that is referred to when the program is executed. C
The PU executes arithmetic processing based on various control programs and maps stored in the ROM. The RAM is a memory for temporarily storing the calculation result of the CPU and data such as flags described later. The backup RAM is a non-volatile memory that stores data such as the stored count value of the pulse signal when the engine is stopped. And ROM, CPU, RAM and backup RAM
Are connected to each other and to an input / output port (not shown).

【0020】このように構成されたマイコン14は、モ
ータ11によるウィンドウガラスの駆動中(以下、負荷
駆動中という。)に、電源電圧低下により作動電圧(5
V)が電源回路15から供給されなくなると、リセット
され、制御信号の出力を停止するようになっている。ま
た、マイコン14は、負荷駆動中に、パルス発生部12
から入出力回路17を介して出力されるパルス信号をカ
ウントし、そのカウント値によりウィンドウガラスの絶
対位置を認識するようになっている。さらに、マイコン
14は、負荷駆動中にバッテリの電源電圧低下によりリ
セットされると、制御信号の出力を停止するとともに、
このリセット時におけるパルス信号のカウント値を上記
バックアップRAMに記憶するようになっている。
The microcomputer 14 having the above-mentioned structure operates while the window glass is being driven by the motor 11 (hereinafter referred to as load driving), and the operating voltage (5
When V) is no longer supplied from the power supply circuit 15, it is reset and the output of the control signal is stopped. In addition, the microcomputer 14 controls the pulse generator 12 during load driving.
The pulse signal output from the input / output circuit 17 is counted, and the absolute position of the window glass is recognized by the counted value. Further, the microcomputer 14 stops outputting the control signal when the microcomputer 14 is reset due to a decrease in the power supply voltage of the battery while driving the load, and
The count value of the pulse signal at the time of this reset is stored in the backup RAM.

【0021】そして、マイコン14は、リセット時に、
図2に示す「マイコンリセット時の負荷位置補正処理」
を実行するようになっている。すなわち、負荷駆動中に
バッテリの電源電圧低下によりマイコン14がリセット
されると、ステップ101で負荷駆動中か否かを判定す
る。この判定は、上記RAMに書き込んだ駆動判定フラ
グに基づき判定する。例えば、同フラグが「1」のとき
には負荷駆動中であると判定し、同フラグが「0」のと
きには負荷駆動中でないと判定する。負荷駆動中でない
と判定された場合、図1に示す処理が一旦終了される。
Then, the microcomputer 14 is
"Load position correction process at microcomputer reset" shown in Fig. 2
Is designed to run. That is, when the microcomputer 14 is reset due to a decrease in the power supply voltage of the battery during load driving, it is determined in step 101 whether the load is being driven. This determination is made based on the drive determination flag written in the RAM. For example, when the flag is "1", it is determined that the load is being driven, and when the flag is "0", it is determined that the load is not being driven. When it is determined that the load is not being driven, the process shown in FIG. 1 is temporarily terminated.

【0022】負荷駆動中であると判定された場合、ステ
ップ102に進み、負荷駆動方向が正であるか否かを判
定する。この判定は、上記RAMに書き込んだ駆動方向
判定フラグに基づき判定する。例えば、同フラグが
「1」のときには負荷駆動方向が正(ウィンドウガラス
が閉じ方向に駆動されている)と判定し、同フラグが
「0」のときには負荷駆動方向が負(ウィンドウガラス
が開方向に駆動されている)と判定する。この判定結
果、すなわちリセット時における負荷駆動方向は、上記
バックアップRAMに記憶される。
When it is determined that the load is being driven, the routine proceeds to step 102, where it is determined whether the load driving direction is positive. This determination is made based on the drive direction determination flag written in the RAM. For example, when the flag is "1", it is determined that the load drive direction is positive (the window glass is being driven in the closing direction), and when the flag is "0", the load drive direction is negative (the window glass is in the opening direction). Is being driven). The determination result, that is, the load driving direction at the time of reset is stored in the backup RAM.

【0023】負荷駆動方向が正の場合(ステップ102
の判定結果がYESの場合)、ステップ103に進み、
補正値(補正量)を設定する。この補正値は、リセット
時からモータ11が慣性で回転した分のパルス信号数に
相当し、リセット時或いはその直前におけるモータ11
の回転速度に応じた値に設定される。すなわち、その補
正値は、上記ROMに記憶したマップを参照して、リセ
ット時におけるモータ11の回転速度が大きい程大きい
値に設定され、その回転速度が小さい程小さい値に設定
される。こうして設定された補正値は、上記バックアッ
プRAMに記憶される。
If the load drive direction is positive (step 102)
If the determination result of is YES), the process proceeds to step 103,
Set the correction value (correction amount). This correction value corresponds to the number of pulse signals corresponding to the amount of rotation of the motor 11 due to inertia from the time of reset.
It is set to a value according to the rotation speed of. That is, with reference to the map stored in the ROM, the correction value is set to a larger value as the rotation speed of the motor 11 at the time of reset is larger, and is set to a smaller value as the rotation speed is smaller. The correction value thus set is stored in the backup RAM.

【0024】こうして補正値を設定した後、ステップ1
05に進み、マイコン14が復帰したか否か、すなわち
マイコン14に再び作動電圧が供給されてマイコン14
がリセット状態から作動状態に復帰したか否かを判定す
る。マイコン14がまだ復帰していない場合(ステップ
105の判定結果がNOの場合)には、図1に示す処理
が一旦終了される。
After setting the correction value in this way, step 1
In step 05, whether the microcomputer 14 has recovered, that is, the operating voltage is supplied to the microcomputer 14 again,
Determines whether the reset state has returned to the operating state. When the microcomputer 14 has not yet returned (when the determination result of step 105 is NO), the processing shown in FIG. 1 is temporarily terminated.

【0025】マイコン14が復帰した場合(ステップ1
05の判定結果がYESの場合)、ステップ106に進
む。このステップ106では、パルスカウント値(リセ
ット時に記憶したパルス信号のカウント値)を、ステッ
プS102で判定し記憶した負荷駆動方向と同方向に
(ここでは正方向に)、ステップ103で設定した補正
値だけ補正する。具体的には、モータ11の正転により
ウィンドウガラスが閉方向に駆動され、パルス信号がア
ップカウントされる場合、カウント値が例えば「10」
の位置でマイコン14がリセットされ、この後モータ1
1が「10」パルス分だけ慣性によりさらに正転したと
する。この場合、ウィンドウガラスの実際の位置はカウ
ント値が「20」の位置であるのに、マイコン14によ
る認識位置はカウント値が「10」の位置であり、両位
置にカウント値「10」だけズレが生じている。このよ
うな場合、上記補正を行うことにより、マイコン14が
リセット状態から復帰した時、パルス信号のカウント値
すなわちマイコン14による認識位置が実負荷位置(カ
ウント値「20」)と一致し、両位置のズレが無くな
る。
When the microcomputer 14 returns (step 1
If the determination result of 05 is YES), the process proceeds to step 106. In this step 106, the pulse count value (count value of the pulse signal stored at the time of reset) is determined in step S102 in the same direction as the load drive direction (here, in the positive direction), and the correction value set in step 103 is set. Only correct. Specifically, when the window glass is driven in the closing direction by the normal rotation of the motor 11 and the pulse signal is up-counted, the count value is, for example, “10”.
The microcomputer 14 is reset at the position of
It is assumed that 1 further rotates forward by "10" pulses due to inertia. In this case, the actual position of the window glass is the position where the count value is “20”, but the recognized position by the microcomputer 14 is the position where the count value is “10”, and the count value is shifted by “10” between both positions. Is occurring. In such a case, by performing the above correction, when the microcomputer 14 returns from the reset state, the count value of the pulse signal, that is, the position recognized by the microcomputer 14 coincides with the actual load position (count value “20”), and both positions are detected. Displacement disappears.

【0026】一方、負荷駆動方向が負の場合(ステップ
102の判定結果がNOの場合)、ステップ104に進
み、補正値(補正量)を設定する。この補正値も、リセ
ット時からモータ11が慣性で回転した分のパルス信号
数に相当する値に、上記マップを参照して設定される。
On the other hand, when the load driving direction is negative (when the determination result of step 102 is NO), the routine proceeds to step 104, where a correction value (correction amount) is set. This correction value is also set to a value corresponding to the number of pulse signals corresponding to the amount of rotation of the motor 11 due to inertia from the time of reset, with reference to the above map.

【0027】こうして補正値を設定した後、ステップ1
07に進み、マイコン14が復帰したか否かを判定す
る。マイコン14がまだ復帰していない場合(ステップ
107の判定結果がNOの場合)には、図1に示す処理
が一旦終了される。
After setting the correction value in this way, step 1
In step 07, it is determined whether the microcomputer 14 has returned. When the microcomputer 14 has not yet returned (when the determination result of step 107 is NO), the processing shown in FIG. 1 is once terminated.

【0028】マイコン14が復帰した場合(ステップ1
07の判定結果がYESの場合)、ステップ108に進
み、パルスカウント値(リセット時に記憶したカウント
値)を、ステップS102で判定し記憶した負荷駆動方
向と同方向に(ここでは逆方向に)、ステップ104で
設定した補正値だけ補正する。具体的には、モータ11
の逆転によりウィンドウガラスが開方向に駆動され、パ
ルス信号がダウンカウントされる場合、カウント値が例
えば「20」の位置でマイコン14がリセットされ、こ
の後モータ11が「10」パルス分だけ慣性によりさら
に逆転したとする。この場合、ウィンドウガラスの実際
の位置はカウント値が「10」の位置であるのに、マイ
コン14による認識位置はカウント値が「20」の位置
であり、両位置にカウント値「10」だけズレが生じて
いる。このような場合、上記補正を行うことにより、マ
イコン14がリセット状態から復帰した時、パルス信号
のカウント値すなわちマイコン14による認識位置が実
負荷位置(カウント値「10」)と一致し、両位置のズ
レが無くなる。
When the microcomputer 14 returns (step 1
If the determination result of 07 is YES), the process proceeds to step 108, and the pulse count value (count value stored at reset) is determined in step S102 in the same direction as the load driving direction (here, in the opposite direction), Only the correction value set in step 104 is corrected. Specifically, the motor 11
When the window glass is driven in the opening direction by the reverse rotation of, and the pulse signal is down-counted, the microcomputer 14 is reset when the count value is, for example, "20", and then the motor 11 is inertially moved by "10" pulses. It is assumed that the situation has been reversed. In this case, the actual position of the window glass is the position where the count value is "10", but the recognized position by the microcomputer 14 is the position where the count value is "20", and the count value is shifted by "10" between both positions. Is occurring. In such a case, by performing the above correction, when the microcomputer 14 returns from the reset state, the count value of the pulse signal, that is, the position recognized by the microcomputer 14 coincides with the actual load position (count value "10"), and both positions are detected. Displacement disappears.

【0029】なお、上記ステップ102が、リセット時
における負荷の駆動方向を検出する駆動方向検出手段に
相当する。また、ステップ105,106およびステッ
プ107,108が、リセット状態から作動状態に復帰
した時、リセット時に記憶したカウント値を、リセット
時からモータ11が慣性で回転した分のパルス信号数だ
け、検出された負荷の駆動方向と同方向に補正するカウ
ント値補正手段に相当する。
The step 102 corresponds to drive direction detecting means for detecting the drive direction of the load at the time of reset. Further, when steps 105 and 106 and steps 107 and 108 return from the reset state to the operating state, the count value stored at the time of reset is detected by the number of pulse signals corresponding to the amount of rotation of the motor 11 due to inertia from the time of reset. It corresponds to a count value correction means for correcting the load in the same direction as the driving direction.

【0030】以上のように構成された一実施形態によれ
ば、以下の作用効果を奏する。 (イ)負荷駆動中に電源電圧低下によりマイコン14が
リセットされ、この後モータ11が慣性で回転し続ける
場合、リセット時に記憶されたパルス信号のカウント値
が、リセット時からモータ11が慣性で回転した分のパ
ルス信号数だけ、ステップS102で判定され記憶され
た負荷駆動方向と同方向に補正される。これにより、パ
ルス信号のカウント値すなわちマイコン14による認識
位置が実負荷位置と一致する。したがって、実負荷位置
(ウィンドウガラスの実際の位置)とマイコン14によ
る認識位置(リセット時の記憶位置)のズレを無くすこ
とができ、正確な制御を実現できる。
According to one embodiment configured as described above, the following operational effects are exhibited. (B) When the microcomputer 14 is reset due to the power supply voltage drop during load driving and the motor 11 continues to rotate due to inertia after this, the count value of the pulse signal stored at the time of reset indicates that the motor 11 rotates due to inertia from the time of reset. The number of pulse signals is corrected in the same direction as the load driving direction determined and stored in step S102. As a result, the count value of the pulse signal, that is, the position recognized by the microcomputer 14 matches the actual load position. Therefore, the deviation between the actual load position (actual position of the window glass) and the position recognized by the microcomputer 14 (memory position at reset) can be eliminated, and accurate control can be realized.

【0031】(ロ)ステップ103,104では、補正
値を、リセット時或いはその直前におけるモータ11の
回転速度に応じた値に設定する。すなわち、補正値は、
リセット時におけるモータ11の回転速度が大きい程大
きい値に設定され、その回転速度が小さい程小さい値に
設定される。このため、リセット時からモータ11が慣
性で回転した分のパルス信号数に相当する実負荷位置と
認識位置とのズレを正確に補正することができる。
(B) In steps 103 and 104, the correction value is set to a value corresponding to the rotation speed of the motor 11 at the time of resetting or immediately before that. That is, the correction value is
The larger the rotation speed of the motor 11 at the time of reset, the larger the value, and the smaller the rotation speed, the smaller the value. Therefore, it is possible to accurately correct the deviation between the actual load position and the recognition position, which corresponds to the number of pulse signals corresponding to the rotation of the motor 11 due to inertia from the time of reset.

【0032】なお、この発明は以下のように変更して具
体化することもできる。 ・上記一実施形態では、本発明をパワーウィンドウ装置
におけるモータ駆動制御装置に適用しているが、本発明
はこれに限定されない。すなわち、モータにより駆動さ
れる各種の被駆動部材(負荷)の位置制御を行う様々な
分野に用いられる。例えば、自動車等の車両において
は、モータによって駆動されるシート状態(シートクッ
ション、シートバック、ヘッドレスト等の状態)を着座
者の体型に合わせ、その位置をメモリに記憶させた後、
再度記憶させた位置を読み出してシートの位置調整を容
易とするメモリシートや、サンルーフ等で採用されるモ
ータ駆動制御装置等にも適用可能である。
The present invention can be modified and embodied as follows. -In one above-mentioned embodiment, although the present invention is applied to the motor drive control device in a power window device, the present invention is not limited to this. That is, it is used in various fields in which position control of various driven members (loads) driven by a motor is performed. For example, in a vehicle such as an automobile, a seat state (state of seat cushion, seat back, headrest, etc.) driven by a motor is adjusted to a seated person's body shape, and after storing the position in a memory,
The present invention can also be applied to a memory sheet that reads out the stored position again to facilitate the seat position adjustment, a motor drive control device used in a sunroof, and the like.

【0033】・上記一実施形態では、リセット時にパル
ス信号のカウント値をバックアップRAMに記憶させる
ようにしているが、そのカウント値を電気的消去と書込
みが可能なEEPROMに保持させるようにしてもよ
い。
In the above embodiment, the count value of the pulse signal is stored in the backup RAM at the time of reset, but the count value may be held in the electrically erasable and writable EEPROM. .

【0034】・上記一実施形態では、リセット時にパル
ス信号のカウント値をバックアップRAMに記憶させる
ようにしているが、リセット直前におけるパルス信号の
カウント値を同RAMに記憶させるようにしてもよい。
In the above embodiment, the count value of the pulse signal is stored in the backup RAM at the time of reset, but the count value of the pulse signal immediately before the reset may be stored in the RAM.

【0035】・上記一実施形態では、リセット時におけ
るモータの回転速度が大きい程大きい補正値(補正量)
を設定し、その回転速度が小さい程小さい補正値(補正
量)を設定するようにしているが、本発明はこれに限定
されない。例えば、リセット時或いはその直前にパルス
発生部12から出力されるパルス信号の周波数が高い程
大きい補正量を設定し、その周波数が低い程小さい補正
量を設定するようにしてもよい。或いは、リセット時或
いはその直前におけるバッテリの電源電圧値が高い程大
きい補正量を設定し、その電圧値が低い程小さい補正量
を設定するようにしてもよい。
In the above embodiment, the larger the rotation speed of the motor at the time of reset, the larger the correction value (correction amount).
Is set and a smaller correction value (correction amount) is set as the rotation speed is smaller, but the present invention is not limited to this. For example, the higher the frequency of the pulse signal output from the pulse generator 12 at the time of resetting or immediately before that, the larger the correction amount may be set, and the lower the frequency, the smaller the correction amount may be set. Alternatively, a larger correction amount may be set as the power supply voltage value of the battery at the time of resetting or immediately before that is higher, and a smaller correction amount may be set as the voltage value is lower.

【0036】・上記一実施形態では、パルス発生部12
は2つのホールICを備え、モータ11の回転に同期し
たパルス信号を出力するようになっているが本発明はこ
れに限定されない。例えば、パルス発生部12を、2つ
のホールICの代わりにメカニカル接点を用いること
で、モータ11の回転に同期したパルス信号を出力する
ように構成することもできる。
In the above embodiment, the pulse generator 12
Is equipped with two Hall ICs and outputs a pulse signal in synchronization with the rotation of the motor 11, but the present invention is not limited to this. For example, the pulse generator 12 may be configured to output a pulse signal synchronized with the rotation of the motor 11 by using mechanical contacts instead of the two Hall ICs.

【0037】[0037]

【発明の効果】以上説明したように、本発明によれば、
リセット後に生じる実負荷位置と認識位置とのズレを無
くし、正確な制御を行うことができる。
As described above, according to the present invention,
Accurate control can be performed by eliminating the deviation between the actual load position and the recognition position that occurs after the reset.

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

【図1】 一実施形態に係るモータ駆動制御装置の動作
を示すフローチャート。
FIG. 1 is a flowchart showing an operation of a motor drive control device according to an embodiment.

【図2】 同制御装置の概略構成を示すブロック図。FIG. 2 is a block diagram showing a schematic configuration of the control device.

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

11…モータ、12…パルス発生手段としてのパルス発
生部、13…電子制御装置(ECU)、14…制御手段
としてのマイコン。
11 ... Motor, 12 ... Pulse generator as pulse generator, 13 ... Electronic control unit (ECU), 14 ... Microcomputer as control means.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 東 和睦 愛知県豊田市トヨタ町1番地 トヨタ自動 車 株式会社内 (72)発明者 渡辺 誠一 愛知県豊田市トヨタ町1番地 トヨタ自動 車 株式会社内 (72)発明者 岩井 健 愛知県豊田市トヨタ町1番地 トヨタ自動 車 株式会社内 (72)発明者 下村 泰啓 愛知県丹羽郡大口町豊田三丁目260番地 株式会社東海理化電機製作所内 (72)発明者 田中 賢次 愛知県丹羽郡大口町豊田三丁目260番地 株式会社東海理化電機製作所内 (72)発明者 ▼高▲須 英二 愛知県丹羽郡大口町豊田三丁目260番地 株式会社東海理化電機製作所内 Fターム(参考) 5H303 AA13 BB01 BB06 CC06 DD01 EE03 FF09 GG10 HH07 JJ09 LL03 5H530 BB19 CC02 CC26 CD10 CD13 CD23 CD25    ─────────────────────────────────────────────────── ─── Continued front page    (72) Inventor Kazumu Higashi             1 Toyota Town, Toyota City, Aichi Prefecture Toyota Auto             Car Co., Ltd. (72) Inventor Seiichi Watanabe             1 Toyota Town, Toyota City, Aichi Prefecture Toyota Auto             Car Co., Ltd. (72) Inventor Ken Iwai             1 Toyota Town, Toyota City, Aichi Prefecture Toyota Auto             Car Co., Ltd. (72) Inventor Yasuhiro Shimomura             260-chome, Toyota, Oguchi-cho, Niwa-gun, Aichi             Tokai Rika Electric Co., Ltd. (72) Inventor Kenji Tanaka             260-chome, Toyota, Oguchi-cho, Niwa-gun, Aichi             Tokai Rika Electric Co., Ltd. (72) Inventor ▼ Taka ▲ Eiji Su             260-chome, Toyota, Oguchi-cho, Niwa-gun, Aichi             Tokai Rika Electric Co., Ltd. F-term (reference) 5H303 AA13 BB01 BB06 CC06 DD01                       EE03 FF09 GG10 HH07 JJ09                       LL03                 5H530 BB19 CC02 CC26 CD10 CD13                       CD23 CD25

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 モータを駆動制御する制御手段と、モー
タの回転に同期したパルス信号を出力するパルス発生手
段とを備え、前記制御手段は、前記モータによる負荷駆
動中に、前記パルス信号をカウントし、そのカウント値
により負荷の位置を認識するとともに、バッテリの電源
電圧低下によりリセットされると制御信号の出力を停止
し、このリセット時における前記カウント値を記憶する
ように構成されたモータ駆動制御装置であって、 前記制御手段は、前記リセット時における前記負荷の駆
動方向を検出し記憶する駆動方向検出手段と、 前記リセット状態から作動状態に復帰した時、前記リセ
ット時に記憶したカウント値を、前記リセット時から前
記モータが慣性で回転した分だけ、前記検出手段で記憶
した前記負荷の駆動方向と同方向に補正するカウント値
補正手段とを備えることを特徴とするモータ駆動制御装
置。
1. A control means for driving and controlling a motor, and a pulse generating means for outputting a pulse signal synchronized with the rotation of the motor, wherein the control means counts the pulse signal during load driving by the motor. The motor drive control is configured to recognize the position of the load based on the count value, stop the output of the control signal when the load is reset due to a decrease in the power supply voltage of the battery, and store the count value at the time of the reset. In the device, the control means detects the driving direction of the load at the time of resetting and stores the driving direction, and when the reset state returns to the operating state, the count value stored at the time of resetting, In the same direction as the drive direction of the load stored in the detecting means, the amount of rotation of the motor due to inertia from the time of resetting. Motor drive control device, characterized in that it comprises a count correcting means for correcting.
【請求項2】 前記制御手段は、前記リセット時或いは
その直前における前記モータの回転状態に応じて前記カ
ウント値の補正量を設定する補正量設定手段を備え、前
記カウント値補正手段は、前記設定された補正量だけ、
前記リセット時に記憶したカウント値を補正することを
特徴とする請求項1に記載のモータ駆動制御装置。
2. The control means includes a correction amount setting means for setting a correction amount of the count value in accordance with a rotation state of the motor at the time of the reset or immediately before the reset, and the count value correction means has the setting value. Only the correction amount
The motor drive control device according to claim 1, wherein the count value stored at the time of the reset is corrected.
【請求項3】 前記補正量設定手段は、前記リセット時
或いはその直前における前記モータの回転速度が大きい
程大きい補正量を設定し、その回転速度が小さい程小さ
い補正値を設定することを特徴とする請求項2に記載の
モータ駆動制御装置。
3. The correction amount setting means sets a larger correction amount as the rotation speed of the motor is higher at the time of the reset or immediately before the reset, and sets a smaller correction value as the rotation speed is smaller. The motor drive control device according to claim 2.
【請求項4】 前記補正量設定手段は、前記リセット時
或いはその直前に前記パルス発生手段から出力される前
記パルス信号の周波数が高い程大きい補正量を設定し、
その周波数が低い程小さい補正量を設定することを特徴
とする請求項2に記載のモータ駆動制御装置。
4. The correction amount setting means sets a larger correction amount as the frequency of the pulse signal output from the pulse generating means is higher at or immediately before the reset,
The motor drive control device according to claim 2, wherein a smaller correction amount is set as the frequency is lower.
【請求項5】 前記補正量設定手段は、前記リセット時
或いはその直前における前記バッテリの電源電圧値が高
い程大きい補正量を設定し、その電圧値が低い程小さい
補正量を設定することを特徴とする請求項2に記載のモ
ータ駆動制御装置。
5. The correction amount setting means sets a larger correction amount as the power supply voltage value of the battery at the time of or immediately before the reset is higher, and sets a smaller correction amount as the voltage value is lower. The motor drive control device according to claim 2.
JP2001322846A 2001-10-19 2001-10-19 Motor drive control device Expired - Fee Related JP3813856B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001322846A JP3813856B2 (en) 2001-10-19 2001-10-19 Motor drive control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001322846A JP3813856B2 (en) 2001-10-19 2001-10-19 Motor drive control device

Publications (2)

Publication Number Publication Date
JP2003134866A true JP2003134866A (en) 2003-05-09
JP3813856B2 JP3813856B2 (en) 2006-08-23

Family

ID=19139819

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001322846A Expired - Fee Related JP3813856B2 (en) 2001-10-19 2001-10-19 Motor drive control device

Country Status (1)

Country Link
JP (1) JP3813856B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8649676B2 (en) 2012-02-02 2014-02-11 Panasonic Corporation Motor control device and imaging apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8649676B2 (en) 2012-02-02 2014-02-11 Panasonic Corporation Motor control device and imaging apparatus

Also Published As

Publication number Publication date
JP3813856B2 (en) 2006-08-23

Similar Documents

Publication Publication Date Title
JP4368902B2 (en) Eco-run control device and control method
US8583323B2 (en) Vehicle-use electronic control device
US7698038B2 (en) Vehicle seat belt apparatus
US8400099B2 (en) Meter system with indicator for vehicle
US7859216B2 (en) Stepper motor apparatus and method for controlling stepper motor
US6741058B2 (en) Drive unit for initialization
JP3189975B2 (en) Motor vehicle speed holding device
JP2003134866A (en) Motor drive controller
JP2005098784A (en) Wheel speed operation device and anti-skid control device equipped with the same
US20030140510A1 (en) Interruption of vehicle compass calibration in response to vehicle accessory interference
JP4734444B2 (en) Eco-run control device and control method
CN111196307B (en) System and method for controlling motor-driven power steering
JP2010105527A (en) Controller for vehicle
JP4413450B2 (en) Open / close body position detection device
JP4687396B2 (en) Vehicle seat movement control device
JP3828792B2 (en) Stepping motor movement amount calculation device and stepping motor drive device
JP2014141895A (en) Idle stop control device
JP3820998B2 (en) Rotation detector
JP4081253B2 (en) Actuator control device
JP4270108B2 (en) Engine control device
JP2007055544A (en) Pointer-type instrument for vehicle
KR100461275B1 (en) Engine starting determination method of hybrid electrical vehicle
JP2007325421A (en) Stepper motor device and method of controlling stepper motor
JPH08254070A (en) Control device of power window regulator for car
JP3803052B2 (en) Initialization drive

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040924

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060314

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060523

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060601

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3813856

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100609

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100609

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110609

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110609

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120609

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120609

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130609

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140609

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees