JP2002186285A - Apparatus and method for controlling motor - Google Patents

Apparatus and method for controlling motor

Info

Publication number
JP2002186285A
JP2002186285A JP2000381538A JP2000381538A JP2002186285A JP 2002186285 A JP2002186285 A JP 2002186285A JP 2000381538 A JP2000381538 A JP 2000381538A JP 2000381538 A JP2000381538 A JP 2000381538A JP 2002186285 A JP2002186285 A JP 2002186285A
Authority
JP
Japan
Prior art keywords
time
motor
drive
step number
driving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000381538A
Other languages
Japanese (ja)
Inventor
Kiyoshi Mukoyama
山 潔 向
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2000381538A priority Critical patent/JP2002186285A/en
Publication of JP2002186285A publication Critical patent/JP2002186285A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Electric Motors In General (AREA)
  • Control Of Direct Current Motors (AREA)
  • Control Of Stepping Motors (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an apparatus and a method for controlling a motor wherein such duty control as to minimize degradation in operating efficiency and further effectively reduce heating from the motor is implemented. SOLUTION: With the apparatus and the method for controlling a motor, a command to start duty control is issued wherein a waiting time is set for each driving operation as required from a point in time when the difference between the upper limit value of motor temperature at which the motor normally runs and a motor temperature is estimated to have fallen below a specified value after start of a series of driving operations. More specifically, when the cumulative number of driving steps, or the cumulative value of number of motor driving steps in the series of the driving operations, has reached a specified reference number of steps for starting duty control after start of the series of the driving operations, a command to start duty control is issued.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、モータ制御装置及
びモータ制御方法に係り、特に、モータの発熱量を抑制
するために、モータ駆動のデューティ比の値を制御する
デューティ制御を行うモータ制御装置及びモータ制御方
法に関する。また、そのモータ制御方法を実行するコン
ピュータプログラムを記録した記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a motor control device and a motor control method, and more particularly to a motor control device for performing duty control for controlling a value of a duty ratio of a motor drive in order to suppress a heat generation amount of the motor. And a motor control method. Further, the present invention relates to a recording medium on which a computer program for executing the motor control method is recorded.

【0002】[0002]

【従来の技術】従来より、モータの駆動制御を行う際に
は、モータの発熱量を抑制するために、モータ駆動のデ
ューティ比の値を制御するデューティ制御が行われてい
る。
2. Description of the Related Art Conventionally, when performing drive control of a motor, duty control for controlling a value of a duty ratio of the motor drive has been performed in order to suppress a heat generation amount of the motor.

【0003】従来のモータ制御装置及びモータ制御方法
におけるデューティ制御は、モータ駆動開始直後から、
モータ駆動のデューティ比の値が所定の規定値以下にな
るように、一回の駆動動作ごとにデューティ比の値を算
出し、算出したデューティ比の値が規定デューティ比を
超えている場合には、規定デューティ比以下の値となる
ように待ち時間を設定するものである。
[0003] The duty control in the conventional motor control device and motor control method starts immediately after the start of motor drive.
A duty ratio value is calculated for each drive operation so that the motor drive duty ratio value is equal to or less than a predetermined specified value, and when the calculated duty ratio value exceeds the specified duty ratio, , The waiting time is set so as to be equal to or less than the specified duty ratio.

【0004】[0004]

【発明が解決しようとする課題】しかし、従来のモータ
制御装置及びモータ制御方法によるデューティ制御にお
いては、例えば電源投入直後や、しばらくの間モータを
停止させていたとき等、モータがほとんど発熱しておら
ず、モータ温度の限界値まで十分に余裕があるときであ
っても、算出したデューティ比の値が規定デューティ比
を超えている場合には、規定デューティ比以下の値とな
るように待ち時間を設定している。
However, in the duty control by the conventional motor control device and the conventional motor control method, the motor almost generates heat, for example, immediately after the power is turned on or when the motor is stopped for a while. If the calculated duty ratio exceeds the specified duty ratio even when there is sufficient margin to the motor temperature limit value, the waiting time is set so that the value becomes equal to or less than the specified duty ratio. Is set.

【0005】従って、動作時間が不必要に長くなり、動
作効率低下の原因になっているという問題点があった。
[0005] Accordingly, there is a problem that the operation time becomes unnecessarily long, which causes a reduction in operation efficiency.

【0006】本発明は上記問題点に鑑みてなされたもの
で、その目的は、動作効率の低下を最小限に抑制しなが
ら、モータ発熱量を効果的に抑制するデューティ制御を
可能とするモータ制御装置及びモータ制御方法を提供す
ることである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has as its object to provide a motor control capable of performing duty control for effectively suppressing motor heat generation while minimizing a decrease in operating efficiency. It is to provide a device and a motor control method.

【0007】[0007]

【課題を解決するための手段】本発明に係るモータ制御
装置によれば、一連の駆動動作開始後、モータが正常に
動作するモータ温度の上限値とモータ温度との差が所定
値未満になったと推測される時点から、一回の駆動動作
ごとに必要に応じて待ち時間を設定するデューティ制御
開始を指令することを特徴とする。
According to the motor control apparatus of the present invention, after the start of a series of driving operations, the difference between the motor temperature at which the motor operates normally and the motor temperature becomes less than a predetermined value. It is characterized in that a duty control start for setting a waiting time as necessary is commanded for each one driving operation from a point in time when it is assumed that the driving control has been performed.

【0008】具体的には、一連の駆動動作開始後、上記
一連の駆動動作におけるモータの駆動ステップ数の累積
値である累積駆動ステップ数が所定のデューティ制御開
始基準ステップ数に達してから、一回の駆動動作ごとに
必要に応じて待ち時間を設定するデューティ制御開始を
指令することを特徴とする。
More specifically, after a series of driving operations is started, after the accumulated driving step number, which is the accumulated value of the number of motor driving steps in the series of driving operations, reaches a predetermined duty control start reference step number, It is characterized by instructing the start of duty control for setting a waiting time as needed for each driving operation.

【0009】上記構成により、不必要なデューティ制御
を回避して、不必要な待ち時間を排除することができる
ので、モータの動作効率の低下を最小限に抑制すること
ができる。
With the above configuration, unnecessary duty control can be avoided, and unnecessary waiting time can be eliminated, so that a decrease in operating efficiency of the motor can be suppressed to a minimum.

【0010】本発明の第1の実施の形態に係るモータ制
御装置によれば、時刻を計時して現在時刻を示す計時部
と、前回の駆動開始時刻から今回の駆動開始時刻までの
経過時間を算出する経過時間算出部と、上記経過時間と
所定のリセット基準時間とを比較し、上記経過時間が上
記リセット基準時間以上の値であるときは、一連の駆動
動作におけるモータの駆動ステップ数の累積値である累
積駆動ステップ数を0にリセットする累積駆動ステップ
数リセット判断部と、上記累積駆動ステップ数と所定の
デューティ制御開始基準ステップ数とを比較し、上記累
積駆動ステップ数が上記デューティ制御開始基準ステッ
プ数以上の値であるときは、一回の駆動動作ごとに必要
に応じて待ち時間を設定するデューティ制御開始を指令
するデューティ制御開始判断部と、上記デューティ制御
開始の指令に応じて、前回の駆動ステップ数を上記経過
時間で除算して算出される上記経過時間におけるデュー
ティ比と所定の規定デューティ比とを比較し、上記経過
時間におけるデューティ比が上記規定デューティ比を超
える値であるときは、待ち時間を設定すべきことを判断
する待ち時間設定判断部と、待ち時間を設定すべき判断
に応じて、上記前回の駆動ステップ数を上記規定デュー
ティ比で除算して算出される規定経過時間から上記経過
時間を減算して待ち時間の設定時間を算出し、上記今回
の駆動開始時刻から上記設定時間の待ち時間の設定を指
令する待ち時間算出部と、今回の駆動ステップ数を上記
累積駆動ステップ数に加算する累積駆動ステップ数加算
部と、待ち時間を設定した場合には上記今回の駆動開始
時刻から上記設定時間の待ち時間経過後の現在時刻、待
ち時間を設定しなかった場合には上記今回の駆動開始時
刻を次回の演算における上記前回の駆動開始時刻として
設定する駆動開始時刻設定部と、上記前回の駆動開始時
刻及び上記累積駆動ステップ数をそれぞれ更新保存する
不揮発性記憶部とを備えていることを特徴とする。
According to the motor control device according to the first embodiment of the present invention, the clock unit for measuring the time and indicating the current time and the elapsed time from the previous drive start time to the current drive start time are determined. The elapsed time calculation unit to be calculated, compares the elapsed time with a predetermined reset reference time, and when the elapsed time is equal to or longer than the reset reference time, accumulates the number of motor drive steps in a series of drive operations. A cumulative drive step number reset determination unit for resetting the cumulative drive step number, which is a value, to 0, and comparing the cumulative drive step number with a predetermined duty control start reference step number, and determining that the cumulative drive step number is equal to the duty control start value. If the value is equal to or greater than the reference step number, a duty control command is issued to start the duty control to set the waiting time as necessary for each drive operation. A start determining unit for comparing the duty ratio in the elapsed time calculated by dividing the previous driving step number by the elapsed time with a predetermined specified duty ratio in response to the duty control start command, When the duty ratio in time is a value exceeding the specified duty ratio, a waiting time setting judging unit for judging that a waiting time should be set, and the previous driving step according to the judgment to set the waiting time. The set time of the waiting time is calculated by subtracting the elapsed time from the specified elapsed time calculated by dividing the number by the specified duty ratio and instructing the setting of the waiting time of the set time from the current driving start time. A waiting time calculating section, a cumulative driving step number adding section for adding the current number of driving steps to the cumulative driving step number, and The current time after the elapse of the set time wait time from the current drive start time, or the drive that sets the current drive start time as the previous drive start time in the next calculation if the wait time is not set A start time setting unit and a nonvolatile storage unit for updating and storing the previous drive start time and the cumulative number of drive steps, respectively.

【0011】本発明の第2の実施の形態に係るモータ制
御装置によれば、時刻を計時して現在時刻を示す計時部
と、前回の駆動開始時刻から今回の駆動開始時刻までの
経過時間を算出する経過時間算出部と、上記経過時間と
所定のリセット基準時間とを比較し、上記経過時間が上
記リセット基準時間以上の値であるときは、一連の駆動
動作におけるモータの駆動ステップ数の累積値である累
積駆動ステップ数を0にリセットする累積駆動ステップ
数リセット判断部と、上記累積駆動ステップ数と所定の
デューティ制御開始基準ステップ数とを比較し、上記累
積駆動ステップ数が上記デューティ制御開始基準ステッ
プ数以上の値であるときは、一回の駆動動作ごとに必要
に応じて待ち時間を設定するデューティ制御開始を指令
するデューティ制御開始判断部と、上記デューティ制御
開始の指令に応じて、前回の駆動ステップ数を所定の規
定デューティ比で除算して算出される規定経過時間から
上記経過時間を減算して待ち時間の設定時間を算出する
待ち時間算出部と、上記待ち時間の設定時間が正の値で
あるか否かを判断し、上記設定時間が正の値であるとき
は、上記今回の駆動開始時刻から上記設定時間の待ち時
間の設定を指令する待ち時間設定判断部と、今回の駆動
ステップ数を上記累積駆動ステップ数に加算する累積駆
動ステップ数加算部と、待ち時間を設定した場合には上
記今回の駆動開始時刻から上記設定時間の待ち時間経過
後の現在時刻、待ち時間を設定しなかった場合には上記
今回の駆動開始時刻を次回の演算における上記前回の駆
動開始時刻として設定する駆動開始時刻設定部と、上記
前回の駆動開始時刻及び上記累積駆動ステップ数をそれ
ぞれ更新保存する不揮発性記憶部とを備えていることを
特徴とする。
According to the motor control device according to the second embodiment of the present invention, the clock unit that measures the time and indicates the current time, and measures the elapsed time from the previous drive start time to the current drive start time. The elapsed time calculation unit to be calculated, compares the elapsed time with a predetermined reset reference time, and when the elapsed time is equal to or longer than the reset reference time, accumulates the number of motor drive steps in a series of drive operations. A cumulative drive step number reset determination unit for resetting the cumulative drive step number, which is a value, to 0, and comparing the cumulative drive step number with a predetermined duty control start reference step number, and determining that the cumulative drive step number is the duty control start value. If the value is equal to or greater than the reference step number, a duty control command is issued to start the duty control to set the waiting time as necessary for each drive operation. A start determining unit, and in accordance with the duty control start command, subtracts the elapsed time from a specified elapsed time calculated by dividing the previous number of driving steps by a predetermined specified duty ratio to set a waiting time set time. A wait time calculating unit for calculating whether the set time of the wait time is a positive value, and when the set time is a positive value, when the set time of the wait time is a positive value, A waiting time setting determining unit for instructing the setting of the waiting time, a cumulative driving step number adding unit for adding the current driving step number to the cumulative driving step number, and a current driving start time when the waiting time is set. From the current time after the elapse of the set time wait time, if the wait time is not set, the current drive start time is set as the previous drive start time in the next calculation. A time setting unit, characterized in that it comprises a nonvolatile memory unit for updating stored the previous drive start time and the cumulative number of driving steps each.

【0012】上記経過時間算出部、上記累積駆動ステッ
プ数リセット判断部、上記デューティ制御開始判断部、
上記待ち時間設定判断部、上記待ち時間算出部、上記累
積駆動ステップ数加算部及び上記駆動開始時刻設定部
は、1個の演算処理部として構成されているものとする
とよい。
The elapsed time calculating section, the cumulative drive step number reset determining section, the duty control start determining section,
The waiting time setting determining unit, the waiting time calculating unit, the cumulative driving step number adding unit, and the driving start time setting unit may be configured as one arithmetic processing unit.

【0013】上記不揮発性記憶部は、電源オフの操作に
応じて、その電源オフ時刻を更新保存するものであり、
上記経過時間算出部は、電源オンの操作に応じて、前回
の電源オフ時刻から今回の電源オン時刻までの電源オフ
経過時間を算出するものであり、上記累積駆動ステップ
数リセット判断部は、上記電源オフ経過時間と上記リセ
ット基準時間とを比較し、上記電源オフ経過時間が上記
リセット基準時間以上の値であるときは、上記累積駆動
ステップ数を0にリセットするものとすると、必要なデ
ューティ制御が行われずにモータが過熱状態となって動
作障害が発生する問題や、不必要なデューティ制御が行
われてモータの動作効率の低下を招く問題を未然に防止
することができる。
The non-volatile storage section updates and stores the power-off time in response to a power-off operation.
The elapsed time calculation unit is for calculating a power-off elapsed time from a previous power-off time to a current power-on time in response to a power-on operation. Comparing the power-off elapsed time with the reset reference time, and if the power-off elapsed time is equal to or longer than the reset reference time, the accumulated drive step number is reset to 0. The problem that the motor is overheated without performing the operation and an operation failure occurs, and the problem that unnecessary duty control is performed to lower the operation efficiency of the motor can be prevented beforehand.

【0014】本発明に係るモータ制御方法によれば、一
連の駆動動作開始後、モータが正常に動作するモータ温
度の上限値とモータ温度との差が所定値未満になったと
推測される時点から、一回の駆動動作ごとに必要に応じ
て待ち時間を設定するデューティ制御開始を指令するこ
とを特徴とする。
According to the motor control method of the present invention, after the start of a series of driving operations, from the time when it is estimated that the difference between the upper limit value of the motor temperature at which the motor normally operates and the motor temperature is smaller than the predetermined value. And a command to start a duty control for setting a waiting time as necessary for each driving operation.

【0015】具体的には、一連の駆動動作開始後、上記
一連の駆動動作におけるモータの駆動ステップ数の累積
値である累積駆動ステップ数が所定のデューティ制御開
始基準ステップ数に達してから、一回の駆動動作ごとに
必要に応じて待ち時間を設定するデューティ制御開始を
指令することを特徴とする。
More specifically, after a series of driving operations is started, after the accumulated driving step number, which is the accumulated value of the motor driving steps in the series of driving operations, reaches a predetermined duty control start reference step number, It is characterized by instructing the start of duty control for setting a waiting time as needed for each driving operation.

【0016】本発明の第1の実施の形態に係るモータ制
御方法によれば、前回の駆動開始時刻から今回の駆動開
始時刻までの経過時間を算出する経過時間算出過程と、
上記経過時間と所定のリセット基準時間とを比較し、上
記経過時間が上記リセット基準時間以上の値であるとき
は、一連の駆動動作におけるモータの駆動ステップ数の
累積値である累積駆動ステップ数を0にリセットする累
積駆動ステップ数リセット判断過程と、上記累積駆動ス
テップ数と所定のデューティ制御開始基準ステップ数と
を比較し、上記累積駆動ステップ数が上記デューティ制
御開始基準ステップ数以上の値であるときは、一回の駆
動動作ごとに必要に応じて待ち時間を設定するデューテ
ィ制御開始を指令するデューティ制御開始判断過程と、
上記デューティ制御開始の指令に応じて、前回の駆動ス
テップ数を上記経過時間で除算して算出される上記経過
時間におけるデューティ比と所定の規定デューティ比と
を比較し、上記経過時間におけるデューティ比が上記規
定デューティ比を超える値であるときは、待ち時間を設
定すべきことを判断する待ち時間設定判断過程と、待ち
時間を設定すべき判断に応じて、上記前回の駆動ステッ
プ数を上記規定デューティ比で除算して算出される規定
経過時間から上記経過時間を減算して待ち時間の設定時
間を算出し、上記今回の駆動開始時刻から上記設定時間
の待ち時間の設定を指令する待ち時間算出過程と、今回
の駆動ステップ数を上記累積駆動ステップ数に加算し
て、上記累積駆動ステップ数を更新する累積駆動ステッ
プ数加算過程と、待ち時間を設定した場合には上記今回
の駆動開始時刻から上記設定時間の待ち時間経過後の現
在時刻、待ち時間を設定しなかった場合には上記今回の
駆動開始時刻を次回の演算における上記前回の駆動開始
時刻として設定する駆動開始時刻設定過程とを備えてい
ることを特徴とする。
According to the motor control method according to the first embodiment of the present invention, an elapsed time calculating step of calculating an elapsed time from a previous drive start time to a current drive start time,
The elapsed time is compared with a predetermined reset reference time, and when the elapsed time is equal to or longer than the reset reference time, a cumulative drive step number which is a cumulative value of the number of drive steps of the motor in a series of drive operations is calculated. The step of resetting the number of accumulated driving steps to be reset to 0 is compared with the number of accumulated driving steps and a predetermined number of reference steps for starting the duty control, and the number of accumulated driving steps is equal to or greater than the number of reference steps for starting the duty control. When, a duty control start determining step of instructing a duty control start to set a waiting time as needed for each drive operation,
In response to the duty control start command, the duty ratio in the elapsed time calculated by dividing the previous driving step number by the elapsed time is compared with a predetermined specified duty ratio. If the value exceeds the specified duty ratio, the waiting time setting judging step of judging that the waiting time should be set, and the previous driving step number in accordance with the judgment of setting the waiting time should be set to the specified duty ratio. A waiting time calculation process of calculating the waiting time set time by subtracting the elapsed time from the specified elapsed time calculated by dividing by the ratio, and instructing the setting of the waiting time of the set time from the current drive start time. And adding a current driving step number to the cumulative driving step number to update the cumulative driving step number. If the time is set, the current time after the elapse of the set time wait time from the current drive start time, and if the wait time is not set, the current drive start time is set to the previous time in the next calculation. A drive start time setting step of setting the drive start time.

【0017】本発明の第2の実施の形態に係るモータ制
御方法によれば、前回の駆動開始時刻から今回の駆動開
始時刻までの経過時間を算出する経過時間算出過程と、
上記経過時間と所定のリセット基準時間とを比較し、上
記経過時間が上記リセット基準時間以上の値であるとき
は、一連の駆動動作におけるモータの駆動ステップ数の
累積値である累積駆動ステップ数を0にリセットする累
積駆動ステップ数リセット判断過程と、上記累積駆動ス
テップ数と所定のデューティ制御開始基準ステップ数と
を比較し、上記累積駆動ステップ数が上記デューティ制
御開始基準ステップ数以上の値であるときは、一回の駆
動動作ごとに必要に応じて待ち時間を設定するデューテ
ィ制御開始を指令するデューティ制御開始判断過程と、
上記デューティ制御開始の指令に応じて、前回の駆動ス
テップ数を所定の規定デューティ比で除算して算出され
る規定経過時間から上記経過時間を減算して待ち時間の
設定時間を算出する待ち時間算出過程と、上記待ち時間
の設定時間が正の値であるか否かを判断し、上記設定時
間が正の値であるときは、上記今回の駆動開始時刻から
上記設定時間の待ち時間の設定を指令する待ち時間設定
判断過程と、今回の駆動ステップ数を上記累積駆動ステ
ップ数に加算して、上記累積駆動ステップ数を更新する
累積駆動ステップ数加算過程と、待ち時間を設定した場
合には上記今回の駆動開始時刻から上記設定時間の待ち
時間経過後の現在時刻、待ち時間を設定しなかった場合
には上記今回の駆動開始時刻を次回の演算における上記
前回の駆動開始時刻として設定する駆動開始時刻設定過
程とを備えていることを特徴とする。
According to the motor control method according to the second embodiment of the present invention, an elapsed time calculating step of calculating an elapsed time from a previous drive start time to a current drive start time,
The elapsed time is compared with a predetermined reset reference time, and when the elapsed time is equal to or longer than the reset reference time, a cumulative drive step number which is a cumulative value of the number of drive steps of the motor in a series of drive operations is calculated. The step of resetting the number of accumulated driving steps to be reset to 0 is compared with the number of accumulated driving steps and a predetermined number of reference steps for starting the duty control, and the number of accumulated driving steps is equal to or greater than the number of reference steps for starting the duty control. When, a duty control start determining step of instructing a duty control start to set a waiting time as needed for each drive operation,
Wait time calculation for calculating the set time of the wait time by subtracting the elapsed time from the specified elapsed time calculated by dividing the previous number of drive steps by a predetermined specified duty ratio in response to the duty control start command. The process and whether the set time of the waiting time is a positive value is determined, and when the set time is a positive value, the setting of the waiting time of the set time is performed from the current drive start time. The waiting time setting determining step to be commanded, the cumulative driving step number adding step of adding the current driving step number to the cumulative driving step number and updating the cumulative driving step number, The current time after the elapse of the set time wait time from the current drive start time, and if the wait time has not been set, the current drive start time is the time of the previous drive start in the next calculation Characterized in that a drive start time setting process of setting a.

【0018】電源オフの操作に応じて、その電源オフ時
刻を更新保存する電源オフ時刻更新保存過程と、電源オ
ンの操作に応じて、前回の電源オフ時刻から今回の電源
オン時刻までの電源オフ経過時間を算出する電源オフ経
過時間算出過程と、上記電源オフ経過時間と上記リセッ
ト基準時間とを比較し、上記電源オフ経過時間が上記リ
セット基準時間以上の値であるときは、上記累積駆動ス
テップ数を0にリセットする電源オン時の累積駆動ステ
ップ数リセット判断過程とをさらに備えているものとす
ると、必要なデューティ制御が行われずにモータが過熱
状態となって動作障害が発生する問題や、不必要なデュ
ーティ制御が行われてモータの動作効率の低下を招く問
題を未然に防止することができる。
A power-off time updating and saving process for updating and saving the power-off time in response to a power-off operation, and power-off from a previous power-off time to a current power-on time in response to a power-on operation The power-off elapsed time calculating step of calculating the elapsed time, and comparing the power-off elapsed time with the reset reference time, and when the power-off elapsed time is equal to or longer than the reset reference time, the cumulative driving step If it is further provided with a step of resetting the number of accumulated drive steps at power-on for resetting the number to 0, the motor may be overheated without performing the necessary duty control, causing an operation failure, It is possible to prevent a problem that unnecessary duty control is performed and the operating efficiency of the motor is reduced.

【0019】上記本発明に係るモータ制御装置及びモー
タ制御方法において、上記所定のリセット基準時間は、
上記デューティ制御の基準となる温度であって、モータ
が正常に動作するモータ温度の上限値より所定値だけ低
い値に設定されるデューティ制御基準モータ温度になっ
ているモータが、モータ温度制御の基礎となる基底モー
タ温度まで自然に冷却されるために必要とされる時間で
ある。また、上記所定の規定デューティ比は、そのデュ
ーティ比においてモータを駆動制御することにより、モ
ータ温度が少なくとも上昇することなくそのまま維持さ
れ又は徐々に下降することとなる値のデューティ比であ
る。上記所定のデューティ制御開始基準ステップ数は、
モータの発熱量が最も大きくなる駆動モードによりモー
タの駆動制御を行ったときに、モータ温度が、上記デュ
ーティ制御の基準となる温度であって、モータが正常に
動作するモータ温度の上限値より所定値だけ低い値に設
定されるデューティ制御基準モータ温度に達する駆動ス
テップ数の最小値である。
In the motor control device and the motor control method according to the present invention, the predetermined reset reference time is:
A motor which is a reference temperature for the duty control and has a duty control reference motor temperature set to a value lower than the upper limit value of the motor temperature at which the motor normally operates by a predetermined value is a basic motor temperature control. Is the time required to cool naturally to the base motor temperature. The predetermined duty ratio is a duty ratio at which the motor temperature is maintained or at least gradually lowered without at least increasing by controlling the driving of the motor at the duty ratio. The predetermined duty control start reference step number is:
When drive control of the motor is performed in the drive mode in which the amount of heat generated by the motor is largest, the motor temperature is a reference temperature for the duty control and is a predetermined value from an upper limit value of the motor temperature at which the motor operates normally. This is the minimum value of the number of drive steps to reach the duty control reference motor temperature set to a value lower by the value.

【0020】上記モータは、DCモータ又はステッピン
グモータであるものとするとよい。
The motor may be a DC motor or a stepping motor.

【0021】本発明に係るコンピュータプログラムの記
録媒体によれば、上記本発明に係るモータ制御方法のい
ずれかをコンピュータシステムにおいて実行するコンピ
ュータプログラムが記録されたことを特徴とする。
According to a computer program recording medium of the present invention, a computer program for executing any of the above-described motor control methods in a computer system is recorded.

【0022】[0022]

【発明の実施の形態】最初に、本発明に係るモータ制御
装置及びモータ制御方法の主な適用対象であるインクジ
ェットプリンタの概略構成及び制御方法について説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS First, a schematic configuration and a control method of an ink jet printer to which a motor control device and a motor control method according to the present invention are mainly applied will be described.

【0023】図12は、インクジェットプリンタの概略
構成を示したブロック図である。
FIG. 12 is a block diagram showing a schematic configuration of the ink jet printer.

【0024】図12に示したインクジェットプリンタ
は、紙送りを行う紙送りモータ(以下、PFモータとも
いう。)1と、紙送りモータ1を駆動する紙送りモータ
ドライバ2と、印刷紙50にインクを吐出するヘッド9
が固定され、印刷紙50に対し平行方向かつ紙送り方向
に対し垂直方向に駆動されるキャリッジ3と、キャリッ
ジ3を駆動するキャリッジモータ(以下、CRモータと
もいう。)4と、キャリッジモータ4を駆動するCRモ
ータドライバ5と、CRモータドライバ5に直流電流指
令値を払い出すDCユニット6と、ヘッド9の目詰まり
防止のためのインクの吸い出しを制御するポンプモータ
7と、ポンプモータ7を駆動するポンプモータドライバ
8と、ヘッド9を駆動制御するヘッドドライバ10と、
キャリッジ3に固定されたリニア式エンコーダ11と、
所定の間隔にスリットが形成されたリニア式エンコーダ
11用符号板12と、PFモータ1用のロータリ式エン
コーダ13と、印刷処理されている紙の終端位置を検出
する紙検出センサ15と、プリンタ全体の制御を行うC
PU16と、CPU16に対して周期的に割込み信号を
発生するタイマIC17と、ホストコンピュータ18と
の間でデータの送受信を行うインタフェース部(以下、
IFともいう。)19と、ホストコンピュータ18から
IF19を介して送られてくる印字情報に基づいて印字
解像度やヘッド9の駆動波形等を制御するASIC20
と、ASIC20及びCPU16の作業領域やプログラ
ム格納領域として用いられるPROM21,RAM22
及びEEPROM23と、印刷紙50を支持するプラテ
ン25と、PFモータ1によって駆動されて印刷紙50
を搬送する搬送ローラ27と、CRモータ4の回転軸に
取付けられたプーリ30と、プーリ30によって駆動さ
れるタイミングベルト31とから構成されている。
The ink jet printer shown in FIG. 12 includes a paper feed motor (hereinafter, also referred to as a PF motor) 1 for feeding paper, a paper feed motor driver 2 for driving the paper feed motor 1, and ink for printing paper 50. Head 9 for discharging
The carriage 3 is driven in a direction parallel to the printing paper 50 and perpendicular to the paper feeding direction, a carriage motor (hereinafter also referred to as a CR motor) 4 for driving the carriage 3, and a carriage motor 4. Drives the CR motor driver 5, a DC unit 6 that pays out a DC current command value to the CR motor driver 5, a pump motor 7 that controls ink suction for preventing clogging of the head 9, and drives the pump motor 7. A pump motor driver 8, a head driver 10 for driving and controlling a head 9,
A linear encoder 11 fixed to the carriage 3,
A code plate 12 for a linear encoder 11 having slits formed at predetermined intervals; a rotary encoder 13 for a PF motor 1; a paper detection sensor 15 for detecting the end position of the paper being printed; C that controls
An interface unit (hereinafter, referred to as a unit) that transmits and receives data between the PU 16, a timer IC 17 that periodically generates an interrupt signal to the CPU 16, and a host computer 18.
Also called IF. ) 19 and an ASIC 20 for controlling the print resolution and the drive waveform of the head 9 based on the print information sent from the host computer 18 via the IF 19.
And a PROM 21 and a RAM 22 used as a work area and a program storage area of the ASIC 20 and the CPU 16.
And the EEPROM 23, the platen 25 supporting the printing paper 50, and the printing paper 50 driven by the PF motor 1.
, A pulley 30 attached to the rotation shaft of the CR motor 4, and a timing belt 31 driven by the pulley 30.

【0025】DCユニット6は、CPU16から送られ
てくる制御指令、エンコーダ11,13の出力に基づい
て紙送りモータドライバ2及びCRモータドライバ5を
駆動制御する。また、紙送りモータ1及びCRモータ4
はいずれもDCモータで構成されている。
The DC unit 6 controls the driving of the paper feed motor driver 2 and the CR motor driver 5 based on the control commands sent from the CPU 16 and the outputs of the encoders 11 and 13. The paper feed motor 1 and the CR motor 4
Are all composed of DC motors.

【0026】図13は、インクジェットプリンタのキャ
リッジ3周辺の構成を示した斜視図である。
FIG. 13 is a perspective view showing the structure around the carriage 3 of the ink jet printer.

【0027】図13に示すように、キャリッジ3は、タ
イミングベルト31によりプーリ30を介してキャリッ
ジモータ4に接続され、ガイド部材32に案内されてプ
ラテン25に平行に移動するように駆動される。キャリ
ッジ3の印刷紙に対向する面には、ブラックインクを吐
出するノズル列及びカラーインクを吐出するノズル列を
有する記録ヘッド9が設けられ、各ノズルはインクカー
トリッジ34からインクの供給を受けて印刷紙にインク
滴を吐出して文字や画像を印刷する。
As shown in FIG. 13, the carriage 3 is connected to the carriage motor 4 via a pulley 30 by a timing belt 31 and is driven by a guide member 32 to move in parallel with the platen 25. A recording head 9 having a nozzle array for discharging black ink and a nozzle array for discharging color ink is provided on a surface of the carriage 3 facing the printing paper. Each nozzle receives ink supplied from an ink cartridge 34 to perform printing. Prints characters and images by ejecting ink droplets on paper.

【0028】また、キャリッジ3の非印字領域には、非
印字時に記録ヘッド9のノズル開口を封止するためのキ
ャッピング装置35と、図12に示したポンプモータ7
を有するポンプユニット36とが設けられている。キャ
リッジ3が印字領域から非印字領域に移動すると、図示
しないレバーにキャリッジ3が当接して、キャッピング
装置35が上方に移動し、ヘッド9を封止する。
In the non-printing area of the carriage 3, a capping device 35 for sealing the nozzle opening of the recording head 9 during non-printing, and a pump motor 7 shown in FIG.
And a pump unit 36 having the same. When the carriage 3 moves from the printing area to the non-printing area, the carriage 3 comes into contact with a lever (not shown), and the capping device 35 moves upward to seal the head 9.

【0029】ヘッド9のノズル開口列に目詰まりが生じ
た場合や、カートリッジ34の交換等を行ってヘッド9
から強制的にインクを吐出する場合は、ヘッド9を封止
した状態でポンプユニット36を作動させ、ポンプユニ
ット36からの負圧により、ノズル開口列からインクを
吸い出す。これにより、ノズル開口列の近傍に付着して
いる塵埃や紙粉が洗浄され、さらにはヘッド9内の気泡
がインクとともにキャップ37に排出される。
When clogging occurs in the nozzle opening row of the head 9 or when the cartridge 34 is replaced or the like, the head 9
When the ink is forcibly ejected from the nozzles, the pump unit 36 is operated with the head 9 sealed, and the ink is sucked out from the nozzle opening row by the negative pressure from the pump unit 36. As a result, dust and paper dust adhering in the vicinity of the nozzle opening row are washed, and the air bubbles in the head 9 are discharged to the cap 37 together with the ink.

【0030】図14は、キャリッジ3に取付けられたリ
ニア式エンコーダ11の構成を模式的に示した説明図で
ある。
FIG. 14 is an explanatory diagram schematically showing the configuration of the linear encoder 11 mounted on the carriage 3. As shown in FIG.

【0031】図14に示したエンコーダ11は、発光ダ
イオード11aと、コリメータレンズ11bと、検出処
理部11cとを備えている。検出処理部11cは、複数
(4個)のフォトダイオード11dと、信号処理回路1
1eと、2個のコンパレータ11fA,11fBとを有し
ている。
The encoder 11 shown in FIG. 14 includes a light emitting diode 11a, a collimator lens 11b, and a detection processing unit 11c. The detection processing unit 11c includes a plurality of (four) photodiodes 11d and the signal processing circuit 1
1e and two comparators 11fA and 11fB.

【0032】発光ダイオード11aの両端に抵抗を介し
て電圧VCCが印加されると、発光ダイオード11aから
光が発せられる。この光はコリメータレンズ11bによ
り平行光に集光されて符号板12を通過する。符号板1
2には、所定の間隔(例えば1/180インチ(1イン
チ=2.54cm))毎にスリットが設けられている。
When a voltage VCC is applied to both ends of the light emitting diode 11a via a resistor, light is emitted from the light emitting diode 11a. This light is converged into parallel light by the collimator lens 11b and passes through the code plate 12. Code plate 1
2, slits are provided at predetermined intervals (for example, 1/180 inch (1 inch = 2.54 cm)).

【0033】符号板12を通過した平行光は、図示しな
い固定スリットを通って各フォトダイオード11dに入
射し、電気信号に変換される。4個のフォトダイオード
11dから出力される電気信号は信号処理回路11eに
おいて信号処理され、信号処理回路11eから出力され
る信号はコンパレータ11fA,11fBにおいて比較さ
れ、比較結果がパルスとして出力される。コンパレータ
11fA,11fBから出力されるパルスENC−A,E
NC−Bがエンコーダ11の出力となる。
The parallel light passing through the code plate 12 enters each photodiode 11d through a fixed slit (not shown) and is converted into an electric signal. The electric signals output from the four photodiodes 11d are subjected to signal processing in a signal processing circuit 11e, and the signals output from the signal processing circuit 11e are compared in comparators 11fA and 11fB, and the comparison result is output as a pulse. Pulses ENC-A and E output from comparators 11fA and 11fB
NC-B is the output of the encoder 11.

【0034】図15は、CRモータ正転時及び逆転時に
おけるエンコーダ11の2つの出力信号の波形を示した
タイミングチャートである。
FIG. 15 is a timing chart showing waveforms of two output signals of the encoder 11 at the time of forward rotation and reverse rotation of the CR motor.

【0035】図15(a),(b)に示すように、CR
モータ正転時及び逆転時のいずれの場合も、パルスEN
C−AとパルスENC−Bとは位相が90度だけ異なっ
ている。CRモータ4が正転しているとき、即ち、キャ
リッジ3が主走査方向に移動しているときは、図15
(a)に示すように、パルスENC−AはパルスENC
−Bよりも90度だけ位相が進み、CRモータ4が逆転
しているときは、図15(b)に示すように、パルスE
NC−AはパルスENC−Bよりも90度だけ位相が遅
れるようにエンコーダ4は構成されている。そして、上
記パルスの1周期Tは符号板12のスリット間隔(例え
ば1/180インチ)に対応し、キャリッジ3が上記ス
リット間隔を移動する時間に等しい。
As shown in FIGS. 15A and 15B, the CR
In both cases of forward rotation and reverse rotation of the motor, the pulse EN
The phase of CA differs from that of pulse ENC-B by 90 degrees. When the CR motor 4 is rotating forward, that is, when the carriage 3 is moving in the main scanning direction, FIG.
As shown in (a), the pulse ENC-A is the pulse ENC
When the CR motor 4 is rotating in the reverse direction by 90 degrees with respect to −B, as shown in FIG.
The encoder 4 is configured so that the phase of NC-A is delayed by 90 degrees from the pulse ENC-B. One cycle T of the pulse corresponds to a slit interval (for example, 1/180 inch) of the code plate 12, and is equal to a time during which the carriage 3 moves in the slit interval.

【0036】一方、PFモータ1用のロータリ式エンコ
ーダ13は符号板がPFモータ1の回転に応じて回転す
る回転円板である以外は、リニア式エンコーダ11と同
様の構成となっており、2つの出力パルスENC−A,
ENC−Bを出力する。インクジェットプリンタにおい
ては、PFモータ1用のロータリ式エンコーダ13の符
号板に設けられている複数のスリットのスリット間隔は
1/180インチであり、PFモータ1が上記1スリッ
ト間隔だけ回転すると、1/1440インチだけ紙送り
されるような構成となっている。
On the other hand, the rotary encoder 13 for the PF motor 1 has the same configuration as the linear encoder 11 except that the code plate is a rotating disk that rotates in accordance with the rotation of the PF motor 1. Output pulses ENC-A,
Outputs ENC-B. In the ink jet printer, the slit interval of the plurality of slits provided on the code plate of the rotary encoder 13 for the PF motor 1 is 1/180 inch. The paper is fed by 1440 inches.

【0037】図16は、給紙及び紙検出に関連する部分
を示した透視図である。図16を参照して、図12に示
した紙検出センサ15の位置について説明する。図16
において、プリンタ60の給紙挿入口61に挿入された
印刷紙50は、給紙モータ63により駆動される給紙ロ
ーラ64によってプリンタ60内に送り込まれる。プリ
ンタ60内に送り込まれた印刷紙50の先端が例えば光
学式の紙検出センサ15により検出される。紙検出セン
サ15によって先端が検出された紙50は、PFモータ
1により駆動される紙送りローラ65及び従動ローラ6
6によって紙送りが行われる。
FIG. 16 is a perspective view showing a portion related to sheet feeding and sheet detection. The position of the paper detection sensor 15 shown in FIG. 12 will be described with reference to FIG. FIG.
The printing paper 50 inserted into the paper feeding slot 61 of the printer 60 is fed into the printer 60 by a paper feeding roller 64 driven by a paper feeding motor 63. The leading end of the printing paper 50 sent into the printer 60 is detected by, for example, the optical paper detection sensor 15. The paper 50 whose leading end is detected by the paper detection sensor 15 is supplied to the paper feed roller 65 and the driven roller 6 driven by the PF motor 1.
6, the paper is fed.

【0038】続いてキャリッジガイド部材32に沿って
移動するキャリッジ3に固定された記録ヘッド(図示せ
ず)からインクが滴下されることにより印字が行われ
る。所定の位置まで紙送りが行われると、現在、印字さ
れている印刷紙50の終端が紙検出センサ15によって
検出される。印字が終了した印刷紙50は、PFモータ
1により駆動される歯車67A,67Bを介して歯車6
7Cにより駆動される排紙ローラ68及び従動ローラ6
9によって排紙口62から外部に排出される。尚、紙送
りローラ65の回転軸には、ロータリ式エンコーダ13
が連結されている。
Subsequently, printing is performed by dropping ink from a recording head (not shown) fixed to the carriage 3 that moves along the carriage guide member 32. When the paper has been fed to a predetermined position, the end of the currently printed printing paper 50 is detected by the paper detection sensor 15. The printing paper 50 on which printing has been completed is transmitted to the gear 6 via gears 67A and 67B driven by the PF motor 1.
7C and the driven roller 6
9, the paper is discharged from the paper discharge port 62 to the outside. The rotary shaft of the paper feed roller 65 includes a rotary encoder 13.
Are connected.

【0039】次に、上述したインクジェットプリンタの
CRモータ4を制御する従来のDCモータ制御装置であ
るDCユニット6の構成、及び、DCユニット6による
制御方法について説明する。
Next, the configuration of a DC unit 6 which is a conventional DC motor control device for controlling the CR motor 4 of the above-described ink jet printer and a control method by the DC unit 6 will be described.

【0040】図17は、従来のDCモータ制御装置であ
るDCユニット6の構成を示したブロック図であり、図
18は、DCユニット6により制御されるCRモータ4
のモータ電流及びモータ速度を示したグラフである。
FIG. 17 is a block diagram showing a configuration of a DC unit 6 which is a conventional DC motor control device. FIG. 18 is a block diagram showing a CR motor 4 controlled by the DC unit 6.
5 is a graph showing motor current and motor speed of FIG.

【0041】図17に示したDCユニット6は、位置演
算部6aと、減算器6bと、目標速度演算部6cと、速
度演算部6dと、減算器6eと、比例要素6fと、積分
要素6gと、微分要素6hと、加算器6iと、D/Aコ
ンバータ6jと、タイマ6kと、加速制御部6mとから
構成されている。
The DC unit 6 shown in FIG. 17 includes a position calculator 6a, a subtractor 6b, a target speed calculator 6c, a speed calculator 6d, a subtractor 6e, a proportional element 6f, and an integral element 6g. , A differential element 6h, an adder 6i, a D / A converter 6j, a timer 6k, and an acceleration control unit 6m.

【0042】位置演算部6aは、エンコーダ11の出力
パルスENC−A,ENC−Bの各々の立ち上がりエッ
ジ、立ち下がりエッジを検出し、検出されたエッジの個
数を計数し、この計数値に基づいて、キャリッジ3の位
置を演算する。この計数はCRモータ4が正転している
ときは1個のエッジが検出されると「+1」を加算し、
逆転しているときは、1個のエッジが検出されると「−
1」を加算する。パルスENC−A及びENC−Bの各
々の周期は符号板12のスリット間隔に等しく、かつ、
パルスENC−AとパルスENC−Bとは位相が90度
だけ異なっている。このため、上記計数のカウント値
「1」は符号板12のスリット間隔の1/4に対応す
る。これにより上記計数値にスリット間隔の1/4を乗
算すれば、計数値が「0」に対応するキャリッジ3の位
置からの移動量を求めることができる。このときエンコ
ーダ11の解像度は符号板12のスリットの間隔の1/
4となる。上記スリットの間隔を1/180インチとす
れば解像度は1/720インチとなる。
The position calculating section 6a detects the rising edge and the falling edge of each of the output pulses ENC-A and ENC-B of the encoder 11, counts the number of detected edges, and based on the counted value. , The position of the carriage 3 is calculated. This count adds “+1” when one edge is detected when the CR motor 4 is rotating forward,
In the case of reverse rotation, if one edge is detected, “−”
1 "is added. Each period of the pulses ENC-A and ENC-B is equal to the slit interval of the code plate 12, and
The phases of the pulse ENC-A and the pulse ENC-B differ by 90 degrees. Therefore, the count value “1” of the above-mentioned count corresponds to 1 / of the slit interval of the code plate 12. By multiplying the count value by 1/4 of the slit interval, the amount of movement from the position of the carriage 3 corresponding to the count value of "0" can be obtained. At this time, the resolution of the encoder 11 is 1/1 of the interval of the slits
It becomes 4. If the interval between the slits is 1/180 inch, the resolution is 1/720 inch.

【0043】減算器6bは、CPU16から送られてく
る目標位置と、位置演算部6aによって求められたキャ
リッジ3の実際の位置との位置偏差を演算する。
The subtractor 6b calculates a positional deviation between the target position sent from the CPU 16 and the actual position of the carriage 3 calculated by the position calculating section 6a.

【0044】目標速度演算部6cは、減算器6bの出力
である位置偏差に基づいてキャリッジ3の目標速度を演
算する。この演算は位置偏差にゲインKPを乗算するこ
とにより行われる。このゲインKPは位置偏差に応じて
決定される。尚、このゲインKP の値は図示しないテー
ブルに格納されていてもよい。
The target speed calculator 6c calculates the target speed of the carriage 3 based on the position deviation output from the subtractor 6b. This calculation is performed by multiplying the position deviation by the gain KP. This gain KP is determined according to the position deviation. Incidentally, the value of the gain KP may be stored in a table (not shown).

【0045】速度演算部6dは、エンコーダ11の出力
パルスENC−A,ENC−Bに基づいてキャリッジ3
の速度を演算する。この速度は次のようにして求められ
る。まず、エンコーダ11の出力パルスENC−A,E
NC−Bの各々の立ち上がりエッジ、立ち下がりエッジ
を検出し、符号板12のスリット間隔の1/4に対応す
るエッジ間の時間間隔を、タイマカウンタによってカウ
ントする。このカウント値をTとし、符号板12のスリ
ット間隔をλとすればキャリッジの速度はλ/(4T)
として求められる。尚、ここでは、速度の演算は、出力
パルスENC−Aの1周期、例えば立ち上がりエッジか
ら次の立ち上がりエッジまでをタイマカウンタによって
計測することにより求めている。
The speed calculating section 6d determines the carriage 3 based on the output pulses ENC-A and ENC-B of the encoder 11.
Calculate the speed of This speed is determined as follows. First, output pulses ENC-A, E of encoder 11
Each rising edge and falling edge of NC-B is detected, and the time interval between edges corresponding to 1 / of the slit interval of the code plate 12 is counted by a timer counter. If the count value is T and the slit interval of the code plate 12 is λ, the carriage speed is λ / (4T)
Is required. Here, the calculation of the speed is obtained by measuring one cycle of the output pulse ENC-A, for example, from the rising edge to the next rising edge using a timer counter.

【0046】減算器6eは、目標速度と、速度演算部6
dによって演算されたキャリッジ3の実際の速度との速
度偏差を演算する。
The subtractor 6e is provided with a target speed and a speed calculator 6
The speed deviation from the actual speed of the carriage 3 calculated by d is calculated.

【0047】比例要素6fは、上記速度偏差に定数Gp
を乗算し、乗算結果を出力する。積分要素6gは、速度
偏差に定数Giを乗じたものを積算する。微分要素6h
は、現在の速度偏差と、1つ前の速度偏差との差に定数
Gdを乗算し、乗算結果を出力する。比例要素6f、積
分要素6g及び微分要素6hの演算は、エンコーダ11
の出力パルスENC−Aの1周期ごとに、例えば出力パ
ルスENC−Aの立ち上がりエッジに同期して行う。
The proportional element 6f is obtained by adding a constant Gp to the speed deviation.
And outputs the result of the multiplication. The integral element 6g integrates a value obtained by multiplying the speed deviation by a constant Gi. Differential element 6h
Multiplies the difference between the current speed deviation and the immediately preceding speed deviation by a constant Gd, and outputs the multiplication result. The calculation of the proportional element 6f, the integral element 6g, and the differential element 6h is performed by the encoder 11
, For example, in synchronization with the rising edge of the output pulse ENC-A for each cycle of the output pulse ENC-A.

【0048】比例要素6f、積分要素6g及び微分要素
6hの出力は、加算器6iにおいて加算される。そして
加算結果、即ちCRモータ4の駆動電流が、D/Aコン
バータ6jに送られてアナログ電流に変換される。この
アナログ電圧に基づいて、ドライバ5によりCRモータ
4が駆動される。
The outputs of the proportional element 6f, the integral element 6g and the differential element 6h are added in an adder 6i. Then, the addition result, that is, the drive current of the CR motor 4 is sent to the D / A converter 6j and converted into an analog current. The CR motor 4 is driven by the driver 5 based on the analog voltage.

【0049】また、タイマ6k及び加速制御部6mは、
加速制御に用いられ、比例要素6f、積分要素6g及び
微分要素6hを使用するPID制御は、加速途中の定速
及び減速制御に用いられる。
The timer 6k and the acceleration control unit 6m
PID control that is used for acceleration control and that uses the proportional element 6f, the integral element 6g, and the differential element 6h is used for constant speed and deceleration control during acceleration.

【0050】タイマ6kは、CPU16から送られてく
るクロック信号に基づいて所定時間ごとにタイマ割込み
信号を発生する。
The timer 6k generates a timer interrupt signal at predetermined time intervals based on a clock signal sent from the CPU 16.

【0051】加速制御部6mは、上記タイマ割込信号を
受ける度ごとに所定の電流値(例えば20mA)を目標
電流値に積算し、積算結果、即ち加速時におけるDCモ
ータ4の目標電流値が、D/Aコンバータ6jに送られ
る。PID制御の場合と同様に、上記目標電流値はD/
Aコンバータ6jによってアナログ電流に変換され、こ
のアナログ電流に基づいて、ドライバ5によりCRモー
タ4が駆動される。
The acceleration control unit 6m integrates a predetermined current value (for example, 20 mA) with the target current value every time the timer interrupt signal is received, and calculates the integration result, that is, the target current value of the DC motor 4 during acceleration. , D / A converter 6j. As in the case of the PID control, the target current value is D /
The current is converted into an analog current by the A converter 6j, and the CR motor 4 is driven by the driver 5 based on the analog current.

【0052】ドライバ5は、例えば4個のトランジスタ
を備えており、D/Aコンバータ6jの出力に基づいて
上記トランジスタを各々ON又はOFFさせることによ
り(a)CRモータ4を正転又は逆転させる運転モー
ド、(b)回生ブレーキ運転モード(ショートブレーキ
運転モード、即ち、CRモータの停止を維持するモー
ド)、(c)CRモータを停止させようとするモード、
を行わせることが可能な構成となっている。
The driver 5 includes, for example, four transistors, and turns on or off each of the transistors based on the output of the D / A converter 6j, thereby (a) driving the CR motor 4 to rotate forward or reverse. Mode, (b) regenerative brake operation mode (short brake operation mode, that is, mode in which CR motor is stopped), (c) mode in which CR motor is to be stopped,
Is performed.

【0053】次に、図18(a),(b)を参照してD
Cユニット6の動作、即ち、従来のDCモータ制御方法
について説明する。
Next, referring to FIGS. 18A and 18B, D
The operation of the C unit 6, that is, a conventional DC motor control method will be described.

【0054】CRモータ4が停止しているときに、CP
U16からDCユニット6へ、CRモータ4を起動させ
る起動指令信号が送られると、加速制御部6mから起動
初期電流値I0がD/Aコンバータ6jに送られる。こ
の起動初期電流値I0は、起動指令信号とともにCPU
16から加速制御部6mに送られてくる。そしてこの電
流値I0は、D/Aコンバータ6jによってアナログ電
圧に変換されてドライバ5に送られ、ドライバ5によっ
てCRモータ4が起動開始する(図18(a),(b)
参照)。起動指令信号を受信した後、所定の時間ごとに
タイマ6kからタイマ割込信号が発生される。加速制御
部6mは、タイマ割込信号を受信する度ごとに、起動初
期電流値I0に所定の電流値(例えば20mA)を積算
し、積算した電流値をD/Aコンバータ6jに送る。す
ると、この積算した電流値は、D/Aコンバータ6jに
よってアナログ電流に変換されてドライバ5に送られ
る。そして、CRモータ4に供給される電流の値が上記
積算した電流値となるように、ドライバ5によってCR
モータが駆動されCRモータ4の速度は上昇する(図1
8(b)参照)。このためCRモータ4に供給される電
流値は、図18(a)に示すように階段状になる。尚、
このときPID制御系も動作しているが、D/Aコンバ
ータ6jは加速制御部6mの出力を選択して取込む。
When the CR motor 4 is stopped, the CP
When a start command signal for starting the CR motor 4 is sent from the U16 to the DC unit 6, an initial start current value I0 is sent from the acceleration control unit 6m to the D / A converter 6j. The starting initial current value I0 is determined by the CPU together with the starting command signal.
16 to the acceleration control unit 6m. The current value I0 is converted into an analog voltage by the D / A converter 6j and sent to the driver 5, and the driver 5 starts the start of the CR motor 4 (FIGS. 18A and 18B).
reference). After receiving the start command signal, the timer 6k generates a timer interrupt signal at predetermined time intervals. Each time the acceleration control unit 6m receives the timer interrupt signal, the acceleration control unit 6m integrates a predetermined current value (for example, 20 mA) with the starting initial current value I0, and sends the integrated current value to the D / A converter 6j. Then, the integrated current value is converted into an analog current by the D / A converter 6j and sent to the driver 5. Then, the driver 5 controls the CR motor 4 so that the value of the current supplied to the CR motor 4 becomes the integrated current value.
The motor is driven to increase the speed of the CR motor 4 (FIG. 1).
8 (b)). Therefore, the current value supplied to the CR motor 4 has a step shape as shown in FIG. still,
At this time, the PID control system is also operating, but the D / A converter 6j selects and takes in the output of the acceleration control unit 6m.

【0055】加速制御部6mの電流値の積算処理は、積
算した電流値が一定の電流値ISとなるまで行われる。
時刻t1において積算した電流値が所定値IS となる
と、加速制御部6mは積算処理を停止し、D/Aコンバ
ータ6jに一定の電流値ISを供給する。これによりC
Rモータ4に供給される電流の値が電流値ISとなるよ
うにドライバ5によって駆動される(図18(a)参
照)。
The accumulating process of the current value by the acceleration control unit 6m is performed until the integrated current value becomes a constant current value IS.
When the current value integrated at time t1 reaches the predetermined value IS, the acceleration control unit 6m stops the integration process and supplies a constant current value IS to the D / A converter 6j. This gives C
The motor 5 is driven by the driver 5 so that the value of the current supplied to the R motor 4 becomes the current value IS (see FIG. 18A).

【0056】そして、CRモータ4の速度がオーバーシ
ュートするのを防止するために、CRモータ4が所定の
速度V1になると(時刻t2参照)、CRモータ4に供給
される電流を減小させるように加速制御部6mが制御す
る。このときCRモータ4の速度は更に上昇するが、C
Rモータ4の速度が所定の速度Vcに達すると(図18
(b)の時刻t3参照)、D/Aコンバータ6jが、P
ID制御系の出力、即ち加算器6iの出力を選択し、P
ID制御が行われる。
Then, in order to prevent the speed of the CR motor 4 from overshooting, when the CR motor 4 reaches a predetermined speed V1 (see time t2), the current supplied to the CR motor 4 is reduced. Is controlled by the acceleration control unit 6m. At this time, the speed of the CR motor 4 further increases, but C
When the speed of the R motor 4 reaches a predetermined speed Vc (FIG. 18)
(See time t3 in (b)), the D / A converter 6j
The output of the ID control system, that is, the output of the adder 6i is selected.
ID control is performed.

【0057】即ち、目標位置と、エンコーダ11の出力
から得られる実際の位置との位置偏差に基づいて目標速
度が演算され、この目標速度と、エンコーダ11の出力
から得られる実際の速度との速度偏差に基づいて、比例
要素6f、積分要素6g及び微分要素6hが動作し、各
々比例、積分、及び微分演算が行われ、これらの演算結
果の和に基づいて、CRモータ4の制御が行われる。
尚、上記比例、積分及び微分演算は、例えばエンコーダ
11の出力パルスENC−Aの立ち上がりエッジに同期
して行われる。これによりDCモータ4の速度は所望の
速度Veとなるように制御される。尚、所定の速度Vc
は、所望の速度Veの70〜80%の値であることが好
ましい。
That is, the target speed is calculated based on the positional deviation between the target position and the actual position obtained from the output of the encoder 11, and the speed between the target speed and the actual speed obtained from the output of the encoder 11 is calculated. The proportional element 6f, the integral element 6g, and the differential element 6h operate based on the deviation, and perform proportional, integral, and differential calculations, respectively, and control the CR motor 4 based on the sum of the calculation results. .
The above-described proportional, integral, and differential calculations are performed, for example, in synchronization with the rising edge of the output pulse ENC-A of the encoder 11. Thus, the speed of the DC motor 4 is controlled to a desired speed Ve. Note that a predetermined speed Vc
Is preferably 70 to 80% of the desired speed Ve.

【0058】時刻t4からDCモータ4は、所望の速度
となるからキャリッジ3も所望の一定の速度Veとな
り、印字処理を行うことが可能となる。
From time t4, the DC motor 4 reaches the desired speed, so that the carriage 3 also reaches the desired constant speed Ve, and the printing process can be performed.

【0059】印字処理が終了し、キャリッジ3が目標位
置に近づくと(図18(b)の時刻t5参照)、位置偏
差が小さくなるから目標速度も小さくなり、このため速
度偏差、即ち減算器6eの出力が負になり、DCモータ
4の減速が行われ、時刻t6に停止する。
When the printing process is completed and the carriage 3 approaches the target position (see time t5 in FIG. 18B), the position deviation decreases, and the target speed also decreases. Therefore, the speed deviation, ie, the subtractor 6e Becomes negative, the DC motor 4 is decelerated, and stops at time t6.

【0060】以下、本発明に係るモータ制御装置及びモ
ータ制御方法並びにそのモータ制御方法を実行するコン
ピュータプログラムを記録した記録媒体の実施の一形態
について、図面を参照しながら説明する。
Hereinafter, an embodiment of a motor control device and a motor control method according to the present invention and a recording medium storing a computer program for executing the motor control method will be described with reference to the drawings.

【0061】本発明に係るモータ制御装置及びモータ制
御方法は、モータ温度とその上限値との差が所定値以上
であると推測される間は、一回の駆動動作ごとに必要に
応じて待ち時間を設けるデューティ制御を行わず、モー
タ温度とその上限値との差が所定値未満になったと推測
される時点から、デューティ制御を開始する点に特徴が
あるものである。
In the motor control device and the motor control method according to the present invention, as long as the difference between the motor temperature and the upper limit value is estimated to be equal to or more than the predetermined value, it is necessary to wait for each drive operation as necessary. A feature is that the duty control is started from the time when it is estimated that the difference between the motor temperature and the upper limit value is less than a predetermined value without performing the duty control for providing a time.

【0062】図1は、本発明の第1の実施の形態に係る
モータ制御装置の構成を示したブロック図である。本発
明の第1の実施の形態に係るモータ制御装置は、時刻を
計時して現在時刻を示す計時部であるタイマIC17
と、前回の駆動開始時刻tprevから今回の駆動開始時刻
tnowまでの経過時間Tを算出する経過時間算出部10
1と、上記経過時間Tと所定のリセット基準時間Trese
tとを比較し、上記経過時間Tが上記リセット基準時間
Treset以上の値であるときは、一連の駆動動作におけ
るモータの駆動ステップ数の累積値である累積駆動ステ
ップ数Stotalを0にリセットする累積駆動ステップ数
リセット判断部102と、上記累積駆動ステップ数Sto
talと所定のデューティ制御開始基準ステップ数Srefと
を比較し、上記累積駆動ステップ数Stotalが上記デュ
ーティ制御開始基準ステップ数Sref以上の値であると
きは、一回の駆動動作ごとに必要に応じて待ち時間を設
定するデューティ制御開始を指令するデューティ制御開
始判断部103と、上記デューティ制御開始の指令に応
じて、前回の駆動ステップ数Sprevを上記経過時間Tで
除算して算出される上記経過時間Tにおけるデューティ
比と所定の規定デューティ比Dregとを比較し、上記経
過時間Tにおけるデューティ比が上記規定デューティ比
Dregを超える値であるときは、待ち時間を設定すべき
ことを判断する待ち時間設定判断部104と、待ち時間
を設定すべき判断に応じて、上記前回の駆動ステップ数
Sprevを上記規定デューティ比Dregで除算して算出さ
れる規定経過時間Tregから上記経過時間Tを減算して
待ち時間の設定時間(Treg−T)を算出し、上記今回
の駆動開始時刻tnowから上記設定時間(Treg−T)の
待ち時間の設定を指令する待ち時間算出部105と、今
回の駆動ステップ数Snowを上記累積駆動ステップ数St
otalに加算する累積駆動ステップ数加算部106と、待
ち時間を設定した場合には上記今回の駆動開始時刻tno
wから上記設定時間(Treg−T)の待ち時間経過後の現
在時刻、待ち時間を設定しなかった場合には上記今回の
駆動開始時刻tnowを次回の演算における上記前回の駆
動開始時刻tprevとして設定する駆動開始時刻設定部1
07と、上記前回の駆動開始時刻tprev及び上記累積駆
動ステップ数Stotalをそれぞれ更新保存する不揮発性
記憶部であるEEPROM23とを備えている。
FIG. 1 is a block diagram showing the configuration of the motor control device according to the first embodiment of the present invention. The motor control device according to the first embodiment of the present invention includes a timer IC 17 that is a timer that measures the time and indicates the current time.
And an elapsed time calculation unit 10 for calculating an elapsed time T from the previous drive start time tprev to the current drive start time tnow.
1, the elapsed time T and a predetermined reset reference time Trese
When the elapsed time T is equal to or longer than the reset reference time Treset, the cumulative drive step number Stotal, which is the cumulative value of the motor drive step numbers in a series of drive operations, is reset to 0. The number-of-drive-steps reset determination unit 102 and the number of accumulated drive steps Sto
tal is compared with a predetermined duty control start reference step number Sref. If the cumulative drive step number Stotal is a value equal to or greater than the duty control start reference step number Sref, it is necessary for each drive operation to be performed. A duty control start determining unit 103 for instructing start of duty control for setting a waiting time; and the elapsed time calculated by dividing the previous driving step number Sprev by the elapsed time T in response to the duty control start instruction. The duty ratio at T is compared with a predetermined specified duty ratio Dreg. When the duty ratio at the elapsed time T exceeds the specified duty ratio Dreg, a wait time setting for determining that a wait time should be set is set. According to the determination unit 104 and the determination to set the waiting time, the previous driving step number Sprev is set to the specified duty ratio D The elapsed time T is subtracted from the specified elapsed time Treg calculated by dividing by reg to calculate a set time (Treg-T) of the waiting time, and the set time (Treg-T) is calculated from the current drive start time tnow. ), The waiting time calculation unit 105 for instructing the setting of the waiting time, and the current driving step number Snow is used as the cumulative driving step number St.
When the waiting time is set, the current driving start time tno is set.
If the current time after the waiting time of the set time (Treg-T) has elapsed from w, and the waiting time has not been set, the current drive start time tnow is set as the previous drive start time tprev in the next calculation. Drive start time setting unit 1
07, and an EEPROM 23 which is a nonvolatile storage unit for updating and saving the previous drive start time tprev and the cumulative number of drive steps Stotal, respectively.

【0063】待ち時間算出部105及び累積駆動ステッ
プ数加算部106は、モータを駆動するモータドライバ
に駆動ステップ数を指令する駆動指令ユニット6に接続
されている。そして、待ち時間算出部105から駆動指
令ユニット6には待ち時間設定指令が送られ、駆動指令
ユニット6から累積駆動ステップ数加算部106には今
回の駆動ステップ数Snowが送られる。駆動指令ユニッ
ト6は、例えば図12におけるDCユニット6とするこ
とができる。
The waiting time calculating section 105 and the cumulative driving step number adding section 106 are connected to the drive command unit 6 for commanding the number of driving steps to the motor driver for driving the motor. Then, a waiting time setting command is sent from the waiting time calculating unit 105 to the drive command unit 6, and the current driving step number Snow is sent from the drive command unit 6 to the cumulative driving step number adding unit 106. The drive command unit 6 can be, for example, the DC unit 6 in FIG.

【0064】経過時間算出部101及び駆動開始時刻設
定部107は、それぞれタイマIC17から現在時刻を
取得する。EEPROM23に保存されている前回の駆
動開始時刻tprev、累積駆動ステップ数Stotalは、累
積駆動ステップ数リセット判断部102による判断結
果、駆動開始時刻設定部107による設定に応じて、更
新保存される。EEPROM23,タイマIC17は、
図12におけるEEPROM23,タイマIC17を兼
用するとよいが、別個に専用のものを設けてもよい。
The elapsed time calculation section 101 and the drive start time setting section 107 each obtain the current time from the timer IC 17. The previous drive start time tprev and the cumulative drive step number Stotal stored in the EEPROM 23 are updated and stored according to the result of the determination by the cumulative drive step number reset determination unit 102 and the setting by the drive start time setting unit 107. The EEPROM 23 and the timer IC 17
The EEPROM 23 and the timer IC 17 shown in FIG. 12 may be used in combination, but may be provided separately.

【0065】累積駆動ステップ数リセット判断部102
において参照される所定のリセット基準時間Treset、
デューティ制御開始判断部103において参照される所
定のデューティ制御開始基準ステップ数Sref、待ち時
間設定判断部104において参照される所定の規定デュ
ーティ比Dregは、各部内に設けられた参照テーブルに
保持されているものとしてもよいし、EEPROM2
3,図12におけるASIC20若しくはPROM2
1、又は、専用に設けた記憶手段に保持されているもの
としてもよい。リセット基準時間Treset、デューティ
制御開始基準ステップ数Sref及び規定デューティ比Dr
egの具体的な定義については、後述する。
Cumulative driving step number reset determining section 102
A predetermined reset reference time Treset referred to in
The predetermined duty control start reference step number Sref referred to by the duty control start judgment unit 103 and the predetermined specified duty ratio Dreg referred to by the waiting time setting judgment unit 104 are held in reference tables provided in each unit. Or EEPROM2
3, ASIC 20 or PROM 2 in FIG.
1, or may be held in a dedicated storage means. Reset reference time Treset, duty control start reference step number Sref, and specified duty ratio Dr
The specific definition of eg will be described later.

【0066】経過時間算出部101,累積駆動ステップ
数リセット判断部102,デューティ制御開始判断部1
03,待ち時間設定判断部104,待ち時間算出部10
5,累積駆動ステップ数加算部106及び駆動開始時刻
設定部107は、1個の演算処理部100として構成す
ることができる。この演算処理部100としては、通常
は、図12におけるCPU16を兼用するとよいが、専
用のCPUを別個に設けてもよい。
Elapsed time calculator 101, cumulative drive step number reset determiner 102, duty control start determiner 1
03, the waiting time setting determining unit 104, the waiting time calculating unit 10
5. The cumulative driving step number adding unit 106 and the driving start time setting unit 107 can be configured as one arithmetic processing unit 100. Normally, the arithmetic processing unit 100 also serves as the CPU 16 in FIG. 12, but a dedicated CPU may be provided separately.

【0067】図2は、本発明の第1の実施の形態に係る
モータ制御装置の動作、即ち、本発明の第1の実施の形
態に係るモータ制御方法の手順を示したフローチャート
である。また、図3は、駆動開始時刻、駆動ステップ
数、経過時間、規定経過時間及び待ち時間を図示したグ
ラフ、図4は、規定デューティ比の定義を説明するため
のグラフ、図5は、リセット基準時間の定義を図示した
グラフである。さらに、図6は、デューティ制御開始基
準ステップ数及びデューティ制御開始基準モータ温度、
並びに、本発明に係るモータ制御装置及びモータ制御方
法により制御されたモータ温度H1並びに従来のモータ
制御装置及びモータ制御方法により制御されたモータ温
度H2を図示したグラフである。
FIG. 2 is a flowchart showing the operation of the motor control device according to the first embodiment of the present invention, that is, the procedure of the motor control method according to the first embodiment of the present invention. FIG. 3 is a graph illustrating the drive start time, the number of drive steps, the elapsed time, the specified elapsed time and the waiting time, FIG. 4 is a graph for explaining the definition of the specified duty ratio, and FIG. 5 is a graph illustrating the definition of time. Further, FIG. 6 shows the duty control start reference step number and the duty control start reference motor temperature,
4 is a graph illustrating a motor temperature H1 controlled by a motor control device and a motor control method according to the present invention, and a motor temperature H2 controlled by a conventional motor control device and a motor control method.

【0068】図1乃至図6を参照して、本発明の第1の
実施の形態に係るモータ制御装置の動作、即ち、本発明
の第1の実施の形態に係るモータ制御方法の手順につい
て説明する。
The operation of the motor control device according to the first embodiment of the present invention, that is, the procedure of the motor control method according to the first embodiment of the present invention will be described with reference to FIGS. I do.

【0069】本発明の第1の実施の形態に係るモータ制
御装置及びモータ制御方法は、上述のように、モータ温
度とその上限値との差が所定値以上であると推測される
間は、一回の駆動動作ごとに必要に応じて待ち時間を設
けるデューティ制御を行わず、モータ温度とその上限値
との差が所定値未満になったと推測される時点から、デ
ューティ制御を開始する。
As described above, the motor control device and the motor control method according to the first embodiment of the present invention provide the motor control device and the motor control method for as long as the difference between the motor temperature and the upper limit value is estimated to be equal to or more than the predetermined value. Duty control is not performed to provide a waiting time as needed for each driving operation, and the duty control is started from a point in time when it is estimated that the difference between the motor temperature and its upper limit is smaller than a predetermined value.

【0070】従って、モータ駆動制御開始後は、無条件
に直ちにデューティ制御を開始することはせず、一回の
駆動動作ごとにデューティ制御を開始するか否かの判断
を行い、所定の条件が満たされたときにデューティ制御
を行い、モータ発熱量を抑制する。
Therefore, after starting the motor drive control, the duty control is not immediately started unconditionally, but it is determined whether or not the duty control is started for each drive operation. When it is satisfied, duty control is performed to suppress the motor heat generation.

【0071】前回の駆動動作の終了後、今回の駆動動作
のためのモータ駆動処理指令がなされると(ステップS
1)、経過時間算出部101は、タイマIC17から現
在時刻である今回の駆動開始時刻tnowを取得し(ステ
ップS2)、かつ、EEPROM23から前回の駆動開
始時刻tprevを読み出して、今回の駆動開始時刻tnow
から前回の駆動開始時刻tprevを減算することにより、
前回の駆動開始時刻tprevから今回の駆動開始時刻tno
wまでの経過時間T=tnow−tprevを算出する(ステッ
プS3)。
After the end of the previous driving operation, when a motor driving processing command for the current driving operation is issued (step S
1) The elapsed time calculation unit 101 acquires the current drive start time tnow, which is the current time, from the timer IC 17 (step S2), and reads the previous drive start time tprev from the EEPROM 23, and reads the current drive start time tprev. tonow
By subtracting the previous drive start time tprev from
The current drive start time tno from the previous drive start time tprev
The elapsed time T to w = tnow-tprev is calculated (step S3).

【0072】図3に示すように、前回の駆動開始時刻t
prevから今回の駆動開始時刻tnowまでの経過時間Tの
前半部分において、駆動ステップ数Sprevの前回の駆動
動作が行われ、その後、今回の駆動開始時刻tnowまで
は、モータ駆動が一時的に停止した状態となっており、
今回の駆動開始時刻tnowから駆動ステップ数Snowの今
回の駆動動作が開始される。但し、後述するように、必
要に応じて待ち時間(Treg−T)が設けられるので、
待ち時間(Treg−T)が設けられた場合には、今回の
駆動開始時刻tnowから待ち時間(Treg−T)が経過し
た時点から今回の駆動動作が開始される。
As shown in FIG. 3, the previous driving start time t
In the first half of the elapsed time T from prev to the current drive start time tnow, the previous drive operation of the number of drive steps Sprev was performed, and thereafter, the motor drive was temporarily stopped until the current drive start time tonow. It is in a state,
The current driving operation of the driving step number Snow is started from the current driving start time tnow. However, as will be described later, a waiting time (Treg-T) is provided as necessary.
When the waiting time (Treg-T) is provided, the current driving operation is started when the waiting time (Treg-T) has elapsed from the current driving start time tnow.

【0073】経過時間Tが算出されると、累積駆動ステ
ップ数リセット判断部102は、経過時刻Tと所定のリ
セット基準時間Tresetとを比較し、経過時間Tがリセ
ット基準時間Treset以上の値(T≧Treset)であるか
否かを判断する(ステップS4)。
When the elapsed time T is calculated, the cumulative drive step number reset determination section 102 compares the elapsed time T with a predetermined reset reference time Treset, and determines that the elapsed time T is equal to or longer than the reset reference time Treset (T ≧ Treset) is determined (step S4).

【0074】判断の結果、経過時間Tがリセット基準時
間Treset未満の値であるときは、積算された累積駆動
ステップ数Stotalをそのまま維持するが、経過時間T
がリセット基準時間Treset以上の値であるときは、累
積駆動ステップ数Stotalを0にリセットし、Stotal=
0のデータをEEPROM23に更新保存する(ステッ
プS5)。ここで、累積駆動ステップ数Stotalとは、
一連の駆動動作におけるモータの駆動ステップ数の累積
値をいう。
If it is determined that the elapsed time T is less than the reset reference time Treset, the accumulated accumulated driving step number Stotal is maintained as it is, but the elapsed time T
Is greater than or equal to the reset reference time Treset, the accumulated driving step number Stotal is reset to 0, and Stotal =
The data of 0 is updated and stored in the EEPROM 23 (step S5). Here, the cumulative driving step number Stotal is
It refers to the cumulative value of the number of motor drive steps in a series of drive operations.

【0075】また、所定のリセット基準時間Tresetと
は、図5に示すように、本発明に係るモータ制御装置及
びモータ制御方法によるデューティ制御の基準となるデ
ューティ制御基準モータ温度Hrefになっているモータ
が、基底モータ温度H0まで自然に冷却されるために必
要とされる時間をいう。
The predetermined reset reference time Treset is, as shown in FIG. 5, a motor whose duty control reference motor temperature Href is a reference for duty control by the motor control device and the motor control method according to the present invention. Is the time required to cool naturally to the base motor temperature H0.

【0076】デューティ制御基準モータ温度Hrefは、
モータが正常に動作するモータ温度の上限値Hmaxより
所定値だけ低い値に設定される温度であり、実施に際し
て、実験又はシミュレーション等を行い、その結果に応
じて適当に設定される。具体的には、モータ温度が、そ
のデューティ制御基準モータ温度Hrefに達してからデ
ューティ制御を開始しても、ある程度余裕をもって、上
限値Hmaxに達することなく、そのデューティ制御基準
モータ温度Href近傍にモータ温度を制御できる程度の
温度に設定する。例えば、モータ温度の上限値Hmaxが
150℃であるとし、実験又はシミュレーション等の結
果、上限値Hmaxまで25度程度の余裕があれば、デュ
ーティ制御により、上限値Hmaxに達することなく、モ
ータ温度の制御が可能であることが判明した場合には、
デューティ制御基準モータ温度Hrefは125℃に設定
する。
The duty control reference motor temperature Href is
The temperature is set to a value lower than the upper limit value Hmax of the motor temperature at which the motor normally operates by a predetermined value. At the time of execution, an experiment or a simulation is performed, and the temperature is appropriately set according to the result. More specifically, even if the duty control is started after the motor temperature reaches the duty control reference motor temperature Href, the motor is brought close to the duty control reference motor temperature Href without reaching the upper limit Hmax with some margin. Set the temperature so that the temperature can be controlled. For example, assuming that the upper limit value Hmax of the motor temperature is 150 ° C., as a result of an experiment or a simulation, if there is a margin of about 25 degrees to the upper limit value Hmax, the duty ratio does not reach the upper limit value Hmax. If it turns out that control is possible,
The duty control reference motor temperature Href is set to 125 ° C.

【0077】基底モータ温度H0は、モータ温度制御の
基礎となる温度であって、通常は、室内常温程度の温度
に設定される。但し、基底モータ温度H0は、温度セン
サ等により常時計測してモータ温度制御の基礎とするわ
けではなく、予めデータとして保持しておく数値である
ので、モータが設置される場所の温度が高い場合にも対
応できる程度の温度に設定しておく。例えば、モータの
設置場所が日本国内であるならば、日本の夏の最高気温
に近い温度である35℃程度に設定するとよい。
The base motor temperature H0 is a temperature on which motor temperature control is based, and is usually set to a temperature around room normal temperature. However, the base motor temperature H0 is not always measured by a temperature sensor or the like and is not used as a basis for motor temperature control, but is a numerical value that is stored in advance as data. Temperature is set to a level that can cope with For example, if the motor is installed in Japan, the temperature may be set to about 35 ° C., which is close to the maximum summer temperature in Japan.

【0078】次の動作手順においては、累積駆動ステッ
プ数Stotalが所定のデューティ制御開始基準ステップ
数Srefに達していることを、モータ温度がデューティ
制御基準モータ温度Hrefに達していることとみなし
て、デューティ制御を開始するか否かを判断する。
In the next operation procedure, the fact that the cumulative drive step number Stotal has reached the predetermined duty control start reference step number Sref is regarded as that the motor temperature has reached the duty control reference motor temperature Href, and It is determined whether to start the duty control.

【0079】しかし、モータ温度がデューティ制御基準
モータ温度Hrefに一旦達していたとしても、前回の駆
動開始時刻tprevから今回の駆動開始時刻tnowまでの
経過時間Tがリセット基準時間Treset以上の値になっ
ていれば、モータ温度は基底モータ温度H0近傍まで低
下しているものとみなすことができる。即ち、本発明に
係るモータ制御装置及びモータ制御方法は、モータ温度
がデューティ制御基準モータ温度Hrefに達するまでの
間は、不必要なデューティ制御を回避することにより動
作効率の低下を最小限に抑制しようとするものであるか
ら、自然冷却によりモータ温度が十分に低下していると
判断される場合には、デューティ制御を行わないように
することが適当な措置であるといえる。
However, even if the motor temperature once reaches the duty control reference motor temperature Href, the elapsed time T from the previous drive start time tprev to the current drive start time tnow becomes a value equal to or longer than the reset reference time Treset. If so, it can be considered that the motor temperature has dropped to near the base motor temperature H0. That is, the motor control device and the motor control method according to the present invention minimize unnecessary operation of the duty control until the motor temperature reaches the duty control reference motor temperature Href, thereby minimizing a decrease in operating efficiency. Therefore, when it is determined that the motor temperature is sufficiently lowered by natural cooling, it can be said that it is appropriate to stop the duty control.

【0080】そこで、上述のように、本発明に係るモー
タ制御装置及びモータ制御方法においては、経過時間T
がリセット基準時間Treset以上の値であるときは、累
積駆動ステップ数Stotalを0にリセットしている。
尚、前回の駆動開始時刻tprevから今回の駆動開始時刻
tnowまでの間に、駆動ステップ数Sprevの前回の駆動
動作が行われているが、一回の駆動動作における駆動ス
テップ数は、後述する所定のデューティ制御開始基準ス
テップ数Srefに比較して小さい値であり、その一回の
駆動動作によってモータ温度が大幅に変化することはな
い。また、デューティ制御基準モータ温度Href及び基
底モータ温度H0の値も、モータ温度の上限値Hmaxに対
してある程度の余裕をもって設定されている。そこで、
ここでは、前回の駆動開始時刻tprevから今回の駆動開
始時刻tnowまでの経過時間Tがリセット基準時間Tres
et以上の値になっていれば、モータ温度は基底モータ温
度H0近傍まで低下しているものとみなすこととしてい
る。
Therefore, as described above, in the motor control device and the motor control method according to the present invention, the elapsed time T
Is greater than or equal to the reset reference time Treset, the cumulative driving step number Stotal is reset to zero.
Although the previous drive operation of the number of drive steps Sprev is performed between the previous drive start time tprev and the current drive start time tnow, the number of drive steps in one drive operation is determined by a predetermined value described later. Is smaller than the duty control start reference step number Sref, and the motor temperature does not greatly change by one driving operation. Also, the values of the duty control reference motor temperature Href and the base motor temperature H0 are set with a certain margin with respect to the upper limit value Hmax of the motor temperature. Therefore,
Here, the elapsed time T from the previous drive start time tprev to the current drive start time tnow is the reset reference time Tres
If the value is equal to or more than et, it is determined that the motor temperature has dropped to near the base motor temperature H0.

【0081】上述のように、累積駆動ステップ数Stota
lを0にリセットするか否かを判断した結果、累積駆動
ステップ数Stotalをリセットせずにそのまま維持した
場合、及び、累積駆動ステップ数Stotalを0にリセッ
トした場合のいずれの場合も、デューティ制御開始判断
部103は、その結果としてEEPROM23に保持さ
れている累積駆動ステップ数Stotalの値を用いて、累
積駆動ステップ数Stotalと所定のデューティ制御開始
基準ステップ数Srefとを比較し、累積駆動ステップ数
Stotalがデューティ制御開始基準ステップ数Sref以上
の値(Stotal≧Sref)であるか否かを判断する(ステ
ップS6)。
As described above, the cumulative driving step number Stota
As a result of determining whether or not to reset l to 0, the duty control is performed in both cases where the cumulative driving step number Stotal is maintained without being reset and when the cumulative driving step number Stotal is reset to 0. The start determining unit 103 compares the cumulative drive step number Stotal with a predetermined duty control start reference step number Sref using the value of the cumulative drive step number Stotal held in the EEPROM 23 as a result. It is determined whether Stotal is equal to or greater than the duty control start reference step number Sref (Stotal ≧ Sref) (step S6).

【0082】デューティ制御開始基準ステップ数Sref
は、モータの発熱量が最も大きくなる駆動モードにより
モータの駆動制御を行ったときに、モータ温度がデュー
ティ制御基準モータ温度Hrefに達する駆動ステップ数
の最小値である。1ステップが1/720インチである
場合、デューティ制御開始基準ステップ数Srefは、例
えば190000ステップというように設定される。ス
テップ数は、モータの駆動量を示しているが、1ステッ
プは、エンコーダのスリット板(符号板)の2スリット
に相当する。
Duty control start reference step number Sref
Is the minimum value of the number of drive steps at which the motor temperature reaches the duty control reference motor temperature Href when the drive control of the motor is performed in the drive mode in which the heat generation amount of the motor is largest. If one step is 1/720 inch, the duty control start reference step number Sref is set to, for example, 190000 steps. The number of steps indicates the driving amount of the motor, but one step corresponds to two slits of the slit plate (code plate) of the encoder.

【0083】図6のグラフにデューティ制御開始基準ス
テップ数Srefの設定の一例が示されているが、通常の
モータ駆動においては、モータの発熱量が最も大きくな
る駆動モードのみが連続して選択されるとは限らないの
で、累積駆動ステップ数Stotalがデューティ制御開始
基準ステップ数Srefに達したときにモータ温度がデュ
ーティ制御基準モータ温度Hrefに達しているとは限ら
ない。しかし、ここでは、必要以上に複雑な制御を回避
するために、累積駆動ステップ数Stotalがデューティ
制御開始基準ステップ数Sref以上の値に達したとき
は、モータ温度がデューティ制御基準モータ温度Href
に達したものとみなして、デューティ制御を開始するか
否かの判断を行う。
FIG. 6 shows an example of setting the duty control start reference step number Sref. However, in a normal motor drive, only the drive mode in which the amount of heat generated by the motor is the largest is continuously selected. Therefore, the motor temperature does not always reach the duty control reference motor temperature Href when the cumulative drive step number Stotal reaches the duty control start reference step number Sref. However, here, in order to avoid unnecessarily complicated control, when the cumulative driving step number Stotal reaches a value equal to or greater than the duty control start reference step number Sref, the motor temperature is reduced to the duty control reference motor temperature Href.
And it is determined whether or not to start the duty control.

【0084】判断の結果、累積駆動ステップ数Stotal
がデューティ制御開始基準ステップ数Sref未満の値で
あるときは、デューティ制御開始判断部103は、デュ
ーティ制御を開始せず、それまでの非デューティ制御の
駆動制御を継続することを指令する。その指令に応じ
て、駆動開始時刻設定部107は、上記今回の駆動開始
時刻tnowを次回の演算における前回の駆動開始時刻tp
revとして設定してEEPROM23に更新保存させ、
累積駆動ステップ数加算部106は、今回の駆動ステッ
プ数Snowを累積駆動ステップ数Stotalに加算してEE
PROM23に更新保存させるとともに、駆動ステップ
数Snowの今回の駆動動作を行うモータ駆動処理を実行
することを駆動指令ユニット6に許可する(ステップS
9)。その許可に従い、駆動指令ユニット6は、駆動ス
テップ数Snowの今回の駆動動作を行うモータ駆動処理
の実行を指令する。
As a result of the judgment, the cumulative driving step number Stotal
Is smaller than the duty control start reference step number Sref, the duty control start determination unit 103 instructs not to start the duty control but to continue the non-duty control drive control up to that time. In response to the command, the drive start time setting unit 107 sets the current drive start time tnow to the previous drive start time tp in the next calculation.
set as rev, update and save in EEPROM 23,
The cumulative driving step number adding unit 106 adds the current driving step number Snow to the cumulative driving step number Stotal to perform EE.
The drive command unit 6 is allowed to update and save the data in the PROM 23 and to execute the motor drive process for performing the current drive operation of the number of drive steps Snow (step S
9). In accordance with the permission, the drive command unit 6 commands the execution of the motor drive process for performing the current drive operation of the number of drive steps Snow.

【0085】一方、判断の結果、累積駆動ステップ数S
totalがデューティ制御開始基準ステップ数Sref以上の
値であるときは、モータ温度の上昇を抑制するため、デ
ューティ制御開始判断部103は、デューティ制御開始
を指令する。
On the other hand, as a result of the judgment, the cumulative driving step number S
When total is equal to or greater than the duty control start reference step number Sref, the duty control start determination unit 103 issues a duty control start command to suppress an increase in motor temperature.

【0086】デューティ制御開始の指令に応じて、待ち
時間設定判断部104は、駆動ステップ数Snowの今回
の駆動動作開始前に待ち時間を設定するか否かの判断を
行う(ステップS7)。即ち、前回の駆動ステップ数S
prevを上記経過時間Tで除算して上記経過時間Tにおけ
るデューティ比D=Sprev/Tを算出して、そのデュー
ティ比Dと所定の規定デューティ比Dregとを比較し、
上記経過時間Tにおけるデューティ比Dが規定デューテ
ィ比Dreg以下の値(D≦Dreg)であるか否かを判断す
る。
In response to the instruction to start the duty control, the waiting time setting judging section 104 judges whether or not to set the waiting time before starting the current driving operation of the number of driving steps Snow (step S7). That is, the previous driving step number S
prev is divided by the elapsed time T to calculate a duty ratio D = Sprev / T at the elapsed time T, and the duty ratio D is compared with a predetermined specified duty ratio Dreg.
It is determined whether or not the duty ratio D at the elapsed time T is equal to or less than the specified duty ratio Dreg (D ≦ Dreg).

【0087】ここで、規定デューティ比Dregとは、そ
のデューティ比においてモータを駆動制御することによ
り、モータ温度が少なくとも上昇することなくそのまま
維持され又は徐々に下降することとなる値のデューティ
比をいう。具体的には、実験又はシミュレーション等に
より、図4に示すように、単位時間T0に含まれる駆動
ステップ数として適当な単位駆動ステップ数S0を設定
することにより、そのデューティ比S0/T0を規定デュ
ーティ比Dregとして予め定義しておく。
Here, the specified duty ratio Dreg refers to a duty ratio of a value at which the motor temperature is maintained at least without increasing or gradually decreases by controlling the driving of the motor at the duty ratio. . Specifically, as shown in FIG. 4, by setting an appropriate number of unit drive steps S0 as the number of drive steps included in the unit time T0 by experiments or simulations, the duty ratio S0 / T0 is set to the specified duty. The ratio is defined in advance as Dreg.

【0088】判断の結果、上記経過時間Tにおけるデュ
ーティ比Dが規定デューティ比Dreg以下の値であると
きは、待ち時間設定判断部104は、駆動ステップ数S
nowの今回の駆動動作開始前に待ち時間を設定すること
なく、今回の駆動動作を実行することを指令する。その
指令に応じて、駆動開始時刻設定部107は、上記今回
の駆動開始時刻tnowを次回の演算における前回の駆動
開始時刻tprevとして設定してEEPROM23に更新
保存させ、累積駆動ステップ数加算部106は、今回の
駆動ステップ数Snowを累積駆動ステップ数Stotalに加
算してEEPROM23に更新保存させるとともに、駆
動ステップ数Snowの今回の駆動動作を行うモータ駆動
処理を実行することを駆動指令ユニット6に許可する
(ステップS9)。その許可に従い、駆動指令ユニット
6は、駆動ステップ数Snowの今回の駆動動作を行うモ
ータ駆動処理の実行を指令する。
As a result of the determination, when the duty ratio D during the elapsed time T is equal to or smaller than the specified duty ratio Dreg, the waiting time setting determining unit 104 determines the number of driving steps S
An instruction is given to execute the current driving operation without setting a waiting time before the start of the current driving operation of now. In response to the command, the drive start time setting unit 107 sets the current drive start time tnow as the previous drive start time tprev in the next calculation and updates and saves it in the EEPROM 23. Then, the current drive step number Snow is added to the cumulative drive step number Stotal, updated and stored in the EEPROM 23, and the drive command unit 6 is permitted to execute a motor drive process for performing the current drive operation of the drive step number Snow. (Step S9). In accordance with the permission, the drive command unit 6 commands the execution of the motor drive process for performing the current drive operation of the number of drive steps Snow.

【0089】一方、判断の結果、上記経過時間Tにおけ
るデューティ比Dが規定デューティ比Dregを超える値
であるときは、待ち時間設定判断部104は、駆動ステ
ップ数Snowの今回の駆動動作開始前に待ち時間を設定
することを指令する。
On the other hand, if the result of the determination indicates that the duty ratio D at the elapsed time T is a value exceeding the specified duty ratio Dreg, the waiting time setting determining unit 104 sets the drive step number Snow before starting the current drive operation. Command to set wait time.

【0090】待ち時間設定判断部104による待ち時間
設定指令に応じて、待ち時間算出部105は、駆動ステ
ップ数Snowの今回の駆動動作開始前に設定する待ち時
間を算出し、駆動ステップ数Snowの今回の駆動動作開
始前に、算出した値だけの待ち時間を設定する。即ち、
デューティ制御を行っていないとした場合における本来
の今回の駆動開始時刻tnowから、算出した値だけの待
ち時間を設定する(ステップS8)。このとき、駆動指
令ユニット6に対しては、今回の駆動動作を行うモータ
駆動処理の実行が許可されないので、駆動指令ユニット
6は、設定された待ち時間が経過するまで、今回の駆動
動作を行うモータ駆動処理の実行の指令を行わない。
In response to the waiting time setting command from the waiting time setting determining unit 104, the waiting time calculating unit 105 calculates the waiting time to be set before the start of the current driving operation of the number of driving steps Snow, and calculates the number of driving steps Snow. Before the start of this driving operation, a waiting time of only the calculated value is set. That is,
From the original current drive start time tnow when duty control is not performed, a wait time of only the calculated value is set (step S8). At this time, the drive command unit 6 is not permitted to perform the motor drive process for performing the current drive operation, so that the drive command unit 6 performs the current drive operation until the set waiting time elapses. Does not issue a command to execute the motor drive process.

【0091】ここで、待ち時間算出の計算過程につい
て、具体的に説明する。先ず、駆動ステップ数Sprevの
前回の駆動動作を規定デューティ比Dregにおいて実行
したとするならば、前回の駆動開始時刻tprevから今回
の駆動開始時刻tnowまでに要するべき規定経過時間Tr
egを算出する。この規定経過時間Tregは、前回の駆動
ステップ数Sprevを規定デューティ比Dregで除算する
ことにより、規定経過時間Treg=Sprev/Dregとして
算出される。そして、この規定経過時間Tregから上記
経過時間Tを減算することにより、待ち時間(Treg−
T)を算出する。上記経過時間Tにおけるデューティ比
D=Sprev/Tが規定デューティ比Dregを超える値で
あるときは、常にTreg>Tの関係が成立するので、待
ち時間(Treg−T)の値は常に正の値となる。
Here, the calculation process of the waiting time calculation will be specifically described. First, assuming that the previous drive operation of the number of drive steps Sprev is executed at the specified duty ratio Dreg, the specified elapsed time Tr required from the previous drive start time tprev to the current drive start time tnow
Calculate eg. The specified elapsed time Treg is calculated as the specified elapsed time Treg = Sprev / Dreg by dividing the previous driving step number Sprev by the specified duty ratio Dreg. By subtracting the elapsed time T from the specified elapsed time Treg, the waiting time (Treg-
T) is calculated. When the duty ratio D = Sprev / T at the elapsed time T is a value exceeding the specified duty ratio Dreg, the relationship of Treg> T always holds, so that the value of the waiting time (Treg-T) is always a positive value. It becomes.

【0092】設定した待ち時間の経過後、駆動開始時刻
設定部107は、その待ち時間経過後における現在時刻
をタイマIC17から取得し、次回の演算における前回
の駆動開始時刻tprevとして設定してEEPROM23
に更新保存させ、累積駆動ステップ数加算部106は、
今回の駆動ステップ数Snowを累積駆動ステップ数Stot
alに加算してEEPROM23に更新保存させるととも
に、駆動ステップ数Snowの今回の駆動動作を行うモー
タ駆動処理を実行することを駆動指令ユニット6に許可
する(ステップS9)。その許可に従い、駆動指令ユニ
ット6は、駆動ステップ数Snowの今回の駆動動作を行
うモータ駆動処理の実行を指令する。
After the elapse of the set waiting time, the drive start time setting unit 107 obtains the current time after the elapse of the wait time from the timer IC 17 and sets the current time as the previous drive start time tprev in the next calculation and sets it in the EEPROM 23.
And the cumulative driving step number adding unit 106
The number of current driving steps Snow is replaced by the cumulative number of driving steps Stot
The drive command unit 6 is allowed to execute the motor drive process for performing the current drive operation of the number of drive steps Snow while adding the value to al and storing the updated data in the EEPROM 23 (step S9). In accordance with the permission, the drive command unit 6 commands the execution of the motor drive process for performing the current drive operation of the number of drive steps Snow.

【0093】以上で、一回の駆動動作における本発明の
第1の実施の形態に係るモータ制御装置の動作、即ち、
本発明の第1の実施の形態に係るモータ制御方法の手順
は終了し、次回の駆動動作の際には、上述の動作又は手
順が再び最初のステップから繰り返される。
The operation of the motor control device according to the first embodiment of the present invention in one driving operation, that is,
The procedure of the motor control method according to the first embodiment of the present invention ends, and at the time of the next driving operation, the above operation or procedure is repeated again from the first step.

【0094】従来のモータ制御装置及びモータ制御方法
においては、一連の駆動動作開始直後からデューティ制
御を行うため、図6に示すように、従来のモータ制御装
置及びモータ制御方法におけるモータ温度H2は比較的
低い水準に抑制される。しかし、モータ温度の上限値H
maxに達しない範囲内であれば、モータの駆動動作に支
障はなく、必要以上にモータ温度Hを低い水準に抑制し
たとしても、特段の利点があるわけではない。逆に、一
連の駆動動作開始直後からデューティ制御を行うことに
よって、不必要な待ち時間が繰り返し設定されるため、
モータの動作効率の低下を招くという欠点がある。
In the conventional motor control device and the conventional motor control method, duty control is performed immediately after the start of a series of driving operations. Therefore, as shown in FIG. 6, the motor temperature H2 in the conventional motor control device and the conventional motor control method is compared. It is suppressed to a very low level. However, the upper limit H of the motor temperature
As long as the temperature does not reach max, there is no problem in the driving operation of the motor, and there is no particular advantage even if the motor temperature H is suppressed to an unnecessarily low level. Conversely, by performing duty control immediately after the start of a series of driving operations, unnecessary wait times are repeatedly set,
There is a disadvantage that the operating efficiency of the motor is reduced.

【0095】これに対し、本発明の第1の実施の形態に
係るモータ制御装置及びモータ制御方法においては、上
記説明のように、一連の駆動動作開始時からの累積駆動
ステップ数がデューティ制御開始基準ステップ数Sref
に達するまでの間は、一回の駆動動作ごとに必要に応じ
て待ち時間を設定するデューティ制御を行わず、累積駆
動ステップ数がデューティ制御開始基準ステップ数Sre
fに達し、モータ温度Hが上記所定のデューティ制御基
準モータ温度Href近傍まで上昇してから、デューティ
制御を開始する。従って、本発明の第1の実施の形態に
係るモータ制御装置及びモータ制御方法におけるモータ
温度H1は、図6に示すように、デューティ制御基準モ
ータ温度Href近傍を上下しながら制御されるが、モー
タ温度Hの上限値Hmaxまでは十分に余裕があるので、
モータの動作には何ら障害は発生しない。そして、不必
要なデューティ制御を回避することにより不必要な待ち
時間が排除されるので、モータの動作効率の低下を最小
限に抑制することができる。
On the other hand, in the motor control device and the motor control method according to the first embodiment of the present invention, as described above, the cumulative number of drive steps from the start of a series of drive operations is determined by the duty control start. Reference step number Sref
Until the duty reaches, the duty control for setting the waiting time as necessary for each driving operation is not performed, and the cumulative number of drive steps is reduced to the duty control start reference step number Sre.
After the motor temperature reaches f and the motor temperature H rises to near the predetermined duty control reference motor temperature Href, the duty control is started. Accordingly, as shown in FIG. 6, the motor temperature H1 in the motor control device and the motor control method according to the first embodiment of the present invention is controlled while increasing and decreasing near the duty control reference motor temperature Href. Since there is enough room up to the upper limit Hmax of the temperature H,
No impairment occurs in the operation of the motor. Since unnecessary waiting time is eliminated by avoiding unnecessary duty control, a decrease in operating efficiency of the motor can be suppressed to a minimum.

【0096】次に、本発明の第2の実施の形態に係るモ
ータ制御装置及びモータ制御方法について説明する。
Next, a motor control device and a motor control method according to a second embodiment of the present invention will be described.

【0097】図7は、本発明の第2の実施の形態に係る
モータ制御装置の構成を示したブロック図である。本発
明の第2の実施の形態に係るモータ制御装置は、時刻を
計時して現在時刻を示す計時部であるタイマIC17
と、前回の駆動開始時刻tprevから今回の駆動開始時刻
tnowまでの経過時間Tを算出する経過時間算出部10
1と、上記経過時間Tと所定のリセット基準時間Trese
tとを比較し、上記経過時間Tが上記リセット基準時間
Treset以上の値であるときは、一連の駆動動作におけ
るモータの駆動ステップ数の累積値である累積駆動ステ
ップ数Stotalを0にリセットする累積駆動ステップ数
リセット判断部102と、上記累積駆動ステップ数Sto
talと所定のデューティ制御開始基準ステップ数Srefと
を比較し、上記累積駆動ステップ数Stotalが上記デュ
ーティ制御開始基準ステップ数Sref以上の値であると
きは、一回の駆動動作ごとに必要に応じて待ち時間を設
定するデューティ制御開始を指令するデューティ制御開
始判断部103と、上記デューティ制御開始の指令に応
じて、前回の駆動ステップ数Sprevを所定の規定デュー
ティ比Dregで除算して算出される規定経過時間Tregか
ら上記経過時間Tを減算して待ち時間の設定時間(Tre
g−T)を算出する待ち時間算出部105と、上記待ち
時間の設定時間(Treg−T)が正の値であるか否かを
判断し、上記設定時間(Treg−T)が正の値であると
きは、上記今回の駆動開始時刻tnowから上記設定時間
(Treg−T)の待ち時間の設定を指令する待ち時間設
定判断部104と、今回の駆動ステップ数Snowを上記
累積駆動ステップ数Stotalに加算する累積駆動ステッ
プ数加算部106と、待ち時間を設定した場合には上記
今回の駆動開始時刻tnowから上記設定時間(Treg−
T)の待ち時間経過後の現在時刻、待ち時間を設定しな
かった場合には上記今回の駆動開始時刻tnowを次回の
演算における上記前回の駆動開始時刻tprevとして設定
する駆動開始時刻設定部107と、上記前回の駆動開始
時刻tprev及び上記累積駆動ステップ数Stotalをそれ
ぞれ更新保存する不揮発性記憶部であるEEPROM2
3とを備えている。
FIG. 7 is a block diagram showing the configuration of the motor control device according to the second embodiment of the present invention. The motor control device according to the second embodiment of the present invention includes a timer IC 17 that is a timer unit that measures the time and indicates the current time.
And an elapsed time calculation unit 10 for calculating an elapsed time T from the previous drive start time tprev to the current drive start time tnow.
1, the elapsed time T and a predetermined reset reference time Trese
When the elapsed time T is equal to or longer than the reset reference time Treset, the cumulative drive step number Stotal, which is the cumulative value of the motor drive step numbers in a series of drive operations, is reset to 0. The number-of-drive-steps reset determination unit 102 and the number of accumulated drive steps Sto
tal is compared with a predetermined duty control start reference step number Sref. If the cumulative drive step number Stotal is a value equal to or greater than the duty control start reference step number Sref, it is necessary for each drive operation to be performed. A duty control start determining unit 103 for instructing start of duty control for setting a waiting time; and a regulation calculated by dividing the previous driving step number Sprev by a prescribed regulation duty ratio Dreg according to the duty control start command. The elapsed time T is subtracted from the elapsed time Treg to set a waiting time (Tre
g−T), and determines whether the set time (Treg−T) of the wait time is a positive value, and determines whether the set time (Treg−T) is a positive value. , The waiting time setting judging unit 104 instructing the setting of the waiting time of the set time (Treg-T) from the current driving start time tnow, and the current driving step number Snow is set to the cumulative driving step number Stotal. When the waiting time is set, the accumulated driving step number adding unit 106 to add the set time (Treg-
If the current time after the elapse of the waiting time T) and the waiting time are not set, the driving start time setting unit 107 sets the current driving start time tnow as the previous driving start time tprev in the next calculation. An EEPROM 2 as a nonvolatile storage unit for updating and saving the previous drive start time tprev and the cumulative number of drive steps Stotal, respectively.
3 is provided.

【0098】待ち時間設定判断部104及び累積駆動ス
テップ数加算部106は、モータを駆動するモータドラ
イバに駆動ステップ数を指令する駆動指令ユニット6に
接続されている。そして、待ち時間設定判断部104か
ら駆動指令ユニット6には待ち時間設定指令が送られ、
駆動指令ユニット6から累積駆動ステップ数加算部10
6には今回の駆動ステップ数Snowが送られる。駆動指
令ユニット6は、例えば図12におけるDCユニット6
とすることができる。
The waiting time setting judging section 104 and the cumulative driving step number adding section 106 are connected to the drive command unit 6 for commanding the number of driving steps to the motor driver for driving the motor. Then, a waiting time setting command is sent from the waiting time setting determining unit 104 to the drive command unit 6,
From drive command unit 6 to cumulative drive step number adder 10
The current driving step number Snow is sent to 6. The drive command unit 6 is, for example, the DC unit 6 in FIG.
It can be.

【0099】経過時間算出部101及び駆動開始時刻設
定部107は、それぞれタイマIC17から現在時刻を
取得する。EEPROM23に保存されている前回の駆
動開始時刻tprev、累積駆動ステップ数Stotalは、累
積駆動ステップ数リセット判断部102による判断結
果、駆動開始時刻設定部107による設定に応じて、更
新保存される。EEPROM23,タイマIC17は、
図12におけるEEPROM23,タイマIC17を兼
用するとよいが、別個に専用のものを設けてもよい。
The elapsed time calculation section 101 and the drive start time setting section 107 each obtain the current time from the timer IC 17. The previous drive start time tprev and the cumulative drive step number Stotal stored in the EEPROM 23 are updated and stored according to the result of the determination by the cumulative drive step number reset determination unit 102 and the setting by the drive start time setting unit 107. The EEPROM 23 and the timer IC 17
The EEPROM 23 and the timer IC 17 shown in FIG. 12 may be used in combination, but may be provided separately.

【0100】累積駆動ステップ数リセット判断部102
において参照される所定のリセット基準時間Treset、
デューティ制御開始判断部103において参照される所
定のデューティ制御開始基準ステップ数Sref、待ち時
間設定判断部104において参照される所定の規定デュ
ーティ比Dregは、各部内に設けられた参照テーブルに
保持されているものとしてもよいし、EEPROM2
3,図12におけるASIC20若しくはPROM2
1、又は、専用に設けた記憶手段に保持されているもの
としてもよい。
[0100] Cumulative driving step number reset judgment section 102
A predetermined reset reference time Treset referred to in
The predetermined duty control start reference step number Sref referred to by the duty control start judgment unit 103 and the predetermined specified duty ratio Dreg referred to by the waiting time setting judgment unit 104 are held in reference tables provided in each unit. Or EEPROM2
3, ASIC 20 or PROM 2 in FIG.
1, or may be held in a dedicated storage means.

【0101】経過時間算出部101,累積駆動ステップ
数リセット判断部102,デューティ制御開始判断部1
03,待ち時間設定判断部104,待ち時間算出部10
5,累積駆動ステップ数加算部106及び駆動開始時刻
設定部107は、1個の演算処理部100として構成す
ることができる。この演算処理部100としては、通常
は、図12におけるCPU16を兼用するとよいが、専
用のCPUを別個に設けてもよい。
Elapsed time calculation section 101, cumulative drive step number reset determination section 102, duty control start determination section 1
03, the waiting time setting determining unit 104, the waiting time calculating unit 10
5. The cumulative driving step number adding unit 106 and the driving start time setting unit 107 can be configured as one arithmetic processing unit 100. Normally, the arithmetic processing unit 100 also serves as the CPU 16 in FIG. 12, but a dedicated CPU may be provided separately.

【0102】本発明の第2の実施の形態に係るモータ制
御装置のハードウェア構成は、本発明の第1の実施の形
態に係るモータ制御装置のハードウェア構成とほぼ同様
であるが、今回の駆動動作開始前に待ち時間を設定する
か否かの判断に至るまでの数値計算及び判断内容が一部
異なっている。
The hardware configuration of the motor control device according to the second embodiment of the present invention is almost the same as the hardware configuration of the motor control device according to the first embodiment of the present invention. Numerical calculations and determination contents up to the determination of whether to set a waiting time before the start of the driving operation are partially different.

【0103】図8は、本発明の第2の実施の形態に係る
モータ制御装置の動作、即ち、本発明の第2の実施の形
態に係るモータ制御方法の手順を示したフローチャート
である。
FIG. 8 is a flowchart showing the operation of the motor control device according to the second embodiment of the present invention, that is, the procedure of the motor control method according to the second embodiment of the present invention.

【0104】図7及び図8を参照して、本発明の第2の
実施の形態に係るモータ制御装置の動作、即ち、本発明
の第2の実施の形態に係るモータ制御方法の手順につい
て、特に、本発明の第2の実施の形態に係るモータ制御
装置及びモータ制御方法と異なる部分を中心に説明す
る。
Referring to FIGS. 7 and 8, the operation of the motor control apparatus according to the second embodiment of the present invention, that is, the procedure of the motor control method according to the second embodiment of the present invention will be described. In particular, parts different from the motor control device and the motor control method according to the second embodiment of the present invention will be mainly described.

【0105】図8に示すように、本発明の第2の実施の
形態に係るモータ制御装置の動作及びモータ制御方法の
手順のステップS11からステップS16までは、本発
明の第1の実施の形態に係るモータ制御装置の動作及び
モータ制御方法の手順のステップS1からステップS6
までと同様である。
As shown in FIG. 8, steps S11 to S16 of the operation of the motor control apparatus and the procedure of the motor control method according to the second embodiment of the present invention are the same as those of the first embodiment of the present invention. Steps S1 to S6 of the operation of the motor control device and the procedure of the motor control method according to the first embodiment.
The same as before.

【0106】図2におけるステップ5と同様に図8にお
けるステップ15において、累積駆動ステップ数Stota
lを0にリセットするか否かを判断した結果、累積駆動
ステップ数Stotalをリセットせずにそのまま維持した
場合、及び、累積駆動ステップ数Stotalを0にリセッ
トした場合のいずれの場合も、デューティ制御開始判断
部103は、その結果としてEEPROM23に保持さ
れている累積駆動ステップ数Stotalの値を用いて、累
積駆動ステップ数Stotalと所定のデューティ制御開始
基準ステップ数Srefとを比較し、累積駆動ステップ数
Stotalがデューティ制御開始基準ステップ数Sref以上
の値(Stotal≧Sref)であるか否かを判断する(ステ
ップS16)。
As in step 5 in FIG. 2, in step 15 in FIG. 8, the cumulative driving step number Stota
As a result of determining whether or not to reset l to 0, the duty control is performed in both cases where the cumulative driving step number Stotal is maintained without being reset and when the cumulative driving step number Stotal is reset to 0. The start determining unit 103 compares the cumulative drive step number Stotal with a predetermined duty control start reference step number Sref using the value of the cumulative drive step number Stotal held in the EEPROM 23 as a result. It is determined whether or not Stotal is equal to or greater than the duty control start reference step number Sref (Stotal ≧ Sref) (step S16).

【0107】判断の結果、累積駆動ステップ数Stotal
がデューティ制御開始基準ステップ数Sref未満の値で
あるときは、デューティ制御開始判断部103は、デュ
ーティ制御を開始せず、それまでの非デューティ制御の
駆動制御を継続することを指令する。その指令に応じ
て、駆動開始時刻設定部107は、上記今回の駆動開始
時刻tnowを次回の演算における前回の駆動開始時刻tp
revとして設定してEEPROM23に更新保存させ、
累積駆動ステップ数加算部106は、今回の駆動ステッ
プ数Snowを累積駆動ステップ数Stotalに加算してEE
PROM23に更新保存させるとともに、駆動ステップ
数Snowの今回の駆動動作を行うモータ駆動処理を実行
することを駆動指令ユニット6に許可する(ステップS
20)。その許可に従い、駆動指令ユニット6は、駆動
ステップ数Snowの今回の駆動動作を行うモータ駆動処
理の実行を指令する。
As a result of the judgment, the cumulative number of driving steps Stotal
Is smaller than the duty control start reference step number Sref, the duty control start determination unit 103 instructs not to start the duty control but to continue the non-duty control drive control up to that time. In response to the command, the drive start time setting unit 107 sets the current drive start time tnow to the previous drive start time tp in the next calculation.
set as rev, update and save in EEPROM 23,
The cumulative driving step number adding unit 106 adds the current driving step number Snow to the cumulative driving step number Stotal to perform EE.
The drive command unit 6 is allowed to update and save the data in the PROM 23 and to execute the motor drive process for performing the current drive operation of the number of drive steps Snow (step S
20). In accordance with the permission, the drive command unit 6 commands the execution of the motor drive process for performing the current drive operation of the number of drive steps Snow.

【0108】一方、判断の結果、累積駆動ステップ数S
totalがデューティ制御開始基準ステップ数Sref以上の
値であるときは、モータ温度の上昇を抑制するため、デ
ューティ制御開始判断部103は、デューティ制御開始
を指令する。
On the other hand, as a result of the determination, the cumulative driving step number S
When total is equal to or greater than the duty control start reference step number Sref, the duty control start determination unit 103 issues a duty control start command to suppress an increase in motor temperature.

【0109】デューティ制御開始の指令に応じて、待ち
時間算出部105は、駆動ステップ数Snowの今回の駆
動動作開始前に設定する待ち時間を算出する(ステップ
S17)。ここで、待ち時間算出の計算過程について、
具体的に説明する。先ず、駆動ステップ数Sprevの前回
の駆動動作を規定デューティ比Dregにおいて実行した
とするならば、前回の駆動開始時刻tprevから今回の駆
動開始時刻tnowまでに要するべき規定経過時間Tregを
算出する。この規定経過時間Tregは、前回の駆動ステ
ップ数Sprevを規定デューティ比Dregで除算すること
により、規定経過時間Treg=Sprev/Dregとして算出
される。そして、この規定経過時間Tregから上記経過
時間Tを減算することにより、待ち時間(Treg−T)
を算出する。
In response to the instruction to start the duty control, the waiting time calculator 105 calculates a waiting time set before the start of the current driving operation of the number of driving steps Snow (step S17). Here, regarding the calculation process of the waiting time calculation,
This will be specifically described. First, assuming that the previous driving operation of the driving step number Sprev is executed at the specified duty ratio Dreg, the specified elapsed time Treg required from the previous driving start time tprev to the current driving start time tnow is calculated. The specified elapsed time Treg is calculated as the specified elapsed time Treg = Sprev / Dreg by dividing the previous driving step number Sprev by the specified duty ratio Dreg. Then, by subtracting the elapsed time T from the prescribed elapsed time Treg, the waiting time (Treg-T)
Is calculated.

【0110】待ち時間の設定時間(Treg−T)が算出
されると、待ち時間設定判断部104は、駆動ステップ
数Snowの今回の駆動動作開始前に待ち時間を設定する
か否かの判断を行う(ステップS18)。即ち、算出さ
れた待ち時間の設定時間(Treg−T)が正の値である
か否かを判断する。
When the waiting time setting time (Treg-T) is calculated, the waiting time setting determining section 104 determines whether or not to set the waiting time before the start of the current driving operation of the number of driving steps Snow. Perform (Step S18). That is, it is determined whether or not the calculated waiting time set time (Treg-T) is a positive value.

【0111】判断の結果、待ち時間の設定時間(Treg
−T)が0以下の値であるときは、待ち時間設定判断部
104は、駆動ステップ数Snowの今回の駆動動作開始
前に待ち時間を設定することなく、今回の駆動動作を実
行することを指令する。その指令に応じて、駆動開始時
刻設定部107は、上記今回の駆動開始時刻tnowを次
回の演算における前回の駆動開始時刻tprevとして設定
してEEPROM23に更新保存させ、累積駆動ステッ
プ数加算部106は、今回の駆動ステップ数Snowを累
積駆動ステップ数Stotalに加算してEEPROM23
に更新保存させるとともに、駆動ステップ数Snowの今
回の駆動動作を行うモータ駆動処理を実行することを駆
動指令ユニット6に許可する(ステップS20)。その
許可に従い、駆動指令ユニット6は、駆動ステップ数S
nowの今回の駆動動作を行うモータ駆動処理の実行を指
令する。
As a result of the judgment, the set time of the waiting time (Treg
When −T) is equal to or less than 0, the waiting time setting determining unit 104 executes the current driving operation without setting the waiting time before starting the current driving operation of the number of driving steps Snow. Command. In response to the command, the drive start time setting unit 107 sets the current drive start time tnow as the previous drive start time tprev in the next calculation and updates and saves it in the EEPROM 23. , The current driving step number Snow is added to the cumulative driving step number Stotal,
And the drive command unit 6 is allowed to execute a motor drive process for performing the current drive operation of the number of drive steps Snow (step S20). In accordance with the permission, the drive command unit 6 sets the drive step number S
Command execution of motor drive processing to perform the current drive operation of now.

【0112】一方、判断の結果、待ち時間の設定時間
(Treg−T)が正の値であるときは、待ち時間設定判
断部104は、駆動ステップ数Snowの今回の駆動動作
開始前に設定時間(Treg−T)の待ち時間を設定す
る。即ち、デューティ制御を行っていないとした場合に
おける本来の今回の駆動開始時刻tnowから設定時間
(Treg−T)の待ち時間を設定する(ステップS1
9)。このとき、駆動指令ユニット6に対しては、今回
の駆動動作を行うモータ駆動処理の実行が許可されない
ので、駆動指令ユニット6は、設定された待ち時間が経
過するまで、今回の駆動動作を行うモータ駆動処理の実
行の指令を行わない。
On the other hand, as a result of the determination, when the waiting time setting time (Treg-T) is a positive value, the waiting time setting judging section 104 sets the driving step number Snow before the start of the current driving operation. (Treg-T) wait time is set. That is, a waiting time of a set time (Treg-T) is set from the original current driving start time tnow when duty control is not performed (step S1).
9). At this time, the drive command unit 6 is not permitted to perform the motor drive process for performing the current drive operation, so that the drive command unit 6 performs the current drive operation until the set waiting time elapses. Does not issue a command to execute the motor drive process.

【0113】尚、待ち時間の設定時間(Treg−T)が
正の値であるときは、Treg>Tの関係が成立するの
で、上記経過時間Tにおけるデューティ比D=Sprev/
Tは、規定デューティ比Dregを超える値となる。従っ
て、本発明の第2の実施の形態に係るモータ制御装置及
びモータ制御方法においても、本発明の第1の実施の形
態に係るモータ制御装置及びモータ制御方法と実質的に
同様の判断がなされていることになる。
When the set time (Treg-T) of the waiting time is a positive value, the relationship of Treg> T is established, so that the duty ratio D = Sprev /
T is a value exceeding the specified duty ratio Dreg. Therefore, in the motor control device and the motor control method according to the second embodiment of the present invention, substantially the same determination is made as in the motor control device and the motor control method according to the first embodiment of the present invention. Will be.

【0114】設定した待ち時間の経過後、駆動開始時刻
設定部107は、その待ち時間経過後における現在時刻
をタイマIC17から取得し、次回の演算における前回
の駆動開始時刻tprevとして設定してEEPROM23
に更新保存させ、累積駆動ステップ数加算部106は、
今回の駆動ステップ数Snowを累積駆動ステップ数Stot
alに加算してEEPROM23に更新保存させるととも
に、駆動ステップ数Snowの今回の駆動動作を行うモー
タ駆動処理を実行することを駆動指令ユニット6に許可
する(ステップS20)。その許可に従い、駆動指令ユ
ニット6は、駆動ステップ数Snowの今回の駆動動作を
行うモータ駆動処理の実行を指令する。
After the elapse of the set waiting time, the drive start time setting unit 107 obtains the current time after the elapse of the wait time from the timer IC 17 and sets it as the previous drive start time tprev in the next calculation and sets the EEPROM 23 in the EEPROM 23.
And the cumulative driving step number adding unit 106
The number of current driving steps Snow is replaced by the cumulative number of driving steps Stot
The drive command unit 6 is permitted to execute the motor drive process for performing the current drive operation of the number of drive steps Snow while adding the value to al and storing the update in the EEPROM 23 (step S20). In accordance with the permission, the drive command unit 6 commands the execution of the motor drive process for performing the current drive operation of the number of drive steps Snow.

【0115】以上で、一回の駆動動作における本発明の
第2の実施の形態に係るモータ制御装置の動作、即ち、
本発明の第2の実施の形態に係るモータ制御方法の手順
は終了し、次回の駆動動作の際には、上述の動作又は手
順が再び最初のステップから繰り返される。
As described above, the operation of the motor control apparatus according to the second embodiment of the present invention in one driving operation, that is,
The procedure of the motor control method according to the second embodiment of the present invention ends, and at the time of the next driving operation, the above operation or procedure is repeated again from the first step.

【0116】本発明の第2の実施の形態に係るモータ制
御装置及びモータ制御方法においても、本発明の第1の
実施の形態に係るモータ制御装置及びモータ制御方法と
同様に、一連の駆動動作開始時からの累積駆動ステップ
数がデューティ制御開始基準ステップ数Srefに達する
までの間は、一回の駆動動作ごとに必要に応じて待ち時
間を設定するデューティ制御を行わず、累積駆動ステッ
プ数がデューティ制御開始基準ステップ数Srefに達
し、モータ温度Hが上記所定のデューティ制御基準モー
タ温度Href近傍まで上昇してから、デューティ制御を
開始する。従って、本発明の第2の実施の形態に係るモ
ータ制御装置及びモータ制御方法におけるモータ温度
も、図6に示すモータ温度H1と同様に、デューティ制
御基準モータ温度Href近傍を上下しながら制御される
が、モータ温度Hの上限値Hmaxまでは十分に余裕があ
るので、モータの動作には何ら障害は発生しない。そし
て、不必要なデューティ制御を回避することにより不必
要な待ち時間が排除されるので、モータの動作効率の低
下を最小限に抑制することができる。
In the motor control device and the motor control method according to the second embodiment of the present invention, similarly to the motor control device and the motor control method according to the first embodiment of the present invention, a series of driving operations is performed. Until the cumulative driving step number from the start reaches the duty control start reference step number Sref, duty control for setting a waiting time as necessary for each driving operation is not performed, and the cumulative driving step number is reduced. The duty control is started after the duty control start reference step number Sref has been reached and the motor temperature H has risen to near the predetermined duty control reference motor temperature Href. Therefore, the motor temperature in the motor control device and the motor control method according to the second embodiment of the present invention is also controlled while increasing and decreasing near the duty control reference motor temperature Href, similarly to the motor temperature H1 shown in FIG. However, since there is sufficient margin up to the upper limit value Hmax of the motor temperature H, no trouble occurs in the operation of the motor. Since unnecessary waiting time is eliminated by avoiding unnecessary duty control, a decrease in operating efficiency of the motor can be suppressed to a minimum.

【0117】ところで、本発明の第1及び第2の実施の
形態に係るモータ制御装置及びモータ制御方法において
は、上述のように、累積駆動ステップ数Stotalが所定
のデューティ制御開始基準ステップ数Srefに達してい
ることを、モータ温度がデューティ制御基準モータ温度
Hrefに達していることとみなして、デューティ制御を
開始するか否かを判断している。また、このデューティ
制御開始の判断に際しては、前回の駆動開始時刻tprev
から今回の駆動開始時刻tnowまでの経過時間Tがリセ
ット基準時間Treset以上の値であるときは、モータ温
度が基底モータ温度H0近傍まで低下しているものとみ
なして、予め累積駆動ステップ数Stotalを0にリセッ
トしている。
By the way, in the motor control device and the motor control method according to the first and second embodiments of the present invention, as described above, the cumulative drive step number Stotal is equal to the predetermined duty control start reference step number Sref. It is considered that the motor temperature has reached the duty control reference motor temperature Href, and it is determined whether to start the duty control. In determining the start of the duty control, the previous drive start time tprev
When the elapsed time T from the current drive start time tnow to the present drive start time tnow is a value equal to or longer than the reset reference time Treset, it is considered that the motor temperature has dropped to near the base motor temperature H0, and the accumulated drive step number Stotal is previously determined. Reset to zero.

【0118】しかし、電源を一度オフにしてから再びオ
ンにした場合において、累積駆動ステップ数Stotalを
常に0にリセットしてしまったり、電源オフ直前の累積
駆動ステップ数Stotalを常にそのまま保持していたり
すると、以下のような不都合が発生する。
However, when the power is once turned off and then turned on again, the cumulative number of driving steps Stotal is always reset to 0, or the cumulative number of driving steps Stotal immediately before the power is turned off is always maintained as it is. Then, the following inconveniences occur.

【0119】即ち、電源オフの際に累積駆動ステップ数
Stotalが常に0にリセットされるとすると、電源オフ
から次の電源オンまでの時間が非常に短かった場合に
は、モータ温度がデューティ制御基準モータ温度Href
に近い状態で駆動制御が開始され、モータ駆動制御開始
直後からデューティ制御が必要であるにもかかわらず、
デューティ制御が行われずにモータが過熱状態となって
動作障害が発生することがあり得る。
That is, assuming that the cumulative number of drive steps Stotal is always reset to 0 when the power is turned off, if the time from the power-off to the next power-on is very short, the motor temperature is reduced to the duty control reference. Motor temperature Href
Although the drive control is started in a state close to, and although the duty control is necessary immediately after the start of the motor drive control,
The motor may be overheated without performing the duty control, and an operation failure may occur.

【0120】また、電源を一度オフにしてから再びオン
にしても電源オフ直前の累積駆動ステップ数Stotalが
常にそのまま保持されているとすると、電源オフから次
の電源オンまでに時間が十分に経過していてモータ温度
が基底モータ温度H0近傍まで低下しているにもかかわ
らず、不必要なデューティ制御が行われて不必要な待ち
時間が設定され、モータの動作効率の低下を招くことが
あり得る。
If the cumulative number of driving steps Stotal immediately before the power is turned off is always kept as it is even if the power is turned off once and then turned on again, a sufficient time elapses from the power-off to the next power-on. Although the motor temperature is reduced to near the base motor temperature H0, unnecessary duty control is performed and an unnecessary waiting time is set, which may cause a decrease in motor operating efficiency. obtain.

【0121】そこで、本発明の第1及び第2の実施の形
態に係るモータ制御装置及びモータ制御方法において
は、電源がオンになってからモータの駆動制御が開始さ
れるまでの間に、以下のような制御ステップを挿入する
と、より適切なモータ制御が可能となる。
Therefore, in the motor control device and the motor control method according to the first and second embodiments of the present invention, the following description is provided between when the power is turned on and when the drive control of the motor is started. By inserting such a control step, more appropriate motor control can be performed.

【0122】図9は、本発明に係るモータ制御装置及び
モータ制御方法における電源オンの際の累積駆動ステッ
プ数設定処理の動作及び手順を示したフローチャートで
ある。尚、この電源オンの際の累積駆動ステップ数設定
処理の動作及び手順を実施する場合には、電源オフの操
作が行われるたびに、その電源オフ時刻をEEPROM
23に更新保存しておく必要がある。
FIG. 9 is a flowchart showing the operation and procedure of the cumulative driving step number setting process when the power is turned on in the motor control device and the motor control method according to the present invention. When performing the operation and procedure of the cumulative driving step number setting process at the time of power-on, the power-off time is set to the EEPROM every time the power-off operation is performed.
23 must be updated and stored.

【0123】電源がオンになると(ステップS31)、
経過時間算出部101は、EEPROM23から前回の
電源オフ時刻toffを読み出し(ステップS32)、か
つ、タイマIC17から現在時刻である今回の電源オン
時刻tonを取得する(ステップS33)。また、累積駆
動ステップ数リセット判断部102は、EEPROM2
3から累積駆動ステップ数Stotalを読み出す(ステッ
プS34)。
When the power is turned on (step S31),
The elapsed time calculation unit 101 reads the previous power-off time toff from the EEPROM 23 (step S32), and acquires the current power-on time ton, which is the current time, from the timer IC 17 (step S33). Further, the cumulative drive step number reset determination unit 102 determines whether the
The accumulated driving step number Stotal is read from 3 (step S34).

【0124】そして、経過時間算出部101は、今回の
電源オン時刻tonから前回の電源オフ時刻toffを減算
することにより、前回の電源オフ時刻toffから今回の
電源オン時刻tonまでの電源オフ経過時間Toff=ton
−toffを算出する。
The elapsed time calculation unit 101 subtracts the previous power-off time toff from the current power-on time ton to obtain the power-off elapsed time from the previous power-off time toff to the current power-on time ton. Toff = ton
-Calculate toff.

【0125】電源オフ経過時間Toffが算出されると、
累積駆動ステップ数リセット判断部102は、電源オフ
経過時刻Toffとリセット基準時間Tresetとを比較し、
電源オフ経過時間Toffがリセット基準時間Treset以上
の値(Toff≧Treset)であるか否かを判断する(ステ
ップS36)。尚、ここで用いるリセット基準時間Tre
setは、前述の所定のリセット基準時間Tresetと同様の
数値である。
When the power-off elapsed time Toff is calculated,
The cumulative drive step number reset determination unit 102 compares the power-off elapsed time Toff with the reset reference time Treset,
It is determined whether the power-off elapsed time Toff is equal to or longer than the reset reference time Treset (Toff ≧ Treset) (step S36). The reset reference time Tre used here is
“set” is a numerical value similar to the aforementioned predetermined reset reference time Treset.

【0126】判断の結果、電源オフ経過時間Toffがリ
セット基準時間Treset未満の値であるときは、読み出
した累積駆動ステップ数Stotalをそのまま維持する
が、電源オフ経過時間Toffがリセット基準時間Treset
以上の値であるときは、累積駆動ステップ数Stotalを
0にリセットし、Stotal=0のデータをEEPROM
23に更新保存する(ステップS37)。
As a result of the judgment, when the power-off elapsed time Toff is smaller than the reset reference time Treset, the read cumulative drive step number Stotal is maintained as it is, but the power-off elapsed time Toff is changed to the reset reference time Treset.
If the value is equal to or more than the above value, the cumulative driving step number Stotal is reset to 0, and the data of Stotal = 0 is stored in the EEPROM
23 is updated and stored (step S37).

【0127】その後、図2又は図8のフローチャートに
従い、本発明の第1の実施の形態に係るモータ制御装置
及びモータ制御方法、又は、本発明の第2の実施の形態
に係るモータ制御装置及びモータ制御方法によるモータ
の駆動制御を行う。
Then, according to the flowchart of FIG. 2 or FIG. 8, the motor control device and the motor control method according to the first embodiment of the present invention, or the motor control device and the motor control method according to the second embodiment of the present invention The motor drive is controlled by the motor control method.

【0128】以上のように、電源オンの際の累積駆動ス
テップ数設定処理の動作及び手順を実施すると、必要な
デューティ制御が行われずにモータが過熱状態となって
動作障害が発生する問題や、不必要なデューティ制御が
行われてモータの動作効率の低下を招く問題を未然に防
止することができる。
As described above, when the operation and procedure of the cumulative driving step number setting process at the time of power-on are performed, the motor may be overheated without performing the necessary duty control, and an operation failure may occur. It is possible to prevent a problem that unnecessary duty control is performed and the operating efficiency of the motor is reduced.

【0129】本発明に係るモータ制御装置及びモータ制
御方法は、制御対象となるモータがDCモータであって
も、ステッピングモータであっても適用可能であり、上
述の効果を得ることができる。
The motor control device and the motor control method according to the present invention can be applied whether the motor to be controlled is a DC motor or a stepping motor, and the above-mentioned effects can be obtained.

【0130】図10は、本発明に係るモータ制御方法を
実行するコンピュータプログラムが記録された記録媒体
及びその記録媒体が使用されるコンピュータシステムの
外観構成を示した説明図、図11は、図10に示したコ
ンピュータシステムの構成を示すブロック図である。
FIG. 10 is an explanatory diagram showing a recording medium on which a computer program for executing the motor control method according to the present invention is recorded, and an external configuration of a computer system using the recording medium. FIG. 3 is a block diagram showing a configuration of the computer system shown in FIG.

【0131】図10に示したコンピュータシステム70
は、ミニタワー型等の筐体に収納されたコンピュータ本
体71と、CRT(Cathode Ray Tube:陰極線管)、プ
ラズマディスプレイ、液晶表示装置等の表示装置72
と、記録出力装置としてのプリンタ73と、入力装置と
してのキーボード74a及びマウス74bと、フレキシ
ブルディスクドライブ装置76と、CD−ROMドライ
ブ装置77とから構成されている。図11は、このコン
ピュータシステム70の構成をブロック図として表示し
たものであり、コンピュータ本体71が収納された筐体
内には、RAM(Random Access Memory)等の内部メモ
リ75と、ハードディスクドライブユニット78等の外
部メモリがさらに設けられている。本発明に係るモータ
制御方法を実行するコンピュータプログラムが記録され
た記録媒体は、このコンピュータシステム70で使用さ
れる。記録媒体としては、例えば、フレキシブルディス
ク81,CD−ROM(Read Only Memory)82が用い
られるが、その他、MO(Magneto Optical)ディス
ク、DVD(Digital Versatile Disk)、その他の光学
的記録ディスク、カードメモリ、磁気テープ等を用いて
もよい。
The computer system 70 shown in FIG.
Is a computer main body 71 housed in a mini-tower type housing or the like, and a display device 72 such as a CRT (Cathode Ray Tube), a plasma display, a liquid crystal display device, or the like.
, A printer 73 as a recording output device, a keyboard 74a and a mouse 74b as input devices, a flexible disk drive device 76, and a CD-ROM drive device 77. FIG. 11 is a block diagram showing the configuration of the computer system 70. An internal memory 75 such as a RAM (Random Access Memory) and a hard disk drive unit 78 etc. An external memory is further provided. A recording medium on which a computer program for executing the motor control method according to the present invention is recorded is used in the computer system 70. As the recording medium, for example, a flexible disk 81 and a CD-ROM (Read Only Memory) 82 are used. In addition, an MO (Magneto Optical) disk, a DVD (Digital Versatile Disk), other optical recording disks, and a card memory Alternatively, a magnetic tape or the like may be used.

【0132】[0132]

【発明の効果】本発明に係るモータ制御装置及びモータ
制御方法によれば、一連の駆動動作開始後、モータが正
常に動作するモータ温度の上限値とモータ温度との差が
所定値未満になったと推測される時点から、一回の駆動
動作ごとに必要に応じて待ち時間を設定するデューティ
制御開始を指令するので、即ち、具体的には、一連の駆
動動作開始後、上記一連の駆動動作におけるモータの駆
動ステップ数の累積値である累積駆動ステップ数が所定
のデューティ制御開始基準ステップ数に達してからデュ
ーティ制御開始を指令するので、不必要なデューティ制
御を回避して、不必要な待ち時間を排除することがで
き、モータの動作効率の低下を最小限に抑制することが
できる。
According to the motor control device and the motor control method according to the present invention, after the start of a series of driving operations, the difference between the motor temperature at which the motor operates normally and the motor temperature becomes less than the predetermined value. From the point in time when it is estimated that the driving operation is started, the duty control for setting the waiting time as necessary for each driving operation is instructed, that is, specifically, after starting the series of driving operations, Since the command for starting the duty control is issued after the cumulative driving step number, which is the cumulative value of the motor driving step number, reaches the predetermined duty control start reference step number, unnecessary duty control is avoided and unnecessary waiting is performed. Time can be eliminated, and a decrease in operating efficiency of the motor can be minimized.

【0133】本発明に係るコンピュータプログラムの記
録媒体によれば、上記本発明に係るモータ制御方法のい
ずれかをコンピュータシステムにおいて実行するコンピ
ュータプログラムが記録されたものとしたので、モータ
制御に使用することにより、上記本発明に係るモータ制
御方法の効果を得ることができる。
According to the computer program recording medium of the present invention, a computer program for executing any of the above-described motor control methods of the present invention in a computer system is recorded. Thus, the effects of the motor control method according to the present invention can be obtained.

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

【図1】本発明の第1の実施の形態に係るモータ制御装
置の構成を示したブロック図。
FIG. 1 is a block diagram showing a configuration of a motor control device according to a first embodiment of the present invention.

【図2】本発明の第1の実施の形態に係るモータ制御方
法の手順を示したフローチャート。
FIG. 2 is a flowchart showing a procedure of a motor control method according to the first embodiment of the present invention.

【図3】駆動開始時刻、駆動ステップ数、経過時間、規
定経過時間及び待ち時間を図示したグラフ。
FIG. 3 is a graph illustrating a driving start time, the number of driving steps, an elapsed time, a specified elapsed time, and a waiting time.

【図4】規定デューティ比の定義を説明するためのグラ
フ。
FIG. 4 is a graph for explaining the definition of a prescribed duty ratio.

【図5】リセット基準時間の定義を図示したグラフ。FIG. 5 is a graph illustrating the definition of a reset reference time.

【図6】デューティ制御開始基準ステップ数及びデュー
ティ制御開始基準モータ温度、並びに、本発明に係るモ
ータ制御装置及びモータ制御方法により制御されたモー
タ温度H1並びに従来のモータ制御装置及びモータ制御
方法により制御されたモータ温度H2を図示したグラ
フ。
FIG. 6 is a diagram showing a duty control start reference step number and a duty control start reference motor temperature, a motor temperature H1 controlled by the motor control device and the motor control method according to the present invention, and control by the conventional motor control device and the motor control method; 4 is a graph illustrating the motor temperature H2.

【図7】本発明の第2の実施の形態に係るモータ制御装
置の構成を示したブロック図。
FIG. 7 is a block diagram showing a configuration of a motor control device according to a second embodiment of the present invention.

【図8】本発明の第2の実施の形態に係るモータ制御方
法の手順を示したフローチャート。
FIG. 8 is a flowchart showing a procedure of a motor control method according to a second embodiment of the present invention.

【図9】本発明に係るモータ制御装置及びモータ制御方
法における電源オンの際の累積駆動ステップ数設定処理
の動作及び手順を示したフローチャート。
FIG. 9 is a flowchart showing an operation and a procedure of a cumulative drive step number setting process when the power is turned on in the motor control device and the motor control method according to the present invention.

【図10】本発明に係るモータ制御方法を実行するプロ
グラムが記録された記録媒体及びその記録媒体が使用さ
れるコンピュータシステムの外観構成を示した説明図。
FIG. 10 is an explanatory diagram showing an external configuration of a recording medium on which a program for executing the motor control method according to the present invention is recorded, and a computer system using the recording medium.

【図11】図10に示したコンピュータシステムの構成
を示すブロック図。
FIG. 11 is an exemplary block diagram showing the configuration of the computer system shown in FIG. 10;

【図12】インクジェットプリンタの概略構成を示した
ブロック図。
FIG. 12 is a block diagram illustrating a schematic configuration of an inkjet printer.

【図13】インクジェットプリンタのキャリッジ3周辺
の構成を示した斜視図。
FIG. 13 is a perspective view showing a configuration around a carriage 3 of the inkjet printer.

【図14】キャリッジ3に取付けられたリニア式エンコ
ーダ11の構成を模式的に示した説明図。
FIG. 14 is an explanatory diagram schematically showing a configuration of a linear encoder 11 attached to a carriage 3.

【図15】CRモータ正転時及び逆転時におけるエンコ
ーダ11の2つの出力信号の波形を示したタイミングチ
ャート。
FIG. 15 is a timing chart showing waveforms of two output signals of the encoder 11 during forward rotation and reverse rotation of the CR motor.

【図16】給紙及び紙検出に関連する部分を示した透視
図。
FIG. 16 is a perspective view showing a portion related to paper feeding and paper detection.

【図17】DCモータ制御装置であるDCユニット6の
構成を示したブロック図。
FIG. 17 is a block diagram showing a configuration of a DC unit 6 which is a DC motor control device.

【図18】DCユニット6により制御されるCRモータ
4のモータ電流及びモータ速度を示したグラフ。
FIG. 18 is a graph showing motor current and motor speed of the CR motor 4 controlled by the DC unit 6.

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

1 紙送りモータ(PFモータ) 2 紙送りドライバ 3 キャリッジ 4 キャリッジモータ(CRモータ) 5 キャリッジモータドライバ(CRモータドライバ) 6 DCユニット 6a 位置演算部 6b 減算器 6c 目標速度演算手段 6d 速度演算部 6e 減算器 6f 比例要素 6g 積分要素 6h 微分要素 6j D/Aコンバータ 7 ポンプモータ 8 ポンプモータドライバ 9 記録ヘッド 10 ヘッドドライバ 11 リニア式エンコーダ 12 符号板 13 エンコーダ(ロータリ式エンコーダ) 15 紙検出センサ 16 CPU 17 タイマIC 18 ホストコンピュータ 19 インタフェース部 20 ASIC 21 PROM 22 RAM 23 EEPROM 25 プラテン 30 プーリ 31 タイミングベルト 32 キャリッジモータのガイド部材 34 インクカートリッジ 35 キャッピング装置 36 ポンプユニット 37 キャップ 50 記録紙 100 演算処理部 101 経過時間算出部 102 累積駆動ステップ数リセット判断部 103 デューティ制御開始判断部 104 待ち時間設定判断部 105 待ち時間算出部 106 累積駆動ステップ数加算部 107 駆動開始時刻設定部 1 Paper feed motor (PF motor) 2 Paper feed driver 3 Carriage 4 Carriage motor (CR motor) 5 Carriage motor driver (CR motor driver) 6 DC unit 6a Position calculation unit 6b Subtractor 6c Target speed calculation means 6d Speed calculation unit 6e Subtractor 6f Proportional element 6g Integral element 6h Differential element 6j D / A converter 7 Pump motor 8 Pump motor driver 9 Recording head 10 Head driver 11 Linear encoder 12 Code plate 13 Encoder (rotary encoder) 15 Paper detection sensor 16 CPU 17 Timer IC 18 Host computer 19 Interface unit 20 ASIC 21 PROM 22 RAM 23 EEPROM 25 Platen 30 Pulley 31 Timing belt 32 Carriage motor guide member 34 Ink cartridge 35 Capping device 36 Pump unit 37 Cap 50 Recording paper 100 Arithmetic processing unit 101 Elapsed time calculation unit 102 Cumulative drive step number reset determination unit 103 Duty control start determination unit 104 Wait time setting determination unit 105 Wait time calculation unit 106 Cumulative drive Step number adder 107 Drive start time setting unit

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5H570 AA20 BB02 DD06 DD07 HB16 JJ03 JJ30 LL17 MM05 5H571 AA13 AA20 FF01 FF02 FF06 FF08 GG01 GG02 HD02 JJ03 JJ13 JJ17 JJ18 KK06 LL36 MM06 5H580 AA05 BB05 BB09 FA03 FA04 FA14 FA22 HH37 JJ07  ──────────────────────────────────────────────────続 き Continued on the front page F-term (reference)

Claims (20)

【特許請求の範囲】[Claims] 【請求項1】一連の駆動動作開始後、モータが正常に動
作するモータ温度の上限値とモータ温度との差が所定値
未満になったと推測される時点から、一回の駆動動作ご
とに必要に応じて待ち時間を設定するデューティ制御開
始を指令することを特徴とするモータ制御装置。
1. After starting a series of driving operations, each time a driving operation is started, it is assumed that a difference between an upper limit value of the motor temperature at which the motor operates normally and the motor temperature is estimated to be less than a predetermined value. A motor control device for instructing a start of a duty control for setting a waiting time according to the following.
【請求項2】一連の駆動動作開始後、前記一連の駆動動
作におけるモータの駆動ステップ数の累積値である累積
駆動ステップ数が所定のデューティ制御開始基準ステッ
プ数に達してから、一回の駆動動作ごとに必要に応じて
待ち時間を設定するデューティ制御開始を指令すること
を特徴とするモータ制御装置。
2. After starting a series of driving operations, one driving operation is performed after an accumulated driving step number, which is an accumulated value of the number of motor driving steps in the series of driving operations, reaches a predetermined duty control start reference step number. A motor control device for instructing start of duty control for setting a waiting time as necessary for each operation.
【請求項3】時刻を計時して現在時刻を示す計時部と、 前回の駆動開始時刻から今回の駆動開始時刻までの経過
時間を算出する経過時間算出部と、 前記経過時間と所定のリセット基準時間とを比較し、前
記経過時間が前記リセット基準時間以上の値であるとき
は、一連の駆動動作におけるモータの駆動ステップ数の
累積値である累積駆動ステップ数を0にリセットする累
積駆動ステップ数リセット判断部と、 前記累積駆動ステップ数と所定のデューティ制御開始基
準ステップ数とを比較し、前記累積駆動ステップ数が前
記デューティ制御開始基準ステップ数以上の値であると
きは、一回の駆動動作ごとに必要に応じて待ち時間を設
定するデューティ制御開始を指令するデューティ制御開
始判断部と、 前記デューティ制御開始の指令に応じて、前回の駆動ス
テップ数を前記経過時間で除算して算出される前記経過
時間におけるデューティ比と所定の規定デューティ比と
を比較し、前記経過時間におけるデューティ比が前記規
定デューティ比を超える値であるときは、待ち時間を設
定すべきことを判断する待ち時間設定判断部と、 今回の駆動ステップ数を前記累積駆動ステップ数に加算
する累積駆動ステップ数加算部と、 待ち時間を設定した場合には前記今回の駆動開始時刻か
ら前記設定時間の待ち時間経過後の現在時刻、待ち時間
を設定しなかった場合には前記今回の駆動開始時刻を次
回の演算における前記前回の駆動開始時刻として設定す
る駆動開始時刻設定部と、 前記前回の駆動開始時刻及び前記累積駆動ステップ数を
それぞれ更新保存する不揮発性記憶部と、を備えている
ことを特徴とするモータ制御装置。
A timer for measuring the time to indicate a current time; an elapsed time calculator for calculating an elapsed time from a previous drive start time to a current drive start time; and the elapsed time and a predetermined reset reference. When the elapsed time is equal to or longer than the reset reference time, the cumulative driving step number, which is the cumulative value of the motor driving step numbers in a series of driving operations, is reset to 0. A reset judging unit, comparing the cumulative driving step number with a predetermined duty control start reference step number, and when the cumulative driving step number is equal to or greater than the duty control start reference step number, one driving operation A duty control start determining unit for instructing a duty control start for setting a waiting time as necessary for each of the cases; and Comparing the duty ratio at the elapsed time calculated by dividing the number of previous driving steps by the elapsed time with a predetermined specified duty ratio, and the duty ratio at the elapsed time is a value exceeding the specified duty ratio. A waiting time setting determining unit that determines that a waiting time should be set; a cumulative driving step number adding unit that adds the current driving step number to the cumulative driving step number; and The current time after the elapse of the set time wait time from the current drive start time, and the drive that sets the current drive start time as the previous drive start time in the next calculation when the wait time is not set. A start time setting unit; and a non-volatile storage unit that updates and stores the previous drive start time and the cumulative number of drive steps, respectively. Motor control apparatus according to claim and.
【請求項4】時刻を計時して現在時刻を示す計時部と、 前回の駆動開始時刻から今回の駆動開始時刻までの経過
時間を算出する経過時間算出部と、 前記経過時間と所定のリセット基準時間とを比較し、前
記経過時間が前記リセット基準時間以上の値であるとき
は、一連の駆動動作におけるモータの駆動ステップ数の
累積値である累積駆動ステップ数を0にリセットする累
積駆動ステップ数リセット判断部と、 前記累積駆動ステップ数と所定のデューティ制御開始基
準ステップ数とを比較し、前記累積駆動ステップ数が前
記デューティ制御開始基準ステップ数以上の値であると
きは、一回の駆動動作ごとに必要に応じて待ち時間を設
定するデューティ制御開始を指令するデューティ制御開
始判断部と、 前記デューティ制御開始の指令に応じて、前回の駆動ス
テップ数を所定の規定デューティ比で除算して算出され
る規定経過時間から前記経過時間を減算して待ち時間の
設定時間を算出する待ち時間算出部と、 前記待ち時間の設定時間が正の値であるか否かを判断
し、前記設定時間が正の値であるときは、前記今回の駆
動開始時刻から前記設定時間の待ち時間の設定を指令す
る待ち時間設定判断部と、 今回の駆動ステップ数を前記累積駆動ステップ数に加算
する累積駆動ステップ数加算部と、 待ち時間を設定した場合には前記今回の駆動開始時刻か
ら前記設定時間の待ち時間経過後の現在時刻、待ち時間
を設定しなかった場合には前記今回の駆動開始時刻を次
回の演算における前記前回の駆動開始時刻として設定す
る駆動開始時刻設定部と、 前記前回の駆動開始時刻及び前記累積駆動ステップ数を
それぞれ更新保存する不揮発性記憶部と、を備えている
ことを特徴とするモータ制御装置。
A timer for measuring a time to indicate a current time; an elapsed time calculator for calculating an elapsed time from a previous drive start time to a current drive start time; and the elapsed time and a predetermined reset reference. When the elapsed time is equal to or longer than the reset reference time, the cumulative driving step number, which is the cumulative value of the motor driving step numbers in a series of driving operations, is reset to 0. A reset judging unit, comparing the cumulative driving step number with a predetermined duty control start reference step number, and when the cumulative driving step number is equal to or greater than the duty control start reference step number, one driving operation A duty control start determining unit for instructing a duty control start for setting a waiting time as necessary for each of the cases; and A waiting time calculating unit configured to calculate the set waiting time by subtracting the elapsed time from a specified elapsed time calculated by dividing the previous driving step number by a predetermined specified duty ratio; It is determined whether or not is a positive value, when the set time is a positive value, a waiting time setting determining unit that instructs the setting of the waiting time of the set time from the current drive start time, An accumulative driving step number adding unit for adding the current driving step number to the cumulative driving step number; and, if a waiting time is set, the current time after the elapse of the set time waiting time from the current driving start time; If the time is not set, a drive start time setting unit that sets the current drive start time as the previous drive start time in the next calculation; and the previous drive start time and the accumulated drive time. A non-volatile storage unit for updating and saving the number of operation steps, respectively.
【請求項5】前記経過時間算出部、前記累積駆動ステッ
プ数リセット判断部、前記デューティ制御開始判断部、
前記待ち時間設定判断部、前記待ち時間算出部、前記累
積駆動ステップ数加算部及び前記駆動開始時刻設定部
は、1個の演算処理部として構成されているものである
ことを特徴とする請求項3又は4に記載のモータ制御装
置。
5. An elapsed time calculating section, said cumulative drive step number reset determining section, said duty control start determining section,
The said waiting time setting determination part, the said waiting time calculation part, the said cumulative driving step number addition part, and the said drive start time setting part are comprised as one arithmetic processing part, The thing characterized by the above-mentioned. 5. The motor control device according to 3 or 4.
【請求項6】前記不揮発性記憶部は、電源オフの操作に
応じて、その電源オフ時刻を更新保存するものであり、 前記経過時間算出部は、電源オンの操作に応じて、前回
の電源オフ時刻から今回の電源オン時刻までの電源オフ
経過時間を算出するものであり、 前記累積駆動ステップ数リセット判断部は、前記電源オ
フ経過時間と前記リセット基準時間とを比較し、前記電
源オフ経過時間が前記リセット基準時間以上の値である
ときは、前記累積駆動ステップ数を0にリセットするも
のであることを特徴とする請求項3乃至5のいずれかに
記載のモータ制御装置。
6. The non-volatile storage unit updates and saves a power-off time in response to a power-off operation, and the elapsed-time calculating unit stores the last power-on time in response to a power-on operation. Calculating the elapsed time of power-off from the off-time to the current power-on time, wherein the cumulative drive step number reset determining unit compares the elapsed time of the power-off with the reset reference time, and 6. The motor control device according to claim 3, wherein when the time is equal to or longer than the reset reference time, the accumulated driving step number is reset to zero.
【請求項7】前記所定のリセット基準時間は、前記デュ
ーティ制御の基準となる温度であって、モータが正常に
動作するモータ温度の上限値より所定値だけ低い値に設
定されるデューティ制御基準モータ温度になっているモ
ータが、モータ温度制御の基礎となる基底モータ温度ま
で自然に冷却されるために必要とされる時間であること
を特徴とする請求項3乃至6のいずれかに記載のモータ
制御装置。
7. The duty control reference motor, wherein the predetermined reset reference time is a temperature serving as a reference for the duty control, and is set to a value lower by a predetermined value than an upper limit value of a motor temperature at which the motor operates normally. 7. The motor according to claim 3, wherein the time required for the motor at the temperature to cool naturally to the base motor temperature on which the motor temperature control is based. Control device.
【請求項8】前記所定の規定デューティ比は、そのデュ
ーティ比においてモータを駆動制御することにより、モ
ータ温度が少なくとも上昇することなくそのまま維持さ
れ又は徐々に下降することとなる値のデューティ比であ
ることを特徴とする請求項3乃至7のいずれかに記載の
モータ制御装置。
8. The predetermined duty ratio is a duty ratio at which the motor temperature is maintained or at least gradually lowered without increasing at least by controlling the driving of the motor at the duty ratio. The motor control device according to any one of claims 3 to 7, wherein:
【請求項9】前記所定のデューティ制御開始基準ステッ
プ数は、モータの発熱量が最も大きくなる駆動モードに
よりモータの駆動制御を行ったときに、モータ温度が、
前記デューティ制御の基準となる温度であって、モータ
が正常に動作するモータ温度の上限値より所定値だけ低
い値に設定されるデューティ制御基準モータ温度に達す
る駆動ステップ数の最小値であることを特徴とする請求
項2乃至8のいずれかに記載のモータ制御装置。
9. The predetermined duty control start reference step number is such that when the motor drive control is performed in a drive mode in which the heat generation amount of the motor is the largest, the motor temperature is:
A temperature that is a reference of the duty control, and is a minimum value of the number of drive steps to reach a duty control reference motor temperature set to a value lower by a predetermined value than an upper limit of the motor temperature at which the motor operates normally. The motor control device according to any one of claims 2 to 8, wherein:
【請求項10】前記モータは、DCモータ又はステッピ
ングモータであることを特徴とする請求項1乃至9のい
ずれかに記載のモータ制御装置。
10. The motor control device according to claim 1, wherein the motor is a DC motor or a stepping motor.
【請求項11】一連の駆動動作開始後、モータが正常に
動作するモータ温度の上限値とモータ温度との差が所定
値未満になったと推測される時点から、一回の駆動動作
ごとに必要に応じて待ち時間を設定するデューティ制御
開始を指令することを特徴とするモータ制御方法。
11. After starting a series of driving operations, it is necessary for each driving operation from the point in time when it is estimated that the difference between the motor temperature at which the motor operates normally and the motor temperature has become less than a predetermined value. A motor control method for instructing a start of duty control for setting a waiting time according to the following.
【請求項12】一連の駆動動作開始後、前記一連の駆動
動作におけるモータの駆動ステップ数の累積値である累
積駆動ステップ数が所定のデューティ制御開始基準ステ
ップ数に達してから、一回の駆動動作ごとに必要に応じ
て待ち時間を設定するデューティ制御開始を指令するこ
とを特徴とするモータ制御方法。
12. After starting a series of driving operations, one driving operation is performed after a cumulative driving step number, which is an accumulated value of the number of motor driving steps in the series of driving operations, reaches a predetermined duty control start reference step number. A motor control method comprising issuing a duty control start command for setting a waiting time as necessary for each operation.
【請求項13】前回の駆動開始時刻から今回の駆動開始
時刻までの経過時間を算出する経過時間算出過程と、 前記経過時間と所定のリセット基準時間とを比較し、前
記経過時間が前記リセット基準時間以上の値であるとき
は、一連の駆動動作におけるモータの駆動ステップ数の
累積値である累積駆動ステップ数を0にリセットする累
積駆動ステップ数リセット判断過程と、 前記累積駆動ステップ数と所定のデューティ制御開始基
準ステップ数とを比較し、前記累積駆動ステップ数が前
記デューティ制御開始基準ステップ数以上の値であると
きは、一回の駆動動作ごとに必要に応じて待ち時間を設
定するデューティ制御開始を指令するデューティ制御開
始判断過程と、 前記デューティ制御開始の指令に応じて、前回の駆動ス
テップ数を前記経過時間で除算して算出される前記経過
時間におけるデューティ比と所定の規定デューティ比と
を比較し、前記経過時間におけるデューティ比が前記規
定デューティ比を超える値であるときは、待ち時間を設
定すべきことを判断する待ち時間設定判断過程と、 今回の駆動ステップ数を前記累積駆動ステップ数に加算
して、前記累積駆動ステップ数を更新する累積駆動ステ
ップ数加算過程と、 待ち時間を設定した場合には前記今回の駆動開始時刻か
ら前記設定時間の待ち時間経過後の現在時刻、待ち時間
を設定しなかった場合には前記今回の駆動開始時刻を次
回の演算における前記前回の駆動開始時刻として設定す
る駆動開始時刻設定過程と、を備えていることを特徴と
するモータ制御方法。
13. An elapsed time calculating step of calculating an elapsed time from a previous drive start time to a current drive start time; comparing the elapsed time with a predetermined reset reference time; When the value is equal to or longer than the time, a cumulative drive step number reset determination step of resetting the cumulative drive step number, which is the cumulative value of the motor drive step numbers in a series of drive operations, to 0, Comparing the duty control start reference step number with the duty control start reference step number, and when the cumulative drive step number is equal to or greater than the duty control start reference step number, setting a waiting time as necessary for each drive operation. A duty control start determining step of instructing a start; A duty ratio in the elapsed time calculated by dividing by a time is compared with a predetermined specified duty ratio, and when the duty ratio in the elapsed time exceeds the specified duty ratio, a waiting time should be set. A waiting time setting judging step of judging that the cumulative driving step number is added to the cumulative driving step number by adding the current driving step number to the cumulative driving step number; and Sets the current time after the elapse of the set time wait time from the current drive start time, and sets the current drive start time as the previous drive start time in the next calculation if the wait time is not set. A motor start time setting step.
【請求項14】前回の駆動開始時刻から今回の駆動開始
時刻までの経過時間を算出する経過時間算出過程と、 前記経過時間と所定のリセット基準時間とを比較し、前
記経過時間が前記リセット基準時間以上の値であるとき
は、一連の駆動動作におけるモータの駆動ステップ数の
累積値である累積駆動ステップ数を0にリセットする累
積駆動ステップ数リセット判断過程と、 前記累積駆動ステップ数と所定のデューティ制御開始基
準ステップ数とを比較し、前記累積駆動ステップ数が前
記デューティ制御開始基準ステップ数以上の値であると
きは、一回の駆動動作ごとに必要に応じて待ち時間を設
定するデューティ制御開始を指令するデューティ制御開
始判断過程と、 前記デューティ制御開始の指令に応じて、前回の駆動ス
テップ数を所定の規定デューティ比で除算して算出され
る規定経過時間から前記経過時間を減算して待ち時間の
設定時間を算出する待ち時間算出過程と、 前記待ち時間の設定時間が正の値であるか否かを判断
し、前記設定時間が正の値であるときは、前記今回の駆
動開始時刻から前記設定時間の待ち時間の設定を指令す
る待ち時間設定判断過程と、 今回の駆動ステップ数を前記累積駆動ステップ数に加算
して、前記累積駆動ステップ数を更新する累積駆動ステ
ップ数加算過程と、 待ち時間を設定した場合には前記今回の駆動開始時刻か
ら前記設定時間の待ち時間経過後の現在時刻、待ち時間
を設定しなかった場合には前記今回の駆動開始時刻を次
回の演算における前記前回の駆動開始時刻として設定す
る駆動開始時刻設定過程と、を備えていることを特徴と
するモータ制御方法。
14. An elapsed time calculating step for calculating an elapsed time from a previous drive start time to a current drive start time; comparing the elapsed time with a predetermined reset reference time; When the value is equal to or longer than the time, a cumulative drive step number reset determination step of resetting the cumulative drive step number, which is the cumulative value of the motor drive step numbers in a series of drive operations, to 0, Comparing the duty control start reference step number with the duty control start reference step number, and when the cumulative drive step number is equal to or greater than the duty control start reference step number, setting a waiting time as necessary for each drive operation. A duty control start determining step of instructing a start, and, in response to the duty control start instruction, a previous drive step number is set to a predetermined value. A waiting time calculating step of subtracting the elapsed time from a prescribed elapsed time calculated by dividing by a constant duty ratio to calculate a waiting time setting time; and determining whether the waiting time setting time is a positive value. When the set time is a positive value, a wait time setting determining step of instructing the setting of the wait time of the set time from the current drive start time; and A cumulative driving step number adding step of updating the cumulative driving step number by adding to the step number; and, if a waiting time is set, a current time after the elapse of the set time waiting time from the current driving start time; A drive start time setting step of setting the current drive start time as the previous drive start time in the next calculation when the waiting time is not set. Motor control method that.
【請求項15】電源オフの操作に応じて、その電源オフ
時刻を更新保存する電源オフ時刻更新保存過程と、 電源オンの操作に応じて、前回の電源オフ時刻から今回
の電源オン時刻までの電源オフ経過時間を算出する電源
オフ経過時間算出過程と、 前記電源オフ経過時間と前記リセット基準時間とを比較
し、前記電源オフ経過時間が前記リセット基準時間以上
の値であるときは、前記累積駆動ステップ数を0にリセ
ットする電源オン時の累積駆動ステップ数リセット判断
過程と、をさらに備えていることを特徴とする請求項1
3又は14に記載のモータ制御方法。
15. A power-off time update storage process for updating and storing the power-off time in response to a power-off operation, and a power-off time update and storage process from the previous power-off time to the current power-on time in response to the power-on operation A power-off elapsed time calculating step of calculating a power-off elapsed time, comparing the power-off elapsed time with the reset reference time, and when the power-off elapsed time is equal to or longer than the reset reference time, the accumulation is performed. 2. The method according to claim 1, further comprising the step of resetting the number of driving steps to reset the number of driving steps to zero.
15. The motor control method according to 3 or 14.
【請求項16】前記所定のリセット基準時間は、前記デ
ューティ制御の基準となる温度であって、モータが正常
に動作するモータ温度の上限値より所定値だけ低い値に
設定されるデューティ制御基準モータ温度になっている
モータが、モータ温度制御の基礎となる基底モータ温度
まで自然に冷却されるために必要とされる時間であるこ
とを特徴とする請求項13乃至15のいずれかに記載の
モータ制御方法。
16. The duty control reference motor, wherein the predetermined reset reference time is a reference temperature of the duty control, and is set to a value lower than an upper limit value of a motor temperature at which the motor operates normally by a predetermined value. The motor according to any one of claims 13 to 15, wherein the time required for the motor at the temperature to cool naturally to the base motor temperature on which the motor temperature control is based is provided. Control method.
【請求項17】前記所定の規定デューティ比は、そのデ
ューティ比においてモータを駆動制御することにより、
モータ温度が少なくとも上昇することなくそのまま維持
され又は徐々に下降することとなる値のデューティ比で
あることを特徴とする請求項13乃至16のいずれかに
記載のモータ制御方法。
17. The predetermined specified duty ratio is controlled by driving a motor at the duty ratio.
17. The motor control method according to claim 13, wherein the duty ratio is a value at which the motor temperature is maintained at least without increasing or gradually decreases.
【請求項18】前記所定のデューティ制御開始基準ステ
ップ数は、モータの発熱量が最も大きくなる駆動モード
によりモータの駆動制御を行ったときに、モータ温度
が、前記デューティ制御の基準となる温度であって、モ
ータが正常に動作するモータ温度の上限値より所定値だ
け低い値に設定されるデューティ制御基準モータ温度に
達する駆動ステップ数の最小値であることを特徴とする
請求項12乃至17のいずれかに記載のモータ制御方
法。
18. The predetermined duty control start reference step number is set at a temperature at which the motor temperature becomes a reference for the duty control when the drive control of the motor is performed in a drive mode in which the heat generation amount of the motor is maximized. 18. The method according to claim 12, wherein the driving step number is a minimum value of the number of drive steps to reach a duty control reference motor temperature set to a value lower by a predetermined value than an upper limit value of a motor temperature at which the motor operates normally. The motor control method according to any one of the above.
【請求項19】前記モータは、DCモータ又はステッピ
ングモータであることを特徴とする請求項11乃至18
のいずれかに記載のモータ制御方法。
19. The motor according to claim 11, wherein said motor is a DC motor or a stepping motor.
The motor control method according to any one of the above.
【請求項20】請求項11乃至19のいずれかに記載の
モータ制御方法をコンピュータシステムにおいて実行す
るコンピュータプログラムが記録されたことを特徴とす
るコンピュータプログラムの記録媒体。
20. A recording medium for a computer program, wherein a computer program for executing the motor control method according to claim 11 in a computer system is recorded.
JP2000381538A 2000-12-15 2000-12-15 Apparatus and method for controlling motor Pending JP2002186285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000381538A JP2002186285A (en) 2000-12-15 2000-12-15 Apparatus and method for controlling motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000381538A JP2002186285A (en) 2000-12-15 2000-12-15 Apparatus and method for controlling motor

Publications (1)

Publication Number Publication Date
JP2002186285A true JP2002186285A (en) 2002-06-28

Family

ID=18849515

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000381538A Pending JP2002186285A (en) 2000-12-15 2000-12-15 Apparatus and method for controlling motor

Country Status (1)

Country Link
JP (1) JP2002186285A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7222050B2 (en) 2004-07-13 2007-05-22 Seiko Epson Corporation Apparatus for determining overheating of motor, method for determining overheating of motor, computer-readable medium, motor control apparatus, motor control method, and printing apparatus
JP2008032176A (en) * 2006-07-31 2008-02-14 Denso Corp Control device of range switching mechanism
US7431521B2 (en) 2004-03-31 2008-10-07 Seiko Epson Corporation Printing method, printing apparatus, and computer-readable storage medium for shortening stoppage period of both motors
US8511780B2 (en) * 2007-05-31 2013-08-20 Brother Kogyo Kabushiki Kaisha Image forming apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7431521B2 (en) 2004-03-31 2008-10-07 Seiko Epson Corporation Printing method, printing apparatus, and computer-readable storage medium for shortening stoppage period of both motors
US7222050B2 (en) 2004-07-13 2007-05-22 Seiko Epson Corporation Apparatus for determining overheating of motor, method for determining overheating of motor, computer-readable medium, motor control apparatus, motor control method, and printing apparatus
JP2008032176A (en) * 2006-07-31 2008-02-14 Denso Corp Control device of range switching mechanism
US8511780B2 (en) * 2007-05-31 2013-08-20 Brother Kogyo Kabushiki Kaisha Image forming apparatus

Similar Documents

Publication Publication Date Title
JP3812823B2 (en) Printer control apparatus and printer control method
JP4457456B2 (en) Printing device
JP2001169584A (en) Control device and method for printer motor, and recording medium storing control program
JP2001103778A (en) Control device and method of printer motor and recording medium recording control programs
US6805342B2 (en) Printer-control method and printer-control apparatus
JP2002186285A (en) Apparatus and method for controlling motor
JP3570617B2 (en) DC motor control device and control method
JP2001251878A (en) Motor control unit and control method
JP2005153258A (en) Printer control device/method and printer
JP3777936B2 (en) Motor control method and control apparatus
JP2003023784A (en) Motor control method, motor control device, printer, computer program, and computer system
JP3893853B2 (en) Printer motor control apparatus and control method
JP4026331B2 (en) Motor driving method, motor driving apparatus, printer, computer program, and computer system
JP3705061B2 (en) MOTOR CONTROL DEVICE, ITS CONTROL METHOD, AND RECORDING MEDIUM CONTAINING MOTOR CONTROL PROGRAM
JP2003023783A (en) Motor control method, motor control device, printer, computer program, and computer system
JP3900401B2 (en) DC motor control method and control apparatus
JP2005237198A (en) Dc motor control method and control unit
JP2003341197A (en) Printer control method and printer controller
JP4432055B2 (en) Printer motor control apparatus and control method
JP2002305888A (en) Motor control device and control method
JP3985535B2 (en) Printer paper feed DC motor control device and control method
JP3997511B2 (en) Printer control apparatus and printer control method
JP4003721B2 (en) Printer
JP3871181B2 (en) PRINT CONTROL DEVICE, CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM
JP2002356033A (en) Printer controller and printer controlling method