JP2006025497A - Motor control method and controller - Google Patents

Motor control method and controller Download PDF

Info

Publication number
JP2006025497A
JP2006025497A JP2004199720A JP2004199720A JP2006025497A JP 2006025497 A JP2006025497 A JP 2006025497A JP 2004199720 A JP2004199720 A JP 2004199720A JP 2004199720 A JP2004199720 A JP 2004199720A JP 2006025497 A JP2006025497 A JP 2006025497A
Authority
JP
Japan
Prior art keywords
drive
change rate
motor control
driving force
control device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2004199720A
Other languages
Japanese (ja)
Other versions
JP4265498B2 (en
Inventor
Shigeki Akiyama
茂樹 秋山
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2004199720A priority Critical patent/JP4265498B2/en
Priority to US10/937,314 priority patent/US7821216B2/en
Publication of JP2006025497A publication Critical patent/JP2006025497A/en
Application granted granted Critical
Publication of JP4265498B2 publication Critical patent/JP4265498B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

<P>PROBLEM TO BE SOLVED: To drive an object to be driven stably irrespective of the fluctuation of a motor load. <P>SOLUTION: When the drive of a motor is started, first a PWM value is set to start-pwm1 being a PWM value at the start of drive, and then the value is increased gradually at a fixed rate of change by a fixed quantity at a fixed cycle. Then, each time an encoder edge is detected, this controller sets the PWM value to start-pwm1 and increases it gradually again. At edge detection since the second times, the next rate of the change of the PWM value is set according to and edge interval immediately before the detection (a time from the last edge detection to this edge detection). In the case that the edge interval T6 at the edge detection at a time t2 is longer than a threshold (det-period-max) by, for example, its driving speed drop caused by an increase in motor load, this increases the PWM value at a rate of change larger than the last rate of change at least until the next edge detection since the time t2. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、モータの制御方法及び制御装置に関し、特に、駆動対象が一定量駆動される毎にモータの駆動力を初期値から一定周期で一定量ずつ増加させる制御に関する。   The present invention relates to a motor control method and a control apparatus, and more particularly to control for increasing a driving force of a motor by a constant amount at a constant period from an initial value every time a drive target is driven by a constant amount.

従来より、DCモータやACモータの制御方法の一つとして、速度フィードバック制御や位置フィードバック制御などのいわゆる閉ループ制御方法が広く知られている。これらの閉ループ制御は、モータの回転量或いはその駆動対象の駆動量を検出するためにエンコーダ等を用い、そのエンコーダ等からの情報に基づいて上記各フィードバック制御を行うのが一般的である。   Conventionally, so-called closed-loop control methods such as speed feedback control and position feedback control have been widely known as one of DC motor and AC motor control methods. In these closed-loop controls, an encoder or the like is generally used to detect the rotation amount of the motor or the drive amount of the drive target, and the feedback control is generally performed based on information from the encoder or the like.

しかし、上記のようなエンコーダ等を用いたフィードバック制御を、微小速度で駆動対象を駆動させる場合(つまり微小速度でモータを回転させる場合)に適用すると、エンコーダ信号より演算して得られる駆動対象の速度が更新されず、対象が停止してしまうことが発生する。仮にある演算時に対象速度が目標値を上回っていた場合、制御器は駆動対象に対して減速動作となるよう制御出力を小さくするフィードバック処理が施されるが、微小速度で駆動させる場合、多くは駆動対象が移動するかしないかの小さな制御量で動作するため、フィードバックによる制御領域で完全停止に至ってしまう。一旦停止すると、エンコーダからの信号に変化が生じないため、速度を増速すべく制御出力を大きくする動作が生じない。つまり、ある一定の速度以上を目標速度としない限り、制御性が崩れてしまうおそれがある。そのため、微小速度におけるフィードバック制御の適用は困難である。   However, when feedback control using an encoder or the like as described above is applied to a case where the drive target is driven at a very low speed (that is, when the motor is rotated at a very low speed), the drive target obtained by calculation from the encoder signal is used. The speed may not be updated, and the target may stop. If the target speed exceeds the target value at the time of a certain calculation, the controller performs feedback processing to reduce the control output so that the drive target is decelerated. Since the operation is performed with a small amount of control whether the driven object moves or not, a complete stop occurs in the control region by feedback. Once stopped, there is no change in the signal from the encoder, so there is no operation to increase the control output to increase the speed. That is, unless the target speed is a certain speed or higher, the controllability may be lost. Therefore, it is difficult to apply feedback control at a minute speed.

微小速度で駆動対象を駆動させる例としては、例えばインクジェットプリンタにおいて、記録開始時に記録ヘッドの搭載されたキャリッジを初期位置に移動させて停止する場合や、記録終了後にキャリッジをホームポジションに戻して記録ヘッド(ノズル部)をキャッピングする場合などが挙げられる。このうち、記録終了後のキャッピングについて、図34に基づいて説明する。   As an example of driving the drive target at a very low speed, for example, in an ink jet printer, when a recording head mounted carriage is moved to an initial position and stopped, or after the recording is completed, the carriage is returned to the home position for recording. Examples include capping the head (nozzle part). Of these, the capping after the end of recording will be described with reference to FIG.

図34は、インクジェットプリンタの記録機構の概略構成を示す説明図である。図34に示す如く、インクジェットプリンタの記録機構100は、ガイド軸101と、このガイド軸101に沿って往復移動可能なキャリッジ102と、このキャリッジ102に搭載される記録ヘッド103と、キャリッジ102に対してモータ110からの駆動力を伝達する移動ベルト104と、キャリッジ102の移動量・位置を検出するためのエンコーダ105と、を備えている。   FIG. 34 is an explanatory diagram showing a schematic configuration of a recording mechanism of an inkjet printer. As shown in FIG. 34, the recording mechanism 100 of the ink jet printer includes a guide shaft 101, a carriage 102 that can reciprocate along the guide shaft 101, a recording head 103 mounted on the carriage 102, and the carriage 102. The moving belt 104 that transmits the driving force from the motor 110 and the encoder 105 for detecting the moving amount and position of the carriage 102 are provided.

モータ110(DCモータ)は、CPU112からの各種指令に従ってASIC111が駆動信号を出力することにより回転し、ガイド軸101に平行に設置された無端の移動ベルト104を駆動する。この駆動力がキャリッジ102に伝達され、キャリッジ102及び記録ヘッド103がガイド軸101に沿って往復移動する。キャリッジ102には図示しない複数色のインクタンクも各色毎に搭載されており、このインクタンクに貯留された各色のインクがそれぞれ記録ヘッド103のノズル部107から記録紙αに吐出される。   The motor 110 (DC motor) rotates when the ASIC 111 outputs a drive signal in accordance with various commands from the CPU 112, and drives the endless moving belt 104 installed in parallel to the guide shaft 101. This driving force is transmitted to the carriage 102, and the carriage 102 and the recording head 103 reciprocate along the guide shaft 101. A plurality of color ink tanks (not shown) are also mounted on the carriage 102 for each color, and each color ink stored in the ink tank is ejected from the nozzle portion 107 of the recording head 103 onto the recording paper α.

エンコーダ105は、移動検出対象(ここではキャリッジ102)の移動に伴って位相の異なる2種類のパルス信号を出力する周知のリニアエンコーダであって、詳細は図示しないものの、一定間隔で複数のスリットが形成されたエンコーダストリップがガイド軸101に沿って設置されている。そして、キャリッジ102の移動に伴って発生する2種類のパルス信号がASIC111に入力され、モータ110を制御する際の位置・速度情報などとして使用される。   The encoder 105 is a known linear encoder that outputs two types of pulse signals having different phases in accordance with the movement of the movement detection target (here, the carriage 102). Although not shown in detail, a plurality of slits are provided at regular intervals. The formed encoder strip is installed along the guide shaft 101. Two types of pulse signals generated as the carriage 102 moves are input to the ASIC 111 and used as position / speed information when the motor 110 is controlled.

そして、この記録機構100は更に、記録ヘッド103の全てのノズル部107を覆ってインクの乾燥を防止するキャッピングを行うためのキャップ装置106を備えている。このキャップ装置106は、記録紙αへの記録(印字)が行われる記録領域の外側の待機領域に設けられており、外側(右側)に向かって上向きとなるように形成されたスロープ123と、このスロープ123上を移動可能なキャップ121と、キャップ121をスロープ123の下方に向かって引っ張るバネ122とを備えている。   The recording mechanism 100 further includes a cap device 106 that covers all the nozzle portions 107 of the recording head 103 and performs capping to prevent ink from drying. The cap device 106 is provided in a standby area outside the recording area where recording (printing) is performed on the recording paper α, and a slope 123 formed to face upward toward the outside (right side); A cap 121 that can move on the slope 123 and a spring 122 that pulls the cap 121 downward from the slope 123 are provided.

一方、キャリッジ102は図示しないフックを備えており、キャリッジ102が待機領域内を矢印A方向に移動すると、まずフックがキャップ121に引っ掛かる。そして、更にキャリッジ102が右端部に向かって移動すると、その移動に伴ってキャップ121がスロープ123に沿って右側に引っ張られ、ノズル部107が徐々にキャップ121に覆われていく。そして、キャリッジ102が右端のホームポジションに達すると、キャップ121がノズル部107を完全に覆うことになる。   On the other hand, the carriage 102 is provided with a hook (not shown). When the carriage 102 moves in the standby area in the direction of arrow A, the hook is first hooked on the cap 121. When the carriage 102 further moves toward the right end, the cap 121 is pulled to the right along the slope 123 along with the movement, and the nozzle portion 107 is gradually covered with the cap 121. When the carriage 102 reaches the home position at the right end, the cap 121 completely covers the nozzle portion 107.

このように、キャップ121がノズル部107を覆うキャッピングは、通常、記録紙αへの記録動作が終了して記録ヘッド103をホームポジションに戻すときに行われる。この場合、キャップ121がノズル部107を不完全に覆った状態になるとインクが乾燥してしまう。そのため、確実にキャッピングできるよう、記録動作が終了してキャリッジ102が記録領域から待機領域に入ってきたときに、一旦キャリッジ102を停止させ、その後微小速度でホームポジションまで移動させるようにしている。   Thus, the capping that the cap 121 covers the nozzle portion 107 is normally performed when the recording operation on the recording paper α is completed and the recording head 103 is returned to the home position. In this case, when the cap 121 covers the nozzle portion 107 incompletely, the ink is dried. Therefore, in order to ensure capping, when the recording operation is completed and the carriage 102 enters the standby area from the recording area, the carriage 102 is temporarily stopped and then moved to the home position at a minute speed.

尚、記録動作の開始時には、キャリッジ102をホームポジションから間隙調整領域まで移動させてその左端に当接させた後、所定距離だけ矢印A方向に移動させて(戻して)一旦停止させることにより、記録開始の初期位置にセットするようにしている。その際も、キャリッジ102が間隙調整領域の左端に当接する勢いを抑制し、且つ、記録開始の初期位置セットを正確に行うために、その記録動作開始時には間隙調整領域では微小速度でキャリッジ102を移動させるようにしている。   At the start of the recording operation, the carriage 102 is moved from the home position to the gap adjustment region and brought into contact with the left end thereof, and then moved (returned) in the direction of the arrow A by a predetermined distance and temporarily stopped. It is set to the initial position at the start of recording. Also in this case, in order to suppress the momentum that the carriage 102 abuts against the left end of the gap adjustment area and to accurately set the initial position for starting the recording, the carriage 102 is moved at a very low speed in the gap adjustment area at the start of the recording operation. I try to move it.

尚、間隙調整領域は、図示しない間隙調整装置を動作させることが可能な領域であり、この間隙調整装置を動作させることにより、記録ヘッド103のノズル部107と記録紙αとの間隙(ギャップ)を調整することができるのである。   The gap adjustment area is an area in which a gap adjustment device (not shown) can be operated. By operating this gap adjustment device, a gap (gap) between the nozzle portion 107 of the recording head 103 and the recording paper α is obtained. Can be adjusted.

上記のインクジェットプリンタにおけるキャリッジ102の微小速度での駆動のように、モータが駆動対象を微小速度で駆動させる場合は、既述の通り、フィードバック制御を適用すると種々の問題が生じるおそれがある。   When the motor drives the object to be driven at a minute speed, such as driving the carriage 102 in the ink jet printer at a minute speed, various problems may occur when the feedback control is applied as described above.

そこで、例えばDCモータを微小速度で制御する方法として、エンコーダからのパルス信号のエッジ(以下「エンコーダエッジ」という)が検出される毎に、DCモータに与える駆動力を初期値から一定周期で一定量ずつ増加させていく方法が知られている。具体的には、DCモータの通電電流をPWM制御によって制御するよう構成し、そのPWMデューティ値(以下単に「PWM値」という)を、エンコーダエッジ検出毎に初期値から一定周期で一定量ずつ増加させる方法である(例えば、特許文献1参照。)。   Therefore, for example, as a method of controlling the DC motor at a very low speed, every time the edge of the pulse signal from the encoder (hereinafter referred to as “encoder edge”) is detected, the driving force applied to the DC motor is constant at a constant cycle from the initial value. There is a known method of increasing the amount. More specifically, the DC motor energization current is controlled by PWM control, and the PWM duty value (hereinafter simply referred to as “PWM value”) is increased by a constant amount from the initial value at a constant cycle each time an encoder edge is detected. (For example, refer to Patent Document 1).

この制御方法を用いたDCモータの制御例を、図35に基づいて説明する。図35(a)は、DCモータにより駆動される駆動対象を微小速度で駆動しながらある位置で減速を開始し、更に制動を開始して最終的に停止するまでの制御例である。このモータ制御が開始されると、PWM値が予め設定した駆動開始時のPWM値(start_pwm1)に設定され、一定周期で一定量ずつ増加していく。   A control example of the DC motor using this control method will be described with reference to FIG. FIG. 35 (a) is a control example in which deceleration is started at a certain position while the object to be driven driven by the DC motor is driven at a minute speed, further braking is started and finally stopped. When this motor control is started, the PWM value is set to a preset PWM value (start_pwm1) at the start of driving, and increases by a constant amount at a constant cycle.

この増加の様子は、詳細には図36に示す通りであり、エンコーダエッジが検出される毎に、即ち、エンコーダエッジ検出信号(enc_trg)が出力される毎に、PWM値(pwm_out)がstart_pwm1にリセットされ、その後、一定周期Tp毎に、一定の駆動時PWM増分量(accel_param)ずつ増加していく。   The state of the increase is as shown in FIG. 36 in detail. Every time an encoder edge is detected, that is, every time an encoder edge detection signal (enc_trg) is output, the PWM value (pwm_out) becomes start_pwm1. After that, it is increased by a constant PWM increment amount (accel_param) at a constant period Tp.

なお、PWM値が更新される一定周期であるPWM値更新間隔Tpは、詳細には、次式Tp=pwm_period*(pwm_reload_count+1)で表される。ここで、pwm_periodはPWM信号の周期であり、pwm_reload_countは、PWM値がリセットされて再びstart_pwm1の最初のPWMパルスが出力された後、次にまたPWM値がリセットされるまでの間に出力されるPWMパルスの数を示す定加算タイミングである。   Note that the PWM value update interval Tp, which is a constant cycle in which the PWM value is updated, is expressed in detail by the following equation Tp = pwm_period * (pwm_reload_count + 1). Here, pwm_period is the period of the PWM signal, and pwm_reload_count is output after the PWM value is reset and the first PWM pulse of start_pwm1 is output again until the PWM value is reset again. This is a constant addition timing indicating the number of PWM pulses.

再び図35(a)に戻って、上記の通り、PWM値はstart_pwm1から一定周期Tpで一定量(accel_param)ずつ増加していくが、本例ではPWM値の上限値(pwm_limit)が設定され、これを越えることがないようにされているため、PWM値がpwm_limitに到達するとそのままpwm_limitに維持される。そして、エンコーダエッジが検出されると、PWM値はstart_pwm1にリセットされ、再び一定周期Tp毎に一定量accel_paramずつ増加していくことになる。   Returning to FIG. 35A again, as described above, the PWM value increases from start_pwm1 by a certain amount (accel_param) at a certain period Tp, but in this example, the upper limit value (pwm_limit) of the PWM value is set, Since this is not exceeded, when the PWM value reaches pwm_limit, it is maintained at pwm_limit as it is. When the encoder edge is detected, the PWM value is reset to start_pwm1 and increases again by a certain amount accel_param every certain period Tp.

そして、エンコーダエッジ検出時の駆動対象の位置が減速開始位置(decel_pos)であったならば、PWM値をstart_pwm1ではなく減速開始時PWM値であるstart_pwm2にセットする。その後、図36と同じ要領(但し一定周期毎にPWM値は減少)でPWM値が減少していき、所定の制動開始条件が成立すると、制動が開始される。   If the position to be driven when the encoder edge is detected is the deceleration start position (decel_pos), the PWM value is set to start_pwm2, which is the PWM value at the start of deceleration, instead of start_pwm1. Thereafter, the PWM value decreases in the same manner as in FIG. 36 (however, the PWM value decreases at regular intervals). When a predetermined braking start condition is satisfied, braking is started.

制動の開始時は、PWM値が制動開始時PWM値であるstart_pwm3にセットされ、その後、一定周期で一定量ずつPWM値が低下していき、プレーキ時PWM出力値であるstop_pwmとなった後はそのPWM値を維持する。   At the start of braking, the PWM value is set to start_pwm3, which is the PWM value at the start of braking. After that, the PWM value decreases by a constant amount at a constant period, and after it becomes stop_pwm, which is the PWM output value at the time of braking The PWM value is maintained.

ここで、通常の駆動時や減速時のようにPWM値が正(+)の値のときは、DCモータへの通電電流がそのPWM値に応じたデューティ比にてオン・オフされる。一方、PWM値が負(−)の場合は、DCモータの短絡回路が形成されると共にその短絡回路の導通・遮断がそのPWM値に応じたデューティ比にてなされることを示している。つまり、PWM値が負の領域で小さくなっていくに従い、DCモータ短絡回路の導通比率が大きくなって制動力も上昇していき、stop_pwmとなったときに常時短絡された状態となり、制動力も最大となる。   Here, when the PWM value is a positive (+) value during normal driving or deceleration, the current supplied to the DC motor is turned on / off at a duty ratio corresponding to the PWM value. On the other hand, when the PWM value is negative (−), it indicates that a short circuit of the DC motor is formed and that the short circuit is turned on and off at a duty ratio corresponding to the PWM value. In other words, as the PWM value decreases in the negative region, the conduction ratio of the DC motor short circuit increases and the braking force also increases, and when it becomes stop_pwm, it is always short-circuited, and the braking force is also increased. Maximum.

上記のようなDCモータ制御方法によれば、駆動対象の駆動速度が上昇すると、エンコーダエッジ検出間隔も短くなって、駆動力(PWM値)が十分に増加しないうちに再び初期値start_pwm1にリセットされる。つまり、速度が上昇すると必然的にモータの駆動力も低下していくような制御であるため、全体としてオープン制御ではあるものの、ある程度の安定した制御が実現されているのである。   According to the DC motor control method as described above, when the drive speed of the drive target increases, the encoder edge detection interval is also shortened, and is reset again to the initial value start_pwm1 before the drive force (PWM value) increases sufficiently. The In other words, the control is such that the driving force of the motor inevitably decreases as the speed increases, so that although it is open control as a whole, a certain degree of stable control is realized.

そのため、図34で説明したインクジェットプリンタの記録機構100におけるモータ110においても、キャッピング動作時などのように微小速度で駆動・制御する場合は、上記のような、エンコーダエッジ検出毎にPWM値を初期値から一定周期で一定量ずつ増加させていくような制御方法が採用されている。
特開2003−79189号公報(図3)
Therefore, when the motor 110 in the recording mechanism 100 of the ink jet printer described with reference to FIG. 34 is driven and controlled at a very low speed as in the capping operation, the PWM value is initialized at each encoder edge detection as described above. A control method is adopted in which the value is increased from the value by a certain amount at a certain period.
Japanese Patent Laying-Open No. 2003-79189 (FIG. 3)

しかしながら、図35(a)で説明したような、エンコーダエッジ検出毎にPWM値を一定の初期値(start_pwm1)にリセットする制御方法だと、DCモータの負荷が変動したときに安定した動作(駆動)ができなくなるおそれがあった。   However, with the control method that resets the PWM value to a constant initial value (start_pwm1) every time the encoder edge is detected as described in FIG. 35A, stable operation (driving) when the load of the DC motor fluctuates. ) May not be possible.

即ち、例えばDCモータの負荷が大きくなると、図35(b)に示すように、減速開始位置に到達するまでに要する時間が長くなってしまうおそれがある。図35(b)は、時刻t1にてDCモータの負荷が増加し始める場合を示しており、図示の如く、時刻t1以降はエンコーダエッジ検出間隔が長くなってくる。即ち、負荷が増加しているにも拘わらず、エンコーダエッジ検出毎にPWM値が初期値start_pwm1にリセットされてしまうため、必要なトルクを発生させるまでの時間が長くなり、結果として駆動対象の駆動速度が遅くなってしまうのである。   That is, for example, when the load of the DC motor increases, as shown in FIG. 35B, the time required to reach the deceleration start position may increase. FIG. 35B shows a case where the load of the DC motor starts increasing at time t1, and as shown in the figure, the encoder edge detection interval becomes longer after time t1. That is, although the load is increased, the PWM value is reset to the initial value start_pwm1 every time the encoder edge is detected, so that it takes a long time to generate the necessary torque, and as a result, the drive of the drive target It will slow down.

負荷の増加がさらに大きくなると、エンコーダエッジ検出毎に駆動対象が停止→駆動を繰り返すようになるおそれもあり、そうなると、振動や異音などの不具合が発生してしまう。   If the increase in load is further increased, there is a possibility that the drive target stops and drives repeatedly every time the encoder edge is detected. If this happens, problems such as vibration and abnormal noise occur.

このようにDCモータの負荷が変化(増加)する場合の一例として、図34で説明したインクジェットプリンタの記録機構100におけるキャッピング動作時が挙げられる。既述の通り、記録機構100におけるキャッピングは、キャリッジ102がホームポジションに戻る際にキャップ121をスロープ123に沿って右側に引っ張っていくことにより行われる。つまり、キャリッジ102がホームポジションに戻っていくにつれて、DCモータにはバネ122に起因して負荷の増加が生じるのである。そのため、記録終了からキャッピング動作完了までの時間が長くなったり、キャッピング中に振動や異音が発生したり、場合によってはホームポジションに到達する前にキャリッジ102が停止してキャッピングが不完全になってしまうなどのおそれがある。   As an example of the case where the load of the DC motor changes (increases) in this way, there is a capping operation in the recording mechanism 100 of the ink jet printer described with reference to FIG. As described above, the capping in the recording mechanism 100 is performed by pulling the cap 121 along the slope 123 to the right side when the carriage 102 returns to the home position. That is, as the carriage 102 returns to the home position, the load increases in the DC motor due to the spring 122. For this reason, the time from the end of recording to the completion of the capping operation becomes longer, vibration or abnormal noise occurs during capping, or in some cases, the carriage 102 stops before reaching the home position, resulting in incomplete capping. There is a risk of it.

逆に、DCモータ負荷の変動として、図35(b)とは逆に負荷が小さくなることも考えられる。その場合、エンコーダエッジの検出間隔は早くなるためPWM値は過度に上昇するおそれはないが、負荷が小さいにも拘わらず常にstart_pwm1以上のPWM値によってDCモータが制御されているため、ある一定速度以下に制御することが不可能となることが考えられる。そして、あまりにも負荷が軽すぎると、停止目標位置を過ぎて停止するなどの停止精度の悪化が生じる可能性がある。   On the other hand, as a change in the DC motor load, it is also conceivable that the load becomes smaller as opposed to FIG. In that case, since the encoder edge detection interval becomes faster, the PWM value is not likely to rise excessively, but the DC motor is always controlled by a PWM value equal to or greater than start_pwm1 even though the load is small. It is considered that the following control becomes impossible. If the load is too light, there is a possibility that the stop accuracy deteriorates, such as stopping after the stop target position.

本発明は上記課題に鑑みなされたものであり、モータにより駆動される駆動対象が一定量駆動される毎にモータの駆動力を予め設定した初期駆動力から一定周期で一定量ずつ増加させるモータ制御を行うにあたり、モータ負荷の増加或いは減少等の変動があっても安定して駆動対象を駆動することが可能なモータ制御方法及び制御装置を提供することを目的とする。   The present invention has been made in view of the above problems, and each time a driving object driven by a motor is driven by a certain amount, the motor control increases the driving force of the motor by a certain amount at a constant period from a preset initial driving force. It is an object of the present invention to provide a motor control method and a control apparatus capable of stably driving a drive target even when there is a fluctuation such as an increase or decrease in motor load.

上記課題を解決するためになされた請求項1記載の発明は、モータにより駆動される駆動対象が一定量駆動される毎に、モータの駆動力を予め設定した初期駆動力から所定の周期で所定の増分量ずつ増加させるモータ制御方法であって、駆動対象が一定量駆動される毎に、該一定量駆動されるのに要した時間に応じて、駆動対象が目標駆動速度にて駆動されるよう、増分量と周期の比率である駆動力の変化率を変更する。   In order to solve the above-mentioned problems, the invention according to claim 1 is that the driving force of the motor is driven at a predetermined cycle from a preset initial driving force every time a target to be driven by the motor is driven by a certain amount. Is a motor control method for increasing the incremental amount of each time, and each time the driven object is driven by a fixed amount, the driven object is driven at a target drive speed according to the time required to drive the fixed amount. Thus, the change rate of the driving force, which is the ratio between the increment and the period, is changed.

即ち、駆動対象の一定量駆動後、モータの駆動力(モータに与えられる、駆動対象を駆動するための駆動力)が初期駆動力から所定周期で所定の増分量ずつ増加していくと、次にまた駆動対象が一定量駆動されたときは、その一定量駆動されるのに要した時間が上記所定周期より短くない限り、モータの駆動力は当然ながら初期駆動力より増加していることになる。そこで、一定量駆動される毎にそのときのモータの駆動力を再び初期駆動力に設定するのである。   That is, after a certain amount of driving of the driving target, if the driving force of the motor (the driving force applied to the motor for driving the driving target) increases from the initial driving force by a predetermined increment in a predetermined cycle, In addition, when the driving target is driven by a certain amount, the driving force of the motor naturally increases from the initial driving force unless the time required for driving the certain amount is shorter than the predetermined period. Become. Therefore, every time a fixed amount is driven, the driving force of the motor at that time is set again to the initial driving force.

そして、本発明では、上記一定量駆動毎に毎回同じ周期で同じ増分量ずつ増加させる(つまり駆動力の変化率を一定とする)のではなく、その一定量駆動されるのに要した時間に応じて、駆動力の変化率を変更するのである。   In the present invention, instead of increasing the same incremental amount in the same cycle every time the fixed amount driving is performed (that is, making the change rate of the driving force constant), the time required to drive the fixed amount is used. Accordingly, the change rate of the driving force is changed.

例えば、モータ負荷が大きくて駆動対象の駆動速度が遅い場合は、一定量駆動するのに要する時間も長くなり、その間、駆動力は所定の変化率で増加していく。つまり、駆動速度が遅いほど、一定量駆動した時点でのモータの駆動力は大きくなっていることになる。一方、例えばモータ負荷が小さくて駆動対象の駆動速度が速い場合は、一定量駆動するのに要する時間は短くなる。つまり、駆動速度が速いほど、一定量駆動した時点でのモータの駆動力は小さいことになる。   For example, when the motor load is large and the driving speed of the object to be driven is slow, the time required to drive a certain amount of time increases, and during that time, the driving force increases at a predetermined rate of change. That is, the slower the driving speed, the greater the driving force of the motor when it is driven by a certain amount. On the other hand, for example, when the motor load is small and the drive speed of the drive target is high, the time required to drive a certain amount is short. That is, the faster the driving speed, the smaller the driving force of the motor when it is driven by a certain amount.

そのため、例えば、一定量駆動するのに要した時間が長いほど駆動力の変化率を大きくするといったように、駆動対象が目標駆動速度で駆動されるように駆動力の変化率を変更するのである。   Therefore, for example, the change rate of the driving force is changed so that the change rate of the driving force is increased as the time required for driving the fixed amount is longer, so that the drive target is driven at the target driving speed. .

従って、請求項1のモータ制御方法によれば、駆動対象が一定量駆動する毎に、その一定量駆動されるのに要した時間に応じて駆動力の変化率を変更するため、モータ負荷の増加或いは減少等の変動が生じても安定して駆動対象を駆動することが可能となる。   Therefore, according to the motor control method of the first aspect, every time the drive target is driven by a certain amount, the rate of change of the driving force is changed according to the time required to drive the certain amount. Even if fluctuations such as increase or decrease occur, it is possible to drive the drive object stably.

尚、本発明でいう「モータ」とは、例えばDCモータ或いはACモータであってもよく、ステップモータのように矩形パルスによってステップ状に駆動されるモータを除き、種々のモータを含むものとする。また、変化率の変更は、駆動対象が一定量駆動される毎に必ず行う必要はなく、駆動対象が目標駆動速度にて駆動している場合など、駆動力の変化率が適切である場合は変更しないようにしてもよい。以下の各請求項についても同様である。   The “motor” in the present invention may be, for example, a DC motor or an AC motor, and includes various motors except for a motor that is driven stepwise by a rectangular pulse such as a step motor. In addition, it is not always necessary to change the rate of change every time the drive target is driven by a certain amount. If the drive target is driven at the target drive speed, the change rate of the driving force is appropriate. It may not be changed. The same applies to the following claims.

そしてこの場合、変化率の変更は、具体的には、例えば請求項4に記載のように、駆動対象が一定量駆動されるのに要した時間が予め設定した経過時間上限閾値より長い場合に変化率を増加させるか、若しくは、駆動対象が一定量駆動されるのに要した時間が予め設定した経過時間下限閾値より短い場合に変化率を減少させるか、のうち少なくとも一方を実行するようにしてもよい。   In this case, the change rate is specifically changed when the time required for the drive target to be driven by a certain amount is longer than a preset elapsed time upper limit threshold as described in claim 4, for example. At least one of increasing the rate of change or decreasing the rate of change when the time required for the drive target to be driven by a certain amount is shorter than a preset elapsed time lower limit threshold value is executed. May be.

このようにすれば、モータの負荷が大きい等の原因によって一定量駆動するのに要する時間が長い場合は変化率を増加させ、逆にモータ負荷が小さい等の原因によって一定量駆動するのに要する時間が短い場合は変化率を減少させることができるため、モータ負荷の変動によらず、より安定して駆動対象を駆動することが可能となる。   In this way, if the time required to drive a fixed amount due to a large motor load is long, the rate of change is increased, and conversely, it is necessary to drive a fixed amount due to a small motor load. Since the rate of change can be reduced when the time is short, the drive target can be driven more stably regardless of fluctuations in the motor load.

そして、駆動力の変化率を上記条件に従って増加或いは減少させる際の具体的方法としては、例えば請求項7に記載のように、変化率を増加させる場合は予め設定した一定の基準増加量だけ増加させ、減少させる場合は予め設定した一定の基準減少量だけ減少させるようにしてもよい。このように増加量・減少量を一定にすれば、変化率の変更をより簡易的に行うことが可能となる。   As a specific method for increasing or decreasing the driving force change rate according to the above conditions, for example, as described in claim 7, when the change rate is increased, the driving force change rate is increased by a predetermined reference increase amount. In the case of reduction, it may be reduced by a predetermined reference reduction amount set in advance. Thus, if the increase / decrease amount is made constant, the change rate can be changed more easily.

また例えば、請求項8に記載のように、変化率を増加させる場合は、駆動対象が一定量駆動されるのに要した時間と経過時間上限閾値との差が大きくなるに従って連続的又は段階的に大きくなるように増加量を設定し、変化率を減少させる場合は、経過時間下限閾値と駆動対象が一定量駆動されるのに要した時間との差が大きくなるに従って連続的又は段階的に小さくなるように減少量を設定するようにしてもよい。このようにすれば、そのときの駆動速度に応じたきめ細かな変化率の変更が可能となり、駆動対象をより早く所望の速度(目標駆動速度)にすることが可能となる。   Also, for example, when the rate of change is increased as described in claim 8, it is continuously or stepwise as the difference between the time required to drive the drive target by a fixed amount and the elapsed time upper limit threshold increases. When the increase amount is set to be large and the rate of change is decreased, the difference between the elapsed time lower limit threshold and the time required for the drive target to be driven by a certain amount increases continuously or stepwise. The reduction amount may be set so as to decrease. In this way, it is possible to change the change rate finely according to the driving speed at that time, and it is possible to set the driving target to a desired speed (target driving speed) earlier.

次に、請求項2記載の発明は、モータにより駆動される駆動対象が一定量駆動される毎に、モータの駆動力を予め設定した初期駆動力から所定の周期で所定の増分量ずつ増加させるモータ制御方法であって、駆動対象が一定量駆動される毎に、該一定量駆動された時の駆動対象の駆動速度に応じて、駆動対象が目標駆動速度にて駆動されるよう、駆動力の変化率(増分量と周期の比率)を変更する。このようにすれば、駆動対象の一定量駆動毎にそのときの駆動速度がわかるため、この駆動速度に応じて変化率を設定すれば、請求項1と同様の効果が得られる。   Next, the invention described in claim 2 increases the driving force of the motor by a predetermined increment amount at a predetermined cycle from a preset initial driving force every time a driving object driven by the motor is driven by a certain amount. In this motor control method, each time the drive target is driven by a fixed amount, the driving force is driven so that the drive target is driven at the target drive speed according to the drive speed of the drive target when the fixed amount is driven. Change rate of change (ratio of increment and period). In this way, since the driving speed at that time is known for every fixed amount of driving target, if the rate of change is set according to this driving speed, the same effect as in claim 1 can be obtained.

そしてこの場合、変化率の変更は、具体的には、例えば請求項5に記載のように、駆動対象が一定量駆動された時の駆動速度が予め設定した速度下限閾値より小さい場合に変化率を増加させるか、若しくは、駆動対象が一定量駆動された時の駆動速度が予め設定した速度上限閾値より大きい場合に変化率を減少させるか、のうち少なくとも一方を実行するようにしてもよい。このようにすれば、モータ負荷の変動によらず、より安定して駆動対象を駆動することが可能となる。   In this case, the change rate is changed when the drive speed when the drive target is driven by a certain amount is smaller than a preset speed lower limit threshold as described in claim 5, for example. Or at least one of decreasing the rate of change when the drive speed when the drive target is driven by a certain amount is larger than a preset speed upper limit threshold value. In this way, it becomes possible to drive the drive target more stably regardless of fluctuations in the motor load.

そして、駆動力の変化率を上記条件に従って増加或いは減少させる際の具体的方法としては、例えば既述の請求項7のように行ってもよいし、また例えば、請求項9記載のように、変化率を増加させる場合は、速度下限閾値と、駆動対象が一定量駆動された時の駆動速度との差が大きくなるに従って連続的又は段階的に大きくなるようにその増加量を設定し、変化率を減少させる場合は、駆動対象が一定量駆動された時の駆動速度と速度上限閾値との差が大きくなるに従って連続的又は段階的に小さくなるようにその減少量を設定するようにしてもよい。このようにすれば、そのときの駆動速度に応じたきめ細かな変化率の変更が可能となり、駆動対象をより早く所望の速度(目標駆動速度)にすることが可能となる。   And as a specific method for increasing or decreasing the change rate of the driving force according to the above conditions, for example, as described in claim 7, for example, as in claim 9, When increasing the rate of change, set the increase amount so that it increases continuously or stepwise as the difference between the speed lower limit threshold and the drive speed when the drive target is driven by a fixed amount increases. When decreasing the rate, the amount of decrease may be set to decrease continuously or stepwise as the difference between the drive speed when the drive target is driven by a fixed amount and the speed upper limit threshold increases. Good. In this way, it is possible to change the change rate finely according to the driving speed at that time, and it is possible to set the driving target to a desired speed (target driving speed) earlier.

次に、請求項3記載の発明は、モータにより駆動される駆動対象が一定量駆動される毎に、モータの駆動力を予め設定した初期駆動力から所定の周期で所定の増分量ずつ増加させるモータ制御方法であって、駆動対象が一定量駆動される毎に、該一定量駆動された時の駆動力に応じて、駆動対象が目標駆動速度にて駆動されるよう、駆動力の変化率(増分量と周期の比率)を変更する。   Next, the invention according to claim 3 increases the driving force of the motor by a predetermined increment amount at a predetermined cycle from a preset initial driving force every time a driving object driven by the motor is driven by a certain amount. A motor control method, in which a driving force change rate so that a driving target is driven at a target driving speed according to a driving force when the driving target is driven by a fixed amount each time the driving target is driven by a fixed amount. Change (ratio of increment and period).

即ち、請求項1記載の発明が、駆動対象が一定量駆動されるのに要した時間に応じて変化率を変更したのに対し、本発明(請求項3)では、上記一定量駆動された時の駆動力に応じて変化率を変更するのである。一定量駆動時の駆動力が大きいほど駆動速度が遅いということであるため、この一定量駆動時の駆動力に応じて変化率を変更すれば、請求項1と同様の効果が得られる。   That is, the invention according to claim 1 changes the rate of change according to the time required for the drive target to be driven by a fixed amount, whereas the present invention (Claim 3) is driven by the fixed amount. The rate of change is changed according to the driving force at the time. Since the driving speed is slower as the driving force during a certain amount of driving increases, the same effect as in the first aspect can be obtained by changing the rate of change according to the driving force during the constant amount driving.

そしてこの場合、変化率の変更は、具体的には、例えば請求項6に記載のように、駆動対象が一定量駆動された時のモータの駆動力が予め設定した駆動力上限閾値より大きい場合に変化率を増加させるか、若しくは、駆動対象が一定量駆動された時のモータの駆動力が予め設定した駆動力下限閾値より小さい場合に変化率を減少させるか、のうち少なくとも一方を実行するようにしてもよい。   In this case, the change in the rate of change is specifically when the driving force of the motor when the driving target is driven by a certain amount is larger than a preset driving force upper limit threshold as described in claim 6, for example. At least one of increasing the rate of change or decreasing the rate of change when the driving force of the motor when the drive target is driven by a certain amount is smaller than a preset driving force lower limit threshold value. You may do it.

このようにすれば、モータの負荷が大きい等の原因によって駆動対象の駆動速度が遅い場合は変化率を増加させ、逆にモータ負荷が小さい等の原因によって駆動対象の駆動速度が速い場合は変化率を減少させることができるため、モータ負荷の変動によらず、より安定して駆動対象を駆動することが可能となる。   In this way, the rate of change is increased when the drive speed of the drive target is slow due to a large motor load or the like, and conversely when the drive speed of the drive target is high due to a reason such as a small motor load. Since the rate can be reduced, the drive target can be driven more stably regardless of the fluctuation of the motor load.

そして、駆動力の変化率を上記条件に従って増加或いは減少させる際の具体的方法としては、例えば既述の請求項7のように行ってもよいし、また例えば、請求項10に記載のように、変化率を増加させる場合は、駆動対象が一定量駆動された時のモータの駆動力と駆動力上限閾値との差が大きくなるに従って連続的又は段階的に大きくなるようにその増加量を設定し、変化率を減少させる場合は、駆動力下限閾値と駆動対象が一定量駆動された時の駆動力との差が大きくなるに従って連続的又は段階的に小さくなるようにその減少量を設定するようにしてもよい。このようにすれば、そのときの駆動速度に応じたきめ細かな変化率の設定変更が可能となり、駆動対象をより早く所望の速度(目標駆動速度)にすることが可能となる。   Then, as a specific method for increasing or decreasing the change rate of the driving force according to the above condition, for example, it may be performed as in the above-mentioned claim 7 or, for example, as in the claim 10 When increasing the rate of change, set the amount of increase so that it increases continuously or stepwise as the difference between the driving force of the motor when the drive target is driven by a certain amount and the driving force upper limit threshold increases. When the rate of change is decreased, the amount of decrease is set so that it decreases continuously or stepwise as the difference between the driving force lower limit threshold and the driving force when the driving target is driven by a certain amount increases. You may do it. In this way, it is possible to change the setting of the fine change rate according to the driving speed at that time, and it is possible to make the driving target a desired speed (target driving speed) earlier.

そして、請求項4〜10のいずれかに記載の発明における、駆動力の変化率の増加或いは減少は、具体的には、例えば請求項11に記載のように、変化率の増加は上記周期を減少させること及び上記増分量を増加させることの少なくとも一方により行い、変化率の減少は上記周期を増加させること及び上記増分量を減少させることの少なくとも一方により行うことで実現でき、周期や増分量を適宜変更することで、駆動力の変化率を所望の値に変更することが可能となる。   In the invention according to any one of claims 4 to 10, specifically, the increase or decrease in the change rate of the driving force is, for example, as described in claim 11, the increase in the change rate is the above cycle. The rate of change can be reduced by at least one of increasing the period and decreasing the increment amount, and can be realized by at least one of decreasing and increasing the increment amount. It is possible to change the change rate of the driving force to a desired value by appropriately changing.

次に、請求項12記載の発明は、モータにより駆動される駆動対象が一定量駆動される毎に、その旨を示す駆動検知信号を出力する駆動検知手段と、該駆動検知手段から駆動検知信号が出力される毎に、モータの駆動力を予め設定した初期駆動力から所定の周期で所定の増分量ずつ増加させるための、駆動力制御信号を出力する制御手段と、該制御手段からの駆動力制御信号に基づいてモータを回転駆動するモータ駆動手段とを備えたモータ制御装置である。そして、変化率変更手段が、駆動検知手段から駆動検知信号が出力される毎(つまり駆動対象が一定量駆動される毎)に、該駆動検知信号が前回出力されてから今回出力されるまでの経過時間に応じて、駆動対象が目標駆動速度にて駆動されるよう、駆動力の変化率(増分量と周期の比率)を変更する。   Next, according to the twelfth aspect of the present invention, there is provided a drive detection means for outputting a drive detection signal indicating that every time a drive object driven by a motor is driven by a certain amount, and a drive detection signal from the drive detection means. A control means for outputting a driving force control signal for increasing the driving force of the motor by a predetermined increment in a predetermined cycle from a preset initial driving force, and a drive from the control means The motor control device includes motor driving means for rotating the motor based on the force control signal. Then, every time the drive detection signal is output from the drive detection means (that is, every time the drive target is driven by a certain amount), the change rate changing means is from the previous output of the drive detection signal to the current output. In accordance with the elapsed time, the change rate of the driving force (the ratio between the increment and the cycle) is changed so that the drive target is driven at the target drive speed.

このように構成された請求項12のモータ制御装置によれば、請求項1記載のモータ制御方法が実現され、請求項1と同様、モータ負荷の増加或いは減少等の変動が生じても安定して駆動対象を駆動することが可能となる。   According to the motor control apparatus of claim 12 configured as described above, the motor control method of claim 1 is realized, and, similarly to claim 1, it is stable even if fluctuations such as increase or decrease of the motor load occur. Thus, it is possible to drive the drive target.

尚、駆動検知手段は、駆動対象が一定量駆動されるのを直接みて駆動検知信号を出力するように構成されたものに限らず、例えばモータの回転量、或いはモータの回転によって直接的若しくは間接的に駆動されるものの駆動量に基づいて、駆動対象が一定量駆動されたか否か判断し駆動検知信号を出力するように構成されたものであってもよく、結果として駆動対象が一定量駆動する毎に駆動検知信号を出力できる構成であればよい。   Note that the drive detection means is not limited to one configured to output a drive detection signal by directly seeing that the drive target is driven by a certain amount. For example, the drive detection means is directly or indirectly based on the rotation amount of the motor or the rotation of the motor. The driving target may be configured to output a driving detection signal by determining whether or not the driving target is driven by a fixed amount based on the driving amount of the target driven. Any configuration that can output a drive detection signal each time it is performed.

そしてこの場合、更に、例えば請求項15に記載のように、駆動検知手段から駆動検知信号が出力される毎に上記経過時間が予め設定した経過時間上限閾値より長いか否かを判断する経過時間判断手段を備え、変化率変更手段は、この経過時間判断手段にて上記経過時間が経過時間上限閾値より長いと判断された場合に変化率を増加させるようにしてもよい。   In this case, the elapsed time for determining whether or not the elapsed time is longer than a preset elapsed time upper limit threshold each time a drive detection signal is output from the drive detection means, for example. A change means may be provided, and the change rate change means may increase the change rate when the elapsed time determination means determines that the elapsed time is longer than the elapsed time upper limit threshold.

また例えば、請求項16に記載のように、駆動検知手段から駆動検知信号が出力される毎に上記経過時間が予め設定した経過時間下限閾値より短いか否かを判断する経過時間判断手段を備え、変化率変更手段は、この経過時間判断手段にて上記経過時間が経過時間下限閾値より短いと判断された場合に変化率を減少させるようにしてもよい。   Further, for example, as described in claim 16, there is provided elapsed time determination means for determining whether or not the elapsed time is shorter than a preset elapsed time lower limit threshold every time a drive detection signal is output from the drive detection means. The change rate changing means may decrease the change rate when the elapsed time determining means determines that the elapsed time is shorter than the elapsed time lower limit threshold.

また例えば、請求項17に記載のように、経過時間判断手段は、駆動検知信号出力時の上記経過時間が経過時間下限閾値より短いか否かを判断すると共にその経過時間下限閾値より大きい所定の経過時間上限閾値を越えているか否かも判断し、変化率変更手段は、経過時間判断手段にて上記経過時間が経過時間下限閾値より短いと判断された場合は変化率を減少させ、経過時間上限閾値を越えていると判断された場合は変化率を増加させるようにしてもよい。   Further, for example, as described in claim 17, the elapsed time determination means determines whether or not the elapsed time when the drive detection signal is output is shorter than an elapsed time lower limit threshold, and is greater than a predetermined threshold greater than the elapsed time lower limit threshold. It is also judged whether or not the elapsed time upper limit threshold is exceeded, and the change rate changing means decreases the change rate when the elapsed time judging means determines that the elapsed time is shorter than the elapsed time lower limit threshold, and the elapsed time upper limit. If it is determined that the threshold value is exceeded, the rate of change may be increased.

上記のように構成された請求項15〜17いずれかに記載のモータ制御装置によれば、請求項4記載のモータ制御方法を実現でき、請求項4と同様、モータ負荷の変動によらず、より安定して駆動対象を駆動することが可能となる。   According to the motor control device according to any one of claims 15 to 17 configured as described above, the motor control method according to claim 4 can be realized, and, similarly to claim 4, regardless of fluctuations in motor load, It becomes possible to drive the drive target more stably.

そして、経過時間判断手段が経過時間上限閾値及び経過時間下限閾値の両方に基づく判断を行えるよう構成された請求項17記載のモータ制御装置は、更に、例えば請求項18に記載のように、変化率変更手段が、変化率の増加及び減少を、駆動検知信号が前回出力された時の変化率に対して行い、駆動検知信号が出力された時に、経過時間判断手段にて上記経過時間が経過時間下限閾値以上であって且つ経過時間上限閾値以下と判断された場合は変化率を変更しないよう構成されたものであってもよい。   The motor control device according to claim 17, wherein the elapsed time determination means is configured to be able to make a determination based on both the elapsed time upper limit threshold and the elapsed time lower limit threshold. The rate changing means increases and decreases the rate of change with respect to the rate of change when the drive detection signal was output last time, and when the drive detection signal is output, the elapsed time is determined by the elapsed time determination means. It may be configured such that the rate of change is not changed when it is determined to be equal to or greater than the time lower limit threshold and equal to or less than the elapsed time upper limit threshold.

このように構成されたモータ制御装置によれば、経過時間下限閾値と経過時間上限閾値との間に所定の幅を持たせることで、変化率を増加させる場合、減少させる場合、および変更しない場合にそれぞれ任意に設定することができるため、駆動対象の安定駆動を維持しつつ、変化率の変更条件をよりフレキシブルに設定することが可能となり、制御の自由度が広がる。   According to the motor control device configured as described above, by giving a predetermined width between the elapsed time lower limit threshold and the elapsed time upper limit threshold, the change rate is increased, decreased, and not changed. Therefore, the change rate changing condition can be set more flexibly while maintaining the stable drive of the drive target, and the degree of freedom of control is expanded.

ここで、請求項15、17又は18のいずれかに記載のモータ制御装置は、例えば請求項27に記載のように、変化率変更手段が変化率を増加させる場合の増加量を、予め設定した一定の基準増加量としてもよい。このように構成されたモータ制御装置によれば、変化率の変更(増加)をより簡易的に行うことが可能となる。   Here, in the motor control device according to any one of claims 15, 17 and 18, for example, as described in claim 27, an increase amount when the change rate changing means increases the change rate is set in advance. It may be a certain reference increase amount. According to the motor control device configured as described above, the change rate can be changed (increased) more simply.

また、請求項15、17又は18のいずれかに記載のモータ制御装置は、例えば請求項29に記載のように、経過時間判断手段によって上記経過時間が経過時間上限閾値より長いと判断されたときに、該経過時間と経過時間上限閾値との差である第一差分値を演算する第一差分値演算手段を備え、変化率変更手段は、変化率を増加させる場合の増加量を、第一差分値演算手段にて演算される第一差分値が大きいほど変化率が連続的又は段階的に大きくなるよう、該第一差分値に基づいて設定するように構成してもよい。   Further, in the motor control device according to any one of claims 15, 17 and 18, for example, as described in claim 29, when the elapsed time is determined to be longer than the elapsed time upper limit threshold by the elapsed time determining means. The first difference value calculating means for calculating a first difference value that is the difference between the elapsed time and the elapsed time upper limit threshold, and the change rate changing means determines the increase amount when the change rate is increased, You may comprise so that it may set based on this 1st difference value so that a change rate may become large continuously or in steps, so that the 1st difference value calculated by a difference value calculation means is large.

つまり、駆動検知信号出力時の上記経過時間が経過時間上限閾値よりどれだけ長いかによって変化率の増加量を設定するのである。このようにすれば、そのときの駆動対象の駆動速度に応じたきめ細かな変化率の設定が可能となり、駆動対象をより早く所望の速度(目標駆動速度)にすることが可能となる。   That is, the increase amount of the change rate is set depending on how long the elapsed time when the drive detection signal is output is longer than the elapsed time upper limit threshold. In this way, it is possible to set a fine change rate according to the drive speed of the drive target at that time, and to set the drive target to a desired speed (target drive speed) earlier.

一方、請求項16〜18いずれかに記載のモータ制御装置は、例えば請求項28に記載のように、変化率変更手段が変化率を減少させる場合の減少量を、予め設定した一定の基準減少量としてもよく、このように構成されたモータ制御装置によれば、変化率の変更(減少)をより簡易的に行うことが可能となる。   On the other hand, in the motor control device according to any one of claims 16 to 18, for example, as described in claim 28, the amount of decrease when the change rate changing means decreases the change rate is set to a predetermined reference decrease. According to the motor control device configured as described above, the change rate can be changed (decreased) more easily.

また、請求項16〜18いずれかに記載のモータ制御装置は、例えば請求項30に記載のように、経過時間判断手段によって上記経過時間が経過時間下限閾値より短いと判断されたときに、経過時間下限閾値と該経過時間との差である第二差分値を演算する第二差分値演算手段を備え、変化率変更手段は、変化率を減少させる場合の減少量を、第二差分値演算手段にて演算される第二差分値が大きいほど変化率が連続的又は段階的に小さくなるよう、該第二差分値に基づいて設定するように構成してもよい。   Further, the motor control device according to any one of claims 16 to 18, when, for example, as described in claim 30, when the elapsed time is determined to be shorter than the elapsed time lower limit threshold by the elapsed time determining means, the elapsed time is determined. Second difference value calculating means for calculating a second difference value that is the difference between the time lower limit threshold and the elapsed time is provided, and the change rate changing means calculates the amount of decrease when the change rate is reduced by calculating the second difference value. The change rate may be set based on the second difference value so that the rate of change decreases continuously or stepwise as the second difference value calculated by the means increases.

つまり、駆動検知信号出力時の上記経過時間が経過時間下限閾値よりどれだけ短いかによって変化率の減少量を設定するのである。このようにすれば、請求項29と同様、そのときの駆動対象の駆動速度に応じたきめ細かな変化率の設定が可能となり、駆動対象をより早く所望の速度(目標駆動速度)にすることが可能となる。   That is, the amount of change decrease is set according to how much the elapsed time at the time of driving detection signal output is shorter than the elapsed time lower limit threshold. In this way, similarly to the twenty-ninth aspect, it is possible to set a fine change rate according to the driving speed of the driving target at that time, and to make the driving target a desired speed (target driving speed) earlier. It becomes possible.

次に、請求項13記載のモータ制御装置は、モータにより駆動される駆動対象が一定量駆動される毎に、その旨を示す駆動検知信号を出力する駆動検知手段と、該駆動検知手段から駆動検知信号が出力される毎に、モータの駆動力を予め設定した初期駆動力から所定の周期で所定の増分量ずつ増加させるための、駆動力制御信号を出力する制御手段と、該制御手段からの駆動力制御信号に基づいてモータを回転駆動するモータ駆動手段とを備えたものである。そして、変化率変更手段が、駆動検知手段から駆動検知信号が出力される毎(つまり駆動対象が一定量駆動される毎)に、該出力時の駆動対象の駆動速度に応じて、駆動対象が目標駆動速度にて駆動されるよう、駆動力の変化率を変更する。   Next, a motor control device according to a thirteenth aspect of the present invention includes a drive detection means for outputting a drive detection signal indicating that every time a drive target driven by the motor is driven by a certain amount, and driving from the drive detection means. A control means for outputting a driving force control signal for increasing the driving force of the motor by a predetermined increment in a predetermined cycle from a preset initial driving force each time a detection signal is output; and Motor driving means for rotationally driving the motor based on the driving force control signal. Then, each time the change rate changing means outputs a drive detection signal from the drive detection means (that is, every time the drive target is driven by a certain amount), the drive target is changed according to the drive speed of the drive target at the time of output. The change rate of the driving force is changed so that the driving force is driven at the target driving speed.

このように構成されたモータ制御装置によれば、請求項2記載のモータ制御方法が実現され、請求項2と同様、モータ負荷の増加或いは減少等の変動が生じても安定して駆動対象を駆動することが可能となる。   According to the motor control apparatus configured as described above, the motor control method according to claim 2 is realized, and, similarly to claim 2, even if fluctuations such as increase or decrease in motor load occur, the drive target can be stably detected. It becomes possible to drive.

そしてこの場合、更に、例えば請求項19に記載のように、駆動検知信号が出力される毎に該出力時の前記駆動速度が予め設定した速度下限閾値より小さいか否かを判断する速度判断手段を備え、変化率変更手段は、速度判断手段にて速度下限閾値より小さいと判断された場合に変化率を増加させるようにしてもよい。   In this case, for example, as described in claim 19, every time a drive detection signal is output, a speed determination means for determining whether or not the drive speed at the time of output is smaller than a preset speed lower limit threshold value. And the change rate changing means may increase the change rate when it is determined by the speed determining means that the speed change means is smaller than the speed lower limit threshold.

また例えば、請求項20に記載のように、駆動検知信号が出力される毎に該出力時の駆動速度が予め設定した速度上限閾値より大きいか否かを判断する速度判断手段を備え、変化率変更手段は、速度判断手段にて速度上限閾値より大きいと判断された場合に変化率を減少させるようにしてもよい。   Further, for example, as described in claim 20, each time a drive detection signal is output, the vehicle is provided with speed determination means for determining whether or not the drive speed at the time of output is greater than a preset upper speed threshold, and the rate of change The changing unit may decrease the rate of change when the speed determining unit determines that the speed is greater than the upper speed threshold.

また例えば、請求項21に記載のように、速度判断手段は、駆動検知信号出力時の駆動対象の駆動速度が速度上限閾値より大きいか否かを判断すると共にその速度上限閾値より小さい速度下限閾値を下回っているか否かも判断し、変化率変更手段は、速度判断手段にて駆動対象の駆動速度が速度下限閾値を下回っていると判断された場合は変化率を増加させ、速度上限閾値より大きいと判断された場合は変化率を減少させるようにしてもよい。   Further, for example, as described in claim 21, the speed determining means determines whether or not the driving speed of the driving target at the time of driving detection signal output is larger than the speed upper threshold, and the speed lower threshold smaller than the speed upper threshold. The change rate changing means increases the change rate when the speed judging means determines that the drive speed of the drive target is below the speed lower limit threshold, and is larger than the speed upper limit threshold. If it is determined, the rate of change may be decreased.

上記のように構成された請求項19〜21いずれかに記載のモータ制御装置によれば、請求項5記載のモータ制御方法を実現でき、請求項5と同様、モータ負荷の変動によらず、より安定して駆動対象を駆動することが可能となる。   According to the motor control device according to any one of claims 19 to 21 configured as described above, the motor control method according to claim 5 can be realized, and, similarly to claim 5, regardless of fluctuations in motor load, It becomes possible to drive the drive target more stably.

そして、速度判断手段が速度上限閾値及び速度下限閾値の両方に基づく判断を行えるよう構成された請求項21記載のモータ制御装置は、更に、例えば請求項22に記載のように、変化率変更手段は、変化率の増加及び減少を駆動検知信号が前回出力された時の変化率に対して行い、駆動検知信号が出力された時、速度判断手段にて駆動速度が速度下限閾値以上であって且つ速度上限閾値以下と判断された場合は変化率を変更しないよう構成されたものであってもよい。   The motor control device according to claim 21, wherein the speed determination means is configured to make a determination based on both the speed upper limit threshold value and the speed lower limit threshold value. The rate of change is increased or decreased with respect to the rate of change when the drive detection signal was output last time, and when the drive detection signal is output, the speed determination means determines that the drive speed is equal to or greater than the speed lower limit threshold. And when it is judged that it is below a speed upper limit threshold value, it may be comprised so that a change rate may not be changed.

このように構成されたモータ制御装置によれば、速度下限閾値と速度上限閾値との間に所定の幅を持たせることで、変化率を増加させる場合、減少させる場合、および変更しない場合とをそれぞれ任意に設定することができるため、駆動対象の安定駆動を維持しつつ、変化率の設定変更条件をよりフレキシブルに設定することが可能となり、制御の自由度が広がる。   According to the motor control device configured as described above, by giving a predetermined width between the speed lower limit threshold and the speed upper limit threshold, the rate of change is increased, decreased, and not changed. Since each can be set arbitrarily, it is possible to set the change rate setting change condition more flexibly while maintaining the stable drive of the drive target, and the degree of freedom of control is expanded.

ここで、請求項19,21又は22のいずれかに記載のモータ制御装置についても、上述した請求項27に記載のように、変化率変更手段が変化率を増加させる場合の増加量を予め設定した一定の基準増加量としてもよい。   Here, also in the motor control device according to any one of claims 19, 21, and 22, as described in claim 27, an increase amount when the change rate changing unit increases the change rate is set in advance. It is also possible to use a certain reference increase amount.

また、請求項19,21又は22のいずれかに記載のモータ制御装置は、例えば請求項31に記載のように、速度判断手段によって駆動検知信号出力時の駆動速度が速度下限閾値より小さいと判断されたときに、速度下限閾値と該駆動速度との差である第一差分値を演算する第一差分値演算手段を備え、変化率変更手段は、変化率を増加させる場合の増加量を、第一差分値演算手段にて演算される第一差分値が大きいほど変化率が連続的又は段階的に大きくなるよう、該第一差分値に基づいて設定するように構成してもよい。   Further, in the motor control device according to any one of claims 19, 21, and 22, for example, as described in claim 31, the speed determination means determines that the drive speed when the drive detection signal is output is smaller than a speed lower limit threshold. A first difference value calculating means for calculating a first difference value that is a difference between the speed lower limit threshold value and the driving speed, and the change rate changing means is configured to increase the change rate when increasing the change rate, You may comprise so that it may set based on this 1st difference value so that a change rate may become large continuously or in steps, so that the 1st difference value calculated by a 1st difference value calculation means is large.

つまり、駆動検知信号検出時の駆動速度が速度下限閾値よりどれだけ小さいかによって変化率の増加量を設定するのである。このようにすれば、そのときの駆動対象の駆動速度に応じたきめ細かな変化率の設定変更が可能となり、駆動対象をより早く所望の速度(目標駆動速度)にすることが可能となる。   That is, the increase amount of the change rate is set according to how much the driving speed at the time of detecting the driving detection signal is smaller than the speed lower limit threshold. In this way, it is possible to finely change the setting of the change rate according to the drive speed of the drive object at that time, and to make the drive object a desired speed (target drive speed) earlier.

一方、請求項20〜22のいずれかに記載のモータ制御装置についても、上述した請求項28のように、変化率変更手段が変化率を減少させる場合の減少量を予め設定した一定の基準減少量としてもよい。   On the other hand, also in the motor control device according to any one of claims 20 to 22, as in the above-described claim 28, a constant reference decrease in which a decrease amount when the change rate changing means decreases the change rate is set in advance. It may be an amount.

また、請求項20〜22のいずれかに記載のモータ制御装置は、例えば請求項32に記載のように、速度判断手段によって駆動対象の駆動速度が速度上限閾値より大きいと判断されたときに、該駆動速度と速度上限閾値との差である第二差分値を演算する第二差分値演算手段を備え、変化率変更手段は、変化率を減少させる場合の減少量を、第二差分値演算手段にて演算される第二差分値が大きいほど変化率が連続的又は段階的に小さくなるよう、該第二差分値に基づいて設定するように構成してもよい。   The motor control device according to any one of claims 20 to 22, for example, as described in claim 32, when the speed determination means determines that the drive speed of the drive target is greater than the speed upper limit threshold, Second difference value calculating means for calculating a second difference value that is the difference between the drive speed and the speed upper limit threshold is provided, and the change rate changing means calculates the amount of decrease when the change rate is reduced by calculating the second difference value. The change rate may be set based on the second difference value so that the rate of change decreases continuously or stepwise as the second difference value calculated by the means increases.

つまり、駆動検知信号検出時の駆動速度が速度上限閾値よりどれだけ大きいかによって変化率の減少量を設定するのである。このようにすれば、そのときの駆動対象の駆動速度に応じたきめ細かな変化率の設定変更が可能となり、駆動対象をより早く所望の速度(目標駆動速度)にすることが可能となる。   That is, the decrease amount of the change rate is set according to how much the driving speed at the time of detecting the driving detection signal is larger than the speed upper limit threshold. In this way, it is possible to finely change the setting of the change rate according to the drive speed of the drive object at that time, and to make the drive object a desired speed (target drive speed) earlier.

次に、請求項14記載の発明は、モータにより駆動される駆動対象が一定量駆動される毎に、その旨を示す駆動検知信号を出力する駆動検知手段と、該駆動検知手段から駆動検知信号が出力される毎に、モータの駆動力を予め設定した初期駆動力から所定の周期で所定の増分量ずつ増加させるための、駆動力制御信号を出力する制御手段と、該制御手段からの駆動力制御信号に基づいてモータを回転駆動するモータ駆動手段とを備えたモータ制御装置である。そして、変化率変更手段が、駆動検知手段から駆動検知信号が出力される毎に、該出力時の駆動力に応じて、駆動対象が目標駆動速度にて駆動されるよう、駆動力の変化率を変更する。   Next, according to the fourteenth aspect of the present invention, there is provided a drive detection means for outputting a drive detection signal indicating that every time a drive target driven by the motor is driven by a certain amount, and a drive detection signal from the drive detection means. A control means for outputting a driving force control signal for increasing the driving force of the motor by a predetermined increment in a predetermined cycle from a preset initial driving force, and a drive from the control means The motor control device includes motor driving means for rotating the motor based on the force control signal. Then, every time the drive detection signal is output from the drive detection unit, the change rate change unit changes the drive force change rate so that the drive target is driven at the target drive speed according to the drive force at the time of output. To change.

このように構成されたモータ制御装置によれば、請求項3記載のモータ制御方法が実現され、請求項3と同様、モータ負荷の増加或いは減少等の変動が生じても安定して駆動対象を駆動することが可能となる。   According to the motor control apparatus configured as described above, the motor control method according to claim 3 is realized, and similarly to claim 3, even if fluctuations such as increase or decrease in motor load occur, the drive target can be stably detected. It becomes possible to drive.

そしてこの場合、更に、例えば請求項23に記載のように、駆動検知信号が出力される毎に該出力時の駆動力が予め設定した駆動力上限閾値より大きいか否かを判断する駆動力判断手段を備え、変化率変更手段は、この駆動力判断手段にて駆動力上限閾値より大きいと判断された場合に変化率を増加させるようにしてもよい。   In this case, for example, as described in claim 23, every time a drive detection signal is output, a driving force determination for determining whether or not the driving force at the time of output is greater than a preset driving force upper limit threshold value. And a change rate changing unit may increase the change rate when it is determined by the driving force determining unit that the driving force determining unit is larger than the driving force upper limit threshold.

また例えば、請求項24に記載のように、駆動検知信号が出力される毎に該出力時の駆動力が予め設定した駆動力下限閾値より小さいか否かを判断する駆動力判断手段を備え、変化率変更手段は、駆動力判断手段にて駆動力下限閾値より小さいと判断された場合に変化率を減少させるようにしてもよい。   Further, for example, as described in claim 24, each time a driving detection signal is output, the driving force determining means for determining whether or not the driving force at the time of output is smaller than a preset driving force lower limit threshold is provided. The change rate changing unit may decrease the change rate when the driving force determining unit determines that the driving force determining unit is smaller than the driving force lower limit threshold.

また例えば、請求項25に記載のように、駆動力判断手段は、駆動検知信号出力時の駆動力が駆動力下限閾値より小さいか否かを判断すると共にその駆動力下限閾値より大きい所定の駆動力上限閾値を越えているか否かを判断し、変化率変更手段は、駆動力判断手段にて駆動力上限閾値を越えていると判断された場合は変化率を増加させ、駆動力下限閾値より小さと判断された場合は変化率を減少させるようにしてもよい。   Further, for example, as described in claim 25, the driving force determination means determines whether or not the driving force at the time of driving detection signal output is smaller than the driving force lower limit threshold and predetermined driving larger than the driving force lower limit threshold. It is determined whether or not the force upper limit threshold is exceeded, and the change rate changing means increases the change rate when the drive force determining means determines that the drive force upper limit threshold is exceeded, and the change rate changing means If it is determined that the ratio is small, the rate of change may be decreased.

上記のように構成された請求項23〜25いずれかに記載のモータ制御装置によれば、請求項6記載のモータ制御方法を実現でき、請求項6と同様、モータ負荷の変動によらず、より安定して駆動対象を駆動することが可能となる。   According to the motor control device according to any one of claims 23 to 25 configured as described above, the motor control method according to claim 6 can be realized, and, similarly to claim 6, regardless of fluctuations in the motor load, It becomes possible to drive the drive target more stably.

そして、駆動力判断手段が駆動力上限閾値及び駆動力下限閾値の両方に基づく判断を行えるよう構成された請求項25記載のモータ制御装置は、更に、例えば請求項26に記載のように、変化率変更手段は、変化率の増加及び減少を、駆動検知信号が前回出力された時の変化率に対して行い、駆動検知信号が出力された時、駆動力判断手段にて駆動力が駆動力下限閾値以上であって且つ駆動力上限閾値以下と判断された場合は、変化率を変更しないように構成されたものであってもよい。   The motor control device according to claim 25, wherein the driving force determination means is configured to be able to make a determination based on both the driving force upper limit threshold and the driving force lower limit threshold. The rate changing means increases and decreases the rate of change with respect to the rate of change when the drive detection signal was output last time. When the drive detection signal is output, the drive force is determined by the drive force determination means. When it is determined that it is equal to or higher than the lower limit threshold and equal to or lower than the driving force upper limit threshold, the change rate may not be changed.

このように構成されたモータ制御装置によれば、駆動力下限閾値と駆動力上限閾値との間に幅を持たせることで、変化率を増加させる場合、減少させる場合、および変更しない場合とをそれぞれ任意に設定することができるため、駆動対象の安定駆動を維持しつつ、変化率の設定変更条件をよりフレキシブルに設定することが可能となり、制御の自由度が広がる。   According to the motor control device configured as described above, by providing a width between the driving force lower limit threshold and the driving force upper limit threshold, the rate of change is increased, decreased, and not changed. Since each can be set arbitrarily, it is possible to set the change rate setting change condition more flexibly while maintaining the stable drive of the drive target, and the degree of freedom of control is expanded.

ここで、請求項23,25又は26のいずれかに記載のモータ制御装置についても、上述した請求項27に記載のように変化率変更手段が変化率を増加させる場合の増加量を予め設定した一定の基準増加量としてもよい。   Here, also in the motor control device according to any one of claims 23, 25 and 26, an increase amount when the change rate changing means increases the change rate as described in claim 27 is set in advance. It may be a certain reference increase amount.

また、請求項23,25又は26のいずれかに記載のモータ制御装置は、例えば請求項33に記載のように、駆動力判断手段によって駆動検知信号出力時の駆動力が駆動力上限閾値より大きいと判断されたときに、該駆動力と駆動力上限閾値との差である第一差分値を演算する第一差分値演算手段を備え、変化率変更手段は、変化率を増加させる場合の増加量を、第一差分値演算手段にて演算される第一差分値が大きいほど変化率が連続的又は段階的に大きくなるよう、該第一差分値に基づいて設定するように構成してもよい。   In the motor control device according to any one of claims 23, 25, and 26, for example, as described in claim 33, the driving force when the driving detection signal is output by the driving force determination means is larger than the driving force upper limit threshold. The first difference value calculating means for calculating a first difference value that is the difference between the driving force and the driving force upper limit threshold when the change rate is determined to be increased when the change rate is increased. The amount may be set based on the first difference value so that the rate of change increases continuously or stepwise as the first difference value calculated by the first difference value calculating means increases. Good.

つまり、駆動検知信号出力時のモータの駆動力が駆動力上限閾値よりどれだけ大きいかによって変化率の増加量を設定するのである。このようにすれば、そのときの駆動対象の駆動速度に応じたきめ細かな変化率の設定変更が可能となり、駆動対象をより早く所望の速度(目標駆動速度)にすることが可能となる。   That is, the increase amount of the change rate is set according to how much the driving force of the motor when the driving detection signal is output is larger than the driving force upper limit threshold. In this way, it is possible to finely change the setting of the change rate according to the drive speed of the drive object at that time, and to make the drive object a desired speed (target drive speed) earlier.

一方、請求項24〜26のいずれかに記載のモータ制御装置についても、上述した請求項28のように、変化率変更手段が変化率を減少させる場合の減少量を予め設定した一定の基準減少量としてもよい。   On the other hand, in the motor control device according to any one of claims 24 to 26, as in the above-described claim 28, a constant reference decrease in which a decrease amount when the change rate changing means decreases the change rate is set in advance. It may be an amount.

また、請求項24〜26いずれかに記載のモータ制御装置は、例えば請求項34に記載のように、駆動力判断手段によって駆動検知信号出力時の駆動力が駆動力下限閾値より小さいと判断されたときに、駆動力下限閾値と該駆動力との差である第二差分値を演算する第二差分値演算手段を備え、変化率変更手段は、変化率を減少させる場合の減少量を、第二差分値演算手段にて演算される第二差分値が大きいほど変化率が連続的又は段階的に小さくなるよう、該第二差分値に基づいて設定するように構成してもよい。   In the motor control device according to any one of claims 24 to 26, for example, as described in claim 34, the driving force when the driving detection signal is output is determined by the driving force determination means to be smaller than the driving force lower limit threshold. The second difference value calculating means for calculating the second difference value that is the difference between the driving force lower limit threshold and the driving force, the change rate changing means, the amount of decrease when the change rate is reduced, You may comprise so that it may set based on this 2nd difference value so that a change rate may become small continuously or in steps, so that the 2nd difference value calculated by a 2nd difference value calculation means is large.

つまり、駆動検知信号出力時のモータの駆動力が駆動力下限閾値よりどれだけ小さいかによって変化率の減少量を設定するのである。このようにすれば、請求項33と同様、そのときの駆動対象の駆動速度に応じたきめ細かな変化率の設定変更が可能となり、駆動対象をより早く所望の速度(目標駆動速度)にすることが可能となる。   That is, the amount of decrease in the change rate is set according to how much the driving force of the motor when the driving detection signal is output is smaller than the driving force lower limit threshold. In this way, similarly to the thirty-third aspect, it becomes possible to finely change the setting of the change rate according to the driving speed of the driving target at that time, and to make the driving target a desired speed (target driving speed) earlier. Is possible.

そして、請求項15,17,18,19,21,22,23,25,26,27,29,31又は33のいずれかに記載のモータ制御装置における、変化率変更手段による変化率の増加は、例えば請求項35に記載のように、前記周期を短くすること及び前記増分量を増加させることの少なくとも一方により行うことができる。   Further, in the motor control device according to any one of claims 15, 17, 18, 19, 21, 21, 22, 23, 25, 26, 27, 29, 31 or 33, the increase in the change rate by the change rate changing means is For example, as described in claim 35, the period can be shortened and / or the increment can be increased.

この場合、請求項27記載のモータ制御装置における変化率変更手段は、請求項37に記載のように、変化率の増加を、前期周期を一定量短くすること及び前記増分量を一定量増加させることの少なくとも一方により行うこととなり、請求項29、31又は33のいずれかに記載のモータ制御装置における、変化率変更手段による変化率の増加は、請求項39に記載のように、第一差分値が大きいほど周期が連続的又は段階的に短くなるように該周期を設定すること、及び第一差分値が大きいほど増分量が連続的又は段階的に大きくなるように該増分量を設定することの少なくとも一方により行うこととなる。   In this case, the change rate changing means in the motor control device according to claim 27, as described in claim 37, increases the change rate by shortening the previous period by a fixed amount and increasing the increment by a fixed amount. In the motor control device according to any one of claims 29, 31 and 33, the increase in the change rate by the change rate changing means is the first difference as described in claim 39. Set the period so that the period becomes shorter continuously or stepwise as the value increases, and set the increment amount so that the increment amount increases continuously or stepwise as the first difference value increases This is done by at least one of the above.

更にこの場合、例えば請求項41に記載のように、変化率変更手段が、第一差分値に基づいて前記周期を設定する周期設定手段と、該周期設定手段により設定された周期が所定の周期下限値より短いか否かを判定する周期判定手段とを備え、該周期判定手段により周期下限値以上である旨が判定されたならばその設定された周期を用いることにより変化率の増加を行い、周期判定手段により周期下限値より短いと判定されたならば、周期を該周期下限値に設定変更すると共に、該周期下限値と、周期設定手段により設定された周期との差に応じて増分量を増加させることにより、変化率の増加を行うものとして構成されたものであってもよい。   Furthermore, in this case, for example, as described in claim 41, the change rate changing unit sets the cycle based on the first difference value, and the cycle set by the cycle setting unit is a predetermined cycle. Period determining means for determining whether or not it is shorter than the lower limit value. If it is determined by the period determining means that the period is equal to or greater than the lower limit value, the rate of change is increased by using the set period. If the cycle determining means determines that the cycle is shorter than the cycle lower limit value, the cycle is changed to the cycle lower limit value and increased according to the difference between the cycle lower limit value and the cycle set by the cycle setting means. It may be configured to increase the rate of change by increasing the amount.

つまり、第一差分値に基づいて設定された周期が周期下限値に満たない短いものであった場合は、周期は周期下限値に設定変更して、周期下限値と本来設定された周期との差に相当する変化率の増加分は、上記増分量を増加させることにより行うのである。   In other words, if the cycle set based on the first difference value is a short one that does not reach the cycle lower limit value, the cycle is changed to the cycle lower limit value, and the cycle lower limit value is set to the originally set cycle. The increment of the change rate corresponding to the difference is performed by increasing the increment amount.

従って、このように構成されたモータ制御装置によれば、設定された周期が非常に短くて実現困難な場合には増分量を増加させることで補うため、変化率の増加を確実に行うことが可能となる。   Therefore, according to the motor control device configured as described above, when the set cycle is very short and difficult to realize, the increase rate is compensated by increasing the increment amount, so that the rate of change can be reliably increased. It becomes possible.

また、請求項16〜18、請求項20〜22、請求項24〜26、請求項28、30、32又は34のいずれかに記載のモータ制御装置における、変化率変更手段による変化率の減少は、例えば請求項36に記載のように、前記周期を長くすること及び前記増分量を減少させることの少なくとも一方により行うことができる。   Further, in the motor control device according to any one of claims 16 to 18, claim 20 to 22, claim 24 to 26, claim 28, 30, 32 or 34, the change rate is reduced by the change rate changing means. For example, as described in claim 36, the period can be increased and / or the increment can be decreased.

この場合、請求項28記載のモータ制御装置における変化率変更手段は、請求項38に記載のように、変化率の減少を、前記周期を一定量長くすること及び前記増分量を一定量減少させることの少なくとも一方により行うこととなり、請求項30、32又は34のいずれかに記載のモータ制御装置における、変化率変更手段による変化率の減少は、請求項40に記載のように、第二差分値が大きいほど前記周期が連続的又は段階的に長くなるように該周期を設定すること、及び前記第二差分値が大きいほど前記増分量が連続的又は段階的に小さくなるように該増分量を設定することの少なくとも一方により行うこととなる。   In this case, the change rate changing means in the motor control device according to claim 28, as described in claim 38, reduces the change rate by increasing the period by a fixed amount and decreasing the increment by a fixed amount. In the motor control device according to any one of claims 30, 32 and 34, the decrease in the change rate by the change rate changing means is the second difference as described in claim 40. The period is set such that the period becomes longer continuously or stepwise as the value increases, and the increment amount decreases so that the increment amount decreases continuously or stepwise as the second difference value increases. This is performed by at least one of setting.

ここで、請求項12〜41いずれかに記載のモータ制御装置は、例えば請求項42に記載のように、モータ駆動手段が、入力されるPWM信号に対応した駆動力にてモータを回転駆動するよう構成されたものであって、制御手段が、駆動力制御信号としてPWMデューティ値を示すPWM信号を出力するよう構成されたものであって駆動検知信号が出力される毎にPWMデューティ値を上記初期駆動力に対応した初期PWMデューティ値から所定周期で所定のPWM増分量ずつ増加させるよう構成されたものであってもよい。モータの制御方法として、PWM制御方法は一般によく知られた、電力変換効率の優れた方法であるため、本発明(請求項12〜41)をPWM制御法によってモータ制御を行う場合に適用するとより効果的である。   Here, in the motor control device according to any one of claims 12 to 41, for example, as described in claim 42, the motor driving means rotationally drives the motor with a driving force corresponding to the input PWM signal. The control means is configured to output a PWM signal indicating a PWM duty value as a driving force control signal, and the PWM duty value is set each time a drive detection signal is output. It may be configured to increase the initial PWM duty value corresponding to the initial driving force by a predetermined PWM increment amount at a predetermined cycle. As a motor control method, the PWM control method is a well-known method with excellent power conversion efficiency. Therefore, the present invention (Claims 12 to 41) is more applicable when the motor control is performed by the PWM control method. It is effective.

そして、既述の請求項39記載のモータ制御装置が、上記のようにPWM制御によってモータの制御がなされるよう構成されている場合は、例えば請求項43に記載のように、 前記周期を、PWM信号を構成するパルスの幅の整数倍とし、変化率変更手段が、第一差分値に基づいて前期周期をパルスの幅の何倍分短くすべきかを表すパルス幅短縮量を演算する演算手段と、該演算手段により演算されたパルス幅短縮量の整数部分に基づいて周期を短く設定する周期短縮手段と、パルス幅短縮量の小数部分に応じてPWM増分量を増加させる増分量増加手段とを備えたものとして構成してもよい。   And when the motor control apparatus according to claim 39 is configured to control the motor by PWM control as described above, for example, as described in claim 43, the cycle is An arithmetic means for calculating a pulse width shortening amount representing an integral multiple of the width of the pulse constituting the PWM signal and indicating how many times the period of the previous period should be shortened based on the first difference value by the change rate changing means Period shortening means for setting the cycle short based on the integer part of the pulse width shortening amount calculated by the calculating means, and increment amount increasing means for increasing the PWM increment amount according to the decimal part of the pulse width shortening amount You may comprise as what was provided.

また、既述の請求項40記載のモータ制御装置が、上記(請求項42)のようにPWM制御によってモータの制御がなされるよう構成されている場合は、例えば請求項44に記載のように、前記周期を、PWM信号を構成するパルスの幅の整数倍とし、変化率変更手段が、第二差分値に基づいて前記周期をパルスの幅の何倍分長くすべきかを表すパルス幅増加量を演算する演算手段と、該演算手段により演算されたパルス幅増加量の整数部分に基づいて周期を長く設定する周期増加手段と、パルス幅増加量の小数部分に応じてPWM増分量を減少させる増分量減少手段とを備えたものとして構成してもよい。   Further, when the motor control device according to claim 40 described above is configured such that the motor is controlled by PWM control as described above (claim 42), for example, as described in claim 44, , The period is an integer multiple of the width of the pulse constituting the PWM signal, and the change rate change means indicates how many times the period of the pulse should be increased based on the second difference value Calculating means for calculating the period, period increasing means for setting a longer period based on the integer part of the pulse width increase calculated by the calculating means, and decreasing the PWM increment according to the fractional part of the pulse width increase You may comprise as what is provided with the increment amount reduction | decrease means.

即ち、PWMデューティ値を所定の増分量ずつ増加させる際の周期がそのPWM信号のパルス幅の整数倍であるが故に、周期の変更を細かいレベルで(連続的に)行うことが困難となり、延いては、周期の変更だけでPWM信号の変化率(駆動力の変化率)を細かく変更するのが困難となる。   That is, since the period when increasing the PWM duty value by a predetermined increment is an integral multiple of the pulse width of the PWM signal, it becomes difficult to change the period at a fine level (continuously). Therefore, it is difficult to finely change the rate of change of the PWM signal (rate of change of driving force) only by changing the cycle.

そこで、演算手段により得られたパルス幅短縮量のうち、整数部分については周期の短縮に反映させ、小数部分、即ち周期の短縮に反映できない部分については、増分量を増加させることで反映させるようにするのである。   Therefore, of the pulse width shortening amount obtained by the calculation means, the integer part is reflected in the shortening of the period, and the decimal part, that is, the part that cannot be reflected in the shortening of the period is reflected by increasing the increment. To do.

そのため、請求項43または請求項44に記載のモータ制御装置によれば、変化率の変更を、主に周期の変更で行うと共に、周期の変更だけでは困難な微変更分については増分量の変更で補うようにしているため、変化率の変更を精度よく行うことができる。   Therefore, according to the motor control device of claim 43 or claim 44, the change rate is changed mainly by changing the cycle, and the incremental amount is changed for a minute change that is difficult only by changing the cycle. Therefore, the change rate can be changed with high accuracy.

ところで、モータによる駆動対象の駆動開始時を考えると、駆動開始直後からちょうど上記一定量駆動したときに必ず駆動検知信号が出力されるとは限らない。即ち、駆動検知手段が例えばエンコーダにて構成されている場合であってエンコーダからのパルス信号が駆動検知信号として出力されるよう構成されている場合、駆動開始時の駆動対象の位置によっては、駆動開始後すぐにパルス信号(駆動検知信号)が出力されることも予想される。このような場合に、駆動速度が速いと誤認されて変化率が減少されてしまうと、モータの駆動力が初期駆動力からほとんど増加していない初期段階で十分な駆動力が得られなくなり、駆動対象の駆動速度を所望の速度で駆動するまでの時間が長くなってしまう。   By the way, considering the start of driving of the object to be driven by the motor, the drive detection signal is not always output when the fixed amount is driven just after the start of driving. That is, when the drive detection means is configured by an encoder, for example, and the pulse signal from the encoder is output as a drive detection signal, depending on the position of the drive target at the start of drive, the drive It is expected that a pulse signal (drive detection signal) is output immediately after the start. In such a case, if the drive rate is mistakenly recognized as being fast and the rate of change is reduced, sufficient drive force cannot be obtained at the initial stage when the drive force of the motor has hardly increased from the initial drive force. The time until the target drive speed is driven at a desired speed becomes long.

そこで、請求項12〜44いずれかに記載のモータ制御装置は、例えば請求項45に記載のように、変化率変更手段が、駆動対象の駆動開始後、駆動検知手段から最初に駆動検知信号が出力された時は変化率の変更を行わないように構成されたものであるとよい。このように構成されたモータ制御装置によれば、駆動開始後の最初の駆動検知信号に対しては駆動力の変化率を変化させない(低減させない)ため、起動時のトルクを十分に確保でき、駆動対象の駆動速度をより迅速に所望の目標駆動速度にすることが可能となる。   Therefore, in the motor control device according to any one of claims 12 to 44, for example, as described in claim 45, after the change rate changing unit starts driving the drive target, the drive detection signal is first output from the drive detection unit. It is preferable that the output rate is not changed when output. According to the motor control device configured as described above, since the change rate of the driving force is not changed (not reduced) with respect to the first drive detection signal after the start of driving, a sufficient torque at the time of starting can be secured, It becomes possible to make the drive speed of the drive target a desired target drive speed more quickly.

以下に、本発明の好適な実施形態を図面に基づいて説明する。
[第1実施形態]
図1は、本発明が適用されたモータ制御装置の概略構成を示すブロック図である。図1のモータ制御装置10は、例えば図34で説明したインクジェットプリンタに搭載され、キャリッジ102を駆動するモータ110(DCモータ)を制御するためのものである。そして、本実施形態では、モータ110の制御全体のうち、記録終了後に待機領域内でキャリッジ102が右側に移動してキャッピングが行われる際の微小速度制御について説明する。
Preferred embodiments of the present invention will be described below with reference to the drawings.
[First Embodiment]
FIG. 1 is a block diagram showing a schematic configuration of a motor control device to which the present invention is applied. The motor control device 10 in FIG. 1 is mounted on the ink jet printer described with reference to FIG. 34, for example, and controls a motor 110 (DC motor) that drives the carriage 102. In the present embodiment, of the entire control of the motor 110, a description will be given of minute speed control when the carriage 102 moves to the right side and capping is performed in the standby area after recording is completed.

本実施形態のモータ制御装置10によるモータ110の微小速度制御は、基本的には、図35で説明した制御方法と同様であり、駆動開始時はPWM値(本発明の駆動力に相当)を所定の駆動開始時PWM値(start_pwm1)に設定し、その後そのPWM値を一定周期(PWM値更新間隔)Tp毎に所定の駆動時PWM増分量(初期値は駆動時PWM初期増分量accel_param)ずつ増加させていく。そして、エンコーダエッジを検出してエンコーダエッジ検出信号(enc_trg)(本発明の駆動検知信号に相当)が出力されると、PWM値を再び初期値start_pwm1にリセットして、以後同様に一定周期TpでPWM値を増加させていく。   The micro speed control of the motor 110 by the motor control device 10 of this embodiment is basically the same as the control method described in FIG. 35, and the PWM value (corresponding to the driving force of the present invention) is set at the start of driving. A predetermined PWM value (start_pwm1) at the start of driving is set, and then the PWM value is incremented by a predetermined PWM increment amount (initial value is a driving PWM initial increment amount acc_param) every fixed period (PWM value update interval) Tp. Increase it. When the encoder edge is detected and an encoder edge detection signal (enc_trg) (corresponding to the drive detection signal of the present invention) is output, the PWM value is reset again to the initial value start_pwm1, and thereafter similarly at a constant cycle Tp. The PWM value is increased.

そして、本実施形態のモータ制御装置10が従来と大きく異なるのが、PWM値を一定周期Tpで増加させていく際の変化率を、accel_param/Tpに固定するのではなく、エンコーダエッジ検出毎に前回エッジ検出時から今回エッジ検出時までの時間であるエッジ間隔時間(enc_period)に応じて変更することである。   The motor control device 10 of the present embodiment is greatly different from the conventional one in that the rate of change when the PWM value is increased at a constant period Tp is not fixed to accel_param / Tp but every encoder edge detection. This is to change according to the edge interval time (enc_period) that is the time from the previous edge detection to the current edge detection.

その具体的方法として、本実施形態では、駆動時PWM増分量a_paramを、駆動時PWM初期増分量accel_paramに固定するのではなくエッジ間隔時間(enc_period)に応じて変化させるのである。このことを中心に、以下詳述する。   As a specific method, in the present embodiment, the driving PWM increment a_param is not fixed to the driving PWM initial increment accel_param, but is changed according to the edge interval time (enc_period). This will be described in detail below.

図1に示す如く、本実施形態のモータ制御装置10は、インクジェットプリンタ全体の制御を統括するCPU1と、モータ110の回転速度や回転方向等を制御するPWM信号を生成するASIC2と、ASIC2にて生成されたPWM信号に基づいてモータ110を駆動するモータ駆動ドライバ回路11とから構成されている。   As shown in FIG. 1, the motor control device 10 of the present embodiment includes a CPU 1 that controls the entire inkjet printer, an ASIC 2 that generates a PWM signal that controls the rotation speed and rotation direction of the motor 110, and the ASIC 2. The motor driving driver circuit 11 drives the motor 110 based on the generated PWM signal.

モータ駆動ドライバ回路11の詳細は図2に示す通りであり、4基のスイッチング素子S1〜S4によりHブリッジ回路が構成されたものである。このHブリッジ回路の各スイッチング素子S1〜S4が、ASIC2内の駆動用信号生成部8にて生成されたPWM信号によってオン・オフ制御されることにより、モータ110が駆動される。尚、各スイッチング素子S1〜S4は、例えばFET等の半導体スイッチング素子が用いられる。   The details of the motor drive driver circuit 11 are as shown in FIG. 2, and an H bridge circuit is configured by four switching elements S1 to S4. Each of the switching elements S1 to S4 of the H bridge circuit is on / off controlled by the PWM signal generated by the drive signal generation unit 8 in the ASIC 2, thereby driving the motor 110. In addition, semiconductor switching elements, such as FET, are used for each switching element S1-S4, for example.

ASIC2の内部には、モータ110の制御に用いる各種パラメータが格納される動作モード設定レジスタ群3が備えられている。この動作モード設定レジスタ群3は、モータ110を起動するための起動設定レジスタ21と、モータ110の回転方向を設定するための回転方向設定レジスタ22と、モータ110をPWM制御する際のPWM信号の周期(pwm_period)が設定されるPWM周期設定レジスタ23と、PWM値を増加させる周期Tpを決めるために必要となる既述の定加算タイミング(pwm_reload_count)が設定される定加算タイミング設定レジスタ24と、減速開始位置及び制動開始位置を設定するために必要な各種データが設定される位置設定レジスタ群25と、モータ110を駆動する際の各種PWM値が設定されるPWM値設定レジスタ群26と、周期Tp毎にPWM値を増加又は減少させる際の増分量・減分量が設定されるPWM増減量設定レジスタ群27と、PWM値を制限する各種データが設定される制限PWM設定レジスタ群28と、エンコーダエッジ検出後次のエッジ検出時までの間のPWM値の増分量である駆動時PWM増分量(a_param;初期値は既述のaccel_param)を補正するためのデータが設定される増分量補正値設定レジスタ群29と、エッジ検出時におけるエッジ間隔時間の長短判定に用いられる各閾値が設定されるエッジ間隔時間閾値設定レジスタ群30と、を備える。   The ASIC 2 includes an operation mode setting register group 3 in which various parameters used for controlling the motor 110 are stored. The operation mode setting register group 3 includes a start setting register 21 for starting the motor 110, a rotation direction setting register 22 for setting the rotation direction of the motor 110, and a PWM signal for PWM control of the motor 110. A PWM period setting register 23 in which the period (pwm_period) is set, a constant addition timing setting register 24 in which the above-described constant addition timing (pwm_reload_count) necessary for determining the period Tp for increasing the PWM value is set, A position setting register group 25 in which various data necessary for setting a deceleration start position and a braking start position are set, a PWM value setting register group 26 in which various PWM values for driving the motor 110 are set, and a cycle The increment / decrement amount when increasing or decreasing the PWM value is set for each Tp. PWM increase / decrease amount setting register group 27, limit PWM setting register group 28 in which various data for limiting the PWM value are set, and drive that is an increment amount of the PWM value after the detection of the encoder edge until the next edge detection Increment amount correction value setting register group 29 in which data for correcting the time PWM increment amount (a_param; initial value is the aforementioned accel_param) is set, and each threshold used for determining the length of the edge interval time at the time of edge detection The edge interval time threshold value setting register group 30 is set.

このうち、位置設定レジスタ群25には、減速開始位置(decel_pos)と、制動開始位置を決めるために用いられる3つの設定値である、制動開始位置(break_pos)、制動開始エンコーダ周期(set_enc_period)及び最大減速時間(set_decel_time)が、それぞれ設定される。本実施形態では、後述するように、エンコーダ105から得られる位置・周期情報に基づいて、制動開始位置に来たか、エンコーダエッジの周期が制動開始エンコーダ周期(set_enc_period)以上となったか、或いは減速開始後の経過時間が最大減速時間(set_decel_time)以上となったかの3条件のうちいずれか一つが成立した場合に、制動を開始するよう設定されている。   Among these, the position setting register group 25 includes a deceleration start position (decel_pos), a brake start position (break_pos), a brake start encoder period (set_enc_period), and three set values used for determining the brake start position. The maximum deceleration time (set_decel_time) is set. In the present embodiment, as described later, based on the position / cycle information obtained from the encoder 105, the brake start position has been reached, the cycle of the encoder edge has become equal to or greater than the brake start encoder cycle (set_enc_period), or the deceleration has started. The brake is set to start when any one of the three conditions for whether the subsequent elapsed time is equal to or greater than the maximum deceleration time (set_decel_time) is satisfied.

また、PWM値設定レジスタ群26には、駆動開始時のPWM値(start_pwm1)と、減速開始時のPWM値(start_pwm2)と、制動開始時のPWM値(start_pwm3)と、ブレーキ時のPWM値(stop_pwm)とが設定される。   The PWM value setting register group 26 includes a PWM value at the start of driving (start_pwm1), a PWM value at the start of deceleration (start_pwm2), a PWM value at the start of braking (start_pwm3), and a PWM value at the time of braking (start_pwm3). stop_pwm).

PWM増減量設定レジスタ群27には、通常駆動時(起動〜減速開始)の駆動時PWM増分量(a_param)の初期値である駆動時PWM初期増分量(accel_param)と、減速時のPWM減分量である減速時PWM減分量(decel_param)と、制動時のPWM増分量である制動時PWM増分量(break_param)とが設定される。また、制限PWM設定レジスタ群28には、PWM値の上限を示す最大PWM出力値(pwm_max_limit)と、PWM値の下限を示す最小PWM出力値(pwm_min_limit)とが設定される。   The PWM increase / decrease amount setting register group 27 includes a drive PWM initial increment (accel_param) that is an initial value of a drive PWM increment (a_param) during normal drive (start-up to deceleration start), and a PWM decrement during deceleration. The deceleration PWM decrement amount (decel_param) and the braking PWM increment amount (break_param), which are the PWM increment amounts during braking, are set. In addition, the maximum PWM output value (pwm_max_limit) indicating the upper limit of the PWM value and the minimum PWM output value (pwm_min_limit) indicating the lower limit of the PWM value are set in the limit PWM setting register group 28.

増分量補正値設定レジスタ群29には、エンコーダエッジ検出毎に次のエンコーダエッジ検出時までの駆動時PWM増分量a_paramを演算するために必要な変化率係数α及び補正定数varが設定される。   In the increment amount correction value setting register group 29, a change rate coefficient α and a correction constant var necessary for calculating the drive PWM increment amount a_param until the next encoder edge detection is set for each encoder edge detection.

また、エッジ間隔時間閾値設定レジスタ群30には、エンコーダエッジ検出毎に次のエンコーダエッジ検出時までの駆動時PWM増分量を前回エンコーダエッジ検出時に演算されたa_paramから増加させるべきか否かを判断する基準となるエッジ間隔過剰検出閾値(det_period_max)と、逆に減少させるべきか否かを判断する基準となるエッジ間隔不足検出閾値(det_period_min)とが設定される。尚、エッジ間隔過剰検出閾値は本発明の経過時間上限閾値に相当し、エッジ間隔不足検出閾値は本発明の経過時間下限閾値に相当する。   Further, the edge interval time threshold value setting register group 30 determines whether or not the drive PWM increment until the next encoder edge detection is increased from a_param calculated at the previous encoder edge detection every time the encoder edge is detected. An edge interval excess detection threshold (det_period_max) serving as a reference to be used, and an edge interval insufficient detection threshold (det_period_min) serving as a reference for determining whether or not to decrease are set. The edge interval excess detection threshold corresponds to the elapsed time upper limit threshold of the present invention, and the edge interval insufficient detection threshold corresponds to the elapsed time lower limit threshold of the present invention.

エンコーダエッジ検出部13は、エンコーダ105からのパルス信号を取り込んでそのパルス信号のエッジ(例えば立ち上がりエッジ又は立ち下がりエッジのいずれか、若しくはその両方など)を検出してエンコーダエッジ検出信号(enc_trg)を出力するものである。   The encoder edge detection unit 13 takes in the pulse signal from the encoder 105, detects the edge of the pulse signal (for example, either the rising edge or the falling edge, or both), and outputs the encoder edge detection signal (enc_trg). Output.

位置カウンタ14は、エンコーダエッジ検出部13が検出したエンコーダエッジをカウントすることにより、キャリッジ102の位置をそのカウント値であるエンコーダエッジカウント値(enc_count)として検出する。   The position counter 14 counts the encoder edge detected by the encoder edge detection unit 13, thereby detecting the position of the carriage 102 as an encoder edge count value (enc_count) that is the count value.

周期・速度計測部16は、エンコーダエッジ検出部13からのエンコーダエッジ検出信号(enc_trg)に基づいて、そのエンコーダエッジ検出信号の周期であるエッジ間隔時間(enc_period)、及びキャリッジ102の駆動速度(enc_velocity)を演算し出力する。   Based on the encoder edge detection signal (enc_trg) from the encoder edge detection unit 13, the period / speed measurement unit 16 determines the edge interval time (enc_period) that is the period of the encoder edge detection signal and the driving speed (enc_velocity) of the carriage 102. ) Is calculated and output.

ここで、エンコーダ105からのパルス信号に対する、エンコーダエッジ検出信号と、エンコーダエッジカウント値と、エッジ間隔時間と、駆動速度との関係について、図3に基づいて説明する。図示の如く、エンコーダ105は位相の異なる二種類のパルス信号を出力するよう構成されており、このうち一方(A相)のエッジが立ち上がることによって、エンコーダエッジ検出部13からエンコーダエッジ検出信号(enc_trg)が出力される。   Here, the relationship among the encoder edge detection signal, the encoder edge count value, the edge interval time, and the driving speed with respect to the pulse signal from the encoder 105 will be described with reference to FIG. As shown in the figure, the encoder 105 is configured to output two types of pulse signals having different phases, and when one (A phase) edge rises, the encoder edge detection unit 13 outputs an encoder edge detection signal (enc_trg). ) Is output.

そして、このエンコーダエッジ検出信号に基づき、位置カウンタ14にてエンコーダエッジカウント値(enc_count)がカウントされる。また、周期・速度計測部16でも、エンコーダエッジ検出信号に基づいて、図示の如くエッジ間隔時間(enc_period)が得られ、その得られた周期及びエンコーダA相の図示しないスリットの間隔とに基づいて、駆動速度(enc_velocity)が得られる。   Based on the encoder edge detection signal, the position counter 14 counts the encoder edge count value (enc_count). Further, the period / speed measuring unit 16 also obtains an edge interval time (enc_period) as shown in the figure based on the encoder edge detection signal, and based on the obtained period and the slit interval (not shown) of the encoder A phase. The driving speed (enc_velocity) is obtained.

加算タイミング生成部18は、PWM周期設定レジスタ23からのPWM周期(pwm_period)と定加算タイミング設定レジスタ24からの定加算タイミング(pwm_reload_count)とエンコーダエッジ検出部13からのエンコーダエッジ検出信号(enc_trg)とに基づいて、PWM値を上記周期Tpで増加させていくためのタイミング情報を生成して出力PWMデューティ生成部4へ出力する。   The addition timing generation unit 18 includes a PWM cycle (pwm_period) from the PWM cycle setting register 23, a constant addition timing (pwm_reload_count) from the constant addition timing setting register 24, and an encoder edge detection signal (enc_trg) from the encoder edge detection unit 13. Based on, timing information for increasing the PWM value at the period Tp is generated and output to the output PWM duty generation unit 4.

領域判定部15は、位置カウンタ14からの上記カウント数(enc_count)と、周期・速度計測部16からの周期・速度信号と、位置設定レジスタ群25に設定された各設定値とに基づいて、通常駆動させる領域にいるのか、減速させるべき領域にいるのか、或いは制動をかけるべき領域にいるのかを判断する。なお、その内部には減速時間計測タイマ15a(decel_timer)が設けられており、減速開始と共にこのタイマがスタートする。そして、計測時間が最大減速時間(set_decel_time)以上となったときにまだ制動を開始していなければ、制動を開始する。   Based on the count number (enc_count) from the position counter 14, the period / speed signal from the period / speed measurement unit 16, and the set values set in the position setting register group 25, the area determination unit 15 It is determined whether the vehicle is in a normal driving region, a deceleration region, or a braking region. In addition, a deceleration time measuring timer 15a (decel_timer) is provided therein, and this timer starts with the start of deceleration. If the braking has not started yet when the measured time becomes equal to or longer than the maximum deceleration time (set_decel_time), the braking is started.

PWM増分量補正部6は、エンコーダエッジ検出によるPWM値のリセット毎に、出力PWMデューティ生成部4に対し、そのリセット時以降の駆動時PWM増分量a_paramを補正(変更)すべきか否かの情報、或いは、補正すべき場合に具体的にどの程度補正すべきかを示す補正データを生成して出力するものである。   The information about whether or not the PWM increment amount correction unit 6 should correct (change) the drive PWM increment amount a_param after the reset time with respect to the output PWM duty generation unit 4 every time the PWM value is reset by detecting the encoder edge. Alternatively, correction data indicating how much correction is to be performed when it is to be corrected is generated and output.

本実施形態では、基本的には駆動時PWM増分量a_paramがその初期値である駆動時PWM初期増分量(accel_param)に設定されるが、エンコーダエッジ検出時のエッジ間隔時間(enc_period)、即ち前回エッジ検出時から今回エッジ検出時までの時間がエッジ間隔過剰検出閾値(det_period_max)より大きい場合は、駆動時PWM増分量(a_param)を前回までの値から所定量だけ増加させるようにしている。また、エンコーダエッジ検出時のエッジ間隔時間(enc_period)がエッジ間隔不足検出閾値(det_period_min)より小さい場合は、駆動時PWM増分量(a_param)を前回までの値から所定量だけ減少させるようにしている。   In this embodiment, basically, the drive PWM increment a_param is set to the drive PWM initial increment (accel_param), which is the initial value, but the edge interval time (enc_period) at the time of encoder edge detection, that is, the previous time. When the time from the edge detection to the current edge detection is larger than the edge interval excess detection threshold (det_period_max), the drive PWM increment (a_param) is increased from the previous value by a predetermined amount. Further, when the edge interval time (enc_period) at the time of encoder edge detection is smaller than the edge interval shortage detection threshold (det_period_min), the drive PWM increment amount (a_param) is decreased by a predetermined amount from the previous value. .

出力PWMデューティ生成部4は、モータ110を駆動させるのに必要なPWM信号のPWM値を示すデータを生成して出力するものであり、PWM値設定レジスタ群26、PWM増減量設定レジスタ群27及び制限PWM設定レジスタ群28の各レジスタの設定値と、加算タイミング生成部18からのタイミング情報と、エンコーダエッジ検出部13からのエンコーダエッジ検出信号(enc_trg)と、領域判定部15からの領域情報とに基づいて、通常駆動時、減速時、制動時、ブレーキ(停止)時のそれぞれにおけるPWM値を生成する。   The output PWM duty generation unit 4 generates and outputs data indicating the PWM value of the PWM signal necessary for driving the motor 110, and includes a PWM value setting register group 26, a PWM increase / decrease amount setting register group 27, and the like. The set value of each register of the limited PWM setting register group 28, the timing information from the addition timing generation unit 18, the encoder edge detection signal (enc_trg) from the encoder edge detection unit 13, and the region information from the region determination unit 15 Based on the above, PWM values are generated for normal driving, deceleration, braking, and braking (stop).

そして、本実施形態では更に、エンコーダエッジ検出毎に、駆動時PWM増分量(a_param)を補正すべきか否かの情報、或いは、補正すべき場合に具体的にどの程度補正すべきかを示す補正データをPWM増分量補正部6から取得し、必要に応じて駆動時PWM増分量の補正演算を行う。その具体的演算方法については後述する。   Further, in the present embodiment, each time an encoder edge is detected, information on whether or not the PWM increment amount (a_param) at the time of driving should be corrected, or correction data indicating how much correction should be performed when it should be corrected. Is obtained from the PWM increment correction unit 6 and the drive PWM increment is corrected as necessary. The specific calculation method will be described later.

駆動用信号生成部8は、出力PWMデューティ生成部4からのPWM値及び回転方向設定レジスタ22に設定された回転方向に応じたPWM信号を生成してモータ駆動ドライバ回路11へ出力する。これにより、モータ駆動ドライバ回路11がモータ110を駆動し、モータ110は設定されたPWM値に対応した所望の駆動力にて駆動される。各種信号処理部17は、エラー処理やCPU1に対する割り込み信号出力などを行うものである。この割り込み信号については後述する。   The drive signal generation unit 8 generates a PWM signal corresponding to the PWM value from the output PWM duty generation unit 4 and the rotation direction set in the rotation direction setting register 22, and outputs the PWM signal to the motor drive driver circuit 11. Accordingly, the motor drive driver circuit 11 drives the motor 110, and the motor 110 is driven with a desired driving force corresponding to the set PWM value. The various signal processing units 17 perform error processing, interrupt signal output to the CPU 1, and the like. This interrupt signal will be described later.

クロック生成部12は、エンコーダ105からのパルス信号よりも十分に短い周期のクロック信号を生成して、当該ASIC2内の各部に供給する。
上記のように構成された本実施形態のモータ制御装置10におけるモータ110の制御について、図4及び図5に基づいて説明する。図4及び図5はいずれも、本実施形態のモータ制御例を示す説明図であり、このうち図4はモータ110の負荷が増加していく場合の制御例、図5はモータ110の負荷が減少していく場合の制御例である
まず、図4に示す如く、駆動開始時のPWM初期値はstart_pwm1が設定され、その後、図36に示したように一定周期Tpでa_param(駆動開始時はaccel_param)ずつ増加していく。そして、エンコーダエッジが検出される前にPWM値がpwm_max_limitに達した場合は、その後エッジ検出まではそのpwm_max_limitに保持される。
The clock generation unit 12 generates a clock signal having a period sufficiently shorter than the pulse signal from the encoder 105 and supplies the clock signal to each unit in the ASIC 2.
Control of the motor 110 in the motor control apparatus 10 of the present embodiment configured as described above will be described with reference to FIGS. 4 and 5. 4 and 5 are explanatory diagrams showing examples of motor control according to the present embodiment, in which FIG. 4 shows a control example when the load on the motor 110 increases, and FIG. 5 shows the load on the motor 110. First, as shown in FIG. 4, the PWM initial value at the start of driving is set to start_pwm1, and then a_param (at the start of driving) at a constant period Tp as shown in FIG. (accel_param)). If the PWM value reaches pwm_max_limit before the encoder edge is detected, the PWM value is held at the pwm_max_limit until the edge is detected thereafter.

そして、エンコーダエッジが検出されるとPWM値はリセットされ、再び駆動開始時PWM値(start_pwm1)が設定されるのだが、本実施形態では、駆動開始後最初にエンコーダエッジを検出したときは、駆動時PWM増分量(a_param)の変更は行わない。つまり、駆動時PWM初期増分量(accel_param)のままとする。そして、2回目以降のエッジ検出時から、そのエッジ検出時のエッジ間隔時間に基づいて、以後の駆動時PWM増分量が設定される。   When the encoder edge is detected, the PWM value is reset and the drive start PWM value (start_pwm1) is set again. In this embodiment, when the encoder edge is detected for the first time after the drive is started, the drive is started. The hourly PWM increment amount (a_param) is not changed. That is, the PWM initial increment amount during driving (accel_param) remains unchanged. Then, the subsequent PWM increment is set on the basis of the edge interval time at the time of edge detection after the second and subsequent edge detection.

具体的には、図4における駆動開始後2回目のエンコーダエッジ検出時(時刻t1)、その直前のエッジ間隔時間T1がエッジ間隔過剰検出閾値(det_period_max)を越えている。そのため、リセット後の駆動時PWM増分量(a_param)を初期値accel_paramから所定量増加する補正演算がなされる。これにより、PWM値の変化率が増加されることとなる。   Specifically, at the second encoder edge detection after the start of driving in FIG. 4 (time t1), the immediately preceding edge interval time T1 exceeds the edge interval excess detection threshold value (det_period_max). Therefore, a correction operation is performed to increase the drive PWM increment (a_param) after reset by a predetermined amount from the initial value accel_param. As a result, the rate of change of the PWM value is increased.

その後、駆動速度が上昇し、エンコーダエッジ検出時のエッジ間隔時間がdet_period_maxより小さくなっても、エッジ間隔不足検出閾値(det_period_min)を越えている限り、前回までのa_paramがそのまま保持される。そのため、キャリッジ102の駆動速度が急に低下することなく、所望の駆動速度を維持することができる。   Thereafter, even if the driving speed increases and the edge interval time at the time of encoder edge detection becomes smaller than det_period_max, as long as the edge interval shortage detection threshold (det_period_min) is exceeded, a_param up to the previous time is held as it is. Therefore, the desired driving speed can be maintained without abruptly decreasing the driving speed of the carriage 102.

一方、モータ負荷が大きくなって駆動速度が低下し、時刻t2におけるエッジ間隔時間T6が再びエッジ間隔過剰検出閾値(det_period_max)を越えると、その後の駆動時PWM増分量(a_param)は、前回までのa_paramに対してさらに所定量増加される。これによりPWM値の変化率もさらに増加されることとなる。   On the other hand, when the motor load increases and the drive speed decreases and the edge interval time T6 at time t2 again exceeds the edge interval excess detection threshold (det_period_max), the subsequent PWM increment amount (a_param) during the drive is A predetermined amount is further increased with respect to a_param. As a result, the rate of change of the PWM value is further increased.

そして、減速開始位置(decel_pos)に来ると、PWM初期値はstart_pwm2に設定され、その後、一定周期Tp毎に減速時PWM減分量(decel_param)ずつ減少していく。その後、既述の3つの制動開始条件のうちいずれか一つでも満たされると、PWM値をstart_pwm3に設定することにより制動が開始され、一定周期Tp毎に制動時PWM増分量(break_param)ずつ増加(マイナス方向に)していく。   When the vehicle reaches the deceleration start position (decel_pos), the PWM initial value is set to start_pwm2, and thereafter, the PWM decrement amount during deceleration (decel_param) is decreased every fixed period Tp. After that, when any one of the above-described three braking start conditions is satisfied, the braking is started by setting the PWM value to start_pwm3, and increases by a braking PWM increment amount (break_param) at a constant period Tp. (In the negative direction)

なお、PWM値がマイナスの範囲にあるときのモータ駆動ドライバ回路11の動作は、具体的には、Hブリッジ回路を構成する4つのスイッチング素子S1〜S4(図2参照)のうち、グランドに接続された二つのスイッチング素子S2,S4のみを同時にオン・オフすることにより行う。即ち、両スイッチング素子S2,S4が共にオンとなった状態で制動がかかるため、そのオンデューティ比によって制動力を制御することができる。もちろん、PWM値がマイナスの範囲にあるときのスイッチング動作は、スイッチング素子S2,S4ではなく、スイッチング素子S1,S3のオン・オフでも所望の制御動作が可能である。   The operation of the motor drive driver circuit 11 when the PWM value is in a negative range is specifically connected to the ground among the four switching elements S1 to S4 (see FIG. 2) constituting the H bridge circuit. This is done by simultaneously turning on and off only the two switching elements S2 and S4. That is, since braking is applied in a state where both the switching elements S2 and S4 are both turned on, the braking force can be controlled by the on-duty ratio. Of course, the switching operation when the PWM value is in the negative range allows the desired control operation even when the switching elements S1 and S3 are turned on / off instead of the switching elements S2 and S4.

従って、制動開始後は、両スイッチング素子S2,S4のオン比率が徐々に上昇していき、PWM値がstop_pwmとなったときに、常時オン状態、つまりモータ110が両スイッチング素子S2,S4を介して常時短絡された状態となり、駆動対象(ここではキャリッジ102)が停止することになる。   Therefore, after the braking is started, the ON ratio of both switching elements S2 and S4 gradually increases, and when the PWM value becomes stop_pwm, the motor 110 is always on, that is, the motor 110 passes through both switching elements S2 and S4. As a result, a short-circuited state is established, and the drive target (here, the carriage 102) stops.

次に、図5の負荷が減少する場合について説明する。この場合において、時刻t1でPWM値の変化率を増加(駆動時PWM増分量を増加)させるところまでは、図4で説明した制御と全く同じである。   Next, the case where the load of FIG. 5 decreases will be described. In this case, the control up to increasing the change rate of the PWM value at time t1 (increasing the PWM increment during driving) is exactly the same as the control described in FIG.

時刻t1を過ぎてからモータ負荷が徐々に減少していくと、モータ110の駆動速度が高速化していくため、エンコーダエッジ検出時のエッジ間隔時間(enc_period)は小さくなっていく。そして、時刻t2におけるエンコーダエッジ検出時には、エッジ間隔時間T6はエッジ間隔不足検出閾値(det_period_min)より小さくなっている。   As the motor load gradually decreases after the time t1, the drive speed of the motor 110 increases, and the edge interval time (enc_period) at the time of encoder edge detection becomes shorter. When the encoder edge is detected at time t2, the edge interval time T6 is smaller than the edge interval shortage detection threshold (det_period_min).

そこで、本実施形態では、時刻t2以降の駆動時PWM増分量(a_param)を、時刻t2の前までのa_paramより小さく補正することで、PWM値の変化率を減少させる。つまり、負荷が軽くて速度過大になるおそれがあるため、PWM値の変化率を小さくして速度を抑制するわけである。   Therefore, in the present embodiment, the PWM increment rate (a_param) after time t2 is corrected to be smaller than a_param before time t2, thereby reducing the change rate of the PWM value. That is, since the load is light and the speed may be excessive, the rate of change of the PWM value is reduced to suppress the speed.

駆動時PWM増分量を変化させることによりPWM値の変化率を増減することについて、図6に基づいて補足説明する。図6(a)は初期状態を示しており、駆動時PWM増分量(a_param)は、その初期値であるaccel_paramである。破線は、初期状態でのPWM値の変化率(傾き)を示している。   A supplementary explanation will be given on increasing / decreasing the rate of change of the PWM value by changing the PWM increment during driving based on FIG. FIG. 6A shows an initial state, and the drive PWM increment amount (a_param) is the initial value accel_param. The broken line indicates the change rate (slope) of the PWM value in the initial state.

この状態からa_paramを増加させてa_param>accel_paramとすると、図6(b)に示す如く、PWM値の変化率(傾き)は一点鎖線で表したように増加する。逆に、a_paramを減少させてa_param<accel_paramとすると、図6(c)に示す如く、PWM値の変化率(傾き)は一点鎖線で表したように減少する。   When a_param is increased from this state to a_param> accel_param, as shown in FIG. 6B, the change rate (slope) of the PWM value increases as represented by a one-dot chain line. Conversely, if a_param is decreased to a_param <accel_param, the rate of change (slope) of the PWM value decreases as shown by the alternate long and short dash line, as shown in FIG.

そして、駆動時PWM増分量(a_param)を増加或いは減少させるための補正演算は、次式(1)で表される。
a_param=a_param*(1±α*var)・・・(1)
但し、左辺のa_paramは変化後の駆動時PWM増分量、右辺のa_paramは変化前の駆動時PWM増分量、変化率係数α=1、補正定数varは任意の定数であり、右辺括弧内の演算式における加減算部分は、PWM値の変化率を増加させるときは加算とし、逆に変化率を減少させるときは減算とする。
Then, the correction calculation for increasing or decreasing the drive PWM increment (a_param) is expressed by the following equation (1).
a_param = a_param * (1 ± α * var) (1)
However, the left side a_param is the drive PWM increment after change, the right side a_param is the drive PWM increment before change, the change rate coefficient α = 1, the correction constant var is an arbitrary constant, and the calculation in the right parenthesis The addition / subtraction part in the equation is addition when increasing the rate of change of the PWM value, and subtracting when decreasing the rate of change.

上記式(1)による補正演算は出力PWMデューティ生成部4にて行われるが、このうち「±α*var」の演算結果は、PWM増分量補正部6にて行われ、出力PWMデューティ生成部4へ入力される。   The correction calculation according to the above formula (1) is performed by the output PWM duty generation unit 4, and among these, the calculation result of “± α * var” is performed by the PWM increment correction unit 6, and the output PWM duty generation unit 4 is input.

尚、上記式(1)の右辺において、「a_param*α*var」で得られる値が本発明の基準増加量に相当し、「a_param*(−α*var)」で得られる値が本発明の基準減少量に相当する。   In the right side of the above formula (1), the value obtained by “a_param * α * var” corresponds to the reference increase amount of the present invention, and the value obtained by “a_param * (− α * var)” is the present invention. It corresponds to the standard decrease amount.

次に、本実施形態のモータ制御装置10における、CPU1が実行する処理、及び、ASIC2にて実行される処理について、図7〜図11に基づいて説明する。まず、図7は、CPU1が実行するASIC設定処理を示すフローチャートである。インクジェットプリンタにおいて記録動作が完了し、キャリッジ102が待機領域内で一旦停止した後、ホームポジションに移動するために本処理(図7〜図11)が実行される。   Next, the process executed by the CPU 1 and the process executed by the ASIC 2 in the motor control device 10 of the present embodiment will be described with reference to FIGS. First, FIG. 7 is a flowchart showing an ASIC setting process executed by the CPU 1. After the recording operation is completed in the ink jet printer and the carriage 102 is temporarily stopped in the standby area, this processing (FIGS. 7 to 11) is executed to move to the home position.

このASIC設定処理が開始されると、まずステップ(以下「S」と略す)110にて、動作モード設定レジスタ群2内の各レジスタが設定される。具体的な設定項目は、図7に示す通りである。その後、S120にて、停止割り込み許可をASIC2へ出力する。この停止割り込み許可信号を受けたASIC2は、後述する図11の割り込み信号生成処理の際に停止割り込み信号を出力可能となる。   When this ASIC setting process is started, first, in step (hereinafter abbreviated as “S”) 110, each register in the operation mode setting register group 2 is set. Specific setting items are as shown in FIG. Thereafter, in S120, stop interrupt permission is output to ASIC2. The ASIC 2 that has received the stop interrupt permission signal can output a stop interrupt signal during an interrupt signal generation process of FIG.

そして、S130で起動設定レジスタ21をセットすることで、モータ110の駆動、延いてはキャリッジ102の駆動が開始される。その後のモータ110の制御は、基本的にASIC2が行い、CPU1は、S140にて停止割り込み信号の待機を行う。そして、後述する図11のS990の処理により停止割り込み信号が出力されると、S140で肯定判定されてS150に進み、停止割り込みフラグをクリアすると共に以後割り込み信号が入ってこないよう、割り込みマスク処理を行う。   Then, by setting the activation setting register 21 in S130, the driving of the motor 110, and thus the driving of the carriage 102, is started. Subsequent control of the motor 110 is basically performed by the ASIC 2, and the CPU 1 waits for a stop interrupt signal in S140. Then, when a stop interrupt signal is output in the process of S990 in FIG. 11 described later, an affirmative determination is made in S140 and the process proceeds to S150 to clear the stop interrupt flag and perform an interrupt mask process so that no interrupt signal will be input thereafter. Do.

次に、ASIC2で実行されるモータ110の制御について説明する。なお、ASIC2によるモータ制御は周知の如くハードウェアの動作としてなされるものであるが、ここでは理解を容易にするため、ハードウェアの動作をフローチャートにて説明する。   Next, the control of the motor 110 executed by the ASIC 2 will be described. The motor control by the ASIC 2 is performed as a hardware operation as is well known, but here, the hardware operation will be described with a flowchart for easy understanding.

まず図8に、モータ110の起動から減速開始までの通常駆動処理を示す。CPU1にて起動設定レジスタ21がセットされると、まずS210にて、駆動時PWM増分量を示す変数a_paramにその初期値である駆動時PWM初期増分量(accel_param)がセットされ、定加算タイミングを示す変数prcntにその初期値であるpwm_reload_countがセットされる。更に、start_pwm1が、実際に出力PWMデューティ生成部4から出力されるPWM値であるpwm_outにセットされて、そのPWM値の出力が開始される。   First, FIG. 8 shows normal drive processing from the start of the motor 110 to the start of deceleration. When the start setting register 21 is set by the CPU 1, first, in S210, the initial PWM drive increment (accel_param), which is the initial value, is set in the variable a_param indicating the drive PWM increment, and the constant addition timing is set. The initial value pwm_reload_count is set to the variable prcnt shown. Furthermore, start_pwm1 is set to pwm_out which is a PWM value actually output from the output PWM duty generation unit 4, and output of the PWM value is started.

続くS220では、S210でセットされた定加算タイミングprcntに基づき、次式Tp=pwm_period*(prcnt+1)により、PWM値更新間隔Tpが求められる。この演算は加算タイミング生成部18によりなされる。   In subsequent S220, based on the constant addition timing prcnt set in S210, the PWM value update interval Tp is determined by the following equation Tp = pwm_period * (prcnt + 1). This calculation is performed by the addition timing generation unit 18.

続くS230では、enc_trgが1か否か、つまりエンコーダエッジが検出されたか否かが判断され、検出されたと判断されるまではS240に進むことになる。S240では、pwm_outの更新タイミングであるか否かが判断される。この判断は即ち、一定周期TpのPWM値の更新を行うタイミングであるか否かの判断であり、加算タイミング生成部18からのタイミング情報に基づいて判断される。PWM値が前回更新(つまりaccel_paramだけ増加)されてからTpが経過しない間は否定判定されてS230に戻るが、Tpが経過してPWM値の更新タイミングになると、S250に進む。   In subsequent S230, it is determined whether or not enc_trg is 1, that is, whether or not an encoder edge has been detected, and the process proceeds to S240 until it is determined that it has been detected. In S240, it is determined whether it is the update timing of pwm_out. In other words, this determination is a determination as to whether or not it is the timing for updating the PWM value of the constant period Tp, and is determined based on the timing information from the addition timing generation unit 18. While Tp has not elapsed since the PWM value was updated last time (that is, increased by accel_param), a negative determination is made and the process returns to S230. However, when Tp has elapsed and the PWM value update timing is reached, the process proceeds to S250.

S250では、現在のpwm_outにa_param(初期状態ではaccel_param)を加算する演算が行われることにより、その演算結果が新たなpwm_outとなる。そして、続くS260にて、その新たなpwm_outが最大PWM出力値(pwm_max_limit)より大きいか否かが判断される。このとき、pwm_max_limit以下であればS230に戻ることになるが、pwm_max_limitを越えていたら、S270に進み、現在のpwm_outにpwm_max_limitがセットされる。つまり、pwm_outは最大pwm_max_limitに制限されるのである。   In S250, an operation of adding a_param (accel_param in the initial state) to the current pwm_out is performed, and the calculation result becomes a new pwm_out. Then, in subsequent S260, it is determined whether or not the new pwm_out is larger than the maximum PWM output value (pwm_max_limit). At this time, if it is equal to or less than pwm_max_limit, the process returns to S230. If it exceeds pwm_max_limit, the process proceeds to S270, and pwm_max_limit is set to the current pwm_out. That is, pwm_out is limited to the maximum pwm_max_limit.

そして、エンコーダエッジが検出されると、S230からS280に進み、減速開始位置(decel_pos)又は制動開始位置(break_pos)に来たか否かが判断される。   When the encoder edge is detected, the process proceeds from S230 to S280, and it is determined whether or not the vehicle has reached the deceleration start position (decel_pos) or the braking start position (break_pos).

このS280の判断は、具体的には、領域判定部15からの位置パルスの有無に基づいてなされる。図10は、領域判定部15にて実行される位置検出パルス生成処理を示すフローチャートである。位置カウンタ14からのカウント値が入力されることによりこの処理が開始されると、S810にて、そのカウント値に基づいて減速開始位置(decel_pos)であるか否かが判断される。ここでまだ減速開始位置でなければS830に進んで、制動開始位置(break_pos)であるか否かが判断される。   Specifically, the determination in S280 is made based on the presence / absence of a position pulse from the region determination unit 15. FIG. 10 is a flowchart showing position detection pulse generation processing executed by the region determination unit 15. When this process is started by inputting the count value from the position counter 14, it is determined in S810 whether or not it is the deceleration start position (decel_pos) based on the count value. If it is not yet the deceleration start position, the process proceeds to S830, and it is determined whether or not it is the braking start position (break_pos).

なお、減速開始位置にきたことが判断されていないにも拘わらず制動開始位置に来たことが判断される場合とは、通常駆動状態から減速期間を介さずに直接制動に移行するような制御を行う場合である。本実施形態のように減速期間を含める場合は、減速開始位置に到達しない限り、S830では常に否定判断されることになる。そして、減速開始位置に到達したら、S820に移行して減速位置パルスが発生される。また、制動開始位置に到達したら、S840にて制動位置パルスが発生される。   When it is determined that the vehicle has reached the braking start position even though it has not been determined that the vehicle has started the deceleration start position, the control is such that the normal drive state is shifted directly to braking without passing through the deceleration period. This is the case. When the deceleration period is included as in the present embodiment, a negative determination is always made in S830 unless the deceleration start position is reached. When the deceleration start position is reached, the process proceeds to S820, and a deceleration position pulse is generated. When the braking start position is reached, a braking position pulse is generated in S840.

図8に戻り、S280において、decel_posに到達したと判断された場合は図9の減速・停止処理に進むが、decel_posに到達しない間は、S290に進み、そのエンコーダエッジ検出時と直前のエンコーダエッジ検出時の間のエッジ間隔時間(enc_period)がエッジ間隔過剰検出閾値(det_period_max)より大きいか否かが判断される。このとき、enc_periodがdet_period_maxより大きければ、S310に進み、PWM値の変化率が増加するよう、既述の式(1)に基づいて駆動時PWM増分量(a_param)を増加させる補正演算が行われる。   Returning to FIG. 8, if it is determined in S280 that the decel_pos has been reached, the process proceeds to the deceleration / stop process of FIG. 9. However, while the decel_pos is not reached, the process proceeds to S290, and when the encoder edge is detected and the immediately preceding encoder edge It is determined whether or not the edge interval time (enc_period) between detections is greater than the edge interval excess detection threshold (det_period_max). At this time, if enc_period is greater than det_period_max, the process proceeds to S310, and a correction operation for increasing the drive PWM increment (a_param) is performed based on the above-described equation (1) so that the rate of change of the PWM value increases. .

