JP4990741B2 - Product sales data processing device - Google Patents

Product sales data processing device Download PDF

Info

Publication number
JP4990741B2
JP4990741B2 JP2007297278A JP2007297278A JP4990741B2 JP 4990741 B2 JP4990741 B2 JP 4990741B2 JP 2007297278 A JP2007297278 A JP 2007297278A JP 2007297278 A JP2007297278 A JP 2007297278A JP 4990741 B2 JP4990741 B2 JP 4990741B2
Authority
JP
Japan
Prior art keywords
receipt
information
printing
print
transaction
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
JP2007297278A
Other languages
Japanese (ja)
Other versions
JP2009123028A (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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC 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 Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2007297278A priority Critical patent/JP4990741B2/en
Publication of JP2009123028A publication Critical patent/JP2009123028A/en
Application granted granted Critical
Publication of JP4990741B2 publication Critical patent/JP4990741B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、レシート用紙の両面に印刷が可能なレシートプリンタを備える商品販売データ処理装置(POS端末)に関する。   The present invention relates to a merchandise sales data processing apparatus (POS terminal) including a receipt printer capable of printing on both sides of a receipt sheet.

レシートプリンタを備える商品販売データ処理装置(POS端末)が導入されている店舗では、客が商品を購入すると、領収日、発行者、宛名、金額、その金額の明細など各種の項目が印刷されたレシートが発行される。発行されるレシートには、通常、一方の面にのみ情報が印刷されているが他方の面には何も印刷されておらず、レシート用紙の裏面が有効に活用されていない。   In a store where a merchandise sales data processing apparatus (POS terminal) equipped with a receipt printer is installed, when a customer purchases a product, various items such as receipt date, issuer, address, amount of money, and details of the amount are printed. A receipt is issued. In the issued receipt, information is usually printed only on one side, but nothing is printed on the other side, and the back side of the receipt paper is not effectively utilized.

この点を解決すべく、レシート用紙の両面に印刷が可能なレシートプリンタを備えるPOS端末を利用してレシートを発行することでレシート用紙の裏面を有効に活用することが行われている(例えば、特許文献1記載の金銭登録機)。   In order to solve this problem, the back side of the receipt paper is effectively utilized by issuing a receipt using a POS terminal equipped with a receipt printer capable of printing on both sides of the receipt paper (for example, Cash registering machine described in Patent Document 1).

特開平11−328534号公報JP-A-11-328534

レシートは一般に、客が商品を購入したことを証明するための領収書としての役割を果たす。そのため、レシートの表面には、通常、商品を購入した店舗の名前とその店舗で支払われた支払金額とが印刷され、このレシートを手に取った者がその店舗で確かに取引があったことを理解できるようになっている。   The receipt generally serves as a receipt to prove that the customer has purchased the item. Therefore, the name of the store where the product was purchased and the payment amount paid at the store were usually printed on the surface of the receipt, and the person who picked up the receipt had a certain transaction at the store. Can understand.

ここで、両面に印刷が可能なレシートプリンタから発行されるレシートについて検討する。通常、レシートの表面には客が購入した商品に関する情報で構成され取引内容を把握できるよう記載される取引情報が印刷されるため、レシートの表面の印刷長は客が購入した商品の品目数に応じて変化する。これに対し、レシートの裏面には通常、取引情報が印刷されることはなく、例えば特許文献1の段落番号0019に示されているように、予め印刷位置や印刷長が予め定められている広告情報などの固定情報が印刷される。このため、両面に印刷が可能なレシートプリンタからは、表面もしくは裏面のいずれかに何も印刷されていない余白部分を有したレシートが発行されることになる。つまり、レシート用紙は、レシートに生じる余白部分に相当する量だけ無駄に使われ、有効利用されていないといえる。   Here, a receipt issued from a receipt printer capable of printing on both sides will be considered. Normally, transaction information is printed on the surface of the receipt so that the transaction details can be understood, and the print length on the surface of the receipt is the number of items purchased by the customer. Will change accordingly. On the other hand, the transaction information is not normally printed on the back side of the receipt. For example, as shown in paragraph number 0019 of Patent Document 1, an advertisement whose printing position and printing length are predetermined is predetermined. Fixed information such as information is printed. For this reason, a receipt printer capable of printing on both sides issues a receipt having a blank portion where nothing is printed on either the front surface or the back surface. That is, it can be said that the receipt paper is wasted by an amount corresponding to the margin portion generated in the receipt and is not effectively used.

本発明の目的は、余白部分が少なく全体の長さが短縮されたレシートを発行し、レシート用紙の有効利用を図ることである。   An object of the present invention is to issue a receipt having a small margin and a reduced overall length, and to effectively use the receipt paper.

実施形態の商品販売データ処理装置は、一取引毎に取引情報の記憶と当該取引情報を印刷したレシートの発行とを含む商品販売データ処理を実行する商品販売データ処理装置において、用紙保持部と用紙排出部との間を連絡する案内経路に沿ってレシート用紙をその長さ方向に搬送する搬送機構と、前記案内経路に沿って搬送される前記レシート用紙の一方の面に印刷を行う第1印刷ヘッドと、当該第1印刷ヘッドとは前記案内経路中のレシート用紙の搬送方向上下流に互いの印刷位置を離間して配置されており、前記第1印刷ヘッドの印刷位置より前記案内経路の上流側に配置されて、前記レシート用紙の他方の面に印刷を行う第2印刷ヘッドと、を備えるレシートプリンタと、一取引の終了宣言に応じて前記レシートプリンタを駆動制御し、予め印刷位置及び印刷長さが決められている固定情報を前記レシート用紙の前記一方の面または前記他方の面に印刷する手段と、前記取引情報の印刷行数に基づき、当該一取引のレシートの長さが最短となるように前記取引情報を前記レシート用紙の前記一方の面と前記他方の面とに配分して当該レシートに占める固定情報の印刷領域以外の領域に印刷する手段と、今回取引分のレシート用紙の切断位置以降の前記他方の面において、次取引のレシートの先頭位置に印刷される固定情報である先頭固定情報を印刷する手段と、を備え、前記先頭固定情報が印字される領域の前記搬送経路方向の長さは、前記第1印刷ヘッドと前記第2印刷ヘッドとの離間距離に相当する長さ以下であるThe merchandise sales data processing apparatus according to the present embodiment is a merchandise sales data processing apparatus that executes merchandise sales data processing including storing transaction information and issuing a receipt printed with the transaction information for each transaction. A conveyance mechanism that conveys a receipt sheet in a length direction along a guide path that communicates with the sheet discharge unit, and a first that performs printing on one surface of the receipt sheet that is conveyed along the guide path. The print head and the first print head are arranged with their print positions separated from each other upstream and downstream in the conveyance direction of the receipt paper in the guide path, and from the print position of the first print head to the guide path. is disposed upstream, and a second print head that performs printing on the other surface of the receipt paper, and a receipt printer including a drive system of the receipt printer in response to the end declaration of one transaction And, means for printing the fixed information are determined in advance the printing position and print length into the one surface or the other surface of the receipt paper, based on the number of print lines of the transaction information, of the one transaction means for printing the transaction information so that the length of the receipt is the shortest in a region other than the print region of the fixed information occupied in the receipt allocated to said one surface and the other surface of the receipt paper, in the other surface after the cutting position of the receipt paper this transaction amount, and means for printing the first fixed information is fixed information to be printed on the head position of the receipt of the next transaction, wherein the first fixed information printing The length of the region to be transferred in the transport path direction is equal to or less than the length corresponding to the separation distance between the first print head and the second print head .

本発明によれば、一取引の終了宣言に応じてレシートプリンタを駆動制御し、予め印刷位置及び印刷長さが決められている固定情報をレシート用紙に印刷する処理と、当該一取引のレシートの長さが最短となるように取引情報をレシート用紙の一方の面と他方の面とに配分してレシートに占める固定情報の印刷領域以外の領域に印刷する処理とを実行するため、余白部分が少なく全体の長さが短縮されたレシートを発行し、レシート用紙の有効利用を図ることができる。   According to the present invention, the receipt printer is driven and controlled according to the declaration of the end of one transaction, and the fixed information whose printing position and printing length are determined in advance is printed on the receipt paper, and the receipt of the one transaction Since the transaction information is distributed to one side and the other side of the receipt paper so that the length is the shortest and printing is performed in an area other than the fixed information printing area in the receipt, the margin portion is A receipt with a reduced overall length can be issued to effectively use the receipt paper.

本発明の実施の一形態について、図1ないし図8に基づいて説明する。   An embodiment of the present invention will be described with reference to FIGS.

図1は、POS装置100の外観を示す斜視図である。POS装置100は、POS端末101にレシートプリンタ107が接続コード113によって互いにデータ通信自在に接続されて構成されている。   FIG. 1 is a perspective view showing an external appearance of the POS device 100. The POS device 100 is configured by connecting a receipt printer 107 to a POS terminal 101 through a connection cord 113 so as to allow data communication with each other.

POS端末101は、商品を特定する商品コードや顧客が購入する商品の点数などの情報を入力するための入力部を備え、入力された商品コードに基づいて生成した取引情報を記憶部としてのRAM203(図3参照)に一時記憶する処理と、この取引情報を印刷したレシートを発行するレシート発行処理(図7参照)と、この取引情報に基づく決済処理と、この取引情報を図示しない上位機に送信する処理とを含む商品販売データ処理を実行する。POS端末101は、本体102とキャッシャ側表示部としてのLCDディスプレイ104と客側表示部106とを備えて構成されている。   The POS terminal 101 includes an input unit for inputting information such as a product code for specifying a product and the number of products purchased by a customer, and RAM 203 serving as a storage unit stores transaction information generated based on the input product code. (See FIG. 3) Temporary storage processing, Receipt issuance processing (see FIG. 7) for issuing a receipt printed with this transaction information, Settlement processing based on this transaction information, A product sales data process including a process to transmit is executed. The POS terminal 101 includes a main body 102, an LCD display 104 serving as a cashier-side display unit, and a customer-side display unit 106.

本体102は、キャッシャ側および客側のそれぞれを向く平面を有する直方体形状のハウジング102aの内部に図3に基づいて後述する各部を収納して構成されている。ハウジング102aは客側に若干傾いた形状であり、キャッシャ側および客側から見ると長方形形状となっており、側面から見ると平行四辺形形状となっている。ハウジング102aの底面から客側には、POS端末101の本体102を安定した状態で載置面に載置させるための平板状の脚部103が延出している。   The main body 102 is configured by housing each part described later with reference to FIG. 3 in a rectangular parallelepiped housing 102a having flat surfaces facing the casher side and the customer side. The housing 102a has a shape slightly inclined toward the customer side, has a rectangular shape when viewed from the cashier side and the customer side, and has a parallelogram shape when viewed from the side surface. From the bottom surface of the housing 102a to the customer side, a plate-like leg portion 103 for allowing the main body 102 of the POS terminal 101 to be stably placed on the placement surface extends.

LCDディスプレイ104は、POS端末101の本体102のハウジング102aのうちキャッシャ側を向く平面に位置付けられており、各種情報を表示する表示面をキャッシャ側に向けて配置され、情報出力部としての役割を果たす。LCDディスプレイ104の表示面には、タッチ指定することによりPOS端末101に情報を入力するための情報入力部としてのタッチパネル105が積層配置されている。LCDディスプレイ104には、POS端末101への商品コードの入力を支援する商品情報や、POS端末101への置数入力を支援するテンキー画像など、キャッシャが会計の際に行うPOS装置100に対する操作入力を支援する各種の情報が表示される。キャッシャは、LCDディスプレイ104に表示された情報に従ってタッチパネル105からタッチ指定を行うことで、POS端末101に各種情報を入力することができる。   The LCD display 104 is positioned on a plane facing the cashier side of the housing 102a of the main body 102 of the POS terminal 101. The LCD display 104 is arranged with a display surface for displaying various types of information facing the cashier side, and serves as an information output unit. Fulfill. On the display surface of the LCD display 104, a touch panel 105 serving as an information input unit for inputting information to the POS terminal 101 by touch designation is laminated. On the LCD display 104, operation input to the POS device 100 performed by the cashier at the time of accounting, such as product information that supports the input of the product code to the POS terminal 101 and a numeric keypad image that supports the number input to the POS terminal 101. Various types of information for supporting The cashier can input various types of information to the POS terminal 101 by performing touch designation from the touch panel 105 according to the information displayed on the LCD display 104.

客側表示部106は、POS端末101の本体102のハウジング102aの上面から突出した状態で配置されており、各種情報を表示する表示面を客側に向けた状態で配置されている。客側表示部106も、情報出力部としての役割を果たす。   The customer-side display unit 106 is arranged in a state of protruding from the upper surface of the housing 102a of the main body 102 of the POS terminal 101, and is arranged with the display surface for displaying various information facing the customer side. The customer display unit 106 also serves as an information output unit.

なお、図1には図示しないが、POS端末101の本体102には情報入力部としてのキーボード211(図3参照)および商品コード入力部としてのコードスキャナ212(図3参照)が接続されている。そのため、キャッシャは、キーボード211を用いてPOS端末101に各種情報の操作入力を行うことが可能である。また、キャッシャは、コードスキャナ212を用いて図示しない商品にコードシンボルの態様で付されている商品コードをPOS端末101に入力することが可能である。   Although not shown in FIG. 1, a keyboard 211 (see FIG. 3) as an information input unit and a code scanner 212 (see FIG. 3) as a product code input unit are connected to the main body 102 of the POS terminal 101. . Therefore, the cashier can input various information to the POS terminal 101 using the keyboard 211. Further, the cashier can input a product code attached to a product (not shown) in the form of a code symbol into the POS terminal 101 using the code scanner 212.

図2は、レシートプリンタ107の内部構成の概略を示す模式図である。レシートプリンタ107の外観構成および内部構成について、図1および図2に基づいて説明する。本実施の形態で用いられるレシートプリンタ107は、印刷を行う印刷部にライン型の印刷方式のサーマルヘッドを備えたサーマルプリンタである。レシートプリンタ107は、略直方体形状のハウジング108の内部に各部(図2および図3参照)を収納して構成されている。ハウジング108の上面後方は開口されており、その開口された部分は蓋部109によって閉じられている。蓋部109は、ハウジング108の開口された部分の後方上端に接続され、その接続箇所を支点として上方に開放できるようにハウジング108に対し開閉自在となっている。ハウジング108の上面前方には、レシートプリンタ107の電源ボタン110が位置付けられている。電源ボタン110が配置されているハウジング108の上面の後端と閉じられた状態の蓋部109の前端との間には、用紙排出部としての排紙口111が形成される。排紙口111からは、レシートプリンタ107の内部に収納されるレシート用紙151(図2参照)がレシートRTとして排出される。   FIG. 2 is a schematic diagram showing an outline of the internal configuration of the receipt printer 107. The external configuration and internal configuration of the receipt printer 107 will be described with reference to FIGS. 1 and 2. The receipt printer 107 used in the present embodiment is a thermal printer provided with a line-type printing type thermal head in a printing unit for performing printing. The receipt printer 107 is configured by housing each part (see FIGS. 2 and 3) inside a substantially rectangular parallelepiped housing 108. A rear surface of the upper surface of the housing 108 is opened, and the opened portion is closed by a lid 109. The lid portion 109 is connected to the rear upper end of the opened portion of the housing 108, and is openable and closable with respect to the housing 108 so as to be opened upward with the connection location as a fulcrum. A power button 110 of the receipt printer 107 is positioned in front of the upper surface of the housing 108. A paper discharge port 111 serving as a paper discharge unit is formed between the rear end of the upper surface of the housing 108 on which the power button 110 is disposed and the front end of the lid portion 109 in a closed state. A receipt paper 151 (see FIG. 2) accommodated in the receipt printer 107 is discharged from the paper discharge port 111 as a receipt RT.

レシートプリンタ107には、両面に印刷が可能なレシート用紙151が使用される。本実施の形態で用いられるレシート用紙151は、平面状の基材の両面のそれぞれに所定の印加エネルギーが印加されることによって発色するサーマル層、サーマル層を保護する保護層が順に重層されて形成されている感熱式のレシート用紙である。レシート用紙151は、ロール状に巻回された状態でレシートプリンタ107に設けられた用紙保持部152に回動自在に保持される。レシートプリンタ107の内部には、用紙保持部152から、表面印刷部153、裏面印刷部154、カッタ機構155を経て排紙口111に続く案内経路156が形成されている。案内経路156の途中には、搬送用モータ214(図3参照)によって回転する表面プラテン153p、裏面プラテン154p、案内ローラ158が配置されている。表面プラテン153p、裏面プラテン154p、および、案内ローラ158は、案内経路156に沿ってレシート用紙151を搬送する搬送機構160を構成する。搬送機構160は、レシート用紙151を、案内経路156の上流側となる用紙保持部152から案内経路156の下流側となる排紙口111に向けて案内経路156に沿って搬送する。また、案内経路156の途中には、搬送機構160によるレシート用紙151の搬送タイミングの検出のために用いられるセンサ部161が配置されている。センサ部161は、レシート用紙151に記されている位置検出用のマークを検出した場合に検出信号を発信するセンサと、このセンサから発せられる検出信号に基づいて制御部215(図3参照)に対しこのマークの検出の有無を示す情報を送信する回路と、を備える。レシートプリンタ107の各部を制御する制御部215は、センサ部161から送信される情報に従ってレシート用紙151の搬送速度を把握し、搬送用モータ214を制御して搬送機構160を構成する各ローラの回動速度を調節する。   A receipt paper 151 capable of printing on both sides is used for the receipt printer 107. Receipt paper 151 used in the present embodiment is formed by sequentially laminating a thermal layer that develops color when a predetermined applied energy is applied to each of both surfaces of a flat substrate, and a protective layer that protects the thermal layer. This is a heat-sensitive receipt paper. The receipt paper 151 is rotatably held by a paper holding unit 152 provided in the receipt printer 107 while being wound in a roll shape. Inside the receipt printer 107, a guide path 156 is formed from the paper holding unit 152 through the front surface printing unit 153, the back surface printing unit 154, and the cutter mechanism 155 to the paper discharge port 111. In the middle of the guide path 156, a front platen 153p, a back platen 154p, and a guide roller 158 that are rotated by a transport motor 214 (see FIG. 3) are arranged. The front platen 153p, the back platen 154p, and the guide roller 158 constitute a transport mechanism 160 that transports the receipt paper 151 along the guide path 156. The transport mechanism 160 transports the receipt paper 151 along the guide path 156 from the paper holding unit 152 on the upstream side of the guide path 156 toward the paper discharge port 111 on the downstream side of the guide path 156. In the middle of the guide path 156, a sensor unit 161 used for detecting the conveyance timing of the receipt paper 151 by the conveyance mechanism 160 is disposed. The sensor unit 161 transmits a detection signal when a position detection mark written on the receipt paper 151 is detected, and controls the control unit 215 (see FIG. 3) based on the detection signal generated from the sensor. And a circuit for transmitting information indicating the presence / absence of detection of the mark. A control unit 215 that controls each unit of the receipt printer 107 grasps the conveyance speed of the receipt paper 151 according to information transmitted from the sensor unit 161, controls the conveyance motor 214, and rotates each roller constituting the conveyance mechanism 160. Adjust the moving speed.

表面印刷部153は、案内経路156の図2における上側に設けられた表面プラテン153pと、案内経路156を介して表面プラテン153pに対向接触するライン型の第1印刷ヘッドとしての表面サーマルヘッド153sとにより構成され、案内経路156に沿って搬送されるレシート用紙151の一方の面(表面)に所定事項を印刷する。裏面印刷部154は、案内経路156の図2における下側に設けられた裏面プラテン154pと、案内経路156を介して裏面プラテン154pに対向接触するライン型の第2印刷ヘッドとしての裏面サーマルヘッド154sとにより構成され、案内経路156に沿って搬送されるレシート用紙151の他方の面(裏面)に所定事項を印刷する。表面サーマルヘッド153sは、表面プラテン153pに所定の加圧力で当接するように配設されており、表面プラテン153pに対向接触する部分に複数の発熱抵抗体153hを主走査方向に一列に配列した状態で備えている。同様に、裏面サーマルヘッド154sは、裏面プラテン154pに所定の加圧力で当接するように配設されており、裏面プラテン154pに対向接触する部分に複数の発熱抵抗体154hを主走査方向に一列に配列した状態で備えている。表面サーマルヘッド153sおよび裏面サーマルヘッド154sはいずれも、図示しない電源回路からの電圧をライン方向に一列に配列された発熱抵抗体153h、154hに選択的に印加することができるように構成されている。   The surface printing unit 153 includes a surface platen 153p provided on the upper side in FIG. 2 of the guide path 156, and a surface thermal head 153s as a line-type first print head that is opposed to the surface platen 153p via the guide path 156. The predetermined matter is printed on one surface (front surface) of the receipt paper 151 conveyed along the guide path 156. The back surface printing unit 154 includes a back surface platen 154p provided below the guide path 156 in FIG. 2 and a back surface thermal head 154s as a line-type second print head that is in contact with the back surface platen 154p via the guide path 156. The predetermined matter is printed on the other surface (back surface) of the receipt paper 151 conveyed along the guide path 156. The surface thermal head 153s is disposed so as to contact the surface platen 153p with a predetermined pressure, and a plurality of heating resistors 153h are arranged in a line in the main scanning direction in a portion facing and contacting the surface platen 153p. It is equipped with. Similarly, the back thermal head 154s is disposed so as to abut on the back platen 154p with a predetermined pressure, and a plurality of heating resistors 154h are arranged in a line in the main scanning direction in a portion facing and contacting the back platen 154p. Prepared in an array. Both the front thermal head 153s and the rear thermal head 154s are configured so that a voltage from a power supply circuit (not shown) can be selectively applied to the heating resistors 153h and 154h arranged in a line in the line direction. .

カッタ機構155は、固定刃155aと可動刃155bとを組み合わせて構成されている。固定刃155aおよび可動刃155bはいずれも、一側辺に刃部を備えた平板長板状をなしており、案内経路156を間に挟んでそれぞれの刃部を対向させ、対向する二つの刃部の間に案内経路156を搬送されるレシート用紙151を挿通できる程度に離間して配置されている。可動刃155bは、カッタ用モータ214a(図3参照)の駆動によって固定刃155aに備わる刃部の延びる方向に摺動し、固定刃155aおよび可動刃155bの間に挿通されるレシート用紙151を切断する。すなわち、カッタ機構155は、レシート用紙151を切断する機構である。カッタ機構155によって切断されたレシート用紙151は、表面サーマルヘッド153sによって印刷が行われた面をレシートプリンタ107の手前側に向けた状態で、排紙口111からレシートRTとして排出される。   The cutter mechanism 155 is configured by combining a fixed blade 155a and a movable blade 155b. Each of the fixed blade 155a and the movable blade 155b has a plate-like plate shape with a blade portion on one side, and the two blades facing each other with the respective blade portions opposed to each other with the guide path 156 interposed therebetween. The receipt paper 151 transported along the guide path 156 is spaced between the sections so as to be inserted. The movable blade 155b slides in the extending direction of the blade provided to the fixed blade 155a by driving the cutter motor 214a (see FIG. 3), and cuts the receipt paper 151 inserted between the fixed blade 155a and the movable blade 155b. To do. That is, the cutter mechanism 155 is a mechanism for cutting the receipt paper 151. The receipt paper 151 cut by the cutter mechanism 155 is discharged as a receipt RT from the paper discharge port 111 in a state where the surface printed by the front thermal head 153s faces the front side of the receipt printer 107.

図3は、POS装置100の電気的構成を示すブロック図である。POS装置100を構成するPOS端末101は、各種演算処理を実行して各部を集中的に制御するCPU202を備えている。CPU202には、可変データを書き替え自在に記憶するRAM203と、固定データを記憶しその記憶内容を給電なしに保持しているROM204とがバス接続されている。CPU202とRAM203とROM204とは、情報処理を実行するPOS装置100における情報処理部201を構成する。情報処理部201は、図示しない入出力回路を介して、時計回路205、ブザー回路206、通信インタフェイス207、外部機器インタフェイス208、FDドライブ209、HDD210、LCDディスプレイ104、タッチパネル105、客側表示部106、キーボード211、および、コードスキャナ212のそれぞれとバス接続している。時計回路205は、情報処理部201に対して現在時刻を送信する。この時計回路205には不揮発性のバックアップRAM205aが接続されており、時計回路205が記憶する現在時刻は定期的にバックアップRAM205aにバックアップされる。ブザー回路206は、情報処理部201による制御によって所定のブザー音を発する。通信インタフェイス207は、図示しないネットワークを介した他の機器との有線もしくは無線の通信を実行する。外部機器インタフェイス208は、接続コード113を介してPOS端末101に接続されている他の機器とPOS端末101との間のデータ通信を実現する。FDドライブ209は、外部記憶媒体としてのFDが装着された状態で情報処理部201による制御に従ってそのFDに記憶されている情報を読み込む。   FIG. 3 is a block diagram showing an electrical configuration of the POS device 100. The POS terminal 101 constituting the POS device 100 includes a CPU 202 that executes various arithmetic processes and centrally controls each unit. The CPU 202 is bus-connected to a RAM 203 that stores variable data in a rewritable manner and a ROM 204 that stores fixed data and holds the stored contents without power feeding. The CPU 202, the RAM 203, and the ROM 204 constitute an information processing unit 201 in the POS device 100 that executes information processing. The information processing unit 201 includes a clock circuit 205, a buzzer circuit 206, a communication interface 207, an external device interface 208, an FD drive 209, an HDD 210, an LCD display 104, a touch panel 105, and a customer side display via an input / output circuit (not shown). The unit 106, the keyboard 211, and the code scanner 212 are connected by a bus. The clock circuit 205 transmits the current time to the information processing unit 201. A non-volatile backup RAM 205a is connected to the clock circuit 205, and the current time stored in the clock circuit 205 is periodically backed up to the backup RAM 205a. The buzzer circuit 206 emits a predetermined buzzer sound under the control of the information processing unit 201. The communication interface 207 performs wired or wireless communication with other devices via a network (not shown). The external device interface 208 realizes data communication between the POS terminal 101 and another device connected to the POS terminal 101 via the connection cord 113. The FD drive 209 reads information stored in the FD in accordance with control by the information processing unit 201 in a state where the FD as an external storage medium is mounted.

情報処理部201にバス接続されているHDD210は、オペレーティングシステム、ドライバ、プログラム、PLUファイル、フォーマットファイルF(図5も参照)を含む各種のデータファイルを記憶保存している(フォーマットファイルF以外は図示せず)。オペレーションシステムは、情報の入出力、ディスクやメモリのアドレス管理など、情報処理部201が実行する種々のソフトウェアのうち共通する基本的な機能を提供する。ドライバは、POS端末101を構成する各部やPOS端末101に接続されているレシートプリンタ107等の機器を駆動制御するための制御プログラムの集合体である。プログラムは、POS装置100に商品販売データ処理(前述)、レシート発行処理(図7参照)を含む各種の処理を実行させるための処理内容を含んでいる。PLUファイルは、商品コードに商品名や単価などの商品情報を対応付けて記憶している。フォーマットファイルFは、レシート用紙151に印刷される取引情報に適用される印刷フォーマット301a(図5参照)と、固定情報を構成する印刷オブジェクト301b(図5参照)とを記憶している。なお、取引情報、固定情報、および、フォーマットファイルFのデータ構成については、図4に基づいて後述する。   The HDD 210 connected by bus to the information processing unit 201 stores and saves various data files including an operating system, a driver, a program, a PLU file, and a format file F (see also FIG. 5) (except for the format file F). Not shown). The operation system provides common basic functions among various software executed by the information processing unit 201, such as information input / output and disk / memory address management. The driver is a collection of control programs for driving and controlling each unit constituting the POS terminal 101 and a device such as the receipt printer 107 connected to the POS terminal 101. The program includes processing contents for causing the POS device 100 to execute various processes including a merchandise sales data process (described above) and a receipt issue process (see FIG. 7). The PLU file stores product information such as product names and unit prices in association with product codes. The format file F stores a print format 301a (see FIG. 5) applied to transaction information printed on the receipt paper 151, and a print object 301b (see FIG. 5) constituting fixed information. The data structure of transaction information, fixed information, and format file F will be described later with reference to FIG.

情報処理部201は、POS端末101の起動時に、HDD210に記憶されているオペレーティングシステム、ドライバ、プログラム、PLUファイル、フォーマットファイルFなどの各種ファイルの全部又は一部をRAM203にコピーし、情報処理部201が実行する各種の処理の高速化を図る。そして、情報処理部201は、オペレーティングシステム、ドライバおよびプログラムの記述に従った各種の処理を実行する。PLUファイルは、情報処理部201が実行する商品販売データ処理を実行する際に用いられる。フォーマットファイルFは、情報処理部201がレシート発行処理を実行する際に用いられる。   When the POS terminal 101 is activated, the information processing unit 201 copies all or part of various files such as an operating system, a driver, a program, a PLU file, and a format file F stored in the HDD 210 to the RAM 203. The various processes executed by the system 201 are accelerated. The information processing unit 201 executes various processes in accordance with descriptions of the operating system, driver, and program. The PLU file is used when executing merchandise sales data processing executed by the information processing unit 201. The format file F is used when the information processing unit 201 executes a receipt issuing process.

POS装置100を構成するレシートプリンタ107は、CPUとROMとRAMとを備え各部を駆動制御する制御部215を備える。制御部215は、図示しない入出力回路を介して、表面サーマルヘッド153s、裏面サーマルヘッド154s、センサ部161、搬送用モータ214、カッタ用モータ214a、外部機器インタフェイス216、および、画像メモリ217のそれぞれとバス接続している。搬送用モータ214は、レシートプリンタ107の内部に配置される搬送機構160を駆動するための駆動源となる。一例として、搬送用モータ214には、搬送機構160を構成する各ローラを正逆両方向に回動可能なステッピングモータを採用することができる。カッタ用モータ214aは、カッタ機構155を構成する可動刃155bを動かしてレシート用紙151を切断するための駆動源となる。外部機器インタフェイス216は、接続コード113を介してレシートプリンタ107に接続されている他の機器とレシートプリンタ107との間のデータ通信を実現する。画像メモリ217は、制御部215にバス接続されている。画像メモリ217は、表面サーマルヘッド153sと裏面サーマルヘッド154sとによって印刷される印刷データを書き換え自在に記憶する。制御部215は、レシート用紙151に印刷して出力しようとしている出力情報を格子状に配列される印刷ドットで構成される印刷データとして画像メモリ217に展開し、その印刷データを画像メモリ217に記憶する。画像メモリ217に展開された印刷データは、一ラインごとに取り出されて表面サーマルヘッド153sおよび裏面サーマルヘッド154sのそれぞれによってレシート用紙151に印刷される。本実施の形態では、画像メモリ217として、表面印刷部153および裏面印刷部154のそれぞれに適用されるラインメモリを採用することができる。   The receipt printer 107 constituting the POS device 100 includes a CPU, a ROM, and a RAM, and a control unit 215 that drives and controls each unit. The control unit 215 includes a front surface thermal head 153 s, a back surface thermal head 154 s, a sensor unit 161, a conveyance motor 214, a cutter motor 214 a, an external device interface 216, and an image memory 217 via an input / output circuit (not shown). Each has a bus connection. The conveyance motor 214 serves as a drive source for driving the conveyance mechanism 160 disposed inside the receipt printer 107. As an example, a stepping motor capable of rotating the rollers constituting the transport mechanism 160 in both forward and reverse directions can be employed as the transport motor 214. The cutter motor 214 a serves as a drive source for moving the movable blade 155 b constituting the cutter mechanism 155 to cut the receipt paper 151. The external device interface 216 realizes data communication between the receipt printer 107 and another device connected to the receipt printer 107 via the connection cord 113. The image memory 217 is connected to the control unit 215 by a bus. The image memory 217 stores rewritable print data printed by the front thermal head 153s and the rear thermal head 154s. The control unit 215 develops output information to be printed and output on the receipt paper 151 in the image memory 217 as print data composed of print dots arranged in a grid, and stores the print data in the image memory 217. To do. The print data developed in the image memory 217 is taken out line by line and printed on the receipt paper 151 by the front thermal head 153s and the rear thermal head 154s. In the present embodiment, a line memory applied to each of the front surface printing unit 153 and the back surface printing unit 154 can be employed as the image memory 217.

前述したように、POS装置100を構成するPOS端末101とレシートプリンタ107とは、接続コード113を介して互いにデータ通信自在に接続されている。そして、情報処理部201は、レシート発行処理(図7参照)を実行する中で、レシートプリンタ107に対しレシート用紙151に印刷して出力しようとする出力情報とともに、制御部215が表面サーマルヘッド153s、表面プラテン153p、裏面サーマルヘッド154s、裏面プラテン154p、カッタ機構155、案内ローラ158を含む各部を駆動制御させるための制御信号を送信して、レシートプリンタ107にレシートRTを発行させる制御を行う。レシートプリンタ107の制御部215は、POS端末101の情報処理部201から送信された出力情報を印刷データとして画像メモリ217に展開して記憶する。また、レシートプリンタ107の制御部215は、POS端末101の情報処理部201から送信される制御信号を受信すると、受信した制御信号に従ってレシートプリンタ107に備わる各部を制御し、レシート用紙151に対して画像メモリ217に展開した印刷データを印刷し、カッタ機構155によって印刷を行ったレシート用紙151を切断し、排紙口111から切断したレシート用紙151をレシートRTとして排出する。   As described above, the POS terminal 101 and the receipt printer 107 constituting the POS device 100 are connected to each other via the connection cord 113 so that data communication is possible. Then, the information processing unit 201 executes the receipt issuing process (see FIG. 7), and the control unit 215 outputs the surface thermal head 153s together with the output information to be printed on the receipt paper 151 and output to the receipt printer 107. Then, control signals for driving and controlling the respective parts including the front platen 153p, the back thermal head 154s, the back platen 154p, the cutter mechanism 155, and the guide roller 158 are sent to the receipt printer 107 to issue a receipt RT. The control unit 215 of the receipt printer 107 develops and stores the output information transmitted from the information processing unit 201 of the POS terminal 101 in the image memory 217 as print data. When the control unit 215 of the receipt printer 107 receives a control signal transmitted from the information processing unit 201 of the POS terminal 101, the control unit 215 controls each unit provided in the receipt printer 107 according to the received control signal, and controls the receipt paper 151. The print data developed in the image memory 217 is printed, the receipt paper 151 printed by the cutter mechanism 155 is cut, and the receipt paper 151 cut from the paper discharge port 111 is discharged as a receipt RT.

図4は、出力情報がレシート用紙151の両面に印刷されるまでのデータの流れを示す模式図である。上記の構成を備えるPOS装置100は、一取引毎に、商品コード入力部としてのコードスキャナ212から入力された商品コードに基づいて商品販売データ処理(前述)が実行される。そして、POS装置100は、キーボード211やタッチパネル105から入力される一取引の終了宣言に応じてレシートプリンタ107を駆動制御し、レシートプリンタ107から発行されるレシートRTの長さが最短となるように、取引情報402と固定情報403とにより構成される出力情報401をレシート用紙151の両面に印刷しレシートRTとして排出するレシート発行処理(図7参照)が実行される。取引情報402は、客が購入した商品の商品コード、商品名、品目、単価、購入点数などの、客が購入した商品に関する情報で構成されている。この取引情報402は、レシート用紙151に印刷されてレシートRT上に現れることにより、レシートRTを見る者に取引内容を把握させることが出来る。取引情報402に含まれる各項目は、POS端末101の情報処理部201がPLUファイルから取得する入力された商品コードに対応する情報や、タッチパネル105やキーボード211から入力された置数情報に基づいて生成され、RAM203に一時記憶されている。また、固定情報403は、広告情報、店舗に関する店舗情報、客にそれまでに付与されている特典ポイントの獲得状況を示す現在ポイント情報、店舗から客に向けられた所定のメッセージ表示などの、客が購入した商品の品目数によらずレシート用紙151に印刷される各項目により構成される。この固定情報403は、予め印刷位置および印刷長が決められており、各取引においてレシート用紙151に決まった位置に印刷される。なお、固定情報403を構成する各項目は、予め、レシート用紙151の表面に印刷される表面固定情報403aと、レシート用紙151の裏面に印刷される裏面固定情報403bとに分類されている。固定情報403を構成する各項目は、HDD210に格納されているフォーマットファイルF(図5参照)に予め記憶されている。   FIG. 4 is a schematic diagram showing a data flow until output information is printed on both sides of the receipt paper 151. The POS device 100 having the above configuration executes product sales data processing (described above) based on the product code input from the code scanner 212 as the product code input unit for each transaction. Then, the POS device 100 drives and controls the receipt printer 107 according to the end declaration of one transaction input from the keyboard 211 or the touch panel 105 so that the receipt RT issued from the receipt printer 107 has the shortest length. Then, a receipt issuance process (see FIG. 7) is executed in which output information 401 composed of transaction information 402 and fixed information 403 is printed on both sides of receipt paper 151 and discharged as receipt RT. The transaction information 402 includes information related to the product purchased by the customer, such as a product code, a product name, an item, a unit price, and a purchase score of the product purchased by the customer. The transaction information 402 is printed on the receipt paper 151 and appears on the receipt RT, so that the person viewing the receipt RT can grasp the transaction content. Each item included in the transaction information 402 is based on information corresponding to the input product code acquired from the PLU file by the information processing unit 201 of the POS terminal 101, or numerical information input from the touch panel 105 or the keyboard 211. Generated and temporarily stored in the RAM 203. The fixed information 403 includes customer information such as advertisement information, store information about the store, current point information indicating the acquisition status of the privilege points that have been granted to the customer, and a predetermined message display directed to the customer from the store. Are constituted by each item printed on the receipt paper 151 regardless of the number of items of the purchased goods. This fixed information 403 has a printing position and printing length determined in advance, and is printed at a predetermined position on the receipt paper 151 in each transaction. Each item constituting the fixed information 403 is classified in advance into front surface fixed information 403a printed on the front surface of the receipt paper 151 and back surface fixed information 403b printed on the back surface of the receipt paper 151. Each item constituting the fixed information 403 is stored in advance in a format file F (see FIG. 5) stored in the HDD 210.

図5は、フォーマットファイルFのデータ構成を示す模式図である。図6は、図5に示すフォーマットファイルFの内容を反映させた出力情報401が印刷されたレシートRTの一例を示す模式図である。HDD210に格納されているフォーマットファイルFは、取引情報402をレシート用紙151に印刷される要素OBJとして出現させるための印刷フォーマット301aと、固定情報403を構成し要素OBJとしてレシート用紙151に印刷される印刷オブジェクト301bとを記憶している。印刷フォーマット301aおよび印刷オブジェクト301bはいずれも、データ内容302と、面定義303と、行数304とを含む各種の設定事項により構成されている。データ内容302は、レシート用紙151に印刷される要素OBJの基礎となるデータであり、レシート用紙151に印刷されると、レシート用紙151の長さ方向に所定の長さ分だけ占め、レシート用紙151の幅方向に一杯に印刷される図形および文字列となる。面定義303は、印刷フォーマット301a適用後の取引情報402および印刷オブジェクト301bがレシート用紙151の表面および裏面のどちらに印刷されるものであるかを定義する。行数304は、印刷フォーマット301aが適用された取引情報402、および、固定情報403を構成する印刷オブジェクト301bのそれぞれについてレシート用紙151に印刷された場合にレシート用紙151の行方向に占める大きさを示し、レシート用紙151に印刷される文字列の高さによって規定される行の高さを一単位とする。フォーマットファイルFに含まれる印刷フォーマット301aおよび印刷オブジェクト301bは、タッチパネル105やキーボード211などの情報入力部からの操作入力によって任意の値に設定することが可能である。この設定はHDD210に格納されている設定プログラムによって実現される。   FIG. 5 is a schematic diagram showing the data structure of the format file F. As shown in FIG. FIG. 6 is a schematic diagram showing an example of a receipt RT on which output information 401 reflecting the contents of the format file F shown in FIG. 5 is printed. The format file F stored in the HDD 210 is printed on the receipt paper 151 as the element OBJ which constitutes the print format 301a for causing the transaction information 402 to appear as the element OBJ printed on the receipt paper 151 and the fixed information 403. The print object 301b is stored. Both the print format 301 a and the print object 301 b are configured by various setting items including data contents 302, a surface definition 303, and the number of lines 304. The data content 302 is data that is the basis of the element OBJ printed on the receipt paper 151. When the data content 302 is printed on the receipt paper 151, the data content 302 occupies a predetermined length in the length direction of the receipt paper 151. The figure and the character string are printed in full in the width direction. The side definition 303 defines whether the transaction information 402 and the print object 301b after applying the print format 301a are to be printed on the front side or the back side of the receipt paper 151. The number of lines 304 indicates the size of the receipt paper 151 in the row direction when the transaction information 402 to which the print format 301a is applied and the print object 301b constituting the fixed information 403 are printed on the receipt paper 151. The line height defined by the height of the character string printed on the receipt paper 151 is taken as one unit. The print format 301 a and the print object 301 b included in the format file F can be set to arbitrary values by an operation input from an information input unit such as the touch panel 105 or the keyboard 211. This setting is realized by a setting program stored in the HDD 210.

印刷フォーマット301a適用後の取引情報402および印刷オブジェクト301bは、レシート発行処理において、フォーマットファイルF内での並び順に従ってレシート用紙151の表面および裏面のそれぞれに印刷されて、レシート用紙151上で要素OBJとして現われる。図5に示す例では、フォーマットファイルFは、品目数nの取引情報402に対して適用され取引情報402を印刷長2n行分の品目表示(図6参照)となって現われる要素OBJとしてレシート用紙151に出力させる印刷フォーマット301aと、レシート用紙151上でフォーマットファイルFに定められた行数分の固定長の印刷長で要素OBJとして現われる複数の印刷オブジェクト301bとを図5に示す順に記憶している。そのため、POS装置100が出力情報にこのフォーマットファイルFを反映してレシート用紙151に印刷を行うと、レシート用紙151の両面には、図6に示すように、フォーマットファイルFに記憶されている順に各要素OBJが現れる。   The transaction information 402 and the print object 301b after the application of the print format 301a are printed on the front and back surfaces of the receipt paper 151 according to the arrangement order in the format file F in the receipt issuing process, and the element OBJ is displayed on the receipt paper 151. Appears as. In the example shown in FIG. 5, the format file F is applied to the transaction information 402 of the number of items n, and the receipt information sheet 402 is displayed as an element OBJ that appears as an item display (see FIG. 6) for the print length 2n lines. A print format 301a to be output to 151 and a plurality of print objects 301b appearing as elements OBJ with a fixed print length corresponding to the number of lines defined in the format file F on the receipt paper 151 are stored in the order shown in FIG. Yes. Therefore, when the POS device 100 reflects the format file F in the output information and prints on the receipt paper 151, the both sides of the receipt paper 151 are in the order stored in the format file F as shown in FIG. Each element OBJ appears.

図4に基づく説明に戻る。取引情報402と固定情報403とにより構成される出力情報401は、この出力情報401の印刷行数に基づいて、表面サーマルヘッド153sによって印刷される表面出力情報404と、裏面サーマルヘッド154sによって印刷される裏面出力情報405と、に分けられ、それぞれレシートプリンタ107に送信される。レシートプリンタ107では、表面出力情報404は画像メモリ217に表面印刷データ406として展開された後に表面サーマルヘッド153sによってレシート用紙151の表面に印刷され、裏面出力情報405は画像メモリ217に裏面印刷データ407として展開された後に裏面サーマルヘッド154sによってレシート用紙151の裏面に印刷される。   Returning to the description based on FIG. The output information 401 composed of the transaction information 402 and the fixed information 403 is printed by the front surface output information 404 printed by the front surface thermal head 153s and the back surface thermal head 154s based on the number of print lines of the output information 401. And output to the receipt printer 107 respectively. In the receipt printer 107, the front surface output information 404 is developed as the front surface print data 406 in the image memory 217 and then printed on the front surface of the receipt paper 151 by the front surface thermal head 153 s, and the back surface output information 405 is stored in the image memory 217. Is printed on the back surface of the receipt paper 151 by the back surface thermal head 154s.

図7は、レシート発行処理の流れを示すフローチャートである。情報処理部201は、コードスキャナ212から入力された商品コードに基づいて商品販売データ処理を実行し、商品コードに基づいて取引情報402(図4参照)を生成し、この取引情報402とタッチパネル105やキーボード211から入力された客の支払金額とをRAM203に記憶する。取引情報402と支払金額とがRAM203に記憶された状態でタッチパネル105やキーボード211から一取引の終了宣言が入力されたと判定すると、情報処理部201は、取引情報402に基づいて算出される小計金額分の決済処理を行うとともに、レシート発行処理を開始する。   FIG. 7 is a flowchart showing the flow of receipt issuing processing. The information processing unit 201 executes product sales data processing based on the product code input from the code scanner 212, generates transaction information 402 (see FIG. 4) based on the product code, and the transaction information 402 and the touch panel 105. And the payment amount of the customer input from the keyboard 211 is stored in the RAM 203. If it is determined that a transaction end declaration is input from the touch panel 105 or the keyboard 211 in a state where the transaction information 402 and the payment amount are stored in the RAM 203, the information processing unit 201 calculates a subtotal amount calculated based on the transaction information 402. Settlement processing is started, and receipt issuance processing is started.

情報処理部201は、レシート発行処理を開始すると、フォーマットファイルFに記憶されている印刷オブジェクト301bの情報を取得して、レシート用紙151の表面に印刷される表面固定情報403a(図4参照)の印刷長L1、および、レシート用紙151の裏面に印刷される裏面固定情報403b(図4参照)の印刷長L2を算出する(ステップS101)。より詳細には、情報処理部201は、ステップS101において、フォーマットファイルFに含まれる印刷オブジェクト301bのうち面定義303が「表」であってレシート用紙151の表面に印刷される表面固定情報403aを構成する印刷オブジェクト301bを抽出し、抽出した印刷オブジェクト301bにおける行数304(図5参照)の合計をL1とする。同様に、情報処理部201は、ステップS101において、フォーマットファイルFに含まれる印刷オブジェクト301bのうち面定義303「裏」であってレシート用紙151の裏面に印刷される裏面固定情報403bを構成する印刷オブジェクト301bを抽出し、抽出した印刷オブジェクト301bにおける行数304の合計をL2とする。   When the receipt issuing process is started, the information processing unit 201 acquires information on the print object 301b stored in the format file F, and stores the surface fixing information 403a (see FIG. 4) printed on the surface of the receipt paper 151. The printing length L1 and the printing length L2 of the back surface fixing information 403b (see FIG. 4) printed on the back surface of the receipt paper 151 are calculated (step S101). More specifically, in step S101, the information processing unit 201 obtains the surface fixing information 403a to be printed on the surface of the receipt paper 151 with the surface definition 303 of the print object 301b included in the format file F being “table”. The constituent print objects 301b are extracted, and the total number of lines 304 (see FIG. 5) in the extracted print objects 301b is set to L1. Similarly, in step S101, the information processing unit 201 prints the back surface fixed information 403b that is printed on the back surface of the receipt paper 151 with the surface definition 303 “back” in the print object 301b included in the format file F. The object 301b is extracted, and the total number of lines 304 in the extracted print object 301b is L2.

続く処理として、情報処理部201は、RAM203に記憶されている取引情報402に対してフォーマットファイルFに記憶されている印刷フォーマット301aを適用して、取引情報402がレシート用紙151に印刷された場合の印刷長を算出する(ステップS102)。本実施の形態では、レシート用紙151に印刷される各種情報の印刷長を求める基準単位として、行数304(図5参照)を用いる。取引情報402には客が購入した商品に関する情報が含まれている。そこで情報処理部201は、取引情報402に含まれている品目数nをカウントし、このnとフォーマットファイルF(図5参照)内の印刷フォーマット301aに含まれる行数304とを用いて、取引情報402がレシート用紙151に印刷されることで現れるn個分の品目表示(図6参照)が占める印刷長として行数La(n)を算出する。   As a subsequent process, the information processing unit 201 applies the print format 301 a stored in the format file F to the transaction information 402 stored in the RAM 203 and the transaction information 402 is printed on the receipt paper 151. Is calculated (step S102). In the present embodiment, the number of lines 304 (see FIG. 5) is used as a reference unit for obtaining the print length of various information printed on the receipt paper 151. The transaction information 402 includes information related to the product purchased by the customer. Therefore, the information processing unit 201 counts the number of items n included in the transaction information 402, and uses this n and the number of lines 304 included in the print format 301a in the format file F (see FIG. 5) to determine the transaction. The number of lines La (n) is calculated as the print length occupied by n item displays (see FIG. 6) that appear when the information 402 is printed on the receipt paper 151.

続く処理として、情報処理部201は、レシートRTの長さが最短となるように、取引情報402および固定情報403を含む出力情報401を表面出力情報404および裏面出力情報405のそれぞれに配分する(ステップS103)。より詳細には、情報処理部201は、表面固定情報403aを構成する印刷オブジェクト301bを表面出力情報404に、裏面固定情報403bを構成する印刷オブジェクト301bを裏面出力情報405にそれぞれ振り分け、続いて、取引情報402の後端側から行数(La(n)+ΔL)÷2に相当する印刷長となるデータを裏面出力情報405に振り分け、残りの取引情報402を表面出力情報404に振り分ける(但、ΔLは表面固定情報403aの印刷長L1と裏面固定情報403bの印刷長L2との差であり、ΔL=L1−L2である。)。このとき、レシート用紙151の表面および裏面に印刷される内容が行の途中で切断されないように、行数(La(n)+ΔL)÷2の値は整数値に丸められる。つまり、レシートプリンタ107によってレシート用紙151に印刷される出力情報401は、フォーマットファイルFに記憶されている印刷フォーマット301aおよび印刷オブジェクト301bの行数304に従って、取引情報402の一部および表面固定情報403aで構成される表面出力情報404と、取引情報402の残りの一部および裏面固定情報403bで構成される裏面出力情報405とに分けられることになる。   As a subsequent process, the information processing unit 201 distributes the output information 401 including the transaction information 402 and the fixed information 403 to each of the front surface output information 404 and the back surface output information 405 so that the receipt RT has the shortest length ( Step S103). More specifically, the information processing unit 201 distributes the print object 301b constituting the front surface fixing information 403a to the front surface output information 404 and the print object 301b constituting the back surface fixing information 403b to the back surface output information 405, respectively. Data having a print length corresponding to the number of lines (La (n) + ΔL) / 2 from the rear end side of the transaction information 402 is distributed to the back surface output information 405, and the remaining transaction information 402 is distributed to the front surface output information 404 (however, ΔL is a difference between the printing length L1 of the front surface fixing information 403a and the printing length L2 of the back surface fixing information 403b, and ΔL = L1−L2. At this time, the value of the number of lines (La (n) + ΔL) / 2 is rounded to an integer so that the contents printed on the front and back surfaces of the receipt paper 151 are not cut in the middle of the line. That is, the output information 401 printed on the receipt paper 151 by the receipt printer 107 is a part of the transaction information 402 and the surface fixing information 403a according to the print format 301a and the number of lines 304 of the print object 301b stored in the format file F. And the backside output information 405 including the remaining part of the transaction information 402 and the backside fixed information 403b.

続く処理として、情報処理部201は、ステップS103において生成された表面出力情報404および裏面出力情報405をレシートプリンタ107に送信し、レシートプリンタ107にレシート用紙151に表面出力情報404および裏面出力情報405を印刷させる制御を行って(ステップS104)、レシート発行処理を終了する。   As a subsequent process, the information processing unit 201 transmits the front surface output information 404 and the back surface output information 405 generated in step S103 to the receipt printer 107, and the receipt printer 107 outputs the front surface output information 404 and the back surface output information 405 to the receipt paper 151. Is printed (step S104), and the receipt issuing process is terminated.

レシートプリンタ107は、送信される表面出力情報404および裏面出力情報405を受信すると画像メモリ217に表面印刷データ406および裏面印刷データ407を展開して記憶し(図4参照)、表面印刷データ406を表面印刷部153の表面サーマルヘッド153sによってレシート用紙151の表面に印刷し、裏面印刷データ407を裏面印刷部154の裏面サーマルヘッド154sによってレシート用紙151の裏面に印刷する。なお、レシートプリンタ107内で、表面印刷部153を構成する表面サーマルヘッド153sと裏面印刷部154を構成する裏面サーマルヘッド154sとはその構造上の制約のために案内経路156上の同じ位置に対向配置されていない(図2参照)。そのため、レシートプリンタ107では、搬送用モータ214を駆動制御し搬送機構160を駆動して、レシート用紙151を案内経路156の上流方向(いわゆるバックフィード)および下流方向に搬送してレシート用紙151上の印刷位置を調整し、レシート用紙151の下流側の先端に余白を生じさせないようにする制御が行われる。レシート用紙151の両面に印刷を行った後、レシートプリンタ107の制御部215は、両面に印刷を行ったレシート用紙151の印刷終端をカッタ機構155に位置付けるよう搬送機構160を駆動した後に、カッタ用モータ214aを駆動制御してカッタ機構155を作用させてレシート用紙151を切断し、搬送機構160を駆動させて排紙口111から切断されたレシート用紙151をレシートRTとして排出する。   When the receipt printer 107 receives the front surface output information 404 and the back surface output information 405 to be transmitted, the front surface print data 406 and the back surface print data 407 are developed and stored in the image memory 217 (see FIG. 4), and the front surface print data 406 is stored. Printing is performed on the front surface of the receipt paper 151 by the front surface thermal head 153s of the front surface printing unit 153, and the back surface print data 407 is printed on the back surface of the receipt paper 151 by the back surface thermal head 154s of the back surface printing unit 154. In the receipt printer 107, the front thermal head 153s constituting the front surface printing unit 153 and the rear thermal head 154s constituting the rear surface printing unit 154 face each other at the same position on the guide path 156 due to structural restrictions. It is not arranged (see FIG. 2). Therefore, the receipt printer 107 drives and controls the conveyance motor 214 and drives the conveyance mechanism 160 to convey the receipt paper 151 in the upstream direction (so-called back feed) and the downstream direction of the guide path 156 and on the receipt paper 151. Control is performed to adjust the printing position so as not to create a blank at the downstream end of the receipt paper 151. After printing on both sides of the receipt paper 151, the control unit 215 of the receipt printer 107 drives the transport mechanism 160 to position the printing end of the receipt paper 151 printed on both sides in the cutter mechanism 155, and then for the cutter. The motor 214a is driven and controlled to operate the cutter mechanism 155 to cut the receipt paper 151, and the transport mechanism 160 is driven to discharge the receipt paper 151 cut from the paper discharge port 111 as a receipt RT.

図8は、POS装置100によって発行されるレシートRTの一例を示す説明図である。上記のレシート発行処理を実行するPOS装置100は、キーボード211やタッチパネル105から入力される一取引の終了宣言に応じてレシートプリンタ107を駆動制御し、予め印刷位置及び印刷長さが決められている固定情報403をレシート用紙151に印刷する処理と、当該一取引のレシートRTの長さが最短となるように取引情報402をレシート用紙151の表面と裏面とに配分してレシートRTに占める固定情報403の印刷領域以外の領域に印刷する処理とを実行するため、余白部分Wが少なく全体の長さが短縮されたレシートRTを発行し、レシート用紙151の有効利用を図ることができる。そして、本実施の形態のPOS端末101では、画像メモリ217としてラインメモリを採用することができるため、表面印刷部153および裏面印刷部154を構成するデータ入出力回路の構造が複雑にならず、また、POS装置100全体の製造単価を抑えることができる。   FIG. 8 is an explanatory diagram showing an example of a receipt RT issued by the POS device 100. The POS device 100 that executes the receipt issuing process drives and controls the receipt printer 107 in accordance with a transaction end declaration input from the keyboard 211 or the touch panel 105, and the printing position and printing length are determined in advance. Processing for printing the fixed information 403 on the receipt paper 151, and the fixed information occupying the receipt RT by distributing the transaction information 402 to the front and back surfaces of the receipt paper 151 so that the length of the receipt RT of the one transaction is the shortest Since the processing for printing in the area other than the printing area 403 is executed, a receipt RT with a small margin W and a reduced overall length can be issued to effectively use the receipt paper 151. In the POS terminal 101 according to the present embodiment, a line memory can be adopted as the image memory 217. Therefore, the structure of the data input / output circuit constituting the front surface printing unit 153 and the back surface printing unit 154 is not complicated. Further, the manufacturing unit price of the entire POS device 100 can be suppressed.

一例として、POS装置100を用いて、購入品目数n=4である取引情報402を印刷したレシートRTを発行する場合を図8に示す。図8に示すように、情報処理部201は、レシート発行処理を実行して、表面固定情報403aの印刷長である行数L1=19行と、裏面固定情報403bの印刷長である行数L2=15行を算出し(図7のステップS101)、取引情報402に対し印刷フォーマット301aを適用して取引情報402がレシート用紙151に印刷され品目表示として現われた場合の印刷長である行数La(n)=2×4=8を算出する(図7のステップS102)。そして、情報処理部201は後端側から印刷長にして行数(La(n)+ΔL)÷2=6行分の取引情報402をレシート用紙151の裏面に振り分け、印刷長にして2行分となる残りの取引情報402をレシート用紙151の表面に振り分ける(図7のステップS103)。その結果、レシートプリンタ107から排出されるレシートRTの表面には、表面固定情報403aと印刷長にして2行分の取引情報402とが印刷され、レシートRTの裏面には裏面固定情報403bと印刷長にして6行分の取引情報402とが印刷され、レシートRTの表面および裏面の印刷長はいずれも21行分となる。このように、本実施の形態のPOS装置100を用いることで、取引情報402を全て表面に印刷してレシートRTを発行する場合(図8(a))に生じていた余白部分Wが少ないレシートRTがレシートプリンタ107から発行されることになる(図8(b))。   As an example, FIG. 8 shows a case where a receipt RT printed with transaction information 402 with the number of purchased items n = 4 is issued using the POS device 100. As illustrated in FIG. 8, the information processing unit 201 executes a receipt issuing process, and the line number L1 = 19 lines that is the print length of the front surface fixing information 403a and the line number L2 that is the print length of the back surface fixing information 403b. = 15 rows are calculated (step S101 in FIG. 7), and the print format 301a is applied to the transaction information 402, and the transaction information 402 is printed on the receipt paper 151 and appears as an item display. (N) = 2 × 4 = 8 is calculated (step S102 in FIG. 7). Then, the information processing unit 201 distributes the transaction information 402 for the number of lines (La (n) + ΔL) ÷ 2 = 6 lines from the rear end side to the back side of the receipt paper 151, and sets the print length to two lines. The remaining transaction information 402 is distributed to the surface of the receipt paper 151 (step S103 in FIG. 7). As a result, the front surface of the receipt RT discharged from the receipt printer 107 is printed with the front surface fixing information 403a and the transaction information 402 for two lines in print length, and the back surface of the receipt RT is printed with the rear surface fixing information 403b. The transaction information 402 for six lines is printed in length, and the print lengths of the front and back surfaces of the receipt RT are both 21 lines. In this way, by using the POS device 100 of the present embodiment, a receipt with a small margin W generated when a transaction RT 402 is printed on the surface and a receipt RT is issued (FIG. 8A). RT is issued from the receipt printer 107 (FIG. 8B).

なお、図8(b)に示すように、レシート用紙151の裏面に印刷される裏面固定情報403bおよび取引情報402の間に仕切線Sを印刷して、発行されたレシートRTを手に取った者に対して仕切線Sよりも下方に印刷された部分はレシートRTの表面に印刷されているべきものであることを示すようにしてもよい。   As shown in FIG. 8B, a partition line S is printed between the back surface fixing information 403b printed on the back surface of the receipt paper 151 and the transaction information 402, and the issued receipt RT is picked up. The portion printed below the partition line S may be shown to the person to be printed on the surface of the receipt RT.

次いで、別の実施の形態を図9ないし図11に基づいて説明する。この場合、図1ないし図8に基づいて説明した実施の形態と同一の部分は同一符号で示し、説明も省略する。   Next, another embodiment will be described with reference to FIGS. In this case, the same parts as those in the embodiment described with reference to FIGS. 1 to 8 are denoted by the same reference numerals, and the description thereof is also omitted.

図9は、本実施の形態のPOS装置100において、出力情報401がレシート用紙151の両面に印刷されるまでのデータの流れを示す模式図である。本実施の形態のPOS装置100では、取引情報402と固定情報403とを含んで構成される出力情報401はそのままレシートプリンタ107に送信され、レシートプリンタ107において画像メモリ217に印刷データ408として展開され記憶された後に、印刷データ408が制御部215によって表面印刷データ406と裏面印刷データ407とに分けられ、表面印刷データ406が表面サーマルヘッド153sの駆動制御によりレシート用紙151の表面に印刷され、裏面印刷データ407が裏面サーマルヘッド154sの駆動制御によりレシート用紙151の裏面に印刷されることによってレシートRTが発行される。   FIG. 9 is a schematic diagram showing a data flow until the output information 401 is printed on both sides of the receipt paper 151 in the POS device 100 of the present embodiment. In the POS apparatus 100 according to the present embodiment, output information 401 including transaction information 402 and fixed information 403 is transmitted to the receipt printer 107 as it is, and is developed as print data 408 in the image memory 217 by the receipt printer 107. After being stored, the print data 408 is divided into front surface print data 406 and back surface print data 407 by the control unit 215, and the front surface print data 406 is printed on the front surface of the receipt paper 151 by driving control of the front surface thermal head 153s. A receipt RT is issued by printing the print data 407 on the back surface of the receipt paper 151 by driving control of the back surface thermal head 154s.

図10は、本実施の形態におけるレシート発行処理の流れを示すフローチャートである。本実施の形態の情報処理部201は、レシート発行処理を開始すると、取引情報402に対してフォーマットファイルFに記憶されている印刷フォーマット301aを適用して、レシートプリンタ107が取引情報402をレシート用紙151に要素OBJとして印刷できるようにし(ステップS201)、続く処理として、取引情報402および固定情報403を含む出力情報401をレシートプリンタ107に送信する(ステップS202)。レシートプリンタ107は、送信される出力情報401を受信すると画像メモリ217に印刷データ408を展開して記憶する(図9参照)。   FIG. 10 is a flowchart showing the flow of receipt issue processing in the present embodiment. When the information processing unit 201 of the present embodiment starts the receipt issuing process, the information processing unit 201 applies the print format 301a stored in the format file F to the transaction information 402, and the receipt printer 107 transmits the transaction information 402 to the receipt paper. In step S201, the output information 401 including the transaction information 402 and the fixed information 403 is transmitted to the receipt printer 107 (step S202). Upon receipt of the output information 401 to be transmitted, the receipt printer 107 expands and stores the print data 408 in the image memory 217 (see FIG. 9).

図11は、画像メモリ217に記憶される印刷データ408のデータ構成を示す模式図である。本実施の形態では、画像メモリ217として、レシート用紙151に印刷される印刷イメージを記憶可能なRAMが採用される。そして、本実施の形態の画像メモリ217には出力情報401を基に展開された印刷データ408が記憶され、少なくとも、固定情報403のうちレシート用紙151の表面に印刷される表面固定情報403aと、取引情報402と、固定情報403のうちレシート用紙151の裏面に印刷される裏面固定情報403bとが区別可能に記憶されている。画像メモリ217に印刷データ408として展開された表面固定情報403a、取引情報402および裏面固定情報403bはいずれも格子状に配列される印刷ドットで構成されており、そのため、制御部215は、画像メモリ217に記憶されている印刷データ408の内容を参照することで、表面固定情報403a、取引情報402および裏面固定情報403bのそれぞれがレシート用紙151に印刷された場合の用紙長さ方向の印刷長を把握することができる。なお、本実施の形態では、取引情報402や固定情報403がレシート用紙151に印刷された場合の印刷長は、ドット数もしくは解像度(dpi)を加味した実長を基準に算出される。   FIG. 11 is a schematic diagram illustrating a data configuration of print data 408 stored in the image memory 217. In the present embodiment, a RAM capable of storing a print image to be printed on the receipt paper 151 is employed as the image memory 217. The image memory 217 according to the present embodiment stores print data 408 developed based on the output information 401. At least the surface fixing information 403a printed on the surface of the receipt paper 151 among the fixed information 403, The transaction information 402 and the back information fixed information 403b printed on the back surface of the receipt paper 151 in the fixed information 403 are stored in a distinguishable manner. The front surface fixing information 403a, the transaction information 402, and the back surface fixing information 403b developed as print data 408 in the image memory 217 are all composed of printing dots arranged in a grid pattern. By referring to the contents of the print data 408 stored in 217, the print length in the sheet length direction when each of the front surface fixing information 403a, the transaction information 402, and the back surface fixing information 403b is printed on the receipt paper 151 is determined. I can grasp it. In the present embodiment, the print length when the transaction information 402 or the fixed information 403 is printed on the receipt paper 151 is calculated based on the actual length in consideration of the number of dots or the resolution (dpi).

図10に基づく説明に戻る。ステップS202に続く処理として、情報処理部201は、レシートプリンタ107に対し画像メモリ217に記憶された印刷データ408を表面印刷データ406と裏面印刷データ407とに分割させるための印刷データ分割命令を送信する(ステップS203)。レシートプリンタ107の制御部215は、POS端末101から送信される印刷データ分割命令を受けると、画像メモリ217に記憶された格子状の印刷ドットで構成されている印刷データ408について、レシート用紙151に印刷された場合に用紙長さ方向となる方向についての長さを把握し、画像メモリ217に記憶されている印刷データ408の半分を表面印刷データ406とし、残りの半分を裏面印刷データ407として配分する。より詳細には、本実施の形態のレシートプリンタ107の制御部215は、画像メモリ217に印刷データ408として記憶されている表面固定情報403aの印刷長Y1、取引情報402の印刷長Ya、および、裏面固定情報403bの印刷長Y2を把握し、表面固定情報403aから展開された印刷データ408と取引情報402から展開された印刷データ408のうち先頭側から印刷長(Ya−(Y1−Y2))÷2だけの印刷データ408とを抽出して表面印刷データ406として画像メモリ217に記憶する。同様に、レシートプリンタ107の制御部215は、裏面固定情報403bから展開された印刷データ408と取引情報402から展開された印刷データ408のうち表面印刷データ406に適用した分を差し引いた残りの印刷データ408とを抽出して裏面印刷データ407として画像メモリ217に記憶する(Y1、Y2、Yaについては図11参照)。なお、レシートプリンタ107の制御部215は、印刷データ408を表面印刷データ406と裏面印刷データ407とに配分する際、表面印刷データ406および裏面印刷データ407を分断する境界となる印刷データ408中の一ライン(図11における横方向)が全て印加を行わないドットにより構成されているか否かを判定する。一部に印加を行うドットが含まれていると判定した場合、レシートプリンタ107の制御部215は、判定を行ったラインの前後で印刷データ408を分断するとレシート用紙151に印刷される文字および図形が分断されてしまうことから、そのラインによる印刷データ408の分割は行わず、判定を行ったラインの次のラインについて同様の判定を行う。そして、レシートプリンタ107の制御部215は、判定対象となる印刷データ408中の一ラインが全て印加を行わないドットにより構成されていると判定した場合、判定を行ったラインの前後で印刷データ408を分けてもレシート用紙151に印刷される文字および図形が分断されることはないことから、判定を行ったラインを境界として印刷データ408を表面印刷データ406および裏面印刷データ407に分ける。   Returning to the description based on FIG. As processing subsequent to step S202, the information processing unit 201 transmits a print data division command for dividing the print data 408 stored in the image memory 217 into the front surface print data 406 and the back surface print data 407 to the receipt printer 107. (Step S203). Upon receiving the print data division command transmitted from the POS terminal 101, the control unit 215 of the receipt printer 107 receives the print data 408 composed of grid-like print dots stored in the image memory 217 on the receipt paper 151. The length in the direction of the paper length when printed is grasped, and half of the print data 408 stored in the image memory 217 is assigned as the front print data 406 and the remaining half is assigned as the back print data 407. To do. More specifically, the control unit 215 of the receipt printer 107 according to the present embodiment includes the print length Y1 of the surface fixing information 403a, the print length Ya of the transaction information 402, and the print length Ya stored in the image memory 217 as the print data 408. The print length Y2 of the back surface fixed information 403b is grasped, and the print length (Ya- (Y1-Y2)) from the top of the print data 408 expanded from the front surface fixed information 403a and the print data 408 expanded from the transaction information 402 is displayed. ÷ Only print data 408 of 2 is extracted and stored in the image memory 217 as surface print data 406. Similarly, the control unit 215 of the receipt printer 107 subtracts the amount applied to the front surface print data 406 from the print data 408 expanded from the back surface fixed information 403b and the print data 408 expanded from the transaction information 402. The data 408 is extracted and stored in the image memory 217 as back side print data 407 (see FIG. 11 for Y1, Y2, and Ya). The control unit 215 of the receipt printer 107 distributes the print data 408 to the front surface print data 406 and the back surface print data 407, and the print data 408 in the print data 408 serving as a boundary for dividing the front surface print data 406 and the back surface print data 407 is used. It is determined whether or not one line (horizontal direction in FIG. 11) is composed of dots that are not applied. When it is determined that a part of the dots to be applied is included, the control unit 215 of the receipt printer 107 prints characters and graphics printed on the receipt paper 151 when the print data 408 is divided before and after the determined line. Therefore, the print data 408 is not divided by the line, and the same determination is performed for the line next to the determined line. When the control unit 215 of the receipt printer 107 determines that one line in the print data 408 to be determined is configured by dots that are not applied, the print data 408 is before and after the determined line. Since the characters and graphics to be printed on the receipt paper 151 are not divided even if they are divided, the print data 408 is divided into the front surface print data 406 and the back surface print data 407 with the determined line as a boundary.

続く処理として、情報処理部201は、前述した実施の形態と同様に、レシート用紙151に印刷させるための印刷命令をレシートプリンタ107に送信して(ステップS204)、レシート発行処理を終了する。レシートプリンタ107の制御部215は、POS端末101から印刷命令を受けると、両面に印刷を行ったレシート用紙151の印刷終端を切断し、切断されたレシート用紙151をレシートRTとして排出する。   As a subsequent process, the information processing unit 201 transmits a print command for printing on the receipt paper 151 to the receipt printer 107 (step S204), and ends the receipt issuing process, as in the above-described embodiment. Upon receiving a print command from the POS terminal 101, the control unit 215 of the receipt printer 107 cuts the printing end of the receipt paper 151 printed on both sides, and discharges the cut receipt paper 151 as a receipt RT.

本実施の形態のPOS装置100によっても、図1ないし図8に基づいて前述した実施の形態のPOS装置100と同様に、余白部分Wが少なく全体の長さが短縮されたレシートRTが発行されることになり、レシート用紙151の無駄な消費がなくなり、レシート用紙151の有効利用を図ることができる。   Similarly to the POS device 100 of the embodiment described above with reference to FIGS. 1 to 8, the receipt POS with a small margin W and a reduced overall length is also issued by the POS device 100 of the present embodiment. As a result, the consumption of the receipt paper 151 is eliminated, and the receipt paper 151 can be used effectively.

なお、本実施の形態のPOS装置100において、印刷データ408を表面印刷データ406と裏面印刷データ407とに配分する処理はレシートプリンタ107の制御部215が行っているが、別の実施の形態として、POS端末101の情報処理部201がレシートプリンタ107に備わる画像メモリ217内の印刷データ408を取得し、情報処理部201が取得した印刷データ408の印刷長を把握した後に、POS端末101の情報処理部201が、取引情報402から展開される印刷データ408が表面印刷データ406および裏面印刷データ407に分割された後のそれぞれの印刷長を指定してレシートプリンタ107に対し印刷データ分割命令を送信するようにしてもよい。さらに別の実施形態として、POS端末101の情報処理部201がRAM203に表面固定情報403aと取引情報402と裏面固定情報403bとを印刷データ408と展開して記憶し、RAM203に記憶した印刷データ408をその印刷長に基づいて表面印刷データ406と裏面印刷データ407とに分割し、分割した表面印刷データ406および裏面印刷データ407をレシートプリンタ107に送信して、レシートプリンタ107の表面サーマルヘッド153sから表面印刷データ406をレシート用紙151の表面に印刷し、レシートプリンタ107の裏面サーマルヘッド154sから裏面印刷データ407をレシート用紙151の裏面に印刷するようにしてもよい。   In the POS device 100 according to the present embodiment, the process of allocating the print data 408 to the front surface print data 406 and the back surface print data 407 is performed by the control unit 215 of the receipt printer 107. However, as another embodiment, After the information processing unit 201 of the POS terminal 101 acquires the print data 408 in the image memory 217 provided in the receipt printer 107 and grasps the print length of the print data 408 acquired by the information processing unit 201, the information of the POS terminal 101 is obtained. The processing unit 201 designates the respective print lengths after the print data 408 developed from the transaction information 402 is divided into the front side print data 406 and the back side print data 407, and transmits a print data division command to the receipt printer 107. You may make it do. As yet another embodiment, the information processing unit 201 of the POS terminal 101 expands and stores the front surface fixing information 403 a, the transaction information 402, and the back surface fixing information 403 b in the RAM 203 with the print data 408, and the print data 408 stored in the RAM 203. Is divided into front surface print data 406 and back surface print data 407 based on the print length, and the divided front surface print data 406 and back surface print data 407 are transmitted to the receipt printer 107, from the front surface thermal head 153s of the receipt printer 107. The front side print data 406 may be printed on the front side of the receipt paper 151, and the back side print data 407 may be printed on the back side of the receipt paper 151 from the back side thermal head 154 s of the receipt printer 107.

次いで、さらに別の実施の形態を図12ないし図17に基づいて説明する。この場合、図1ないし図8に基づいて説明した実施の形態と同一の部分は同一符号で示し、説明も省略する。   Next, still another embodiment will be described with reference to FIGS. In this case, the same parts as those in the embodiment described with reference to FIGS. 1 to 8 are denoted by the same reference numerals, and the description thereof is also omitted.

図12は、本実施の形態におけるレシートプリンタ107の内部構成の概略を示す模式図である。図13は、図12に示すレシートプリンタ107がレシート用紙151の両面に印刷を行う際にバックフィードを行なわずに発行したレシートRTの一例を示す模式図である。本実施の形態の表面印刷部153は、裏面印刷部154よりも案内経路156の下流側に配置されている。そして、表面印刷部153を構成する表面サーマルヘッド153sの発熱抵抗体153hの位置と裏面印刷部154を構成する裏面サーマルヘッド154sの発熱抵抗体154hとは、案内経路156上の距離にしてΔxだけ離れている。換言すれば、表面サーマルヘッド153sがレシート用紙151の表面に対し印刷を行う表面印刷位置Jと、裏面サーマルヘッド154sがレシート用紙151の裏面に対し印刷を行う裏面印刷位置Kとは、案内経路156上で離間距離Δxだけ離間して配置されている。そのため、レシートプリンタ107の制御部215がレシート用紙151の両面に対し印刷を行う際にレシート用紙151を上流側に搬送(いわゆるバックフィード)してレシート用紙151の表面への印刷の先端と裏面への印刷の先端とを揃える位置調整を行わない場合、POS装置100では、図13に示すような、レシート用紙151の裏面の先端部分に用紙長さ方向の距離がΔxである余白領域Vを有したレシートRTが発行されることになる。本実施の形態のPOS装置100は、表面サーマルヘッド153sと裏面サーマルヘッド154sとが離間しているためにレシートRTに生じうる余白領域Vに印刷を行うことで、レシート用紙151の無駄な消費を無くし、レシート用紙151の有効利用を図るものである。   FIG. 12 is a schematic diagram showing an outline of the internal configuration of the receipt printer 107 in the present embodiment. FIG. 13 is a schematic diagram showing an example of a receipt RT issued without performing backfeed when the receipt printer 107 shown in FIG. 12 performs printing on both sides of the receipt paper 151. The front surface printing unit 153 according to the present embodiment is disposed on the downstream side of the guide path 156 with respect to the back surface printing unit 154. The position of the heating resistor 153 h of the front thermal head 153 s constituting the front surface printing unit 153 and the heating resistor 154 h of the rear thermal head 154 s constituting the rear surface printing unit 154 are a distance on the guide path 156 by Δx. is seperated. In other words, the front surface print position J where the front surface thermal head 153s prints on the front surface of the receipt paper 151 and the back surface print position K where the back surface thermal head 154s prints on the back surface of the receipt paper 151 are the guide path 156. They are spaced apart by a separation distance Δx. Therefore, when the control unit 215 of the receipt printer 107 prints on both sides of the receipt paper 151, the receipt paper 151 is conveyed upstream (so-called back feed) to the front and back of printing on the front surface of the receipt paper 151. When the position adjustment for aligning with the leading edge of printing is not performed, the POS device 100 has a margin area V having a distance Δx in the paper length direction at the leading edge of the back surface of the receipt paper 151 as shown in FIG. The received receipt RT is issued. The POS device 100 according to the present embodiment prints in the blank area V that may occur in the receipt RT because the front surface thermal head 153s and the back surface thermal head 154s are separated from each other, thereby wasting consumption of the receipt paper 151. This is intended to effectively use the receipt paper 151.

図14は、本実施の形態のフォーマットファイルFのデータ構成を示す模式図である。フォーマットファイルFに記憶されている印刷オブジェクト301bは、先頭オブジェクト301cを含む。この先頭オブジェクト301cは、裏面固定情報403bの一部を構成している。先頭オブジェクト301cは、所定のメッセージと空白行とを含んで構成され、裏面サーマルヘッド154sによってレシート用紙151の裏面に印刷され、レシートRTの先端からΔxだけ上流側に離れた位置までの先頭領域に印刷される先頭固定情報HDRとなる(図17参照)。なお、フォーマットファイルFには、先頭オブジェクト301cの行数304として、先頭オブジェクト301cがレシート用紙151に印刷された場合にレシート用紙151の行方向に占める大きさがΔxになるような行数が記憶されている。   FIG. 14 is a schematic diagram showing the data structure of the format file F of the present embodiment. The print object 301b stored in the format file F includes a head object 301c. The head object 301c forms part of the back surface fixed information 403b. The leading object 301c is configured to include a predetermined message and a blank line, and is printed on the back surface of the receipt paper 151 by the back surface thermal head 154s, and in the leading region from the leading end of the receipt RT to a position separated by Δx upstream. This is the fixed top information HDR to be printed (see FIG. 17). In the format file F, the number of lines 304 of the first object 301c is stored such that the size of the receipt paper 151 in the line direction when the first object 301c is printed on the receipt paper 151 is Δx. Has been.

また、レシート用紙151に記憶されている印刷オブジェクト301bのうち先頭オブジェクト301cに続いてレシート用紙151の裏面に印刷される現在ポイント表示オブジェクト301dは、商品販売データ処理(図15参照)中に行われるポイント計算処理(図15のステップS16−3)において算出される客の現在の累積ポイントの値が反映される。 Also, the current point display object 301d that following the beginning object 301c are printed on the back side of the receipt paper 151 among the print object 301b stored in the receipt paper 151, row in merchandise sales data processing (see FIG. 15) The value of the customer's current accumulated points calculated in the point calculation process (step S16-3 in FIG. 15) is reflected.

図15は、本実施の形態のPOS装置100において行われる商品販売データ処理の流れを示すフローチャートである。POS端末101の情報処理部201は、コードスキャナ212やキーボード211、タッチパネル105からの入力操作による商品コードの入力有無判定に待機している(ステップS11)。商品コードの入力を判定すると(ステップS11のY)、POS端末101の情報処理部201は、入力された商品コードに対応した商品名や単価などの商品情報をPLUファイルから取得する検索処理を実行して(ステップS12)、入力された商品コードおよび取得した商品情報に基づいて取引情報を生成しRAM203(図3参照)に一時記憶する商品情報登録処理を実行する(ステップS13)。   FIG. 15 is a flowchart showing a flow of merchandise sales data processing performed in the POS device 100 of the present embodiment. The information processing unit 201 of the POS terminal 101 is on standby for determining whether or not a product code has been input by an input operation from the code scanner 212, the keyboard 211, and the touch panel 105 (step S11). When the input of the product code is determined (Y in step S11), the information processing unit 201 of the POS terminal 101 executes a search process for acquiring product information such as a product name and a unit price corresponding to the input product code from the PLU file. (Step S12), transaction information is generated based on the input product code and the acquired product information, and a product information registration process for temporarily storing it in the RAM 203 (see FIG. 3) is executed (Step S13).

続く処理として、POS端末101の情報処理部201は、タッチパネル105やキーボード211から入力される商品コード入力終了宣言の有無を待機する(ステップS14)。商品コード入力終了宣言が入力されると、POS端末101の情報処理部201は、続く処理として、ポイント算出処理を実行する(ステップS16)。ここで、商品コード入力終了宣言ではなく新たな商品コードの入力を判定した場合(ステップS14のN、S15のY)、POS端末101の情報処理部201は、処理をステップS12に戻し、新たに入力された商品コードに基づいて検索処理(ステップS12)および商品情報登録処理(ステップS13)を実行する。   As a subsequent process, the information processing unit 201 of the POS terminal 101 waits for a product code input end declaration input from the touch panel 105 or the keyboard 211 (step S14). When the product code input end declaration is input, the information processing unit 201 of the POS terminal 101 executes a point calculation process as a subsequent process (step S16). If it is determined that a new product code is input instead of a product code input end declaration (N in step S14, Y in S15), the information processing unit 201 of the POS terminal 101 returns the process to step S12 to newly Based on the input product code, search processing (step S12) and product information registration processing (step S13) are executed.

ポイント算出処理(ステップS16)の詳細について説明する。POS端末101の情報処理部201は、RAM203に会員コードが記憶されているかどうかを判定する(ステップS16−1)。会員コードは、客が所有する磁気カードやICカードなどの記憶媒体に予め記憶されている客を特定するためのコード情報であり、POS端末101の情報処理部201がポイント算出処理(ステップS16)を実行する前提として、商品コード入力終了宣言が入力されるまでにPOS端末101に接続されている磁気カードリーダやICカードリーダなどの読取装置(図示せず)によって読み取られてRAM203に記憶されているべきものである。このため、本実施の形態のPOS端末101には、磁気カードリーダやICカードリーダなどの読取装置が情報処理部201に接続されている必要がある。そして、POS端末101の情報処理部201は、RAM203に会員コードが記憶されていないと判定した場合(ステップS16−1のN)、以下に説明するステップS16−2およびS16−3の処理を行わずにポイント算出処理(ステップS16)を終了して、処理をステップS17に進める。これに対し、POS端末101の情報処理部201は、RAM203に会員コードが記憶されていると判定した場合(ステップS16−1のY)、会員コードに対応して記憶されている累積ポイント情報を取得する処理を実行する(ステップS16−2)。累積ポイント情報を取得する処理は、記憶媒体が累積ポイント情報を記憶しておらず会員コードのみを記憶している磁気カードである場合と、累積ポイント情報および会員コードを記憶しているICカードである場合とで処理内容が相違する。記憶媒体が磁気カードの場合、POS端末101の情報処理部201は、通信インタフェイス207(図3参照)を介してネットワーク接続されている図示しない本部サーバに会員コードを送信し、会員コードに対応づけて本部サーバに記憶されている累積ポイント情報を送信してもらうことにより、POS端末101は、本部サーバから送信された累積ポイント情報を取得する。これに対して、記憶媒体がICカードである場合、POS端末101の情報処理部201は、ICカードにデータ記録されている累積ポイント情報に直接アクセスすることができる。このように累積ポイント情報の取得した後に続く処理として、POS端末101の情報処理部201は、RAM203に一時記憶している取引情報に基づいて今回の会計取引に対し付与される特典ポイントを算出し(ステップS16−3)、ポイント算出処理を終了する。   Details of the point calculation process (step S16) will be described. The information processing unit 201 of the POS terminal 101 determines whether or not the member code is stored in the RAM 203 (step S16-1). The member code is code information for specifying a customer stored in advance in a storage medium such as a magnetic card or IC card owned by the customer, and the information processing unit 201 of the POS terminal 101 performs point calculation processing (step S16). Is read by a reading device (not shown) such as a magnetic card reader or IC card reader connected to the POS terminal 101 and stored in the RAM 203 until a product code input end declaration is input. It should be. For this reason, in the POS terminal 101 of this embodiment, a reader such as a magnetic card reader or an IC card reader needs to be connected to the information processing unit 201. If the information processing unit 201 of the POS terminal 101 determines that the member code is not stored in the RAM 203 (N in step S16-1), the processing of steps S16-2 and S16-3 described below is performed. The point calculation process (step S16) is finished without any processing, and the process proceeds to step S17. On the other hand, if the information processing unit 201 of the POS terminal 101 determines that the member code is stored in the RAM 203 (Y in step S16-1), the accumulated point information stored corresponding to the member code is displayed. The acquisition process is executed (step S16-2). The process of acquiring the accumulated point information is performed when the storage medium is a magnetic card that does not store the accumulated point information but stores only the member code, and the IC card that stores the accumulated point information and the member code. The processing contents differ depending on the case. When the storage medium is a magnetic card, the information processing unit 201 of the POS terminal 101 transmits a member code to a headquarter server (not shown) connected to the network via the communication interface 207 (see FIG. 3), and corresponds to the member code. The POS terminal 101 acquires the accumulated point information transmitted from the headquarter server by having the accumulated point information stored in the headquarter server transmitted. On the other hand, when the storage medium is an IC card, the information processing unit 201 of the POS terminal 101 can directly access the accumulated point information recorded in the IC card. As processing subsequent to the acquisition of the accumulated point information in this way, the information processing unit 201 of the POS terminal 101 calculates a privilege point given to the current accounting transaction based on the transaction information temporarily stored in the RAM 203. (Step S16-3), the point calculation process is terminated.

POS端末101の情報処理部201は、上記のポイント算出処理(ステップS16(ステップS16−1〜S16−3))を実行することにより、今回の会計取引において付与された特典ポイントが加味された累計ポイントを把握することになる。   The information processing unit 201 of the POS terminal 101 executes the above point calculation process (step S16 (steps S16-1 to S16-3)), thereby accumulating the bonus points given in the current accounting transaction. You will know the point.

ステップS16に続く処理として、POS端末101の情報処理部201は、客の支払金額の入力とともに指定されるタッチパネル105やキーボード211からの取引の終了宣言の入力を待機し(ステップS17)、取引の終了宣言が入力された場合(ステップS17のY)、RAM203に記憶されている取引情報に基づいて算出される小計金額分の決済を行う決済処理を実行して(ステップS18)、商品販売データ処理を終了する。決済処理は、レシート発行処理、累計ポイントの更新処理を含む。本実施の形態のPOS装置100におけるレシート発行処理の流れは図16に基づいて後述するが、ポイント算出処理(ステップS16)において算出された客の累積ポイントに関する情報がレシート用紙151に印刷される。   As processing subsequent to step S16, the information processing unit 201 of the POS terminal 101 waits for input of a transaction end declaration from the touch panel 105 or keyboard 211 specified together with the input of the customer's payment amount (step S17). When an end declaration is input (Y in step S17), a settlement process for performing settlement for the subtotal amount calculated based on the transaction information stored in the RAM 203 is executed (step S18), and a merchandise sales data process is performed. Exit. The settlement process includes a receipt issuance process and a cumulative point update process. The flow of the receipt issuing process in the POS device 100 according to the present embodiment will be described later with reference to FIG. 16, but information related to the customer accumulated points calculated in the point calculation process (step S 16) is printed on the receipt paper 151.

更新処理は、客に付与されている累積ポイント情報に今回の会計取引によって新たに客に付与される特典ポイントを加味して更新を行う処理である。記憶媒体が磁気カードである場合、POS端末101の情報処理部201は、更新処理として、今回算出した特典ポイントを本部サーバに送信する。本部サーバは、特典ポイントを受信すると、受信した特典ポイントを累積ポイント情報に加味した更新を行う。これに対して、記憶媒体がICカードである場合、POS端末101の情報処理部201は、更新処理として、本部サーバに今回の特典ポイントを送信する処理に加えて、ICカードに記憶されている累積ポイント情報を更新する。   The update process is a process of updating the accumulated point information given to the customer by adding the privilege points newly given to the customer by the current accounting transaction. When the storage medium is a magnetic card, the information processing unit 201 of the POS terminal 101 transmits the benefit points calculated this time to the headquarter server as an update process. When the headquarters server receives the privilege points, the headquarters server updates the received privilege points with the accumulated point information. On the other hand, when the storage medium is an IC card, the information processing unit 201 of the POS terminal 101 is stored in the IC card as an update process in addition to the process of transmitting the current privilege point to the headquarter server. Update accumulated point information.

なお、ステップS16−1においてPOS端末101の情報処理部201がRAM203に会員コードが記憶されていないと判定した場合、POS端末101の情報処理部201は、レシート発行処理においては特典ポイントに関する情報をレシート用紙151に印刷せず、更新処理も行わない。   If the information processing unit 201 of the POS terminal 101 determines in step S16-1 that the member code is not stored in the RAM 203, the information processing unit 201 of the POS terminal 101 displays information related to privilege points in the receipt issuing process. Printing is not performed on the receipt paper 151, and update processing is not performed.

図16は、本実施の形態のPOS装置100におけるレシート発行処理の流れを示すフローチャートである。図17は、本実施の形態のPOS装置100において行われるレシート発行処理により印刷が行われた状態のレシート用紙151の一例を示す説明図である。POS端末101の情報処理部201は、レシート発行処理を開始すると、図1ないし図8に基づいて前述した実施の形態と同様、表面固定情報403aの印刷長L1、および、裏面固定情報403bの印刷長L2を算出し(ステップS301)、取引情報402がレシート用紙151に印刷された場合の印刷長を算出し(ステップS302)、取引情報402および固定情報403を含む出力情報401を、レシートRTの長さが最短となるように表面出力情報404および裏面出力情報405のそれぞれに配分する(ステップS303)。   FIG. 16 is a flowchart showing the flow of receipt issue processing in the POS device 100 of the present embodiment. FIG. 17 is an explanatory diagram showing an example of the receipt paper 151 in a state where printing is performed by the receipt issuing process performed in the POS device 100 of the present embodiment. When starting the receipt issuing process, the information processing unit 201 of the POS terminal 101 prints the printing length L1 of the front surface fixing information 403a and the back surface fixing information 403b as in the embodiment described above with reference to FIGS. The length L2 is calculated (step S301), the print length when the transaction information 402 is printed on the receipt paper 151 is calculated (step S302), and the output information 401 including the transaction information 402 and the fixed information 403 is output to the receipt RT. It distributes to each of the front surface output information 404 and the back surface output information 405 so that the length becomes the shortest (step S303).

続く処理として、POS端末101の情報処理部201は、ステップS303において配分された裏面出力情報405のうち、データ列の先頭側の一部をなしてレシート用紙151の先端から印刷され先頭固定情報HDRとして現れる先頭オブジェクト301cのデータを裏面出力情報405の終端に移動する(ステップS304)。この裏面出力情報405の終端に移動されたデータは、レシート用紙151に印刷されて、次回の取引において発行されるレシートRTの印刷内容の一部になる。   As the subsequent processing, the information processing unit 201 of the POS terminal 101 prints from the front end of the receipt paper 151 as a part of the front side of the data row of the back surface output information 405 distributed in step S303, and starts fixed information HDR. The data of the head object 301c appearing as “m” is moved to the end of the back surface output information 405 (step S304). The data moved to the end of the back surface output information 405 is printed on the receipt paper 151 and becomes part of the print contents of the receipt RT issued in the next transaction.

続く処理として、POS端末101の情報処理部201は、これから行う印刷処理が用紙保持部152に巻回されたレシート用紙151をセットした後に初めて行うものであるか否かにより処理を分岐する(ステップS305)。これから行う印刷処理がレシート用紙151のセット後に初めて行うものである場合(ステップS305のY)、レシート用紙151の裏面の先端側には何も印刷されていない状態となっている。そこで、POS端末101の情報処理部201は、先頭オブジェクト301cを送信し(ステップS306)、搬送機構160を駆動してレシート用紙151の先端を裏面印刷位置Kに位置づけて裏面印刷部154からこの先頭オブジェクト301cを印刷するための制御命令をレシートプリンタ107に送信する(ステップS307)。その結果、図17(a)に示すように、レシート用紙151の裏面の先端側には、印刷長にしてΔxだけの大きさを占める先頭固定情報HDRが印刷された状態になる。続く処理として、POS端末101の情報処理部201は、図1ないし図8に基づいて前述した実施の形態と同様、レシートプリンタ107に表面出力情報404および裏面出力情報405を送信してレシート用紙151の両面に印刷させる制御を行い(ステップS308)、レシート発行処理を終了する。   As a subsequent process, the information processing unit 201 of the POS terminal 101 branches the process depending on whether or not the printing process to be performed is performed for the first time after the receipt sheet 151 wound around the sheet holding unit 152 is set (step S1). S305). If the printing process to be performed is performed for the first time after the receipt paper 151 is set (Y in step S305), nothing is printed on the front end side of the back surface of the receipt paper 151. Therefore, the information processing unit 201 of the POS terminal 101 transmits the leading object 301c (step S306), drives the conveyance mechanism 160 to position the leading edge of the receipt paper 151 at the back surface printing position K, and then starts the leading edge from the back surface printing unit 154. A control command for printing the object 301c is transmitted to the receipt printer 107 (step S307). As a result, as shown in FIG. 17A, the leading fixed information HDR occupying the size of Δx as the print length is printed on the leading end side of the back surface of the receipt paper 151. As a subsequent process, the information processing unit 201 of the POS terminal 101 transmits the front surface output information 404 and the rear surface output information 405 to the receipt printer 107 in the same manner as the above-described embodiment based on FIGS. The printing is performed on both sides (step S308), and the receipt issuing process is terminated.

本実施の形態のレシートプリンタ107は、POS装置100で行われるレシート発行処理中のステップS308の処理で送信される表面出力情報404および裏面出力情報405を受信すると、搬送機構160を駆動して案内経路156上のレシート用紙151をその上流側から下流側に向けて搬送し、その中で、表面サーマルヘッド153sによるレシート用紙151の表面に対する印刷と、裏面サーマルヘッド154sによりレシート用紙151の裏面に対する印刷とを同時に行う。ここで、表面印刷位置Jと裏面印刷位置KとはΔxだけ離間していることから、POS端末101の情報処理部201はレシートプリンタ107に対し、図17(b)に示すように、搬送機構160を駆動して案内経路156上のレシート用紙をその上流側から下流側に向けて搬送する途中で、表面サーマルヘッド153sによるレシート用紙151の表面に対する印刷と同期させて、レシート用紙151の裏面に印刷される裏面出力情報405のうち表面サーマルヘッド153sが印刷している印刷位置よりも離間距離Δxだけ上流側の内容を裏面サーマルヘッド154sにより印刷するようレシートプリンタ107を駆動する命令を送信する。裏面出力情報405の先頭から離間距離Δx分のデータは裏面出力情報405の終端側に移動しているために、レシートプリンタ107では、レシート用紙151の表面に表面出力情報404が出力されると同時に、レシート用紙151の裏面の終端側に次回の会計取引の際に発行されるレシート用紙151の先端側に現れる先頭固定情報HDRが印刷される。   Upon receipt of the front surface output information 404 and the rear surface output information 405 transmitted in step S308 during the receipt issuance process performed by the POS device 100, the receipt printer 107 according to the present embodiment drives the conveyance mechanism 160 to guide the receipt. The receipt paper 151 on the path 156 is transported from the upstream side to the downstream side, in which printing on the front surface of the receipt paper 151 by the front thermal head 153s and printing on the back surface of the receipt paper 151 by the back thermal head 154s. And simultaneously. Here, since the front surface printing position J and the back surface printing position K are separated by Δx, the information processing unit 201 of the POS terminal 101 is connected to the receipt printer 107 as shown in FIG. In the middle of transporting the receipt paper on the guide path 156 from the upstream side to the downstream side by driving 160, it is synchronized with the printing on the front surface of the receipt paper 151 by the surface thermal head 153s, and on the back surface of the receipt paper 151. A command for driving the receipt printer 107 is transmitted so that the back surface thermal head 154s prints the content upstream of the printing position where the front surface thermal head 153s is printing in the printed back surface output information 405 by a separation distance Δx. Since the data for the separation distance Δx from the head of the back surface output information 405 has moved to the end side of the back surface output information 405, the receipt printer 107 simultaneously outputs the surface output information 404 on the surface of the receipt paper 151. The leading fixed information HDR appearing on the leading end side of the receipt paper 151 issued at the time of the next accounting transaction is printed on the end side of the back surface of the receipt paper 151.

一方、ステップS305においてこれから行う印刷処理がレシート用紙151のセット後に初めて行うものでは無い場合(ステップS305のN)、POS端末101の情報処理部201はステップS306およびS307の処理を実行せずにステップS308の処理を実行する。しかし、前回行われた商品販売データ処理中のレシート発行処理において、レシート用紙151の裏面の先端側には先頭固定情報HDRが既に印刷されているため、そもそもステップS306およびS307の処理を行う必要がない。つまり、表面印刷位置Jと裏面印刷位置Kとは距離Δxだけ離れているために生じてしまうレシートRT上の距離Δxだけの余白領域Vにも裏面出力情報405の一部が印刷されることになる。   On the other hand, if the printing process to be performed in step S305 is not performed for the first time after the receipt paper 151 is set (N in step S305), the information processing unit 201 of the POS terminal 101 does not execute the processes in steps S306 and S307. The process of S308 is executed. However, in the receipt issuance process performed in the previous merchandise sales data process, the top fixed information HDR has already been printed on the leading end side of the back side of the receipt paper 151, so it is necessary to perform the processes of steps S306 and S307 in the first place. Absent. That is, a part of the back surface output information 405 is also printed in the margin area V of the receipt RT that is generated because the front surface printing position J and the back surface printing position K are separated by the distance Δx. Become.

本実施の形態のPOS装置100によっても、これまでに前述した実施の形態のPOS装置100と同様に、余白部分が少なく全体の長さが短縮されたレシートRTが発行されることになり、レシート用紙151の有効利用を図ることができる。さらに、本実施の形態のPOS装置100によれば、表面印刷位置Jと裏面印刷位置Kとが離れているために生じる余白領域Vとなっていた箇所には、前回の取引において裏面サーマルヘッド154sによって印刷された先頭固定情報HDRが印刷されており、その先頭固定情報HDRは今回の取引で発行されるレシートRTの印刷内容の一部として利用されるため、レシート発行処理では、レシート用紙151を上流側にバックフィードする搬送機構160の制御を行う必要がなく、レシートRTを発行するまでの時間を短縮することができ、POS装置100を用いて行う会計作業全体の時間を短縮することができる。   Similarly to the POS apparatus 100 of the above-described embodiment, the POS apparatus 100 of the present embodiment also issues a receipt RT with a reduced margin and a reduced overall length. Effective use of the paper 151 can be achieved. Furthermore, according to the POS device 100 of the present embodiment, the back surface thermal head 154s in the previous transaction is located in the margin area V that occurs because the front surface print position J and the back surface print position K are separated. In the receipt issuing process, the receipt fixed sheet HDR is used because the fixed header information HDR printed by the above is printed and used as part of the print contents of the receipt RT issued in the current transaction. There is no need to control the transport mechanism 160 that feeds back to the upstream side, the time until the receipt RT is issued can be shortened, and the entire accounting work performed using the POS device 100 can be shortened. .

なお、本実施の形態のPOS装置100においては、表面サーマルヘッド153sが裏面サーマルヘッド154sに対して案内経路156の下流側に配置されている場合について示したが、表面サーマルヘッド153sが裏面サーマルヘッド154sに対して案内経路156の上流側に配置されている場合でも同様に余白領域Vに対し予め印刷を行ってレシート用紙151の有効利用を図ることができることはいうまでもない。また、余白領域Vに対し予め印刷される先頭固定情報HDRは、画像メモリ217に展開された印刷データのうちレシート用紙151の裏面に出力される裏面印刷データ407の先頭に位置する印刷データを裏面印刷データ407の終端に移動することによって、レシート用紙151の切断位置から下流側に印刷されるようにしてもよい。さらに、本実施の形態に示すレシート発行処理は、POS端末101の情報処理部201ではなく、レシートプリンタ107の制御部215が主体的に行うようにしてもよい。   In the POS device 100 according to the present embodiment, the case where the front thermal head 153s is arranged on the downstream side of the guide path 156 with respect to the rear thermal head 154s is shown. However, the front thermal head 153s is the rear thermal head. Needless to say, the receipt paper 151 can be effectively used by printing in advance on the blank area V even when it is arranged upstream of the guide path 156 with respect to 154s. The head fixed information HDR printed in advance for the margin area V is the print data positioned at the head of the back surface print data 407 output on the back surface of the receipt paper 151 among the print data expanded in the image memory 217. By moving to the end of the print data 407, printing may be performed downstream from the cutting position of the receipt paper 151. Furthermore, the receipt issuing process shown in the present embodiment may be performed not by the information processing unit 201 of the POS terminal 101 but by the control unit 215 of the receipt printer 107.

POS装置の外観を示す斜視図である。It is a perspective view which shows the external appearance of a POS apparatus. レシートプリンタの内部構成の概略を示す模式図である。It is a schematic diagram which shows the outline of an internal structure of a receipt printer. POS装置の電気的構成を示すブロック図である。It is a block diagram which shows the electric constitution of a POS apparatus. 出力情報がレシート用紙の両面に印刷されるまでのデータの流れを示す模式図である。It is a schematic diagram which shows the data flow until output information is printed on both surfaces of a receipt paper. フォーマットファイルのデータ構成を示す模式図である。It is a schematic diagram which shows the data structure of a format file. フォーマットファイルの内容を反映させた出力情報が印刷されたレシートの一例を示す模式図である。It is a schematic diagram which shows an example of the receipt on which the output information reflecting the content of the format file was printed. レシート発行処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a receipt issue process. POS装置によって発行されるレシートの一例を示す説明図である。It is explanatory drawing which shows an example of the receipt issued by a POS apparatus. 出力情報がレシート用紙の両面に印刷されるまでのデータの流れを示す模式図である。It is a schematic diagram which shows the data flow until output information is printed on both surfaces of a receipt paper. レシート発行処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a receipt issue process. 画像メモリに記憶される印刷データのデータ構成を示す模式図である。It is a schematic diagram which shows the data structure of the print data memorize | stored in an image memory. レシートプリンタの内部構成の概略を示す模式図である。It is a schematic diagram which shows the outline of an internal structure of a receipt printer. レシートプリンタがレシート用紙の両面に印刷を行う際にバックフィードを行なわずに発行したレシートの一例を示す模式図である。FIG. 5 is a schematic diagram illustrating an example of a receipt issued without performing backfeed when a receipt printer performs printing on both sides of a receipt sheet. フォーマットファイルのデータ構成を示す模式図である。It is a schematic diagram which shows the data structure of a format file. 商品販売データ処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a merchandise sales data process. レシート発行処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a receipt issue process. レシート発行処理により印刷が行われた状態のレシート用紙の一例を示す説明図である。It is explanatory drawing which shows an example of the receipt paper in the state printed by the receipt issuing process.

符号の説明Explanation of symbols

100…POS装置(商品販売データ処理装置)、107…レシートプリンタ、111…排紙口(用紙排出部)、151…レシート用紙、152…用紙保持部、153s…表面サーマルヘッド(第1印刷ヘッド)、154s…裏面サーマルヘッド(第2印刷ヘッド)、156…案内経路、160…搬送機構、217…画像メモリ、401…出力情報、402…取引情報、403…固定情報、RT…レシート、Δx…離間距離   DESCRIPTION OF SYMBOLS 100 ... POS apparatus (commodity sales data processing apparatus), 107 ... Receipt printer, 111 ... Paper discharge port (paper discharge part), 151 ... Receipt paper, 152 ... Paper holding part, 153s ... Surface thermal head (1st print head) 154 s ... back side thermal head (second print head), 156 ... guide path, 160 ... transport mechanism, 217 ... image memory, 401 ... output information, 402 ... transaction information, 403 ... fixed information, RT ... receipt, Δx ... separation distance

Claims (2)

一取引毎に取引情報の記憶と当該取引情報を印刷したレシートの発行とを含む商品販売データ処理を実行する商品販売データ処理装置において、
用紙保持部と用紙排出部との間を連絡する案内経路に沿ってレシート用紙をその長さ方向に搬送する搬送機構と、前記案内経路に沿って搬送される前記レシート用紙の一方の面に印刷を行う第1印刷ヘッドと、当該第1印刷ヘッドとは前記案内経路中のレシート用紙の搬送方向上下流に互いの印刷位置を離間して配置されており、前記第1印刷ヘッドの印刷位置より前記案内経路の上流側に配置されて、前記レシート用紙の他方の面に印刷を行う第2印刷ヘッドと、を備えるレシートプリンタと、
一取引の終了宣言に応じて前記レシートプリンタを駆動制御し、予め印刷位置及び印刷長さが決められている固定情報を前記レシート用紙の前記一方の面または前記他方の面に印刷する手段と、
前記取引情報の印刷行数に基づき、当該一取引のレシートの長さが最短となるように前記取引情報を前記レシート用紙の前記一方の面と前記他方の面とに配分して当該レシートに占める固定情報の印刷領域以外の領域に印刷する手段と、
今回取引分のレシート用紙の切断位置以降の前記他方の面において、次取引のレシートの先頭位置に印刷される固定情報である先頭固定情報を印刷する手段と、
を備え
前記先頭固定情報が印字される領域の前記搬送経路方向の長さは、前記第1印刷ヘッドと前記第2印刷ヘッドとの離間距離に相当する長さ以下である、商品販売データ処理装置。
In a merchandise sales data processing apparatus that executes merchandise sales data processing including storage of transaction information for each transaction and issuance of a receipt printed with the transaction information.
Printing on one side of the receipt paper transported along the guide path, and a transport mechanism for transporting the receipt paper in the length direction along the guide path communicating between the paper holding unit and the paper discharge unit The first print head that performs printing and the first print head are arranged with the print positions spaced apart from each other in the conveyance direction of the receipt paper in the guide path, and from the print position of the first print head A receipt printer comprising a second print head disposed on the upstream side of the guide path and performing printing on the other side of the receipt paper ;
Means for driving and controlling the receipt printer in response to a declaration of the end of one transaction, and printing fixed information on which a printing position and a printing length are determined in advance on the one side or the other side of the receipt paper;
Based on the number of print lines of the transaction information, account to the receipt by distributing the transaction information so that the length of the receipt of the one transaction is possible towards the said one surface and the other surface of the receipt paper Means for printing in an area other than the fixed information printing area ;
Means for printing leading fixed information, which is fixed information printed at the leading position of the receipt of the next transaction, on the other side after the cutting position of the receipt paper for the current transaction;
Equipped with a,
The product sales data processing apparatus , wherein a length of the area in which the head fixed information is printed in the conveyance path direction is equal to or less than a length corresponding to a separation distance between the first print head and the second print head .
前記固定情報および一取引分の前記取引情報の印刷データを展開して記憶する画像メモリ
前記画像メモリに展開された前記印刷データの半分を前記第1印刷ヘッドによる印刷に振り分けて残りの半分の前記印刷データを前記第2印刷ヘッドによる印刷に振り分けることで、一取引のレシートの長さが最短となるようにする手段と、を更に備える請求項1記載の商品販売データ処理装置。
An image memory for storing expanded print data of the transaction information of the fixed information and one transaction amount,
Distributes half of the print data developed in the image memory for printing by the first print head, by distributing the print data of the other half for printing by the second print head, receipt of one transaction merchandise sales data processing apparatus Motomeko 1, wherein the length is further provided with means to ensure the shortest, the.
JP2007297278A 2007-11-15 2007-11-15 Product sales data processing device Expired - Fee Related JP4990741B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007297278A JP4990741B2 (en) 2007-11-15 2007-11-15 Product sales data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007297278A JP4990741B2 (en) 2007-11-15 2007-11-15 Product sales data processing device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2011248546A Division JP5629254B2 (en) 2011-11-14 2011-11-14 Product sales data processing device

Publications (2)

Publication Number Publication Date
JP2009123028A JP2009123028A (en) 2009-06-04
JP4990741B2 true JP4990741B2 (en) 2012-08-01

Family

ID=40815097

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007297278A Expired - Fee Related JP4990741B2 (en) 2007-11-15 2007-11-15 Product sales data processing device

Country Status (1)

Country Link
JP (1) JP4990741B2 (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5012458B2 (en) * 2007-11-30 2012-08-29 セイコーエプソン株式会社 Printing apparatus and printing apparatus control method
US8587804B2 (en) 2007-11-30 2013-11-19 Seiko Epson Corporation Printing device and control method for a printing device
JP5012460B2 (en) * 2007-11-30 2012-08-29 セイコーエプソン株式会社 Printing apparatus and printing apparatus control method
JP5012459B2 (en) * 2007-11-30 2012-08-29 セイコーエプソン株式会社 Printing apparatus and printing apparatus control method
JP5012473B2 (en) 2007-12-10 2012-08-29 セイコーエプソン株式会社 Printing apparatus and printing apparatus control method
JP5415224B2 (en) * 2009-10-14 2014-02-12 シャープ株式会社 Product sales data processing device
JP2011175605A (en) * 2010-02-25 2011-09-08 Sii Data Service Kk Printer, printing system, printing method and program
US9141892B2 (en) 2010-11-22 2015-09-22 Seiko Epson Corporation Adjusting one side print data to avoid overlap with the other side print data in two-sided printing
JP5736742B2 (en) * 2010-11-22 2015-06-17 セイコーエプソン株式会社 Duplex printing apparatus and duplex printing method
JP2012118626A (en) 2010-11-29 2012-06-21 Seiko Epson Corp Double side receipt issuing method and double side receipt issuing device
JP5742438B2 (en) 2011-05-02 2015-07-01 セイコーエプソン株式会社 Double-sided receipt issuing method and double-sided receipt issuing device
CN102886990B (en) * 2011-07-22 2015-04-01 山东新北洋信息技术股份有限公司 Two-sided printer and control method thereof
JP5163823B2 (en) * 2012-03-30 2013-03-13 セイコーエプソン株式会社 Control method of printing apparatus
JP5746305B2 (en) * 2013-11-13 2015-07-08 シャープ株式会社 Product sales data processing device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002234215A (en) * 2001-02-09 2002-08-20 Casio Comput Co Ltd Apparatus and program for issuing receipt
JP2003058950A (en) * 2001-08-16 2003-02-28 Ishida Co Ltd Device and method for issuing receipt

Also Published As

Publication number Publication date
JP2009123028A (en) 2009-06-04

Similar Documents

Publication Publication Date Title
JP4990741B2 (en) Product sales data processing device
JP2011107774A (en) Commodity sales data processor and control program therefor
JP2002234215A (en) Apparatus and program for issuing receipt
JP2003058950A (en) Device and method for issuing receipt
JP5194424B2 (en) Order data processing system, label printer, order data processing method, and program
JP5593351B2 (en) Receipt issuing device and control program thereof
JP5015283B2 (en) Printer
JP6375853B2 (en) RECORDING DEVICE, ACCOUNTING SYSTEM, AND RECORDING DEVICE CONTROL METHOD
JP5629254B2 (en) Product sales data processing device
JP2018083359A (en) Receipt printer, receipt printer system and control program
JP7406276B2 (en) Product sales data processing device and program
JP4076624B2 (en) Cash register
JP2002002065A (en) Sales amount registering operation apparatus and memory medium
JP4145060B2 (en) register
JP5401786B2 (en) Settlement device
JP2009282572A (en) Commodity sales data processor
JP2005128725A (en) Accounting processor
JP2016027506A (en) POS system
JP4009364B2 (en) Cash register
JP2012196863A (en) Image recorder, and method of controlling image recorder
JPH10241047A (en) Commodity sales data registration processor
JP3112632B2 (en) Product sales registration data processing device
JP2012201045A (en) Printer, information processor, and program
JPH03114855A (en) Printer
JPH0773375A (en) Merchandise sale data processor

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20091030

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100201

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110822

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110913

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111114

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

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

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4990741

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150511

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees