JP2004295367A - Printer device, control method for the same, and computer-readable recording medium with program for executing the method stored - Google Patents

Printer device, control method for the same, and computer-readable recording medium with program for executing the method stored Download PDF

Info

Publication number
JP2004295367A
JP2004295367A JP2003085443A JP2003085443A JP2004295367A JP 2004295367 A JP2004295367 A JP 2004295367A JP 2003085443 A JP2003085443 A JP 2003085443A JP 2003085443 A JP2003085443 A JP 2003085443A JP 2004295367 A JP2004295367 A JP 2004295367A
Authority
JP
Japan
Prior art keywords
print mode
model
command
printer
printer device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003085443A
Other languages
Japanese (ja)
Inventor
Masaaki Nagano
雅昭 永野
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2003085443A priority Critical patent/JP2004295367A/en
Publication of JP2004295367A publication Critical patent/JP2004295367A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printer device, a control method therefor, and a computer-readable recording medium with a program for executing the method stored that can ensure compatibility between a conventional model and a new model. <P>SOLUTION: The control method for the printer device stores inter-model difference information about commands to set a print mode of a printer device, and refers to the inter-model difference information to discriminate the print mode setting command received by the printer device. If the discrimination finds the print mode setting command to be for a different model, the print mode of the printer device is set to provide the same print result as the determined different model prints. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明はプリンタ装置及びその制御方法並びに該方法を実行するためのプログラムを格納したコンピュータ読み取り可能な記録媒体に関し、詳細にはプリンタの印字結果や動作の機種間の互換性をとるための制御方法に関する。
【0002】
【従来の技術】
【特許文献1】特開2002−99397号公報
従来よりユーザがワードプロセッサ等のアプリケーションソフトウェアからプリンタ装置に対して印刷指示を出した場合、ホストコンピュータ上のアプリケーションソフトウェアは、印刷条件の設定をプリンタドライバから取得して印刷指示を行う。プリンタドライバから取得する印刷条件設定項目の一つに用紙毎の描画領域がある。この用紙毎の描画領域は、プリンタ装置を製造した製造元固有の値が設定されているものであり、例えばプリンタAのプリンタドライバを使用して作成した帳票をプリンタBで出力するというように設定すると、プリンタBで印刷した印刷結果の改ページ位置がプリンタAで印刷した場合に、従来ではプリンタドライバ内に各プリンタ毎の互換性のある領域テーブルを持つようにし、ユーザが印刷実行時にその領域テーブルをユーザインターフェースからチェックボックスなどで指定して、印刷するプリンタに対して互換性を統一させてから印刷指示をするというようにしていた。また、プリンタドライバ内に特定のプリンタ用の印刷領域テーブルを持たせ、そのプリンタ固有の印刷領域をエミュレートするという方法もある。更に、上記特許文献1によれば、ユーザが他のプリンタドライバの描画可能領域調査を指示し、用紙サイズを選択すると領域情報抽出モジュールは、選択されたプリンタドライバの印刷領域を取得する。印刷領域応答モジュールが取得した印刷領域情報をアプリケーションに送信すると、アプリケーションは印刷領域情報に沿った形式で描画を行う。描画された画像は、グラフィック処理モジュールによって処理され、出力ポートからプリンタ装置に送信されて印刷実行となる。よって、プリンタを開発していく過程において印字モードの追加、印字モードの変更、動作仕様の改善が実施される。
【0003】
【発明が解決しようとする課題】
しかしながら、従来機種と新機種で印字モードの仕様及び動作仕様が異なってくる。このため、従来機種用に作成した描画データを、新機種に送ると従来機種と異なった動作をし、異なった印刷結果となるため、従来機種用に作成した描画データに対して互換性が確保できない問題があった。
【0004】
本発明はこれらの問題点を解決するためのものであり、従来機種と新機種との互換性を確保できる、プリンタ装置及びその制御方法並びに該方法を実行するプログラムを格納したコンピュータ読み取り可能な記録媒体を提供することを目的とする。
【0005】
【課題を解決するための手段】
前記問題点を解決するために、本発明のプリンタ装置は、プリンタ装置の印字モードを設定するコマンドの機種間差異情報を記憶する機種間差異情報記憶手段と、プリンタ装置が受信した印字モードを設定するコマンドを機種間差異情報と参照して、どの機種でのコマンドかを判別する判別手段と、印字モードの設定コマンドが異なる機種用の印字モードの設定コマンドであった場合に、先に判定した異なる機種で印刷した印刷結果と同じ印刷結果になるようにプリンタ装置の印字モードを設定する印字モード設定手段とを有することに特徴がある。よって、印字モードの設定コマンドの機種間差異を調べ、従来機種と同じ印刷結果となるように、従来機種用の印字モード設定コマンドの処理を実施することにより、従来機種との互換性を確保できる。
【0006】
また、現在コマンドを受信したプリンタ装置と、受信した印字モードの設定コマンドが対象としている機種の間の印字モードの仕様を比較する比較手段を有し、比較手段による比較の結果現在コマンドを受信したプリンタ装置の方が印字モードの設定項目が追加されていた場合に、印字モード設定手段は追加されている印字モードに対しても互換性をとるように設定する。よって、新機種が従来機種より追加になった印字モードを調べ、追加になった新機種の印字モードに対しても、互換性が確保できるように設定することにより従来機種用の描画データに対する互換性を確保できる。
【0007】
更に、現在コマンドを受信したプリンタ装置と、受信した印字モード設定コマンドが対象としている機種の間で、印字モードに関係ない部分での動作仕様の差異情報を記憶する差異情報記憶手段と、先の動作仕様の差異情報を用いて互換性をとるように動作する手段とを有する。よって、印字モードに関係ない部分の動作を従来機と同じ処理にすることで、従来機用の描画データに対する互換性を確保できる。
【0008】
また、追加されている印字モードは、描画用のペンNo.に関するものであるので、ペンの設定機能を追加して、従来機と動作仕様が異なった場合でも、従来機用のデータを処理するときは、従来機と互換がとれるように追加部分の設置を実施できるので、従来機との互換性が確保できる。
【0009】
更に、印字モードの設定コマンドが異なる機種用の印字モード設定コマンドであった場合、この印字モードの設定コマンドに対応している機種の動作と同じ動作になるように設定する手段を有することにより、新機種でも従来機種用の描画データに対して動作の互換性を確保できる。
【0010】
また、エラー情報の表示は受信した印字モードの設定コマンドが対象としている機種におけるエラーの表示とすることにより、エラー表示についても、新機種でも従来機種用のデータに対して従来機種と互換性を確保できる。
【0011】
更に、別の発明としてのプリンタ装置の制御方法によれば、プリンタ装置の印字モードを設定するコマンドの機種間差異情報を記憶し、プリンタ装置が受信した印字モードを設定するコマンドを前記機種間差異情報と参照して、どの機種でのコマンドかを判別する。そして、判別した結果、印字モードの設定コマンドが異なる機種用の印字モードの設定コマンドであった場合に、先に判定した異なる機種で印刷した印刷結果と同じ印刷結果になるようにプリンタ装置の印字モードを設定する。よって、印字モードの設定コマンドの機種間差異を調べ、従来機種と同じ印刷結果となるように、従来機種用の印字モード設定コマンドの処理を実施することにより、従来機種との互換性を確保できる。
【0012】
また、現在コマンドを受信したプリンタ装置と、受信した印字モードの設定コマンドが対象としている機種の間の印字モードの仕様を比較し、比較の結果現在コマンドを受信したプリンタ装置の方が印字モードの設定項目が追加されていた場合に、追加されている印字モードに対しても互換性をとるように設定する。
【0013】
更に、別の発明として、上記プリンタ装置の制御方法を実行するためのプログラムを格納したコンピュータ読み取り可能な記録媒体に特徴がある。よって、既存の端末装置を変えることなく、制御システムを汎用的に構築することができる。
【0014】
【発明の実施の形態】
本発明のプリンタ装置の制御方法は、プリンタ装置の印字モードを設定するコマンドの機種間差異情報を記憶し、プリンタ装置が受信した印字モードを設定するコマンドを前記機種間差異情報と参照して、どの機種でのコマンドかを判別する。そして、判別した結果、印字モードの設定コマンドが異なる機種用の印字モードの設定コマンドであった場合に、先に判定した異なる機種で印刷した印刷結果と同じ印刷結果になるようにプリンタ装置の印字モードを設定する。
【0015】
【実施例】
図1は本発明の一実施例に係るプリンタ装置の構成を示すブロック図である。同図において、本実施例のプリンタ装置100は、ホスト装置200と後述するホストI/F104を介して接続し、後述する外部メモリI/F112を介して外部メモリ300と接続している。また、本実施例のプリンタ装置100は、主に、コントローラ101、操作パネル102及びプリンタエンジン103を含んで構成されている。更に、コントローラ101は、ホストI/F104、プログラムROM105、フォントROM106、パネルI/F107、CPU108、RAM109、NV−RAM110、エンジンI/F111及び外部メモリI/F112を含んで構成され、各構成部は内部バス113を介してそれぞれ接続されている。更に、プリンタエンジン103は、ユニットメモリ114を具備するユニット115を有している。
【0016】
そして、コントローラ101は、その時設定されている制御モード及びホスト装置200からの制御コードに従って、ホスト装置200からの印字データを、ビデオデータに変換して、プリンタエンジン103へ出力する制御機構であり、次のようなモジュールで構成されている。ホストI/F104は、ホスト装置200からプリンタ装置100への制御信号及びデータ、並びにプリンタ装置100からホスト装置200へのステータス信号のインターフェースである。CPU108は、プログラムROM105に従ってホスト装置200からのデータ(印字データ,制御データ)を処理する。RAM109は、CPU108が処理する時のワークメモリであり、ホスト装置200からのデータをページ単位に管理して一時記憶するバッファ、及びバッファに記憶されたデータを実際の印字パターンに変換し、ビデオデータを記憶するビットマップメモリ等に使われる。NV−RAM110は、電源を切っても保持したいデータを格納しておくための不揮発性RAMである。プログラムROM105は、コントローラ101内でのデータの処理、管理や、周辺モジュールを制御するためのプログラムが格納されている。フォントROM106は、印字に使用されるさまざまな種類のフォントが格納されている。エンジンI/F111は、コントローラ101からプリンタエンジン103への制御信号やビデオ信号、及びプリンタ装置100からコントローラ101へのステータス信号のインターフェースである。プリンタエンジン103は、コントローラ101からのビデオ信号及び制御信号により感光体上に静電潜像を作り、現像し、また給紙部より転写紙を給紙し、転写及び定着し、画像を形成する。本発明で排紙手段の制御をする場合、このプリンタエンジン103は、複数の排紙トレイをもっている。また、用紙方向(例えばA4縦送り、A4横送り)の指定を行うときは、これらの用紙方向の選択が可能なプリンタである。操作パネル102は、プリンタの状態を示す表示部,及びプリンタのモード、印刷部数の指定、フォント等を切替えるスイッチ部を有している。パネルI/F107は、コントローラ101と操作パネル102とのインターフェースである。外部メモリI/F112はプリンタ装置100の本体に外部メモリ300を装着するためのインターフェースである。外部メモリ300は、プリンタ装置100の本体に脱着可能な記憶媒体であり、例えばメモリカードやSIMMやDIMMである。ユニット115はプリンタエンジン103の内部に装着されるユニットであり、例えば、トナー・OPC等が一体となったトナーカートリッジである。ユニットメモリ114は、ユニット115を最適に使用するためのプログラムや情報を記憶するためのメモリであり、ROMや不揮発性メモリである。ユニットメモリ114に記憶されている内容はコントローラ101がエンジンI/F111を介して読み取ることが可能である。
【0017】
次に、本実施例のプリンタ装置におけるデータ処理の概要について図1を用いて説明すると、ホストI/F104を通してホスト装置200から送られてきたデータは、CPU108がプログラムROM105上のデータ解析プログラムに従って解析し、印字データ及び印字制御データ(SP,CR,LF,HT,VT,…等)とその他に分けられる。印字データ及び印字制御データはRAM109上の受信バッファに一旦記憶される。一旦記憶された受信データに対して、プログラムROM105上の制御プログラムの一つであるエミュレーションプログラムを一つづつ取り出して、その処理を行う。例えば、取り出したデータが文字コードであれば、印字位置、印字サイズ、文字コード、フォント情報等を備えた中間コードを作成し、RAM109上に設けられた中間バッファに収納する。取り出したデータがベクタデータであれば、エミュレーションプログラムは、各々のベクタの種類(円、直線、曲線等)及びベクタの座標、ベクタの属性(線幅、線と線の間の接続形状の種類(マイター接続とかラウンド接続等)、点線や実線の指定)等を描画ライブラリに入力可能なデータフォーマットに変換して入力することにより、描画ライブラリにエミュレーションが受け取ったベクタデータをビットマップに描画する。なお、ベクタの属性をホスト装置200からのコマンドにて設定する方法としては、例えば、ライン描画のときに使用するペンを何本か指定できるようにしておき、ペンNo.1の線幅、色を指定、ペンNo.2の線幅、色を指定、・・・・ペンNo.Nの線幅、色を指定といったように、ペンNo.を介して、ラインのベクタ属性を設定する方法もある。制御コードや、エスケープシーケンス等のコマンドであった場合、それらに予め定義された処理を行う。それは、例えば印刷部数の指定であれば、指定された印刷部数出力するように設定し(内部的な制御情報の設定)、印字位置の指定であったら、次に来た文字コードの位置を指定された位置にするとか、フォントの変更であった場合は、次に来た文字コードのフォント情報を指定されたフォントにするといった具合に処理を行う。このようにして、ホスト装置200からのプリント命令の処理を行うか、または処理を行ったデータが1ページ分を超えたら、次に中間バッファに蓄えられた中間コードを、制御プログラムに従って、ビデオデータに変換する処理を行う。変換が終了したら、コントローラ101はエンジンI/F111を通してプリンタエンジン103にプリントスタートの命令を出し、それに同期してビデオデータを転送する。
【0018】
ここでは、プリンタ装置を例にして説明するが、以下の説明の処理を実行するプログラムを、プリンタ装置と脱着可能な記憶媒体である図1の外部メモリ300に記憶しておき、プリンタ装置100のCPU108が、この外部メモリ300に記憶させたプログラムを用いて処理することにより、プリンタ制御用のプログラムを記憶した記憶媒体を使用して動作させることも可能である。
【0019】
図2は本実施例のプリンタ装置の動作を示すフローチャートである。同図において、先ず印字モード指定コマンドを受信すると(ステップS101;YES)、印字モード設定コマンドが、機種間差異情報を参照してどの機種の印字モードであるかをチェックする(ステップS102)。この機種間差異情報は、図1のプリンタ装置100のメモリに記憶してある。記憶しておく情報としては、各機種ごとの印字モードの設定項目、印字モード設定コマンドのパラメータ、印字モードに関係ないが、機種ごとに異なる処理の情報と、それらの処理を実行するために必要な内部処理ルーチンの実行方法等である。具体的な印字モード設定コマンドのパラメータが、従来機と新機種でどのように違うか、従来機種及び新機種での印字モードのパラメータの一例を示している図3及び図4を用いて説明すると、印字モードを設定するコマンドはMSコマンドであり、ホスト装置200からASCIIコードでMS第一パラメータ,第二パラメータ,第三パラメータのようにコマンドを送って、プリンタの印字モードを設定する。例えば、従来機種では、MS9,1; というコマンドを送ると、第一パラメータが9で第二パラメータが1なので、ペンNo.1の線幅を1mmに設定する。新機種で、上記、ペンNo.1を1mmに設定するためには、MS9,1,1; というように、第一パラメータでペンNo.1を指定し、第二パラメータで線幅の設定を指定し、第三パラメータで設定する線幅を指定する。このように、MSコマンドで第一パラメータが9のとき、第三パラメータがあれば、新機種用のデータと判断することができる。
【0020】
また、MSコマンドの第一パラメータとして72が指定されたデータは、従来機用のデータと判断することができる。なお、図3において従来機ではMSコマンドの第一パラメータの値72は赤で描画するペンNo.を設定するためのものであるが、図4において新機種ではMSコマンドの第一パラメータの72は無くなっている。但し、本発明では従来機と互換性を確保するために、MSコマンドの第一パラメータに72が指定されたときは、従来機と印刷結果が同じになるように新機種での印字モードを設定する。
【0021】
このように、印字モード指定コマンドのパラメータをチェックすることにより、プリンタが受信した印字モード指定コマンドが、どの機種のものか判定することができる。
【0022】
図5は印字モード設定コマンドの判定処理を示すフローチャートである。同図において、先ず図1のプリンタ装置100が受信した印字モード指定コマンドのパラメータをチェックし、印字モード指定コマンドを受信したプリンタ装置の機種用のパラメータと異なるパラメータがあるかどうか調べる(ステップS201)。印字モード指定コマンドのパラメータが、印字モード指定コマンドを受信したプリンタ装置の機種用のものでない場合には(ステップS201;YES)、機種間差異情報を読み込み(ステップS202)、機種間差異情報を参照して、どの機種用の印字モード指定コマンドであるかチェックする(ステップS203)。そして、ステップS203で調べた結果をもとに、どの機種用の印字モード指定コマンドであったか決定する(ステップS204)。このように、図2のステップS102の処理により、印字モード指定コマンドが、どの機種用のものであるかわかったら、図2のステップS103において、プリンタ装置が受信しているデータが対象としている機種(図2のステップS102で判定した機種)と現在、データを受信しているプリンタの機種が同じであるか、異なっているかチェックする。つまり、従来機種用のデータを新機種が受信したかどうかチェックする。プリンタ装置が受信したデータが対象としている機種と、現在、データを受信しているプリンタの機種が異なっており、新機種(本発明を対応した機種)にて、従来機用のデータを受信した場合は、図1のステップS104において、新機種でも、従来機用のデータを従来機と同じ印刷結果となるように、必要な印字モードや内部処理の設定を行う。
【0023】
図6は印字モード指定コマンドの決定処理を示すフローチャートである。図3及び図4に示すように、新機種では、印字モードのペン設定が、第三パラメータが追加になっている。第三パラメータを追加したことにより、ペンNo.1〜3の3本のペンすべて赤、黒の設定が可能となっている。従来機では、赤ペンを指定できるのは、1本のみであり、同時に2本、3本のペンを赤に設定することはできなかった。)例えば、新機種で以下のようにMSコマンドを送ると、MS9,2,2; MS10,2,2; MS11,2,2; 同時に3本のペンを全て赤に指定することが可能である。
【0024】
従来機では、MSコマンドの第一パラメータが72にして第二パラメータにてどれか1本のペンのみ赤指定していたので、同時に赤に設定できるペンの数は1本だけであった。例えば、従来機でMS72,1; とコマンドを送るとペンNo.1のみ赤になるが続けて、MS72,2; と送るとペンNo.2が赤になるが、ペンNo.1は黒になる動作をしていた。このため、従来機では同時に1本しか赤ペンを指定できなかった。
【0025】
図6のステップS301にて機種間差異情報を読み込み、従来機で印字モード指定コマンドを処理したときの印字モードの設定状態を求める(ステップS302)。ペンの色指定の例をあげると、従来機で、MS72,1; と送ったときは、ペンNo.1のみが赤なので、新機種では、以下の3つのMSコマンドを送った状態になる。
【0026】
MS9,2,2;・・・・・ペンNo.1 を赤指定
MS10,2,1;・・・・ペンNo.2を黒指定
MS11,2,1;・・・・ペンNo.3を黒指定
【0027】
上記MS72,1; コマンドを新機種が受信した場合、新機種では上記3つのMSコマンドを送れば、従来機でMS72,1; と送ったときと同じ印字モードの設定となるので、上記3つの新機種でのMSコマンドを送ったときと同じ設定を行う(ステップS303)。
【0028】
図3及び図4の印字モードの他に、従来機種及び新機種にて追加になった印字モードの一例を示す図7及び図8の印字モードももっている。図7及び図8のプロッタIDは、エミュレーションの対象となるプロッタの機種を表すものであり、本例では3機種(プロッタA,プロッタB,プロッタC)のエミュレーションが可能である。
【0029】
また、新機種では、第三パラメータによる印字モードの追加によりプロッタA〜プロッタBまで、従来機に対して拡張機能(拡張コマンド等の対応)が追加になった動作モードで動作させることも可能となっている。
【0030】
図9は本実施例のプリンタ装置の別の動作を示すフローチャートである。同図において、先ず機種間差異情報を読込む(ステップS401)。従来機の全ての印字モードと新機種の全ての印字モードを機種間差異情報により比較する(ステップS402)。そして、新機種で、追加になっている印字モードがあったかどうかチェックする(ステップS403)。図3、図4、図7、図8では,ペンの色指定とプロッタIDの動作モードが新機種で仕様拡張または、追加になっていることがわかる。新機種で、追加になっている印字モードがあった場合(ステップS403;YES)、新機種で、従来機種用のデータを印刷する場合に、新機種で追加になった印字モードを、どのように設定すれば、従来機と互換がとれるかの情報が機種間差異情報に記憶してあるので、従来機と互換をとるための印字モードの設定値を機種間差異情報から読み取る(ステップS404)。例えば、図7、図8の違いであれば、プロッタIDの動作モードの値は“1”の従来機と互換を保つモードに設定すればよい。そして、読み取った従来機と互換を保つための設定値を新機種で追加になった印字モードに設定する(ステップS405)。
【0031】
図10は本実施例のプリンタ装置の別の動作を示すフローチャートである。ここで、機種間差異情報には、従来機と新機種の間で、印字モードに関係ない部分で動作が異なる項目も記憶してある。例えば印字モードには、印刷領域の設定項目がないが、従来機と新機種で印刷領域が異なる場合等である。図10において、先ず、新機種と従来機種の間で、印字モードに関係ない部分で動作が異なる項目があるかどうかを、機種間差異情報に記憶されている情報を読むことで調べる(ステップS501,S502)。そして、新機種と従来機種の間で印字モードに関係ない部分で動作が異なる項目があった場合(ステップS502;YES)、印字モードに関係ない部分での新機種と従来機種の動作の異なる項目について、従来機種と動作が同じになるように、機種間差異情報から、互換性を保つための設定情報を読込んで設定する(ステップS503)。例えば、印刷領域を従来機の印刷領域に合わせる場合、従来機用の印刷領域情報を機種間差異情報から読み取って設定する。
【0032】
なお、設定した印字モードの状態の情報を不揮発性メモリに記憶することで、従来機と互換性を保つモードでプログラム登録が可能となり、便利である。
【0033】
図11は本実施例のプリンタ装置の別の動作を示すフローチャートである。ここでは、印刷結果に関係ない部分の動作において新機種と従来機種の互換性をとる例で説明する。例えばパネルの表示やキー操作の方法、またはエラー表示の方法等を新機種と従来機種で互換性をとるように設定する。同図において、先ず印刷結果に関係ない部分(パネル表示等)において新機種と従来機種で動作が異なる項目を機種間差異情報から読込む(ステップS601)。印刷結果に関係ない部分で新機種と従来機種で動作が異なる項目があるかどうかチェックする(ステップS602)。印刷結果に関係ない部分で新機種と従来機種で動作が異なる項目があった場合(ステップS602;YES)、印刷結果に関係ない部分で新機種と従来機種との間で動作が異なる項目を、新機種でも従来機種と同じ動作となるように設定する(ステップS603)。
【0034】
なお、エラー情報の表示が、従来機と新機種で異なっていても、従来機用のデータを処理しているときのエラー表示は、従来機と同じ表示にすることができ、従来機のエラー表示に慣れているユーザにとっては便利である。
【0035】
次に、図12は本発明のプリンタ装置の制御方法を実行するプログラムを起動するための具体的な装置の構成を示すブロック図である。つまり、同図は上記実施例における制御方法によるソフトウェアを実行するマイクロプロセッサ等から構築されるハードウェアを示すものである。同図において、プリンタ装置の制御システムはインターフェース(以下I/Fと略す)11、CPU12、ROM13、RAM14、表示装置15、ハードディスク16、キーボード17及びCD−ROMドライブ18を含んで構成されている。また、汎用の端末装置を用意し、CD−ROM19などの読取可能な記憶媒体には、本発明のプリンタ装置の制御方法を実行するプログラムが記憶されている。更に、I/F11を介して外部装置から制御信号が入力され、キーボード17によって操作者による指令又は自動的に本発明のプログラムが起動される。そして、CPU12は当該プログラムに従って上述のプリンタ装置の制御方法に伴う制御処理を施し、その処理結果をRAM14やハードディスク16等の記憶装置に格納し、必要により表示装置15などに出力する。以上のように、本発明のプリンタ装置の制御方法を実行するプログラムが記憶した媒体を用いることにより、既存の端末装置を変えることなく、制御システムを汎用的に構築することができる。
【0036】
なお、本発明は上記実施例に限定されるものではなく、特許請求の範囲内の記載であれば多種の変形や置換可能であることは言うまでもない。
【0037】
【発明の効果】
以上説明したように、本発明のプリンタ装置は、プリンタ装置の印字モードを設定するコマンドの機種間差異情報を記憶する機種間差異情報記憶手段と、プリンタ装置が受信した印字モードを設定するコマンドを機種間差異情報と参照して、どの機種でのコマンドかを判別する判別手段と、印字モードの設定コマンドが異なる機種用の印字モードの設定コマンドであった場合に、先に判定した異なる機種で印刷した印刷結果と同じ印刷結果になるようにプリンタ装置の印字モードを設定する印字モード設定手段とを有することに特徴がある。よって、印字モードの設定コマンドの機種間差異を調べ、従来機種と同じ印刷結果となるように、従来機種用の印字モード設定コマンドの処理を実施することにより、従来機種との互換性を確保できる。
【0038】
また、現在コマンドを受信したプリンタ装置と、受信した印字モードの設定コマンドが対象としている機種の間の印字モードの仕様を比較する比較手段を有し、比較手段による比較の結果現在コマンドを受信したプリンタ装置の方が印字モードの設定項目が追加されていた場合に、印字モード設定手段は追加されている印字モードに対しても互換性をとるように設定する。よって、新機種が従来機種より追加になった印字モードを調べ、追加になった新機種の印字モードに対しても、互換性が確保できるように設定することにより従来機種用の描画データに対する互換性を確保できる。
【0039】
更に、現在コマンドを受信したプリンタ装置と、受信した印字モード設定コマンドが対象としている機種の間で、印字モードに関係ない部分での動作仕様の差異情報を記憶する差異情報記憶手段と、先の動作仕様の差異情報を用いて互換性をとるように動作する手段とを有する。よって、印字モードに関係ない部分の動作を従来機と同じ処理にすることで、従来機用の描画データに対する互換性を確保できる。
【0040】
また、追加されている印字モードは、描画用のペンNo.に関するものであるので、ペンの設定機能を追加して、従来機と動作仕様が異なった場合でも、従来機用のデータを処理するときは、従来機と互換がとれるように追加部分の設置を実施できるので、従来機との互換性が確保できる。
【0041】
更に、印字モードの設定コマンドが異なる機種用の印字モード設定コマンドであった場合、この印字モードの設定コマンドに対応している機種の動作と同じ動作になるように設定する手段を有することにより、新機種でも従来機種用の描画データに対して動作の互換性を確保できる。
【0042】
また、エラー情報の表示は受信した印字モードの設定コマンドが対象としている機種におけるエラーの表示とすることにより、エラー表示についても、新機種でも従来機種用のデータに対して従来機種と互換性を確保できる。
【0043】
更に、別の発明としてのプリンタ装置の制御方法によれば、プリンタ装置の印字モードを設定するコマンドの機種間差異情報を記憶し、プリンタ装置が受信した印字モードを設定するコマンドを前記機種間差異情報と参照して、どの機種でのコマンドかを判別する。そして、判別した結果、印字モードの設定コマンドが異なる機種用の印字モードの設定コマンドであった場合に、先に判定した異なる機種で印刷した印刷結果と同じ印刷結果になるようにプリンタ装置の印字モードを設定する。よって、印字モードの設定コマンドの機種間差異を調べ、従来機種と同じ印刷結果となるように、従来機種用の印字モード設定コマンドの処理を実施することにより、従来機種との互換性を確保できる。
【0044】
また、現在コマンドを受信したプリンタ装置と、受信した印字モードの設定コマンドが対象としている機種の間の印字モードの仕様を比較し、比較の結果現在コマンドを受信したプリンタ装置の方が印字モードの設定項目が追加されていた場合に、追加されている印字モードに対しても互換性をとるように設定する。
【0045】
更に、別の発明として、上記プリンタ装置の制御方法を実行するためのプログラムを格納したコンピュータ読み取り可能な記録媒体に特徴がある。よって、既存の端末装置を変えることなく、制御システムを汎用的に構築することができる。
【図面の簡単な説明】
【図1】本発明の一実施例に係るプリンタ装置の構成を示すブロック図である。
【図2】本実施例のプリンタ装置の動作を示すフローチャートである。
【図3】従来機種での印字モードのパラメータの一例を示す図である。
【図4】新機種での印字モードのパラメータの一例を示す図である。
【図5】印字モード設定コマンドの判定処理を示すフローチャートである。
【図6】印字モード指定コマンドの決定処理を示すフローチャートである。
【図7】従来機種にて追加になった印字モードの一例を示す図である。
【図8】新機種にて追加になった印字モードの一例を示す図である。
【図9】本実施例のプリンタ装置の別の動作を示すフローチャートである。
【図10】本実施例のプリンタ装置の別の動作を示すフローチャートである。
【図11】本実施例のプリンタ装置の別の動作を示すフローチャートである。
【図12】本発明のプリンタ装置の制御方法を実行するプログラムを起動するための具体的な装置の構成を示すブロック図である。
【符号の説明】
100;プリンタ装置、101;コントローラ、102;操作パネル、
103;プリンタエンジン、104;ホストI/F、
105;プログラムROM、106;フォントROM、
107;パネルI/F、108;CPU、109;RAM、
110;NV−RAM、111;エンジンI/F
112;外部メモリ、113;内部バス、114;ユニットメモリ、
115;ユニット、200;ホスト装置、300;外部メモリ。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a printer device, a control method therefor, and a computer-readable recording medium storing a program for executing the method, and more particularly, to a control method for obtaining compatibility between printer printing results and operation models. About.
[0002]
[Prior art]
[Patent Document 1] JP-A-2002-99397
2. Description of the Related Art Conventionally, when a user issues a print instruction to a printer from application software such as a word processor, the application software on the host computer obtains print condition settings from a printer driver and issues the print instruction. One of the printing condition setting items acquired from the printer driver is a drawing area for each sheet. In the drawing area for each sheet, a value unique to the manufacturer of the printer device is set. For example, when a form created using the printer driver of the printer A is set to be output by the printer B, Conventionally, when the page break position of the print result printed by the printer B is printed by the printer A, conventionally, the printer driver has a compatible area table for each printer, and the user uses the area table when executing printing. Is specified by a check box or the like from a user interface, and compatibility is unified with respect to a printer to be printed, and then a print instruction is issued. There is also a method in which a print area table for a specific printer is provided in a printer driver, and a print area unique to the printer is emulated. Further, according to Patent Document 1, when the user instructs to investigate a drawing area of another printer driver and selects a paper size, the area information extraction module acquires a print area of the selected printer driver. When the print area information acquired by the print area response module is transmitted to the application, the application performs drawing in a format according to the print area information. The drawn image is processed by the graphic processing module, transmitted from the output port to the printer device, and printed. Therefore, in the process of developing a printer, a print mode is added, a print mode is changed, and an operation specification is improved.
[0003]
[Problems to be solved by the invention]
However, print mode specifications and operation specifications differ between the conventional model and the new model. Therefore, when drawing data created for the conventional model is sent to the new model, it operates differently from the conventional model, resulting in a different print result, ensuring compatibility with the drawing data created for the conventional model. There was a problem that could not be done.
[0004]
The present invention is intended to solve these problems, and can ensure compatibility between a conventional model and a new model, a printer device, a control method thereof, and a computer-readable recording storing a program for executing the method. The purpose is to provide a medium.
[0005]
[Means for Solving the Problems]
In order to solve the above-mentioned problems, a printer device of the present invention includes an inter-model difference information storage unit that stores inter-model difference information of a command for setting a print mode of the printer device, and sets a print mode received by the printer device. And the discriminating means for discriminating which command is the command by referring to the command to be executed as model difference information. If the print mode setting command is a print mode setting command for a different model, it is determined first. A print mode setting means for setting a print mode of the printer so as to obtain the same print result as a print result printed by a different model. Therefore, by checking the difference between the print mode setting commands between the models, and by executing the print mode setting command processing for the conventional model so as to obtain the same print result as the conventional model, compatibility with the conventional model can be ensured. .
[0006]
Also, the printer has a comparison unit that compares the print mode specification between the printer device that has received the current command and the model to which the received print mode setting command is applied, and has received the current command as a result of the comparison by the comparison unit. When the setting items of the print mode are added to the printer, the print mode setting means sets the compatibility so as to be compatible with the added print mode. Therefore, the print mode of the new model is added to the print mode of the conventional model, and the compatibility with the print mode of the new model is set by ensuring compatibility with the print mode of the new model. Nature can be secured.
[0007]
Further, a difference information storage means for storing difference information of operation specifications in a part irrelevant to the print mode between the printer apparatus which has received the current command and the model which is the target of the received print mode setting command, Means for operating to obtain compatibility by using difference information of operation specifications. Therefore, by making the operation of the portion irrelevant to the print mode the same as that of the conventional machine, compatibility with the drawing data for the conventional machine can be ensured.
[0008]
The added print mode is the drawing pen No. Therefore, when processing data for the conventional machine even if the operation specifications differ from those of the conventional machine, add the pen setting function and install additional parts so that it can be compatible with the conventional machine. Since it can be implemented, compatibility with the conventional machine can be ensured.
[0009]
Further, when the print mode setting command is a print mode setting command for a different model, by having a means for setting the same operation as the operation of the model corresponding to the print mode setting command, Even with a new model, operation compatibility with drawing data for a conventional model can be ensured.
[0010]
In addition, error information is displayed on the model for which the print mode setting command received is the target, so that the error display is compatible with the existing model even for new models. Can be secured.
[0011]
Further, according to another aspect of the invention, there is provided a method of controlling a printer, which stores information on a difference between models of a command for setting a print mode of the printer, and transmits a command for setting a print mode received by the printer on the basis of the difference between the models. By referring to the information, the type of the command is determined. If the result of the determination indicates that the print mode setting command is a print mode setting command for a different model, the printing of the printer device is performed so that the same print result as that obtained by printing on the different model previously determined is obtained. Set the mode. Therefore, by checking the difference between the print mode setting commands between the models, and by executing the print mode setting command processing for the conventional model so as to obtain the same print result as the conventional model, compatibility with the conventional model can be ensured. .
[0012]
Also, compare the print mode specifications between the printer that has received the current command and the model that is the target of the received print mode setting command, and as a result of the comparison, the printer that has received the current command has When a setting item has been added, a setting is made so as to be compatible with the added print mode.
[0013]
Still another aspect of the present invention is characterized in a computer-readable recording medium storing a program for executing the control method of the printer device. Therefore, a control system can be universally constructed without changing existing terminal devices.
[0014]
BEST MODE FOR CARRYING OUT THE INVENTION
The control method of the printer device of the present invention stores the difference information between models of the command for setting the print mode of the printer device, and refers to the command for setting the print mode received by the printer device as the difference information between the models, Determine which model is the command. If the result of the determination indicates that the print mode setting command is a print mode setting command for a different model, the printing of the printer device is performed so that the same print result as that obtained by printing on the different model previously determined is obtained. Set the mode.
[0015]
【Example】
FIG. 1 is a block diagram showing a configuration of a printer device according to one embodiment of the present invention. In the figure, a printer device 100 of the present embodiment is connected to a host device 200 via a host I / F 104 described later, and is connected to an external memory 300 via an external memory I / F 112 described later. Further, the printer device 100 of this embodiment mainly includes a controller 101, an operation panel 102, and a printer engine 103. Further, the controller 101 includes a host I / F 104, a program ROM 105, a font ROM 106, a panel I / F 107, a CPU 108, a RAM 109, an NV-RAM 110, an engine I / F 111, and an external memory I / F 112. Each is connected via an internal bus 113. Further, the printer engine 103 has a unit 115 having a unit memory 114.
[0016]
The controller 101 is a control mechanism that converts print data from the host device 200 into video data and outputs the video data to the printer engine 103 in accordance with the control mode set at that time and the control code from the host device 200. It consists of the following modules. The host I / F 104 is an interface for control signals and data from the host device 200 to the printer device 100, and status signals from the printer device 100 to the host device 200. The CPU 108 processes data (print data, control data) from the host device 200 according to the program ROM 105. The RAM 109 is a work memory when the CPU 108 processes the data. The RAM 109 manages data from the host apparatus 200 in page units and temporarily stores the data. The RAM 109 converts the data stored in the buffer into an actual print pattern, Is used for a bit map memory or the like that stores The NV-RAM 110 is a non-volatile RAM for storing data to be retained even when the power is turned off. The program ROM 105 stores programs for processing and managing data in the controller 101 and controlling peripheral modules. The font ROM 106 stores various types of fonts used for printing. The engine I / F 111 is an interface for control signals and video signals from the controller 101 to the printer engine 103, and status signals from the printer device 100 to the controller 101. The printer engine 103 forms and develops an electrostatic latent image on the photoreceptor according to a video signal and a control signal from the controller 101, and feeds a transfer sheet from a sheet feeding unit, transfers and fixes, and forms an image. . When controlling the paper discharge means in the present invention, the printer engine 103 has a plurality of paper discharge trays. When specifying the paper direction (for example, A4 vertical feed, A4 horizontal feed), the printer is capable of selecting these paper directions. The operation panel 102 has a display unit that indicates the status of the printer, and a switch unit that switches the mode of the printer, the designation of the number of print copies, fonts, and the like. The panel I / F 107 is an interface between the controller 101 and the operation panel 102. The external memory I / F 112 is an interface for mounting the external memory 300 on the main body of the printer 100. The external memory 300 is a storage medium detachable from the main body of the printer device 100, and is, for example, a memory card, a SIMM, or a DIMM. The unit 115 is a unit that is mounted inside the printer engine 103, and is, for example, a toner cartridge in which toner, OPC, and the like are integrated. The unit memory 114 is a memory for storing a program and information for optimally using the unit 115, and is a ROM or a nonvolatile memory. The contents stored in the unit memory 114 can be read by the controller 101 via the engine I / F 111.
[0017]
Next, an outline of data processing in the printer device of the present embodiment will be described with reference to FIG. 1. The data transmitted from the host device 200 through the host I / F 104 is analyzed by the CPU 108 according to a data analysis program on the program ROM 105. Print data and print control data (SP, CR, LF, HT, VT, etc.) and others. The print data and print control data are temporarily stored in the reception buffer on the RAM 109. The emulation program, which is one of the control programs on the program ROM 105, is extracted one by one from the once stored reception data, and the processing is performed. For example, if the extracted data is a character code, an intermediate code including a print position, a print size, a character code, font information, and the like is created and stored in an intermediate buffer provided on the RAM 109. If the extracted data is vector data, the emulation program determines the type of each vector (circle, line, curve, etc.), the coordinates of the vector, and the attributes of the vector (line width, type of connection shape between lines ( By converting a miter connection or a round connection, or specifying a dotted line or a solid line) into a data format that can be input to the drawing library and inputting it, the vector data received by the emulation is drawn into a bitmap in the drawing library. In addition, as a method of setting the attributes of the vector by a command from the host device 200, for example, it is possible to specify some pens to be used for line drawing, and to set the pen No. No. 1 line width and color are specified. Specify the line width and color of pen No. 2. N, such as specifying the line width and color of the pen No. There is also a method of setting a vector attribute of a line via a. If the command is a control code or a command such as an escape sequence, a process defined in advance for the command is performed. For example, if the number of print copies is specified, set to output the specified number of print copies (internal control information setting). If the print position is specified, specify the position of the next character code. If the font is changed or the font is changed, the font information of the next character code is changed to the specified font. In this way, when the print command from the host device 200 is processed, or when the processed data exceeds one page, the intermediate code stored in the intermediate buffer is then transferred to the video data according to the control program. Is performed. When the conversion is completed, the controller 101 issues a print start command to the printer engine 103 through the engine I / F 111, and transfers video data in synchronization with the print start command.
[0018]
Here, a printer device will be described as an example, but a program for executing the processing described below is stored in the external memory 300 of FIG. When the CPU 108 performs processing using the program stored in the external memory 300, the CPU 108 can operate using a storage medium storing a printer control program.
[0019]
FIG. 2 is a flowchart showing the operation of the printer of this embodiment. In the figure, first, when a print mode designation command is received (step S101; YES), it is checked which print mode the print mode setting command is in with reference to the model difference information (step S102). This inter-model difference information is stored in the memory of the printer device 100 in FIG. The information to be stored is irrespective of the print mode setting items, print mode setting command parameters, and print modes for each model, but it is necessary to process information that differs for each model and to execute those processes. And the execution method of the internal processing routine. How the specific parameters of the print mode setting command differ between the conventional model and the new model will be described with reference to FIGS. 3 and 4, which show an example of the print mode parameters of the conventional model and the new model. The command for setting the print mode is an MS command, and a command such as MS first parameter, second parameter, and third parameter is sent from the host device 200 in ASCII code to set the print mode of the printer. For example, in the conventional model, when the command of MS9,1; is sent, the first parameter is 9 and the second parameter is 1, so that the pen No. 1 is set to 1 mm. With the new model, the pen No. In order to set 1 mm to 1 mm, the pen No. 1 is set in the first parameter, such as MS 9, 1, 1; 1 is specified, the setting of the line width is specified by the second parameter, and the line width to be set is specified by the third parameter. Thus, when the first parameter is 9 in the MS command, if there is a third parameter, it can be determined that the data is for a new model.
[0020]
Data in which 72 is specified as the first parameter of the MS command can be determined to be data for a conventional device. In FIG. 3, in the conventional apparatus, the value 72 of the first parameter of the MS command is the pen No. to be drawn in red. In FIG. 4, the new model does not have the first parameter 72 of the MS command in FIG. However, in the present invention, in order to ensure compatibility with the conventional machine, when 72 is designated as the first parameter of the MS command, the print mode of the new machine is set so that the print result is the same as that of the conventional machine. I do.
[0021]
As described above, by checking the parameters of the print mode designation command, it is possible to determine which model the print mode designation command received by the printer is.
[0022]
FIG. 5 is a flowchart showing a print mode setting command determination process. In the figure, first, the parameters of the print mode designation command received by the printer 100 of FIG. 1 are checked, and it is checked whether there are any parameters different from the parameters for the model of the printer that has received the print mode designation command (step S201). . If the parameters of the print mode designation command are not for the model of the printer that has received the print mode designation command (step S201; YES), the difference information between the models is read (step S202), and the difference information between the models is referred to. Then, it is checked which model the print mode designation command is for (step S203). Then, based on the result checked in step S203, it is determined which model the print mode designation command is for (step S204). As described above, when it is determined by step S102 of FIG. 2 that the print mode designation command is for which model, in step S103 of FIG. It is checked whether the model (the model determined in step S102 in FIG. 2) and the printer currently receiving the data are the same or different. That is, it is checked whether the data for the conventional model has been received by the new model. The model that is the target of the data received by the printer device is different from the model of the printer that is currently receiving the data, and the new model (the model corresponding to the present invention) received the data for the conventional model. In this case, the necessary print mode and internal processing are set in step S104 in FIG. 1 so that the data for the conventional machine will have the same print result as the conventional machine even in the new machine.
[0023]
FIG. 6 is a flowchart showing a print mode designation command determination process. As shown in FIGS. 3 and 4, in the new model, the third parameter is added to the pen setting of the print mode. By adding the third parameter, the pen No. Red and black can be set for all three pens 1 to 3. In the conventional machine, only one red pen can be designated, and two or three pens cannot be set to red at the same time. For example, if a new model sends an MS command as follows, MS9,2,2; MS10,2,2; MS11,2,2; All three pens can be specified red at the same time. .
[0024]
In the conventional device, the first parameter of the MS command is set to 72, and only one pen is designated as red in the second parameter. Therefore, only one pen can be set to red at the same time. For example, when a command of MS72, 1; 1 only becomes red, but then sends MS72, 2; 2 turns red, but pen No. 2 No. 1 was blackening. For this reason, only one red pen can be designated at a time in the conventional machine.
[0025]
In step S301 of FIG. 6, the difference information between the models is read, and the setting state of the print mode when the print mode designation command is processed in the conventional machine is obtained (step S302). As an example of pen color designation, when the conventional machine sends MS72,1; Since only 1 is red, the new model is in a state where the following three MS commands have been sent.
[0026]
MS9, 2, 2; Specify 1 in red
MS10, 2, 1; 2 is black
MS11, 2, 1, 1; 3 is black
[0027]
When the new model receives the MS72,1; command, if the new model sends the above three MS commands, the print mode setting is the same as when the MS72,1; The same setting as when the MS command is sent for the new model is performed (step S303).
[0028]
In addition to the print modes shown in FIGS. 3 and 4, there are also print modes shown in FIGS. 7 and 8, which show examples of print modes added in conventional models and new models. The plotter IDs in FIGS. 7 and 8 represent the model of the plotter to be emulated, and in this example, three models (plotter A, plotter B, and plotter C) can be emulated.
[0029]
Also, with the new model, it is possible to operate the plotter A to plotter B in an operation mode in which extended functions (corresponding to extended commands, etc.) have been added to the conventional model by adding a print mode using the third parameter. Has become.
[0030]
FIG. 9 is a flowchart showing another operation of the printer of the present embodiment. In the figure, first, the model difference information is read (step S401). All print modes of the conventional machine and all print modes of the new machine are compared based on the model difference information (step S402). Then, it is checked whether or not there is an additional print mode in the new model (step S403). 3, 4, 7, and 8, it can be seen that the color specification of the pen and the operation mode of the plotter ID are extended or added for new models. If there is an additional print mode in the new model (step S403; YES), when printing data for the conventional model in the new model, the print mode added in the new model is determined. If the value is set to "1", information as to whether compatibility with the conventional machine can be obtained is stored in the model difference information, and the print mode set value for compatibility with the conventional machine is read from the model difference information (step S404). . For example, if there is a difference between FIG. 7 and FIG. 8, the operation mode value of the plotter ID may be set to a mode that maintains compatibility with the conventional device of “1”. Then, the read set value for maintaining compatibility with the conventional machine is set to the print mode added for the new machine (step S405).
[0031]
FIG. 10 is a flowchart showing another operation of the printer of the present embodiment. Here, the inter-model difference information also stores items whose operations differ between the conventional model and the new model in a portion unrelated to the print mode. For example, in the print mode, there is no print area setting item, but the print area differs between the conventional model and the new model. In FIG. 10, first, it is checked by reading the information stored in the inter-model difference information whether or not there is an item whose operation is different in a portion unrelated to the print mode between the new model and the conventional model (step S501). , S502). If there is an item whose operation differs between the new model and the conventional model in a portion irrelevant to the print mode (step S502; YES), an item different in operation between the new model and the conventional model in a portion irrelevant to the print mode is used. In step S503, setting information for maintaining compatibility is read from the inter-model difference information so that the operation is the same as that of the conventional model (step S503). For example, when matching the print area with the print area of the conventional machine, the print area information for the conventional machine is read from the model difference information and set.
[0032]
By storing the information of the set print mode state in the nonvolatile memory, the program can be registered in a mode that maintains compatibility with the conventional machine, which is convenient.
[0033]
FIG. 11 is a flowchart showing another operation of the printer of the present embodiment. Here, an example will be described in which the compatibility between the new model and the conventional model is achieved in the operation of a portion irrelevant to the print result. For example, a method of displaying a panel, a method of operating keys, a method of displaying an error, and the like are set so that the new model and the conventional model are compatible. In the figure, first, in a part (panel display or the like) not related to the print result, an item whose operation differs between the new model and the conventional model is read from the difference information between models (step S601). It is checked whether or not there is an item having a different operation between the new model and the conventional model in a part irrelevant to the print result (step S602). If there is an item whose operation is different between the new model and the conventional model in a portion irrelevant to the print result (step S602; YES), an item whose operation differs between the new model and the conventional model in the portion irrelevant to the print result is The new model is set to operate the same as the conventional model (step S603).
[0034]
Even if the error information display differs between the conventional model and the new model, the error display when processing data for the conventional model can be the same as that of the conventional model. This is convenient for users who are accustomed to display.
[0035]
Next, FIG. 12 is a block diagram showing the configuration of a specific device for activating a program for executing the control method of the printer device of the present invention. That is, the figure shows hardware constructed from a microprocessor or the like that executes software by the control method in the above embodiment. In the figure, the control system of the printer device includes an interface (hereinafter abbreviated as I / F) 11, a CPU 12, a ROM 13, a RAM 14, a display device 15, a hard disk 16, a keyboard 17, and a CD-ROM drive 18. In addition, a general-purpose terminal device is prepared, and a readable storage medium such as the CD-ROM 19 stores a program for executing the control method of the printer device of the present invention. Further, a control signal is input from an external device via the I / F 11, and the keyboard 17 activates a command of an operator or automatically activates the program of the present invention. Then, the CPU 12 performs a control process according to the above-described control method of the printer device according to the program, stores the processing result in a storage device such as the RAM 14 or the hard disk 16 and outputs it to the display device 15 or the like as necessary. As described above, by using the medium in which the program for executing the control method of the printer device of the present invention is stored, the control system can be constructed for general purpose without changing the existing terminal device.
[0036]
It should be noted that the present invention is not limited to the above embodiment, and it goes without saying that various modifications and substitutions can be made within the scope of the claims.
[0037]
【The invention's effect】
As described above, the printer device of the present invention includes an inter-model difference information storage unit for storing inter-model difference information of a command for setting a print mode of the printer device, and a command for setting a print mode received by the printer device. A discriminating means for discriminating which command is the command by referring to the difference information between models, and when the print mode setting command is a print mode setting command for a different model, the different model determined earlier is used. A print mode setting means for setting a print mode of the printer device so as to obtain the same print result as the printed print result. Therefore, by checking the difference between the print mode setting commands between the models, and by executing the print mode setting command processing for the conventional model so as to obtain the same print result as the conventional model, compatibility with the conventional model can be ensured. .
[0038]
Also, the printer has a comparison unit that compares the print mode specification between the printer device that has received the current command and the model to which the received print mode setting command is applied, and has received the current command as a result of the comparison by the comparison unit. When the setting items of the print mode are added to the printer, the print mode setting means sets the compatibility so as to be compatible with the added print mode. Therefore, the print mode of the new model is added to the print mode of the conventional model, and the compatibility with the print mode of the new model is set by ensuring compatibility with the print mode of the new model. Nature can be secured.
[0039]
Further, a difference information storage means for storing difference information of operation specifications in a part irrelevant to the print mode between the printer apparatus which has received the current command and the model which is the target of the received print mode setting command, Means for operating to obtain compatibility by using difference information of operation specifications. Therefore, by making the operation of the portion irrelevant to the print mode the same as that of the conventional machine, compatibility with the drawing data for the conventional machine can be ensured.
[0040]
The added print mode is the drawing pen No. Therefore, when processing data for the conventional machine even if the operation specifications differ from those of the conventional machine, add the pen setting function and install additional parts so that it can be compatible with the conventional machine. Since it can be implemented, compatibility with the conventional machine can be ensured.
[0041]
Furthermore, when the print mode setting command is a print mode setting command for a different model, by providing a means for setting the same operation as the operation of the model corresponding to the print mode setting command, Even with a new model, operation compatibility with drawing data for a conventional model can be ensured.
[0042]
In addition, the error information is displayed on the model that is the target of the print mode setting command received, so that the error display is compatible with the data of the previous model even with the new model. Can be secured.
[0043]
Further, according to another aspect of the invention, there is provided a method of controlling a printer device, wherein information on a difference between models of a command for setting a print mode of the printer device is stored, and a command for setting a print mode received by the printer device is exchanged between the models. By referring to the information, the type of the command is determined. If the result of the determination indicates that the print mode setting command is a print mode setting command for a different model, the printing of the printer device is performed so that the same print result as that obtained by printing on the different model previously determined is obtained. Set the mode. Therefore, it is possible to ensure compatibility with the conventional model by examining the difference between the models of the print mode setting command and executing the print mode setting command for the conventional model so as to obtain the same print result as the conventional model. .
[0044]
In addition, the printer device that has received the current command is compared with the print mode specification between the model that is the target of the received print mode setting command, and as a result of the comparison, the printer device that has received the current command is in the print mode. When a setting item has been added, a setting is made so as to be compatible with the added print mode.
[0045]
Still another aspect of the present invention is characterized in a computer-readable recording medium storing a program for executing the control method of the printer device. Therefore, a control system can be universally constructed without changing existing terminal devices.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of a printer device according to an embodiment of the present invention.
FIG. 2 is a flowchart illustrating an operation of the printer device of the present embodiment.
FIG. 3 is a diagram illustrating an example of print mode parameters in a conventional model.
FIG. 4 is a diagram illustrating an example of print mode parameters in a new model.
FIG. 5 is a flowchart illustrating a print mode setting command determination process.
FIG. 6 is a flowchart illustrating a print mode designation command determination process.
FIG. 7 is a diagram showing an example of a print mode added in a conventional model.
FIG. 8 is a diagram illustrating an example of a print mode added in a new model.
FIG. 9 is a flowchart illustrating another operation of the printer of the present embodiment.
FIG. 10 is a flowchart illustrating another operation of the printer of the present embodiment.
FIG. 11 is a flowchart illustrating another operation of the printer of the present embodiment.
FIG. 12 is a block diagram showing the configuration of a specific device for activating a program for executing the control method of the printer device of the present invention.
[Explanation of symbols]
100; printer device, 101; controller, 102; operation panel,
103; printer engine; 104; host I / F,
105; program ROM, 106; font ROM,
107; panel I / F, 108; CPU, 109; RAM,
110; NV-RAM, 111; engine I / F
112; external memory, 113; internal bus, 114; unit memory,
115; unit, 200; host device, 300; external memory.

Claims (13)

ホスト装置からの印字データをプリンタエンジンへ出力するプリンタ装置において、
プリンタ装置の印字モードを設定するコマンドの機種間差異情報を記憶する機種間差異情報記憶手段と、
プリンタ装置が受信した印字モードを設定するコマンドを前記機種間差異情報と参照して、どの機種でのコマンドかを判別する判別手段と、
印字モードの設定コマンドが異なる機種用の印字モードの設定コマンドであった場合に、先に判定した異なる機種で印刷した印刷結果と同じ印刷結果になるようにプリンタ装置の印字モードを設定する印字モード設定手段と
を有することを特徴とするプリンタ装置。
In a printer device that outputs print data from a host device to a printer engine,
An inter-model difference information storage means for storing inter-model difference information of a command for setting a print mode of the printer device;
Referencing a command for setting a print mode received by the printer device as the difference information between models, determining means for determining which model the command is,
If the print mode setting command is a print mode setting command for a different model, the print mode of the printer device is set so that the same print result as the print result printed by the different model previously determined is obtained. A printer device comprising setting means.
現在コマンドを受信したプリンタ装置と、受信した印字モードの設定コマンドが対象としている機種の間の印字モードの仕様を比較する比較手段を有し、該比較手段による比較の結果現在コマンドを受信したプリンタ装置の方が印字モードの設定項目が追加されていた場合に、前記印字モード設定手段は追加されている印字モードに対しても互換性をとるように設定する請求項1記載のプリンタ装置。A printer that receives the current command and a comparison unit that compares the specifications of the print mode between the model that is the target of the received print mode setting command and a printer that receives the current command as a result of the comparison by the comparison unit 2. The printer device according to claim 1, wherein, when the print mode setting item is added to the device, the print mode setting means sets the print mode to be compatible with the added print mode. 現在コマンドを受信したプリンタ装置と、受信した印字モード設定コマンドが対象としている機種の間で、印字モードに関係ない部分での動作仕様の差異情報を記憶する差異情報記憶手段と、先の動作仕様の差異情報を用いて互換性をとるように動作する手段とを有する請求項1記載のプリンタ装置。A difference information storage means for storing difference information of operation specifications in a part irrelevant to a print mode between a printer apparatus which has received a command and a model which is a target of a print mode setting command which has been received; 2. A printer device according to claim 1, further comprising means for operating to achieve compatibility using the difference information of the printer. 追加されている印字モードは、描画用のペンNo.に関するものである請求項2記載のプリンタ装置。The added print mode is the drawing pen No. 3. The printer according to claim 2, wherein 印字モードの設定コマンドが異なる機種用の印字モード設定コマンドであった場合、この印字モードの設定コマンドに対応している機種の動作と同じ動作になるように設定する手段を有する請求項1記載のプリンタ装置。2. The printing apparatus according to claim 1, further comprising: a setting unit that sets, when the print mode setting command is a print mode setting command for a different model, the same operation as that of the model corresponding to the print mode setting command. Printer device. エラー情報の表示は受信した印字モードの設定コマンドが対象としている機種におけるエラーの表示とする請求項1記載のプリンタ装置。2. The printer device according to claim 1, wherein the display of the error information is an error display of a model to which the received print mode setting command is applied. ホスト装置からの印字データをプリンタエンジンへ出力するプリンタ装置の制御方法において、
プリンタ装置の印字モードを設定するコマンドの機種間差異情報を記憶し、プリンタ装置が受信した印字モードを設定するコマンドを前記機種間差異情報と参照して、どの機種でのコマンドかを判別し、
印字モードの設定コマンドが異なる機種用の印字モードの設定コマンドであった場合に、先に判定した異なる機種で印刷した印刷結果と同じ印刷結果になるようにプリンタ装置の印字モードを設定することを特徴とするプリンタ装置の制御方法。
In a control method of a printer device for outputting print data from a host device to a printer engine,
It stores the difference information between the models of the command for setting the print mode of the printer device, refers to the command for setting the print mode received by the printer device as the difference information between the models, and determines which model is the command,
If the print mode setting command is a print mode setting command for a different model, set the print mode of the printer so that the print result is the same as the print result printed by the different model determined earlier. A method for controlling a printer device.
現在コマンドを受信したプリンタ装置と、受信した印字モードの設定コマンドが対象としている機種の間の印字モードの仕様を比較し、比較の結果現在コマンドを受信したプリンタ装置の方が印字モードの設定項目が追加されていた場合に、追加されている印字モードに対しても互換性をとるように設定する請求項7記載のプリンタ装置の制御方法。Compare the print mode specifications between the printer that has received the current command and the model that is the target of the received print mode setting command, and as a result of the comparison, the printer that has received the current command has the print mode setting item. 8. The method according to claim 7, wherein the setting is made so as to be compatible with the added print mode when the print mode is added. 現在コマンドを受信したプリンタ装置と、受信した印字モード設定コマンドが対象としている機種の間で、印字モードに関係ない部分での動作仕様の差異情報を記憶し、先の動作仕様の差異情報を用いて互換性をとるように動作する請求項7記載のプリンタ装置の制御方法。Stores the difference information of the operation specifications in the part irrelevant to the print mode between the printer device that currently receives the command and the model targeted by the received print mode setting command, and uses the difference information of the previous operation specifications. 8. The method for controlling a printer device according to claim 7, wherein the method operates to obtain compatibility. 追加されている印字モードは、描画用のペンNo.に関するものである請求項8記載のプリンタ装置の制御方法。The added print mode is the drawing pen No. 9. The control method for a printer device according to claim 8, wherein 印字モードの設定コマンドが異なる機種用の印字モード設定コマンドであった場合、この印字モードの設定コマンドに対応している機種の動作と同じ動作になるように設定する請求項7記載のプリンタ装置の制御方法。8. The printer device according to claim 7, wherein when the print mode setting command is a print mode setting command for a different model, the operation is set to be the same as the operation of the model corresponding to the print mode setting command. Control method. エラー情報の表示は受信した印字モードの設定コマンドが対象としている機種におけるエラーの表示とする請求項7記載のプリンタ装置の制御方法。8. The method according to claim 7, wherein the display of the error information is an error display of a model to which the received print mode setting command is applied. 請求項7〜12のいずれかに記載のプリンタ装置の制御方法を実行するためのプログラムを格納したコンピュータ読み取り可能な記録媒体。A computer-readable recording medium storing a program for executing the method of controlling a printer device according to claim 7.
JP2003085443A 2003-03-26 2003-03-26 Printer device, control method for the same, and computer-readable recording medium with program for executing the method stored Pending JP2004295367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003085443A JP2004295367A (en) 2003-03-26 2003-03-26 Printer device, control method for the same, and computer-readable recording medium with program for executing the method stored

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003085443A JP2004295367A (en) 2003-03-26 2003-03-26 Printer device, control method for the same, and computer-readable recording medium with program for executing the method stored

Publications (1)

Publication Number Publication Date
JP2004295367A true JP2004295367A (en) 2004-10-21

Family

ID=33400367

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003085443A Pending JP2004295367A (en) 2003-03-26 2003-03-26 Printer device, control method for the same, and computer-readable recording medium with program for executing the method stored

Country Status (1)

Country Link
JP (1) JP2004295367A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012064020A (en) * 2010-09-16 2012-03-29 Fuji Xerox Co Ltd Information processing device, information output device and information processing program
US9569705B2 (en) 2013-09-18 2017-02-14 Seiko Epson Corporation Method and system for configuring print character information

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012064020A (en) * 2010-09-16 2012-03-29 Fuji Xerox Co Ltd Information processing device, information output device and information processing program
US9569705B2 (en) 2013-09-18 2017-02-14 Seiko Epson Corporation Method and system for configuring print character information

Similar Documents

Publication Publication Date Title
US8493584B2 (en) Information processing apparatus for performing printing and determining whether a conflict resolution of the setting values in a complex print setting is required
JP4574344B2 (en) Information processing apparatus and method
US9848100B2 (en) Information processing apparatus, information processing method, and program
JP2013149085A (en) Printing system, printing control device and printing control program
US8625117B2 (en) Apparatus for controlling image formation, computer readable device having stored thereon computer-executable instructions for forming images, and method of generating image formation setting information
US7428072B2 (en) Printing control program, printing control method, printing system and information processing apparatus
JP6457808B2 (en) Print control device
US8488182B2 (en) Scanner driver for an information processing apparatus and copy system
JP7467217B2 (en) PROGRAM AND METHOD FOR CONTROLLING INFORMATION PROCESSING APPARATUS
JP2009205694A (en) Information processing apparatus, method, and device driver
US8848241B2 (en) Image processing apparatus and image processing method
JP2004295367A (en) Printer device, control method for the same, and computer-readable recording medium with program for executing the method stored
JP2010165008A (en) Information processing apparatus, image forming system, and processing program
JP2008137222A (en) Image processing apparatus, image processing system, information processing apparatus, information processing system and controlling program
JP2019053403A (en) Program and printing system
JP5371540B2 (en) Information processing apparatus, control method therefor, and program
JP3805263B2 (en) Printing control program, printing control method, printing system, and information processing apparatus
JP2009104282A (en) Printing system and printing program
US20230239417A1 (en) Computer-readable storage medium and method for displaying information about sheet characteristics
JP4748022B2 (en) PRINT SYSTEM, PRINT CONTROL DEVICE, PRINT SYSTEM CONTROL METHOD, DRIVER PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
JP2004227075A (en) Printing system
JP2008269260A (en) Data processor, data processing method and program
JP2007130945A (en) Printer device
JPH10193748A (en) Method and system for processing information and recording medium
JP2006159732A (en) Printing control system, printing control device/method and program