JP3812256B2 - Printing apparatus and storage medium - Google Patents

Printing apparatus and storage medium Download PDF

Info

Publication number
JP3812256B2
JP3812256B2 JP36800199A JP36800199A JP3812256B2 JP 3812256 B2 JP3812256 B2 JP 3812256B2 JP 36800199 A JP36800199 A JP 36800199A JP 36800199 A JP36800199 A JP 36800199A JP 3812256 B2 JP3812256 B2 JP 3812256B2
Authority
JP
Japan
Prior art keywords
journal
data
print
receipt
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP36800199A
Other languages
Japanese (ja)
Other versions
JP2001184566A (en
Inventor
亨 池田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP36800199A priority Critical patent/JP3812256B2/en
Publication of JP2001184566A publication Critical patent/JP2001184566A/en
Application granted granted Critical
Publication of JP3812256B2 publication Critical patent/JP3812256B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、レシート用ロール紙とジャーナル用ロール紙とを1つの用紙送り機構で送り、印刷バッファに記憶された1ライン分の印刷データを1つの印字部により夫々個々のロール紙に印刷する印刷装置及び記憶媒体に関する。
【0002】
【従来の技術】
ECR(電子式キャッシュレジスタ)およびPOS(Point Of Scales System)端末装置は、入力された売上データを出力し、その売上データを累計(登録)し、登録された売上金額や売上個数、売上回数等を出力する点検、精算を行う装置であり、また、百貨店、スーパーマーケット、コンビニエンスストアなどの売り場に設置し、商品管理、顧客管理、売上管理等に利用するデータを即時に収集する端末装置である。
【0003】
これら従来のECR装置やPOS端末装置では、レシートとジャーナルの2つのシートを印刷する専用の印刷装置が必要である。この印刷装置としては、ジャーナル用の紙送り装置及び印字ヘッドと、レシート用の紙送り装置及び印字ヘッドとを備え、夫々の用紙送り装置でジャーナル用紙とレシート用紙の用紙送りを行いながら、夫々の印字ヘッドで取引データをジャーナル用紙とレシート用紙に印字する2シート用プリンタを用いる場合や、ジャーナル用紙とレシート用紙に取引データを個々に印字するように1シート用プリンタを2台用いる場合等がある。
【0004】
また、プリンタの稼働コスト削減や1シート用プリンタ同等の回路構成による低価格化を目的として、印字幅の広い1シート用プリンタを使用し、その印字幅の半分でレシートを、残り半分でジャーナルを印字するように構成されたECRが開発、利用されている。
【0005】
【発明が解決しようとする課題】
しかしながら、上記従来のECR装置やPOS端末装置に用いられるレシートとジャーナルの2つのシートを印刷する専用の印刷装置にあっては、幅広の1シートにレシートとジャーナルを印字するため、レシート側とジャーナル側を同時に同数行分フィードしていく必要がある。このため、レシート側に印字しないスタンプやレシートを見易くするためのフィード行があると、ジャーナル側に空白行ができてしまうという問題があった。
【0006】
本発明の課題は、レシートとジャーナルの2つのシートに所定の印字データを過不足無く印刷する専用の印刷装置及び記憶媒体を提供することである。
【0007】
【課題を解決するための手段】
この発明は、レシート用ロール紙とジャーナル用ロール紙とを1つの用紙送り機構で送り、印刷バッファに記憶された1ライン分の印刷データに基づいて1つの印字部により夫々個々のロール紙に印刷する印刷装置において、レシート印字行数とジャーナル印字行数とに基づいて拡大率を算出する算出手段と、前記印刷データの縦方向の長さを前記拡大率に応じて拡大して記憶する記憶制御手段と、この記憶制御手段により記憶された印刷データを前記印字部によりジャーナル用のロール紙に対して印刷させる印刷制御手段とを備えたことを特徴とする。
【0008】
したがって、この発明によれば、レシート用ロール紙とジャーナル用ロール紙とを1つの用紙送り機構で送り、印刷バッファに記憶された1ライン分の印刷データに基づいて1つの印字部により夫々個々のロール紙に印刷する印刷装置において、レシート印字行数とジャーナル印字行数とに基づいて拡大率を算出し、前記レシートの印字長さに合うように、前記印刷データの縦方向の長さを前記拡大率に応じて拡大してジャーナル用のロール紙に対して印刷することができる。
【0015】
【発明の実施の形態】
以下、図を参照して本発明の実施の形態を詳細に説明する。
[第1の実施の形態]
図1〜図10は、本発明の印刷装置を適用したECRの第1の実施の形態を示す図である。
【0016】
まず、構成を説明する。
図1は、本実施の形態におけるECR10の制御系の要部構成を示すブロック図である。図5において、ECR10は、CPU11、入力装置12、RAM13、ドロア14、伝送制御部15、表示装置16、印刷装置17、記憶装置18、及び記憶媒体18aにより構成されており、記憶媒体18aを除く各部はバス19に接続されている。
【0017】
CPU(Central Processing Unit )11は、記憶媒体27に格納されている各種制御プログラムに従ってRAM13との間で各種データの授受を行いながら各種動作に必要な数値を演算処理し、この演算処理に基づいてECR10内の各部を制御するための各種制御信号を出力する。
【0018】
また、CPU11は、後述する印刷処理(図5参照)を実行し、入力装置12から商品データが入力されたか否かを判別し、商品データの入力であれば、この商品データの入力が今回の取引で最初に入力されたものであるか否かを判別し、最初に入力された商品データであれば、RAM13内の店名・メッセージデータメモリ13aに予め記憶された店名・メッセージデータを、図3に示すようにRAM13内の一時記憶メモリ13fに記憶し、入力された商品データの登録処理を行って、該商品データを表示装置16に表示するとともに、該商品データを図3に示すように一時記憶メモリ13fに記憶し、ジャーナル行数カウンタを記憶行数に応じて加算して更新する。
【0019】
また、CPU11は、「締め」が入力されたか否かを判別し、「締め」入力であれば、締め処理(合計/釣銭演算、取引データ更新)を行って、該締めデータを表示装置16に表示して、レシート一時記憶メモリに”税率”を記憶し、レシート一時記憶メモリとジャーナル一時記憶メモリに”税額”、”合計”、”預り金”、”釣銭”を記憶し、後述するレシート/ジャーナル印字処理を実行する。
【0020】
本実施の形態では、1系統の印字機構で同時にレシートとジャーナルとを送って印字するため、以下のレシート/ジャーナル印字処理が実行される。
【0021】
このレシート/ジャーナル印字処理において、CPU11は、後述するジャーナルデータ拡大率算出処理(図7参照)を実行し、上記印刷処理により一時記憶メモリ13fに記憶した最初のデータである店名・メッセージデータを読み出し、RAM13内の印字桁数メモリ13kに予め記憶された印字桁データに基づく印字フォーマットに従って、シフトレジスタにレシート・ジャーナルデータを作成し、そのジャーナルデータを拡大率に応じて拡大し、最初の1ラインをラッチするとともに、ラッチした1ラインを印字する。
【0022】
また、CPU11は、全ラインの印字が終了したか否かを判定し、全ラインの印字が終了した場合、一時記憶メモリ13f内の全データの印字が終了したか否かを判定し、全ラインの印字が終了していない場合、次の1ラインをラッチし、一時記憶メモリ13f内の全データの印字が終了した場合、一時記憶データをすべてクリアし、上述したレシート/ジャーナル印字処理を終了する。
【0023】
また、CPU11は、後述するジャーナルデータ拡大率算出処理(図7参照)を実行し、レシート印字行数を算出し、ジャーナル印字行数を算出し、レシート印字行数をジャーナル印字行数で割った値を拡大率として設定する。さらに、CPU11は、後述する処理(図8参照)を実行を実行する。
【0024】
入力装置12は、図示しないがモードキー、クラークキー、テンキー、ファンクションキー、領収書釦等を備え、ユーザーによる各キー操作に応じた各種キー入力信号をCPU11に出力する。
【0025】
RAM(Random Access Memory)13は、図2に示すように、店名・メッセージデータメモリ13a、PLUメモリ13b、小計メモリ13c、税率メモリ13d、印字バッファメモリ13e、一時記憶メモリ13f、印字項目メモリ13j、印字桁数メモリ13k、及びワークメモリ13l等を有する。
【0026】
店名・メッセージデータメモリ13aは、レシートに最初に印字する店舗の店名データと宣伝用等の各種サービスメッセージデータとを記憶し、PLUメモリ13bは、各種商品名データと対応して単価データとを設定したPLU(Price Look Up)テーブルを記憶し、小計メモリ13cは、取引処理毎に計算される小計データを一時的に記憶し、税率メモリ13dは、地域や国に応じた税率データを記憶し、印字バッファメモリ13eは、CPU11により実行される上記レシート・ジャーナル印字処理に際してレシート用印字データとジャーナル用印字データとを一時的に記憶し、一時記憶メモリ13fは、図5に示すようにCPU11により実行される上記印刷処理に際して入力される各種取引データ(店名・メッセージデータ、商品データ、小計データ、合計データ等)を一時的に記憶する。
【0027】
印字項目メモリ13jは、図6に示すようにレシート/ジャーナル印字処理中にレシートとジャーナルに印字する印字項目を記憶し、印字桁数メモリ13kは、受光素子により検出される仕切り板の取り付け位置に対応する印字桁データを記憶し、ワークメモリ13lは、CPU11により実行される上記印刷処理やレシート/ジャーナル印字処理に際して処理される各種データを一時的に記憶する。
【0028】
また、一時記憶メモリ13fは、図3に示すようにレシート一時記憶メモリとジャーナル一時記憶メモリとから構成され、レシート一時記憶メモリには、”店名・メッセージ”、”商品名”、”商品単価”、”小計”、”税率”、”税額”、”合計”、”預り金額”等のデータが各行毎に格納され、ジャーナル一時記憶メモリには、”商品名”、”商品単価”、”税額”、”合計”、”預り金額”等のデータが各行毎に格納される。
【0029】
さらに、印字項目メモリ13jは、図4に示すようにレシート一時記憶メモリとジャーナル一時記憶メモリとから構成され、レシート一時記憶メモリには、”店名”、”メッセージ”、”商品データ”、”小計データ”、”税率データ”、”税額データ”、”合計データ”、”預り金額データ”、”釣銭データ”等のデータが各行毎に格納され、ジャーナル一時記憶メモリには、”商品データ”、”税額データ”、”合計データ”、”預り金額データ”等のデータが各行毎に格納される。
【0030】
ドロア14は、現金を収納し、入力装置12において”現金/預かり金キー”等が操作された際に開放される。
【0031】
伝送制御部15は、モデム(MODEM:MOdulator/DEModulator )またはターミナルアダプタ(TA:Terminal Adapter)等によって構成され、電話回線、ISDN回線等の通信回線を介して外部機器との通信を行うための制御を行う。モデムは、電話回線を介してパーソナルコンピュータ等の外部機器との通信を行うために、CPU11によって処理されたデジタルデータを電話回線の周波数帯域にあったアナログ信号に変調し、また、電話回線を介して入力されたアナログ信号をデジタル信号に復調する装置であり、ターミナルアダプタは、ISDN回線を介してパーソナルコンピュータ等の外部機器との通信を行うために、既存のインタフェースをISDNに対応するインタフェースに変換する装置である。
【0032】
表示装置16は、液晶ディスプレイ等から構成され、CPU11、入力装置12及びRAM13から入力される演算結果、各種データ、商品データ、演算データ、設定データ等を表示する。
【0033】
印刷装置17は、例えば、セグメント単位のサーマル素子がライン状に配列された印字ヘッド部とレシート用紙及びジャーナル用紙がセットされる搬送部とにより構成され、CPU11から所定の時間間隔で1ライン毎に入力される取引きデータをレシート用紙及びジャーナル用紙に印字するとともに、CPU11から所定の時間間隔で1ライン毎に入力される背景パターンが合成されたサンプルレシートとサンプル領収書をレシート用紙に印字する。
【0034】
また、印刷装置17は、サーマルプリンタとともに、オートカッタ、サーマルヘッド17gの駆動機構やロール紙の搬送機構、及びスプール機構等を含み、CPU11により実行される上記レシート/ジャーナル印字処理に際して駆動制御されて、レシート用ロール紙17aとジャーナル用ロール紙17bに取引に係るデータを印字して出力する。
【0035】
記憶装置18は、プログラムやデータ等が予め記憶されている記憶媒体18aを有しており、この記憶媒体18aは磁気的、光学的記録媒体、若しくは半導体メモリで構成されている。この記憶媒体18aは記憶装置18に固定的に設けたもの、若しくは着脱自在に装着するものであり、この記憶媒体18aには上記システムプログラム及び当該システムに対応する各種アプリケーションプログラム、印刷処理プログラム、レシート/ジャーナル印字処理プログラム、及び各種処理プログラムで処理された印字データ等を記憶する。
【0036】
また、この記憶媒体18aに記憶するプログラム、データ等は、その一部若しくは全部をサーバやクライアント等の他の機器からネットワーク回線等の伝送媒体を介して伝送制御部15から受信して記憶する構成にしてもよく、さらに、記憶媒体18aはネットワーク上に構築されたサーバの記憶媒体であってもよい。さらに、前記プログラムをネットワーク回線等の伝送媒体を介してサーバやクライアントへ伝送してこれらの機器にインストールするように構成してもよい。
【0037】
次に、本第1の実施の形態における動作を説明する。
まず、CPU11により実行される印刷処理について図5に示すフローチャートに基づいて説明する。ここで、これらのフローチャートに記述されている各機能を実現するためのプログラムは、読み取り可能なプログラムコードの形態で記録媒体に格納されており、CPU11はこのプログラムコードにしたがった動作を逐次実行する。また、CPU11は伝送媒体を介して伝送されてきた上述のプログラムコードにしたがった動作を逐次実行することもできる。すなわち、記録媒体の他、伝送媒体を介して外部供給されたプログラム/データを利用してこの実施形態特有の動作を実行することもできる。
【0038】
図5において、CPU11は、まず、入力装置12から商品データが入力されたか否かを判別し(ステップS1)、商品データの入力であれば(ステップS1;Yes)、この商品データの入力が今回の取引で最初に入力されたものであるか否かを判別する(ステップS2)。最初に入力された商品データであれば(ステップS2;Yes)、RAM13(図2参照)内の店名・メッセージデータメモリ13aに予め記憶された店名・メッセージデータを、図3に示すようにRAM13内の一時記憶メモリ13fに記憶する(ステップS3)。
【0039】
次に、CPU11は、入力された商品データの登録処理(商品データの更新、及び小計演算)を行って(ステップS4)、該商品データを表示装置16に表示するとともに(ステップS5)、該商品データを図3に示すように一時記憶メモリ13fに記憶し(ステップS6)、ジャーナル行数カウンタを記憶行数に応じて加算して更新し(ステップS7)、ステップS1に戻る。
【0040】
また、ステップS2において商品データの入力が今回の取引で最初に入力されたものでなければ(ステップS2;No)、CPU11は、ステップS4に移行して、以後入力される各商品データの登録処理、表示処理、及び一時記憶処理を繰り返し実行する。
【0041】
また、ステップS1において商品データの入力でなければ(ステップS1;No)、CPU11は、「締め」が入力されたか否かを判別し(ステップS8)、「締め」入力であれば(ステップS8;Yes)、締め処理(合計/釣銭演算、取引データ更新)を行って(ステップS9)、該締めデータを表示装置16に表示して(ステップS10)、図3に示すようにレシート一時記憶メモリに”税率”を記憶し、レシート一時記憶メモリとジャーナル一時記憶メモリに”税額”、”合計”、”預り金”、”釣銭”を記憶し(ステップS11)、後述するレシート/ジャーナル印字処理を実行し(ステップS12)、ステップS1に戻る。
【0042】
また、ステップS8において「締め」入力が無ければ(ステップS8;No)、CPU11は、後述するジャーナル印字指示判定処理を実行し(ステップS13)、ステップS1に戻る。
【0043】
本実施の形態では、図1に示した印刷装置17内の1系統の印字機構で同時にレシートとジャーナルとを送って印字するため、CPU11は、図6に示すフローチャートに基づいてレシート/ジャーナル印字処理を実行する。
【0044】
この図6において、まずCPU11は、後述するジャーナルデータ拡大率算出処理(図7参照)を実行し(ステップS121)、上記印刷処理により一時記憶メモリ13fに記憶した最初のデータである店名・メッセージデータを読み出し(ステップS122)、RAM13内の印字桁数メモリ13kに予め記憶された印字桁データに基づく印字フォーマット(1行当たりのレシートデータ印字桁数、ジャーナル印字桁数、及び余白桁数を含む)に従って、シフトレジスタにレシート・ジャーナルデータを作成する(ステップS123)。
【0045】
次いで、CPU11は、そのジャーナルデータを拡大率に応じて拡大し(ステップS124)、最初の1ラインをラッチする(ステップS125)とともに、ラッチした1ラインを印字する(ステップS126)。次に、CPU11は、全ラインの印字が終了したか否かを判定する(ステップS127)。ここで、全ラインの印字が終了した場合(ステップS127;Yes)、CPU11は、一時記憶メモリ13f内の全データの印字が終了したか否かを判定する(ステップS128)。また、ステップS127において、全ラインの印字が終了していない場合(ステップS127;No)、CPU11は、次の1ラインをラッチし(ステップS130)、再びステップS126に戻りそれ以降の処理を実行する。
【0046】
また、ステップS128において、一時記憶メモリ13f内の全データの印字が終了した場合(ステップS128;Yes)、CPU11は、一時記憶データをすべてクリアし(ステップS129)、上述したレシート/ジャーナル印字処理を終了する。また、一時記憶メモリ13f内の全データの印字が終了していなければ(ステップS128;No)、一時記憶メモリ13fの次の行のデータを読み出し(ステップS131)、再びステップS123に戻りそれ以降の処理を実行する。
【0047】
次に、図7を参照して、図6のステップS121において実行されるジャーナルデータ拡大率算出処理について説明する。この図7において、CPU11は、レシート印字行数を算出し(ステップS1211)、ジャーナル印字行数を算出し(ステップS1212)、レシート印字行数をジャーナル印字行数で割った値を拡大率として設定し(ステップS1213)、図6のステップS122以降の処理に移行する。
【0048】
次に、図8を参照して、処理について説明する。まず、CPU11は、入力装置12からの入力の有無を判定する(ステップS131)。ここで、が有れば(ステップS131;Yes)、CPU11は、「小計キー」操作で小計をし、レシート一時記憶領域に記憶する等の入力に応じた処理を実行(ステップS133)する。
【0049】
以上のレシート/ジャーナル印字処理におけるレシート用印字データとジャーナル用印字データの展開例を図9に示す。
図9において、(a)は印字項目メモリ13j内の設定フラグに基づくレシート用ロール紙とジャーナル用ロール紙の各紙幅に応じて、印字桁数メモリ13kに予め記憶された印字桁データに基づく印字フォーマットの具体例を示した図である。この場合、全体で48桁分の印字桁に対して、1桁目から23桁目がレシート用印字桁であり、その先頭に1桁分の余白、続く20桁分に用実データ印字桁、続く1桁分を余白とし、続く3桁分をレシートとジャーナルを分離するブランク桁とし、続く26桁目から48桁目がジャーナル用印字桁であり、その先頭に1桁分の余白、続く20桁分に用実データ印字桁、続く1桁分を余白としている。
【0050】
次いで、同図(b)は、同図(a)の印字フォーマットに従って、一連の取引データを一時記憶メモリ13f内に記憶したレシート用印字データとジャーナル用印字データの具体例を示した図である。同図(c)は、同図(b)のレシート用印字データとジャーナル用印字データのうち、店名として「○○商店」のレシート用印字イメージ(印字ドット)を印字バッファメモリ13eに展開し、このレシート用印字イメージの1ライン分をラッチした場合を示した図である。
【0051】
以上のようにレシート/ジャーナル印字処理を実行することにより、図10(a)に示すレシートとジャーナルとを、1系統のサーマルプリンタ内で区分けして同時に印字させることが可能になる。この時、レシートの印字項目とジャーナルの印字項目とが異なるため、1レシート用プリンタでレシート/ジャーナル印字処理を実行した場合、ジャーナルの空白が多くなる。しかし、図10(b)に示すようにジャーナルの所定の印字領域に同一の印字データを縦方向に拡大して印字することにより、空白を埋めることが可能となる。例えば、図9に示したレシートの場合は、レシートが14行、ジャーナルが9行であるため、ジャーナル側の印字を14/9=1.555…、即ち約1.6倍縦方向に拡大してジャーナル印字する。
【0052】
上述のように、本発明に係る第1の実施の形態におけるECR10では、ジャーナル側の印字をレシート側の印字行数に合わせて縦方向に拡大する機能を有することにより、ジャーナルに無駄な余白を作ることが無く、印刷シートを有効に利用できる。また、同一の取引内容としては、行幅にムラのないジャーナル印字が可能となる。さらに、各取引内容毎に文字の大きさが異なるため、一連のジャーナル印字を見ていく際に一取引毎の区切りが明確になる。また、例えばジャーナル側の重要情報のみをレシート側の印字行数に合わせて縦方向に拡大する機能を有することにより、一連のジャーナル印字を見ていく際に重要情報の記載位置や記載量を容易に認識できる。
【0053】
[第2の実施の形態]
次に、第2の実施の形態について説明する。図11〜図17は、本発明を適用した第2の実施の形態におけるECR10を示す図である。本第2の実施の形態におけるECR10の全体構造は、上記第1の実施の形態において図1に示したECR10と同様であるため、その構成の図示及び説明は省略する。なお、ここでは、上記第1の実施の形態とは異なるCPU11、及びRAM13の構成について説明する。
【0054】
CPU11は、後述するレシート印字処理(図13参照)を実行し、レシート一時記憶メモリ13fに記憶した最初の一行分のレシートデータを読み出し、RAM13内の印字桁数メモリ13kに予め記憶された印字桁データに基づく印字フォーマットに従って、シフトレジスタにレシートデータを作成し、最初の1ラインをラッチするとともに、ラッチした1ラインを印字し、全ラインの印字が終了したか否かを判定し、全ラインの印字が終了した場合、レシート一時記憶メモリ13f内の全データの印字が終了したか否かを判定し、全ラインの印字が終了していない場合、次の1ラインをラッチする。
【0055】
また、CPU11は、レシート一時記憶メモリ13f内の全データの印字が終了した場合、レシート一時記憶メモリ13f内の全てのデータをクリアし、上述したレシート印字処理を終了し、レシート一時記憶メモリ13f内の全データの印字が終了していなければ、レシート一時記憶メモリ13fの次の行のデータを読み出す。
【0056】
また、CPU11は、後述するジャーナル印字指示判定処理(図14参照)を実行し、入力装置12からのジャーナル印字指示入力の有無を判定し、ジャーナル印字指示が有れば、後述するジャーナル印字処理を実行し、上記ジャーナル印字指示判定処理を終了し、ジャーナル印字指示が無ければ、「小計キー」操作で小計を印字し、レシート一時記憶領域に記憶する等の入力に応じた処理を実行する。
【0057】
さらに、CPU11は、後述するジャーナル印字処理(図15参照)を実行し、RAM13内のジャーナル行数カウンタメモリ13hに記憶されたジャーナル行数カウンタ分だけジャーナル紙を逆フィードし、ジャーナルメモリ13gに記憶した最初の一行分のジャーナルデータを読み出し、印字済行数に「1」を追加し、RAM13内の印字桁数メモリ13kに記憶された桁数に応じてシフトレジスタにジャーナルデータを作成する。
【0058】
また、CPU11は、最初の1ラインをラッチするとともに、ラッチした1ラインを印字し、全ラインの印字が終了したか否かを判定し、全ラインの印字が終了した場合、ジャーナルメモリ13g内の全データの印字が終了したか否かを判定し、全ラインの印字が終了していない場合、次の1ラインをラッチし、ジャーナルメモリ13g内の全データの印字が終了した場合、ジャーナル行数カウンタを印字済行数分減算して更新し、ジャーナルメモリ13gに記憶されたデータを印字済行数分クリアし、印字済行数をクリアし、レシート紙を初期位置にフィードする。
【0059】
本実施の形態におけるRAM13は、図11に示すように、店名・メッセージデータメモリ13a、PLUメモリ13b、小計メモリ13c、税率メモリ13d、印字バッファメモリ13e、レシート一時記憶メモリ13f、ジャーナルメモリ13g、ジャーナル行数カウンタ13h、印字項目メモリ13j、印字桁数メモリ13k、及びワークメモリ13l等を有する。
【0060】
店名・メッセージデータメモリ13aは、レシートに最初に印字する店舗の店名データと宣伝用等の各種サービスメッセージデータとを記憶し、PLUメモリ13bは、各種商品名データと対応して単価データとを設定したPLUテーブルを記憶し、小計メモリ13cは、取引処理毎に計算される小計データを一時的に記憶し、税率メモリ13dは、地域や国に応じた税率データを記憶し、印字バッファメモリ13eは、CPU11により実行されるレシート印字処理、及びジャーナル印字処理に際してレシート用印字データとジャーナル用印字データとを一時的に記憶する。
【0061】
また、レシート一時記憶メモリ13fは、図13に示すようにCPU11により実行されるレシート印字処理に際して入力される各種取引データ(店名・メッセージデータ、商品データ、小計データ、合計データ等)を一時的に記憶し、ジャーナルメモリ13gは、図15に示すようにCPU11により実行されるジャーナル印字処理に際して入力される各種取引データ(店名・メッセージデータ、商品データ、小計データ、合計データ等)を一時的に記憶し、ジャーナル行数カウンタメモリ13hは、印字対象としてカウントされたジャーナル行数を記憶する。
【0062】
ジャーナルメモリ13gは、図13に示すレシート印字処理、及び図15に示すジャーナル印字処理中にレシートとジャーナルに印字する印字項目を記憶し、印字桁数メモリ13kは、受光素子により検出される仕切り板の取り付け位置に対応する印字桁データを記憶し、ワークメモリ13lは、CPU11により実行される上記印刷処理やレシート/ジャーナル印字処理に際して処理される各種データを一時的に記憶する。
【0063】
また、図12に示すようにレシート一時記憶メモリ13fには、”店名・メッセージ”、”商品名”、”商品単価”、”小計”、”税率”、”税額”、”合計”、”預り金額”等のデータが各行毎に格納され、ジャーナルメモリ13gには、”商品名”、”商品単価”、”税額”、”合計”、”預り金額”等のデータが各行毎に格納される。
【0064】
次に、図13を参照して、本実施の形態におけるレシート印字処理について説明する。この図13において、まずCPU11は、レシート一時記憶メモリ13fに記憶した最初の一行分のレシートデータを読み出し(ステップS21)、RAM13内の印字桁数メモリ13kに予め記憶された印字桁データに基づく印字フォーマットに従って、シフトレジスタにレシートデータを作成する(ステップS22)。
【0065】
次いで、CPU11は、最初の1ラインをラッチする(ステップS23)とともに、ラッチした1ラインを印字する(ステップS24)。次に、CPU11は、全ラインの印字が終了したか否かを判定する(ステップS25)。ここで、全ラインの印字が終了した場合(ステップS25;Yes)、CPU11は、レシート一時記憶メモリ13f内の全データの印字が終了したか否かを判定する(ステップS26)。また、ステップS25において、全ラインの印字が終了していない場合(ステップS25;No)、CPU11は、次の1ラインをラッチし(ステップS28)、再びステップS24に戻りそれ以降の処理を実行する。
【0066】
また、ステップS26において、レシート一時記憶メモリ13f内の全データの印字が終了した場合(ステップS26;Yes)、CPU11は、レシート一時記憶メモリ13f内の全てのデータをクリアし(ステップS27)、上述したレシート印字処理を終了する。また、レシート一時記憶メモリ13f内の全データの印字が終了していなければ(ステップS26;No)、レシート一時記憶メモリ13fの次の行のデータを読み出し(ステップS29)、再びステップS22に戻りそれ以降の処理を実行する。
【0067】
次に、図14を参照して、ジャーナル印字指示判定処理について説明する。まず、CPU11は、入力装置12からのジャーナル印字指示入力の有無を判定する(ステップS231)。ここで、ジャーナル印字指示が有れば(ステップS231;Yes)、CPU11は、図15に後述するジャーナル印字処理を実行し(ステップS232)、上記ジャーナル印字指示判定処理を終了する。また、ステップS231において、ジャーナル印字指示が無ければ(ステップS231;No)、CPU11は、「小計キー」操作で小計をし、レシート一時記憶領域に記憶する等の入力に応じた処理を実行し(ステップS233)、上記ジャーナル印字指示判定処理を終了する。
【0068】
次に、図15を参照して、本実施の形態におけるジャーナル印字処理について説明する。この図15において、CPU11は、RAM13内のジャーナル行数カウンタメモリ13hに記憶されたジャーナル行数カウンタ分だけジャーナル紙を逆フィードし(ステップS2321)、ジャーナルメモリ13gに記憶した最初の一行分のジャーナルデータを読み出し(ステップS2322)、印字済行数に「1」を追加し(ステップS2323)、RAM13内の印字桁数メモリ13kに記憶された桁数に応じてシフトレジスタにジャーナルデータを作成する(ステップS2324)。
【0069】
次いで、CPU11は、最初の1ラインをラッチする(ステップS2325)とともに、ラッチした1ラインを印字する(ステップS2326)。次に、CPU11は、全ラインの印字が終了したか否かを判定する(ステップS2327)。ここで、全ラインの印字が終了した場合(ステップS2327;Yes)、CPU11は、ジャーナルメモリ13g内の全データの印字が終了したか否かを判定する(ステップS2328)。また、ステップS2327において、全ラインの印字が終了していない場合(ステップS2327;No)、CPU11は、次の1ラインをラッチし(ステップS2332)、再びステップS2326に戻りそれ以降の処理を実行する。
【0070】
また、ステップS2328において、ジャーナルメモリ13g内の全データの印字が終了した場合(ステップS2328;Yes)、CPU11は、ステップS2323において求めた印字済行数分だけジャーナル行数カウンタを減算して更新する(ステップS2329)。次いで、CPU11は、印字済行数分だけジャーナルメモリ13gに記憶されたデータをクリアし、印字済行数をクリアし(ステップS2330)、レシート紙を初期位置にフィードし(ステップS2331)、次処理に移行する。
【0071】
また、上記実施の形態では、レシートとジャーナルとを同時に印刷する印字機構については、特に図示しなかったが、例えば、図16に示すような印字機構とスプール機構が利用可能である。
【0072】
図16は、ケース上に搭載されたサーマルプリンタ内のサーマルヘッド部分の駆動機構と、スプールの駆動機構とを主に示した平面図である。なお、図16では、図中の左側にレシート用ロール紙17aをセットし、その右側にジャーナル用ロール紙17bをセットした場合を示している。
【0073】
図16において、71はレシート用ロール紙17aに印字するためのサーマルヘッドであり、17hはジャーナル用ロール紙17bに印字するためのサーマルヘッドである。これらのサーマルヘッド17g、17hは、それぞれ2組のソレノイド(図示略)内で駆動されるプランジャの駆動端部に被印字面が固定されており、ゴムローラ17j上を搬送されるレシート用ロール紙17a及びジャーナル用ロール紙17bへの各印字時に、対応するソレノイドが駆動されて、その各印字面が各ロール紙面に押圧されるように構成されている。このソレノイドに対する駆動が解除されると、各ソレノイドに設けられた戻しバネの作用によりプランジャが非駆動位置に戻されて、サーマルヘッド17g、17hは印字待機位置に戻される。
【0074】
したがって、レシート用ロール紙17aとジャーナル用ロール紙17bとを、各サーマルヘッド17g、17hによりゴムローラ17jに押圧したときに印字するという印字制御を行うことにより、1つのゴムローラ17jで2系統のロール紙の搬送を個別に制御することが可能になる。なお、図16ではサーマルヘッド17gがコームローラ17jに押圧されて印字位置にあり、サーマルヘッド17hが印字待機位置にある場合を示している。
【0075】
また、図16においてゴムローラ17jは、その回転軸がローラギア17iと連結され、このローラギア17iが中間ギア17kを介してモータギア17lと連結されて、このモータギア17lと連結されたパルスモータ17mの回転量が、中間ギア17kを介してローラギア17iに伝達されて、ゴムローラ17jが回転駆動される。このゴムローラ17jの回転量は、印字データ量に応じてパルスモータ17mの回転量が制御されることにより制御され、各印字タイミングに合わせてレシート用ロール紙及びジャーナル用ロール紙をサーマルヘッド17g、17hの各印字位置に搬送させる。
【0076】
さらに、図16においてスプール17fは、ジャーナル用ロール紙17aの紙幅に応じて押さえ板17cが取り付けられており、ワインダモータ17dにより回転駆動される。このスプール17fは、ジャーナル印字が終了したジャーナル用ロール紙17aを巻き取る際に回転駆動される。
【0077】
したがって、ECR10は、内蔵した1系統のロール紙搬送機構により搬送されるレシート用ロール紙17aとジャーナル用ロール紙17bに対して、レシート印字用のサーマルヘッド17gとジャーナル印字用のサーマルヘッド17hとを独立して印字制御可能なサーマルヘッド駆動機構を搭載したため、取引中に同時に印字するレシート用ロール紙17aとジャーナル用ロール紙17bを効率的に使用することが可能になる。
【0078】
また、上記実施の形態のECR10では、レシート用ロール紙17aを左側、ジャーナル用ロール紙17bを右側にセットし、センサ取り付け板にレシート用ロール紙17aを検出するエンドセンサを取り付ける場合を示したが、各ロール紙のセット位置はこれに限定されるものではなく、各ロール紙のセット位置が逆転した場合は、センサ取り付け板にジャーナル用ロール紙17bを検出するニアエンドセンサを取り付けるようにしてもよい。
【0079】
次に、図17は、ロール紙のフィード部の拡大断面図である。同図(a)に示すように、ロール紙のフィード部は、図16のゴムローラ17jとペーパホルダアタッチメント17nから構成されている。ペーパホルダアタッチメント17nは、一定方向に毛並みの揃った毛状のもので、ロール紙に一定の圧力をかけてゴムローラ17jの給紙口にこれを送り込み保持する。
【0080】
これにより、印刷装置17の逆フィード等に伴ってロール紙がゴムローラ17jから外れるのを未然に防止できる。また、同図(b)に示すように、ロール紙がゴムローラ17jから外れた場合にもゴムローラ17jの順回転方向にロール紙を抑えて保持することができる。さらに、ゴムローラ17jへのロール紙の挿入をスムーズに行うことができる。
【0081】
[第3の実施の形態]
次に、第3の実施の形態について説明する。図18〜図22は、本発明を適用した第3の実施の形態におけるECR10を示す図である。本第3の実施の形態におけるECR10の全体構造は、上記第1の実施の形態において図1に示したECR10と同様であるため、その構成の図示及び説明は省略する。なお、ここでは、上記第1の実施の形態とは異なるRAM13の構成について説明する。
【0082】
また、CPU11は、後述するジャーナル印字処理(図19参照)を実行し、入力装置12からの部門データの入力の有無を判定し、入力が有れば、当該入力が一取引内の最初の入力であるか否かを判定し、最初の入力であれば、LOGOMessage1〜4を一時記憶メモリ13fのレシート一時記憶メモリに一時記憶し、部門の金額をRAM13内のGTメモリ13iの金額に加算して更新し、部門データを更新することにより登録処理を行う。
【0083】
さらに、CPU11は、表示装置16に部門データを表示させるとともに、当該部門データを一時記憶メモリ13fのレシート一時記憶メモリとジャーナル一時記憶メモリに一時記憶し、部門データの入力がなければ、「締め」が入力されたか否かを判別し、「締め」入力であれば、締め処理を行って、該締めデータを表示装置16に表示して、該締めデータを一時記憶メモリ13fに記憶するとともに、「日時」、「取引コード端末ID」、「担当ID」を一時記憶メモリ13fに記憶する。
【0084】
また、CPU11は、Fiscalヘッドデータを作成し、作成したFiscalヘッドデータを一時記憶メモリ13fのレシート一時記憶メモリとジャーナル一時記憶メモリに一時記憶し、作成したFiscalヘッドデータと算出された各TAXとGTとを記憶装置18に記憶するとともに、Fiscalデータをジャーナル一時記憶メモリに記憶し、レシート・ジャーナル印字処理を実行する。
【0085】
また、CPU11は、後述するレシート・ジャーナル印字処理(図20参照)を実行し、一時記憶メモリ13fに記憶した最初の一行分のレシートデータを読み出し、RAM13内の印字桁数メモリ13kに予め記憶された印字桁データに基づく印字フォーマットに従って、シフトレジスタにレシート・ジャーナルデータを作成し、最初の1ラインをラッチするとともに、ラッチした1ラインを印字し、全ラインの印字が終了したか否かを判定し、全ラインの印字が終了した場合、一時記憶メモリ13f内の全データの印字が終了したか否かを判定し、全ラインの印字が終了していない場合、次の1ラインをラッチする。
【0086】
さらに、CPU11は、一時記憶メモリ13f内の全データの印字が終了した場合、一時記憶メモリ13f内の全てのデータをクリアし、上述したレシート・ジャーナル印字処理を終了し、一時記憶メモリ13f内の全データの印字が終了していなければ、一時記憶メモリ13fの次の行のデータを読み出す。
【0087】
本実施の形態におけるRAM13は、図18(a)に示すように、LOGO Messageデータメモリ13a、部門メモリ13b、税率メモリ13d、印字バッファメモリ13e、一時記憶メモリ13f、GTメモリ13i、印字桁数メモリ13k、及びワークメモリ13l等を有する。また、同図(b)に示すように、部門メモリ13bは、”部門ロード”、”売上データ”、”税種”を記憶し、同図(c)に示すように、税率メモリ13dは、税種と税種に対応する税率を記憶する。例えば、税種Aには消費税として「5%」、税種Bには飲食税として「10%」、税種Cには酒税として「15%」が記憶されている。
【0088】
次に、図19を参照して、本実施の形態における印刷処理について説明する。この図19において、CPU11は、入力装置12からの部門データの入力の有無を判定する(ステップS31)。ここで、入力が有れば(ステップS31;Yes)、当該入力が一取引内の最初の入力であるか否かを判定する(ステップS32)。ここで、最初の入力であれば(ステップS32;Yes)、LOGO Message1〜4を一時記憶メモリ13fのレシート一時記憶メモリに一時記憶する(ステップS33)。
【0089】
次に、CPU11は、部門の金額をRAM13内のGTメモリ13iの金額に加算して更新し(ステップS34)、部門データを更新することにより登録処理を行う(ステップS35)。次いで、CPU11は、表示装置16に部門データを表示させる(ステップS36)とともに、当該部門データを一時記憶メモリ13fのレシート一時記憶メモリとジャーナル一時記憶メモリに一時記憶し(ステップS37)、再度ステップS31に戻り、それ以降の処理を実行する。なお、ステップS32において、一取引内の最初の入力でなければ(ステップS32;No)、ステップS33を省略してステップS34以降の処理に移行する。
【0090】
また、ステップS31において、部門データの入力がなければ(ステップS31;No)、CPU11は、「締め」が入力されたか否かを判別し(ステップS38)、「締め」入力であれば(ステップS38;Yes)、締め処理(各TAX,TAXTOTAL,TOTAL,CHANGE演算、取引データ更新)を行って(ステップS39)、該締めデータを表示装置16に表示して(ステップS40)、後述する図21に示すように該締めデータを一時記憶メモリ13fに記憶する(ステップS41)とともに、「日時」、「取引コード端末ID」、「担当ID」を一時記憶メモリ13fに記憶する(ステップS42)。
【0091】
次に、CPU11は、Fiscalヘッドデータを作成し(ステップS43)、作成したFiscalヘッドデータを一時記憶メモリ13fのレシート一時記憶メモリとジャーナル一時記憶メモリに一時記憶する(ステップS44)。次に、CPU11は、作成したFiscalヘッドデータと算出された各TAXとGTとを記憶装置18に記憶する(ステップS45)とともに、Fiscalデータをジャーナル一時記憶メモリに記憶し(ステップS46)、図20において後述するレシート・ジャーナル印字処理を実行する(ステップS47)。そして、再度ステップS31に戻り、それ以降の処理を繰り返し実行する。なお、ステップS38において、「締め」入力でなければ(ステップS38;No)、再度ステップS31に戻る。
【0092】
次に、図20を参照して、本実施の形態におけるレシート・ジャーナル印字処理について説明する。この図20において、まずCPU11は、一時記憶メモリ13fに記憶した最初の一行分のレシートデータを読み出し(ステップS471)、RAM13内の印字桁数メモリ13kに予め記憶された印字桁データに基づく印字フォーマットに従って、シフトレジスタにレシート・ジャーナルデータを作成する(ステップS472)。
【0093】
次いで、CPU11は、最初の1ラインをラッチする(ステップS473)とともに、ラッチした1ラインを印字する(ステップS474)。次に、CPU11は、全ラインの印字が終了したか否かを判定する(ステップS475)。ここで、全ラインの印字が終了した場合(ステップS475;Yes)、CPU11は、一時記憶メモリ13f内の全データの印字が終了したか否かを判定する(ステップS476)。また、ステップS475において、全ラインの印字が終了していない場合(ステップS475;No)、CPU11は、次の1ラインをラッチし(ステップS478)、再びステップS474に戻りそれ以降の処理を実行する。
【0094】
また、ステップS476において、一時記憶メモリ13f内の全データの印字が終了した場合(ステップS476;Yes)、CPU11は、一時記憶メモリ13f内の全てのデータをクリアし(ステップS477)、上述したレシート・ジャーナル印字処理を終了する。また、一時記憶メモリ13f内の全データの印字が終了していなければ(ステップS476;No)、一時記憶メモリ13fの次の行のデータを読み出し(ステップS479)、再びステップS472に戻りそれ以降の処理を実行する。
【0095】
ここで、図21は、上記印刷処理及び、及びレシート・ジャーナル印字処理を実行した際にRAM13内の一時記憶メモリ13fに記憶されるデータの一例を示す図である。また、図22は、図21のデータに基づいて印刷装置17によって印刷されたレシートとジャーナルの一例を示す図である。このように、ジャーナル側にのみ重要情報を印字する機能を有することにより、ジャーナルに無駄な余白を作ることが無く、印刷シートの印字可能領域を最大限に有効利用できる。また、例えば会計情報等の有用な情報をジャーナルに残せるため、顧客サービスの向上にもなる。
【0096】
上述のように、本発明に係る第3の実施の形態におけるECR10では、ジャーナル側に重要情報を印字する機能を有することにより、ジャーナルに無駄な余白を作ることが無く、印刷シートを有効に利用できる。また、例えば会計情報等の有用な情報をジャーナルに残せるため、顧客サービスの向上にもなる。
【0097】
なお、上記実施の形態では、印刷装置17によりレシート用ロール紙とジャーナル用ロール紙とに印刷するデータは、互いに関連性のあるデータとしたが、これらのデータは全く異なる種類のデータであってもよい。また、上記実施の形態では、ジャーナルのデータ量よりレシートのデータ量の方が多い例を挙げたが、レシートよりジャーナルのデータ量が多い場合でもよい。さらに、各装置における各種の細部構成についても、本発明の趣旨を逸脱しない範囲において適宜変更可能である。
【0098】
【発明の効果】
この発明によれば、ジャーナル側の印字をレシート側の印字行数に合わせるように、レシート印字行数とジャーナル印字行数とに基づく拡大率に応じて縦方向に拡大する機能を有することにより、ジャーナルに無駄な余白を生じること無く、印刷データをバランス良く配置することができる。
【図面の簡単な説明】
【図1】本実施の形態におけるECR10の制御系の要部構成を示すブロック図である。
【図2】第1の実施の形態における図1のRAM13内のメモリ構成を示した図である。
【図3】図2の一時記憶メモリ13f内のメモリ構成を示した図である。
【図4】図2の印字項目メモリ13j内のメモリ構成を示した図である。
【図5】図1のCPU11により実行される印刷処理を示すフローチャートである。
【図6】図1のCPU11により実行されるレシート/ジャーナル印字処理を示すフローチャートである。
【図7】図1のCPU11により実行されるジャーナルデータ拡大率算出処理を示すフローチャートである。
【図8】図1のCPU11により実行される処理を示すフローチャートである。
【図9】図6のレシート/ジャーナル印字処理において処理されるレシート用印字データとジャーナル用印字データの展開例を示した図である。
【図10】図6のレシート/ジャーナル印字処理により印刷されたレシートとジャーナルの一例を示した図である。
【図11】第2の実施の形態における図1のRAM13内のメモリ構成を示した図である。
【図12】図11のレシート一時記憶メモリ13f、及び印字項目メモリ13j内のメモリ構成を示した図である。
【図13】図1のCPU11により実行されるレシート印字処理を示すフローチャートである。
【図14】図1のCPU11により実行されるジャーナル印字指示判定処理を示すフローチャートである。
【図15】図1のCPU11により実行されるジャーナル印字処理を示すフローチャートである。
【図16】サーマルプリンタ内のサーマルヘッド部分の駆動機構と、スプールの駆動機構とを示した平面図である。
【図17】ロール紙のフィード部の拡大断面図であり、(a)は、ロール紙のゴムローラ17jに保持された状態を示す図であり、(b)は、ロール紙がゴムローラ17jから外れた状態を示す図である。
【図18】第3の実施の形態における図1のRAM13内のメモリ構成を示した図である。
【図19】図1のCPU11により実行される印刷処理を示すフローチャートである。
【図20】図1のCPU11により実行されるレシート・ジャーナル印字処理を示すフローチャートである。
【図21】図18の一時記憶メモリ13f内のメモリ構成を示した図である。
【図22】図20のレシート・ジャーナル印字処理において処理されるレシート用印字データとジャーナル用印字データの展開例を示した図である。
【符号の説明】
10 ECR
11 CPU
12 入力装置
13 RAM
14 ドロア
15 伝送制御部
16 表示装置
17 印刷装置
17a レシート用ロール紙
17b ジャーナル用ロール紙
17c 押さえ板
17d ワインダモータ
17e ケース
17f スプール
17g,17h サーマルヘッド
17i ローラギア
17j ゴムローラ
17k 中間ギア
17l モータギア
17m パルスモータ
17n ペーパホルダアタッチメント
18 記憶装置
18a 記憶媒体
19 バス
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a printing apparatus that feeds a receipt roll paper and a journal roll paper by a single paper feed mechanism and prints print data for one line stored in a print buffer on each roll paper by a single printing unit. And a storage medium.
[0002]
[Prior art]
ECR (Electronic Cash Register) and POS (Point Of Scales System) terminal devices output the input sales data, accumulate (register) the sales data, and the registered sales amount, number of sales, number of sales, etc. Is a terminal device that is installed at a department store, a supermarket, a convenience store, or the like and immediately collects data used for product management, customer management, sales management, etc.
[0003]
These conventional ECR devices and POS terminal devices require a dedicated printing device for printing two sheets, a receipt and a journal. The printing apparatus includes a paper feeding device and a print head for journals, and a paper feeding device and a print head for receipts, and each print head is configured to feed journal paper and receipt paper with each paper feeding device. In some cases, a two-sheet printer that prints transaction data on journal paper and receipt paper is used, or two one-sheet printers are used to individually print transaction data on journal paper and receipt paper.
[0004]
Also, for the purpose of reducing the operating cost of the printer and reducing the cost by a circuit configuration equivalent to a single-sheet printer, a single-sheet printer with a wide print width is used, and a receipt is printed at half the print width and a journal is printed at the other half. An ECR configured to print is being developed and used.
[0005]
[Problems to be solved by the invention]
However, in a dedicated printing apparatus that prints two sheets, a receipt and a journal, used in the above-described conventional ECR apparatus and POS terminal apparatus, the receipt side and the journal are printed in order to print the receipt and the journal on one wide sheet. It is necessary to feed the same number of lines at the same time. Therefore, if there is a stamp that is not printed on the receipt side or a feed line for making the receipt easier to see, there is a problem that a blank line is formed on the journal side.
[0006]
An object of the present invention is to provide a dedicated printing apparatus and storage medium for printing predetermined print data on two sheets, a receipt and a journal, without excess or deficiency.
[0007]
[Means for Solving the Problems]
This invention feeds receipt roll paper and journal roll paper with one paper feed mechanism, and print data for one line stored in a print buffer. On the basis of the In a printing apparatus that prints on each roll paper by one printing unit, calculating means for calculating an enlargement ratio based on the number of receipt print lines and the number of journal print lines, and the length in the vertical direction of the print data A storage control unit that stores an enlarged image according to an enlargement ratio, and a print control unit that prints print data stored by the storage control unit on a journal roll paper by the printing unit. And
[0008]
Therefore, according to the present invention, the roll paper for receipt and the roll paper for journal are fed by one paper feed mechanism, and each roll is individually made by one print unit based on the print data for one line stored in the print buffer. In a printing apparatus that prints on paper, an enlargement ratio is calculated based on the number of receipt print lines and the number of journal print lines, and the length of the print data in the vertical direction is adjusted to match the print length of the receipt. Depending on the rate, it can be enlarged and printed on a roll paper for journals.
[0015]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[First Embodiment]
1 to 10 are diagrams showing a first embodiment of an ECR to which a printing apparatus according to the present invention is applied.
[0016]
First, the configuration will be described.
FIG. 1 is a block diagram showing the main configuration of the control system of the ECR 10 in the present embodiment. In FIG. 5, the ECR 10 includes a CPU 11, an input device 12, a RAM 13, a drawer 14, a transmission control unit 15, a display device 16, a printing device 17, a storage device 18, and a storage medium 18a, excluding the storage medium 18a. Each unit is connected to the bus 19.
[0017]
A CPU (Central Processing Unit) 11 performs arithmetic processing on numerical values necessary for various operations while exchanging various data with the RAM 13 according to various control programs stored in the storage medium 27, and based on this arithmetic processing. Various control signals for controlling each part in the ECR 10 are output.
[0018]
Further, the CPU 11 executes a printing process (see FIG. 5) described later, determines whether or not product data is input from the input device 12, and if the product data is input, the input of the product data is the current time. It is determined whether or not the data is the first input in the transaction. If it is the first input product data, the store name / message data stored in advance in the store name / message data memory 13a in the RAM 13 is shown in FIG. As shown in FIG. 3, the product data stored in the temporary storage memory 13f in the RAM 13 is registered, the product data is displayed on the display device 16, and the product data is temporarily stored as shown in FIG. The data is stored in the storage memory 13f, and a journal row number counter is added and updated according to the number of storage rows.
[0019]
Further, the CPU 11 determines whether or not “tightening” has been input. If “tightening” is input, the CPU 11 performs a tightening process (total / change calculation, transaction data update), and displays the tightening data on the display device 16. Display, store “tax rate” in the receipt temporary storage memory, store “tax amount”, “total”, “deposit”, and “change” in the receipt temporary storage memory and the journal temporary storage memory. Execute the journal printing process.
[0020]
In the present embodiment, since the receipt and the journal are simultaneously sent and printed by one system of printing mechanism, the following receipt / journal printing process is executed.
[0021]
In this receipt / journal printing process, the CPU 11 executes a journal data enlargement rate calculation process (see FIG. 7), which will be described later, and reads the store name / message data as the first data stored in the temporary storage memory 13f by the printing process. In accordance with the print format based on the print digit data stored in the print digit number memory 13k in the RAM 13, the receipt / journal data is created in the shift register, and the journal data is enlarged in accordance with the enlargement ratio. Is latched and one latched line is printed.
[0022]
Further, the CPU 11 determines whether or not printing of all lines is completed. When printing of all lines is completed, the CPU 11 determines whether or not printing of all data in the temporary storage memory 13f is completed. If the printing of is not completed, the next line is latched. If the printing of all data in the temporary storage memory 13f is completed, all the temporary storage data is cleared and the above-described receipt / journal printing process is terminated. .
[0023]
Further, the CPU 11 executes journal data enlargement rate calculation processing (see FIG. 7) described later, calculates the number of receipt print lines, calculates the number of journal print lines, and divides the number of receipt print lines by the number of journal print lines. Set the value as a magnification. Further, the CPU 11 executes a process described later (see FIG. 8).
[0024]
Although not shown, the input device 12 includes a mode key, a clerk key, a numeric keypad, a function key, a receipt button, and the like, and outputs various key input signals according to each key operation by the user to the CPU 11.
[0025]
As shown in FIG. 2, a RAM (Random Access Memory) 13 includes a store name / message data memory 13a, a PLU memory 13b, a subtotal memory 13c, a tax rate memory 13d, a print buffer memory 13e, a temporary storage memory 13f, a print item memory 13j, A printing digit number memory 13k, a work memory 13l, and the like are included.
[0026]
The store name / message data memory 13a stores store name data of the store to be printed first on the receipt and various service message data for advertising, etc., and the PLU memory 13b sets unit price data corresponding to the various product name data. PLU (Price Look Up) table is stored, subtotal memory 13c temporarily stores subtotal data calculated for each transaction process, tax rate memory 13d stores tax rate data according to region and country, The print buffer memory 13e temporarily stores the receipt print data and the journal print data during the receipt / journal print process executed by the CPU 11, and the temporary storage memory 13f is executed by the CPU 11 as shown in FIG. Transaction data (store name / message data, product data) , Subtotal data, total data, etc.) temporarily.
[0027]
The print item memory 13j stores the print items to be printed on the receipt and the journal during the receipt / journal printing process as shown in FIG. 6, and the print digit number memory 13k is located at the attachment position of the partition plate detected by the light receiving element. Corresponding print digit data is stored, and the work memory 13l temporarily stores various data processed in the print processing and receipt / journal print processing executed by the CPU 11.
[0028]
Further, as shown in FIG. 3, the temporary storage memory 13f is composed of a receipt temporary storage memory and a journal temporary storage memory. The receipt temporary storage memory includes “store name / message”, “product name”, “product unit price”. , “Subtotal”, “tax rate”, “tax amount”, “total”, “deposited amount”, etc. are stored for each row, and “product name”, “product unit price”, “tax amount” are stored in the temporary journal storage memory. Data such as “,“ total ”and“ deposited amount ”is stored for each row.
[0029]
Further, as shown in FIG. 4, the print item memory 13j is composed of a receipt temporary storage memory and a journal temporary storage memory. The receipt temporary storage memory includes “store name”, “message”, “product data”, “subtotal”. Data such as “data”, “tax rate data”, “tax amount data”, “total data”, “deposited amount data”, “change data”, etc. are stored for each row, and “product data”, Data such as “tax amount data”, “total data”, and “deposited amount data” is stored for each row.
[0030]
The drawer 14 stores cash and is opened when the “cash / deposit key” or the like is operated on the input device 12.
[0031]
The transmission control unit 15 is configured by a modem (MODEM / DEModulator), a terminal adapter (TA), or the like, and controls to communicate with an external device via a communication line such as a telephone line or an ISDN line. I do. In order to communicate with an external device such as a personal computer via a telephone line, the modem modulates the digital data processed by the CPU 11 into an analog signal suitable for the frequency band of the telephone line, and also via the telephone line. The terminal adapter converts the existing interface into an interface corresponding to ISDN in order to communicate with an external device such as a personal computer via an ISDN line. It is a device to do.
[0032]
The display device 16 is composed of a liquid crystal display or the like, and displays calculation results, various data, product data, calculation data, setting data, and the like input from the CPU 11, the input device 12, and the RAM 13.
[0033]
The printing device 17 includes, for example, a print head unit in which segment-unit thermal elements are arranged in a line, and a conveyance unit in which receipt paper and journal paper are set. The input transaction data is printed on a receipt paper and a journal paper, and a sample receipt and a sample receipt in which a background pattern inputted for each line from the CPU 11 at a predetermined time interval is printed on a receipt paper.
[0034]
The printing device 17 includes an automatic cutter, a thermal head 17g drive mechanism, a roll paper transport mechanism, a spool mechanism, and the like together with a thermal printer, and is driven and controlled during the receipt / journal printing process executed by the CPU 11. The data relating to the transaction is printed and output on the receipt roll paper 17a and the journal roll paper 17b.
[0035]
The storage device 18 includes a storage medium 18a in which programs, data, and the like are stored in advance, and the storage medium 18a is configured by a magnetic or optical recording medium or a semiconductor memory. The storage medium 18a is fixedly attached to the storage device 18, or is detachably mounted. The storage medium 18a has the above system program and various application programs, print processing programs, and receipts corresponding to the system. / Journal print processing program and print data processed by various processing programs are stored.
[0036]
The program, data, and the like stored in the storage medium 18a are received from the transmission control unit 15 via a transmission medium such as a network line from a part or all of the server or client and stored. Further, the storage medium 18a may be a storage medium of a server constructed on a network. Furthermore, the program may be transmitted to a server or a client via a transmission medium such as a network line and installed in these devices.
[0037]
Next, the operation in the first embodiment will be described.
First, the printing process executed by the CPU 11 will be described based on the flowchart shown in FIG. Here, a program for realizing each function described in these flowcharts is stored in a recording medium in the form of a readable program code, and the CPU 11 sequentially executes operations according to the program code. . Further, the CPU 11 can sequentially execute the operation according to the above-described program code transmitted via the transmission medium. That is, in addition to the recording medium, an operation specific to this embodiment can be executed using a program / data supplied externally via a transmission medium.
[0038]
In FIG. 5, the CPU 11 first determines whether or not product data is input from the input device 12 (step S1). If the product data is input (step S1; Yes), the input of the product data is performed this time. It is determined whether or not it is the first input in the transaction (step S2). If it is the product data inputted first (step S2; Yes), the store name / message data stored in the store name / message data memory 13a in the RAM 13 (see FIG. 2) in advance in the RAM 13 as shown in FIG. Is stored in the temporary storage memory 13f (step S3).
[0039]
Next, the CPU 11 performs registration processing (update of product data and subtotal calculation) of the input product data (step S4), displays the product data on the display device 16 (step S5), and the product The data is stored in the temporary storage memory 13f as shown in FIG. 3 (step S6), the journal row number counter is added and updated according to the number of stored rows (step S7), and the process returns to step S1.
[0040]
If the input of product data is not the first input in this transaction in step S2 (step S2; No), the CPU 11 proceeds to step S4 and registers each product data to be input thereafter. The display process and the temporary storage process are repeatedly executed.
[0041]
If the product data is not input in step S1 (step S1; No), the CPU 11 determines whether or not “tightening” is input (step S8). If the input is “tightening” (step S8; Yes), the closing process (total / change calculation, transaction data update) is performed (step S9), the closing data is displayed on the display device 16 (step S10), and the receipt temporary storage memory as shown in FIG. 3 is displayed. "Tax rate" is stored, "Tax amount", "Total", "Deposit", and "Change" are stored in the receipt temporary storage memory and journal temporary storage memory (step S11), and a receipt / journal printing process described later is executed. (Step S12), the process returns to Step S1.
[0042]
On the other hand, if there is no “tightening” input in step S8 (step S8; No), the CPU 11 executes a journal print instruction determination process described later (step S13), and returns to step S1.
[0043]
In the present embodiment, the receipt and journal printing process is performed based on the flowchart shown in FIG. 6 since the receipt and the journal are simultaneously sent and printed by the one printing mechanism in the printing apparatus 17 shown in FIG. Execute.
[0044]
In FIG. 6, the CPU 11 first executes a journal data enlargement rate calculation process (see FIG. 7) to be described later (step S121), and stores name / message data which is the first data stored in the temporary storage memory 13f by the printing process. Is read (step S122), and the print format based on the print digit data stored in advance in the print digit number memory 13k in the RAM 13 (including the receipt data print digit number per line, the journal print digit number, and the blank digit number) Accordingly, receipt / journal data is created in the shift register (step S123).
[0045]
Next, the CPU 11 enlarges the journal data according to the enlargement ratio (step S124), latches the first line (step S125), and prints the latched line (step S126). Next, the CPU 11 determines whether or not printing of all lines has been completed (step S127). Here, when printing of all lines is completed (step S127; Yes), the CPU 11 determines whether printing of all data in the temporary storage memory 13f is completed (step S128). In step S127, if printing of all lines has not been completed (step S127; No), the CPU 11 latches the next line (step S130), returns to step S126 again, and executes the subsequent processing. .
[0046]
In step S128, when printing of all the data in the temporary storage memory 13f is completed (step S128; Yes), the CPU 11 clears all the temporary storage data (step S129), and performs the receipt / journal printing process described above. finish. If the printing of all data in the temporary storage memory 13f has not been completed (step S128; No), the next row of data in the temporary storage memory 13f is read (step S131), and the process returns to step S123 again and thereafter. Execute the process.
[0047]
Next, the journal data enlargement rate calculation process executed in step S121 of FIG. 6 will be described with reference to FIG. In FIG. 7, the CPU 11 calculates the number of receipt print lines (step S1211), calculates the number of journal print lines (step S1212), and sets a value obtained by dividing the number of receipt print lines by the number of journal print lines as an enlargement ratio. (Step S1213), the process proceeds to Step S122 and subsequent steps in FIG.
[0048]
Next, processing will be described with reference to FIG. First, the CPU 11 determines whether or not there is an input from the input device 12 (step S131). If there is (step S131; Yes), the CPU 11 performs a process according to the input such as subtotaling by the “subtotal key” operation and storing it in the receipt temporary storage area (step S133).
[0049]
FIG. 9 shows a development example of the receipt print data and the journal print data in the above receipt / journal printing process.
In FIG. 9, (a) is a print based on the print digit data stored in advance in the print digit number memory 13k in accordance with the paper widths of the receipt roll paper and the journal roll paper based on the setting flag in the print item memory 13j. It is the figure which showed the specific example of the format. In this case, the first to twenty-third digits are the receipt printing digits for the 48 printing digits in total, the margin for one digit at the beginning, the actual data printing digits for the following 20 digits, The subsequent 1 digit is used as a blank, the subsequent 3 digits are used as blank digits for separating the receipt and the journal, the 26th to 48th digits are the journal printing digits, and the first digit is followed by 20 blanks. The actual data printing digits are used for the digits, and the following one digit is used as a margin.
[0050]
Next, FIG. 7B is a diagram showing a specific example of receipt print data and journal print data in which a series of transaction data is stored in the temporary storage memory 13f in accordance with the print format of FIG. . (C) in FIG. 10 expands the receipt print image (print dot) of “XX store” as the store name in the print buffer memory 13e out of the receipt print data and journal print data in FIG. It is the figure which showed the case where 1 line part of this print image for receipts was latched.
[0051]
By executing the receipt / journal printing process as described above, the receipt and the journal shown in FIG. 10A can be divided and printed simultaneously in one system of thermal printer. At this time, since the print item of the receipt is different from the print item of the journal, when the receipt / journal print process is executed by the single receipt printer, the blank of the journal increases. However, as shown in FIG. 10B, the same print data is enlarged in the vertical direction and printed in a predetermined print area of the journal, so that a blank can be filled. For example, in the case of the receipt shown in FIG. 9, since the receipt is 14 lines and the journal is 9 lines, the print on the journal side is enlarged 14/9 = 1.555, that is, about 1.6 times in the vertical direction. To print the journal.
[0052]
As described above, the ECR 10 according to the first embodiment of the present invention has a function of enlarging the print on the journal side in the vertical direction in accordance with the number of print lines on the receipt side, so that unnecessary blank space is left in the journal. Without making it, you can use the printed sheet effectively. Further, as the same transaction content, journal printing with uniform line width is possible. Furthermore, since the size of the character is different for each transaction content, when looking at a series of journal prints, the separation for each transaction becomes clear. In addition, for example, by having a function to enlarge only the important information on the journal side in the vertical direction according to the number of print lines on the receipt side, it is easy to describe the position and amount of important information when looking at a series of journal prints. Can be recognized.
[0053]
[Second Embodiment]
Next, a second embodiment will be described. FIGS. 11-17 is a figure which shows ECR10 in 2nd Embodiment to which this invention is applied. The overall structure of the ECR 10 in the second embodiment is the same as that of the ECR 10 shown in FIG. Here, the configurations of the CPU 11 and the RAM 13 different from those in the first embodiment will be described.
[0054]
The CPU 11 executes a receipt printing process (see FIG. 13) which will be described later, reads the receipt data for the first line stored in the temporary receipt memory 13f, and print digits stored in advance in the print digit memory 13k in the RAM 13 Receipt data is created in the shift register according to the print format based on the data, the first line is latched, the latched line is printed, it is determined whether printing of all lines is completed, and all lines are printed. When printing is finished, it is determined whether printing of all data in the receipt temporary storage memory 13f is finished. If printing of all lines is not finished, the next one line is latched.
[0055]
Further, when the printing of all data in the receipt temporary storage memory 13f is completed, the CPU 11 clears all the data in the receipt temporary storage memory 13f, ends the above-described receipt printing process, and stores the data in the receipt temporary storage memory 13f. If printing of all the data is not completed, the next row of data in the receipt temporary storage memory 13f is read.
[0056]
Further, the CPU 11 executes journal printing instruction determination processing (see FIG. 14) described later, determines whether or not a journal printing instruction is input from the input device 12, and if there is a journal printing instruction, performs journal printing processing described later. The journal print instruction determination process is completed, and if there is no journal print instruction, the subtotal is printed by the “subtotal key” operation, and the process according to the input such as storing in the receipt temporary storage area is executed.
[0057]
Further, the CPU 11 executes journal printing processing (see FIG. 15) to be described later, reversely feeds the journal paper by the journal row number counter stored in the journal row number counter memory 13h in the RAM 13, and stores it in the journal memory 13g. The first one line of journal data is read, “1” is added to the number of printed lines, and journal data is created in the shift register according to the number of digits stored in the print digit number memory 13k in the RAM 13.
[0058]
Further, the CPU 11 latches the first one line, prints the latched one line, determines whether or not printing of all the lines is finished, and when printing of all the lines is finished, the CPU 11 stores in the journal memory 13g. It is determined whether printing of all data has been completed. If printing of all lines is not completed, the next line is latched, and printing of all data in the journal memory 13g is completed. The counter is updated by subtracting the number of printed lines, the data stored in the journal memory 13g is cleared by the number of printed lines, the number of printed lines is cleared, and the receipt paper is fed to the initial position.
[0059]
As shown in FIG. 11, the RAM 13 in this embodiment includes a store name / message data memory 13a, a PLU memory 13b, a subtotal memory 13c, a tax rate memory 13d, a print buffer memory 13e, a receipt temporary storage memory 13f, a journal memory 13g, a journal. It includes a line number counter 13h, a print item memory 13j, a print digit number memory 13k, a work memory 13l, and the like.
[0060]
The store name / message data memory 13a stores store name data of the store to be printed first on the receipt and various service message data for advertising, etc., and the PLU memory 13b sets unit price data corresponding to the various product name data. The subtotal memory 13c temporarily stores subtotal data calculated for each transaction process, the tax rate memory 13d stores tax rate data corresponding to the region and country, and the print buffer memory 13e The receipt print data and the journal print data are temporarily stored in the receipt print process and the journal print process executed by the CPU 11.
[0061]
The receipt temporary storage memory 13f temporarily stores various transaction data (store name / message data, product data, subtotal data, total data, etc.) input during the receipt printing process executed by the CPU 11, as shown in FIG. The journal memory 13g temporarily stores various transaction data (store name / message data, product data, subtotal data, total data, etc.) input in the journal printing process executed by the CPU 11, as shown in FIG. The journal line number counter memory 13h stores the number of journal lines counted as a print target.
[0062]
The journal memory 13g stores the receipt print process shown in FIG. 13 and the print items to be printed on the receipt and the journal during the journal print process shown in FIG. 15, and the print digit number memory 13k is a partition plate detected by the light receiving element. The work memory 13l temporarily stores various data processed during the printing process and receipt / journal printing process executed by the CPU 11.
[0063]
In addition, as shown in FIG. 12, the receipt temporary storage memory 13f stores “store name / message”, “product name”, “product unit price”, “subtotal”, “tax rate”, “tax amount”, “total”, “deposit”. Data such as “amount” is stored for each row, and data such as “product name”, “product unit price”, “tax amount”, “total”, and “deposit amount” is stored for each row in the journal memory 13g. .
[0064]
Next, with reference to FIG. 13, the receipt printing process in the present embodiment will be described. In FIG. 13, the CPU 11 first reads the receipt data for the first line stored in the receipt temporary storage memory 13f (step S21), and prints based on the print digit data stored in advance in the print digit number memory 13k in the RAM 13. Receipt data is created in the shift register according to the format (step S22).
[0065]
Next, the CPU 11 latches the first line (step S23) and prints the latched line (step S24). Next, the CPU 11 determines whether or not printing of all lines has been completed (step S25). Here, when printing of all lines is completed (step S25; Yes), the CPU 11 determines whether printing of all data in the receipt temporary storage memory 13f is completed (step S26). In step S25, if all lines have not been printed (step S25; No), the CPU 11 latches the next line (step S28), returns to step S24 again, and executes the subsequent processing. .
[0066]
In step S26, when printing of all data in the receipt temporary storage memory 13f is completed (step S26; Yes), the CPU 11 clears all data in the receipt temporary storage memory 13f (step S27). The received receipt printing process is terminated. If printing of all data in the receipt temporary storage memory 13f has not been completed (step S26; No), the next row of data in the receipt temporary storage memory 13f is read (step S29), and the process returns to step S22 again. The subsequent processing is executed.
[0067]
Next, the journal print instruction determination process will be described with reference to FIG. First, the CPU 11 determines whether or not a journal print instruction is input from the input device 12 (step S231). Here, if there is a journal print instruction (step S231; Yes), the CPU 11 executes a journal print process described later in FIG. 15 (step S232), and ends the journal print instruction determination process. If there is no journal print instruction in step S231 (step S231; No), the CPU 11 performs a process according to the input such as subtotaling by the “subtotal key” operation and storing in the receipt temporary storage area ( Step S233), the journal print instruction determination process is terminated.
[0068]
Next, with reference to FIG. 15, the journal printing process in the present embodiment will be described. In FIG. 15, the CPU 11 reverse-feeds journal paper by the journal row number counter stored in the journal row counter memory 13h in the RAM 13 (step S2321), and the journal for the first row stored in the journal memory 13g. Data is read (step S2322), “1” is added to the number of printed lines (step S2323), and journal data is created in the shift register according to the number of digits stored in the print digit number memory 13k in the RAM 13 (step S2322). Step S2324).
[0069]
Next, the CPU 11 latches the first line (step S2325) and prints the latched line (step S2326). Next, the CPU 11 determines whether or not printing of all lines has been completed (step S2327). Here, when printing of all lines is completed (step S2327; Yes), the CPU 11 determines whether printing of all data in the journal memory 13g is completed (step S2328). In step S2327, if all lines have not been printed (step S2327; No), the CPU 11 latches the next line (step S2332), returns to step S2326 again, and executes the subsequent processing. .
[0070]
When printing of all data in the journal memory 13g is completed in step S2328 (step S2328; Yes), the CPU 11 subtracts and updates the journal line number counter by the number of printed lines obtained in step S2323. (Step S2329). Next, the CPU 11 clears the data stored in the journal memory 13g by the number of printed lines, clears the number of printed lines (step S2330), feeds the receipt paper to the initial position (step S2331), and performs the next processing. Migrate to
[0071]
In the above-described embodiment, the printing mechanism that prints the receipt and the journal at the same time is not specifically shown. For example, a printing mechanism and a spool mechanism as shown in FIG. 16 can be used.
[0072]
FIG. 16 is a plan view mainly showing the drive mechanism of the thermal head portion in the thermal printer mounted on the case and the drive mechanism of the spool. FIG. 16 shows a case where the receipt roll paper 17a is set on the left side of the figure and the journal roll paper 17b is set on the right side thereof.
[0073]
In FIG. 16, reference numeral 71 denotes a thermal head for printing on the receipt roll paper 17a, and 17h denotes a thermal head for printing on the journal roll paper 17b. Each of the thermal heads 17g and 17h has a printing surface fixed to a driving end portion of a plunger driven in two sets of solenoids (not shown), and a receipt roll paper 17a conveyed on the rubber roller 17j. And at the time of each printing on the journal roll paper 17b, the corresponding solenoid is driven, and each printing surface is pressed against each roll paper surface. When the drive for the solenoid is released, the plunger is returned to the non-drive position by the action of a return spring provided in each solenoid, and the thermal heads 17g and 17h are returned to the print standby position.
[0074]
Therefore, by performing printing control to print the receipt roll paper 17a and the journal roll paper 17b when they are pressed against the rubber roller 17j by the thermal heads 17g and 17h, two roll papers are provided by one rubber roller 17j. It becomes possible to control the conveyance of each of them separately. FIG. 16 shows a case where the thermal head 17g is pressed by the comb roller 17j and is in the printing position, and the thermal head 17h is in the printing standby position.
[0075]
In FIG. 16, the rubber roller 17j has a rotation shaft connected to a roller gear 17i, the roller gear 17i is connected to a motor gear 17l via an intermediate gear 17k, and the rotation amount of a pulse motor 17m connected to the motor gear 17l is reduced. The rubber roller 17j is rotated by being transmitted to the roller gear 17i through the intermediate gear 17k. The amount of rotation of the rubber roller 17j is controlled by controlling the amount of rotation of the pulse motor 17m in accordance with the amount of print data. The thermal rolls 17g, 17h To each print position.
[0076]
Further, in FIG. 16, a spool 17f has a pressing plate 17c attached according to the paper width of the journal roll paper 17a, and is rotated by a winder motor 17d. The spool 17f is driven to rotate when the journal roll paper 17a for which journal printing has been completed is taken up.
[0077]
Therefore, the ECR 10 has a receipt print thermal head 17g and a journal print thermal head 17h for the receipt roll paper 17a and the journal roll paper 17b conveyed by a single roll paper conveyance mechanism. Since the thermal head drive mechanism capable of independently controlling printing is installed, it is possible to efficiently use the receipt roll paper 17a and the journal roll paper 17b that are printed simultaneously during the transaction.
[0078]
In the ECR 10 of the above embodiment, the receipt roll paper 17a is set on the left side, the journal roll paper 17b is set on the right side, and the end sensor for detecting the receipt roll paper 17a is attached to the sensor mounting plate. The roll paper setting position is not limited to this. When the roll paper setting position is reversed, a near-end sensor for detecting the journal roll paper 17b may be attached to the sensor mounting plate. .
[0079]
Next, FIG. 17 is an enlarged cross-sectional view of a roll paper feed section. As shown in FIG. 6A, the roll paper feed section is composed of the rubber roller 17j and the paper holder attachment 17n shown in FIG. The paper holder attachment 17n is a bristle that is aligned in a certain direction, and applies a certain pressure to the roll paper to send it to the paper feed port of the rubber roller 17j and hold it.
[0080]
Thereby, it is possible to prevent the roll paper from being detached from the rubber roller 17j due to reverse feed of the printing device 17 or the like. Further, as shown in FIG. 5B, even when the roll paper is removed from the rubber roller 17j, the roll paper can be held in the forward rotation direction of the rubber roller 17j. Furthermore, the roll paper can be smoothly inserted into the rubber roller 17j.
[0081]
[Third Embodiment]
Next, a third embodiment will be described. 18 to 22 are diagrams showing the ECR 10 in the third embodiment to which the present invention is applied. Since the overall structure of the ECR 10 in the third embodiment is the same as that of the ECR 10 shown in FIG. 1 in the first embodiment, illustration and description of the configuration are omitted. Here, the configuration of the RAM 13 different from that of the first embodiment will be described.
[0082]
Further, the CPU 11 executes a journal printing process (see FIG. 19) described later, determines whether or not department data is input from the input device 12, and if there is an input, the input is the first input in one transaction. If it is the first input, LOGMessage 1 to 4 are temporarily stored in the receipt temporary storage memory of the temporary storage memory 13f, and the amount of the department is added to the amount of the GT memory 13i in the RAM 13 The registration process is performed by updating and updating the department data.
[0083]
Further, the CPU 11 displays the department data on the display device 16 and temporarily stores the department data in the receipt temporary storage memory and the journal temporary storage memory of the temporary storage memory 13f. Is input, the tightening process is performed, the tightening data is displayed on the display device 16, and the tightening data is stored in the temporary storage memory 13f. “Date and time”, “transaction code terminal ID”, and “charge ID” are stored in the temporary storage memory 13f.
[0084]
Further, the CPU 11 creates Fiscal head data, temporarily stores the created Fiscal head data in a receipt temporary storage memory and a journal temporary storage memory of the temporary storage memory 13f, and creates the Fiscal head data and the calculated TAX and GT. Are stored in the storage device 18 and the Fiscal data is stored in the journal temporary storage memory to execute a receipt / journal printing process.
[0085]
Further, the CPU 11 executes a receipt / journal printing process (see FIG. 20) to be described later, reads the receipt data for the first line stored in the temporary storage memory 13f, and is stored in advance in the print digit number memory 13k in the RAM 13. The receipt / journal data is created in the shift register according to the print format based on the print digit data, the first line is latched, the latched line is printed, and whether all lines have been printed is determined. When printing of all lines is completed, it is determined whether printing of all data in the temporary storage memory 13f is completed. When printing of all lines is not completed, the next line is latched.
[0086]
Further, when the printing of all the data in the temporary storage memory 13f is completed, the CPU 11 clears all the data in the temporary storage memory 13f, ends the above-described receipt / journal printing process, and stores the data in the temporary storage memory 13f. If printing of all data has not been completed, the next row of data in the temporary storage memory 13f is read.
[0087]
As shown in FIG. 18A, the RAM 13 in the present embodiment includes a LOGO Message data memory 13a, a department memory 13b, a tax rate memory 13d, a print buffer memory 13e, a temporary storage memory 13f, a GT memory 13i, and a print digit number memory. 13k and work memory 13l. Further, as shown in FIG. 7B, the department memory 13b stores “department load”, “sales data”, and “tax type”, and as shown in FIG. The tax type and the tax rate corresponding to the tax type are stored. For example, tax type A stores “5%” as a consumption tax, tax type B stores “10%” as a food and drink tax, and tax type C stores “15%” as a liquor tax.
[0088]
Next, with reference to FIG. 19, the printing process in the present embodiment will be described. In FIG. 19, the CPU 11 determines whether or not department data is input from the input device 12 (step S31). If there is an input (step S31; Yes), it is determined whether or not the input is the first input in one transaction (step S32). Here, if it is the first input (step S32; Yes), LOGO Messages 1 to 4 are temporarily stored in the receipt temporary storage memory of the temporary storage memory 13f (step S33).
[0089]
Next, the CPU 11 updates the department amount by adding it to the amount of the GT memory 13i in the RAM 13 (step S34), and performs registration processing by updating the department data (step S35). Next, the CPU 11 displays the department data on the display device 16 (step S36), and temporarily stores the department data in the receipt temporary storage memory and the journal temporary storage memory of the temporary storage memory 13f (step S37), and again in step S31. Return to and execute the subsequent processing. In step S32, if it is not the first input in one transaction (step S32; No), step S33 is omitted and the process proceeds to step S34 and subsequent steps.
[0090]
If no department data is input in step S31 (step S31; No), the CPU 11 determines whether or not “tightening” is input (step S38), and if it is “tightening” input (step S38). ; Yes), tightening processing (respective TAX, TAXTOTAL, TOTAL, CHANGE calculation, transaction data update) is performed (step S39), the tightening data is displayed on the display device 16 (step S40), and will be described later in FIG. As shown, the fastening data is stored in the temporary storage memory 13f (step S41), and the "date and time", "transaction code terminal ID", and "charge ID" are stored in the temporary storage memory 13f (step S42).
[0091]
Next, the CPU 11 creates Fiscal head data (Step S43), and temporarily stores the created Fiscal head data in the receipt temporary storage memory and the journal temporary storage memory of the temporary storage memory 13f (Step S44). Next, the CPU 11 stores the created Fiscal head data and the calculated TAX and GT in the storage device 18 (Step S45), and stores the Fiscal data in the journal temporary storage memory (Step S46), as shown in FIG. In step S47, a receipt / journal printing process described later is executed. Then, the process returns to step S31 again, and the subsequent processing is repeatedly executed. In step S38, if the input is not “tightening” (step S38; No), the process returns to step S31 again.
[0092]
Next, a receipt / journal printing process according to the present embodiment will be described with reference to FIG. In FIG. 20, the CPU 11 first reads the receipt data for the first line stored in the temporary storage memory 13f (step S471), and the print format based on the print digit data stored in advance in the print digit number memory 13k in the RAM 13 Accordingly, receipt journal data is created in the shift register (step S472).
[0093]
Next, the CPU 11 latches the first line (step S473) and prints the latched one line (step S474). Next, the CPU 11 determines whether or not printing of all lines has been completed (step S475). Here, when printing of all lines is completed (step S475; Yes), the CPU 11 determines whether printing of all data in the temporary storage memory 13f is completed (step S476). In step S475, if all lines have not been printed (step S475; No), the CPU 11 latches the next line (step S478), returns to step S474 again, and executes the subsequent processing. .
[0094]
If printing of all data in the temporary storage memory 13f is completed in step S476 (step S476; Yes), the CPU 11 clears all data in the temporary storage memory 13f (step S477), and the receipt described above.・ End journal printing process. If printing of all data in the temporary storage memory 13f has not been completed (step S476; No), the next row of data in the temporary storage memory 13f is read (step S479), and the process returns to step S472 again and thereafter. Execute the process.
[0095]
Here, FIG. 21 is a diagram showing an example of data stored in the temporary storage memory 13f in the RAM 13 when the printing process and the receipt / journal printing process are executed. FIG. 22 is a diagram showing an example of a receipt and a journal printed by the printing device 17 based on the data shown in FIG. As described above, by having a function of printing important information only on the journal side, it is possible to make the most effective use of the printable area of the print sheet without creating unnecessary margins in the journal. Moreover, since useful information such as accounting information can be left in the journal, customer service can be improved.
[0096]
As described above, the ECR 10 according to the third embodiment of the present invention has a function of printing important information on the journal side, so that a print sheet can be effectively used without creating unnecessary margins in the journal. it can. Moreover, since useful information such as accounting information can be left in the journal, customer service can be improved.
[0097]
In the embodiment described above, the data printed on the receipt roll paper and the journal roll paper by the printing device 17 is related to each other. However, these data are completely different types of data. Also good. In the above embodiment, an example is given in which the receipt data amount is larger than the journal data amount. However, the journal data amount may be larger than the receipt. Furthermore, various detailed configurations of each device can be changed as appropriate without departing from the spirit of the present invention.
[0098]
【The invention's effect】
According to this invention, by having the function of enlarging in the vertical direction according to the enlargement ratio based on the number of receipt print lines and the number of journal print lines so that the print on the journal side matches the number of print lines on the receipt side, The print data can be arranged in a well-balanced manner without generating unnecessary margins in the journal.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a main configuration of a control system of an ECR 10 in the present embodiment.
FIG. 2 is a diagram showing a memory configuration in a RAM 13 of FIG. 1 in the first embodiment.
FIG. 3 is a diagram showing a memory configuration in a temporary storage memory 13f of FIG. 2;
4 is a diagram showing a memory configuration in a print item memory 13j in FIG. 2. FIG.
FIG. 5 is a flowchart showing a printing process executed by the CPU 11 of FIG.
FIG. 6 is a flowchart showing a receipt / journal printing process executed by the CPU 11 of FIG.
7 is a flowchart showing journal data enlargement rate calculation processing executed by the CPU 11 of FIG.
FIG. 8 is a flowchart showing processing executed by a CPU 11 of FIG.
9 is a view showing an example of development of receipt print data and journal print data processed in the receipt / journal print process of FIG. 6; FIG.
10 is a diagram showing an example of a receipt and a journal printed by the receipt / journal printing process of FIG. 6. FIG.
FIG. 11 is a diagram showing a memory configuration in the RAM 13 of FIG. 1 in the second embodiment.
12 is a diagram showing a memory configuration in the receipt temporary storage memory 13f and the print item memory 13j in FIG.
13 is a flowchart showing a receipt printing process executed by the CPU 11 of FIG.
14 is a flowchart showing journal print instruction determination processing executed by CPU 11 of FIG.
FIG. 15 is a flowchart showing journal printing processing executed by the CPU 11 of FIG.
FIG. 16 is a plan view showing a thermal head drive mechanism and a spool drive mechanism in the thermal printer.
FIGS. 17A and 17B are enlarged cross-sectional views of a roll paper feed unit, where FIG. 17A is a diagram illustrating a state where the roll paper is held by a rubber roller 17j, and FIG. It is a figure which shows a state.
18 is a diagram showing a memory configuration in the RAM 13 of FIG. 1 in the third embodiment.
FIG. 19 is a flowchart showing a printing process executed by the CPU 11 of FIG.
20 is a flowchart showing a receipt / journal printing process executed by the CPU 11 of FIG. 1; FIG.
FIG. 21 is a diagram showing a memory configuration in temporary storage memory 13f of FIG. 18;
22 is a diagram showing an example of development of receipt print data and journal print data processed in the receipt / journal print process of FIG. 20;
[Explanation of symbols]
10 ECR
11 CPU
12 Input devices
13 RAM
14 Drawer
15 Transmission control unit
16 Display device
17 Printing device
17a Receipt roll paper
17b Journal roll paper
17c holding plate
17d Winder motor
17e case
17f spool
17g, 17h thermal head
17i Roller gear
17j rubber roller
17k intermediate gear
17l motor gear
17m pulse motor
17n Paper holder attachment
18 Storage device
18a storage medium
19 Bus

Claims (3)

レシート用ロール紙とジャーナル用ロール紙とを1つの用紙送り機構で送り、印刷バッファに記憶された1ライン分の印刷データに基づいて1つの印字部により夫々個々のロール紙に印刷する印刷装置において、
レシート印字行数とジャーナル印字行数とに基づいて拡大率を算出する算出手段と、
前記印刷データの縦方向の長さを前記拡大率に応じて拡大して記憶する記憶制御手段と、
この記憶制御手段により記憶された印刷データを前記印字部によりジャーナル用のロール紙に対して印刷させる印刷制御手段と、
を備えたことを特徴とする印刷装置。
In a printing apparatus in which a roll paper for receipt and a roll paper for journal are fed by a single paper feed mechanism and printed on each roll paper by a single printing unit based on print data for one line stored in a print buffer,
A calculating means for calculating an enlargement ratio based on the number of receipt print lines and the number of journal print lines;
Storage control means for enlarging and storing the vertical length of the print data in accordance with the enlargement ratio ;
Print control means for printing the print data stored by the storage control means on the roll paper for the journal by the printing unit;
A printing apparatus comprising:
前記ロール紙の給紙方向に一定の圧力を加えることにより、該ロール紙を前記用紙送り機構のローラ部分に常時保持するロール紙保持手段を更に備えたことを特徴とする請求項1記載の印刷装置。  2. The printing apparatus according to claim 1, further comprising roll paper holding means for constantly holding the roll paper on a roller portion of the paper feed mechanism by applying a constant pressure in the paper feeding direction of the roll paper. . レシート用ロール紙とジャーナル用ロール紙とを1つの用紙送り機構で送り、印刷バッファに記憶された1ライン分の印刷データに基づいて1つの印字部により夫々個々のロール紙に印刷するためのコンピュータが実行可能なプログラムを格納した記憶媒体であって、レシート印字行数とジャーナル印字行数とに基づいて拡大率を算出するためのコンピュータが実行可能なプログラムコードと、前記印刷データの縦方向の長さを前記拡大率に応じて拡大して記憶するためのコンピュータが実行可能なプログラムコードと、前記記憶された印刷データを前記印字部によりジャーナル用のロール紙に対して印刷させるためのコンピュータが実行可能なプログラムコードと、を含むプログラムを格納したことを特徴とする記憶媒体。A computer for feeding receipt roll paper and journal roll paper by one paper feed mechanism and printing on each roll paper by one printing unit based on print data for one line stored in the print buffer. A storage medium storing an executable program, a program code executable by a computer for calculating an enlargement ratio based on the number of receipt print lines and the number of journal print lines, and the longitudinal length of the print data A computer-executable program code for enlarging and storing the size according to the enlargement ratio, and a computer for causing the printing unit to print the stored print data on the journal roll paper A storage medium characterized by storing a program including a possible program code.
JP36800199A 1999-12-24 1999-12-24 Printing apparatus and storage medium Expired - Fee Related JP3812256B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP36800199A JP3812256B2 (en) 1999-12-24 1999-12-24 Printing apparatus and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP36800199A JP3812256B2 (en) 1999-12-24 1999-12-24 Printing apparatus and storage medium

Publications (2)

Publication Number Publication Date
JP2001184566A JP2001184566A (en) 2001-07-06
JP3812256B2 true JP3812256B2 (en) 2006-08-23

Family

ID=18490733

Family Applications (1)

Application Number Title Priority Date Filing Date
JP36800199A Expired - Fee Related JP3812256B2 (en) 1999-12-24 1999-12-24 Printing apparatus and storage medium

Country Status (1)

Country Link
JP (1) JP3812256B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017157089A (en) * 2016-03-03 2017-09-07 カシオ計算機株式会社 Sales data processing device and program
JP6915641B2 (en) * 2019-03-19 2021-08-04 カシオ計算機株式会社 Sales data processing equipment, printing methods, and programs
JP7428536B2 (en) * 2020-02-19 2024-02-06 東芝テック株式会社 Product sales data processing device and program

Also Published As

Publication number Publication date
JP2001184566A (en) 2001-07-06

Similar Documents

Publication Publication Date Title
JP3812256B2 (en) Printing apparatus and storage medium
JP3384153B2 (en) Sales data printing device
JPH07109637B2 (en) Electronic cash register
JPH09147235A (en) Pos terminal equipment
JP2902935B2 (en) Electronic cash register
JPH09218986A (en) Pos paper running out operation continuing system using journal file
JPS5960562A (en) Paper leaf issue device
JP3134041B2 (en) Electronic cash register
JPS62259198A (en) Electronic cash register
JP3198037B2 (en) Product sales registration data processing device
JPH0554261A (en) Sales registration device
JPH03225593A (en) Electronic cash register
JP2996292B2 (en) Electronic cash register
JPS60146394A (en) Electronic cash register
JP2998466B2 (en) Distribution terminal device with switching mechanism for each use of roll paper
JPS5851305B2 (en) electronic cash register
JP4009364B2 (en) Cash register
JP2526285B2 (en) Ticket issuing device
JPS592587Y2 (en) electronic cash register
JP2533154B2 (en) Electronic cash register
JPH0125118B2 (en)
JP3112632B2 (en) Product sales registration data processing device
JPH05135280A (en) Electronic cash register
JPS6239466B2 (en)
JPH01159790A (en) Commodity sales data processor

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050824

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050830

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051004

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060522

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100609

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110609

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110609

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120609

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120609

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130609

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees