JP2004133778A - Method for controlling printer, program for realizing it, recording medium, printer driver, merchandise sales data processor and pos system - Google Patents

Method for controlling printer, program for realizing it, recording medium, printer driver, merchandise sales data processor and pos system Download PDF

Info

Publication number
JP2004133778A
JP2004133778A JP2002298994A JP2002298994A JP2004133778A JP 2004133778 A JP2004133778 A JP 2004133778A JP 2002298994 A JP2002298994 A JP 2002298994A JP 2002298994 A JP2002298994 A JP 2002298994A JP 2004133778 A JP2004133778 A JP 2004133778A
Authority
JP
Japan
Prior art keywords
character string
data
image
setting
print
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.)
Granted
Application number
JP2002298994A
Other languages
Japanese (ja)
Other versions
JP4284963B2 (en
Inventor
Masahiro Minowa
箕輪 政寛
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 JP2002298994A priority Critical patent/JP4284963B2/en
Priority to ES03021178T priority patent/ES2294234T3/en
Priority to DE60317438T priority patent/DE60317438T2/en
Priority to EP03021178A priority patent/EP1408465B1/en
Priority to US10/675,858 priority patent/US20050275894A1/en
Priority to CNB2003101010337A priority patent/CN100492423C/en
Publication of JP2004133778A publication Critical patent/JP2004133778A/en
Application granted granted Critical
Publication of JP4284963B2 publication Critical patent/JP4284963B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Cash Registers Or Receiving Machines (AREA)
  • Record Information Processing For Printing (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To quickly print image data even in using a low-speed interface as an interface between a host computer and a printer. <P>SOLUTION: In a method for controlling a printer 50, image data that have been already stored in the printer 50 are added to accounting print data generated on the basis of input information about merchandise sales and printed. A particular character string showing a printing position of the image data is retrieved from the accounting print data, and the particular character sting is extracted. Next, a line number specified by the extracted particular character string is acquired to generate an image addition setting command on the basis of the line number. Then, the accounting print data and the image addition setting command are transmitted to the printer 50. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、商品販売に関する入力情報に基づいて生成された会計処理印刷データに、既に記憶されている画像データを付加して印刷する印刷装置の制御方法、これを実現させるためのプログラム、記録媒体、プリンタドライバ、商品販売データ処理装置およびPOSシステムに関するものである。
【0002】
【従来の技術】
従来、スーパーやコンビニエンス・ストア等の小売業において利用されているPOSシステム(販売時点情報管理システム)では、商品販売に関する入力情報を取得するホストコンピュータと、レシートに印刷を行うための印刷装置とによってPOS端末が構成されている。この種のPOS端末としては、ホストコンピュータにより生成された会計処理印刷データを、印刷装置が受信し、当該会計処理印刷データに基づいて、レシート上に印刷を行う形態(例えば、特許文献1参照。)が一般的である(図17参照)が、近年では、この会計処理印刷データの他に、例えば店のロゴなどの画像データを印刷可能なものも知られている。
【0003】
【特許文献1】
特開2001−273560号公報(第4−7頁、第10−11図)
【0004】
【発明が解決しようとする課題】
ところで、このような会計処理印刷データと画像データとを同一のレシート上に印刷するPOS端末においては、ホストコンピュータ内に画像データを格納しておき、この画像データとホストコンピュータ内で生成された会計処理印刷データとをコンバインした後、印刷装置にデータを送信している。しかしながら、ホストコンピュータと印刷装置とが低速インターフェースを用いて接続されている場合、データ伝送に時間がかかり、レシートの発行が遅れてしまうといった問題があった。このため、全体として処理効率が悪化し、顧客を待たせてしまうなど、業務に支障をきたしていた。
【0005】
本発明は、上記の問題点に鑑み、ホストコンピュータと印刷装置間のインターフェースとして低速インターフェースを用いた場合でも、迅速に画像データを印刷可能な印刷装置の制御方法、これを実現させるためのプログラム、記録媒体、プリンタドライバ、商品販売データ処理装置およびPOSシステムを提供することを目的とする。
【0006】
【課題を解決するための手段】
本発明の印刷装置の制御方法は、商品販売に関する入力情報に基づいて生成された会計処理印刷データに、既に印刷装置に記憶されている画像データを付加して印刷する印刷装置の制御方法であって、会計処理印刷データを取得する会計処理印刷データ取得工程と、会計処理印刷データから、画像データの印刷位置を示す特定文字列を検索し、当該特定文字列を抽出する文字列抽出工程と、抽出した特定文字列によって特定される行番号を取得する行番号取得工程と、取得した行番号に基づき、画像付加設定コマンドを生成する画像付加設定コマンド生成工程と、会計処理印刷データおよび画像付加設定コマンドを、印刷装置に送信する送信工程と、を備えたことを特徴とする。
【0007】
また、本発明の商品販売データ処理装置は、商品販売に関する入力情報に基づいて生成された会計処理印刷データに、既に記憶されている画像データを付加してレシート上に印刷を行う印刷装置と、印刷装置に対し、会計処理印刷データと、画像データを付加して印刷するための画像付加設定コマンドとを送信することにより、印刷装置を制御するホストコンピュータと、を備えた商品販売データ処理装置において、ホストコンピュータは、会計処理印刷データを生成する会計処理印刷データ生成手段と、会計処理印刷データから、画像データの印刷位置を示す特定文字列を検索し、当該特定文字列を抽出する文字列抽出手段と、抽出した特定文字列によって特定される行番号を取得する行番号取得手段と、取得した行番号に基づき、画像付加設定コマンドを生成する画像付加設定コマンド生成手段と、会計処理印刷データおよび画像付加設定コマンドを、印刷装置に送信する送信手段と、を有することを特徴とする。
【0008】
これらの印刷装置の制御方法および商品販売データ処理装置構成は、生成した会計処理印刷データの中から、画像データの印刷位置を示す特定文字列を抽出し、この特定文字列によって特定される行番号に基づいて画像付加設定コマンドを生成する。そして、会計処理印刷データと共に、印刷装置に送信する。印刷装置は、会計処理印刷データに、画像付加設定コマンドに基づいて画像データを付加し、レシート上に印刷するためのデータを生成する。このため、ホストコンピュータと印刷装置間のインターフェースとして低速インターフェースを用いた場合でも、迅速に画像データを印刷することができる。また、ホストコンピュータ側で画像データを付加するための付加設定コマンドを生成するため、印刷装置を直接操作することなくホストコンピュータにより画像データの付加設定を行うことができる。さらに、画像データの印刷位置が、画像付加設定コマンドに含まれるパラメータの一つである行番号で特定されるため、印刷装置は、容易に印刷位置を決定し、画像データの付加処理を行うことができる。特に、特定文字列を、レシート上に必ず印刷される文字列(例えば「領収証」、「合計金額」など)とすることで、レシート長に応じて、適切な位置に画像データが印刷されたレシートを発行することができる。
【0009】
この場合、特定文字列は、画像データの付加を開始する位置を示すスタート文字列、および画像データの付加を終了する位置を示すエンド文字列から成り、行番号取得工程では、スタート文字列およびエンド文字列によって特定される2つの行番号を取得することが好ましい。
【0010】
また、この場合、特定文字列は、画像データの付加を開始する位置を示すスタート文字列、および画像データの付加を終了する位置を示すエンド文字列から成り、行番号取得手段は、スタート文字列およびエンド文字列によって特定される2つの行番号を取得することが好ましい。
【0011】
これらの構成によれば、スタート文字列およびエンド文字列によって特定される領域に画像データを付加することができる。このため、レシート長に応じて、適切な領域に画像データが印刷されたレシートを発行することができる。
【0012】
この場合、印刷装置には、複数の画像データファイルが記憶されており、スタート文字列およびエンド文字列と、複数の画像データファイルの中から1の画像データファイルを指定するための画像指定データとを関連づけた定義テーブルを記憶する定義テーブル記憶工程と、定義テーブルから、文字列抽出工程によって抽出されたスタート文字列およびエンド文字列に関連する画像指定データを取得する画像指定データ取得工程と、を更に備え、画像付加設定コマンド生成工程では、取得した行番号および画像指定データに基づき、画像付加設定コマンドを生成することが好ましい。
【0013】
また、この場合、印刷装置には、複数の画像データファイルが記憶されており、スタート文字列およびエンド文字列と、複数の画像データファイルの中から1の画像データファイルを指定するための画像指定データとを関連づけた定義テーブルを記憶する定義テーブル記憶手段と、定義テーブルから、文字列抽出手段によって抽出されたスタート文字列およびエンド文字列に関連する画像指定データを取得する画像指定データ取得手段と、を更に備え、画像付加設定コマンド生成手段は、取得した行番号および画像指定データに基づき、画像付加設定コマンドを生成することが好ましい。
【0014】
これらの構成によれば、印刷装置には、複数の画像データファイルが記憶されており、画像付加設定コマンドは、複数の画像データファイルの中から1の画像データファイルを指定するための画像指定データに関するパラメータを含むため、当該画像指定データに関するパラメータを変化させることで種々の画像データを付加させることができる。したがって、多様なレシートを作成することができる。
【0015】
本発明のプログラムは、上記のいずれか1に記載の印刷装置の制御方法をコンピュータに実現させることを特徴とする。
【0016】
この構成によれば、ホストコンピュータと印刷装置間のインターフェースとして低速インターフェースを用いた場合でも、迅速に画像データを印刷可能なプログラムを提供することができる。
【0017】
本発明の記録媒体は、上記に記載のプログラムを記録したことを特徴とする。
【0018】
この構成によれば、ホストコンピュータと印刷装置間のインターフェースとして低速インターフェースを用いた場合でも、迅速に画像データを印刷可能なプログラムを記録した記録媒体を提供することができる。
【0019】
本発明のプリンタドライバは、上記に記載の印刷装置の制御方法をコンピュータに実現させることを特徴とする。
【0020】
この構成によれば、ホストコンピュータと印刷装置間のインターフェースとして低速インターフェースを用いた場合でも、迅速に画像データを印刷可能なプリンタドライバを提供することができる。また、プリンタドライバによって、上記の印刷装置の制御方法を実現することで、ホストコンピュータが例えば単色・テキストベースのアプリケーションであっても、アプリケーションを変更することなく、印刷装置によってカラー・グラフィックベースのレシートを発行することができる
【0021】
この場合、スタート文字列および/またはエンド文字列を設定する文字列設定工程を備えたことが好ましい。
【0022】
また、商品販売データ処理装置において、スタート文字列および/またはエンド文字列を設定する文字列設定手段を更に備えたことが好ましい。
【0023】
これらの構成によれば、印刷領域を特定するためのスタート文字列および/またはエンド文字列を設定することができるため、ユーザの好みに応じて印刷領域を任意に設定することができる。
【0024】
この場合、行番号取得工程において、スタート文字列の行番号またはスタート文字列より1行下の行番号のいずれを取得させるか、並びにエンド文字列の行番号またはエンド文字列より1行上の行番号のいずれを取得させるかを設定する行番号設定工程を更に備えたことが好ましい。
【0025】
また、この場合、行番号取得手段において、スタート文字列の行番号またはスタート文字列より1行下の行番号のいずれを取得させるか、並びにエンド文字列の行番号またはエンド文字列より1行上の行番号のいずれを取得させるかを設定する行番号設定手段を更に備えたことが好ましい。
【0026】
これらの構成によれば、印刷領域を特定するための行番号をどのように取得するか(すなわち、対象文字列を含む位置で特定するか含まない位置で特定するか)を設定することができるため、画像データの付加処理のバリエーションを拡げることができる。
【0027】
この場合、文字列設定工程によって設定されるスタート文字列および/またはエンド文字列と関連づけて、画像指定データを設定する画像指定データ設定工程を更に備えたことが好ましい。
【0028】
また、この場合、文字列設定手段によって設定されるスタート文字列および/またはエンド文字列と関連づけて、画像指定データを設定する画像指定データ設定手段を更に備えたことが好ましい。
【0029】
これらの構成によれば、スタート文字列および/またはエンド文字列と関連づけて、画像指定データを設定することができるため、ユーザの好みに応じて多様なレシートを作成することができる。
【0030】
上記において、印刷装置においてカラー印刷が可能である場合、画像データの印刷色を設定する印刷色設定工程を更に備え、画像付加設定コマンドは、印刷色を示すパラメータを含むことが好ましい。
【0031】
また、この場合、印刷装置は、主色と、当該主色以外の少なくとも1色の副色とによるカラー印刷が可能であって、且つ会計処理印刷データを主色によって印刷し、画像データを少なくとも1色の副色によって印刷することが好ましい。
【0032】
また、この場合、画像データの印刷色を設定する印刷色設定手段を更に備え、画像付加設定コマンドは、印刷色を示すパラメータを含むことが好ましい。
【0033】
これらの構成によれば、会計処理印刷データを主色によって印刷し、画像データを副色によって印刷するため、会計処理印刷データの見やすさを損ねることなく、画像データを付加することができる。また、カラー印刷が可能であるため、レシートの視認性を高めることができる。さらに、画像付加設定コマンドは、印刷色を示すパラメータを含むため、印刷色を示すパラメータを変化させることで、多様なレシートを作成することができる。
【0034】
この場合、文字列抽出手段と、行番号取得手段と、画像付加設定コマンド生成手段と、送信手段と、定義テーブル記憶手段と、画像指定データ取得手段とは、プリンタドライバによって提供されることが好ましい。
【0035】
これらの構成によれば、各手段がプリンタドライバによって提供されるため、プリンタドライバを組み込むだけで、ホストコンピュータ内の既存のアプリケーションを変更することなく、画像付加設定コマンドの生成・送信を行うことができる。
【0036】
この場合、プリンタドライバにおいて、文字列設定工程における設定事項と、行番号設定工程における設定事項と、画像指定データ設定工程における設定事項と、印刷色設定工程における設定事項とを設定するための設定画面を実行するユーティリティ実行プログラムを更に備えたことが好ましい。
【0037】
また、この場合、商品販売データ処理装置において、文字列設定手段による設定事項と、行番号設定手段による設定事項と、画像指定データ設定手段による設定事項と、印刷色設定手段による設定事項とは、プリンタドライバ内のユーティリティ実行プログラムによって実行される設定画面において設定されることが好ましい。
【0038】
これらの構成によれば、プリンタドライバは、各設定事項を設定するための設定画面を有するユーティリティ実行プログラムを備えているため、ユーザは設定画面の表示内容にしたがって容易に各設定事項を設定することができる。
【0039】
本発明のPOSシステムは、上記のいずれか1に記載の商品販売データ処理装置と、ネットワークを介して商品販売データ処理装置と接続され、当該商品販売データ処理装置を管理するPOSサーバと、によって構成されていることを特徴とする。
【0040】
この構成によれば、ホストコンピュータと印刷装置間のインターフェースとして低速インターフェースを用いた場合でも、迅速に画像データを印刷可能なPOSシステムを提供することができる。
【0041】
【発明の実施の形態】
以下、本発明の一実施形態に係る印刷装置の制御方法、これを実現させるためのプログラム、記録媒体、プリンタドライバ、商品販売データ処理装置およびPOSシステムについて、添付図面を参照しながら詳細に説明する。本発明は、ホストコンピュータにより、会計処理印刷データの中から、画像データの印刷位置を示す特定文字列を抽出し、この特定文字列によって特定される行番号に基づいて、会計処理印刷データに画像データを付加するための画像付加設定コマンドを生成する。そして、印刷装置では、この画像付加設定コマンドから取得した行番号に基づいて、画像データを会計処理印刷データに付加し、レシート上に印刷するためのレシート印刷データを生成する。
【0042】
すなわち、この構成により、ホストコンピュータと印刷装置間のインターフェースとして低速インターフェースを用いた場合でも、印刷装置により迅速に画像データを印刷可することができる。また、ホストコンピュータに組み込んだプリンタドライバによって画像付加設定コマンドの生成を行うことで、ホストコンピュータが例えば単色・テキストベースのアプリケーションであっても、アプリケーションを変更することなく、印刷装置によってカラー・グラフィックベースのレシートを発行することができる。また、印刷装置では、画像付加設定コマンドから行番号を取得することによって、容易に印刷位置を特定することができ、ひいては見栄えの良いレシートを作成することができるなどの作用・効果を奏するものである。
【0043】
そこで、以下、スーパーやコンビニエンス・ストア等の店舗にて利用され、オペレータによって入力された商品販売に関する入力情報に基づいてレシートを発行するPOSシステムを例に挙げて説明する。
【0044】
図1に示すように、本発明のPOSシステム10は、オペレータ(ユーザ)によって、主に商品に付されたバーコードが読み取られることにより入力情報を取得する複数の商品販売データ処理装置であるPOS端末20(1つのみ図示)と、ネットワークを介して当該POS端末20と相互に接続され、POS端末20に入力された入力情報の管理を行うPOSサーバ30とによって構成されている。
【0045】
POSサーバ30は、制御装置(CPU31)の他、ROM32やRAM33等のメモリを有し、ROM32内に記憶された制御プログラムにしたがって、RAM33内のバッファ39等に記憶された情報の処理を行う。特にRAM33内には、商品コードブロック35、商品名ブロック36、金額ブロック37、在庫ブロック38等からなる商品マスタを有しており、CPU31は、POS端末20より送信された入力情報に基づいて、商品マスタから商品コード、商品名、金額に関する情報を抽出し、レシート61への印刷およびPOS端末20のディスプレイ42の表示に用いる商品データを生成する。なお、「商品データ」とは、PC40で生成される会計処理印刷データの元となるデータであり、レシート61上に印刷される商品名やその金額等の商品情報が含まれるものである。
【0046】
POS端末20は、入力情報に基づき、POSサーバ30の商品データを参照して、レシート61上に印刷する会計処理印刷データ(商品情報の他、店舗名や電話番号、日付、顧客に対するメッセージなどを印刷するためのデータおよびコマンドを言う;図17参照)を生成したり、入力データをPOSサーバ30に登録する等の金銭登録処理をするPOSアプリケーション実行部41aを有するパーソナルコンピュータ(PC)40と、印刷データに基づいてレシート61上に印刷を行う印刷装置50(レシートプリンタ)とを備え、互いにコネクタ46,53を介して接続されている。PC40は、キーボード43による入力またはバーコードリーダ44によるバーコードの読み取りによって商品に関する情報(商品情報)や顧客60に関する情報(顧客情報)などの入力情報を取得する。また、カードリーダ45によって顧客60のクレジットカードや会員カードを読み取り、クレジット清算に関する情報や会員番号等の会員に関する情報を取得する。さらに、POSサーバ30から送信された商品データを元に生成した商品情報を表示するディスプレイ42を有し、顧客60に対して購入商品の金額等を提示する。
【0047】
また、PC40の制御は、ウィンドウズ(登録商標)等のOS上で稼働するプリンタドライバOLE for Retail POS(以下、OPOSという)により行われる。OPOSとは、OS上で稼働するPOSアプリケーション41aに対して、印刷装置50やバーコードリーダ44等の周辺デバイスとの機種依存性のないインターフェースを提供するものであり、デバイスのカテゴリ毎に対応したコントロールオブジェクト(CO)41bと、デバイスの機種毎に対応したサービスオブジェクト(SO)41cとによって構成されている。
【0048】
POSアプリケーション41aは、POSサーバ30から送信される商品データや入力情報に基づいてレシート61上に印刷するための会計処理印刷データを生成するが、この会計処理印刷データは、OS41dを介して印刷装置用のCO41bに引き渡され、さらにCO41bから印刷装置50の機種に対応したSO41cに引き渡される。SO41cは、この印刷データを加工して、印刷装置50のコマンド仕様に応じた印刷コマンドを生成し、印刷装置50へ送信する。なお、上記したOPOSは、SO41cとCO41bとをコンバインした形態で、プリンタドライバ109としてユーザに提供される。
【0049】
また、SO41cでは、画像データを会計処理印刷データに付加するための画像付加設定コマンドの生成を行うと共に、画像データの各種設定を行う画像データ設定プログラム108が実装されている。具体的な説明は後述するが、画像データ設定プログラム108は、ディスプレイ42上に所定の設定画面300(図6参照)を表示させることにより、画像データ設定のためのインターフェースをユーザに提供するものである。このように、プリンタドライバ109によって画像データ設定プログラム(ユーティリティ実行プログラム)108が提供されるため、PC40のPOSアプリケーション41aを変更することなく、PC40から画像データの設定を行うことができる。
【0050】
一方、印刷装置50は、インクジェット方式で印刷が行われるインクジェットプリンタであり、第1印刷ヘッド55aないし第6印刷ヘッド55fの、6つのインクジェットヘッドを有する印刷部120を備えている。これらのインクジェットヘッド55は、それぞれ、M(マゼンタ)、C(シアン)、Y(イエロー)、LM(ライトマゼンタ)、LC(ライトシアン)、K(ブラック)のインクを吐出することで、フルカラーの印刷ができるように構成されている。なお、印刷ヘッド55の構成は、これに限らず、ヘッド数を増やして、さらに多色の印刷を行い得るよう構成しても良いし、ヘッド数を減らして1色若しくは2色のみの印刷を行う構成としても良い。
【0051】
また、印刷装置50は、第6印刷ヘッド55fのみで印刷を行うモノクロ印刷モードと、全ての印刷ヘッドによって印刷を行うカラー印刷モードとのいずれかを、図示しないディップスイッチあるいは、ソフトディップスイッチによって設定可能となっている。そして、このモード設定に関する情報をPC40が取得し、生成する印刷データにカラー情報を含ませるか否かを判断することができる。したがって、カラー印刷モードに設定されている場合であって、且つ印刷データにカラー情報が含まれる場合、これに基づきレシート61上に2色若しくは多色刷りの印刷を行うことが可能となる。なお、以下の説明では、印刷装置50はカラー印刷モードに設定されており、会計処理印刷データは主色の「K(ブラック)」にて印刷され、画像データは主色(K(ブラック))以外の指定された副色にて印刷されるものとする。
【0052】
次に、POS端末20の装置構成について、図2を参照して説明する。同図(a)は、POS端末20をオペレータによる操作側から見た正面斜視図であり、同図(b)は、これを顧客側から見た背面斜視図である。両図に示すように、POS端末20は、箱形の本体ケース48によってその主体部を成すPC40と、本体ケース48の後部左側に配置される印刷装置50とによって構成されている。なお、印刷装置50は、本体ケース48とケーブル接続されているため、この配置に限らず、ケーブル長が許す範囲で任意の場所に配置可能となっている。
【0053】
PC40は、本体ケース48の前部上面にオペレータが商品情報や顧客情報などの情報を入力するキーボード43と、その後部右側にオペレータが入力情報を確認するオペレータ用ディスプレイ42aとを配置し、本体ケース48内にはキャッシュドロア49が収納さている。また、本体ケース48の右側側面には商品に貼付若しくは印刷されたバーコードを読み取るためのバーコードリーダ44、左側側面には印刷装置50と接続するための印刷装置側インターフェース47を備え、キーボード43の右側には、顧客60から提示されたクレジットカードを読み取るためのカードリーダ用スロット45が形成されている。さらに、本体ケース48の背面側には、顧客60が商品情報等を確認するための顧客用ディスプレイ42bが配置されている。なお、画像データ設定のための設定画面(図6参照)は、上記のオペレータ側ディスプレイ42aに表示され、オペレータはこれを確認しながら、設定操作を行うこととなる。
【0054】
一方、印刷装置50は、その前面側に動作表示ランプ65と、PC側インターフェース51とが配置されており、PC側インターフェース51と、PC40に備えられた印刷装置側インターフェース47とはケーブル63およびコネクタ46,53を介して接続されている。また、印刷装置50の上面には、印刷済みのレシート61が排出されるレシート排出口64が形成されている。
【0055】
次に、PC40の制御構成について、図3の機能ブロック図を参照して説明する。PC40は、画像付加設定コマンドを生成するための参照テーブルである定義テーブル(図9等参照)を設定する定義テーブル設定部201と、会計処理印刷データを生成する会計処理印刷データ生成部202と、画像付加設定コマンドを生成する画像付加設定コマンド生成部203と、定義テーブル記憶部221、会計処理印刷データ記憶部222および画像付加設定コマンド記憶部223を有し、各種データを記憶するデータ記憶部204と、会計処理印刷データ送信部225および画像付加設定コマンド送信部226を有し、印刷装置側インターフェース47を介して会計処理印刷データおよび画像付加設定コマンドの送信を行うデータ送信部205とを備えている。また、定義テーブル設定部201、画像付加設定コマンド生成部203は、主にプリンタドライバ109によって実現されるものである。
【0056】
定義テーブル設定部201は、プリンタドライバ109によって提供される画像データ設定プログラム108により実行され、画像データの印刷位置を示す特定文字列(スタート文字列およびエンド文字列(図14等参照))を設定する文字列設定部211と、付加対象となる画像データを指定するための画像指定データ(ファイル名など)を設定する画像指定データ設定部212と、画像データの印刷位置を特定する行番号の取得パターンを設定する(詳細については後述する)行番号設定部213と、画像データの印刷色を設定するカラー情報設定部214とを備えている。この定義テーブル設定部201における設定事項は、ユーザが設定画面300(図6参照)に必要事項を入力することで設定されるものであり、入力された情報はRAM等のメモリに記憶され、必要に応じて書き換え可能となっている。
【0057】
画像付加設定コマンド生成部203は、会計処理印刷データを検索して特定文字列を抽出する文字列抽出部216と、特定文字列によって特定される行番号を取得する行番号取得部217と、定義テーブルから特定文字列に関連づけられた画像指定データを取得する画像指定データ取得部218とを備えており、図11および図12に示すような、画像付加設定コマンド「ESC I n1,n2,n3・・・」を生成する。画像付加設定コマンドの構成については、後述する。
【0058】
そして、PC40は、上記の構成により、会計処理印刷データ生成部202によって生成された会計処理印刷データの中から、定義テーブル設定部201で設定された定義テーブルにしたがって、特定文字列を抽出し、その特定文字列によって特定される行番号、および特定文字列に関連づけられた画像指定データに基づいて、画像付加設定コマンド生成部203により画像付加設定コマンドを生成する。そして、生成した会計処理印刷データおよび画像付加設定コマンドをデータ送信部205により、印刷装置50へ送信する。
【0059】
続いて、印刷装置50の制御構成について、図4の機能ブロック図を参照して説明する。印刷装置50は、PC40からPC側インターフェース51を介して会計処理印刷データおよび画像付加設定コマンドを取得するデータ取得部231と、取得したデータおよび複数の画像データファイル(図13参照)を記憶するデータ記憶部232と、PC40から送信された画像付加設定コマンドを解析するコマンド解析部233と、レシート61に印刷するためのレシート印刷データを生成するレシート印刷データ生成部234と、レシート印刷データに基づいて印刷を行う印刷部235とを備えている。
【0060】
データ取得部231は、会計処理印刷データ取得部241と、画像付加設定コマンド取得部242とを有し、それぞれ会計処理印刷データ記憶部245と、画像付加設定コマンド記憶部246とにデータを送るが、実際には、会計処理印刷データと、画像付加設定コマンドが同時に送信され、会計処理印刷データの中から画像付加設定コマンドを抽出して解析処理を行うことになる。ここでは、説明を容易にするため、会計処理印刷データと画像付加設定コマンドとは個別に取得および記憶するものとして図示する。したがって、会計処理印刷データは、画像付加設定コマンドを除いた、商品データを印刷するためのデータ・コマンドによって構成されるものとする。
【0061】
データ記憶部232は、画像データ記憶部244と、会計処理印刷データ記憶部245と、画像付加設定コマンド記憶部246とを有し、画像データ記憶部244には、予め複数の画像データファイルが記憶されている。なお、これら複数の画像データファイルは、PC40によりスキャナ等で読み込まれたデータや、描画ソフトによって作成されたデータが、画像データ設定プログラム108により実行される設定画面300において登録され(図6「画像データ登録」タブ参照)、これを印刷装置50に送信したものを、画像データ記憶部244内に記憶したものであり、ユーザのニーズに応じて適宜書き換えができるよう構成されている。
【0062】
コマンド解析部233は、PC40から送信された画像付加設定コマンドを解析することによって行番号を取得する行番号取得部248と、同じく画像付加設定コマンドから画像指定データ(ファイル名や画像指定No.等)を取得する画像指定データ取得部249と、同じく画像付加設定コマンドから画像データの印刷色を示すカラー情報を取得するカラー情報取得部250とを有し、取得した情報は、後述するRAM144内に格納される。
【0063】
印刷装置50は、上記の構成により、データ取得部231によって、会計処理印刷データおよび画像付加設定コマンドを取得し、コマンド解析部233によって画像付加設定コマンドを解析することにより、行番号、画像指定データおよびカラー情報を得る。さらに、これらの情報に基づいて、レシート印刷データ生成部234により、会計処理印刷データに画像データを付加し、レシート印刷データを生成する。
【0064】
図5は、印刷装置50の制御ブロック図を示したものであるが、同図に示すように、印刷装置50は、PC側インターフェース51を有し、PC40からの画像付加設定コマンドや会計処理印刷データを入力するデータ入力部110と、6つのインクジェットヘッド55を有し、それぞれ異なる色のインクを吐出することによってカラー印刷を行う印刷部120と、ヘッドドライバ131を有し、インクジェットヘッド55を駆動する駆動部130と、印刷装置50全体を制御する制御部140とによって構成されている。
【0065】
制御部140は、CPU141、ROM142、CG−ROM143およびRAM144を有し、互いに内部バス145により接続されている。ROM142は、CPU141で処理する制御プログラムを記憶する制御プログラムブロック142aの他、各種テーブルを含む制御データを記憶する制御データブロック142bを有している。また、CG−ROM143は、印刷する文字のフォントデータを記憶し、文字を特定するコードが与えられたときに対応するフォントデータを出力する。
【0066】
RAM144は、フラグ等として使用される各種ワークエリアブロック151の他、画像データファイルを複数記憶する画像データブロック152と、PC40から送信された会計処理印刷データを記憶する会計処理印刷データブロック153と、画像付加設定コマンドの解析結果に関する情報を記憶する画像付加設定コマンドブロック154と、会計処理印刷データに画像データを付加することによって生成したレシート印刷データを記憶するレシート印刷データブロック155とを有し、制御処理のための作業領域として使用される。また、RAM144は電源が切断されても記憶したデータを保持しておくように常にバックアップされている。
【0067】
画像付加設定コマンドブロック154は、画像付加設定コマンドの解析の結果得られた行番号、画像指定データおよびカラー情報をそれぞれ記憶する行番号ブロック157、画像指定データブロック158およびカラー情報ブロック159を備え、前記コマンド解析部233(図4参照)の各部によって取得された情報を記憶している。
【0068】
また、内部バス145は、データ入力部110および駆動部130とも接続され、PC側インターフェース51から入力データ(画像付加設定コマンド、会計処理印刷データ等)を取り込む(図4参照)と共に、CPU151等から出力された出力データ(レシート印刷データ等)や制御信号を、駆動部130(ヘッドドライバ131)に出力する。
【0069】
そして、CPU141は、上記の構成により、ROM142内の制御プログラムに基づいて、印刷装置50内の各部から各種信号・データ等を入力し、RAM144内の各種データ等を処理すると共に、各部に各種信号・データ等を出力することにより、画像付加設定コマンドの解析を行い、その解析結果にしたがって画像データを会計処理印刷データに付加することでレシート印刷データを生成し、これに基づいて印刷を行うなど、印刷装置50全体を制御している。
【0070】
なお、PC側インターフェース51およびPC40に備えられた印刷装置側インターフェース47は、RS−232規格などのシリアルデータ転送、セントロニクス規格などのパラレルデータ転送、イーサネット(登録商標)の10Base−Tなどのネットワーク接続、若しくはUSBなどのデータ転送規格に対応したものを採用することができる。
【0071】
また、PC40の内部TTL(Transistor Transistor Logic)と、印刷装置50の内部との駆動電圧レベルが異なる場合には、PC側インターフェース51および印刷装置側インターフェース47にレベル変換を行うドライバ回路を備えることが好ましい。この構成によれば、信号レベルを容易に変換することができる。
【0072】
次に、画像データの設定処理について、図6を参照して説明する。画像データの設定は、PC40において、画像データ設定プログラム108(図1参照)が実行されることにより行われる。具体的には、画像データ設定プログラム108が起動されると、図6に示すような設定画面が、オペレータ側ディスプレイ42aに表示され、オペレータが各種情報を入力することにより設定が行われる。
【0073】
同図に示すように、設定画面300では、画像データを設定するための各種情報が複数の画面に分かれて設定可能となっており、オペレータ(ユーザ)は、所望の設定画面を開いて設定を行っていく。なお、最初のタブ「基本」の設定画面を開くと、レシート61の幅サイズ、画像データの印刷濃度および印刷品質等を設定可能となっており、通常の印刷設定ユーティリティとほぼ同内容であるため、ここでは説明を省略する。また、3つ目のタブ「画像データ登録」の設定画面を開くと、図13に示すような画像データを登録可能となっており、これについても通常の登録方法を用いることができるため、説明を省略する。したがって、ここではタブ「定義テーブル」の設定画面についてのみ説明する。
【0074】
図6に示すように、「定義テーブル」の設定画面300では、まず、特定文字列の設定を行う。特定文字列は、スタート文字列とエンド文字列とからなり、前者は、画像データの付加を開始する位置を示し、後者は、画像データの付加を終了する位置を示すものである。オペレータは、これらスタート文字列およびエンド文字列を、スタート文字列設定欄301およびエンド文字列設定欄302の上下アイコンにより既に登録されている文字列の中から選択しても良いし、各設定欄301、302に直接文字列を入力しても良い。ここでは、スタート文字列として「領収証」が、また、エンド文字列として「お買いあげ」が設定されたものとする。
【0075】
続いて、画像指定データの設定を行う。画像指定データの設定は、オペレータにより既登録ファイル一覧303の中から1のファイルが選択されることによって画像データとなるファイルが指定され、ファイル設定欄304に入力される。また、オペレータは、登録済みのIDをID欄305で選択することにより、ファイルを指定することも可能である。ここでは、「画像データ」として、図13に示すように、3つの画像ファイルが登録されており、これらの中から1の画像データを選択することができるものとし、本設定操作では、「炎柄(ID:U2)」が選択されたものとする。
【0076】
続いて、行番号の設定を行う。ここでは、印刷領域を特定するための行番号として、スタート文字列の行番号またはスタート文字列より1行下の行番号のいずれを取得させるか、並びにエンド文字列の行番号またはエンド文字列より1行上の行番号のいずれを取得させるかを設定することができる。つまり、印刷領域を、対象文字列を含む位置で特定するか、含まない位置で特定するかを設定することができる。ここでは、スタート文字列を「含む」位置(行)からエンド文字列を「含む」位置(行)までを印刷領域として特定するものとする。
【0077】
続いて、カラー設定を行う。ここでは、まず、カラー指定を行うか否かが設定される。そして、オペレータによりカラー設定を「指定する」にチェックされた場合は、カラー設定欄306において、画像データを印刷する印刷色が設定される。
【0078】
なお、ここでは、会計処理印刷データの印刷が主色「K(ブラック)」にて行われるように予め設定されているため、画像データは、「K(ブラック)」以外の印刷色(副色)が設定可能となっている。したがって、例えば、「K(ブラック」と「R(レッド)」のみの2色印刷を行う印刷装置では、印刷データが主色「K(ブラック」にて印刷される場合は、画像データは必然的に副色「R(レッド)」にて印刷されることになる。このように、印刷データが主色にて印刷され、画像データが副色にて印刷されることで、印刷データによって印刷される文字等の見やすさを損ねることなく、画像データを付加することができる。なお、本設定操作では、印刷色「Red(赤色)」が選択されたものとする。
【0079】
なお、カラー設定を「指定しない」にチェックされた場合、画像データは予め設定された印刷色(例えば、店舗のテーマカラーなど)で印刷されることになる。但し、画像データがカラーで登録されている場合などは、その登録されたカラーで印刷されるように構成しても良い。以上の内容の設定が完了すると、オペレータにより「OK」ボタン307がクリックされ、「定義テーブル」について設定された情報が、PC40内のRAM等のメモリに格納される。
【0080】
ここで、図9および図14を参照し、上記の設定による定義テーブル、および印刷結果について説明する。図9に示すように、定義テーブルには、上記の一連の操作により設定された情報にアイテムNo.が付され、ここでは、1のアイテム(アイテムNo.1)のみが設定されていることを示している。また、スタート文字列として「領収証」が設定され、且つ、エンド文字列として「お買いあげ」が設定されており、それぞれの行番号設定は「1」となっている。これは、その対象文字列を「含む」位置(行)で印刷領域を特定していることを示したものであり、その対象文字列を「含まない」位置(対象文字列が「スタート文字列」の場合はその1行下の行、また、対象文字列が「エンド文字列」の場合はその1行上の行が取得する行番号となる)で印刷領域を特定する場合は、「0」となる。
【0081】
また、画像指定データとして、「U2/C:fire.jpg」が設定されているが、テーブル上には、ファイル名「fire」で記憶されるようにしても良い。また、ファイル名に代えて、画像データファイル毎に付された連番、若しくは所定の法則に基づいて付された数値で記憶されるようにしても良い。ここでは、IDである「U2」に基づいて、画像指定No.「02」が記憶されるものとする。
【0082】
また、カラー指定として、「Red」が設定されているが、テーブル上には、カラー名に代えて、カラー毎に付されたカラー指定No.、若しくは所定の法則に基づいて付された数値で記憶されるようにしても良い。ここでは、カラー毎に付されたカラー指定No.(Redは「2」とする)が記憶されるものとする。
【0083】
続いて、定義テーブルに上記の情報が記憶されている場合であって、且つ会計処理印刷データにスタート文字列「領収証」およびエンド文字列「お買いあげ」が含まれている場合のデータ取得結果を同図に示す。すなわち、この場合は、”画像指定No.02の画像データを、行番号「x1」から「x2」の印刷領域にカラー指定No.2で印刷する”ことを示すデータを取得する。行番号「x1」および「x2」とは、それぞれスタート文字列「領収証」およびエンド文字列「お買いあげ」が含まれる行を示す行番号である。
【0084】
そして、上記のようなデータを取得した結果、得られる印刷結果が、図14に示す<印刷例1>である。ここに示すように、レシート61上には、会計処理印刷データ(図17参照)に画像データ「U2/C:fire.jpg」(炎柄;図13参照)が付加されており、その印刷色は「Red」となる。また、印刷領域は、スタート文字列「領収証」が含まれる行番号「x1」からエンド文字列「お買いあげ」が含まれる行番号「x2」までとなっている。さらに、ここに示すように、画像データは、スタート文字列が含まれる行からエンド文字列が含まれる行までの長さに応じて、繰り返し印刷される。
【0085】
なお、会計処理印刷データの中に、スタート文字列またはエンド文字列のいずれかのみが含まれる場合、すなわちスタート文字列およびエンド文字列の両方が含まれない場合は、印刷領域が特定できないため画像データの付加は行われない。但し、設計変更により、スタート文字列またはエンド文字列のいずれかを抽出した場合、スタート文字列から下方にx行分、またはスタート文字列からレシート終了行まで画像データを付加したり、エンド文字列から上方にy行分、またはエンド文字列からレシート開始行まで画像データを付加したりなどとすることも可能である。
【0086】
このように、本発明では、画像データの印刷領域が、画像付加設定コマンドに含まれるパラメータの一つである行番号で特定されるため、印刷装置50は、容易に印刷領域を決定し、画像データの付加処理を行うことができる。特に、特定文字列を、レシート上に必ず印刷される文字列(例えば「領収証」、「合計金額」など)とすることで、レシート長に応じて、適切な位置に画像データが印刷されたレシート61を発行することができる。
【0087】
続いて、図9に示すデータ取得結果に基づいて生成される画像付加設定コマンドについて、図11を参照して説明する。同図(a)は、画像付加設定コマンドの構成を示したものであるが、このうち「ESC I」が画像付加設定コマンドコードを示し、これに続く「n1,n2,n3,n4」がパラメータを示す(一般的にESCシーケンスと呼ばれるコマンドを利用している)。各パラメータは1byte(8bit)で構成されており、n1は、画像指定No.を示し、<印刷例1>の場合は「02」を表す。また、n2およびn3は、スタート行番号およびエンド行番号を示し、<印刷例1>の場合は「x1」および「x2」を表す。また、n4は、カラー情報(カラー指定No.)を示し、<印刷例1>の場合は「2」を表す(図9参照)。
【0088】
また、同図(b)に示すように、スタート行番号を示すパラメータ「n2」は、8bitのうち、最初の1bitで、行番号設定を表し(図9参照)、行番号を含む場合は「1」、含まない場合は「0」で表される。また、残りの7bitでは、スタート行番号(第1行ないし第128行)を表す。エンド行番号を示すパラメータ「n3」についても、同様の構成である。なお、各パラメータを構成するbit数およびパラメータの順序は適宜変更可能である。
【0089】
このように、本発明では、画像付加設定コマンドとして画像データを付加するための専用コマンドを設定し、会計処理印刷データと共に、各種情報をパラメータとして同時に送信可能することができる。これにより、受信した印刷装置50では、印刷処理等に支障をきたすことなく容易に画像データの付加処理(レシート印刷データの生成処理)を行うことができる。
【0090】
次に、PC40における会計処理印刷データ/画像付加設定コマンドの送信処理について、図7のフローチャートを参照して説明する。PC40は、キーボード43による入力またはバーコードリーダ44によるバーコードの読み取りによって商品に関する入力情報を取得し、これに基づいて会計処理印刷データを生成する(S11)。そして、会計処理印刷データを検索することによって、これに含まれる特定文字列(スタート文字列およびエンド文字列)を抽出する(S12)。
【0091】
このとき、特定文字列は、上記のとおり、予め設定されて定義テーブルとして記憶されている。そして、特定文字列(<印刷例1>の場合、スタート文字列「領収証」およびエンド文字列「お買いあげ」)を抽出した場合(S13:Yes)は、その特定文字列によって特定される行番号、並びに特定文字列に関連づけられて記憶されている画像指定データおよびカラー情報を取得する(S14;図9参照)。そして、その取得結果から画像付加設定コマンドを生成し(S15;図11参照)、会計処理印刷データと共に印刷装置50に送信し(S16)、処理を終了する(S18)。一方、特定文字列を抽出しなかった場合(S13:No)は、画像付加設定コマンドを生成することなく、会計処理印刷データのみを印刷装置50に送信する(S17)。
【0092】
続いて、上記のPC40における会計処理印刷データ/画像付加設定コマンドの送信処理に続く、印刷装置50におけるレシート印刷データ生成処理について、図8のフローチャートを参照して説明する。印刷装置50は、PC40から会計処理印刷データを取得すると(S21:Yes)、その会計処理印刷データと共に画像付加設定コマンドが送信されたか否かを判別する(S23)。取得したデータが、会計処理印刷データでない場合は(S21:No)、その指示に応じた処理を行う(S22)。また、画像付加設定コマンドが送信されていない場合は(S23:No)、画像データの付加処理を行うことなく(S24)、会計処理印刷データをそのままレシート印刷データとする(S27)。
【0093】
一方、会計処理印刷データと共に画像付加設定コマンドが送信された場合(S23:Yes)は、画像付加設定コマンドを解析し(S25)、行番号(スタート行番号およびエンド行番号)、画像指定データ(画像指定No.)およびカラー情報(カラー指定No.)を取得する(S26;図11(a)参照)。そして、取得した情報に基づき、会計処理印刷データに画像データを付加(スーパーポーズ)してレシート印刷データを生成し(S27)、処理を終了する(S28)。
【0094】
このように、本発明では、PC40によって生成された会計処理印刷データを検索することによって、画像データの印刷位置を示す特定文字列を抽出し、この特定文字列によって特定される行番号に基づいて画像付加設定コマンドを生成する。そして、PC40は、会計処理印刷データと共に、これを印刷装置50に送信する。一方、印刷装置50は、会計処理印刷データに、画像付加設定コマンドに基づいて画像データを付加し、レシート上に印刷するためのレシート印刷データを生成する。すなわち、この構成により、PC40と印刷装置50間のインターフェースとして低速インターフェースが用いられた場合でも、迅速に画像データを印刷することができる。また、PC40側で画像データを付加するための付加設定コマンドを生成するため、印刷装置50を直接操作することなくPC40により画像データの設定を行うことができる。
【0095】
ここで、幾つかの例を挙げて、その他の画像データの印刷例について説明する。図10(a)、図12(a)および図15は、<印刷例2>における、定義テーブル、データ取得結果、画像付加設定コマンドおよび印刷結果を示したものである。図10(a)に示すように、定義テーブルには、同じ画像データ「U0/C:hana.jpg」(花模様)を指定した2つのアイテムが記憶されている。この場合、データ取得結果は、同図に示すとおり、1の画像指定データに対して、スタート行番号、エンド行番号、カラー指定がセットになって、2組関連づけられた形式となり、2つの印刷領域に同じ画像データが印刷されることとなる。そのため、図12(a)に示すとおり、画像付加設定コマンドも、画像指定データを示すパラメータ「n1」の後に、スタート行番号、エンド行番号、カラー情報を示すパラメータ(「n2,n3,n4」および「n5,n6,n7」)がセットになって付加される。
【0096】
但し、<印刷例2>では、エンド文字列「領収証」に対する行番号設定が「0」となっているため(図10(a)参照)、パラメータ「n3」の、行番号設定を表す先頭bitは「0」となる(図11(b参照))。したがって、エンド文字列「領収証」が含まれる行は印刷領域と成らず、エンド文字列「領収証」が含まれる行から1行上の行までが印刷領域となる。
【0097】
そこで、図12(a)に示す画像付加設定コマンドが送信された場合の印刷結果を、図15に示した。ここに示すとおり、画像データ(花模様)が、2つの印刷領域に印刷され、1つ目の印刷領域(スタート行番号「x1」およびエンド行番号「x2」で特定される印刷領域)では、画像データが行番号「x1」から行番号「x2−1」まで印刷され、2つ目の印刷領域(スタート行番号「x3」およびエンド行番号「x4」で特定される印刷領域)では、画像データが行番号「x3」から行番号「x4」まで印刷されている。
【0098】
このように、<印刷例2>に示すとおり、同じ画像指定データに対して、複数の特定文字列が抽出された場合、より簡単な構成の画像付加設定コマンドで、画像データの付加設定を行うことができる。
【0099】
続いて、図10(b)、図12(b)および図16は、<印刷例3>における、定義テーブル、データ取得結果、画像付加設定コマンドおよび印刷結果を示したものである。図10(b)に示すように、定義テーブルには、異なる画像データ(「U3/C:syoku.jpg」,「U4/C:nichi.jpg」,「U5/C:iyaku.jpg」)に対して、それぞれスタート文字列およびエンド文字列が関連づけられた3つのアイテムが記憶されている。この場合、データ取得結果は、同図に示すとおり、各画像指定データに対して、スタート行番号、エンド行番号、カラー指定がそれぞれ関連づけられた形式となっている。そのため、図12(b)に示すとおり、画像付加設定コマンドも、画像指定データ、スタート行番号、エンド行番号、カラー情報を示すパラメータ(「n1,n2,n3,n4」および「n5,n6,n7、n8」・・・)がセットになって付加される。
【0100】
但し、<印刷例3>では、3つのアイテムが定義テーブルに記憶されているが、これらはスタート文字列が異なるものの、エンド文字列が全て同じ文字列「カテゴリ合計」である。この場合、スタート文字列から下側に存在し、且つ最上行に存在する文字列をそのスタート文字列に対するエンド文字列としている。このため、同じエンド文字列が異なるアイテムに記憶されていても、そのエンド文字列が複数会計処理印刷データ内に存在する場合、複数の画像データが重ねて印刷されることはない。
【0101】
そこで、図12(b)に示す画像付加設定コマンドが送信された場合の印刷結果を、図16に示した。ここに示すとおり、画像データ「U3/C:syoku.jpg」,「U4/C:nichi.jpg」および「U5/C:iyaku.jpg」に対して、それぞれのスタート文字列およびエンド文字列によって特定される印刷領域に印刷されている。また、エンド文字列が同じ文字列であっても、そのエンド文字列が複数会計処理印刷データ内に存在するため、3つの画像データが重ねて印刷されることはない。
【0102】
このように、<印刷例3>に示すとおり、複数の画像指定データを、異なる印刷領域に印刷する場合でも、1の画像付加設定コマンドで、画像データの付加設定を行うことができる。
【0103】
以上の通り、本発明によれば、画像指定データ、スタート文字列およびエンド文字列を関連づけ、定義テーブルとして複数記憶しておくことにより、会計処理印刷データに含まれる文字列に応じて、多種多様な画像データを所望する印刷領域に印刷することができる。
【0104】
特に、本実施形態のように、POSシステム10において本発明の印刷装置50が用いられる場合は、店のロゴなどを画像データとして記憶させておくことで、特定の領域に店のロゴが印刷されたレシート61を発行することができる。すなわち、レシートプリンタとして用いる印刷装置50に、画像データ(ロゴ)を格納するだけの小さなメモリを備えるだけで、視認性の高いレシートを作成することができると共に、顧客に対して店舗のイメージを強く印象づけ、宣伝効果を高めることができる。
【0105】
なお、上記の実施形態では、画像付加設定コマンドの生成が、PC40内の制御部140に組み込まれたプリンタドライバ109によって実現されるものとしたが、これを記録媒体に格納し、他のPCや印刷装置で生成プログラムを利用できるように構成しても良い。記憶媒体としては、ハードディスク、フラッシュROM、メモリカード(コンパクトフラッシュ(登録商標)、スマートメディア、メモリースティック等)、コンパクトディスク、光磁気ディスク、デジタルバーサタイルディスクおよびフレキシブルディスク等を利用することができる。
【0106】
以上の通り、本発明の印刷装置の制御方法、これを実現させるためのプログラム、記録媒体、プリンタドライバ、商品販売データ処理装置およびPOSシステムによれば、PC40から印刷装置50に画像データを送信するのではなく、印刷装置50内に画像データを記憶しておき、PC40から画像データを付加するための画像付加設定コマンドを送信するため、PC40と印刷装置間のインターフェースとして低速インターフェースを用いた場合でも、伝送時間が問題とならず、処理効率を低下させることがない。
【0107】
また、印刷装置50では、画像付加設定コマンドに含まれるパラメータから行番号を取得することによって、容易に印刷位置を特定することができ、ひいては見栄えの良いレシートを作成することができるなどの作用・効果を奏する。
【0108】
また、画像データを付加するための画像付加設定コマンドを、プリンタドライバ109によって生成することにより、印刷装置50を直接操作することなく、PC40から画像データの設定を行うことができる。さらに、PC40が、単色・テキストベースのアプリケーションであっても、これを変更することなく、印刷装置50によってカラー・グラフィックベースのレシートを発行することができる。
【0109】
なお、上記の例では、会計処理印刷データが主色「K(ブラック)」にて行われるように予め設定されており、画像データは、「K(ブラック)」以外の印刷色(副色)が設定可能となっているものとしたが、画像データとして「K(ブラック)」を設定できるように構成しても良い。但し、この場合(会計処理印刷データと画像データが同色で印刷されるように設定された場合)、画像データは自動的に印刷濃度を低くして印刷されるように設定されることが好ましい。この構成によれば、会計処理印刷データの見やすさを損ねることなく、画像データを付加することができる。
【0110】
また、画像データだけでなく、会計処理印刷データの印刷色も設定可能に構成しても良い。但し、この場合も、画像データは会計処理印刷データの設定色以外の印刷色のみが設定可能に構成されるか、若しくは会計処理印刷データと画像データが同色で印刷されるように設定された場合、画像データは自動的に印刷濃度を低くして印刷されるように設定されることが好ましい。
【0111】
また、上記の例では、スタート文字列とエンド文字列の両方を設定するものとしたが、これら両方の設定がない場合は、デフォルト値にしたがって、画像データの印刷領域を特定するようにしても良い。例えば、スタート文字列の設定がない場合は、レシート61の前端から所定長さXの行から画像データを印刷開始し、エンド文字列の指定がない場合、レシート61の後端から所定長さYの行までで画像データの印刷を終了するようにしても良い。また、スタート文字列の指定がない場合は、会計処理印刷データに含まれる所定文字列(例えば「TEL:」など)が印刷される行から画像データを印刷開始し、エンド文字列の指定がない場合は、印刷データに含まれる他の所定文字列(例えば、「お買いあげありがとうございました。」など)が印刷される行までで画像データの印刷を終了するようにしても良い。これらの構成によれば、ユーザが印刷領域に拘らない場合に設定の手間を省くことができる。
【0112】
また、画像データ(定義テーブル)の設定は、図6に示した設定内容に限らず、画像データの拡大・縮小や回転角度の設定、2以上の画像データの指定およびそれらの印刷色の設定などを行い得るように構成しても良い。この構成によれば、さらに多様な画像データを付加することができる。
【0113】
また、上記の例では、印刷装置50として、インクジェット方式のものを使用するものとしたが、これに限らず、サーマルヘッド方式、ワイヤードット方式の印刷装置を使用しても良い。
【0114】
また、上述したPOSシステムの例によらず、例えば、サーバに接続されないスタンドアロンタイプのECR、キャッシュレジスタなど、システム構成や装置構成について、本発明の要旨を逸脱しない範囲で、適宜変更も可能である。
【0115】
【発明の効果】
上述のように、本発明の印刷装置の制御方法、これを実現させるためのプログラム、記録媒体、プリンタドライバ、商品販売データ処理装置およびPOSシステムによれば、ホストコンピュータ内に画像データを記憶して、ホストコンピュータから画像データを送信するのではなく、印刷装置内に画像データを記憶しておき、ホストコンピュータからは画像データを付加するための画像付加設定コマンドを送信するため、ホストコンピュータと印刷装置間のインターフェースとして低速インターフェースを用いた場合でも、迅速に画像データを印刷することができるなどの効果を奏する。
【図面の簡単な説明】
【図1】本発明のPOSシステムの一例を示す構成図である。
【図2】本発明のPOSシステムを構成するPOS端末の外観斜視図である。
【図3】本発明のPCの機能ブロック図である。
【図4】本発明の印刷装置の機能ブロック図である。
【図5】本発明の印刷装置の制御ブロック図である。
【図6】本発明の画像データを設定するための設定画面の一例を示す図である。
【図7】本発明の会計処理印刷データ/画像付加設定コマンド送信処理の一例を示すフローチャートである。
【図8】本発明のレシート印刷データ生成処理の一例を示すフローチャートである。
【図9】本発明の定義テーブル、並びに会計処理印刷データから得られるデータ取得結果を示す図である。
【図10】本発明の定義テーブル、並びに会計処理印刷データから得られるデータ取得結果を示す図である。
【図11】本発明の画像付加設定コマンドコードの一例を示す図である。
【図12】本発明の画像付加設定コマンドコードの一例を示す図である。
【図13】画像データの一例を示す図である。
【図14】本発明によって作成されるレシートの一例である<印刷例1>を示す図である。
【図15】本発明によって作成されるレシートの一例である<印刷例2>を示す図である。
【図16】本発明によって作成されるレシートの一例である<印刷例3>を示す図である。
【図17】本発明の従来例におけるレシートの作成例を示す図である。
【符号の説明】
10    POSシステム
20    POS端末
30    POSサーバ
40    PC
41a   POSアプリケーション実行部
41b   コントロールオブジェクト
41c   サービスオブジェクト
41d   OS
47    印刷装置側インターフェース
50    印刷装置
51    PC側インターフェース
61    レシート
108    画像データ設定プログラム
109    プリンタドライバ
110    データ入出力部
120    印刷部
130    駆動部
140    制御部
141    CPU
142    ROM
143    CG−ROM
144    RAM
145    内部バス
201    定義テーブル設定部
202    会計処理印刷データ生成部
203    画像付加設定コマンド生成部
204    データ記憶部(PC)
205    データ送信部
231    データ取得部
232    データ記憶部(印刷装置)
233    コマンド解析部
234    レシート印刷データ生成部
235    印刷部
300    設定画面
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a control method of a printing apparatus that prints by adding image data already stored to accounting processing print data generated based on input information on product sales, a program for realizing the method, and a recording medium , A printer driver, a merchandise sales data processing device, and a POS system.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, a POS system (point-of-sale information management system) used in a retail business such as a supermarket or a convenience store includes a host computer for acquiring input information on product sales and a printing device for printing on a receipt. A POS terminal is configured. As this type of POS terminal, a printing apparatus receives accounting processing print data generated by a host computer and prints it on a receipt based on the accounting processing printing data (for example, see Patent Document 1). ) Is common (see FIG. 17), but in recent years, in addition to the accounting processing print data, a type capable of printing image data such as a store logo is also known.
[0003]
[Patent Document 1]
JP-A-2001-273560 (pages 4-7, FIGS. 10-11)
[0004]
[Problems to be solved by the invention]
By the way, in a POS terminal that prints such accounting processing print data and image data on the same receipt, image data is stored in a host computer, and the image data and accounting data generated in the host computer are stored. After combining the print data with the processed print data, the data is transmitted to the printing apparatus. However, when the host computer and the printing apparatus are connected by using a low-speed interface, there is a problem in that data transmission takes a long time, and receipt issuance is delayed. For this reason, the processing efficiency has deteriorated as a whole, and the customer has to wait.
[0005]
In view of the above problems, the present invention provides a method of controlling a printing apparatus capable of rapidly printing image data even when a low-speed interface is used as an interface between a host computer and a printing apparatus, a program for realizing the method, It is an object to provide a recording medium, a printer driver, a merchandise sales data processing device, and a POS system.
[0006]
[Means for Solving the Problems]
A control method for a printing apparatus according to the present invention is a control method for a printing apparatus for printing by adding image data already stored in a printing apparatus to accounting processing print data generated based on input information regarding product sales. An accounting print data acquisition step of acquiring accounting print data, a character string extraction step of searching the accounting print data for a specific character string indicating a print position of image data, and extracting the specific character string; A line number obtaining step of obtaining a line number specified by the extracted specific character string; an image addition setting command generating step of generating an image addition setting command based on the obtained line number; accounting print data and image addition setting Transmitting a command to the printing apparatus.
[0007]
Further, the product sales data processing device of the present invention, a printing device that performs printing on a receipt by adding image data already stored to accounting process print data generated based on input information regarding product sales, A merchandise sales data processing apparatus including a host computer controlling the printing apparatus by transmitting an accounting processing print data and an image addition setting command for adding and printing the image data to the printing apparatus; An accounting print data generating unit configured to generate accounting print data; and a character string extraction unit that searches the accounting print data for a specific character string indicating a print position of image data and extracts the specific character string. Means, a line number acquiring means for acquiring a line number specified by the extracted specific character string, and an image attaching means based on the acquired line number. An image addition setting command generation means for generating a setting command, the accounting print data and the image addition setting command, and having a transmission means for transmitting to the printing apparatus.
[0008]
The control method of the printing apparatus and the configuration of the merchandise sales data processing apparatus extract a specific character string indicating a print position of image data from the generated accounting print data, and a line number specified by the specific character string. , An image addition setting command is generated based on. Then, the data is transmitted to the printing apparatus together with the accounting processing print data. The printing apparatus adds image data to the accounting processing print data based on the image addition setting command, and generates data for printing on a receipt. Therefore, even when a low-speed interface is used as an interface between the host computer and the printing apparatus, image data can be printed quickly. Further, since the host computer generates an additional setting command for adding image data, the host computer can perform additional setting of image data without directly operating the printing apparatus. Further, since the print position of the image data is specified by the line number which is one of the parameters included in the image addition setting command, the printing apparatus can easily determine the print position and perform the image data addition processing. Can be. In particular, by making the specific character string a character string that is always printed on the receipt (for example, “receipt”, “total amount”, etc.), the receipt where the image data is printed at an appropriate position according to the receipt length Can be issued.
[0009]
In this case, the specific character string includes a start character string indicating a position where image data addition is started and an end character string indicating a position where image data addition is ended. It is preferable to obtain two line numbers specified by the character strings.
[0010]
In this case, the specific character string is composed of a start character string indicating a position where image data addition is started and an end character string indicating a position where image data addition is ended. And two line numbers specified by the end string.
[0011]
According to these configurations, image data can be added to the area specified by the start character string and the end character string. Therefore, it is possible to issue a receipt in which image data is printed in an appropriate area according to the receipt length.
[0012]
In this case, the printing apparatus stores a plurality of image data files, and includes a start character string and an end character string, and image specification data for specifying one image data file from among the plurality of image data files. And a definition table storing step of storing a definition table in which an image specification data associated with the start character string and the end character string extracted by the character string extraction step is obtained from the definition table. Preferably, in the image addition setting command generation step, an image addition setting command is generated based on the acquired line number and image designation data.
[0013]
Also, in this case, the printing apparatus stores a plurality of image data files, and includes a start character string and an end character string, and an image designation file for designating one image data file from among the plurality of image data files. Definition table storage means for storing a definition table in which data are associated with each other; and image designation data acquisition means for acquiring, from the definition table, image designation data associated with the start character string and the end character string extracted by the character string extraction means. Preferably, the image addition setting command generation means generates an image addition setting command based on the acquired line number and image designation data.
[0014]
According to these configurations, a plurality of image data files are stored in the printing apparatus, and the image addition setting command is used to execute image designation data for designating one image data file from among the plurality of image data files. Therefore, various image data can be added by changing the parameters related to the image designation data. Therefore, various receipts can be created.
[0015]
A program according to the present invention causes a computer to implement the method of controlling a printing apparatus according to any one of the above.
[0016]
According to this configuration, even when a low-speed interface is used as an interface between the host computer and the printing apparatus, it is possible to provide a program capable of rapidly printing image data.
[0017]
A recording medium according to the present invention has the program described above recorded thereon.
[0018]
According to this configuration, even when a low-speed interface is used as an interface between the host computer and the printing apparatus, it is possible to provide a recording medium on which a program capable of rapidly printing image data is recorded.
[0019]
A printer driver according to the present invention causes a computer to implement the above-described method of controlling a printing apparatus.
[0020]
According to this configuration, it is possible to provide a printer driver that can quickly print image data even when a low-speed interface is used as an interface between the host computer and the printing device. Further, by realizing the above-described method of controlling the printing apparatus by the printer driver, even if the host computer is, for example, a monochrome / text-based application, the printing apparatus can change the color / graphics-based receipt without changing the application. Can be issued
[0021]
In this case, it is preferable to include a character string setting step of setting a start character string and / or an end character string.
[0022]
Preferably, the merchandise sales data processing apparatus further includes a character string setting means for setting a start character string and / or an end character string.
[0023]
According to these configurations, since the start character string and / or the end character string for specifying the print area can be set, the print area can be arbitrarily set according to the user's preference.
[0024]
In this case, in the line number obtaining step, which of the line number of the start character string or the line number one line below the start character string is obtained, and the line number of the end character string or the line one line above the end character string are obtained. It is preferable that the method further includes a line number setting step of setting which of the numbers is to be acquired.
[0025]
Also, in this case, the line number acquiring means determines which of the line number of the start character string and the line number one line below the start character string is obtained, and the line number of the end character string or one line above the end character string. Line number setting means for setting which of the line numbers is to be obtained.
[0026]
According to these configurations, it is possible to set how to obtain a line number for specifying a print area (that is, whether to specify a position including the target character string or a position not including the target character string). Therefore, the variation of the image data adding process can be expanded.
[0027]
In this case, it is preferable to further include an image designation data setting step of setting image designation data in association with the start character string and / or the end character string set in the character string setting step.
[0028]
In this case, it is preferable to further include an image designation data setting unit that sets image designation data in association with the start character string and / or the end character string set by the character string setting unit.
[0029]
According to these configurations, since the image designation data can be set in association with the start character string and / or the end character string, various receipts can be created according to the user's preference.
[0030]
In the above, when color printing is possible in the printing apparatus, it is preferable that the printing apparatus further includes a printing color setting step of setting a printing color of the image data, and the image addition setting command includes a parameter indicating the printing color.
[0031]
In this case, the printing apparatus can perform color printing using the main color and at least one sub-color other than the main color, print the accounting processing print data using the main color, and print the image data at least. It is preferable to print with one sub-color.
[0032]
In this case, it is preferable that the apparatus further comprises a print color setting unit for setting a print color of the image data, and the image addition setting command includes a parameter indicating the print color.
[0033]
According to these configurations, since the accounting print data is printed in the main color and the image data is printed in the sub color, the image data can be added without impairing the legibility of the accounting print data. Further, since color printing is possible, the visibility of the receipt can be improved. Further, since the image addition setting command includes a parameter indicating the print color, various receipts can be created by changing the parameter indicating the print color.
[0034]
In this case, it is preferable that the character string extracting unit, the line number obtaining unit, the image addition setting command generating unit, the transmitting unit, the definition table storing unit, and the image designation data obtaining unit are provided by a printer driver. .
[0035]
According to these configurations, since each unit is provided by the printer driver, the generation and transmission of the image addition setting command can be performed only by incorporating the printer driver without changing the existing application in the host computer. it can.
[0036]
In this case, in the printer driver, a setting screen for setting the setting items in the character string setting step, the setting items in the line number setting step, the setting items in the image designation data setting step, and the setting items in the print color setting step It is preferable to further include a utility execution program for executing
[0037]
In this case, in the merchandise sales data processing device, the setting items by the character string setting unit, the setting items by the line number setting unit, the setting items by the image designation data setting unit, and the setting items by the print color setting unit are: Preferably, the setting is made on a setting screen executed by a utility execution program in the printer driver.
[0038]
According to these configurations, since the printer driver has the utility execution program having the setting screen for setting each setting item, the user can easily set each setting item according to the display contents of the setting screen. Can be.
[0039]
A POS system according to the present invention includes the merchandise sales data processing device according to any one of the above, and a POS server connected to the merchandise sales data processing device via a network and managing the merchandise sales data processing device. It is characterized by having been done.
[0040]
According to this configuration, it is possible to provide a POS system that can quickly print image data even when a low-speed interface is used as an interface between the host computer and the printing device.
[0041]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, a control method of a printing apparatus according to an embodiment of the present invention, a program for realizing the method, a recording medium, a printer driver, a merchandise sales data processing apparatus, and a POS system will be described in detail with reference to the accompanying drawings. . According to the present invention, a specific character string indicating a print position of image data is extracted from the accounting processing print data by the host computer, and the image data is added to the accounting processing printing data based on the line number specified by the specific character string. An image addition setting command for adding data is generated. Then, the printing apparatus adds receipt of the image data to the accounting processing print data based on the line number acquired from the image addition setting command, and generates receipt print data for printing on the receipt.
[0042]
That is, with this configuration, even when a low-speed interface is used as an interface between the host computer and the printing device, the printing device can quickly print image data. Also, by generating an image addition setting command by a printer driver incorporated in the host computer, even if the host computer is, for example, a monochrome / text-based application, the printing apparatus can change the color / graphics-based application without changing the application. Can issue a receipt. In addition, the printing device can easily specify the printing position by obtaining the line number from the image addition setting command, and thus has an operation and effect such that a good-looking receipt can be created. is there.
[0043]
Therefore, the following describes an example of a POS system that is used in a store such as a supermarket or a convenience store and issues a receipt based on input information on product sales input by an operator.
[0044]
As shown in FIG. 1, a POS system 10 of the present invention is a POS system, which is a plurality of merchandise sales data processing devices that mainly acquire input information by reading bar codes attached to merchandise by an operator (user). It comprises a terminal 20 (only one is shown) and a POS server 30 interconnected with the POS terminal 20 via a network and managing input information input to the POS terminal 20.
[0045]
The POS server 30 has memories such as a ROM 32 and a RAM 33 in addition to the control device (CPU 31), and processes information stored in a buffer 39 and the like in the RAM 33 according to a control program stored in the ROM 32. In particular, the RAM 33 has a product master including a product code block 35, a product name block 36, an amount block 37, an inventory block 38, and the like. The CPU 31 performs, based on input information transmitted from the POS terminal 20, Information about a product code, a product name, and a price is extracted from the product master, and product data used for printing on the receipt 61 and for displaying on the display 42 of the POS terminal 20 is generated. The “product data” is data that is the basis of accounting print data generated by the PC 40 and includes product information such as a product name printed on the receipt 61 and the amount of the product.
[0046]
The POS terminal 20 refers to the merchandise data of the POS server 30 based on the input information, and outputs accounting processing print data (such as merchandise information, a store name, a telephone number, a date, a message to the customer, etc., in addition to the merchandise information). A personal computer (PC) 40 having a POS application execution unit 41a for generating data and commands for printing; see FIG. 17) and performing a money registration process such as registering input data in the POS server 30; A printing apparatus 50 (receipt printer) for printing on a receipt 61 based on print data is provided, and is connected to each other via connectors 46 and 53. The PC 40 acquires input information such as information on merchandise (product information) and information on the customer 60 (customer information) by inputting using the keyboard 43 or reading a barcode using the barcode reader 44. Further, the credit card or the membership card of the customer 60 is read by the card reader 45, and information on the credit settlement and information on the member such as the membership number are acquired. Further, it has a display 42 for displaying merchandise information generated based on the merchandise data transmitted from the POS server 30, and presents the price of the purchased merchandise to the customer 60.
[0047]
Control of the PC 40 is performed by a printer driver OLE for Retail POS (hereinafter, referred to as OPOS) which operates on an OS such as Windows (registered trademark). The OPOS provides the POS application 41a running on the OS with an interface that is independent of the model with peripheral devices such as the printing device 50 and the barcode reader 44, and is compatible with each device category. It is composed of a control object (CO) 41b and a service object (SO) 41c corresponding to each device model.
[0048]
The POS application 41a generates accounting print data for printing on the receipt 61 based on the product data and input information transmitted from the POS server 30, and the accounting print data is transmitted to the printing device via the OS 41d. To the CO 41b, and then from the CO 41b to the SO 41c corresponding to the model of the printing apparatus 50. The SO 41 c processes the print data, generates a print command according to the command specification of the printing device 50, and transmits the command to the printing device 50. The OPOS described above is provided to the user as the printer driver 109 in a form in which the SO41c and the CO41b are combined.
[0049]
In the SO 41c, an image data setting program 108 for generating an image addition setting command for adding image data to accounting print data and performing various settings of the image data is installed. Although a specific description will be given later, the image data setting program 108 provides a user with an interface for setting image data by displaying a predetermined setting screen 300 (see FIG. 6) on the display 42. is there. As described above, since the image data setting program (utility execution program) 108 is provided by the printer driver 109, the image data can be set from the PC 40 without changing the POS application 41a of the PC 40.
[0050]
On the other hand, the printing apparatus 50 is an inkjet printer that performs printing by an inkjet method, and includes a printing unit 120 having six inkjet heads, a first print head 55a to a sixth print head 55f. These inkjet heads 55 discharge full-color printing by ejecting M (magenta), C (cyan), Y (yellow), LM (light magenta), LC (light cyan), and K (black) inks, respectively. It is configured to be able to. The configuration of the print head 55 is not limited to this, and the print head 55 may be configured to increase the number of heads to perform multi-color printing, or to reduce the number of heads to perform printing of only one color or two colors. It is good also as a structure which performs.
[0051]
The printing apparatus 50 sets one of a monochrome print mode in which printing is performed only by the sixth print head 55f and a color print mode in which printing is performed by all print heads using a dip switch or a soft dip switch (not shown). It is possible. Then, the PC 40 acquires the information on the mode setting, and can determine whether or not to include the color information in the generated print data. Therefore, when the color print mode is set and the print data includes color information, two-color or multicolor printing can be performed on the receipt 61 based on the color data. In the following description, the printing apparatus 50 is set to the color print mode, the accounting print data is printed in the primary color “K (black)”, and the image data is printed in the primary color (K (black)). It is assumed that printing is performed in a specified sub color other than.
[0052]
Next, the device configuration of the POS terminal 20 will be described with reference to FIG. FIG. 2A is a front perspective view of the POS terminal 20 as viewed from an operation side by an operator, and FIG. 2B is a rear perspective view of the POS terminal 20 as viewed from a customer. As shown in both figures, the POS terminal 20 is constituted by a PC 40 forming a main part of a box-shaped main body case 48 and a printing device 50 arranged on the rear left side of the main body case 48. Note that the printing device 50 is connected to the main body case 48 via a cable, so that the printing device 50 is not limited to this arrangement, and can be arranged at an arbitrary location as long as the cable length allows.
[0053]
The PC 40 has a keyboard 43 on which an operator inputs information such as merchandise information and customer information on a front upper surface of a main body case 48, and an operator display 42a on which an operator checks input information on a rear right side. A cash drawer 49 is accommodated in 48. A bar code reader 44 for reading a bar code attached or printed on a product is provided on the right side surface of the main body case 48, and a printing device side interface 47 for connecting to a printing device 50 is provided on the left side surface. On the right side of is formed a card reader slot 45 for reading a credit card presented by the customer 60. Further, on the back side of the main body case 48, a customer display 42b for the customer 60 to check product information and the like is arranged. The setting screen (see FIG. 6) for setting the image data is displayed on the above-mentioned operator-side display 42a, and the operator performs the setting operation while checking this.
[0054]
On the other hand, the printing apparatus 50 has an operation display lamp 65 and a PC-side interface 51 on the front side thereof. The PC-side interface 51 and the printing-side interface 47 provided in the PC 40 are connected to a cable 63 and a connector. They are connected via 46 and 53. On the upper surface of the printing device 50, a receipt outlet 64 for discharging the printed receipt 61 is formed.
[0055]
Next, the control configuration of the PC 40 will be described with reference to the functional block diagram of FIG. The PC 40 includes a definition table setting unit 201 that sets a definition table (see FIG. 9 and the like) that is a reference table for generating an image addition setting command, an accounting processing print data generation unit 202 that generates accounting processing print data, A data storage unit 204 that has an image addition setting command generation unit 203 that generates an image addition setting command, a definition table storage unit 221, an accounting processing print data storage unit 222, and an image addition setting command storage unit 223, and stores various data. And a data transmission unit 205 having an accounting processing print data transmission unit 225 and an image addition setting command transmission unit 226, and transmitting the accounting processing print data and the image addition setting command via the printing device-side interface 47. I have. The definition table setting unit 201 and the image addition setting command generation unit 203 are realized mainly by the printer driver 109.
[0056]
The definition table setting unit 201 is executed by the image data setting program 108 provided by the printer driver 109, and sets a specific character string (a start character string and an end character string (see FIG. 14, etc.) indicating the print position of the image data). A character string setting unit 211, an image designation data setting unit 212 for setting image designation data (eg, a file name) for designating image data to be added, and a line number for specifying a print position of the image data A line number setting unit 213 for setting a pattern (to be described in detail later) and a color information setting unit 214 for setting a print color of image data are provided. The setting items in the definition table setting unit 201 are set by the user inputting necessary items on the setting screen 300 (see FIG. 6), and the input information is stored in a memory such as a RAM, It can be rewritten according to.
[0057]
The image addition setting command generation unit 203 includes a character string extraction unit 216 that searches the accounting processing print data and extracts a specific character string, a line number acquisition unit 217 that obtains a line number specified by the specific character string, and a definition. And an image designation data acquisition unit 218 for acquiring image designation data associated with a specific character string from the table. The image addition setting command “ESC I n1, n2, n3.・ ・ ”Is generated. The configuration of the image addition setting command will be described later.
[0058]
Then, the PC 40 extracts a specific character string from the accounting process print data generated by the accounting process print data generation unit 202 according to the definition table set by the definition table setting unit 201 by the above configuration, The image addition setting command generation unit 203 generates an image addition setting command based on the line number specified by the specific character string and the image designation data associated with the specific character string. Then, the generated accounting processing print data and the image addition setting command are transmitted to the printing apparatus 50 by the data transmission unit 205.
[0059]
Subsequently, a control configuration of the printing apparatus 50 will be described with reference to a functional block diagram of FIG. The printing device 50 includes a data acquisition unit 231 that acquires accounting print data and an image addition setting command from the PC 40 via the PC-side interface 51, and data that stores the acquired data and a plurality of image data files (see FIG. 13). A storage unit 232, a command analysis unit 233 that analyzes the image addition setting command transmitted from the PC 40, a receipt print data generation unit 234 that generates receipt print data for printing on the receipt 61, and a receipt print data. A printing unit 235 for performing printing.
[0060]
The data acquisition unit 231 has an accounting processing print data acquisition unit 241 and an image addition setting command acquisition unit 242, and sends data to the accounting processing print data storage unit 245 and the image addition setting command storage unit 246, respectively. Actually, the accounting processing print data and the image addition setting command are transmitted at the same time, and the image addition setting command is extracted from the accounting processing printing data to perform the analysis processing. Here, in order to facilitate the description, the accounting processing print data and the image addition setting command are illustrated as separately acquired and stored. Therefore, the accounting processing print data is configured by a data command for printing product data excluding the image addition setting command.
[0061]
The data storage unit 232 includes an image data storage unit 244, a transaction print data storage unit 245, and an image addition setting command storage unit 246. The image data storage unit 244 stores a plurality of image data files in advance. Have been. In the plurality of image data files, data read by a scanner or the like by the PC 40 and data created by drawing software are registered on a setting screen 300 executed by the image data setting program 108 (see FIG. The data transmitted to the printing apparatus 50 is stored in the image data storage unit 244, and can be appropriately rewritten according to the needs of the user.
[0062]
The command analysis unit 233 analyzes the image addition setting command transmitted from the PC 40 to obtain a line number, and also obtains the image designation data (file name, image designation number, etc.) from the image addition setting command. ), And a color information acquisition unit 250 for acquiring color information indicating the print color of the image data from the image addition setting command. The acquired information is stored in a RAM 144 described later. Is stored.
[0063]
According to the above configuration, the printing apparatus 50 acquires the accounting processing print data and the image addition setting command by the data acquisition unit 231 and analyzes the image addition setting command by the command analysis unit 233 to obtain the line number and the image designation data. And color information. Further, based on the information, the receipt print data generation unit 234 adds image data to the accounting processing print data to generate receipt print data.
[0064]
FIG. 5 is a control block diagram of the printing apparatus 50. As shown in FIG. 5, the printing apparatus 50 has a PC-side interface 51. Driving the inkjet head 55 with a data input unit 110 for inputting data, a printing unit 120 having six inkjet heads 55 for performing color printing by ejecting inks of different colors, and a head driver 131 And a control unit 140 that controls the entire printing apparatus 50.
[0065]
The control unit 140 has a CPU 141, a ROM 142, a CG-ROM 143, and a RAM 144, and is connected to each other by an internal bus 145. The ROM 142 has a control data block 142b for storing control data including various tables in addition to a control program block 142a for storing a control program to be processed by the CPU 141. Further, the CG-ROM 143 stores font data of characters to be printed, and outputs a corresponding font data when a code for specifying the characters is given.
[0066]
The RAM 144 includes, in addition to various work area blocks 151 used as flags and the like, an image data block 152 that stores a plurality of image data files, an accounting print data block 153 that stores accounting print data transmitted from the PC 40, An image addition setting command block 154 for storing information relating to an analysis result of the image addition setting command; and a receipt print data block 155 for storing receipt print data generated by adding image data to the accounting processing print data. Used as a work area for control processing. The RAM 144 is always backed up so as to retain the stored data even when the power is turned off.
[0067]
The image addition setting command block 154 includes a line number block 157 that stores a line number, image designation data, and color information obtained as a result of the analysis of the image addition setting command, an image designation data block 158, and a color information block 159, respectively. Information obtained by each unit of the command analysis unit 233 (see FIG. 4) is stored.
[0068]
The internal bus 145 is also connected to the data input unit 110 and the drive unit 130 to receive input data (image addition setting command, accounting processing print data, etc.) from the PC-side interface 51 (see FIG. 4), and to receive data from the CPU 151 and the like. The output data (such as receipt print data) and the control signal are output to the drive unit 130 (head driver 131).
[0069]
With the above-described configuration, the CPU 141 inputs various signals and data from each unit in the printing apparatus 50 based on the control program in the ROM 142, processes various data and the like in the RAM 144, and sends various signals to each unit. -Output data, etc., analyze the image addition setting command, generate receipt print data by adding image data to accounting processing print data according to the analysis result, and print based on this. , The printer 50 as a whole.
[0070]
The PC-side interface 51 and the printing-device-side interface 47 provided in the PC 40 are connected to serial data transfer such as RS-232 standard, parallel data transfer such as Centronics standard, and network connection such as Ethernet (registered trademark) 10Base-T. , Or a device corresponding to a data transfer standard such as USB.
[0071]
If the internal TTL (Transistor Transistor Logic) of the PC 40 and the driving voltage level of the inside of the printing apparatus 50 are different, the PC side interface 51 and the printing apparatus side interface 47 may include a driver circuit for performing level conversion. preferable. According to this configuration, the signal level can be easily converted.
[0072]
Next, the image data setting process will be described with reference to FIG. The setting of the image data is performed by the PC 40 executing the image data setting program 108 (see FIG. 1). Specifically, when the image data setting program 108 is started, a setting screen as shown in FIG. 6 is displayed on the operator side display 42a, and the setting is performed by the operator inputting various information.
[0073]
As shown in the figure, on the setting screen 300, various kinds of information for setting image data can be set on a plurality of screens, and an operator (user) opens a desired setting screen to perform setting. I will go. When the setting screen of the first tab "Basic" is opened, the width size of the receipt 61, the print density of the image data, the print quality, and the like can be set, and the contents are almost the same as those of a normal print setting utility. Here, the description is omitted. Further, when the setting screen of the third tab “Register image data” is opened, the image data as shown in FIG. 13 can be registered. Is omitted. Therefore, only the setting screen of the tab “definition table” will be described here.
[0074]
As shown in FIG. 6, on the "definition table" setting screen 300, first, a specific character string is set. The specific character string is composed of a start character string and an end character string. The former indicates a position where image data addition is started, and the latter indicates a position where image data addition ends. The operator may select the start character string and the end character string from the character strings already registered by the upper and lower icons of the start character string setting column 301 and the end character string setting column 302. A character string may be directly input to 301 and 302. Here, it is assumed that “receipt” is set as the start character string and “purchase” is set as the end character string.
[0075]
Subsequently, image designation data is set. In the setting of the image designation data, a file to be image data is designated by selecting one file from the registered file list 303 by the operator, and is input to the file setting column 304. The operator can also specify a file by selecting a registered ID in the ID column 305. Here, as shown in FIG. 13, three image files are registered as “image data”, and it is assumed that one image data can be selected from the three image files. Pattern (ID: U2) "is selected.
[0076]
Subsequently, a line number is set. Here, as the line number for specifying the print area, whether the line number of the start character string or the line number one line below the start character string is obtained, and the line number of the end character string or the end character string It is possible to set which of the line numbers one line above is to be acquired. That is, it is possible to set whether the print area is specified at a position including the target character string or at a position not including the target character string. Here, it is assumed that a region from a position (line) including the start character string to a position (line) including the end character string is specified as a print area.
[0077]
Subsequently, color setting is performed. Here, first, it is set whether or not to perform color designation. When the operator selects “specify” for the color setting, a print color for printing the image data is set in the color setting column 306.
[0078]
Here, since the printing of the accounting process print data is set in advance so as to be performed in the primary color “K (black)”, the image data is printed in a print color (sub color) other than “K (black)”. ) Can be set. Therefore, for example, in a printing apparatus that performs two-color printing of only “K (black)” and “R (red)”, if print data is printed in the main color “K (black)”, image data is inevitable. Is printed in the sub color “R (red).” As described above, the print data is printed in the main color, and the image data is printed in the sub color, so that the print data is printed by the print data. It is possible to add image data without deteriorating the legibility of characters, etc. In this setting operation, it is assumed that the print color “Red (red)” has been selected.
[0079]
If the color setting is checked to "not specify", the image data is printed in a preset printing color (for example, a theme color of a store). However, when the image data is registered in color, the image data may be printed in the registered color. When the above settings are completed, the operator clicks an "OK" button 307, and the information set for the "definition table" is stored in a memory such as a RAM in the PC 40.
[0080]
Here, with reference to FIG. 9 and FIG. 14, the definition table based on the above settings and the print result will be described. As shown in FIG. 9, in the definition table, information set by the above-described series of operations includes item No. Here, it is indicated that only one item (item No. 1) is set. Also, “receipt” is set as the start character string, and “purchase” is set as the end character string, and each line number setting is “1”. This indicates that the print area is specified at a position (line) that “includes” the target character string, and a position that does not include the target character string (the target character string is “start character string”). ", The line number one line below the line, and if the target character string is the" end character string, "the line number one line above is the line number to be obtained. ".
[0081]
Although “U2 / C: fire.jpg” is set as the image designation data, it may be stored as a file name “fire” on the table. Further, instead of the file name, a serial number assigned to each image data file or a numerical value assigned based on a predetermined rule may be stored. Here, based on the ID “U2”, the image designation No. “02” is assumed to be stored.
[0082]
Although “Red” is set as the color designation, the color designation No. assigned to each color is displayed on the table instead of the color name. Alternatively, it may be stored as a numerical value assigned based on a predetermined rule. Here, the color designation No. assigned to each color is used. (Red is “2”).
[0083]
Next, a data acquisition result in the case where the above information is stored in the definition table and the start character string “receipt” and the end character string “purchase” are included in the accounting print data. Is shown in FIG. That is, in this case, the image data of “image designation No. 02 is stored in the print area of line numbers“ x1 ”to“ x2 ”in the color designation No. 2 is obtained. The line numbers “x1” and “x2” are the line numbers indicating the lines including the start character string “receipt” and the end character string “purchase”, respectively. is there.
[0084]
Then, a printing result obtained as a result of acquiring the data as described above is <Printing Example 1> shown in FIG. As shown here, the image data “U2 / C: fire.jpg” (flame pattern; see FIG. 13) is added to the accounting processing print data (see FIG. 17) on the receipt 61, and the print color Becomes “Red”. Further, the print area includes a line number “x1” including a start character string “receipt” to a line number “x2” including an end character string “purchase”. Further, as shown here, the image data is repeatedly printed according to the length from the line including the start character string to the line including the end character string.
[0085]
Note that if only one of the start character string and the end character string is included in the accounting print data, that is, if both the start character string and the end character string are not included, the print area cannot be specified, and No data is added. However, when either the start character string or the end character string is extracted due to a design change, image data is added below x lines from the start character string or from the start character string to the receipt end line, or the end character string is added. It is also possible to add image data from the end to the y-line or from the end character string to the receipt start line.
[0086]
As described above, in the present invention, since the print area of the image data is specified by the line number which is one of the parameters included in the image addition setting command, the printing apparatus 50 easily determines the print area and Data addition processing can be performed. In particular, by making the specific character string a character string that is always printed on the receipt (for example, “receipt”, “total amount”, etc.), the receipt where the image data is printed at an appropriate position according to the receipt length 61 can be issued.
[0087]
Next, an image addition setting command generated based on the data acquisition result shown in FIG. 9 will be described with reference to FIG. FIG. 11A shows the configuration of the image addition setting command, in which “ESC I” indicates the image addition setting command code, and “n1, n2, n3, n4” following this are the parameters. (A command generally called an ESC sequence is used). Each parameter is composed of 1 byte (8 bits), and n1 is an image designation No. In the case of <Print Example 1>, “02” is indicated. Further, n2 and n3 indicate a start line number and an end line number, and in the case of <print example 1>, represent "x1" and "x2". Further, n4 indicates color information (color designation No.), and in the case of <print example 1>, indicates "2" (see FIG. 9).
[0088]
Also, as shown in FIG. 9B, the parameter “n2” indicating the start line number indicates the line number setting in the first 1 bit of the 8 bits (see FIG. 9). 1 ", and" 0 "when not included. The remaining 7 bits indicate a start line number (first to 128th lines). The parameter “n3” indicating the end row number has the same configuration. The number of bits forming each parameter and the order of the parameters can be changed as appropriate.
[0089]
As described above, according to the present invention, it is possible to set a dedicated command for adding image data as an image addition setting command, and simultaneously transmit various information as parameters together with the accounting processing print data. Thus, the printing apparatus 50 that has received the image data can easily perform the addition processing of the image data (the processing of generating the receipt print data) without hindering the print processing and the like.
[0090]
Next, transmission processing of the accounting processing print data / image addition setting command in the PC 40 will be described with reference to the flowchart of FIG. The PC 40 obtains input information on the product by inputting with the keyboard 43 or reading a barcode with the barcode reader 44, and generates accounting processing print data based on the input information (S11). Then, the specific character strings (start character string and end character string) included therein are extracted by searching the accounting processing print data (S12).
[0091]
At this time, the specific character string is set in advance and stored as a definition table as described above. Then, when a specific character string (in the case of <Print Example 1>, the start character string “receipt” and the end character string “purchase”) is extracted (S13: Yes), the line specified by the specific character string is extracted. The number, image designation data and color information stored in association with the specific character string are acquired (S14; see FIG. 9). Then, an image addition setting command is generated from the obtained result (S15; see FIG. 11), transmitted to the printing device 50 together with the accounting processing print data (S16), and the process is terminated (S18). On the other hand, if the specific character string has not been extracted (S13: No), only the accounting processing print data is transmitted to the printing device 50 without generating an image addition setting command (S17).
[0092]
Next, the receipt print data generation processing in the printing device 50 subsequent to the above-described accounting processing print data / image addition setting command transmission processing in the PC 40 will be described with reference to the flowchart in FIG. Upon acquiring the accounting processing print data from the PC 40 (S21: Yes), the printing apparatus 50 determines whether an image addition setting command has been transmitted together with the accounting processing printing data (S23). If the acquired data is not the accounting processing print data (S21: No), a process according to the instruction is performed (S22). If the image addition setting command has not been transmitted (S23: No), the accounting processing print data is used as receipt print data without performing the image data addition processing (S24).
[0093]
On the other hand, when the image addition setting command is transmitted together with the accounting processing print data (S23: Yes), the image addition setting command is analyzed (S25), the line number (start line number and end line number), and the image designation data ( Image designation No.) and color information (color designation No.) are acquired (S26; see FIG. 11A). Then, based on the acquired information, image data is added (super paused) to the accounting processing print data to generate receipt print data (S27), and the process ends (S28).
[0094]
As described above, in the present invention, by searching the accounting processing print data generated by the PC 40, the specific character string indicating the print position of the image data is extracted, and based on the line number specified by the specific character string. Generate an image addition setting command. Then, the PC 40 transmits this to the printing apparatus 50 together with the accounting processing print data. On the other hand, the printing apparatus 50 adds the image data to the accounting processing print data based on the image addition setting command, and generates receipt print data for printing on the receipt. That is, with this configuration, even when a low-speed interface is used as an interface between the PC 40 and the printing device 50, image data can be printed quickly. Further, since the PC 40 generates an additional setting command for adding image data, the PC 40 can set image data without directly operating the printing apparatus 50.
[0095]
Here, printing examples of other image data will be described with some examples. FIGS. 10A, 12A and 15 show the definition table, the data acquisition result, the image addition setting command, and the print result in <Print Example 2>. As shown in FIG. 10A, two items specifying the same image data “U0 / C: hana.jpg” (flower pattern) are stored in the definition table. In this case, as shown in the drawing, the data acquisition result is such that a set of a start line number, an end line number, and a color designation is set for one image designation data, and two sets are associated with each other. The same image data is printed in the area. Therefore, as shown in FIG. 12A, the image addition setting command also includes a parameter (“n2, n3, n4”) indicating a start line number, an end line number, and color information after a parameter “n1” indicating image designation data. And "n5, n6, n7") are added as a set.
[0096]
However, in <Printing Example 2>, since the line number setting for the end character string “receipt” is “0” (see FIG. 10A), the first bit representing the line number setting of the parameter “n3” Becomes "0" (see FIG. 11B). Therefore, a line including the end character string “receipt” does not form a print area, and a line from the line including the end character string “receipt” to a line one line above becomes a print area.
[0097]
FIG. 15 shows a print result when the image addition setting command shown in FIG. 12A is transmitted. As shown here, the image data (flower pattern) is printed in two print areas, and in the first print area (the print area specified by the start line number “x1” and the end line number “x2”), The image data is printed from the line number “x1” to the line number “x2-1”, and in the second print area (the print area specified by the start line number “x3” and the end line number “x4”), Data is printed from line number “x3” to line number “x4”.
[0098]
Thus, as shown in <Printing Example 2>, when a plurality of specific character strings are extracted from the same image designation data, the image data addition setting is performed using an image addition setting command having a simpler configuration. be able to.
[0099]
Next, FIGS. 10B, 12B, and 16 show the definition table, the data acquisition result, the image addition setting command, and the printing result in <Printing Example 3>. As shown in FIG. 10B, different image data (“U3 / C: syoku.jpg”, “U4 / C: nichi.jpg”, and “U5 / C: iyaku.jpg”) are stored in the definition table. On the other hand, three items each having a start character string and an end character string associated with each other are stored. In this case, the data acquisition result has a format in which a start line number, an end line number, and a color designation are associated with each image designation data as shown in FIG. Therefore, as shown in FIG. 12B, the image addition setting command also includes parameters (“n1, n2, n3, n4” and “n5, n6,” indicating image designation data, a start line number, an end line number, and color information. n7, n8 ") are added as a set.
[0100]
However, in <Printing Example 3>, although three items are stored in the definition table, they have different start character strings, but all have the same end character string “category total”. In this case, the character string existing below the start character string and in the uppermost line is set as the end character string for the start character string. For this reason, even if the same end character string is stored in a different item, if the end character string exists in the multiple accounting processing print data, a plurality of image data will not be printed in an overlapping manner.
[0101]
FIG. 16 shows a print result when the image addition setting command shown in FIG. 12B is transmitted. As shown here, for the image data “U3 / C: syoku.jpg”, “U4 / C: nichi.jpg” and “U5 / C: iyaku.jpg”, the respective start character strings and end character strings are used. Printed in the specified print area. Further, even if the end character string is the same character string, since the end character string exists in the multiple accounting processing print data, the three image data are not printed in an overlapping manner.
[0102]
In this way, as shown in <Printing Example 3>, even when a plurality of image designation data are printed in different print areas, the addition setting of the image data can be performed by one image addition setting command.
[0103]
As described above, according to the present invention, the image designation data, the start character string, and the end character string are associated with each other and stored as a plurality of definition tables, so that various types of data can be provided in accordance with the character strings included in the accounting processing print data. Image data can be printed in a desired print area.
[0104]
In particular, when the printing apparatus 50 of the present invention is used in the POS system 10 as in the present embodiment, a store logo or the like is stored as image data so that the store logo is printed in a specific area. A receipt 61 can be issued. In other words, simply by providing the printing device 50 used as a receipt printer with a small memory for storing image data (logo), a receipt with high visibility can be created, and the image of the store can be enhanced for the customer. Impress and enhance the advertising effect.
[0105]
In the above embodiment, the generation of the image addition setting command is realized by the printer driver 109 incorporated in the control unit 140 in the PC 40. However, this is stored in a recording medium, and is stored in another PC or The printing device may be configured to use the generation program. As a storage medium, a hard disk, a flash ROM, a memory card (compact flash (registered trademark), smart media, a memory stick, or the like), a compact disk, a magneto-optical disk, a digital versatile disk, a flexible disk, or the like can be used.
[0106]
As described above, according to the printing apparatus control method of the present invention, the program for realizing the same, the recording medium, the printer driver, the merchandise sales data processing apparatus, and the POS system, the image data is transmitted from the PC 40 to the printing apparatus 50. Instead, the image data is stored in the printing device 50, and the image addition setting command for adding the image data is transmitted from the PC 40. Therefore, even when a low-speed interface is used as the interface between the PC 40 and the printing device. The transmission time does not matter and the processing efficiency does not decrease.
[0107]
In addition, the printing device 50 can easily specify the printing position by acquiring the line number from the parameter included in the image addition setting command, and thus can create a good-looking receipt. It works.
[0108]
Further, by generating an image addition setting command for adding image data by the printer driver 109, image data can be set from the PC 40 without directly operating the printing apparatus 50. Further, even if the PC 40 is a monochrome / text-based application, the printing device 50 can issue a color / graphics-based receipt without changing the application.
[0109]
In the above example, the accounting print data is set in advance so as to be performed in the primary color “K (black)”, and the image data is printed in a print color (sub color) other than “K (black)”. Can be set, but "K (black)" may be set as image data. However, in this case (when the accounting processing print data and the image data are set so as to be printed in the same color), it is preferable that the image data is set so that the print density is automatically reduced and printed. According to this configuration, the image data can be added without deteriorating the legibility of the accounting print data.
[0110]
Further, not only the image data but also the print color of the accounting processing print data may be settable. However, also in this case, if the image data is configured so that only the printing color other than the set color of the accounting processing print data can be set, or if the accounting processing printing data and the image data are set to be printed in the same color. It is preferable that the image data is set so that the print density is automatically lowered.
[0111]
In the above example, both the start character string and the end character string are set. However, if neither of these settings is made, the print area of the image data may be specified according to the default value. good. For example, if no start character string is set, printing of image data is started from a line having a predetermined length X from the front end of the receipt 61. If no end character string is specified, a predetermined length Y is set from the rear end of the receipt 61. The printing of the image data may be completed by the line up to. If no start character string is specified, printing of image data starts from a line where a predetermined character string (for example, “TEL:”) included in the accounting processing print data is printed, and no end character string is specified. In such a case, the printing of the image data may be completed until a line where another predetermined character string (for example, “Thank you for your purchase”) included in the print data is printed. According to these configurations, it is possible to save the trouble of setting when the user is not concerned with the print area.
[0112]
Further, the setting of the image data (definition table) is not limited to the setting contents shown in FIG. 6, but the setting of the enlargement / reduction of the image data, the setting of the rotation angle, the designation of two or more image data and the setting of their print colors, May be performed. According to this configuration, more various image data can be added.
[0113]
Further, in the above-described example, the printing apparatus 50 is of an inkjet type, but is not limited thereto, and a thermal head type or a wire dot type printing apparatus may be used.
[0114]
Further, irrespective of the example of the POS system described above, for example, a system configuration and an apparatus configuration such as a stand-alone type ECR and a cash register that are not connected to the server can be appropriately changed without departing from the gist of the present invention. .
[0115]
【The invention's effect】
As described above, according to the printing apparatus control method of the present invention, the program for realizing the printing apparatus, the recording medium, the printer driver, the merchandise sales data processing apparatus, and the POS system, the image data is stored in the host computer. Instead of transmitting the image data from the host computer, the image data is stored in the printing apparatus, and the host computer transmits the image addition setting command for adding the image data. Even when a low-speed interface is used as an interface between them, it is possible to quickly print image data.
[Brief description of the drawings]
FIG. 1 is a configuration diagram showing an example of a POS system of the present invention.
FIG. 2 is an external perspective view of a POS terminal constituting the POS system of the present invention.
FIG. 3 is a functional block diagram of a PC according to the present invention.
FIG. 4 is a functional block diagram of the printing apparatus of the present invention.
FIG. 5 is a control block diagram of the printing apparatus of the present invention.
FIG. 6 is a diagram showing an example of a setting screen for setting image data according to the present invention.
FIG. 7 is a flowchart illustrating an example of an accounting processing print data / image addition setting command transmission processing according to the present invention.
FIG. 8 is a flowchart illustrating an example of a receipt print data generation process according to the present invention.
FIG. 9 is a diagram showing a definition table of the present invention and data acquisition results obtained from accounting print data.
FIG. 10 is a diagram showing a definition table of the present invention and data acquisition results obtained from accounting processing print data.
FIG. 11 is a diagram showing an example of an image addition setting command code of the present invention.
FIG. 12 is a diagram showing an example of an image addition setting command code of the present invention.
FIG. 13 is a diagram illustrating an example of image data.
FIG. 14 is a diagram showing <Printing Example 1>, which is an example of a receipt created by the present invention.
FIG. 15 is a diagram illustrating a <print example 2> which is an example of a receipt created by the present invention.
FIG. 16 is a diagram illustrating a <print example 3> which is an example of a receipt created by the present invention.
FIG. 17 is a diagram showing an example of creating a receipt in a conventional example of the present invention.
[Explanation of symbols]
10 POS system
20 POS terminal
30 POS server
40 PC
41a POS application execution unit
41b Control object
41c Service Object
41d OS
47 Printer Interface
50 Printer
51 PC side interface
61 Receipt
108 Image data setting program
109 Printer Driver
110 data input / output unit
120 Printing unit
130 drive unit
140 control unit
141 CPU
142 ROM
143 CG-ROM
144 RAM
145 Internal bus
201 Definition table setting section
202 Accounting processing print data generation unit
203 Image addition setting command generation unit
204 Data storage unit (PC)
205 Data transmission unit
231 Data acquisition unit
232 Data storage unit (printing device)
233 Command analysis unit
234 Receipt Print Data Generation Unit
235 Printing unit
300 Setting screen

Claims (22)

商品販売に関する入力情報に基づいて生成された会計処理印刷データに、既に印刷装置に記憶されている画像データを付加して印刷する印刷装置の制御方法であって、
前記会計処理印刷データを取得する会計処理印刷データ取得工程と、
前記会計処理印刷データから、前記画像データの印刷位置を示す特定文字列を検索し、当該特定文字列を抽出する文字列抽出工程と、
抽出した前記特定文字列によって特定される行番号を取得する行番号取得工程と、
取得した前記行番号に基づき、画像付加設定コマンドを生成する画像付加設定コマンド生成工程と、
前記会計処理印刷データおよび前記画像付加設定コマンドを、前記印刷装置に送信する送信工程と、
を備えたことを特徴とする印刷装置の制御方法。
A method of controlling a printing apparatus for printing by adding image data already stored in the printing apparatus to accounting processing print data generated based on input information regarding product sales,
An accounting print data acquisition step of acquiring the accounting print data,
A character string extraction step of searching the accounting processing print data for a specific character string indicating a print position of the image data, and extracting the specific character string;
A line number obtaining step of obtaining a line number specified by the extracted specific character string,
An image addition setting command generation step of generating an image addition setting command based on the obtained line number,
A transmission step of transmitting the accounting processing print data and the image addition setting command to the printing apparatus;
A method for controlling a printing apparatus, comprising:
前記特定文字列は、前記画像データの付加を開始する位置を示すスタート文字列、および前記画像データの付加を終了する位置を示すエンド文字列から成り、
前記行番号取得工程では、前記スタート文字列および前記エンド文字列によって特定される2つの行番号を取得することを特徴とする請求項1に記載の印刷装置の制御方法。
The specific character string includes a start character string indicating a position where the addition of the image data is started, and an end character string indicating a position where the addition of the image data is completed,
The method according to claim 1, wherein in the line number obtaining step, two line numbers specified by the start character string and the end character string are obtained.
前記印刷装置には、複数の画像データファイルが記憶されており、
前記スタート文字列および前記エンド文字列と、前記複数の画像データファイルの中から1の画像データファイルを指定するための画像指定データとを関連づけた定義テーブルを記憶する定義テーブル記憶工程と、
前記定義テーブルから、前記文字列抽出工程によって抽出された前記スタート文字列および前記エンド文字列に関連する画像指定データを取得する画像指定データ取得工程と、を更に備え、
前記画像付加設定コマンド生成工程では、取得した前記行番号および前記画像指定データに基づき、前記画像付加設定コマンドを生成することを特徴とする請求項2に記載の印刷装置の制御方法。
The printing device stores a plurality of image data files,
A definition table storing step of storing a definition table in which the start character string and the end character string are associated with image designation data for designating one image data file from among the plurality of image data files;
An image designation data acquisition step of acquiring image designation data related to the start character string and the end character string extracted by the character string extraction step from the definition table,
The method according to claim 2, wherein in the image addition setting command generation step, the image addition setting command is generated based on the acquired line number and the image designation data.
請求項1、2または3に記載の印刷装置の制御方法をコンピュータに実現させるためのプログラム。A program for causing a computer to execute the control method for a printing apparatus according to claim 1. 請求項4に記載のプログラムを記録したコンピュータ読み取り可能な記録媒体。A computer-readable recording medium on which the program according to claim 4 is recorded. 請求項3に記載の印刷装置の制御方法をコンピュータに実現させるためのプリンタドライバ。A printer driver for causing a computer to implement the method for controlling a printing apparatus according to claim 3. 前記スタート文字列および/または前記エンド文字列を設定する文字列設定工程を備えたことを特徴とする請求項6に記載のプリンタドライバ。The printer driver according to claim 6, further comprising a character string setting step of setting the start character string and / or the end character string. 前記行番号取得工程において、前記スタート文字列の行番号または前記スタート文字列より1行下の行番号のいずれを取得させるか、並びに前記エンド文字列の行番号または前記エンド文字列より1行上の行番号のいずれを取得させるかを設定する行番号設定工程を更に備えたことを特徴とする請求項7に記載のプリンタドライバ。In the line number acquiring step, which of a line number of the start character string and a line number one line below the start character string is acquired, and a line number of the end character string or one line above the end character string 8. The printer driver according to claim 7, further comprising a line number setting step of setting which of the line numbers is to be acquired. 前記文字列設定工程によって設定される前記スタート文字列および/または前記エンド文字列と関連づけて、前記画像指定データを設定する画像指定データ設定工程を更に備えたことを特徴とする請求項8に記載のプリンタドライバ。9. An image designation data setting step of setting the image designation data in association with the start character string and / or the end character string set in the character string setting step. Printer driver. 前記印刷装置においてカラー印刷が可能である場合、
前記画像データの印刷色を設定する印刷色設定工程を更に備え、
前記画像付加設定コマンドは、前記印刷色を示すパラメータを含むことを特徴とする請求項9に記載のプリンタドライバ。
When color printing is possible in the printing device,
A print color setting step of setting a print color of the image data,
The printer driver according to claim 9, wherein the image addition setting command includes a parameter indicating the print color.
前記文字列設定工程における設定事項と、前記行番号設定工程における設定事項と、前記画像指定データ設定工程における設定事項と、前記印刷色設定工程における設定事項とを設定するための設定画面を実行するユーティリティ実行プログラムを更に備えたことを特徴とする請求項10に記載のプリンタドライバ。A setting screen for setting the setting items in the character string setting step, the setting items in the line number setting step, the setting items in the image designation data setting step, and the setting items in the print color setting step is executed. The printer driver according to claim 10, further comprising a utility execution program. 商品販売に関する入力情報に基づいて生成された会計処理印刷データに、既に記憶されている画像データを付加してレシート上に印刷を行う印刷装置と、
前記印刷装置に対し、前記会計処理印刷データと、前記画像データを付加して印刷するための画像付加設定コマンドとを送信することにより、前記印刷装置を制御するホストコンピュータと、を備えた商品販売データ処理装置において、
前記ホストコンピュータは、前記会計処理印刷データを生成する会計処理印刷データ生成手段と、
前記会計処理印刷データから、前記画像データの印刷位置を示す特定文字列を検索し、当該特定文字列を抽出する文字列抽出手段と、
抽出した前記特定文字列によって特定される行番号を取得する行番号取得手段と、
取得した前記行番号に基づき、前記画像付加設定コマンドを生成する画像付加設定コマンド生成手段と、
前記会計処理印刷データおよび前記画像付加設定コマンドを、前記印刷装置に送信する送信手段と、
を有することを特徴とする商品販売データ処理装置。
A printing device that adds the already stored image data to the accounting processing print data generated based on the input information regarding product sales and performs printing on a receipt;
A sales computer comprising: a host computer that controls the printing apparatus by transmitting the accounting processing print data and an image addition setting command for adding and printing the image data to the printing apparatus. In the data processing device,
The host computer, accounting processing print data generating means for generating the accounting processing print data,
A character string extracting unit that searches the accounting processing print data for a specific character string indicating a print position of the image data, and extracts the specific character string;
Line number acquisition means for acquiring a line number specified by the extracted specific character string,
An image addition setting command generation unit that generates the image addition setting command based on the obtained line number,
Transmitting means for transmitting the accounting processing print data and the image addition setting command to the printing apparatus;
A merchandise sales data processing device comprising:
前記特定文字列は、前記画像データの付加を開始する位置を示すスタート文字列、および前記画像データの付加を終了する位置を示すエンド文字列から成り、
前記行番号取得手段は、前記スタート文字列および前記エンド文字列によって特定される2つの行番号を取得することを特徴とする請求項12に記載の商品販売データ処理装置。
The specific character string includes a start character string indicating a position where the addition of the image data is started, and an end character string indicating a position where the addition of the image data is completed,
13. The merchandise sales data processing apparatus according to claim 12, wherein the line number acquiring unit acquires two line numbers specified by the start character string and the end character string.
前記印刷装置には、複数の画像データファイルが記憶されており、
前記スタート文字列および前記エンド文字列と、前記複数の画像データファイルの中から1の画像データファイルを指定するための画像指定データとを関連づけた定義テーブルを記憶する定義テーブル記憶手段と、
前記定義テーブルから、前記文字列抽出手段によって抽出された前記スタート文字列および前記エンド文字列に関連する画像指定データを取得する画像指定データ取得手段と、を更に備え、
前記画像付加設定コマンド生成手段は、取得した前記行番号および前記画像指定データに基づき、前記画像付加設定コマンドを生成することを特徴とする請求項13に記載の商品販売データ処理装置。
The printing device stores a plurality of image data files,
Definition table storage means for storing a definition table in which the start character string and the end character string are associated with image designation data for designating one image data file from among the plurality of image data files;
Image definition data acquisition means for acquiring image designation data related to the start character string and the end character string extracted by the character string extraction means from the definition table,
14. The merchandise sales data processing apparatus according to claim 13, wherein the image addition setting command generation unit generates the image addition setting command based on the acquired line number and the image designation data.
前記スタート文字列および/または前記エンド文字列を設定する文字列設定手段を更に備えたことを特徴とする請求項14に記載の商品販売データ処理装置。15. The merchandise sales data processing apparatus according to claim 14, further comprising character string setting means for setting the start character string and / or the end character string. 前記行番号取得手段において、前記スタート文字列の行番号または前記スタート文字列より1行下の行番号のいずれを取得させるか、並びに前記エンド文字列の行番号または前記エンド文字列より1行上の行番号のいずれを取得させるかを設定する行番号設定手段を更に備えたことを特徴とする請求項15に記載の商品販売データ処理装置。The line number acquiring means determines which of the line number of the start character string and the line number one line below the start character string is obtained, and the line number of the end character string or one line above the end character string. 16. The merchandise sales data processing apparatus according to claim 15, further comprising a line number setting means for setting which of the line numbers is to be acquired. 前記文字列設定手段によって設定される前記スタート文字列および/または前記エンド文字列と関連づけて、前記画像指定データを設定する画像指定データ設定手段を更に備えたことを特徴とする請求項16に記載の商品販売データ処理装置。17. The image processing apparatus according to claim 16, further comprising image designation data setting means for setting the image designation data in association with the start character string and / or the end character string set by the character string setting means. Commodity sales data processing device. 前記印刷装置は、主色と、当該主色以外の少なくとも1色の副色とによるカラー印刷が可能であって、且つ前記会計処理印刷データを前記主色によって印刷し、前記画像データを前記少なくとも1色の副色によって印刷することを特徴とする請求項17に記載の商品販売データ処理装置。The printing device is capable of color printing with a main color and at least one sub-color other than the main color, and prints the accounting print data in the main color, and prints the image data in the at least 18. The merchandise sales data processing apparatus according to claim 17, wherein printing is performed using one sub-color. 前記画像データの印刷色を設定する印刷色設定手段を更に備え、
前記画像付加設定コマンドは、前記印刷色を示すパラメータを含むことを特徴とする請求項18に記載の商品販売データ処理装置。
Further comprising a print color setting means for setting a print color of the image data,
19. The merchandise sales data processing apparatus according to claim 18, wherein the image addition setting command includes a parameter indicating the print color.
前記文字列抽出手段と、前記行番号取得手段と、前記画像付加設定コマンド生成手段と、前記送信手段と、前記定義テーブル記憶手段と、前記画像指定データ取得手段とは、プリンタドライバによって提供されることを特徴とする請求項19に記載の商品販売データ処理装置。The character string extraction unit, the line number acquisition unit, the image addition setting command generation unit, the transmission unit, the definition table storage unit, and the image designation data acquisition unit are provided by a printer driver. 20. The merchandise sales data processing device according to claim 19, wherein: 前記文字列設定手段による設定事項と、前記行番号設定手段による設定事項と、前記画像指定データ設定手段による設定事項と、前記印刷色設定手段による設定事項とは、前記プリンタドライバ内のユーティリティ実行プログラムによって実行される設定画面において設定されることを特徴とする請求項20に記載の商品販売データ処理装置。The setting items by the character string setting unit, the setting items by the line number setting unit, the setting items by the image designation data setting unit, and the setting items by the print color setting unit are a utility execution program in the printer driver. 21. The merchandise sales data processing apparatus according to claim 20, wherein the merchandise sales data processing apparatus is set on a setting screen executed by the user. 請求項12ないし21のいずれか1に記載の商品販売データ処理装置と、
ネットワークを介して前記商品販売データ処理装置と接続され、当該商品販売データ処理装置を管理するPOSサーバと、によって構成されていることを特徴とするPOSシステム。
A merchandise sales data processing device according to any one of claims 12 to 21,
A POS system connected to the merchandise sales data processing device via a network and configured to manage the merchandise sales data processing device.
JP2002298994A 2002-10-11 2002-10-11 Printing apparatus control method, program for realizing the same, recording medium, printer driver, merchandise sales data processing apparatus, and POS system Expired - Fee Related JP4284963B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP2002298994A JP4284963B2 (en) 2002-10-11 2002-10-11 Printing apparatus control method, program for realizing the same, recording medium, printer driver, merchandise sales data processing apparatus, and POS system
ES03021178T ES2294234T3 (en) 2002-10-11 2003-09-24 METHOD OF CONTROL OF A PRINTING DEVICE IN POINT OF SALE SYSTEMS.
DE60317438T DE60317438T2 (en) 2002-10-11 2003-09-24 Control method of a printing device in point-of-sale systems
EP03021178A EP1408465B1 (en) 2002-10-11 2003-09-24 Method of controlling printing apparatus in POS systems
US10/675,858 US20050275894A1 (en) 2002-10-11 2003-09-30 Method of controlling printing apparatus, method of generating receipt print data, program, printer driver, printing apparatus, merchandise sales data processing apparatus and POS system
CNB2003101010337A CN100492423C (en) 2002-10-11 2003-10-10 Control method of printing device,receipt printing data generating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002298994A JP4284963B2 (en) 2002-10-11 2002-10-11 Printing apparatus control method, program for realizing the same, recording medium, printer driver, merchandise sales data processing apparatus, and POS system

Publications (2)

Publication Number Publication Date
JP2004133778A true JP2004133778A (en) 2004-04-30
JP4284963B2 JP4284963B2 (en) 2009-06-24

Family

ID=32288257

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002298994A Expired - Fee Related JP4284963B2 (en) 2002-10-11 2002-10-11 Printing apparatus control method, program for realizing the same, recording medium, printer driver, merchandise sales data processing apparatus, and POS system

Country Status (2)

Country Link
JP (1) JP4284963B2 (en)
CN (1) CN100492423C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2503489A2 (en) 2011-03-23 2012-09-26 Seiko Instruments Inc. Printer, printing method, and program for superposing received print data and stored print data

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2083404A3 (en) * 2008-01-24 2010-01-06 Seiko Epson Corporation Receipt printing processing method, printer and receipt printing processing system
JP2011107774A (en) * 2009-11-12 2011-06-02 Toshiba Tec Corp Commodity sales data processor and control program therefor
JP5974499B2 (en) * 2012-01-25 2016-08-23 セイコーエプソン株式会社 RECORDING DEVICE, CONTROL DEVICE, AND RECORDING DEVICE CONTROL METHOD
JP6064715B2 (en) * 2013-03-21 2017-01-25 セイコーエプソン株式会社 Print control program, print control apparatus, and print control method
US10521783B2 (en) * 2014-04-04 2019-12-31 Seiko Epson Corporation POS terminal, POS system, and control method of a POS terminal
JP6665842B2 (en) * 2017-09-21 2020-03-13 カシオ計算機株式会社 Program, management terminal, and management method for sales data processing device
CN109783037A (en) * 2019-01-02 2019-05-21 上海济强电子科技有限公司 A kind of instruction of print control and control method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2503489A2 (en) 2011-03-23 2012-09-26 Seiko Instruments Inc. Printer, printing method, and program for superposing received print data and stored print data
JP2012200866A (en) * 2011-03-23 2012-10-22 Seiko Instruments Inc Printer, printing method, and program
US8848234B2 (en) 2011-03-23 2014-09-30 Seiko Instruments Inc. Printer, printing method, and program

Also Published As

Publication number Publication date
JP4284963B2 (en) 2009-06-24
CN100492423C (en) 2009-05-27
CN1497505A (en) 2004-05-19

Similar Documents

Publication Publication Date Title
JP4407183B2 (en) Printing method, program for realizing the printing method, recording medium printing apparatus, and printer driver
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
US8988702B2 (en) Printing apparatus and printing method
JP4710903B2 (en) PRINT SYSTEM, POS SYSTEM, CONNECTION DEVICE, PRINT SYSTEM CONTROL METHOD AND ITS PROGRAM
US10430697B2 (en) Printer and method for processing string information
US7375844B2 (en) Method for generating a print data file, method for storing print data, a data storage medium therefor, and an apparatus for generating a data storage file
EP1408465B1 (en) Method of controlling printing apparatus in POS systems
KR100550714B1 (en) Apparatus and method for two-color printing based on single color data
JP4492188B2 (en) POS terminal control method, receipt print data generation method, program, printing apparatus, merchandise sales data processing apparatus, and POS system
JP4284963B2 (en) Printing apparatus control method, program for realizing the same, recording medium, printer driver, merchandise sales data processing apparatus, and POS system
US9898691B2 (en) Control device, control system, and control method of a control device
JP4492191B2 (en) POS terminal control method and program
JP4168722B2 (en) Receipt print data generation method, program for realizing the same, recording medium, and printing apparatus
JP4341326B2 (en) Printing method, printing apparatus, printer driver, merchandise sales data processing apparatus, and POS system
US20060055950A1 (en) Image data registration method, image data registration program, and printing apparatus
JP2004086477A (en) Printing method, program for realizing its printing method, recording medium, printing device, printer driver, pos terminal and pos system
JP2006301737A (en) Image registration apparatus, method and program, and image preview program
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
JP2012198613A (en) Output device, journal generation system, journal generation method and program
EP1396808A1 (en) Method and apparatus of printing payment transaction information, program, printer driver and point of sale system for realising the same
JP4144289B2 (en) Printing method, program for realizing the printing method, recording medium recording the program, POS terminal and POS system
JP4414742B2 (en) Passbook printing system
JP2006076163A (en) Print controller, program, and test printing method of print controller
JP2003263681A (en) Printer, controller, printer control method, program for making computer execute printer control method, printer system and post system
JP2006076162A (en) Method for generating test print data, print controller and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051011

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20070403

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081027

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081202

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090129

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090316

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

Free format text: PAYMENT UNTIL: 20120403

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120403

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130403

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130403

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20140403

Year of fee payment: 5

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