JP2005038105A - Image output device - Google Patents

Image output device Download PDF

Info

Publication number
JP2005038105A
JP2005038105A JP2003198673A JP2003198673A JP2005038105A JP 2005038105 A JP2005038105 A JP 2005038105A JP 2003198673 A JP2003198673 A JP 2003198673A JP 2003198673 A JP2003198673 A JP 2003198673A JP 2005038105 A JP2005038105 A JP 2005038105A
Authority
JP
Japan
Prior art keywords
data
interface
received
reception
host
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.)
Withdrawn
Application number
JP2003198673A
Other languages
Japanese (ja)
Inventor
Taisei Kobayashi
大成 小林
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.)
Oki Electric Industry Co Ltd
Oki Data Systems Co Ltd
Original Assignee
Oki Data Corp
Oki Data Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Data Corp, Oki Data Systems Co Ltd filed Critical Oki Data Corp
Priority to JP2003198673A priority Critical patent/JP2005038105A/en
Publication of JP2005038105A publication Critical patent/JP2005038105A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image output device that shortens a waiting time for receiving later data when data sending processes from a plurality of interfaces conflict. <P>SOLUTION: A reception circuit 2 of a printer device 1 is connected to a host computer A 9 via an interface A and connected to a host computer B 11 via an interface B. When data are received first from the host computer A 9 via the interface A, the received data are stored in a reception buffer 12. A microprocessor 3 reads the data from the reception buffer 12, determines whether the read data are page break data, and if the read data are print data, sends them to a printhead control circuit 14. If the read data are page break data, the data reception from the interface A is invalidated, and data reception from the interface B is validated. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、複数種のインタフェースを装備するプリンタ、あるいは単一のインタフェースで複数種のジョブを受信できるプリンタなどの画像出力装置に関し、とくにインタフェースや対照ジョブの切替を行う画像出力装置に関する。
【0002】
【従来の技術】
従来、複数種のインタフェースを装備するプリンタにおいては、インタフェースの決定はプリンタ側が先に受信した(認識した)方のインタフェースを有効とし、他のインタフェースは無効としていた。先に受信した方のインタフェースをインタフェースAとし、他のインタフェースをインタフェースBとすると、プリンタがインタフェースBを無効とした場合、インタフェースBからデータが送られてきてもそのデータを受信しない。
インタフェースAから送られてくるデータは受信された後印刷される。インタフェースAからのデータ送信終了後、プリンタの受信バッファが空になり、ある一定時間経過後に初めてインタフェースBからのデータ受信が可能になる。インタフェースBからのデータ受信が可能になると、インタフェースAからのデータ受信は無効にされる。即ち、或るインタフェースからのデータ送信が終了し、かつそのデータの印刷処理が終了するまで、他のインタフェースからデータを受信することができない。
【0003】
【特許文献1】
特開平5−056106号公報
【0004】
【発明が解決しようとする課題】
上述のように、従来の装置においては、或るインタフェースからのデータ送信が終了し、かつそのデータの出力処理が終了するまで、他のインタフェースからデータを受信することができないので、先に受信したデータの量が多い場合、後のデータを受信するまでに時間が掛かり、ユーザーにとって待ち時間が長くなるという問題があった。最悪の場合には、後のインタフェースでデータを送信してくるはずのホストコンピュータがタイムアウトエラーになり、データの送信がキャンセルされてしまうこともある。その場合、ユーザーは再度データを送信し直さなければならない。
【0005】
またインタフェースを切り替えた場合、切り替えた時点から有効になったインタフェースからのデータの受信が始まるので、印刷が開始されるまでに時間が掛かり、印刷のスループットが悪くなるという問題もあった。
【0006】
【課題を解決するための手段】
上記課題を解決するために本発明は、複数の上位装置にインタフェースを介して接続され、複数の上位装置からデータを受信し、受信したデータを出力処理する画像出力装置において、複数の上位装置からそれぞれデータを受信した場合、一つの上位装置から受信したデータを処理し、ページ区切りを認識することにより現在処理しているデータとは別の上位装置から受信したデータを処理するように切り替える切替制御手段を設けたことを特徴とするものである。
【0007】
この構成により、異なる上位装置から受信されるデータはそれぞれ1ページおきに処理が切換えられることになり、データを印刷出力するまでの待ち時間を短縮することができる。
【0008】
また本発明は、複数の上位装置から同時にデータを受信した場合に、これらのデータを並行して入力して一方の上位装置から受信したデータから出力を開始し、処理しているデータ中の改ページデータを認識することにより現在処理中のデータとは別の上位装置から受信したデータに処理を切り替えるようにしてもよい。
【0009】
この構成により、異なるインタフェースからデータが並行して受信されるとともに、受信されたそれぞれのデータが1ページおきに出力され、出力までの時間を長く待たせることはなくなる。
【0010】
【発明の実施の形態】
以下、本発明の実施の形態を図面にしたがって説明する。図1は本発明の第1の実施の形態のプリンタ装置を示すブロック図である。第1の実施の形態では画像出力装置としてプリンタ装置を例にして説明する。
【0011】
図1において、プリンタ装置1は、受信回路2、マイクロプロセッサ3、プログラムROM4、RAMチップ5、6、入出力制御回路7を具備している。受信回路2は上位装置から送信されてくるデータを受信するもので、インタフェースAを介してホストコンピュータA9に接続されるとともに、インタフェースBを介してホストコンピュータB11に接続されている。ここでインタフェースAとインタフェースBは互いに異なるものである。
【0012】
マイクロプロセッサ3は装置全体を制御するもので、受信回路2、プログラムROM4、RAMチップ5、6および入出力制御回路7とバス8を介して接続されている。またマイクロプロセッサ3は受信回路2を介してホストコンピュータA9またはホストコンピュータB11から制御コードや印刷データを受信する。プログラムROM4は装置1を制御するためのプログラムを格納する。
RAMチップ5は受信バッファ12を有し、受信バッファ12には例えばホストコンピュータA9から受信したデータを格納する。またRAMチップ6は受信バッファ13を有し、受信バッファ13には例えばホストコンピュータB11から受信したデータを格納する。RAMチップ5、6はマイクロプロセッサ3が動作する際に必要となるワーキングメモリとしても用いられる。
【0013】
入出力制御回路7には、印刷ヘッド制御回路14、スペースモータ制御回路15およびフィードモータ制御回路16が接続され、印刷ヘッド制御回路14は印刷ヘッド17を制御する。スペースモータ制御回路15はスペースモータ18を制御することにより、印刷ヘッド17が搭載されたキャリッジの移動を制御する。フィードモータ制御回路19はフィードモータを制御することにより、印刷用紙の送りを制御する。
【0014】
次に第1の実施の形態におけるプリンタ装置の動作を説明する。ここでは特にインタフェースの切替制御動作について説明する。第1の実施の形態ではインタフェースの種類はインタフェースAとインタフェースBの2種類であり、また受信バッファは、受信バッファ12と受信バッファ13というように、インタフェースの種類ごとに用意されている。受信バッファをインタフェース毎に持っているプリンタにおいては、図2に示すように、インタフェースAから受信されたデータはインタフェースA用の受信バッファ12に格納され、インタフェースBから受信されたデータはインタフェースB用の受信バッファ13に格納される。しかしながら1つのバッファを交互に使用するような形態のものでも本発明のインタフェース切替動作を実行できる。
【0015】
ホストコンピュータからプリンタ装置に送信されてくるデータには、印刷データのほかにプリンタ制御コードが含まれている。プリンタ制御コードには、改ページデータや改行データ、文字装飾データ等がある。本実施の形態では、プリンタ装置1は改ページデータを認識することにより、印刷用紙の排出動作を実行する。
【0016】
次に図3にしたがって複数のインタフェースを介して受信するデータが競合した場合のインタフェースの切替動作を説明する。図3はインタフェースの切替制御を示すフローチャートである。ここではホストコンピュータA9から先にインタフェースAを介してデータを受信する場合を説明する。インタフェースAを介してデータを受信した時点で、他のホストコンピュータB11からのインタフェースBによるデータの受信は不可となっている。
【0017】
まずホストコンピュータA9からインタフェースAを介して受信したデータは受信バッファ12に格納されている。マイクロプロセッサ3は受信バッファ12からデータをリードし、リードしたデータが改ページデータかどうかを判定する(ステップ1)。リードしたデータが印刷データである場合は、リードしたデータは入出力制御回路7を介して印刷ヘッド制御回路14へ送られ、印刷ヘッド17により印刷が行われる。この動作を繰り返しながら、受信バッファ12からリードしたデータが改ページデータであるかどうかの判定を繰り返す。
【0018】
改ページデータが認識され、改ページデータの前までの印刷データの印刷が終了したら、印刷用紙の排出動作を行いながらそれまで受信していたインタフェースAからのデータの受信を無効にする(ステップ2、3)。インタフェースを無効にする方法は、例えばセントロニクスインタフェースの場合は、ホストコンピュータAに対してBUSYを通知し、データの送信を停止させるようにする。また他種類のインタフェースについては各々の仕様に基いた無効の制御を行う。
【0019】
次にマイクロプロセッサ3は、インタフェースAにより印刷していた印刷モードの設定をワーキングメモリとしてのRAMチップ5にセーブする(ステップ4)。印刷モードには印刷文字の大きさや装飾情報、改行量の情報等があり、インタフェース毎に異なるので、その設定情報をRAMチップ5にセーブするのである。セーブした設定情報は再びインタフェースAが有効になったとき、その印刷モードに設定を戻すことができる。
【0020】
次にインタフェースAで使用していた受信バッファ12からのデータリードポインタをセーブする(ステップ5)。データリードポインタとは、受信データを受信バッファ12から読み出す際の読み出し位置を示すもので、その値は受信バッファ12からデータを読み出す毎に更新される。セーブされたポインタは、インタフェースAが再び有効になったときに戻される。
【0021】
次にマイクロプロセッサ3は、インタフェースBの受信バッファ13からのデータリード用の値に設定し(ステップ6)、無効になっていたインタフェースBからのデータの受信を有効にする(ステップ7)。これにより今度はインタフェースBからのデータの受信が可能になり、ホストコンピュータB11はインタフェースBにより印刷データをプリンタ装置1へ送信してくる。
【0022】
その後はインタフェースBから受信するデータが改ページデータかどうかをチェックし(ステップ1)、現在インタフェースBで受信していることを確認して(ステップ2)、ステップ8からステップ12までの動作を行い、次に改ページデータを受信するまでインタフェースBでデータを受信する。なおインタフェースBからの受信時におけるステップ8からステップ12までの動作はインタフェースAからの受信時におけるステップ3からステップ7までの動作に対応する。
【0023】
次に改ページデータが送信されない場合を説明する。例えばインタフェースBから受信する際に、インタフェースBが改ページデータを送信しないで、ページ途中でデータの送信を止めてしまう場合があり得る。その場合は、図4のフローチャートに示すように、一定時間経過しても受信データがないことを条件に改ページ動作を実行する(ステップ21、22)。この場合、次に有効になるインタフェースは先に受信した方であるので、両方のインタフェースを有効としておき(ステップ23)、データ待ち状態となる。受信待ちの状態からは、先に受信されたインタフェースが有効になり、図3のフローチャートで説明したような動作を繰り返す。
なおページの区切りについては、上述した改ページデータを認識する方法に限らず、例えば、ページ長を見て受信するデータがページ長をオーバーしたかどうかを判断することによりインタフェースを切り替えるようにしてもよい。
【0024】
次に印刷用紙の排出動作を説明する。図5は第1の実施の形態における印刷用紙の排出状態を示す斜視図である。第1の実施の形態では、受信データ毎に印刷された用紙を識別しやすくするために、インタフェースの切替毎に、印刷用紙の排出位置をずらすようにした。図5に示すように、印刷用紙は用紙トレー21上に排出されるが、印刷用紙22はインタフェースAから受信したデータが印刷された用紙で、印刷用紙23はインタフェースBから受信したデータが印刷された用紙であり、両者がトレー21の左右方向にずれた状態で排出されている。
【0025】
印刷用紙の排出位置を変える方法としては、図6に示す方法がある。図6は印刷用紙の排出方法を示す平面図である。図6において、印刷用紙は排出ローラ24、25により排出される。2つの排出ローラ24、25は図示しない回転駆動手段により互いに異なる回転速度で回転可能となっているが、最初は同じ速度で回転している。印刷が終了して送られてきた印刷用紙が排出ローラ24、25に入り込んで一定距離だけ搬送されると、一方の排出ローラ、例えば排出ローラ24の回転速度を他方の排出ローラ25の速度よりも速くする。これにより印刷用紙23は時計回り方向に回転するように排出される。
【0026】
インタフェースAから受信したデータが印刷された用紙22を排出する場合は、逆に排出ローラ25の回転速度を排出ローラ24よりも速くすることにより、印刷用紙22は反時計回り方向に回転するようにして排出される。なお印刷データの種類毎に印刷用紙を自動的に仕分ける機構については例えば特開平11−60032号公報に開示されるものがある。
【0027】
図7は第1の実施の形態における用紙排出制御を示すフローチャートである。図7において、マイクロプロセッサ3は、インタフェースAからデータを受信して印刷を行っているのかどうか判断し(ステップ31)、インタフェースAからデータを受信している場合は排出ローラ25の回転速度を排出ローラ24よりも速くするように制御して用紙22を排出し(ステップ32)、インタフェースBからデータを受信している場合は排出ローラ24の回転速度を排出ローラ25よりも速くするように制御して用紙23を排出する(ステップ33)。
このように改ページデータを認識する毎に印刷用紙の排出位置を変えることにより、ユーザーが自分の印刷物を容易に見分けることができるので、ユーザーにとって使い勝手がよくなる効果がある。
【0028】
なお印刷用紙を印刷データの種類毎に排出位置を変えて排出する方法は上記に限られない。プリンタ装置によっては排出トレーを複数個装着するものがある。こうした装置においては、印刷データの種類毎に異なる排出トレーに排出するようにしてもよい。
【0029】
以上のように第1の実施の形態においては、改ページデータを認識する毎にインタフェースを切り替えてデータを受信し、印刷を行うようにしたので、後続のユーザーの印刷待ち時間が短くなる。またホストコンピュータのタイムアウトエラーによる印刷データの送信中断を防止できる効果もある。
【0030】
次に第2の実施の形態を説明する。第1の実施の形態では1つのインタフェースからデータを受信しているときは他のインタフェースからデータを受信することは不可であった。第2の実施の形態は、各インタフェース毎に受信バッファを有する装置において、複数のインタフェースから同時にデータを受信可能とすることにより、プリンタ装置のスループットを向上させるものである。
【0031】
図8は第2の実施の形態のプリンタ装置を示すブロック図である。図に示すように、第2の実施の形態のプリンタ装置は図1に示す第1の実施の形態のものと基本的には同じである。マイクロプロセッサ30は、一方のインタフェースで受信している間、他方のインタフェースからのデータの受信を無効にするのではなく、常に有効とし、各々の受信バッファに空きがある限りそれぞれのインタフェースにより受信を行う。
マイクロプロセッサ30は、データがどのインタフェースから送信されてきたかを判別することができる。例えば、セントロニクスインタフェースの場合、データは1バイト単位で送信されてくるので、これを識別することによりインタフェースの種類を判別できる。したがってインタフェースAから送られてきたデータは、受信バッファ12に格納するようにし、インタフェースBから送られてきたデータは、受信バッファ13に格納するようにする。
【0032】
本実施の形態では、データが格納された受信バッファ12、13からデータをリードするのは、1つのインタフェース用の受信バッファからであり、そのリード先の受信バッファを切り替える制御を改ページデータにより行う。図9は第2の実施の形態における受信バッファからのデータリードの切替と印刷順を概念的に示す図である。
【0033】
図9に示す左側には受信バッファ12のデータ、即ち、インタフェースAからの受信データ(以下、データAという)を示し、4ページ分の印刷データを示す。また右側には受信バッファ13のデータ、即ち、インタフェースBからの受信データ(以下、データBという)を示し、3ページ分の印刷データを示す。ここでは受信データAが先に受信されたものとする。
まず受信バッファリードポインタを受信データAの1ページ目の印刷データに合わせ、この1ページ目の印刷データをリードし、印刷を行う。そして1ページ目の印刷データ中の改ページデータをリードすると、次に受信データBの1ページ目の印刷データに合わせ、この1ページ目の印刷データをリードし、印刷を行う。そして受信データBの1ページ目の印刷データ中の改ページデータをリードすると、次に受信データAの2ページ目の印刷データに合わせ、この2ページ目の印刷データをリードし、印刷を行う。
【0034】
上記の順に順次データをリードし、印刷を行う。受信バッファリードポインタが空きのところへくると受信データがないので、データ待ち状態となる。そしてデータ待ち状態から先に受信された方の受信バッファにポインタを設定する。以上の動作により、それぞれの受信バッファ12,13に格納されている印刷データは1ページ分交互に印刷される。印刷の行われた印刷用紙は、第1の実施の形態と同様に位置をずらして排出するようにしてもよい。
【0035】
以上のように第2の実施の形態では、複数のインタフェースからのデータ送信が競合した場合に、それぞれのインタフェースからのデータを同時に受信し、受信したデータを1ページ分交互に印刷することにより、インタフェース毎に別々に受信する場合に比較して印刷までの時間が短縮され、プリンタとしてのスループットが向上する。
【0036】
上記各実施の形態では、複数のインタフェースから受信する場合、あるいは複数のインタフェースからの受信データを印刷する場合に、1ページ毎に交互に受信あるいは印刷を行うようにしたが、1ページ毎でなくても複数ページ毎に行うようにしてもよい。
【0037】
また上記実施の形態では複数の上位装置からそれぞれのインタフェースを介してデータを受信する場合を説明したが、例えば複数のホストコンピュータからデータを一つのインタフェースを介して受信する場合にも本発明は適用可能である。図10は変形例における受信データを示す説明図である。図10において、受信データ1、受信データ2、受信データ3はそれぞれ異なるホストコンピュータから共通のインタフェースを介して受信したデータであり、それぞれ複数ページの印刷データを持っている。即ち、印刷データH〜Jが一つのホストコンピュータから受信したデータで、印刷データK〜Mが他のホストコンピュータから受信したデータで、印刷データN〜Pがさらに他のホストコンピュータから受信したデータである。これらの受信データ1、2、3を印刷する場合、○数字で示すように、書く受信データ毎に交互に印刷するようにする。
【0038】
また上記各実施の形態では画像出力装置としてプリンタ装置を例に説明したが、本発明はこれに限定されるものではなく、例えばファクシミリ装置にも本発明は適用可能である。
【0039】
【発明の効果】
以上詳細に説明したように本発明によれば、複数の上位装置から同時にデータを受信した場合、インタフェースを交互に切り替えて受信することにより、異なるインタフェースから受信されるデータはそれぞれ交互に受信され、データを受信するまでの待ち時間を短縮することができる。
【0040】
また本発明は、複数の上位装置から同時にデータを受信した場合に、これらのデータを並行して入力して受信したデータから交互に出力するようにしたので、インタフェース毎に別々に受信する場合に比較して出力までの時間が短縮され、装置のスループットが向上する。
【図面の簡単な説明】
【図1】第1の実施の形態のプリンタ装置を示すブロック図である。
【図2】第1の実施の形態の受信バッファを示すブロック図である。
【図3】第1の実施の形態のインタフェース切替動作を示すフローチャートである。
【図4】第1の実施の形態のタイムアウト監視制御を示すフローチャートである。
【図5】第1の実施の形態における印刷用紙の排出状態を示す斜視図である。
【図6】印刷用紙の排出方法を示す平面図である。
【図7】第1の実施の形態の用紙排出制御を示すフローチャートである。
【図8】第2の実施の形態のプリンタ装置を示すブロック図である。
【図9】第2の実施の形態における受信バッファからのデータリードの切替と印刷順を概念的に示す図である。
【図10】変形例における受信データを示す説明図である。
【符号の説明】
1 プリンタ装置
2 受信回路
3 マイクロプロセッサ
9、11 ホストコンピュータ
12、13 受信バッファ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image output apparatus such as a printer equipped with a plurality of types of interfaces or a printer capable of receiving a plurality of types of jobs with a single interface, and more particularly to an image output apparatus that switches between interfaces and reference jobs.
[0002]
[Prior art]
Conventionally, in a printer equipped with a plurality of types of interfaces, the interface determination is made valid for the interface received (recognized) first by the printer, and other interfaces are made invalid. If the interface that has been received first is interface A and the other interface is interface B, if the printer disables interface B, the data is not received even if data is sent from interface B.
Data sent from the interface A is printed after being received. After the data transmission from the interface A is completed, the reception buffer of the printer is emptied, and data can be received from the interface B for the first time after a certain time has elapsed. When data reception from interface B is enabled, data reception from interface A is disabled. That is, data cannot be received from another interface until the data transmission from one interface is completed and the printing process of the data is completed.
[0003]
[Patent Document 1]
JP-A-5-056106 [0004]
[Problems to be solved by the invention]
As described above, in a conventional apparatus, data cannot be received from another interface until data transmission from a certain interface is completed and output processing of the data is completed. When the amount of data is large, there is a problem that it takes time until the subsequent data is received, which increases the waiting time for the user. In the worst case, a host computer that is supposed to send data via a later interface may generate a time-out error and the data transmission may be canceled. In that case, the user must send the data again.
[0005]
In addition, when the interface is switched, reception of data from the interface that is enabled from the time of switching starts, so that there is a problem that it takes time until printing is started and print throughput is deteriorated.
[0006]
[Means for Solving the Problems]
In order to solve the above-described problems, the present invention provides an image output device that is connected to a plurality of host devices via an interface, receives data from the plurality of host devices, and outputs the received data. Switching control to switch to processing data received from one higher-level device, processing data received from one higher-level device, and recognizing page breaks to process data received from a higher-level device different from the currently processed data Means is provided.
[0007]
With this configuration, processing of data received from different host devices is switched every other page, and the waiting time until the data is printed out can be shortened.
[0008]
In addition, when data is simultaneously received from a plurality of host devices, the present invention inputs these data in parallel, starts output from the data received from one host device, and modifies the data being processed. By recognizing the page data, the processing may be switched to data received from a higher-level device different from the data currently being processed.
[0009]
With this configuration, data is received from different interfaces in parallel, and each received data is output every other page, so that it does not wait for a long time until output.
[0010]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a printer apparatus according to a first embodiment of the present invention. In the first embodiment, a printer apparatus will be described as an example of an image output apparatus.
[0011]
In FIG. 1, the printer apparatus 1 includes a receiving circuit 2, a microprocessor 3, a program ROM 4, RAM chips 5 and 6, and an input / output control circuit 7. The receiving circuit 2 receives data transmitted from the host device, and is connected to the host computer A9 via the interface A and is connected to the host computer B11 via the interface B. Here, the interface A and the interface B are different from each other.
[0012]
The microprocessor 3 controls the entire apparatus, and is connected to the receiving circuit 2, the program ROM 4, the RAM chips 5 and 6, and the input / output control circuit 7 via the bus 8. The microprocessor 3 also receives control codes and print data from the host computer A9 or the host computer B11 via the receiving circuit 2. The program ROM 4 stores a program for controlling the device 1.
The RAM chip 5 has a reception buffer 12, and stores data received from the host computer A9, for example. The RAM chip 6 has a reception buffer 13, and stores data received from the host computer B11, for example. The RAM chips 5 and 6 are also used as a working memory required when the microprocessor 3 operates.
[0013]
A print head control circuit 14, a space motor control circuit 15, and a feed motor control circuit 16 are connected to the input / output control circuit 7, and the print head control circuit 14 controls the print head 17. The space motor control circuit 15 controls the movement of the carriage on which the print head 17 is mounted by controlling the space motor 18. The feed motor control circuit 19 controls the feeding of the printing paper by controlling the feed motor.
[0014]
Next, the operation of the printer apparatus in the first embodiment will be described. Here, the interface switching control operation will be described in particular. In the first embodiment, there are two types of interfaces, interface A and interface B, and reception buffers are prepared for each interface type, such as reception buffer 12 and reception buffer 13. In a printer having a reception buffer for each interface, as shown in FIG. 2, the data received from the interface A is stored in the reception buffer 12 for the interface A, and the data received from the interface B is for the interface B. Stored in the receiving buffer 13. However, the interface switching operation of the present invention can be executed even in a form in which one buffer is used alternately.
[0015]
The data transmitted from the host computer to the printer device includes a printer control code in addition to the print data. The printer control code includes page break data, line feed data, character decoration data, and the like. In the present embodiment, the printer apparatus 1 executes the printing paper discharge operation by recognizing the page break data.
[0016]
Next, an interface switching operation when data received via a plurality of interfaces competes will be described with reference to FIG. FIG. 3 is a flowchart showing interface switching control. Here, a case will be described in which data is first received from the host computer A9 via the interface A. When data is received via the interface A, data cannot be received by the interface B from another host computer B11.
[0017]
First, data received from the host computer A9 via the interface A is stored in the reception buffer 12. The microprocessor 3 reads data from the reception buffer 12 and determines whether the read data is page break data (step 1). When the read data is print data, the read data is sent to the print head control circuit 14 via the input / output control circuit 7, and printing is performed by the print head 17. While repeating this operation, the determination as to whether the data read from the reception buffer 12 is page break data is repeated.
[0018]
When the page break data is recognized and the printing of the print data up to the page break data is completed, the reception of data from the interface A that has been received is invalidated while performing the printing paper discharge operation (step 2). 3). As a method of invalidating the interface, for example, in the case of a Centronics interface, BUSY is notified to the host computer A, and data transmission is stopped. For other types of interfaces, invalid control based on each specification is performed.
[0019]
Next, the microprocessor 3 saves the setting of the print mode printed by the interface A in the RAM chip 5 as a working memory (step 4). The print mode includes print character size, decoration information, line feed amount information, and the like, and is different for each interface. Therefore, the setting information is saved in the RAM chip 5. The saved setting information can be returned to the print mode when the interface A becomes valid again.
[0020]
Next, the data read pointer from the reception buffer 12 used in the interface A is saved (step 5). The data read pointer indicates a reading position when reading received data from the receiving buffer 12, and the value is updated every time data is read from the receiving buffer 12. The saved pointer is returned when interface A is re-enabled.
[0021]
Next, the microprocessor 3 sets the value for reading data from the reception buffer 13 of the interface B (step 6), and validates the reception of data from the interface B that has been invalidated (step 7). As a result, data can now be received from the interface B, and the host computer B11 transmits print data to the printer apparatus 1 via the interface B.
[0022]
After that, it checks whether the data received from interface B is page break data (step 1), confirms that it is currently received by interface B (step 2), and performs the operations from step 8 to step 12. The data is received at the interface B until the next page break data is received. The operations from step 8 to step 12 when receiving from the interface B correspond to the operations from step 3 to step 7 when receiving from the interface A.
[0023]
Next, a case where page break data is not transmitted will be described. For example, when receiving from the interface B, there is a case where the interface B does not transmit the page break data and stops transmitting data in the middle of the page. In this case, as shown in the flowchart of FIG. 4, a page break operation is executed on the condition that there is no received data even after a lapse of a certain time (steps 21 and 22). In this case, since the next interface to be enabled is the one that has been received first, both interfaces are enabled (step 23), and the data waiting state is entered. From the state of waiting for reception, the previously received interface becomes effective, and the operation as described in the flowchart of FIG. 3 is repeated.
Note that page separation is not limited to the above-described method of recognizing page break data. For example, the interface may be switched by determining whether the received data exceeds the page length by looking at the page length. Good.
[0024]
Next, the printing paper discharge operation will be described. FIG. 5 is a perspective view showing a discharge state of the printing paper in the first embodiment. In the first embodiment, the print paper discharge position is shifted each time the interface is switched in order to easily identify the paper printed for each received data. As shown in FIG. 5, the printing paper is discharged onto the paper tray 21, but the printing paper 22 is printed with data received from the interface A, and the printing paper 23 is printed with data received from the interface B. The sheets are discharged in a state where both are shifted in the left-right direction of the tray 21.
[0025]
As a method of changing the discharge position of the printing paper, there is a method shown in FIG. FIG. 6 is a plan view showing a printing paper discharging method. In FIG. 6, the printing paper is discharged by discharge rollers 24 and 25. The two discharge rollers 24 and 25 can be rotated at different rotational speeds by a rotational driving means (not shown), but initially rotate at the same speed. When the printing paper sent after printing has entered the discharge rollers 24 and 25 and is conveyed by a certain distance, the rotational speed of one discharge roller, for example, the discharge roller 24 is made higher than the speed of the other discharge roller 25. Make it faster. As a result, the printing paper 23 is discharged so as to rotate in the clockwise direction.
[0026]
When discharging the paper 22 on which the data received from the interface A is printed, conversely, the rotational speed of the discharge roller 25 is made faster than that of the discharge roller 24 so that the print paper 22 rotates counterclockwise. Discharged. A mechanism for automatically sorting printing paper for each type of print data is disclosed in, for example, Japanese Patent Application Laid-Open No. 11-60032.
[0027]
FIG. 7 is a flowchart showing sheet discharge control in the first embodiment. In FIG. 7, the microprocessor 3 determines whether data is received from the interface A and printing is performed (step 31). If data is received from the interface A, the rotational speed of the discharge roller 25 is discharged. The paper 22 is discharged so as to be faster than the roller 24 (step 32). When data is received from the interface B, the rotational speed of the discharge roller 24 is controlled to be faster than that of the discharge roller 25. The sheet 23 is discharged (step 33).
In this way, by changing the discharge position of the printing paper every time the page break data is recognized, the user can easily distinguish his / her printed matter, which is advantageous for the user.
[0028]
Note that the method of discharging the print sheet by changing the discharge position for each type of print data is not limited to the above. Some printer devices are equipped with a plurality of discharge trays. In such an apparatus, the print data may be discharged to a different discharge tray for each type of print data.
[0029]
As described above, in the first embodiment, every time page break data is recognized, the interface is switched and data is received and printing is performed, so that the print waiting time for subsequent users is shortened. Also, there is an effect that it is possible to prevent print data transmission interruption due to a timeout error of the host computer.
[0030]
Next, a second embodiment will be described. In the first embodiment, when data is received from one interface, it is impossible to receive data from another interface. In the second embodiment, the throughput of the printer is improved by enabling data to be received simultaneously from a plurality of interfaces in a device having a reception buffer for each interface.
[0031]
FIG. 8 is a block diagram showing a printer apparatus according to the second embodiment. As shown in the figure, the printer apparatus of the second embodiment is basically the same as that of the first embodiment shown in FIG. While receiving data on one interface, the microprocessor 30 does not invalidate reception of data from the other interface, but always enables it, and receives data by each interface as long as each reception buffer is free. Do.
The microprocessor 30 can determine from which interface the data has been transmitted. For example, in the case of a Centronics interface, data is transmitted in 1-byte units, and therefore the type of interface can be determined by identifying this. Therefore, the data transmitted from the interface A is stored in the reception buffer 12, and the data transmitted from the interface B is stored in the reception buffer 13.
[0032]
In this embodiment, the data is read from the reception buffers 12 and 13 in which the data is stored from the reception buffer for one interface, and the control for switching the reception buffer at the read destination is performed by the page break data. . FIG. 9 is a diagram conceptually showing the switching of data read from the reception buffer and the printing order in the second embodiment.
[0033]
The left side of FIG. 9 shows data in the reception buffer 12, that is, data received from the interface A (hereinafter referred to as data A), and print data for four pages. On the right side, data in the reception buffer 13, that is, data received from the interface B (hereinafter referred to as data B) is shown, and print data for three pages is shown. Here, it is assumed that the reception data A is received first.
First, the reception buffer read pointer is set to the print data of the first page of the reception data A, the print data of the first page is read, and printing is performed. When the page break data in the print data of the first page is read, the print data of the first page is read in accordance with the print data of the first page of the received data B, and printing is performed. When the page break data in the print data of the first page of the reception data B is read, the print data of the second page is read in accordance with the print data of the second page of the reception data A, and printing is performed.
[0034]
Data is sequentially read and printed in the above order. When the reception buffer read pointer reaches an empty position, there is no reception data, and a data waiting state is entered. Then, a pointer is set in the reception buffer that has been received first from the data waiting state. With the above operation, the print data stored in the respective reception buffers 12 and 13 are printed alternately for one page. The printed printing paper may be ejected with its position shifted as in the first embodiment.
[0035]
As described above, in the second embodiment, when data transmission from a plurality of interfaces competes, the data from each interface is received simultaneously, and the received data is printed alternately for one page, Compared with the case of receiving each interface separately, the time until printing is shortened and the throughput as a printer is improved.
[0036]
In each of the above embodiments, when receiving from a plurality of interfaces or printing received data from a plurality of interfaces, reception or printing is performed alternately for each page. Alternatively, it may be performed every plural pages.
[0037]
In the above embodiment, the case where data is received from a plurality of host devices via respective interfaces has been described. However, the present invention is also applied to the case where data is received from a plurality of host computers via one interface, for example. Is possible. FIG. 10 is an explanatory diagram showing received data in a modified example. In FIG. 10, received data 1, received data 2, and received data 3 are data received from different host computers via a common interface, and each have print data of a plurality of pages. That is, print data H to J are data received from one host computer, print data K to M are data received from another host computer, and print data N to P are data received from another host computer. is there. When these received data 1, 2, and 3 are printed, the received data is alternately printed for each received data to be written as indicated by a numeral.
[0038]
In each of the above embodiments, the printer apparatus has been described as an example of the image output apparatus. However, the present invention is not limited to this, and the present invention can be applied to, for example, a facsimile apparatus.
[0039]
【The invention's effect】
As described above in detail, according to the present invention, when data is simultaneously received from a plurality of higher-level devices, the data received from different interfaces are alternately received by switching and receiving the interfaces alternately. The waiting time until data is received can be shortened.
[0040]
In the present invention, when data is simultaneously received from a plurality of host devices, these data are input in parallel and output alternately from the received data. In comparison, the time until output is shortened, and the throughput of the apparatus is improved.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a printer device according to a first embodiment.
FIG. 2 is a block diagram illustrating a reception buffer according to the first embodiment.
FIG. 3 is a flowchart illustrating an interface switching operation according to the first embodiment.
FIG. 4 is a flowchart illustrating timeout monitoring control according to the first embodiment.
FIG. 5 is a perspective view illustrating a printing paper discharge state according to the first embodiment.
FIG. 6 is a plan view illustrating a printing paper discharge method.
FIG. 7 is a flowchart illustrating sheet discharge control according to the first embodiment.
FIG. 8 is a block diagram illustrating a printer device according to a second embodiment.
FIG. 9 is a diagram conceptually illustrating switching of data reading from a reception buffer and a printing order in the second embodiment.
FIG. 10 is an explanatory diagram showing received data in a modified example.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 Printer apparatus 2 Reception circuit 3 Microprocessor 9, 11 Host computer 12, 13 Reception buffer

Claims (3)

複数の上位装置にそれぞれ異なるインタフェースを介して接続され、複数の該上位装置からデータを受信し、受信したデータを出力処理する画像出力装置において、
複数の前記上位装置からデータを受信した場合に、これらのデータを並行して入力して一方の前記上位装置から受信したデータから出力を開始し、該データ中の改ページデータを認識することにより現在処理中のデータとは別の前記上位装置から受信したデータの処理に切り替えることを特徴とする画像出力装置。
In an image output device that is connected to a plurality of host devices through different interfaces, receives data from the plurality of host devices, and outputs the received data.
When data is received from a plurality of the higher-level devices, these data are input in parallel, output is started from the data received from one of the higher-level devices, and page break data in the data is recognized An image output apparatus that switches to processing of data received from the host apparatus different from the data currently being processed.
複数の上位装置にインタフェースを介して接続され、複数の該上位装置からデータを受信し、受信したデータを出力処理する画像出力装置において、
複数の前記上位装置からそれぞれデータを受信した場合、一つの前記上位装置から受信したデータを処理し、ページ区切りを認識することにより現在処理しているデータとは別の上位装置から受信したデータを処理するように切り替える切替制御手段を設けたことを特徴とする画像出力装置。
In an image output device connected to a plurality of host devices via an interface, receiving data from the plurality of host devices, and outputting the received data,
When data is received from each of the plurality of host devices, the data received from one host device is processed, and the data received from a host device different from the data currently being processed is recognized by recognizing the page break. An image output apparatus comprising switching control means for switching to process.
前記上位装置から受信したデータを印刷する印刷手段と、
前記印刷手段により印刷が行われた用紙を位置をずらして排出する用紙排出手段と、
前記用紙排出手段により用紙の排出位置を切り替える排出位置切替手段とを有し、
現在処理しているデータとは別の前記上位装置から受信したデータを処理するように切り替えると前記排出位置切替手段が用紙の排出位置を切り替え、同じ前記上位装置から受信したデータの印刷用紙の排出位置は同じであるようにしたことを特徴とする請求項2記載の画像出力装置。
Printing means for printing data received from the host device;
A paper discharge means for discharging the paper printed by the printing means by shifting the position;
A discharge position switching means for switching a paper discharge position by the paper discharge means,
When switching is made to process data received from the host device that is different from the data currently being processed, the discharge position switching means switches the paper discharge position, and the printing paper discharged from the same host device is discharged. 3. The image output apparatus according to claim 2, wherein the positions are the same.
JP2003198673A 2003-07-17 2003-07-17 Image output device Withdrawn JP2005038105A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003198673A JP2005038105A (en) 2003-07-17 2003-07-17 Image output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003198673A JP2005038105A (en) 2003-07-17 2003-07-17 Image output device

Publications (1)

Publication Number Publication Date
JP2005038105A true JP2005038105A (en) 2005-02-10

Family

ID=34208386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003198673A Withdrawn JP2005038105A (en) 2003-07-17 2003-07-17 Image output device

Country Status (1)

Country Link
JP (1) JP2005038105A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006338446A (en) * 2005-06-03 2006-12-14 Seiko Epson Corp Print controller and printer executing distributed printing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006338446A (en) * 2005-06-03 2006-12-14 Seiko Epson Corp Print controller and printer executing distributed printing

Similar Documents

Publication Publication Date Title
EP2796296B1 (en) Image formation system and device, control method thereof, and troubleshooting method
JP3286111B2 (en) Printing apparatus and method
US6028985A (en) Output method and apparatus
EP2565721B1 (en) Image forming apparatus, control method therefor, and storage medium
US5889930A (en) Output method and apparatus
JP2005038105A (en) Image output device
US8831458B2 (en) Image forming apparatus
JPH0564925A (en) Image forming device
JP3706657B2 (en) Printing apparatus and method for writing to buffer in printing apparatus
JPH11322183A (en) Printer with a plurality of paper discharge bins
JP2004012982A (en) Image forming apparatus
JPH11179973A (en) Printer
JP5257316B2 (en) Printing device
JPH08112961A (en) Printer
JP2007069580A (en) Image forming device
JP2009073131A (en) Printing device
KR100485805B1 (en) Discharging method for sorting printed paper in a printing job
JPH0465262A (en) Page printer
JPH09188015A (en) Printer and printing control method
JP3780223B2 (en) Multifunction device, image data transfer method, program, and storage medium
JPH08290619A (en) Printer
JP4338931B2 (en) Ink jet printer and printing control method thereof
JP2004042437A (en) Printing recording apparatus and printing recording system
JP3596974B2 (en) Image forming device
JP2008087363A (en) Printer and printing control program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20061003