一方、エンコーダエッジ検出時のエッジ間隔時間(enc_period)がエッジ間隔過剰検出閾値(det_period_max)以下であれば、S300に進み、さらにエッジ間隔不足検出閾値(det_period_min)より小さいか否かが判断される。このときdet_period_minより小さければ、S320に進み、PWM値の変化率が減少するよう、既述の式(1)に基づいて駆動時PWM増分量(a_param)を減少させる補正演算が行われる。   On the other hand, if the edge interval time (enc_period) at the time of encoder edge detection is equal to or less than the edge interval excess detection threshold (det_period_max), the process proceeds to S300, and it is further determined whether or not it is smaller than the edge interval insufficient detection threshold (det_period_min). If it is smaller than det_period_min at this time, the process proceeds to S320, and a correction operation for decreasing the drive PWM increment (a_param) is performed based on the above-described equation (1) so that the rate of change of the PWM value is decreased.

S300で否定される場合、即ちエッジ間隔時間(enc_period)がdet_period_min以上であってdet_period_max以下の範囲にある場合は、そのままS500に進む。そして、S500にて、pwm_outが再び駆動開始時PWM値であるstart_pwm1にリセットされる。   When the result in S300 is negative, that is, when the edge interval time (enc_period) is not less than det_period_min and not more than det_period_max, the process directly proceeds to S500. In S500, pwm_out is reset again to start_pwm1, which is the PWM value at the start of driving.

次に、S280で肯定判定された場合の処理、即ち減速開始位置に来た場合の減速・停止処理について、図9に基づいて説明する。図9は、減速・停止処理を示すフローチャートである。図8のS280で肯定判定されることにより本処理に移行すると、まずS610にて、減速開始時PWM値であるstart_pwm2がpwm_outにセットされる。同時に、タイマ15a(decel_timer)の計時が開始される。   Next, the processing in the case where an affirmative determination is made in S280, that is, the deceleration / stop processing in the case where the vehicle has reached the deceleration start position will be described based on FIG. FIG. 9 is a flowchart showing the deceleration / stop processing. When the determination is affirmative in S280 in FIG. 8 and the process proceeds to this process, first, start_pwm2 that is the PWM value at the start of deceleration is set to pwm_out in S610. At the same time, the timer 15a (decel_timer) starts counting.

S620では、enc_countがbreak_posに等しくなること(つまり制動開始位置に到達したこと)、又は、enc_periodがset_enc_period以上となること(つまりエンコーダエッジの周期が制動開始エンコーダ周期以上となること)、又は、タイマ15aの計時値がset_decel_time(最大減速時間)以上となること、のうちいずれかが成立したか否かが判断され、いずれか一つでも成立すれば、S670に進んで制動が開始される。具体的には、制動開始時PWM値であるstart_pwm3が新たなpwm_outとしてセットされる。   In S620, enc_count becomes equal to break_pos (that is, the braking start position has been reached), or enc_period becomes greater than or equal to set_enc_period (that is, the cycle of the encoder edge becomes greater than or equal to the braking start encoder cycle), or a timer It is determined whether any one of the time values of 15a is set_decel_time (maximum deceleration time) or more is established, and if any one is established, the process proceeds to S670 and braking is started. Specifically, start_pwm3 that is the PWM value at the start of braking is set as a new pwm_out.

一方、制動開始に至らない間は、S620からS630に進み、図8のS240と同様、pwm_outの更新タイミングであるか否かが判断される。そして、更新タイミングになったら、S640にて、現在のpwm_outから減速時PWM減分量(decel_param)だけ減算したものが新たなpwm_outとしてセットされる。つまり、PWM値を減少させるのである。そしてS650に移行し、その新たなpwm_outが最小PWM出力値(pwm_min_limit)より小さいか否か判断され、小さくなければそのままS620に戻るが、小さい場合は、S660でpwm_outにpwm_min_limitがセットされる。   On the other hand, when braking does not start, the process proceeds from S620 to S630, and it is determined whether or not it is the update timing of pwm_out, as in S240 of FIG. Then, at the update timing, in S640, a value obtained by subtracting the deceleration PWM decrement amount (decel_param) from the current pwm_out is set as a new pwm_out. That is, the PWM value is decreased. Then, the flow shifts to S650, where it is determined whether or not the new pwm_out is smaller than the minimum PWM output value (pwm_min_limit). If it is not smaller, the process returns to S620 as it is, but if it is smaller, pwm_min_limit is set to pwm_out in S660.

一方、制動を開始して上述したS670の処理が終わると、続くS680にて、S630と同様、pwm_outの更新タイミングであるか否かが判断される。そして、更新タイミングになると、S690に移行し、現在のpwm_outに制動時PWM増分量(break_param)が加算されたものが新たなpwm_outとしてセットされる。そして、その新たなpwm_outがブレーキ時PWM値(stop_pwm)より大きいか否かがS700で判断され、大きくなければS680に戻るが、大きければ、S710でpwm_outにstop_pwmがセットされ、続くS720で停止パルスが発生される。これにより、モータ110は完全に停止することになる。   On the other hand, when braking is started and the processing of S670 described above is completed, it is determined in subsequent S680 whether or not it is the update timing of pwm_out, as in S630. Then, at the update timing, the process proceeds to S690, and a value obtained by adding the braking PWM increment (break_param) to the current pwm_out is set as a new pwm_out. Then, it is determined in S700 whether or not the new pwm_out is larger than the brake PWM value (stop_pwm). If it is not larger, the process returns to S680. If it is larger, stop_pwm is set in pwm_out in S710, and the stop pulse is subsequently performed in S720. Is generated. As a result, the motor 110 is completely stopped.

次に、ASIC2内の各種信号処理部17が実行する割り込み信号生成処理について、図11に基づいて説明する。本処理が開始されると、まずS910にて、位置パルスが発生したか否かが判断される。これは、図10におけるS820又はS840、図9におけるS720の各処理においてそれぞれ対応するパルスが発生したか否かをみるものであり、いずれかの位置パルスが発生した場合、S920に進み、その種類が判断される。   Next, interrupt signal generation processing executed by the various signal processing units 17 in the ASIC 2 will be described with reference to FIG. When this process is started, it is first determined in S910 whether a position pulse has occurred. This is to check whether or not a corresponding pulse has been generated in each process of S820 or S840 in FIG. 10 and S720 in FIG. 9. If any position pulse has occurred, the process proceeds to S920 and the type Is judged.

まず、減速位置パルスであった場合は、S930に進み、減速位置割り込みフラグがセットされる。そして、S940で、CPU1から減速位置割り込み許可を得ているか否かが判断される。本実施形態では、減速位置割り込み許可を得ていないため、ここではS910に戻ることになる。制動位置パルスであった場合、S950で制動位置割り込みフラグがセットされ、S960で、CPU1から制動位置割り込み許可を得ているか否かが判断される。この場合も、本実施形態では制動位置割り込み許可を得ていないため、S910に戻る。   First, if it is a deceleration position pulse, the process proceeds to S930, and a deceleration position interrupt flag is set. Then, in S940, it is determined whether or not the deceleration position interrupt permission is obtained from the CPU1. In this embodiment, since the deceleration position interrupt permission is not obtained, the process returns to S910 here. If it is a braking position pulse, a braking position interrupt flag is set in S950, and it is determined in S960 whether or not the braking position interrupt permission is obtained from the CPU1. Also in this case, since the brake position interruption permission is not obtained in this embodiment, the process returns to S910.

そして、停止位置パルスであった場合、S970で停止割り込みフラグがセットされ、S980で、CPU1から停止割り込み許可を得ているか否かが判断される。ここでは、図7で説明したASIC設定処理により、停止割り込み許可がなされているため、S990にて、CPU割り込み信号がCPU1へ出力される。   If it is a stop position pulse, a stop interrupt flag is set in S970, and it is determined in S980 whether stop interrupt permission has been obtained from the CPU1. Here, since the stop interrupt is permitted by the ASIC setting process described with reference to FIG. 7, a CPU interrupt signal is output to the CPU 1 in S990.

以上詳述した本実施形態のモータ制御装置10では、エンコーダエッジが検出される毎に、そのときのエッジ間隔時間(enc_period)に応じて、次のPWM値の変化率を決めるようにしている。具体的には、駆動時PWM増分量(a_param)を現状維持するか或いは上記式(1)により増加又は減少させる。そのため、このように構成されたモータ制御装置10によれば、モータ110の負荷に変動が生じても、安定して駆動対象(本例ではキャリッジ102)を駆動させることができる。   In the motor control device 10 of the present embodiment described in detail above, every time an encoder edge is detected, the change rate of the next PWM value is determined according to the edge interval time (enc_period) at that time. Specifically, the current PWM increment (a_param) is maintained, or is increased or decreased by the above equation (1). Therefore, according to the motor control device 10 configured as described above, even if the load of the motor 110 fluctuates, the drive target (the carriage 102 in this example) can be driven stably.

また、駆動開始後の最初のエンコーダエッジ検出時には、PWM値変化率の補正(a_paramの補正)は行わず、a_paramを駆動開始時と同じく初期値accel_paramに設定するため、駆動開始時のトルクを十分に確保でき、キャリッジ102の駆動速度をより迅速に所望の目標駆動速度にすることが可能となる。   Also, when the first encoder edge after the start of driving is detected, the PWM value change rate is not corrected (a_param correction), and a_param is set to the initial value accel_param similarly to the start of driving. Therefore, the driving speed of the carriage 102 can be set to a desired target driving speed more quickly.

しかも、速度フィードバック制御や位置フィードバック制御などのいわゆる閉ループ制御ではなく、全体としてオープンループ制御であるため、閉ループ制御では困難な微小速度でのモータ制御をより良好に実現することができる。   In addition, since the overall loop control is not so-called closed loop control such as speed feedback control or position feedback control, motor control at a minute speed, which is difficult with closed loop control, can be more satisfactorily realized.

特に、本実施形態のようにインクジェットプリンタのキャリッジ駆動における、ホームポジションへの微小速度移動に適用すると、キャッピング動作時のモータ負荷の変動の影響が抑制され、キャッピングを確実に行うことができる。   In particular, when applied to a minute speed movement to the home position in the carriage drive of an ink jet printer as in this embodiment, the influence of fluctuations in the motor load during the capping operation is suppressed, and capping can be performed reliably.

ここで、本実施形態の構成要素と本発明の構成要素の対応関係を明らかにする。本実施形態において、エンコーダ105は本発明の駆動検知手段に相当し、出力PWMデューティ生成部4は本発明の制御手段に相当し、モータ駆動ドライバ回路11は本発明のモータ駆動手段に相当し、PWM増分量補正部6は本発明の変化率変更手段及び経過時間判断手段に相当する。また、エンコーダエッジ検出時のエッジ間隔時間(enc_period)がdet_period_minとdet_period_maxとの間の値となるような駆動速度が、本発明の目標駆動速度に相当するものである。また、図8の通常駆動処理において、S290及びS300の処理はいずれも本発明の経過時間判断手段が実行する処理に相当し、S310及びS320の処理はいずれも本発明の変化率変更手段が実行する処理に相当する。   Here, the correspondence between the components of the present embodiment and the components of the present invention will be clarified. In this embodiment, the encoder 105 corresponds to the drive detection means of the present invention, the output PWM duty generation unit 4 corresponds to the control means of the present invention, the motor drive driver circuit 11 corresponds to the motor drive means of the present invention, The PWM increment correction unit 6 corresponds to change rate changing means and elapsed time determining means of the present invention. A driving speed at which the edge interval time (enc_period) at the time of encoder edge detection is a value between det_period_min and det_period_max corresponds to the target driving speed of the present invention. Further, in the normal drive process of FIG. 8, the processes of S290 and S300 are both equivalent to the processes executed by the elapsed time judging means of the present invention, and the processes of S310 and S320 are both executed by the change rate changing means of the present invention. It corresponds to the processing.

[第2実施形態]
上記第1実施形態では、α=1、varを所定の定数とすることにより、駆動時増分量(a_param)を増加させる際の増加量及び減少させる際の減少量をいずれも一定値としたが、本実施形態では、エッジ間隔時間(enc_period)と各閾値との差に応じて連続的に増加・減少させる。
[Second Embodiment]
In the first embodiment, by setting α = 1 and var as a predetermined constant, the increase amount when increasing the drive increment (a_param) and the decrease amount when decreasing are both constant values. In this embodiment, it is continuously increased / decreased according to the difference between the edge interval time (enc_period) and each threshold value.

図12に、本実施形態のモータ制御装置150の概略構成を示す。本実施形態のモータ制御装置150が第1実施形態のモータ制御装置10(図1参照)と大きく異なるのは、補正定数varが動作モード設定レジスタ群153内の増分量補正値設定レジスタ群41に設定されず、PWM増分量補正部154にて演算により得られることと、変化率係数αがα>0の所定の係数に設定されることである。そのため、CPU151は第1実施形態のように増分量補正値設定レジスタ群41への補正定数varの設定は行わない。それ以外については基本的に第1実施形態のモータ制御装置150と同じ構成であるため、第1実施形態のモータ制御装置10と同じ構成要素には同じ符号を付し、その詳細説明を省略する。   FIG. 12 shows a schematic configuration of the motor control device 150 of the present embodiment. The motor control device 150 of the present embodiment is significantly different from the motor control device 10 of the first embodiment (see FIG. 1) because the correction constant var is stored in the increment correction value setting register group 41 in the operation mode setting register group 153. It is not set but is obtained by calculation in the PWM increment correction unit 154 and the change rate coefficient α is set to a predetermined coefficient of α> 0. Therefore, the CPU 151 does not set the correction constant var in the increment correction value setting register group 41 as in the first embodiment. Since the other configuration is basically the same as that of the motor control device 150 of the first embodiment, the same components as those of the motor control device 10 of the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted. .

図13に、本実施形態のASIC152にて実行される、モータ110の起動から減速開始までの通常駆動処理を示す。本実施形態の通常駆動処理が第1実施形態の通常駆動処理(図8参照)と異なるのは、S290及びS300で肯定判定されてからS500の処理に進むまでの間に実行される処理、即ち駆動時PWM増分量の補正演算を行う処理であり、それ以外の処理は第1実施形態と全く同じである。そのため、第1実施形態の通常駆動処理と同じ処理には同じステップ番号を付し、その詳細説明を省略する。そして、第1実施形態と異なる部分について、以下説明する。   FIG. 13 shows normal drive processing from the start of the motor 110 to the start of deceleration, which is executed by the ASIC 152 of the present embodiment. The normal drive process of the present embodiment is different from the normal drive process of the first embodiment (see FIG. 8), that is, the process that is executed after the affirmative determination is made in S290 and S300 and before the process proceeds to S500. This is a process for performing a correction calculation of the PWM increment during driving, and the other processes are exactly the same as in the first embodiment. Therefore, the same step number is attached to the same process as the normal drive process of the first embodiment, and the detailed description thereof is omitted. Parts different from the first embodiment will be described below.

エンコーダエッジが検出されて(S230:YES)、減速開始位置又は制動開始位置のいずれにも到達していない場合は(S280:NO)、S290にて、エッジ間隔時間(enc_period)がエッジ間隔過剰検出閾値(det_period_max)より大きいか否かが判断されるが、ここで大きいと判断された場合、S331にて、var=enc_period−det_period_maxの演算を行う。つまり、このときのエッジ間隔時間が上記閾値(det_period_max)よりどれだけ大きいかを求めるのである。   If an encoder edge is detected (S230: YES) and neither the deceleration start position nor the braking start position has been reached (S280: NO), the edge interval time (enc_period) is detected as an excessive edge interval in S290. It is determined whether or not the threshold value is larger than the threshold value (det_period_max). If it is determined that the threshold value is larger, a calculation of var = enc_period-det_period_max is performed in S331. That is, it is determined how much the edge interval time at this time is larger than the threshold value (det_period_max).

そして、varの演算後はS490に進み、その得られたvarを用いて、既述の式(1)により新たな駆動時PWM増分量が演算される。この結果、前回のa_paramより大きい新たなa_paramが得られる。尚、本実施形態の場合、式(1)の右辺括弧内の加減算部分では加算が行われる。   Then, after the calculation of var, the process proceeds to S490, and a new driving PWM increment is calculated by the previously described equation (1) using the obtained var. As a result, a new a_param larger than the previous a_param is obtained. In the case of the present embodiment, addition is performed in the addition / subtraction part in the right parenthesis of Expression (1).

また、S290で否定判定されてS300で肯定判定された場合、即ちエッジ間隔時間(enc_period)がエッジ間隔不足検出閾値(det_period_min)より小さいと判断された場合は、S333にて、var=enc_period−det_period_minの演算が行われる。つまり、このときのエッジ間隔時間が上記閾値(det_period_min)よりどれだけ小さいかを求めるのである。そして、varの演算後はS490に進み、前回までのa_paramが補正演算されて新たなa_paramが得られる。   If a negative determination is made in S290 and an affirmative determination is made in S300, that is, if it is determined that the edge interval time (enc_period) is smaller than the edge interval shortage detection threshold (det_period_min), var = enc_period-det_period_min is determined in S333. Is calculated. That is, how much the edge interval time at this time is smaller than the threshold value (det_period_min) is obtained. After the calculation of var, the process proceeds to S490, where a_param up to the previous time is corrected and a new a_param is obtained.

このように構成された本実施形態のモータ制御装置150では、検出されたエッジ間隔時間(enc_period)と上記各閾値との差がvarとして演算され、そのvarに基づいて駆動時PWM増分量の補正演算が行われる。これにより、エッジ間隔時間(enc_period)がdet_period_maxより大きいほどa_paramも大きな値に補正されてPWM値の変化率が大きくなり、逆にdet_period_minより小さいほどa_paramも小さな値に補正されてPWM値の変化率が小さくなる。   In the motor control device 150 of the present embodiment configured as described above, the difference between the detected edge interval time (enc_period) and each of the threshold values is calculated as var, and the PWM increment amount during driving is corrected based on the var. An operation is performed. As a result, as the edge interval time (enc_period) is larger than det_period_max, the a_param is corrected to a larger value and the change rate of the PWM value becomes larger. Conversely, as the edge interval time (enc_period) is smaller than the det_period_min, the a_param is also corrected to a smaller value. Becomes smaller.

そのため、エンコーダエッジ検出時の駆動状態に応じて駆動時PWM増分量(a_param)の補正がより適切に行われ、より安定して駆動対象(本例ではキャリッジ102)を駆動させることができる。   Therefore, the drive PWM increment (a_param) is corrected more appropriately according to the drive state at the time of encoder edge detection, and the drive target (the carriage 102 in this example) can be driven more stably.

尚、本実施形態において、PWM増分量補正部154は本発明の第一差分値演算手段及び第二差分値演算手段にも相当するものであり、図13の通常駆動処理におけるS331で演算されるvarは本発明(請求項29)の第一差分値に相当し、S333で演算されるvarは本発明(請求項30)の第二差分値に相当する。   In the present embodiment, the PWM increment correction unit 154 corresponds to the first difference value calculation means and the second difference value calculation means of the present invention, and is calculated in S331 in the normal drive process of FIG. Var corresponds to the first difference value of the present invention (Claim 29), and var calculated in S333 corresponds to the second difference value of the present invention (Claim 30).

[第3実施形態]
上記第1実施形態では、PWM値の変化率を変化させる具体的方法として、駆動時PWM増分量(a_param)を変化させるようにしたが、本実施形態では逆に、a_paramは駆動時PWM初期増分量(accel_param)に固定し、PWM値をaccel_paramずつ増加させていく周期であるPWM値更新間隔Tpを変化させる。
[Third Embodiment]
In the first embodiment, as a specific method of changing the rate of change of the PWM value, the drive PWM increment (a_param) is changed. However, in the present embodiment, conversely, a_param is a PWM initial increase during drive. The amount (accel_param) is fixed, and the PWM value update interval Tp, which is a cycle in which the PWM value is increased by accel_param, is changed.

図14に、本実施形態のモータ制御装置160の概略構成を示す。本実施形態のモータ制御装置160が第1実施形態のモータ制御装置10(図1参照)と大きく異なるのは、動作モード設定レジスタ群163内の増分量補正値設定レジスタ群46に変化率係数βと補正定数varが設定されることと、これらβ,varに基づいて加算タイミング生成部164がPWM値更新間隔Tv(初期値は上記Tp)を演算し、タイミング情報を出力PWMデューティ生成部165へ出力することである。それ以外については基本的に第1実施形態のモータ制御装置150と同じ構成であるため、第1実施形態のモータ制御装置10と同じ構成要素には同じ符号を付し、その詳細説明を省略する。   FIG. 14 shows a schematic configuration of the motor control device 160 of the present embodiment. The motor control device 160 of the present embodiment is greatly different from the motor control device 10 (see FIG. 1) of the first embodiment in that the change rate coefficient β is added to the increment correction value setting register group 46 in the operation mode setting register group 163. And the correction constant var are set, and based on these β and var, the addition timing generation unit 164 calculates the PWM value update interval Tv (initial value is Tp), and outputs the timing information to the output PWM duty generation unit 165. Is to output. Since the other configuration is basically the same as that of the motor control device 150 of the first embodiment, the same components as those of the motor control device 10 of the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted. .

図15に、PWM値更新間隔Tv、即ちaccel_paramを増加させる周期Tvを変化させることによりPWM値の変化率を増減することについて補足説明する。図15(a)は初期状態を示しており、PWM値更新間隔Tvはその初期値であるTpである。である。破線は、初期状態でのPWM値の変化率(傾き)を示している。   FIG. 15 supplementarily explains increasing / decreasing the rate of change of the PWM value by changing the PWM value update interval Tv, that is, the cycle Tv for increasing accel_param. FIG. 15A shows an initial state, and the PWM value update interval Tv is the initial value Tp. It is. The broken line indicates the change rate (slope) of the PWM value in the initial state.

この状態からTvを減少させてTv<Tpとすると、図15(b)に示す如く、PWM値の変化率(傾き)は一点鎖線で表したように増加する。逆に、Tvを増加させてTv>Tpとすると、図15(c)に示す如く、PWM値の変化率(傾き)は一点鎖線で表したように減少する。   If Tv is decreased from this state and Tv <Tp, the rate of change (slope) of the PWM value increases as shown by the alternate long and short dash line, as shown in FIG. On the other hand, when Tv is increased to satisfy Tv> Tp, the change rate (slope) of the PWM value decreases as indicated by the alternate long and short dash line, as shown in FIG.

そして、PWM値更新間隔Tvを増加或いは減少させるための補正演算は、次式(2),(3)で表される。
Tv=pwm_period*(prcnt+1)・・・(2)
prcnt=prcnt±int(β*var)・・・(3)
但し、式(3)の左辺のprcntは変化後の定加算タイミング、右辺のprcntは変化前の定加算タイミングであり、その初期値は既述のpwm_reload_countである。また、変化率係数β=1、補正定数varは任意の定数であり、式(3)の右辺の演算式における加減算部分は、PWM値の変化率を増加させるときは減算とし、逆に変化率を減少させるときは加算とする。また、式(3)の右辺におけるintは、整数部分のみを有効とする関数を表しており、「int(β*var)」は、β*varの積算結果のうち整数部分を表す。上記式(2),式(3)による補正演算は加算タイミング生成部164にて行われる。
The correction calculation for increasing or decreasing the PWM value update interval Tv is expressed by the following equations (2) and (3).
Tv = pwm_period * (prcnt + 1) (2)
prcnt = prcnt ± int (β * var) (3)
However, prcnt on the left side of Equation (3) is the constant addition timing after the change, and prcnt on the right side is the constant addition timing before the change, and the initial value is pwm_reload_count described above. Further, the change rate coefficient β = 1, the correction constant var is an arbitrary constant, and the addition / subtraction part in the arithmetic expression on the right side of Expression (3) is subtraction when increasing the change rate of the PWM value, and conversely, the change rate When decreasing the value, add. Further, int on the right side of Expression (3) represents a function that validates only the integer part, and “int (β * var)” represents the integer part of the integration result of β * var. The correction calculation according to the above equations (2) and (3) is performed by the addition timing generation unit 164.

図16に、本実施形態のASIC162にて実行される、モータ110の起動から減速開始までの通常駆動処理を示す。本実施形態の通常駆動処理が第1実施形態の通常駆動処理(図8参照)と大きく異なるのは、S290及びS300で肯定判定されてからS500の処理に進むまでの間に実行される処理、即ちPWM値更新間隔Tvの補正演算を行う処理である。また、S225の演算処理は、実質的には第1実施形態のS220と同じである。それ以外の処理は第1実施形態と全く同じであるため、第1実施形態の通常駆動処理と同じ処理には同じステップ番号を付し、その詳細説明を省略する。そして、第1実施形態と異なる部分について、以下説明する。   FIG. 16 shows normal drive processing from the start of the motor 110 to the start of deceleration, which is executed by the ASIC 162 of the present embodiment. The normal drive process of the present embodiment is significantly different from the normal drive process of the first embodiment (see FIG. 8). The process executed after the affirmative determination is made in S290 and S300 until the process proceeds to S500. That is, this is a process for performing a correction calculation of the PWM value update interval Tv. Further, the calculation processing in S225 is substantially the same as S220 in the first embodiment. Since the other processes are the same as those in the first embodiment, the same steps as those in the normal drive process in the first embodiment are denoted by the same step numbers, and detailed description thereof is omitted. Parts different from the first embodiment will be described below.

エンコーダエッジが検出されて(S230:YES)、減速開始位置又は制動開始位置のいずれにも到達していない場合は(S280:NO)、S290にて、エッジ間隔時間(enc_period)がエッジ間隔過剰検出閾値(det_period_max)より大きいか否かが判断されるが、ここで大きいと判断された場合、S341にて、prcnt=prcnt−int(β*var)の演算が行われる。   If an encoder edge is detected (S230: YES) and neither the deceleration start position nor the braking start position has been reached (S280: NO), the edge interval time (enc_period) is detected as an excessive edge interval in S290. It is determined whether or not the threshold value is larger than the threshold value (det_period_max). If it is determined that the threshold value is larger, the calculation of prcnt = prcnt−int (β * var) is performed in S341.

そして、定加算タイミングprcntの演算後はS420に進み、その得られたprcntを用いて、既述の式(2)により新たなPWM値更新間隔Tvが演算される。この結果、前回までのTvより小さい新たなTvが得られる。   Then, after the calculation of the constant addition timing prcnt, the process proceeds to S420, and a new PWM value update interval Tv is calculated by the above-described equation (2) using the obtained prcnt. As a result, a new Tv smaller than the previous Tv is obtained.

また、S290で否定判定されてS300で肯定判定された場合、即ちエッジ間隔時間(enc_period)がエッジ間隔不足検出閾値(det_period_min)より小さいと判断された場合は、S343にて、prcnt=prcnt+int(β*var)の演算が行われ、続くS420へ進むこととなる。これにより、前回までのTvより大きい新たなTvが得られる。   Also, if a negative determination is made in S290 and an affirmative determination is made in S300, that is, if it is determined that the edge interval time (enc_period) is smaller than the edge interval shortage detection threshold (det_period_min), in S343, prcnt = prcnt + int (β * Var) is calculated, and the process proceeds to S420. Thereby, a new Tv larger than the previous Tv is obtained.

このように構成された本実施形態のモータ制御装置160では、検出されたエッジ間隔時間(enc_period)に応じて、PWM値更新間隔Tvを現状維持するか或いは上記式(2),(3)により増加又は減少させる。そのため、第1実施形態と同様、モータ110の負荷に変動が生じても、安定して駆動対象(本例ではキャリッジ102)を駆動させることができる。   In the motor control device 160 of the present embodiment configured as described above, the PWM value update interval Tv is maintained as it is or the above formulas (2) and (3) are used according to the detected edge interval time (enc_period). Increase or decrease. Therefore, similarly to the first embodiment, even if the load of the motor 110 fluctuates, the drive target (the carriage 102 in this example) can be driven stably.

[第4実施形態]
上記第3実施形態では、β=1、varを所定の定数とすることにより、PWM値更新間隔Tvを増加させる際の増加量及び減少させる際の減少量をいずれも一定値としたが、本実施形態では、エッジ間隔時間(enc_period)と各閾値との差に応じて連続的に増加・減少させる。
[Fourth Embodiment]
In the third embodiment, by setting β = 1 and var as a predetermined constant, the increase amount when increasing the PWM value update interval Tv and the decrease amount when decreasing are both constant values. In the embodiment, it is increased or decreased continuously according to the difference between the edge interval time (enc_period) and each threshold value.

図17に、本実施形態のモータ制御装置170の概略構成を示す。本実施形態のモータ制御装置170が第3実施形態のモータ制御装置160(図14参照)と大きく異なるのは、補正定数varが動作モード設定レジスタ群173内の増分量補正値設定レジスタ群51に設定されず、加算タイミング生成部174にて演算により得られることと、変化率係数βがβ>0の所定の係数に設定されることである。そのため、CPU171は第3実施形態のように増分量補正値設定レジスタ群51への補正定数varの設定は行わない。それ以外については基本的に第3実施形態のモータ制御装置160と同じ構成であるため、第3実施形態のモータ制御装置160と同じ構成要素には同じ符号を付し、その詳細説明を省略する。   FIG. 17 shows a schematic configuration of the motor control device 170 of the present embodiment. The motor control device 170 of the present embodiment is greatly different from the motor control device 160 (see FIG. 14) of the third embodiment because the correction constant var is stored in the increment correction value setting register group 51 in the operation mode setting register group 173. It is not set, but is obtained by calculation in the addition timing generation unit 174, and the change rate coefficient β is set to a predetermined coefficient of β> 0. For this reason, the CPU 171 does not set the correction constant var in the increment correction value setting register group 51 as in the third embodiment. The rest of the configuration is basically the same as that of the motor control device 160 of the third embodiment, and therefore the same components as those of the motor control device 160 of the third embodiment are denoted by the same reference numerals and detailed description thereof is omitted. .

図18に、本実施形態のASIC172にて実行される、モータ110の起動から減速開始までの通常駆動処理を示す。本実施形態の通常駆動処理が第3実施形態の通常駆動処理(図16参照)と異なるのは、S290及びS300で肯定判定されてからS420のTv演算処理に進むまでの間に実行される処理、即ち定加算タイミングprcntの補正演算を行う処理であり、それ以外の処理は第3実施形態と全く同じである。そのため、第3実施形態の通常駆動処理と同じ処理には同じステップ番号を付し、その詳細説明を省略する。そして、第3実施形態と異なる部分について、以下説明する。   FIG. 18 shows a normal driving process from the start of the motor 110 to the start of deceleration, which is executed by the ASIC 172 of the present embodiment. The normal drive process of the present embodiment differs from the normal drive process of the third embodiment (see FIG. 16) in that the process is executed after the affirmative determination is made in S290 and S300 and before the Tv calculation process in S420 is performed. That is, this is a process for performing a correction operation for the constant addition timing prcnt, and other processes are exactly the same as those in the third embodiment. Therefore, the same step number is attached to the same process as the normal drive process of the third embodiment, and the detailed description thereof is omitted. Parts different from the third embodiment will be described below.

エンコーダエッジが検出されて(S230:YES)、減速開始位置又は制動開始位置のいずれにも到達していない場合は(S280:NO)、S290にて、エッジ間隔時間(enc_period)がエッジ間隔過剰検出閾値(det_period_max)より大きいか否かが判断されるが、ここで大きいと判断された場合、S351にて、var=det_period_max−enc_periodの演算が行われる。つまり、上記閾値(det_period_max)とエッジ間隔時間との差を求めるのである。   If an encoder edge is detected (S230: YES) and neither the deceleration start position nor the braking start position has been reached (S280: NO), the edge interval time (enc_period) is detected as an excessive edge interval in S290. It is determined whether or not the threshold value is larger than the threshold value (det_period_max). If it is determined that the threshold value is larger, a calculation of var = det_period_max−enc_period is performed in S351. That is, the difference between the threshold value (det_period_max) and the edge interval time is obtained.

そして、varの演算後はS410に進み、その得られたvarを用いて、既述の式(3)により新たな定加算タイミングprcntが演算される。この定加算タイミングprcntを用いて次のS420の演算処理を行うことにより、前回までのTvより小さい新たなTvが得られる。尚、本実施形態の場合、式(3)の右辺の加減算部分では加算が行われる。   Then, after the calculation of var, the process proceeds to S410, and a new constant addition timing prcnt is calculated by the above-described equation (3) using the obtained var. A new Tv smaller than the previous Tv is obtained by performing the calculation process of the next S420 using the constant addition timing prcnt. In the present embodiment, addition is performed in the addition / subtraction part on the right side of Equation (3).

また、S290で否定判定されてS300で肯定判定された場合は、S353にて、var=det_period_min−enc_periodの演算が行われた後、上述したS410の演算処理に移行する。これにより、前回までのTvより大きい新たなTvが得られる。   If a negative determination is made in S290 and an affirmative determination is made in S300, var = det_period_min-enc_period is calculated in S353, and then the process proceeds to the above-described calculation process in S410. Thereby, a new Tv larger than the previous Tv is obtained.

このように構成された本実施形態のモータ制御装置170では、検出されたエッジ間隔時間(enc_period)と上記各閾値との差がvarとして演算され、そのvarに基づいてPWM値更新間隔Tvの補正演算が行われる。これにより、エッジ間隔時間(enc_period)がdet_period_maxより大きいほどTvは小さな値に補正されてPWM値の変化率が大きくなり、逆にdet_period_minより小さいほどTvは大きな値に補正されてPWM値の変化率が小さくなる。   In the motor control device 170 of the present embodiment configured as described above, the difference between the detected edge interval time (enc_period) and each of the above threshold values is calculated as var, and the PWM value update interval Tv is corrected based on the var. An operation is performed. As a result, as the edge interval time (enc_period) is larger than det_period_max, Tv is corrected to a smaller value and the change rate of the PWM value becomes larger. Conversely, as it is smaller than det_period_min, Tv is corrected to a larger value and the change rate of the PWM value is increased. Becomes smaller.

そのため、エンコーダエッジ検出時の駆動状態に応じてPWM値更新間隔Tvの補正がより適切に行われ、より安定して駆動対象を駆動させることができる。
[第5実施形態]
上記各実施形態では、駆動時PWM増分量(a_param)又はPWM値更新間隔Tvのいずれか一方のみを変化させることで、PWM値の変化率を変化させるようにしたが、本実施形態では、a_param及びTvの双方を変化させることによって変化率を変更できるよう構成されている。
Therefore, the correction of the PWM value update interval Tv is more appropriately performed according to the drive state at the time of encoder edge detection, and the drive target can be driven more stably.
[Fifth Embodiment]
In each of the above embodiments, the change rate of the PWM value is changed by changing only one of the drive PWM increment (a_param) or the PWM value update interval Tv. However, in this embodiment, a_param is used. The rate of change can be changed by changing both Tv and Tv.

図19に、本実施形態のモータ制御装置180の概略構成を示す。本実施形態のモータ制御装置180と第4実施形態のモータ制御装置170(図17参照)とを比較して大きく異なるのは、動作モード設定レジスタ群183内の増分量補正値設定レジスタ群56に二つの変化率係数α,β(α,β>0)が設定されることと、加算タイミング生成部184にてPWM値更新タイミングTvを演算する過程で生じるβ*varの演算の小数部分を微補正パラメータγとしてPWM増分量補正部185へ出力することと、PWM増分量補正部185がこの微補正パラメータγと変化率係数αとの積算結果を補正データとして出力PWMデューティ生成部4へ出力することである。それ以外については基本的に第4実施形態のモータ制御装置170と同じ構成であるため、第4実施形態のモータ制御装置170と同じ構成要素には同じ符号を付し、その詳細説明を省略する。   FIG. 19 shows a schematic configuration of the motor control device 180 of the present embodiment. The motor control device 180 of the present embodiment and the motor control device 170 of the fourth embodiment (see FIG. 17) are greatly different from each other in the increment correction value setting register group 56 in the operation mode setting register group 183. The two change rate coefficients α and β (α, β> 0) are set, and the decimal part of the calculation of β * var that occurs in the process of calculating the PWM value update timing Tv by the addition timing generation unit 184 The correction parameter γ is output to the PWM increment correction unit 185, and the PWM increment correction unit 185 outputs the integration result of the fine correction parameter γ and the change rate coefficient α to the output PWM duty generation unit 4 as correction data. That is. The rest of the configuration is basically the same as that of the motor control device 170 according to the fourth embodiment. Therefore, the same components as those of the motor control device 170 according to the fourth embodiment are denoted by the same reference numerals, and detailed description thereof is omitted. .

図20に、本実施形態のASIC182にて実行される、モータ110の起動から減速開始までの通常駆動処理を示す。本実施形態の通常駆動処理が第4実施形態の通常駆動処理(図18参照)と異なるのは、S420におけるTv演算処理とS500におけるPWM値リセット処理との間に、新たにS431及びS433の処理が追加されたことであり、それ以外の処理は第3実施形態と全く同じである。そのため、第3実施形態の通常駆動処理と同じ処理には同じステップ番号を付し、その詳細説明を省略する。そして、第3実施形態と異なる部分について、以下説明する。   FIG. 20 shows normal drive processing from the start of the motor 110 to the start of deceleration, which is executed by the ASIC 182 of the present embodiment. The normal drive process of the present embodiment is different from the normal drive process of the fourth embodiment (see FIG. 18). The process of S431 and S433 is newly performed between the Tv calculation process in S420 and the PWM value reset process in S500. Is added, and other processing is exactly the same as in the third embodiment. Therefore, the same step number is attached to the same process as the normal drive process of the third embodiment, and the detailed description thereof is omitted. Parts different from the third embodiment will be described below.

S420にてPWM値更新間隔Tvが新たに演算されると、加算タイミング生成部184はその演算された周期TvでPWM値を増加させるためのタイミング信号を出力PWMデューティ生成部4へ出力するようになるが、更に、S431にて、γ=β*var−int(β*var)の演算が行われることにより、β*varの小数部分が微補正パラメータγとして得られ、これがPWM増分量補正部185へ入力される。   When the PWM value update interval Tv is newly calculated in S420, the addition timing generation unit 184 outputs a timing signal for increasing the PWM value to the output PWM duty generation unit 4 in the calculated cycle Tv. However, in S431, the calculation of γ = β * var−int (β * var) is performed, whereby the decimal part of β * var is obtained as the fine correction parameter γ, which is the PWM increment correction unit. It is input to 185.

そして、続くS433にて、現在のa_param対し、a_param*(1−α*γ)の演算が行われ、新たなa_paramが得られる。尚、この演算は出力PWMデューティ生成部4にてなされるが、このうちα*γの積算はPWM増分量補正部185にてなされる。   In subsequent S433, a_param * (1-α * γ) is calculated for the current a_param, and a new a_param is obtained. This calculation is performed by the output PWM duty generation unit 4. Of these, α * γ integration is performed by the PWM increment correction unit 185.

このように構成された本実施形態のモータ制御装置180では、PWM値更新間隔Tvの補正結果だけをみれば第4実施形態と同じであってβ*varの小数部分が反映されないが、その小数部分は駆動時PWM値増分量a_paramが補正されることによって反映される。つまり、Tvで補正しきれない分をa_paramの補正で補っているのである。しかも、a_paramのみの補正或いはTvのみの補正に対し、両者を共に補正するようにすれば、PWM値を滑らかに(小刻みに)増加させていくことが可能となる。そのため、エンコーダエッジ検出時の駆動状態に応じてPWM値の変化率の補正(変更)がより適切に行われ、より安定して駆動対象を駆動させることができる。   In the motor control device 180 of this embodiment configured as described above, only the correction result of the PWM value update interval Tv is the same as that of the fourth embodiment, and the decimal part of β * var is not reflected. The portion is reflected by correcting the driving PWM value increment amount a_param. That is, the amount that cannot be corrected by Tv is compensated by the correction of a_param. In addition, if both are corrected with respect to only a_param correction or only Tv correction, the PWM value can be increased smoothly (in small increments). Therefore, the correction (change) of the change rate of the PWM value is more appropriately performed according to the drive state at the time of encoder edge detection, and the drive target can be driven more stably.

尚、本実施形態において、int(β*var)の演算結果は本発明のパルス幅短縮量に相当し、加算タイミング生成部184は本発明の演算手段、周期短縮手段及び周期増加手段に相当し、PWM増分量補正部185は本発明の増分量増加手段及び増分量減少手段に相当する。また、図20におけるS433の演算処理は本発明の増分量増加手段及び増分量減少手段が実行する処理に相当する。   In the present embodiment, the calculation result of int (β * var) corresponds to the pulse width reduction amount of the present invention, and the addition timing generation unit 184 corresponds to the calculation means, cycle shortening means, and cycle increase means of the present invention. The PWM increment correction unit 185 corresponds to the increment increase means and the increment decrease means of the present invention. Further, the calculation processing of S433 in FIG. 20 corresponds to the processing executed by the increment amount increasing means and the increment amount decreasing means of the present invention.

[第6実施形態]
駆動時PWM増分量a_param及びPWM値更新間隔Tvの両者を変化させることによってPWM値の変化率を変更可能な例を上記第5実施形態にて例示したが、本実施形態のモータ制御装置(図示略)も同じく、a_param及びTvの両者を変化できるように構成されている。
[Sixth Embodiment]
An example in which the change rate of the PWM value can be changed by changing both the PWM increment amount a_param at the time of driving and the PWM value update interval Tv has been exemplified in the fifth embodiment. In the same manner, both a_param and Tv can be changed.

但し本実施形態では、基本的には、PWM値更新間隔Tvのみを変化させることでPWM値の変化率を変更するようにしている。そして、補正演算により得られたTvが所定時間(例えば1msec.)に満たなかった場合は、Tvとしてその1msec.に満たない値に変更せずに1msec.に設定し、代わりにa_paramを補正することで、全体としてPWM値変化率の適切な変更を実現するのである。このように、Tvを所定時間未満に設定しないようにするのは、以下の理由による。   However, in this embodiment, basically, the change rate of the PWM value is changed by changing only the PWM value update interval Tv. If Tv obtained by the correction calculation is less than a predetermined time (for example, 1 msec.), Tv is set to 1 msec. Without changing to a value less than 1 msec., And a_param is corrected instead. Thus, an appropriate change in the PWM value change rate is realized as a whole. As described above, the reason why Tv is not set to be less than the predetermined time is as follows.

駆動対象をモータで駆動させる場合、一般に、モータ自身の時定数、駆動対象のイナーシャ、ギアやバネ等の結合要素などの影響で、操作量を変化(つまり本例ではPWM値を変化)させてからその変化が駆動対象の動きに反映されるまでの応答遅れが存在する。仮に、ある操作量を出力した後、その操作量に対応したトルクが駆動対象に伝わるまでに必要な最小時間を1msec.とすると、PWM値更新間隔Tvとしても1msec.以上が必要となる。そのため、モータ負荷が増大することによってTvの補正演算結果が1msec.未満となった場合に、そのTvをそのまま用いると、駆動対象を安定して制御できなくなるおそれがある。   When driving an object to be driven by a motor, in general, the operation amount is changed (that is, the PWM value is changed in this example) due to the influence of the motor's own time constant, the inertia of the object to be driven, the coupling elements such as gears and springs, etc. Therefore, there is a response delay until the change is reflected in the movement of the drive target. Assuming that the minimum time required for the torque corresponding to the operation amount to be transmitted to the drive target after outputting a certain operation amount is 1 msec., The PWM value update interval Tv is also required to be 1 msec. Or more. Therefore, if the Tv correction calculation result is less than 1 msec. Due to an increase in the motor load, if the Tv is used as it is, there is a possibility that the drive target cannot be stably controlled.

そのため、本実施形態では、Tvが1msec.未満となった場合は、Tvについてはとりあえず最小許容値である1msec.に設定し、Tvにて補正しきれない分を代わりにa_paramにて補正するようにしている。   Therefore, in this embodiment, when Tv becomes less than 1 msec., Tv is set to 1 msec. Which is the minimum allowable value for the time being, and the amount that cannot be corrected by Tv is corrected by a_param instead. I have to.

具体的な演算方法は図21の通常駆動処理に示す通りである。図21の通常駆動処理が第5実施形態の通常駆動処理(図20参照)と異なる点は、S420におけるTv演算の後の処理である。本実施形態では、S420にてTvが演算されると、S441にて、その演算されたTvが1msec.未満であるか否かが判断される。ここで、1msec.以上であればそのままS500の処理に移行し、a_paramの補正は行わないが、1msec.未満であれば、S443にてTvを1msec.にセットし、続くS445にて、次式(4)の演算によりa_paramを補正する。   A specific calculation method is as shown in the normal drive process of FIG. The normal drive process of FIG. 21 is different from the normal drive process of the fifth embodiment (see FIG. 20) in the process after the Tv calculation in S420. In the present embodiment, when Tv is calculated in S420, it is determined in S441 whether or not the calculated Tv is less than 1 msec. If it is 1 msec. Or more, the process proceeds to S500 as it is and correction of a_param is not performed. However, if it is less than 1 msec., Tv is set to 1 msec. In S443, and in the following S445, A_param is corrected by the calculation of (4).

a_param=a_param*{1+α*(1−Tv)}・・・(4)
これにより、例えばTvを本来ならば0.8msec.に設定すべきであった場合、1msec.に設定したことによる差分の0.2msec.については、a_paramの補正によって反映されることとなる。
a_param = a_param * {1 + α * (1-Tv)} (4)
Thus, for example, if Tv should be set to 0.8 msec., The difference of 0.2 msec. Due to the setting to 1 msec. Is reflected by the correction of a_param.

従って、本実施形態によれば、Tvによる補正が限界に達した場合はa_paramを補正するようにしているため、PWM値の変化率の補正(変更)がより適切に行われ、より安定して駆動対象を駆動させることができる。   Therefore, according to the present embodiment, when the correction by Tv reaches the limit, a_param is corrected. Therefore, the correction (change) of the change rate of the PWM value is performed more appropriately and more stably. The drive target can be driven.

尚、本実施形態では、補正演算により得られたTvが1msec.以上ならばa_paramを変化させずにTvのみを変化させるようにしたが、これに限らず、Tvが1msec.以上であっても、上記第5実施形態と同じようにして、β*varの小数部分をa_paramの微補正として反映させるようにしてもよい。   In this embodiment, if Tv obtained by the correction calculation is 1 msec. Or more, only Tv is changed without changing a_param. However, the present invention is not limited to this, and even if Tv is 1 msec. Or more. As in the fifth embodiment, the decimal part of β * var may be reflected as a fine correction of a_param.

[第7実施形態]
上記各実施形態では、PWM値の変化率の変更、即ちa_param或いはTvの補正演算を、エッジ間隔時間(enc_period)に応じて行うようにしたが、本実施形態では、エンコーダエッジ検出時のPWM値に基づいてa_paramを補正することにより、変化率の変更が行われる。
[Seventh Embodiment]
In each of the embodiments described above, the change rate of the PWM value, that is, the correction calculation of a_param or Tv is performed according to the edge interval time (enc_period). However, in this embodiment, the PWM value at the time of encoder edge detection The rate of change is changed by correcting a_param based on.

図22に、本実施形態のモータ制御装置190の概略構成を示す。本実施形態のモータ制御装置190が第2実施形態のモータ制御装置150(図12参照)と大きく異なるのは、動作モード設定レジスタ群153内にPWMデューティ閾値設定レジスタ62が設けられ、ここに高PWMデューティ検出閾値(det_pwm_max)と低PWMデューティ検出閾値(det_pwm_min)がそれぞれ設定されることと、出力PWMデューティ生成部4から駆動用信号生成部8へ入力されるPWM値(pwm_out)がPWM増分量補正部194にも入力されることである。それ以外については基本的に第2実施形態のモータ制御装置150と同じ構成であるため、第2実施形態のモータ制御装置150と同じ構成要素には同じ符号を付し、その詳細説明を省略する。   FIG. 22 shows a schematic configuration of the motor control device 190 of the present embodiment. The motor control device 190 of the present embodiment is significantly different from the motor control device 150 (see FIG. 12) of the second embodiment in that the PWM mode threshold setting register 62 is provided in the operation mode setting register group 153, and the high The PWM duty detection threshold value (det_pwm_max) and the low PWM duty detection threshold value (det_pwm_min) are set, and the PWM value (pwm_out) input from the output PWM duty generation unit 4 to the drive signal generation unit 8 is the PWM increment amount. It is also input to the correction unit 194. The rest of the configuration is basically the same as that of the motor control device 150 of the second embodiment, and thus the same components as those of the motor control device 150 of the second embodiment are denoted by the same reference numerals and detailed description thereof is omitted. .

ここで、本実施形態のモータ制御装置190におけるモータ110の制御について、図23及び図24に基づいて説明する。図23は、モータ110の負荷が増加していく場合の制御例であり、図24は、モータ110の負荷が減少していく場合の制御例である。   Here, the control of the motor 110 in the motor control device 190 of the present embodiment will be described with reference to FIGS. FIG. 23 shows a control example when the load on the motor 110 increases, and FIG. 24 shows a control example when the load on the motor 110 decreases.

まず、図23の制御例においては、駆動開始後、2回目以降のエッジ検出時からa_paramの補正演算が行われる。そして、前回までのa_paramを補正すべきか否かの判断は、エッジ検出時のPWM値(pwm_out)に基づいて行われる。   First, in the control example of FIG. 23, after the start of driving, a_param correction calculation is performed from the second and subsequent edge detection. Then, whether or not to correct the previous a_param is determined based on the PWM value (pwm_out) at the time of edge detection.

具体的には、図23における駆動開始後2回目のエンコーダエッジ検出時(時刻t1)、PWM値(pwm_out)は高PWMデューティ検出閾値(det_pwm_max)を越えている。そのため、a_paramを増加する変更を行うことで、PWM値の変化率を増加させる。時刻t1以後のエッジ検出時は、しばらくはdet_pwm_max以下のレベルが続くが、モータ負荷が増大して時刻t2にて再びdet_pwm_maxを越えると、a_paramをさらに増加させてPWM値の変化率を増加させる。   Specifically, the PWM value (pwm_out) exceeds the high PWM duty detection threshold (det_pwm_max) at the second encoder edge detection (time t1) after the start of driving in FIG. Therefore, the change rate of the PWM value is increased by making a change that increases a_param. At the time of edge detection after time t1, the level below det_pwm_max continues for a while, but when the motor load increases and exceeds det_pwm_max again at time t2, a_param is further increased to increase the change rate of the PWM value.

次に、モータ負荷が減少する場合の制御例について図24に基づいて説明する。この場合、時刻t2の直前のエンコーダエッジ検出時までは、図23で説明した制御と全く同じであるため、ここでは詳細説明を省略する。   Next, a control example when the motor load decreases will be described with reference to FIG. In this case, the control is exactly the same as the control described with reference to FIG. 23 until the encoder edge is detected immediately before time t2, and thus detailed description thereof is omitted here.

時刻t1あたりから負荷が徐々に減少していくと、駆動速度が高速化していくため、エンコーダエッジ検出時のPWM値は小さくなっていく。そして、時刻t2におけるエンコーダエッジ検出時には、PWM値はdet_pwm_minより小さくなっている。そのため、a_paramを減少させることによりPWM値の変化率を減少させる。   As the load gradually decreases from around time t1, the drive speed increases, and the PWM value at the time of encoder edge detection decreases. When the encoder edge is detected at time t2, the PWM value is smaller than det_pwm_min. Therefore, the change rate of the PWM value is reduced by reducing a_param.

図25に、本実施形態のASIC192にて実行される通常駆動処理を示す。本実施形態の通常駆動処理が第2実施形態の通常駆動処理(図13参照)と異なるのは、S280にて否定判定された後からS490にてa_paramの補正演算が行われるまでの処理である。それ以外の処理は第2施形態と同じであるため、第2施形態の通常駆動処理と同じ処理には同じステップ番号を付し、その詳細説明を省略する。   FIG. 25 shows a normal drive process executed by the ASIC 192 of this embodiment. The normal drive process of the present embodiment differs from the normal drive process of the second embodiment (see FIG. 13) in the process from the negative determination in S280 until the correction calculation of a_param is performed in S490. . Since the other processes are the same as those in the second embodiment, the same steps as those in the normal drive process in the second embodiment are denoted by the same step numbers, and detailed description thereof is omitted.

図25に示す如く、S280にて否定判定されると、S361にて、エッジ検出時のPWM値(pwm_out)がdet_pwm_maxより大きいか否かが判断され、大きいと判断された場合は、S365に移行して、pwm_outとdet_pwm_maxの差がvarとして演算される。   As shown in FIG. 25, if a negative determination is made in S280, it is determined in S361 whether or not the PWM value (pwm_out) at the time of edge detection is larger than det_pwm_max. If it is determined that the value is larger, the process proceeds to S365. Then, the difference between pwm_out and det_pwm_max is calculated as var.

pwm_outがdet_pwm_max以下ならば、S361からS363に移行して、det_pwm_minより小さいか否かが判断される。ここで、det_pwm_min以上ならばそのままS500に移行するが、det_pwm_minより小さいならば、S367にて、pwm_outとdet_pwm_minの差がvarとして演算される。   If pwm_out is equal to or less than det_pwm_max, the process proceeds from S361 to S363, and it is determined whether or not it is smaller than det_pwm_min. Here, if it is not less than det_pwm_min, the process proceeds to S500 as it is, but if it is smaller than det_pwm_min, the difference between pwm_out and det_pwm_min is calculated as var in S367.

そして、S490のa_param補正演算では、上記のS365又はS367にて得られたvarを用いて、新たなa_paramが演算されることとなる。
従って、このように構成された本実施形態のモータ制御装置190によれば、エッジ検出時のPWM値に応じてa_paramの変更、延いてはPWM値変化率の変更がなされるため、モータ110の負荷に変動が生じても、安定して駆動対象を駆動させることができる。
In the a_param correction calculation in S490, a new a_param is calculated using the var obtained in S365 or S367.
Therefore, according to the motor control device 190 of the present embodiment configured as described above, the a_param is changed according to the PWM value at the time of edge detection, and further the change rate of the PWM value is changed. Even if the load fluctuates, the drive target can be driven stably.

尚、本実施形態において、高PWMデューティ検出閾値(det_pwm_max)は本発明の駆動力上限閾値に相当し、低PWMデューティ検出閾値(det_pwm_min)は本発明の駆動力下限閾値に相当し、PWM増分量補正部194は本発明の駆動力判断手段に相当する。   In this embodiment, the high PWM duty detection threshold value (det_pwm_max) corresponds to the driving force upper limit threshold value of the present invention, the low PWM duty detection threshold value (det_pwm_min) corresponds to the driving force lower limit threshold value of the present invention, and the PWM increment amount. The correction unit 194 corresponds to the driving force determination unit of the present invention.

また、PWM増分量補正部194は本発明の第一差分値演算手段(請求項33)及び第二差分値演算手段(請求項34)にも相当するものであり、図25の通常駆動処理におけるS365で演算されるvarは請求項33の第一差分値に相当し、S367で演算されるvarは請求項34の第二差分値に相当する。   Further, the PWM increment correction unit 194 corresponds to the first difference value calculation means (claim 33) and the second difference value calculation means (claim 34) of the present invention. In the normal drive process of FIG. The var calculated in S365 corresponds to the first difference value of claim 33, and the var calculated in S367 corresponds to the second difference value of claim 34.

[第8実施形態]
上記第1〜第6実施形態では、エッジ間隔時間(enc_period)に基づいてPWM値の変化率を変更するようにし、上記第7実施形態では、エッジ検出時のPWM値(pwm_out)に基づいてPWM値の変化率を変更するようにしたが、本実施形態では、エッジ検出時の駆動対象の速度(enc_velocity)に基づいてPWM値の変化率を変更する例について説明する。
[Eighth Embodiment]
In the first to sixth embodiments, the change rate of the PWM value is changed based on the edge interval time (enc_period). In the seventh embodiment, the PWM value is changed based on the PWM value (pwm_out) at the time of edge detection. Although the change rate of the value is changed, in this embodiment, an example will be described in which the change rate of the PWM value is changed based on the speed (enc_velocity) of the drive target at the time of edge detection.

図26に、本実施形態のモータ制御装置200の概略構成を示す。本実施形態のモータ制御装置200が第2実施形態のモータ制御装置150(図12参照)と大きく異なるのは、動作モード設定レジスタ群203内に速度閾値設定レジスタ67が設けられ、ここに高駆動速度検出閾値(micro_velo_max)と低駆動速度検出閾値(micro_velo_min)がそれぞれ設定されることと、PWM増分量補正部204にて、周期・速度計測部16から得られる駆動速度(enc_velocity)と上記各閾値とが比較されてその比較結果に応じた補正データが出力PWMデューティ生成部4へ出力されることである。それ以外については基本的に第2実施形態のモータ制御装置150と同じ構成であるため、第2実施形態のモータ制御装置150と同じ構成要素には同じ符号を付し、その詳細説明を省略する。   FIG. 26 shows a schematic configuration of the motor control device 200 of the present embodiment. The motor control device 200 of the present embodiment is significantly different from the motor control device 150 (see FIG. 12) of the second embodiment in that a speed threshold setting register 67 is provided in the operation mode setting register group 203, and this is a high drive. The speed detection threshold value (micro_velo_max) and the low drive speed detection threshold value (micro_velo_min) are set, and the drive speed (enc_velocity) obtained from the period / speed measurement unit 16 in the PWM increment correction unit 204 and the above threshold values. And the correction data corresponding to the comparison result is output to the output PWM duty generation unit 4. The rest of the configuration is basically the same as that of the motor control device 150 of the second embodiment, and thus the same components as those of the motor control device 150 of the second embodiment are denoted by the same reference numerals and detailed description thereof is omitted. .

図27に、本実施形態のASIC202にて実行される通常駆動処理を示す。本実施形態の通常駆動処理が第2実施形態の通常駆動処理(図13参照)と異なるのは、S280にて否定判定された後からS490にてa_paramの補正演算が行われるまでの処理である。それ以外の処理は第2施形態と同じであるため、第2施形態の通常駆動処理と同じ処理には同じステップ番号を付し、その詳細説明を省略する。   FIG. 27 shows a normal drive process executed by the ASIC 202 of this embodiment. The normal drive process of the present embodiment differs from the normal drive process of the second embodiment (see FIG. 13) in the process from the negative determination in S280 until the correction calculation of a_param is performed in S490. . Since the other processes are the same as those in the second embodiment, the same steps as those in the normal drive process in the second embodiment are denoted by the same step numbers, and detailed description thereof is omitted.

図27に示す如く、S280にて否定判定されると、S371にて、エッジ検出時の駆動速度(enc_velocity)がmicro_velo_minより小さいか否かが判断され、小さいと判断された場合は、S375に移行して、micro_velo_minとenc_velocityの差がvarとして演算される。   As shown in FIG. 27, if a negative determination is made in S280, it is determined in S371 whether or not the driving speed (enc_velocity) at the time of edge detection is smaller than micro_velo_min. If it is determined that the driving speed is small, the process proceeds to S375. Then, the difference between micro_velo_min and enc_velocity is calculated as var.

enc_velocityがmicro_velo_min以上ならば、S371からS373に移行して、micro_velo_maxより大きいか否かが判断される。ここで、micro_velo_max以下ならばそのままS500に移行するが、micro_velo_maxより大きいならば、S377にて、micro_velo_maxとenc_velocityの差がvarとして演算される。   If enc_velocity is greater than or equal to micro_velo_min, the process proceeds from S371 to S373, where it is determined whether or not it is greater than micro_velo_max. Here, if it is equal to or smaller than micro_velo_max, the process proceeds to S500 as it is. If it is larger than micro_velo_max, the difference between micro_velo_max and enc_velocity is calculated as var in S377.

そして、S490のa_param補正演算では、上記のS375又はS377にて得られたvarを用いて、新たなa_paramが演算されることとなる。
従って、このように構成された本実施形態のモータ制御装置200によれば、エッジ検出時の駆動速度に応じてa_paramの変更、延いてはPWM値変化率の変更がなされるため、モータ110の負荷に変動が生じても、安定して駆動対象を駆動させることができる。
In the a_param correction calculation in S490, a new a_param is calculated using the var obtained in S375 or S377.
Therefore, according to the motor control device 200 of the present embodiment configured as described above, the a_param is changed according to the driving speed at the time of edge detection, and further the change rate of the PWM value is changed. Even if the load fluctuates, the drive target can be driven stably.

尚、本実施形態において、高駆動速度検出閾値(micro_velo_max)は本発明の速度上限閾値に相当し、低駆動速度検出閾値(micro_velo_min)は本発明の速度下限閾値に相当し、PWM増分量補正部204は本発明の速度判断手段に相当する。   In the present embodiment, the high drive speed detection threshold (micro_velo_max) corresponds to the speed upper limit threshold of the present invention, the low drive speed detection threshold (micro_velo_min) corresponds to the speed lower limit threshold of the present invention, and the PWM increment correction unit 204 corresponds to the speed judgment means of the present invention.

また、PWM増分量補正部204は本発明の第一差分値演算手段(請求項31)及び第二差分値演算手段(請求項32)にも相当するものであり、図27の通常駆動処理におけるS375で演算されるvarは請求項31の第一差分値に相当し、S377で演算されるvarは請求項32の第二差分値に相当する。   Further, the PWM increment correction unit 204 corresponds to the first difference value calculating means (claim 31) and the second difference value calculating means (claim 32) of the present invention, and in the normal drive process of FIG. The var calculated in S375 corresponds to the first difference value of claim 31, and the var calculated in S377 corresponds to the second difference value of claim 32.

[変形例]
本発明の実施の形態は、上記実施形態に何ら限定されるものではなく、本発明の技術的範囲に属する限り種々の形態を採り得ることはいうまでもない。
[Modification]
The embodiment of the present invention is not limited to the above embodiment, and it goes without saying that various forms can be adopted as long as they belong to the technical scope of the present invention.

例えば、上記第4実施形態では、エンコーダエッジ検出時のエッジ間隔時間(enc_period)に基づいてPWM値更新周期Tvを変化させることにより、PWM値の変化率を変更する例を説明したが、Tvを変化させることによるPWM値の変化率の変更は、例えば図28に示すようにエンコーダエッジ検出時のPWM値(pwm_out)に基づいて行うこともできるし、また例えば、図29に示すようにエンコーダエッジ検出時の駆動速度(enc_velocity)に基づいて行うこともできる。   For example, in the fourth embodiment, the example in which the change rate of the PWM value is changed by changing the PWM value update period Tv based on the edge interval time (enc_period) at the time of encoder edge detection has been described. For example, as shown in FIG. 28, the change rate of the PWM value can be changed based on the PWM value (pwm_out) at the time of encoder edge detection, or, for example, as shown in FIG. It can also be performed based on the driving speed (enc_velocity) at the time of detection.

図28は、エンコーダエッジ検出時のPWM値(pwm_out)に基づいてTvを変化させる場合の通常駆動処理を示すものであり、第4実施形態の通常駆動処理(図18参照)におけるS290をS361に、S300をS363に、S351をS381に、S353をS383に、それぞれ置き換えたものである。   FIG. 28 shows a normal drive process when Tv is changed based on the PWM value (pwm_out) at the time of encoder edge detection. S290 in the normal drive process (see FIG. 18) of the fourth embodiment is changed to S361. , S300 is replaced with S363, S351 is replaced with S381, and S353 is replaced with S383.

即ち、エッジ検出時にpwm_outがdet_pwm_maxより大きければ、S381にてdet_pwm_maxとpwm_outの差をvarとして設定し、pwm_outがdet_pwm_minより小さければ、S383にてdet_pwm_minとpwm_outの差をvarとして設定する。   That is, if pwm_out is larger than det_pwm_max at the time of edge detection, the difference between det_pwm_max and pwm_out is set as var in S381, and if pwm_out is smaller than det_pwm_min, the difference between det_pwm_min and pwm_out is set as var in S383.

また、図29は、エンコーダエッジ検出時の駆動速度(enc_velocity)に基づいてTvを変化させる場合の通常駆動処理を示すものであり、第4実施形態の通常駆動処理(図18参照)におけるS290をS371に、S300をS373に、S351をS391に、S353をS393に、それぞれ置き換えたものである。   FIG. 29 shows normal drive processing when Tv is changed based on the drive speed (enc_velocity) at the time of encoder edge detection, and S290 in the normal drive processing (see FIG. 18) of the fourth embodiment. In S371, S300 is replaced with S373, S351 is replaced with S391, and S353 is replaced with S393.

即ち、エッジ検出時にenc_velocityがmicro_velo_minより小さければ、S391にてenc_velocityとmicro_velo_minの差をvarとして設定し、enc_velocityがmicro_velo_maxより大きければ、S393にてenc_velocityとmicro_velo_maxの差をvarとして設定する。   In other words, if enc_velocity is smaller than micro_velo_min at the time of edge detection, the difference between enc_velocity and micro_velo_min is set as var in S391, and if enc_velocity is larger than micro_velo_max, enc_velocity is set to be the difference of enc_velocity in S393.

このように、エンコーダエッジ検出時のPWM値(pwm_out)或いは駆動速度(enc_velocity)によっても、PWM値更新間隔Tvを変更することができる。   Thus, the PWM value update interval Tv can also be changed by the PWM value (pwm_out) or the driving speed (enc_velocity) at the time of encoder edge detection.

また、上記第1実施形態では、エッジ間隔時間(enc_period)に基づいてa_paramを一定量変化(増加或いは減少)させるにあたり、前回のa_paramに対して増加或いは減少させるようにしたが、これに限らず、例えば単に3種類の駆動時PWM増分量(accel_param,accel_param1,accel_param2)を用意して、エッジ間隔時間(enc_period)に応じて切り換えるようにしてもよい。その具体例を図30に示す。尚、図30は、図8の通常駆動処理中の破線で囲んだ部分に対応する処理であり、図8の破線部を図30の破線部に置き換えることで、上述した3種類の駆動時PWM増分量を切り換える処理が実現される。また、本例ではaccel_param1<accel_param<accel_param2の関係がある。   In the first embodiment, when a_param is changed (increased or decreased) by a certain amount based on the edge interval time (enc_period), it is increased or decreased with respect to the previous a_param. However, the present invention is not limited to this. For example, three types of driving PWM increments (accel_param, accel_param1, accel_param2) may be prepared and switched according to the edge interval time (enc_period). A specific example is shown in FIG. 30 is a process corresponding to a portion surrounded by a broken line in the normal driving process of FIG. 8, and the above-described three types of PWM during driving are replaced by replacing the broken line part of FIG. 8 with the broken line part of FIG. A process of switching the increment amount is realized. In this example, there is a relationship of accel_param1 <accel_param <accel_param2.

具体的には、図30に示すように、enc_periodがdet_period_maxより大きければ、S401にてa_paramとしてaccel_param2を設定し、enc_periodがdet_period_minより小さければ、S402にてa_paramとしてaccel_param1を設定し、それ以外ならばS403にてa_paramとしてaccel_param(即ち既述の初期値)を設定する。   Specifically, as shown in FIG. 30, if enc_period is larger than det_period_max, acc_param2 is set as a_param in S401, and if enc_period is smaller than det_period_min, acc_param is set as 1 if a_param is other than a_param. In S403, acc_param (that is, the above-described initial value) is set as a_param.

また、PWM値更新間隔Tvを変化させる例についても、上記第3実施形態では、前回の定加算タイミングprcntに対して増加或いは減少させるようにしたが、これに限らず、図31に示すように、単に3種類の定加算タイミング(pwm_reload_count,pwm_reload_count1,pwm_reload_count2)を用意して、エッジ間隔時間(enc_period)に応じて切り換えるようにしてもよい。   Further, in the third embodiment, the PWM value update interval Tv is increased or decreased with respect to the previous constant addition timing prcnt. However, the present invention is not limited to this, as shown in FIG. Alternatively, three types of constant addition timings (pwm_reload_count, pwm_reload_count1, and pwm_reload_count2) may be prepared and switched according to the edge interval time (enc_period).

尚、図31も、上記説明した図30と同様、図8の通常駆動処理中の破線で囲んだ部分に対応する処理であり、図8の破線部を図31の破線部に置き換えることで、上述した3種類のPWM値更新間隔を切り換える処理が実現される。本例では、pwm_reload_count1<pwm_reload_count<pwm_reload_count2の関係がある。   FIG. 31 is a process corresponding to the portion surrounded by the broken line in the normal driving process of FIG. 8 as in FIG. 30 described above. By replacing the broken line part of FIG. 8 with the broken line part of FIG. A process for switching the three types of PWM value update intervals described above is realized. In this example, there is a relationship of pwm_reload_count1 <pwm_reload_count <pwm_reload_count2.

また、図30に示した3種類のa_paramを切り換える例や、図31に示した3種類のprcntを切り換える方法は、いずれも、エンコーダエッジ検出時のPWM値(pwm_out)に基づいて変化率を変更する制御や、エンコーダエッジ検出時の駆動速度(enc_velocity)に基づいて変化率を変更する制御に対しても、同様に適用できることはいうまでもない。   In addition, the example of switching the three types of a_param shown in FIG. 30 and the method of switching the three types of prcnt shown in FIG. 31 both change the rate of change based on the PWM value (pwm_out) at the time of encoder edge detection. Needless to say, the present invention can be similarly applied to the control to change the rate of change based on the control to perform and the drive speed (enc_velocity) at the time of encoder edge detection.

また、第5実施形態や第6実施形態で説明した、a_param及びTvの両者を変化させることでPWM値の変化率を変更する方法についても、エンコーダエッジ検出時のPWM値(pwm_out)に基づいて変化率を変更する制御や、エンコーダエッジ検出時の駆動速度(enc_velocity)に基づいて変化率を変更する制御に対して同様に適用可能である。   The method of changing the change rate of the PWM value by changing both a_param and Tv described in the fifth and sixth embodiments is also based on the PWM value (pwm_out) at the time of encoder edge detection. The present invention can be similarly applied to control for changing the rate of change and control for changing the rate of change based on the driving speed (enc_velocity) at the time of encoder edge detection.

更に、PWM値の変化率の変更例として、上記各実施形態では、一定量増減する例や、エンコーダエッジ検出時の駆動状態(enc_periodやpwm_outなど)に応じて連続的に変化させる例を説明したが、エンコーダエッジ検出時の駆動状態に応じて段階的に変化させるようにしてもよい。   Further, as examples of changing the rate of change of the PWM value, in each of the above-described embodiments, an example in which the amount is increased or decreased by a certain amount, and an example in which the rate is continuously changed according to the driving state (enc_period, pwm_out, etc.) at the time of encoder edge detection are described. However, it may be changed stepwise according to the drive state at the time of encoder edge detection.

また、上記実施形態では、モータ駆動ドライバ回路11として、図2のような、Hブリッジを構成する各スイッチング素子S1〜S4に対する駆動信号をそれぞれ駆動用信号生成部8から入力して動作するものを示したが、これに限らず、例えば図32に示すモータ駆動ドライバ回路11bや、或いは図33に示すようなモータ駆動ドライバ回路11aのように構成してもよい。   In the above embodiment, the motor drive driver circuit 11 is operated by inputting drive signals for the switching elements S1 to S4 constituting the H-bridge as shown in FIG. However, the present invention is not limited to this. For example, a motor drive driver circuit 11b shown in FIG. 32 or a motor drive driver circuit 11a shown in FIG. 33 may be used.

図32に示したモータ駆動ドライバ回路11bは、モータ110の通電電流を電流検出抵抗Rdの電圧として検出することによりモータ110のトルクを検出し、その検出したトルクが、目標トルク指令と一致するようにモータ110の通電を制御するための制御信号を、DCモータ駆動用IC86内のトルク制御部87が生成するように構成されている。そして、駆動用信号生成部8bは、出力PWMデューティ生成部4からのPWM値に応じたPWM信号を生成すると共に、回転方向設定レジスタ22の設定値及び起動設定レジスタ21の設定値に従って、駆動方向(モータ110を回転すべき方向)指令、及びモータ110への通電を行うべきか否かを示す駆動指令を出力する。   The motor drive driver circuit 11b shown in FIG. 32 detects the torque of the motor 110 by detecting the energization current of the motor 110 as the voltage of the current detection resistor Rd, and the detected torque matches the target torque command. In addition, the torque control unit 87 in the DC motor driving IC 86 generates a control signal for controlling the energization of the motor 110. The drive signal generation unit 8b generates a PWM signal corresponding to the PWM value from the output PWM duty generation unit 4 and drives the drive direction according to the set value of the rotation direction setting register 22 and the set value of the start setting register 21. (Direction to rotate motor 110) command and a drive command indicating whether or not to energize motor 110 are output.

目標トルク指令(目標電流指令)は、PWM信号を、抵抗R1,R2及びコンデンサC1から構成される積分回路で積分することにより得られるものである。尚、このDCモータ駆動用IC86の内部も、図示はしないものの図2と同じようなHブリッジ回路が形成されており、最終的には、トルク制御部87からの制御信号に基づいてこのHブリッジ回路を構成するスイッチング素子のスイッチング動作が制御されることになる。   The target torque command (target current command) is obtained by integrating the PWM signal with an integrating circuit including resistors R1 and R2 and a capacitor C1. The DC motor driving IC 86 has an H bridge circuit similar to that shown in FIG. 2 although not shown. Finally, the H bridge is based on a control signal from the torque control unit 87. The switching operation of the switching elements constituting the circuit is controlled.

このように構成されたモータ駆動ドライバ回路11bを用いれば、単にPWM信号に従って図2のモータ駆動ドライバ回路11を駆動(スイッチング制御)するのに比べ、モータ駆動ドライバ回路11内にてモータ110のトルクが一定になるよう制御されるため、安定したモータトルクによりキャリッジ102等を駆動することが可能となる。   When the motor drive driver circuit 11b configured as described above is used, the torque of the motor 110 in the motor drive driver circuit 11 is compared with the case where the motor drive driver circuit 11 in FIG. Therefore, the carriage 102 and the like can be driven with a stable motor torque.

また、図33に示したモータ駆動ドライバ回路11aは、図32で説明したモータ駆動ドライバ回路11bと比較して、抵抗R1,R2及びコンデンサC1で構成される積分回路がないだけであって、DCモータ駆動用ICは全く同じである。   33 is different from the motor drive driver circuit 11b described in FIG. 32 in that there is no integration circuit composed of resistors R1 and R2 and a capacitor C1, and the DC drive circuit 11a shown in FIG. The motor driving IC is exactly the same.

一方、駆動用信号生成部8aは、起動設定レジスタ21の設定値に基づいて駆動指令を生成し出力する。また、回転方向設定レジスタ22の設定値にもとづいて、駆動方向指令を生成し出力する。ここまでは、図32の駆動用信号生成部8bと同じである。そして、駆動用信号生成部8aは、出力PWMデューティ生成部4からのPWM値に対し、電流値を表すデータとなるように所定のゲインを乗じ、それを図示しないD/A変換器にてアナログ値の目標電流指令として、DCモータ駆動用IC86へ出力する。   On the other hand, the drive signal generator 8 a generates and outputs a drive command based on the set value of the activation setting register 21. Further, a drive direction command is generated and output based on the set value of the rotation direction setting register 22. The steps so far are the same as those of the drive signal generation unit 8b of FIG. Then, the drive signal generation unit 8a multiplies the PWM value from the output PWM duty generation unit 4 by a predetermined gain so as to be data representing the current value, and then analogizes it by a D / A converter (not shown). The value is output to the DC motor driving IC 86 as a target current command.

また、上記各実施形態では、一例として、インクジェットプリンタ(図34)のキャリッジ102を駆動するモータ110においてキャッピングが行われる際の微小速度制御について説明したが、本発明の適用がキャッピング時の微小速度制御に限らないのはいうまでもなく、例えば上述した間隙調整領域における微小速度制御や、ノズル部107のワイプ時における微小速度制御など、駆動対象(上記例ではキャリッジ102)が一定量駆動される毎(上記例ではエンコーダエッジ検出毎)にモータの駆動力(上記例ではPWM値)を所定周期で所定増分量ずつ増加させていくようなモータ制御に対して広く適用することが可能である。   In each of the above embodiments, as an example, the micro speed control when capping is performed in the motor 110 that drives the carriage 102 of the ink jet printer (FIG. 34) has been described. However, the application of the present invention is a micro speed at the time of capping. Needless to say, the drive target (the carriage 102 in the above example) is driven by a certain amount such as the minute speed control in the gap adjustment region described above and the minute speed control when the nozzle unit 107 is wiped. The present invention can be widely applied to motor control in which the motor driving force (PWM value in the above example) is increased by a predetermined increment in a predetermined cycle every time (in the above example, every encoder edge detection).

特に、キャッピング時の微小速度制御のようにモータ負荷が徐々に増加していく場合や、ワイプ動作の終了前後でモータ負荷が急変する場合のように、モータ負荷の変動が余儀なくされるような場合のモータ制御方法(装置)として本発明の方法(装置)を適用するとより効果的である。   Especially when the motor load fluctuates, such as when the motor load gradually increases as in micro speed control during capping, or when the motor load suddenly changes before and after the end of the wipe operation. It is more effective to apply the method (apparatus) of the present invention as the motor control method (apparatus).

また、モータ110についても、DCモータに限らずACモータでも適用可能であり、ステップモータのような矩形パルスにより駆動されるモータを除くあらゆるモータに対して本発明を適用可能である。   Further, the motor 110 is not limited to the DC motor but can be applied to an AC motor, and the present invention can be applied to any motor except a motor driven by a rectangular pulse such as a step motor.

第1実施形態のモータ制御装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the motor control apparatus of 1st Embodiment. モータ駆動ドライバ回路の概略構成を示す説明図である。It is explanatory drawing which shows schematic structure of a motor drive driver circuit. エンコーダからのパルス信号に対する、エンコーダエッジ検出信号、エンコーダエッジカウント値、エッジ間隔時間及び駆動速度の関係を説明するための説明図である。It is explanatory drawing for demonstrating the relationship of an encoder edge detection signal, an encoder edge count value, edge space | interval time, and a driving speed with respect to the pulse signal from an encoder. 第1実施形態のモータ制御装置におけるモータ負荷が増加していく場合の制御例を示すタイムチャートである。It is a time chart which shows the example of control in case the motor load in the motor control apparatus of 1st Embodiment increases. 第1実施形態のモータ制御装置におけるモータ負荷が減少していく場合の制御例を示すタイムチャートである。It is a time chart which shows the example of control in case the motor load in the motor control apparatus of 1st Embodiment decreases. 駆動時PWM増分量を変化させることによってPWM値の変化率を増減することを説明するための説明図である。It is explanatory drawing for demonstrating increasing / decreasing the change rate of a PWM value by changing the PWM increment amount at the time of a drive. CPUが実行するASIC設定処理を示すフローチャートである。It is a flowchart which shows the ASIC setting process which CPU performs. 第1実施形態のASICにて実行される、モータの起動から減速開始までの通常駆動処理を示すフローチャートである。It is a flowchart which shows the normal drive process from starting of a motor to a deceleration start performed by ASIC of 1st Embodiment. ASICにて実行される減速・停止処理を示すフローチャートである。It is a flowchart which shows the deceleration / stop process performed by ASIC. ASICにて実行される位置検出パルス生成処理を示すフローチャートである。It is a flowchart which shows the position detection pulse production | generation process performed with ASIC. ASICにて実行される割り込み信号生成処理を示すフローチャートである。It is a flowchart which shows the interruption signal production | generation process performed with ASIC. 第2実施形態のモータ制御装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the motor control apparatus of 2nd Embodiment. 第2実施形態のASICにて実行される、モータの起動から減速開始までの通常駆動処理を示すフローチャートである。It is a flowchart which shows the normal drive process from starting of a motor to the start of deceleration performed by ASIC of 2nd Embodiment. 第3実施形態のモータ制御装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the motor control apparatus of 3rd Embodiment. PWM値更新間隔を変化させることによってPWM値の変化率を増減することを説明するための説明図である。It is explanatory drawing for demonstrating increasing / decreasing the change rate of a PWM value by changing a PWM value update space | interval. 第3実施形態のASICにて実行される、モータの起動から減速開始までの通常駆動処理を示すフローチャートである。It is a flowchart which shows the normal drive process from starting of a motor to a deceleration start performed by ASIC of 3rd Embodiment. 第4実施形態のモータ制御装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the motor control apparatus of 4th Embodiment. 第4実施形態のASICにて実行される、モータの起動から減速開始までの通常駆動処理を示すフローチャートである。It is a flowchart which shows the normal drive process from starting of a motor to the start of deceleration performed with ASIC of 4th Embodiment. 第5実施形態のモータ制御装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the motor control apparatus of 5th Embodiment. 第5実施形態のASICにて実行される、モータの起動から減速開始までの通常駆動処理を示すフローチャートである。It is a flowchart which shows the normal drive process from starting of a motor to the start of deceleration performed with ASIC of 5th Embodiment. 第6実施形態のASICにて実行される、モータの起動から減速開始までの通常駆動処理を示すフローチャートである。It is a flowchart which shows the normal drive process from starting of a motor to a deceleration start performed by ASIC of 6th Embodiment. 第7実施形態のモータ制御装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the motor control apparatus of 7th Embodiment. 第7実施形態のモータ制御装置におけるモータ負荷が増加していく場合の制御例を示すタイムチャートである。It is a time chart which shows the control example in case the motor load in the motor control apparatus of 7th Embodiment increases. 第7実施形態のモータ制御装置におけるモータ負荷が減少していく場合の制御例を示すタイムチャートである。It is a time chart which shows the example of control in case the motor load in the motor control apparatus of 7th Embodiment decreases. 第7実施形態のASICにて実行される、モータの起動から減速開始までの通常駆動処理を示すフローチャートである。It is a flowchart which shows the normal drive process from starting of a motor to the start of deceleration performed with ASIC of 7th Embodiment. 第8実施形態のモータ制御装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the motor control apparatus of 8th Embodiment. 第8実施形態のモータ制御装置におけるモータ負荷が減少していく場合の制御例を示すタイムチャートである。It is a time chart which shows the control example in case the motor load in the motor control apparatus of 8th Embodiment reduces. 通常駆動処理の変形例を示すフローチャートである。It is a flowchart which shows the modification of a normal drive process. 通常駆動処理の変形例を示すフローチャートである。It is a flowchart which shows the modification of a normal drive process. 通常駆動処理の変形例を示すフローチャートである。It is a flowchart which shows the modification of a normal drive process. 通常駆動処理の変形例を示すフローチャートである。It is a flowchart which shows the modification of a normal drive process. モータ駆動ドライバ回路の変形例を示す説明図である。It is explanatory drawing which shows the modification of a motor drive driver circuit. モータ駆動ドライバ回路の変形例を示す説明図である。It is explanatory drawing which shows the modification of a motor drive driver circuit. インクジェットプリンタの記録機構の概略構成を示す説明図である。It is explanatory drawing which shows schematic structure of the recording mechanism of an inkjet printer. 従来のDCモータ制御方法を示す説明図であり、(a)はモータ負荷が一定の場合の制御例、(b)はモータ負荷が増加していく場合の制御例である。It is explanatory drawing which shows the conventional DC motor control method, (a) is a control example in case a motor load is constant, (b) is a control example in case a motor load increases. エンコーダエッジ検出毎のPWM値リセット及び一定周期毎にPWM値が増加していくことを示す説明図である。It is explanatory drawing which shows that a PWM value resets every encoder edge detection, and a PWM value increases for every fixed period.

符号の説明Explanation of symbols

3,153,163,173,183,193,203・・・動作モード設定レジスタ群、4,165・・・出力PWMデューティ生成部、6,154,185,194,204・・・PWM増分量補正部、8・・・駆動用信号生成部、10,150,160,170,180,190,200・・・モータ制御装置、11・・・モータ駆動ドライバ回路、12・・・クロック生成部、13・・・エンコーダエッジ検出部、14・・・位置カウンタ、15・・・領域判定部、15a・・・減速時間計測タイマ、16・・・周期・速度計測部、17・・・各種信号処理部、18,164,174,184・・・加算タイミング生成部、21・・・起動設定レジスタ、22・・・回転方向設定レジスタ、23・・・PWM周期設定レジスタ、24・・・定加算タイミング設定レジスタ、25・・・位置設定レジスタ群、26・・・PWM値設定レジスタ群、27・・・PWM増減量設定レジスタ群、28・・・制限PWM設定レジスタ群、29,41,46,51,56,61,66・・・増分量補正値設定レジスタ群、30・・・エッジ間隔時間閾値設定レジスタ群、62・・・PWMデューティ閾値設定レジスタ、67・・・速度閾値設定レジスタ、100・・・記録機構、101・・・ガイド軸、102・・・キャリッジ、103・・・記録ヘッド、104・・・移動ベルト、105・・・エンコーダ、106・・・キャップ装置、107・・・ノズル部、110・・・モータ、121・・・キャップ、122・・・バネ、123・・・スロープ 3,153,163,173,183,193,203 ... operation mode setting register group, 4,165 ... output PWM duty generation unit, 6,154,185,194,204 ... PWM increment correction , 8... Drive signal generation unit, 10, 150, 160, 170, 180, 190, 200... Motor control device, 11... Motor drive driver circuit, 12.・ ・ ・ Encoder edge detection unit, 14 ... Position counter, 15 ... Area determination unit, 15a ... Deceleration time measurement timer, 16 ... Cycle / speed measurement unit, 17 ... Various signal processing units , 18, 164, 174, 184 ... addition timing generation unit, 21 ... start setting register, 22 ... rotation direction setting register, 23 ... PWM cycle setting register, 24 ... Constant addition timing setting register, 25... Position setting register group, 26... PWM value setting register group, 27... PWM increase / decrease amount setting register group, 28. 41, 46, 51, 56, 61, 66 ... increment amount correction value setting register group, 30 ... edge interval time threshold value setting register group, 62 ... PWM duty threshold value setting register, 67 ... speed threshold value Setting register, 100 ... recording mechanism, 101 ... guide shaft, 102 ... carriage, 103 ... recording head, 104 ... moving belt, 105 ... encoder, 106 ... cap device, 107 ... Nozzle part, 110 ... Motor, 121 ... Cap, 122 ... Spring, 123 ... Slope

Claims (45)

モータにより駆動される駆動対象が一定量駆動される毎に、前記モータの駆動力を予め設定した初期駆動力から所定の周期で所定の増分量ずつ増加させるモータ制御方法であって、
前記駆動対象が前記一定量駆動される毎に、該一定量駆動されるのに要した時間に応じて、前記駆動対象が目標駆動速度にて駆動されるよう、前記増分量と前記周期の比率である前記駆動力の変化率を変更する
ことを特徴とするモータ制御方法。
A motor control method for increasing a driving force of the motor by a predetermined increment from a preset initial driving force by a predetermined cycle every time a driving target driven by the motor is driven by a certain amount,
Each time the drive target is driven by the fixed amount, the ratio between the increment amount and the cycle so that the drive target is driven at the target drive speed according to the time required to drive the fixed amount. A motor control method comprising: changing a change rate of the driving force.
モータにより駆動される駆動対象が一定量駆動される毎に、前記モータの駆動力を予め設定した初期駆動力から所定の周期で所定の増分量ずつ増加させるモータ制御方法であって、
前記駆動対象が前記一定量駆動される毎に、該一定量駆動された時の前記駆動対象の駆動速度に応じて、前記駆動対象が目標駆動速度にて駆動されるよう、前記増分量と前記周期の比率である前記駆動力の変化率を変更する
ことを特徴とするモータ制御方法。
A motor control method for increasing a driving force of the motor by a predetermined increment from a preset initial driving force by a predetermined cycle every time a driving target driven by the motor is driven by a certain amount,
Each time the drive target is driven by the fixed amount, the increment amount and the drive unit are driven at a target drive speed according to the drive speed of the drive target when the fixed amount is driven. A motor control method characterized by changing a change rate of the driving force, which is a ratio of cycles.
モータにより駆動される駆動対象が一定量駆動される毎に、前記モータの駆動力を予め設定した初期駆動力から所定の周期で所定の増分量ずつ増加させるモータ制御方法であって、
前記駆動対象が前記一定量駆動される毎に、該一定量駆動された時の前記駆動力に応じて、前記駆動対象が目標駆動速度にて駆動されるよう、前記増分量と前記周期の比率である前記駆動力の変化率を変更する
ことを特徴とするモータ制御方法。
A motor control method for increasing a driving force of the motor by a predetermined increment from a preset initial driving force by a predetermined cycle every time a driving target driven by the motor is driven by a certain amount,
The ratio between the increment amount and the period so that the driving target is driven at a target driving speed according to the driving force when the driving target is driven by the constant amount. A motor control method comprising: changing a change rate of the driving force.
請求項1記載のモータ制御方法であって、
前記駆動対象が前記一定量駆動される毎に、次の(a)及び(b)の処理のうち少なくとも一方を実行することを特徴とするモータ制御方法。
(a)該一定量駆動されるのに要した時間が予め設定した経過時間上限閾値より長い場合、前記変化率を増加させる
(b)該一定量駆動されるのに要した時間が予め設定した経過時間下限閾値より短い場合、前記変化率を減少させる
The motor control method according to claim 1,
A motor control method characterized in that at least one of the following processes (a) and (b) is executed each time the drive target is driven by the predetermined amount.
(A) When the time required to drive the fixed amount is longer than a preset elapsed time upper limit threshold, the rate of change is increased. (B) The time required to drive the fixed amount is preset. If the elapsed time lower limit threshold is shorter, the rate of change is decreased.
請求項2記載のモータ制御方法であって、
前記駆動対象が前記一定量駆動される毎に、次の(a)及び(b)の処理のうち少なくともいずれか一方を実行することを特徴とするモータ制御方法。
(a)該一定量駆動された時の前記駆動速度が予め設定した速度下限閾値より小さい場合、前記変化率を増加させる
(b)該一定量駆動された時の前記駆動速度が予め設定した速度上限閾値より大きい場合、前記変化率を減少させる
The motor control method according to claim 2,
Each time the drive target is driven by the predetermined amount, at least one of the following processes (a) and (b) is executed.
(A) When the driving speed when the fixed amount is driven is smaller than a predetermined speed lower limit threshold, the change rate is increased. (B) The driving speed when the fixed amount is driven is a predetermined speed. If greater than the upper threshold, decrease the rate of change
請求項3記載のモータ制御方法であって、
前記駆動対象が前記一定量駆動される毎に、次の(a)及び(b)の処理のうち少なくとも一方を実行することを特徴とするモータ制御方法。
(a)該一定量駆動された時の前記駆動力が予め設定した駆動力上限閾値より大きい場合、前記変化率を増加させる
(b)該一定量駆動された時の前記駆動力が予め設定した駆動力下限閾値より小さい場合、前記変化率を減少させる
The motor control method according to claim 3,
A motor control method characterized in that at least one of the following processes (a) and (b) is executed each time the drive target is driven by the predetermined amount.
(A) When the driving force when the fixed amount is driven is larger than a preset driving force upper limit threshold, the change rate is increased. (B) The driving force when the fixed amount is driven is set in advance. If the driving force is lower than the lower threshold, the rate of change is decreased.
請求項4〜6のいずれかに記載のモータ制御方法であって、
前記(a)の処理における前記増加させる場合の増加量は、予め設定した一定の基準増加量であり、
前記(b)の処理における前記減少させる場合の減少量は、予め設定した一定の基準減少量である
ことを特徴とするモータ制御方法。
A motor control method according to any one of claims 4 to 6,
The amount of increase in the case of increasing in the process (a) is a predetermined reference increase amount set in advance.
The motor control method characterized in that the reduction amount in the case of the reduction in the process (b) is a predetermined reference reduction amount.
請求項4記載のモータ制御方法であって、
前記(a)の処理における前記増加させる場合の増加量は、前記駆動対象が前記一定量駆動されるのに要した時間と前記経過時間上限閾値との差が大きいほど連続的又は段階的に大きくなるように設定され、
前記(b)の処理における前記減少させる場合の減少量は、前記経過時間下限閾値と前記駆動対象が前記一定量駆動されるのに要した時間との差が大きいほど連続的又は段階的に大きくなるように設定される
ことを特徴とするモータ制御方法。
The motor control method according to claim 4,
The amount of increase in the case of increasing in the process of (a) increases continuously or stepwise as the difference between the time required for driving the drive target by the fixed amount and the elapsed time upper limit threshold increases. Is set to be
The amount of decrease in the case of decreasing in the process of (b) increases continuously or stepwise as the difference between the elapsed time lower limit threshold and the time required for driving the target to be driven by the fixed amount increases. A motor control method characterized by being set to be
請求項5記載のモータ制御方法であって、
前記(a)の処理における前記増加させる場合の増加量は、前記速度下限閾値と前記駆動対象が前記一定量駆動された時の前記駆動速度との差が大きいほど連続的又は段階的に大きくなるように設定され、
前記(b)の処理における前記減少させる場合の減少量は、前記駆動対象が前記一定量駆動された時の前記駆動速度と前記速度上限閾値との差が大きいほど連続的又は段階的に大きくなるように設定される
ことを特徴とするモータ制御方法。
The motor control method according to claim 5,
The amount of increase in the case of increasing in the processing of (a) increases continuously or stepwise as the difference between the speed lower limit threshold and the drive speed when the drive target is driven by the fixed amount is larger. Is set to
The amount of decrease in the case of the decrease in the process (b) increases continuously or stepwise as the difference between the drive speed when the drive target is driven by the fixed amount and the speed upper limit threshold is larger. A motor control method characterized by being set as follows.
請求項6記載のモータ制御方法であって、
前記(a)の処理における前記増加させる場合の増加量は、前記駆動対象が前記一定量駆動された時の前記駆動力と前記駆動力上限閾値との差が大きいほど連続的又は段階的に大きくなるように設定され、
前記(b)の処理における前記減少させる場合の減少量は、前記駆動力下限閾値と前記駆動対象が前記一定量駆動された時の前記駆動力との差が大きいほど連続的又は段階的に大きくなるように設定される
ことを特徴とするモータ制御方法。
The motor control method according to claim 6, comprising:
The amount of increase in the case of increasing in the process of (a) increases continuously or stepwise as the difference between the driving force and the driving force upper limit threshold when the driving target is driven by the fixed amount is larger. Is set to be
In the process (b), the amount of decrease when decreasing is increased continuously or stepwise as the difference between the driving force lower limit threshold and the driving force when the driving target is driven by the fixed amount is larger. A motor control method characterized by being set to be
請求項4〜10のいずれかに記載のモータ制御方法であって、
前記(a)の処理における前記変化率の増加は、前記周期を減少させること及び前記増分量を増加させることの少なくとも一方により行い、
前記(b)の処理における前記変化率の減少は、前記周期を増加させること及び前記増分量を減少させることの少なくとも一方により行う
ことを特徴とするモータ制御方法。
The motor control method according to any one of claims 4 to 10,
The increase in the change rate in the processing of (a) is performed by at least one of decreasing the period and increasing the increment amount,
The motor control method characterized in that the reduction of the change rate in the process (b) is performed by at least one of increasing the period and decreasing the increment.
モータにより駆動される駆動対象が一定量駆動される毎に、その旨を示す駆動検知信号を出力する駆動検知手段と、
該駆動検知手段から前記駆動検知信号が出力される毎に、前記モータの駆動力を予め設定した初期駆動力から所定の周期で所定の増分量ずつ増加させるための、駆動力制御信号を出力する制御手段と、
該制御手段からの前記駆動力制御信号に基づいて前記モータを回転駆動するモータ駆動手段と、
を備えたモータ制御装置であって、
前記駆動検知手段から前記駆動検知信号が出力される毎に、該駆動検知信号が前回出力されてから今回出力されるまでの経過時間に応じて、前記駆動対象が目標駆動速度にて駆動されるよう、前記増分量と前記周期の比率である前記駆動力の変化率を変更する変化率変更手段を備えたこと
を特徴とするモータ制御装置。
Drive detection means for outputting a drive detection signal indicating that every time a drive target driven by a motor is driven by a certain amount;
Each time the drive detection signal is output from the drive detection means, a drive force control signal for increasing the drive force of the motor from the preset initial drive force by a predetermined increment in a predetermined cycle is output. Control means;
Motor driving means for rotationally driving the motor based on the driving force control signal from the control means;
A motor control device comprising:
Each time the drive detection signal is output from the drive detection means, the drive target is driven at a target drive speed according to the elapsed time from the output of the drive detection signal to the output of the current time. As described above, the motor control device further comprises a change rate changing means for changing a change rate of the driving force that is a ratio of the increment amount and the cycle.
モータにより駆動される駆動対象が一定量駆動される毎に、その旨を示す駆動検知信号を出力する駆動検知手段と、
該駆動検知手段から前記駆動検知信号が出力される毎に、前記モータの駆動力を予め設定した初期駆動力から所定の周期で所定の増分量ずつ増加させるための、駆動力制御信号を出力する制御手段と、
該制御手段からの前記駆動力制御信号に基づいて前記モータを回転駆動するモータ駆動手段と、
を備えたモータ制御装置であって、
前記駆動検知手段から前記駆動検知信号が出力される毎に、該出力時の前記駆動対象の駆動速度に応じて、前記駆動対象が目標駆動速度にて駆動されるよう、前記増分量と前記周期の比率である前記駆動力の変化率を変更する変化率変更手段を備えたこと
を特徴とするモータ制御装置。
Drive detection means for outputting a drive detection signal indicating that every time a drive target driven by a motor is driven by a certain amount;
Each time the drive detection signal is output from the drive detection means, a drive force control signal for increasing the drive force of the motor from the preset initial drive force by a predetermined increment in a predetermined cycle is output. Control means;
Motor driving means for rotationally driving the motor based on the driving force control signal from the control means;
A motor control device comprising:
Each time the drive detection signal is output from the drive detection unit, the increment amount and the period are set so that the drive target is driven at the target drive speed according to the drive speed of the drive target at the time of output. A motor control device comprising: a change rate changing means for changing the change rate of the driving force, which is a ratio of
モータにより駆動される駆動対象が一定量駆動される毎に、その旨を示す駆動検知信号を出力する駆動検知手段と、
該駆動検知手段から前記駆動検知信号が出力される毎に、前記モータの駆動力を予め設定した初期駆動力から所定の周期で所定の増分量ずつ増加させるための、駆動力制御信号を出力する制御手段と、
該制御手段からの前記駆動力制御信号に基づいて前記モータを回転駆動するモータ駆動手段と、
を備えたモータ制御装置であって、
前記駆動検知手段から前記駆動検知信号が出力される毎に、該出力時の前記駆動力に応じて、前記駆動対象が目標駆動速度にて駆動されるよう、前記増分量と前記周期の比率である前記駆動力の変化率を変更する変化率変更手段を備えたこと
を特徴とするモータ制御装置。
Drive detection means for outputting a drive detection signal indicating that every time a drive target driven by a motor is driven by a certain amount;
Each time the drive detection signal is output from the drive detection means, a drive force control signal for increasing the drive force of the motor from the preset initial drive force by a predetermined increment in a predetermined cycle is output. Control means;
Motor driving means for rotationally driving the motor based on the driving force control signal from the control means;
A motor control device comprising:
Each time the drive detection signal is output from the drive detection means, the ratio between the increment and the cycle is set so that the drive target is driven at a target drive speed according to the drive force at the time of output. A motor control device comprising a change rate changing means for changing a change rate of the driving force.
請求項12記載のモータ制御装置であって、
前記駆動検知信号が出力される毎に、前記経過時間が予め設定した経過時間上限閾値より長いか否かを判断する経過時間判断手段を備え、
前記変化率変更手段は、前記経過時間判断手段にて前記経過時間上限閾値より長いと判断された場合、前記変化率を増加させる
ことを特徴とするモータ制御装置。
The motor control device according to claim 12,
Elapsed time determination means for determining whether the elapsed time is longer than a preset elapsed time upper limit threshold each time the drive detection signal is output,
The motor control device, wherein the change rate changing means increases the change rate when the elapsed time judging means judges that the elapsed time judging means is longer than the elapsed time upper limit threshold.
請求項12記載のモータ制御装置であって、
前記駆動検知信号が出力される毎に、前記経過時間が予め設定した経過時間下限閾値より短いか否かを判断する経過時間判断手段を備え、
前記変化率変更手段は、前記経過時間判断手段にて前記経過時間下限閾値より短いと判断された場合、前記変化率を減少させる
ことを特徴とするモータ制御装置。
The motor control device according to claim 12,
Elapsed time determination means for determining whether the elapsed time is shorter than a preset elapsed time lower limit threshold every time the drive detection signal is output,
The change rate changing means decreases the change rate when the elapsed time judging means judges that the elapsed time judging means is shorter than the elapsed time lower limit threshold value.
請求項16記載のモータ制御装置であって、
前記経過時間判断手段は、更に、前記経過時間が、前記経過時間下限閾値より大きい所定の経過時間上限閾値を越えているか否かを判断し、
前記変化率変更手段は、前記経過時間判断手段にて前記経過時間上限閾値を越えていると判断された場合、前記変化率を増加させる
ことを特徴とするモータ制御装置。
The motor control device according to claim 16, comprising:
The elapsed time determining means further determines whether or not the elapsed time exceeds a predetermined elapsed time upper limit threshold greater than the elapsed time lower limit threshold,
The motor control apparatus, wherein the change rate changing means increases the change rate when the elapsed time judging means judges that the elapsed time upper limit threshold is exceeded.
請求項17記載のモータ制御装置であって、
前記変化率変更手段は、
前記変化率の増加及び減少を、前記駆動検知信号が前回出力された時の変化率に対して行い、
前記駆動検知信号が出力された時、前記経過時間判断手段にて前記経過時間が前記経過時間下限閾値以上であって且つ前記経過時間上限閾値以下と判断された場合は、前記変化率を変更しない
ことを特徴とするモータ制御装置。
The motor control device according to claim 17,
The change rate changing means is:
Increasing and decreasing the rate of change with respect to the rate of change when the drive detection signal was last output,
When the drive detection signal is output, if the elapsed time determining means determines that the elapsed time is not less than the elapsed time lower limit threshold and not more than the elapsed time upper limit threshold, the change rate is not changed. The motor control apparatus characterized by the above-mentioned.
請求項13記載のモータ制御装置であって、
前記駆動検知信号が出力される毎に、該出力時の前記駆動速度が予め設定した速度下限閾値より小さいか否かを判断する速度判断手段を備え、
前記変化率変更手段は、前記速度判断手段にて前記速度下限閾値より小さいと判断された場合、前記変化率を増加させる
ことを特徴とするモータ制御装置。
The motor control device according to claim 13,
Each time the drive detection signal is output, it comprises a speed determination means for determining whether the drive speed at the time of output is smaller than a preset lower speed threshold,
The motor control device, wherein the change rate changing means increases the change rate when the speed judging means judges that the speed is less than the speed lower limit threshold.
請求項13記載のモータ制御装置であって、
前記駆動検知信号が出力される毎に、該出力時の前記駆動速度が予め設定した速度上限閾値より大きいか否かを判断する速度判断手段を備え、
前記変化率変更手段は、前記速度判断手段にて前記速度上限閾値より大きいと判断された場合、前記変化率を減少させる
ことを特徴とするモータ制御装置。
The motor control device according to claim 13,
Each time the drive detection signal is output, it comprises a speed determination means for determining whether or not the drive speed at the time of output is larger than a preset speed upper limit threshold,
The motor control apparatus according to claim 1, wherein the change rate changing unit decreases the change rate when the speed determining unit determines that the speed is higher than the speed upper limit threshold value.
請求項20記載のモータ制御装置であって、
前記速度判断手段は、更に、前記駆動検知信号出力時の前記駆動速度が、前記速度上限閾値より小さい所定の速度下限閾値を下回っているか否かを判断し、
前記変化率変更手段は、前記速度判断手段にて前記速度下限閾値を下回っていると判断された場合、前記変化率を増加させる
ことを特徴とするモータ制御装置。
The motor control device according to claim 20, wherein
The speed determination means further determines whether or not the drive speed at the time of the drive detection signal output is below a predetermined speed lower limit threshold smaller than the speed upper limit threshold,
The motor control apparatus characterized in that the change rate changing means increases the change rate when the speed judging means judges that the speed lower limit threshold is below the lower limit threshold.
請求項21記載のモータ制御装置であって、
前記変化率変更手段は、
前記変化率の増加及び減少を、前記駆動検知信号が前回出力された時の変化率に対して行い、
前記駆動検知信号が出力された時、前記速度判断手段にて前記駆動速度が前記速度下限閾値以上であって且つ前記速度上限閾値以下と判断された場合は、前記変化率を変更しない
ことを特徴とするモータ制御装置。
The motor control device according to claim 21,
The change rate changing means is:
Increasing and decreasing the rate of change with respect to the rate of change when the drive detection signal was last output,
When the drive detection signal is output, if the speed determination means determines that the drive speed is not less than the speed lower limit threshold and not more than the speed upper limit threshold, the rate of change is not changed. A motor control device.
請求項14記載のモータ制御装置であって、
前記駆動検知信号が出力される毎に、該出力時の前記駆動力が予め設定した駆動力上限閾値より大きいか否かを判断する駆動力判断手段を備え、
前記変化率変更手段は、前記駆動力判断手段にて前記駆動力上限閾値より大きいと判断された場合、前記変化率を増加させる
ことを特徴とするモータ制御装置。
The motor control device according to claim 14,
Driving force determination means for determining whether the driving force at the time of output is larger than a preset driving force upper limit threshold each time the driving detection signal is output;
The motor control device according to claim 1, wherein the change rate changing means increases the change rate when the driving force judging means judges that the driving force judging means is larger than the driving force upper limit threshold value.
請求項14記載のモータ制御装置であって、
前記駆動検知信号が出力される毎に、該出力時の前記駆動力が予め設定した駆動力下限閾値より小さいか否かを判断する駆動力判断手段を備え、
前記変化率変更手段は、前記駆動力判断手段にて前記駆動力下限閾値より小さいと判断された場合、前記変化率を減少させる
ことを特徴とするモータ制御装置。
The motor control device according to claim 14,
Driving force determination means for determining whether the driving force at the time of output is smaller than a preset driving force lower limit threshold every time the driving detection signal is output;
The change rate changing means decreases the change rate when the drive force determining means determines that the change is less than the drive force lower limit threshold value.
請求項24記載のモータ制御装置であって、
前記駆動力判断手段は、更に、前記駆動検知信号出力時の前記駆動力が、前記駆動力下限閾値より大きい所定の駆動力上限閾値を越えているか否かを判断し、
前記変化率変更手段は、前記駆動力判断手段にて前記駆動力上限閾値を越えていると判断された場合、前記変化率を増加させる
ことを特徴とするモータ制御装置。
A motor control device according to claim 24,
The driving force determining means further determines whether or not the driving force at the time of outputting the driving detection signal exceeds a predetermined driving force upper limit threshold value that is greater than the driving force lower limit threshold value,
The motor control device according to claim 1, wherein the change rate changing means increases the change rate when the driving force judging means judges that the driving force upper limit threshold is exceeded.
請求項25記載のモータ制御装置であって、
前記変化率変更手段は、
前記変化率の増加及び減少を、前記駆動検知信号が前回出力された時の変化率に対して行い、
前記駆動検知信号が出力された時、前記駆動力判断手段にて前記駆動力が前記駆動力下限閾値以上であって且つ前記駆動力上限閾値以下と判断された場合は、前記変化率を変更しない
ことを特徴とするモータ制御装置。
The motor control device according to claim 25,
The change rate changing means is:
Increasing and decreasing the rate of change with respect to the rate of change when the drive detection signal was last output,
When the driving detection signal is output, if the driving force determining means determines that the driving force is not less than the driving force lower limit threshold and not more than the driving force upper limit threshold, the change rate is not changed. The motor control apparatus characterized by the above-mentioned.
請求項15、17、18、19、21、22、23、25又は26のいずれかに記載のモータ制御装置であって、
前記変化率変更手段が前記変化率を増加させる場合の増加量は、予め設定した一定の基準増加量であることを特徴とするモータ制御装置。
A motor control device according to any one of claims 15, 17, 18, 19, 21, 22, 23, 25 or 26,
The motor control device according to claim 1, wherein an increase amount when the change rate changing means increases the change rate is a predetermined reference increase amount set in advance.
請求項16〜18、請求項20〜22、又は請求項24〜26のいずれかに記載のモータ制御装置であって、
前記変化率変更手段が前記変化率を減少させる場合の減少量は、予め設定した一定の基準減少量であることを特徴とするモータ制御装置。
The motor control device according to any one of claims 16 to 18, claim 20 to 22, or claim 24 to 26,
The motor control device according to claim 1, wherein the change amount when the change rate changing unit decreases the change rate is a predetermined reference reduction amount set in advance.
請求項15、17又は18のいずれかに記載のモータ制御装置であって、
前記経過時間判断手段によって前記経過時間が前記経過時間上限閾値より長いと判断されたときに、該経過時間と前記経過時間上限閾値との差である第一差分値を演算する第一差分値演算手段を備え、
前記変化率変更手段は、前記変化率を増加させる場合の増加量を、前記第一差分値演算手段にて演算される第一差分値が大きいほど前記変化率が連続的又は段階的に大きくなるよう、該第一差分値に基づいて設定する
ことを特徴とするモータ制御装置。
The motor control device according to any one of claims 15, 17 and 18,
A first difference value calculation that calculates a first difference value that is the difference between the elapsed time and the elapsed time upper limit threshold when the elapsed time is determined by the elapsed time determination means to be longer than the elapsed time upper limit threshold With means,
The change rate changing means increases the change rate when increasing the change rate, and the change rate increases continuously or stepwise as the first difference value calculated by the first difference value calculating means increases. The motor control device is set based on the first difference value.
請求項16〜18のいずれかに記載のモータ制御装置であって、
前記経過時間判断手段によって前記経過時間が前記経過時間下限閾値より短いと判断されたときに、前記経過時間下限閾値と該経過時間との差である第二差分値を演算する第二差分値演算手段を備え、
前記変化率変更手段は、前記変化率を減少させる場合の減少量を、前記第二差分値演算手段にて演算される第二差分値が大きいほど前記変化率が連続的又は段階的に小さくなるよう、該第二差分値に基づいて設定する
ことを特徴とするモータ制御装置。
The motor control device according to any one of claims 16 to 18,
Second difference value calculation that calculates a second difference value that is a difference between the elapsed time lower limit threshold and the elapsed time when the elapsed time is determined by the elapsed time determination means to be shorter than the elapsed time lower limit threshold With means,
The change rate changing means decreases the change rate when decreasing the change rate, and the change rate decreases continuously or stepwise as the second difference value calculated by the second difference value calculating means increases. As described above, the motor control device is set based on the second difference value.
請求項19、21又は22のいずれかに記載のモータ制御装置であって、
前記速度判断手段によって前記駆動検知信号出力時の前記駆動速度が前記速度下限閾値より小さいと判断されたときに、前記速度下限閾値と該駆動速度との差である第一差分値を演算する第一差分値演算手段を備え、
前記変化率変更手段は、前記変化率を増加させる場合の増加量を、前記第一差分値演算手段にて演算される第一差分値が大きいほど前記変化率が連続的又は段階的に大きくなるよう、該第一差分値に基づいて設定する
ことを特徴とするモータ制御装置。
The motor control device according to any one of claims 19, 21 and 22,
A first difference value that is a difference between the speed lower limit threshold and the drive speed is calculated when the speed determination means determines that the drive speed when the drive detection signal is output is smaller than the speed lower limit threshold. One difference value calculating means,
The change rate changing means increases the change rate when increasing the change rate, and the change rate increases continuously or stepwise as the first difference value calculated by the first difference value calculating means increases. The motor control device is set based on the first difference value.
請求項20〜22のいずれかに記載のモータ制御装置であって、
前記速度判断手段によって前記駆動検知信号出力時の前記駆動速度が前記速度上限閾値より大きいと判断されたときに、該駆動速度と前記速度上限閾値との差である第二差分値を演算する第二差分値演算手段を備え、
前記変化率変更手段は、前記変化率を減少させる場合の減少量を、前記第二差分値演算手段にて演算される第二差分値が大きいほど前記変化率が連続的又は段階的に小さくなるよう、該第二差分値に基づいて設定する
ことを特徴とするモータ制御装置。
The motor control device according to any one of claims 20 to 22,
When the speed determining means determines that the driving speed when the drive detection signal is output is greater than the speed upper threshold, a second difference value that is a difference between the driving speed and the speed upper threshold is calculated. It has two difference value calculation means,
The change rate changing means decreases the change rate when decreasing the change rate, and the change rate decreases continuously or stepwise as the second difference value calculated by the second difference value calculating means increases. As described above, the motor control device is set based on the second difference value.
請求項23、25又は26のいずれかに記載のモータ制御装置であって、
前記駆動力判断手段によって前記駆動検知信号出力時の前記駆動力が前記駆動力上限閾値より大きいと判断されたときに、該駆動力と前記駆動力上限閾値との差である第一差分値を演算する第一差分値演算手段を備え、
前記変化率変更手段は、前記変化率を増加させる場合の増加量を、前記第一差分値演算手段にて演算される第一差分値が大きいほど前記変化率が連続的又は段階的に大きくなるよう、該第一差分値に基づいて設定する
ことを特徴とするモータ制御装置。
A motor control device according to any one of claims 23, 25 or 26,
When the driving force determining means determines that the driving force when the driving detection signal is output is larger than the driving force upper limit threshold, a first difference value that is a difference between the driving force and the driving force upper limit threshold is set. A first difference value calculating means for calculating,
The change rate changing means increases the change rate when increasing the change rate, and the change rate increases continuously or stepwise as the first difference value calculated by the first difference value calculating means increases. The motor control device is set based on the first difference value.
請求項24〜26のいずれかに記載のモータ制御装置であって、
前記駆動力判断手段によって前記駆動検知信号出力時の前記駆動力が前記駆動力下限閾値より小さいと判断されたときに、前記駆動力下限閾値と該駆動力との差である第二差分値を演算する第二差分値演算手段を備え、
前記変化率変更手段は、前記変化率を減少させる場合の減少量を、前記第二差分値演算手段にて演算される第二差分値が大きいほど前記変化率が連続的又は段階的に小さくなるよう、該第二差分値に基づいて設定する
ことを特徴とするモータ制御装置。
The motor control device according to any one of claims 24 to 26, wherein:
When the driving force determining means determines that the driving force when the driving detection signal is output is smaller than the driving force lower limit threshold, a second difference value that is a difference between the driving force lower limit threshold and the driving force is calculated. A second difference value calculating means for calculating,
The change rate changing means decreases the change rate when decreasing the change rate, and the change rate decreases continuously or stepwise as the second difference value calculated by the second difference value calculating means increases. As described above, the motor control device is set based on the second difference value.
請求項15,17,18,19,21,22,23,25,26,27,29,31又は33のいずれかに記載のモータ制御装置であって、
前記変化率変更手段は、前記変化率の増加を、前記周期を短くすること及び前記増分量を増加させることの少なくとも一方により行う
ことを特徴とするモータ制御装置。
A motor control device according to any one of claims 15, 17, 18, 19, 21, 22, 23, 25, 26, 27, 29, 31 or 33,
The change rate changing means increases the change rate by at least one of shortening the cycle and increasing the increment amount.
請求項16〜18、請求項20〜22、請求項24〜26、請求項28、30、32又は34のいずれかに記載のモータ制御装置であって、
前記変化率変更手段は、前記変化率の減少を、前記周期を長くすること及び前記増分量を減少させることの少なくとも一方により行う
ことを特徴とするモータ制御装置。
A motor control device according to any one of claims 16 to 18, claim 20 to 22, claim 24 to 26, claim 28, 30, 32 or 34,
The change rate changing means reduces the change rate by at least one of lengthening the period and decreasing the increment amount.
請求項27に従属する請求項35記載のモータ制御装置であって、
前記変化率変更手段は、前記変化率の増加を、前記周期を一定量短くすること及び前記増分量を一定量増加させることの少なくとも一方により行う
ことを特徴とするモータ制御装置。
The motor control device according to claim 35, which is dependent on claim 27,
The change rate changing means increases the change rate by at least one of shortening the cycle by a certain amount and increasing the increment by a certain amount.
請求項28に従属する請求項36記載のモータ制御装置であって、
前記変化率変更手段は、前記変化率の減少を、前記周期を一定量長くすること及び前記増分量を一定量減少させることの少なくとも一方により行う
ことを特徴とするモータ制御装置。
The motor control device according to claim 36, which is dependent on claim 28,
The change rate changing means reduces the change rate by at least one of increasing the period by a certain amount and decreasing the increment by a certain amount.
請求項29、31又は33のいずれかに従属する請求項35記載のモータ制御装置であって、
前記変化率変更手段は、前記変化率の増加を、前記第一差分値が大きいほど前記周期が連続的又は段階的に短くなるように該周期を設定すること、及び前記第一差分値が大きいほど前記増分量が連続的又は段階的に大きくなるように該増分量を設定することの少なくとも一方により行う
ことを特徴とするモータ制御装置。
36. The motor control device according to claim 35, which is dependent on any one of claims 29, 31, or 33,
The change rate changing means sets the cycle so that the cycle increases as the first difference value increases, and the cycle is shortened continuously or stepwise, and the first difference value is large. The motor control device is characterized in that it is performed by at least one of setting the increment amount so that the increment amount increases continuously or stepwise.
請求項30、32又は34のいずれかに従属する請求項36記載のモータ制御装置であって、
前記変化率変更手段は、前記変化率の減少を、前記第二差分値が大きいほど前記周期が連続的又は段階的に長くなるように該周期を設定すること、及び前記第二差分値が大きいほど前記増分量が連続的又は段階的に小さくなるように該増分量を設定することの少なくとも一方により行う
ことを特徴とするモータ制御装置。
37. A motor control device according to claim 36 subordinate to any of claims 30, 32 or 34, comprising:
The rate-of-change changing means sets the period of decrease of the rate of change so that the period becomes longer continuously or stepwise as the second difference value is larger, and the second difference value is larger. The motor control device is characterized in that it is performed by at least one of setting the increment amount so that the increment amount decreases continuously or stepwise.
請求項39記載のモータ制御装置であって、
前記変化率変更手段は、
前記第一差分値に基づいて前記周期を設定する周期設定手段と、
該周期設定手段により設定された周期が所定の周期下限値より短いか否かを判定する周期判定手段と、を備え、
該周期判定手段により前記周期下限値以上である旨が判定されたならば、その設定された周期を用いることにより前記変化率の増加を行い、
前記周期判定手段により前記周期下限値より短いと判定されたならば、前記周期を該周期下限値に設定変更すると共に、該周期下限値と、前記周期設定手段により設定された周期との差に応じて前記増分量を増加させることにより、前記変化率の増加を行う
ことを特徴とするモータ制御装置。
A motor control device according to claim 39,
The change rate changing means is:
Period setting means for setting the period based on the first difference value;
A period determining means for determining whether or not the period set by the period setting means is shorter than a predetermined period lower limit value,
If it is determined by the cycle determining means that the cycle is lower than the lower limit value, the rate of change is increased by using the set cycle,
If it is determined by the cycle determining means that the cycle is shorter than the cycle lower limit value, the cycle is set to the cycle lower limit value, and the difference between the cycle lower limit value and the cycle set by the cycle setting unit is set. Accordingly, the rate of change is increased by increasing the increment amount accordingly.
請求項12〜41いずれかに記載のモータ制御装置であって、
前記モータ駆動手段は、入力されるPWM信号に対応した駆動力にて前記モータを回転駆動するよう構成され、
前記制御手段は、前記駆動力制御信号として、PWMデューティ値を示す前記PWM信号を出力するよう構成され、前記駆動検知信号が出力される毎に、前記PWMデューティ値を前記初期駆動力に対応した初期PWMデューティ値から前記周期で所定のPWM増分量ずつ増加させる
ことを特徴とするモータ制御装置。
The motor control device according to any one of claims 12 to 41, wherein
The motor driving means is configured to rotationally drive the motor with a driving force corresponding to an input PWM signal,
The control means is configured to output the PWM signal indicating a PWM duty value as the driving force control signal, and each time the driving detection signal is output, the PWM duty value corresponds to the initial driving force. A motor control device characterized by increasing the initial PWM duty value by a predetermined PWM increment amount in the cycle.
請求項39に従属する請求項42記載のモータ制御装置であって、
前記周期は前記PWM信号を構成するパルスの幅の整数倍であり、
前記変化率変更手段は、
前記第一差分値に基づき、前記周期を前記パルスの幅の何倍分短くすべきかを表すパルス幅短縮量を演算する演算手段と、
該演算手段により演算されたパルス幅短縮量の整数部分に基づいて前記周期を短く設定する周期短縮手段と、
前記パルス幅短縮量の小数部分に応じて前記PWM増分量を増加させる増分量増加手段と、
を備えたことを特徴とするモータ制御装置。
A motor control device according to claim 42, which is dependent on claim 39,
The period is an integer multiple of the width of a pulse constituting the PWM signal,
The change rate changing means is:
A calculation means for calculating a pulse width shortening amount representing how many times the width of the pulse should be shortened based on the first difference value;
A period shortening means for setting the period short based on an integer part of the pulse width shortening amount calculated by the calculating means;
Increment amount increasing means for increasing the PWM increment amount according to a fractional part of the pulse width shortening amount;
A motor control device comprising:
請求項40に従属する請求項42記載のモータ制御装置であって、
前記周期は前記PWM信号を構成するパルスの幅の整数倍であり、
前記変化率変更手段は、
前記第二差分値に基づき、前記周期を前記パルスの幅の何倍分長くすべきかを表すパルス幅増加量を演算する演算手段と、
該演算手段により演算されたパルス幅増加量の整数部分に基づいて前記周期を長く設定する周期増加手段と、
前記パルス幅増加量の小数部分に応じて前記PWM増分量を減少させる増分量減少手段と、
を備えたことを特徴とするモータ制御装置。
A motor control device according to claim 42, which is dependent on claim 40,
The period is an integer multiple of the width of a pulse constituting the PWM signal,
The change rate changing means is:
A calculation means for calculating a pulse width increase amount indicating how many times the width of the pulse should be increased based on the second difference value;
A period increasing means for setting the period longer based on an integer part of the pulse width increase calculated by the calculating means;
Increment amount decreasing means for decreasing the PWM increment amount in accordance with a fractional part of the pulse width increase amount;
A motor control device comprising:
請求項12〜44いずれかに記載のモータ制御装置であって、
前記変化率変更手段は、前記駆動対象の駆動開始後、前記駆動検知手段から最初に前記駆動検知信号が出力された時は、前記変化率の変更を行わない
ことを特徴とするモータ制御装置。
The motor control device according to any one of claims 12 to 44, wherein:
The change rate changing means does not change the change rate when the drive detection signal is first output from the drive detection means after the drive of the drive target is started.
JP2004199720A 2003-09-12 2004-07-06 Motor control method and control apparatus Active JP4265498B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2004199720A JP4265498B2 (en) 2004-07-06 2004-07-06 Motor control method and control apparatus
US10/937,314 US7821216B2 (en) 2003-09-12 2004-09-10 Motor control method and control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004199720A JP4265498B2 (en) 2004-07-06 2004-07-06 Motor control method and control apparatus

Publications (2)

Publication Number Publication Date
JP2006025497A true JP2006025497A (en) 2006-01-26
JP4265498B2 JP4265498B2 (en) 2009-05-20

Family

ID=35798347

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004199720A Active JP4265498B2 (en) 2003-09-12 2004-07-06 Motor control method and control apparatus

Country Status (1)

Country Link
JP (1) JP4265498B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008086149A (en) * 2006-09-28 2008-04-10 Seiko Epson Corp Motor controller, original reading apparatus, and motor control method
US7868568B2 (en) 2007-02-28 2011-01-11 Brother Kogyo Kabushiki Kaisha Motor driving device
KR101559221B1 (en) * 2011-03-28 2015-10-14 르네사스 일렉트로닉스 가부시키가이샤 Pwm signal generating circuit and processor system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008086149A (en) * 2006-09-28 2008-04-10 Seiko Epson Corp Motor controller, original reading apparatus, and motor control method
US7868568B2 (en) 2007-02-28 2011-01-11 Brother Kogyo Kabushiki Kaisha Motor driving device
KR101559221B1 (en) * 2011-03-28 2015-10-14 르네사스 일렉트로닉스 가부시키가이샤 Pwm signal generating circuit and processor system
US9419600B2 (en) 2011-03-28 2016-08-16 Renesas Electronics Corporation PWM signal generation circuit and processor system

Also Published As

Publication number Publication date
JP4265498B2 (en) 2009-05-20

Similar Documents

Publication Publication Date Title
JP2002345277A (en) Method and apparatus for controlling motor
US6719396B2 (en) Motor control method in recording apparatus and recording apparatus
US7821216B2 (en) Motor control method and control device
JP3956922B2 (en) Motor control method and control apparatus
JP4265498B2 (en) Motor control method and control apparatus
US20080165216A1 (en) Image forming apparatus and method thereof
US8421382B2 (en) Apparatus motor control method
JP4093191B2 (en) Motor control device and printer
JP3687606B2 (en) Motor control method and apparatus
US8866432B2 (en) Motor control device and image forming apparatus
JP4380456B2 (en) Motor control method and control apparatus
JPH11277808A (en) Timing pulse generator and printer
JP4850639B2 (en) Motor control device, motor control method, and electrophotographic image forming apparatus
JP3988757B2 (en) Motor control device, motor control method, and program
JP2019166761A (en) Motor control method and motor controller
JP5174396B2 (en) Elevator speed control device
JP3738715B2 (en) MOTOR CONTROL DEVICE, INKJET PRINTER, MOTOR CONTROL METHOD, COMPUTER PROGRAM, AND COMPUTER SYSTEM
JP6464726B2 (en) Control device for electric seat system for vehicle
JP3690374B2 (en) Motor control method and motor control apparatus
JP2003186545A (en) Speed control method and speed control device
JP2007097365A (en) Motor control method and motor control device
KR100580182B1 (en) Apparatus and method for self tuning proportional and integral controller of DC motor
JP2580394B2 (en) DC servo motor control method
JP5834729B2 (en) Motor control device
JPH0947056A (en) Speed and position controller for motor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060324

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090127

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090209

R150 Certificate of patent or registration of utility model

Ref document number: 4265498

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120227

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120227

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120227

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130227

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20140227

Year of fee payment: 5