JP4366066B2 - Recording apparatus control method and recording apparatus - Google Patents

Recording apparatus control method and recording apparatus Download PDF

Info

Publication number
JP4366066B2
JP4366066B2 JP2002308412A JP2002308412A JP4366066B2 JP 4366066 B2 JP4366066 B2 JP 4366066B2 JP 2002308412 A JP2002308412 A JP 2002308412A JP 2002308412 A JP2002308412 A JP 2002308412A JP 4366066 B2 JP4366066 B2 JP 4366066B2
Authority
JP
Japan
Prior art keywords
interval
edge
calculation
recording
timing signal
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
JP2002308412A
Other languages
Japanese (ja)
Other versions
JP2004142195A (en
JP2004142195A5 (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2002308412A priority Critical patent/JP4366066B2/en
Publication of JP2004142195A publication Critical patent/JP2004142195A/en
Publication of JP2004142195A5 publication Critical patent/JP2004142195A5/ja
Application granted granted Critical
Publication of JP4366066B2 publication Critical patent/JP4366066B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Ink Jet (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は記録位置の制御に関し、特に、記録素子を有する記録ヘッドを搭載したキャリッジを記録媒体上で走査させて記録を行う際の、記録素子の駆動タイミングを規定するタイミング信号の生成に関するものである。
【0002】
【従来の技術】
例えばワードプロセッサ、パーソナルコンピュータ、ファクシミリ等に於ける情報出力装置として、所望される文字や画像等の情報を用紙やフィルム等シート状の記録媒体に記録を行う記録装置において、用紙等の記録媒体の送り方向と交差する方向に記録素子を有する記録ヘッドを搭載したキャリッジを走査させて記録を行なうシリアル記録方式が安価で小型化が容易などの点から一般的に広く用いられている。
【0003】
記録装置の記録方式としては様々な方式が知られているが、用紙等の記録媒体に非接触記録が可能である、カラー化が容易である、静粛性に富む、等の理由でインクジェット方式が近年特に注目されている。
【0004】
このような記録装置においては、記録ヘッドの走査位置と、記録ヘッドの駆動タイミングとの整合が不可欠である。記録ヘッドの走査位置の検出手段としては、記録ヘッドを搭載するキャリッジの移動位置を検出するエンコーダなどが用いられる。
【0005】
エンコーダを用いた場合には、エンコーダによるキャリッジの位置検出の分解能は画像の記録分解能に大きく影響を与える。画像の記録分解能(解像度)の向上を実現することは重要な課題であり、このようなエンコーダを用いた記録装置において画像の記録分解能を高めるためには、エンコーダの分解能を高くするのが一般的である。しかしながら、現在、インクジェット方式の記録装置に対しては低価格化が要望されており、高解像度の高価格なエンコーダを使用することは、記録装置の製品化においてコスト面でマイナス要因となる。
【0006】
このような状況において、記録画像の高解像度化を達成しつつ装置全体のコスト上昇を抑えるためには、エンコーダから出力されるパルス状のエンコード信号に基づいて、更に分解能の高いタイミング信号(キックパルス)を生成してこの信号に基づいて記録ヘッドを駆動することが必要となる。
【0007】
高分解能の信号を生成する方法としては、エンコーダから出力されるエンコード信号の立ち上りエッジから次の立ち上りエッジ(あるいは、立ち下りエッジから次の立ち下りエッジ)までの1周期をn等分する方法が用いられている。例えば、直前のエッジ周期測定値をm、あらかじめ設定されているエッジ周期内に生成するキックパルスの数(分割数)をnとすると、キックパルス間隔はm/nの商の値とし、n個のキックパルスを生成した後、次のエッジ周期まで待機する。
【0008】
図2は、従来のキックパルス制御回路の構成を示すブロック図である。1はエッジ検出器であり、エンコード信号のエッジ間隔を検出するとスタートパルスを発生する。2はエッジ間隔(周期)を計測するカウンタである。3はシフタであり、上記nが2のべき乗のときの除算に相当する演算を実行する。4はエッジ間隔を保持するレジスタである。5はシフタの値又はレジスタの値を選択するセレクタである。6はロード信号によってデータをロードするロードカウンタである。7は1検出器でありロードカウンタの値が1のとき“H”を出力する。8はキックパルス数を制御するパルスコントローラである。
【0009】
この回路では、エンコード信号のエッジを検出するとエッジ検出器1によりスタートパルスが発生される。スタートパルスによりカウンタ2で計測していたエッジの1周期からマージン値を引いて、スリット間で発生させるキックパルス数で割った値がレジスタ4に保持される。セレクタ5ではパルスコントローラ8から発生する制御信号によってシフタ3の出力または、レジスタ4の値を出力する。
【0010】
カウンタ6ではセレクタの出力をパルスコントローラ8から出力されるロード信号によってデータロードし、ロードしたデータが1になるまでクロックが入力されるたびにデクリメントする。この時間がキックパルス間隔になる。1検出器7ではカウンタ6の値が1のとき、キックパルスの1クロック分のON部分を出力する。パルスコントローラ8では、パルスが発生するとカウンタ6にロード信号を出力する。そのとき出力されるパルス数をカウントし、カウント値がスリット間で発生させるキックパルス数になるまでカウンタ6にロード信号を出力する。
【0011】
図1は、エンコーダから出力される2相のエンコード信号S1及びS2と、図2に示したようなキックパルス制御回路によって生成されたキックパルスP1の関係を示すタイミングチャートである。この例では、150dpiの分解能を持つエンコーダのエンコード信号から8倍に相当する1200dpiの記録分解能に対応するキックパルスを生成する場合の例である。なお、図中の数字はクロックのカウント数を示している。
【0012】
例えば、エンコーダ信号S1の立上りエッジで計測した1周期の間隔が、時刻t0からt1までの間隔Aの79から、時刻t1からt2までの間隔Bの84に変化した場合、間隔Bにおけるキックパルス間隔(周期)は直前の間隔Aに基づいて、
79/8=9…余り7
という計算からキックパルス間隔は9となる。この場合、8回目のキックパルスが出力された後に次のキックパルスが出力されるまで、
84−9×8=12(クロック)
の間隔が空いてしまう。
【0013】
このように、キャリッジが減速動作している間に記録動作を行う場合には、隙間の開いた部分が生じてしまう。
【0014】
一方、エンコーダ信号S1の立上りエッジで計測した1周期の間隔が、時刻t1からt2までの間隔Bの84から、時刻t2からt3までの間隔Cの76に変化する場合、間隔Cにおけるキックパルス間隔は直前の間隔Bに基づいて、
84/8=10…余り4
という計算からキックパルス間隔は10となる。この場合、8回のキックパルスは間隔Cに収まらなくなってしまう。次の間隔Dにおいては、間隔Cで生成された8つ目のキックパルスが出力された後にキックパルスの生成を行うか、あるいは間隔Cに対して生成されたキックパルスが出力される前に、次の間隔Dに対するキックパルスが出力されることとなる。
【0015】
このように、キャリッジが加速動作している間に記録動作を行う場合は、目的の位置で記録を行えなくなる可能性がある。
【0016】
【発明が解決しようとする課題】
図1にも示したように、エンコーダからはA相(S1)とB相(S2)の2つの信号が出力されるが、本来B相の信号はA相の信号の位相を90°ずらしたものである。従ってA−B相間のエッジ間隔及び立上がり−立下り間隔が正確であれば、この2つの信号に基づいて、正確な4逓倍信号が生成できる。
【0017】
しかしながら、実際にはエンコーダの取り付け精度、フォトダイオードの特性、フィルムに設けられたスリットの精度などにより、同相内のデューティー比やA−B相間の間隔精度に誤差が生じるので、この方法で生成された4逓倍信号を用いても高解像度記録を行うのは困難である。
【0018】
このため、従来は図1に示したように信頼できるA相又はB相の一方のエッジ間隔を利用してキックパルス間隔を計算している。エンコード信号からエッジ1周期を測定する間、機械的な要因によりエッジ1周期より短いわずかな時間においてキャリッジの速度変動が生じることが考えられる。しかしながら、従来の方法では一方のエンコード信号だけに基づいてエッジ1周期を測定しているので、周期の測定に要する時間が長くなり、キャリッジの速度変化に対する応答が遅れてしまう。
【0019】
以上のように従来の方法では、キャリッジの速度変動に対するキックパルスの応答が遅くなるため、特に、キャリッジの加減速動作中に高画質記録を行うことは困難である。
【0020】
本発明は以上のような状況に鑑みてなされたものであり、キャリッジの速度変動に対してタイミング信号の周期を応答性良く更新することを目的とする。
【0021】
【課題を解決するための手段】
上記目的を達成する本発明の1実施形態における記録装置の制御方法は、記録素子を有する記録ヘッドを搭載したキャリッジを記録媒体上で走査させ、前記記録素子の駆動タイミングを規定するタイミング信号に基づいて記録を行う記録装置の制御方法であって、
前記キャリッジの走査方向における位置に応じてエンコーダから出力されるパルス信号の立ち上がりエッジ及び立ち下がりエッジそれぞれの間隔を前記立ち上がりエッジ及び前記立ち下がりエッジが検知される毎に計測する計測工程と、
前記計測工程において1周期分のエッジ間隔が計測される毎に、該計測されたエッジ間隔と除算処理で生じた剰余との加算処理の結果を所定数で除算処理することにより前記タイミング信号の周期を演算し、該演算結果に基づいて前記タイミング信号を出力する演算工程と
を含み、
前記演算工程は、
前記1周期分のエッジ間隔が計測されると、該計測されたエッジ間隔と前回の前記タイミング信号の周期演算時の除算処理で生じた剰余とを加算し、その加算結果を前記所定数で除算する第1の演算と、該計測されたエッジ間隔と前々回の前記タイミング信号の周期演算時の除算処理で生じた剰余とを加算し、その加算結果を前記所定数で除算する第2の演算とを行なう演算処理工程と、
前記第1の演算時の除算処理により得られる第1の商と、前記第2の演算時の除算処理により得られる第2の商とのいずれかを選択して保持手段に保持させる選択工程と、
前記演算処理工程において前記第1及び前記第2の演算が行なわれた後、その次の周期のエッジ間隔で前記演算処理工程において求められた前記第2の商が、前記保持手段に保持されている値よりも小さければ、前記保持手段に保持された値を前記次の周期のエッジ間隔で求められた前記第2の商で更新する更新工程と、
前記保持手段に保持された値に基づいた間隔で前記タイミング信号を出力する出力工程と
を含むことを特徴とする。
【0022】
すなわち、本発明では、記録素子を有する記録ヘッドを搭載したキャリッジを記録媒体上で走査させて記録を行う際の、記録素子の駆動タイミングを規定するタイミング信号を規定するタイミング信号を生成するときに、キャリッジの走査方向における位置に応じてエンコーダから出力されるパルス信号の立ち上がり及び立ち下がりそれぞれのエッジの間隔を計測し、エッジの間隔を所定数で除算して前記タイミング信号の周期を算出し、その際に前の算出で生じた剰余を前記エッジの周期に加算した後に除算を行い、算出結果に基づいてタイミング信号の周期を更新する。
【0023】
このようにすると、エンコーダから出力されるパルス信号の立ち上がり及び立ち下がりそれぞれのエッジが検出される度に、前の算出での剰余を検出されたエッジの周期に加算してそれを所定数で除算してタイミング信号の周期が算出されて、更新される。
【0024】
従って、キャリッジの移動速度が一定でない加減速領域や、速度変動がある場合にも、タイミング信号の周期が良好な応答性で適切な値に更新される。
【0025】
【発明の実施の形態】
以下添付図面を参照して本発明の好適な実施形態について詳細に説明する。
【0026】
なお、以下に説明する実施形態では、本発明を適用する記録装置として、インクジェット記録方式を用いたプリンタを例に挙げ説明する。
【0027】
本明細書において、「記録」(「プリント」という場合もある)とは、文字、図形等有意の情報を形成する場合のみならず、有意無意を問わず、また人間が視覚で知覚し得るように顕在化したものであるか否かを問わず、広く記録媒体上に画像、模様、パターン等を形成する、または媒体の加工を行う場合も表すものとする。
【0028】
また、「記録媒体」とは、一般的な記録装置で用いられる紙のみならず、広く、布、プラスチック・フィルム、金属板、ガラス、セラミックス、木材、皮革等、インクを受容可能なものも表すものとする。
【0029】
さらに、「インク」(「液体」と言う場合もある)とは、上記「記録(プリント)」の定義と同様広く解釈されるべきもので、記録媒体上に付与されることによって、画像、模様、パターン等の形成または記録媒体の加工、或いはインクの処理(例えば記録媒体に付与されるインク中の色剤の凝固または不溶化)に供され得る液体を表すものとする。
【0030】
また、以下の説明で信号又はエッジの「間隔」という表現は、信号又はエッジの周期と同じ時間間隔(期間)を意味する。
【0031】
<装置本体の概略説明>
図7は、本発明を適用するのに好適なインクジェットプリンタIJRAの構成の概要を示す外観斜視図である。図7において、駆動モータ5013の正逆回転に連動して駆動力伝達ギア5009〜5011を介して回転するリードスクリュー5005の螺旋溝5004に対して係合するキャリッジHCはピン(不図示)を有し、ガイドレール5003に支持されて矢印a,b方向を往復移動する。キャリッジHCには、記録ヘッドIJHとインクタンクITとを内蔵した一体型インクジェットカートリッジIJCが搭載されている。
【0032】
5002は紙押え板であり、キャリッジHCの移動方向に亙って記録用紙Pをプラテン5000に対して押圧する。5007,5008はフォトカプラで、キャリッジのレバー5006のこの域での存在を確認して、モータ5013の回転方向切り換え等を行うためのホームポジション検知器である。
【0033】
5016は記録ヘッドIJHの前面をキャップするキャップ部材5022を支持する部材で、5015はこのキャップ内を吸引する吸引器で、キャップ内開口5023を介して記録ヘッドの吸引回復を行う。5017はクリーニングブレードで、5019はこのブレードを前後方向に移動可能にする部材であり、本体支持板5018にこれらが支持されている。ブレードは、この形態でなく周知のクリーニングブレードが本例に適用できることは言うまでもない。
【0034】
又、5021は、吸引回復の吸引を開始するためのレバーで、キャリッジと係合するカム5020の移動に伴って移動し、駆動モータからの駆動力がクラッチ切り換え等の公知の伝達機構で移動制御される。
【0035】
これらのキャッピング、クリーニング、吸引回復は、キャリッジがホームポジション側の領域に来た時にリードスクリュー5005の作用によってそれらの対応位置で所望の処理が行えるように構成されているが、周知のタイミングで所望の動作を行うようにすれば、本例にはいずれも適用できる。
【0036】
<制御構成の説明>
次に、上述した装置の記録制御を実行するための制御構成について説明する。
【0037】
図8はインクジェットプリンタIJRAの制御回路の構成を示すブロック図である。制御回路を示す同図において、1700は記録信号を入力するインターフェース、1701はMPU、1702はMPU1701が実行する制御プログラムを格納するROM、1703は各種データ(上記記録信号やヘッドに供給される記録データ等)を保存しておくDRAMである。1704は記録ヘッドIJHに対する記録データの供給制御を行うゲートアレイ(G.A.)であり、インターフェース1700、MPU1701、RAM1703間のデータ転送制御も行う。1710は記録ヘッドIJHを搬送するためのキャリアモータ、1709は記録紙搬送のための搬送モータである。1705は記録ヘッドを駆動するヘッドドライバ、1706,1707はそれぞれ搬送モータ1709、キャリアモータ1710を駆動するためのモータドライバである。
【0038】
上記制御構成の動作を説明すると、インターフェース1700に記録信号が入るとゲートアレイ1704とMPU1701との間で記録信号がプリント用の記録データに変換される。そして、モータドライバ1706、1707が駆動されると共に、ヘッドドライバ1705に送られた記録データに従って記録ヘッドが駆動され、記録が行われる。
【0039】
ここでは、MPU1701が実行する制御プログラムをROM1702に格納するものとしたが、EEPROM等の消去/書き込みが可能な記憶媒体を更に追加して、インクジェットプリンタIJRAと接続されたホストコンピュータから制御プログラムを変更できるように構成することもできる。
【0040】
なお、上述のように、インクタンクITと記録ヘッドIJHとは一体的に形成されて交換可能なインクカートリッジIJCを構成しても良いが、これらインクタンクITと記録ヘッドIJHとを分離可能に構成して、インクがなくなったときにインクタンクITだけを交換できるようにしても良い。
【0041】
<キックパルス制御回路>
以上のような構成のインクジェットプリンタに用いるキックパルス制御回路について説明する。
【0042】
図3は、上記のインクジェットプリンタにおける記録ヘッドの駆動信号であるヒートパルス生成のためのキックパルス制御回路のブロック図である。本実施形態のキックパルス制御回路は、エッジ間隔取り込み部9とパルス間隔演算部10から構成されている。
【0043】
キックパルス制御回路にはエンコーダからA相及びB相の2つの信号が入力され、エッジ間隔取り込み部9では、入力エッジが変化するごとに、A相の立ち上りエッジ間隔、B相の立ち上りエッジ間隔、A相の立下りエッジ間隔、B相の立下りエッジ間隔の順に値を出力する。本実施形態ではエッジ間隔を計測するためのカウンタとしてフリーランカウンタを用いている。パルス間隔演算部10では、これらのエッジ間隔値を取り込み、余りの伝播処理、エッジ間隔値の更新による生成途中のパルス間隔の更新等の処理を行いキックパルスを出力する。
【0044】
以下、図4から図6を参照して、本実施形態のキックパルス制御回路について詳細に説明する。図4はエッジ間隔取り込み部9の詳細な構成を示すブロック図、図5はパルス間隔演算部10の詳細な構成を示すブロック図を示す。図6はキックパルス制御回路に入力されるA相及びB相の信号と出力されるキックパルスの関係を示したタイミングチャートである。
【0045】
エッジ間隔取り込み部9の詳細な構成を示す図4において、15はフリーランカウンタであり、キックパルス生成処理開始と同時にクロックのカウントアップをはじめる。11から14はエッジ検出器であり、順番にA相立上り、A相立下り、B相立上り、B相立下がりをそれぞれ検知すると、スタートパルスを発生する。17〜20はエッジ検出器11〜14にそれぞれ対応して設けられたレジスタであり、対応するエッジ検出器からスタートパルスが発生されると、そのときのフリーランカウンタ15の値を保持する。
【0046】
21はコントローラであり、スタートパルスを発生したエッジ検出器に接続されたレジスタの値をセレクタ22を介して出力する。例えば、A相立上りエッジが検出されると、エッジ検出器11から発生されるスタートパルスによってコントローラ21は、セレクタ22を介してレジスタ17の値を出力する。23は減算器であり、フリーランカウンタ15の出力値からセレクタ22の出力値を減算する。24はレジスタであり、減算器23から出力された値を保持する。つまり、エッジが計測されるごとに、A相立上り1周期間隔値、B相立上り1周期間隔値、A相立下り1周期間隔値、B相立下がり1周期間隔値の順にレジスタ24に値が保持されることになる。
【0047】
16はコンパレータであり、レジスタ17の値とフリーランカウンタ15の値を比較して、両者が一致したとき(フリーランカウンタが計測できる範囲を超えてしまう場合)、エラー処理としてオーバーフロービットを立てる。ここではレジスタ17とフリーランカウンタ15の値を比較しているが、比較するレジスタは17〜20のどのレジスタでもよい。
【0048】
パルス間隔演算部10の詳細な構成を示す図5において、レジスタ25は、前回のキックパルス間隔を求める計算m/nより生じた余りを保持する。加算器26は、エッジ間隔取り込み部9より出力されたエッジ1周期間隔値とレジスタ25に保持された値の加算を行う。そして、レジスタ25、加算器26、及びシフタ27によりエッジ1周期間隔値からキックパルス間隔値が求められる。なお、キックパルス間隔を求める計算であるm/nの除算において、除数は2のべき乗としているのでシフタ27を用いている。
【0049】
レジスタ28は、前々回のキックパルス間隔を求める計算m/nより生じた余りを保持する。加算器29、レジス28、及びシフタ30により、エッジ1周期間隔値と前々回のキックパルス間隔を求める計算で出た余りを使って、エッジ1周期間隔値が更新されたときに生成途中のキックパルス間隔の変更値が求められる。
【0050】
レジスタ32は、生成するキックパルス間隔値を保持している。カウンタ33は、コンパレータ34により1にセットされ、クロックが入力される度にカウントアップする。コンパレータ34は、レジスタ32の値とカウンタ33の値を比較して、カウンタ値が1のときキックパルスのONに相当する信号を1クロック期間出力する。その後、レジスタ32の値とカウンタ値が一致するまでキックパルスのOFFに相当する信号を出力し、カウンタ33の値を1にセットする。
【0051】
コンパレータ35は、レジスタ32に保持された生成中のキックパルス間隔値とシフタ30からのエッジ1周期間隔値が更新されたときのキックパルスの変更値を比較し、カウンタ33の値が変更値を超えないようなら、エッジ1周期間隔値更新時にレジスタ32の値をシフタ30の値に変更する。ただし、シフタ30の値よりもカウンタ33の値が大きい場合には、この処理は次のキックパルスを生成した後に行うものとする。
【0052】
すなわち、変更値が現在の間隔よりも小さく、かつカウンタ33の値(現時点でのカウント値)が変更値よりも大きい場合にのみ、次のキックパルスを生成した後にキックパルス間隔を変更する。
【0053】
キックパルスは、エッジ間隔取り込み部9から出力されるオーバーフロー信号とアンドをとり、オーバーフローの場合には出力されない。
【0054】
このように本実施形態では、エンコーダから出力されたA相及びB相の立ち上がり及び立ち下がりのエッジ間隔値を取り込み、余りの伝播処理、エッジ間隔値の更新による生成途中のパルス間隔の更新等の処理を行いキックパルスを出力する。
【0055】
これらの処理を図6のタイミングチャートを参照して説明する。図6において、S3及びS4はエンコーダから出力されるA相及びB相の信号であり、P2は出力されるキックパルスである。
【0056】
時刻t7からt11で計測されたB相の立下り周期間隔が79で、t11の直前のキックパルス間隔計算によって余りが2の場合、t11の先頭パルスは、
(79+2)/8=10…余り1
となり、t11での最初のパルス間隔は10となる。余りの伝播によって、つぎのパルス間隔は、
(79+1)/8=10…余り0
となり、パルス間隔は10に設定される。
【0057】
この間隔でパルスを生成中に、t8からt12で計測されたA相の立ち上がり周期間隔が測定され、この値が76であるので、この値をもとにパルス間隔を再度計算すると、
(76+1)/8=9…余り5
となる。このとき、生成途中のパルス間隔は、t12でのエッジ間隔更新時に10から9に更新される。
【0058】
従って、以上説明した実施形態によれば、余りの伝播処理をしているため、キャリッジが加減速を行っている領域でも速度変化に対する応答性のよいキックパルスを生成できる。
【0059】
なお、上記の実施形態では、伝播された余りはキャリッジの走査開始時にリセットする。往復走査で記録を行う際には、復路の開始位置での余りとして往路の最終パルス生成時の余りの補数を用いる。また、上記のパルス間隔が、全てのノズル吐出を補償するための閾値である最少パルス間隔以下となる場合には、パルス間隔は最少パルス間隔に設定される。
【0060】
<他の実施形態>
以上説明した実施形態はインクジェット方式の記録装置に本発明を適用したものであるが、本発明は記録ヘッドを搭載したキャリッジを走査させて記録を行う記録装置であれば、他の方式を採用する記録装置にも適用できる。
【0061】
更に、上記実施形態におけるエッジ間隔の分割数(8)以外の数で除算してキックパルスの間隔を求めてもよい。また、エンコーダ信号のA相及びB相両方でなく、A相又はB相いずれかの立ち上がり及び立ち下がりエッジの間隔に基づいて、キックパルスを生成するようにしてもよい。
【0062】
なお、本発明はこのように記録装置の制御方法と記録装置として実現することができるが、該記録位置の制御方法と記録装置をコンピュータによって実施させるコンピュータプログラム、該コンピュータプログラムを格納する記憶媒体の形で実現することもでき、具体的には、複数の機器(例えばホストコンピュータ、インターフェース機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置など)に適用してもよい。
【0063】
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても、達成されることは言うまでもない。
【0064】
この場合、記憶媒体から読出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。
【0065】
プログラムコードを供給するための記憶媒体としては、例えば、フロッピディスク,ハードディスク,光ディスク,光磁気ディスク,CD−ROM,CD−R,磁気テープ,不揮発性のメモリカード,ROMなどを用いることができる。
【0066】
また、コンピュータが読出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0067】
さらに、記憶媒体から読出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0068】
【発明の効果】
以上説明したように本発明によれば、エンコーダから出力されるパルス信号の立ち上がり及び立ち下がりそれぞれのエッジが検出される度に、前の算出での剰余を検出されたエッジの周期に加算してそれを所定数で除算してタイミング信号の周期が算出されて、更新される。
【0069】
従って、キャリッジの移動速度が一定でない加減速領域や、速度変動がある場合にも、タイミング信号の周期が良好な応答性で適切な値に更新される。
【図面の簡単な説明】
【図1】従来の方法により生成したキックパルスのタイミングチャートである。
【図2】従来のキックパルス制御回路の構成を示すブロック図である。
【図3】本発明に係るキックパルス制御回路の概略構成を示すブロック図である。
【図4】図3のエッジ間隔取り込み部の構成を示すブロック図である。
【図5】図3のパルス間隔演算部の構成を示すブロック図である。
【図6】本発明により生成したキックパルスのタイミングチャートである。
【図7】本発明に係るインクジェットプリンタの外観を示す図である。
【図8】図7のプリンタの制御構成を示すブロック図である。
【符号の説明】
S1、S3 エンコード信号(A相)
S2、S4 エンコード信号(B相)
P1、P2 キックパルス
1 エッジ検出器
2、6 カウンタ
3 シフタ
4 レジスタ
5 セレクタ
7 1検出器
8 パルスコントローラ
9 エッジ間隔取り込み部
10 パルス間隔演算部
11、12,13,14 エッジ検出器
15 フリーランカウンタ
16、34、35 コンパレータ
17〜20、24、25、28、32 レジスタ
21 コントローラ
22、31、36 セレクタ
23 減算器
26、29 加算器
27、30 シフタ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to control of a recording position, and more particularly to generation of a timing signal that defines a driving timing of a recording element when recording is performed by scanning a carriage mounted with a recording head having a recording element on a recording medium. is there.
[0002]
[Prior art]
For example, as an information output device in a word processor, personal computer, facsimile, etc., in a recording device that records information such as desired characters and images on a sheet-like recording medium such as paper or film, the recording medium such as paper is fed. A serial recording system that performs recording by scanning a carriage mounted with a recording head having a recording element in a direction crossing the direction is generally widely used from the viewpoints of low cost and easy miniaturization.
[0003]
Various methods are known as recording methods of the recording apparatus. However, the inkjet method is used because of non-contact recording on a recording medium such as paper, easy colorization, and high quietness. In recent years, it has attracted particular attention.
[0004]
In such a recording apparatus, it is essential to match the scanning position of the recording head with the driving timing of the recording head. As a means for detecting the scanning position of the recording head, an encoder for detecting the moving position of the carriage on which the recording head is mounted is used.
[0005]
When an encoder is used, the resolution of carriage position detection by the encoder greatly affects the image recording resolution. Improving the image recording resolution (resolution) is an important issue, and in order to increase the image recording resolution in a recording apparatus using such an encoder, it is common to increase the resolution of the encoder. It is. However, at present, there is a demand for price reduction for an ink jet recording apparatus, and the use of a high-resolution, high-price encoder is a negative factor in terms of cost in commercializing the recording apparatus.
[0006]
In such a situation, in order to suppress an increase in the cost of the entire apparatus while achieving high resolution of the recorded image, a timing signal (kick pulse) with higher resolution is used based on the pulse-like encode signal output from the encoder. ) To drive the recording head based on this signal.
[0007]
As a method for generating a high-resolution signal, there is a method in which one period from the rising edge of the encoded signal output from the encoder to the next rising edge (or from the falling edge to the next falling edge) is divided into n equal parts. It is used. For example, if the measured value of the immediately preceding edge period is m and the number (number of divisions) of kick pulses generated within a preset edge period is n, the kick pulse interval is a quotient value of m / n, and n After the kick pulse is generated, it waits until the next edge period.
[0008]
FIG. 2 is a block diagram showing a configuration of a conventional kick pulse control circuit. Reference numeral 1 denotes an edge detector, which generates a start pulse when the edge interval of the encode signal is detected. Reference numeral 2 denotes a counter for measuring an edge interval (period). Reference numeral 3 denotes a shifter, which executes an operation corresponding to division when n is a power of 2. Reference numeral 4 denotes a register that holds edge intervals. A selector 5 selects a shifter value or a register value. Reference numeral 6 denotes a load counter for loading data by a load signal. Reference numeral 7 denotes a 1 detector, which outputs “H” when the value of the load counter is 1. A pulse controller 8 controls the number of kick pulses.
[0009]
In this circuit, when an edge of the encode signal is detected, a start pulse is generated by the edge detector 1. A value obtained by subtracting the margin value from one cycle of the edge measured by the counter 2 by the start pulse and dividing the number by the number of kick pulses generated between the slits is held in the register 4. The selector 5 outputs the output of the shifter 3 or the value of the register 4 according to a control signal generated from the pulse controller 8.
[0010]
The counter 6 loads data from the selector with a load signal output from the pulse controller 8 and decrements each time a clock is input until the loaded data becomes 1. This time becomes the kick pulse interval. When the value of the counter 6 is 1, the 1 detector 7 outputs an ON portion for one clock of the kick pulse. The pulse controller 8 outputs a load signal to the counter 6 when a pulse is generated. The number of pulses output at that time is counted, and a load signal is output to the counter 6 until the count value reaches the number of kick pulses generated between the slits.
[0011]
FIG. 1 is a timing chart showing the relationship between the two-phase encode signals S1 and S2 output from the encoder and the kick pulse P1 generated by the kick pulse control circuit as shown in FIG. In this example, a kick pulse corresponding to a recording resolution of 1200 dpi corresponding to 8 times is generated from an encoded signal of an encoder having a resolution of 150 dpi. The numbers in the figure indicate the clock count numbers.
[0012]
For example, when the interval of one period measured at the rising edge of the encoder signal S1 changes from 79 of the interval A from the time t0 to t1 to 84 of the interval B from the time t1 to t2, the kick pulse interval in the interval B (Cycle) is based on the previous interval A,
79/8 = 9 ... 7 more
Therefore, the kick pulse interval is 9. In this case, until the next kick pulse is output after the eighth kick pulse is output,
84-9 × 8 = 12 (clock)
The interval of will be free.
[0013]
As described above, when the recording operation is performed while the carriage is decelerating, a portion having a gap is generated.
[0014]
On the other hand, when the interval of one cycle measured at the rising edge of the encoder signal S1 changes from 84 in the interval B from time t1 to t2 to 76 in the interval C from time t2 to t3, the kick pulse interval in the interval C Is based on the previous interval B,
84/8 = 10 ... remainder 4
Thus, the kick pulse interval is 10. In this case, the eight kick pulses do not fit in the interval C. In the next interval D, the generation of the kick pulse is performed after the eighth kick pulse generated in the interval C is output, or before the kick pulse generated for the interval C is output, A kick pulse for the next interval D is output.
[0015]
As described above, when the recording operation is performed while the carriage is accelerating, there is a possibility that the recording cannot be performed at the target position.
[0016]
[Problems to be solved by the invention]
As shown in FIG. 1, the encoder outputs two signals, phase A (S1) and phase B (S2), but the phase B signal is essentially 90 ° out of phase with the phase A signal. Is. Therefore, if the edge interval between the A and B phases and the rise-fall interval are accurate, an accurate quadruple signal can be generated based on these two signals.
[0017]
However, in reality, errors occur in the duty ratio in the same phase and the spacing accuracy between the A and B phases due to the accuracy of encoder installation, the characteristics of the photodiode, the accuracy of the slits provided in the film, and so on. In addition, it is difficult to perform high resolution recording using a quadruple signal.
[0018]
For this reason, conventionally, as shown in FIG. 1, the kick pulse interval is calculated using the reliable edge interval of either the A phase or the B phase. During the measurement of one edge period from the encoded signal, it is considered that the carriage speed fluctuates in a short time shorter than the one edge period due to mechanical factors. However, in the conventional method, since one edge period is measured based on only one encoded signal, the time required for the period measurement becomes long, and the response to a change in the carriage speed is delayed.
[0019]
As described above, in the conventional method, the response of the kick pulse to the carriage speed fluctuation becomes slow, so that it is difficult to perform high-quality recording particularly during the acceleration / deceleration operation of the carriage.
[0020]
The present invention has been made in view of the above situation, and an object of the present invention is to update the period of the timing signal with high responsiveness to the speed variation of the carriage.
[0021]
[Means for Solving the Problems]
A control method of a recording apparatus according to an embodiment of the present invention that achieves the above object is based on a timing signal that defines a driving timing of the recording element by scanning a carriage mounted with a recording head having a recording element on the recording medium. And a recording apparatus control method for recording,
A measuring step of rising and falling edges the edge of each interval falling the rising edge and the falling of the pulse signal output from the encoder is measured every sensed according to the position in the scanning direction of the carriage,
Each time the edge interval for one cycle is measured in the measuring step, the period of the timing signal is obtained by dividing the result of the addition processing of the measured edge interval and the remainder generated by the division processing by a predetermined number. And a calculation step of outputting the timing signal based on the calculation result;
Including
The calculation step includes
When the edge interval for one period is measured, the measured edge interval is added to the remainder generated by the division processing at the previous cycle calculation of the timing signal, and the addition result is divided by the predetermined number. And a second operation for adding the measured edge interval and the remainder generated by the division processing at the time of the previous cycle calculation of the timing signal, and dividing the addition result by the predetermined number; An arithmetic processing step for performing
A selection step of selecting one of the first quotient obtained by the division process at the time of the first calculation and the second quotient obtained by the division process at the time of the second calculation and holding the selected quotient in the holding unit; ,
After the first and second calculations are performed in the calculation processing step, the second quotient obtained in the calculation processing step at the edge interval of the next cycle is held in the holding means. An update step of updating the value held in the holding means with the second quotient obtained at the edge interval of the next period,
An output step of outputting the timing signal at intervals based on the value held in the holding means;
It is characterized by including.
[0022]
That is, according to the present invention, when generating a timing signal that defines a timing signal that defines a drive timing of a recording element when performing recording by scanning a carriage mounted with a recording head having a recording element on the recording medium. Measuring the interval between the rising and falling edges of the pulse signal output from the encoder according to the position of the carriage in the scanning direction, and dividing the interval between the edges by a predetermined number to calculate the period of the timing signal; At this time, the remainder generated in the previous calculation is added to the period of the edge, and then division is performed, and the period of the timing signal is updated based on the calculation result.
[0023]
In this way, each time the rising and falling edges of the pulse signal output from the encoder are detected, the remainder from the previous calculation is added to the period of the detected edge and divided by a predetermined number. Then, the period of the timing signal is calculated and updated.
[0024]
Therefore, even when the acceleration / deceleration region where the carriage moving speed is not constant or when there is a speed fluctuation, the timing signal cycle is updated to an appropriate value with good response.
[0025]
DETAILED DESCRIPTION OF THE INVENTION
Preferred embodiments of the present invention will be described below in detail with reference to the accompanying drawings.
[0026]
In the embodiments described below, a printer using an ink jet recording method will be described as an example of a recording apparatus to which the present invention is applied.
[0027]
In this specification, “recording” (sometimes referred to as “printing”) is not only for forming significant information such as characters and graphics, but also for human beings, regardless of whether it is significant or not. Regardless of whether or not it has been manifested, it also represents a case where an image, a pattern, a pattern or the like is widely formed on a recording medium or the medium is processed.
[0028]
“Recording medium” refers not only to paper used in general recording apparatuses but also widely to cloth, plastic film, metal plate, glass, ceramics, wood, leather, and the like that can accept ink. Shall.
[0029]
Furthermore, “ink” (sometimes referred to as “liquid”) is to be interpreted broadly in the same way as the definition of “recording (printing)” above. It represents a liquid that can be used for forming a pattern or the like, processing a recording medium, or processing an ink (for example, solidification or insolubilization of a colorant in ink applied to the recording medium).
[0030]
In the following description, the expression “interval” of a signal or edge means the same time interval (period) as the period of the signal or edge.
[0031]
<Outline of the main unit>
FIG. 7 is an external perspective view showing an outline of the configuration of an inkjet printer IJRA suitable for applying the present invention. In FIG. 7, the carriage HC engaged with the spiral groove 5004 of the lead screw 5005 that rotates via the driving force transmission gears 5009 to 5011 in conjunction with the forward and reverse rotation of the drive motor 5013 has a pin (not shown). It is supported by the guide rail 5003 and reciprocates in the directions of arrows a and b. On the carriage HC, an integrated ink jet cartridge IJC incorporating a recording head IJH and an ink tank IT is mounted.
[0032]
Reference numeral 5002 denotes a paper pressing plate that presses the recording paper P against the platen 5000 in the moving direction of the carriage HC. Reference numerals 5007 and 5008 denote photo-couplers which are home position detectors for confirming the presence of the carriage lever 5006 in this region and switching the rotation direction of the motor 5013.
[0033]
Reference numeral 5016 denotes a member that supports a cap member 5022 that caps the front surface of the recording head IJH. Reference numeral 5015 denotes a suction unit that sucks the inside of the cap, and performs suction recovery of the recording head through the cap opening 5023. Reference numeral 5017 denotes a cleaning blade, and reference numeral 5019 denotes a member that enables the blade to move in the front-rear direction, and these are supported by a main body support plate 5018. Needless to say, the blade is not in this form, and a known cleaning blade can be applied to this example.
[0034]
Reference numeral 5021 denotes a lever for starting suction for suction recovery, which moves in accordance with the movement of the cam 5020 engaged with the carriage, and the driving force from the driving motor is controlled by a known transmission mechanism such as clutch switching. Is done.
[0035]
These capping, cleaning, and suction recovery are configured so that desired processing can be performed at their corresponding positions by the action of the lead screw 5005 when the carriage comes to the home position side region. As long as the above operation is performed, any of these can be applied to this example.
[0036]
<Description of control configuration>
Next, a control configuration for executing the recording control of the above-described apparatus will be described.
[0037]
FIG. 8 is a block diagram showing the configuration of the control circuit of the inkjet printer IJRA. In the figure, showing a control circuit, 1700 is an interface for inputting a recording signal, 1701 is an MPU, 1702 is a ROM for storing a control program executed by the MPU 1701, and 1703 is various data (the recording signal and recording data supplied to the head). Etc.). Reference numeral 1704 denotes a gate array (GA) that controls supply of recording data to the recording head IJH, and also performs data transfer control among the interface 1700, MPU 1701, and RAM 1703. Reference numeral 1710 denotes a carrier motor for conveying the recording head IJH, and 1709 denotes a conveyance motor for conveying the recording paper. Reference numeral 1705 denotes a head driver for driving the recording head, and reference numerals 1706 and 1707 denote motor drivers for driving the transport motor 1709 and the carrier motor 1710, respectively.
[0038]
The operation of the control configuration will be described. When a recording signal enters the interface 1700, the recording signal is converted into recording data for printing between the gate array 1704 and the MPU 1701. The motor drivers 1706 and 1707 are driven, and the recording head is driven according to the recording data sent to the head driver 1705 to perform recording.
[0039]
Here, the control program executed by the MPU 1701 is stored in the ROM 1702. However, an additional erasable / writeable storage medium such as an EEPROM is added, and the control program is changed from the host computer connected to the inkjet printer IJRA. It can also be configured to be able to.
[0040]
As described above, the ink tank IT and the recording head IJH may be integrally formed to constitute a replaceable ink cartridge IJC. However, the ink tank IT and the recording head IJH can be separated from each other. Then, only the ink tank IT may be exchanged when the ink runs out.
[0041]
<Kick pulse control circuit>
A kick pulse control circuit used in the ink jet printer having the above configuration will be described.
[0042]
FIG. 3 is a block diagram of a kick pulse control circuit for generating a heat pulse, which is a drive signal for the recording head in the ink jet printer. The kick pulse control circuit according to this embodiment includes an edge interval capturing unit 9 and a pulse interval calculating unit 10.
[0043]
Two signals of A phase and B phase are input from the encoder to the kick pulse control circuit, and the edge interval capturing unit 9 changes the rising edge interval of the A phase, the rising edge interval of the B phase each time the input edge changes, Values are output in the order of A-phase falling edge interval and B-phase falling edge interval. In this embodiment, a free-run counter is used as a counter for measuring the edge interval. The pulse interval calculation unit 10 takes in these edge interval values, and performs a process such as a surplus propagation process and a pulse interval update in the middle of generation by updating the edge interval value, and outputs a kick pulse.
[0044]
Hereinafter, the kick pulse control circuit of this embodiment will be described in detail with reference to FIGS. FIG. 4 is a block diagram showing a detailed configuration of the edge interval capturing unit 9, and FIG. 5 is a block diagram showing a detailed configuration of the pulse interval calculation unit 10. FIG. 6 is a timing chart showing the relationship between the A-phase and B-phase signals input to the kick pulse control circuit and the output kick pulses.
[0045]
In FIG. 4 showing the detailed configuration of the edge interval capturing unit 9, reference numeral 15 denotes a free-run counter, which starts counting up the clock simultaneously with the start of the kick pulse generation process. Reference numerals 11 to 14 denote edge detectors, which generate a start pulse when an A-phase rising edge, an A-phase falling edge, a B-phase rising edge, and a B-phase falling edge are detected in order. Reference numerals 17 to 20 denote registers provided corresponding to the edge detectors 11 to 14, respectively. When a start pulse is generated from the corresponding edge detector, the value of the free-run counter 15 at that time is held.
[0046]
Reference numeral 21 denotes a controller that outputs the value of a register connected to the edge detector that has generated the start pulse via the selector 22. For example, when an A-phase rising edge is detected, the controller 21 outputs the value of the register 17 via the selector 22 by a start pulse generated from the edge detector 11. Reference numeral 23 denotes a subtracter that subtracts the output value of the selector 22 from the output value of the free-run counter 15. A register 24 holds the value output from the subtractor 23. That is, every time an edge is measured, the value is stored in the register 24 in the order of A phase rising 1 cycle interval value, B phase rising 1 cycle interval value, A phase falling 1 cycle interval value, and B phase falling 1 cycle interval value. Will be retained.
[0047]
A comparator 16 compares the value of the register 17 and the value of the free-run counter 15, and when they match (when the range that can be measured by the free-run counter is exceeded), an overflow bit is set as error processing. Here, the values of the register 17 and the free-run counter 15 are compared, but the register to be compared may be any register 17-20.
[0048]
In FIG. 5 showing the detailed configuration of the pulse interval calculation unit 10, the register 25 holds the remainder generated from the calculation m / n for obtaining the previous kick pulse interval. The adder 26 adds the edge 1 period interval value output from the edge interval capturing unit 9 and the value held in the register 25. Then, the kick pulse interval value is obtained from the edge 1 period interval value by the register 25, the adder 26, and the shifter 27. In the division of m / n, which is a calculation for obtaining the kick pulse interval, the divisor is a power of 2, so the shifter 27 is used.
[0049]
The register 28 holds the remainder generated from the calculation m / n for obtaining the kick pulse interval two times before. The kick pulse being generated when the edge 1 period interval value is updated using the remainder obtained by the calculation for obtaining the edge 1 period interval value and the previous kick pulse interval by the adder 29, the register 28, and the shifter 30. An interval change value is determined.
[0050]
The register 32 holds a kick pulse interval value to be generated. The counter 33 is set to 1 by the comparator 34 and counts up every time a clock is input. The comparator 34 compares the value of the register 32 with the value of the counter 33, and outputs a signal corresponding to ON of the kick pulse when the counter value is 1, for one clock period. Thereafter, a signal corresponding to the OFF of the kick pulse is output until the value of the register 32 matches the counter value, and the value of the counter 33 is set to 1.
[0051]
The comparator 35 compares the generated kick pulse interval value held in the register 32 with the changed value of the kick pulse when the edge 1 period interval value from the shifter 30 is updated, and the value of the counter 33 indicates the changed value. If not exceeding, the value of the register 32 is changed to the value of the shifter 30 when the edge 1 period interval value is updated. However, when the value of the counter 33 is larger than the value of the shifter 30, this processing is performed after the next kick pulse is generated.
[0052]
That is, the kick pulse interval is changed after the next kick pulse is generated only when the change value is smaller than the current interval and the value of the counter 33 (current count value) is larger than the change value.
[0053]
The kick pulse is ANDed with the overflow signal output from the edge interval capturing unit 9, and is not output in the case of overflow.
[0054]
As described above, in this embodiment, the rising and falling edge interval values of the A phase and the B phase output from the encoder are fetched, and the remaining propagation processing, updating the pulse interval in the middle of generation by updating the edge interval value, etc. Process and output kick pulse.
[0055]
These processes will be described with reference to the timing chart of FIG. In FIG. 6, S3 and S4 are A-phase and B-phase signals output from the encoder, and P2 is an output kick pulse.
[0056]
When the B phase falling period interval measured from time t7 to t11 is 79 and the remainder is 2 according to the kick pulse interval calculation immediately before t11, the leading pulse at t11 is
(79 + 2) / 8 = 10 ... remainder 1
Thus, the first pulse interval at t11 is 10. Due to the excess propagation, the next pulse interval becomes
(79 + 1) / 8 = 10 ... remainder 0
Thus, the pulse interval is set to 10.
[0057]
While generating the pulse at this interval, the rising period interval of the A phase measured from t8 to t12 is measured, and since this value is 76, when the pulse interval is calculated again based on this value,
(76 + 1) / 8 = 9 ... remainder 5
It becomes. At this time, the pulse interval during generation is updated from 10 to 9 when the edge interval is updated at t12.
[0058]
Therefore, according to the embodiment described above, since a surplus propagation process is performed, it is possible to generate a kick pulse having a good response to a speed change even in a region where the carriage is accelerating / decelerating.
[0059]
In the above embodiment, the propagated remainder is reset at the start of carriage scanning. When recording by reciprocating scanning, the complement of the remainder at the time of generating the final pulse of the forward path is used as the remainder at the start position of the backward path. Further, when the pulse interval is equal to or less than the minimum pulse interval that is a threshold value for compensating all nozzle ejections, the pulse interval is set to the minimum pulse interval.
[0060]
<Other embodiments>
The embodiment described above applies the present invention to an ink jet recording apparatus, but the present invention adopts other systems as long as the recording apparatus performs recording by scanning a carriage having a recording head mounted thereon. It can also be applied to a recording apparatus.
[0061]
Further, the kick pulse interval may be obtained by dividing by a number other than the number of divisions (8) of the edge interval in the above embodiment. Alternatively, the kick pulse may be generated based on the rising and falling edge intervals of either the A phase or the B phase instead of both the A phase and the B phase of the encoder signal.
[0062]
The present invention can be realized as a recording apparatus control method and a recording apparatus as described above, and a computer program for causing the computer to execute the recording position control method and the recording apparatus , and a storage medium for storing the computer program. Specifically, even when applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), an apparatus (for example, a copy) composed of a single device The present invention may be applied to a machine, a facsimile machine, etc.
[0063]
Another object of the present invention is to supply a storage medium storing software program codes for implementing the functions of the above-described embodiments to a system or apparatus, and the computer (or CPU or MPU) of the system or apparatus stores the storage medium. Needless to say, this can also be achieved by reading and executing the program code stored in the.
[0064]
In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention.
[0065]
As a storage medium for supplying the program code, for example, a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.
[0066]
Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) operating on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.
[0067]
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.
[0068]
【The invention's effect】
As described above, according to the present invention, each time the rising and falling edges of the pulse signal output from the encoder are detected, the remainder in the previous calculation is added to the period of the detected edge. The period of the timing signal is calculated and updated by dividing it by a predetermined number.
[0069]
Therefore, even when the acceleration / deceleration region where the carriage moving speed is not constant or when there is a speed fluctuation, the timing signal cycle is updated to an appropriate value with good response.
[Brief description of the drawings]
FIG. 1 is a timing chart of kick pulses generated by a conventional method.
FIG. 2 is a block diagram showing a configuration of a conventional kick pulse control circuit.
FIG. 3 is a block diagram showing a schematic configuration of a kick pulse control circuit according to the present invention.
4 is a block diagram showing a configuration of an edge interval capturing unit in FIG. 3;
5 is a block diagram showing a configuration of a pulse interval calculation unit in FIG. 3. FIG.
FIG. 6 is a timing chart of kick pulses generated according to the present invention.
FIG. 7 is a view showing an appearance of an ink jet printer according to the present invention.
FIG. 8 is a block diagram showing a control configuration of the printer of FIG. 7;
[Explanation of symbols]
S1, S3 Encode signal (A phase)
S2, S4 Encode signal (B phase)
P1, P2 Kick pulse 1 Edge detector 2, 6 Counter 3 Shifter 4 Register 5 Selector 7 1 detector 8 Pulse controller 9 Edge interval capturing unit 10 Pulse interval calculating unit 11, 12, 13, 14 Edge detector 15 Free-run counter 16, 34, 35 Comparator 17-20, 24, 25, 28, 32 Register 21 Controller 22, 31, 36 Selector 23 Subtractor 26, 29 Adder 27, 30 Shifter

Claims (5)

記録素子を有する記録ヘッドを搭載したキャリッジを記録媒体上で走査させ、前記記録素子の駆動タイミングを規定するタイミング信号に基づいて記録を行う記録装置の制御方法であって、
前記キャリッジの走査方向における位置に応じてエンコーダから出力されるパルス信号の立ち上がりエッジ及び立ち下がりエッジそれぞれの間隔を前記立ち上がりエッジ及び前記立ち下がりエッジが検知される毎に計測する計測工程と、
前記計測工程において1周期分のエッジ間隔が計測される毎に、該計測されたエッジ間隔と除算処理で生じた剰余との加算処理の結果を所定数で除算処理することにより前記タイミング信号の周期を演算し、該演算結果に基づいて前記タイミング信号を出力する演算工程と
を含み、
前記演算工程は、
前記1周期分のエッジ間隔が計測されると、該計測されたエッジ間隔と前回の前記タイミング信号の周期演算時の除算処理で生じた剰余とを加算し、その加算結果を前記所定数で除算する第1の演算と、該計測されたエッジ間隔と前々回の前記タイミング信号の周期演算時の除算処理で生じた剰余とを加算し、その加算結果を前記所定数で除算する第2の演算とを行なう演算処理工程と、
前記第1の演算時の除算処理により得られる第1の商と、前記第2の演算時の除算処理により得られる第2の商とのいずれかを選択して保持手段に保持させる選択工程と、
前記演算処理工程において前記第1及び前記第2の演算が行なわれた後、その次の周期のエッジ間隔で前記演算処理工程において求められた前記第2の商が、前記保持手段に保持されている値よりも小さければ、前記保持手段に保持された値を前記次の周期のエッジ間隔で求められた前記第2の商で更新する更新工程と、
前記保持手段に保持された値に基づいた間隔で前記タイミング信号を出力する出力工程と
を含むことを特徴とする記録装置の制御方法。
A method for controlling a recording apparatus that scans a carriage mounted with a recording head having a recording element on a recording medium and performs recording based on a timing signal that defines drive timing of the recording element,
A measuring step of rising and falling edges the edge of each interval falling the rising edge and the falling of the pulse signal output from the encoder is measured every sensed according to the position in the scanning direction of the carriage,
Each time the edge interval for one cycle is measured in the measuring step, the period of the timing signal is obtained by dividing the result of the addition processing of the measured edge interval and the remainder generated by the division processing by a predetermined number. And a calculation step of outputting the timing signal based on the calculation result;
Including
The calculation step includes
When the edge interval for one period is measured, the measured edge interval is added to the remainder generated by the division processing at the previous cycle calculation of the timing signal, and the addition result is divided by the predetermined number. And a second operation for adding the measured edge interval and the remainder generated by the division processing at the time of the previous cycle calculation of the timing signal, and dividing the addition result by the predetermined number; An arithmetic processing step for performing
A selection step of selecting one of the first quotient obtained by the division process at the time of the first calculation and the second quotient obtained by the division process at the time of the second calculation and holding the selected quotient in the holding unit; ,
After the first and second calculations are performed in the calculation processing step, the second quotient obtained in the calculation processing step at the edge interval of the next cycle is held in the holding means. An update step of updating the value held in the holding means with the second quotient obtained at the edge interval of the next period,
An output step of outputting the timing signal at intervals based on the value held in the holding means;
A control method for a recording apparatus.
記録素子を有する記録ヘッドを搭載したキャリッジを記録媒体上で走査させ、前記記録素子の駆動タイミングを規定するタイミング信号に基づいて記録を行う記録装置であって、
前記キャリッジの走査方向における位置に応じてエンコーダから出力されるパルス信号の立ち上がりエッジ及び立ち下がりエッジそれぞれの間隔を前記立ち上がりエッジ及び前記立ち下がりエッジが検知される毎に計測する計測手段と、
前記計測手段により1周期分のエッジ間隔が計測される毎に、該計測されたエッジ間隔と除算処理で生じた剰余との加算処理の結果を所定数で除算処理することにより前記タイミング信号の周期を演算し、該タイミング信号を出力する演算手段と
を備え、
前記演算手段は、
前記1周期分のエッジ間隔が計測されると、該計測されたエッジ間隔と前回の前記タイミング信号の周期演算時の除算処理で生じた剰余とを加算し、その加算結果を前記所定数で除算する第1の演算と、該計測されたエッジ間隔と前々回の前記タイミング信号の周期演算時の除算処理で生じた剰余とを加算し、その加算結果を前記所定数で除算する第2の演算とを行なう演算処理手段と、
前記第1の演算時の除算処理により得られる第1の商と、前記第2の演算時の除算処理により得られる第2の商とのいずれかを選択して保持する保持手段と、
前記演算処理手段により前記第1及び前記第2の演算が行なわれた後、その次の周期のエッジ間隔で前記演算処理手段により求められた前記第2の商が、前記保持手段に保持されている値よりも小さければ、前記保持手段に保持された値を前記次の周期のエッジ間隔で求められた前記第2の商で更新する更新手段と、
前記保持手段に保持された値に基づいた間隔で前記タイミング信号を出力する出力手段と
を備えることを特徴とする記録装置。
A recording apparatus that scans a carriage mounted with a recording head having a recording element on a recording medium, and performs recording based on a timing signal that defines a driving timing of the recording element,
Measuring means the rising and falling edges during each interval rising edge and the falling edge of the pulse signal output from the encoder is measured every sensed according to the position in the scanning direction of the carriage,
Each time the edge interval for one cycle is measured by the measuring means, the period of the timing signal is obtained by dividing the result of the addition processing of the measured edge interval and the remainder generated by the division processing by a predetermined number. Calculating means for outputting the timing signal;
With
The computing means is
When the edge interval for one period is measured, the measured edge interval is added to the remainder generated by the division processing at the previous cycle calculation of the timing signal, and the addition result is divided by the predetermined number. And a second operation for adding the measured edge interval and the remainder generated by the division processing at the time of the previous cycle calculation of the timing signal, and dividing the addition result by the predetermined number; Arithmetic processing means for performing
Holding means for selecting and holding either the first quotient obtained by the division process at the time of the first calculation or the second quotient obtained by the division process at the time of the second calculation;
After the first and second calculations are performed by the calculation processing unit, the second quotient obtained by the calculation processing unit at the edge interval of the next cycle is held in the holding unit. An update means for updating the value held in the holding means with the second quotient obtained at the edge interval of the next period,
Output means for outputting the timing signal at intervals based on values held in the holding means;
A recording apparatus comprising:
前記演算手段は、The computing means is
前記前回の前記タイミング信号の周期演算時の除算処理で生じた剰余と、前記前々回の前記タイミング信号の周期演算時の除算処理で生じた剰余とを保持する剰余保持手段  Remainder holding means for holding a remainder generated by the division process at the time of the previous cycle calculation of the timing signal and a residue generated by the division process at the time of the previous cycle of the timing signal by the cycle calculation.
を更に備えることを特徴とする請求項2に記載の記録装置。  The recording apparatus according to claim 2, further comprising:
前記演算手段は、The computing means is
前記保持手段に保持された値と、前記次の周期のエッジ間隔で求められた前記第2の商とを比較する比較手段  Comparing means for comparing the value held in the holding means with the second quotient obtained at the edge interval of the next period
を更に備えることを特徴とする請求項2または請求項3に記載の記録装置。  The recording apparatus according to claim 2, further comprising:
前記計測手段は、
記パルス信号の立ち上がりエッジの1周期分の間隔、前記パルス信号の立ち下がりエッジの1周期分の間隔を保持するエッジ間隔保持手段
を備えることを特徴とする請求項2から請求項4のいずれか1項に記載の記録装置。
The measuring means includes
Billing before Kipa pulse signal of one period between the interval of the rising edge, claim 2, characterized in that it comprises a falling edge interval holding means for holding the interval of one period of an edge of the pulse signal Item 5. The recording device according to any one of items 4 to 6.
JP2002308412A 2002-10-23 2002-10-23 Recording apparatus control method and recording apparatus Expired - Fee Related JP4366066B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002308412A JP4366066B2 (en) 2002-10-23 2002-10-23 Recording apparatus control method and recording apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002308412A JP4366066B2 (en) 2002-10-23 2002-10-23 Recording apparatus control method and recording apparatus

Publications (3)

Publication Number Publication Date
JP2004142195A JP2004142195A (en) 2004-05-20
JP2004142195A5 JP2004142195A5 (en) 2005-12-08
JP4366066B2 true JP4366066B2 (en) 2009-11-18

Family

ID=32454557

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002308412A Expired - Fee Related JP4366066B2 (en) 2002-10-23 2002-10-23 Recording apparatus control method and recording apparatus

Country Status (1)

Country Link
JP (1) JP4366066B2 (en)

Also Published As

Publication number Publication date
JP2004142195A (en) 2004-05-20

Similar Documents

Publication Publication Date Title
US7712857B2 (en) Printing apparatus, printing method, program, storage medium, and computer system
EP1602504A2 (en) Motor control device and motor control method
EP1124320B1 (en) Motor control method and motor control apparatus
EP1681173A1 (en) Motor control apparatus and motor control method
JP4690859B2 (en) Conveyance belt drive control device, image forming apparatus, and conveyance belt drive control method
US6354690B1 (en) Printing device with timing pulse generator
JP2001103778A (en) Control device and method of printer motor and recording medium recording control programs
JP3645708B2 (en) Recording device
JP3832174B2 (en) Motor control device and control method
JP4366066B2 (en) Recording apparatus control method and recording apparatus
JP3188976B2 (en) Print control device and method
JP3570617B2 (en) DC motor control device and control method
JP3703400B2 (en) Movement control apparatus, recording apparatus, and movement control method
GB2034087A (en) Dot matrix character printer with variable speed control
JP5241265B2 (en) Recording apparatus and recording control method
JP2005178334A (en) Inkjet recording device
JP2004142199A (en) Method for controlling recording position
JP2004167788A (en) Recorder
JP4160949B2 (en) Recording device
JP2001142537A (en) Controller and control method for printer motor and recording medium recording control program
JP2001146054A (en) Recorder
JP2001186785A (en) Device and method for controlling motor and/or storage medium with recorded control program of motor
JP2002305888A (en) Motor control device and control method
JP2004129400A (en) Printing device having dc motor
JP2001315395A (en) Print controller, print control method, and recording medium having print control program recorded therein

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051024

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051024

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090515

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090714

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

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

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

Free format text: PAYMENT UNTIL: 20120828

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130828

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees