JP4062415B2 - Printer control apparatus, printer control method, program for causing computer to execute this method, recording medium recording this program, printer system, POS system - Google Patents

Printer control apparatus, printer control method, program for causing computer to execute this method, recording medium recording this program, printer system, POS system Download PDF

Info

Publication number
JP4062415B2
JP4062415B2 JP2002074891A JP2002074891A JP4062415B2 JP 4062415 B2 JP4062415 B2 JP 4062415B2 JP 2002074891 A JP2002074891 A JP 2002074891A JP 2002074891 A JP2002074891 A JP 2002074891A JP 4062415 B2 JP4062415 B2 JP 4062415B2
Authority
JP
Japan
Prior art keywords
color
print
printer
printer control
colors
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2002074891A
Other languages
Japanese (ja)
Other versions
JP2003272049A (en
Inventor
政寛 箕輪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2002074891A priority Critical patent/JP4062415B2/en
Publication of JP2003272049A publication Critical patent/JP2003272049A/en
Application granted granted Critical
Publication of JP4062415B2 publication Critical patent/JP4062415B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Cash Registers Or Receiving Machines (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、複数色での印刷が可能なプリンタを制御するための装置、方法、この方法をコンピュータに実行させるためのプログラム、および、このプログラムを記録したコンピュータ読み取り可能な記録媒体に関する。また、本発明は、複数色での印刷が可能なプリンタを含むプリンタシステムおよびPOSシステムにも関する。
【0002】
【従来の技術】
店舗のレジ等で用いられるPOSシステムにはレシートを印刷するためのプリンタが設けられている。このプリンタではロール紙等の記録紙に商品名や金額等の販売データが印刷され、印刷された記録紙が切り離されてレシートとして発行される。
【0003】
ところで、近年、カラープリンタが普及しており、POSシステムにおいても2色あるいはそれ以上の多色のプリンタが用いられるようになっている。このようなカラープリンタを備えたPOSシステムでは、カラー印刷機能を活用して、店舗側の好みに応じた色でレシートを印刷できることが望ましい。例えば、店舗のコーポレイトカラーが青色である場合にレシートを青色で印刷すれば、この青色を店舗のイメージ色として顧客に印象付けて、他店との差別化を図れる等の効果が期待できるからである。
【0004】
【発明が解決しようとする課題】
従来のPOSシステムで用いられているアプリケーションプログラムは、例えば2色印刷を行なう場合に、印刷色を主色および副色で指定することが一般的である。そして、カラープリンタは、主色および副色の印刷データに対して夫々固定された色(例えば主色に対して黒色、副色に対して赤や青等の黒以外の色)で印刷するように構成されている。このため、アプリケーションプログラムで指定された印刷色をユーザが自由に選択することはできず、主色を黒以外の色で印刷したくとも、アプリケーションプログラムを変更しない限り、そのような印刷色の設定を行なうことはできない。
【0005】
本発明は上記の点に鑑みてなされたものであり、印刷データで指定された印刷色に対応するプリンタの印刷色をユーザが設定できるようにすることを目的とする。
【0006】
【課題を解決するための手段】
上記の目的を達成するため、本発明は、複数の色で印刷可能なプリンタを制御するプリンタ制御装置であって、
前記プリンタに印刷させるべき印刷データを取得するデータ取得手段と、
前記印刷データの印刷色として指定され得る一又は複数の印刷指定色と、前記プリンタが印刷可能な複数の色との対応関係を表すカラー対応情報を記憶する対応情報記憶手段と、
前記カラー対応情報に従って、前記取得した印刷データの印刷指定色に前記プリンタが印刷可能な何れかの色を対応付け、前記印刷データを当該対応付けた色で前記プリンタにより印刷するための印刷コマンドを作成するコマンド作成手段と、
該作成した印刷コマンドを前記プリンタへ送信する送信手段とを備えることを特徴とする。
【0007】
本発明によれば、印刷データの印刷指定色にカラー対応情報に従ってプリンタにより印刷可能な色が対応付けられ、その対応付けられた色で印刷を行なうための印刷コマンドが作成される。このため、本発明によれば、ユーザは、カラー対応情報に基づいて、印刷データで指定された印刷色に対応するプリンタの印刷色を設定することができる。
【0008】
また、本発明のプリンタ制御装置は、好ましくは、前記カラー対応情報をユーザが設定するための設定手段を備える。
【0009】
また、前記プリンタは、互いに異なる色で印刷可能な複数の印刷ヘッドを備えており、前記カラー対応情報は、前記印刷指定色と前記印刷ヘッドとの対応関係を表し、前記コマンド作成手段が作成する印刷コマンドは、当該印刷コマンドに応じて印刷を行なうべき印刷ヘッドを特定する情報に基づいて印刷色を指定することとしてもよい。
【0010】
また、本発明のプリンタ制御装置は、前記印刷ヘッドの夫々の印刷色を表すヘッド色情報を取得するヘッド色情報取得手段と、前記取得したヘッド色情報と、前記カラー対応情報とに基づいて、前記印刷指定色と前記印刷ヘッドの印刷色との対応関係を表示する表示手段とを備えることとしてもよい。このようにすれば、ヘッド色情報取得手段により、各印刷ヘッドの印刷色を取得できるので、このヘッド色情報と、カラー対応情報とに基づいて、各印刷指定色と実際の印刷色との対応関係を特定して表示することができる。かかる表示により、ユーザは、印刷データにおける印刷指定色とプリンタの印刷色との対応関係を確認することができる。
【0011】
また、前記プリンタは2つの前記印刷ヘッドを備えており、前記印刷指定色は主色および副色を含み、前記カラー対応情報は、前記主色および副色と、前記2つの印刷ヘッドとの対応関係を表すこととしてもよい。
【0012】
また、前記プリンタは、前記2つの印刷ヘッドの印刷色を混ぜた混色での印刷を行なう機能を有しており、前記印刷指定色は、前記主色、前記副色、および前記混色を含み、前記コマンド作成手段が作成する印刷コマンドは、印刷色として混色を指定可能であることとしてもよい。このようにすれば、プリンタが混色で印刷する機能を有する場合に、印刷色として混色を指定して混色での印刷を行なわせることができるので、印刷色のバリエーションを広げることができる。
【0013】
また、前記データ取得手段が取得する印刷データは、単色の印刷データであり、
前記取得した単色の印刷データに前記印刷指定色を付加するカラー付加手段を備え、前記コマンド作成手段は、該印刷指定色が付加された印刷データに基づいて前記印刷コマンドを作成することとしてもよい。このようにすれば、単色の印刷データに印刷指定色を付加して印刷コマンドを作成するので、単色の印刷データに基づいて複数色の印刷を行なうことが可能となる。
【0014】
また、本発明のプリンタ制御装置と、このプリンタ制御装置により制御されるプリンタとによりプリンタを構成することができる。
【0015】
また、本発明のプリンタ制御装置と、このプリンタ制御装置により制御される複数色での印刷が可能な前記プリンタとを含むPOSシステムは、前記プリンタ制御装置は、所定の入力装置から入力された商品情報に基づいて販売情報を集計してレシート印刷用の印刷データを出力するPOSアプリケーション実行部を備え、前記データ取得手段は、前記POSアプリケーション実行部から出力されるレシート印刷用の印刷データを取得することとしてもよい。
【0016】
【発明の実施の形態】
図1は、本発明の一実施形態であるPOSシステムの全体構成図である。同図に示すように、本実施形態のPOSシステムは、ホスト装置10を備えている。ホスト装置10には、レシート印刷用のプリンタ12、商品コードを入力するための入力装置(例えばバーコードリーダー)14、画面表示用のディスプレイ装置16等が接続されている。本実施形態において、プリンタ12は、2色のカラー印刷が可能なインクジェット式のプリンタであり、ホスト装置10による制御の下でレシートの印刷を行なう。
【0017】
ホスト装置10はコンピュータシステムにより構成されており、ホスト装置10におけるプリンタ12の制御は、例えば、ウインドウズ(商標名)等のOS上で稼動するプリンタドライバOLE for Retail POS(以下、OPOSという)により行なわれる。OPOSは、OS上で稼動するPOSアプリケーションプログラム24に対して、プリンタ12や入力装置14等の周辺デバイスとの機種依存性のないインターフェースを提供するものである。かかる機能を実現するため、OPOS上には、デバイスのカテゴリー毎に対応したデバイスコントロールオブジェクト(CO)20と、デバイスの機種毎に対応したサービスオブジェクト(SO)22とが設けられている。
【0018】
POSアプリケーションプログラム24は、入力装置14から入力された商品の商品コードに基づいて販売データを集計し、その集計結果をレシートとして印刷すべく印刷データを出力する。POSアプリケーションプログラム24から出力された印刷データはプリンタ用のCO20に引き渡され、さらに、CO20からプリンタ12の機種に対応したSO22に引き渡される。SO22は、この印刷データを加工して、プリンタ12のコマンド仕様に応じた印刷コマンドを作成し、OS26を介してプリンタ12へ送信する。このように、SO22は、デバイス(本例ではプリンタ)の機種毎の差異を吸収して、POSアプリケーションプログラム24をデバイス機種に依存しないプログラムとして構成できるようにする役割を有している。
【0019】
本実施形態におけるプリンタ12は、テキスト印刷コマンドと、イメージ印刷コマンドの2種類の印刷コマンドを解釈して実行できるように構成されている。テキスト印刷コマンドはテキスト印刷を行なうためのコマンドであり、イメージ印刷コマンドは、ビットイメージのイメージ印刷を行なうためのコマンドである。なお、本実施形態では、イメージ印刷コマンドにおいて印刷対象としてプリンタ12に予め登録されたイメージデータを指定できる。また、両印刷コマンドにおいて、印刷色を具体的な色で指定するのではなく、第1の色または第2の色で指定するものとし、印刷色が特に指定されていない場合は、第1の色が指定されているとみなされる。ただし、本発明においてテキストおよびイメージの両方の印刷コマンドを用いることは必須ではなく、一方の印刷コマンドのみが用いられるものとしてもよい。
【0020】
図2は、プリンタ12の機能ブロック図である。同図に示すように、プリンタ12は、中央制御部50、受信部52、およびコマンド解析部54を備えている。中央制御部50は、受信部52がインターフェース部62を介してホスト装置10から受信したコマンドやデータをコマンド解析部54で解析し、受信コマンドに応じた処理を実行する。なお、中央制御部50およびコマンド解析部54は、CPU60が所定の制御プログラムを実行することにより実現される。
【0021】
CPU60には、RAM64、ROM66、第1ヘッド制御部68、第2ヘッド制御部70等が接続されている。
RAM64には、受信バッファ72、第1印刷バッファ74、および第2印刷バッファ76が設けられている。受信バッファ72には、受信部52がホスト装置10から受信したコマンドやデータが格納される。また、第1印刷バッファ74および第2印刷バッファ76には、夫々、第1印刷ヘッド78および第2印刷ヘッド80で印刷するための印刷データがビットデータ形式で格納される。
ROM66には、CPU60が実行するプログラムのほか、各キャラクタのビットパターンデータや、ロゴマークのイメージデータ等のデータが記録されている。
第1ヘッド制御部68および第2ヘッド制御部70には、夫々、第1印刷ヘッド78および第2印刷ヘッド80が接続されている。第1印刷ヘッド78および第2印刷ヘッド80は、夫々、第1ヘッド制御部68および第2ヘッド制御部70による制御の下で、第1印刷バッファ74および第2印刷バッファ76に格納された印刷データに従って印刷を行なう。
第1印刷ヘッド78および第2印刷ヘッド80には、インク色検出部82が設けられている。インク色検出部82は、第1印刷ヘッド78および第2印刷ヘッド80に夫々装着されたインクカートリッジのインク色(つまり、各印刷ヘッド78,80の印刷色)を判別して、中央制御部50に通知する。
【0022】
図3は、第1印刷ヘッド78および第2印刷ヘッド80を含む印刷ヘッド部を拡大して示す斜視図であり、また、図4は、図3の直線IV−IVに沿った断面図である。図3に示すように、キャリッジ83には、第1印刷ヘッド78および第2印刷ヘッド80の夫々に対応して、インクカートリッジ装着部84,86が設けられており、各装着部84,86にはインクを収容するインクカートリッジ88が装着されている。
【0023】
また、図4に示すように、インクカートリッジ装着部84,86の夫々の底面には、接点90a,90b,90cを有するマイクロスイッチ90が設けられている。マイクロスイッチ90は、インク色検出部82に接続されている。また、インクカートリッジ88の底面には凹部92が設けられている。凹部92は、インクカートリッジ88のインク色に応じて、マイクロスイッチ90の接点90a,90bの一方または両方に対応した位置に形成されている。このため、何れかの色のインクカートリッジ88が装着されると、インク色に応じた凹部92の形成位置に対応して、マイクロスイッチ90の接点90a,90bの一方または両方が押下されてオン状態となる。したがって、インク色検出部82は、マイクロスイッチ90の接点90a,90bのオン/オフ状態に基づいて、各インクカートリッジ装着部84,86に装着されたインクカートリッジ88のインク色を検出することができる。
【0024】
マイクロスイッチ90の接点90cは、インクカートリッジ88が装着されているか否かを検知するためのものである。すなわち、インクカートリッジ88が装着されていない場合には、接点90cは押下されずオフ状態に保たれるから、このことをもって、インクカートリッジ88が装着されていないと判断できる。ただし、インクカートリッジの凹部92が接点90b,90cの双方に対応して設けられることはないものとし、接点90a,90bの双方が押下されない場合にインクカートリッジ88が装着されないと判断することとしてもよく、その場合は接点90cは不要である。
【0025】
なお、インクカートリッジ88のインク色を検出するための上記手法は一例であり、他の手法でインク色を検出するようにしてもよい。
【0026】
再び図2を参照すると、中央制御部50は、コマンド解析部54により解析された印刷コマンドに基づいて、第1印刷バッファ74および第2印刷バッファ76に印刷データを格納する。すなわち、印刷すべきキャラクタ(テキスト印刷コマンドの場合)またはイメージ(イメージ印刷コマンドの場合)のビットパターンデータをROM66から読み出し、印刷コマンドで指定された印刷色が第1の色の場合には第1印刷バッファ74へ、第2の副色の場合には第2印刷バッファ76へ、夫々格納する。したがって、本実施形態では、印刷コマンドで第1の色が指定された場合は、第1印刷ヘッド78のインク色(以下、第1インク色という)で、第2の色が指定された場合には、第2印刷ヘッド80のインク色(以下、第2インク色という)で、夫々、印刷が行なわれることとなる。このように、印刷コマンドで印刷色として指定される第1の色および第2の色は、当該印刷コマンドに応じて印刷を行なうべき印刷ヘッドを特定するものである。
【0027】
ところで、本実施形態において、POSアプリケーションプログラム24は、レシートの印刷色を主色または副色で指定する。ただし、特に印刷色が指定されていない場合に、主色が指定されているとみなされる。本実施形態のシステムは、POSアプリケーションプログラム24が印刷色として指定する主色および副色に対応したプリンタ12の印刷色を設定できる機能(以下、カラー設定機能という)を有している。
【0028】
図5は、上記のカラー設定機能を実現するためのホスト装置10の機能ブロック図である。同図に示すように、SO22は、データ加工部30、コマンド出力部32、および、カラー情報記憶部34を備えている。なお、カラー情報記憶部34はハードディスク装置やEEPROMのような書き換え可能な不揮発性の記憶装置上に設けられている。データ加工部30は、CO20から引き渡された印刷データに基づき、カラー情報記憶部34に記憶されたカラー対応情報を参照して、この印刷データを第1の色または第2の色で印刷するための印刷コマンドを作成する。作成された印刷コマンドはコマンド出力部32によりプリンタ12へ送信される。
【0029】
図6は、カラー対応情報の内容の一例を示す。また、図7は、カラー対応情報を参照してデータ加工部30およびコマンド送信部32が実行する処理を表すフローチャートである。
【0030】
図6に示すように、カラー対応情報は、主色および副色が、夫々、第1インク色(つまり第1印刷ヘッド78に対応して装着されたインクカートリッジ88のインク色)および第2インク色(つまり第2印刷ヘッド80に対応して装着されたインクカートリッジ88のインク色)の何れに対応するかの対応関係を表している。
【0031】
図7に示すように、POSアプリケーションプログラム24から印刷データが出力されると(S100)、その印刷データで指定された印刷色(主色または副色)が判別される(S102)。そして、カラー対応情報を参照して、判別された印刷色に対応するインク色が取得される(S104,S106)。次に、取得されたインク色が第1インク色であるか第2インク色であるかが判別され(S108)、第1インク色であれば印刷色として第1の色を指定した印刷コマンドが、また、第2インク色であれば印刷色として第2の色を指定した印刷コマンドが、夫々作成される(S110,S112)。こうして作成された印刷コマンドがコマンド送信部32によりプリンタ12へ送信される(S114)。
【0032】
上記したカラー対応情報は、カラー情報設定部36によりユーザが設定できるようになっている。カラー情報設定部36はSO22に実装された所定の設定プログラムにより実現される。この設定プログラムが起動されると、ホスト装置10のディスプレイ装置16に例えば図8に示すような色設定画面200が表示される。
【0033】
同図に示すように、色設定画面200には、紙幅の設定欄202、主色および副色のインク色表示欄204、「インクカートリッジ情報更新」ボタン206、「主色/副色入れ替え」ボタン208、および「OK」ボタン210が設けられている。
【0034】
色設定画面200において、「インクカートリッジ情報更新」ボタン206がクリックされると、プリンタ12に対して、所定のインク情報要求コマンドが送信される。プリンタ12は、このインク情報要求コマンドを受信すると、インク色検出部82により、第1印刷ヘッド78および第2印刷ヘッド80に何色のインクカートリッジ88が装着されているか(つまり第1インク色および第2インク色が夫々何色か)を検出し、その検出結果を示すインク色情報をホスト装置10へ通知する。ホスト装置10は、上記カラー対応情報と、プリンタ12から通知されたインク色情報とに基づいて、主色および副色に夫々対応するインク色を特定し、インク色表示欄204に表示させる。すなわち、カラー対応情報により主色および副色が夫々第1または第2のインク色の何れに対応するかを判別でき、また、通知されたインク色情報により、第1および第2の色の実際のインク色を判別できるから、これらの情報から主色および副色に対応するインク色を特定できるのである。インク色表示欄204の表示により、ユーザはPOSアプリケーションプログラム24で印刷色として指定される主色および副色が実際に何色で印刷されるのかを知ることができる。なお、設定プログラムの起動時に自動的にインク情報要求コマンドを送信して、現在の第1インク色および第2インク色を取得するようにしてもよい。
【0035】
また、「主色/副色入れ替え」ボタン208がクリックされると、インク色表示欄204に表示された主色のインク色と副色のインク色とが入れ替えられる。この「主色/副色入れ替え」ボタン208により、主色および副色の各インク色が適宜設定された後、「OK」ボタン210がクリックされると、主色および副色と第1インク色および第2インク色との対応関係がインク色表示欄204に表示された通りになるようにカラー対応情報の内容が更新される。すなわち、例えば第1インク色が黒、第2インク色が青であるとして、画面上で主色に青、副色に黒が設定されている場合には、カラー対応情報において、主色に第2インク色、副色に第1インク色を対応付けて記録する。このように、ユーザは、色設定画面200上においてカラー対応情報を簡便に設定することができる。そして、設定されたカラー対応情報に従って、主色および副色に対応したインク色で印刷が行なわれることとなる。
【0036】
以上説明したように、本実施形態によれば、ユーザはホスト装置10において、主色および副色に夫々対応する印刷色を設定することができる。このため、レシートを例えば店舗のコーポレイトカラー等の所望の色で印刷することができ、これにより、その色を店舗のイメージ色として顧客に印象付けるといった効果が期待できる。
【0037】
また、本実施形態では、ホスト装置10ではプリンタドライバであるSO22が主色および副色をインク色に対応付けるための処理を行なうので、POSアプリケーションプログラム24に何ら変更を加えることなく、ユーザは上記印刷色の設定を行なうことができる。したがって、本実施形態によれば、POSシステムのユーザである店舗にプログラム交換等の経済的な負担をかけることなく、ユーザが望む色で印刷したレシートを発行できるようになる。
【0038】
また、一般に、POSアプリケーションプログラム24が出力する印刷データは印刷色として主色が指定される場合が多い。そして、プリンタ12のような2色のインクジェット式プリンタでは、主色に対応するインク色は固定されているので、この色のインクのみが一方的に減り易くなり、副色に対応する色のインクは減り難い。このため、副色に対応するインクは長期間プリンタ12に装着されたまま放置されることとなり、インク粘度の上昇やインク組成の変質を招いて、印刷ヘッドの目詰まり等のトラブル発生の原因となる場合がある。これに対して、本実施形態では、主色および副色に夫々対応するインク色をユーザが指定できるので、従前に比べて2色のインクが近い頻度で使用されることとなり、上記のような印刷ヘッドの目詰まり等のトラブルの発生を防止することができる。
【0039】
次に、本発明の第2の実施形態について説明する。本実施形態のシステムも上記図1〜図5に示す構成と同様の構成であるが、プリンタ12は、第1インク色および第2インク色のみならず、第1インク色および第2インク色の同時印刷による混色を含めた3色での印刷を行なう機能を有している。
【0040】
印刷コマンドでは、印刷色を第1の色、第2の色、または第3の色で指定する(印刷色の指定がない場合は、第1の色が指定されているとみなす)。このうち第3の色が指定されている場合には、プリンタ12は印刷データを第1印刷バッファ74および第2印刷バッファ76の両方に格納することで、第1インク色および第2インク色の同時印刷による混色での印刷を実現する。また、カラー対応情報では、主色および副色に対応して、第1インク色および第2インク色に加えて、混色を指定できる。そして、POSアプリケーションプログラム24から出力された印刷データの印刷色をカラー対応情報に基づき、第1、第2、または第3の色に変換した印刷コマンドを作成する。
【0041】
図9は、本実施形態においてカラー対応情報を設定するための色設定画面300の例を示す。同図に示すように、色設定画面300では、上記図8の色設定画面200に更に混色指定欄302が付加されている。この混色指定欄302で混色の使用が指定されて「OK」ボタン110がクリックされると、カラー対応情報において、主色に混色が対応付けて記憶される。
【0042】
このように、本実施形態では、プリンタ12が混色での印刷が可能であり、ユーザは印刷色として混色を指定できる。このため、使用可能な色の選択肢が増えることとなり、レシート印刷色のバリエーションが広がることになる。
【0043】
次に、本発明の第3の実施形態について説明する。本実施形態のシステムは、上記第2の実施形態において、POSアプリケーションプログラム24が単色の印刷データを出力するものとし、この単色印刷データに所定のカラー付加処理を行なうことにより、複数色での印刷を行なえるようにしたものである。
【0044】
なお、本実施形態では、テキスト印刷コマンドにおいて、文字色、文字の背景パターン・背景色を指定することができ、また、背景パターンとしては、例えば、「網掛け」、「斜線」(ハッチング)、「ベタ塗り」を指定でき、さらに、各背景パターンについてパターンの濃度を、例えば「濃」,「中」,「淡」と指定できる。また、POSアプリケーションプログラム24からプリンタ用のCO20に引き渡される印刷データは、そのデータフォーマットにより、テキスト(例えばレシートに印字すべき商品名や価格等の文字データ)用の印刷データとイメージ(例えば商店のロゴマーク等)の印刷データとに区別できるようになっている。
【0045】
本実施形態において、カラー情報記憶部34には、上記実施形態のカラー対応情報に加えて、カラー付加処理の内容を指定するためのカラー付加情報が記憶されている。図10は、カラー付加情報の内容の一例を示す。同図に示すように、カラー付加情報は、イメージ印刷色、テキスト印刷色、背景等の項目を含んでいる。
【0046】
▲1▼イメージ印刷色:レシートに印刷される商店のロゴマーク等のイメージデータの印刷色を、主色、副色、または混色に指定する。
▲2▼テキスト印刷色:
1)カラー設定方式:テキストを固定色で印刷するか、行単位で交互に変更するかを指定する。
2)固定色:固定色で印刷する際の印刷色を、主色、副色、または混色に指定する。
3)交互色:行単位で色を変更する場合の色の組み合わせを主色、副色、および混色のうちの2色で指定する。
4)行単位:行単位で色を変更する場合に、何行おきに色を変えるかの行数を指定する。例えば、行単位の値が「2」である場合、図11に示すように、カラー付加処理が行なわれる2行とカラー付加処理が行なわれない2行とが交互に繰り返される。
▲3▼背景
1)背景有無:背景印刷の有無を指定する。
2)背景色:背景の印刷色を主色、副色、または混色に指定する。
3)パターン:背景パターンを、例えば、網掛け、斜線、またはベタ塗りに指定する。
4)背景濃度:背景パターンの濃度を、濃、中、または淡の3段階で指定する。
【0047】
ただし、上記のカラー付加情報の構成は一例であり、カラーの印刷態様を指定することが可能な任意の構成を用いることができる。例えば、上記例のようにテキストについて詳細なカラー指定をするのではなく、イメージとテキストの各印刷色を指定するだけでもよい。
【0048】
図12は、本実施形態においてデータ加工部30およびコマンド出力部32による処理の内容を表すフローチャートである。同図に示すように、POSアプリケーションプログラム24から印刷データが出力されると(S150)、印刷データがテキストまたはイメージの何れの印刷データであるかが判別され(S152)、テキストの印刷データである場合は、カラー付加情報に基づいて、カラー付加処理が行なわれる(S154)。
【0049】
図13は、上記S154で行なわれるカラー付加処理の詳細を示すフローチャートである。同図に示すように、先ず処理対象行を示すインデックスiが「1」に初期化される(S200)。そして、カラー付加情報のテキスト印刷色の内容に基づいて、i行目のテキストの印刷色が主色、副色、または混色の何れであるかが判別される(S202)。その結果、主色または副色であれば、カラー付加情報を参照して主色または副色に対応するインク色(第1インク色または第2インク色)が取得され(S204,S206)、それに応じて第1の色または第2の色を印刷色としたテキスト印刷コマンドが作成される(S208)。一方、カラー付加情報のテキスト印刷色が混色であれば、第3の色を印刷色としたテキスト印刷コマンドが作成される(S210)。
【0050】
次に、カラー付加情報に基づいて、背景印刷が指定されているか否かが判別され(S212)、指定されていれば、背景色が主色、副色、または混色の何れであるかが判別される(S214)。その結果、主色または副色であれば、カラー付加情報を参照して主色または副色に対応するインク色が取得され、それに応じて第1の色または第2の色が背景色とされる(S216,S218)。一方、背景色が混色であれば、第3の色が背景色とされる(S220)。そして、この背景色と、カラー付加情報の背景パターン・濃度とで表される背景を印刷するための指定が上記作成した印刷コマンドに付加される(S222)。
【0051】
次に、i行目が最終行であるかどうかが判別され(S224)、最終行でなければ、iに「1」が加算(S226)された後、S202へ戻る。一方、i行目が最終行であれば、図12のフローチャートに戻る。
【0052】
一方、図12のS152において、印刷データがイメージ印刷データである場合は、カラー付加情報に基づいてイメージデータの印刷色が主色、副色、または混色の何れであるかが判別される(S156)。その結果、主色または副色であれば、カラー付加情報を参照して主色または副色に対応するインク色が取得され(S158、S160)、それに応じて第1の色または第2の色を印刷色としたイメージ印刷コマンドが作成される(S162)。一方、イメージデータの印刷色が混色であれば、第3の色を印刷色としたイメージ印刷コマンドが作成される(S164)
そして、上記S154、S162,またはS164で作成された印刷コマンドが、プリンタ12へ送信される(S166)。プリンタ12では、上記図2を参照して述べたように、ホスト装置10から送信されてきた印刷コマンドに従って印刷処理が行なわれることで、上記図11に例示するような、行単位でカラー付加された見易いレシートが発行される。
【0053】
次に、カラー付加情報の設定について説明する。本実施形態では、カラー情報設定部36を構成する設定プログラムは、上記した色設定画面200と、図14に示す色付加設定画面300とをディスプレイ装置16に表示させる。設定プログラムの起動初期時には色設定画面200が表示され、各設定画面の上部のタブを選択することで、図14に示す色付加設定画面300との間で表示画面が切り替わるようになっている。
【0054】
図14に示すように、カラー付加設定画面300には、カラー付加情報の各項目に対応した設定欄が設けられており、カラー付加情報の内容を項目毎に指定できるようになっている。そして、「OK」ボタン210がクリックされると、色設定画面200および色付加設定画面300で設定された内容が、夫々、カラー対応情報およびカラー付加情報として、カラー情報記憶部34に格納される。
【0055】
こうしてカラー対応情報およびカラー付加情報が設定されると、以後、POSアプリケーションプログラム24から印刷データが出力された場合に、設定されたカラー付加情報の内容に従って、上述したようにカラー付加処理が実行され、さらに、カラー対応情報の内容に従って、主色および副色に対応する印刷色が指定されたうえで、プリンタ12により印刷が行なわれることになる。
【0056】
以上説明したように、本実施形態では、POSアプリケーションプログラム24から出力された単色の印刷データに、カラー付加情報に応じて主色、副色、および混色の色指定を付加し、さらに、カラー対応情報に応じて主色および副色に印刷色を対応付けることにより作成した印刷コマンドをプリンタ12へ送信する。このため、POSアプリケーションプログラム24が単色プリンタにしか対応していない場合にも、プログラムを変更することなく、ユーザが設定した所望の態様でのカラー印刷を行なうことができる。
【0057】
また、テキストへのカラー付加処理を印刷行の行単位で行なうので、印刷内容を行単位で明瞭に区別することができ、この点でもレシートが見易くなる。すなわち、レシートの同じ行に印刷された商品名と金額の対応関係が明瞭となり、商品名と金額とを1行ずらして読んでしまうといった見間違いを防止できる等の効果が得られるのである。
【0058】
また、イメージとテキストとを区別して別個にカラー付加の態様を指定することができる。このため、店舗のロゴマーク等については店舗側の希望に合わせた色で印刷しつつ、テキスト部分について複数の色で印刷された見易いレシートを発行することができる。
【0059】
なお、上記各実施形態では、プリンタ12が2色または混色を含めた3色の印刷を行なえるものとしたが、本発明はこれに限らず、プリンタ12が4色以上で印刷可能な場合にも適用が可能である。すなわち、プリンタ12が印刷可能な色数にかかわらず、印刷データで指定される印刷色に対して、プリンタ12が印刷可能な色を対応付け、その対応付けた色で印刷するための印刷コマンドを作成すればよいのである。
【0060】
また、上記各実施形態では、本発明がPOSシステムにおけるレシート印刷に適用された場合について説明したが、本発明はこれに限定されるものではなく、複数色の印刷が可能なプリンタにより、単色の印刷コマンドに基づいて複数色の印刷を行なう場合に広く適用が可能である。
【0061】
【発明の効果】
以上説明したように、本発明によれば、印刷データで指定された印刷色に対する実際の印刷色をユーザが設定することができる。このため、例えば、アプリケーションプログラムが出力する印刷データの印刷色が主色および副色で指定される場合に、主色および副色の各印刷色をプリンタが印刷可能な任意の色に設定することが可能となり、アプリケーションプログラムに変更を加えることなく、ユーザが自由な色設定を行なえるようになる。
【図面の簡単な説明】
【図1】本発明の一実施形態であるPOSシステムの全体構成図である。
【図2】プリンタの機能ブロック図である。
【図3】第1および第2印刷ヘッドを含む印刷ヘッド部を拡大して示す斜視図である。
【図4】図3の印刷ヘッド部の断面図である。
【図5】本実施形態におけるカラー設定機能を実現するためのホスト装置の機能ブロック図である。
【図6】カラー対応情報の内容の一例を示す図である。
【図7】カラー対応情報を参照してデータ加工部およびコマンド送信部が実行する処理を表すフローチャートである。
【図8】カラー対応情報を設定するための色設定画面の一例を示す図である。
【図9】本発明の第2の実施形態においてカラー対応情報を設定するための色設定画面の例を示す。
【図10】本発明の第3の実施形態におけるカラー付加情報の内容の一例を示す図である。
【図11】本実施形態におけるレシートの印刷例を示す図である。
【図12】本実施形態においてデータ加工部およびコマンド出力部による処理の内容を表すフローチャートである。
【図13】図12のフローチャートにおけるカラー付加処理の詳細を示すフローチャートである。
【図14】本実施形態においてカラー付加情報を設定するためのカラー付加設定画面の一例を示す図である。
【符号の説明】
10 ホスト装置
12 プリンタ
14 入力装置
78 第1印刷ヘッド
80 第2印刷ヘッド
82 インク色検出部
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an apparatus and method for controlling a printer capable of printing in a plurality of colors, a program for causing a computer to execute the method, and a computer-readable recording medium on which the program is recorded. The present invention also relates to a printer system and a POS system including a printer capable of printing in a plurality of colors.
[0002]
[Prior art]
A printer for printing receipts is provided in a POS system used at a cash register in a store. In this printer, sales data such as product names and amounts are printed on recording paper such as roll paper, and the printed recording paper is separated and issued as a receipt.
[0003]
By the way, in recent years, color printers have become widespread, and multicolor printers of two colors or more are also used in the POS system. In a POS system equipped with such a color printer, it is desirable to be able to print a receipt with a color according to the preference of the store using the color printing function. For example, if the receipt is printed in blue when the corporate color of the store is blue, it can be expected to have an effect such as impressing the customer as the image color of the store and differentiating from other stores. is there.
[0004]
[Problems to be solved by the invention]
In an application program used in a conventional POS system, for example, when performing two-color printing, it is common to specify a printing color as a primary color and a secondary color. Then, the color printer prints in a fixed color (for example, black for the main color and a color other than black such as red or blue for the sub color) for the print data of the main color and the sub color. It is configured. For this reason, the user cannot freely select the print color specified in the application program. Even if the user wants to print the main color in a color other than black, the print color is set unless the application program is changed. Cannot be done.
[0005]
SUMMARY An advantage of some aspects of the invention is that it enables a user to set a print color of a printer corresponding to a print color designated by print data.
[0006]
[Means for Solving the Problems]
In order to achieve the above object, the present invention provides a printer control apparatus for controlling a printer capable of printing in a plurality of colors,
Data acquisition means for acquiring print data to be printed by the printer;
Correspondence information storage means for storing color correspondence information representing a correspondence relationship between one or a plurality of print designation colors that can be designated as print colors of the print data and a plurality of colors that can be printed by the printer;
In accordance with the color correspondence information, any printable color of the printer is associated with the print designation color of the acquired print data, and a print command for printing the print data with the associated color by the printer Command creation means to create;
Transmission means for transmitting the created print command to the printer.
[0007]
According to the present invention, a printable color of print data is associated with a color that can be printed by a printer according to the color correspondence information, and a print command for printing with the associated color is created. Therefore, according to the present invention, the user can set the print color of the printer corresponding to the print color specified by the print data based on the color correspondence information.
[0008]
In addition, the printer control apparatus according to the present invention preferably includes setting means for the user to set the color correspondence information.
[0009]
The printer includes a plurality of print heads capable of printing in different colors, and the color correspondence information represents a correspondence relationship between the print designated color and the print head, and is created by the command creation unit. The print command may designate a print color based on information specifying a print head to be printed in accordance with the print command.
[0010]
Further, the printer control device of the present invention, based on the head color information acquisition means for acquiring the head color information representing each print color of the print head, the acquired head color information, and the color correspondence information, Display means for displaying a correspondence relationship between the print designation color and the print color of the print head may be provided. In this way, since the print color of each print head can be acquired by the head color information acquisition means, the correspondence between each print designated color and the actual print color based on this head color information and the color correspondence information Relationships can be identified and displayed. With this display, the user can confirm the correspondence between the print designation color in the print data and the print color of the printer.
[0011]
The printer includes two print heads. The print designation color includes a main color and a sub color. The color correspondence information includes correspondence between the main color and the sub color and the two print heads. It is good also as expressing a relationship.
[0012]
Further, the printer has a function of performing printing in a mixed color obtained by mixing the printing colors of the two print heads, and the print designation color includes the primary color, the sub color, and the mixed color, The print command created by the command creating means may be able to specify a mixed color as the print color. In this way, when the printer has a function of printing with mixed colors, it is possible to specify mixed colors as printing colors and perform printing with mixed colors, so that variations in printing colors can be expanded.
[0013]
The print data acquired by the data acquisition means is monochrome print data,
Color adding means for adding the print designated color to the acquired single color print data may be provided, and the command creating means may create the print command based on the print data to which the print designated color is added. . In this way, the print command is created by adding the print designation color to the single color print data, so that it is possible to print a plurality of colors based on the single color print data.
[0014]
A printer can be constituted by the printer control apparatus of the present invention and a printer controlled by the printer control apparatus.
[0015]
Further, the POS system including the printer control device of the present invention and the printer capable of printing in a plurality of colors controlled by the printer control device, the printer control device is a product input from a predetermined input device. A POS application execution unit that aggregates sales information based on the information and outputs print data for receipt printing, and the data acquisition unit acquires print data for receipt printing output from the POS application execution unit It is good as well.
[0016]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is an overall configuration diagram of a POS system according to an embodiment of the present invention. As shown in the figure, the POS system of this embodiment includes a host device 10. Connected to the host device 10 are a printer 12 for receipt printing, an input device (for example, a barcode reader) 14 for inputting a product code, a display device 16 for screen display, and the like. In this embodiment, the printer 12 is an ink jet printer capable of two-color printing, and prints a receipt under the control of the host device 10.
[0017]
The host device 10 is configured by a computer system, and the printer 12 in the host device 10 is controlled by a printer driver OLE for Retail POS (hereinafter referred to as OPOS) that runs on an OS such as Windows (trade name). It is. The OPOS provides a POS application program 24 running on the OS with a model-independent interface with peripheral devices such as the printer 12 and the input device 14. In order to realize such a function, a device control object (CO) 20 corresponding to each device category and a service object (SO) 22 corresponding to each device model are provided on the OPOS.
[0018]
The POS application program 24 totals the sales data based on the product code of the product input from the input device 14, and outputs print data to print the totaled result as a receipt. The print data output from the POS application program 24 is delivered to the printer CO 20, and further delivered from the CO 20 to the SO 22 corresponding to the model of the printer 12. The SO 22 processes this print data, creates a print command according to the command specification of the printer 12, and transmits it to the printer 12 via the OS 26. As described above, the SO 22 has a role of absorbing the difference of each device (printer in this example) for each model and configuring the POS application program 24 as a program independent of the device model.
[0019]
The printer 12 in this embodiment is configured to interpret and execute two types of print commands, a text print command and an image print command. The text print command is a command for performing text printing, and the image print command is a command for performing image printing of a bit image. In the present embodiment, image data registered in advance in the printer 12 as a print target can be specified in the image print command. In both print commands, the print color is not designated by a specific color, but is designated by the first color or the second color. If the print color is not particularly designated, the first color is designated. The color is assumed to be specified. However, in the present invention, it is not essential to use both text and image print commands, and only one print command may be used.
[0020]
FIG. 2 is a functional block diagram of the printer 12. As shown in the figure, the printer 12 includes a central control unit 50, a reception unit 52, and a command analysis unit 54. The central control unit 50 analyzes the command and data received by the receiving unit 52 from the host device 10 via the interface unit 62 by the command analyzing unit 54, and executes processing according to the received command. The central control unit 50 and the command analysis unit 54 are realized by the CPU 60 executing a predetermined control program.
[0021]
The CPU 60 is connected to a RAM 64, a ROM 66, a first head control unit 68, a second head control unit 70, and the like.
The RAM 64 is provided with a reception buffer 72, a first print buffer 74, and a second print buffer 76. The reception buffer 72 stores commands and data received by the reception unit 52 from the host device 10. The first print buffer 74 and the second print buffer 76 store print data for printing by the first print head 78 and the second print head 80, respectively, in a bit data format.
In addition to the program executed by the CPU 60, the ROM 66 stores data such as bit pattern data of each character and image data of a logo mark.
A first print head 78 and a second print head 80 are connected to the first head controller 68 and the second head controller 70, respectively. The first print head 78 and the second print head 80 are printed in the first print buffer 74 and the second print buffer 76 under the control of the first head control unit 68 and the second head control unit 70, respectively. Print according to the data.
The first print head 78 and the second print head 80 are provided with an ink color detection unit 82. The ink color detection unit 82 determines the ink color of the ink cartridges mounted on the first print head 78 and the second print head 80 (that is, the print color of each print head 78, 80), and the central control unit 50. Notify
[0022]
FIG. 3 is an enlarged perspective view showing a print head portion including the first print head 78 and the second print head 80, and FIG. 4 is a cross-sectional view taken along the line IV-IV in FIG. . As shown in FIG. 3, the carriage 83 is provided with ink cartridge mounting portions 84 and 86 corresponding to the first print head 78 and the second print head 80, respectively. Is mounted with an ink cartridge 88 for containing ink.
[0023]
Further, as shown in FIG. 4, micro switches 90 having contacts 90a, 90b, 90c are provided on the bottom surfaces of the ink cartridge mounting portions 84, 86, respectively. The micro switch 90 is connected to the ink color detection unit 82. A recess 92 is provided on the bottom surface of the ink cartridge 88. The concave portion 92 is formed at a position corresponding to one or both of the contacts 90 a and 90 b of the microswitch 90 according to the ink color of the ink cartridge 88. Therefore, when any color ink cartridge 88 is mounted, one or both of the contacts 90a and 90b of the microswitch 90 are pressed and turned on corresponding to the formation position of the recess 92 corresponding to the ink color. It becomes. Therefore, the ink color detection unit 82 can detect the ink color of the ink cartridge 88 mounted on each ink cartridge mounting unit 84, 86 based on the on / off state of the contacts 90 a, 90 b of the microswitch 90. .
[0024]
The contact 90c of the micro switch 90 is for detecting whether or not the ink cartridge 88 is mounted. That is, when the ink cartridge 88 is not mounted, the contact 90c is not pressed down and is kept off, so that it can be determined that the ink cartridge 88 is not mounted. However, the concave portion 92 of the ink cartridge is not provided corresponding to both the contacts 90b and 90c, and it may be determined that the ink cartridge 88 is not mounted when both the contacts 90a and 90b are not pressed. In this case, the contact 90c is not necessary.
[0025]
The above-described method for detecting the ink color of the ink cartridge 88 is an example, and the ink color may be detected by another method.
[0026]
Referring to FIG. 2 again, the central control unit 50 stores print data in the first print buffer 74 and the second print buffer 76 based on the print command analyzed by the command analysis unit 54. That is, bit pattern data of a character to be printed (in the case of a text print command) or an image (in the case of an image print command) is read from the ROM 66, and the first color is designated when the print color designated by the print command is the first color. The data is stored in the print buffer 74 and in the second print buffer 76 in the case of the second sub color. Therefore, in the present embodiment, when the first color is designated by the print command, the ink color of the first print head 78 (hereinafter referred to as the first ink color) is designated when the second color is designated. In this case, printing is performed in the ink color of the second print head 80 (hereinafter referred to as the second ink color). Thus, the first color and the second color specified as the print colors by the print command specify the print head to be printed in accordance with the print command.
[0027]
By the way, in the present embodiment, the POS application program 24 designates the print color of the receipt as the primary color or the secondary color. However, it is considered that the main color is designated when the print color is not designated. The system according to the present embodiment has a function (hereinafter referred to as a color setting function) that can set the printing color of the printer 12 corresponding to the primary color and the secondary color specified by the POS application program 24 as the printing color.
[0028]
FIG. 5 is a functional block diagram of the host device 10 for realizing the color setting function. As shown in the figure, the SO 22 includes a data processing unit 30, a command output unit 32, and a color information storage unit 34. The color information storage unit 34 is provided on a rewritable nonvolatile storage device such as a hard disk device or an EEPROM. The data processing unit 30 refers to the color correspondence information stored in the color information storage unit 34 based on the print data delivered from the CO 20, and prints the print data in the first color or the second color. Create a print command for. The created print command is transmitted to the printer 12 by the command output unit 32.
[0029]
FIG. 6 shows an example of the contents of the color correspondence information. FIG. 7 is a flowchart showing processing executed by the data processing unit 30 and the command transmission unit 32 with reference to the color correspondence information.
[0030]
As shown in FIG. 6, the color correspondence information includes that the primary color and the secondary color are the first ink color (that is, the ink color of the ink cartridge 88 mounted corresponding to the first print head 78) and the second ink, respectively. This represents the correspondence relationship between the colors (that is, the ink colors of the ink cartridge 88 mounted corresponding to the second print head 80).
[0031]
As shown in FIG. 7, when print data is output from the POS application program 24 (S100), the print color (primary color or sub color) designated by the print data is determined (S102). Then, referring to the color correspondence information, the ink color corresponding to the determined print color is acquired (S104, S106). Next, it is determined whether the acquired ink color is the first ink color or the second ink color (S108). If the acquired ink color is the first ink color, a print command specifying the first color as the print color is issued. If the ink color is the second ink color, a print command designating the second color as the print color is created (S110, S112). The print command created in this way is transmitted to the printer 12 by the command transmission unit 32 (S114).
[0032]
The color correspondence information described above can be set by the user through the color information setting unit 36. The color information setting unit 36 is realized by a predetermined setting program installed in the SO22. When this setting program is activated, a color setting screen 200 as shown in FIG. 8 is displayed on the display device 16 of the host device 10, for example.
[0033]
As shown in the figure, the color setting screen 200 includes a paper width setting field 202, a primary color and secondary color ink color display field 204, an "update ink cartridge information" button 206, and a "change primary / sub color" button. 208 and an “OK” button 210 are provided.
[0034]
When an “ink cartridge information update” button 206 is clicked on the color setting screen 200, a predetermined ink information request command is transmitted to the printer 12. When the printer 12 receives this ink information request command, the ink color detection unit 82 determines how many ink cartridges 88 are attached to the first print head 78 and the second print head 80 (that is, the first ink color and The second ink color is detected), and ink color information indicating the detection result is notified to the host device 10. Based on the color correspondence information and the ink color information notified from the printer 12, the host device 10 specifies ink colors corresponding to the primary color and the secondary color and displays them in the ink color display column 204. That is, it is possible to determine whether the primary color and the secondary color correspond to the first or second ink color based on the color correspondence information, and the actual color of the first and second colors can be determined based on the notified ink color information. Therefore, the ink color corresponding to the primary color and the secondary color can be specified from these pieces of information. The display in the ink color display field 204 allows the user to know how many colors are actually printed as the main color and the sub color specified as the print colors in the POS application program 24. Note that an ink information request command may be automatically transmitted when the setting program is started to acquire the current first ink color and second ink color.
[0035]
When the “change main color / sub color” button 208 is clicked, the ink color of the main color and the sub ink color displayed in the ink color display field 204 are switched. When the “primary color / subcolor” button 208 is used to appropriately set the primary ink color and the secondary ink color, and the “OK” button 210 is clicked, the primary color, the secondary color, and the first ink color are clicked. The content of the color correspondence information is updated so that the correspondence relationship with the second ink color is as displayed in the ink color display field 204. That is, for example, if the first ink color is black and the second ink color is blue, and the main color is set to blue and the sub color is set to black on the screen, the primary color is set to the primary color in the color correspondence information. The first ink color is recorded in association with the two ink colors and the sub color. Thus, the user can easily set the color correspondence information on the color setting screen 200. Then, according to the set color correspondence information, printing is performed with ink colors corresponding to the primary color and the secondary color.
[0036]
As described above, according to the present embodiment, the user can set print colors corresponding to the primary color and the secondary color in the host device 10. For this reason, the receipt can be printed in a desired color such as a corporate color of the store, for example, and thereby an effect of impressing the customer as an image color of the store can be expected.
[0037]
In this embodiment, since the host device 10 performs processing for associating the primary color and the secondary color with the ink color in the printer driver SO22, the user can perform the above printing without making any changes to the POS application program 24. Color settings can be made. Therefore, according to the present embodiment, it is possible to issue a receipt printed in a color desired by the user without placing an economic burden such as program exchange on a store that is a user of the POS system.
[0038]
In general, the print data output by the POS application program 24 is often designated as the main color as the print color. In a two-color ink jet printer such as the printer 12, the ink color corresponding to the main color is fixed, so that only the ink of this color tends to decrease unilaterally, and the ink of the color corresponding to the sub-color Is hard to decrease. For this reason, the ink corresponding to the sub-color is left to be left attached to the printer 12 for a long period of time, leading to an increase in ink viscosity and alteration of the ink composition, which may cause troubles such as clogging of the print head. There is a case. On the other hand, in this embodiment, the user can designate ink colors corresponding to the primary color and the secondary color, so that the two colors of ink are used more frequently than before. Occurrence of troubles such as clogging of the print head can be prevented.
[0039]
Next, a second embodiment of the present invention will be described. The system according to the present embodiment has the same configuration as that shown in FIGS. 1 to 5 except that the printer 12 has not only the first ink color and the second ink color but also the first ink color and the second ink color. It has a function of performing printing in three colors including mixed colors by simultaneous printing.
[0040]
In the print command, the print color is designated by the first color, the second color, or the third color (if the print color is not designated, it is considered that the first color is designated). When the third color is designated, the printer 12 stores the print data in both the first print buffer 74 and the second print buffer 76, so that the first ink color and the second ink color are stored. Realize mixed color printing by simultaneous printing. In the color correspondence information, a mixed color can be designated in addition to the first ink color and the second ink color corresponding to the primary color and the secondary color. Then, a print command is generated by converting the print color of the print data output from the POS application program 24 into the first, second, or third color based on the color correspondence information.
[0041]
FIG. 9 shows an example of a color setting screen 300 for setting color correspondence information in the present embodiment. As shown in the figure, in the color setting screen 300, a color mixture designation field 302 is further added to the color setting screen 200 of FIG. When use of a mixed color is specified in the mixed color specification field 302 and the “OK” button 110 is clicked, the mixed color is stored in association with the main color in the color correspondence information.
[0042]
As described above, in the present embodiment, the printer 12 can print in mixed colors, and the user can specify mixed colors as print colors. For this reason, the choice of the color which can be used increases and the variation of a receipt printing color will spread.
[0043]
Next, a third embodiment of the present invention will be described. In the system of this embodiment, in the second embodiment, the POS application program 24 outputs single color print data, and a predetermined color addition process is performed on the single color print data, thereby printing in a plurality of colors. Can be performed.
[0044]
In the present embodiment, in the text print command, the character color, the background pattern / background color of the character can be specified, and examples of the background pattern include “shaded”, “hatched” (hatching), “Solid” can be designated, and the density of the pattern for each background pattern can be designated, for example, “dark”, “medium”, and “light”. Also, the print data delivered from the POS application program 24 to the printer CO 20 has print data and images for text (for example, character data such as product names and prices to be printed on receipts) according to the data format. It can be distinguished from print data such as logo marks.
[0045]
In the present embodiment, the color information storage unit 34 stores color additional information for designating the content of the color addition processing in addition to the color correspondence information of the above embodiment. FIG. 10 shows an example of the content of color additional information. As shown in the figure, the color additional information includes items such as an image print color, a text print color, and a background.
[0046]
(1) Image print color: Designates the print color of image data such as a store logo mark printed on a receipt as a primary color, a secondary color, or a mixed color.
(2) Text printing color:
1) Color setting method: Specify whether the text is printed in a fixed color or alternately changed in units of lines.
2) Fixed color: Designate the main color, sub color, or mixed color as the print color when printing with fixed color.
3) Alternating color: Designate a combination of colors when changing colors in units of rows as two colors of primary color, secondary color, and mixed color.
4) Line unit: When changing the color in line units, specify the number of lines to change the color every other line. For example, when the value of the line unit is “2”, as shown in FIG. 11, two lines where the color addition process is performed and two lines where the color addition process is not performed are alternately repeated.
(3) Background
1) Background presence / absence: Specifies whether or not background printing is performed.
2) Background color: Designate the background print color as the primary color, secondary color, or mixed color.
3) Pattern: Designate the background pattern as, for example, shading, diagonal lines, or solid painting.
4) Background density: Specify the density of the background pattern in three levels: dark, medium, or light.
[0047]
However, the configuration of the color additional information is merely an example, and any configuration that can specify a color printing mode can be used. For example, instead of specifying a detailed color for text as in the above example, it is also possible to specify only the print colors of the image and text.
[0048]
FIG. 12 is a flowchart showing the contents of processing by the data processing unit 30 and the command output unit 32 in the present embodiment. As shown in the figure, when print data is output from the POS application program 24 (S150), it is determined whether the print data is text or image (S152), and the print data is text. In this case, color addition processing is performed based on the color addition information (S154).
[0049]
FIG. 13 is a flowchart showing details of the color addition processing performed in S154. As shown in the figure, first, an index i indicating a processing target row is initialized to “1” (S200). Then, based on the text print color content of the color additional information, it is determined whether the print color of the text in the i-th line is the primary color, the sub color, or the mixed color (S202). As a result, if it is a primary color or a secondary color, an ink color (first ink color or second ink color) corresponding to the primary color or the secondary color is acquired with reference to the color additional information (S204, S206). In response, a text print command is created using the first color or the second color as the print color (S208). On the other hand, if the text print color of the color additional information is a mixed color, a text print command using the third color as the print color is created (S210).
[0050]
Next, based on the color additional information, it is determined whether background printing is designated (S212). If it is designated, it is determined whether the background color is a primary color, a sub color, or a mixed color. (S214). As a result, if it is a primary color or a secondary color, an ink color corresponding to the primary color or the secondary color is acquired with reference to the color additional information, and the first color or the second color is set as the background color accordingly. (S216, S218). On the other hand, if the background color is a mixed color, the third color is set as the background color (S220). Then, a designation for printing the background represented by the background color and the background pattern / density of the color additional information is added to the created print command (S222).
[0051]
Next, it is determined whether or not the i-th row is the last row (S224). If it is not the last row, “1” is added to i (S226), and the process returns to S202. On the other hand, if the i-th row is the last row, the process returns to the flowchart of FIG.
[0052]
On the other hand, if the print data is image print data in S152 of FIG. 12, it is determined based on the color additional information whether the print color of the image data is a primary color, a sub color, or a mixed color (S156). ). As a result, if the color is the primary color or the secondary color, the ink color corresponding to the primary color or the secondary color is obtained with reference to the color additional information (S158, S160), and the first color or the second color is accordingly obtained. An image print command with the print color is created (S162). On the other hand, if the print color of the image data is a mixed color, an image print command using the third color as the print color is created (S164).
Then, the print command created in S154, S162, or S164 is transmitted to the printer 12 (S166). As described with reference to FIG. 2, the printer 12 performs color processing in line units as exemplified in FIG. 11 by performing print processing in accordance with the print command transmitted from the host device 10. Easy-to-read receipts are issued.
[0053]
Next, setting of color additional information will be described. In the present embodiment, the setting program configuring the color information setting unit 36 causes the display device 16 to display the color setting screen 200 and the color addition setting screen 300 shown in FIG. A color setting screen 200 is displayed at the initial start of the setting program, and the display screen is switched to the color addition setting screen 300 shown in FIG. 14 by selecting a tab at the top of each setting screen.
[0054]
As shown in FIG. 14, the color addition setting screen 300 is provided with a setting field corresponding to each item of color additional information, and the contents of the color additional information can be designated for each item. When the “OK” button 210 is clicked, the contents set on the color setting screen 200 and the color addition setting screen 300 are stored in the color information storage unit 34 as color correspondence information and color additional information, respectively. .
[0055]
After the color correspondence information and the color additional information are set in this way, when print data is output from the POS application program 24, the color addition process is executed as described above according to the contents of the set color additional information. Further, according to the contents of the color correspondence information, the printer 12 performs printing after the print colors corresponding to the primary color and the secondary color are designated.
[0056]
As described above, in the present embodiment, the primary color, secondary color, and mixed color designations are added to the single color print data output from the POS application program 24 according to the color additional information, and further, color support is provided. A print command created by associating the print color with the primary color and the sub color according to the information is transmitted to the printer 12. For this reason, even when the POS application program 24 supports only a single color printer, color printing in a desired mode set by the user can be performed without changing the program.
[0057]
In addition, since the color addition processing to the text is performed in units of print lines, the print contents can be clearly distinguished in units of lines, and in this respect, the receipt is easy to see. In other words, the correspondence between the product name and the amount of money printed on the same line of the receipt becomes clear, and the effect of preventing misreading such as reading the product name and the amount of money by shifting one line can be obtained.
[0058]
In addition, it is possible to specify the mode of color addition separately from the image and text. For this reason, it is possible to issue easy-to-view receipts printed in a plurality of colors for the text portion while printing the logo mark of the store in a color that matches the store's request.
[0059]
In each of the above embodiments, the printer 12 is capable of printing two colors or three colors including mixed colors. However, the present invention is not limited to this, and the printer 12 can print in four colors or more. Is also applicable. That is, regardless of the number of colors that the printer 12 can print, the print color specified by the print data is associated with the color that can be printed by the printer 12, and a print command for printing with the associated color is displayed. Just create it.
[0060]
Further, in each of the above embodiments, the case where the present invention is applied to receipt printing in the POS system has been described. However, the present invention is not limited to this, and a single color can be printed by a printer capable of printing a plurality of colors. The present invention can be widely applied when printing a plurality of colors based on a print command.
[0061]
【The invention's effect】
As described above, according to the present invention, the user can set the actual print color for the print color designated by the print data. For this reason, for example, when the print color of the print data output by the application program is designated by the primary color and the secondary color, the primary color and the secondary color are set to any color that can be printed by the printer. Thus, the user can freely set the color without changing the application program.
[Brief description of the drawings]
FIG. 1 is an overall configuration diagram of a POS system according to an embodiment of the present invention.
FIG. 2 is a functional block diagram of a printer.
FIG. 3 is an enlarged perspective view showing a print head unit including first and second print heads.
4 is a cross-sectional view of the print head unit of FIG. 3;
FIG. 5 is a functional block diagram of a host device for realizing a color setting function in the present embodiment.
FIG. 6 is a diagram illustrating an example of content of color correspondence information.
FIG. 7 is a flowchart showing processing executed by a data processing unit and a command transmission unit with reference to color correspondence information.
FIG. 8 is a diagram illustrating an example of a color setting screen for setting color correspondence information.
FIG. 9 shows an example of a color setting screen for setting color correspondence information in the second embodiment of the present invention.
FIG. 10 is a diagram showing an example of content of color additional information in the third embodiment of the present invention.
FIG. 11 is a diagram illustrating a print example of a receipt according to the present embodiment.
FIG. 12 is a flowchart showing the contents of processing by a data processing unit and a command output unit in the present embodiment.
13 is a flowchart showing details of color addition processing in the flowchart of FIG.
FIG. 14 is a diagram showing an example of a color addition setting screen for setting color addition information in the present embodiment.
[Explanation of symbols]
10 Host device
12 Printer
14 Input device
78 First print head
80 Second print head
82 Ink color detector

Claims (12)

複数の色で印刷可能なプリンタを制御するプリンタ制御装置であって、
前記プリンタに印刷させるべき印刷データを取得するデータ取得手段と、
前記印刷データの印刷色として指定され得る一又は複数の印刷指定色と、前記プリンタが印刷可能な複数の色との対応関係を表すカラー対応情報を記憶する対応情報記憶手段と、
前記カラー対応情報に従って、前記取得した印刷データの印刷指定色に前記プリンタが印刷可能な何れかの色を対応付け、前記印刷データを当該対応付けた色で前記プリンタにより印刷するための印刷コマンドを作成するコマンド作成手段と、
該作成した印刷コマンドを前記プリンタへ送信する送信手段とを備えることを特徴とするプリンタ制御装置。
A printer control device for controlling a printer capable of printing in a plurality of colors,
Data acquisition means for acquiring print data to be printed by the printer;
Correspondence information storage means for storing color correspondence information representing a correspondence relationship between one or a plurality of print designation colors that can be designated as print colors of the print data and a plurality of colors that can be printed by the printer;
In accordance with the color correspondence information, any printable color of the printer is associated with the print designation color of the acquired print data, and a print command for printing the print data with the associated color by the printer Command creation means to create;
A printer control apparatus comprising: a transmission unit that transmits the created print command to the printer.
請求項1記載のプリンタ制御装置において、
前記カラー対応情報をユーザが設定するための設定手段を備えることを特徴とするプリンタ制御装置。
The printer control device according to claim 1.
A printer control apparatus comprising: setting means for a user to set the color correspondence information.
請求項1または2記載のプリンタ制御装置において、
前記プリンタは、互いに異なる色で印刷可能な複数の印刷ヘッドを備えており、
前記カラー対応情報は、前記印刷指定色と前記印刷ヘッドとの対応関係を表し、
前記コマンド作成手段が作成する印刷コマンドは、当該印刷コマンドに応じて印刷を行なうべき印刷ヘッドを特定する情報に基づいて印刷色を指定することを特徴とするプリンタ制御装置。
The printer control device according to claim 1 or 2,
The printer includes a plurality of print heads capable of printing in different colors,
The color correspondence information represents a correspondence relationship between the print designation color and the print head,
The printer control apparatus according to claim 1, wherein the print command created by the command creation means designates a print color based on information for specifying a print head to be printed according to the print command.
請求項3記載のプリンタ制御装置において、
前記印刷ヘッドの夫々の印刷色を表すヘッド色情報を取得するヘッド色情報取得手段と、
前記取得したヘッド色情報と前記カラー対応情報とに基づいて、前記印刷指定色と前記印刷ヘッドの印刷色との対応関係を表示する表示手段とを備えることを特徴とするプリンタ制御装置。
The printer control device according to claim 3.
Head color information acquisition means for acquiring head color information representing each print color of the print head;
A printer control apparatus comprising: a display unit configured to display a correspondence relationship between the print designation color and the print color of the print head based on the acquired head color information and the color correspondence information.
請求項3または4記載のプリンタ制御装置において、
前記プリンタは2つの前記印刷ヘッドを備えており、
前記印刷指定色は主色および副色を含み、
前記カラー対応情報は、前記主色および副色と、前記2つの印刷ヘッドとの対応関係を表すことを特徴とするプリンタ制御装置。
The printer control device according to claim 3 or 4,
The printer includes two print heads,
The print designation color includes a main color and a sub color,
The printer control apparatus, wherein the color correspondence information represents a correspondence relationship between the primary color and the secondary color and the two print heads.
請求項5記載のプリンタ制御装置において、
前記プリンタは、前記2つの印刷ヘッドの印刷色を混ぜた混色での印刷を行なう機能を有しており、
前記印刷指定色は、前記主色、前記副色、および前記混色を含み、
前記コマンド作成手段が作成する印刷コマンドは、印刷色として混色を指定可能であることを特徴とするプリンタ制御装置。
The printer control device according to claim 5.
The printer has a function of performing printing in a mixed color obtained by mixing the printing colors of the two print heads,
The print designation color includes the primary color, the secondary color, and the mixed color,
The printer control apparatus according to claim 1, wherein the print command created by the command creating means can specify a mixed color as a print color.
請求項1乃至6のうち何れか1項記載のプリンタ制御装置であって、
前記データ取得手段が取得する印刷データは単色の印刷データであり、
前記取得した単色の印刷データに前記印刷指定色を付加するカラー付加手段を備え、
前記コマンド作成手段は、当該印刷指定色が付加された印刷データに基づいて前記印刷コマンドを作成することを特徴とするプリンタ制御装置。
The printer control device according to any one of claims 1 to 6,
The print data acquired by the data acquisition means is monochrome print data,
Color adding means for adding the print designated color to the acquired monochrome print data;
The printer control apparatus, wherein the command creation unit creates the print command based on print data to which the print designated color is added.
請求項1乃至7のうち何れか1項記載のプリンタ制御装置と、このプリンタ制御装置により制御される前記プリンタとにより構成されたプリンタシステム。  8. A printer system comprising the printer control device according to claim 1 and the printer controlled by the printer control device. 請求項1乃至7のうち何れか1項記載のプリンタ制御装置と、このプリンタ制御装置により制御される複数色での印刷が可能な前記プリンタとを含み、前記プリンタ制御装置は、所定の入力装置から入力された商品情報に基づいて販売情報を集計してレシート印刷用の印刷データを出力するPOSアプリケーション実行部を備え、前記データ取得手段は、前記POSアプリケーション実行部から出力されるレシート印刷用の印刷データを取得することを特徴とするPOSシステム。  8. A printer control device according to claim 1, and the printer capable of printing in a plurality of colors controlled by the printer control device, wherein the printer control device is a predetermined input device. A POS application execution unit that aggregates sales information based on the product information input from and outputs print data for receipt printing, and the data acquisition unit is for receipt printing output from the POS application execution unit. A POS system characterized by acquiring print data. 複数の色で印刷可能なプリンタを制御するプリンタ制御方法であって、
前記プリンタに印刷させるべき印刷データを取得するステップと、
前記印刷データの印刷色として指定され得る一又は複数の印刷指定色の夫々と、前記プリンタが印刷可能な複数の色のうち何れかの色との対応関係を表すカラー対応情報に従って、前記取得した印刷データの印刷指定色に前記プリンタが印刷可能な何れかの色を対応付け、前記印刷データを前記対応付けた色で前記プリンタにより印刷するための印刷コマンドを作成するステップと、
該作成した印刷コマンドを前記プリンタへ送信するステップとを備えることを特徴とするプリンタ制御方法
A printer control method for controlling a printer capable of printing in a plurality of colors,
Obtaining print data to be printed by the printer;
The acquired according to color correspondence information representing a correspondence relationship between one or a plurality of print designation colors that can be designated as print colors of the print data and any one of a plurality of colors printable by the printer Associating any printable color of the printer with a print designated color of print data, and creating a print command for printing the print data with the associated color by the printer;
The printer control method characterized by comprising the steps of transmitting a print command that the created to the printer.
請求項10記載のプリンタ制御方法の各ステップをコンピュータに実行させるためのものであることを特徴とするプログラム。 A program for causing a computer to execute each step of the printer control method according to claim 10. 請求項11記載のプログラムを記録したことを特徴とするコンピュータ読み取り可能な記録媒体。 A computer-readable recording medium on which the program according to claim 11 is recorded.
JP2002074891A 2002-03-18 2002-03-18 Printer control apparatus, printer control method, program for causing computer to execute this method, recording medium recording this program, printer system, POS system Expired - Fee Related JP4062415B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002074891A JP4062415B2 (en) 2002-03-18 2002-03-18 Printer control apparatus, printer control method, program for causing computer to execute this method, recording medium recording this program, printer system, POS system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002074891A JP4062415B2 (en) 2002-03-18 2002-03-18 Printer control apparatus, printer control method, program for causing computer to execute this method, recording medium recording this program, printer system, POS system

Publications (2)

Publication Number Publication Date
JP2003272049A JP2003272049A (en) 2003-09-26
JP4062415B2 true JP4062415B2 (en) 2008-03-19

Family

ID=29204167

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002074891A Expired - Fee Related JP4062415B2 (en) 2002-03-18 2002-03-18 Printer control apparatus, printer control method, program for causing computer to execute this method, recording medium recording this program, printer system, POS system

Country Status (1)

Country Link
JP (1) JP4062415B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4492188B2 (en) * 2004-04-06 2010-06-30 セイコーエプソン株式会社 POS terminal control method, receipt print data generation method, program, printing apparatus, merchandise sales data processing apparatus, and POS system
JP5533549B2 (en) * 2010-10-20 2014-06-25 ブラザー工業株式会社 Application software, printing system, and recording medium

Also Published As

Publication number Publication date
JP2003272049A (en) 2003-09-26

Similar Documents

Publication Publication Date Title
US20080123142A1 (en) Colorization Process And System And User Interface For Setting Colorization Information
US20040105126A1 (en) Method of printing, program for realizing the same, recording medium, apparatus for printing, printer driver, merchandise sales data processing device, and point-of-sale system
CN103223792A (en) Image processing device, printing device, and image processing method
KR100550714B1 (en) Apparatus and method for two-color printing based on single color data
JP2004145861A (en) Printing method, program to realize the printing method, recording medium, printer, printer driver, pos terminal, and pos system
JP6380159B2 (en) Information processing apparatus, information processing apparatus display method and program
JP2014191552A (en) Printing system and information processor
US10346111B2 (en) Print image processing device, print image processing system, and display method of print image selection screen
EP0650841B1 (en) Printing apparatus
JP4062415B2 (en) Printer control apparatus, printer control method, program for causing computer to execute this method, recording medium recording this program, printer system, POS system
US20050007606A1 (en) Printing apparatus, display method thereof, printing system, display method thereof, program, and memory medium
JP6736359B2 (en) Recording apparatus and recording method
CN101628508B (en) Documentation apparatus and tape printing apparatus
JP4241101B2 (en) Printing system, printer, printer driver, printing control method, program, and recording medium recording the program
US7303343B2 (en) Printing system, method for processing data in printing system, program, and storage medium
US20060215196A1 (en) Print control method in a print control apparatus that controls a print apparatus provided with a plurality of paper-feed devices
JP2003266804A (en) Printer, printer controlling method, apparatus and method for setting coloring information, program for executing these methods by computer and recording medium with the program recorded
CN101154148A (en) Image forming system
JP4341326B2 (en) Printing method, printing apparatus, printer driver, merchandise sales data processing apparatus, and POS system
JP4062413B2 (en) Printer control apparatus, printer control method, program for causing computer to execute printer control method, printer system, POS system
JP3566513B2 (en) Information processing apparatus, print setting method, and storage medium
JP2004013630A (en) Printer, printer driver, printing system, pos system, control method for printer, generation method of print data, program for impementing the methods by computer, and recording medium for the program
JP2003260819A (en) Printer controller, printer control method, program for making computer execute printer control method, printer system and pos system
US8736913B2 (en) Image processing apparatus, control method therefor and program for dividing instructions of a scan job into separate changeable and unchangeable scan job tickets
JP2008059504A (en) Print controller, print control method, print control program, recording medium, and printer having print controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041221

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20070402

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070518

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070529

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070724

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20070724

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20071205

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071218

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110111

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110111

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120111

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120111

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130111

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130111

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140111

Year of fee payment: 6

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees