JP2001251878A - Motor control unit and control method - Google Patents

Motor control unit and control method

Info

Publication number
JP2001251878A
JP2001251878A JP2000058645A JP2000058645A JP2001251878A JP 2001251878 A JP2001251878 A JP 2001251878A JP 2000058645 A JP2000058645 A JP 2000058645A JP 2000058645 A JP2000058645 A JP 2000058645A JP 2001251878 A JP2001251878 A JP 2001251878A
Authority
JP
Japan
Prior art keywords
motor
speed
stop position
reaches
predetermined time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2000058645A
Other languages
Japanese (ja)
Other versions
JP3780804B2 (en
Inventor
Hirotomo Tanaka
中 啓 友 田
Toshiyuki Takahara
原 俊 行 高
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority to JP2000058645A priority Critical patent/JP3780804B2/en
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to AT05076859T priority patent/ATE360534T1/en
Priority to EP05076859A priority patent/EP1602504B1/en
Priority to US09/796,429 priority patent/US6600286B2/en
Priority to DE60126001T priority patent/DE60126001T2/en
Priority to DE60128164T priority patent/DE60128164T2/en
Priority to EP01400549A priority patent/EP1129856B1/en
Publication of JP2001251878A publication Critical patent/JP2001251878A/en
Priority to US10/445,344 priority patent/US6756760B2/en
Application granted granted Critical
Publication of JP3780804B2 publication Critical patent/JP3780804B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)
  • Controlling Sheets Or Webs (AREA)
  • Control Of Electric Motors In General (AREA)
  • Stopping Of Electric Motors (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a motor control unit and a control method where positioning accuracy of the stop position of an object to be driven of a motor is high. SOLUTION: This motor control unit is equipped with a stop position predicting control which commands current flow cutoff to a motor. When the object to be driven reaches a speed measurement position which is this side of an aimed stop position of the object by a prescribed distance, the command is outputted after a prescribed time, corresponding to the present speed of the motor starting from the time the object reaches the measurement position. This motor control method commands current flow cutoff to the motor, after a prescribed time when the object reaches the speed measurement position which prescribed time corresponds to the present speed of the motor, when the object reaches the speed measurement position which is this side of the aimed stop position of the object by the prescribed distance.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はモータ制御装置及び
制御方法に係り、特に、減速制御区間終端部における停
止位置予測制御を行うモータ制御装置及び制御方法に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a motor control device and a control method, and more particularly to a motor control device and a control method for performing stop position prediction control at the end of a deceleration control section.

【0002】[0002]

【従来の技術】最初に、DCモータ制御装置が用いられ
るインクジェットプリンタの概略構成及び制御方法につ
いて説明する。
2. Description of the Related Art First, a schematic configuration and a control method of an ink jet printer using a DC motor control device will be described.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

【0040】[0040]

【発明が解決しようとする課題】しかし、従来のモータ
制御装置及び制御方法においては、モータの駆動対象物
が目標停止位置に達するまでモータへの通電を行ってい
るため、モータ速度のばらつきが駆動対象物の停止位置
の位置決め精度に反映され、モータ速度のばらつきが大
きい場合には駆動対象物の停止位置の位置決め精度の低
下を招く場合もあるという問題点があった。
However, in the conventional motor control device and control method, the motor is energized until the object to be driven by the motor reaches the target stop position. This is reflected in the positioning accuracy of the stop position of the object, and when the variation in the motor speed is large, there is a problem that the positioning accuracy of the stop position of the driving object may be reduced.

【0041】本発明は上記問題点に鑑みてなされたもの
で、その目的は、モータの駆動対象物の停止位置の位置
決め精度が高いモータ制御装置及び制御方法を提供する
ことである。
The present invention has been made in view of the above-mentioned problems, and an object of the present invention is to provide a motor control device and a control method with high positioning accuracy of a stop position of an object to be driven by a motor.

【0042】[0042]

【課題を解決するための手段】本発明に係るモータ制御
装置によれば、モータの駆動対象物の目標停止位置より
所定距離だけ手前の所定位置に上記駆動対象物が達した
ときの所定条件に応じた所定時間だけ、上記駆動対象物
が上記所定位置に達したときから後に、上記モータへの
通電切断を指令する停止位置予測制御部を備えたことを
特徴とする。
According to the motor control device of the present invention, a predetermined condition when the driving object reaches a predetermined position a predetermined distance before the target stop position of the driving object of the motor is satisfied. A stop position prediction control unit for instructing the motor to be de-energized after the drive target reaches the predetermined position for a predetermined period of time.

【0043】本発明に係るモータ制御装置のより具体的
な構成によれば、モータの駆動対象物の目標停止位置よ
り所定距離だけ手前の速度計測位置に上記駆動対象物が
達したときの上記モータの現在速度に応じた所定時間だ
け、上記駆動対象物が上記速度計測位置に達したときか
ら後に、上記モータへの通電切断を指令する停止位置予
測制御部を備えたことを特徴とし、この構成により、駆
動対象物の停止位置の位置決め精度に対するモータ速度
のばらつきの影響を排除することができ、駆動対象物の
停止位置の位置決め精度を向上させることができる。
According to a more specific configuration of the motor control device according to the present invention, the motor when the driving object reaches a speed measurement position a predetermined distance before the target stop position of the driving object of the motor. For a predetermined time according to the current speed, after the drive target reaches the speed measurement position, a stop position prediction control unit that instructs the motor to cut off the current is provided, Accordingly, it is possible to eliminate the influence of the variation in the motor speed on the positioning accuracy of the stop position of the driven object, and to improve the positioning accuracy of the stopped position of the driven object.

【0044】上記所定時間は、上記駆動対象物が目標停
止位置に達する前に上記モータへの通電切断の指令が行
われる範囲の値に設定されるものとする。
The predetermined time is set to a value within a range in which a command to cut off the power supply to the motor is issued before the driven object reaches the target stop position.

【0045】本発明に係るモータ制御装置のさらに具体
的な構成によれば、モータの回転駆動に応じてエンコー
ダから出力されるエンコーダパルスに基づき、上記モー
タの駆動対象物の現在位置を演算して出力する位置演算
部と、上記エンコーダパルスに基づき、上記モータの現
在速度を演算して出力する速度演算部と、上記位置演算
部及び上記速度演算部の出力に基づき、上記駆動対象物
の目標停止位置より所定距離だけ手前の速度計測位置に
上記駆動対象物が達したときの上記モータの現在速度に
応じた所定時間だけ、上記駆動対象物が上記速度計測位
置に達したときから後に、上記モータへの通電切断を指
令する通電切断指令信号を出力する停止位置予測制御部
とを備えたことを特徴とする。
According to a more specific configuration of the motor control device according to the present invention, the current position of the object to be driven by the motor is calculated based on the encoder pulse output from the encoder in response to the rotation of the motor. A position calculating section for outputting, a speed calculating section for calculating and outputting a current speed of the motor based on the encoder pulse, and a target stop of the driving object based on outputs of the position calculating section and the speed calculating section. A predetermined time corresponding to the current speed of the motor when the drive target reaches the speed measurement position a predetermined distance before the position, and after the drive target reaches the speed measurement position for a predetermined time corresponding to the current speed of the motor, the motor And a stop position prediction control unit that outputs an energization disconnection command signal for instructing energization disconnection to the motor.

【0046】上記所定時間は、上記駆動対象物が目標停
止位置に達する前に上記通電切断指令信号の出力が行わ
れる範囲の値に設定されるものとする。
The predetermined time is set to a value within a range in which the power-off command signal is output before the driven object reaches the target stop position.

【0047】上記速度計測位置に上記駆動対象物が達し
たときの上記モータの現在速度と上記所定時間との関係
についてのデータを記憶するデータ記憶部をさらに備え
たものとするとよい。
It is preferable that the apparatus further comprises a data storage section for storing data on a relationship between the current speed of the motor and the predetermined time when the object reaches the speed measurement position.

【0048】上記停止位置予測制御部は、上記エンコー
ダパルスのパルス数を計数することにより、上記所定時
間を計測するものとするとよい。又は、上記停止位置予
測制御部は、所定クロックのパルス数を計数することに
より、上記所定時間を計測するものとしてもよい。
It is preferable that the stop position prediction control section measures the predetermined time by counting the number of encoder pulses. Alternatively, the stop position prediction control unit may measure the predetermined time by counting the number of pulses of a predetermined clock.

【0049】上記通電切断指令信号の出力先は、上記モ
ータを回転駆動する駆動信号を生成する駆動信号生成部
であるものとするとよい。
It is preferable that the output destination of the energization disconnection command signal is a drive signal generation unit that generates a drive signal for driving the motor to rotate.

【0050】上記所定時間は、上記駆動対象物が目標停
止位置に停止するように、値が設定されるものとする。
The value of the predetermined time is set so that the driven object stops at the target stop position.

【0051】上記所定時間は、上記速度計測位置に上記
駆動対象物が達したときの上記モータの現在速度にほぼ
反比例して変化するものである。
The predetermined time changes in inverse proportion to the current speed of the motor when the object reaches the speed measurement position.

【0052】本発明に係るモータ制御方法によれば、モ
ータの駆動対象物の目標停止位置より所定距離だけ手前
の所定位置に上記駆動対象物が達したときの所定条件に
応じた所定時間だけ、上記駆動対象物が上記所定位置に
達したときから後に、上記モータへの通電切断を指令す
ることを特徴とする。
According to the motor control method of the present invention, the motor is driven for a predetermined time according to a predetermined condition when the driving object reaches a predetermined position a predetermined distance before the target stop position of the driving object of the motor. An instruction to cut off the power supply to the motor is issued after the drive target reaches the predetermined position.

【0053】本発明に係るモータ制御方法のより具体的
な構成によれば、モータの駆動対象物の目標停止位置よ
り所定距離だけ手前の速度計測位置に上記駆動対象物が
達したときの上記モータの現在速度に応じた所定時間だ
け、上記駆動対象物が上記速度計測位置に達したときか
ら後に、上記モータへの通電切断を指令することを特徴
とし、この構成により、駆動対象物の停止位置の位置決
め精度に対するモータ速度のばらつきの影響を排除する
ことができ、駆動対象物の停止位置の位置決め精度を向
上させることができる。
According to a more specific configuration of the motor control method according to the present invention, the motor when the driving object reaches a speed measurement position a predetermined distance before the target stop position of the driving object of the motor. For a predetermined time according to the current speed of the drive object, after the drive object has reached the speed measurement position, a command to cut off the power supply to the motor is issued. With this configuration, the stop position of the drive object is The influence of the variation in the motor speed on the positioning accuracy can be eliminated, and the positioning accuracy of the stop position of the driven object can be improved.

【0054】本発明に係るモータ制御方法のさらに具体
的な構成によれば、モータの駆動対象物の現在位置を計
測し、上記駆動対象物の目標停止位置より所定距離だけ
手前の速度計測位置に上記駆動対象物が達したかどうか
を監視する第1の過程と、上記速度計測位置に上記駆動
対象物が達したときの上記モータの現在速度を計測する
第2の過程と、上記速度計測位置に上記駆動対象物が達
したときの上記モータの現在速度に応じた所定時間を決
定する第3の過程と、上記駆動対象物が上記速度計測位
置に達したときから上記所定時間だけ後に、上記モータ
への通電切断を指令する第4の過程とを備えたことを特
徴とする。
According to a more specific configuration of the motor control method according to the present invention, the current position of the object to be driven by the motor is measured, and the current position of the object to be driven is set to a speed measurement position a predetermined distance before the target stop position of the object to be driven. A first step of monitoring whether the driving object has reached, a second step of measuring the current speed of the motor when the driving object reaches the speed measurement position, and the speed measurement position A third step of determining a predetermined time according to the current speed of the motor when the driving object has reached, and the predetermined time after the driving object has reached the speed measurement position, And a fourth step of instructing a disconnection of current to the motor.

【0055】上記所定時間を決定するために、上記速度
計測位置に上記駆動対象物が達したときの上記モータの
現在速度と上記所定時間との関係についてのデータを予
め収集し記憶しておくとよい。
In order to determine the predetermined time, data on the relationship between the current speed of the motor and the predetermined time when the driving object reaches the speed measurement position is collected and stored in advance. Good.

【0056】上記駆動対象物が目標停止位置に達する前
に上記モータへの通電切断を指令するように、上記所定
時間を決定するものとする。
It is assumed that the predetermined time is determined so as to instruct the motor to cut off the power supply before the object to be driven reaches the target stop position.

【0057】上記駆動対象物が目標停止位置に停止する
ように、上記所定時間を決定するものとする。
The predetermined time is determined so that the object to be driven stops at the target stop position.

【0058】上記所定時間は、上記速度計測位置に上記
駆動対象物が達したときの上記モータの現在速度にほぼ
反比例して変化するものである。
The predetermined time changes substantially in inverse proportion to the current speed of the motor when the object reaches the speed measurement position.

【0059】上記モータの回転駆動に応じてエンコーダ
から出力されるエンコーダパルスのパルス数を計数する
ことにより、上記所定時間を計測するとよい。又は、所
定クロックのパルス数を計数することにより、上記所定
時間を計測してもよい。
The predetermined time may be measured by counting the number of encoder pulses output from the encoder in accordance with the rotation of the motor. Alternatively, the predetermined time may be measured by counting the number of pulses of a predetermined clock.

【0060】本発明に係るモータ制御装置及び制御方法
において、上記モータは、DCモータ、ステッピングモ
ータ、ACモータのいずれであってもよい。
In the motor control device and control method according to the present invention, the motor may be any one of a DC motor, a stepping motor and an AC motor.

【0061】また、上記モータは、プリンタの紙送りモ
ータ又はキャリッジモータとしてもよい。
The motor may be a paper feed motor or a carriage motor of a printer.

【0062】[0062]

【発明の実施の形態】以下、本発明に係るモータ制御装
置及び制御方法の実施の一形態について、図面を参照し
ながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a motor control device and a control method according to the present invention will be described below with reference to the drawings.

【0063】図1は、本発明に係るモータ制御装置の構
成を示したブロック図、図2は、本発明に係るモータ制
御方法の手順を示したフローチャート、図3は、速度計
測位置におけるモータの現在速度と、モータの現在速度
を計測してからモータへの通電切断を指令するまでの時
間(パルス数)との関係を示したグラフである。
FIG. 1 is a block diagram showing a configuration of a motor control device according to the present invention, FIG. 2 is a flowchart showing a procedure of a motor control method according to the present invention, and FIG. 4 is a graph showing a relationship between a current speed and a time (number of pulses) from when the current speed of the motor is measured to when a command to cut off the current supply to the motor is issued.

【0064】本発明に係るモータ制御装置及び制御方法
は、モータの駆動対象物の目標停止位置より所定距離だ
け手前に速度計測位置を予め設定し、モータの駆動対象
物がその速度計測位置に達したときに計測したモータの
現在速度に応じた時間だけ後にモータへの通電切断を指
令するものである。即ち、モータの駆動対象物が目標停
止位置に達する前のどの時点でモータへの通電を切断す
ると、モータの駆動対象物がちょうど目標停止位置に停
止するかを、モータの駆動対象物が速度計測位置に達し
たときのモータの現在速度から正確に予測し、その予測
により決定した時点でモータへの通電切断を指令するも
のである。モータの現在速度を計測してからモータへの
通電切断を指令するまでの時間は、エンコーダパルス数
又はクロックパルス数により計測する。
According to the motor control device and the control method of the present invention, the speed measurement position is set in advance by a predetermined distance from the target stop position of the object to be driven by the motor, and the object to be driven by the motor reaches the speed measurement position. After that, the power supply to the motor is instructed after a time corresponding to the current speed of the motor measured. That is, when the energization of the motor is cut off before the object driven by the motor reaches the target stop position, the object driven by the motor measures the speed at which the object driven by the motor stops exactly at the target stop position. This is to accurately predict from the current speed of the motor when the position is reached, and to instruct the motor to cut off the current at the time determined by the prediction. The time from the measurement of the current speed of the motor to the command to cut off the current to the motor is measured by the number of encoder pulses or the number of clock pulses.

【0065】図1に示した本発明に係るモータ制御装置
の構成は、制御対象であるモータがDCモータである場
合の構成である。具体的には、通常のDCユニット6に
停止位置予測制御部60が付加され、停止位置予測制御
部60には、位置演算部6a及び速度演算部6dの出力
と、エンコーダ11の出力又はクロックとが入力されて
いる。図1では、停止位置予測制御部60にエンコーダ
11の出力及びクロックの双方が入力されている状態が
示されているが、必要に応じてエンコーダ11の出力又
はクロックのいずれか一方のみが入力されるようにして
よい。停止位置予測制御部60は、カウンタとしての機
能を有し、エンコーダパルス数又はクロックパルス数に
より時間を計測するものである。
The configuration of the motor control device according to the present invention shown in FIG. 1 is a configuration in a case where the motor to be controlled is a DC motor. Specifically, the stop position prediction control unit 60 is added to the normal DC unit 6, and the stop position prediction control unit 60 includes the output of the position calculation unit 6a and the speed calculation unit 6d, the output of the encoder 11, or the clock. Is entered. FIG. 1 shows a state in which both the output of the encoder 11 and the clock are input to the stop position prediction control unit 60, but only one of the output and the clock of the encoder 11 is input as necessary. You may do so. The stop position prediction control unit 60 has a function as a counter, and measures time based on the number of encoder pulses or the number of clock pulses.

【0066】図1,図2及び図3を参照して、本発明に
係るモータ制御装置の動作、即ち、本発明に係るモータ
制御方法の手順について説明する。
The operation of the motor control device according to the present invention, that is, the procedure of the motor control method according to the present invention will be described with reference to FIGS.

【0067】本発明に係るモータ制御装置及び制御方法
の実施に際しては、モータの駆動対象物の目標停止位置
より所定距離だけ手前に予め速度計測位置を設定してお
く。また、モータの駆動対象物が速度計測位置に達した
ときに計測したモータの現在速度に応じて、モータの現
在速度を計測してからどれだけの時間後にモータへの通
電を切断すると、モータの駆動対象物がちょうど目標停
止位置に停止するかについて、実験、シミュレーション
等により正確に計測を行い、十分なデータを収集し、次
のいずれかの手段に記憶させておく。このデータは、例
えば、停止位置予測制御部60内部にメモリを設けて記
憶させてもよいし、停止位置予測制御部60外部にメモ
リを設けて記憶させ停止位置予測制御部60に読み出す
ことができるようにしてもよい。停止位置予測制御部6
0外部にメモリを設けてデータを記憶させる場合、専用
メモリを設けて停止位置予測制御部60に読み出すこと
ができるようにしてもよいし、あるいは、図6における
ASIC20,PROM21,RAM22,EEPRO
M23のいずれかに記憶させ、CPU16を介して停止
位置予測制御部60に読み出すことができるようにして
もよい。
When the motor control device and the control method according to the present invention are implemented, the speed measurement position is set in advance by a predetermined distance from the target stop position of the object to be driven by the motor. In addition, according to the current speed of the motor measured when the object to be driven by the motor reaches the speed measurement position, how long after the current speed of the motor is measured, the power supply to the motor is cut off. Whether the driven object stops at the target stop position is accurately measured by experiments, simulations, and the like, and sufficient data is collected and stored in one of the following units. This data may be provided, for example, with a memory provided inside the stop position prediction control unit 60, or may be provided with a memory provided outside the stop position prediction control unit 60, and may be read out by the stop position prediction control unit 60. You may do so. Stop position prediction control unit 6
When a memory is provided externally to store data, a dedicated memory may be provided so that the data can be read out to the stop position prediction control unit 60, or the ASIC 20, the PROM 21, the RAM 22, the EEPRO in FIG.
M23 and may be read out to the stop position prediction control unit 60 via the CPU 16.

【0068】図3のグラフは、速度計測位置におけるモ
ータの現在速度と、モータの現在速度を計測してからモ
ータへの通電切断を指令するまでの時間(以下、「通電
切断指令時間」という場合がある。)との関係を示して
いる。尚、通電切断指令時間は、上述のように、エンコ
ーダパルス数又はクロックパルス数により計測する。
The graph of FIG. 3 shows the current speed of the motor at the speed measurement position and the time from when the current speed of the motor is measured until the command to cut off the current to the motor (hereinafter referred to as “power cut-off command time”). Is shown.) Note that the energization disconnection command time is measured by the number of encoder pulses or the number of clock pulses as described above.

【0069】ここでは、速度をV01,V02,V03,V0
4,V05(V01<V02<V03<V04<V05)の5つの値
により区分している。そして、計測されたモータの現在
速度がいずれの区分に含まれるかによって、通電切断指
令時間(パルス数)が決定されている。具体的には、速
度計測位置におけるモータの現在速度が、V01以下のと
きは5パルス後、V01を超えV02以下のときは4パルス
後、V02を超えV03以下のときは3パルス後、V03を超
えV04以下のときは2パルス後、V04を超えV05以下の
ときは1パルス後、V05を超えているときは直ちに、モ
ータへの通電切断を指令する設定となっている。このよ
うに、通電切断指令時間は、速度計測位置に駆動対象物
が達したときのモータの現在速度にほぼ反比例して変化
する。但し、通電切断指令時間をエンコーダパルス数又
はクロックパルス数により計測する場合は、通電切断指
令時間は段階的に変化する。また、通電切断指令時間
は、最大値をとる場合でも、駆動対象物が目標停止位置
に達する前にモータへの通電切断の指令が行われるよう
に、設定される必要がある。
Here, the speeds are set to V01, V02, V03, V0.
4, V05 (V01 <V02 <V03 <V04 <V05). Then, the energization cutoff command time (the number of pulses) is determined depending on which section includes the measured current speed of the motor. Specifically, the current speed of the motor at the speed measurement position is 5 pulses after V01 or less, 4 pulses after V01 and V02 or less, 3 pulses after V02 and V03 or less, and V03. It is set to instruct the motor to cut off the power supply to the motor two pulses after exceeding V04, one pulse after exceeding V04 and below V05, and immediately after exceeding V05. As described above, the energization disconnection command time changes substantially in inverse proportion to the current speed of the motor when the driving target reaches the speed measurement position. However, when the energization cutoff command time is measured by the number of encoder pulses or the number of clock pulses, the energization cutoff command time changes stepwise. Further, even when the energization cutoff command time takes the maximum value, it is necessary to set the energization cutoff command to the motor before the drive target reaches the target stop position.

【0070】データ収集のための実験、シミュレーショ
ン等の際にエンコーダパルス数により通電切断指令時間
を計測したときは実際の制御動作の際もエンコーダパル
ス数により計測し、データ収集のための実験、シミュレ
ーション等の際にクロックパルス数により通電切断指令
時間を計測したときは実際の制御動作の際もクロックパ
ルス数により計測する。クロックパルスの間隔は常に設
定に応じた一定値となるが、エンコーダパルスの間隔は
モータの現在速度に応じて変動するので、整合をとる必
要があるからである。
When the energization disconnection command time is measured by the number of encoder pulses during an experiment or simulation for data collection, the actual control operation is also measured by the number of encoder pulses to perform the experiment or simulation for data collection. When the energization disconnection command time is measured by the number of clock pulses in the case of the above, the actual control operation is also measured by the number of clock pulses. This is because the interval between the clock pulses always has a fixed value according to the setting, but since the interval between the encoder pulses varies according to the current speed of the motor, it is necessary to match them.

【0071】停止位置予測制御部60は、通電切断指令
時間をエンコーダパルス数又はクロックパルス数により
計測するものであるから、上述のように、カウンタとし
ての機能を有するものである必要がある。
Since the stop position prediction control unit 60 measures the energization cutoff command time by the number of encoder pulses or the number of clock pulses, it must have a function as a counter as described above.

【0072】以上のように、予め、速度計測位置の設
定、通電切断指令時間のデータの収集及び記憶を行った
上で、本発明に係るモータ制御装置及び制御方法を実施
する。
As described above, the motor control device and the control method according to the present invention are implemented after setting the speed measurement position, collecting and storing the data of the power-off command time in advance.

【0073】モータの駆動制御開始後、停止位置予測制
御部60は、モータの駆動対象物が速度計測位置に達し
たかどうかを、位置演算部6aの出力により監視し(ス
テップS1)、速度計測位置に達したときは、モータの
現在速度を、速度演算部6dの出力により計測する(ス
テップS2)。
After the start of the drive control of the motor, the stop position prediction control unit 60 monitors whether or not the object to be driven by the motor has reached the speed measurement position based on the output of the position calculation unit 6a (step S1). When the motor reaches the position, the current speed of the motor is measured by the output of the speed calculator 6d (step S2).

【0074】そして、停止位置予測制御部60は、速度
計測位置におけるモータの現在速度と通電切断指令時間
との関係についてのデータに基づき、計測したモータの
現在速度に応じて何パルス後にモータへの通電切断を指
令するか、即ち、通電切断指令時間を決定する(ステッ
プS3)。モータの現在速度と通電切断指令時間との関
係についてのデータは、予め、いつでも停止位置予測制
御部60において使用できるようにしておく。
Then, the stop position prediction control unit 60 determines, based on the data on the relationship between the current speed of the motor at the speed measurement position and the energization cutoff command time, how many pulses after the current motor speed is measured. A command to turn off the power is issued, that is, a time for commanding to turn off the power is determined (step S3). The data on the relationship between the current speed of the motor and the energization disconnection command time is made available in advance to the stop position prediction control unit 60 at any time.

【0075】停止位置予測制御部60は、通電切断指令
時間を決定すると同時に直ちに時間の計測を開始する。
即ち、予め選択されたエンコーダ11の出力又はクロッ
クのいずれかのパルス数をカウントする。そして、パル
ス数のカウント値が、決定した通電切断指令時間に相当
するパルス数に達すると、停止位置予測制御部60はD
/Aコンバータ6jに対し、モータへの通電切断を指令
する通電切断指令信号を出力する(ステップS4)。こ
れにより、モータへの通電は切断されてモータは減速
し、モータの駆動対象物は目標停止位置に停止すること
となる。モータの駆動対象物の目標停止位置への位置決
めをより正確にするために、停止制御の際、ショートブ
レーキ等の制動手段を組み合わせて使用してもよい。
The stop position prediction control section 60 determines the energization cutoff command time and immediately starts measuring the time.
That is, the number of pulses of either the output of the encoder 11 or the clock selected in advance is counted. When the count value of the number of pulses reaches the number of pulses corresponding to the determined energization cutoff command time, the stop position prediction control unit 60
An energization disconnection command signal for instructing the / A converter 6j to energize the motor is output (step S4). As a result, the power supply to the motor is cut off, the motor decelerates, and the object driven by the motor stops at the target stop position. In order to more accurately position the object to be driven by the motor at the target stop position, braking control such as a short brake may be used in combination during stop control.

【0076】以上のように、本発明に係るモータ制御装
置及び制御方法においては、モータの駆動対象物の目標
停止位置より所定距離だけ手前の速度計測位置に駆動対
象物が達したときに、モータの現在速度を計測し、その
現在速度に応じた通電切断指令時間後に、駆動対象物の
目標停止位置より手前の位置で、モータへの通電切断を
指令する制御を行うことにより、モータ及びその駆動対
象物を停止させているので、駆動対象物の停止位置の位
置決め精度に対するモータ速度のばらつきの影響を排除
することができ、駆動対象物の停止位置の位置決め精度
を向上させることができる。
As described above, in the motor control device and the control method according to the present invention, when the driving object reaches the speed measurement position a predetermined distance before the target stop position of the driving object of the motor, the motor The motor and its drive are controlled by measuring the current speed of the motor and controlling the motor to be turned off at a position before the target stop position of the driven object after the power-off command time corresponding to the current speed. Since the object is stopped, the influence of variation in the motor speed on the positioning accuracy of the stop position of the driving object can be eliminated, and the positioning accuracy of the stop position of the driving object can be improved.

【0077】上記説明においては、特に、本発明に係る
モータ制御装置がDCモータ制御装置である場合、即
ち、制御対象モータがDCモータである場合について説
明したが、本発明に係るモータ制御装置及び制御方法
は、制御対象モータがステッピングモータ、ACモータ
等である場合にも同様に適用することができる。
In the above description, the case where the motor control device according to the present invention is a DC motor control device, that is, the case where the motor to be controlled is a DC motor, has been described. The control method can be similarly applied when the control target motor is a stepping motor, an AC motor, or the like.

【0078】それらの場合も、本発明に係るモータ制御
方法の手順は同様であり、本発明に係るモータ制御装置
の基本的構成は同様である。即ち、モータの回転駆動に
応じてエンコーダから出力されるエンコーダパルスに基
づき、モータの駆動対象物の現在位置を演算して出力す
る位置演算部と、エンコーダパルスに基づき、モータの
現在速度を演算して出力する速度演算部と、位置演算部
及び速度演算部の出力に基づき、駆動対象物の目標停止
位置より所定距離だけ手前の速度計測位置に駆動対象物
が達したときのモータの現在速度に応じた所定時間だ
け、駆動対象物が速度計測位置に達したときから後に、
モータへの通電切断を指令する通電切断指令信号を出力
する停止位置予測制御部とを備えたものとして構成す
る。通電切断指令信号の出力先は、モータの種類により
異なるが、モータを回転駆動する駆動信号を生成する駆
動信号生成部である点では共通する。駆動信号生成部と
は、制御対象モータがDCモータである場合におけるD
/Aコンバータに相当するものをいう。
In these cases, the procedure of the motor control method according to the present invention is the same, and the basic configuration of the motor control device according to the present invention is the same. That is, based on an encoder pulse output from the encoder in response to the rotation of the motor, a position calculation unit that calculates and outputs the current position of the object to be driven by the motor, and calculates a current speed of the motor based on the encoder pulse. The current speed of the motor when the driving object reaches the speed measurement position a predetermined distance before the target stop position of the driving object based on the outputs of the speed calculation unit and the position calculation unit and the speed calculation unit. For a predetermined period of time, after the drive target reaches the speed measurement position,
And a stop position prediction control unit that outputs an energization disconnection command signal for instructing the energization disconnection to the motor. The output destination of the energization disconnection command signal differs depending on the type of motor, but is common in that it is a drive signal generation unit that generates a drive signal for driving the motor to rotate. The drive signal generation unit is a drive signal generator when the motor to be controlled is a DC motor.
/ A converter.

【0079】本発明に係るモータ制御装置及び制御方法
をプリンタに適用する場合、制御対象モータは、主とし
て紙送りモータとするが、キャリッジモータとしてもよ
い。
When the motor control device and the control method according to the present invention are applied to a printer, the motor to be controlled is mainly a paper feed motor, but may be a carriage motor.

【0080】また、本発明に係るモータ制御装置及び制
御方法をプリンタに適用する場合、通電切断指令時間
は、速度計測位置に駆動対象物が達したときのモータの
現在速度のみならず、インク残量、記録紙の種類、プリ
ンタ使用頻度、環境温度、環境湿度その他の条件にも応
じて変更されるようにしてもよい。
When the motor control device and the control method according to the present invention are applied to a printer, the power supply disconnection command time is determined not only by the current speed of the motor when the drive target reaches the speed measurement position, but also by the remaining ink. The amount may be changed according to the amount, type of recording paper, printer use frequency, environmental temperature, environmental humidity, and other conditions.

【0081】例えば、制御対象モータを紙送りモータと
する場合、通電切断指令時間の変更に使用する所定条
件、例えば、記録紙の種類、プリンタ使用頻度、環境温
度、環境湿度等を検出するセンサをキャリッジ3に取り
付けておく。尚、記録紙の種類については、センサによ
り検出するのではなく、モータ制御装置側で通電切断指
令時間の変更に使用する所定条件の一部として、使用す
る記録紙の種類に応じて予め設定を行うようにしてもよ
い。また、制御対象モータをキャリッジモータとする場
合、通電切断指令時間の変更に使用する所定条件、例え
ば、インク残量、プリンタ使用頻度、環境温度、環境湿
度等を検出するセンサをキャリッジ3に取り付けてお
く。
For example, in the case where the motor to be controlled is a paper feed motor, a sensor for detecting a predetermined condition used for changing the energization disconnection command time, for example, the type of recording paper, the frequency of use of the printer, the environmental temperature, the environmental humidity, etc. It is attached to the carriage 3. Note that the type of recording paper is not detected by a sensor, but is set in advance according to the type of recording paper to be used as a part of a predetermined condition used for changing the power-off command time on the motor control device side. It may be performed. When the motor to be controlled is a carriage motor, the carriage 3 is provided with sensors for detecting predetermined conditions used for changing the power-off command time, for example, the remaining amount of ink, printer use frequency, environmental temperature, environmental humidity, and the like. deep.

【0082】そして、そのセンサにより検出された所定
条件を停止位置予測制御部60に送り、停止位置予測制
御部60は、速度計測位置に駆動対象物が達したときの
モータの現在速度に応じて通電切断指令時間を決定する
際に、送られてきた所定条件に基づく補正を行ってか
ら、通電切断指令時間を決定する。
Then, the predetermined condition detected by the sensor is sent to the stop position prediction control unit 60, and the stop position prediction control unit 60 responds to the current speed of the motor when the drive target reaches the speed measurement position. When determining the energization cutoff command time, the correction based on the received predetermined condition is performed, and then the energization cutoff command time is determined.

【0083】あるいは、そのセンサにより検出された所
定条件を、通電切断指令時間についてのデータが記憶さ
れているメモリに送り、その所定条件に基づく補正によ
り、通電切断指令時間についてのデータが変更されるよ
うにしてもよい。これにより停止位置予測制御部60
は、速度計測位置に駆動対象物が達したときのモータの
現在速度に応じて、変更後のデータに基づき通電切断指
令時間を決定する。
Alternatively, the predetermined condition detected by the sensor is sent to a memory storing data on the power-off command time, and the data on the power-off command time is changed by correction based on the predetermined condition. You may do so. Thereby, the stop position prediction control unit 60
Determines the energization disconnection command time based on the changed data according to the current speed of the motor when the drive target reaches the speed measurement position.

【0084】従って、本発明に係るモータ制御装置及び
制御方法により通電切断指令時間を決定するための条件
は、速度計測位置に駆動対象物が達したときのモータの
現在速度に限らず、様々な条件を用いることができる。
その条件を検出するための手段は、上述の例のように、
予め設けておく。
Therefore, the conditions for determining the energization disconnection command time by the motor control device and the control method according to the present invention are not limited to the current speed of the motor at the time when the drive target reaches the speed measurement position, but may be various. Conditions can be used.
The means for detecting the condition is, as in the above example,
It is provided in advance.

【0085】即ち、本発明に係るモータ制御装置の構成
をより一般化すると、モータの駆動対象物の目標停止位
置より所定距離だけ手前の所定位置に上記駆動対象物が
達したときの所定条件に応じた所定時間だけ、上記駆動
対象物が上記所定位置に達したときから後に、上記モー
タへの通電切断を指令する停止位置予測制御部を備えた
ことを特徴とするものとなる。同様に、本発明に係るモ
ータ制御方法の構成をより一般化すると、モータの駆動
対象物の目標停止位置より所定距離だけ手前の所定位置
に上記駆動対象物が達したときの所定条件に応じた所定
時間だけ、上記駆動対象物が上記所定位置に達したとき
から後に、上記モータへの通電切断を指令することを特
徴とするものとなる。
That is, when the configuration of the motor control device according to the present invention is generalized, the predetermined condition when the driving object reaches a predetermined position a predetermined distance before the target stop position of the driving object of the motor is satisfied. A stop position prediction control unit for instructing to cut off the power supply to the motor after the drive target reaches the predetermined position for a predetermined period of time. Similarly, when the configuration of the motor control method according to the present invention is generalized, the motor control method according to the predetermined condition when the drive target reaches a predetermined position a predetermined distance before the target stop position of the drive target of the motor. It is characterized in that a command to cut off the power supply to the motor is issued after the drive target has reached the predetermined position for a predetermined time.

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

【0087】[0087]

【発明の効果】本発明に係るモータ制御装置によれば、
モータの駆動対象物の目標停止位置より所定距離だけ手
前の速度計測位置に上記駆動対象物が達したときの上記
モータの現在速度に応じた所定時間だけ、上記駆動対象
物が上記速度計測位置に達したときから後に、上記モー
タへの通電切断を指令する停止位置予測制御部を備えた
ので、駆動対象物の停止位置の位置決め精度に対するモ
ータ速度のばらつきの影響を排除することができ、駆動
対象物の停止位置の位置決め精度を向上させることがで
きる。
According to the motor control device of the present invention,
The driving object moves to the speed measurement position for a predetermined time corresponding to the current speed of the motor when the driving object reaches a speed measurement position a predetermined distance before the target stop position of the motor driving object. Since the stop position prediction control unit for instructing the power supply to the motor to be turned off after the time is reached, it is possible to eliminate the influence of the variation in the motor speed on the positioning accuracy of the stop position of the driving object, and The positioning accuracy of the stop position of the object can be improved.

【0088】本発明に係るモータ制御方法によれば、モ
ータの駆動対象物の目標停止位置より所定距離だけ手前
の速度計測位置に上記駆動対象物が達したときの上記モ
ータの現在速度に応じた所定時間だけ、上記駆動対象物
が上記速度計測位置に達したときから後に、上記モータ
への通電切断を指令するので、駆動対象物の停止位置の
位置決め精度に対するモータ速度のばらつきの影響を排
除することができ、駆動対象物の停止位置の位置決め精
度を向上させることができる。
According to the motor control method of the present invention, the motor control method is based on the current speed of the motor when the drive object reaches a speed measurement position a predetermined distance before the target stop position of the motor drive object. Since a command to cut off the power supply to the motor is issued only after the drive object reaches the speed measurement position for a predetermined time, the influence of the variation in the motor speed on the positioning accuracy of the stop position of the drive object is eliminated. The positioning accuracy of the stop position of the driven object can be improved.

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

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

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

【図3】速度計測位置におけるモータの現在速度と通電
切断指令時間(パルス数)との関係を示したグラフ。
FIG. 3 is a graph showing a relationship between a current speed of a motor and a power-off command time (number of pulses) at a speed measurement position.

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

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

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

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

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

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

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

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

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

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

1 紙送りモータ(PFモータ) 2 紙送りドライバ 3 キャリッジ 4 キャリッジモータ(CRモータ) 5 キャリッジモータドライバ(CRモータドライバ) 6 DCユニット 6a 位置演算部 6b 減算器 6c 目標速度演算手段 6d 速度演算部 6e 減算器 6f 比例要素 6g 積分要素 6h 微分要素 6j D/Aコンバータ 7 ポンプモータ 8 ポンプモータドライバ 9 記録ヘッド 10 ヘッドドライバ 11 リニア式エンコーダ 12 符号板 13 エンコーダ(ロータリ式エンコーダ) 15 紙検出センサ 16 CPU 17 タイマIC 18 ホストコンピュータ 19 インタフェース部 20 ASIC 21 PROM 22 RAM 23 EEPROM 25 プラテン 30 プーリ 31 タイミングベルト 32 キャリッジモータのガイド部材 34 インクカートリッジ 35 キャッピング装置 36 ポンプユニット 37 キャップ 50 記録紙 60 停止位置予測制御部 1 Paper feed motor (PF motor) 2 Paper feed driver 3 Carriage 4 Carriage motor (CR motor) 5 Carriage motor driver (CR motor driver) 6 DC unit 6a Position calculator 6b Subtractor 6c Target speed calculator 6d Speed calculator 6e Subtractor 6f Proportional element 6g Integral element 6h Differential element 6j D / A converter 7 Pump motor 8 Pump motor driver 9 Recording head 10 Head driver 11 Linear encoder 12 Code plate 13 Encoder (rotary encoder) 15 Paper detection sensor 16 CPU 17 Timer IC 18 Host computer 19 Interface unit 20 ASIC 21 PROM 22 RAM 23 EEPROM 25 Platen 30 Pulley 31 Timing belt 32 Carriage motor guide member 34 Ink cartridge 35 Capping device 36 Pump unit 37 Cap 50 Recording paper 60 Stop position prediction control unit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H02P 5/00 H02P 5/00 X Fターム(参考) 2C480 CA01 CA02 CA10 CA31 CA40 CA44 CA47 CB02 CB31 CB35 CB45 DA04 EA08 EA26 EA27 EB03 3F048 AA05 BA21 BB02 BC08 CC02 CC03 DC06 EB33 5H530 AA12 BB12 BB14 CC02 CD02 CD13 CD24 CD28 CD36 CF01 5H550 AA15 DD04 DD06 DD07 FF03 FF04 FF05 GG02 GG03 JJ03 JJ04 JJ12 JJ16 JJ17 JJ24 LL07 LL34 LL37 LL40 PP04──────────────────────────────────────────────────の Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) H02P 5/00 H02P 5/00 X F term (Reference) 2C480 CA01 CA02 CA10 CA31 CA40 CA44 CA47 CB02 CB31 CB35 CB45 DA04 EA08 EA26 EA27 EB03 3F048 AA05 BA21 BB02 BC08 CC02 CC03 DC06 EB33 5H530 AA12 BB12 BB14 CC02 CD02 CD13 CD24 CD28 CD36 CF01 5H550 AA15 DD04 DD06 DD07 FF03 FF04 FF05 GG02 GG03 JJ03 JJ17 JJ14 JJ17 JJ16 JJ17 JJ14 JJ17

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】モータの駆動対象物の目標停止位置より所
定距離だけ手前の所定位置に前記駆動対象物が達したと
きの所定条件に応じた所定時間だけ、前記駆動対象物が
前記所定位置に達したときから後に、前記モータへの通
電切断を指令する停止位置予測制御部を備えたことを特
徴とするモータ制御装置。
1. The driving object moves to the predetermined position for a predetermined time according to a predetermined condition when the driving object reaches a predetermined position a predetermined distance before a target stop position of the driving object of the motor. A motor control device comprising: a stop position prediction control unit that instructs the motor to cut off the current after reaching the stop position.
【請求項2】モータの駆動対象物の目標停止位置より所
定距離だけ手前の速度計測位置に前記駆動対象物が達し
たときの前記モータの現在速度に応じた所定時間だけ、
前記駆動対象物が前記速度計測位置に達したときから後
に、前記モータへの通電切断を指令する停止位置予測制
御部を備えたことを特徴とするモータ制御装置。
2. A method according to claim 1, wherein the driving object reaches a speed measurement position a predetermined distance before the target stop position of the driving object of the motor.
A motor control device comprising: a stop position prediction control unit that instructs the motor to cut off the current after the drive target reaches the speed measurement position.
【請求項3】前記所定時間は、前記駆動対象物が目標停
止位置に達する前に前記モータへの通電切断の指令が行
われる範囲の値に設定されるものであることを特徴とす
る請求項2に記載のモータ制御装置。
3. The system according to claim 1, wherein the predetermined time is set to a value within a range in which a command to cut off the power supply to the motor is issued before the driven object reaches a target stop position. 3. The motor control device according to 2.
【請求項4】モータの回転駆動に応じてエンコーダから
出力されるエンコーダパルスに基づき、前記モータの駆
動対象物の現在位置を演算して出力する位置演算部と、 前記エンコーダパルスに基づき、前記モータの現在速度
を演算して出力する速度演算部と、 前記位置演算部及び前記速度演算部の出力に基づき、前
記駆動対象物の目標停止位置より所定距離だけ手前の速
度計測位置に前記駆動対象物が達したときの前記モータ
の現在速度に応じた所定時間だけ、前記駆動対象物が前
記速度計測位置に達したときから後に、前記モータへの
通電切断を指令する通電切断指令信号を出力する停止位
置予測制御部と、を備えたことを特徴とするモータ制御
装置。
4. A position calculating section for calculating and outputting a current position of an object to be driven by the motor based on an encoder pulse output from an encoder in accordance with a rotational drive of the motor; A speed calculating unit that calculates and outputs the current speed of the driving object; and Stop for outputting an energization disconnection command signal for instructing the energization disconnection to the motor after a predetermined time corresponding to the current speed of the motor when the motor reaches the speed measurement position after the drive target reaches the speed measurement position. A motor control device comprising: a position prediction control unit.
【請求項5】前記所定時間は、前記駆動対象物が目標停
止位置に達する前に前記通電切断指令信号の出力が行わ
れる範囲の値に設定されるものであることを特徴とする
請求項4に記載のモータ制御装置。
5. The system according to claim 4, wherein the predetermined time is set to a value within a range in which the energization disconnection command signal is output before the driven object reaches a target stop position. 3. The motor control device according to claim 1.
【請求項6】前記速度計測位置に前記駆動対象物が達し
たときの前記モータの現在速度と前記所定時間との関係
についてのデータを記憶するデータ記憶部をさらに備え
たことを特徴とする請求項4又は5に記載のモータ制御
装置。
6. A data storage unit for storing data on a relationship between a current speed of the motor and the predetermined time when the drive target reaches the speed measurement position. Item 6. The motor control device according to item 4 or 5.
【請求項7】前記停止位置予測制御部は、前記エンコー
ダパルスのパルス数を計数することにより、前記所定時
間を計測するものであることを特徴とする請求項4乃至
6のいずれかに記載のモータ制御装置。
7. The apparatus according to claim 4, wherein the stop position prediction control section measures the predetermined time by counting the number of pulses of the encoder pulse. Motor control device.
【請求項8】前記停止位置予測制御部は、所定クロック
のパルス数を計数することにより、前記所定時間を計測
するものであることを特徴とする請求項4乃至6のいず
れかに記載のモータ制御装置。
8. The motor according to claim 4, wherein the stop position prediction control section measures the predetermined time by counting the number of pulses of a predetermined clock. Control device.
【請求項9】前記通電切断指令信号の出力先は、前記モ
ータを回転駆動する駆動信号を生成する駆動信号生成部
であることを特徴とする請求項4乃至8のいずれかに記
載のモータ制御装置。
9. The motor control according to claim 4, wherein the output destination of the energization disconnection command signal is a drive signal generation unit that generates a drive signal for rotating the motor. apparatus.
【請求項10】前記所定時間は、前記速度計測位置に前
記駆動対象物が達したときの前記モータの現在速度にほ
ぼ反比例して変化するものであることを特徴とする請求
項2乃至9のいずれかに記載のモータ制御装置。
10. The apparatus according to claim 2, wherein the predetermined time changes in inverse proportion to a current speed of the motor when the driving object reaches the speed measurement position. The motor control device according to any one of the above.
【請求項11】前記所定時間は、前記駆動対象物が目標
停止位置に停止するように、値が設定されるものである
ことを特徴とする請求項1乃至10のいずれかに記載の
モータ制御装置。
11. The motor control according to claim 1, wherein the predetermined time is set so that the driven object stops at a target stop position. apparatus.
【請求項12】前記モータは、プリンタの紙送りモータ
であることを特徴とする請求項1乃至11のいずれかに
記載のモータ制御装置。
12. The motor control device according to claim 1, wherein said motor is a paper feed motor of a printer.
【請求項13】モータの駆動対象物の目標停止位置より
所定距離だけ手前の所定位置に前記駆動対象物が達した
ときの所定条件に応じた所定時間だけ、前記駆動対象物
が前記所定位置に達したときから後に、前記モータへの
通電切断を指令することを特徴とするモータ制御方法。
13. The driving object moves to the predetermined position for a predetermined time according to a predetermined condition when the driving object reaches a predetermined position a predetermined distance before a target stop position of the motor driving object. A motor control method, comprising issuing a command to cut off the power supply to the motor after the time has been reached.
【請求項14】モータの駆動対象物の目標停止位置より
所定距離だけ手前の速度計測位置に前記駆動対象物が達
したときの前記モータの現在速度に応じた所定時間だ
け、前記駆動対象物が前記速度計測位置に達したときか
ら後に、前記モータへの通電切断を指令することを特徴
とするモータ制御方法。
14. A method according to claim 1, wherein the driving object is driven for a predetermined time corresponding to a current speed of the motor when the driving object reaches a speed measurement position a predetermined distance before the target stop position of the driving object of the motor. A motor control method, wherein a command to cut off the power supply to the motor is issued after reaching the speed measurement position.
【請求項15】モータの駆動対象物の現在位置を計測
し、前記駆動対象物の目標停止位置より所定距離だけ手
前の速度計測位置に前記駆動対象物が達したかどうかを
監視する第1の過程と、 前記速度計測位置に前記駆動対象物が達したときの前記
モータの現在速度を計測する第2の過程と、 前記速度計測位置に前記駆動対象物が達したときの前記
モータの現在速度に応じた所定時間を決定する第3の過
程と、 前記駆動対象物が前記速度計測位置に達したときから前
記所定時間だけ後に、前記モータへの通電切断を指令す
る第4の過程と、を備えたことを特徴とするモータ制御
方法。
15. A first method for measuring a current position of an object to be driven by a motor and monitoring whether or not the object to be driven has reached a speed measurement position a predetermined distance before a target stop position of the object to be driven. A second step of measuring a current speed of the motor when the driving object reaches the speed measurement position; and a current speed of the motor when the driving object reaches the speed measurement position. A third step of determining a predetermined time according to the following step; and a fourth step of instructing the motor to cut off the current after the predetermined time from when the driven object reaches the speed measurement position. A motor control method, comprising:
【請求項16】前記所定時間を決定するために、前記速
度計測位置に前記駆動対象物が達したときの前記モータ
の現在速度と前記所定時間との関係についてのデータを
予め収集し記憶しておくことを特徴とする請求項14又
は15に記載のモータ制御方法。
16. In order to determine the predetermined time, data on a relationship between a current speed of the motor when the driving object reaches the speed measurement position and the predetermined time is collected and stored in advance. The motor control method according to claim 14 or 15, wherein:
【請求項17】前記モータは、プリンタの紙送りモータ
であることを特徴とする請求項13乃至16のいずれか
に記載のモータ制御方法。
17. The motor control method according to claim 13, wherein said motor is a paper feed motor of a printer.
【請求項18】請求項13乃至17のいずれかに記載の
モータ制御方法をコンピュータシステムにおいて実行す
るコンピュータプログラムが記録されたことを特徴とす
るコンピュータプログラムの記録媒体。
18. A recording medium for a computer program, wherein a computer program for executing the motor control method according to claim 13 in a computer system is recorded.
JP2000058645A 2000-03-03 2000-03-03 Motor control device and control method Expired - Fee Related JP3780804B2 (en)

Priority Applications (8)

Application Number Priority Date Filing Date Title
JP2000058645A JP3780804B2 (en) 2000-03-03 2000-03-03 Motor control device and control method
EP05076859A EP1602504B1 (en) 2000-03-03 2001-03-02 Motor control device and motor control method
US09/796,429 US6600286B2 (en) 2000-03-03 2001-03-02 Motor control device and motor control method
DE60126001T DE60126001T2 (en) 2000-03-03 2001-03-02 Engine control device and method
AT05076859T ATE360534T1 (en) 2000-03-03 2001-03-02 ENGINE CONTROL APPARATUS AND METHOD
DE60128164T DE60128164T2 (en) 2000-03-03 2001-03-02 Engine control device and method
EP01400549A EP1129856B1 (en) 2000-03-03 2001-03-02 Motor control device and motor control method
US10/445,344 US6756760B2 (en) 2000-03-03 2003-05-27 Motor control device and motor control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000058645A JP3780804B2 (en) 2000-03-03 2000-03-03 Motor control device and control method

Publications (2)

Publication Number Publication Date
JP2001251878A true JP2001251878A (en) 2001-09-14
JP3780804B2 JP3780804B2 (en) 2006-05-31

Family

ID=18579214

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000058645A Expired - Fee Related JP3780804B2 (en) 2000-03-03 2000-03-03 Motor control device and control method

Country Status (1)

Country Link
JP (1) JP3780804B2 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6794840B2 (en) 2002-03-22 2004-09-21 Brother Kogyo Kabushiki Kaisha Motor control method and motor control apparatus
WO2004106075A1 (en) * 2003-05-30 2004-12-09 Ricoh Company, Ltd. Image forming apparatus
JP2006272893A (en) * 2005-03-30 2006-10-12 Brother Ind Ltd Transferring apparatus and image forming apparatus
JP2009065825A (en) * 2007-08-09 2009-03-26 Seiko Epson Corp Document reading apparatus, document reading method, and program
JP2009073181A (en) * 2007-08-31 2009-04-09 Seiko Epson Corp Printer, drive control method, and motor control program of printer
US7821216B2 (en) 2003-09-12 2010-10-26 Brother Kogyo Kabushiki Kaisha Motor control method and control device
US7982424B2 (en) 2007-08-09 2011-07-19 Seiko Epson Corporation Document reading apparatus, document reading method, and program for reading document
JP2011201152A (en) * 2010-03-25 2011-10-13 Seiko Epson Corp Serial printer
JP2017121151A (en) * 2015-12-28 2017-07-06 株式会社リコー Motor control device, motor control system, image forming apparatus, and conveying device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6794840B2 (en) 2002-03-22 2004-09-21 Brother Kogyo Kabushiki Kaisha Motor control method and motor control apparatus
WO2004106075A1 (en) * 2003-05-30 2004-12-09 Ricoh Company, Ltd. Image forming apparatus
US7821216B2 (en) 2003-09-12 2010-10-26 Brother Kogyo Kabushiki Kaisha Motor control method and control device
JP2006272893A (en) * 2005-03-30 2006-10-12 Brother Ind Ltd Transferring apparatus and image forming apparatus
JP2009065825A (en) * 2007-08-09 2009-03-26 Seiko Epson Corp Document reading apparatus, document reading method, and program
US7982424B2 (en) 2007-08-09 2011-07-19 Seiko Epson Corporation Document reading apparatus, document reading method, and program for reading document
JP2009073181A (en) * 2007-08-31 2009-04-09 Seiko Epson Corp Printer, drive control method, and motor control program of printer
JP2011201152A (en) * 2010-03-25 2011-10-13 Seiko Epson Corp Serial printer
JP2017121151A (en) * 2015-12-28 2017-07-06 株式会社リコー Motor control device, motor control system, image forming apparatus, and conveying device

Also Published As

Publication number Publication date
JP3780804B2 (en) 2006-05-31

Similar Documents

Publication Publication Date Title
EP1129856B1 (en) Motor control device and motor control method
US7147299B2 (en) Control unit and method for controlling motor for use in printer, and storage medium storing control program
JP3812823B2 (en) Printer control apparatus and printer control method
EP1110744B1 (en) Motor control apparatus and motor control method
JP3859115B2 (en) Printer motor control apparatus, control method, and recording medium recording control program
JP2001251878A (en) Motor control unit and control method
JP3832174B2 (en) Motor control device and control method
JP3570617B2 (en) DC motor control device and control method
JP3777936B2 (en) Motor control method and control apparatus
JP3893853B2 (en) Printer motor control apparatus and control method
JP3705061B2 (en) MOTOR CONTROL DEVICE, ITS CONTROL METHOD, AND RECORDING MEDIUM CONTAINING MOTOR CONTROL PROGRAM
JP2003023783A (en) Motor control method, motor control device, printer, computer program, and computer system
JP4432055B2 (en) Printer motor control apparatus and control method
JP3871181B2 (en) PRINT CONTROL DEVICE, CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM
JP2003023784A (en) Motor control method, motor control device, printer, computer program, and computer system
JP2005231243A (en) Printer controller, method of controlling printer, and printer
JP3900401B2 (en) DC motor control method and control apparatus
JP4026331B2 (en) Motor driving method, motor driving apparatus, printer, computer program, and computer system
JP3849908B2 (en) Print control apparatus and print control method
JP2002305888A (en) Motor control device and control method
JP2005200222A (en) Printing controller and printing control method and recording medium with printing control program recorded
JP2001078475A (en) Device and method for controlling motor
JP2003276258A (en) Printer controller and method of controlling printer
JP2003023788A (en) Motor drive motor, motor drive device, printer, computer program, recording medium, and computer system
JP2002268835A (en) Printer controller and printer control method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051101

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051125

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060123

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: 20060214

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060227

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090317

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100317

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees