JP4325151B2 - Printing apparatus and computer system - Google Patents

Printing apparatus and computer system Download PDF

Info

Publication number
JP4325151B2
JP4325151B2 JP2002193863A JP2002193863A JP4325151B2 JP 4325151 B2 JP4325151 B2 JP 4325151B2 JP 2002193863 A JP2002193863 A JP 2002193863A JP 2002193863 A JP2002193863 A JP 2002193863A JP 4325151 B2 JP4325151 B2 JP 4325151B2
Authority
JP
Japan
Prior art keywords
movement
print head
moving
motor
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2002193863A
Other languages
Japanese (ja)
Other versions
JP2004034469A (en
JP2004034469A5 (en
Inventor
潔 向山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2002193863A priority Critical patent/JP4325151B2/en
Publication of JP2004034469A publication Critical patent/JP2004034469A/en
Publication of JP2004034469A5 publication Critical patent/JP2004034469A5/ja
Application granted granted Critical
Publication of JP4325151B2 publication Critical patent/JP4325151B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Ink Jet (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、紙などの被印刷体に対し印刷を行う印刷装置に関する。
【0002】
【背景技術】
紙や布、フィルム等の各種被印刷体に対し印刷を行う印刷装置として、インクジェットプリンタをはじめとするシリアルプリンタが知られている。このシリアルプリンタは、インクを吐出するなどして印刷を行う印刷ヘッドを備え、この印刷ヘッドを印刷すべき領域に応じた区間に沿って移動させながら被印刷体に対し印刷を行うようになっている。被印刷体は、印刷ヘッドの移動に合わせて、当該印刷ヘッドの移動方向と交差する方向に沿って搬送されるようになっていて、表面に対して印刷が行われるようになっている。また、インクジェットプリンタの場合、印刷ヘッドは、一般にキャリッジと呼ばれるユニットに搭載されて移動されるようになっている。
【0003】
印刷ヘッドの移動を効率よく行う方法の1つとして、ロジカル・シーク制御という方法がある。このロジカル・シーク制御とは、印刷ヘッドがある区間を移動して所定の領域を印刷した後、別の領域を印刷するにあたり、その別の領域に応じた区間の両端のうち、移動距離の短い方の端に印刷ヘッドが移動しながら、印刷を行ってゆく方法である。
【0004】
図17は、このロジカル・シーク制御により印刷ヘッドを移動させたときの移動状況の一例を説明したものである。印刷ヘッドHは、領域Xを印刷すべく区間xを移動した後(▲1▼)、その移動終了位置x2から、次の領域Yを印刷するための区間yを移動するにあたり、次の区間yの両端y1、y2のうち、移動距離の短い方の端y2に移動する(▲2▼)。そして、その端y2から移動を開始して、区間yに沿って移動しつつ領域Yに印刷をした後(▲3▼)、次の領域Zを印刷するための区間zを移動するにあたり、移動終了位置y1から、次の区間zの両端z1、z2のうち、移動距離の短い方の端z1に移動する(▲4▼)。その後、その端z1から移動を開始して、区間zに沿って移動して領域Zを印刷する(▲5▼)。
【0005】
このように印刷ヘッドが、ある区間を移動した後、次の区間を移動させる際に、次の区間の両端のうち移動距離の短い方の端に移動させていることから、印刷速度(以下「スループット」ともいう)の向上を図れ、効率よく印刷を行うことができる。
【0006】
【発明が解決しようとする課題】
しかしながら、このロジカル・シーク制御にあっては、次のような問題があった。すなわち、このロジカル・シーク制御では、別の領域を印刷するにあたって、その別の領域に対応する移動区間の両端のうち、距離の短い方の端に印刷ヘッドを移動させているが、これにより必ずしも印刷ヘッドが効率よく移動されているとは限らなかった。つまり、移動距離の長い方の端に印刷ヘッドを移動させた方が、移動距離の短い方の端に印刷ヘッドを移動させる場合よりも効率が良い場合があったのである。これは、印刷ヘッドを移動するための駆動モータとしてDCモータを採用した場合などに生じ、印刷ヘッドの目標移動定速度を図18に示すように移動距離に応じて、V0、V1、V2といった具合に、移動距離が長くなればなるほど移動速度が速く、また移動距離が短くなればなるほど移動速度が遅くなるように段階的に可変設定しているため、移動距離が短くても長い方よりも移動時間が長くなってしまうのである。
【0007】
図19は、その状況を説明したものである。図19に示すように、移動距離が長い場合(A)では、移動速度が速く設定される(ここでは速度V1に設定)ため、移動時間が短くて済むことがある。一方、移動距離が短い場合(B)には、移動速度が低く設定される(ここでは速度V0に設定。)ため、移動時間が余計に長くかかってしまうことがある。なお、図15中の斜線の部分は、両者の移動距離の差を示している。
【0008】
このようにロジカル・シーク制御では、移動距離が短い方の端に印刷ヘッドを移動させる方が、必ずしも効率が良いとは認められない場合があるため、十分に効率よく印刷ヘッドが移動しているとは言い難かった。つまり、十分にスループットの向上が図られているとは言えなかった。
【0009】
本発明は、このような事情に鑑みてなされたもので、その目的は、印刷ヘッドの移動を効率よく行え、スループットの向上が図れる印刷装置を実現することにある。
【0010】
【課題を解決するための手段】
上記目的を達成するための主たる発明は、
搬送手段と、
この搬送手段により搬送される被印刷体に対して、印刷すべき領域に応じた移動区間を移動しながら印刷をする印刷ヘッドと
前記印刷ヘッドが固定され、前記被印刷体に対し平行方向かつ前記被印刷体の搬送方向に対し垂直方向に駆動されるキャリッジと、
前記印刷ヘッドを移動させるべく前記キャリッジを移動させるDCモータと、
前記キャリッジに取り付けられ、前記DCモータが正転している際の前記キャリッジの移動時と前記DCモータが逆転している際の前記キャリッジの移動時とで位相の進み方が異なる2種類のパルスを出力するエンコーダとを有し、
前記印刷ヘッドが、前記移動区間の移動終了後、別の領域の印刷をするために、前記移動区間の移動終了位置から、前記別の領域に応じた移動区間の移動開始位置に移動する印刷装置であって、
前記移動終了位置から前記別の領域に応じた移動区間の各端への前記印刷ヘッドの予想移動時間を算出する算出手段を備え、
前記算出手段は、前記移動終了位置から前記別の領域に応じた移動区間の各端への距離を算出し、その距離に基づき設定される前記印刷ヘッドの目標移動定速度から加減速時間および前記目標移動定速度による移動時間を求め、これらの時間から前記予想移動時間を算出し、
前記移動開始位置は、前記別の領域に応じた移動区間の両端のうち、前記算出手段によって算出された前記予想移動時間が短い方の端であり、
前記印刷ヘッドの目標移動定速度が、前記移動終了位置から前記移動開始位置までの距離に応じて段階的に可変設定され、
前記DCモータは、目標回転速度と前記2種類のパルスから得られる実際の回転速度との回転速度偏差に基づく比例演算、積分演算、及び微分演算の各演算結果の和に応じて制御されることを特徴とする印刷装置である。
本発明の上記以外の目的、及び、その特徴とするところは、本明細書及び添付図面の記載により明らかとなる。
【0011】
【発明の実施の形態】
===開示の概要===
本明細書及び添付図面の記載により、少なくとも以下の事項が明らかとなる。
搬送手段と、この搬送手段により搬送される被印刷体に対して、印刷すべき領域に応じた移動区間を移動しながら印刷をする印刷ヘッドとを有し、
前記印刷ヘッドが、前記移動区間の移動終了後、別の領域の印刷をするために、前記移動区間の移動終了位置から、前記別の領域に応じた移動区間の移動開始位置に移動する印刷装置において、
前記移動終了位置から前記別の領域に応じた移動区間の各端への前記印刷ヘッドの予想移動時間を算出する算出手段を備え、
前記算出手段は、前記移動終了位置から前記別の領域に応じた移動区間の各端への距離を算出し、その距離に基づき設定される前記印刷ヘッドの目標移動定速度から加減速時間および前記目標移動定速度による移動時間を求め、これらの時間から前記予想移動時間を算出し、
前記移動開始位置は、前記別の領域に応じた移動区間の両端のうち、前記算出手段によって算出された前記予想移動時間が短い方の端であることを特徴とする印刷装置。
【0012】
この印刷装置にあっては、印刷ヘッドが印刷すべき領域に対応した移動区間を移動した後、別の領域の印刷をするために、その移動終了位置から、別の領域に応じた移動区間の両端のうち、移動時間の短い方の端に移動するから、印刷ヘッドを効率よく移動させることができ、前述したロジカルシーク制御に比べて、スループットの向上をより一層図ることができる。さらに、算出した移動時間に基づき、移動時間の短い方の端を選択して、効率よく印刷ヘッドを移動させることができる。
【0015】
また、かかる印刷装置によれば、前記印刷ヘッドの目標移動定速度が、前記移動終了位置から前記移動開始位置までの距離に応じて可変設定されるのが好ましい。
【0016】
また、かかる印刷装置によれば、前記目標移動定速度が前記移動終了位置から前記移動開始位置までの距離に応じて段階的に可変設定されるのが好ましい。
【0017】
また、かかる印刷装置によれば、前記印刷ヘッドを移動させるためのモータがDCモータであるのが好ましい。
【0018】
搬送手段と、この搬送手段により搬送される被印刷体に対して、印刷すべき領域に応じた移動区間を移動しながら印刷をする印刷ヘッドとを有し、
前記印刷ヘッドが、前記移動区間の移動終了後、別の領域の印刷をするために、前記移動区間の移動終了位置から、前記別の領域に応じた移動区間の移動開始位置に移動する印刷装置において、
前記移動終了位置から前記別の領域に応じた移動区間の各端への前記印刷ヘッドの予想移動時間を算出する算出手段を備え、
前記算出手段は、前記移動終了位置から前記別の領域に応じた移動区間の各端への距離を算出し、その距離に基づき設定される前記印刷ヘッドの目標移動定速度から加減速時間および前記目標移動定速度による移動時間を求め、これらの時間から前記予想移動時間を算出し、
前記移動開始位置は、前記別の領域に応じた移動区間の両端のうち、前記算出手段によって算出された前記予想移動時間が短い方の端であり、
前記印刷ヘッドの目標移動定速度が、前記移動終了位置から前記移動開始位置までの距離に応じて段階的に可変設定され、
前記印刷ヘッドを移動させるためのモータがDCモータであることを特徴とする印刷装置。
【0019】
コンピュータ本体、及びコンピュータ本体に接続可能な印刷装置を具備したコンピュータシステムにおいて、
前記印刷装置は、搬送手段と、この搬送手段により搬送される被印刷体に対して、印刷すべき領域に応じた移動区間を移動しながら印刷をする印刷ヘッドとを有し、前記印刷ヘッドが、前記移動区間の移動終了後、別の領域の印刷をするために、前記移動区間の移動終了位置から、前記別の領域に応じた移動区間の移動開始位置に移動する印刷装置であって、
前記移動終了位置から前記別の領域に応じた移動区間の各端への前記印刷ヘッドの予想移動時間を算出する算出手段を備え、
前記算出手段は、前記移動終了位置から前記別の領域に応じた移動区間の各端への距離を算出し、その距離に基づき設定される前記印刷ヘッドの目標移動定速度から加減速時間および前記目標移動定速度による移動時間を求め、これらの時間から前記予想移動時間を算出し、
前記移動開始位置は、前記別の領域に応じた移動区間の両端のうち、前記算出手段によって算出された前記予想移動時間が短い方の端であることを特徴とするコンピュータシステム。
【0020】
===印刷装置の概要===
本発明に係る印刷装置について、インクジェットプリンタを例にとって、その概要について説明する。図1は、インクジェットプリンタの概略構成を示したブロック図である。
【0021】
図1に示したインクジェットプリンタは、紙送りを行う紙送りモータ(以下、PFモータともいう。)1と、紙送りモータ1を駆動する紙送りモータドライバ2と、被印刷体50にインクを吐出する印刷ヘッド9が固定され、被印刷体50に対し平行方向かつ紙送り方向に対し垂直方向に駆動されるキャリッジ3と、キャリッジ3を駆動するキャリッジモータ(以下、CRモータともいう。)4と、キャリッジモータ4を駆動するCRモータドライバ5と、CRモータドライバ5を制御するDCユニット6と、印刷ヘッド9の目詰まり防止のためのインクの吸い出しを制御するポンプモータ7と、ポンプモータ7を駆動するポンプモータドライバ8と、印刷ヘッド9を駆動制御するヘッドドライバ10と、キャリッジ3に固定されたリニア式エンコーダ11と、所定の間隔にスリットが形成されたリニア式エンコーダ11用符号板12と、PFモータ1用のロータリ式エンコーダ13と、印刷処理されている被印刷体50の先端位置と終端位置とを検出する紙検出センサ15と、プリンタ全体の制御を行うCPU16と、CPU16に対して周期的に割込み信号を発生するタイマIC17と、ホストコンピュータ18との間でデータの送受信を行うインタフェース部(以下、IFともいう。)19と、ホストコンピュータ18からIF19を介して送られてくる印字情報に基づいて印字解像度や印刷ヘッド9の駆動波形等を制御するASIC20と、ASIC20及びCPU16の作業領域やプログラム格納領域として用いられるPROM21、RAM22及びEEPROM23と、被印刷体50を支持するプラテン25と、PFモータ1によって駆動されて被印刷体50を搬送する搬送ローラ27と、CRモータ4の回転軸に取付けられたプーリ30と、プーリ30によって駆動されるタイミングベルト31とを備えている。
【0022】
DCユニット6は、CPU16から送られてくる制御指令、エンコーダ11、13の出力に基づいて紙送りモータドライバ2及びCRモータドライバ5を駆動制御する。また、紙送りモータ1及びCRモータ4はいずれもDCモータである。
【0023】
===キャリッジ周辺の構成===
次にキャリッジ周辺の構成について説明する。図2は、インクジェットプリンタのキャリッジ3周辺の構成を示した斜視図である。
図2で示すように、キャリッジ3は、タイミングベルト31によりプーリ30を介してCRモータ4に接続され、ガイド部材32に案内されてプラテン25に平行に移動するように駆動される。キャリッジ3の被印刷体50に対向する面には、ブラックインクを吐出するノズル列及びカラーインクを吐出するノズル列を有する印刷ヘッド9が設けられ、各ノズルはインクカートリッジ34からインクの供給を受けて被印刷体50にインク滴を吐出して文字や画像を印刷する。
【0024】
また、キャリッジ3の非印字領域には、非印字時に印刷ヘッド9のノズル開口を封止するためのキャッピング装置35と、図1に示したポンプモータ7を有するポンプユニット36とが設けられている。キャリッジ3が印字領域から非印字領域に移動すると、図示しないレバーにキャリッジ3が当接して、キャッピング装置35が上方に移動し、印刷ヘッド9を封止する。
【0025】
印刷ヘッド9のノズル開口列に目詰まりが生じた場合や、インクカートリッジ34の交換等を行って印刷ヘッド9から強制的にインクを吐出する場合は、印刷ヘッド9を封止した状態でポンプユニット36を作動させ、ポンプユニット36からの負圧により、ノズル開口列からインクを吸い出す。これにより、ノズル開口列の近傍に付着している塵埃や紙粉が洗浄され、さらには印刷ヘッド9内の気泡がインクとともにキャップ37に排出される。
【0026】
===エンコーダ===
次に、キャリッジ3に取付けられたリニア式エンコーダ11、及び、PFモータ1用のロータリ式エンコーダ13について説明する。図3は、キャリッジ3に取付けられたリニア式エンコーダ11の構成を模式的に示した説明図である。
【0027】
図3に示したエンコーダ11は、発光ダイオード11aと、コリメータレンズ11bと、検出処理部11cとを備えている。検出処理部11cは、複数(例えば4個)のフォトダイオード11dと、信号処理回路11eと、例えば2個のコンパレータ11fA、11fBとを有している。
【0028】
発光ダイオード11aの両端に抵抗を介して電圧VCCが印加されると、発光ダイオード11aから光が発せられる。この光はコリメータレンズ11bにより平行光に集光されて符号板12を通過する。符号板12には、所定の間隔(例えば1/180インチ(1インチ=2.54cm))毎にスリットが設けられている。
【0029】
符号板12を通過した平行光は、図示しない固定スリットを通って各フォトダイオード11dに入射し、電気信号に変換される。4個のフォトダイオード11dから出力される電気信号は信号処理回路11eにおいて信号処理され、信号処理回路11eから出力される信号はコンパレータ11fA、11fBにおいて比較され、比較結果がパルスとして出力される。コンパレータ11fA、11fBから出力されるパルスENC−A、ENC−Bがエンコーダ11の出力となる。
【0030】
図4は、CRモータ正転時及び逆転時におけるエンコーダ11の2つの出力信号の波形を示したタイミングチャートである。
【0031】
図4(a)、(b)に示すように、CRモータ正転時及び逆転時のいずれの場合も、パルスENC−AとパルスENC−Bとは位相が90度だけ異なっている。CRモータ4が正転しているとき、即ち、キャリッジ3が主走査方向に移動しているときは、図4(a)に示すように、パルスENC−AはパルスENC−Bよりも90度だけ位相が進み、CRモータ4が逆転しているときは、図4(b)に示すように、パルスENC−AはパルスENC−Bよりも90度だけ位相が遅れる。そして、パルスENC−A及びパルスENC−Bの1周期Tは、キャリッジ3が符号板12のスリット間隔を移動する時間に等しい。
【0032】
一方、PFモータ1用のロータリ式エンコーダ13はロータリ式エンコーダ用符号板14がPFモータ1の回転に応じて回転する回転円板である以外は、リニア式エンコーダ11と同様の構成となっており、2つの出力パルスENC−A、ENC−Bを出力する。インクジェットプリンタにおいては、ロータリ式エンコーダ用符号板14に設けられている複数のスリットのスリット間隔は1/180インチであり、PFモータ1が上記1スリット間隔だけ回転すると、1/1440インチだけ紙送りされる。
【0033】
===給紙及び紙検出===
次に、給紙及び紙検出に関連する部分について説明する。図5は、給紙及び紙検出に関連する部分を示した透視図である。
図5を参照して、図1に示した紙検出センサ15の位置について説明する。図5において、プリンタ60の給紙挿入口61に挿入された被印刷体50は、給紙モータ63により駆動される給紙ローラ64によってプリンタ60内に送り込まれる。プリンタ60内に送り込まれた被印刷体50の先端が例えば光学式の紙検出センサ15により検出される。紙検出センサ15によって先端が検出された被印刷体50は、PFモータ1により駆動される紙送りローラ65及び従動ローラ66によって送られる。
【0034】
続いてキャリッジガイド部材32に沿って移動するキャリッジ3に固定された印刷ヘッド9からインクが滴下されることにより印字が行われる。所定の位置まで紙送りが行われると、現在、印字されている被印刷体50の終端が紙検出センサ15によって検出される。印字が終了した被印刷体50は、PFモータ1により駆動される歯車67A、67Bを介して歯車67Cにより駆動される排紙ローラ68及び従動ローラ69によって排紙口62から外部に排出される。尚、紙送りローラ65の回転軸には、ロータリ式エンコーダ13が連結されている。
【0035】
===紙送り===
次に、紙送りに関連する部分について詳細に説明する。図6は、プリンタの紙送りに関連する部分を詳細に示した透視図である。
【0036】
図5に示したプリンタの部分のうち紙送りに関連する部分について、図5及び図6を参照して、より詳細に説明する。
プリンタ60の給紙挿入口61から挿入され、給紙ローラ64によってプリンタ60内に送り込まれた被印刷体50の先端が紙検出センサ15により検出されると、PFモータ1により小歯車87を介して駆動される大歯車67aの回転軸であるスマップ軸83の周囲に設けられた紙送りローラ65と、給紙側から送られてきた被印刷体50を垂直方向下向きに押圧するホルダ89の紙送り方向排紙側先端部に設けられた従動ローラ66とにより、被印刷体50の紙送りが行われる。
【0037】
PFモータ1はプリンタ60内のフレーム86にねじ85により固定されており、大歯車67a周囲の所定箇所にはロータリ式エンコーダ13が設けられ、かつ、大歯車67aの回転軸であるスマップ軸83にはロータリ式エンコーダ用符号板14が連結されている。
【0038】
紙送りローラ65と従動ローラ66とにより紙送りが行われた被印刷体50は、被印刷体50を支持するプラテン84上を通過し、小歯車87、大歯車67a、中間歯車67b、小歯車88及び排紙歯車67cを介してPFモータ1により駆動される排紙ローラ68と、従動ローラであるギザローラ69とにより挟持されて送られ、排紙口62から外部に排出される。
【0039】
被印刷体50がプラテン84上に支持されている間に、キャリッジ3がプラテン84上の空間をガイド部材32に沿って左右に移動し、キャリッジ3に固定された印刷ヘッド9からインクが吐出されて印刷が行われる。
【0040】
===CRモータの制御方法===
<DCユニットの構成>
次に、この印刷装置のキャリッジ(印刷ヘッド)を移動させるためのCRモータ4を制御するDCモータ制御装置であるDCユニット6について説明する。図7は、DCユニット6の制御ブロック図である。
図7の制御ブロック図には、CRモータドライバ5に対する指令信号を生成するための主要素として、回転位置演算部6aと、減算器6bと、目標回転速度演算部6cと、回転速度演算部6dと、減算器6eと、比例手段としての比例要素6fと、積分手段としての積分要素6gと、微分手段としての微分要素6hと、加算器6iと、PWM回路6jと、タイマ6kと、加速制御部6mとが示されている。
【0041】
回転位置演算部6aは、リニア式エンコーダ11の出力パルスENC−A、ENC−Bの各々の立ち上がりエッジ、立ち上がりエッジを検出し、検出されたエッジの個数を計数し、この計数値に基づいて、CRモータ4の回転位置を演算する。この計数はCRモータ4が正転しているときは1個のエッジが検出されると「+1」を加算し、逆転しているときは、1個のエッジか検出されると、「−1」を加算する。パルスENC−A及びENC−Bの各々の周期は、リニア式エンコーダ用符号板12の、あるスリットがリニア式エンコーダ11を通過してから次のスリットがリニア式エンコーダ11を通過するまでの時間に等しく、かつ、パルスENC−AとパルスENC−Bとは位相が90度だけ異なっている。このため、上記計数のカウント値「1」はリニア式エンコーダ用符号板12のスリット間隔の1/4に対応する。これにより上記計数値にスリット間隔の1/4を乗算すれば、その乗算値に基づいて、計数値が「0」に対応する回転位置からのCRモータ4の移動量を求めることができる。このときリニア式エンコーダ11の解像度はリニア式エンコーダ用符号板12のスリットの間隔の1/4となる。
【0042】
減算器6bは、CPU16から送られてくる目標回転位置と、回転位置演算部6aによって求められたCRモータ4の実際の回転位置との回転位置偏差を演算する。
【0043】
目標回転速度演算部6cは、減算器6bの出力である回転位置偏差に基づいてCRモータ4の目標回転速度を演算する。この演算は回転位置偏差にゲインKPを乗算することにより行われる。このゲインKPは回転位置偏差に応じて決定される。尚、このゲインKPの値は図示しないテーブルに格納されていてもよい。
【0044】
回転速度演算部6dは、リニア式エンコーダ11の出力パルスENC−A、ENC−Bに基づいてCRモータ4の回転速度を演算する。まず、リニア式エンコーダ11の出力パルスENC−A、ENC−Bの各々の立ち上がりエッジ、立ち下がりエッジを検出し、リニア式エンコーダ用符号板12のスリット間隔の1/4に対応するエッジ間の時間間隔を、タイマカウンタによってカウントする。このカウント値、リニア式エンコーダ用符号板12のスリット間隔、及び、CRモータ4とプーリ30との減速比に基づいて、CRモータ4の回転速度が求められる。
【0045】
減算器6eは、目標回転速度と、回転速度演算部6dによって演算されたCRモータ4の実際の回転速度との偏差を演算する。比例要素6fは、上記偏差に定数Gpを乗算し、乗算結果を出力する。積分要素6gは、偏差に定数Giを乗じたものを積算し、積算結果を出力する。微分要素6hは、現在の偏差と、1つ前の偏差との差に定数Gdを乗算し、乗算結果を出力する。比例要素6f、積分要素6g及び微分要素6hの演算は、リニア式エンコーダ11の出力パルスENC−Aの1周期ごとに、例えば出力パルスENC−Aの立ち上がりエッジに同期して行う。
【0046】
比例要素6f、積分要素6g及び微分要素6hから出力される信号値は、それぞれの演算結果に応じたデューティDXを示す。ここで、デューティDXは、例えば、デューティパーセントが(100×DX/2000)%であることを示す。この場合、DX=2000であれば、デューティ100%を示し、DX=1000であれば、デューティ50%を示すことになる。
【0047】
比例要素6f、積分要素6g及び微分要素6hの出力は、加算器6iにおいて加算される。この加算結果がデューティ信号としてPWM回路6jに送られて、PWM回路6jにて加算結果に応じた指令信号が生成される。この生成された指令信号に基づいて、CRモータドライバ5によりCRモータ4が駆動される。
【0048】
また、タイマ6k及び加速制御部6mは、CRモータ4の加速制御に用いられ、比例要素6f、積分要素6g及び微分要素6hを使用するPID制御は、加速制御後の定速制御及び減速制御に用いられる。
【0049】
タイマ6kは、CPU16から送られてくるクロック信号に基づいて所定時間ごとにタイマ割込み信号を発生する。
【0050】
加速制御部6mは、上記タイマ割込信号を受けるごとに所定のデューティ(例えばDX=200)を積算し、積算結果がデューティ信号としてPWM回路6jに送られる。PID制御の場合と同様に、PWM回路6jにて積算結果に応じた指令信号が生成され、生成された指令信号に基づいて、CRモータドライバ5によりCRモータ4が駆動される。
【0051】
CRモータドライバ5は、例えば4個のトランジスタを備えており、PWM回路6jの出力に基づいて上記トランジスタを各々ON又はOFFさせることにより、CRモータ4に電圧を印加する。
【0052】
<DCユニットの動作概要>
次に、図8(a)、(b)を参照してDCユニット6の動作の概要、即ち、CRモータ4の制御方法の概要について説明する。図8は、DCユニット6により制御されるCRモータ4のPWM回路6jに送られるデューティ信号値及びモータ回転速度を示したグラフである。
【0053】
CRモータ4が停止しているときに、CPU16からDCユニット6へ、CRモータ4を起動させる起動指令信号が送られると、信号値がDX0である起動初期デューティ信号が加速制御部6mからPWM回路6jに送られる。この起動初期デューティ信号は、起動指令信号とともにCPU16から加速制御部6mに送られてくる。そしてこの初期起動デューティ信号は、PWM回路6jによって信号値DX0に応じた指令信号に変換されてCRモータドライバ5に送られ、CRモータドライバ5によってCRモータ4の起動が開始される(図8(a)、(b)参照)。
【0054】
起動指令信号を受信した後、所定の時間ごとにタイマ6kからタイマ割込信号が発生される。加速制御部6mは、タイマ割込信号を受信する度ごとに、起動初期デューティ信号の信号値DXOに所定のデューティ(例えばDX=200)を積算し、積算されたデューティを信号値として有するデューティ信号をPWM回路6jに送る。このデューティ信号は、PWM回路6jによって、その信号値に応じた指令信号に変換されてCRモータドライバ5に送られる。送られた指令信号に基づいて、CRモータドライバ5によってCRモータ4が駆動されCRモータ4の回転速度は上昇する(図8(b)参照)。このため加速制御部6mから出力されPWM回路6jに送られるデューティ信号の値は、図8(a)に示すように階段状になる。
【0055】
加速制御部6mにおけるデューティの積算処理は、積算されたデューティが一定のデューティDXSとなるまで行われる。時刻tlにおいて積算されたデューティが所定値DXSとなると、加速制御部6mは積算処理を停止し、以後PWM回路6jに一定のデューティDXSを信号値として有するデューティ信号を送る(図8(a)参照)。
【0056】
そして、CRモータ4の回転速度がオーバーシュートするのを防止するために、CRモータ4が所定の回転速度V1になると(時刻t2参照)、CRモータ4に印加される電圧のデューティパーセントを減少させるように加速制御部6mを制御する。このときCRモータ4の回転速度は更に上昇するが、CRモータ4の回転速度が所定の回転速度Vcに達すると(図8(b)の時刻t3参照)、PWM回路6jが、PID制御系の出力、即ち加算器6iの出力を選択し、PID制御が行われる。
【0057】
PID制御が開始される時点において、積分要素6gの積分値は所定の値に設定されて、積分要素6gの出力値が所定の値とされることになる。この点に関しては、後述する。
【0058】
PID制御が開始されると、目標回転位置と、リニア式エンコーダ11の出力から得られる実際の回転位置との回転位置偏差に基づいて目標回転速度が演算され、この目標回転速度と、リニア式エンコーダ11の出力から得られる実際の回転速度との回転速度偏差に基づいて、比例要素6f、積分要素6g及び微分要素6hが動作し、各々比例、積分、及び微分演算が行われ、これらの演算結果の和に基づいて、CRモータ4の制御が行われる。尚、上記比例、積分及び微分演算は、例えばリニア式エンコーダ11の出力パルスENC−Aの立ち上がりエッジに同期して行われる。これによりCRモータ4の回転速度は所望の回転速度Veとなるように制御される。すなわち、印刷ヘッド9を搭載したキャリッジ3の移動速度が所定の速度になるように制御される。
【0059】
CRモータ4が目標回転位置に近づくと(図8(b)の時刻t5参照)、回転位置偏差が小さくなるから目標回転速度も小さくなる。このため回転速度偏差、即ち減算器6eの出力が負になり、CRモータ4は減速し、時刻t6に停止する。
【0060】
なお、本実施形態にあっては、PFモータ1についてもCRモータ4の場合と同様、前述したDCユニットの制御系により駆動制御されるようになっている。
【0061】
===印刷装置の印刷動作===
次に本発明にかかる印刷装置の印刷動作について、前述したインクジェットプリンタの場合を例にして説明する。図9は、前述したインクジェットプリンタの印刷処理の流れを簡略的に示したものである。
【0062】
ホスト18からは、当該ホスト18において実行された各種のアプリケーションソフトウエアまたは外部の機器により生成された印刷データがプリンタに向けて送出される。ここで送出される印刷データには、色情報を有するドットの集合として表現されたラスタデータもあれば、また文字コードや図形関数によって表現されたデータである場合もある。このような印刷データは、1行分、2行分、又は、1行のうちの文字部分等、所定の領域毎にホストから順次送出される。
【0063】
プリンタでは、ホスト18からの印刷データをインタフェース(IF)19で受信し、その印刷データをASIC20から受信バッファ90に記憶する。なお、受信バッファ90は、前述したRAM22等の適宜なメモリ上に設けられる。
【0064】
ASIC20は、受信バッファ90から印刷データを読み出して順次解析して所定の領域毎のイメージデータに変換する。ここで、印刷データは、例えば、ドット単位データ、すなわち、キャリッジ3をある方向に沿って移動させたときの所定間隔毎にドット形成の有無を示したCMYKラスタデータ等に変換される。前述したRAM等のメモリ上には、前記受信バッファ90とは別に複数のイメージバッファ94、96が設定され、変換されたイメージデータは、このイメージバッファ94、96に前記領域ごとに個別に記憶される。
【0065】
CPU16は、クロック信号に基づいて所定のタイミングでイメージバッファ94、96を適宜な間隔でチェックする。ここでイメージデータへの変換作業が終了していた場合には、イメージバッファ94、96からそのイメージデータを読み出して当該イメージデータに基づき印刷処理を実行する。
【0066】
この印刷処理では、まず、読み出したイメージデータから被印刷体50に対し印刷すべき領域を特定し、その後、特定された印刷領域から、当該印刷領域を印刷するための印刷ヘッド9の移動区間、すなわちキャリッジ3の移動区間を設定する。そして、CPU16は、この設定された移動区間に沿ってキャリッジ3が移動するように、DCユニット6を通じてCRモータ4を駆動制御する。また、CPU16は、このキャリッジ3の移動に合わせて、読み出したイメージデータに基づきヘッドドライバ10を介して印刷ヘッド9を駆動制御する。これによって、キャリッジ3は、設定された移動区間に沿って移動されるとともに、印刷ヘッド9からはその移動に同期してインクが吐出されて、被印刷体50に対してイメージデータに対応する画像が印刷されることになる。
【0067】
CPU16は、変換が終了したイメージデータを順次イメージバッファ94、96から読み出して逐次印刷処理を実行してゆく。
【0068】
===印刷区間の間の印刷ヘッドの移動===
ある領域を印刷すべく所定の移動区間に沿って移動し終えた印刷ヘッド9を、別の領域を印刷すべくその領域に対応する移動区間に沿って移動させるにあたって、本実施形態では、印刷ヘッド9を次のようにして移動させる。
【0069】
<印刷ヘッドの移動速度>
本実施形態では、印刷ヘッド9の移動定速度を、ある移動区間の移動終了位置から次の移動区間の移動開始位置までの移動距離に応じて可変設定する。ここでは、印刷ヘッド9の移動距離が長い場合には、印刷ヘッド9の目標移動定速度を高く設定し、移動距離が短い場合には、印刷ヘッド9の目標移動定速度を低く設定する。すなわち、印刷ヘッド9の移動距離に応じて目標移動定速度を可変設定する。このように印刷ヘッド9の目標移動定速度を移動距離に応じて可変設定するのは、印刷ヘッド9の移動を速やかにかつ高精度に行うためである。
【0070】
この設定内容については、RAM22等をはじめとする適宜な記憶部にテーブルとして記憶している。図10は、そのテーブルの一実施形態を示したものである。このテーブルは、印刷ヘッド9の移動距離と目標移動定速度とを対応付けて記憶している。ここでは、移動距離が『A0〜A1』の範囲内のときには、目標移動定速度を『V0』に、また移動距離が『A2〜A3』の範囲内のときには目標移動定速度を『V1』に、また移動距離が『A4〜A5』の範囲内のときには目標移動定速度を『V2』に、それぞれ設定するようになっている。つまり、印刷ヘッド9の移動距離に応じて目標移動定速度が段階的に可変設定されるようになっている。
【0071】
CPU16は、このようなテーブルを参照して、印刷ヘッド9の移動距離から印刷ヘッド9の目標移動定速度を設定し、その目標移動定速度で印刷ヘッド9が定速移動するようにDCユニット6に命令を発する。
【0072】
図14は、各目標移動定速度で印刷ヘッド9を移動させたときの時間と速度との関係を示したものである。この図に示されているように、移動速度が高低にかかわらず、加速および減速に要する時間はそれぞれあまり変化がないことがわかる。
【0073】
<印刷ヘッドの移動開始位置>
ある移動区間を移動した印刷ヘッド9を別の移動区間を移動させるにあたって、本実施形態でCPU16は、次のような処理を行う。すなわち、前の移動区間の移動終了位置から次の移動区間の各端への移動時間を算出して、いずれか移動時間の短い方の端に印刷ヘッド9を移動させる。
【0074】
移動時間の算出は次のようにして行う。まず、前の移動区間の移動終了位置から次の移動区間の各端への距離をそれぞれ求める。ここでは、前の移動区間の移動終了位置の座標と次の移動区間の各端の座標とから距離を求める。
【0075】
次に、その求めた距離に基づいて、当該距離を印刷ヘッド9が移動するのに要すると思われる予想移動時間を算出する。ここでは、印刷ヘッド9の移動速度が前述したように移動距離に基づき可変設定されるから、その可変設定に準じて予想移動時間を算出する。つまり、前の移動区間の移動終了位置から次の移動区間の各端への距離からそれぞれ当該距離を印刷ヘッド9が移動するために設定される目標移動定速度を前述したテーブルより取得する。次に、その目標移動定速度で定速移動するための加速および減速に必要な時間および距離を算出し、さらにこれら加減速距離および加減速時間から目標移動定速度で移動する距離とその移動時間とを算出して、これらのトータル時間から予想移動時間を算出する。
【0076】
本実施形態では、印刷ヘッド9の目標移動定速度が段階的に可変設定されるから、目標移動定速度で定速移動するための加速および減速に必要な時間および距離については、各目標移動定速度ごとに対応付けて図11に示すようなデータテーブルとしてRAM22等の記憶装置に予め記憶しておく。つまり、ここでは、目標移動定速度『V0』に対して、その加速距離および加速時間として『M0』および『T0』を、また減速距離および減速時間として『M3』および『T3』を記憶している。また目標移動定速度『V1』に対しては、加速距離および加速時間として『M1』および『T1』を記憶し、また減速距離および減速時間としては『M4』および『T4』を記憶している。さらに目標移動定速度『V2』に対しては、加速距離および加速時間として『M2』および『T2』を記憶し、また減速距離および減速時間としては『M5』および『T5』を記憶している。
【0077】
なお、本実施形態では、CRモータ4としてDCモータを採用していることから、各目標移動定速度『V0』、『V1』および『V2』における各加速時間『M0』、『M2』、および『M3』は、ほぼ等しい時間に設定されるとともに、各減速時間『M3』、『M4』および『M5』についても、ほぼ等しい時間に設定される。
【0078】
図12は、本実施形態における、前の移動区間の移動終了位置から次の移動区間の各端への予想移動時間を求めるときの処理フローを示したものである。ここでは、まず、前の移動区間の移動終了位置から次の移動区間の各端への移動距離Lをそれぞれ求める(S101)。次に求めた移動距離Lからこの移動距離Lが『A0〜A1』の範囲内に該当するのかチェックする(S102)。ここで、『A0〜A1』の範囲内に該当する場合には、目標移動定速度を『V0』に設定し(S103)、そして、図11のデータテーブルから、加速距離および加速時間として『M0』および『T0』を、また減速距離および減速時間として『M3』および『T3』を取得する(S104)。さらにこれら加速距離および加速時間ならびに減速距離および減速時間から、目標移動定速度による移動距離と移動時間とを求める(S105)。
【0079】
ここで、加速距離・加速時間ならびに減速距離・減速時間から、目標移動定速度『V0』による移動距離および移動時間を算出する手法について説明する。図13はこの手法を説明するためのものである。この図13に示すように、移動距離Lから加速距離および減速距離を減算することで、目標移動定速度『V0』による移動距離Laを求めることができる。この移動距離Laを目標移動定速度『V0』で除算することによって、目標移動定速度『V0』による移動時間Taを算出することができる。
【0080】
そして、このように求められた目標移動定速度『V0』による移動時間Taに対し、加速時間『T0』および減速時間『T3』を加算することで、移動距離Lを印刷ヘッド9が移動するのに要するトータル移動時間を求める(S114)。
【0081】
一方、移動距離Lが『A0〜A1』の範囲内に該当しなかった場合には、次に、図12に示すように、『A2〜A3』の範囲内に該当するのかチェックし(S106)、これに該当する場合には、目標移動定速度を『V1』に設定し(S107)、図11のデータテーブルから、加速距離『M1』および加速時間『T1』ならびに減速距離『M4』および減速時間『T4』を取得する(S108)。そして、これらから図13に示す手法により目標移動定速度『V1』による移動距離および移動時間を算出して(S109)、トータル移動時間を求める(S114)。
【0082】
また、移動距離Lが『A2〜A3』の範囲内に該当しなかった場合には、次に『A4〜A5』の範囲内に該当するのかチェックし(S110)、これに該当する場合には、目標移動定速度を『V2』に設定し(S111)、図11のデータテーブルから、加速距離『M2』および加速時間『T1』ならびに減速距離『M5』および減速時間『T5』を取得し(S112)、そして、図13に示す手法により目標移動定速度『V2』による移動距離および移動時間を算出して(S113)、トータル移動時間を求める(S114)。
【0083】
なお、本実施形態では、移動距離Lがいずれの範囲にも該当しなかった場合には、移動距離Lの算出を再度やり直す。
【0084】
このようにして前の移動区間の移動終了位置から次の移動区間の各端への移動距離に基づき、当該移動距離を印刷ヘッド9が移動するのに要する移動時間を算出する。算出後、CPU16は、求められた各端への予想移動時間を比較して、移動時間の短い方の端を次の移動区間の移動開始位置とする。
【0085】
そして、CPU16は、印刷ヘッド9が次の移動区間を移動するタイミングがきたときに、前の移動区間の移動終了位置から、前記算出により設定した移動開始位置に印刷ヘッド9を移動させて、その移動開始位置から次の移動区間の移動を開始させる。
【0086】
このようにある領域の印刷を終了した印刷ヘッド9を別の領域を印刷するにあたって、その別の領域に対応した移動区間のうち、移動時間の短い方の端に印刷ヘッド9を移動させることができるから、従来に比べて、印刷時間の十分な短縮が図れ、スループットの向上を達成することができる。印刷ヘッド9の移動速度を移動距離に応じて可変設定した場合であっても、スループットのより一層の向上を達成することができる。
【0087】
図14は、本実施形態に係る方法により印刷ヘッド9を移動させたときの一例を示したものである。この図14に示すように、印刷ヘッドHは、領域Xを印刷すべく区間xを移動した後(▲1▼)、次の領域Yを印刷するために区間yに沿って移動する際に、区間xの移動終了位置x2から区間yの各端y1、y2への予想移動時間を算出し、当該予想移動時間の短い方の端に移動する(▲2▼)。ここでは、移動終了位置x2から端y1への移動時間が短ければ、移動終了位置x2から端y2への移動距離の方が短くても、端y2へは移動せず、端y1へと移動することとなる。そして、印刷ヘッドHが端y1から区間yに沿って移動した後(▲3▼)、次の領域Zを印刷すべく区間zに沿って移動する場合も同様、区間yの移動終了位置y2から区間zの端z1の方が、移動時間が短ければ、区間zの端z2への方が移動距離が短くても、当該端z2の方へは移動せず、端z1の方へと印刷ヘッドHが移動する(▲4▼)。
【0088】
なお、ここでは、CRモータ4にDCモータを採用し、また印刷ヘッド9の目標移動定速度を移動距離に応じて可変設定していることから、前述した手法により予想移動時間を算出しているが、本発明にかかる予想移動時間の算出方法としては前述した手法に限らず、CRモータ4の制御方法や印刷ヘッド9の移動方法に応じて適宜設定される。
【0089】
===コンピュータシステム等の構成===
次に、本発明に係る実施形態の一例であるコンピュータシステム、コンピュータプログラム、及び、コンピュータプログラムを記録した記録媒体の実施形態について、図面を参照しながら説明する。
【0090】
図15は、コンピュータシステムの外観構成を示した説明図である。コンピュータシステム1000は、コンピュータ本体1102と、表示装置1104と、プリンタ1106と、入力装置1108と、読取装置1110とを備えている。コンピュータ本体1102は、本実施形態ではミニタワー型の筐体に収納されているが、これに限られるものではない。表示装置1104は、CRT(Cathode Ray Tube:陰極線管)やプラズマディスプレイや液晶表示装置等が用いられるのが一般的であるが、これに限られるものではない。プリンタ1106は、上記に説明されたプリンタが用いられている。入力装置1108は、本実施形態ではキーボード1108Aとマウス1108Bが用いられているが、これに限られるものではない。読取装置1110は、本実施形態ではフレキシブルディスクドライブ装置1110AとCD−ROMドライブ装置1110Bが用いられているが、これに限られるものではなく、例えばMO(Magnet Optical)ディスクドライブ装置やDVD(Digital Versatile Disk)等の他のものであっても良い。
【0091】
図16は、図15に示したコンピュータシステムの構成を示すブロック図である。コンピュータ本体1102が収納された筐体内にRAM等の内部メモリ1202と、ハードディスクドライブユニット1204等の外部メモリがさらに設けられている。
【0092】
なお、以上の説明においては、プリンタ1106が、コンピュータ本体1102、表示装置1104、入力装置1108、及び、読取装置1110と接続されてコンピュータシステムを構成した例について説明したが、これに限られるものではない。例えば、コンピュータシステムが、コンピュータ本体1102とプリンタ1106から構成されても良く、コンピュータシステムが表示装置1104、入力装置1108及び読取装置1110のいずれかを備えていなくても良い。また、例えば、プリンタ1106が、コンピュータ本体1102、表示装置1104、入力装置1108、及び、読取装置1110のそれぞれの機能又は機構の一部を持っていても良い。一例として、プリンタ1106が、画像処理を行う画像処理部、各種の表示を行う表示部、及び、デジタルカメラ等により撮影された画像データを記録した記録メディアを着脱するための記録メディア着脱部等を有する構成としても良い。
【0093】
また、上述した実施形態において、プリンタを制御するコンピュータプログラムは、プリンタ側のEEPROM23等の記憶部に記憶されている。そして、制御ユニット60が、このコンピュータプログラムを実行することにより、上述した実施形態におけるプリンタの動作をする。なお、そのコンピュータプログラムは、コンピュータ本体等を通じてダウンロード等により取得するようになっていてもよく、またコンピュータ本体1102内のROM等の記憶部に記憶されていてもよい。
【0094】
このようにして実現されたコンピュータシステムは、システム全体として従来システムよりも優れたシステムとなる。
【0095】
===その他の実施の形態===
以上、一実施形態に基づき、本発明に係るプリンタ等の印刷装置について説明したが、上記の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定して解釈するためのものではない。本発明は、その趣旨を逸脱することなく、変更または改良され得るとともに、本発明には、その等価物が含まれることは言うまでもない。また、本実施形態において、ハードウェアによって実現されていた構成の一部又は全部をソフトウェアによって置き換えてもよく、逆に、ソフトウェアによって実現されていた構成の一部をハードウェアによって置き換えてもよい。また、印刷装置側にて行っていた処理の一部をホスト18側にて行ってよく、また印刷装置とホストの間に専用の処理装置を介設して、この処理装置にて処理の一部を行わせるようにしてもよい。
特に、以下に述べる実施形態であっても、本発明に係る印刷装置に含まれるものである。
【0096】
<印刷装置について>
本発明に係る印刷装置は、前述したインクジェットプリンタ以外に、他のタイプのインクジェットプリンタであってもよく、さらにこの他に、移動しながら印刷をする印刷ヘッドを備えたものであれば、バブルジェットプリンタであってもよく、さらには、インクを吐出しないタイプのプリンタとして、ドットインパクトプリンタや熱転写プリンタなどであってもよい。
【0097】
<被印刷体50について>
本発明に係る被印刷体50としては、紙材や布材やフィルム材などからなるものの他に、他の素材により形成されたものや、シート状に成形されたもの以外に他の形態に成形されたもの、その他、印刷可能なものであれば、いかなるものであっても構わない。
【0098】
<印刷ヘッド9について>
本発明に係る印刷装置の印刷ヘッド9は、被印刷体50に対し、移動しながら印刷を行うものであれば、前記実施形態で説明したようにインクジェット方式によりインクを吐出するタイプのものをはじめ、バブルジェット(登録商標)方式によりインクを吐出するタイプのものや、ドットインパクト方式により印刷を行うもの、サーマルヘッドを有し感熱方式や熱転写方式等により印刷を行うものなどであっても構わない。
【0099】
<搬送手段について>
また、本発明に係る印刷装置の搬送手段については、前述したようにローラの回転により被印刷体50を搬送するタイプのものの他に、被印刷体50をテーブル等の支持台に載置するなどして支持して、当該支持台全体を移動させて搬送するタイプのものであっても構わない。
【0100】
【発明の効果】
本発明によれば、印刷ヘッドがある移動区間を移動した後、別の移動区間を移動するにあたって、その別の移動区間の移動開始位置まで印刷ヘッドを効率よく移動させることができ、これにより印刷時間の十分な短縮が図れ、スループットのより一層の向上を図ることができる。
【図面の簡単な説明】
【図1】インクジェットプリンタの概略構成を示したブロック図である。
【図2】インクジェットプリンタのキャリッジ3周辺の構成を示した斜視図である。
【図3】キャリッジ3に取付けられたリニア式エンコーダ11の構成を模式的に示した説明図である。
【図4】CRモータ正転時及び逆転時におけるエンコーダ11の2つの出力信号の波形を示したタイミングチャートである。
【図5】給紙及び紙検出に関連する部分を示した透視図である。
【図6】プリンタの紙送りに関連する部分を詳細に示した透視図である。
【図7】DCモータ制御装置であるDCユニット6の制御ブロック図である。
【図8】DCユニット6により制御されるCRモータ4のPWM回路6jに送られるデューティ信号値及びモータ回転速度を示したグラフである。
【図9】ホストから送られてきた印刷データに基づき行われる印刷処理の流れを概略的に説明した説明図である。
【図10】印刷ヘッドの移動距離と目標移動定速度とを対応付けたテーブルの一実施形態を示した図である。
【図11】印刷ヘッドの予想移動時間を算出するためにメモリ等に記憶しているデータの内容を示した図である。
【図12】印刷ヘッドの移動距離から予想移動時間を算出するときの手順の一例を示したフローチャートである。
【図13】印刷ヘッドの予想移動時間の算出手順を説明する説明図である。
【図14】本発明に係る方法により印刷ヘッドの移動を行ったときの一例を説明した図である。
【図15】本発明に係るコンピュータシステムの一実施形態の外観構成を示した説明図である。
【図16】図15に示すコンピュータシステムの構成を示すブロック図である。
【図17】ロジカル・シーク制御による印刷ヘッドの移動方法の一例を説明した図である。
【図18】各目標移動定速度の印刷ヘッドの移動速度の時間変化を示したグラフである。
【図19】本発明が解決しようとする課題を説明するための図である。
【符号の説明】
1 紙送りモータ(PFモータ)
2 紙送りドライバ
3 キャリッジ
4 キャリッジモータ(CRモータ)
5 キャリッジモータドライバ(CRモータドライバ)
6 DCユニット
6a 位置演算部
6b 減算器
6c 目標速度演算手段
6d 速度演算部
6e 減算器
6f 比例要素
6g 積分要素
6h 微分要素
6j PWM回路
7 ポンプモータ
8 ポンプモータドライバ
9 印刷ヘッド
10 ヘッドドライバ
11 リニア式エンコーダ
12 符号板
13 エンコーダ(ロータリ式エンコーダ)
14 ロータリ式エンコーダ用符号板
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 プリンタ
61 給紙挿入口
62 排紙口
64 給紙ローラ
65 紙送りローラ
66 従動ローラ
67a 大歯車
67b 中間歯車
67c 排紙歯車
68 排紙ローラ
69 従動ローラ(ギザローラ)
83 スマップ軸
84 プラテン
87 小歯車
88 小歯車
89 ホルダ
90 受信バッファ
94、96 イメージバッファ
1000 コンピュータシステム
1102 コンピュータ本体
1104 表示装置
1106 プリンタ
1108 入力装置
1108A キーボード
1108B マウス
1110 読取装置
1110A フレキシブルディスクドライブ装置
1110B CD−ROMドライブ装置
1202 内部メモリ
1204 ハードディスクドライブユニット
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a printing apparatus that performs printing on a printing medium such as paper.
[0002]
[Background]
Serial printers such as inkjet printers are known as printing apparatuses that perform printing on various types of printing media such as paper, cloth, and film. This serial printer includes a print head that performs printing by discharging ink, and performs printing on a printing medium while moving the print head along a section corresponding to a region to be printed. Yes. The printing medium is transported along the direction crossing the moving direction of the print head in accordance with the movement of the print head, and printing is performed on the surface. In the case of an ink jet printer, the print head is mounted and moved in a unit generally called a carriage.
[0003]
One method for efficiently moving the print head is a logical seek control method. In this logical seek control, a print head moves in a certain section and prints a predetermined area, and then prints another area. When printing another area, the movement distance is short among both ends of the section corresponding to the other area. In this method, printing is performed while the print head moves to the other end.
[0004]
FIG. 17 illustrates an example of a movement state when the print head is moved by the logical seek control. After moving the section x to print the area X (1), the print head H moves from the movement end position x2 to the section y for printing the next area Y. Of the two ends y1 and y2 of the head 2 move to the end y2 having the shorter moving distance ((2)). Then, the movement is started from the end y2, and after printing in the area Y while moving along the section y (3), the movement is performed when moving the section z for printing the next area Z. From the end position y1, it moves to the end z1 of the shorter moving distance out of both ends z1 and z2 of the next section z (4). Thereafter, the movement is started from the end z1, and the area Z is printed by moving along the section z ((5)).
[0005]
As described above, when the print head moves in a certain section and then moves in the next section, the print head is moved to the end of the next section having the shorter moving distance. Throughput (also called “throughput”) can be improved, and printing can be performed efficiently.
[0006]
[Problems to be solved by the invention]
However, this logical seek control has the following problems. That is, in this logical seek control, when printing another area, the print head is moved to the shorter end of the moving section corresponding to the other area. The print head was not always moved efficiently. That is, moving the print head to the end with the longer moving distance may be more efficient than moving the print head to the end with the shorter moving distance. This occurs, for example, when a DC motor is used as the drive motor for moving the print head. The target movement constant speed of the print head is set to V0, V1, V2, etc. according to the movement distance as shown in FIG. In addition, since the moving speed becomes faster as the moving distance becomes longer, and the moving speed becomes slower as the moving distance becomes shorter, it is variably set in stages. The time will be longer.
[0007]
FIG. 19 explains the situation. As shown in FIG. 19, when the moving distance is long (A), the moving speed is set fast (here, set to the speed V1), and thus the moving time may be short. On the other hand, when the moving distance is short (B), the moving speed is set low (here, set to the speed V0), and therefore the moving time may be excessively long. Note that the hatched portion in FIG. 15 indicates the difference in the moving distance between them.
[0008]
As described above, in the logical seek control, there is a case where it is not always considered to be efficient to move the print head to the end having the shorter moving distance, so the print head is moved sufficiently efficiently. It was hard to say. That is, it cannot be said that the throughput is sufficiently improved.
[0009]
The present invention has been made in view of such circumstances, and an object of the present invention is to realize a printing apparatus capable of efficiently moving a print head and improving throughput.
[0010]
[Means for Solving the Problems]
  The main invention for achieving the above object is:
  Conveying means;
  A print head for performing printing while moving a moving section corresponding to an area to be printed on a printing medium conveyed by the conveying means;,
  A carriage in which the print head is fixed and driven in a direction parallel to the printing medium and in a direction perpendicular to the conveyance direction of the printing medium;
  A DC motor for moving the carriage to move the print head;
  Two types of pulses that are attached to the carriage and have a different phase advance depending on whether the carriage moves when the DC motor is rotating forward and when the carriage moves when the DC motor is rotating backward And an encoder for outputting
  A printing apparatus in which the print head moves from a movement end position of the movement section to a movement start position of the movement section corresponding to the other area in order to print another area after the movement of the movement section is completed.Because
  Calculating means for calculating an expected moving time of the print head from the moving end position to each end of a moving section corresponding to the other area;
  The calculation means calculates a distance from the movement end position to each end of a movement section corresponding to the other area, and calculates a acceleration / deceleration time from the target movement constant speed of the print head set based on the distance, Find the travel time at the target travel constant speed, calculate the expected travel time from these times,
  The movement start position is an end of a shorter expected movement time calculated by the calculation means among both ends of a movement section corresponding to the other area.
  The target movement constant speed of the print head is variably set stepwise according to the distance from the movement end position to the movement start position,
  The DC motor is controlled in accordance with a sum of calculation results of a proportional calculation, an integral calculation, and a differential calculation based on a rotation speed deviation between a target rotation speed and an actual rotation speed obtained from the two types of pulses.This is a printing apparatus.
  Other objects and features of the present invention will become apparent from the description of the present specification and the accompanying drawings.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
=== Summary of disclosure ===
  At least the following matters will become apparent from the description of the present specification and the accompanying drawings.
  A transport unit, and a print head that performs printing while moving a moving section corresponding to an area to be printed on a printing medium transported by the transport unit;
  A printing apparatus in which the print head moves from a movement end position of the movement section to a movement start position of the movement section corresponding to the other area in order to print another area after the movement of the movement section is completed. In
  Calculating means for calculating an expected moving time of the print head from the moving end position to each end of a moving section corresponding to the other area;
  The calculation means calculates a distance from the movement end position to each end of a movement section corresponding to the other area, and calculates a acceleration / deceleration time from the target movement constant speed of the print head set based on the distance, Find the travel time at the target travel constant speed, calculate the expected travel time from these times,
  The printing apparatus according to claim 1, wherein the movement start position is an end of the movement section corresponding to the different area, which is the shorter one of the expected movement times calculated by the calculation unit.
[0012]
  In this printing apparatus, after moving the movement section corresponding to the area to be printed by the print head, in order to print another area, from the movement end position, the movement section corresponding to the other area is changed. Since both ends move to the end with the shorter moving time, the print head can be moved efficiently, and the throughput can be further improved as compared with the above-described logical seek control. Furthermore, the print head can be moved efficiently by selecting the end with the shorter movement time based on the calculated movement time.
[0015]
According to such a printing apparatus, it is preferable that the target moving constant speed of the print head is variably set according to the distance from the moving end position to the moving start position.
[0016]
In addition, according to the printing apparatus, it is preferable that the target movement constant speed is variably set stepwise according to the distance from the movement end position to the movement start position.
[0017]
According to such a printing apparatus, it is preferable that the motor for moving the print head is a DC motor.
[0018]
  A transport unit, and a print head that performs printing while moving a moving section corresponding to an area to be printed on a printing medium transported by the transport unit;
  A printing apparatus in which the print head moves from a movement end position of the movement section to a movement start position of the movement section corresponding to the other area in order to print another area after the movement of the movement section is completed. In
  Calculating means for calculating an expected moving time of the print head from the moving end position to each end of a moving section corresponding to the other area;
  The calculation means calculates a distance from the movement end position to each end of a movement section corresponding to the other area, and calculates a acceleration / deceleration time from the target movement constant speed of the print head set based on the distance, Find the travel time at the target travel constant speed, calculate the expected travel time from these times,
  The movement start position is an end of a shorter expected movement time calculated by the calculation means among both ends of a movement section corresponding to the other area.
  The target movement constant speed of the print head is variably set stepwise according to the distance from the movement end position to the movement start position,
  A printing apparatus, wherein the motor for moving the print head is a DC motor.
[0019]
  In a computer system comprising a computer main body and a printing device connectable to the computer main body,
  The printing apparatus includes a transport unit, and a print head that performs printing while moving a moving section corresponding to a region to be printed on a printing medium transported by the transport unit. A printing apparatus that moves from a movement end position of the movement section to a movement start position of the movement section according to the other area in order to print another area after the movement of the movement section is completed,
  Calculating means for calculating an expected moving time of the print head from the moving end position to each end of a moving section corresponding to the other area;
  The calculation means calculates a distance from the movement end position to each end of a movement section corresponding to the other area, and calculates a acceleration / deceleration time from the target movement constant speed of the print head set based on the distance, Find the travel time at the target travel constant speed, calculate the expected travel time from these times,
  The computer system according to claim 1, wherein the movement start position is an end of the movement section corresponding to the other area, which is the shorter one of the estimated movement times calculated by the calculation unit.
[0020]
=== Overview of Printing Apparatus ===
An outline of the printing apparatus according to the present invention will be described using an inkjet printer as an example. FIG. 1 is a block diagram showing a schematic configuration of an inkjet printer.
[0021]
The ink jet printer shown in FIG. 1 ejects ink onto a paper feed motor (hereinafter also referred to as a PF motor) 1 that feeds paper, a paper feed motor driver 2 that drives the paper feed motor 1, and a printing medium 50. The print head 9 is fixed, the carriage 3 is driven in a direction parallel to the printing medium 50 and perpendicular to the paper feed direction, and a carriage motor (hereinafter also referred to as a CR motor) 4 that drives the carriage 3. A CR motor driver 5 that drives the carriage motor 4, a DC unit 6 that controls the CR motor driver 5, a pump motor 7 that controls the suction of ink to prevent clogging of the print head 9, and a pump motor 7. A pump motor driver 8 for driving, a head driver 10 for driving and controlling the print head 9, and a linear type fixed to the carriage 3 The encoder 11, the code plate 12 for the linear encoder 11 having slits formed at predetermined intervals, the rotary encoder 13 for the PF motor 1, and the leading end position and the terminal end position of the printing medium 50 that is being printed. A paper detection sensor 15 that detects the image, a CPU 16 that controls the entire printer, a timer IC 17 that periodically generates an interrupt signal to the CPU 16, and an interface unit that transmits and receives data to and from the host computer 18 (hereinafter referred to as “host”). 19), the ASIC 20 for controlling the print resolution and the drive waveform of the print head 9 based on the print information sent from the host computer 18 through the IF 19, and the work areas and programs of the ASIC 20 and the CPU 16 PROM 21, RAM 22 and EEPROM 23 used as storage areas Driven by the platen 25 that supports the printing medium 50, the conveyance roller 27 that is driven by the PF motor 1 to convey the printing medium 50, the pulley 30 that is attached to the rotating shaft of the CR motor 4, and the pulley 30. A timing belt 31.
[0022]
The DC unit 6 drives and controls the paper feed motor driver 2 and the CR motor driver 5 based on the control commands sent from the CPU 16 and the outputs of the encoders 11 and 13. The paper feed motor 1 and the CR motor 4 are both DC motors.
[0023]
=== Configuration around the carriage ===
Next, the configuration around the carriage will be described. FIG. 2 is a perspective view showing a configuration around the carriage 3 of the ink jet printer.
As shown in FIG. 2, the carriage 3 is connected to the CR motor 4 via the pulley 30 by the timing belt 31, and is driven so as to move parallel to the platen 25 while being guided by the guide member 32. A print head 9 having a nozzle row for ejecting black ink and a nozzle row for ejecting color ink is provided on the surface of the carriage 3 facing the substrate 50, and each nozzle receives ink supply from the ink cartridge 34. Then, ink droplets are ejected onto the printing medium 50 to print characters and images.
[0024]
Further, in the non-printing area of the carriage 3, a capping device 35 for sealing the nozzle openings of the print head 9 at the time of non-printing and a pump unit 36 having the pump motor 7 shown in FIG. 1 are provided. . 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), the capping device 35 moves upward, and the print head 9 is sealed.
[0025]
When the nozzle opening row of the print head 9 is clogged, or when ink is forcibly discharged from the print head 9 by replacing the ink cartridge 34 or the like, the pump unit with the print head 9 sealed is used. 36 is operated, and the negative pressure from the pump unit 36 sucks ink from the nozzle opening row. As a result, dust and paper dust adhering to the vicinity of the nozzle opening row are washed, and air bubbles in the print head 9 are discharged to the cap 37 together with ink.
[0026]
=== Encoder ===
Next, the linear encoder 11 attached to the carriage 3 and the rotary encoder 13 for the PF motor 1 will be described. FIG. 3 is an explanatory diagram schematically showing the configuration of the linear encoder 11 attached to the carriage 3.
[0027]
The encoder 11 illustrated in FIG. 3 includes a light emitting diode 11a, a collimator lens 11b, and a detection processing unit 11c. The detection processing unit 11c includes a plurality of (for example, four) photodiodes 11d, a signal processing circuit 11e, and, for example, two comparators 11fA and 11fB.
[0028]
When the voltage VCC is applied to both ends of the light emitting diode 11a through a resistor, light is emitted from the light emitting diode 11a. This light is condensed into parallel light by the collimator lens 11 b and passes through the code plate 12. The code plate 12 is provided with slits at predetermined intervals (for example, 1/180 inch (1 inch = 2.54 cm)).
[0029]
The parallel light that has passed through the code plate 12 enters each photodiode 11d through a fixed slit (not shown) and is converted into an electrical signal. The electric signals output from the four photodiodes 11d are processed in the signal processing circuit 11e, the signals output from the signal processing circuit 11e are compared in the comparators 11fA and 11fB, and the comparison result is output as a pulse. Pulses ENC-A and ENC-B output from the comparators 11fA and 11fB are output from the encoder 11.
[0030]
FIG. 4 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.
[0031]
As shown in FIGS. 4A and 4B, the phase of the pulse ENC-A and the pulse ENC-B differ by 90 degrees in both cases of the CR motor forward rotation and reverse rotation. When the CR motor 4 is rotating forward, that is, when the carriage 3 is moving in the main scanning direction, the pulse ENC-A is 90 degrees from the pulse ENC-B as shown in FIG. When the phase is advanced by the time and the CR motor 4 is reversely rotated, the phase of the pulse ENC-A is delayed by 90 degrees from the pulse ENC-B, as shown in FIG. One period T of the pulse ENC-A and the pulse ENC-B is equal to the time for the carriage 3 to move the slit interval of the code plate 12.
[0032]
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 rotary encoder code plate 14 is a rotating disk that rotates in accordance with the rotation of the PF motor 1. Two output pulses ENC-A and ENC-B are output. In the ink jet printer, the slit interval of the plurality of slits provided on the rotary encoder code plate 14 is 1/180 inch. When the PF motor 1 is rotated by the 1 slit interval, the paper is fed by 1/1440 inch. Is done.
[0033]
=== Paper feed and paper detection ===
Next, parts related to paper feed and paper detection will be described. FIG. 5 is a perspective view showing portions related to paper feed and paper detection.
The position of the paper detection sensor 15 shown in FIG. 1 will be described with reference to FIG. In FIG. 5, the printing medium 50 inserted into the paper feed insertion slot 61 of the printer 60 is fed into the printer 60 by a paper feed roller 64 driven by a paper feed motor 63. The leading end of the printing medium 50 fed into the printer 60 is detected by, for example, the optical paper detection sensor 15. The printing medium 50 whose leading edge is detected by the paper detection sensor 15 is fed by a paper feed roller 65 and a driven roller 66 driven by the PF motor 1.
[0034]
Subsequently, ink is dropped from the print head 9 fixed to the carriage 3 that moves along the carriage guide member 32 to perform printing. When the paper is fed to a predetermined position, the paper detection sensor 15 detects the end of the printing medium 50 currently printed. The printed material 50 that has been printed is discharged from the paper discharge port 62 to the outside by the paper discharge roller 68 and the driven roller 69 driven by the gear 67C via the gears 67A and 67B driven by the PF motor 1. A rotary encoder 13 is connected to the rotation shaft of the paper feed roller 65.
[0035]
=== Paper feed ===
Next, portions related to paper feeding will be described in detail. FIG. 6 is a perspective view showing in detail a portion related to paper feeding of the printer.
[0036]
Of the parts of the printer shown in FIG. 5, the parts related to paper feeding will be described in more detail with reference to FIGS.
When the paper detection sensor 15 detects the leading end of the printing medium 50 inserted from the paper feed insertion port 61 of the printer 60 and fed into the printer 60 by the paper feed roller 64, the PF motor 1 passes the small gear 87. The paper feed roller 65 provided around the smap shaft 83 that is the rotation shaft of the large gear 67a that is driven in this manner, and the paper of the holder 89 that presses the printing medium 50 fed from the paper feed side downward in the vertical direction. Paper to be printed 50 is fed by a driven roller 66 provided at the leading end of the paper discharge side in the feed direction.
[0037]
The PF motor 1 is fixed to a frame 86 in the printer 60 with screws 85, a rotary encoder 13 is provided at a predetermined location around the large gear 67a, and a smap shaft 83 which is a rotation shaft of the large gear 67a. Is connected to a rotary encoder code plate 14.
[0038]
The printing medium 50 that has been fed by the paper feeding roller 65 and the driven roller 66 passes over the platen 84 that supports the printing medium 50, and the small gear 87, the large gear 67 a, the intermediate gear 67 b, and the small gear. The paper is nipped and fed between a paper discharge roller 68 driven by the PF motor 1 and a jagged roller 69 as a driven roller via a paper discharge gear 67c and a paper discharge gear 67c, and is discharged to the outside from the paper discharge port 62.
[0039]
While the printing medium 50 is supported on the platen 84, the carriage 3 moves left and right along the guide member 32 in the space on the platen 84, and ink is ejected from the print head 9 fixed to the carriage 3. Is printed.
[0040]
=== CR motor control method ===
<Configuration of DC unit>
Next, the DC unit 6 which is a DC motor control device for controlling the CR motor 4 for moving the carriage (print head) of the printing apparatus will be described. FIG. 7 is a control block diagram of the DC unit 6.
In the control block diagram of FIG. 7, as a main element for generating a command signal for the CR motor driver 5, a rotational position calculation unit 6a, a subtractor 6b, a target rotation speed calculation unit 6c, and a rotation speed calculation unit 6d. A subtractor 6e, a proportional element 6f as a proportional means, an integral element 6g as an integral means, a differential element 6h as a differential means, an adder 6i, a PWM circuit 6j, a timer 6k, and acceleration control 6m is shown.
[0041]
The rotational position calculator 6a detects the rising edge and the rising edge of each of the output pulses ENC-A and ENC-B of the linear encoder 11, counts the number of detected edges, and based on this count value, The rotational position of the CR motor 4 is calculated. This count is incremented by “+1” when one edge is detected when the CR motor 4 is rotating forward, and “−1” when one edge is detected when the CR motor 4 is rotating in reverse. Is added. The period of each of the pulses ENC-A and ENC-B is the time from when a slit passes through the linear encoder 11 until the next slit passes through the linear encoder 11 of the linear encoder code plate 12. The pulse ENC-A and the pulse ENC-B are different in phase by 90 degrees. For this reason, the count value “1” of the count corresponds to ¼ of the slit interval of the linear encoder code plate 12. Thus, if the count value is multiplied by ¼ of the slit interval, the movement amount of the CR motor 4 from the rotational position corresponding to the count value “0” can be obtained based on the multiplication value. At this time, the resolution of the linear encoder 11 is ¼ of the slit interval of the linear encoder code plate 12.
[0042]
The subtractor 6b calculates a rotational position deviation between the target rotational position sent from the CPU 16 and the actual rotational position of the CR motor 4 obtained by the rotational position computing unit 6a.
[0043]
The target rotational speed calculation unit 6c calculates the target rotational speed of the CR motor 4 based on the rotational position deviation that is the output of the subtractor 6b. This calculation is performed by multiplying the rotational position deviation by the gain KP. This gain KP is determined according to the rotational position deviation. Note that the value of the gain KP may be stored in a table (not shown).
[0044]
The rotational speed calculator 6d calculates the rotational speed of the CR motor 4 based on the output pulses ENC-A and ENC-B of the linear encoder 11. First, the rising edge and the falling edge of each of the output pulses ENC-A and ENC-B of the linear encoder 11 are detected, and the time between edges corresponding to 1/4 of the slit interval of the linear encoder code plate 12 is detected. The interval is counted by a timer counter. Based on the count value, the slit interval of the linear encoder code plate 12 and the reduction ratio between the CR motor 4 and the pulley 30, the rotational speed of the CR motor 4 is obtained.
[0045]
The subtractor 6e calculates a deviation between the target rotation speed and the actual rotation speed of the CR motor 4 calculated by the rotation speed calculation unit 6d. The proportional element 6f multiplies the deviation by a constant Gp and outputs the multiplication result. The integration element 6g integrates the deviation multiplied by a constant Gi and outputs the integration result. The differentiation element 6h multiplies the difference between the current deviation and the previous deviation by a constant Gd and outputs the multiplication result. The calculation of the proportional element 6f, the integral element 6g, and the derivative element 6h is performed in synchronization with the rising edge of the output pulse ENC-A, for example, for each cycle of the output pulse ENC-A of the linear encoder 11.
[0046]
The signal values output from the proportional element 6f, the integral element 6g, and the derivative element 6h indicate the duty DX corresponding to the respective calculation results. Here, the duty DX indicates that the duty percentage is (100 × DX / 2000)%, for example. In this case, if DX = 2000, the duty is 100%, and if DX = 1000, the duty is 50%.
[0047]
The outputs of the proportional element 6f, the integral element 6g, and the derivative element 6h are added by the adder 6i. The addition result is sent as a duty signal to the PWM circuit 6j, and the PWM circuit 6j generates a command signal corresponding to the addition result. The CR motor 4 is driven by the CR motor driver 5 based on the generated command signal.
[0048]
The timer 6k and the acceleration control unit 6m are used for acceleration control of the CR motor 4, and the PID control using the proportional element 6f, the integral element 6g, and the derivative element 6h is used for constant speed control and deceleration control after the acceleration control. Used.
[0049]
The timer 6k generates a timer interrupt signal every predetermined time based on the clock signal sent from the CPU 16.
[0050]
Each time the acceleration control unit 6m receives the timer interrupt signal, the acceleration control unit 6m integrates a predetermined duty (for example, DX = 200), and the integration result is sent to the PWM circuit 6j as a duty signal. As in the case of PID control, the PWM circuit 6j generates a command signal corresponding to the integration result, and the CR motor driver 5 drives the CR motor 4 based on the generated command signal.
[0051]
The CR motor driver 5 includes, for example, four transistors, and applies a voltage to the CR motor 4 by turning each of the transistors on or off based on the output of the PWM circuit 6j.
[0052]
<Operation outline of DC unit>
Next, the outline of the operation of the DC unit 6, that is, the outline of the control method of the CR motor 4 will be described with reference to FIGS. FIG. 8 is a graph showing the duty signal value and the motor rotation speed sent to the PWM circuit 6 j of the CR motor 4 controlled by the DC unit 6.
[0053]
When the start command signal for starting the CR motor 4 is sent from the CPU 16 to the DC unit 6 when the CR motor 4 is stopped, the start initial duty signal whose signal value is DX0 is sent from the acceleration control unit 6m to the PWM circuit. 6j. The start initial duty signal is sent from the CPU 16 to the acceleration control unit 6m together with the start command signal. The initial start duty signal is converted into a command signal corresponding to the signal value DX0 by the PWM circuit 6j and sent to the CR motor driver 5, and the CR motor driver 5 starts to start the CR motor 4 (FIG. 8 ( a) and (b)).
[0054]
After receiving the start command signal, a timer interrupt signal is generated from the timer 6k every predetermined time. Each time the acceleration control unit 6m receives a timer interrupt signal, the acceleration control unit 6m adds a predetermined duty (for example, DX = 200) to the signal value DXO of the startup initial duty signal, and a duty signal having the integrated duty as a signal value. Is sent to the PWM circuit 6j. The duty signal is converted into a command signal corresponding to the signal value by the PWM circuit 6j and sent to the CR motor driver 5. Based on the sent command signal, the CR motor 4 is driven by the CR motor driver 5 to increase the rotational speed of the CR motor 4 (see FIG. 8B). For this reason, the value of the duty signal output from the acceleration controller 6m and sent to the PWM circuit 6j is stepped as shown in FIG.
[0055]
The duty integration process in the acceleration controller 6m is performed until the integrated duty reaches a constant duty DXS. When the duty integrated at time tl reaches a predetermined value DXS, the acceleration control unit 6m stops the integration process, and thereafter sends a duty signal having a constant duty DXS as a signal value to the PWM circuit 6j (see FIG. 8A). ).
[0056]
In order to prevent the rotational speed of the CR motor 4 from overshooting, when the CR motor 4 reaches a predetermined rotational speed V1 (see time t2), the duty percentage of the voltage applied to the CR motor 4 is decreased. Thus, the acceleration control unit 6m is controlled. At this time, the rotational speed of the CR motor 4 further increases, but when the rotational speed of the CR motor 4 reaches a predetermined rotational speed Vc (see time t3 in FIG. 8B), the PWM circuit 6j is connected to the PID control system. The output, that is, the output of the adder 6i is selected, and PID control is performed.
[0057]
When the PID control is started, the integration value of the integration element 6g is set to a predetermined value, and the output value of the integration element 6g is set to a predetermined value. This point will be described later.
[0058]
When the PID control is started, the target rotational speed is calculated based on the rotational position deviation between the target rotational position and the actual rotational position obtained from the output of the linear encoder 11, and the target rotational speed and the linear encoder are calculated. 11, the proportional element 6 f, the integral element 6 g, and the differential element 6 h are operated based on the rotational speed deviation from the actual rotational speed obtained from the output of 11, and proportional, integral, and differential calculations are performed, respectively, and these calculation results The CR motor 4 is controlled based on the sum of the above. Note that the proportional, integral, and differential calculations are performed in synchronization with the rising edge of the output pulse ENC-A of the linear encoder 11, for example. Thereby, the rotational speed of the CR motor 4 is controlled to be a desired rotational speed Ve. That is, the moving speed of the carriage 3 on which the print head 9 is mounted is controlled so as to become a predetermined speed.
[0059]
When the CR motor 4 approaches the target rotation position (see time t5 in FIG. 8B), the rotation position deviation decreases, so the target rotation speed also decreases. Therefore, the rotational speed deviation, that is, the output of the subtractor 6e becomes negative, the CR motor 4 decelerates, and stops at time t6.
[0060]
In the present embodiment, the PF motor 1 is also driven and controlled by the above-described DC unit control system, as in the case of the CR motor 4.
[0061]
=== Printing Operation of Printing Apparatus ===
Next, the printing operation of the printing apparatus according to the present invention will be described taking the case of the above-described inkjet printer as an example. FIG. 9 schematically shows the flow of the printing process of the inkjet printer described above.
[0062]
From the host 18, various application software executed in the host 18 or print data generated by an external device is sent to the printer. The print data sent here may be raster data expressed as a set of dots having color information, or may be data expressed by a character code or a graphic function. Such print data is sequentially sent from the host for each predetermined area such as one line, two lines, or a character portion of one line.
[0063]
In the printer, print data from the host 18 is received by the interface (IF) 19 and the print data is stored in the reception buffer 90 from the ASIC 20. The reception buffer 90 is provided on an appropriate memory such as the RAM 22 described above.
[0064]
The ASIC 20 reads the print data from the reception buffer 90, sequentially analyzes it, and converts it into image data for each predetermined area. Here, the print data is converted into, for example, dot unit data, that is, CMYK raster data indicating the presence or absence of dot formation at predetermined intervals when the carriage 3 is moved in a certain direction. In addition to the reception buffer 90, a plurality of image buffers 94 and 96 are set on the memory such as the RAM described above, and the converted image data is individually stored in the image buffers 94 and 96 for each area. The
[0065]
The CPU 16 checks the image buffers 94 and 96 at appropriate intervals at a predetermined timing based on the clock signal. If the conversion to image data has been completed, the image data is read from the image buffers 94 and 96, and printing processing is executed based on the image data.
[0066]
In this printing process, first, an area to be printed on the printing medium 50 is specified from the read image data, and then a moving section of the print head 9 for printing the printing area from the specified printing area, That is, the movement section of the carriage 3 is set. Then, the CPU 16 drives and controls the CR motor 4 through the DC unit 6 so that the carriage 3 moves along the set movement section. Further, the CPU 16 drives and controls the print head 9 via the head driver 10 based on the read image data in accordance with the movement of the carriage 3. Accordingly, the carriage 3 is moved along the set movement section, and ink is ejected from the print head 9 in synchronization with the movement, so that an image corresponding to the image data is printed on the printing medium 50. Will be printed.
[0067]
The CPU 16 sequentially reads out the converted image data from the image buffers 94 and 96 and sequentially executes the printing process.
[0068]
=== Movement of print head during printing section ===
In moving the print head 9 that has finished moving along a predetermined movement section to print a certain area along the movement section corresponding to that area to print another area, in this embodiment, the print head 9 is moved as follows.
[0069]
<Moving speed of print head>
In the present embodiment, the constant moving speed of the print head 9 is variably set according to the movement distance from the movement end position of a certain movement section to the movement start position of the next movement section. Here, when the movement distance of the print head 9 is long, the target movement constant speed of the print head 9 is set high, and when the movement distance is short, the target movement constant speed of the print head 9 is set low. That is, the target moving constant speed is variably set according to the moving distance of the print head 9. The reason why the target moving constant speed of the print head 9 is variably set according to the moving distance in this way is to move the print head 9 quickly and with high accuracy.
[0070]
The setting contents are stored as a table in an appropriate storage unit such as the RAM 22. FIG. 10 shows an embodiment of the table. This table stores the movement distance of the print head 9 and the target movement constant speed in association with each other. Here, when the moving distance is within the range of “A0 to A1”, the target moving constant speed is set to “V0”, and when the moving distance is within the range of “A2 to A3”, the target moving constant speed is set to “V1”. When the moving distance is within the range of “A4 to A5”, the target moving constant speed is set to “V2”. That is, the target moving constant speed is variably set stepwise according to the moving distance of the print head 9.
[0071]
The CPU 16 refers to such a table, sets the target movement constant speed of the print head 9 from the movement distance of the print head 9, and the DC unit 6 so that the print head 9 moves at a constant speed at the target movement constant speed. Issue an order to
[0072]
FIG. 14 shows the relationship between time and speed when the print head 9 is moved at each target moving constant speed. As shown in this figure, it can be seen that the time required for acceleration and deceleration does not change much regardless of whether the moving speed is high or low.
[0073]
<Moving start position of print head>
In moving the print head 9 that has moved in a certain moving section to another moving section, the CPU 16 performs the following processing in this embodiment. That is, the movement time from the movement end position of the previous movement section to each end of the next movement section is calculated, and the print head 9 is moved to the end with the shorter movement time.
[0074]
The travel time is calculated as follows. First, the distance from the movement end position of the previous movement section to each end of the next movement section is obtained. Here, the distance is obtained from the coordinates of the movement end position of the previous movement section and the coordinates of each end of the next movement section.
[0075]
Next, based on the obtained distance, an expected moving time that is considered to be required for the print head 9 to move the distance is calculated. Here, since the moving speed of the print head 9 is variably set based on the moving distance as described above, the expected moving time is calculated according to the variable setting. That is, the target moving constant speed set for the print head 9 to move from the distance from the movement end position of the previous moving section to each end of the next moving section is acquired from the table described above. Next, the time and distance required for acceleration and deceleration to move at a constant speed at the target movement constant speed are calculated, and further, the distance to move at the target movement constant speed and the movement time from the acceleration / deceleration distance and acceleration / deceleration time. And the estimated travel time is calculated from these total times.
[0076]
In the present embodiment, the target moving constant speed of the print head 9 is variably set in stages, so that the time and distance necessary for acceleration and deceleration for moving at a constant moving speed at the target moving constant speed are set for each target moving constant speed. In association with each speed, a data table as shown in FIG. 11 is stored in advance in a storage device such as the RAM 22. In other words, for the target moving constant speed “V0”, “M0” and “T0” are stored as the acceleration distance and acceleration time, and “M3” and “T3” are stored as the deceleration distance and deceleration time. Yes. For the target moving constant speed “V1”, “M1” and “T1” are stored as the acceleration distance and acceleration time, and “M4” and “T4” are stored as the deceleration distance and deceleration time. . Further, for the target moving constant speed “V2”, “M2” and “T2” are stored as the acceleration distance and the acceleration time, and “M5” and “T5” are stored as the deceleration distance and the deceleration time. .
[0077]
In this embodiment, since a DC motor is used as the CR motor 4, each acceleration time “M0”, “M2” at each target moving constant speed “V0”, “V1” and “V2”, and “M3” is set to a substantially equal time, and the deceleration times “M3”, “M4” and “M5” are also set to a substantially equal time.
[0078]
FIG. 12 shows a processing flow for obtaining the estimated travel time from the movement end position of the previous travel section to each end of the next travel section in the present embodiment. Here, first, a movement distance L from the movement end position of the previous movement section to each end of the next movement section is obtained (S101). Next, it is checked from the obtained moving distance L whether the moving distance L falls within the range of “A0 to A1” (S102). Here, when falling within the range of “A0 to A1”, the target moving constant speed is set to “V0” (S103), and “M0” is set as the acceleration distance and acceleration time from the data table of FIG. And “T0”, and “M3” and “T3” are acquired as the deceleration distance and deceleration time (S104). Further, from these acceleration distance and acceleration time, and deceleration distance and deceleration time, the movement distance and movement time at the target moving constant speed are obtained (S105).
[0079]
Here, a method for calculating the moving distance and the moving time by the target moving constant speed “V0” from the acceleration distance / acceleration time and the deceleration distance / deceleration time will be described. FIG. 13 is for explaining this technique. As shown in FIG. 13, by subtracting the acceleration distance and the deceleration distance from the movement distance L, the movement distance La at the target movement constant speed “V0” can be obtained. By dividing the moving distance La by the target moving constant speed “V0”, the moving time Ta by the target moving constant speed “V0” can be calculated.
[0080]
The print head 9 moves the moving distance L by adding the acceleration time “T0” and the deceleration time “T3” to the moving time Ta at the target moving constant speed “V0” thus obtained. The total travel time required for the operation is obtained (S114).
[0081]
On the other hand, if the movement distance L does not fall within the range of “A0 to A1”, it is checked whether it falls within the range of “A2 to A3” as shown in FIG. 12 (S106). In this case, the target moving constant speed is set to “V1” (S107), and the acceleration distance “M1” and the acceleration time “T1”, the deceleration distance “M4” and the deceleration are determined from the data table of FIG. The time “T4” is acquired (S108). Then, the moving distance and moving time at the target moving constant speed “V1” are calculated from these by the method shown in FIG. 13 (S109), and the total moving time is obtained (S114).
[0082]
If the moving distance L does not fall within the range of “A2 to A3”, then it is checked whether it falls within the range of “A4 to A5” (S110). The target moving constant speed is set to “V2” (S111), and the acceleration distance “M2” and the acceleration time “T1”, the deceleration distance “M5” and the deceleration time “T5” are obtained from the data table of FIG. Then, the moving distance and moving time at the target moving constant speed “V2” are calculated by the method shown in FIG. 13 (S113), and the total moving time is obtained (S114).
[0083]
In the present embodiment, when the movement distance L does not correspond to any range, the calculation of the movement distance L is performed again.
[0084]
In this way, based on the movement distance from the movement end position of the previous movement section to each end of the next movement section, the movement time required for the print head 9 to move the movement distance is calculated. After the calculation, the CPU 16 compares the calculated expected travel time to each end and sets the end with the shorter travel time as the movement start position of the next travel section.
[0085]
Then, the CPU 16 moves the print head 9 from the movement end position of the previous movement section to the movement start position set by the above calculation when the timing for the print head 9 to move in the next movement section is reached. The movement of the next movement section is started from the movement start position.
[0086]
In this way, when the print head 9 that has finished printing in a certain region prints another region, the print head 9 can be moved to the end of the shorter movement time in the movement section corresponding to the other region. Therefore, the printing time can be sufficiently shortened compared to the conventional case, and an improvement in throughput can be achieved. Even when the moving speed of the print head 9 is variably set according to the moving distance, a further improvement in throughput can be achieved.
[0087]
FIG. 14 shows an example when the print head 9 is moved by the method according to the present embodiment. As shown in FIG. 14, after moving the section x to print the area X ((1)), the print head H moves along the section y to print the next area Y. An expected movement time from the movement end position x2 of the section x to each end y1, y2 of the section y is calculated, and the movement is made to the shorter end of the predicted movement time ((2)). Here, if the movement time from the movement end position x2 to the end y1 is short, even if the movement distance from the movement end position x2 to the end y2 is shorter, the movement to the end y1 is not performed. It will be. Similarly, when the print head H moves from the end y1 along the section y (3) and then moves along the section z to print the next area Z, the movement end position y2 of the section y is similarly determined. If the movement time is shorter at the end z1 of the section z, even if the movement distance is shorter toward the end z2 of the section z, the print head does not move toward the end z2 but moves toward the end z1. H moves (4).
[0088]
Here, since a DC motor is used as the CR motor 4 and the target moving constant speed of the print head 9 is variably set according to the moving distance, the expected moving time is calculated by the method described above. However, the calculation method of the expected movement time according to the present invention is not limited to the above-described method, and is appropriately set according to the control method of the CR motor 4 and the movement method of the print head 9.
[0089]
=== Configuration of Computer System etc. ===
Next, embodiments of a computer system, a computer program, and a recording medium that records the computer program, which are examples of embodiments according to the present invention, will be described with reference to the drawings.
[0090]
FIG. 15 is an explanatory diagram showing an external configuration of a computer system. The computer system 1000 includes a computer main body 1102, a display device 1104, a printer 1106, an input device 1108, and a reading device 1110. In this embodiment, the computer main body 1102 is housed in a mini-tower type housing, but is not limited thereto. The display device 1104 is generally a CRT (Cathode Ray Tube), a plasma display, a liquid crystal display device, or the like, but is not limited thereto. As the printer 1106, the printer described above is used. In this embodiment, the input device 1108 is a keyboard 1108A and a mouse 1108B, but is not limited thereto. In this embodiment, the reading device 1110 uses a flexible disk drive device 1110A and a CD-ROM drive device 1110B. However, the reading device 1110 is not limited to this. For example, an MO (Magnet Optical) disk drive device or a DVD (Digital Versatile) is used. Disk) etc. may be used.
[0091]
FIG. 16 is a block diagram showing a configuration of the computer system shown in FIG. An internal memory 1202 such as a RAM and an external memory such as a hard disk drive unit 1204 are further provided in a housing in which the computer main body 1102 is housed.
[0092]
In the above description, the printer 1106 is connected to the computer main body 1102, the display device 1104, the input device 1108, and the reading device 1110 to configure the computer system. However, the present invention is not limited to this. Absent. For example, the computer system may include a computer main body 1102 and a printer 1106, and the computer system may not include any of the display device 1104, the input device 1108, and the reading device 1110. Further, for example, the printer 1106 may have a part of each function or mechanism of the computer main body 1102, the display device 1104, the input device 1108, and the reading device 1110. As an example, the printer 1106 includes an image processing unit that performs image processing, a display unit that performs various displays, a recording medium attachment / detachment unit for attaching / detaching a recording medium that records image data captured by a digital camera or the like. It is good also as a structure to have.
[0093]
In the above-described embodiment, the computer program for controlling the printer is stored in a storage unit such as the EEPROM 23 on the printer side. The control unit 60 executes the computer program to operate the printer in the above-described embodiment. The computer program may be obtained by downloading through a computer main body or the like, or may be stored in a storage unit such as a ROM in the computer main body 1102.
[0094]
The computer system realized in this way is a system superior to the conventional system as a whole system.
[0095]
=== Other Embodiments ===
As described above, the printing apparatus such as a printer according to the present invention has been described based on one embodiment. However, the above-described embodiment is for facilitating the understanding of the present invention, and the present invention is limited and interpreted. Not meant to be The present invention can be changed or improved without departing from the gist thereof, and needless to say, the present invention includes equivalents thereof. In the present embodiment, part or all of the configuration realized by hardware may be replaced by software, and conversely, part of the configuration realized by software may be replaced by hardware. In addition, a part of the processing that has been performed on the printing apparatus side may be performed on the host 18 side, and a dedicated processing apparatus is provided between the printing apparatus and the host, and processing is performed by this processing apparatus. You may make it perform a part.
In particular, even the embodiments described below are included in the printing apparatus according to the present invention.
[0096]
<About printing devices>
The printing apparatus according to the present invention may be another type of ink jet printer in addition to the ink jet printer described above, and in addition to this, as long as it has a print head that performs printing while moving, it is a bubble jet. Further, the printer may be a printer, and a dot impact printer, a thermal transfer printer, or the like may be used as a printer that does not eject ink.
[0097]
<About the printed material 50>
As the printed material 50 according to the present invention, in addition to those made of paper material, cloth material, film material, etc., it is formed into other forms other than those formed from other materials or those formed into a sheet shape. Any other printed material can be used as long as it is printable.
[0098]
<About print head 9>
As long as the print head 9 of the printing apparatus according to the present invention performs printing while moving on the substrate 50, the print head 9 is of a type that ejects ink by the inkjet method as described in the above embodiment. It may be of the type that ejects ink by the bubble jet (registered trademark) method, the one that prints by the dot impact method, or the one that has a thermal head and prints by the thermal method or thermal transfer method. .
[0099]
<About transport means>
Further, as for the conveying means of the printing apparatus according to the present invention, as described above, in addition to the type of conveying the printing medium 50 by the rotation of a roller, the printing medium 50 is placed on a support table such as a table. Then, it may be of a type that is supported and moved by moving the entire support table.
[0100]
【The invention's effect】
According to the present invention, after moving the print head in a certain movement section, when moving in another movement section, the print head can be efficiently moved to the movement start position of the other movement section. The time can be sufficiently shortened, and the throughput can be further improved.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a schematic configuration of an inkjet printer.
FIG. 2 is a perspective view showing a configuration around a carriage 3 of an inkjet printer.
FIG. 3 is an explanatory diagram schematically showing a configuration of a linear encoder 11 attached to a carriage 3;
FIG. 4 is a timing chart showing waveforms of two output signals of the encoder 11 during CR motor forward rotation and reverse rotation.
FIG. 5 is a perspective view showing portions related to paper feed and paper detection.
FIG. 6 is a perspective view showing in detail a portion related to paper feeding of the printer.
FIG. 7 is a control block diagram of a DC unit 6 which is a DC motor control device.
8 is a graph showing a duty signal value and a motor rotation speed sent to a PWM circuit 6j of the CR motor 4 controlled by the DC unit 6. FIG.
FIG. 9 is an explanatory diagram schematically illustrating the flow of a printing process performed based on print data sent from a host.
FIG. 10 is a diagram illustrating an embodiment of a table in which a print head moving distance is associated with a target moving constant speed.
FIG. 11 is a diagram showing the contents of data stored in a memory or the like in order to calculate the estimated moving time of the print head.
FIG. 12 is a flowchart illustrating an example of a procedure for calculating an expected moving time from the moving distance of the print head.
FIG. 13 is an explanatory diagram illustrating a procedure for calculating an estimated moving time of the print head.
FIG. 14 is a diagram illustrating an example when the print head is moved by the method according to the present invention.
FIG. 15 is an explanatory diagram showing an external configuration of an embodiment of a computer system according to the present invention.
16 is a block diagram showing a configuration of a computer system shown in FIG.
FIG. 17 is a diagram illustrating an example of a print head moving method based on logical seek control.
FIG. 18 is a graph showing temporal changes in the moving speed of the print head at each target moving constant speed.
FIG. 19 is a diagram for explaining a problem to be solved by the present invention.
[Explanation of symbols]
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 calculation means
6d Speed calculator
6e Subtractor
6f proportional element
6g integral element
6h Differential element
6j PWM circuit
7 Pump motor
8 Pump motor driver
9 Print head
10 Head driver
11 Linear encoder
12 Code plate
13 Encoder (Rotary encoder)
14 Code board for rotary encoder
15 Paper detection sensor
16 CPU
17 Timer IC
18 Host computer
19 Interface section
20 ASIC
21 PROM
22 RAM
23 EEPROM
25 platen
30 pulley
31 Timing belt
32 Guide member for carriage motor
34 Ink cartridge
35 Capping device
36 Pump unit
37 cap
50 substrate
60 Printer
61 Paper feed slot
62 Outlet
64 Paper feed roller
65 Paper feed roller
66 Followed Roller
67a Large gear
67b Intermediate gear
67c Paper discharge gear
68 Paper discharge roller
69 Followed Roller (Giza Roller)
83 Smap axis
84 Platen
87 Small gear
88 small gear
89 Holder
90 Receive buffer
94, 96 Image buffer
1000 computer system
1102 Computer main body
1104 Display device
1106 Printer
1108 Input device
1108A keyboard
1108B mouse
1110 Reader
1110A Flexible disk drive device
1110B CD-ROM drive device
1202 Internal memory
1204 Hard disk drive unit

Claims (2)

搬送手段と、
この搬送手段により搬送される被印刷体に対して、印刷すべき領域に応じた移動区間を移動しながら印刷をする印刷ヘッドと
前記印刷ヘッドが固定され、前記被印刷体に対し平行方向かつ前記被印刷体の搬送方向に対し垂直方向に駆動されるキャリッジと、
前記印刷ヘッドを移動させるべく前記キャリッジを移動させるDCモータと、
前記キャリッジに取り付けられ、前記DCモータが正転している際の前記キャリッジの移動時と前記DCモータが逆転している際の前記キャリッジの移動時とで位相の進み方が異なる2種類のパルスを出力するエンコーダとを有し、
前記印刷ヘッドが、前記移動区間の移動終了後、別の領域の印刷をするために、前記移動区間の移動終了位置から、前記別の領域に応じた移動区間の移動開始位置に移動する印刷装置であって、
前記移動終了位置から前記別の領域に応じた移動区間の各端への前記印刷ヘッドの予想移動時間を算出する算出手段を備え、
前記算出手段は、前記移動終了位置から前記別の領域に応じた移動区間の各端への距離を算出し、その距離に基づき設定される前記印刷ヘッドの目標移動定速度から加減速時間および前記目標移動定速度による移動時間を求め、これらの時間から前記予想移動時間を算出し、
前記移動開始位置は、前記別の領域に応じた移動区間の両端のうち、前記算出手段によって算出された前記予想移動時間が短い方の端であり、
前記印刷ヘッドの目標移動定速度が、前記移動終了位置から前記移動開始位置までの距離に応じて段階的に可変設定され、
前記DCモータは、目標回転速度と前記2種類のパルスから得られる実際の回転速度との回転速度偏差に基づく比例演算、積分演算、及び微分演算の各演算結果の和に応じて制御されることを特徴とする印刷装置。
Conveying means;
A print head that performs printing while moving a moving section corresponding to an area to be printed on a printing medium conveyed by the conveying unit ;
A carriage in which the print head is fixed and driven in a direction parallel to the printing medium and in a direction perpendicular to the conveyance direction of the printing medium;
A DC motor for moving the carriage to move the print head;
Two types of pulses that are attached to the carriage and have a different phase advance depending on whether the carriage moves when the DC motor is rotating forward and when the carriage moves when the DC motor is rotating backward And an encoder for outputting
A printing apparatus in which the print head moves from a movement end position of the movement section to a movement start position of the movement section corresponding to the other area in order to print another area after the movement of the movement section is completed. Because
Calculating means for calculating an expected moving time of the print head from the moving end position to each end of a moving section corresponding to the other area;
The calculation means calculates a distance from the movement end position to each end of a movement section corresponding to the other area, and calculates a acceleration / deceleration time from the target movement constant speed of the print head set based on the distance, Find the travel time at the target travel constant speed, calculate the expected travel time from these times,
The movement start position is an end of a shorter expected movement time calculated by the calculation means among both ends of a movement section corresponding to the other area.
The target movement constant speed of the print head is variably set stepwise according to the distance from the movement end position to the movement start position,
The DC motor is controlled in accordance with a sum of calculation results of a proportional calculation, an integral calculation, and a differential calculation based on a rotation speed deviation between a target rotation speed and an actual rotation speed obtained from the two types of pulses. A printing apparatus characterized by the above.
コンピュータ本体、及びコンピュータ本体に接続可能な印刷装置を具備したコンピュータシステムにおいて、
前記印刷装置は、
搬送手段と、この搬送手段により搬送される被印刷体に対して、印刷すべき領域に応じた移動区間を移動しながら印刷をする印刷ヘッドと、前記印刷ヘッドが固定され、前記被印刷体に対し平行方向かつ前記被印刷体の搬送方向に対し垂直方向に駆動されるキャリッジと、前記印刷ヘッドを移動させるべく前記キャリッジを移動させるDCモータと、前記キャリッジに取り付けられ、前記DCモータが正転している際の前記キャリッジの移動時と前記DCモータが逆転している際の前記キャリッジの移動時とで位相の進み方が異なる2種類のパルスを出力するエンコーダとを有し、前記印刷ヘッドが、前記移動区間の移動終了後、別の領域の印刷をするために、前記移動区間の移動終了位置から、前記別の領域に応じた移動区間の移動開始位置に移動するものであって、
前記移動終了位置から前記別の領域に応じた移動区間の各端への前記印刷ヘッドの予想移動時間を算出する算出手段を備え、
前記算出手段は、前記移動終了位置から前記別の領域に応じた移動区間の各端への距離を算出し、その距離に基づき設定される前記印刷ヘッドの目標移動定速度から加減速時間および前記目標移動定速度による移動時間を求め、これらの時間から前記予想移動時間を算出し、
前記移動開始位置は、前記別の領域に応じた移動区間の両端のうち、前記算出手段によって算出された前記予想移動時間が短い方の端であり、
前記印刷ヘッドの目標移動定速度が、前記移動終了位置から前記移動開始位置までの距離に応じて段階的に可変設定され、
前記DCモータは、目標回転速度と前記2種類のパルスから得られる実際の回転速度との回転速度偏差に基づく比例演算、積分演算、及び微分演算の各演算結果の和に応じて制御されることを特徴とするコンピュータシステム。
In a computer system comprising a computer main body and a printing device connectable to the computer main body,
The printing apparatus includes:
A transport unit, a print head that performs printing while moving a moving section corresponding to a region to be printed, and a print head that is transported by the transport unit, and the print head is fixed to the print body. A carriage that is driven in a direction parallel to and perpendicular to the conveyance direction of the substrate, a DC motor that moves the carriage to move the print head, and a DC motor that is attached to the carriage and that rotates forward. An encoder that outputs two types of pulses having different phase advance states when the carriage moves when the DC motor is moving and when the carriage moves when the DC motor is rotating in reverse. However, in order to print another area after the movement of the movement section, the movement start position of the movement section corresponding to the other area is determined from the movement end position of the movement section. It has been made to move to,
Calculating means for calculating an expected moving time of the print head from the moving end position to each end of a moving section corresponding to the other area;
The calculation means calculates a distance from the movement end position to each end of a movement section corresponding to the other area, and calculates a acceleration / deceleration time from the target movement constant speed of the print head set based on the distance, Find the travel time at the target travel constant speed, calculate the expected travel time from these times,
The movement start position is an end of a shorter expected movement time calculated by the calculation means among both ends of a movement section corresponding to the other area.
The target movement constant speed of the print head is variably set stepwise according to the distance from the movement end position to the movement start position,
The DC motor is controlled in accordance with a sum of calculation results of a proportional calculation, an integral calculation, and a differential calculation based on a rotation speed deviation between a target rotation speed and an actual rotation speed obtained from the two types of pulses. A computer system characterized by the above.
JP2002193863A 2002-07-02 2002-07-02 Printing apparatus and computer system Expired - Fee Related JP4325151B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002193863A JP4325151B2 (en) 2002-07-02 2002-07-02 Printing apparatus and computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002193863A JP4325151B2 (en) 2002-07-02 2002-07-02 Printing apparatus and computer system

Publications (3)

Publication Number Publication Date
JP2004034469A JP2004034469A (en) 2004-02-05
JP2004034469A5 JP2004034469A5 (en) 2005-10-20
JP4325151B2 true JP4325151B2 (en) 2009-09-02

Family

ID=31702731

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002193863A Expired - Fee Related JP4325151B2 (en) 2002-07-02 2002-07-02 Printing apparatus and computer system

Country Status (1)

Country Link
JP (1) JP4325151B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007062238A (en) * 2005-09-01 2007-03-15 Ricoh Co Ltd Image forming apparatus
JP4259574B2 (en) 2006-12-22 2009-04-30 セイコーエプソン株式会社 Recording apparatus and recording method in recording apparatus
JP2009083442A (en) * 2007-10-03 2009-04-23 Seiko Epson Corp Drive device of moved body, driving method of moved body and inkjet printer
JP5614083B2 (en) 2010-04-14 2014-10-29 セイコーエプソン株式会社 Printing apparatus and printing method
JP5949862B2 (en) * 2014-09-11 2016-07-13 セイコーエプソン株式会社 Printing apparatus and printing method

Also Published As

Publication number Publication date
JP2004034469A (en) 2004-02-05

Similar Documents

Publication Publication Date Title
EP1602504B1 (en) Motor control device and motor control method
JP4998533B2 (en) Printing device
US20120081448A1 (en) Liquid Ejecting Apparatus And Printing System
JP2001169584A (en) Control device and method for printer motor, and recording medium storing control program
JP2001103778A (en) Control device and method of printer motor and recording medium recording control programs
JP2001232882A (en) Printing control device and printing control method
JP4325151B2 (en) Printing apparatus and computer system
US7431414B2 (en) Printer-control apparatus, printer-control method and printer
JP3570617B2 (en) DC motor control device and control method
JP3818496B2 (en) Printer control apparatus and printer control method
JP2006150619A (en) Printing device, computer program, printing system, and printing method
JP3777936B2 (en) Motor control method and control apparatus
JP3705061B2 (en) MOTOR CONTROL DEVICE, ITS CONTROL METHOD, AND RECORDING MEDIUM CONTAINING MOTOR CONTROL PROGRAM
JP3893853B2 (en) Printer motor control apparatus and control method
JP2004034470A (en) Printer and computer system
JP3812351B2 (en) PRINT CONTROL DEVICE, PRINT CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM
JP2003341197A (en) Printer control method and printer controller
JP4003721B2 (en) Printer
JP3871181B2 (en) PRINT CONTROL DEVICE, CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM
JP3985535B2 (en) Printer paper feed DC motor control device and control method
JP2002283559A (en) Print controller, method for controlling print, and recording medium having print control program recorded therein
JP3885559B2 (en) Printer control method and printer control apparatus
JP4432055B2 (en) Printer motor control apparatus and control method
JP2001315395A (en) Print controller, print control method, and recording medium having print control program recorded therein
JP4419590B2 (en) Printing apparatus and printing method

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20040917

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050627

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050627

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050627

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20050627

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061227

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090217

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090417

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

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

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

Free format text: PAYMENT UNTIL: 20120619

Year of fee payment: 3

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

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130619

Year of fee payment: 4

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees